@react-hive/honey-style 5.2.0 → 5.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/css/unwrap-params.d.ts +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.dev.cjs +21 -21
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +8 -27
package/dist/index.dev.cjs
CHANGED
|
@@ -725,7 +725,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
725
725
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
726
726
|
/* harmony export */ mediaQuery: () => (/* binding */ mediaQuery)
|
|
727
727
|
/* harmony export */ });
|
|
728
|
-
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
728
|
+
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
|
|
729
729
|
|
|
730
730
|
/**
|
|
731
731
|
* Constructs a complete `@media` query string from an array of media rule objects.
|
|
@@ -783,7 +783,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
783
783
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
784
784
|
/* harmony export */ compileCss: () => (/* binding */ compileCss)
|
|
785
785
|
/* harmony export */ });
|
|
786
|
-
/* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.
|
|
786
|
+
/* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs");
|
|
787
787
|
/* harmony import */ var _flatten_css_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./flatten-css-rules */ "./src/css/flatten-css-rules.ts");
|
|
788
788
|
|
|
789
789
|
|
|
@@ -1054,7 +1054,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1054
1054
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1055
1055
|
/* harmony export */ createSpacingTransformer: () => (/* binding */ createSpacingTransformer)
|
|
1056
1056
|
/* harmony export */ });
|
|
1057
|
-
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
1057
|
+
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
|
|
1058
1058
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/css/constants.ts");
|
|
1059
1059
|
/* harmony import */ var _resolve_spacing_value__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resolve-spacing-value */ "./src/css/resolve-spacing-value.ts");
|
|
1060
1060
|
|
|
@@ -1112,7 +1112,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1112
1112
|
/* harmony export */ createCssRule: () => (/* binding */ createCssRule),
|
|
1113
1113
|
/* harmony export */ css: () => (/* binding */ css)
|
|
1114
1114
|
/* harmony export */ });
|
|
1115
|
-
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
1115
|
+
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
|
|
1116
1116
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "./src/constants.ts");
|
|
1117
1117
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.ts");
|
|
1118
1118
|
|
|
@@ -1157,7 +1157,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1157
1157
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1158
1158
|
/* harmony export */ flattenCssRules: () => (/* binding */ flattenCssRules)
|
|
1159
1159
|
/* harmony export */ });
|
|
1160
|
-
/* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.
|
|
1160
|
+
/* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs");
|
|
1161
1161
|
|
|
1162
1162
|
const SELECTOR_CONTEXT_AT_RULES = {
|
|
1163
1163
|
media: true,
|
|
@@ -1262,7 +1262,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1262
1262
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1263
1263
|
/* harmony export */ processCss: () => (/* binding */ processCss)
|
|
1264
1264
|
/* harmony export */ });
|
|
1265
|
-
/* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.
|
|
1265
|
+
/* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs");
|
|
1266
1266
|
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css */ "./src/css/css.ts");
|
|
1267
1267
|
/* harmony import */ var _compile_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./compile-css */ "./src/css/compile-css.ts");
|
|
1268
1268
|
/* harmony import */ var _transform_absolute_fill_at_rule__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transform-absolute-fill-at-rule */ "./src/css/transform-absolute-fill-at-rule.ts");
|
|
@@ -1599,11 +1599,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1599
1599
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1600
1600
|
/* harmony export */ unwrapParams: () => (/* binding */ unwrapParams)
|
|
1601
1601
|
/* harmony export */ });
|
|
1602
|
-
const unwrapParams = (
|
|
1603
|
-
if (!
|
|
1602
|
+
const unwrapParams = (input) => {
|
|
1603
|
+
if (!input) {
|
|
1604
1604
|
return '';
|
|
1605
1605
|
}
|
|
1606
|
-
const trimmed =
|
|
1606
|
+
const trimmed = input.trim();
|
|
1607
1607
|
if (trimmed.startsWith('(') && trimmed.endsWith(')')) {
|
|
1608
1608
|
return trimmed.slice(1, -1).trim();
|
|
1609
1609
|
}
|
|
@@ -1687,7 +1687,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1687
1687
|
/* harmony export */ });
|
|
1688
1688
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
1689
1689
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1690
|
-
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
1690
|
+
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
|
|
1691
1691
|
/* harmony import */ var _contexts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../contexts */ "./src/contexts/index.ts");
|
|
1692
1692
|
|
|
1693
1693
|
|
|
@@ -1855,7 +1855,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1855
1855
|
/* harmony export */ });
|
|
1856
1856
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
1857
1857
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1858
|
-
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
1858
|
+
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
|
|
1859
1859
|
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./css */ "./src/css/index.ts");
|
|
1860
1860
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
1861
1861
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
|
|
@@ -1904,7 +1904,7 @@ const styled = (target, defaultProps, { omitProps } = {}) => {
|
|
|
1904
1904
|
theme,
|
|
1905
1905
|
};
|
|
1906
1906
|
const rawCss = computeCss(context);
|
|
1907
|
-
const baseClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.
|
|
1907
|
+
const baseClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.buildClassName)(rawCss);
|
|
1908
1908
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(() => {
|
|
1909
1909
|
const baseCss = (0,_css__WEBPACK_IMPORTED_MODULE_2__.processCss)(rawCss, {
|
|
1910
1910
|
theme,
|
|
@@ -1914,7 +1914,7 @@ const styled = (target, defaultProps, { omitProps } = {}) => {
|
|
|
1914
1914
|
}, [baseClassName]);
|
|
1915
1915
|
const cssPropRaw = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.invokeIfFunction)(cssProp, context);
|
|
1916
1916
|
const cssPropString = evaluateDynamicCss(cssPropRaw, context);
|
|
1917
|
-
const cssPropClassName = cssPropString ? (0,_utils__WEBPACK_IMPORTED_MODULE_4__.
|
|
1917
|
+
const cssPropClassName = cssPropString ? (0,_utils__WEBPACK_IMPORTED_MODULE_4__.buildClassName)(cssPropString) : '';
|
|
1918
1918
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(() => {
|
|
1919
1919
|
if (cssPropClassName) {
|
|
1920
1920
|
const overrideCss = (0,_css__WEBPACK_IMPORTED_MODULE_2__.processCss)(cssPropString, {
|
|
@@ -2020,19 +2020,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2020
2020
|
|
|
2021
2021
|
__webpack_require__.r(__webpack_exports__);
|
|
2022
2022
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2023
|
+
/* harmony export */ buildClassName: () => (/* binding */ buildClassName),
|
|
2023
2024
|
/* harmony export */ combineClassNames: () => (/* binding */ combineClassNames),
|
|
2024
2025
|
/* harmony export */ filterNonHtmlAttrs: () => (/* binding */ filterNonHtmlAttrs),
|
|
2025
2026
|
/* harmony export */ generateId: () => (/* binding */ generateId),
|
|
2026
2027
|
/* harmony export */ isStyledComponent: () => (/* binding */ isStyledComponent),
|
|
2027
2028
|
/* harmony export */ isThemeColorValue: () => (/* binding */ isThemeColorValue),
|
|
2028
2029
|
/* harmony export */ pxToRem: () => (/* binding */ pxToRem),
|
|
2029
|
-
/* harmony export */ resolveClassName: () => (/* binding */ resolveClassName),
|
|
2030
2030
|
/* harmony export */ resolveColor: () => (/* binding */ resolveColor),
|
|
2031
2031
|
/* harmony export */ resolveDimension: () => (/* binding */ resolveDimension),
|
|
2032
2032
|
/* harmony export */ resolveFont: () => (/* binding */ resolveFont),
|
|
2033
2033
|
/* harmony export */ resolveSpacing: () => (/* binding */ resolveSpacing)
|
|
2034
2034
|
/* harmony export */ });
|
|
2035
|
-
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
2035
|
+
/* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
|
|
2036
2036
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
2037
2037
|
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./css */ "./src/css/index.ts");
|
|
2038
2038
|
|
|
@@ -2045,7 +2045,7 @@ const generateId = (prefix) => `${prefix}-${(0,_react_hive_honey_utils__WEBPACK_
|
|
|
2045
2045
|
* @param classNames - Array of class names to combine
|
|
2046
2046
|
*/
|
|
2047
2047
|
const combineClassNames = (classNames) => classNames.filter(Boolean).join(' ').trim();
|
|
2048
|
-
const
|
|
2048
|
+
const buildClassName = (css) => `hscn-${(0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__.hashString)(css)}`;
|
|
2049
2049
|
const isStyledComponent = (component) => _constants__WEBPACK_IMPORTED_MODULE_1__.HONEY_STYLED_COMPONENT_ID_PROP in component;
|
|
2050
2050
|
/**
|
|
2051
2051
|
* Filters out non-standard HTML attributes from a props object intended for a native HTML element.
|
|
@@ -2194,9 +2194,9 @@ module.exports = require("react");
|
|
|
2194
2194
|
|
|
2195
2195
|
/***/ },
|
|
2196
2196
|
|
|
2197
|
-
/***/ "./node_modules/.pnpm/@react-hive+honey-css@1.
|
|
2197
|
+
/***/ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs"
|
|
2198
2198
|
/*!***********************************************************************************************************!*\
|
|
2199
|
-
!*** ./node_modules/.pnpm/@react-hive+honey-css@1.
|
|
2199
|
+
!*** ./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs ***!
|
|
2200
2200
|
\***********************************************************************************************************/
|
|
2201
2201
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2202
2202
|
|
|
@@ -2220,9 +2220,9 @@ const e=e=>"{"===e||"}"===e||":"===e||";"===e||"@"===e||"("===e||'"'===e||"'"===
|
|
|
2220
2220
|
|
|
2221
2221
|
/***/ },
|
|
2222
2222
|
|
|
2223
|
-
/***/ "./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
2223
|
+
/***/ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs"
|
|
2224
2224
|
/*!***************************************************************************************************************!*\
|
|
2225
|
-
!*** ./node_modules/.pnpm/@react-hive+honey-utils@3.
|
|
2225
|
+
!*** ./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs ***!
|
|
2226
2226
|
\***************************************************************************************************************/
|
|
2227
2227
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2228
2228
|
|
|
@@ -2423,6 +2423,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2423
2423
|
/* harmony export */ HoneyStyleProvider: () => (/* reexport safe */ _providers__WEBPACK_IMPORTED_MODULE_2__.HoneyStyleProvider),
|
|
2424
2424
|
/* harmony export */ VALID_DOM_ELEMENT_ATTRS: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.VALID_DOM_ELEMENT_ATTRS),
|
|
2425
2425
|
/* harmony export */ __DEV__: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.__DEV__),
|
|
2426
|
+
/* harmony export */ buildClassName: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.buildClassName),
|
|
2426
2427
|
/* harmony export */ combineClassNames: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.combineClassNames),
|
|
2427
2428
|
/* harmony export */ createCssRule: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.createCssRule),
|
|
2428
2429
|
/* harmony export */ createGlobalStyle: () => (/* reexport safe */ _global_style__WEBPACK_IMPORTED_MODULE_6__.createGlobalStyle),
|
|
@@ -2434,7 +2435,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2434
2435
|
/* harmony export */ mediaQuery: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.mediaQuery),
|
|
2435
2436
|
/* harmony export */ processCss: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.processCss),
|
|
2436
2437
|
/* harmony export */ pxToRem: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.pxToRem),
|
|
2437
|
-
/* harmony export */ resolveClassName: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.resolveClassName),
|
|
2438
2438
|
/* harmony export */ resolveColor: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.resolveColor),
|
|
2439
2439
|
/* harmony export */ resolveDimension: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.resolveDimension),
|
|
2440
2440
|
/* harmony export */ resolveFont: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_8__.resolveFont),
|