@react-hive/honey-layout 9.4.1 → 9.5.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/LICENSE +21 -0
- package/dist/README.md +9 -0
- package/dist/components/HoneyBox/HoneyBox.d.ts +7 -7
- package/dist/components/HoneyContextMenu/HoneyContextMenu.d.ts +6 -6
- package/dist/components/HoneyContextMenu/HoneyContextMenu.types.d.ts +1 -1
- package/dist/components/HoneyContextMenu/HoneyContextMenuContent.d.ts +5 -5
- package/dist/components/HoneyContextMenu/HoneyContextMenuContentOption.d.ts +3 -3
- package/dist/components/HoneyFlexBox.d.ts +6 -6
- package/dist/components/HoneyGrid/HoneyGrid.d.ts +2 -2
- package/dist/components/HoneyGrid/HoneyGridContext.d.ts +2 -2
- package/dist/components/HoneyGrid/HoneyGridStyled.d.ts +7 -7
- package/dist/components/HoneyGrid/hooks/use-honey-grid-context.d.ts +1 -1
- package/dist/components/HoneyGridColumn/HoneyGridColumn.d.ts +3 -3
- package/dist/components/HoneyGridColumn/HoneyGridColumn.types.d.ts +3 -3
- package/dist/components/HoneyGridColumn/HoneyGridColumnStyled.d.ts +7 -7
- package/dist/components/HoneyLazyContent/HoneyLazyContent.d.ts +2 -2
- package/dist/components/HoneyList/HoneyList.d.ts +4 -4
- package/dist/components/HoneyList/HoneyList.helpers.d.ts +1 -1
- package/dist/components/HoneyList/HoneyList.types.d.ts +1 -1
- package/dist/components/HoneyList/HoneyListStyled.d.ts +6 -6
- package/dist/components/HoneyOverlay.d.ts +4 -4
- package/dist/components/HoneyPopup/HoneyPopup.d.ts +2 -2
- package/dist/components/HoneyPopup/HoneyPopupContent.d.ts +8 -8
- package/dist/components/HoneyPopup/HoneyPopupContext.d.ts +2 -2
- package/dist/components/HoneyPopup/HoneyPopupPortal.d.ts +2 -2
- package/dist/components/HoneyPopup/HoneyPopupStyled.d.ts +6 -6
- package/dist/components/HoneyPopup/HoneyPopupTree.d.ts +2 -2
- package/dist/components/HoneyPopup/hooks/use-honey-popup-context.d.ts +2 -2
- package/dist/components/HoneyPopup/hooks/use-honey-popup-interactions.d.ts +3 -3
- package/dist/components/HoneyPopup/hooks/use-honey-popup.d.ts +7 -6
- package/dist/components/HoneyStatusContent.d.ts +2 -1
- package/dist/contexts/HoneyLayoutContext.d.ts +3 -3
- package/dist/effects.d.ts +1 -1
- package/dist/helpers/helpers.d.ts +3 -3
- package/dist/helpers/react.helpers.d.ts +1 -1
- package/dist/hooks/use-honey-document-key-up-handler.d.ts +1 -1
- package/dist/hooks/use-honey-drag.d.ts +2 -2
- package/dist/hooks/use-honey-layout.d.ts +1 -1
- package/dist/hooks/use-honey-media-query.d.ts +2 -2
- package/dist/hooks/use-honey-on-change.d.ts +1 -1
- package/dist/hooks/use-honey-overlay.d.ts +2 -2
- package/dist/hooks/use-register-honey-overlay.d.ts +1 -1
- package/dist/index.cjs +51 -0
- package/dist/index.cjs.LICENSE.txt +24 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.dev.cjs +14801 -0
- package/dist/index.dev.cjs.map +1 -0
- package/dist/index.mjs +51 -0
- package/dist/index.mjs.LICENSE.txt +24 -0
- package/dist/index.mjs.map +1 -0
- package/dist/providers/HoneyLayoutProvider.d.ts +3 -3
- package/dist/providers/HoneyLayoutThemeOverride.d.ts +2 -2
- package/dist/providers/hooks/use-honey-overlays.d.ts +2 -2
- package/dist/types/css.types.d.ts +1 -1
- package/dist/types/data.types.d.ts +7 -4
- package/dist/utils/data-utils.d.ts +1 -1
- package/package.json +20 -10
- package/dist/index.js +0 -5856
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { HoneyStyleProviderProps } from '@react-hive/honey-style';
|
|
3
|
-
import { UseHoneyMediaQueryOptions } from '../hooks';
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { HoneyStyleProviderProps } from '@react-hive/honey-style';
|
|
3
|
+
import type { UseHoneyMediaQueryOptions } from '../hooks';
|
|
4
4
|
interface HoneyLayoutProviderProps extends HoneyStyleProviderProps {
|
|
5
5
|
mediaQueryOptions?: UseHoneyMediaQueryOptions;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { HoneyTheme } from '@react-hive/honey-style';
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { HoneyTheme } from '@react-hive/honey-style';
|
|
3
3
|
interface HoneyLayoutThemeOverrideProps {
|
|
4
4
|
theme: HoneyTheme;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HoneyActiveOverlay } from '../../types';
|
|
2
|
-
import { HoneyRegisterOverlay, HoneyUnregisterOverlay } from '../../contexts';
|
|
1
|
+
import type { HoneyActiveOverlay } from '../../types';
|
|
2
|
+
import type { HoneyRegisterOverlay, HoneyUnregisterOverlay } from '../../contexts';
|
|
3
3
|
/**
|
|
4
4
|
* Hook to manage a stack of overlays, allowing registration and unregistration of overlays,
|
|
5
5
|
* as well as handling keyboard events for the topmost overlay.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HoneyBreakpointName, HoneyStyledContext, HoneyColor, HoneyCSSSpacingValue, HoneyCSSColorProperty, HoneyCSSSpacingProperty, HoneyCSSShorthandSpacingProperty, HoneyRawCSSSpacingValue } from '@react-hive/honey-style';
|
|
2
1
|
/**
|
|
3
2
|
* The types for handling CSS properties and values, focusing on dimensions, colors, media queries, and other essential CSS concepts.
|
|
4
3
|
*/
|
|
5
4
|
import * as CSS from 'csstype';
|
|
5
|
+
import type { HoneyBreakpointName, HoneyStyledContext, HoneyColor, HoneyCSSSpacingValue, HoneyCSSColorProperty, HoneyCSSSpacingProperty, HoneyCSSShorthandSpacingProperty, HoneyRawCSSSpacingValue } from '@react-hive/honey-style';
|
|
6
6
|
/**
|
|
7
7
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/easing-function/steps#step-position
|
|
8
8
|
*/
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
1
|
+
/**
|
|
2
|
+
* Store types that represent data structures, transformations, and models used across different components and modules.
|
|
3
|
+
*/
|
|
4
|
+
import type { RefObject } from 'react';
|
|
5
|
+
import type { HoneyStyledFunction } from '@react-hive/honey-style';
|
|
6
|
+
import type { KeysWithNonArrayValues, Nullable } from './utility.types';
|
|
7
|
+
import type { HoneyKeyboardEventCode } from './dom.types';
|
|
5
8
|
export type HoneyEffectResultFn<Props extends object> = HoneyStyledFunction<Props>;
|
|
6
9
|
export type HoneyEffect<Config = unknown, Props extends object = object> = (config: Config) => HoneyEffectResultFn<Props>;
|
|
7
10
|
export type HoneyOverlayId = string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HoneyFlattenedItem, KeysWithArrayValues, KeysWithNonArrayValues, KeysWithStringValues } from '../types';
|
|
1
|
+
import type { HoneyFlattenedItem, KeysWithArrayValues, KeysWithNonArrayValues, KeysWithStringValues } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Recursively converts a nested list structure into a flat list. It excludes the nested list key from the result
|
|
4
4
|
* while adding hierarchical metadata, such as `depthLevel`, `parentId`, and `totalNestedItems` to each flattened item.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-hive/honey-layout",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -20,17 +20,25 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"prepare": "husky",
|
|
23
|
-
"start": "
|
|
23
|
+
"start": "NODE_ENV=development webpack serve --config webpack-docs.config.mjs",
|
|
24
24
|
"test": "jest --collect-coverage",
|
|
25
|
-
"build:lib": "
|
|
26
|
-
"build:docs": "
|
|
25
|
+
"build:lib": "webpack --config webpack.config.mjs",
|
|
26
|
+
"build:docs": "webpack --config webpack-docs.config.mjs",
|
|
27
27
|
"diagnostics": "tsx scripts/collect-diagnostics.ts"
|
|
28
28
|
},
|
|
29
29
|
"type": "module",
|
|
30
|
-
"main": "dist/index.
|
|
30
|
+
"main": "dist/index.cjs",
|
|
31
|
+
"module": "dist/index.mjs",
|
|
31
32
|
"types": "dist/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
"import": "./dist/index.mjs",
|
|
35
|
+
"require": "./dist/index.cjs"
|
|
36
|
+
},
|
|
32
37
|
"files": [
|
|
33
|
-
"dist"
|
|
38
|
+
"dist",
|
|
39
|
+
"!dist/**/__mocks__",
|
|
40
|
+
"!dist/**/__tests__",
|
|
41
|
+
"!dist/**/jest*"
|
|
34
42
|
],
|
|
35
43
|
"peerDependencies": {
|
|
36
44
|
"@react-hive/honey-style": "^2.0.0",
|
|
@@ -60,7 +68,7 @@
|
|
|
60
68
|
"@types/node": "22.19.0",
|
|
61
69
|
"@types/react": "^19.2.2",
|
|
62
70
|
"@types/react-dom": "^19.2.2",
|
|
63
|
-
"
|
|
71
|
+
"copy-webpack-plugin": "13.0.1",
|
|
64
72
|
"eslint": "9.39.1",
|
|
65
73
|
"eslint-plugin-react": "7.37.5",
|
|
66
74
|
"husky": "9.1.7",
|
|
@@ -69,11 +77,13 @@
|
|
|
69
77
|
"prettier": "3.6.2",
|
|
70
78
|
"ts-jest": "29.4.1",
|
|
71
79
|
"tsx": "4.20.6",
|
|
80
|
+
"ts-loader": "9.5.4",
|
|
81
|
+
"ts-node": "10.9.2",
|
|
72
82
|
"typescript": "5.9.3",
|
|
73
83
|
"typescript-eslint": "8.46.3",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
84
|
+
"webpack": "5.102.1",
|
|
85
|
+
"webpack-cli": "5.1.4",
|
|
86
|
+
"webpack-dev-server": "5.2.2"
|
|
77
87
|
},
|
|
78
88
|
"jest": {
|
|
79
89
|
"preset": "ts-jest",
|