@seed-design/stackflow 0.0.1-alpha-20250210081704

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 (63) hide show
  1. package/lib/components/AppBar/AppBar.d.ts +29 -0
  2. package/lib/components/AppBar/AppBar.namespace.d.ts +2 -0
  3. package/lib/components/AppBar/index.d.ts +3 -0
  4. package/lib/components/AppScreen/AppScreen.d.ts +18 -0
  5. package/lib/components/AppScreen/AppScreen.namespace.d.ts +2 -0
  6. package/lib/components/AppScreen/index.d.ts +3 -0
  7. package/lib/components/index.d.ts +2 -0
  8. package/lib/index.d.ts +3 -0
  9. package/lib/index.js +786 -0
  10. package/lib/index.js.map +7 -0
  11. package/lib/index.mjs +759 -0
  12. package/lib/index.mjs.map +7 -0
  13. package/lib/plugin.d.ts +5 -0
  14. package/lib/primitive/AppBar/AppBar.d.ts +14 -0
  15. package/lib/primitive/AppBar/AppBar.namespace.d.ts +1 -0
  16. package/lib/primitive/AppBar/index.d.ts +2 -0
  17. package/lib/primitive/AppBar/useAppBar.d.ts +279 -0
  18. package/lib/primitive/AppBar/useAppBarContext.d.ts +7 -0
  19. package/lib/primitive/AppScreen/AppScreen.d.ts +14 -0
  20. package/lib/primitive/AppScreen/AppScreen.namespace.d.ts +1 -0
  21. package/lib/primitive/AppScreen/index.d.ts +3 -0
  22. package/lib/primitive/AppScreen/useAppScreen.d.ts +1080 -0
  23. package/lib/primitive/AppScreen/useAppScreenContext.d.ts +7 -0
  24. package/lib/primitive/GlobalInteraction/GlobalInteraction.d.ts +4 -0
  25. package/lib/primitive/GlobalInteraction/index.d.ts +2 -0
  26. package/lib/primitive/GlobalInteraction/useGlobalInteraction.d.ts +53 -0
  27. package/lib/primitive/GlobalInteraction/useGlobalInteractionContext.d.ts +7 -0
  28. package/lib/primitive/GlobalInteraction/useSwipeBack.d.ts +8 -0
  29. package/lib/primitive/index.d.ts +3 -0
  30. package/lib/primitive/private/useElementOffset.d.ts +4 -0
  31. package/lib/primitive/private/useTopActivity.d.ts +4 -0
  32. package/lib/utils/createStyleContext.d.ts +23 -0
  33. package/lib/utils/createWithStateProps.d.ts +9 -0
  34. package/package.json +56 -0
  35. package/src/components/AppBar/AppBar.namespace.ts +19 -0
  36. package/src/components/AppBar/AppBar.tsx +109 -0
  37. package/src/components/AppBar/index.tsx +21 -0
  38. package/src/components/AppScreen/AppScreen.namespace.ts +13 -0
  39. package/src/components/AppScreen/AppScreen.tsx +65 -0
  40. package/src/components/AppScreen/index.tsx +15 -0
  41. package/src/components/index.tsx +2 -0
  42. package/src/index.ts +4 -0
  43. package/src/plugin.tsx +20 -0
  44. package/src/primitive/AppBar/AppBar.namespace.ts +10 -0
  45. package/src/primitive/AppBar/AppBar.tsx +52 -0
  46. package/src/primitive/AppBar/index.ts +12 -0
  47. package/src/primitive/AppBar/useAppBar.tsx +42 -0
  48. package/src/primitive/AppBar/useAppBarContext.ts +19 -0
  49. package/src/primitive/AppScreen/AppScreen.namespace.ts +10 -0
  50. package/src/primitive/AppScreen/AppScreen.tsx +66 -0
  51. package/src/primitive/AppScreen/index.ts +13 -0
  52. package/src/primitive/AppScreen/useAppScreen.tsx +68 -0
  53. package/src/primitive/AppScreen/useAppScreenContext.ts +19 -0
  54. package/src/primitive/GlobalInteraction/GlobalInteraction.tsx +25 -0
  55. package/src/primitive/GlobalInteraction/index.ts +6 -0
  56. package/src/primitive/GlobalInteraction/useGlobalInteraction.ts +178 -0
  57. package/src/primitive/GlobalInteraction/useGlobalInteractionContext.tsx +21 -0
  58. package/src/primitive/GlobalInteraction/useSwipeBack.ts +56 -0
  59. package/src/primitive/index.tsx +3 -0
  60. package/src/primitive/private/useElementOffset.ts +37 -0
  61. package/src/primitive/private/useTopActivity.ts +31 -0
  62. package/src/utils/createStyleContext.tsx +125 -0
  63. package/src/utils/createWithStateProps.tsx +28 -0
@@ -0,0 +1,29 @@
1
+ import { type PrimitiveProps } from "@seed-design/react-primitive";
2
+ import { type AppBarVariantProps } from "@seed-design/recipe/appBar";
3
+ import { AppBar as AppBarPrimitive } from "../../primitive";
4
+ import { type AppBarMainVariantProps } from "@seed-design/recipe/appBarMain";
5
+ export declare const AppBarPropsProvider: ({ children, value }: {
6
+ children: React.ReactNode;
7
+ value: Partial<import("@seed-design/recipe/appBar").AppBarVariant>;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export interface AppBarProps extends AppBarVariantProps, AppBarPrimitive.RootProps {
10
+ }
11
+ export declare const AppBarRoot: import("react").ForwardRefExoticComponent<AppBarProps & import("react").RefAttributes<HTMLDivElement>>;
12
+ export interface AppBarLeftProps extends AppBarPrimitive.LeftProps {
13
+ }
14
+ export declare const AppBarLeft: import("react").ForwardRefExoticComponent<AppBarLeftProps & import("react").RefAttributes<HTMLDivElement>>;
15
+ export interface AppBarRightProps extends AppBarPrimitive.RightProps {
16
+ }
17
+ export declare const AppBarRight: import("react").ForwardRefExoticComponent<AppBarRightProps & import("react").RefAttributes<HTMLDivElement>>;
18
+ export interface AppBarMainProps extends AppBarMainVariantProps, AppBarPrimitive.MainProps {
19
+ }
20
+ export declare const AppBarMain: import("react").ForwardRefExoticComponent<AppBarMainProps & import("react").RefAttributes<HTMLDivElement>>;
21
+ export interface AppBarTitleProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
22
+ }
23
+ export declare const AppBarTitle: import("react").ForwardRefExoticComponent<AppBarTitleProps & import("react").RefAttributes<HTMLSpanElement>>;
24
+ export interface AppBarSubtitleProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
25
+ }
26
+ export declare const AppBarSubtitle: import("react").ForwardRefExoticComponent<AppBarSubtitleProps & import("react").RefAttributes<HTMLSpanElement>>;
27
+ export interface AppBarIconButtonProps extends PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
28
+ }
29
+ export declare const AppBarIconButton: import("react").ForwardRefExoticComponent<AppBarIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ export { AppBarIconButton as IconButton, AppBarLeft as Left, AppBarMain as Main, AppBarRight as Right, AppBarRoot as Root, AppBarSubtitle as Subtitle, AppBarTitle as Title, } from "./AppBar";
2
+ export type { AppBarIconButtonProps as IconButtonProps, AppBarLeftProps as LeftProps, AppBarMainProps as MainProps, AppBarRightProps as RightProps, AppBarProps as RootProps, AppBarSubtitleProps as SubtitleProps, AppBarTitleProps as TitleProps, } from "./AppBar";
@@ -0,0 +1,3 @@
1
+ export { AppBarIconButton, AppBarLeft, AppBarMain, AppBarRight, AppBarRoot, AppBarSubtitle, AppBarTitle, } from "./AppBar";
2
+ export type { AppBarIconButtonProps, AppBarLeftProps, AppBarMainProps, AppBarProps, AppBarRightProps, AppBarSubtitleProps, AppBarTitleProps, } from "./AppBar";
3
+ export * as AppBar from "./AppBar.namespace";
@@ -0,0 +1,18 @@
1
+ import { type AppScreenVariantProps } from "@seed-design/recipe/appScreen";
2
+ import { AppScreen as AppScreenPrimitive } from "../../primitive";
3
+ export declare const AppScreenPropsProvider: ({ children, value }: {
4
+ children: React.ReactNode;
5
+ value: Partial<import("@seed-design/recipe/appScreen").AppScreenVariant>;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export interface AppScreenRootProps extends AppScreenVariantProps, AppScreenPrimitive.RootProps {
8
+ }
9
+ export declare const AppScreenRoot: import("react").ForwardRefExoticComponent<AppScreenRootProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export interface AppScreenDimProps extends AppScreenPrimitive.DimProps {
11
+ }
12
+ export declare const AppScreenDim: import("react").ForwardRefExoticComponent<AppScreenDimProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export interface AppScreenEdgeProps extends AppScreenPrimitive.EdgeProps {
14
+ }
15
+ export declare const AppScreenEdge: import("react").ForwardRefExoticComponent<AppScreenEdgeProps & import("react").RefAttributes<HTMLDivElement>>;
16
+ export interface AppScreenLayerProps extends AppScreenPrimitive.LayerProps {
17
+ }
18
+ export declare const AppScreenLayer: import("react").ForwardRefExoticComponent<AppScreenLayerProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { AppScreenDim as Dim, AppScreenEdge as Edge, AppScreenLayer as Layer, AppScreenRoot as Root, } from "./AppScreen";
2
+ export type { AppScreenDimProps as DimProps, AppScreenEdgeProps as EdgeProps, AppScreenLayerProps as LayerProps, AppScreenRootProps as RootProps, } from "./AppScreen";
@@ -0,0 +1,3 @@
1
+ export { AppScreenDim, AppScreenEdge, AppScreenLayer, AppScreenRoot, } from "./AppScreen";
2
+ export type { AppScreenDimProps, AppScreenEdgeProps, AppScreenLayerProps, AppScreenRootProps, } from "./AppScreen";
3
+ export * as AppScreen from "./AppScreen.namespace";
@@ -0,0 +1,2 @@
1
+ export * from "./AppBar";
2
+ export * from "./AppScreen";
package/lib/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { seedPlugin, type SeedPluginOptions } from "./plugin";
2
+ export * from "./components";
3
+ export * as Primitive from "./primitive";