beyond-system 0.12.1 → 0.12.2

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;;iFA2BrB,CAAA;AAIF,eAAe,QAAQ,CAAA"}
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)('outline-none break-words w-56 py-4 px-2 text-left text-sm [&>*]:text-sm font-semibold rounded active:bg-orange-100 group [&>*]:active:text-orange-500 active:text-orange-500 cursor-pointer transition', {
9
- 'hover:bg-neutral-100 focus:bg-neutral-100 text-neutral-600': !selected,
10
- 'bg-orange-100 text-orange-500 hover:bg-orange-200 focus:bg-orange-200': selected,
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 focus:bg-neutral-100": !selected,
10
+ "bg-orange-100 hover:bg-orange-200 focus: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" }, props.icon)),
14
- props.text && react_1.default.createElement("span", { className: "col-span-5" }, props.text))));
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 = 'MenuItem';
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,wMAAwM,EACxM;YACE,4DAA4D,EAC1D,CAAC,QAAQ;YACX,uEAAuE,EACrE,QAAQ;SACX,EACD,KAAK,CAAC,SAAS,CAChB;QAED,uCAAK,SAAS,EAAC,+BAA+B;YAC3C,KAAK,CAAC,IAAI,IAAI,CACb,uCAAK,SAAS,EAAC,0BAA0B,IAAE,KAAK,CAAC,IAAI,CAAO,CAC7D;YACA,KAAK,CAAC,IAAI,IAAI,wCAAM,SAAS,EAAC,YAAY,IAAE,KAAK,CAAC,IAAI,CAAQ,CAC3D,CACC,CACV,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,kBAAe,QAAQ,CAAA"}
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,2CAA2C,EAAE,CAAC,QAAQ;YACtD,uDAAuD,EAAE,QAAQ;SAClE,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"}
@@ -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
  }
@@ -1617,11 +1625,6 @@ video {
1617
1625
  color: rgb(250 251 252 / var(--tw-text-opacity));
1618
1626
  }
1619
1627
 
1620
- .active\:text-orange-500:active {
1621
- --tw-text-opacity: 1;
1622
- color: rgb(249 115 22 / var(--tw-text-opacity));
1623
- }
1624
-
1625
1628
  .disabled\:pointer-events-none:disabled {
1626
1629
  pointer-events: none;
1627
1630
  }
@@ -1658,6 +1661,11 @@ video {
1658
1661
  background-color: transparent;
1659
1662
  }
1660
1663
 
1664
+ .group:active .group-active\:text-orange-500 {
1665
+ --tw-text-opacity: 1;
1666
+ color: rgb(249 115 22 / var(--tw-text-opacity));
1667
+ }
1668
+
1661
1669
  .data-\[state\=checked\]\:border-info-mid[data-state=checked] {
1662
1670
  --tw-border-opacity: 1;
1663
1671
  border-color: rgb(95 142 255 / var(--tw-border-opacity));
@@ -1707,6 +1715,14 @@ video {
1707
1715
  width: 1.25rem;
1708
1716
  }
1709
1717
 
1718
+ .\[\&\>\*\]\:fill-neutral-600>* {
1719
+ fill: #4E4F51;
1720
+ }
1721
+
1722
+ .\[\&\>\*\]\:fill-orange-500>* {
1723
+ fill: #f97316;
1724
+ }
1725
+
1710
1726
  .\[\&\>\*\]\:text-sm>* {
1711
1727
  font-size: 0.875rem;
1712
1728
  line-height: 1.25rem;
@@ -1722,9 +1738,8 @@ video {
1722
1738
  color: rgb(250 251 252 / var(--tw-text-opacity));
1723
1739
  }
1724
1740
 
1725
- .\[\&\>\*\]\:active\:text-orange-500:active>* {
1726
- --tw-text-opacity: 1;
1727
- color: rgb(249 115 22 / var(--tw-text-opacity));
1741
+ .group:active .group-active\:\[\&\>\*\]\:fill-orange-500>* {
1742
+ fill: #f97316;
1728
1743
  }
1729
1744
 
1730
1745
  .\[\&_\*\]\:text-alert-mid * {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beyond-system",
3
3
  "author": "Growth Machine",
4
- "version": "0.12.1",
4
+ "version": "0.12.2",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",