@react-hive/honey-layout 14.2.0 → 15.0.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.
@@ -5604,7 +5604,7 @@ const checkIsColorCSSProperty = (propertyName) => _react_hive_honey_style__WEBPA
5604
5604
  *
5605
5605
  * @returns Returns true if the property is a valid prefixed CSS property, otherwise false.
5606
5606
  */
5607
- const checkIs$PrefixedCSSProperty = (propertyName) => propertyName[0] === '$';
5607
+ const is$PrefixedCSSProperty = (propertyName) => propertyName[0] === '$';
5608
5608
  /**
5609
5609
  * Retrieves the CSS property value for a specific breakpoint, potentially resolving it to include units.
5610
5610
  *
@@ -5655,8 +5655,11 @@ const getCSSPropertyValue = (propertyName, propertyValue, breakpoint) => {
5655
5655
  *
5656
5656
  * @returns An array of tuples where each tuple contains a Honey-prefixed CSS property and its value.
5657
5657
  */
5658
- const matchCSSProperties = (props, breakpoint) => Object.entries(props).filter(([propertyName, propertyValue]) => (checkIs$PrefixedCSSProperty(propertyName) && breakpoint === 'xs') ||
5659
- (propertyValue && typeof propertyValue === 'object' && breakpoint in propertyValue));
5658
+ const matchCSSProperties = (props, breakpoint) => Object.entries(props).filter(([propertyName, propertyValue]) => {
5659
+ const isMatchingXsBreakpoint = breakpoint === 'xs' && is$PrefixedCSSProperty(propertyName);
5660
+ return (isMatchingXsBreakpoint ||
5661
+ (propertyValue && typeof propertyValue === 'object' && breakpoint in propertyValue));
5662
+ });
5660
5663
  /**
5661
5664
  * Generates CSS styles based on the provided breakpoint and properties.
5662
5665
  * Filters the properties to include only those that match the specified breakpoint.
@@ -5687,7 +5690,7 @@ const createStyles = (breakpoint) => ({ theme, ...props }) => (0,_react_hive_hon
5687
5690
  *
5688
5691
  * @returns Returns true if at least one property in `props` has styles for the specified breakpoint; otherwise, false.
5689
5692
  */
5690
- const hasBreakpointStyles = (breakpoint, props) => Object.entries(props).some(([propertyName, propertyValue]) => checkIs$PrefixedCSSProperty(propertyName) &&
5693
+ const hasBreakpointStyles = (breakpoint, props) => Object.entries(props).some(([propertyName, propertyValue]) => is$PrefixedCSSProperty(propertyName) &&
5691
5694
  typeof propertyValue === 'object' &&
5692
5695
  breakpoint in propertyValue);
5693
5696
  /**
@@ -15561,12 +15564,6 @@ const e=e=>new Blob([e],{type:e.type}),t=e=>new DOMRect(e.offsetLeft,e.offsetTop
15561
15564
  /******/ if (cachedModule !== undefined) {
15562
15565
  /******/ return cachedModule.exports;
15563
15566
  /******/ }
15564
- /******/ // Check if module exists (development only)
15565
- /******/ if (__webpack_modules__[moduleId] === undefined) {
15566
- /******/ var e = new Error("Cannot find module '" + moduleId + "'");
15567
- /******/ e.code = 'MODULE_NOT_FOUND';
15568
- /******/ throw e;
15569
- /******/ }
15570
15567
  /******/ // Create a new module (and put it into the cache)
15571
15568
  /******/ var module = __webpack_module_cache__[moduleId] = {
15572
15569
  /******/ id: moduleId,
@@ -15575,6 +15572,12 @@ const e=e=>new Blob([e],{type:e.type}),t=e=>new DOMRect(e.offsetLeft,e.offsetTop
15575
15572
  /******/ };
15576
15573
  /******/
15577
15574
  /******/ // Execute the module function
15575
+ /******/ if (!(moduleId in __webpack_modules__)) {
15576
+ /******/ delete __webpack_module_cache__[moduleId];
15577
+ /******/ var e = new Error("Cannot find module '" + moduleId + "'");
15578
+ /******/ e.code = 'MODULE_NOT_FOUND';
15579
+ /******/ throw e;
15580
+ /******/ }
15578
15581
  /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
15579
15582
  /******/
15580
15583
  /******/ // Flag the module as loaded