forstok-ui-lib 6.4.1 → 6.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "6.4.1",
3
+ "version": "6.4.3",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -2,18 +2,6 @@ import styled, { css } from 'styled-components';
2
2
  import { responseWidth, formLabel, elipsis, multiElipsis, headTable, clearList, dropBase, buttonStyle, buttonActiveStyle, buttonHoverStyle } from './bases.styles';
3
3
  import { ModeListTableColumn } from '../../typeds';
4
4
 
5
- const initialStyles = css `
6
- width: 32px;
7
- height: 32px;
8
- align-items: center;
9
- display: grid;
10
- background-color: #000;
11
- `
12
- const fullGrid = css`
13
- display: inline-grid;
14
- width: 100%;
15
- `
16
-
17
5
  const getTabsContentModFunc = ({ $mode }:{ $mode?: string }) => {
18
6
  let style = ``
19
7
  if ($mode === 'list') {
@@ -1145,493 +1133,6 @@ const getTableItemModFunc = ({ $mode }:{ $mode?: string }) => {
1145
1133
  }
1146
1134
  return style;
1147
1135
  }
1148
- const getPageWrapperModFunc = ({ $mode }:{ $mode?: string }) => {
1149
- let style = ``;
1150
- if ($mode === 'noPageOption') {
1151
- style += `
1152
- @media only screen and (min-width: 768px) {
1153
- > div:first-child {
1154
- justify-content: center;
1155
- }
1156
- }
1157
- `
1158
- }
1159
- return style;
1160
- }
1161
- const getPageButtonModFunc = ({ $activated, $disabled }:{ $activated?: boolean, $disabled?: boolean }) => {
1162
- let style = ``;
1163
- if ($activated) {
1164
- style +=`
1165
- ${buttonActiveStyle}
1166
- `
1167
- } else if ($disabled) {
1168
- style +=`
1169
- background: var(--mt-clr-bg);
1170
- border-color: var(--ck-clr-ln);
1171
- opacity: .5;
1172
- cursor: auto;
1173
- `
1174
- }
1175
- return style;
1176
- }
1177
- const getSearchFilterContainerModFunc = ({ $mode }:{ $mode?: string }) => {
1178
- let style = ``
1179
- if ($mode === 'detail') {
1180
- style +=`
1181
- padding-bottom: 10px;
1182
- `
1183
- }
1184
- return style
1185
- }
1186
- const getSearchWrapperModFunc = ({ width }:{ width?: string }) => {
1187
- let style = ``
1188
- if (width) {
1189
- const _width = width ? parseInt(width) : 0
1190
- style += `
1191
- grid-template-columns: ${(_width + 5)+'px'} 1fr;
1192
- button {
1193
- width: ${width};
1194
- }
1195
- `
1196
- }
1197
- return style
1198
- }
1199
- const getListTableFunc = ({ $mode }:{ $mode?: string }) => {
1200
- let style = ``
1201
- if ($mode === 'item') {
1202
- style += `
1203
- ${ItemTable} {
1204
- grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) var(--time) minmax(88px, auto);
1205
- &[role=rowheader] > div[role=group],
1206
- &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1207
- ._refCollapse > div:not(._refCollapseContainer),
1208
- ._refCollapseContainer > div {
1209
- grid-template-columns: var(--variant) var(--sku) var(--qty-big) var(--price) var(--status-small);
1210
- }
1211
- input[name=checkbox-list] {
1212
- & + span {
1213
- top: 8px;
1214
- }
1215
- }
1216
- }
1217
- `
1218
- } else if ($mode === 'listing') {
1219
- style += `
1220
- ${ItemTable} {
1221
- grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) minmax(88px, auto);
1222
- &[role=rowheader] > div[role=group],
1223
- &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1224
- ._refCollapse > div:not(._refCollapseContainer),
1225
- ._refCollapseContainer > div {
1226
- grid-template-columns: var(--variant) var(--sku) var(--sku) var(--qty-big) var(--price) var(--status-small);
1227
- }
1228
- input[name=checkbox-list] {
1229
- & + span {
1230
- top: 8px;
1231
- }
1232
- }
1233
- }
1234
- `
1235
- } else if ($mode === 'quantity') {
1236
- style += `
1237
- padding: 0 10px;
1238
- > div {
1239
- overflow: auto;
1240
- }
1241
- ${ItemTable} {
1242
- width: 100%;
1243
- display: flex;
1244
- margin: 0;
1245
- padding: 0;
1246
- grid-gap: 0;
1247
- &[role=rowheader] > div[role=group],
1248
- &[role=row] > div[role=group],
1249
- &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1250
- &[role=row] > div[role=cellgroup],
1251
- ._refCollapse > div:not(._refCollapseContainer),
1252
- ._refCollapseContainer > div {
1253
- display: flex;
1254
- flex: 2;
1255
- grid-gap: 0;
1256
- }
1257
- &[role=row] > div[role=cellgroup] {
1258
- flex-direction: column;
1259
- }
1260
- &[role=rowheader] > div[role=columnheader],
1261
- &[role=rowheader] > div[role=group] > div[role=cell],
1262
- &[role=row] > div[role=cell],
1263
- &[role=row] > div[role=cellgroup] > div[role=rowgroup] > div[role=cell],
1264
- ._refCollapse > div:not(._refCollapseContainer) > div[role=cell],
1265
- ._refCollapseContainer > div > div[role=cell] {
1266
- flex-direction: column;
1267
- padding: 16px 6px;
1268
- align-self: stretch;
1269
- width: 100%;
1270
- }
1271
- &[role=rowheader] > div[role=columnheader],
1272
- &[role=rowheader] > div[role=group] > div[role=cell] {
1273
- padding: 27px 6px 18px;
1274
- }
1275
- &[role=rowheader] {
1276
- padding: 0;
1277
- }
1278
- &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1279
- ._refCollapse > div,
1280
- ._refCollapseContainer > div {
1281
- padding-bottom: 0;
1282
- padding-top: 0;
1283
- &:nth-child(n+2) {
1284
- padding-top: 0;
1285
- }
1286
- &:last-child {
1287
- padding-bottom: 0;
1288
- }
1289
- }
1290
- &:last-child {
1291
- margin-bottom: 0;
1292
- }
1293
- .column-product {
1294
- min-width: calc(var(--item-min) + 25px);
1295
- max-width: calc(var(--item-max) + 25px);
1296
- flex: 1;
1297
- padding-left: 19px !important;
1298
- }
1299
- .column-master-sku {
1300
- min-width: calc(var(--sku-min) + 12px);
1301
- max-width: calc(var(--sku-max) + 12px);
1302
- flex: 1;
1303
- }
1304
- .column-warehouse {
1305
- min-width: calc(var(--warehouse-min) + 12px);
1306
- max-width: calc(var(--warehouse-max) + 12px);
1307
- flex: 3;
1308
- }
1309
- .column-on-hand-total {
1310
- min-width: 87px;
1311
- max-width: 97px;
1312
- flex: 2;
1313
- }
1314
- .column-on-hand-damage {
1315
- min-width: 97px;
1316
- max-width: 102px;
1317
- flex: 2;
1318
- }
1319
- .column-on-hand-normal {
1320
- min-width: 97px;
1321
- max-width: 102px;
1322
- flex: 2;
1323
- }
1324
- .column-reserved-orders {
1325
- min-width: 87px;
1326
- max-width: 97px;
1327
- flex: 2;
1328
- }
1329
- .column-picked {
1330
- min-width: 87px;
1331
- max-width: 97px;
1332
- flex: 2;
1333
- }
1334
- .column-packed {
1335
- min-width: 87px;
1336
- max-width: 97px;
1337
- flex: 2;
1338
- }
1339
- .column-handover {
1340
- min-width: calc(var(--qty-big-min) + 12px);
1341
- max-width: calc(var(--qty-big-max) + 12px);
1342
- flex: 2;
1343
- }
1344
- .column-promotion-allocation {
1345
- min-width: calc(var(--qty-big-min) + 12px);
1346
- max-width: calc(var(--qty-big-max) + 12px);
1347
- flex: 2;
1348
- }
1349
- .column-available-to-sell {
1350
- min-width: 95px;
1351
- max-width: 97px;
1352
- flex: 2;
1353
- }
1354
- .column-in-transit {
1355
- min-width: 95px;
1356
- max-width: 97px;
1357
- flex: 2;
1358
- }
1359
- .column-waiting-inbound {
1360
- min-width: 95px;
1361
- max-width: 97px;
1362
- flex: 2;
1363
- }
1364
- .column-inbounded {
1365
- min-width: 110px;
1366
- max-width: 112px;
1367
- flex: 2;
1368
- }
1369
- .column-waiting-outbound {
1370
- min-width: 110px;
1371
- max-width: 112px;
1372
- flex: 2;
1373
- }
1374
- .column-last-updated {
1375
- min-width: calc(var(--time-min) + 12px);
1376
- max-width: calc(var(--time-max) + 12px);
1377
- flex: 2;
1378
- }
1379
- .column-actions {
1380
- min-width: 96px;
1381
- flex: 1;
1382
- padding-right: 12px !important;
1383
- }
1384
- }
1385
- `
1386
- } else if ($mode === 'picklist') {
1387
- style += `
1388
- ${ItemTable} {
1389
- grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--ref) var(--time) minmax(185px, auto);
1390
- }
1391
- `
1392
- } else if ($mode === 'package') {
1393
- style += `
1394
- ${ItemTable} {
1395
- grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--person) var(--ref) var(--time) minmax(110px, auto);
1396
- }
1397
- `
1398
- } else if ($mode === 'shipment') {
1399
- style += `
1400
- ${ItemTable} {
1401
- grid-template-columns: var(--checkbox) var(--time) var(--id-big) var(--status) minmax(80px, 160px) minmax(80px, 160px) minmax(95px, 160px) var(--ref) minmax(140px, auto);
1402
- }
1403
- `
1404
- } else if ($mode === 'invoice') {
1405
- style += `
1406
- ${ItemTable} {
1407
- @media only screen and (max-width: 1279px) {
1408
- width: unset;
1409
- }
1410
- grid-template-columns: var(--checkbox) var(--id-big) var(--status-small) var(--store) var(--price) var(--price) var(--ref) var(--person) var(--time) minmax(180px, auto);
1411
- }
1412
- `
1413
- } else if ($mode === 'payment-receive') {
1414
- style += `
1415
- ${ItemTable} {
1416
- grid-template-columns: var(--time) 155px var(--person) var(--qty) var(--price) minmax(110px, auto);
1417
- }
1418
- `
1419
- } else if($mode ==='sales-return') {
1420
- style += `
1421
- ${ItemTable} {
1422
- grid-template-columns: var(--id-big) var(--status) var(--warehouse) var(--person) var(--person) var(--ref-big) var(--time) minmax(120px, auto);
1423
- }
1424
- `
1425
- } else if ($mode === 'activity') {
1426
- style += `
1427
- ${ItemTable} {
1428
- grid-template-columns: var(--time) var(--id-big) var(--item) var(--status) var(--email) var(--status) var(--status) minmax(110px, auto);
1429
- }
1430
- `
1431
- } else if ($mode === 'putaway') {
1432
- style += `
1433
- ${ItemTable} {
1434
- grid-template-columns: var(--id) var(--status-big) var(--warehouse) var(--ref) var(--person) var(--time) minmax(60px, auto);
1435
- }
1436
- `
1437
- } else if ($mode === 'inbound') {
1438
- style += `
1439
- ${ItemTable} {
1440
- grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 160px) var(--person) var(--time) minmax(170px, auto);
1441
- }
1442
- `
1443
- } else if ($mode === 'lowstock') {
1444
- style += `
1445
- ${ItemTable} {
1446
- grid-template-columns: var(--checkbox) var(--item) var(--variant) var(--sku) var(--warehouse) var(--qty-big) var(--statusnow) var(--time) minmax(60px, auto);
1447
- }
1448
- `
1449
- } else if ($mode === 'price') {
1450
- style += `
1451
- ${ItemTable} {
1452
- grid-template-columns: var(--time) var(--id-big) var(--status) var(--qty) var(--email) var(--status) minmax(60px, auto);
1453
- }
1454
- `
1455
- } else if ($mode === 'stock-adjustment') {
1456
- style += `
1457
- ${ItemTable} {
1458
- grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 150px) var(--person) var(--time) minmax(160px, auto);
1459
- }
1460
- `
1461
- } else if ($mode === 'stock-outbound') {
1462
- style += `
1463
- ${ItemTable} {
1464
- grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(150px,160px) var(--person) var(--time) minmax(160px, auto);
1465
- }
1466
- `
1467
- } else if ($mode === 'stock-transfer') {
1468
- style += `
1469
- ${ItemTable} {
1470
- grid-template-columns: var(--id) var(--status-big) var(--warehouse) var(--warehouse) minmax(120px, 130px) var(--person) var(--time) minmax(140px, auto);
1471
- }
1472
- `
1473
- } else if ($mode === 'promotion') {
1474
- style += `
1475
- ${ItemTable} {
1476
- grid-template-columns: var(--store) var(--id-big) var(--ref-big) minmax(95px,150px) var(--status-small) var(--time) var(--time) minmax(50px, 88px) var(--time) minmax(88px, auto);
1477
- }
1478
- `
1479
- } else if ($mode === 'stock-history') {
1480
- style += `
1481
- ${ItemTable} {
1482
- grid-template-columns: minmax(120px, 360px) var(--sku) var(--warehouse) minmax(85px,120px) minmax(105px,190px) var(--qty-small) var(--qty-small) var(--qty-big) var(--time) minmax(75px, 88px);
1483
- > *:last-child {
1484
- display: unset;
1485
- justify-content: unset;
1486
- }
1487
- @media only screen and (max-width: 1279px) {
1488
- width: unset;
1489
- }
1490
- }
1491
- `
1492
- } else if ($mode === 'price-history') {
1493
- style += `
1494
- ${ItemTable} {
1495
- @media only screen and (max-width: 1279px) {
1496
- width: unset;
1497
- }
1498
- > *:last-child {
1499
- display: unset;
1500
- justify-content: unset;
1501
- }
1502
- grid-template-columns: minmax(135px,145px) minmax(120px,360px) var(--sku) var(--store) var(--price) var(--price) minmax(75px,120px) minmax(80px,120px) var(--time) var(--status) minmax(75px,88px);
1503
- }
1504
- `
1505
- } else if ($mode === 'turnover') {
1506
- style += `
1507
- ${ItemTable} {
1508
- @media only screen and (max-width: 1279px) {
1509
- width: unset;
1510
- }
1511
- > *:last-child {
1512
- display: unset;
1513
- justify-content: unset;
1514
- }
1515
- grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) repeat(4, var(--qty)) minmax(75px,88px);
1516
- }
1517
- `
1518
- }
1519
- else if ($mode === 'days-outofstock') {
1520
- style += `
1521
- ${ItemTable} {
1522
- @media only screen and (max-width: 1279px) {
1523
- width: unset;
1524
- }
1525
- > *:last-child {
1526
- display: unset;
1527
- justify-content: unset;
1528
- }
1529
- grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) var(--qty-big) var(--qty) var(--qty-big) var(--time) minmax(75px,88px);
1530
- }
1531
- `
1532
- } else if ($mode === 'warehouses') {
1533
- style += `
1534
- ${ItemTable} {
1535
- grid-template-columns: var(--warehouse) var(--status) var(--id-big) var(--qty-big) var(--time) minmax(110px, auto);
1536
- }
1537
- `
1538
- } else if ($mode === 'archived') {
1539
- style += `
1540
- ${ItemTable} {
1541
- grid-template-columns: var(--time-pd20) minmax(auto, max-content) minmax(88px, auto);
1542
- &[role=rowheader] > div[role=group], &[role=row] > div[role=cellgroup] > div[role=rowgroup], ._refCollapse > div:not(._refCollapseContainer), ._refCollapseContainer > div {
1543
- grid-template-columns: var(--sku) var(--item);
1544
- }
1545
- }
1546
- `
1547
- } else if ($mode === 'pos-order') {
1548
- style += `
1549
- ${ItemTable} {
1550
- @media only screen and (max-width: 1279px) {
1551
- width: unset;
1552
- }
1553
- grid-template-columns: var(--id-pd20) minmax(80px, 120px) var(--time) var(--person) var(--qty) var(--price) var(--status) minmax(180px, auto);
1554
- }
1555
- `
1556
- } else if ($mode === 'account-user') {
1557
- style += `
1558
- ${ItemTable} {
1559
- grid-template-columns: var(--person) var(--email) minmax(80px, 120px) minmax(120px, 200px) var(--status) var(--time) minmax(110px, auto);
1560
- }
1561
- `
1562
- } else if ($mode === 'account-role') {
1563
- style += `
1564
- ${ItemTable} {
1565
- grid-template-columns: minmax(120px, 250px) var(--qty) minmax(80px, 130px) var(--time) minmax(110px, auto);
1566
- }
1567
- `
1568
- }
1569
- return style
1570
- }
1571
- const getIconDotModifiedStyled = ({ $mode }:{ $mode?: string }) => {
1572
- let style = ``
1573
- if ($mode === 'list' || $mode === 'header') {
1574
- style +=`
1575
- position: absolute;
1576
- top: 0;
1577
- left: 0;
1578
- transform: scale(1) translate(-50%, -50%);
1579
- transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1580
- transform-origin: 100% 0%;
1581
- `
1582
- if ($mode === 'header') {
1583
- style +=`
1584
- left: unset;
1585
- right: 0;
1586
- z-index: 99;
1587
- transform: scale(1) translate(50%, -50%);
1588
- `
1589
- }
1590
- } else if ($mode === 'chat') {
1591
- style += `
1592
- position: absolute;
1593
- z-index: 8;
1594
- left: 18px;
1595
- top: 0;
1596
- padding: 0.2em 0.3em;
1597
- font-weight: bold;
1598
- font-size: 10px;
1599
- min-width: 16px;
1600
- height: 16px;
1601
- `
1602
- }
1603
- return style
1604
- }
1605
- const getCardModFunc = ({ $mode }:{ $mode?: string }) => {
1606
- const globalEmptyCss = css`
1607
- text-align: center;
1608
- color: var(--mt-clr);
1609
- `
1610
- let style = ``
1611
- if ($mode === 'empty') {
1612
- style +=`
1613
- ${globalEmptyCss}
1614
- `
1615
- } else if ($mode === 'empty-invoice') {
1616
- style +=`
1617
- ${globalEmptyCss}
1618
- > div {
1619
- display: grid;
1620
- align-content: center;
1621
- grid-gap: 4px;
1622
- margin: 0 16px;
1623
- }
1624
- `
1625
- } else {
1626
- style += `
1627
- width: 958px;
1628
- @media only screen and (min-width: 1024px) {
1629
- width: unset;
1630
- }
1631
- `
1632
- }
1633
- return style;
1634
- }
1635
1136
  const getListModFunc = ({ $mode }:{ $mode?: string }) => {
1636
1137
  let style = ``
1637
1138
  if ($mode === 'shipment') {
@@ -1708,46 +1209,6 @@ const getCreateContainerModFunc = ({ $mode }:{ $mode?: string }) => {
1708
1209
  }
1709
1210
  return style
1710
1211
  }
1711
- const getCreateHeaderWrapperModFunc = ({ $mode }:{ $mode?: string }) => {
1712
- let style = ``
1713
- if ($mode === 'edit-master') {
1714
- style +=`
1715
- aside {
1716
- grid-template-rows: none;
1717
- }
1718
- `
1719
- }
1720
- return style
1721
- }
1722
- const getPopupCardModFunc = ({ $mode }:{ $mode?: string }) => {
1723
- let style = ''
1724
- if ($mode === 'mass-payment') {
1725
- style += `
1726
- margin: 0;
1727
- @media only screen and (min-width: 768px) {
1728
- padding: 1em 24px;
1729
- }
1730
- `
1731
- }
1732
- return style;
1733
- }
1734
- const getNavChildItemModFunc = ({ $activated, $mode }:{ $activated?: boolean, $mode?: string }) => {
1735
- let style = ``
1736
- if ($activated) {
1737
- style +=`
1738
- div,
1739
- a {
1740
- font-weight: 600;
1741
- }
1742
- `
1743
- }
1744
- if ($mode === 'counter') {
1745
- style +=`
1746
- grid-template-columns: auto 20px;
1747
- `
1748
- }
1749
- return style
1750
- }
1751
1212
 
1752
1213
  export const HeaderContainer = styled.aside`
1753
1214
  display: grid;
@@ -4440,4 +3901,99 @@ export const ScrollArrowContainer = styled.section`
4440
3901
  color: var(--sec-clr-lnk__hvr);
4441
3902
  }
4442
3903
  }
3904
+ `
3905
+
3906
+ export const BulkSelectContainer = styled.div`
3907
+ position: relative;
3908
+ display: grid;
3909
+ grid-auto-flow: dense;
3910
+ grid-gap: 10px;
3911
+ > article {
3912
+ font-weight: 600;
3913
+ padding: 3px 4px 3px 0;
3914
+ display: grid;
3915
+ grid-auto-flow: column;
3916
+ &:only-child {
3917
+ margin-left: 0;
3918
+ }
3919
+ &:nth-child(4) {
3920
+ padding-left: 14px;
3921
+ }
3922
+ &:nth-child(4):last-child {
3923
+ width: 200%;
3924
+ padding-left: 0;
3925
+ margin-left: 0;
3926
+ }
3927
+ > section,
3928
+ > button {
3929
+ margin: -8px -6px -7px -6px;
3930
+ }
3931
+ > section {
3932
+ > section {
3933
+ button {
3934
+ overflow: hidden;
3935
+ text-overflow: ellipsis;
3936
+ white-space: nowrap;
3937
+ display: block;
3938
+ max-width: 100%;
3939
+ width: 28vw;
3940
+ font-weight: 600;
3941
+ }
3942
+ }
3943
+ }
3944
+ }
3945
+ > section,
3946
+ > article {
3947
+ max-height: 20px;
3948
+ align-items: center;
3949
+ }
3950
+ @media only screen and (min-width: 375px) {
3951
+ > article {
3952
+ > section {
3953
+ > section {
3954
+ button {
3955
+ width: 31vw;
3956
+ }
3957
+ }
3958
+ }
3959
+ }
3960
+ }
3961
+ @media only screen and (min-width: 768px) {
3962
+ grid-auto-flow: column;
3963
+ grid-gap: 20px;
3964
+ ._refSelectedBulk {
3965
+ display: none;
3966
+ }
3967
+ > section,
3968
+ > article {
3969
+ height: auto;
3970
+ max-height: auto;
3971
+ font-size: .875rem;
3972
+ align-items: unset;
3973
+ }
3974
+ > article {
3975
+ &:nth-child(4),
3976
+ &:last-child,
3977
+ &:nth-child(4):last-child {
3978
+ width: auto;
3979
+ padding-left: 3px;
3980
+ margin-bottom: 0;
3981
+ text-align: left;
3982
+ > span {
3983
+ padding-left: 0;
3984
+ font-weight: 600;
3985
+ }
3986
+ }
3987
+ > section {
3988
+ > section {
3989
+ button {
3990
+ width: auto;
3991
+ }
3992
+ }
3993
+ }
3994
+ }
3995
+ }
3996
+ @media only screen and (min-width: 1024px) {
3997
+ grid-gap: 32px;
3998
+ }
4443
3999
  `
@@ -1,4 +1,5 @@
1
1
  import type { MouseEvent, ChangeEvent, DragEvent, Dispatch, SetStateAction, KeyboardEvent, FocusEvent, ClipboardEvent } from 'react';
2
+ import { Moment } from 'moment'
2
3
 
3
4
  type RemoveUnderscoreFirstLetter<S extends string> =
4
5
  S extends `${infer FirstLetter}${infer U}`
@@ -66,4 +67,6 @@ export interface TUPage {
66
67
  endCursor: string;
67
68
  } | null)[]
68
69
  | null;
69
- }
70
+ }
71
+
72
+ export type TMoment = Moment | null