beyond-system 0.12.1 → 0.12.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/react/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AASzC,QAAA,MAAM,QAAQ;UALN,MAAM;UACN,MAAM,SAAS;;
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/react/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AASzC,QAAA,MAAM,QAAQ;UALN,MAAM;UACN,MAAM,SAAS;;iFA6CrB,CAAA;AAIF,eAAe,QAAQ,CAAA"}
|
|
@@ -5,14 +5,20 @@ var react_1 = tslib_1.__importStar(require("react"));
|
|
|
5
5
|
var clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
6
6
|
var MenuItem = (0, react_1.forwardRef)(function (_a) {
|
|
7
7
|
var _b = _a.selected, selected = _b === void 0 ? false : _b, props = tslib_1.__rest(_a, ["selected"]);
|
|
8
|
-
return (react_1.default.createElement("button", tslib_1.__assign({}, props, { className: (0, clsx_1.default)(
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
return (react_1.default.createElement("button", tslib_1.__assign({}, props, { className: (0, clsx_1.default)("outline-none break-words w-56 py-4 px-2 text-left font-semibold rounded active:bg-orange-100 group cursor-pointer transition", {
|
|
9
|
+
"hover:bg-neutral-100": !selected,
|
|
10
|
+
"bg-orange-100 hover:bg-orange-200": selected,
|
|
11
11
|
}, props.className) }),
|
|
12
12
|
react_1.default.createElement("div", { className: "grid grid-cols-6 items-center" },
|
|
13
|
-
props.icon && (react_1.default.createElement("div", { className: "pl-1 [&>*]:w-5 [&>*]:h-5"
|
|
14
|
-
|
|
13
|
+
props.icon && (react_1.default.createElement("div", { className: (0, clsx_1.default)("pl-1 [&>*]:w-5 [&>*]:h-5 group-active:[&>*]:fill-orange-500", {
|
|
14
|
+
"[&>*]:fill-neutral-600": !selected,
|
|
15
|
+
"[&>*]:fill-orange-500": selected,
|
|
16
|
+
}) }, props.icon)),
|
|
17
|
+
props.text && (react_1.default.createElement("span", { className: (0, clsx_1.default)("col-span-5 text-sm group-active:text-orange-500", {
|
|
18
|
+
"text-neutral-600": !selected,
|
|
19
|
+
"text-orange-500": selected,
|
|
20
|
+
}) }, props.text)))));
|
|
15
21
|
});
|
|
16
|
-
MenuItem.displayName =
|
|
22
|
+
MenuItem.displayName = "MenuItem";
|
|
17
23
|
exports.default = MenuItem;
|
|
18
24
|
//# sourceMappingURL=MenuItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../../../src/components/react/MenuItem/MenuItem.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,sDAAuB;AAQvB,IAAM,QAAQ,GAAG,IAAA,kBAAU,EAAC,UAAC,EAA6C;IAA3C,IAAA,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAK,KAAK,sBAA5B,YAA8B,CAAF;IACvD,OAAO,CACL,6DACM,KAAK,IACT,SAAS,EAAE,IAAA,cAAI,EACb,
|
|
1
|
+
{"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../../../src/components/react/MenuItem/MenuItem.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,sDAAuB;AAQvB,IAAM,QAAQ,GAAG,IAAA,kBAAU,EAAC,UAAC,EAA6C;IAA3C,IAAA,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAK,KAAK,sBAA5B,YAA8B,CAAF;IACvD,OAAO,CACL,6DACM,KAAK,IACT,SAAS,EAAE,IAAA,cAAI,EACb,8HAA8H,EAC9H;YACE,sBAAsB,EAAE,CAAC,QAAQ;YACjC,mCAAmC,EAAE,QAAQ;SAC9C,EACD,KAAK,CAAC,SAAS,CAChB;QAED,uCAAK,SAAS,EAAC,+BAA+B;YAC3C,KAAK,CAAC,IAAI,IAAI,CACb,uCAAK,SAAS,EAAE,IAAA,cAAI,EAClB,6DAA6D,EAC7D;oBACE,wBAAwB,EAAE,CAAC,QAAQ;oBACnC,uBAAuB,EAAE,QAAQ;iBAClC,CACF,IACE,KAAK,CAAC,IAAI,CACP,CACP;YACA,KAAK,CAAC,IAAI,IAAI,CACb,wCAAM,SAAS,EAAE,IAAA,cAAI,EACnB,iDAAiD,EACjD;oBACE,kBAAkB,EAAE,CAAC,QAAQ;oBAC7B,iBAAiB,EAAE,QAAQ;iBAC5B,CACF,IAGE,KAAK,CAAC,IAAI,CACN,CACR,CACG,CACC,CACV,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,kBAAe,QAAQ,CAAA"}
|
package/dist/styles/global.css
CHANGED
|
@@ -949,6 +949,14 @@ video {
|
|
|
949
949
|
fill: #FFFFFF;
|
|
950
950
|
}
|
|
951
951
|
|
|
952
|
+
.fill-neutral-600 {
|
|
953
|
+
fill: #4E4F51;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.fill-orange-500 {
|
|
957
|
+
fill: #f97316;
|
|
958
|
+
}
|
|
959
|
+
|
|
952
960
|
.p-1 {
|
|
953
961
|
padding: 0.25rem;
|
|
954
962
|
}
|
|
@@ -1580,11 +1588,6 @@ video {
|
|
|
1580
1588
|
background-color: rgb(217 217 224 / var(--tw-bg-opacity));
|
|
1581
1589
|
}
|
|
1582
1590
|
|
|
1583
|
-
.focus\:bg-orange-200:focus {
|
|
1584
|
-
--tw-bg-opacity: 1;
|
|
1585
|
-
background-color: rgb(254 215 170 / var(--tw-bg-opacity));
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
1591
|
.focus\:shadow-gm-growth-lighter:focus {
|
|
1589
1592
|
--tw-shadow: 0px 3px #FCE3CF;
|
|
1590
1593
|
--tw-shadow-colored: 0px 3px var(--tw-shadow-color);
|
|
@@ -1617,11 +1620,6 @@ video {
|
|
|
1617
1620
|
color: rgb(250 251 252 / var(--tw-text-opacity));
|
|
1618
1621
|
}
|
|
1619
1622
|
|
|
1620
|
-
.active\:text-orange-500:active {
|
|
1621
|
-
--tw-text-opacity: 1;
|
|
1622
|
-
color: rgb(249 115 22 / var(--tw-text-opacity));
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
1623
|
.disabled\:pointer-events-none:disabled {
|
|
1626
1624
|
pointer-events: none;
|
|
1627
1625
|
}
|
|
@@ -1658,6 +1656,11 @@ video {
|
|
|
1658
1656
|
background-color: transparent;
|
|
1659
1657
|
}
|
|
1660
1658
|
|
|
1659
|
+
.group:active .group-active\:text-orange-500 {
|
|
1660
|
+
--tw-text-opacity: 1;
|
|
1661
|
+
color: rgb(249 115 22 / var(--tw-text-opacity));
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1661
1664
|
.data-\[state\=checked\]\:border-info-mid[data-state=checked] {
|
|
1662
1665
|
--tw-border-opacity: 1;
|
|
1663
1666
|
border-color: rgb(95 142 255 / var(--tw-border-opacity));
|
|
@@ -1707,6 +1710,14 @@ video {
|
|
|
1707
1710
|
width: 1.25rem;
|
|
1708
1711
|
}
|
|
1709
1712
|
|
|
1713
|
+
.\[\&\>\*\]\:fill-neutral-600>* {
|
|
1714
|
+
fill: #4E4F51;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.\[\&\>\*\]\:fill-orange-500>* {
|
|
1718
|
+
fill: #f97316;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1710
1721
|
.\[\&\>\*\]\:text-sm>* {
|
|
1711
1722
|
font-size: 0.875rem;
|
|
1712
1723
|
line-height: 1.25rem;
|
|
@@ -1722,9 +1733,8 @@ video {
|
|
|
1722
1733
|
color: rgb(250 251 252 / var(--tw-text-opacity));
|
|
1723
1734
|
}
|
|
1724
1735
|
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
color: rgb(249 115 22 / var(--tw-text-opacity));
|
|
1736
|
+
.group:active .group-active\:\[\&\>\*\]\:fill-orange-500>* {
|
|
1737
|
+
fill: #f97316;
|
|
1728
1738
|
}
|
|
1729
1739
|
|
|
1730
1740
|
.\[\&_\*\]\:text-alert-mid * {
|