@lizzelabs/react-harmony 1.0.0 → 1.1.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.
Files changed (79) hide show
  1. package/dist/animations-B09mMqCx.js +24 -0
  2. package/dist/animations.es.js +5 -0
  3. package/dist/components/animations/animations.d.ts +5 -0
  4. package/dist/components/animations/animations.hook.d.ts +2 -0
  5. package/dist/components/animations/animations.types.d.ts +16 -0
  6. package/dist/components/animations/index.d.ts +3 -0
  7. package/dist/components/index.d.ts +7 -0
  8. package/dist/components/media/index.d.ts +3 -0
  9. package/dist/components/media/media.d.ts +5 -0
  10. package/dist/components/media/media.hook.d.ts +2 -0
  11. package/dist/components/media/media.types.d.ts +15 -0
  12. package/dist/components/piece/index.d.ts +3 -0
  13. package/dist/components/piece/piece.d.ts +6 -0
  14. package/dist/components/piece/piece.hook.d.ts +5 -0
  15. package/dist/components/piece/piece.static.d.ts +2 -0
  16. package/dist/components/piece/piece.types.d.ts +37 -0
  17. package/dist/components/piece/piece.utils.d.ts +7 -0
  18. package/dist/components/piece-provider/index.d.ts +3 -0
  19. package/dist/components/piece-provider/piece-provider.context.d.ts +2 -0
  20. package/dist/components/piece-provider/piece-provider.d.ts +4 -0
  21. package/dist/components/piece-provider/piece-provider.hook.d.ts +2 -0
  22. package/dist/components/piece-provider/piece-provider.types.d.ts +24 -0
  23. package/dist/components/screen/index.d.ts +3 -0
  24. package/dist/components/screen/screen.d.ts +4 -0
  25. package/dist/components/screen/screen.hook.d.ts +4 -0
  26. package/dist/components/screen/screen.types.d.ts +15 -0
  27. package/dist/components/scrollable/index.d.ts +3 -0
  28. package/dist/components/scrollable/scrollable.d.ts +6 -0
  29. package/dist/components/scrollable/scrollable.hook.d.ts +5 -0
  30. package/dist/components/scrollable/scrollable.styles.d.ts +14 -0
  31. package/dist/components/scrollable/scrollable.types.d.ts +12 -0
  32. package/dist/components/text/index.d.ts +3 -0
  33. package/dist/components/text/text.d.ts +4 -0
  34. package/dist/components/text/text.hook.d.ts +5 -0
  35. package/dist/components/text/text.types.d.ts +3 -0
  36. package/dist/components.es.js +24 -0
  37. package/dist/fillObjectWithDefaults-AoLKqRgC.js +13 -0
  38. package/dist/hocs/index.d.ts +1 -0
  39. package/dist/hocs/withPieceAsContainer.d.ts +7 -0
  40. package/dist/index.d.ts +5 -0
  41. package/dist/index.es.js +36 -0
  42. package/dist/media-C5LK6pq4.js +48 -0
  43. package/dist/media.es.js +5 -0
  44. package/dist/piece-CqJl-F6G.js +239 -0
  45. package/dist/piece-provider-DTglah_F.js +1388 -0
  46. package/dist/piece-provider.es.js +5 -0
  47. package/dist/piece.es.js +5 -0
  48. package/dist/screen-C0RCelCe.js +53 -0
  49. package/dist/screen.es.js +5 -0
  50. package/dist/scrollable-Dg_gmKLH.js +94 -0
  51. package/dist/scrollable.es.js +5 -0
  52. package/dist/styles-DofTX6nZ.js +653 -0
  53. package/dist/systems/harmony/alignment-container.d.ts +2 -0
  54. package/dist/systems/harmony/contents.d.ts +2 -0
  55. package/dist/systems/harmony/index.d.ts +1 -0
  56. package/dist/systems/harmony/input.d.ts +2 -0
  57. package/dist/systems/harmony/media.d.ts +2 -0
  58. package/dist/systems/harmony/piece.d.ts +2 -0
  59. package/dist/systems/harmony/reset.d.ts +2 -0
  60. package/dist/systems/harmony/screen.d.ts +2 -0
  61. package/dist/systems/harmony/scrollable.d.ts +2 -0
  62. package/dist/systems/index.d.ts +2 -0
  63. package/dist/systems/mergeSystems.d.ts +2 -0
  64. package/dist/systems.es.js +97 -0
  65. package/dist/text-E5g5oMHP.js +72 -0
  66. package/dist/text.es.js +6 -0
  67. package/dist/types/css.d.ts +6 -0
  68. package/dist/types/html.d.ts +5 -0
  69. package/dist/types/index.d.ts +3 -0
  70. package/dist/types/utils.d.ts +20 -0
  71. package/dist/types.es.js +1 -0
  72. package/dist/utils/appendClasses.d.ts +1 -0
  73. package/dist/utils/excludeProperties.d.ts +1 -0
  74. package/dist/utils/fillObjectWithDefaults.d.ts +1 -0
  75. package/dist/utils/index.d.ts +5 -0
  76. package/dist/utils/splitProps.d.ts +4 -0
  77. package/dist/utils/styles.d.ts +28 -0
  78. package/dist/utils.es.js +25 -0
  79. 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 { A as i, u as n } from "./animations-B09mMqCx.js";
2
+ export {
3
+ i as Animations,
4
+ n as useAnimations
5
+ };
@@ -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,2 @@
1
+ import { AnimationsProperties } from './animations.types';
2
+ export declare const useAnimations: <Theme extends object | undefined>(props: AnimationsProperties<Theme>) => {};
@@ -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,3 @@
1
+ export * from './animations';
2
+ export * from './animations.hook';
3
+ export * from './animations.types';
@@ -0,0 +1,7 @@
1
+ export * from './animations';
2
+ export * from './piece';
3
+ export * from './piece-provider';
4
+ export * from './scrollable';
5
+ export * from './screen';
6
+ export * from './text';
7
+ export * from './media';
@@ -0,0 +1,3 @@
1
+ export * from './media';
2
+ export * from './media.hook';
3
+ export * from './media.types';
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ import { MediaProperties } from './media.types';
3
+ declare const InternalMedia: <Theme extends object | undefined>(props: MediaProperties<Theme>) => ReactNode;
4
+ export declare const Media: typeof InternalMedia;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ import { MediaProperties, UseMedia } from './media.types';
2
+ export declare const useMedia: <Theme extends object | undefined>({ keyframes, withStyle, animateAs, query, removeFromHtml, }: MediaProperties<Theme>) => UseMedia;
@@ -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,3 @@
1
+ export * from './piece';
2
+ export * from './piece.hook';
3
+ export * from './piece.types';
@@ -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,2 @@
1
+ import { PieceProperties } from './piece.types';
2
+ export declare const PieceInvalidProps: (keyof PieceProperties<any, any, any>)[];
@@ -0,0 +1,37 @@
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
+ containerType?: CSSProperties['containerType'];
5
+ containerName?: CSSProperties['containerName'];
6
+ cursor?: CSSProperties['cursor'];
7
+ margin?: PropWithTheme<string, Theme>;
8
+ padding?: PropWithTheme<string, Theme>;
9
+ textColor?: PropWithTheme<string, Theme>;
10
+ background?: PropWithTheme<string, Theme>;
11
+ backgroundColor?: PropWithTheme<string, Theme>;
12
+ fontSize?: PropWithTheme<string, Theme>;
13
+ gap?: CSSProperties['gap'];
14
+ direction?: CSSProperties['flexDirection'];
15
+ alignContent?: CSSProperties['alignContent'];
16
+ justifyContent?: CSSProperties['justifyContent'];
17
+ alignItems?: CSSProperties['alignItems'];
18
+ justifyItems?: CSSProperties['justifyItems'];
19
+ height?: CSSProperties['height'];
20
+ width?: CSSProperties['width'];
21
+ display?: CSSProperties['display'];
22
+ contentColumns?: CSSProperties['gridTemplateColumns'] | number;
23
+ contentRows?: CSSProperties['gridTemplateRows'] | number;
24
+ atColumn?: CSSProperties['gridColumn'] | number;
25
+ atRow?: CSSProperties['gridRow'] | number;
26
+ flex?: CSSProperties['flex'];
27
+ withStyle?: PropWithTheme<WithStyle, Theme>[] | PropWithTheme<WithStyle[] | WithStyle, Theme>;
28
+ };
29
+ export type PieceProperties<Theme extends object | undefined = any, Element extends HtmlTag = 'div', Component extends HTMLElement = HTMLElementTagNameMap[Element]> = {
30
+ ref?: RefObject<Component | null>;
31
+ as?: Element;
32
+ kind?: string;
33
+ id?: string;
34
+ children?: ReactNode | ReactNode[];
35
+ aria?: AriaAttributes;
36
+ className?: string | undefined;
37
+ } & 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,3 @@
1
+ export * from './piece-provider.hook';
2
+ export * from './piece-provider.types';
3
+ export * from './piece-provider';
@@ -0,0 +1,2 @@
1
+ import { PieceProviderData } from './piece-provider.types';
2
+ export declare const PieceProviderContext: import('react').Context<PieceProviderData<any>>;
@@ -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,2 @@
1
+ import { PieceProviderData } from './piece-provider.types';
2
+ export declare const usePieceProvider: <T extends object | undefined>() => PieceProviderData<T>;
@@ -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,3 @@
1
+ export * from './screen';
2
+ export * from './screen.hook';
3
+ export * from './screen.types';
@@ -0,0 +1,4 @@
1
+ import { ScreenProperties } from './screen.types';
2
+ declare const InternalScreen: <Theme extends object | undefined>(props: ScreenProperties<Theme>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Screen: typeof InternalScreen;
4
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ScreenProperties } from './screen.types';
2
+ export declare const useScreen: <Theme extends object | undefined>(props: ScreenProperties<Theme>) => {
3
+ id: string;
4
+ };
@@ -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,3 @@
1
+ export * from './scrollable';
2
+ export * from './scrollable.hook';
3
+ export * from './scrollable.types';
@@ -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,3 @@
1
+ export * from './text';
2
+ export * from './text.hook';
3
+ export * from './text.types';
@@ -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-CqJl-F6G.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-Dg_gmKLH.js";
5
+ import { S as l, u as p } from "./screen-C0RCelCe.js";
6
+ import { I as d, T, u as A } from "./text-E5g5oMHP.js";
7
+ import { M as b, u as v } from "./media-C5LK6pq4.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
+ }>;
@@ -0,0 +1,5 @@
1
+ export * from './components';
2
+ export * from './systems';
3
+ export * from './types';
4
+ export * from './utils';
5
+ export * from './hocs';
@@ -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-CqJl-F6G.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-Dg_gmKLH.js";
5
+ import { S as n, u as P } from "./screen-C0RCelCe.js";
6
+ import { I as d, T as A, u as M, w as T } from "./text-E5g5oMHP.js";
7
+ import { M as h, u as v } from "./media-C5LK6pq4.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-CqJl-F6G.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
+ };
@@ -0,0 +1,5 @@
1
+ import { M as s, u as M } from "./media-C5LK6pq4.js";
2
+ export {
3
+ s as Media,
4
+ M as useMedia
5
+ };