react-open-source-grid 1.6.7 → 1.7.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.
@@ -1223,3 +1223,218 @@ button {
1223
1223
  white-space: nowrap;
1224
1224
  border-width: 0;
1225
1225
  }
1226
+
1227
+ /* src/charts/QuickChart.css */
1228
+ .quick-chart {
1229
+ display: flex;
1230
+ flex-direction: column;
1231
+ background: white;
1232
+ border-radius: 8px;
1233
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
1234
+ overflow: hidden;
1235
+ font-family:
1236
+ -apple-system,
1237
+ BlinkMacSystemFont,
1238
+ "Segoe UI",
1239
+ Roboto,
1240
+ Oxygen,
1241
+ Ubuntu,
1242
+ Cantarell,
1243
+ sans-serif;
1244
+ }
1245
+ .quick-chart--dark {
1246
+ background: #1a1a1a;
1247
+ color: #ffffff;
1248
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
1249
+ }
1250
+ .quick-chart__header {
1251
+ display: flex;
1252
+ justify-content: space-between;
1253
+ align-items: center;
1254
+ padding: 12px 16px;
1255
+ border-bottom: 1px solid #e0e0e0;
1256
+ background: #f5f5f5;
1257
+ }
1258
+ .quick-chart--dark .quick-chart__header {
1259
+ border-bottom-color: #333;
1260
+ background: #252525;
1261
+ }
1262
+ .quick-chart__title {
1263
+ margin: 0;
1264
+ font-size: 16px;
1265
+ font-weight: 600;
1266
+ color: #333;
1267
+ }
1268
+ .quick-chart--dark .quick-chart__title {
1269
+ color: #ffffff;
1270
+ }
1271
+ .quick-chart__controls {
1272
+ display: flex;
1273
+ gap: 8px;
1274
+ align-items: center;
1275
+ }
1276
+ .quick-chart__type-selector {
1277
+ display: flex;
1278
+ gap: 4px;
1279
+ padding: 4px;
1280
+ background: white;
1281
+ border-radius: 6px;
1282
+ border: 1px solid #ddd;
1283
+ }
1284
+ .quick-chart--dark .quick-chart__type-selector {
1285
+ background: #2a2a2a;
1286
+ border-color: #444;
1287
+ }
1288
+ .quick-chart__type-btn {
1289
+ display: flex;
1290
+ align-items: center;
1291
+ justify-content: center;
1292
+ width: 32px;
1293
+ height: 32px;
1294
+ padding: 0;
1295
+ background: transparent;
1296
+ border: none;
1297
+ border-radius: 4px;
1298
+ cursor: pointer;
1299
+ font-size: 16px;
1300
+ transition: background-color 0.2s;
1301
+ }
1302
+ .quick-chart__type-btn:hover {
1303
+ background: #f0f0f0;
1304
+ }
1305
+ .quick-chart--dark .quick-chart__type-btn:hover {
1306
+ background: #3a3a3a;
1307
+ }
1308
+ .quick-chart__type-btn--active {
1309
+ background: #e3f2fd;
1310
+ }
1311
+ .quick-chart--dark .quick-chart__type-btn--active {
1312
+ background: #1e3a5f;
1313
+ }
1314
+ .quick-chart__btn {
1315
+ display: flex;
1316
+ align-items: center;
1317
+ justify-content: center;
1318
+ width: 32px;
1319
+ height: 32px;
1320
+ padding: 0;
1321
+ background: white;
1322
+ border: 1px solid #ddd;
1323
+ border-radius: 4px;
1324
+ cursor: pointer;
1325
+ font-size: 16px;
1326
+ transition: all 0.2s;
1327
+ }
1328
+ .quick-chart__btn:hover {
1329
+ background: #f0f0f0;
1330
+ border-color: #999;
1331
+ }
1332
+ .quick-chart--dark .quick-chart__btn {
1333
+ background: #2a2a2a;
1334
+ border-color: #444;
1335
+ color: #ffffff;
1336
+ }
1337
+ .quick-chart--dark .quick-chart__btn:hover {
1338
+ background: #3a3a3a;
1339
+ border-color: #666;
1340
+ }
1341
+ .quick-chart__close {
1342
+ font-size: 24px;
1343
+ line-height: 1;
1344
+ color: #666;
1345
+ }
1346
+ .quick-chart__close:hover {
1347
+ color: #d32f2f;
1348
+ background: #ffebee;
1349
+ }
1350
+ .quick-chart--dark .quick-chart__close {
1351
+ color: #aaa;
1352
+ }
1353
+ .quick-chart--dark .quick-chart__close:hover {
1354
+ color: #ff5252;
1355
+ background: #3a1f1f;
1356
+ }
1357
+ .quick-chart__body {
1358
+ flex: 1;
1359
+ padding: 16px;
1360
+ min-height: 0;
1361
+ }
1362
+ @media (max-width: 768px) {
1363
+ .quick-chart__header {
1364
+ flex-direction: column;
1365
+ gap: 8px;
1366
+ align-items: flex-start;
1367
+ }
1368
+ .quick-chart__controls {
1369
+ width: 100%;
1370
+ justify-content: flex-end;
1371
+ }
1372
+ }
1373
+
1374
+ /* src/charts/ChartOverlay.css */
1375
+ .chart-overlay {
1376
+ position: fixed;
1377
+ top: 0;
1378
+ left: 0;
1379
+ right: 0;
1380
+ bottom: 0;
1381
+ z-index: 9999;
1382
+ pointer-events: none;
1383
+ }
1384
+ .chart-overlay__backdrop {
1385
+ position: absolute;
1386
+ top: 0;
1387
+ left: 0;
1388
+ right: 0;
1389
+ bottom: 0;
1390
+ background: rgba(0, 0, 0, 0.3);
1391
+ pointer-events: all;
1392
+ animation: fadeIn 0.2s ease-out;
1393
+ }
1394
+ .chart-overlay__container {
1395
+ position: absolute;
1396
+ pointer-events: all;
1397
+ animation: slideIn 0.3s ease-out;
1398
+ transition: box-shadow 0.2s;
1399
+ }
1400
+ .chart-overlay__container--draggable {
1401
+ cursor: move;
1402
+ }
1403
+ .chart-overlay__container--dragging {
1404
+ cursor: grabbing;
1405
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
1406
+ transition: none;
1407
+ }
1408
+ .chart-overlay__container--draggable .quick-chart__header {
1409
+ cursor: move;
1410
+ }
1411
+ .chart-overlay__container--dragging .quick-chart__header {
1412
+ cursor: grabbing;
1413
+ }
1414
+ @keyframes fadeIn {
1415
+ from {
1416
+ opacity: 0;
1417
+ }
1418
+ to {
1419
+ opacity: 1;
1420
+ }
1421
+ }
1422
+ @keyframes slideIn {
1423
+ from {
1424
+ opacity: 0;
1425
+ transform: scale(0.95) translateY(10px);
1426
+ }
1427
+ to {
1428
+ opacity: 1;
1429
+ transform: scale(1) translateY(0);
1430
+ }
1431
+ }
1432
+ @media (max-width: 768px) {
1433
+ .chart-overlay__container {
1434
+ width: calc(100% - 20px) !important;
1435
+ height: 400px !important;
1436
+ left: 10px !important;
1437
+ top: 50% !important;
1438
+ transform: translateY(-50%);
1439
+ }
1440
+ }
@@ -1,3 +1,4 @@
1
1
  import './index.css';
2
2
  export * from './components/DataGrid/index';
3
3
  export * from './editors';
4
+ export * from './charts';