@react-hive/honey-style 6.1.0 → 6.2.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.
@@ -1116,14 +1116,40 @@ const createSpacingTransformer = ({ theme }) => {
1116
1116
  __webpack_require__.r(__webpack_exports__);
1117
1117
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1118
1118
  /* harmony export */ createCssRule: () => (/* binding */ createCssRule),
1119
- /* harmony export */ css: () => (/* binding */ css)
1119
+ /* harmony export */ css: () => (/* binding */ css),
1120
+ /* harmony export */ isCssColorProperty: () => (/* binding */ isCssColorProperty),
1121
+ /* harmony export */ isCssSpacingProperty: () => (/* binding */ isCssSpacingProperty)
1120
1122
  /* harmony export */ });
1121
1123
  /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1122
1124
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "./src/constants.ts");
1123
1125
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.ts");
1126
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ "./src/css/constants.ts");
1124
1127
 
1125
1128
 
1126
1129
 
1130
+
1131
+ /**
1132
+ * Checks whether a CSS property is spacing-related.
1133
+ *
1134
+ * Spacing properties include margins, paddings, positional offsets,
1135
+ * and layout gaps, such as `margin`, `paddingLeft`, `top`, and `gap`.
1136
+ *
1137
+ * @param propertyName - The CSS property name to check.
1138
+ *
1139
+ * @returns Returns true if the property is spacing-related.
1140
+ */
1141
+ const isCssSpacingProperty = (propertyName) => _constants__WEBPACK_IMPORTED_MODULE_3__.CSS_SPACING_PROPERTIES.includes(propertyName);
1142
+ /**
1143
+ * Checks whether a CSS property is color-related.
1144
+ *
1145
+ * Color properties include properties that directly define text, background,
1146
+ * border, outline, decoration, shadow, or SVG colors.
1147
+ *
1148
+ * @param propertyName - The CSS property name to check.
1149
+ *
1150
+ * @returns Returns true if the property is color-related.
1151
+ */
1152
+ const isCssColorProperty = (propertyName) => _constants__WEBPACK_IMPORTED_MODULE_3__.CSS_COLOR_PROPERTIES.includes(propertyName);
1127
1153
  const resolveCssInterpolation = (value, context) => {
1128
1154
  if (value === false || (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__.isNilOrEmptyString)(value)) {
1129
1155
  return '';
@@ -1241,6 +1267,8 @@ __webpack_require__.r(__webpack_exports__);
1241
1267
  /* harmony export */ CSS_SPACING_PROPERTIES: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_1__.CSS_SPACING_PROPERTIES),
1242
1268
  /* harmony export */ createCssRule: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_3__.createCssRule),
1243
1269
  /* harmony export */ css: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_3__.css),
1270
+ /* harmony export */ isCssColorProperty: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_3__.isCssColorProperty),
1271
+ /* harmony export */ isCssSpacingProperty: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_3__.isCssSpacingProperty),
1244
1272
  /* harmony export */ mediaQuery: () => (/* reexport safe */ _at_rules__WEBPACK_IMPORTED_MODULE_4__.mediaQuery),
1245
1273
  /* harmony export */ processCss: () => (/* reexport safe */ _process_css__WEBPACK_IMPORTED_MODULE_2__.processCss)
1246
1274
  /* harmony export */ });
@@ -2438,6 +2466,8 @@ __webpack_require__.r(__webpack_exports__);
2438
2466
  /* harmony export */ css: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.css),
2439
2467
  /* harmony export */ filterNonHtmlAttrs: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.filterNonHtmlAttrs),
2440
2468
  /* harmony export */ generateId: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.generateId),
2469
+ /* harmony export */ isCssColorProperty: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.isCssColorProperty),
2470
+ /* harmony export */ isCssSpacingProperty: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.isCssSpacingProperty),
2441
2471
  /* harmony export */ isStyledComponent: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.isStyledComponent),
2442
2472
  /* harmony export */ isThemeColorValue: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.isThemeColorValue),
2443
2473
  /* harmony export */ mediaQuery: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.mediaQuery),