@react-hive/honey-layout 3.4.0 → 4.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.
- package/dist/components/HoneyBox.d.ts +3 -0
- package/dist/components/HoneyFlexBox.d.ts +8 -2
- package/dist/components/HoneyGrid/HoneyGrid.d.ts +1 -1
- package/dist/components/HoneyGrid/HoneyGridStyled.d.ts +30 -0
- package/dist/components/HoneyGridColumn/HoneyGridColumn.types.d.ts +1 -1
- package/dist/components/HoneyGridColumn/HoneyGridColumnStyled.d.ts +42 -0
- package/dist/components/HoneyGridColumn/index.d.ts +1 -1
- package/dist/components/HoneyList/HoneyList.d.ts +15 -7
- package/dist/components/HoneyList/HoneyListStyled.d.ts +21 -0
- package/dist/components/HoneyLoopingList/HoneyLoopingList.d.ts +3 -4
- package/dist/components/HoneyStatusContent.d.ts +50 -3
- package/dist/helpers/helpers.d.ts +11 -4
- package/dist/hooks/use-honey-drag.d.ts +36 -11
- package/dist/hooks/use-honey-media-query.d.ts +4 -3
- package/dist/index.js +926 -943
- package/dist/types/css.types.d.ts +62 -3
- package/dist/types/data.types.d.ts +88 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/types.d.ts +1 -154
- package/dist/types/utility.types.d.ts +2 -0
- package/package.json +14 -14
- package/dist/components/HoneyGrid/HoneyGrid.styled.d.ts +0 -24
- package/dist/components/HoneyGridColumn/HoneyGridColumn.styled.d.ts +0 -36
- package/dist/types/component.types.d.ts +0 -47
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
1
|
+
import { ExecutionContext } from 'styled-components';
|
|
2
|
+
import { HoneyBreakpointName, HoneyColorKey } from './types';
|
|
4
3
|
import * as CSS from 'csstype';
|
|
5
4
|
export type HoneyCSSResolutionUnit = 'dpi' | 'dpcm' | 'dppx' | 'x';
|
|
6
5
|
export type HoneyCSSResolutionValue = `${number}${HoneyCSSResolutionUnit}`;
|
|
7
6
|
export type HoneyCSSMediaOrientation = 'landscape' | 'portrait';
|
|
8
7
|
type HoneyCSSAbsoluteDimensionUnit = 'px' | 'cm' | 'mm' | 'in' | 'pt' | 'pc';
|
|
9
8
|
type HoneyCSSRelativeDimensionUnit = 'em' | 'rem' | '%' | 'vh' | 'vw' | 'vmin' | 'vmax';
|
|
9
|
+
export type HoneyHEXColor = `#${string}`;
|
|
10
|
+
export type HoneyCSSColor = CSS.DataType.NamedColor | HoneyHEXColor;
|
|
10
11
|
/**
|
|
11
12
|
* Represents a CSS dimension unit, which can be either an absolute or relative.
|
|
12
13
|
*/
|
|
@@ -57,6 +58,64 @@ export type HoneyCSSDimensionNumericValue<CSSProperty extends keyof CSS.Properti
|
|
|
57
58
|
* @template Unit - CSS length unit.
|
|
58
59
|
*/
|
|
59
60
|
export type HoneyCSSDimensionShortHandValue<Value, Unit extends HoneyCSSDimensionUnit> = Value extends [unknown, unknown] ? `${HoneyCSSDimensionValue<Unit>} ${HoneyCSSDimensionValue<Unit>}` : Value extends [unknown, unknown, unknown] ? `${HoneyCSSDimensionValue<Unit>} ${HoneyCSSDimensionValue<Unit>} ${HoneyCSSDimensionValue<Unit>}` : Value extends [unknown, unknown, unknown, unknown] ? `${HoneyCSSDimensionValue<Unit>} ${HoneyCSSDimensionValue<Unit>} ${HoneyCSSDimensionValue<Unit>} ${HoneyCSSDimensionValue<Unit>}` : never;
|
|
61
|
+
/**
|
|
62
|
+
* A type representing a function that returns a value for a specific CSS property based on the provided theme.
|
|
63
|
+
*
|
|
64
|
+
* @template CSSProperty - The CSS property this function will generate a value for.
|
|
65
|
+
*/
|
|
66
|
+
type HoneyCSSPropertyValueFn<CSSProperty extends keyof CSS.Properties> = (context: ExecutionContext) => CSS.Properties[CSSProperty];
|
|
67
|
+
/**
|
|
68
|
+
* Type representing possible values for CSS color properties.
|
|
69
|
+
*
|
|
70
|
+
* This type can be either a color from the theme or a valid CSS color value.
|
|
71
|
+
*
|
|
72
|
+
* @template CSSProperty - The key of a CSS property to check.
|
|
73
|
+
*/
|
|
74
|
+
type HoneyCSSColorValue<CSSProperty extends keyof CSS.Properties> = CSSProperty extends HoneyCSSColorProperty ? HoneyCSSColor | HoneyColorKey : CSS.Properties[CSSProperty] | HoneyCSSDimensionNumericValue<CSSProperty>;
|
|
75
|
+
/**
|
|
76
|
+
* Represents a responsive CSS property value for a specific CSS property.
|
|
77
|
+
*
|
|
78
|
+
* This type maps each breakpoint name to a corresponding CSS property value.
|
|
79
|
+
* The values can include:
|
|
80
|
+
* - A standard CSS property value.
|
|
81
|
+
* - A numeric value for dimension properties.
|
|
82
|
+
* - A function returning a value based on the CSS property.
|
|
83
|
+
*
|
|
84
|
+
* @template CSSProperty - The key of a CSS property for which values are defined.
|
|
85
|
+
*/
|
|
86
|
+
type HoneyResponsiveCSSPropertyValue<CSSProperty extends keyof CSS.Properties> = Partial<Record<HoneyBreakpointName, HoneyCSSColorValue<CSSProperty> | HoneyCSSPropertyValueFn<CSSProperty>>>;
|
|
87
|
+
/**
|
|
88
|
+
* Represents a CSS property value that can be either a single value or a responsive value.
|
|
89
|
+
*
|
|
90
|
+
* This type can be one of the following:
|
|
91
|
+
* - A standard CSS property value.
|
|
92
|
+
* - A numeric value for dimension properties.
|
|
93
|
+
* - A function that generates the value based on the CSS property.
|
|
94
|
+
* - A responsive value where each breakpoint maps to a specific CSS property value.
|
|
95
|
+
*
|
|
96
|
+
* @template CSSProperty - The key of a CSS property to check.
|
|
97
|
+
*/
|
|
98
|
+
export type HoneyCSSPropertyValue<CSSProperty extends keyof CSS.Properties> = HoneyCSSColorValue<CSSProperty> | HoneyCSSPropertyValueFn<CSSProperty> | HoneyResponsiveCSSPropertyValue<CSSProperty>;
|
|
99
|
+
/**
|
|
100
|
+
* A utility type to add a `$` prefix to a given CSS property name.
|
|
101
|
+
*
|
|
102
|
+
* @template CSSProperty - The string type representing a CSS property name.
|
|
103
|
+
*/
|
|
104
|
+
export type HoneyPrefixedCSSProperty<CSSProperty extends keyof CSS.Properties = keyof CSS.Properties> = `$${CSSProperty}`;
|
|
105
|
+
/**
|
|
106
|
+
* Represents an object where each key is a prefixed CSS property (with a `$` prefix),
|
|
107
|
+
*
|
|
108
|
+
* Example:
|
|
109
|
+
* ```
|
|
110
|
+
* const styles: HoneyPrefixedCSSProperties = {
|
|
111
|
+
* $color: 'red',
|
|
112
|
+
* $fontSize: '12px'
|
|
113
|
+
* };
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
export type HoneyPrefixedCSSProperties = {
|
|
117
|
+
[CSSProperty in keyof CSS.Properties as HoneyPrefixedCSSProperty<CSSProperty>]?: HoneyCSSPropertyValue<CSSProperty>;
|
|
118
|
+
};
|
|
60
119
|
/**
|
|
61
120
|
* Options for CSS @media at-rule.
|
|
62
121
|
*/
|
|
@@ -1,4 +1,91 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { StyleFunction } from 'styled-components';
|
|
3
|
+
import { KeysWithNonArrayValues, Nullable } from './utility.types';
|
|
4
|
+
import { HoneyKeyboardEventCode } from './dom.types';
|
|
5
|
+
export type HoneyEffectResultFn<Props extends object> = StyleFunction<Props>;
|
|
6
|
+
export type HoneyEffect<Config = unknown, Props extends object = object> = (config: Config) => HoneyEffectResultFn<Props>;
|
|
7
|
+
export type HoneyOverlayId = string;
|
|
8
|
+
export type HoneyOverlayEventListenerType = 'keyup';
|
|
9
|
+
/**
|
|
10
|
+
* Handler function for an overlay event listener.
|
|
11
|
+
*
|
|
12
|
+
* @param keyCode - The code of the key that triggered the event.
|
|
13
|
+
* @param overlay - The overlay.
|
|
14
|
+
* @param e - The original keyboard event.
|
|
15
|
+
*/
|
|
16
|
+
export type HoneyOverlayEventListenerHandler = (keyCode: HoneyKeyboardEventCode, overlay: HoneyActiveOverlay, e: KeyboardEvent) => void;
|
|
17
|
+
/**
|
|
18
|
+
* A tuple representing an event listener, including the event type and the handler function.
|
|
19
|
+
*/
|
|
20
|
+
export type HoneyOverlayEventListener = [
|
|
21
|
+
HoneyOverlayEventListenerType,
|
|
22
|
+
HoneyOverlayEventListenerHandler
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* Configuration object for an overlay, used to specify the overlay's behavior and event handling.
|
|
26
|
+
*/
|
|
27
|
+
export type HoneyOverlayConfig = {
|
|
28
|
+
/**
|
|
29
|
+
* Custom overlay ID.
|
|
30
|
+
* Automatically generated if not passed.
|
|
31
|
+
*
|
|
32
|
+
* @default generates
|
|
33
|
+
*/
|
|
34
|
+
id?: HoneyOverlayId;
|
|
35
|
+
/**
|
|
36
|
+
* List of keyboard event codes to listen for (e.g., "Escape", "Enter").
|
|
37
|
+
* If undefined or empty, all key codes will be listened to.
|
|
38
|
+
*
|
|
39
|
+
* @default undefined
|
|
40
|
+
*/
|
|
41
|
+
listenKeys?: HoneyKeyboardEventCode[];
|
|
42
|
+
/**
|
|
43
|
+
* Callback function to be invoked when a key event occurs for the specified key(s).
|
|
44
|
+
* If `listenKeys` is provided, this will only be triggered for those keys.
|
|
45
|
+
*/
|
|
46
|
+
onKeyUp: HoneyOverlayEventListenerHandler;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Represents an overlay in the layout, allowing the registration of event listeners and notifying them when events occur.
|
|
50
|
+
*/
|
|
51
|
+
export type HoneyActiveOverlay = {
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier for the overlay.
|
|
54
|
+
*/
|
|
55
|
+
id: HoneyOverlayId;
|
|
56
|
+
/**
|
|
57
|
+
* Reference to the container element of the overlay.
|
|
58
|
+
*/
|
|
59
|
+
containerRef: MutableRefObject<Nullable<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the container reference for the overlay.
|
|
62
|
+
*
|
|
63
|
+
* @param element - The HTMLDivElement to set as the container.
|
|
64
|
+
*/
|
|
65
|
+
setContainerRef: (element: HTMLDivElement) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Adds an event listener to the overlay.
|
|
68
|
+
*
|
|
69
|
+
* @param type - The type of event to listen for.
|
|
70
|
+
* @param handler - The handler function to execute when the event is triggered.
|
|
71
|
+
*/
|
|
72
|
+
addListener: (type: HoneyOverlayEventListenerType, handler: HoneyOverlayEventListenerHandler) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Removes a specific event listener from the overlay.
|
|
75
|
+
*
|
|
76
|
+
* @param type - The type of event for the listener.
|
|
77
|
+
* @param handler - The handler function to remove.
|
|
78
|
+
*/
|
|
79
|
+
removeListener: (type: HoneyOverlayEventListenerType, handler: HoneyOverlayEventListenerHandler) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Notifies all listeners of a specific event type.
|
|
82
|
+
*
|
|
83
|
+
* @param type - The type of event that occurred.
|
|
84
|
+
* @param keyCode - The code of the key that triggered the event.
|
|
85
|
+
* @param e - The original keyboard event.
|
|
86
|
+
*/
|
|
87
|
+
notifyListeners: (type: HoneyOverlayEventListenerType, keyCode: HoneyKeyboardEventCode, e: KeyboardEvent) => void;
|
|
88
|
+
};
|
|
2
89
|
/**
|
|
3
90
|
* Represents an item that has been flattened from a hierarchical data structure, with additional
|
|
4
91
|
* properties to support tracking its position and relationships within the hierarchy.
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ExecutionContext, StyleFunction } from 'styled-components';
|
|
3
|
-
import { DataType } from 'csstype';
|
|
4
|
-
import { HoneyCSSColorProperty, HoneyCSSDimensionNumericValue, HoneyCSSDimensionValue } from './css.types';
|
|
5
|
-
import { HoneyKeyboardEventCode } from './dom.types';
|
|
6
|
-
import * as CSS from 'csstype';
|
|
7
|
-
export type TimeoutId = ReturnType<typeof setTimeout>;
|
|
8
|
-
export type Nullable<T> = T | null;
|
|
9
|
-
export type HoneyHEXColor = `#${string}`;
|
|
10
|
-
export type HoneyCSSColor = DataType.NamedColor | HoneyHEXColor;
|
|
1
|
+
import { HoneyCSSColor, HoneyCSSDimensionValue } from './css.types';
|
|
11
2
|
/**
|
|
12
3
|
* Represents the breakpoints configuration in pixes for a responsive layout.
|
|
13
4
|
*
|
|
@@ -67,64 +58,6 @@ declare module 'styled-components' {
|
|
|
67
58
|
interface DefaultTheme extends HoneyTheme {
|
|
68
59
|
}
|
|
69
60
|
}
|
|
70
|
-
/**
|
|
71
|
-
* A type representing a function that returns a value for a specific CSS property based on the provided theme.
|
|
72
|
-
*
|
|
73
|
-
* @template CSSProperty - The CSS property this function will generate a value for.
|
|
74
|
-
*/
|
|
75
|
-
type HoneyCSSPropertyValueFn<CSSProperty extends keyof CSS.Properties> = (context: ExecutionContext) => CSS.Properties[CSSProperty];
|
|
76
|
-
/**
|
|
77
|
-
* Type representing possible values for CSS color properties.
|
|
78
|
-
*
|
|
79
|
-
* This type can be either a color from the theme or a valid CSS color value.
|
|
80
|
-
*
|
|
81
|
-
* @template CSSProperty - The key of a CSS property to check.
|
|
82
|
-
*/
|
|
83
|
-
type HoneyCSSColorValue<CSSProperty extends keyof CSS.Properties> = CSSProperty extends HoneyCSSColorProperty ? HoneyCSSColor | HoneyColorKey : CSS.Properties[CSSProperty] | HoneyCSSDimensionNumericValue<CSSProperty>;
|
|
84
|
-
/**
|
|
85
|
-
* Represents a responsive CSS property value for a specific CSS property.
|
|
86
|
-
*
|
|
87
|
-
* This type maps each breakpoint name to a corresponding CSS property value.
|
|
88
|
-
* The values can include:
|
|
89
|
-
* - A standard CSS property value.
|
|
90
|
-
* - A numeric value for dimension properties.
|
|
91
|
-
* - A function returning a value based on the CSS property.
|
|
92
|
-
*
|
|
93
|
-
* @template CSSProperty - The key of a CSS property for which values are defined.
|
|
94
|
-
*/
|
|
95
|
-
type HoneyResponsiveCSSPropertyValue<CSSProperty extends keyof CSS.Properties> = Partial<Record<HoneyBreakpointName, HoneyCSSColorValue<CSSProperty> | HoneyCSSPropertyValueFn<CSSProperty>>>;
|
|
96
|
-
/**
|
|
97
|
-
* Represents a CSS property value that can be either a single value or a responsive value.
|
|
98
|
-
*
|
|
99
|
-
* This type can be one of the following:
|
|
100
|
-
* - A standard CSS property value.
|
|
101
|
-
* - A numeric value for dimension properties.
|
|
102
|
-
* - A function that generates the value based on the CSS property.
|
|
103
|
-
* - A responsive value where each breakpoint maps to a specific CSS property value.
|
|
104
|
-
*
|
|
105
|
-
* @template CSSProperty - The key of a CSS property to check.
|
|
106
|
-
*/
|
|
107
|
-
export type HoneyCSSPropertyValue<CSSProperty extends keyof CSS.Properties> = HoneyCSSColorValue<CSSProperty> | HoneyCSSPropertyValueFn<CSSProperty> | HoneyResponsiveCSSPropertyValue<CSSProperty>;
|
|
108
|
-
/**
|
|
109
|
-
* A utility type to add a `$` prefix to a given CSS property name.
|
|
110
|
-
*
|
|
111
|
-
* @template CSSProperty - The string type representing a CSS property name.
|
|
112
|
-
*/
|
|
113
|
-
export type HoneyPrefixedCSSProperty<CSSProperty extends keyof CSS.Properties = keyof CSS.Properties> = `$${CSSProperty}`;
|
|
114
|
-
/**
|
|
115
|
-
* Represents an object where each key is a prefixed CSS property (with a `$` prefix),
|
|
116
|
-
*
|
|
117
|
-
* Example:
|
|
118
|
-
* ```
|
|
119
|
-
* const styles: HoneyPrefixedCSSProperties = {
|
|
120
|
-
* $color: 'red',
|
|
121
|
-
* $fontSize: '12px'
|
|
122
|
-
* };
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
export type HoneyPrefixedCSSProperties = {
|
|
126
|
-
[CSSProperty in keyof CSS.Properties as HoneyPrefixedCSSProperty<CSSProperty>]?: HoneyCSSPropertyValue<CSSProperty>;
|
|
127
|
-
};
|
|
128
61
|
/**
|
|
129
62
|
* Defines different spacing sizes available in the theme.
|
|
130
63
|
*/
|
|
@@ -253,90 +186,4 @@ export interface HoneyDimensions {
|
|
|
253
186
|
[key: string]: HoneyCSSDimensionValue;
|
|
254
187
|
}
|
|
255
188
|
export type HoneyDimensionName = keyof HoneyDimensions;
|
|
256
|
-
export type ComponentWithAs<T, P = object> = {
|
|
257
|
-
as?: ElementType<P>;
|
|
258
|
-
} & T;
|
|
259
|
-
export type HoneyEffectResultFn<Props extends object> = StyleFunction<Props>;
|
|
260
|
-
export type HoneyEffect<Config = unknown, Props extends object = object> = (config: Config) => HoneyEffectResultFn<Props>;
|
|
261
|
-
export type HoneyOverlayId = string;
|
|
262
|
-
export type HoneyOverlayEventListenerType = 'keyup';
|
|
263
|
-
/**
|
|
264
|
-
* Handler function for an overlay event listener.
|
|
265
|
-
*
|
|
266
|
-
* @param keyCode - The code of the key that triggered the event.
|
|
267
|
-
* @param overlay - The overlay.
|
|
268
|
-
* @param e - The original keyboard event.
|
|
269
|
-
*/
|
|
270
|
-
export type HoneyOverlayEventListenerHandler = (keyCode: HoneyKeyboardEventCode, overlay: HoneyActiveOverlay, e: KeyboardEvent) => void;
|
|
271
|
-
/**
|
|
272
|
-
* A tuple representing an event listener, including the event type and the handler function.
|
|
273
|
-
*/
|
|
274
|
-
export type HoneyOverlayEventListener = [
|
|
275
|
-
HoneyOverlayEventListenerType,
|
|
276
|
-
HoneyOverlayEventListenerHandler
|
|
277
|
-
];
|
|
278
|
-
/**
|
|
279
|
-
* Configuration object for an overlay, used to specify the overlay's behavior and event handling.
|
|
280
|
-
*/
|
|
281
|
-
export type HoneyOverlayConfig = {
|
|
282
|
-
/**
|
|
283
|
-
* Custom overlay ID. Automatically generated if not passed.
|
|
284
|
-
*
|
|
285
|
-
* @default generates
|
|
286
|
-
*/
|
|
287
|
-
id?: HoneyOverlayId;
|
|
288
|
-
/**
|
|
289
|
-
* List of keyboard event codes to listen for (e.g., "Escape", "Enter").
|
|
290
|
-
* If undefined or empty, all key codes will be listened to.
|
|
291
|
-
*
|
|
292
|
-
* @default undefined
|
|
293
|
-
*/
|
|
294
|
-
listenKeys?: HoneyKeyboardEventCode[];
|
|
295
|
-
/**
|
|
296
|
-
* Callback function to be invoked when a key event occurs for the specified key(s).
|
|
297
|
-
* If `listenKeys` is provided, this will only be triggered for those keys.
|
|
298
|
-
*/
|
|
299
|
-
onKeyUp: HoneyOverlayEventListenerHandler;
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* Represents an overlay in the layout, allowing the registration of event listeners and notifying them when events occur.
|
|
303
|
-
*/
|
|
304
|
-
export type HoneyActiveOverlay = {
|
|
305
|
-
/**
|
|
306
|
-
* Unique identifier for the overlay.
|
|
307
|
-
*/
|
|
308
|
-
id: HoneyOverlayId;
|
|
309
|
-
/**
|
|
310
|
-
* Reference to the container element of the overlay.
|
|
311
|
-
*/
|
|
312
|
-
containerRef: MutableRefObject<Nullable<HTMLDivElement>>;
|
|
313
|
-
/**
|
|
314
|
-
* Sets the container reference for the overlay.
|
|
315
|
-
*
|
|
316
|
-
* @param element - The HTMLDivElement to set as the container.
|
|
317
|
-
*/
|
|
318
|
-
setContainerRef: (element: HTMLDivElement) => void;
|
|
319
|
-
/**
|
|
320
|
-
* Adds an event listener to the overlay.
|
|
321
|
-
*
|
|
322
|
-
* @param type - The type of event to listen for.
|
|
323
|
-
* @param handler - The handler function to execute when the event is triggered.
|
|
324
|
-
*/
|
|
325
|
-
addListener: (type: HoneyOverlayEventListenerType, handler: HoneyOverlayEventListenerHandler) => void;
|
|
326
|
-
/**
|
|
327
|
-
* Removes a specific event listener from the overlay.
|
|
328
|
-
*
|
|
329
|
-
* @param type - The type of event for the listener.
|
|
330
|
-
* @param handler - The handler function to remove.
|
|
331
|
-
*/
|
|
332
|
-
removeListener: (type: HoneyOverlayEventListenerType, handler: HoneyOverlayEventListenerHandler) => void;
|
|
333
|
-
/**
|
|
334
|
-
* Notifies all listeners of a specific event type.
|
|
335
|
-
*
|
|
336
|
-
* @param type - The type of event that occurred.
|
|
337
|
-
* @param keyCode - The code of the key that triggered the event.
|
|
338
|
-
* @param e - The original keyboard event.
|
|
339
|
-
*/
|
|
340
|
-
notifyListeners: (type: HoneyOverlayEventListenerType, keyCode: HoneyKeyboardEventCode, e: KeyboardEvent) => void;
|
|
341
|
-
};
|
|
342
189
|
export {};
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* These types are often unrelated to specific components or business logic.
|
|
4
4
|
* They aim to assist in working with types more effectively and flexibly.
|
|
5
5
|
*/
|
|
6
|
+
export type TimeoutId = ReturnType<typeof setTimeout>;
|
|
7
|
+
export type Nullable<T> = T | null;
|
|
6
8
|
/**
|
|
7
9
|
* Extracts the keys from a given type `T` whose values match the specified `Condition`.
|
|
8
10
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-hive/honey-layout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -31,8 +31,6 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@mdx-js/react": "3.1.0",
|
|
35
|
-
"highlight.js": "11.11.1",
|
|
36
34
|
"react": "^18.0.0",
|
|
37
35
|
"react-dom": "^18.0.0",
|
|
38
36
|
"react-router-dom": "^6.0.0",
|
|
@@ -40,30 +38,32 @@
|
|
|
40
38
|
},
|
|
41
39
|
"dependencies": {
|
|
42
40
|
"@emotion/is-prop-valid": "1.3.1",
|
|
41
|
+
"@mdx-js/react": "3.1.0",
|
|
42
|
+
"highlight.js": "11.11.1",
|
|
43
43
|
"csstype": "3.1.3",
|
|
44
|
-
"lodash.
|
|
44
|
+
"lodash.throttle": "4.1.1",
|
|
45
45
|
"lodash.merge": "4.6.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@eslint/js": "9.
|
|
48
|
+
"@eslint/js": "9.20.0",
|
|
49
49
|
"@mdx-js/rollup": "3.1.0",
|
|
50
|
-
"@testing-library/react": "16.
|
|
50
|
+
"@testing-library/react": "16.2.0",
|
|
51
51
|
"@types/jest": "29.5.14",
|
|
52
|
-
"@types/lodash.
|
|
52
|
+
"@types/lodash.throttle": "4.1.9",
|
|
53
53
|
"@types/lodash.merge": "4.6.9",
|
|
54
54
|
"@types/mdx": "2.0.13",
|
|
55
|
-
"@types/react": "^18.
|
|
56
|
-
"@types/react-dom": "^18.
|
|
55
|
+
"@types/react": "^18.3.18",
|
|
56
|
+
"@types/react-dom": "^18.3.5",
|
|
57
57
|
"@vitejs/plugin-react": "4.3.4",
|
|
58
|
-
"eslint": "9.
|
|
59
|
-
"eslint-plugin-react": "7.37.
|
|
58
|
+
"eslint": "9.20.1",
|
|
59
|
+
"eslint-plugin-react": "7.37.4",
|
|
60
60
|
"jest": "29.7.0",
|
|
61
61
|
"jest-environment-jsdom": "29.7.0",
|
|
62
|
-
"prettier": "3.
|
|
62
|
+
"prettier": "3.5.1",
|
|
63
63
|
"ts-jest": "29.2.5",
|
|
64
64
|
"typescript": "5.7.3",
|
|
65
|
-
"typescript-eslint": "8.
|
|
66
|
-
"vite": "6.0
|
|
65
|
+
"typescript-eslint": "8.24.0",
|
|
66
|
+
"vite": "6.1.0",
|
|
67
67
|
"vite-plugin-checker": "0.8.0",
|
|
68
68
|
"vite-plugin-dts": "4.5.0"
|
|
69
69
|
},
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { HoneyBoxProps } from '../HoneyBox';
|
|
3
|
-
import * as CSS from 'csstype';
|
|
4
|
-
export type HoneyGridStyledProps = HTMLAttributes<HTMLDivElement> & Omit<HoneyBoxProps, '$gap'> & {
|
|
5
|
-
/**
|
|
6
|
-
* The height of each grid column.
|
|
7
|
-
*/
|
|
8
|
-
columnHeight?: CSS.Properties['height'];
|
|
9
|
-
/**
|
|
10
|
-
* The minimum height of each grid column.
|
|
11
|
-
*/
|
|
12
|
-
minColumnHeight?: CSS.Properties['minHeight'];
|
|
13
|
-
/**
|
|
14
|
-
* The spacing between grid columns.
|
|
15
|
-
*
|
|
16
|
-
* @default 0
|
|
17
|
-
*/
|
|
18
|
-
spacing?: number;
|
|
19
|
-
};
|
|
20
|
-
export declare const HoneyGridStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width" | "$height" | "$margin" | "$marginTop" | "$marginRight" | "$marginBottom" | "$marginLeft" | "$padding" | "$paddingTop" | "$paddingRight" | "$paddingBottom" | "$paddingLeft" | "$top" | "$right" | "$bottom" | "$left" | "$gap" | "$rowGap" | "$columnGap" | "$accentColor" | "$alignContent" | "$alignItems" | "$alignSelf" | "$alignTracks" | "$animationComposition" | "$animationDelay" | "$animationDirection" | "$animationDuration" | "$animationFillMode" | "$animationIterationCount" | "$animationName" | "$animationPlayState" | "$animationRangeEnd" | "$animationRangeStart" | "$animationTimeline" | "$animationTimingFunction" | "$appearance" | "$aspectRatio" | "$backdropFilter" | "$backfaceVisibility" | "$backgroundAttachment" | "$backgroundBlendMode" | "$backgroundClip" | "$backgroundColor" | "$backgroundImage" | "$backgroundOrigin" | "$backgroundPositionX" | "$backgroundPositionY" | "$backgroundRepeat" | "$backgroundSize" | "$blockOverflow" | "$blockSize" | "$borderBlockColor" | "$borderBlockEndColor" | "$borderBlockEndStyle" | "$borderBlockEndWidth" | "$borderBlockStartColor" | "$borderBlockStartStyle" | "$borderBlockStartWidth" | "$borderBlockStyle" | "$borderBlockWidth" | "$borderBottomColor" | "$borderBottomLeftRadius" | "$borderBottomRightRadius" | "$borderBottomStyle" | "$borderBottomWidth" | "$borderCollapse" | "$borderEndEndRadius" | "$borderEndStartRadius" | "$borderImageOutset" | "$borderImageRepeat" | "$borderImageSlice" | "$borderImageSource" | "$borderImageWidth" | "$borderInlineColor" | "$borderInlineEndColor" | "$borderInlineEndStyle" | "$borderInlineEndWidth" | "$borderInlineStartColor" | "$borderInlineStartStyle" | "$borderInlineStartWidth" | "$borderInlineStyle" | "$borderInlineWidth" | "$borderLeftColor" | "$borderLeftStyle" | "$borderLeftWidth" | "$borderRightColor" | "$borderRightStyle" | "$borderRightWidth" | "$borderSpacing" | "$borderStartEndRadius" | "$borderStartStartRadius" | "$borderTopColor" | "$borderTopLeftRadius" | "$borderTopRightRadius" | "$borderTopStyle" | "$borderTopWidth" | "$boxDecorationBreak" | "$boxShadow" | "$boxSizing" | "$breakAfter" | "$breakBefore" | "$breakInside" | "$captionSide" | "$caretColor" | "$caretShape" | "$clear" | "$clipPath" | "$color" | "$colorAdjust" | "$colorScheme" | "$columnCount" | "$columnFill" | "$columnRuleColor" | "$columnRuleStyle" | "$columnRuleWidth" | "$columnSpan" | "$columnWidth" | "$contain" | "$containIntrinsicBlockSize" | "$containIntrinsicHeight" | "$containIntrinsicInlineSize" | "$containIntrinsicWidth" | "$containerName" | "$containerType" | "$content" | "$contentVisibility" | "$counterIncrement" | "$counterReset" | "$counterSet" | "$cursor" | "$direction" | "$display" | "$emptyCells" | "$filter" | "$flexBasis" | "$flexDirection" | "$flexGrow" | "$flexShrink" | "$flexWrap" | "$float" | "$fontFamily" | "$fontFeatureSettings" | "$fontKerning" | "$fontLanguageOverride" | "$fontOpticalSizing" | "$fontPalette" | "$fontSize" | "$fontSizeAdjust" | "$fontSmooth" | "$fontStretch" | "$fontStyle" | "$fontSynthesis" | "$fontSynthesisPosition" | "$fontSynthesisSmallCaps" | "$fontSynthesisStyle" | "$fontSynthesisWeight" | "$fontVariant" | "$fontVariantAlternates" | "$fontVariantCaps" | "$fontVariantEastAsian" | "$fontVariantEmoji" | "$fontVariantLigatures" | "$fontVariantNumeric" | "$fontVariantPosition" | "$fontVariationSettings" | "$fontWeight" | "$forcedColorAdjust" | "$gridAutoColumns" | "$gridAutoFlow" | "$gridAutoRows" | "$gridColumnEnd" | "$gridColumnStart" | "$gridRowEnd" | "$gridRowStart" | "$gridTemplateAreas" | "$gridTemplateColumns" | "$gridTemplateRows" | "$hangingPunctuation" | "$hyphenateCharacter" | "$hyphenateLimitChars" | "$hyphens" | "$imageOrientation" | "$imageRendering" | "$imageResolution" | "$initialLetter" | "$inlineSize" | "$inputSecurity" | "$insetBlockEnd" | "$insetBlockStart" | "$insetInlineEnd" | "$insetInlineStart" | "$isolation" | "$justifyContent" | "$justifyItems" | "$justifySelf" | "$justifyTracks" | "$letterSpacing" | "$lineBreak" | "$lineHeight" | "$lineHeightStep" | "$listStyleImage" | "$listStylePosition" | "$listStyleType" | "$marginBlockEnd" | "$marginBlockStart" | "$marginInlineEnd" | "$marginInlineStart" | "$marginTrim" | "$maskBorderMode" | "$maskBorderOutset" | "$maskBorderRepeat" | "$maskBorderSlice" | "$maskBorderSource" | "$maskBorderWidth" | "$maskClip" | "$maskComposite" | "$maskImage" | "$maskMode" | "$maskOrigin" | "$maskPosition" | "$maskRepeat" | "$maskSize" | "$maskType" | "$masonryAutoFlow" | "$mathDepth" | "$mathShift" | "$mathStyle" | "$maxBlockSize" | "$maxHeight" | "$maxInlineSize" | "$maxLines" | "$maxWidth" | "$minBlockSize" | "$minHeight" | "$minInlineSize" | "$minWidth" | "$mixBlendMode" | "$motionDistance" | "$motionPath" | "$motionRotation" | "$objectFit" | "$objectPosition" | "$offsetAnchor" | "$offsetDistance" | "$offsetPath" | "$offsetPosition" | "$offsetRotate" | "$offsetRotation" | "$opacity" | "$order" | "$orphans" | "$outlineColor" | "$outlineOffset" | "$outlineStyle" | "$outlineWidth" | "$overflowAnchor" | "$overflowBlock" | "$overflowClipBox" | "$overflowClipMargin" | "$overflowInline" | "$overflowWrap" | "$overflowX" | "$overflowY" | "$overlay" | "$overscrollBehaviorBlock" | "$overscrollBehaviorInline" | "$overscrollBehaviorX" | "$overscrollBehaviorY" | "$paddingBlockEnd" | "$paddingBlockStart" | "$paddingInlineEnd" | "$paddingInlineStart" | "$page" | "$pageBreakAfter" | "$pageBreakBefore" | "$pageBreakInside" | "$paintOrder" | "$perspective" | "$perspectiveOrigin" | "$pointerEvents" | "$position" | "$printColorAdjust" | "$quotes" | "$resize" | "$rotate" | "$rubyAlign" | "$rubyMerge" | "$rubyPosition" | "$scale" | "$scrollBehavior" | "$scrollMarginBlockEnd" | "$scrollMarginBlockStart" | "$scrollMarginBottom" | "$scrollMarginInlineEnd" | "$scrollMarginInlineStart" | "$scrollMarginLeft" | "$scrollMarginRight" | "$scrollMarginTop" | "$scrollPaddingBlockEnd" | "$scrollPaddingBlockStart" | "$scrollPaddingBottom" | "$scrollPaddingInlineEnd" | "$scrollPaddingInlineStart" | "$scrollPaddingLeft" | "$scrollPaddingRight" | "$scrollPaddingTop" | "$scrollSnapAlign" | "$scrollSnapMarginBottom" | "$scrollSnapMarginLeft" | "$scrollSnapMarginRight" | "$scrollSnapMarginTop" | "$scrollSnapStop" | "$scrollSnapType" | "$scrollTimelineAxis" | "$scrollTimelineName" | "$scrollbarColor" | "$scrollbarGutter" | "$scrollbarWidth" | "$shapeImageThreshold" | "$shapeMargin" | "$shapeOutside" | "$tabSize" | "$tableLayout" | "$textAlign" | "$textAlignLast" | "$textCombineUpright" | "$textDecorationColor" | "$textDecorationLine" | "$textDecorationSkip" | "$textDecorationSkipInk" | "$textDecorationStyle" | "$textDecorationThickness" | "$textEmphasisColor" | "$textEmphasisPosition" | "$textEmphasisStyle" | "$textIndent" | "$textJustify" | "$textOrientation" | "$textOverflow" | "$textRendering" | "$textShadow" | "$textSizeAdjust" | "$textTransform" | "$textUnderlineOffset" | "$textUnderlinePosition" | "$textWrap" | "$timelineScope" | "$touchAction" | "$transform" | "$transformBox" | "$transformOrigin" | "$transformStyle" | "$transitionBehavior" | "$transitionDelay" | "$transitionDuration" | "$transitionProperty" | "$transitionTimingFunction" | "$translate" | "$unicodeBidi" | "$userSelect" | "$verticalAlign" | "$viewTimelineAxis" | "$viewTimelineInset" | "$viewTimelineName" | "$viewTransitionName" | "$visibility" | "$whiteSpace" | "$whiteSpaceCollapse" | "$whiteSpaceTrim" | "$widows" | "$willChange" | "$wordBreak" | "$wordSpacing" | "$wordWrap" | "$writingMode" | "$zIndex" | "$zoom" | "$all" | "$animation" | "$animationRange" | "$background" | "$backgroundPosition" | "$border" | "$borderBlock" | "$borderBlockEnd" | "$borderBlockStart" | "$borderBottom" | "$borderColor" | "$borderImage" | "$borderInline" | "$borderInlineEnd" | "$borderInlineStart" | "$borderLeft" | "$borderRadius" | "$borderRight" | "$borderStyle" | "$borderTop" | "$borderWidth" | "$caret" | "$columnRule" | "$columns" | "$containIntrinsicSize" | "$container" | "$flex" | "$flexFlow" | "$font" | "$grid" | "$gridArea" | "$gridColumn" | "$gridRow" | "$gridTemplate" | "$inset" | "$insetBlock" | "$insetInline" | "$lineClamp" | "$listStyle" | "$marginBlock" | "$marginInline" | "$mask" | "$maskBorder" | "$motion" | "$offset" | "$outline" | "$overflow" | "$overscrollBehavior" | "$paddingBlock" | "$paddingInline" | "$placeContent" | "$placeItems" | "$placeSelf" | "$scrollMargin" | "$scrollMarginBlock" | "$scrollMarginInline" | "$scrollPadding" | "$scrollPaddingBlock" | "$scrollPaddingInline" | "$scrollSnapMargin" | "$scrollTimeline" | "$textDecoration" | "$textEmphasis" | "$transition" | "$viewTimeline" | "$MozAnimationDelay" | "$MozAnimationDirection" | "$MozAnimationDuration" | "$MozAnimationFillMode" | "$MozAnimationIterationCount" | "$MozAnimationName" | "$MozAnimationPlayState" | "$MozAnimationTimingFunction" | "$MozAppearance" | "$MozBinding" | "$MozBorderBottomColors" | "$MozBorderEndColor" | "$MozBorderEndStyle" | "$MozBorderEndWidth" | "$MozBorderLeftColors" | "$MozBorderRightColors" | "$MozBorderStartColor" | "$MozBorderStartStyle" | "$MozBorderTopColors" | "$MozBoxSizing" | "$MozColumnCount" | "$MozColumnFill" | "$MozColumnRuleColor" | "$MozColumnRuleStyle" | "$MozColumnRuleWidth" | "$MozColumnWidth" | "$MozContextProperties" | "$MozFontFeatureSettings" | "$MozFontLanguageOverride" | "$MozHyphens" | "$MozImageRegion" | "$MozMarginEnd" | "$MozMarginStart" | "$MozOrient" | "$MozOsxFontSmoothing" | "$MozOutlineRadiusBottomleft" | "$MozOutlineRadiusBottomright" | "$MozOutlineRadiusTopleft" | "$MozOutlineRadiusTopright" | "$MozPaddingEnd" | "$MozPaddingStart" | "$MozStackSizing" | "$MozTabSize" | "$MozTextBlink" | "$MozTextSizeAdjust" | "$MozUserFocus" | "$MozUserModify" | "$MozUserSelect" | "$MozWindowDragging" | "$MozWindowShadow" | "$msAccelerator" | "$msBlockProgression" | "$msContentZoomChaining" | "$msContentZoomLimitMax" | "$msContentZoomLimitMin" | "$msContentZoomSnapPoints" | "$msContentZoomSnapType" | "$msContentZooming" | "$msFilter" | "$msFlexDirection" | "$msFlexPositive" | "$msFlowFrom" | "$msFlowInto" | "$msGridColumns" | "$msGridRows" | "$msHighContrastAdjust" | "$msHyphenateLimitChars" | "$msHyphenateLimitLines" | "$msHyphenateLimitZone" | "$msHyphens" | "$msImeAlign" | "$msLineBreak" | "$msOrder" | "$msOverflowStyle" | "$msOverflowX" | "$msOverflowY" | "$msScrollChaining" | "$msScrollLimitXMax" | "$msScrollLimitXMin" | "$msScrollLimitYMax" | "$msScrollLimitYMin" | "$msScrollRails" | "$msScrollSnapPointsX" | "$msScrollSnapPointsY" | "$msScrollSnapType" | "$msScrollTranslation" | "$msScrollbar3dlightColor" | "$msScrollbarArrowColor" | "$msScrollbarBaseColor" | "$msScrollbarDarkshadowColor" | "$msScrollbarFaceColor" | "$msScrollbarHighlightColor" | "$msScrollbarShadowColor" | "$msScrollbarTrackColor" | "$msTextAutospace" | "$msTextCombineHorizontal" | "$msTextOverflow" | "$msTouchAction" | "$msTouchSelect" | "$msTransform" | "$msTransformOrigin" | "$msTransitionDelay" | "$msTransitionDuration" | "$msTransitionProperty" | "$msTransitionTimingFunction" | "$msUserSelect" | "$msWordBreak" | "$msWrapFlow" | "$msWrapMargin" | "$msWrapThrough" | "$msWritingMode" | "$WebkitAlignContent" | "$WebkitAlignItems" | "$WebkitAlignSelf" | "$WebkitAnimationDelay" | "$WebkitAnimationDirection" | "$WebkitAnimationDuration" | "$WebkitAnimationFillMode" | "$WebkitAnimationIterationCount" | "$WebkitAnimationName" | "$WebkitAnimationPlayState" | "$WebkitAnimationTimingFunction" | "$WebkitAppearance" | "$WebkitBackdropFilter" | "$WebkitBackfaceVisibility" | "$WebkitBackgroundClip" | "$WebkitBackgroundOrigin" | "$WebkitBackgroundSize" | "$WebkitBorderBeforeColor" | "$WebkitBorderBeforeStyle" | "$WebkitBorderBeforeWidth" | "$WebkitBorderBottomLeftRadius" | "$WebkitBorderBottomRightRadius" | "$WebkitBorderImageSlice" | "$WebkitBorderTopLeftRadius" | "$WebkitBorderTopRightRadius" | "$WebkitBoxDecorationBreak" | "$WebkitBoxReflect" | "$WebkitBoxShadow" | "$WebkitBoxSizing" | "$WebkitClipPath" | "$WebkitColumnCount" | "$WebkitColumnFill" | "$WebkitColumnRuleColor" | "$WebkitColumnRuleStyle" | "$WebkitColumnRuleWidth" | "$WebkitColumnSpan" | "$WebkitColumnWidth" | "$WebkitFilter" | "$WebkitFlexBasis" | "$WebkitFlexDirection" | "$WebkitFlexGrow" | "$WebkitFlexShrink" | "$WebkitFlexWrap" | "$WebkitFontFeatureSettings" | "$WebkitFontKerning" | "$WebkitFontSmoothing" | "$WebkitFontVariantLigatures" | "$WebkitHyphenateCharacter" | "$WebkitHyphens" | "$WebkitInitialLetter" | "$WebkitJustifyContent" | "$WebkitLineBreak" | "$WebkitLineClamp" | "$WebkitMarginEnd" | "$WebkitMarginStart" | "$WebkitMaskAttachment" | "$WebkitMaskBoxImageOutset" | "$WebkitMaskBoxImageRepeat" | "$WebkitMaskBoxImageSlice" | "$WebkitMaskBoxImageSource" | "$WebkitMaskBoxImageWidth" | "$WebkitMaskClip" | "$WebkitMaskComposite" | "$WebkitMaskImage" | "$WebkitMaskOrigin" | "$WebkitMaskPosition" | "$WebkitMaskPositionX" | "$WebkitMaskPositionY" | "$WebkitMaskRepeat" | "$WebkitMaskRepeatX" | "$WebkitMaskRepeatY" | "$WebkitMaskSize" | "$WebkitMaxInlineSize" | "$WebkitOrder" | "$WebkitOverflowScrolling" | "$WebkitPaddingEnd" | "$WebkitPaddingStart" | "$WebkitPerspective" | "$WebkitPerspectiveOrigin" | "$WebkitPrintColorAdjust" | "$WebkitRubyPosition" | "$WebkitScrollSnapType" | "$WebkitShapeMargin" | "$WebkitTapHighlightColor" | "$WebkitTextCombine" | "$WebkitTextDecorationColor" | "$WebkitTextDecorationLine" | "$WebkitTextDecorationSkip" | "$WebkitTextDecorationStyle" | "$WebkitTextEmphasisColor" | "$WebkitTextEmphasisPosition" | "$WebkitTextEmphasisStyle" | "$WebkitTextFillColor" | "$WebkitTextOrientation" | "$WebkitTextSizeAdjust" | "$WebkitTextStrokeColor" | "$WebkitTextStrokeWidth" | "$WebkitTextUnderlinePosition" | "$WebkitTouchCallout" | "$WebkitTransform" | "$WebkitTransformOrigin" | "$WebkitTransformStyle" | "$WebkitTransitionDelay" | "$WebkitTransitionDuration" | "$WebkitTransitionProperty" | "$WebkitTransitionTimingFunction" | "$WebkitUserModify" | "$WebkitUserSelect" | "$WebkitWritingMode" | "$MozAnimation" | "$MozBorderImage" | "$MozColumnRule" | "$MozColumns" | "$MozOutlineRadius" | "$msContentZoomLimit" | "$msContentZoomSnap" | "$msFlex" | "$msScrollLimit" | "$msScrollSnapX" | "$msScrollSnapY" | "$msTransition" | "$WebkitAnimation" | "$WebkitBorderBefore" | "$WebkitBorderImage" | "$WebkitBorderRadius" | "$WebkitColumnRule" | "$WebkitColumns" | "$WebkitFlex" | "$WebkitFlexFlow" | "$WebkitMask" | "$WebkitMaskBoxImage" | "$WebkitTextEmphasis" | "$WebkitTextStroke" | "$WebkitTransition" | "$azimuth" | "$boxAlign" | "$boxDirection" | "$boxFlex" | "$boxFlexGroup" | "$boxLines" | "$boxOrdinalGroup" | "$boxOrient" | "$boxPack" | "$clip" | "$gridColumnGap" | "$gridGap" | "$gridRowGap" | "$imeMode" | "$offsetBlock" | "$offsetBlockEnd" | "$offsetBlockStart" | "$offsetInline" | "$offsetInlineEnd" | "$offsetInlineStart" | "$scrollSnapCoordinate" | "$scrollSnapDestination" | "$scrollSnapPointsX" | "$scrollSnapPointsY" | "$scrollSnapTypeX" | "$scrollSnapTypeY" | "$KhtmlBoxAlign" | "$KhtmlBoxDirection" | "$KhtmlBoxFlex" | "$KhtmlBoxFlexGroup" | "$KhtmlBoxLines" | "$KhtmlBoxOrdinalGroup" | "$KhtmlBoxOrient" | "$KhtmlBoxPack" | "$KhtmlLineBreak" | "$KhtmlOpacity" | "$KhtmlUserSelect" | "$MozBackfaceVisibility" | "$MozBackgroundClip" | "$MozBackgroundInlinePolicy" | "$MozBackgroundOrigin" | "$MozBackgroundSize" | "$MozBorderRadius" | "$MozBorderRadiusBottomleft" | "$MozBorderRadiusBottomright" | "$MozBorderRadiusTopleft" | "$MozBorderRadiusTopright" | "$MozBoxAlign" | "$MozBoxDirection" | "$MozBoxFlex" | "$MozBoxOrdinalGroup" | "$MozBoxOrient" | "$MozBoxPack" | "$MozBoxShadow" | "$MozFloatEdge" | "$MozForceBrokenImageIcon" | "$MozOpacity" | "$MozOutline" | "$MozOutlineColor" | "$MozOutlineStyle" | "$MozOutlineWidth" | "$MozPerspective" | "$MozPerspectiveOrigin" | "$MozTextAlignLast" | "$MozTextDecorationColor" | "$MozTextDecorationLine" | "$MozTextDecorationStyle" | "$MozTransform" | "$MozTransformOrigin" | "$MozTransformStyle" | "$MozTransition" | "$MozTransitionDelay" | "$MozTransitionDuration" | "$MozTransitionProperty" | "$MozTransitionTimingFunction" | "$MozUserInput" | "$msImeMode" | "$OAnimation" | "$OAnimationDelay" | "$OAnimationDirection" | "$OAnimationDuration" | "$OAnimationFillMode" | "$OAnimationIterationCount" | "$OAnimationName" | "$OAnimationPlayState" | "$OAnimationTimingFunction" | "$OBackgroundSize" | "$OBorderImage" | "$OObjectFit" | "$OObjectPosition" | "$OTabSize" | "$OTextOverflow" | "$OTransform" | "$OTransformOrigin" | "$OTransition" | "$OTransitionDelay" | "$OTransitionDuration" | "$OTransitionProperty" | "$OTransitionTimingFunction" | "$WebkitBoxAlign" | "$WebkitBoxDirection" | "$WebkitBoxFlex" | "$WebkitBoxFlexGroup" | "$WebkitBoxLines" | "$WebkitBoxOrdinalGroup" | "$WebkitBoxOrient" | "$WebkitBoxPack" | "$alignmentBaseline" | "$baselineShift" | "$clipRule" | "$colorInterpolation" | "$colorRendering" | "$dominantBaseline" | "$fill" | "$fillOpacity" | "$fillRule" | "$floodColor" | "$floodOpacity" | "$glyphOrientationVertical" | "$lightingColor" | "$marker" | "$markerEnd" | "$markerMid" | "$markerStart" | "$shapeRendering" | "$stopColor" | "$stopOpacity" | "$stroke" | "$strokeDasharray" | "$strokeDashoffset" | "$strokeLinecap" | "$strokeLinejoin" | "$strokeMiterlimit" | "$strokeOpacity" | "$strokeWidth" | "$textAnchor" | "$vectorEffect" | keyof HTMLAttributes<HTMLDivElement> | "effects"> & HTMLAttributes<HTMLDivElement> & import('../..').HoneyPrefixedCSSProperties & {
|
|
21
|
-
effects?: import('../..').HoneyEffectResultFn<object>[];
|
|
22
|
-
}, "ref"> & {
|
|
23
|
-
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
24
|
-
}, HoneyGridStyledProps>> & string;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { HoneyBreakpointName } from '../../types';
|
|
3
|
-
import { HoneyBoxProps } from '../HoneyBox';
|
|
4
|
-
export type HoneyGridColumnStyledProps = HTMLAttributes<HTMLDivElement> & HoneyBoxProps & {
|
|
5
|
-
/**
|
|
6
|
-
* Total number of columns in the grid.
|
|
7
|
-
*/
|
|
8
|
-
columns: number;
|
|
9
|
-
/**
|
|
10
|
-
* Spacing between grid columns.
|
|
11
|
-
*
|
|
12
|
-
* @default 0
|
|
13
|
-
*/
|
|
14
|
-
spacing: number | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* The number of columns this column should take.
|
|
17
|
-
*
|
|
18
|
-
* @default 1
|
|
19
|
-
*/
|
|
20
|
-
takeColumns?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Specifies the breakpoint at which the max-width should be applied or disables it if set to `false`.
|
|
23
|
-
* Can be a breakpoint name.
|
|
24
|
-
*/
|
|
25
|
-
applyMaxWidth?: HoneyBreakpointName | false;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* This styled component defines the layout and styling for individual columns in a grid layout.
|
|
29
|
-
* It provides flexibility in specifying the number of columns to take, the total number of columns in the grid,
|
|
30
|
-
* and the spacing between columns.
|
|
31
|
-
*/
|
|
32
|
-
export declare const HoneyGridColumnStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width" | "$height" | "$margin" | "$marginTop" | "$marginRight" | "$marginBottom" | "$marginLeft" | "$padding" | "$paddingTop" | "$paddingRight" | "$paddingBottom" | "$paddingLeft" | "$top" | "$right" | "$bottom" | "$left" | "$gap" | "$rowGap" | "$columnGap" | "$accentColor" | "$alignContent" | "$alignItems" | "$alignSelf" | "$alignTracks" | "$animationComposition" | "$animationDelay" | "$animationDirection" | "$animationDuration" | "$animationFillMode" | "$animationIterationCount" | "$animationName" | "$animationPlayState" | "$animationRangeEnd" | "$animationRangeStart" | "$animationTimeline" | "$animationTimingFunction" | "$appearance" | "$aspectRatio" | "$backdropFilter" | "$backfaceVisibility" | "$backgroundAttachment" | "$backgroundBlendMode" | "$backgroundClip" | "$backgroundColor" | "$backgroundImage" | "$backgroundOrigin" | "$backgroundPositionX" | "$backgroundPositionY" | "$backgroundRepeat" | "$backgroundSize" | "$blockOverflow" | "$blockSize" | "$borderBlockColor" | "$borderBlockEndColor" | "$borderBlockEndStyle" | "$borderBlockEndWidth" | "$borderBlockStartColor" | "$borderBlockStartStyle" | "$borderBlockStartWidth" | "$borderBlockStyle" | "$borderBlockWidth" | "$borderBottomColor" | "$borderBottomLeftRadius" | "$borderBottomRightRadius" | "$borderBottomStyle" | "$borderBottomWidth" | "$borderCollapse" | "$borderEndEndRadius" | "$borderEndStartRadius" | "$borderImageOutset" | "$borderImageRepeat" | "$borderImageSlice" | "$borderImageSource" | "$borderImageWidth" | "$borderInlineColor" | "$borderInlineEndColor" | "$borderInlineEndStyle" | "$borderInlineEndWidth" | "$borderInlineStartColor" | "$borderInlineStartStyle" | "$borderInlineStartWidth" | "$borderInlineStyle" | "$borderInlineWidth" | "$borderLeftColor" | "$borderLeftStyle" | "$borderLeftWidth" | "$borderRightColor" | "$borderRightStyle" | "$borderRightWidth" | "$borderSpacing" | "$borderStartEndRadius" | "$borderStartStartRadius" | "$borderTopColor" | "$borderTopLeftRadius" | "$borderTopRightRadius" | "$borderTopStyle" | "$borderTopWidth" | "$boxDecorationBreak" | "$boxShadow" | "$boxSizing" | "$breakAfter" | "$breakBefore" | "$breakInside" | "$captionSide" | "$caretColor" | "$caretShape" | "$clear" | "$clipPath" | "$color" | "$colorAdjust" | "$colorScheme" | "$columnCount" | "$columnFill" | "$columnRuleColor" | "$columnRuleStyle" | "$columnRuleWidth" | "$columnSpan" | "$columnWidth" | "$contain" | "$containIntrinsicBlockSize" | "$containIntrinsicHeight" | "$containIntrinsicInlineSize" | "$containIntrinsicWidth" | "$containerName" | "$containerType" | "$content" | "$contentVisibility" | "$counterIncrement" | "$counterReset" | "$counterSet" | "$cursor" | "$direction" | "$display" | "$emptyCells" | "$filter" | "$flexBasis" | "$flexDirection" | "$flexGrow" | "$flexShrink" | "$flexWrap" | "$float" | "$fontFamily" | "$fontFeatureSettings" | "$fontKerning" | "$fontLanguageOverride" | "$fontOpticalSizing" | "$fontPalette" | "$fontSize" | "$fontSizeAdjust" | "$fontSmooth" | "$fontStretch" | "$fontStyle" | "$fontSynthesis" | "$fontSynthesisPosition" | "$fontSynthesisSmallCaps" | "$fontSynthesisStyle" | "$fontSynthesisWeight" | "$fontVariant" | "$fontVariantAlternates" | "$fontVariantCaps" | "$fontVariantEastAsian" | "$fontVariantEmoji" | "$fontVariantLigatures" | "$fontVariantNumeric" | "$fontVariantPosition" | "$fontVariationSettings" | "$fontWeight" | "$forcedColorAdjust" | "$gridAutoColumns" | "$gridAutoFlow" | "$gridAutoRows" | "$gridColumnEnd" | "$gridColumnStart" | "$gridRowEnd" | "$gridRowStart" | "$gridTemplateAreas" | "$gridTemplateColumns" | "$gridTemplateRows" | "$hangingPunctuation" | "$hyphenateCharacter" | "$hyphenateLimitChars" | "$hyphens" | "$imageOrientation" | "$imageRendering" | "$imageResolution" | "$initialLetter" | "$inlineSize" | "$inputSecurity" | "$insetBlockEnd" | "$insetBlockStart" | "$insetInlineEnd" | "$insetInlineStart" | "$isolation" | "$justifyContent" | "$justifyItems" | "$justifySelf" | "$justifyTracks" | "$letterSpacing" | "$lineBreak" | "$lineHeight" | "$lineHeightStep" | "$listStyleImage" | "$listStylePosition" | "$listStyleType" | "$marginBlockEnd" | "$marginBlockStart" | "$marginInlineEnd" | "$marginInlineStart" | "$marginTrim" | "$maskBorderMode" | "$maskBorderOutset" | "$maskBorderRepeat" | "$maskBorderSlice" | "$maskBorderSource" | "$maskBorderWidth" | "$maskClip" | "$maskComposite" | "$maskImage" | "$maskMode" | "$maskOrigin" | "$maskPosition" | "$maskRepeat" | "$maskSize" | "$maskType" | "$masonryAutoFlow" | "$mathDepth" | "$mathShift" | "$mathStyle" | "$maxBlockSize" | "$maxHeight" | "$maxInlineSize" | "$maxLines" | "$maxWidth" | "$minBlockSize" | "$minHeight" | "$minInlineSize" | "$minWidth" | "$mixBlendMode" | "$motionDistance" | "$motionPath" | "$motionRotation" | "$objectFit" | "$objectPosition" | "$offsetAnchor" | "$offsetDistance" | "$offsetPath" | "$offsetPosition" | "$offsetRotate" | "$offsetRotation" | "$opacity" | "$order" | "$orphans" | "$outlineColor" | "$outlineOffset" | "$outlineStyle" | "$outlineWidth" | "$overflowAnchor" | "$overflowBlock" | "$overflowClipBox" | "$overflowClipMargin" | "$overflowInline" | "$overflowWrap" | "$overflowX" | "$overflowY" | "$overlay" | "$overscrollBehaviorBlock" | "$overscrollBehaviorInline" | "$overscrollBehaviorX" | "$overscrollBehaviorY" | "$paddingBlockEnd" | "$paddingBlockStart" | "$paddingInlineEnd" | "$paddingInlineStart" | "$page" | "$pageBreakAfter" | "$pageBreakBefore" | "$pageBreakInside" | "$paintOrder" | "$perspective" | "$perspectiveOrigin" | "$pointerEvents" | "$position" | "$printColorAdjust" | "$quotes" | "$resize" | "$rotate" | "$rubyAlign" | "$rubyMerge" | "$rubyPosition" | "$scale" | "$scrollBehavior" | "$scrollMarginBlockEnd" | "$scrollMarginBlockStart" | "$scrollMarginBottom" | "$scrollMarginInlineEnd" | "$scrollMarginInlineStart" | "$scrollMarginLeft" | "$scrollMarginRight" | "$scrollMarginTop" | "$scrollPaddingBlockEnd" | "$scrollPaddingBlockStart" | "$scrollPaddingBottom" | "$scrollPaddingInlineEnd" | "$scrollPaddingInlineStart" | "$scrollPaddingLeft" | "$scrollPaddingRight" | "$scrollPaddingTop" | "$scrollSnapAlign" | "$scrollSnapMarginBottom" | "$scrollSnapMarginLeft" | "$scrollSnapMarginRight" | "$scrollSnapMarginTop" | "$scrollSnapStop" | "$scrollSnapType" | "$scrollTimelineAxis" | "$scrollTimelineName" | "$scrollbarColor" | "$scrollbarGutter" | "$scrollbarWidth" | "$shapeImageThreshold" | "$shapeMargin" | "$shapeOutside" | "$tabSize" | "$tableLayout" | "$textAlign" | "$textAlignLast" | "$textCombineUpright" | "$textDecorationColor" | "$textDecorationLine" | "$textDecorationSkip" | "$textDecorationSkipInk" | "$textDecorationStyle" | "$textDecorationThickness" | "$textEmphasisColor" | "$textEmphasisPosition" | "$textEmphasisStyle" | "$textIndent" | "$textJustify" | "$textOrientation" | "$textOverflow" | "$textRendering" | "$textShadow" | "$textSizeAdjust" | "$textTransform" | "$textUnderlineOffset" | "$textUnderlinePosition" | "$textWrap" | "$timelineScope" | "$touchAction" | "$transform" | "$transformBox" | "$transformOrigin" | "$transformStyle" | "$transitionBehavior" | "$transitionDelay" | "$transitionDuration" | "$transitionProperty" | "$transitionTimingFunction" | "$translate" | "$unicodeBidi" | "$userSelect" | "$verticalAlign" | "$viewTimelineAxis" | "$viewTimelineInset" | "$viewTimelineName" | "$viewTransitionName" | "$visibility" | "$whiteSpace" | "$whiteSpaceCollapse" | "$whiteSpaceTrim" | "$widows" | "$willChange" | "$wordBreak" | "$wordSpacing" | "$wordWrap" | "$writingMode" | "$zIndex" | "$zoom" | "$all" | "$animation" | "$animationRange" | "$background" | "$backgroundPosition" | "$border" | "$borderBlock" | "$borderBlockEnd" | "$borderBlockStart" | "$borderBottom" | "$borderColor" | "$borderImage" | "$borderInline" | "$borderInlineEnd" | "$borderInlineStart" | "$borderLeft" | "$borderRadius" | "$borderRight" | "$borderStyle" | "$borderTop" | "$borderWidth" | "$caret" | "$columnRule" | "$columns" | "$containIntrinsicSize" | "$container" | "$flex" | "$flexFlow" | "$font" | "$grid" | "$gridArea" | "$gridColumn" | "$gridRow" | "$gridTemplate" | "$inset" | "$insetBlock" | "$insetInline" | "$lineClamp" | "$listStyle" | "$marginBlock" | "$marginInline" | "$mask" | "$maskBorder" | "$motion" | "$offset" | "$outline" | "$overflow" | "$overscrollBehavior" | "$paddingBlock" | "$paddingInline" | "$placeContent" | "$placeItems" | "$placeSelf" | "$scrollMargin" | "$scrollMarginBlock" | "$scrollMarginInline" | "$scrollPadding" | "$scrollPaddingBlock" | "$scrollPaddingInline" | "$scrollSnapMargin" | "$scrollTimeline" | "$textDecoration" | "$textEmphasis" | "$transition" | "$viewTimeline" | "$MozAnimationDelay" | "$MozAnimationDirection" | "$MozAnimationDuration" | "$MozAnimationFillMode" | "$MozAnimationIterationCount" | "$MozAnimationName" | "$MozAnimationPlayState" | "$MozAnimationTimingFunction" | "$MozAppearance" | "$MozBinding" | "$MozBorderBottomColors" | "$MozBorderEndColor" | "$MozBorderEndStyle" | "$MozBorderEndWidth" | "$MozBorderLeftColors" | "$MozBorderRightColors" | "$MozBorderStartColor" | "$MozBorderStartStyle" | "$MozBorderTopColors" | "$MozBoxSizing" | "$MozColumnCount" | "$MozColumnFill" | "$MozColumnRuleColor" | "$MozColumnRuleStyle" | "$MozColumnRuleWidth" | "$MozColumnWidth" | "$MozContextProperties" | "$MozFontFeatureSettings" | "$MozFontLanguageOverride" | "$MozHyphens" | "$MozImageRegion" | "$MozMarginEnd" | "$MozMarginStart" | "$MozOrient" | "$MozOsxFontSmoothing" | "$MozOutlineRadiusBottomleft" | "$MozOutlineRadiusBottomright" | "$MozOutlineRadiusTopleft" | "$MozOutlineRadiusTopright" | "$MozPaddingEnd" | "$MozPaddingStart" | "$MozStackSizing" | "$MozTabSize" | "$MozTextBlink" | "$MozTextSizeAdjust" | "$MozUserFocus" | "$MozUserModify" | "$MozUserSelect" | "$MozWindowDragging" | "$MozWindowShadow" | "$msAccelerator" | "$msBlockProgression" | "$msContentZoomChaining" | "$msContentZoomLimitMax" | "$msContentZoomLimitMin" | "$msContentZoomSnapPoints" | "$msContentZoomSnapType" | "$msContentZooming" | "$msFilter" | "$msFlexDirection" | "$msFlexPositive" | "$msFlowFrom" | "$msFlowInto" | "$msGridColumns" | "$msGridRows" | "$msHighContrastAdjust" | "$msHyphenateLimitChars" | "$msHyphenateLimitLines" | "$msHyphenateLimitZone" | "$msHyphens" | "$msImeAlign" | "$msLineBreak" | "$msOrder" | "$msOverflowStyle" | "$msOverflowX" | "$msOverflowY" | "$msScrollChaining" | "$msScrollLimitXMax" | "$msScrollLimitXMin" | "$msScrollLimitYMax" | "$msScrollLimitYMin" | "$msScrollRails" | "$msScrollSnapPointsX" | "$msScrollSnapPointsY" | "$msScrollSnapType" | "$msScrollTranslation" | "$msScrollbar3dlightColor" | "$msScrollbarArrowColor" | "$msScrollbarBaseColor" | "$msScrollbarDarkshadowColor" | "$msScrollbarFaceColor" | "$msScrollbarHighlightColor" | "$msScrollbarShadowColor" | "$msScrollbarTrackColor" | "$msTextAutospace" | "$msTextCombineHorizontal" | "$msTextOverflow" | "$msTouchAction" | "$msTouchSelect" | "$msTransform" | "$msTransformOrigin" | "$msTransitionDelay" | "$msTransitionDuration" | "$msTransitionProperty" | "$msTransitionTimingFunction" | "$msUserSelect" | "$msWordBreak" | "$msWrapFlow" | "$msWrapMargin" | "$msWrapThrough" | "$msWritingMode" | "$WebkitAlignContent" | "$WebkitAlignItems" | "$WebkitAlignSelf" | "$WebkitAnimationDelay" | "$WebkitAnimationDirection" | "$WebkitAnimationDuration" | "$WebkitAnimationFillMode" | "$WebkitAnimationIterationCount" | "$WebkitAnimationName" | "$WebkitAnimationPlayState" | "$WebkitAnimationTimingFunction" | "$WebkitAppearance" | "$WebkitBackdropFilter" | "$WebkitBackfaceVisibility" | "$WebkitBackgroundClip" | "$WebkitBackgroundOrigin" | "$WebkitBackgroundSize" | "$WebkitBorderBeforeColor" | "$WebkitBorderBeforeStyle" | "$WebkitBorderBeforeWidth" | "$WebkitBorderBottomLeftRadius" | "$WebkitBorderBottomRightRadius" | "$WebkitBorderImageSlice" | "$WebkitBorderTopLeftRadius" | "$WebkitBorderTopRightRadius" | "$WebkitBoxDecorationBreak" | "$WebkitBoxReflect" | "$WebkitBoxShadow" | "$WebkitBoxSizing" | "$WebkitClipPath" | "$WebkitColumnCount" | "$WebkitColumnFill" | "$WebkitColumnRuleColor" | "$WebkitColumnRuleStyle" | "$WebkitColumnRuleWidth" | "$WebkitColumnSpan" | "$WebkitColumnWidth" | "$WebkitFilter" | "$WebkitFlexBasis" | "$WebkitFlexDirection" | "$WebkitFlexGrow" | "$WebkitFlexShrink" | "$WebkitFlexWrap" | "$WebkitFontFeatureSettings" | "$WebkitFontKerning" | "$WebkitFontSmoothing" | "$WebkitFontVariantLigatures" | "$WebkitHyphenateCharacter" | "$WebkitHyphens" | "$WebkitInitialLetter" | "$WebkitJustifyContent" | "$WebkitLineBreak" | "$WebkitLineClamp" | "$WebkitMarginEnd" | "$WebkitMarginStart" | "$WebkitMaskAttachment" | "$WebkitMaskBoxImageOutset" | "$WebkitMaskBoxImageRepeat" | "$WebkitMaskBoxImageSlice" | "$WebkitMaskBoxImageSource" | "$WebkitMaskBoxImageWidth" | "$WebkitMaskClip" | "$WebkitMaskComposite" | "$WebkitMaskImage" | "$WebkitMaskOrigin" | "$WebkitMaskPosition" | "$WebkitMaskPositionX" | "$WebkitMaskPositionY" | "$WebkitMaskRepeat" | "$WebkitMaskRepeatX" | "$WebkitMaskRepeatY" | "$WebkitMaskSize" | "$WebkitMaxInlineSize" | "$WebkitOrder" | "$WebkitOverflowScrolling" | "$WebkitPaddingEnd" | "$WebkitPaddingStart" | "$WebkitPerspective" | "$WebkitPerspectiveOrigin" | "$WebkitPrintColorAdjust" | "$WebkitRubyPosition" | "$WebkitScrollSnapType" | "$WebkitShapeMargin" | "$WebkitTapHighlightColor" | "$WebkitTextCombine" | "$WebkitTextDecorationColor" | "$WebkitTextDecorationLine" | "$WebkitTextDecorationSkip" | "$WebkitTextDecorationStyle" | "$WebkitTextEmphasisColor" | "$WebkitTextEmphasisPosition" | "$WebkitTextEmphasisStyle" | "$WebkitTextFillColor" | "$WebkitTextOrientation" | "$WebkitTextSizeAdjust" | "$WebkitTextStrokeColor" | "$WebkitTextStrokeWidth" | "$WebkitTextUnderlinePosition" | "$WebkitTouchCallout" | "$WebkitTransform" | "$WebkitTransformOrigin" | "$WebkitTransformStyle" | "$WebkitTransitionDelay" | "$WebkitTransitionDuration" | "$WebkitTransitionProperty" | "$WebkitTransitionTimingFunction" | "$WebkitUserModify" | "$WebkitUserSelect" | "$WebkitWritingMode" | "$MozAnimation" | "$MozBorderImage" | "$MozColumnRule" | "$MozColumns" | "$MozOutlineRadius" | "$msContentZoomLimit" | "$msContentZoomSnap" | "$msFlex" | "$msScrollLimit" | "$msScrollSnapX" | "$msScrollSnapY" | "$msTransition" | "$WebkitAnimation" | "$WebkitBorderBefore" | "$WebkitBorderImage" | "$WebkitBorderRadius" | "$WebkitColumnRule" | "$WebkitColumns" | "$WebkitFlex" | "$WebkitFlexFlow" | "$WebkitMask" | "$WebkitMaskBoxImage" | "$WebkitTextEmphasis" | "$WebkitTextStroke" | "$WebkitTransition" | "$azimuth" | "$boxAlign" | "$boxDirection" | "$boxFlex" | "$boxFlexGroup" | "$boxLines" | "$boxOrdinalGroup" | "$boxOrient" | "$boxPack" | "$clip" | "$gridColumnGap" | "$gridGap" | "$gridRowGap" | "$imeMode" | "$offsetBlock" | "$offsetBlockEnd" | "$offsetBlockStart" | "$offsetInline" | "$offsetInlineEnd" | "$offsetInlineStart" | "$scrollSnapCoordinate" | "$scrollSnapDestination" | "$scrollSnapPointsX" | "$scrollSnapPointsY" | "$scrollSnapTypeX" | "$scrollSnapTypeY" | "$KhtmlBoxAlign" | "$KhtmlBoxDirection" | "$KhtmlBoxFlex" | "$KhtmlBoxFlexGroup" | "$KhtmlBoxLines" | "$KhtmlBoxOrdinalGroup" | "$KhtmlBoxOrient" | "$KhtmlBoxPack" | "$KhtmlLineBreak" | "$KhtmlOpacity" | "$KhtmlUserSelect" | "$MozBackfaceVisibility" | "$MozBackgroundClip" | "$MozBackgroundInlinePolicy" | "$MozBackgroundOrigin" | "$MozBackgroundSize" | "$MozBorderRadius" | "$MozBorderRadiusBottomleft" | "$MozBorderRadiusBottomright" | "$MozBorderRadiusTopleft" | "$MozBorderRadiusTopright" | "$MozBoxAlign" | "$MozBoxDirection" | "$MozBoxFlex" | "$MozBoxOrdinalGroup" | "$MozBoxOrient" | "$MozBoxPack" | "$MozBoxShadow" | "$MozFloatEdge" | "$MozForceBrokenImageIcon" | "$MozOpacity" | "$MozOutline" | "$MozOutlineColor" | "$MozOutlineStyle" | "$MozOutlineWidth" | "$MozPerspective" | "$MozPerspectiveOrigin" | "$MozTextAlignLast" | "$MozTextDecorationColor" | "$MozTextDecorationLine" | "$MozTextDecorationStyle" | "$MozTransform" | "$MozTransformOrigin" | "$MozTransformStyle" | "$MozTransition" | "$MozTransitionDelay" | "$MozTransitionDuration" | "$MozTransitionProperty" | "$MozTransitionTimingFunction" | "$MozUserInput" | "$msImeMode" | "$OAnimation" | "$OAnimationDelay" | "$OAnimationDirection" | "$OAnimationDuration" | "$OAnimationFillMode" | "$OAnimationIterationCount" | "$OAnimationName" | "$OAnimationPlayState" | "$OAnimationTimingFunction" | "$OBackgroundSize" | "$OBorderImage" | "$OObjectFit" | "$OObjectPosition" | "$OTabSize" | "$OTextOverflow" | "$OTransform" | "$OTransformOrigin" | "$OTransition" | "$OTransitionDelay" | "$OTransitionDuration" | "$OTransitionProperty" | "$OTransitionTimingFunction" | "$WebkitBoxAlign" | "$WebkitBoxDirection" | "$WebkitBoxFlex" | "$WebkitBoxFlexGroup" | "$WebkitBoxLines" | "$WebkitBoxOrdinalGroup" | "$WebkitBoxOrient" | "$WebkitBoxPack" | "$alignmentBaseline" | "$baselineShift" | "$clipRule" | "$colorInterpolation" | "$colorRendering" | "$dominantBaseline" | "$fill" | "$fillOpacity" | "$fillRule" | "$floodColor" | "$floodOpacity" | "$glyphOrientationVertical" | "$lightingColor" | "$marker" | "$markerEnd" | "$markerMid" | "$markerStart" | "$shapeRendering" | "$stopColor" | "$stopOpacity" | "$stroke" | "$strokeDasharray" | "$strokeDashoffset" | "$strokeLinecap" | "$strokeLinejoin" | "$strokeMiterlimit" | "$strokeOpacity" | "$strokeWidth" | "$textAnchor" | "$vectorEffect" | keyof HTMLAttributes<HTMLDivElement> | "effects"> & HTMLAttributes<HTMLDivElement> & import('../../types').HoneyPrefixedCSSProperties & {
|
|
33
|
-
effects?: import('../../types').HoneyEffectResultFn<object>[];
|
|
34
|
-
}, "ref"> & {
|
|
35
|
-
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
36
|
-
}, never>, HoneyGridColumnStyledProps>> & string;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Type definition for status content options in a component.
|
|
4
|
-
*
|
|
5
|
-
* This type is used to provide properties for handling different states of a component,
|
|
6
|
-
* such as loading, error, and no content states, along with the content to display in each state.
|
|
7
|
-
*
|
|
8
|
-
* @template T - An optional generic type parameter to extend the type with additional properties.
|
|
9
|
-
*/
|
|
10
|
-
export type HoneyStatusContentOptions<T = unknown> = {
|
|
11
|
-
/**
|
|
12
|
-
* A flag indicating whether the component is in a loading state.
|
|
13
|
-
*
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* A flag indicating whether the component has encountered an error.
|
|
19
|
-
*
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
isError?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* A flag indicating whether the component has no content to display.
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
isNoContent?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The content to display when the component is in a loading state.
|
|
31
|
-
*
|
|
32
|
-
* @default null
|
|
33
|
-
*/
|
|
34
|
-
loadingContent?: ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* The content to display when the component has encountered an error.
|
|
37
|
-
*
|
|
38
|
-
* @default null
|
|
39
|
-
*/
|
|
40
|
-
errorContent?: ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* The content to display when the component has no content to display.
|
|
43
|
-
*
|
|
44
|
-
* @default null
|
|
45
|
-
*/
|
|
46
|
-
noContent?: ReactNode;
|
|
47
|
-
} & T;
|