@vitus-labs/elements 0.55.0 → 0.57.0-alpha.2

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/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Provider } from '@vitus-labs/unistyle';
2
2
  import * as React from 'react';
3
- import React__default, { ForwardedRef, ComponentType, VFC, PropsWithChildren, ReactElement, ForwardRefExoticComponent, ReactNode, ReactText, FC } from 'react';
4
- import { renderContent, config, HTMLTags, HTMLTagsText } from '@vitus-labs/core';
3
+ import React__default, { ForwardedRef, ComponentType, FC, PropsWithChildren, ReactElement, ForwardRefExoticComponent, ReactNode } from 'react';
4
+ import { render, BreakpointKeys, config, HTMLTags, HTMLTagsText } from '@vitus-labs/core';
5
5
 
6
6
  declare type ExtractNullableKeys<T> = {
7
7
  [P in keyof T as T[P] extends null | never | undefined ? never : P]: T[P];
@@ -12,69 +12,24 @@ declare type Id<T> = T extends infer U ? {
12
12
  declare type SpreadTwo<L, R> = Id<Pick<L, Exclude<keyof L, keyof R>> & R>;
13
13
  declare type Spread<A extends readonly [...any]> = A extends [infer L, ...infer R] ? SpreadTwo<L, Spread<R>> : unknown;
14
14
  declare type MergeTypes<A extends readonly [...any]> = ExtractNullableKeys<Spread<A>>;
15
- declare type SimpleHoc<P extends Record<string, unknown>> = <T extends ComponentType<any>>(WrappedComponent: T) => VFC<MergeTypes<[P, ExtractProps<T>]>>;
16
- /**
17
- * @hidden
18
- */
15
+ declare type SimpleHoc<P extends Record<string, unknown>> = <T extends ComponentType<any>>(WrappedComponent: T) => FC<MergeTypes<[P, ExtractProps<T>]>>;
19
16
  declare type InnerRef = ForwardedRef<any>;
20
- /**
21
- * @hidden
22
- */
23
17
  declare type CssCallback = (css: typeof config.css) => ReturnType<typeof css>;
24
- /**
25
- * @hidden
26
- */
27
18
  declare type Css = CssCallback | string | ReturnType<typeof config.css>;
28
- /**
29
- * @hidden
30
- */
31
19
  declare type isEmpty = null | undefined;
32
- /**
33
- * @hidden
34
- */
35
- declare type Content = Parameters<typeof renderContent>['0'];
36
- /**
37
- * @hidden
38
- */
20
+ declare type Content = Parameters<typeof render>['0'];
39
21
  declare type ContentAlignX = 'left' | 'center' | 'right' | 'spaceBetween' | 'spaceAround' | 'block' | isEmpty;
40
- /**
41
- * @hidden
42
- */
43
22
  declare type ContentAlignY = 'top' | 'center' | 'bottom' | 'spaceBetween' | 'spaceAround' | 'block' | isEmpty;
44
- /**
45
- * @hidden
46
- */
47
23
  declare type ContentDirection = 'inline' | 'rows' | 'reverseInline' | 'reverseRows' | isEmpty;
48
- /**
49
- * @hidden
50
- */
51
- declare type AlignY$2 = ContentAlignY | ContentAlignY[] | Record<string, ContentAlignY>;
52
- /**
53
- * @hidden
54
- */
55
- declare type AlignX$2 = ContentAlignX | ContentAlignX[] | Record<string, ContentAlignX>;
56
- /**
57
- * @hidden
58
- */
59
- declare type Direction = ContentDirection | ContentDirection[] | Record<string, ContentDirection>;
60
- /**
61
- * @hidden
62
- */
63
- declare type ResponsiveBooltype = boolean | Record<string, boolean> | Array<boolean>;
64
- /**
65
- * @hidden
66
- */
67
- declare type Responsive = number | Array<string | number> | Record<string, number | string>;
68
- /**
69
- * @hidden
70
- */
71
- declare type ExtendCss = Css | Array<Css> | Record<string, Css>;
72
- /**
73
- * @hidden
74
- */
24
+ declare type AlignY$2 = ContentAlignY | ContentAlignY[] | Partial<Record<BreakpointKeys, ContentAlignY>>;
25
+ declare type AlignX$2 = ContentAlignX | ContentAlignX[] | Partial<Record<BreakpointKeys, ContentAlignX>>;
26
+ declare type Direction = ContentDirection | ContentDirection[] | Partial<Record<BreakpointKeys, ContentDirection>>;
27
+ declare type ResponsiveBooltype = boolean | Array<boolean> | Partial<Record<BreakpointKeys, boolean>>;
28
+ declare type Responsive = number | Array<string | number> | Partial<Record<BreakpointKeys, number | string>>;
29
+ declare type ExtendCss = Css | Array<Css> | Partial<Record<BreakpointKeys, Css>>;
75
30
  declare type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
76
31
  declare type VLForwardedComponent<P = Record<string, unknown>> = ForwardRefRenderFunction<any, P> & VLStatic;
77
- declare type VLComponent<P = Record<string, unknown>> = VFC<P> & VLStatic;
32
+ declare type VLComponent<P = Record<string, unknown>> = FC<P> & VLStatic;
78
33
  interface ForwardRefRenderFunction<T, P = Record<string, unknown>> {
79
34
  (props: PropsWithChildren<P & {
80
35
  ref?: ForwardedRef<T>;
@@ -132,7 +87,7 @@ declare type VLElement<P extends Record<string, unknown> = {}> = {
132
87
  }): ReactElement | null;
133
88
  } & VLStatic;
134
89
 
135
- declare const component$7: VLElement;
90
+ declare const Component$3: VLElement;
136
91
 
137
92
  declare type Props$7 = Partial<{
138
93
  equalBeforeAfter: boolean;
@@ -144,14 +99,14 @@ declare const withEqualBeforeAfter: SimpleHoc<Props$7>;
144
99
 
145
100
  declare type MaybeNull = undefined | null;
146
101
  declare type TObj = Record<string, unknown>;
147
- declare type SimpleValue = ReactText;
148
- /**
149
- * @hidden
150
- */
102
+ declare type SimpleValue = string | number;
103
+ declare type ObjectValue = Partial<{
104
+ id: SimpleValue;
105
+ key: SimpleValue;
106
+ itemId: SimpleValue;
107
+ component: ElementType;
108
+ }> & Record<string, unknown>;
151
109
  declare type ElementType<T extends Record<string, unknown> = any> = ComponentType<T> | ForwardRefExoticComponent<T> | HTMLTags;
152
- /**
153
- * @hidden
154
- */
155
110
  declare type ExtendedProps = {
156
111
  index: number;
157
112
  first: boolean;
@@ -160,28 +115,16 @@ declare type ExtendedProps = {
160
115
  even: boolean;
161
116
  position: number;
162
117
  };
163
- /**
164
- * @hidden
165
- */
166
- declare type DataArrayObject = Partial<{
167
- id: SimpleValue;
168
- key: SimpleValue;
169
- itemId: SimpleValue;
170
- component: ElementType;
171
- }> & Record<string, unknown>;
172
- /**
173
- * @hidden
174
- */
175
- declare type PropsCallback = TObj | ((itemProps: Record<string, never> | Record<string, SimpleValue> | DataArrayObject, extendedProps: ExtendedProps) => TObj);
118
+ declare type PropsCallback = TObj | ((itemProps: Record<string, never> | Record<string, SimpleValue> | ObjectValue, extendedProps: ExtendedProps) => TObj);
176
119
  declare type Props$6 = Partial<{
177
120
  children: ReactNode;
178
- data: Array<SimpleValue | DataArrayObject | MaybeNull>;
121
+ data: Array<SimpleValue | ObjectValue | MaybeNull>;
179
122
  component: ElementType;
180
123
  valueName: string;
181
124
  wrapComponent: ElementType;
182
125
  itemProps: PropsCallback;
183
126
  wrapProps?: PropsCallback;
184
- itemKey?: keyof DataArrayObject | ((item: SimpleValue | Omit<DataArrayObject, 'component'>, index: number) => SimpleValue);
127
+ itemKey?: keyof ObjectValue | ((item: SimpleValue | Omit<ObjectValue, 'component'>, index: number) => SimpleValue);
185
128
  }>;
186
129
 
187
130
  declare type Props$5 = MergeTypes<[
@@ -192,7 +135,7 @@ declare type Props$5 = MergeTypes<[
192
135
  content: never;
193
136
  }
194
137
  ]>;
195
- declare const component$6: VLElement<Props$5>;
138
+ declare const component$3: VLElement<Props$5>;
196
139
 
197
140
  declare type Key = string | number;
198
141
  declare type Props$4 = {
@@ -201,7 +144,7 @@ declare type Props$4 = {
201
144
  activeItems?: Key | Array<string | number>;
202
145
  itemProps?: Record<string, unknown> | ((props: Record<string, unknown>) => Record<string, unknown>);
203
146
  };
204
- declare const component$5: SimpleHoc<Props$4>;
147
+ declare const component$2: SimpleHoc<Props$4>;
205
148
 
206
149
  declare type Align$1 = 'bottom' | 'top' | 'left' | 'bottom' | 'right';
207
150
  declare type AlignX$1 = 'left' | 'center' | 'right';
@@ -245,7 +188,7 @@ declare type TriggerRenderer = (props: Partial<{
245
188
  active: boolean;
246
189
  showContent: () => void;
247
190
  hideContent: () => void;
248
- }>) => Content;
191
+ }>) => ReactNode;
249
192
  declare type ContentRenderer = (props: Partial<{
250
193
  active: boolean;
251
194
  showContent: () => void;
@@ -253,7 +196,7 @@ declare type ContentRenderer = (props: Partial<{
253
196
  align: Align;
254
197
  alignX: AlignX;
255
198
  alignY: AlignY;
256
- }>) => Content;
199
+ }>) => ReactNode;
257
200
  declare type Props$3 = {
258
201
  children: Content | TriggerRenderer;
259
202
  trigger: Content | ContentRenderer;
@@ -261,21 +204,23 @@ declare type Props$3 = {
261
204
  triggerRefName?: string;
262
205
  contentRefName?: string;
263
206
  } & UseOverlayProps;
264
- declare const component$4: VLComponent<Props$3>;
207
+ declare const Component$2: VLComponent<Props$3>;
265
208
 
266
209
  declare type Context = {
267
210
  blocked: boolean;
268
211
  setBlocked: () => void;
269
212
  setUnblocked: () => void;
270
213
  };
271
- declare const component$3: FC<Context>;
214
+ declare const component$1: FC<Context & {
215
+ children: ReactNode;
216
+ }>;
272
217
 
273
218
  declare type Props$2 = {
274
219
  position?: HTMLElement;
275
220
  children: ReactNode;
276
221
  tag?: string;
277
222
  };
278
- declare const component$2: VLComponent<Props$2>;
223
+ declare const Component$1: VLComponent<Props$2>;
279
224
 
280
225
  declare type Props$1 = Partial<{
281
226
  paragraph: boolean;
@@ -284,7 +229,7 @@ declare type Props$1 = Partial<{
284
229
  tag: HTMLTagsText;
285
230
  extendCss: ExtendCss;
286
231
  }>;
287
- declare const component$1: VLForwardedComponent<Props$1> & {
232
+ declare const component: VLForwardedComponent<Props$1> & {
288
233
  isText?: true;
289
234
  };
290
235
 
@@ -293,6 +238,6 @@ declare type Props = {
293
238
  className?: string | string[];
294
239
  style?: Record<string, unknown>;
295
240
  };
296
- declare const component: VLComponent<Props>;
241
+ declare const Component: VLComponent<Props>;
297
242
 
298
- export { AlignX$2 as AlignX, AlignY$2 as AlignY, Content, DataArrayObject, Direction, component$7 as Element, Props$8 as ElementProps, ElementType, ExtendCss, ExtendedProps, InnerRef, Props$6 as IteratorProps, component$6 as List, Props$5 as ListProps, component$4 as Overlay, Props$3 as OverlayProps, component$3 as OverlayProvider, component$2 as Portal, Props$2 as PortalProps, PropsCallback, Responsive, ResponsiveBooltype, component$1 as Text, Props$1 as TextProps, UseOverlayProps, component as Util, Props as UtilProps, _default as useOverlay, component$5 as withActiveState, withEqualBeforeAfter as withEqualSizeBeforeAfter };
243
+ export { AlignX$2 as AlignX, AlignY$2 as AlignY, Content, Direction, Component$3 as Element, Props$8 as ElementProps, ElementType, ExtendCss, ExtendedProps, InnerRef, Props$6 as IteratorProps, component$3 as List, Props$5 as ListProps, ObjectValue, Component$2 as Overlay, Props$3 as OverlayProps, component$1 as OverlayProvider, Component$1 as Portal, Props$2 as PortalProps, PropsCallback, Responsive, ResponsiveBooltype, component as Text, Props$1 as TextProps, UseOverlayProps, Component as Util, Props as UtilProps, _default as useOverlay, component$2 as withActiveState, withEqualBeforeAfter as withEqualSizeBeforeAfter };
@@ -1,3 +1,3 @@
1
1
  import type { VLElement } from './types';
2
- declare const component: VLElement;
3
- export default component;
2
+ declare const Component: VLElement;
3
+ export default Component;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import type { VLComponent, Content } from "../types";
2
3
  import { UseOverlayProps } from './useOverlay';
3
4
  declare type Align = 'bottom' | 'top' | 'left' | 'bottom' | 'right';
@@ -7,7 +8,7 @@ declare type TriggerRenderer = (props: Partial<{
7
8
  active: boolean;
8
9
  showContent: () => void;
9
10
  hideContent: () => void;
10
- }>) => Content;
11
+ }>) => ReactNode;
11
12
  declare type ContentRenderer = (props: Partial<{
12
13
  active: boolean;
13
14
  showContent: () => void;
@@ -15,7 +16,7 @@ declare type ContentRenderer = (props: Partial<{
15
16
  align: Align;
16
17
  alignX: AlignX;
17
18
  alignY: AlignY;
18
- }>) => Content;
19
+ }>) => ReactNode;
19
20
  export declare type Props = {
20
21
  children: Content | TriggerRenderer;
21
22
  trigger: Content | ContentRenderer;
@@ -23,5 +24,5 @@ export declare type Props = {
23
24
  triggerRefName?: string;
24
25
  contentRefName?: string;
25
26
  } & UseOverlayProps;
26
- declare const component: VLComponent<Props>;
27
- export default component;
27
+ declare const Component: VLComponent<Props>;
28
+ export default Component;
@@ -1,9 +1,11 @@
1
- import { FC } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  declare type Context = {
3
3
  blocked: boolean;
4
4
  setBlocked: () => void;
5
5
  setUnblocked: () => void;
6
6
  };
7
7
  export declare const useOverlayContext: () => Context;
8
- declare const component: FC<Context>;
8
+ declare const component: FC<Context & {
9
+ children: ReactNode;
10
+ }>;
9
11
  export default component;
@@ -5,5 +5,5 @@ export declare type Props = {
5
5
  children: ReactNode;
6
6
  tag?: string;
7
7
  };
8
- declare const component: VLComponent<Props>;
9
- export default component;
8
+ declare const Component: VLComponent<Props>;
9
+ export default Component;
@@ -1,2 +1,2 @@
1
- declare const _default: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
1
+ declare const _default: import("styled-components").StyledComponent<"object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "header" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "main" | "map" | "mark" | "meter" | "nav" | "ol" | "optgroup" | "option" | "output" | "p" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "svg" | import("react").ComponentType<{}>, any, {}, never>;
2
2
  export default _default;
@@ -5,5 +5,5 @@ export declare type Props = {
5
5
  className?: string | string[];
6
6
  style?: Record<string, unknown>;
7
7
  };
8
- declare const component: VLComponent<Props>;
9
- export default component;
8
+ declare const Component: VLComponent<Props>;
9
+ export default Component;
@@ -5,5 +5,5 @@ declare type Static = {
5
5
  isIterator: true;
6
6
  RESERVED_PROPS: typeof RESERVED_PROPS;
7
7
  };
8
- declare const component: FC<Props> & Static;
9
- export default component;
8
+ declare const Component: FC<Props> & Static;
9
+ export default Component;
@@ -1,4 +1,4 @@
1
1
  import component from './component';
2
- import type { Props, PropsCallback, DataArrayObject, ExtendedProps, ElementType } from './types';
3
- export type { Props, PropsCallback, DataArrayObject, ExtendedProps, ElementType, };
2
+ import type { Props, PropsCallback, ObjectValue, ExtendedProps, ElementType } from './types';
3
+ export type { Props, PropsCallback, ObjectValue, ExtendedProps, ElementType };
4
4
  export default component;
@@ -1,15 +1,15 @@
1
- import type { ComponentType, ForwardRefExoticComponent, ReactText, ReactNode } from 'react';
1
+ import type { ComponentType, ForwardRefExoticComponent, ReactNode } from 'react';
2
2
  import { HTMLTags } from '@vitus-labs/core';
3
3
  export declare type MaybeNull = undefined | null;
4
4
  export declare type TObj = Record<string, unknown>;
5
- export declare type SimpleValue = ReactText;
6
- /**
7
- * @hidden
8
- */
5
+ export declare type SimpleValue = string | number;
6
+ export declare type ObjectValue = Partial<{
7
+ id: SimpleValue;
8
+ key: SimpleValue;
9
+ itemId: SimpleValue;
10
+ component: ElementType;
11
+ }> & Record<string, unknown>;
9
12
  export declare type ElementType<T extends Record<string, unknown> = any> = ComponentType<T> | ForwardRefExoticComponent<T> | HTMLTags;
10
- /**
11
- * @hidden
12
- */
13
13
  export declare type ExtendedProps = {
14
14
  index: number;
15
15
  first: boolean;
@@ -18,26 +18,14 @@ export declare type ExtendedProps = {
18
18
  even: boolean;
19
19
  position: number;
20
20
  };
21
- /**
22
- * @hidden
23
- */
24
- export declare type DataArrayObject = Partial<{
25
- id: SimpleValue;
26
- key: SimpleValue;
27
- itemId: SimpleValue;
28
- component: ElementType;
29
- }> & Record<string, unknown>;
30
- /**
31
- * @hidden
32
- */
33
- export declare type PropsCallback = TObj | ((itemProps: Record<string, never> | Record<string, SimpleValue> | DataArrayObject, extendedProps: ExtendedProps) => TObj);
21
+ export declare type PropsCallback = TObj | ((itemProps: Record<string, never> | Record<string, SimpleValue> | ObjectValue, extendedProps: ExtendedProps) => TObj);
34
22
  export declare type Props = Partial<{
35
23
  children: ReactNode;
36
- data: Array<SimpleValue | DataArrayObject | MaybeNull>;
24
+ data: Array<SimpleValue | ObjectValue | MaybeNull>;
37
25
  component: ElementType;
38
26
  valueName: string;
39
27
  wrapComponent: ElementType;
40
28
  itemProps: PropsCallback;
41
29
  wrapProps?: PropsCallback;
42
- itemKey?: keyof DataArrayObject | ((item: SimpleValue | Omit<DataArrayObject, 'component'>, index: number) => SimpleValue);
30
+ itemKey?: keyof ObjectValue | ((item: SimpleValue | Omit<ObjectValue, 'component'>, index: number) => SimpleValue);
43
31
  }>;
@@ -5,7 +5,7 @@ import Overlay, { Props as OverlayProps, useOverlay, OverlayProvider, UseOverlay
5
5
  import Portal, { Props as PortalProps } from "./Portal";
6
6
  import Text, { Props as TextProps } from "./Text";
7
7
  import Util, { Props as UtilProps } from "./Util";
8
- import type { Props as IteratorProps, PropsCallback, DataArrayObject, ExtendedProps, ElementType } from "./helpers/Iterator";
8
+ import type { Props as IteratorProps, PropsCallback, ObjectValue, ExtendedProps, ElementType } from "./helpers/Iterator";
9
9
  import type { AlignX, AlignY, Content, Direction, ResponsiveBooltype, Responsive, ExtendCss, InnerRef } from "./types";
10
- export type { ElementProps, ListProps, OverlayProps, UseOverlayProps, PortalProps, TextProps, UtilProps, IteratorProps, AlignX, AlignY, Content, Direction, ResponsiveBooltype, Responsive, ExtendCss, InnerRef, PropsCallback, DataArrayObject, ExtendedProps, ElementType, };
10
+ export type { ElementProps, ListProps, OverlayProps, UseOverlayProps, PortalProps, TextProps, UtilProps, IteratorProps, AlignX, AlignY, Content, Direction, ResponsiveBooltype, Responsive, ExtendCss, InnerRef, PropsCallback, ObjectValue, ExtendedProps, ElementType, };
11
11
  export { Element, withEqualSizeBeforeAfter, withActiveState, List, Overlay, useOverlay, OverlayProvider, Portal, Text, Util, Provider, };
@@ -1,5 +1,7 @@
1
- import type { ComponentType, VFC, ForwardedRef, PropsWithChildren, ReactElement } from 'react';
2
- import { config, renderContent } from '@vitus-labs/core';
1
+ import type { ComponentType, FC, ForwardedRef, PropsWithChildren, ReactElement } from 'react';
2
+ import { MakeItResponsive } from '@vitus-labs/unistyle';
3
+ import { config, render, BreakpointKeys } from '@vitus-labs/core';
4
+ export declare type ResponsiveStylesCallback = Parameters<MakeItResponsive>[0]['styles'];
3
5
  declare type ExtractNullableKeys<T> = {
4
6
  [P in keyof T as T[P] extends null | never | undefined ? never : P]: T[P];
5
7
  };
@@ -9,73 +11,25 @@ declare type Id<T> = T extends infer U ? {
9
11
  declare type SpreadTwo<L, R> = Id<Pick<L, Exclude<keyof L, keyof R>> & R>;
10
12
  declare type Spread<A extends readonly [...any]> = A extends [infer L, ...infer R] ? SpreadTwo<L, Spread<R>> : unknown;
11
13
  export declare type MergeTypes<A extends readonly [...any]> = ExtractNullableKeys<Spread<A>>;
12
- export declare type SimpleHoc<P extends Record<string, unknown>> = <T extends ComponentType<any>>(WrappedComponent: T) => VFC<MergeTypes<[P, ExtractProps<T>]>>;
13
- /**
14
- * @hidden
15
- */
14
+ export declare type SimpleHoc<P extends Record<string, unknown>> = <T extends ComponentType<any>>(WrappedComponent: T) => FC<MergeTypes<[P, ExtractProps<T>]>>;
16
15
  export declare type InnerRef = ForwardedRef<any>;
17
- /**
18
- * @hidden
19
- */
20
16
  export declare type CssCallback = (css: typeof config.css) => ReturnType<typeof css>;
21
- /**
22
- * @hidden
23
- */
24
17
  export declare type Css = CssCallback | string | ReturnType<typeof config.css>;
25
- /**
26
- * @hidden
27
- */
28
18
  export declare type isEmpty = null | undefined;
29
- /**
30
- * @hidden
31
- */
32
- export declare type Content = Parameters<typeof renderContent>['0'];
33
- /**
34
- * @hidden
35
- */
19
+ export declare type Content = Parameters<typeof render>['0'];
36
20
  export declare type ContentAlignX = 'left' | 'center' | 'right' | 'spaceBetween' | 'spaceAround' | 'block' | isEmpty;
37
- /**
38
- * @hidden
39
- */
40
21
  export declare type ContentAlignY = 'top' | 'center' | 'bottom' | 'spaceBetween' | 'spaceAround' | 'block' | isEmpty;
41
- /**
42
- * @hidden
43
- */
44
22
  export declare type ContentDirection = 'inline' | 'rows' | 'reverseInline' | 'reverseRows' | isEmpty;
45
- /**
46
- * @hidden
47
- */
48
23
  export declare type Ref = HTMLElement;
49
- /**
50
- * @hidden
51
- */
52
- export declare type AlignY = ContentAlignY | ContentAlignY[] | Record<string, ContentAlignY>;
53
- /**
54
- * @hidden
55
- */
56
- export declare type AlignX = ContentAlignX | ContentAlignX[] | Record<string, ContentAlignX>;
57
- /**
58
- * @hidden
59
- */
60
- export declare type Direction = ContentDirection | ContentDirection[] | Record<string, ContentDirection>;
61
- /**
62
- * @hidden
63
- */
64
- export declare type ResponsiveBooltype = boolean | Record<string, boolean> | Array<boolean>;
65
- /**
66
- * @hidden
67
- */
68
- export declare type Responsive = number | Array<string | number> | Record<string, number | string>;
69
- /**
70
- * @hidden
71
- */
72
- export declare type ExtendCss = Css | Array<Css> | Record<string, Css>;
73
- /**
74
- * @hidden
75
- */
24
+ export declare type AlignY = ContentAlignY | ContentAlignY[] | Partial<Record<BreakpointKeys, ContentAlignY>>;
25
+ export declare type AlignX = ContentAlignX | ContentAlignX[] | Partial<Record<BreakpointKeys, ContentAlignX>>;
26
+ export declare type Direction = ContentDirection | ContentDirection[] | Partial<Record<BreakpointKeys, ContentDirection>>;
27
+ export declare type ResponsiveBooltype = boolean | Array<boolean> | Partial<Record<BreakpointKeys, boolean>>;
28
+ export declare type Responsive = number | Array<string | number> | Partial<Record<BreakpointKeys, number | string>>;
29
+ export declare type ExtendCss = Css | Array<Css> | Partial<Record<BreakpointKeys, Css>>;
76
30
  export declare type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
77
31
  export declare type VLForwardedComponent<P = Record<string, unknown>> = ForwardRefRenderFunction<any, P> & VLStatic;
78
- export declare type VLComponent<P = Record<string, unknown>> = VFC<P> & VLStatic;
32
+ export declare type VLComponent<P = Record<string, unknown>> = FC<P> & VLStatic;
79
33
  interface ForwardRefRenderFunction<T, P = Record<string, unknown>> {
80
34
  (props: PropsWithChildren<P & {
81
35
  ref?: ForwardedRef<T>;