optimized-react-component-library-xyz123 0.1.45 → 0.1.46

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/css/styles.css +650 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1130,3 +1130,653 @@ textarea:focus-visible,
1130
1130
  }
1131
1131
 
1132
1132
  /* ---------- END FILE UPLOAD ---------- */
1133
+
1134
+ /* ---------- ADD FILES ---------- */
1135
+
1136
+ /* ExploreFiles.tsx */
1137
+
1138
+ .invisible {
1139
+ display: none;
1140
+ width: 1px;
1141
+ }
1142
+
1143
+ .filePickLabel {
1144
+ display: flex;
1145
+ align-items: center;
1146
+ justify-content: flex-start;
1147
+ width: 100%;
1148
+ margin: 0;
1149
+ padding: 0;
1150
+ height: 48px;
1151
+ border: 1px solid #747474;
1152
+ border-radius: var(--bs-border-radius);
1153
+ }
1154
+ .filePickLabel:focus {
1155
+ border: #000000 2px solid;
1156
+ box-shadow: none;
1157
+ }
1158
+ .filePickLabel .filePickButton {
1159
+ cursor: pointer;
1160
+ padding: 16px;
1161
+ height: 100%;
1162
+ background: #747474;
1163
+
1164
+ border-top-left-radius: 4px;
1165
+ border-bottom-left-radius: 4px;
1166
+
1167
+ display: flex;
1168
+ /* padding: 0px 16px; */
1169
+ align-items: center;
1170
+ flex-direction: column;
1171
+ justify-content: center;
1172
+ align-self: stretch;
1173
+ color: #ffff;
1174
+
1175
+ /* Body/B2 (Main) Regular */
1176
+ font-family: Arial;
1177
+ font-size: 16px;
1178
+ font-style: normal;
1179
+ font-weight: 400;
1180
+ line-height: 24px; /* 150% */
1181
+ }
1182
+
1183
+ .filePickButton {
1184
+ width: auto !important;
1185
+ border: none;
1186
+ margin-left: 0px !important;
1187
+ }
1188
+
1189
+ .filePickButton.error {
1190
+ background: #8e0039 !important;
1191
+ color: #fff !important;
1192
+ }
1193
+ @media (max-width: 990px) {
1194
+ .filePickLabel .filePickButton {
1195
+ font-size: 14px;
1196
+ line-height: 14px;
1197
+ text-align: center;
1198
+ }
1199
+ }
1200
+
1201
+ .filePickLabel .filePickText {
1202
+ padding-left: 16px;
1203
+ color: #000;
1204
+
1205
+ font-family: Arial;
1206
+ font-size: 16px;
1207
+ font-style: normal;
1208
+ font-weight: 400;
1209
+ line-height: 24px;
1210
+ }
1211
+
1212
+ .inputContainer {
1213
+ display: flex;
1214
+ align-items: center;
1215
+ justify-content: center;
1216
+ width: 100%;
1217
+ height: 100%;
1218
+ }
1219
+
1220
+ @media (max-width: 768px) {
1221
+ .inputContainer {
1222
+ margin-bottom: 16px;
1223
+ }
1224
+ }
1225
+
1226
+ .inputContainer button {
1227
+ margin: 0;
1228
+ /* padding: 0; */
1229
+ padding: 8px 24px;
1230
+ margin-left: 16px;
1231
+ height: 50px;
1232
+ width: 200px;
1233
+ }
1234
+
1235
+ .inputContainer input[type='text'] {
1236
+ font-size: 16px;
1237
+ }
1238
+
1239
+ .custom-file-button input[type='file'] {
1240
+ margin-left: -2px !important;
1241
+ }
1242
+
1243
+ .custom-file-button input[type='file']::-webkit-file-upload-button {
1244
+ display: none;
1245
+ }
1246
+
1247
+ .custom-file-button input[type='file']::file-selector-button {
1248
+ display: none;
1249
+ }
1250
+
1251
+ .custom-file-button:hover label {
1252
+ background-color: #dde0e3;
1253
+ cursor: pointer;
1254
+ }
1255
+
1256
+ /* DropFiles.tsx */
1257
+
1258
+ @media (max-width: 768px) {
1259
+ .DropZoneContainer {
1260
+ display: none;
1261
+ }
1262
+ }
1263
+
1264
+ .DropZone {
1265
+ color: #000;
1266
+ margin-top: 20px;
1267
+ margin-bottom: 16px;
1268
+
1269
+ /* Body/B1 Regular */
1270
+ font-family: Arial;
1271
+ font-size: 20px;
1272
+ font-style: normal;
1273
+ font-weight: 400;
1274
+ line-height: 24px; /* 120% */
1275
+
1276
+ display: inline-flex;
1277
+ width: 100%;
1278
+ height: 180px;
1279
+ position: relative;
1280
+ clip-path: inset(0 round 8px 8px 8px 8px);
1281
+
1282
+ background: var(--neutral-350, #f7f7f7);
1283
+
1284
+ align-items: center;
1285
+ justify-content: center;
1286
+ text-align: center;
1287
+ gap: 10px;
1288
+ flex-direction: column;
1289
+ cursor: pointer;
1290
+ }
1291
+
1292
+ .DropZone::before {
1293
+ content: '';
1294
+ position: absolute;
1295
+ left: -7px;
1296
+ top: -7px;
1297
+ right: -7px;
1298
+ bottom: -7px;
1299
+ border: 9px dashed rgba(0, 0, 0, 0.6);
1300
+ border-radius: 15px 15px 15px 15px;
1301
+ box-sizing: border-box;
1302
+ }
1303
+
1304
+ .DropZone:hover {
1305
+ background: var(--neutral-350, #f7f7f7);
1306
+ opacity: 0.9;
1307
+ cursor: copy;
1308
+ }
1309
+ .ClipboardLink {
1310
+ display: block;
1311
+ position: relative;
1312
+ z-index: 2000;
1313
+ cursor: pointer;
1314
+ font-size: '12px';
1315
+ text-decoration: 'underline';
1316
+ color: black;
1317
+ }
1318
+ .ClipboardLink:hover {
1319
+ cursor: pointer;
1320
+ }
1321
+
1322
+ /* SelectedFiles.tsx */
1323
+
1324
+ .makeTopSpace {
1325
+ margin-top: 12px;
1326
+ }
1327
+ /* @media (max-width: 768px) {
1328
+ .makeTopSpace {
1329
+ margin-top: 0px;
1330
+ }
1331
+ } */
1332
+
1333
+ .UploadedFile {
1334
+ margin-top: 24px;
1335
+ }
1336
+ /* @media (max-width: 768px) {
1337
+ .UploadedFile {
1338
+ margin-top: 24px;
1339
+ }
1340
+ } */
1341
+ .uploadFileRow {
1342
+ max-width: 555px;
1343
+ }
1344
+ @media (max-width: 768px) {
1345
+ .uploadFileRow {
1346
+ margin-left: 0px;
1347
+ }
1348
+ }
1349
+ .uploadedFileName {
1350
+ /* margin-left: 8px; */
1351
+ color: #000000;
1352
+ position: relative;
1353
+ border: 0px solid red;
1354
+ width: 76%;
1355
+ /* max-width: 430px; */
1356
+ top: -21px;
1357
+ left: 24px;
1358
+ }
1359
+
1360
+ .desktopFileName {
1361
+ display: block;
1362
+ }
1363
+ .mobileFirstFileName {
1364
+ display: block;
1365
+ }
1366
+
1367
+ .uploadedDot.mobileVersion {
1368
+ display: none;
1369
+ }
1370
+
1371
+ @media (max-width: 768px) {
1372
+ svg.uploadFileIcon {
1373
+ display: none;
1374
+ }
1375
+ .uploadedDot.mobileVersion {
1376
+ display: flex;
1377
+ }
1378
+ }
1379
+
1380
+ .lastCol {
1381
+ display: flex;
1382
+ justify-content: flex-end;
1383
+ max-width: 62px;
1384
+ padding: 0;
1385
+ margin: 0;
1386
+ }
1387
+
1388
+ .fileInListContainer {
1389
+ max-width: 624px;
1390
+ }
1391
+
1392
+ .fileListUnorderedList {
1393
+ list-style: none !important;
1394
+ padding: 0;
1395
+ margin: 0;
1396
+ }
1397
+
1398
+ .fileInList {
1399
+ width: 100%;
1400
+ }
1401
+ .fileInList .row {
1402
+ display: flex;
1403
+ justify-content: space-between;
1404
+ align-items: center;
1405
+ max-width: 100% !important;
1406
+ border: 0px solid black;
1407
+
1408
+ padding: 0px 0px;
1409
+ --bs-gutter-x: 0px !important;
1410
+ }
1411
+
1412
+ .fileInList .row .col {
1413
+ padding: 0;
1414
+ margin: 0;
1415
+ }
1416
+
1417
+ .fileInList .row .lastCol {
1418
+ display: flex;
1419
+ justify-content: flex-end;
1420
+ }
1421
+
1422
+ .fileInList .makeSpace {
1423
+ border-bottom: 1px solid #747474;
1424
+ /* margin-top: 24px; */
1425
+ }
1426
+
1427
+ .fileInfo {
1428
+ display: flex;
1429
+ flex-direction: column;
1430
+ align-items: flex-start;
1431
+ gap: 13px;
1432
+ }
1433
+ .uploadedPercentage {
1434
+ /* Body/B3 Regular */
1435
+ font-family: Arial;
1436
+ font-size: 13px;
1437
+ font-style: normal;
1438
+ font-weight: 400;
1439
+ line-height: 16px; /* 123.077% */
1440
+ margin-top: 2px;
1441
+ }
1442
+ @media (max-width: 768px) {
1443
+ .uploadedPercentage {
1444
+ display: none;
1445
+ }
1446
+ }
1447
+ .trashCan {
1448
+ width: 57px;
1449
+ display: flex;
1450
+ flex-direction: column;
1451
+ flex-shrink: 0;
1452
+ justify-content: start;
1453
+ align-items: center;
1454
+ padding: 0;
1455
+ }
1456
+ .trashCan a {
1457
+ cursor: pointer;
1458
+ display: flex;
1459
+ flex-direction: column;
1460
+ flex-shrink: 0;
1461
+ justify-content: center;
1462
+ align-items: center;
1463
+ padding: 0;
1464
+ }
1465
+
1466
+ .trashCan svg {
1467
+ width: 24px;
1468
+ height: 27px;
1469
+ stroke-width: 2px;
1470
+ stroke: var(--purple-900-primary, #6e3282);
1471
+ }
1472
+
1473
+ .trashCanPositioning {
1474
+ display: flex;
1475
+ align-items: flex-start;
1476
+ justify-content: flex-end;
1477
+ gap: 4px;
1478
+ flex-shrink: 0;
1479
+ padding: 0;
1480
+
1481
+ position: relative;
1482
+ border: 0px solid red;
1483
+ max-width: 70px;
1484
+ top: -6px;
1485
+ left: 12px;
1486
+ }
1487
+
1488
+ .trashCanText {
1489
+ color: #6e3282;
1490
+
1491
+ /* Body/B4 Regular */
1492
+ font-family: Arial;
1493
+ font-size: 10px;
1494
+ font-style: normal;
1495
+ font-weight: 400;
1496
+ line-height: normal;
1497
+ }
1498
+ .removeError {
1499
+ width: 57px;
1500
+ display: flex;
1501
+ flex-direction: column;
1502
+ flex-shrink: 0;
1503
+ justify-content: start;
1504
+ align-items: center;
1505
+ padding: 0;
1506
+ }
1507
+ .removeError svg {
1508
+ width: 16px;
1509
+ height: 18px;
1510
+ stroke-width: 2px;
1511
+ stroke: var(--purple-900-primary, #6e3282);
1512
+ }
1513
+ .removeError a {
1514
+ cursor: pointer;
1515
+ }
1516
+
1517
+ .uploadedDot {
1518
+ border-radius: 17px;
1519
+ background: var(--red-green-green, #008e55);
1520
+ display: flex;
1521
+ width: 16px;
1522
+ height: 16px;
1523
+ padding: 10px;
1524
+ flex-direction: column;
1525
+ justify-content: center;
1526
+ align-items: center;
1527
+ gap: 10px;
1528
+ flex-shrink: 0;
1529
+ }
1530
+ .uploadedDot.uploadFailed {
1531
+ background: var(--red-green-red, #8e0039);
1532
+
1533
+ color: var(--neutral-300, #fff);
1534
+ /* Body/B3 Bold */
1535
+ font-family: Arial;
1536
+ font-size: 13px;
1537
+ font-style: normal;
1538
+ font-weight: 700;
1539
+ line-height: 16px; /* 123.077% */
1540
+ }
1541
+
1542
+ .uploadedDot svg {
1543
+ stroke-width: 1.5px;
1544
+ stroke: var(--neutral-300, #fff);
1545
+ flex-shrink: 0;
1546
+ }
1547
+
1548
+ .uploadStatus {
1549
+ display: flex;
1550
+ align-items: flex-start;
1551
+ justify-content: flex-end;
1552
+ gap: 8px;
1553
+ flex-shrink: 0;
1554
+ padding: 0;
1555
+
1556
+ position: relative;
1557
+ border: 0px solid red;
1558
+ max-width: 70px;
1559
+ top: 0;
1560
+ right: 0;
1561
+ }
1562
+ @media (max-width: 768px) {
1563
+ .uploadStatus {
1564
+ display: none;
1565
+ }
1566
+ }
1567
+ /*
1568
+ .uploadStatus {
1569
+ display: flex;
1570
+
1571
+ align-items: center;
1572
+ justify-content: flex-end;
1573
+ gap: 8px;
1574
+ flex-shrink: 0;
1575
+ padding: 0;
1576
+ } */
1577
+ .uploadFileIcon {
1578
+ display: flex;
1579
+ align-items: flex-start;
1580
+ justify-content: flex-end;
1581
+ gap: 8px;
1582
+ flex-shrink: 0;
1583
+ padding: 0;
1584
+
1585
+ position: relative;
1586
+ border: 0px solid red;
1587
+ max-width: 70px;
1588
+ top: 0;
1589
+ left: 0;
1590
+ }
1591
+ .uploadFileName {
1592
+ display: flex;
1593
+ align-items: normal;
1594
+ justify-content: flex-start;
1595
+ gap: 8px;
1596
+ flex-shrink: 0;
1597
+ padding: 0;
1598
+ color: #000;
1599
+
1600
+ /* Body/B3 Bold */
1601
+ font-family: Arial;
1602
+ font-size: 16px;
1603
+ font-style: normal;
1604
+ font-weight: 400;
1605
+ line-height: 24px;
1606
+ }
1607
+ .uploadFileName.uploadFailed {
1608
+ color: var(--red-green-red, #8e0039);
1609
+ }
1610
+ .errorMessageAddingFile {
1611
+ color: var(--red-green-red, #8e0039);
1612
+ /* Body/B3 Regular */
1613
+ font-family: Arial;
1614
+ font-size: 13px;
1615
+ font-style: normal;
1616
+ font-weight: 400;
1617
+ line-height: 16px; /* 123.077% */
1618
+ /* padding: 0;
1619
+ margin-top: -8px; */
1620
+ }
1621
+
1622
+ @media (max-width: 768px) {
1623
+ .errorMessageAddingFile {
1624
+ margin-left: 12px;
1625
+ }
1626
+ }
1627
+
1628
+ .selectedFilesLinkButton {
1629
+ display: flex;
1630
+ align-items: center;
1631
+ padding-bottom: 16px;
1632
+ padding-left: 0;
1633
+ gap: 8px;
1634
+ flex-shrink: 0;
1635
+ stroke-width: 2px;
1636
+ stroke: var(--purple-900-primary, #6e3282);
1637
+ color: var(--purple-900-primary, #6e3282);
1638
+ /* Body/B2 (Main) Regular */
1639
+ font-family: Arial;
1640
+ font-size: 16px;
1641
+ font-style: normal;
1642
+ font-weight: 400;
1643
+ line-height: 24px; /* 150% */
1644
+ text-decoration: none;
1645
+ cursor: pointer;
1646
+
1647
+ background-color: transparent;
1648
+ border: 0px;
1649
+ }
1650
+
1651
+ .selectedFilesLinkButton:hover {
1652
+ color: var(--purple-900-primary, #6e3282);
1653
+ text-decoration: underline;
1654
+ }
1655
+
1656
+ .uploadFileRow_x {
1657
+ max-width: 630px;
1658
+ }
1659
+
1660
+ /* Indicator.tsx */
1661
+
1662
+ .uploadIndicator {
1663
+ height: 6px;
1664
+ flex-shrink: 0;
1665
+ margin-top: 0px;
1666
+
1667
+ border-radius: 8px 8px 8px 8px;
1668
+ }
1669
+ @media (max-width: 768px) {
1670
+ .uploadIndicator {
1671
+ display: none;
1672
+ }
1673
+ }
1674
+ .uploadIndicator.uploadDone {
1675
+ width: 100%;
1676
+ background: var(--red-green-green, #008e55);
1677
+ }
1678
+ .uploadIndicator.uploadFailed {
1679
+ width: 10%;
1680
+ background: var(--red-green-red, #8e0039);
1681
+ }
1682
+ .uploadIndicator.uploadLoading {
1683
+ width: 50%;
1684
+ background: var(--red-green-red, rgb(211, 165, 0));
1685
+ }
1686
+
1687
+ .UploadedFile .divider {
1688
+ border: 1px solid #747474;
1689
+ margin-top: 24px;
1690
+ }
1691
+ @media (max-width: 768px) {
1692
+ .UploadedFile .divider {
1693
+ margin-top: 0px;
1694
+ }
1695
+ }
1696
+
1697
+ /* Clipboard.tsx */
1698
+
1699
+ .ClipboardFiles {
1700
+ display: flex;
1701
+ flex-direction: column;
1702
+ align-items: center;
1703
+ gap: 16px;
1704
+ padding: 16px;
1705
+
1706
+ margin-top: 32px;
1707
+ background-color: #222;
1708
+ animation-name: color;
1709
+ animation-duration: 1s;
1710
+ animation-iteration-count: infinite;
1711
+
1712
+ border-radius: 8px;
1713
+ cursor: pointer;
1714
+ }
1715
+
1716
+ .ClipboardFiles.clicked {
1717
+ background-color: #ccc;
1718
+ animation-name: none;
1719
+ cursor: copy;
1720
+ }
1721
+
1722
+ @keyframes color {
1723
+ 0% {
1724
+ background-color: #ddd;
1725
+ }
1726
+ 25% {
1727
+ background-color: #ccc;
1728
+ }
1729
+ 50% {
1730
+ background-color: #bbb;
1731
+ }
1732
+ 75% {
1733
+ background-color: #ccc;
1734
+ }
1735
+ 100% {
1736
+ background-color: #ddd;
1737
+ }
1738
+ }
1739
+
1740
+ /* AddFiles.tsx */
1741
+
1742
+ .addFilesMandatory {
1743
+ margin-bottom: 16px;
1744
+ }
1745
+
1746
+ .addFilesMandatory.error {
1747
+ display: inline;
1748
+ margin-bottom: 0px;
1749
+ }
1750
+
1751
+ /* preview */
1752
+
1753
+ /* .addFilesPreviewContainer {
1754
+ margin: 0;
1755
+ margin-top: 16px;
1756
+ width: 100%;
1757
+ flex-direction: row;
1758
+ }
1759
+ @media (max-width: 768px) {
1760
+ .addFilesPreviewContainer {
1761
+ flex-direction: column;
1762
+ }
1763
+ .addFilesPreviewContainer .answer {
1764
+ margin: 0;
1765
+ padding: 0;
1766
+ margin-top: 8px;
1767
+ margin-bottom: 8px;
1768
+
1769
+ width: 100%;
1770
+ }
1771
+ }
1772
+
1773
+ .addFilesFieldset p {
1774
+ font-size: 16px;
1775
+ }
1776
+
1777
+ .addfileserror {
1778
+ margin-bottom: 16px !important;
1779
+ margin-top: 16px !important;
1780
+ } */
1781
+
1782
+ /* ---------- END ADD FILES ---------- */