@lizzelabs/react-harmony 1.0.0 → 1.0.1
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/animations-B09mMqCx.js +24 -0
- package/dist/animations.es.js +5 -0
- package/dist/components/animations/animations.d.ts +5 -0
- package/dist/components/animations/animations.hook.d.ts +2 -0
- package/dist/components/animations/animations.types.d.ts +16 -0
- package/dist/components/animations/index.d.ts +3 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/media/index.d.ts +3 -0
- package/dist/components/media/media.d.ts +5 -0
- package/dist/components/media/media.hook.d.ts +2 -0
- package/dist/components/media/media.types.d.ts +15 -0
- package/dist/components/piece/index.d.ts +3 -0
- package/dist/components/piece/piece.d.ts +6 -0
- package/dist/components/piece/piece.hook.d.ts +5 -0
- package/dist/components/piece/piece.static.d.ts +2 -0
- package/dist/components/piece/piece.types.d.ts +34 -0
- package/dist/components/piece/piece.utils.d.ts +7 -0
- package/dist/components/piece-provider/index.d.ts +3 -0
- package/dist/components/piece-provider/piece-provider.context.d.ts +2 -0
- package/dist/components/piece-provider/piece-provider.d.ts +4 -0
- package/dist/components/piece-provider/piece-provider.hook.d.ts +2 -0
- package/dist/components/piece-provider/piece-provider.types.d.ts +24 -0
- package/dist/components/screen/index.d.ts +3 -0
- package/dist/components/screen/screen.d.ts +4 -0
- package/dist/components/screen/screen.hook.d.ts +4 -0
- package/dist/components/screen/screen.types.d.ts +15 -0
- package/dist/components/scrollable/index.d.ts +3 -0
- package/dist/components/scrollable/scrollable.d.ts +6 -0
- package/dist/components/scrollable/scrollable.hook.d.ts +5 -0
- package/dist/components/scrollable/scrollable.styles.d.ts +14 -0
- package/dist/components/scrollable/scrollable.types.d.ts +12 -0
- package/dist/components/text/index.d.ts +3 -0
- package/dist/components/text/text.d.ts +4 -0
- package/dist/components/text/text.hook.d.ts +5 -0
- package/dist/components/text/text.types.d.ts +3 -0
- package/dist/components.es.js +24 -0
- package/dist/fillObjectWithDefaults-AoLKqRgC.js +13 -0
- package/dist/hocs/index.d.ts +1 -0
- package/dist/hocs/withPieceAsContainer.d.ts +7 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +36 -0
- package/dist/media-BrSPl6_U.js +48 -0
- package/dist/media.es.js +5 -0
- package/dist/piece-Mpz6AD6r.js +221 -0
- package/dist/piece-provider-DTglah_F.js +1388 -0
- package/dist/piece-provider.es.js +5 -0
- package/dist/piece.es.js +5 -0
- package/dist/screen-gL0zeQqb.js +53 -0
- package/dist/screen.es.js +5 -0
- package/dist/scrollable-hsA1xMFz.js +94 -0
- package/dist/scrollable.es.js +5 -0
- package/dist/styles-DofTX6nZ.js +653 -0
- package/dist/systems/harmony/alignment-container.d.ts +2 -0
- package/dist/systems/harmony/contents.d.ts +2 -0
- package/dist/systems/harmony/index.d.ts +1 -0
- package/dist/systems/harmony/input.d.ts +2 -0
- package/dist/systems/harmony/media.d.ts +2 -0
- package/dist/systems/harmony/piece.d.ts +2 -0
- package/dist/systems/harmony/reset.d.ts +2 -0
- package/dist/systems/harmony/screen.d.ts +2 -0
- package/dist/systems/harmony/scrollable.d.ts +2 -0
- package/dist/systems/index.d.ts +2 -0
- package/dist/systems/mergeSystems.d.ts +2 -0
- package/dist/systems.es.js +97 -0
- package/dist/text-BEFRS4fh.js +70 -0
- package/dist/text.es.js +6 -0
- package/dist/types/css.d.ts +6 -0
- package/dist/types/html.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/utils.d.ts +20 -0
- package/dist/types.es.js +1 -0
- package/dist/utils/appendClasses.d.ts +1 -0
- package/dist/utils/excludeProperties.d.ts +1 -0
- package/dist/utils/fillObjectWithDefaults.d.ts +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/splitProps.d.ts +4 -0
- package/dist/utils/styles.d.ts +28 -0
- package/dist/utils.es.js +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useMemo as o, useInsertionEffect as m, memo as s } from "react";
|
|
2
|
+
import { S as u } from "./styles-DofTX6nZ.js";
|
|
3
|
+
import { u as l, i as r } from "./piece-provider-DTglah_F.js";
|
|
4
|
+
const c = (e) => {
|
|
5
|
+
const { theme: n } = l(), a = o(() => new u(), []);
|
|
6
|
+
return m(() => (a.apply(
|
|
7
|
+
Array.isArray(e.value) ? e.value.reduce(
|
|
8
|
+
(i, t) => ({
|
|
9
|
+
...i,
|
|
10
|
+
...typeof t == "function" ? t(n).animation : t.animation
|
|
11
|
+
}),
|
|
12
|
+
{}
|
|
13
|
+
) : typeof e.value == "function" ? e.value(n).animation : e.value.animation
|
|
14
|
+
), () => {
|
|
15
|
+
a.delete();
|
|
16
|
+
}), [e.value, n]), {};
|
|
17
|
+
}, f = (e) => (c(e), e.children), d = s(
|
|
18
|
+
f,
|
|
19
|
+
r
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
d as A,
|
|
23
|
+
c as u
|
|
24
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AnimationsProperties } from './animations.types';
|
|
3
|
+
declare const InternalAnimations: <Theme extends object | undefined>(props: AnimationsProperties<Theme>) => ReactNode;
|
|
4
|
+
export declare const Animations: typeof InternalAnimations;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropWithTheme } from '../../types';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
export type KeyFramesFromTo = `${number}%` | `from` | 'to';
|
|
4
|
+
export type CssAnimation<Name extends string> = {
|
|
5
|
+
[keyframes in `@keyframes ${Name}`]: {
|
|
6
|
+
[key in KeyFramesFromTo]?: CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export type HarmonyAnimation<Name extends string> = {
|
|
10
|
+
name: Name;
|
|
11
|
+
animation: CssAnimation<Name>;
|
|
12
|
+
};
|
|
13
|
+
export type AnimationsProperties<Theme extends object | undefined> = {
|
|
14
|
+
value: PropWithTheme<HarmonyAnimation<string>, Theme> | PropWithTheme<HarmonyAnimation<string>, Theme>[];
|
|
15
|
+
children?: ReactNode | ReactNode[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropWithTheme, WithStyle } from '../../types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { HarmonyAnimation } from '../animations';
|
|
4
|
+
export type MediaProperties<Theme extends object | undefined> = {
|
|
5
|
+
query: string | ((theme: Theme | undefined) => string);
|
|
6
|
+
children: ReactNode | ReactNode[];
|
|
7
|
+
removeFromHtml?: boolean;
|
|
8
|
+
keyframes?: HarmonyAnimation<string>;
|
|
9
|
+
animateAs?: string;
|
|
10
|
+
withStyle?: PropWithTheme<WithStyle, Theme>[] | PropWithTheme<WithStyle[] | WithStyle, Theme>;
|
|
11
|
+
};
|
|
12
|
+
export type UseMedia = {
|
|
13
|
+
style: WithStyle;
|
|
14
|
+
shouldRemoveComponent: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { HtmlTag } from '../../types';
|
|
3
|
+
import { PieceProperties } from './piece.types';
|
|
4
|
+
declare function InternalPiece<const Theme extends object | undefined = object, const Element extends HtmlTag = 'div', const Component extends HTMLElement = HTMLElementTagNameMap[Element]>(props: PieceProperties<Theme, Element, Component>): ReactNode;
|
|
5
|
+
export declare const Piece: typeof InternalPiece;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HtmlTag } from '../../types';
|
|
2
|
+
import { PieceProperties } from './piece.types';
|
|
3
|
+
export declare const usePiece: <const Theme extends object | undefined = object, const Element extends HtmlTag = "div", const Component extends HTMLElement = HTMLElementTagNameMap[Element]>(props: PieceProperties<Theme, Element, Component>) => {
|
|
4
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ElementEvents, HtmlTag, NoEventsAndAria, PropWithTheme, WithStyle } from '../../types';
|
|
2
|
+
import { AriaAttributes, ComponentPropsWithoutRef, CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
|
+
export type PieceAlignmentAndStyleProperties<Theme extends object | undefined> = {
|
|
4
|
+
margin?: PropWithTheme<string, Theme>;
|
|
5
|
+
padding?: PropWithTheme<string, Theme>;
|
|
6
|
+
textColor?: PropWithTheme<string, Theme>;
|
|
7
|
+
background?: PropWithTheme<string, Theme>;
|
|
8
|
+
backgroundColor?: PropWithTheme<string, Theme>;
|
|
9
|
+
fontSize?: PropWithTheme<string, Theme>;
|
|
10
|
+
gap?: CSSProperties['gap'];
|
|
11
|
+
direction?: CSSProperties['flexDirection'];
|
|
12
|
+
alignContent?: CSSProperties['alignContent'];
|
|
13
|
+
justifyContent?: CSSProperties['justifyContent'];
|
|
14
|
+
alignItems?: CSSProperties['alignItems'];
|
|
15
|
+
justifyItems?: CSSProperties['justifyItems'];
|
|
16
|
+
height?: CSSProperties['height'];
|
|
17
|
+
width?: CSSProperties['width'];
|
|
18
|
+
display?: CSSProperties['display'];
|
|
19
|
+
contentColumns?: CSSProperties['gridTemplateColumns'] | number;
|
|
20
|
+
contentRows?: CSSProperties['gridTemplateRows'] | number;
|
|
21
|
+
atColumn?: CSSProperties['gridColumn'] | number;
|
|
22
|
+
atRow?: CSSProperties['gridRow'] | number;
|
|
23
|
+
flex?: CSSProperties['flex'];
|
|
24
|
+
withStyle?: PropWithTheme<WithStyle, Theme>[] | PropWithTheme<WithStyle[] | WithStyle, Theme>;
|
|
25
|
+
};
|
|
26
|
+
export type PieceProperties<Theme extends object | undefined = any, Element extends HtmlTag = 'div', Component extends HTMLElement = HTMLElementTagNameMap[Element]> = {
|
|
27
|
+
ref?: RefObject<Component | null>;
|
|
28
|
+
as?: Element;
|
|
29
|
+
kind?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
children?: ReactNode | ReactNode[];
|
|
32
|
+
aria?: AriaAttributes;
|
|
33
|
+
className?: string | undefined;
|
|
34
|
+
} & ElementEvents<Element> & NoEventsAndAria<ComponentPropsWithoutRef<Element>> & PieceAlignmentAndStyleProperties<Theme>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PieceProperties } from './piece.types';
|
|
2
|
+
import { HtmlTag, PropWithTheme, WithStyle } from '../../types';
|
|
3
|
+
export declare const PieceUtils: {
|
|
4
|
+
pickComponentProps: <Theme extends object | undefined, Element extends HtmlTag, Component extends HTMLElement>(props: PieceProperties<Theme, Element, Component>) => PieceProperties<Theme, Element, Component>;
|
|
5
|
+
pickComponentStyle: <Theme extends object | undefined>(theme: Theme | undefined, style?: PropWithTheme<WithStyle, Theme>[] | PropWithTheme<WithStyle[] | WithStyle, Theme>) => WithStyle | undefined;
|
|
6
|
+
loadPositionProps: <Theme extends object | undefined, Element extends HtmlTag, Component extends HTMLElement>(props: PieceProperties<Theme, Element, Component>, style: WithStyle | undefined, theme: Theme) => WithStyle | undefined;
|
|
7
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PieceProviderProperties } from './piece-provider.types';
|
|
2
|
+
declare const InternalPieceProvider: <Theme extends object>(props: PieceProviderProperties<Theme>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const PieceProvider: typeof InternalPieceProvider;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HtmlTag, PropWithTheme, WithStyle } from '../../types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { PieceProperties } from '../piece/piece.types';
|
|
4
|
+
export type ApplyFn = <T extends object | undefined, Element extends HtmlTag, Component extends HTMLElement, Piece extends PieceProperties<T, Element, Component>>(props: Piece, theme: T) => boolean;
|
|
5
|
+
export type ProviderPattern<T extends object | undefined, Element extends HtmlTag, Component extends HTMLElement = HTMLElementTagNameMap[Element]> = {
|
|
6
|
+
applyOn: HtmlTag | 'all' | ApplyFn;
|
|
7
|
+
defaults?: PropWithTheme<PieceProperties<T, Element, Component>, T>;
|
|
8
|
+
style?: PropWithTheme<WithStyle, T>;
|
|
9
|
+
};
|
|
10
|
+
export interface PieceProviderProperties<T extends object | undefined> {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
patterns: ProviderPattern<T, any, any>[];
|
|
13
|
+
theme?: T;
|
|
14
|
+
}
|
|
15
|
+
export type PieceContext<T extends object | undefined, Element extends HtmlTag, Component extends HTMLElement> = {
|
|
16
|
+
className: string;
|
|
17
|
+
style: WithStyle;
|
|
18
|
+
defaults: PieceProperties<T, Element, Component>;
|
|
19
|
+
};
|
|
20
|
+
export interface PieceProviderData<Theme extends object | undefined> {
|
|
21
|
+
getContext: <Element extends HtmlTag, Component extends HTMLElement, Piece extends PieceProperties<Theme, Element, Component>>(properties: Piece) => PieceContext<Theme, Element, Component>;
|
|
22
|
+
theme: Theme | undefined;
|
|
23
|
+
updateTheme: (theme: Theme) => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX, ReactNode } from 'react';
|
|
2
|
+
import { PropWithTheme, WithStyle } from '../../types';
|
|
3
|
+
export interface ProviderArg<Props> {
|
|
4
|
+
Provider: (props: Props) => JSX.Element;
|
|
5
|
+
props: Props;
|
|
6
|
+
}
|
|
7
|
+
export type ScreenProperties<T extends object | undefined> = {
|
|
8
|
+
id?: string;
|
|
9
|
+
containerId: string;
|
|
10
|
+
fontFamily?: string;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
overflow?: boolean;
|
|
13
|
+
globalStyle?: PropWithTheme<WithStyle, T> | PropWithTheme<WithStyle, T>[];
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { HtmlTag } from '../../types';
|
|
3
|
+
import { ScrollableProperties } from './scrollable.types';
|
|
4
|
+
declare const InternalScrollable: <T extends object | undefined, Element extends HtmlTag, Component extends HTMLElement = HTMLElementTagNameMap[Element]>(props: ScrollableProperties<T, Element, Component>) => ReactNode;
|
|
5
|
+
export declare const Scrollable: typeof InternalScrollable;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HtmlTag } from '../../types';
|
|
2
|
+
import { ScrollableProperties } from './scrollable.types';
|
|
3
|
+
export declare const useScrollable: <Theme extends object | undefined, Element extends HtmlTag, Component extends HTMLElement = HTMLElementTagNameMap[Element]>(props: ScrollableProperties<Theme, Element, Component>) => {
|
|
4
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const ScrollbarRoot: (size: any, behavior: any, color: string, highlight: string, horizontal: boolean, vertical: boolean, scrollSnap: any) => {
|
|
2
|
+
minHeight: number;
|
|
3
|
+
boxSizing: "content-box";
|
|
4
|
+
transition: "all 0.3s ease-in-out";
|
|
5
|
+
display: "flex";
|
|
6
|
+
flex: string;
|
|
7
|
+
scrollbarWidth: any;
|
|
8
|
+
scrollbarColor: `${string} ${string}`;
|
|
9
|
+
scrollSnapType?: any;
|
|
10
|
+
scrollBehavior: any;
|
|
11
|
+
overflowX: "hidden" | "auto";
|
|
12
|
+
overflowY: "hidden" | "auto";
|
|
13
|
+
flexDirection: "row" | "column";
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HtmlTag, PropWithTheme } from '../../types';
|
|
2
|
+
import { PieceProperties } from '../piece';
|
|
3
|
+
import { CSSProperties } from 'react';
|
|
4
|
+
export type ScrollableProperties<Theme extends object | undefined, Element extends HtmlTag, Component extends HTMLElement = HTMLElementTagNameMap[Element]> = PieceProperties<Theme, Element, Component> & {
|
|
5
|
+
horizontal?: boolean;
|
|
6
|
+
vertical?: boolean;
|
|
7
|
+
size?: 'auto' | 'thin' | 'none';
|
|
8
|
+
behavior?: ScrollBehavior;
|
|
9
|
+
scrollSnap?: CSSProperties['scrollSnapType'];
|
|
10
|
+
primary?: PropWithTheme<string, Theme>;
|
|
11
|
+
highlight?: PropWithTheme<string, Theme>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TextTag } from '../../types';
|
|
2
|
+
import { TextProperties } from './text.types';
|
|
3
|
+
export declare const InternalText: <T extends object | undefined, Element extends TextTag, Component extends HTMLElement = HTMLElementTagNameMap[Element]>(props: TextProperties<T, Element, Component>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Text: typeof InternalText;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TextTag } from '../../types';
|
|
2
|
+
import { TextProperties } from './text.types';
|
|
3
|
+
export declare const useText: <T extends object | undefined, Element extends TextTag, Component extends HTMLElement = HTMLElementTagNameMap[Element]>(props: TextProperties<T, Element, Component>) => {
|
|
4
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TextTag } from '../../types';
|
|
2
|
+
import { PieceProperties } from '../piece';
|
|
3
|
+
export type TextProperties<Theme extends object | undefined, Element extends TextTag, Component extends HTMLElement = HTMLElementTagNameMap[Element]> = {} & PieceProperties<Theme, Element, Component>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { A as r, u as a } from "./animations-B09mMqCx.js";
|
|
2
|
+
import { P as u, u as t } from "./piece-Mpz6AD6r.js";
|
|
3
|
+
import { P as x, u as m } from "./piece-provider-DTglah_F.js";
|
|
4
|
+
import { S as n, u as P } from "./scrollable-hsA1xMFz.js";
|
|
5
|
+
import { S as l, u as p } from "./screen-gL0zeQqb.js";
|
|
6
|
+
import { I as d, T, u as A } from "./text-BEFRS4fh.js";
|
|
7
|
+
import { M as b, u as v } from "./media-BrSPl6_U.js";
|
|
8
|
+
export {
|
|
9
|
+
r as Animations,
|
|
10
|
+
d as InternalText,
|
|
11
|
+
b as Media,
|
|
12
|
+
u as Piece,
|
|
13
|
+
x as PieceProvider,
|
|
14
|
+
l as Screen,
|
|
15
|
+
n as Scrollable,
|
|
16
|
+
T as Text,
|
|
17
|
+
a as useAnimations,
|
|
18
|
+
v as useMedia,
|
|
19
|
+
t as usePiece,
|
|
20
|
+
m as usePieceProvider,
|
|
21
|
+
p as useScreen,
|
|
22
|
+
P as useScrollable,
|
|
23
|
+
A as useText
|
|
24
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const n = (...a) => a.join(" ").trim(), c = (a, ...f) => {
|
|
2
|
+
const t = { ...a };
|
|
3
|
+
for (const r of f)
|
|
4
|
+
for (const e in r) {
|
|
5
|
+
const o = r[e], s = t[e];
|
|
6
|
+
typeof s == "object" && Array.isArray(s) === !1 && typeof o == "object" && Array.isArray(o) === !1 ? t[e] = { ...s, ...o } : s === void 0 && (t[e] = o);
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
n as a,
|
|
12
|
+
c as f
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './withPieceAsContainer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PieceAlignmentAndStyleProperties } from '../components';
|
|
2
|
+
import { ComponentType, RefObject } from 'react';
|
|
3
|
+
export declare function withPieceAsContainer<Props, Theme extends object | undefined, InjectProps extends boolean>(Component: ComponentType<InjectProps extends true ? Props & PieceAlignmentAndStyleProperties<Theme> : Props>, defaultContainerProps?: PieceAlignmentAndStyleProperties<Theme> & {
|
|
4
|
+
injectContainerProps?: InjectProps;
|
|
5
|
+
}): ComponentType<Props & PieceAlignmentAndStyleProperties<Theme> & {
|
|
6
|
+
containerRef?: RefObject<HTMLElement>;
|
|
7
|
+
}>;
|
package/dist/index.d.ts
ADDED
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { A as r, u as a } from "./animations-B09mMqCx.js";
|
|
2
|
+
import { P as t, u as i } from "./piece-Mpz6AD6r.js";
|
|
3
|
+
import { P as u, u as m } from "./piece-provider-DTglah_F.js";
|
|
4
|
+
import { S as f, u as l } from "./scrollable-hsA1xMFz.js";
|
|
5
|
+
import { S as n, u as P } from "./screen-gL0zeQqb.js";
|
|
6
|
+
import { I as d, T as A, u as M, w as T } from "./text-BEFRS4fh.js";
|
|
7
|
+
import { M as h, u as v } from "./media-BrSPl6_U.js";
|
|
8
|
+
import { HARMONY_SYSTEM as y, mergeSystems as C } from "./systems.es.js";
|
|
9
|
+
import { S as O, e as Y } from "./styles-DofTX6nZ.js";
|
|
10
|
+
import { a as j, f as D } from "./fillObjectWithDefaults-AoLKqRgC.js";
|
|
11
|
+
import { splitProps as H } from "./utils.es.js";
|
|
12
|
+
export {
|
|
13
|
+
r as Animations,
|
|
14
|
+
y as HARMONY_SYSTEM,
|
|
15
|
+
d as InternalText,
|
|
16
|
+
h as Media,
|
|
17
|
+
t as Piece,
|
|
18
|
+
u as PieceProvider,
|
|
19
|
+
n as Screen,
|
|
20
|
+
f as Scrollable,
|
|
21
|
+
O as Styles,
|
|
22
|
+
A as Text,
|
|
23
|
+
j as appendClasses,
|
|
24
|
+
Y as excludeProperties,
|
|
25
|
+
D as fillObjectWithDefaults,
|
|
26
|
+
C as mergeSystems,
|
|
27
|
+
H as splitProps,
|
|
28
|
+
a as useAnimations,
|
|
29
|
+
v as useMedia,
|
|
30
|
+
i as usePiece,
|
|
31
|
+
m as usePieceProvider,
|
|
32
|
+
P as useScreen,
|
|
33
|
+
l as useScrollable,
|
|
34
|
+
M as useText,
|
|
35
|
+
T as withPieceAsContainer
|
|
36
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { u as f, i as l, j as p } from "./piece-provider-DTglah_F.js";
|
|
2
|
+
import { useMemo as r, memo as u } from "react";
|
|
3
|
+
import { P as M } from "./piece-Mpz6AD6r.js";
|
|
4
|
+
const v = ({
|
|
5
|
+
keyframes: e,
|
|
6
|
+
withStyle: o,
|
|
7
|
+
animateAs: i,
|
|
8
|
+
query: n,
|
|
9
|
+
removeFromHtml: a
|
|
10
|
+
}) => {
|
|
11
|
+
const { theme: s } = f(), m = r(
|
|
12
|
+
() => ({
|
|
13
|
+
...e?.animation,
|
|
14
|
+
...Array.isArray(o) ? o.reduce(
|
|
15
|
+
(d, t) => ({
|
|
16
|
+
...d,
|
|
17
|
+
...typeof t == "function" ? t(s) : t
|
|
18
|
+
}),
|
|
19
|
+
{}
|
|
20
|
+
) : typeof o == "function" ? o(s) : o,
|
|
21
|
+
animation: i,
|
|
22
|
+
[`@media not ${typeof n == "function" ? n(s) : n}`]: {
|
|
23
|
+
display: "none",
|
|
24
|
+
pointerEvents: "none"
|
|
25
|
+
}
|
|
26
|
+
}),
|
|
27
|
+
[o, s, n, e, i]
|
|
28
|
+
), c = window.matchMedia(`(${typeof n == "function" ? n(s) : n})`).matches === !1 && a || !1;
|
|
29
|
+
return {
|
|
30
|
+
style: m,
|
|
31
|
+
shouldRemoveComponent: c
|
|
32
|
+
};
|
|
33
|
+
}, x = (e) => {
|
|
34
|
+
const { style: o, shouldRemoveComponent: i } = v(e);
|
|
35
|
+
return i === !1 ? /* @__PURE__ */ p.jsx(
|
|
36
|
+
M,
|
|
37
|
+
{
|
|
38
|
+
kind: "media",
|
|
39
|
+
as: "section",
|
|
40
|
+
withStyle: o,
|
|
41
|
+
children: e.children
|
|
42
|
+
}
|
|
43
|
+
) : null;
|
|
44
|
+
}, E = u(x, l);
|
|
45
|
+
export {
|
|
46
|
+
E as M,
|
|
47
|
+
v as u
|
|
48
|
+
};
|