@trops/dash-core 0.1.572 → 0.1.573
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.esm.js +13 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -35284,24 +35284,20 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
35284
35284
|
level: colorLevelName
|
|
35285
35285
|
}, rest));
|
|
35286
35286
|
|
|
35287
|
-
//
|
|
35288
|
-
|
|
35289
|
-
//
|
|
35290
|
-
//
|
|
35291
|
-
|
|
35292
|
-
//
|
|
35293
|
-
|
|
35294
|
-
|
|
35295
|
-
|
|
35296
|
-
|
|
35297
|
-
|
|
35298
|
-
// shade: shade !== null ? shade : colorFromTheme !== null && derivedShade,
|
|
35299
|
-
// stringColor,
|
|
35300
|
-
// ...rest
|
|
35301
|
-
// };
|
|
35302
|
-
|
|
35287
|
+
// If the channel value is a hex (custom-color theme — PRD
|
|
35288
|
+
// arbitrary-color-themes.md), `c.class` becomes `bg-#xxx-500`
|
|
35289
|
+
// which isn't a valid Tailwind class and renders as nothing
|
|
35290
|
+
// (the dark page background bleeds through, looking black).
|
|
35291
|
+
// Use inline style for hex backgrounds; named colors continue
|
|
35292
|
+
// through the className path so existing themes are unchanged.
|
|
35293
|
+
var colorIsHex = isHexColor(colorName);
|
|
35294
|
+
var inlineStyle = colorIsHex ? {
|
|
35295
|
+
backgroundColor: colorName
|
|
35296
|
+
} : undefined;
|
|
35297
|
+
var bgClass = colorIsHex ? "" : c["class"];
|
|
35303
35298
|
return /*#__PURE__*/jsx("div", {
|
|
35304
|
-
className: "flex flex-col rounded-lg cursor-pointer items-center justify-center border-2 text-xs ".concat(selected === true ? "border-yellow-500" : "border-gray-800", " hover:border-yellow-500 border-gray-800 ").concat(
|
|
35299
|
+
className: "flex flex-col rounded-lg cursor-pointer items-center justify-center border-2 text-xs ".concat(selected === true ? "border-yellow-500" : "border-gray-800", " hover:border-yellow-500 border-gray-800 ").concat(bgClass, " ").concat(width, " ").concat(height),
|
|
35300
|
+
style: inlineStyle,
|
|
35305
35301
|
onClick: function onClick() {
|
|
35306
35302
|
return _onClick !== null ? _onClick(_objectSpread$F(_objectSpread$F({}, c), rest)) : null;
|
|
35307
35303
|
},
|