@dmsi/wedgekit-react 0.0.414 → 0.0.417
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/chunk-3HBYDOYE.js +114 -0
- package/dist/{chunk-JIMJIJOF.js → chunk-5TGP5EFM.js} +2 -2
- package/dist/{chunk-2HMCS25C.js → chunk-6LHBY2IH.js} +1 -1
- package/dist/{chunk-6I5LZ2ZC.js → chunk-7AXHAWJX.js} +3 -3
- package/dist/{chunk-MQX7GFLX.js → chunk-CAQWLY5V.js} +24 -6
- package/dist/{chunk-QQ5G773N.js → chunk-DCLNAUC4.js} +1 -1
- package/dist/{chunk-GB4ZTUQV.js → chunk-DTW7JCBR.js} +36 -0
- package/dist/{chunk-OBY5EH47.js → chunk-HYJIDHAK.js} +6 -6
- package/dist/{chunk-LZGYABCX.js → chunk-IMOIZFJZ.js} +8 -8
- package/dist/chunk-KBJZUVLM.js +65 -0
- package/dist/{chunk-AA6GE3TH.js → chunk-LUPHOXAQ.js} +1 -1
- package/dist/chunk-NRNWEQD7.js +66 -0
- package/dist/{chunk-44TDIHUP.js → chunk-P3MIP2FD.js} +1 -1
- package/dist/chunk-PQWWVBSR.js +61 -0
- package/dist/{chunk-ERW5DEIO.js → chunk-RQLWSLVE.js} +1 -1
- package/dist/chunk-TYAQWVIM.js +159 -0
- package/dist/{chunk-KZZKQLKF.js → chunk-W55J2KJZ.js} +1 -1
- package/dist/chunk-Y2GK27RX.js +79 -0
- package/dist/components/Accordion.cjs +74 -2
- package/dist/components/Accordion.js +3 -3
- package/dist/components/CalendarRange.cjs +232 -53
- package/dist/components/CalendarRange.css +178 -65
- package/dist/components/CalendarRange.js +25 -17
- package/dist/components/Card.cjs +38 -2
- package/dist/components/Card.js +1 -1
- package/dist/components/CompactImagesPreview.cjs +59 -5
- package/dist/components/CompactImagesPreview.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +190 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +178 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +25 -17
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +200 -21
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +178 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +25 -17
- package/dist/components/DataGrid/PinnedColumns.cjs +215 -36
- package/dist/components/DataGrid/PinnedColumns.css +178 -65
- package/dist/components/DataGrid/PinnedColumns.js +25 -17
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +191 -12
- package/dist/components/DataGrid/TableBody/LoadingCell.css +178 -65
- package/dist/components/DataGrid/TableBody/LoadingCell.js +25 -17
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +197 -18
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +178 -65
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +25 -17
- package/dist/components/DataGrid/TableBody/index.cjs +212 -33
- package/dist/components/DataGrid/TableBody/index.css +178 -65
- package/dist/components/DataGrid/TableBody/index.js +25 -17
- package/dist/components/DataGrid/index.cjs +301 -122
- package/dist/components/DataGrid/index.css +178 -65
- package/dist/components/DataGrid/index.js +25 -17
- package/dist/components/DataGrid/utils.cjs +191 -12
- package/dist/components/DataGrid/utils.css +178 -65
- package/dist/components/DataGrid/utils.js +25 -17
- package/dist/components/DateInput.cjs +251 -72
- package/dist/components/DateInput.css +178 -65
- package/dist/components/DateInput.js +25 -17
- package/dist/components/DateRangeInput.cjs +251 -72
- package/dist/components/DateRangeInput.css +178 -65
- package/dist/components/DateRangeInput.js +25 -17
- package/dist/components/Grid.cjs +81 -76
- package/dist/components/Grid.js +1 -1
- package/dist/components/ListGroup.cjs +553 -0
- package/dist/components/ListGroup.js +11 -0
- package/dist/components/MobileDataGrid/ColumnList.cjs +36 -0
- package/dist/components/MobileDataGrid/ColumnList.js +3 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +198 -19
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +178 -65
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +25 -17
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +36 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +242 -27
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +178 -65
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +25 -17
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +36 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +36 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -5
- package/dist/components/MobileDataGrid/index.cjs +742 -527
- package/dist/components/MobileDataGrid/index.css +178 -65
- package/dist/components/MobileDataGrid/index.js +25 -17
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.cjs +36 -0
- package/dist/components/Notification.js +1 -1
- package/dist/components/PDFViewer/PDFElement.cjs +36 -0
- package/dist/components/PDFViewer/PDFElement.js +2 -2
- package/dist/components/PDFViewer/PDFNavigation.cjs +36 -0
- package/dist/components/PDFViewer/PDFNavigation.js +2 -2
- package/dist/components/PDFViewer/index.cjs +36 -0
- package/dist/components/PDFViewer/index.js +8 -111
- package/dist/components/Pagination.cjs +427 -0
- package/dist/components/Pagination.js +10 -0
- package/dist/components/ProductImagePreview/index.cjs +139 -127
- package/dist/components/ProductImagePreview/index.js +5 -5
- package/dist/components/SideMenuGroup.cjs +36 -0
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +36 -0
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/SimpleTable.cjs +521 -0
- package/dist/components/SimpleTable.js +10 -0
- package/dist/components/Stack.cjs +36 -0
- package/dist/components/Stack.js +1 -1
- package/dist/components/Swatch.cjs +36 -0
- package/dist/components/Swatch.js +1 -1
- package/dist/components/Time.cjs +36 -0
- package/dist/components/Time.js +1 -1
- package/dist/components/Tooltip.cjs +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Upload.cjs +36 -0
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +739 -131
- package/dist/components/index.css +178 -65
- package/dist/components/index.js +37 -17
- package/dist/index.css +178 -65
- package/package.json +1 -1
- package/src/components/Card.tsx +60 -2
- package/src/components/CompactImagesPreview.tsx +54 -30
- package/src/components/Grid.tsx +59 -91
- package/src/components/ListGroup.tsx +82 -0
- package/src/components/Pagination.tsx +182 -0
- package/src/components/SimpleTable.tsx +77 -0
- package/src/components/Stack.tsx +76 -0
- package/src/components/Tooltip.tsx +4 -3
- package/src/components/index.ts +4 -0
- package/dist/chunk-ER6RCOH3.js +0 -97
- package/dist/chunk-EZCH4PQS.js +0 -29
- package/dist/{chunk-D6YCMQPO.js → chunk-SBCFBHNG.js} +3 -3
|
@@ -690,6 +690,9 @@
|
|
|
690
690
|
.ml-auto {
|
|
691
691
|
margin-left: auto;
|
|
692
692
|
}
|
|
693
|
+
.box-content {
|
|
694
|
+
box-sizing: content-box;
|
|
695
|
+
}
|
|
693
696
|
.block {
|
|
694
697
|
display: block;
|
|
695
698
|
}
|
|
@@ -841,6 +844,9 @@
|
|
|
841
844
|
.\!w-20 {
|
|
842
845
|
width: calc(var(--spacing) * 20) !important;
|
|
843
846
|
}
|
|
847
|
+
.w-2\/3 {
|
|
848
|
+
width: calc(2/3 * 100%);
|
|
849
|
+
}
|
|
844
850
|
.w-3 {
|
|
845
851
|
width: calc(var(--spacing) * 3);
|
|
846
852
|
}
|
|
@@ -961,6 +967,9 @@
|
|
|
961
967
|
.grow-0 {
|
|
962
968
|
flex-grow: 0;
|
|
963
969
|
}
|
|
970
|
+
.border-collapse {
|
|
971
|
+
border-collapse: collapse;
|
|
972
|
+
}
|
|
964
973
|
.translate-x-0 {
|
|
965
974
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
975
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -996,6 +1005,9 @@
|
|
|
996
1005
|
.cursor-grab {
|
|
997
1006
|
cursor: grab;
|
|
998
1007
|
}
|
|
1008
|
+
.cursor-not-allowed {
|
|
1009
|
+
cursor: not-allowed;
|
|
1010
|
+
}
|
|
999
1011
|
.cursor-pointer {
|
|
1000
1012
|
cursor: pointer;
|
|
1001
1013
|
}
|
|
@@ -1074,6 +1086,9 @@
|
|
|
1074
1086
|
.justify-start {
|
|
1075
1087
|
justify-content: flex-start;
|
|
1076
1088
|
}
|
|
1089
|
+
.gap-0 {
|
|
1090
|
+
gap: calc(var(--spacing) * 0);
|
|
1091
|
+
}
|
|
1077
1092
|
.gap-0\.5 {
|
|
1078
1093
|
gap: calc(var(--spacing) * 0.5);
|
|
1079
1094
|
}
|
|
@@ -1284,6 +1299,10 @@
|
|
|
1284
1299
|
border-inline-style: var(--tw-border-style);
|
|
1285
1300
|
border-inline-width: 0px;
|
|
1286
1301
|
}
|
|
1302
|
+
.border-x-1 {
|
|
1303
|
+
border-inline-style: var(--tw-border-style);
|
|
1304
|
+
border-inline-width: 1px;
|
|
1305
|
+
}
|
|
1287
1306
|
.border-y {
|
|
1288
1307
|
border-block-style: var(--tw-border-style);
|
|
1289
1308
|
border-block-width: 1px;
|
|
@@ -1300,6 +1319,10 @@
|
|
|
1300
1319
|
border-right-style: var(--tw-border-style);
|
|
1301
1320
|
border-right-width: 0px;
|
|
1302
1321
|
}
|
|
1322
|
+
.border-r-1 {
|
|
1323
|
+
border-right-style: var(--tw-border-style);
|
|
1324
|
+
border-right-width: 1px;
|
|
1325
|
+
}
|
|
1303
1326
|
.border-b {
|
|
1304
1327
|
border-bottom-style: var(--tw-border-style);
|
|
1305
1328
|
border-bottom-width: 1px;
|
|
@@ -1308,6 +1331,10 @@
|
|
|
1308
1331
|
border-left-style: var(--tw-border-style);
|
|
1309
1332
|
border-left-width: 1px;
|
|
1310
1333
|
}
|
|
1334
|
+
.border-l-1 {
|
|
1335
|
+
border-left-style: var(--tw-border-style);
|
|
1336
|
+
border-left-width: 1px;
|
|
1337
|
+
}
|
|
1311
1338
|
.border-dashed {
|
|
1312
1339
|
--tw-border-style: dashed;
|
|
1313
1340
|
border-style: dashed;
|
|
@@ -1885,6 +1912,9 @@
|
|
|
1885
1912
|
.\!p-0 {
|
|
1886
1913
|
padding: calc(var(--spacing) * 0) !important;
|
|
1887
1914
|
}
|
|
1915
|
+
.p-0 {
|
|
1916
|
+
padding: calc(var(--spacing) * 0);
|
|
1917
|
+
}
|
|
1888
1918
|
.p-0\.5 {
|
|
1889
1919
|
padding: calc(var(--spacing) * 0.5);
|
|
1890
1920
|
}
|
|
@@ -1999,12 +2029,33 @@
|
|
|
1999
2029
|
.pt-\[7px\] {
|
|
2000
2030
|
padding-top: 7px;
|
|
2001
2031
|
}
|
|
2032
|
+
.pt-mobile-component-padding {
|
|
2033
|
+
padding-top: var(--spacing-mobile-component-padding);
|
|
2034
|
+
}
|
|
2035
|
+
.pt-mobile-container-padding {
|
|
2036
|
+
padding-top: var(--spacing-mobile-container-padding);
|
|
2037
|
+
}
|
|
2038
|
+
.pt-mobile-layout-padding {
|
|
2039
|
+
padding-top: var(--spacing-mobile-layout-padding);
|
|
2040
|
+
}
|
|
2041
|
+
.pr-mobile-component-padding {
|
|
2042
|
+
padding-right: var(--spacing-mobile-component-padding);
|
|
2043
|
+
}
|
|
2044
|
+
.pr-mobile-container-padding {
|
|
2045
|
+
padding-right: var(--spacing-mobile-container-padding);
|
|
2046
|
+
}
|
|
2047
|
+
.pr-mobile-layout-padding {
|
|
2048
|
+
padding-right: var(--spacing-mobile-layout-padding);
|
|
2049
|
+
}
|
|
2002
2050
|
.pb-2 {
|
|
2003
2051
|
padding-bottom: calc(var(--spacing) * 2);
|
|
2004
2052
|
}
|
|
2005
2053
|
.pb-mobile-component-padding {
|
|
2006
2054
|
padding-bottom: var(--spacing-mobile-component-padding);
|
|
2007
2055
|
}
|
|
2056
|
+
.pb-mobile-container-padding {
|
|
2057
|
+
padding-bottom: var(--spacing-mobile-container-padding);
|
|
2058
|
+
}
|
|
2008
2059
|
.pb-mobile-layout-padding {
|
|
2009
2060
|
padding-bottom: var(--spacing-mobile-layout-padding);
|
|
2010
2061
|
}
|
|
@@ -2026,6 +2077,12 @@
|
|
|
2026
2077
|
.pl-mobile-component-padding {
|
|
2027
2078
|
padding-left: var(--spacing-mobile-component-padding);
|
|
2028
2079
|
}
|
|
2080
|
+
.pl-mobile-container-padding {
|
|
2081
|
+
padding-left: var(--spacing-mobile-container-padding);
|
|
2082
|
+
}
|
|
2083
|
+
.pl-mobile-layout-padding {
|
|
2084
|
+
padding-left: var(--spacing-mobile-layout-padding);
|
|
2085
|
+
}
|
|
2029
2086
|
.text-center {
|
|
2030
2087
|
text-align: center;
|
|
2031
2088
|
}
|
|
@@ -2035,6 +2092,9 @@
|
|
|
2035
2092
|
.text-right {
|
|
2036
2093
|
text-align: right;
|
|
2037
2094
|
}
|
|
2095
|
+
.align-middle {
|
|
2096
|
+
vertical-align: middle;
|
|
2097
|
+
}
|
|
2038
2098
|
.font-sans {
|
|
2039
2099
|
font-family: var(--font-sans);
|
|
2040
2100
|
}
|
|
@@ -2243,6 +2303,9 @@
|
|
|
2243
2303
|
.text-text-action-normal {
|
|
2244
2304
|
color: var(--color-text-action-normal);
|
|
2245
2305
|
}
|
|
2306
|
+
.text-text-action-primary-disabled {
|
|
2307
|
+
color: var(--color-text-action-primary-disabled);
|
|
2308
|
+
}
|
|
2246
2309
|
.text-text-action-primary-normal {
|
|
2247
2310
|
color: var(--color-text-action-primary-normal);
|
|
2248
2311
|
}
|
|
@@ -2321,6 +2384,9 @@
|
|
|
2321
2384
|
.opacity-40 {
|
|
2322
2385
|
opacity: 40%;
|
|
2323
2386
|
}
|
|
2387
|
+
.opacity-50 {
|
|
2388
|
+
opacity: 50%;
|
|
2389
|
+
}
|
|
2324
2390
|
.opacity-70 {
|
|
2325
2391
|
opacity: 70%;
|
|
2326
2392
|
}
|
|
@@ -3060,6 +3126,13 @@
|
|
|
3060
3126
|
}
|
|
3061
3127
|
}
|
|
3062
3128
|
}
|
|
3129
|
+
.hover\:bg-background-grouped-secondary-normal {
|
|
3130
|
+
&:hover {
|
|
3131
|
+
@media (hover: hover) {
|
|
3132
|
+
background-color: var(--color-background-grouped-secondary-normal);
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3063
3136
|
.hover\:\!text-brand-text-on-action-primary-hover {
|
|
3064
3137
|
&:hover {
|
|
3065
3138
|
@media (hover: hover) {
|
|
@@ -3206,6 +3279,11 @@
|
|
|
3206
3279
|
background-color: var(--color-background-action-secondary-hover);
|
|
3207
3280
|
}
|
|
3208
3281
|
}
|
|
3282
|
+
.focus\:bg-background-grouped-secondary-normal {
|
|
3283
|
+
&:focus {
|
|
3284
|
+
background-color: var(--color-background-grouped-secondary-normal);
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3209
3287
|
.focus\:text-text-action-critical-hover {
|
|
3210
3288
|
&:focus {
|
|
3211
3289
|
color: var(--color-text-action-critical-hover);
|
|
@@ -3416,6 +3494,11 @@
|
|
|
3416
3494
|
pointer-events: none;
|
|
3417
3495
|
}
|
|
3418
3496
|
}
|
|
3497
|
+
.disabled\:cursor-default {
|
|
3498
|
+
&:disabled {
|
|
3499
|
+
cursor: default;
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3419
3502
|
.disabled\:\!border-border-primary-normal {
|
|
3420
3503
|
&:disabled {
|
|
3421
3504
|
border-color: var(--color-border-primary-normal) !important;
|
|
@@ -3722,11 +3805,6 @@
|
|
|
3722
3805
|
width: 100%;
|
|
3723
3806
|
}
|
|
3724
3807
|
}
|
|
3725
|
-
.sm\:grid-cols-2 {
|
|
3726
|
-
@media (width >= 320px) {
|
|
3727
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3728
|
-
}
|
|
3729
|
-
}
|
|
3730
3808
|
.md\:block {
|
|
3731
3809
|
@media (width >= 768px) {
|
|
3732
3810
|
display: block;
|
|
@@ -3757,66 +3835,6 @@
|
|
|
3757
3835
|
gap: calc(var(--spacing) * 2);
|
|
3758
3836
|
}
|
|
3759
3837
|
}
|
|
3760
|
-
.lg\:grid-cols-4 {
|
|
3761
|
-
@media (width >= 1024px) {
|
|
3762
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3763
|
-
}
|
|
3764
|
-
}
|
|
3765
|
-
.xl\:grid-cols-4 {
|
|
3766
|
-
@media (width >= 1280px) {
|
|
3767
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3768
|
-
}
|
|
3769
|
-
}
|
|
3770
|
-
.xl\:grid-cols-5 {
|
|
3771
|
-
@media (width >= 1280px) {
|
|
3772
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
3773
|
-
}
|
|
3774
|
-
}
|
|
3775
|
-
.xl\:grid-cols-6 {
|
|
3776
|
-
@media (width >= 1280px) {
|
|
3777
|
-
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3778
|
-
}
|
|
3779
|
-
}
|
|
3780
|
-
.xl\:grid-cols-8 {
|
|
3781
|
-
@media (width >= 1280px) {
|
|
3782
|
-
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3783
|
-
}
|
|
3784
|
-
}
|
|
3785
|
-
.\32xl\:grid-cols-6 {
|
|
3786
|
-
@media (width >= 1536px) {
|
|
3787
|
-
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
.\32xl\:grid-cols-7 {
|
|
3791
|
-
@media (width >= 1536px) {
|
|
3792
|
-
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
3793
|
-
}
|
|
3794
|
-
}
|
|
3795
|
-
.\32xl\:grid-cols-8 {
|
|
3796
|
-
@media (width >= 1536px) {
|
|
3797
|
-
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3798
|
-
}
|
|
3799
|
-
}
|
|
3800
|
-
.\32xl\:grid-cols-9 {
|
|
3801
|
-
@media (width >= 1536px) {
|
|
3802
|
-
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
3803
|
-
}
|
|
3804
|
-
}
|
|
3805
|
-
.\32xl\:grid-cols-10 {
|
|
3806
|
-
@media (width >= 1536px) {
|
|
3807
|
-
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
3808
|
-
}
|
|
3809
|
-
}
|
|
3810
|
-
.\32xl\:grid-cols-11 {
|
|
3811
|
-
@media (width >= 1536px) {
|
|
3812
|
-
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
3813
|
-
}
|
|
3814
|
-
}
|
|
3815
|
-
.\32xl\:grid-cols-12 {
|
|
3816
|
-
@media (width >= 1536px) {
|
|
3817
|
-
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
3818
|
-
}
|
|
3819
|
-
}
|
|
3820
3838
|
.compact\:mt-desktop-compact-component-gap {
|
|
3821
3839
|
&:where([data-compact]) {
|
|
3822
3840
|
margin-top: var(--spacing-desktop-compact-component-gap);
|
|
@@ -3922,11 +3940,46 @@
|
|
|
3922
3940
|
padding-block: var(--spacing-desktop-compact-layout-padding);
|
|
3923
3941
|
}
|
|
3924
3942
|
}
|
|
3943
|
+
.compact\:pt-desktop-compact-component-padding {
|
|
3944
|
+
&:where([data-compact]) {
|
|
3945
|
+
padding-top: var(--spacing-desktop-compact-component-padding);
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
.compact\:pt-desktop-compact-container-padding {
|
|
3949
|
+
&:where([data-compact]) {
|
|
3950
|
+
padding-top: var(--spacing-desktop-compact-container-padding);
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
.compact\:pt-desktop-compact-layout-padding {
|
|
3954
|
+
&:where([data-compact]) {
|
|
3955
|
+
padding-top: var(--spacing-desktop-compact-layout-padding);
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
.compact\:pr-desktop-compact-component-padding {
|
|
3959
|
+
&:where([data-compact]) {
|
|
3960
|
+
padding-right: var(--spacing-desktop-compact-component-padding);
|
|
3961
|
+
}
|
|
3962
|
+
}
|
|
3963
|
+
.compact\:pr-desktop-compact-container-padding {
|
|
3964
|
+
&:where([data-compact]) {
|
|
3965
|
+
padding-right: var(--spacing-desktop-compact-container-padding);
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
.compact\:pr-desktop-compact-layout-padding {
|
|
3969
|
+
&:where([data-compact]) {
|
|
3970
|
+
padding-right: var(--spacing-desktop-compact-layout-padding);
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3925
3973
|
.compact\:pb-desktop-compact-component-padding {
|
|
3926
3974
|
&:where([data-compact]) {
|
|
3927
3975
|
padding-bottom: var(--spacing-desktop-compact-component-padding);
|
|
3928
3976
|
}
|
|
3929
3977
|
}
|
|
3978
|
+
.compact\:pb-desktop-compact-container-padding {
|
|
3979
|
+
&:where([data-compact]) {
|
|
3980
|
+
padding-bottom: var(--spacing-desktop-compact-container-padding);
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3930
3983
|
.compact\:pb-desktop-compact-layout-padding {
|
|
3931
3984
|
&:where([data-compact]) {
|
|
3932
3985
|
padding-bottom: var(--spacing-desktop-compact-layout-padding);
|
|
@@ -3937,6 +3990,16 @@
|
|
|
3937
3990
|
padding-left: var(--spacing-desktop-compact-component-padding);
|
|
3938
3991
|
}
|
|
3939
3992
|
}
|
|
3993
|
+
.compact\:pl-desktop-compact-container-padding {
|
|
3994
|
+
&:where([data-compact]) {
|
|
3995
|
+
padding-left: var(--spacing-desktop-compact-container-padding);
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
.compact\:pl-desktop-compact-layout-padding {
|
|
3999
|
+
&:where([data-compact]) {
|
|
4000
|
+
padding-left: var(--spacing-desktop-compact-layout-padding);
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
3940
4003
|
.compact\:text-caption-desktop-compact {
|
|
3941
4004
|
&:where([data-compact]) {
|
|
3942
4005
|
font-size: var(--text-caption-desktop-compact);
|
|
@@ -4108,6 +4171,11 @@
|
|
|
4108
4171
|
flex-grow: 0;
|
|
4109
4172
|
}
|
|
4110
4173
|
}
|
|
4174
|
+
.desktop\:grid-cols-4 {
|
|
4175
|
+
@container root (width >= 48rem) {
|
|
4176
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4111
4179
|
.desktop\:flex-col {
|
|
4112
4180
|
@container root (width >= 48rem) {
|
|
4113
4181
|
flex-direction: column;
|
|
@@ -4243,16 +4311,51 @@
|
|
|
4243
4311
|
padding-block: var(--spacing-desktop-layout-padding);
|
|
4244
4312
|
}
|
|
4245
4313
|
}
|
|
4314
|
+
.desktop\:pt-desktop-component-padding {
|
|
4315
|
+
@container root (width >= 48rem) {
|
|
4316
|
+
padding-top: var(--spacing-desktop-component-padding);
|
|
4317
|
+
}
|
|
4318
|
+
}
|
|
4319
|
+
.desktop\:pt-desktop-container-padding {
|
|
4320
|
+
@container root (width >= 48rem) {
|
|
4321
|
+
padding-top: var(--spacing-desktop-container-padding);
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4246
4324
|
.desktop\:pt-desktop-layout-gap {
|
|
4247
4325
|
@container root (width >= 48rem) {
|
|
4248
4326
|
padding-top: var(--spacing-desktop-layout-gap);
|
|
4249
4327
|
}
|
|
4250
4328
|
}
|
|
4329
|
+
.desktop\:pt-desktop-layout-padding {
|
|
4330
|
+
@container root (width >= 48rem) {
|
|
4331
|
+
padding-top: var(--spacing-desktop-layout-padding);
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
.desktop\:pr-desktop-component-padding {
|
|
4335
|
+
@container root (width >= 48rem) {
|
|
4336
|
+
padding-right: var(--spacing-desktop-component-padding);
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
.desktop\:pr-desktop-container-padding {
|
|
4340
|
+
@container root (width >= 48rem) {
|
|
4341
|
+
padding-right: var(--spacing-desktop-container-padding);
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
.desktop\:pr-desktop-layout-padding {
|
|
4345
|
+
@container root (width >= 48rem) {
|
|
4346
|
+
padding-right: var(--spacing-desktop-layout-padding);
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4251
4349
|
.desktop\:pb-desktop-component-padding {
|
|
4252
4350
|
@container root (width >= 48rem) {
|
|
4253
4351
|
padding-bottom: var(--spacing-desktop-component-padding);
|
|
4254
4352
|
}
|
|
4255
4353
|
}
|
|
4354
|
+
.desktop\:pb-desktop-container-padding {
|
|
4355
|
+
@container root (width >= 48rem) {
|
|
4356
|
+
padding-bottom: var(--spacing-desktop-container-padding);
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4256
4359
|
.desktop\:pb-desktop-layout-padding {
|
|
4257
4360
|
@container root (width >= 48rem) {
|
|
4258
4361
|
padding-bottom: var(--spacing-desktop-layout-padding);
|
|
@@ -4263,6 +4366,16 @@
|
|
|
4263
4366
|
padding-left: var(--spacing-desktop-component-padding);
|
|
4264
4367
|
}
|
|
4265
4368
|
}
|
|
4369
|
+
.desktop\:pl-desktop-container-padding {
|
|
4370
|
+
@container root (width >= 48rem) {
|
|
4371
|
+
padding-left: var(--spacing-desktop-container-padding);
|
|
4372
|
+
}
|
|
4373
|
+
}
|
|
4374
|
+
.desktop\:pl-desktop-layout-padding {
|
|
4375
|
+
@container root (width >= 48rem) {
|
|
4376
|
+
padding-left: var(--spacing-desktop-layout-padding);
|
|
4377
|
+
}
|
|
4378
|
+
}
|
|
4266
4379
|
.desktop\:text-caption-desktop {
|
|
4267
4380
|
@container root (width >= 48rem) {
|
|
4268
4381
|
font-size: var(--text-caption-desktop);
|
|
@@ -3,37 +3,45 @@ import {
|
|
|
3
3
|
CalendarRange_default,
|
|
4
4
|
isWeekend
|
|
5
5
|
} from "../chunk-UOHCOOC2.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-HYJIDHAK.js";
|
|
7
7
|
import "../chunk-M7INAUAJ.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-7AXHAWJX.js";
|
|
9
|
+
import "../chunk-P3MIP2FD.js";
|
|
10
|
+
import "../chunk-3HBYDOYE.js";
|
|
11
|
+
import "../chunk-IMOIZFJZ.js";
|
|
12
|
+
import "../chunk-MBZ55T2D.js";
|
|
13
|
+
import "../chunk-2IKT6IHB.js";
|
|
11
14
|
import "../chunk-G5DEC7H3.js";
|
|
12
15
|
import "../chunk-3X3Y4TMS.js";
|
|
13
16
|
import "../chunk-BQNPOGD5.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-AA6GE3TH.js";
|
|
17
|
-
import "../chunk-KZZKQLKF.js";
|
|
17
|
+
import "../chunk-LUPHOXAQ.js";
|
|
18
|
+
import "../chunk-W55J2KJZ.js";
|
|
18
19
|
import "../chunk-5IFPG6TS.js";
|
|
19
20
|
import "../chunk-AJ5M6MVX.js";
|
|
20
21
|
import "../chunk-M6TSTDNZ.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-EJSPFQCY.js";
|
|
23
|
+
import "../chunk-RQLWSLVE.js";
|
|
24
|
+
import "../chunk-6LHBY2IH.js";
|
|
25
|
+
import "../chunk-VJVY6NPF.js";
|
|
23
26
|
import "../chunk-EWGHVZL5.js";
|
|
27
|
+
import "../chunk-DCLNAUC4.js";
|
|
28
|
+
import "../chunk-PQWWVBSR.js";
|
|
29
|
+
import "../chunk-AT4AWD6B.js";
|
|
24
30
|
import "../chunk-J5V2JRIK.js";
|
|
25
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-TYAQWVIM.js";
|
|
32
|
+
import "../chunk-SBCFBHNG.js";
|
|
26
33
|
import "../chunk-4RJKB7LC.js";
|
|
34
|
+
import "../chunk-AG43RS4Q.js";
|
|
27
35
|
import "../chunk-XM7IQHBU.js";
|
|
28
36
|
import "../chunk-FRHPFACM.js";
|
|
29
37
|
import "../chunk-T36HX6QY.js";
|
|
30
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-NRNWEQD7.js";
|
|
31
39
|
import "../chunk-SBRRNFOP.js";
|
|
32
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-Y2GK27RX.js";
|
|
33
41
|
import "../chunk-EU73QPW7.js";
|
|
34
42
|
import "../chunk-QVWYTQKL.js";
|
|
35
43
|
import "../chunk-NO5BIKWS.js";
|
|
36
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-CAQWLY5V.js";
|
|
37
45
|
import "../chunk-V47RTW7E.js";
|
|
38
46
|
import "../chunk-22VBZWJG.js";
|
|
39
47
|
import "../chunk-NVOZAVEX.js";
|
|
@@ -47,9 +55,9 @@ import "../chunk-VXWSAIB5.js";
|
|
|
47
55
|
import "../chunk-TYTD4FLW.js";
|
|
48
56
|
import "../chunk-5UH6QUFB.js";
|
|
49
57
|
import "../chunk-FA7IFW66.js";
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-5TGP5EFM.js";
|
|
59
|
+
import "../chunk-KBJZUVLM.js";
|
|
60
|
+
import "../chunk-DTW7JCBR.js";
|
|
53
61
|
import "../chunk-OGIFIPKH.js";
|
|
54
62
|
import "../chunk-NKUETCDA.js";
|
|
55
63
|
import "../chunk-WWAPK5PH.js";
|
package/dist/components/Card.cjs
CHANGED
|
@@ -65,14 +65,50 @@ module.exports = __toCommonJS(Card_exports);
|
|
|
65
65
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
66
66
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
67
67
|
function Card(props) {
|
|
68
|
-
const _a = props, {
|
|
68
|
+
const _a = props, {
|
|
69
|
+
children,
|
|
70
|
+
selected,
|
|
71
|
+
testid,
|
|
72
|
+
padding,
|
|
73
|
+
paddingX,
|
|
74
|
+
paddingY,
|
|
75
|
+
paddingBottom,
|
|
76
|
+
paddingTop,
|
|
77
|
+
paddingLeft,
|
|
78
|
+
paddingRight
|
|
79
|
+
} = _a, rest = __objRest(_a, [
|
|
80
|
+
"children",
|
|
81
|
+
"selected",
|
|
82
|
+
"testid",
|
|
83
|
+
"padding",
|
|
84
|
+
"paddingX",
|
|
85
|
+
"paddingY",
|
|
86
|
+
"paddingBottom",
|
|
87
|
+
"paddingTop",
|
|
88
|
+
"paddingLeft",
|
|
89
|
+
"paddingRight"
|
|
90
|
+
]);
|
|
69
91
|
const CardComponent = props.as || "div";
|
|
92
|
+
const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
|
|
93
|
+
const paddingClasses = (0, import_clsx.default)(
|
|
94
|
+
// Backward compatibility: if no new padding props provided keep existing class.
|
|
95
|
+
!anyPaddingPropSpecified && "p-desktop-layout-padding",
|
|
96
|
+
// New responsive spacing tokens (mirrors Stack for layout sizing)
|
|
97
|
+
padding && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
98
|
+
paddingX && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
99
|
+
paddingY && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
100
|
+
paddingBottom && "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding",
|
|
101
|
+
paddingTop && "pt-mobile-layout-padding desktop:pt-desktop-layout-padding compact:pt-desktop-compact-layout-padding",
|
|
102
|
+
paddingLeft && "pl-mobile-layout-padding desktop:pl-desktop-layout-padding compact:pl-desktop-compact-layout-padding",
|
|
103
|
+
paddingRight && "pr-mobile-layout-padding desktop:pr-desktop-layout-padding compact:pr-desktop-compact-layout-padding"
|
|
104
|
+
);
|
|
70
105
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
106
|
CardComponent,
|
|
72
107
|
__spreadProps(__spreadValues({}, rest), {
|
|
73
108
|
"data-testid": testid,
|
|
74
109
|
className: (0, import_clsx.default)(
|
|
75
|
-
"rounded-sm
|
|
110
|
+
"rounded-sm",
|
|
111
|
+
paddingClasses,
|
|
76
112
|
selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
|
|
77
113
|
rest.className
|
|
78
114
|
),
|
package/dist/components/Card.js
CHANGED
|
@@ -232,6 +232,10 @@ var Stack = (_a) => {
|
|
|
232
232
|
padding,
|
|
233
233
|
paddingX,
|
|
234
234
|
paddingY,
|
|
235
|
+
paddingBottom,
|
|
236
|
+
paddingTop,
|
|
237
|
+
paddingLeft,
|
|
238
|
+
paddingRight,
|
|
235
239
|
margin,
|
|
236
240
|
marginX,
|
|
237
241
|
marginY,
|
|
@@ -247,6 +251,10 @@ var Stack = (_a) => {
|
|
|
247
251
|
height,
|
|
248
252
|
maxHeight,
|
|
249
253
|
borderColor,
|
|
254
|
+
borderTopColor,
|
|
255
|
+
borderRightColor,
|
|
256
|
+
borderBottomColor,
|
|
257
|
+
borderLeftColor,
|
|
250
258
|
backgroundColor,
|
|
251
259
|
sizing = "none",
|
|
252
260
|
overflowY = "inherit",
|
|
@@ -272,6 +280,10 @@ var Stack = (_a) => {
|
|
|
272
280
|
"padding",
|
|
273
281
|
"paddingX",
|
|
274
282
|
"paddingY",
|
|
283
|
+
"paddingBottom",
|
|
284
|
+
"paddingTop",
|
|
285
|
+
"paddingLeft",
|
|
286
|
+
"paddingRight",
|
|
275
287
|
"margin",
|
|
276
288
|
"marginX",
|
|
277
289
|
"marginY",
|
|
@@ -287,6 +299,10 @@ var Stack = (_a) => {
|
|
|
287
299
|
"height",
|
|
288
300
|
"maxHeight",
|
|
289
301
|
"borderColor",
|
|
302
|
+
"borderTopColor",
|
|
303
|
+
"borderRightColor",
|
|
304
|
+
"borderBottomColor",
|
|
305
|
+
"borderLeftColor",
|
|
290
306
|
"backgroundColor",
|
|
291
307
|
"sizing",
|
|
292
308
|
"overflowY",
|
|
@@ -322,6 +338,10 @@ var Stack = (_a) => {
|
|
|
322
338
|
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
323
339
|
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
324
340
|
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
341
|
+
borderTop: borderTopColor ? `1px solid var(--color-${borderTopColor})` : void 0,
|
|
342
|
+
borderRight: borderRightColor ? `1px solid var(--color-${borderRightColor})` : void 0,
|
|
343
|
+
borderBottom: borderBottomColor ? `1px solid var(--color-${borderBottomColor})` : void 0,
|
|
344
|
+
borderLeft: borderLeftColor ? `1px solid var(--color-${borderLeftColor})` : void 0,
|
|
325
345
|
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
326
346
|
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
327
347
|
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
@@ -361,6 +381,22 @@ var Stack = (_a) => {
|
|
|
361
381
|
paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
362
382
|
paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
|
|
363
383
|
paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
384
|
+
paddingBottom && sizing === "container" && "pb-mobile-container-padding desktop:pb-desktop-container-padding compact:pb-desktop-compact-container-padding",
|
|
385
|
+
paddingBottom && sizing === "layout" && "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding",
|
|
386
|
+
paddingBottom && sizing === "layout-group" && "pb-mobile-layout-group-padding desktop:pb-desktop-layout-group-padding compact:pb-desktop-compact-layout-group-padding",
|
|
387
|
+
paddingBottom && sizing === "component" && "pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding",
|
|
388
|
+
paddingTop && sizing === "container" && "pt-mobile-container-padding desktop:pt-desktop-container-padding compact:pt-desktop-compact-container-padding",
|
|
389
|
+
paddingTop && sizing === "layout" && "pt-mobile-layout-padding desktop:pt-desktop-layout-padding compact:pt-desktop-compact-layout-padding",
|
|
390
|
+
paddingTop && sizing === "layout-group" && "pt-mobile-layout-group-padding desktop:pt-desktop-layout-group-padding compact:pt-desktop-compact-layout-group-padding",
|
|
391
|
+
paddingTop && sizing === "component" && "pt-mobile-component-padding desktop:pt-desktop-component-padding compact:pt-desktop-compact-component-padding",
|
|
392
|
+
paddingLeft && sizing === "container" && "pl-mobile-container-padding desktop:pl-desktop-container-padding compact:pl-desktop-compact-container-padding",
|
|
393
|
+
paddingLeft && sizing === "layout" && "pl-mobile-layout-padding desktop:pl-desktop-layout-padding compact:pl-desktop-compact-layout-padding",
|
|
394
|
+
paddingLeft && sizing === "layout-group" && "pl-mobile-layout-group-padding desktop:pl-desktop-layout-group-padding compact:pl-desktop-compact-layout-group-padding",
|
|
395
|
+
paddingLeft && sizing === "component" && "pl-mobile-component-padding desktop:pl-desktop-component-padding compact:pl-desktop-compact-component-padding",
|
|
396
|
+
paddingRight && sizing === "container" && "pr-mobile-container-padding desktop:pr-desktop-container-padding compact:pr-desktop-compact-container-padding",
|
|
397
|
+
paddingRight && sizing === "layout" && "pr-mobile-layout-padding desktop:pr-desktop-layout-padding compact:pr-desktop-compact-layout-padding",
|
|
398
|
+
paddingRight && sizing === "layout-group" && "pr-mobile-layout-group-padding desktop:pr-desktop-layout-group-padding compact:pr-desktop-compact-layout-group-padding",
|
|
399
|
+
paddingRight && sizing === "component" && "pr-mobile-component-padding desktop:pr-desktop-component-padding compact:pr-desktop-compact-component-padding",
|
|
364
400
|
margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
|
|
365
401
|
marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
|
|
366
402
|
marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
|
|
@@ -420,10 +456,22 @@ function CompactImagesPreview(props) {
|
|
|
420
456
|
thumbnailHeight = 30,
|
|
421
457
|
enableThumbnailBorder = false,
|
|
422
458
|
placeholderImageUri,
|
|
423
|
-
|
|
459
|
+
placeholderAlt = "placeholder image",
|
|
460
|
+
onChangeSource,
|
|
461
|
+
onMainImageClick
|
|
424
462
|
} = props;
|
|
425
463
|
const isMobile = useMatchesMobile();
|
|
426
464
|
const imagesCount = sources.length;
|
|
465
|
+
const handleImgError = (0, import_react5.useCallback)(
|
|
466
|
+
(e) => {
|
|
467
|
+
if (!placeholderImageUri) return;
|
|
468
|
+
const img = e.currentTarget;
|
|
469
|
+
if (img.src === placeholderImageUri) return;
|
|
470
|
+
img.src = placeholderImageUri;
|
|
471
|
+
if (!img.alt) img.alt = placeholderAlt;
|
|
472
|
+
},
|
|
473
|
+
[placeholderImageUri, placeholderAlt]
|
|
474
|
+
);
|
|
427
475
|
const handleThumbnailClick = (0, import_react5.useCallback)(
|
|
428
476
|
(newIndex) => {
|
|
429
477
|
if (newIndex === currentSourceIndex) return;
|
|
@@ -444,7 +492,9 @@ function CompactImagesPreview(props) {
|
|
|
444
492
|
objectFit: "cover"
|
|
445
493
|
},
|
|
446
494
|
src: placeholderImageUri,
|
|
447
|
-
alt:
|
|
495
|
+
alt: placeholderAlt,
|
|
496
|
+
onError: handleImgError,
|
|
497
|
+
onClick: onMainImageClick
|
|
448
498
|
}
|
|
449
499
|
);
|
|
450
500
|
const currentSource = sources[currentSourceIndex];
|
|
@@ -452,6 +502,7 @@ function CompactImagesPreview(props) {
|
|
|
452
502
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
453
503
|
"img",
|
|
454
504
|
{
|
|
505
|
+
className: (0, import_clsx3.default)("object-center", onMainImageClick && "cursor-pointer"),
|
|
455
506
|
style: {
|
|
456
507
|
width: isMobile ? "100%" : activeImageWidth,
|
|
457
508
|
height: activeImageHeight,
|
|
@@ -459,10 +510,12 @@ function CompactImagesPreview(props) {
|
|
|
459
510
|
objectFit: "cover"
|
|
460
511
|
},
|
|
461
512
|
src: currentSource.uri,
|
|
462
|
-
alt: currentSource.name
|
|
513
|
+
alt: currentSource.name,
|
|
514
|
+
onError: handleImgError,
|
|
515
|
+
onClick: onMainImageClick
|
|
463
516
|
}
|
|
464
517
|
),
|
|
465
|
-
|
|
518
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex flex-row flex-wrap items-center gap-3", children: sources.map((source, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
466
519
|
"button",
|
|
467
520
|
{
|
|
468
521
|
onClick: (e) => {
|
|
@@ -483,7 +536,8 @@ function CompactImagesPreview(props) {
|
|
|
483
536
|
height: thumbnailHeight,
|
|
484
537
|
objectPosition: "center",
|
|
485
538
|
objectFit: "cover"
|
|
486
|
-
}
|
|
539
|
+
},
|
|
540
|
+
onError: handleImgError
|
|
487
541
|
}
|
|
488
542
|
)
|
|
489
543
|
},
|