@nithish_atum/atum 1.0.3 → 1.0.4

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.js CHANGED
@@ -33,20 +33,28 @@ __export(index_exports, {
33
33
  Box: () => Box_default,
34
34
  Button: () => Button_default,
35
35
  Card: () => Card_default,
36
+ Center: () => Center_default,
37
+ CenterMenu: () => CenterMenu_default,
36
38
  Checkbox: () => Checkbox_default,
39
+ Col: () => Col_default,
40
+ Container: () => Container_default,
37
41
  DatePicker: () => DatePicker_default,
38
42
  Divider: () => Divider_default,
39
43
  Drawer: () => Drawer_default,
40
44
  Flex: () => Flex_default,
41
45
  Form: () => Form_default,
42
46
  FormControl: () => FormControl_default,
47
+ Grid: () => Grid_default,
43
48
  Heading: () => Heading_default,
49
+ HorizantalMenu: () => HorizantalMenu_default,
44
50
  Input: () => Input_default,
45
51
  Link: () => Link_default,
46
52
  Modal: () => Modal_default,
47
53
  Paragraph: () => Paragraph_default,
48
54
  Radio: () => Radio_default,
55
+ Row: () => Row_default,
49
56
  Select: () => Select_default,
57
+ Stack: () => Stack_default,
50
58
  Switch: () => Switch_default,
51
59
  Text: () => Text_default,
52
60
  Textarea: () => Textarea_default
@@ -1283,25 +1291,518 @@ var Textarea = ({
1283
1291
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledTextarea, { $size: size, $state: state, ...rest });
1284
1292
  };
1285
1293
  var Textarea_default = Textarea;
1294
+
1295
+ // src/components/Menus/CenterMenu.tsx
1296
+ var import_styled_components21 = __toESM(require("styled-components"));
1297
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1298
+ var baseStyle9 = import_styled_components21.css`
1299
+ padding: 0.2em 0em 0.2em 0em;
1300
+ cursor: pointer;
1301
+ font-weight: 600;
1302
+ transistion: all 900ms;
1303
+ display: flex;
1304
+ width: 100%;
1305
+ justify-content: center;
1306
+ align-items: center;
1307
+ gap: 3%;
1308
+ background-color: rgb(71, 91, 248);
1309
+ `;
1310
+ var StyledMenu = import_styled_components21.default.div`
1311
+ ${baseStyle9}
1312
+ `;
1313
+ var CenterMenu = ({
1314
+ menuItems = ["SampleMenu_1", "SampleMenu_2", "SampleMenu_3"],
1315
+ logo,
1316
+ alt = "logo",
1317
+ href = "#",
1318
+ children,
1319
+ ...rest
1320
+ }) => {
1321
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(StyledMenu, { ...rest, children: [
1322
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("a", { href, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1323
+ "img",
1324
+ {
1325
+ src: logo,
1326
+ alt,
1327
+ width: "48px",
1328
+ height: "48px",
1329
+ style: {
1330
+ mixBlendMode: "multiply",
1331
+ objectFit: "contain"
1332
+ }
1333
+ }
1334
+ ) }),
1335
+ menuItems.map((x, i) => {
1336
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: x }, i);
1337
+ })
1338
+ ] });
1339
+ };
1340
+ var CenterMenu_default = CenterMenu;
1341
+
1342
+ // src/components/Layouts/Row.tsx
1343
+ var import_styled_components22 = __toESM(require("styled-components"));
1344
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1345
+ var baseStyle10 = import_styled_components22.css`
1346
+ display: flex;
1347
+ flex-direction: row;
1348
+ `;
1349
+ var justifyStyles3 = {
1350
+ center: import_styled_components22.css`
1351
+ height: inherit;
1352
+ width: inherit;
1353
+ justify-content: center;
1354
+ `,
1355
+ start: import_styled_components22.css`
1356
+ height: inherit;
1357
+ width: inherit;
1358
+ justify-content: start;
1359
+ `,
1360
+ end: import_styled_components22.css`
1361
+ height: inherit;
1362
+ width: inherit;
1363
+ justify-content: end;
1364
+ `,
1365
+ FStart: import_styled_components22.css`
1366
+ height: inherit;
1367
+ width: inherit;
1368
+ justify-content: flex-start;
1369
+ `,
1370
+ FEnd: import_styled_components22.css`
1371
+ height: inherit;
1372
+ width: inherit;
1373
+ justify-content: flex-end;
1374
+ `,
1375
+ left: import_styled_components22.css`
1376
+ height: inherit;
1377
+ width: inherit;
1378
+ justify-content: left;
1379
+ `,
1380
+ right: import_styled_components22.css`
1381
+ height: inherit;
1382
+ width: inherit;
1383
+ justify-content: right;
1384
+ `,
1385
+ between: import_styled_components22.css`
1386
+ height: inherit;
1387
+ width: inherit;
1388
+ justify-content: space-between;
1389
+ `,
1390
+ around: import_styled_components22.css`
1391
+ height: inherit;
1392
+ width: inherit;
1393
+ justify-content: space-around;
1394
+ `,
1395
+ even: import_styled_components22.css`
1396
+ height: inherit;
1397
+ width: inherit;
1398
+ justify-content: space-evenly;
1399
+ `
1400
+ };
1401
+ var gapStyles4 = {
1402
+ xs: import_styled_components22.css`
1403
+ gap: 1em;
1404
+ `,
1405
+ sm: import_styled_components22.css`
1406
+ gap: 3em;
1407
+ `,
1408
+ md: import_styled_components22.css`
1409
+ gap: 5em;
1410
+ `,
1411
+ lg: import_styled_components22.css`
1412
+ gap: 7em;
1413
+ `
1414
+ };
1415
+ var CustomDiv3 = import_styled_components22.default.div`
1416
+ ${baseStyle10}
1417
+ ${({ $justify, $gap }) => import_styled_components22.css`
1418
+ ${justifyStyles3[$justify]}
1419
+ ${gapStyles4[$gap]}
1420
+ `}
1421
+ `;
1422
+ var Row = ({
1423
+ justify = "center",
1424
+ gap = "xs",
1425
+ children,
1426
+ ...rest
1427
+ }) => {
1428
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CustomDiv3, { $justify: justify, $gap: gap, ...rest, children });
1429
+ };
1430
+ var Row_default = Row;
1431
+
1432
+ // src/components/Menus/HorizantalMenu.tsx
1433
+ var import_styled_components23 = __toESM(require("styled-components"));
1434
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1435
+ var baseStyle11 = import_styled_components23.css`
1436
+ padding: 1em 0em 1em 0em;
1437
+ cursor: pointer;
1438
+ font-weight: 600;
1439
+ transistion: all 900ms;
1440
+ display: flex;
1441
+ width: 100%;
1442
+ justify-content: space-between;
1443
+ background-color:rgb(71, 91, 248);
1444
+ `;
1445
+ var StyledMenu2 = import_styled_components23.default.div`
1446
+ ${baseStyle11}
1447
+ `;
1448
+ var HorizantalMenu = ({
1449
+ menuItems = ["SampleMenu_1", "SampleMenu_2", "SampleMenu_3"],
1450
+ logo,
1451
+ alt = "logo",
1452
+ href = "#",
1453
+ children,
1454
+ ...rest
1455
+ }) => {
1456
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(StyledMenu2, { ...rest, children: [
1457
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("a", { href, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1458
+ "img",
1459
+ {
1460
+ src: logo,
1461
+ alt,
1462
+ width: "36px",
1463
+ height: "36px",
1464
+ style: {
1465
+ mixBlendMode: "multiply",
1466
+ objectFit: "contain"
1467
+ }
1468
+ }
1469
+ ) }),
1470
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Row_default, { justify: "FEnd", children: menuItems.map((x, i) => {
1471
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: x }, i);
1472
+ }) })
1473
+ ] });
1474
+ };
1475
+ var HorizantalMenu_default = HorizantalMenu;
1476
+
1477
+ // src/components/Layouts/Center.tsx
1478
+ var import_styled_components24 = __toESM(require("styled-components"));
1479
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1480
+ var baseStyle12 = import_styled_components24.css`
1481
+ display: flex;
1482
+ height: inherit;
1483
+ width: inherit;
1484
+ justify-content: center;
1485
+ align-items: center;
1486
+ `;
1487
+ var CustomDiv4 = import_styled_components24.default.div`
1488
+ ${baseStyle12}
1489
+ `;
1490
+ var Center = ({
1491
+ children,
1492
+ ...rest
1493
+ }) => {
1494
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CustomDiv4, { ...rest, children });
1495
+ };
1496
+ var Center_default = Center;
1497
+
1498
+ // src/components/Layouts/Col.tsx
1499
+ var import_styled_components25 = __toESM(require("styled-components"));
1500
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1501
+ var baseStyle13 = import_styled_components25.css`
1502
+ display: flex;
1503
+ flex-direction: column;
1504
+ `;
1505
+ var justifyStyles4 = {
1506
+ center: import_styled_components25.css`
1507
+ height: inherit;
1508
+ width: inherit;
1509
+ justify-content: center;
1510
+ `,
1511
+ start: import_styled_components25.css`
1512
+ height: inherit;
1513
+ width: inherit;
1514
+ justify-content: start;
1515
+ `,
1516
+ end: import_styled_components25.css`
1517
+ height: inherit;
1518
+ width: inherit;
1519
+ justify-content: end;
1520
+ `,
1521
+ FStart: import_styled_components25.css`
1522
+ height: inherit;
1523
+ width: inherit;
1524
+ justify-content: flex-start;
1525
+ `,
1526
+ FEnd: import_styled_components25.css`
1527
+ height: inherit;
1528
+ width: inherit;
1529
+ justify-content: flex-end;
1530
+ `,
1531
+ left: import_styled_components25.css`
1532
+ height: inherit;
1533
+ width: inherit;
1534
+ justify-content: left;
1535
+ `,
1536
+ right: import_styled_components25.css`
1537
+ height: inherit;
1538
+ width: inherit;
1539
+ justify-content: right;
1540
+ `,
1541
+ between: import_styled_components25.css`
1542
+ height: inherit;
1543
+ width: inherit;
1544
+ justify-content: space-between;
1545
+ `,
1546
+ around: import_styled_components25.css`
1547
+ height: inherit;
1548
+ width: inherit;
1549
+ justify-content: space-around;
1550
+ `,
1551
+ even: import_styled_components25.css`
1552
+ height: inherit;
1553
+ width: inherit;
1554
+ justify-content: space-evenly;
1555
+ `
1556
+ };
1557
+ var gapStyles5 = {
1558
+ xs: import_styled_components25.css`
1559
+ gap: 1em;
1560
+ `,
1561
+ sm: import_styled_components25.css`
1562
+ gap: 3em;
1563
+ `,
1564
+ md: import_styled_components25.css`
1565
+ gap: 5em;
1566
+ `,
1567
+ lg: import_styled_components25.css`
1568
+ gap: 7em;
1569
+ `
1570
+ };
1571
+ var CustomDiv5 = import_styled_components25.default.div`
1572
+ ${baseStyle13}
1573
+ ${({ $justify, $gap }) => import_styled_components25.css`
1574
+ ${justifyStyles4[$justify]}
1575
+ ${gapStyles5[$gap]}
1576
+ `}
1577
+ `;
1578
+ var Col = ({
1579
+ justify = "center",
1580
+ gap = "xs",
1581
+ children,
1582
+ ...rest
1583
+ }) => {
1584
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CustomDiv5, { $justify: justify, $gap: gap, ...rest, children });
1585
+ };
1586
+ var Col_default = Col;
1587
+
1588
+ // src/components/Layouts/Container.tsx
1589
+ var import_styled_components26 = __toESM(require("styled-components"));
1590
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1591
+ var baseStyle14 = import_styled_components26.css`
1592
+ padding: 1em;
1593
+ `;
1594
+ var sizeStyles4 = {
1595
+ xs: import_styled_components26.css`
1596
+ max-width: 576px;
1597
+ width: 100%;
1598
+ display: flex;
1599
+ margin-left: auto;
1600
+ margin-right: auto;
1601
+ align-items: center;
1602
+ justify-content: center;
1603
+ height: 100vh;
1604
+ `,
1605
+ sm: import_styled_components26.css`
1606
+ max-width: 688px;
1607
+ width: 100%;
1608
+ display: flex;
1609
+ margin-left: auto;
1610
+ margin-right: auto;
1611
+ align-items: center;
1612
+ justify-content: center;
1613
+ height: 100vh;
1614
+ `,
1615
+ md: import_styled_components26.css`
1616
+ max-width: 768px;
1617
+ width: 100%;
1618
+ display: flex;
1619
+ margin-left: auto;
1620
+ margin-right: auto;
1621
+ align-items: center;
1622
+ justify-content: center;
1623
+ height: 100vh;
1624
+ `,
1625
+ lg: import_styled_components26.css`
1626
+ max-width: 100%;
1627
+ width: 100%;
1628
+ display: flex;
1629
+ padding: 0px;
1630
+ margin-left: auto;
1631
+ margin-right: auto;
1632
+ align-items: center;
1633
+ justify-content: center;
1634
+ height: 100vh;
1635
+ `
1636
+ };
1637
+ var flexStyles = {
1638
+ row: import_styled_components26.css`
1639
+ width: inherit;
1640
+ display: flex;
1641
+ flex-direction: row;
1642
+ `,
1643
+ col: import_styled_components26.css`
1644
+ width: inherit;
1645
+ display: flex;
1646
+ flex-direction: column;
1647
+ `
1648
+ };
1649
+ var gapStyles6 = {
1650
+ xs: import_styled_components26.css`
1651
+ gap: 1em;
1652
+ `,
1653
+ sm: import_styled_components26.css`
1654
+ gap: 3em;
1655
+ `,
1656
+ md: import_styled_components26.css`
1657
+ gap: 5em;
1658
+ `,
1659
+ lg: import_styled_components26.css`
1660
+ gap: 7em;
1661
+ `
1662
+ };
1663
+ var CustomDiv6 = import_styled_components26.default.div`
1664
+ ${baseStyle14}
1665
+ ${({ $size, $flex, $gap }) => import_styled_components26.css`
1666
+ ${sizeStyles4[$size]}
1667
+ ${flexStyles[$flex]}
1668
+ ${gapStyles6[$gap]}
1669
+ `}
1670
+ `;
1671
+ var Container = ({
1672
+ size = "lg",
1673
+ flex = "row",
1674
+ gap = "xs",
1675
+ children,
1676
+ ...rest
1677
+ }) => {
1678
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CustomDiv6, { $size: size, $flex: flex, $gap: gap, ...rest, children });
1679
+ };
1680
+ var Container_default = Container;
1681
+
1682
+ // src/components/Layouts/Grid.tsx
1683
+ var import_styled_components27 = __toESM(require("styled-components"));
1684
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1685
+ var baseStyle15 = import_styled_components27.css`
1686
+ display: grid;
1687
+ width: 100%;
1688
+ `;
1689
+ var gapStyles7 = {
1690
+ xs: import_styled_components27.css`
1691
+ gap: 0.5rem;
1692
+ `,
1693
+ sm: import_styled_components27.css`
1694
+ gap: 1rem;
1695
+ `,
1696
+ md: import_styled_components27.css`
1697
+ gap: 2rem;
1698
+ `,
1699
+ lg: import_styled_components27.css`
1700
+ gap: 3rem;
1701
+ `
1702
+ };
1703
+ var StyledGrid = import_styled_components27.default.div`
1704
+ ${baseStyle15}
1705
+
1706
+ ${({ $columns }) => import_styled_components27.css`
1707
+ grid-template-columns: repeat(${$columns}, minmax(0, 1fr));
1708
+ `}
1709
+
1710
+ ${({ $rows }) => $rows && import_styled_components27.css`
1711
+ grid-template-rows: repeat(${$rows}, 1fr);
1712
+ `}
1713
+
1714
+ ${({ $gap }) => gapStyles7[$gap]}
1715
+ `;
1716
+ var Grid2 = ({
1717
+ columns = 12,
1718
+ rows,
1719
+ gap = "sm",
1720
+ children,
1721
+ ...rest
1722
+ }) => {
1723
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1724
+ StyledGrid,
1725
+ {
1726
+ $columns: columns,
1727
+ $rows: rows,
1728
+ $gap: gap,
1729
+ ...rest,
1730
+ children
1731
+ }
1732
+ );
1733
+ };
1734
+ var Grid_default = Grid2;
1735
+
1736
+ // src/components/Layouts/Stack.tsx
1737
+ var import_styled_components28 = __toESM(require("styled-components"));
1738
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1739
+ var baseStyle16 = import_styled_components28.css`
1740
+ display: flex;
1741
+ width: 100%;
1742
+ `;
1743
+ var directionStyles = {
1744
+ vertical: import_styled_components28.css`
1745
+ flex-direction: column;
1746
+ `,
1747
+ horizontal: import_styled_components28.css`
1748
+ flex-direction: row;
1749
+ `
1750
+ };
1751
+ var gapStyles8 = {
1752
+ xs: import_styled_components28.css`
1753
+ gap: 0.5rem;
1754
+ `,
1755
+ sm: import_styled_components28.css`
1756
+ gap: 1rem;
1757
+ `,
1758
+ md: import_styled_components28.css`
1759
+ gap: 2rem;
1760
+ `,
1761
+ lg: import_styled_components28.css`
1762
+ gap: 3rem;
1763
+ `
1764
+ };
1765
+ var StyledStack = import_styled_components28.default.div`
1766
+ ${baseStyle16}
1767
+ ${({ $direction }) => directionStyles[$direction]}
1768
+ ${({ $gap }) => gapStyles8[$gap]}
1769
+ `;
1770
+ var Stack = ({
1771
+ direction = "vertical",
1772
+ gap = "sm",
1773
+ children,
1774
+ ...rest
1775
+ }) => {
1776
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledStack, { $direction: direction, $gap: gap, ...rest, children });
1777
+ };
1778
+ var Stack_default = Stack;
1286
1779
  // Annotate the CommonJS export names for ESM import in node:
1287
1780
  0 && (module.exports = {
1288
1781
  Box,
1289
1782
  Button,
1290
1783
  Card,
1784
+ Center,
1785
+ CenterMenu,
1291
1786
  Checkbox,
1787
+ Col,
1788
+ Container,
1292
1789
  DatePicker,
1293
1790
  Divider,
1294
1791
  Drawer,
1295
1792
  Flex,
1296
1793
  Form,
1297
1794
  FormControl,
1795
+ Grid,
1298
1796
  Heading,
1797
+ HorizantalMenu,
1299
1798
  Input,
1300
1799
  Link,
1301
1800
  Modal,
1302
1801
  Paragraph,
1303
1802
  Radio,
1803
+ Row,
1304
1804
  Select,
1805
+ Stack,
1305
1806
  Switch,
1306
1807
  Text,
1307
1808
  Textarea