@uni-design-system/uni-core 10.2.1 → 10.3.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/esm/index.js
CHANGED
|
@@ -1558,6 +1558,15 @@ var buildComponents = (c) => ({
|
|
|
1558
1558
|
cursor: "pointer",
|
|
1559
1559
|
transition: "all 0.28s ease"
|
|
1560
1560
|
},
|
|
1561
|
+
variantOptions: {
|
|
1562
|
+
primary: { focusColor: "primary" },
|
|
1563
|
+
secondary: { focusColor: "secondary" },
|
|
1564
|
+
tertiary: { focusColor: "tertiary" },
|
|
1565
|
+
warn: { focusColor: "warn" },
|
|
1566
|
+
success: { focusColor: "success" },
|
|
1567
|
+
disabled: { focusColor: "disabled" },
|
|
1568
|
+
ghost: { focusColor: "primary" }
|
|
1569
|
+
},
|
|
1561
1570
|
variants: {
|
|
1562
1571
|
ghost: {
|
|
1563
1572
|
backgroundColor: "transparent",
|
|
@@ -1629,30 +1638,45 @@ var buildComponents = (c) => ({
|
|
|
1629
1638
|
},
|
|
1630
1639
|
iconButton: {
|
|
1631
1640
|
options: { borderRadius: "max" },
|
|
1641
|
+
variantOptions: {
|
|
1642
|
+
primary: { focusColor: "primary" },
|
|
1643
|
+
secondary: { focusColor: "secondary" },
|
|
1644
|
+
tertiary: { focusColor: "tertiary" },
|
|
1645
|
+
warn: { focusColor: "warn" },
|
|
1646
|
+
success: { focusColor: "success" },
|
|
1647
|
+
disabled: { focusColor: "disabled" },
|
|
1648
|
+
ghost: { focusColor: "primary" }
|
|
1649
|
+
},
|
|
1632
1650
|
variants: {
|
|
1633
1651
|
ghost: {
|
|
1634
1652
|
backgroundColor: "transparent",
|
|
1635
|
-
color: "currentcolor"
|
|
1653
|
+
color: "currentcolor",
|
|
1654
|
+
"&:hover": { backgroundColor: "rgba(0,0,0,0.1)" }
|
|
1636
1655
|
},
|
|
1637
1656
|
primary: {
|
|
1638
1657
|
backgroundColor: c.primary,
|
|
1639
|
-
color: c["on-primary"]
|
|
1658
|
+
color: c["on-primary"],
|
|
1659
|
+
"&:hover": { boxShadow: BaseShadows.raised }
|
|
1640
1660
|
},
|
|
1641
1661
|
secondary: {
|
|
1642
1662
|
backgroundColor: c.secondary,
|
|
1643
|
-
color: c["on-secondary"]
|
|
1663
|
+
color: c["on-secondary"],
|
|
1664
|
+
"&:hover": { boxShadow: BaseShadows.raised }
|
|
1644
1665
|
},
|
|
1645
1666
|
tertiary: {
|
|
1646
1667
|
backgroundColor: c.tertiary,
|
|
1647
|
-
color: c["on-tertiary"]
|
|
1668
|
+
color: c["on-tertiary"],
|
|
1669
|
+
"&:hover": { boxShadow: BaseShadows.raised }
|
|
1648
1670
|
},
|
|
1649
1671
|
warn: {
|
|
1650
1672
|
backgroundColor: c.warn,
|
|
1651
|
-
color: c["on-warn"]
|
|
1673
|
+
color: c["on-warn"],
|
|
1674
|
+
"&:hover": { boxShadow: BaseShadows.raised }
|
|
1652
1675
|
},
|
|
1653
1676
|
success: {
|
|
1654
1677
|
backgroundColor: c.success,
|
|
1655
|
-
color: c["on-success"]
|
|
1678
|
+
color: c["on-success"],
|
|
1679
|
+
"&:hover": { boxShadow: BaseShadows.raised }
|
|
1656
1680
|
},
|
|
1657
1681
|
disabled: {
|
|
1658
1682
|
backgroundColor: "transparent !important",
|