@madgex/design-system 5.0.1-alpha.1 → 5.1.0-alpha.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.
- package/dist/_tokens/css/_tokens.css +9 -1
- package/dist/_tokens/js/_tokens-module.js +183 -1
- package/dist/_tokens/scss/_tokens.scss +31 -1
- package/dist/assets/icons.json +1 -1
- package/dist/css/index.css +1 -1
- package/package.json +2 -2
- package/src/components/accordion/README.md +30 -4
- package/src/components/accordion/accordion.config.js +1 -0
- package/src/components/accordion/accordion.njk +46 -2
- package/src/components/button/README.md +23 -4
- package/src/components/button/button.config.js +23 -50
- package/src/components/button/button.njk +64 -15
- package/src/components/card/README.md +78 -0
- package/src/components/card/_template.njk +26 -2
- package/src/components/card/card.config.js +27 -0
- package/src/components/card/card.njk +16 -13
- package/src/components/card/card.scss +47 -1
- package/src/components/icons/README.md +12 -12
- package/src/components/inputs/checkbox-pill/README.md +18 -0
- package/src/components/inputs/checkbox-pill/checkbox-pill.config.js +5 -0
- package/src/components/inputs/checkbox-pill/checkbox-pill.njk +87 -0
- package/src/components/inputs/checkbox-pill/checkbox-pill.scss +43 -0
- package/src/components/inputs/form-item/README.md +22 -0
- package/src/components/inputs/form-item/form-item.config.js +5 -0
- package/src/components/inputs/form-item/form-item.njk +37 -0
- package/src/components/inputs/input/README.md +22 -6
- package/src/components/inputs/input/input.njk +61 -1
- package/src/components/inputs/label/README.md +32 -4
- package/src/components/inputs/label/label.config.js +9 -0
- package/src/components/inputs/label/label.njk +39 -0
- package/src/components/inputs/single-checkbox/README.md +29 -3
- package/src/components/inputs/single-checkbox/single-checkbox.njk +50 -1
- package/src/components/pagination/README.md +5 -5
- package/src/components/popover/README.md +26 -3
- package/src/components/popover/popover.config.js +1 -0
- package/src/components/popover/popover.njk +25 -3
- package/src/components/tabs/README.md +1 -1
- package/src/components/tabs/_template.njk +1 -1
- package/src/components/tabs/tabs.config.js +29 -6
- package/src/components/tabs/tabs.njk +2 -0
- package/src/scss/components/__index.scss +1 -0
- package/src/tokens/color.json +18 -0
- package/src/tokens/custom.json +22 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 30 Jun 2022 11:35:11 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -76,6 +76,14 @@
|
|
|
76
76
|
--mds-color-input-focus: #5092fd;
|
|
77
77
|
--mds-color-input-disabled-label: rgba(84, 84, 84, 0.5);
|
|
78
78
|
--mds-color-input-disabled-field: rgba(176, 176, 176, 0.5);
|
|
79
|
+
--mds-color-pill-bg-base: #1b75bb;
|
|
80
|
+
--mds-color-pill-bg-hover: #2990e0;
|
|
81
|
+
--mds-color-pill-text-base: #ffffff;
|
|
82
|
+
--mds-color-pill-text-hover: #ffffff;
|
|
83
|
+
--mds-custom-badge-1-background: #000000;
|
|
84
|
+
--mds-custom-badge-1-color: #fff;
|
|
85
|
+
--mds-custom-badge-2-background: #40791B;
|
|
86
|
+
--mds-custom-badge-2-color: #fff;
|
|
79
87
|
--mds-shadow-base: 0 2px 5px 0 #dddddd;
|
|
80
88
|
--mds-shadow-site-container: none;
|
|
81
89
|
--mds-shadow-main: none;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 30 Jun 2022 11:35:11 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
@@ -1534,6 +1534,188 @@ module.exports = {
|
|
|
1534
1534
|
]
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
|
+
},
|
|
1538
|
+
"pill": {
|
|
1539
|
+
"bg": {
|
|
1540
|
+
"base": {
|
|
1541
|
+
"value": "#1b75bb",
|
|
1542
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/color.json",
|
|
1543
|
+
"isSource": true,
|
|
1544
|
+
"original": {
|
|
1545
|
+
"value": "{color.brand.1.base.value}"
|
|
1546
|
+
},
|
|
1547
|
+
"name": "MdsColorPillBgBase",
|
|
1548
|
+
"attributes": {
|
|
1549
|
+
"category": "color",
|
|
1550
|
+
"type": "pill",
|
|
1551
|
+
"item": "bg",
|
|
1552
|
+
"subitem": "base"
|
|
1553
|
+
},
|
|
1554
|
+
"path": [
|
|
1555
|
+
"color",
|
|
1556
|
+
"pill",
|
|
1557
|
+
"bg",
|
|
1558
|
+
"base"
|
|
1559
|
+
]
|
|
1560
|
+
},
|
|
1561
|
+
"hover": {
|
|
1562
|
+
"value": "#2990e0",
|
|
1563
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/color.json",
|
|
1564
|
+
"isSource": true,
|
|
1565
|
+
"original": {
|
|
1566
|
+
"value": "{color.brand.1.light.value}"
|
|
1567
|
+
},
|
|
1568
|
+
"name": "MdsColorPillBgHover",
|
|
1569
|
+
"attributes": {
|
|
1570
|
+
"category": "color",
|
|
1571
|
+
"type": "pill",
|
|
1572
|
+
"item": "bg",
|
|
1573
|
+
"subitem": "hover"
|
|
1574
|
+
},
|
|
1575
|
+
"path": [
|
|
1576
|
+
"color",
|
|
1577
|
+
"pill",
|
|
1578
|
+
"bg",
|
|
1579
|
+
"hover"
|
|
1580
|
+
]
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
"text": {
|
|
1584
|
+
"base": {
|
|
1585
|
+
"value": "#ffffff",
|
|
1586
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/color.json",
|
|
1587
|
+
"isSource": true,
|
|
1588
|
+
"original": {
|
|
1589
|
+
"value": "#fff"
|
|
1590
|
+
},
|
|
1591
|
+
"name": "MdsColorPillTextBase",
|
|
1592
|
+
"attributes": {
|
|
1593
|
+
"category": "color",
|
|
1594
|
+
"type": "pill",
|
|
1595
|
+
"item": "text",
|
|
1596
|
+
"subitem": "base"
|
|
1597
|
+
},
|
|
1598
|
+
"path": [
|
|
1599
|
+
"color",
|
|
1600
|
+
"pill",
|
|
1601
|
+
"text",
|
|
1602
|
+
"base"
|
|
1603
|
+
]
|
|
1604
|
+
},
|
|
1605
|
+
"hover": {
|
|
1606
|
+
"value": "#ffffff",
|
|
1607
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/color.json",
|
|
1608
|
+
"isSource": true,
|
|
1609
|
+
"original": {
|
|
1610
|
+
"value": "{color.pill.text.base.value}"
|
|
1611
|
+
},
|
|
1612
|
+
"name": "MdsColorPillTextHover",
|
|
1613
|
+
"attributes": {
|
|
1614
|
+
"category": "color",
|
|
1615
|
+
"type": "pill",
|
|
1616
|
+
"item": "text",
|
|
1617
|
+
"subitem": "hover"
|
|
1618
|
+
},
|
|
1619
|
+
"path": [
|
|
1620
|
+
"color",
|
|
1621
|
+
"pill",
|
|
1622
|
+
"text",
|
|
1623
|
+
"hover"
|
|
1624
|
+
]
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
},
|
|
1629
|
+
"custom": {
|
|
1630
|
+
"badge": {
|
|
1631
|
+
"1": {
|
|
1632
|
+
"background": {
|
|
1633
|
+
"value": "#000000",
|
|
1634
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/custom.json",
|
|
1635
|
+
"isSource": true,
|
|
1636
|
+
"original": {
|
|
1637
|
+
"value": "{color.neutral.black.value}"
|
|
1638
|
+
},
|
|
1639
|
+
"name": "MdsCustomBadge1Background",
|
|
1640
|
+
"attributes": {
|
|
1641
|
+
"category": "custom",
|
|
1642
|
+
"type": "badge",
|
|
1643
|
+
"item": "1",
|
|
1644
|
+
"subitem": "background"
|
|
1645
|
+
},
|
|
1646
|
+
"path": [
|
|
1647
|
+
"custom",
|
|
1648
|
+
"badge",
|
|
1649
|
+
"1",
|
|
1650
|
+
"background"
|
|
1651
|
+
]
|
|
1652
|
+
},
|
|
1653
|
+
"color": {
|
|
1654
|
+
"value": "#fff",
|
|
1655
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/custom.json",
|
|
1656
|
+
"isSource": true,
|
|
1657
|
+
"original": {
|
|
1658
|
+
"value": "#fff"
|
|
1659
|
+
},
|
|
1660
|
+
"name": "MdsCustomBadge1Color",
|
|
1661
|
+
"attributes": {
|
|
1662
|
+
"category": "custom",
|
|
1663
|
+
"type": "badge",
|
|
1664
|
+
"item": "1",
|
|
1665
|
+
"subitem": "color"
|
|
1666
|
+
},
|
|
1667
|
+
"path": [
|
|
1668
|
+
"custom",
|
|
1669
|
+
"badge",
|
|
1670
|
+
"1",
|
|
1671
|
+
"color"
|
|
1672
|
+
]
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
"2": {
|
|
1676
|
+
"background": {
|
|
1677
|
+
"value": "#40791B",
|
|
1678
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/custom.json",
|
|
1679
|
+
"isSource": true,
|
|
1680
|
+
"original": {
|
|
1681
|
+
"value": "#40791B"
|
|
1682
|
+
},
|
|
1683
|
+
"name": "MdsCustomBadge2Background",
|
|
1684
|
+
"attributes": {
|
|
1685
|
+
"category": "custom",
|
|
1686
|
+
"type": "badge",
|
|
1687
|
+
"item": "2",
|
|
1688
|
+
"subitem": "background"
|
|
1689
|
+
},
|
|
1690
|
+
"path": [
|
|
1691
|
+
"custom",
|
|
1692
|
+
"badge",
|
|
1693
|
+
"2",
|
|
1694
|
+
"background"
|
|
1695
|
+
]
|
|
1696
|
+
},
|
|
1697
|
+
"color": {
|
|
1698
|
+
"value": "#fff",
|
|
1699
|
+
"filePath": "/Users/rphipps/Repos/madgex-design-system/packages/@madgex.design-system/src/tokens/custom.json",
|
|
1700
|
+
"isSource": true,
|
|
1701
|
+
"original": {
|
|
1702
|
+
"value": "#fff"
|
|
1703
|
+
},
|
|
1704
|
+
"name": "MdsCustomBadge2Color",
|
|
1705
|
+
"attributes": {
|
|
1706
|
+
"category": "custom",
|
|
1707
|
+
"type": "badge",
|
|
1708
|
+
"item": "2",
|
|
1709
|
+
"subitem": "color"
|
|
1710
|
+
},
|
|
1711
|
+
"path": [
|
|
1712
|
+
"custom",
|
|
1713
|
+
"badge",
|
|
1714
|
+
"2",
|
|
1715
|
+
"color"
|
|
1716
|
+
]
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1537
1719
|
}
|
|
1538
1720
|
},
|
|
1539
1721
|
"shadow": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Thu, 30 Jun 2022 11:35:11 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
$mds-color-brand-1-light: #2990e0 !default;
|
|
@@ -76,6 +76,14 @@ $mds-color-input-border: #949494 !default;
|
|
|
76
76
|
$mds-color-input-focus: #5092fd !default;
|
|
77
77
|
$mds-color-input-disabled-label: rgba(84, 84, 84, 0.5) !default;
|
|
78
78
|
$mds-color-input-disabled-field: rgba(176, 176, 176, 0.5) !default;
|
|
79
|
+
$mds-color-pill-bg-base: #1b75bb !default;
|
|
80
|
+
$mds-color-pill-bg-hover: #2990e0 !default;
|
|
81
|
+
$mds-color-pill-text-base: #ffffff !default;
|
|
82
|
+
$mds-color-pill-text-hover: #ffffff !default;
|
|
83
|
+
$mds-custom-badge-1-background: #000000 !default;
|
|
84
|
+
$mds-custom-badge-1-color: #fff !default;
|
|
85
|
+
$mds-custom-badge-2-background: #40791B !default;
|
|
86
|
+
$mds-custom-badge-2-color: #fff !default;
|
|
79
87
|
$mds-shadow-base: 0 2px 5px 0 #dddddd !default;
|
|
80
88
|
$mds-shadow-site-container: none !default;
|
|
81
89
|
$mds-shadow-main: none !default;
|
|
@@ -353,6 +361,28 @@ $tokens: (
|
|
|
353
361
|
'label': $mds-color-input-disabled-label,
|
|
354
362
|
'field': $mds-color-input-disabled-field
|
|
355
363
|
)
|
|
364
|
+
),
|
|
365
|
+
'pill': (
|
|
366
|
+
'bg': (
|
|
367
|
+
'base': $mds-color-pill-bg-base,
|
|
368
|
+
'hover': $mds-color-pill-bg-hover
|
|
369
|
+
),
|
|
370
|
+
'text': (
|
|
371
|
+
'base': $mds-color-pill-text-base,
|
|
372
|
+
'hover': $mds-color-pill-text-hover
|
|
373
|
+
)
|
|
374
|
+
)
|
|
375
|
+
),
|
|
376
|
+
'custom': (
|
|
377
|
+
'badge': (
|
|
378
|
+
'1': (
|
|
379
|
+
'background': $mds-custom-badge-1-background,
|
|
380
|
+
'color': $mds-custom-badge-1-color
|
|
381
|
+
),
|
|
382
|
+
'2': (
|
|
383
|
+
'background': $mds-custom-badge-2-background,
|
|
384
|
+
'color': $mds-custom-badge-2-color
|
|
385
|
+
)
|
|
356
386
|
)
|
|
357
387
|
),
|
|
358
388
|
'shadow': (
|
package/dist/assets/icons.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"asterisk"},{"name":"calendar"},{"name":"check"},{"name":"chevron-down"},{"name":"chevron-left"},{"name":"chevron-right"},{"name":"
|
|
1
|
+
[{"name":"asterisk"},{"name":"calendar"},{"name":"check"},{"name":"chevron-down"},{"name":"chevron-left"},{"name":"chevron-right"},{"name":"chevron-up"},{"name":"close"},{"name":"doc-pdf"},{"name":"doc"},{"name":"cross"},{"name":"email"},{"name":"job"},{"name":"menu"},{"name":"minus"},{"name":"plus-small"},{"name":"location-pin"},{"name":"plus"},{"name":"search"},{"name":"question-mark"},{"name":"external"},{"name":"social-facebook"},{"name":"social-linkedin"},{"name":"social-pinterest"},{"name":"social-reddit"},{"name":"social-twitter"},{"name":"star-fill"},{"name":"upload"},{"name":"user"},{"name":"spinner"},{"name":"star-outline"}]
|