@vector-business-services/cristal-ds-web 0.15.0 → 0.17.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/dist/index.css CHANGED
@@ -84,11 +84,30 @@
84
84
  color: var(--cr-color-icon-neutral-base);
85
85
  font-size: 16px;
86
86
  }
87
- .cr-accordion__region {
88
- padding-bottom: var(--cr-padding-padding-7);
89
- }
90
87
  .cr-accordion__content {
91
- padding: var(--cr-padding-padding-7);
88
+ padding: var(--cr-padding-padding-7) var(--cr-padding-padding-7) calc(var(--cr-padding-padding-7) * 2);
89
+ }
90
+ .cr-accordion__region--entrar {
91
+ max-height: 0;
92
+ }
93
+ .cr-accordion__region--entrando {
94
+ max-height: 1000px;
95
+ overflow: hidden;
96
+ transition: max-height 1s ease-in-out;
97
+ }
98
+ .cr-accordion__region--sair {
99
+ max-height: 1000px;
100
+ }
101
+ .cr-accordion__region--saindo {
102
+ max-height: 0;
103
+ overflow: hidden;
104
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
105
+ }
106
+ @media (prefers-reduced-motion: reduce) {
107
+ .cr-accordion__region--entrando,
108
+ .cr-accordion__region--saindo {
109
+ transition: none;
110
+ }
92
111
  }
93
112
  @container (max-width: 767px) {
94
113
  .cr-accordion__action {
@@ -96,7 +115,7 @@
96
115
  padding-left: var(--cr-padding-padding-6);
97
116
  }
98
117
  .cr-accordion__content {
99
- padding: var(--cr-padding-padding-6);
118
+ padding: var(--cr-padding-padding-6) var(--cr-padding-padding-6) calc(var(--cr-padding-padding-6) + var(--cr-padding-padding-7));
100
119
  }
101
120
  }
102
121
 
@@ -289,6 +308,55 @@
289
308
  color: var(--cr-color-text-brand-base);
290
309
  }
291
310
 
311
+ /* src/components/comum.css */
312
+ .cr-so-leitor {
313
+ position: absolute;
314
+ width: 1px;
315
+ height: 1px;
316
+ overflow: hidden;
317
+ clip-path: inset(50%);
318
+ white-space: nowrap;
319
+ }
320
+ .cr-rolagem-fina::-webkit-scrollbar {
321
+ width: 8px;
322
+ height: 8px;
323
+ }
324
+ .cr-rolagem-fina::-webkit-scrollbar-thumb {
325
+ border-radius: var(--cr-radius-full);
326
+ background-color: var(--cr-color-fill-neutral-subtle);
327
+ }
328
+ .cr-rolagem-fina::-webkit-scrollbar-thumb:hover {
329
+ background-color: var(--cr-color-fill-neutral-subtle-hover);
330
+ }
331
+ @supports not selector(::-webkit-scrollbar) {
332
+ .cr-rolagem-fina {
333
+ scrollbar-width: thin;
334
+ scrollbar-color: var(--cr-color-fill-neutral-subtle) transparent;
335
+ }
336
+ }
337
+ .cr-popup--entrar {
338
+ opacity: 0;
339
+ transform: scaleY(0.8);
340
+ }
341
+ .cr-popup--entrando {
342
+ opacity: 1;
343
+ transform: scaleY(1);
344
+ transition: transform 120ms cubic-bezier(0, 0, 0.2, 1), opacity 120ms cubic-bezier(0, 0, 0.2, 1);
345
+ }
346
+ .cr-popup--entrou {
347
+ transform: none;
348
+ }
349
+ .cr-popup--saindo {
350
+ opacity: 0;
351
+ transition: opacity 100ms linear;
352
+ }
353
+ @media (prefers-reduced-motion: reduce) {
354
+ .cr-popup--entrando,
355
+ .cr-popup--saindo {
356
+ transition: none;
357
+ }
358
+ }
359
+
292
360
  /* src/components/AutoComplete/AutoComplete.css */
293
361
  .cr-autocomplete__root {
294
362
  display: flex;
@@ -529,33 +597,6 @@
529
597
  overflow-wrap: break-word;
530
598
  }
531
599
 
532
- /* src/components/comum.css */
533
- .cr-so-leitor {
534
- position: absolute;
535
- width: 1px;
536
- height: 1px;
537
- overflow: hidden;
538
- clip-path: inset(50%);
539
- white-space: nowrap;
540
- }
541
- .cr-rolagem-fina::-webkit-scrollbar {
542
- width: 8px;
543
- height: 8px;
544
- }
545
- .cr-rolagem-fina::-webkit-scrollbar-thumb {
546
- border-radius: var(--cr-radius-full);
547
- background-color: var(--cr-color-fill-neutral-subtle);
548
- }
549
- .cr-rolagem-fina::-webkit-scrollbar-thumb:hover {
550
- background-color: var(--cr-color-fill-neutral-subtle-hover);
551
- }
552
- @supports not selector(::-webkit-scrollbar) {
553
- .cr-rolagem-fina {
554
- scrollbar-width: thin;
555
- scrollbar-color: var(--cr-color-fill-neutral-subtle) transparent;
556
- }
557
- }
558
-
559
600
  /* src/components/Chart/Chart.css */
560
601
  .cr-chart {
561
602
  display: flex;
@@ -912,6 +953,144 @@
912
953
  --cr-chip-shadow: var(--cr-elevation-gray-bottom-3);
913
954
  }
914
955
 
956
+ /* src/components/Menu/Menu.css */
957
+ .cr-menu {
958
+ width: 320px;
959
+ border: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
960
+ box-shadow: var(--cr-elevation-gray-bottom-3);
961
+ }
962
+ .cr-menu--popup {
963
+ position: absolute;
964
+ margin-top: var(--cr-spacing-spacing-3);
965
+ }
966
+ .cr-menu--popup[data-cr-lado=acima] {
967
+ margin-top: calc(var(--cr-spacing-spacing-3) * -1);
968
+ }
969
+ .cr-menu__list {
970
+ --cr-menu-item-height: 37px;
971
+ max-height: calc(var(--cr-menu-item-height) * 5);
972
+ margin: -3px;
973
+ padding: 3px;
974
+ overflow-y: auto;
975
+ list-style: none;
976
+ outline: none;
977
+ }
978
+ .cr-menu--compact .cr-menu__list {
979
+ --cr-menu-item-height: 29px;
980
+ }
981
+ .cr-menu__list::-webkit-scrollbar {
982
+ width: 12px;
983
+ }
984
+ .cr-menu__list::-webkit-scrollbar-track,
985
+ .cr-menu__list::-webkit-scrollbar-thumb {
986
+ border-color: transparent;
987
+ border-style: solid;
988
+ border-width: 3px 3px 3px 1px;
989
+ border-radius: 5px 7px 7px 5px / 7px;
990
+ background-clip: padding-box;
991
+ }
992
+ .cr-menu__list::-webkit-scrollbar-track {
993
+ background-color: var(--cr-color-fill-neutral-subtlest);
994
+ }
995
+ .cr-menu__list::-webkit-scrollbar-thumb {
996
+ background-color: var(--cr-color-fill-neutral-subtle);
997
+ }
998
+ .cr-menu__list::-webkit-scrollbar-thumb:hover {
999
+ background-color: var(--cr-color-fill-neutral-subtle-hover);
1000
+ }
1001
+ @supports not selector(::-webkit-scrollbar) {
1002
+ .cr-menu__list {
1003
+ scrollbar-width: thin;
1004
+ scrollbar-color: var(--cr-color-fill-neutral-subtle) var(--cr-color-fill-neutral-subtlest);
1005
+ }
1006
+ }
1007
+ .cr-menu__action {
1008
+ gap: var(--cr-spacing-spacing-4);
1009
+ height: var(--cr-menu-item-height);
1010
+ color: inherit;
1011
+ text-decoration: none;
1012
+ }
1013
+ .cr-menu--compact .cr-menu__action {
1014
+ padding: var(--cr-padding-padding-3) var(--cr-padding-padding-5);
1015
+ }
1016
+ .cr-menu__label {
1017
+ flex: 1;
1018
+ min-width: 0;
1019
+ overflow: hidden;
1020
+ text-overflow: ellipsis;
1021
+ white-space: nowrap;
1022
+ }
1023
+ .cr-menu__icon {
1024
+ display: inline-flex;
1025
+ flex-shrink: 0;
1026
+ color: var(--cr-color-icon-neutral-base);
1027
+ font-size: 20px;
1028
+ }
1029
+ .cr-menu__item:hover .cr-menu__action {
1030
+ background-color: var(--cr-color-fill-neutral-container-hover);
1031
+ }
1032
+ .cr-menu__list:focus-visible .cr-menu__item[data-p-focused=true] .cr-menu__action {
1033
+ background-color: var(--cr-color-fill-neutral-container);
1034
+ box-shadow: inset 0 0 0 var(--cr-stroke-x-small) var(--cr-color-stroke-brand-base), var(--cr-effects-focus-ring);
1035
+ }
1036
+ .cr-menu__item--selected .cr-menu__action,
1037
+ .cr-menu__item--selected:hover .cr-menu__action {
1038
+ background-color: var(--cr-color-fill-selected-subtlest);
1039
+ color: var(--cr-color-text-brand-base);
1040
+ }
1041
+ .cr-menu__item--selected .cr-menu__icon {
1042
+ color: var(--cr-color-icon-brand-base);
1043
+ }
1044
+ .cr-menu__item[aria-disabled=true] .cr-menu__action {
1045
+ color: var(--cr-color-text-disabled-base);
1046
+ cursor: not-allowed;
1047
+ }
1048
+ .cr-menu__item[aria-disabled=true] .cr-menu__icon {
1049
+ color: var(--cr-color-icon-disabled-base);
1050
+ }
1051
+ .cr-menu__item[aria-disabled=true]:hover .cr-menu__action {
1052
+ background-color: var(--cr-color-fill-neutral-container);
1053
+ }
1054
+ .cr-menu__loading {
1055
+ display: flex;
1056
+ align-items: center;
1057
+ justify-content: center;
1058
+ height: var(--cr-menu-item-height);
1059
+ color: var(--cr-color-icon-neutral-subtle);
1060
+ font-size: 24px;
1061
+ }
1062
+ .cr-menu__spinner {
1063
+ animation: cr-menu-spin 1s linear infinite;
1064
+ }
1065
+ @media (prefers-reduced-motion: reduce) {
1066
+ .cr-menu__spinner {
1067
+ animation-duration: 3s;
1068
+ }
1069
+ }
1070
+ @keyframes cr-menu-spin {
1071
+ to {
1072
+ transform: rotate(360deg);
1073
+ }
1074
+ }
1075
+
1076
+ /* src/components/ContextMenu/ContextMenu.css */
1077
+ .cr-context-menu {
1078
+ position: absolute;
1079
+ width: 260px;
1080
+ }
1081
+ .cr-context-menu--entrar {
1082
+ opacity: 0;
1083
+ }
1084
+ .cr-context-menu--entrando {
1085
+ opacity: 1;
1086
+ transition: opacity 250ms;
1087
+ }
1088
+ @media (prefers-reduced-motion: reduce) {
1089
+ .cr-context-menu--entrando {
1090
+ transition: none;
1091
+ }
1092
+ }
1093
+
915
1094
  /* src/components/Divider/Divider.css */
916
1095
  .cr-divider {
917
1096
  --cr-divider-color: var(--cr-color-stroke-neutral-base);
@@ -1083,10 +1262,10 @@
1083
1262
  }
1084
1263
  .cr-drawer--enter-active {
1085
1264
  transform: none;
1086
- transition: transform 300ms ease-out;
1265
+ transition: transform 300ms ease;
1087
1266
  }
1088
1267
  .cr-drawer--exit-active {
1089
- transition: transform 300ms ease-in;
1268
+ transition: transform 300ms ease;
1090
1269
  }
1091
1270
  @media (prefers-reduced-motion: reduce) {
1092
1271
  .cr-drawer__mask:has(> .cr-drawer--enter),
@@ -1211,133 +1390,16 @@
1211
1390
  box-shadow: inset var(--cr-effects-focus-ring);
1212
1391
  }
1213
1392
  .cr-drawer__footer {
1214
- display: flex;
1215
- flex-shrink: 0;
1216
- align-items: center;
1217
- justify-content: flex-end;
1218
- gap: var(--cr-spacing-spacing-3);
1219
- }
1220
- .cr-drawer__close {
1221
- position: absolute;
1222
- top: var(--cr-spacing-spacing-4);
1223
- right: var(--cr-spacing-spacing-4);
1224
- }
1225
-
1226
- /* src/components/Menu/Menu.css */
1227
- .cr-menu {
1228
- width: 320px;
1229
- border: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
1230
- box-shadow: var(--cr-elevation-gray-bottom-3);
1231
- }
1232
- .cr-menu--popup {
1233
- position: absolute;
1234
- margin-top: var(--cr-spacing-spacing-3);
1235
- }
1236
- .cr-menu--popup[data-cr-lado=acima] {
1237
- margin-top: calc(var(--cr-spacing-spacing-3) * -1);
1238
- }
1239
- .cr-menu__list {
1240
- --cr-menu-item-height: 37px;
1241
- max-height: calc(var(--cr-menu-item-height) * 5);
1242
- margin: -3px;
1243
- padding: 3px;
1244
- overflow-y: auto;
1245
- list-style: none;
1246
- outline: none;
1247
- }
1248
- .cr-menu--compact .cr-menu__list {
1249
- --cr-menu-item-height: 29px;
1250
- }
1251
- .cr-menu__list::-webkit-scrollbar {
1252
- width: 12px;
1253
- }
1254
- .cr-menu__list::-webkit-scrollbar-track,
1255
- .cr-menu__list::-webkit-scrollbar-thumb {
1256
- border-color: transparent;
1257
- border-style: solid;
1258
- border-width: 3px 3px 3px 1px;
1259
- border-radius: 5px 7px 7px 5px / 7px;
1260
- background-clip: padding-box;
1261
- }
1262
- .cr-menu__list::-webkit-scrollbar-track {
1263
- background-color: var(--cr-color-fill-neutral-subtlest);
1264
- }
1265
- .cr-menu__list::-webkit-scrollbar-thumb {
1266
- background-color: var(--cr-color-fill-neutral-subtle);
1267
- }
1268
- .cr-menu__list::-webkit-scrollbar-thumb:hover {
1269
- background-color: var(--cr-color-fill-neutral-subtle-hover);
1270
- }
1271
- @supports not selector(::-webkit-scrollbar) {
1272
- .cr-menu__list {
1273
- scrollbar-width: thin;
1274
- scrollbar-color: var(--cr-color-fill-neutral-subtle) var(--cr-color-fill-neutral-subtlest);
1275
- }
1276
- }
1277
- .cr-menu__action {
1278
- gap: var(--cr-spacing-spacing-4);
1279
- height: var(--cr-menu-item-height);
1280
- color: inherit;
1281
- text-decoration: none;
1282
- }
1283
- .cr-menu--compact .cr-menu__action {
1284
- padding: var(--cr-padding-padding-3) var(--cr-padding-padding-5);
1285
- }
1286
- .cr-menu__label {
1287
- flex: 1;
1288
- min-width: 0;
1289
- overflow: hidden;
1290
- text-overflow: ellipsis;
1291
- white-space: nowrap;
1292
- }
1293
- .cr-menu__icon {
1294
- display: inline-flex;
1295
- flex-shrink: 0;
1296
- color: var(--cr-color-icon-neutral-base);
1297
- font-size: 20px;
1298
- }
1299
- .cr-menu__item:hover .cr-menu__action {
1300
- background-color: var(--cr-color-fill-neutral-container-hover);
1301
- }
1302
- .cr-menu__list:focus-visible .cr-menu__item[data-p-focused=true] .cr-menu__action {
1303
- background-color: var(--cr-color-fill-neutral-container);
1304
- box-shadow: inset 0 0 0 var(--cr-stroke-x-small) var(--cr-color-stroke-brand-base), var(--cr-effects-focus-ring);
1305
- }
1306
- .cr-menu__item--selected .cr-menu__action,
1307
- .cr-menu__item--selected:hover .cr-menu__action {
1308
- background-color: var(--cr-color-fill-selected-subtlest);
1309
- color: var(--cr-color-text-brand-base);
1310
- }
1311
- .cr-menu__item--selected .cr-menu__icon {
1312
- color: var(--cr-color-icon-brand-base);
1313
- }
1314
- .cr-menu__item[aria-disabled=true] .cr-menu__action {
1315
- color: var(--cr-color-text-disabled-base);
1316
- cursor: not-allowed;
1317
- }
1318
- .cr-menu__item[aria-disabled=true]:hover .cr-menu__action {
1319
- background-color: var(--cr-color-fill-neutral-container);
1320
- }
1321
- .cr-menu__loading {
1322
- display: flex;
1323
- align-items: center;
1324
- justify-content: center;
1325
- height: var(--cr-menu-item-height);
1326
- color: var(--cr-color-icon-neutral-subtle);
1327
- font-size: 24px;
1328
- }
1329
- .cr-menu__spinner {
1330
- animation: cr-menu-spin 1s linear infinite;
1331
- }
1332
- @media (prefers-reduced-motion: reduce) {
1333
- .cr-menu__spinner {
1334
- animation-duration: 3s;
1335
- }
1393
+ display: flex;
1394
+ flex-shrink: 0;
1395
+ align-items: center;
1396
+ justify-content: flex-end;
1397
+ gap: var(--cr-spacing-spacing-3);
1336
1398
  }
1337
- @keyframes cr-menu-spin {
1338
- to {
1339
- transform: rotate(360deg);
1340
- }
1399
+ .cr-drawer__close {
1400
+ position: absolute;
1401
+ top: var(--cr-spacing-spacing-4);
1402
+ right: var(--cr-spacing-spacing-4);
1341
1403
  }
1342
1404
 
1343
1405
  /* src/components/Menubar/Menubar.css */
@@ -1884,6 +1946,44 @@
1884
1946
  background-color: color-mix(in srgb, var(--cr-color-fill-neutral-boldest) calc(var(--cr-opacity-opacity-5) * 100%), transparent);
1885
1947
  backdrop-filter: blur(5px);
1886
1948
  }
1949
+ .cr-modal__mask:has(> .cr-modal--entrar) {
1950
+ animation: cr-modal-overlay 150ms forwards;
1951
+ }
1952
+ .cr-modal__mask:has(> .cr-modal--saindo) {
1953
+ animation: cr-modal-overlay 150ms reverse forwards;
1954
+ }
1955
+ @keyframes cr-modal-overlay {
1956
+ from {
1957
+ background-color: transparent;
1958
+ backdrop-filter: blur(0);
1959
+ }
1960
+ }
1961
+ .cr-modal--entrar,
1962
+ .cr-modal--saindo {
1963
+ opacity: 0;
1964
+ transform: scale(0.7);
1965
+ }
1966
+ .cr-modal--entrando {
1967
+ opacity: 1;
1968
+ transform: scale(1);
1969
+ transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
1970
+ }
1971
+ .cr-modal--entrou {
1972
+ transform: none;
1973
+ }
1974
+ .cr-modal--saindo {
1975
+ transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
1976
+ }
1977
+ @media (prefers-reduced-motion: reduce) {
1978
+ .cr-modal__mask:has(> .cr-modal--entrar),
1979
+ .cr-modal__mask:has(> .cr-modal--saindo) {
1980
+ animation: none;
1981
+ }
1982
+ .cr-modal--entrando,
1983
+ .cr-modal--saindo {
1984
+ transition: none;
1985
+ }
1986
+ }
1887
1987
  .cr-modal {
1888
1988
  display: flex;
1889
1989
  flex-direction: column;
@@ -2751,6 +2851,42 @@ body.p-scrollpanel-grabbed {
2751
2851
  box-shadow: var(--cr-effects-focus-ring), var(--cr-elevation-gray-bottom-5);
2752
2852
  }
2753
2853
 
2854
+ /* src/components/Skeleton/Skeleton.css */
2855
+ .cr-skeleton {
2856
+ position: relative;
2857
+ flex-shrink: 0;
2858
+ max-width: 100%;
2859
+ overflow: hidden;
2860
+ border-radius: var(--cr-radius-x-small);
2861
+ background-color: var(--cr-color-fill-neutral-subtlest);
2862
+ }
2863
+ .cr-skeleton--circle {
2864
+ border-radius: var(--cr-radius-full);
2865
+ }
2866
+ .cr-skeleton--animated::after {
2867
+ position: absolute;
2868
+ inset: 0;
2869
+ background:
2870
+ linear-gradient(
2871
+ 90deg,
2872
+ transparent,
2873
+ color-mix(in srgb, var(--cr-color-fill-neutral-container) 60%, transparent),
2874
+ transparent);
2875
+ transform: translateX(-100%);
2876
+ animation: cr-skeleton-brilho 1.2s infinite;
2877
+ content: "";
2878
+ }
2879
+ @keyframes cr-skeleton-brilho {
2880
+ to {
2881
+ transform: translateX(100%);
2882
+ }
2883
+ }
2884
+ @media (prefers-reduced-motion: reduce) {
2885
+ .cr-skeleton--animated::after {
2886
+ animation: none;
2887
+ }
2888
+ }
2889
+
2754
2890
  /* src/components/Switch/Switch.css */
2755
2891
  .cr-switch {
2756
2892
  --cr-switch-width: 48px;
@@ -2918,18 +3054,319 @@ body.p-scrollpanel-grabbed {
2918
3054
  background-color: var(--cr-color-fill-neutral-subtlest);
2919
3055
  }
2920
3056
 
2921
- /* src/components/Toast/Toast.css */
2922
- .cr-toast > div {
3057
+ /* src/components/Table/Table.css */
3058
+ .cr-table {
3059
+ container-type: inline-size;
3060
+ }
3061
+ .cr-table__box {
3062
+ position: relative;
3063
+ overflow: hidden;
3064
+ border: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
3065
+ border-radius: var(--cr-radius-medium);
3066
+ background-color: var(--cr-color-fill-neutral-container);
3067
+ }
3068
+ .cr-table__header {
3069
+ border-bottom: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
3070
+ }
3071
+ .cr-table__wrapper {
3072
+ position: relative;
3073
+ overflow: auto;
3074
+ }
3075
+ .cr-table__wrapper::-webkit-scrollbar-track {
3076
+ background-color: var(--cr-color-fill-neutral-subtlest);
3077
+ }
3078
+ .cr-table__table {
3079
+ width: 100%;
3080
+ border-spacing: 0;
3081
+ color: var(--cr-color-text-neutral-base);
3082
+ }
3083
+ .cr-table__thead {
3084
+ position: sticky;
3085
+ top: 0;
3086
+ z-index: 2;
3087
+ }
3088
+ .cr-table__head {
3089
+ position: relative;
3090
+ box-sizing: border-box;
3091
+ height: 52px;
3092
+ min-width: 52px;
3093
+ padding: var(--cr-padding-padding-4) var(--cr-padding-padding-6);
3094
+ border-right: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
3095
+ border-bottom: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
3096
+ background-color: var(--cr-color-fill-neutral-subtlest);
3097
+ font-family: var(--cr-typography-body-small-14-semibold-font-family);
3098
+ font-size: var(--cr-typography-body-small-14-semibold-font-size);
3099
+ font-weight: var(--cr-typography-body-small-14-semibold-font-weight);
3100
+ line-height: var(--cr-typography-body-small-14-semibold-line-height);
3101
+ letter-spacing: var(--cr-typography-body-small-14-semibold-letter-spacing);
3102
+ text-align: left;
3103
+ white-space: nowrap;
3104
+ }
3105
+ .cr-table__head:hover {
3106
+ background-color: var(--cr-color-fill-neutral-subtler);
3107
+ }
3108
+ .cr-table__head[aria-sort] {
3109
+ cursor: pointer;
3110
+ user-select: none;
3111
+ }
3112
+ .cr-table__head:focus-visible {
3113
+ outline: none;
3114
+ box-shadow: inset var(--cr-effects-focus-ring);
3115
+ }
3116
+ .cr-table__head-content {
3117
+ display: flex;
3118
+ align-items: center;
3119
+ gap: var(--cr-spacing-spacing-6);
3120
+ }
3121
+ .cr-table__head-title {
3122
+ flex: 1;
3123
+ min-width: 0;
3124
+ overflow: hidden;
3125
+ text-overflow: ellipsis;
3126
+ }
3127
+ .cr-table__title {
3128
+ display: inline-flex;
3129
+ align-items: center;
3130
+ gap: var(--cr-spacing-spacing-3);
3131
+ max-width: 100%;
3132
+ }
3133
+ .cr-table__title-text {
3134
+ overflow: hidden;
3135
+ text-overflow: ellipsis;
3136
+ }
3137
+ .cr-table__help,
3138
+ .cr-table__sort {
3139
+ display: inline-flex;
3140
+ flex-shrink: 0;
3141
+ color: var(--cr-color-icon-neutral-base);
3142
+ font-size: 16px;
3143
+ }
3144
+ .cr-table__help {
3145
+ padding: 0;
3146
+ border: 0;
3147
+ border-radius: var(--cr-radius-full);
3148
+ background: none;
3149
+ cursor: help;
3150
+ }
3151
+ .cr-table__help:focus-visible {
3152
+ outline: none;
3153
+ box-shadow: var(--cr-effects-focus-ring);
3154
+ }
3155
+ .cr-table__row > .cr-table__cell {
3156
+ box-sizing: border-box;
3157
+ height: 56px;
3158
+ padding: var(--cr-padding-padding-4) var(--cr-padding-padding-6);
3159
+ border-bottom: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
3160
+ background-color: var(--cr-color-fill-neutral-container);
3161
+ font-family: var(--cr-typography-body-small-14-regular-font-family);
3162
+ font-size: var(--cr-typography-body-small-14-regular-font-size);
3163
+ font-weight: var(--cr-typography-body-small-14-regular-font-weight);
3164
+ line-height: var(--cr-typography-body-small-14-regular-line-height);
3165
+ letter-spacing: var(--cr-typography-body-small-14-regular-letter-spacing);
3166
+ white-space: nowrap;
3167
+ overflow: hidden;
3168
+ text-overflow: ellipsis;
3169
+ }
3170
+ .cr-table__row:not(.cr-table__row--skeleton):hover > .cr-table__cell {
3171
+ background-color: var(--cr-color-fill-neutral-subtlest);
3172
+ }
3173
+ .cr-table__row[data-p-highlight=true] > .cr-table__cell,
3174
+ .cr-table__row[data-p-highlight=true]:hover > .cr-table__cell {
3175
+ background-color: var(--cr-color-fill-brand-subtlest);
3176
+ }
3177
+ .cr-table__cell--center {
3178
+ text-align: center;
3179
+ }
3180
+ .cr-table__cell--right {
3181
+ text-align: right;
3182
+ }
3183
+ .cr-table__cell--center > .cr-table__head-content {
3184
+ justify-content: center;
3185
+ }
3186
+ .cr-table__cell--right > .cr-table__head-content {
3187
+ justify-content: flex-end;
3188
+ }
3189
+ .cr-table__cell--selection {
3190
+ width: 56px;
3191
+ text-align: center;
3192
+ }
3193
+ .cr-table__head.cr-table__cell--selection,
3194
+ .cr-table__row > .cr-table__cell--selection {
3195
+ padding-right: 0;
3196
+ padding-left: 0;
3197
+ }
3198
+ .cr-table__cell--selection .cr-table__head-title:empty {
3199
+ display: none;
3200
+ }
3201
+ .cr-table__cell--selection > .cr-table__head-content {
3202
+ justify-content: center;
3203
+ }
3204
+ .cr-table__cell--selection .cr-table__head-title {
3205
+ flex: none;
3206
+ }
3207
+ .cr-table__cell--selection .cr-skeleton {
3208
+ margin: 0 auto;
3209
+ }
3210
+ .cr-table__cell--selection .cr-checkbox {
3211
+ display: inline-flex;
3212
+ vertical-align: middle;
3213
+ }
3214
+ .cr-table__cell--selection .cr-checkbox__control--checked:hover .cr-checkbox__box {
3215
+ border-color: var(--cr-color-fill-brand-base-hover);
3216
+ background-color: var(--cr-color-fill-brand-base-hover);
3217
+ }
3218
+ .cr-table__cell--frozen {
3219
+ position: sticky;
3220
+ z-index: 1;
3221
+ }
3222
+ .cr-table__head.cr-table__cell--frozen {
3223
+ z-index: 3;
3224
+ }
3225
+ .cr-table__resizer {
3226
+ position: absolute;
3227
+ top: 0;
3228
+ right: 0;
3229
+ width: 8px;
3230
+ height: 100%;
3231
+ cursor: col-resize;
3232
+ }
3233
+ .cr-table__resize-helper {
3234
+ position: absolute;
3235
+ z-index: 10;
3236
+ width: var(--cr-stroke-x-small);
3237
+ background-color: var(--cr-color-stroke-brand-base);
3238
+ }
3239
+ .cr-table__box:has(.cr-table__empty-row) .cr-table__thead,
3240
+ .cr-table__box:has(.cr-table__empty-row) .cr-table__paginator {
3241
+ display: none;
3242
+ }
3243
+ .cr-table__empty-row > td {
3244
+ padding: var(--cr-padding-padding-5) var(--cr-padding-padding-6);
3245
+ }
3246
+ .cr-table__paginator {
3247
+ row-gap: var(--cr-spacing-spacing-4);
3248
+ padding: var(--cr-padding-padding-6);
3249
+ }
3250
+ .cr-table__report {
3251
+ flex: 1;
3252
+ color: var(--cr-color-text-neutral-subtle);
3253
+ font-family: var(--cr-typography-body-small-14-regular-font-family);
3254
+ font-size: var(--cr-typography-body-small-14-regular-font-size);
3255
+ font-weight: var(--cr-typography-body-small-14-regular-font-weight);
3256
+ line-height: var(--cr-typography-body-small-14-regular-line-height);
3257
+ letter-spacing: var(--cr-typography-body-small-14-regular-letter-spacing);
3258
+ margin-right: var(--cr-spacing-spacing-4);
3259
+ }
3260
+ .cr-table-toolbar {
2923
3261
  display: flex;
2924
3262
  flex-direction: column;
2925
- gap: var(--cr-spacing-spacing-4);
3263
+ gap: var(--cr-spacing-spacing-6);
3264
+ padding: var(--cr-padding-padding-6);
3265
+ background-color: var(--cr-color-fill-neutral-container);
2926
3266
  }
3267
+ .cr-table-toolbar__main {
3268
+ display: flex;
3269
+ align-items: center;
3270
+ justify-content: space-between;
3271
+ gap: var(--cr-spacing-spacing-3);
3272
+ }
3273
+ .cr-table-toolbar__start,
3274
+ .cr-table-toolbar__end {
3275
+ display: flex;
3276
+ align-items: center;
3277
+ gap: var(--cr-spacing-spacing-3);
3278
+ }
3279
+ .cr-table-toolbar__search {
3280
+ width: 320px;
3281
+ }
3282
+ .cr-table-toolbar__filter {
3283
+ position: relative;
3284
+ display: inline-flex;
3285
+ }
3286
+ .cr-table-toolbar__filter-button {
3287
+ min-width: 110px;
3288
+ }
3289
+ .cr-table-toolbar__badge {
3290
+ position: absolute;
3291
+ top: -8px;
3292
+ right: -8px;
3293
+ }
3294
+ .cr-table-toolbar__action {
3295
+ min-width: 110px;
3296
+ }
3297
+ .cr-table-toolbar .cr-table-toolbar__filter-icon,
3298
+ .cr-table-toolbar .cr-table-toolbar__more {
3299
+ display: none;
3300
+ }
3301
+ .cr-table-toolbar__filters {
3302
+ display: flex;
3303
+ align-items: center;
3304
+ gap: var(--cr-spacing-spacing-5);
3305
+ min-width: 0;
3306
+ }
3307
+ .cr-table-toolbar__chips {
3308
+ display: flex;
3309
+ flex: 1;
3310
+ gap: var(--cr-spacing-spacing-3);
3311
+ min-width: 0;
3312
+ overflow-x: auto;
3313
+ scrollbar-width: none;
3314
+ }
3315
+ .cr-table-toolbar__chips::-webkit-scrollbar {
3316
+ display: none;
3317
+ }
3318
+ .cr-table-toolbar__chips > .cr-chip {
3319
+ flex-shrink: 0;
3320
+ }
3321
+ .cr-table-toolbar__chip-label {
3322
+ font-family: var(--cr-typography-label-medium-12-regular-font-family);
3323
+ font-weight: var(--cr-typography-label-medium-12-regular-font-weight);
3324
+ }
3325
+ .cr-table-toolbar__divider {
3326
+ align-self: center;
3327
+ height: 24px;
3328
+ }
3329
+ @container (max-width: 1359px) {
3330
+ .cr-table-toolbar .cr-table-toolbar__action--tertiary {
3331
+ display: none;
3332
+ }
3333
+ .cr-table-toolbar .cr-table-toolbar__more--tablet {
3334
+ display: inline-flex;
3335
+ }
3336
+ }
3337
+ @container (max-width: 767px) {
3338
+ .cr-table-toolbar__search {
3339
+ width: 220px;
3340
+ }
3341
+ .cr-table-toolbar .cr-table-toolbar__filter-button,
3342
+ .cr-table-toolbar .cr-table-toolbar__action,
3343
+ .cr-table-toolbar .cr-table-toolbar__more--tablet {
3344
+ display: none;
3345
+ }
3346
+ .cr-table-toolbar .cr-table-toolbar__filter-icon,
3347
+ .cr-table-toolbar .cr-table-toolbar__more--mobile {
3348
+ display: inline-flex;
3349
+ }
3350
+ }
3351
+ @container (max-width: 767px) {
3352
+ .cr-table__box {
3353
+ border-right: 0;
3354
+ border-left: 0;
3355
+ border-radius: 0;
3356
+ }
3357
+ .cr-table__report {
3358
+ flex-basis: 100%;
3359
+ }
3360
+ }
3361
+
3362
+ /* src/components/Toast/Toast.css */
2927
3363
  .cr-toast__message {
2928
3364
  box-sizing: border-box;
2929
3365
  width: 340px;
2930
3366
  max-width: 100%;
2931
3367
  padding: var(--cr-padding-padding-6);
2932
3368
  border-radius: var(--cr-radius-medium);
3369
+ margin-bottom: var(--cr-spacing-spacing-4);
2933
3370
  box-shadow: var(--cr-elevation-gray-bottom-5);
2934
3371
  color: var(--cr-color-text-neutral-base);
2935
3372
  --cr-toast-close-color: var(--cr-color-icon-neutral-base);
@@ -3015,16 +3452,28 @@ body.p-scrollpanel-grabbed {
3015
3452
  }
3016
3453
  .cr-toast__message--enter {
3017
3454
  opacity: 0;
3018
- transform: translateY(-8px);
3455
+ transform: translateY(50%);
3019
3456
  }
3020
3457
  .cr-toast__message--enter-active {
3021
3458
  opacity: 1;
3022
- transform: none;
3023
- transition: opacity 300ms ease-out, transform 300ms ease-out;
3459
+ transform: translateY(0);
3460
+ transition: transform 0.3s, opacity 0.3s;
3461
+ }
3462
+ .cr-toast__message--exit {
3463
+ max-height: 1000px;
3024
3464
  }
3025
3465
  .cr-toast__message--exit-active {
3466
+ max-height: 0;
3467
+ margin-bottom: 0;
3468
+ padding-top: 0;
3469
+ padding-bottom: 0;
3470
+ overflow: hidden;
3026
3471
  opacity: 0;
3027
- transition: opacity 300ms ease-in;
3472
+ transition:
3473
+ max-height 0.45s cubic-bezier(0, 1, 0, 1),
3474
+ padding 0.45s cubic-bezier(0, 1, 0, 1),
3475
+ opacity 0.3s,
3476
+ margin-bottom 0.3s;
3028
3477
  }
3029
3478
  @media (prefers-reduced-motion: reduce) {
3030
3479
  .cr-toast__message--enter-active,