@react-hive/honey-layout 17.2.0 → 17.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.
@@ -1,7 +1,10 @@
1
1
  import type { ComponentPropsWithRef, ElementType } from 'react';
2
- import type { HoneyHtmlDataAttributes, HoneyStyledPropsWithAs } from '@react-hive/honey-style';
2
+ import type { HoneyStyledPropsWithAs } from '@react-hive/honey-style';
3
3
  import type { HoneyPrefixedCssProperties, HoneyEffectResultFn } from '../../types';
4
- type HoneyStyledProps<Element extends ElementType, Props extends object> = HoneyStyledPropsWithAs<Element, HoneyHtmlDataAttributes & ComponentPropsWithRef<Element> & Props>;
4
+ type HtmlDataAttributes = {
5
+ [key: `data-${string}`]: string | number;
6
+ };
7
+ type HoneyStyledProps<Element extends ElementType, Props extends object> = HoneyStyledPropsWithAs<Element, HtmlDataAttributes & ComponentPropsWithRef<Element> & Props>;
5
8
  export type HoneyBoxProps<Element extends ElementType = 'div'> = HoneyStyledProps<Element, HoneyPrefixedCssProperties & {
6
9
  effects?: HoneyEffectResultFn<object>[];
7
10
  }>;