@stackflow/plugin-basic-ui 1.0.0 → 1.0.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/dist/{theme.css.d.ts → basicUIPlugin.css.d.ts} +11 -0
- package/dist/basicUIPlugin.d.ts +2 -2
- package/dist/components/AppScreen.d.ts +1 -1
- package/dist/components/BottomSheet.d.ts +1 -1
- package/dist/components/Modal.d.ts +1 -1
- package/dist/index.css +142 -139
- package/dist/index.css.map +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +95 -97
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +95 -101
- package/dist/index.mjs.map +4 -4
- package/package.json +7 -7
- package/src/{theme.css.ts → basicUIPlugin.css.ts} +24 -8
- package/src/basicUIPlugin.tsx +19 -19
- package/src/components/AppBar.css.ts +2 -2
- package/src/components/AppBar.tsx +2 -2
- package/src/components/AppScreen.css.ts +2 -2
- package/src/components/AppScreen.tsx +2 -2
- package/src/components/BottomSheet.css.ts +1 -1
- package/src/components/BottomSheet.tsx +2 -2
- package/src/components/Modal.css.ts +1 -1
- package/src/components/Modal.tsx +2 -2
- package/src/hooks/useStyleEffectOffset.ts +1 -1
- package/src/hooks/useStyleEffectSwipeBack.ts +1 -1
- package/src/index.ts +2 -1
|
@@ -4,9 +4,9 @@ import { forwardRef, useRef } from "react";
|
|
|
4
4
|
|
|
5
5
|
import { IconBack, IconClose } from "../assets";
|
|
6
6
|
import { useGlobalOptions } from "../basicUIPlugin";
|
|
7
|
+
import type { GlobalVars } from "../basicUIPlugin.css";
|
|
8
|
+
import { globalVars } from "../basicUIPlugin.css";
|
|
7
9
|
import { useMaxWidth, useNullableActivity } from "../hooks";
|
|
8
|
-
import type { GlobalVars } from "../theme.css";
|
|
9
|
-
import { globalVars } from "../theme.css";
|
|
10
10
|
import { compactMap } from "../utils";
|
|
11
11
|
import * as css from "./AppBar.css";
|
|
12
12
|
import * as appScreenCss from "./AppScreen.css";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createThemeContract, style } from "@vanilla-extract/css";
|
|
2
2
|
import { recipe } from "@vanilla-extract/recipes";
|
|
3
3
|
|
|
4
|
-
import { f } from "../styles";
|
|
5
4
|
import {
|
|
6
5
|
android,
|
|
7
6
|
cupertino,
|
|
8
7
|
globalVars,
|
|
9
8
|
rootAndroid,
|
|
10
9
|
rootCupertino,
|
|
11
|
-
} from "../
|
|
10
|
+
} from "../basicUIPlugin.css";
|
|
11
|
+
import { f } from "../styles";
|
|
12
12
|
|
|
13
13
|
export const vars = createThemeContract({
|
|
14
14
|
transitionDuration: null,
|
|
@@ -5,6 +5,8 @@ import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
|
5
5
|
import { createContext, useContext, useMemo, useRef } from "react";
|
|
6
6
|
|
|
7
7
|
import { useGlobalOptions } from "../basicUIPlugin";
|
|
8
|
+
import type { GlobalVars } from "../basicUIPlugin.css";
|
|
9
|
+
import { globalVars } from "../basicUIPlugin.css";
|
|
8
10
|
import {
|
|
9
11
|
useLazy,
|
|
10
12
|
useNullableActivity,
|
|
@@ -12,8 +14,6 @@ import {
|
|
|
12
14
|
useStyleEffectOffset,
|
|
13
15
|
useStyleEffectSwipeBack,
|
|
14
16
|
} from "../hooks";
|
|
15
|
-
import type { GlobalVars } from "../theme.css";
|
|
16
|
-
import { globalVars } from "../theme.css";
|
|
17
17
|
import type { PropOf } from "../utils";
|
|
18
18
|
import { compactMap } from "../utils";
|
|
19
19
|
import AppBar from "./AppBar";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createThemeContract, style } from "@vanilla-extract/css";
|
|
2
2
|
import { recipe } from "@vanilla-extract/recipes";
|
|
3
3
|
|
|
4
|
+
import { globalVars } from "../basicUIPlugin.css";
|
|
4
5
|
import { f } from "../styles";
|
|
5
|
-
import { globalVars } from "../theme.css";
|
|
6
6
|
|
|
7
7
|
export const vars = createThemeContract({
|
|
8
8
|
transitionDuration: null,
|
|
@@ -4,9 +4,9 @@ import { useActions } from "@stackflow/react";
|
|
|
4
4
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
5
|
import { useRef } from "react";
|
|
6
6
|
|
|
7
|
+
import type { GlobalVars } from "../basicUIPlugin.css";
|
|
8
|
+
import { globalVars } from "../basicUIPlugin.css";
|
|
7
9
|
import { useLazy, useNullableActivity, useStyleEffect } from "../hooks";
|
|
8
|
-
import type { GlobalVars } from "../theme.css";
|
|
9
|
-
import { globalVars } from "../theme.css";
|
|
10
10
|
import { compactMap } from "../utils";
|
|
11
11
|
import * as css from "./BottomSheet.css";
|
|
12
12
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createThemeContract, style } from "@vanilla-extract/css";
|
|
2
2
|
import { recipe } from "@vanilla-extract/recipes";
|
|
3
3
|
|
|
4
|
+
import { globalVars } from "../basicUIPlugin.css";
|
|
4
5
|
import { f } from "../styles";
|
|
5
|
-
import { globalVars } from "../theme.css";
|
|
6
6
|
|
|
7
7
|
export const vars = createThemeContract({
|
|
8
8
|
transitionDuration: null,
|
package/src/components/Modal.tsx
CHANGED
|
@@ -4,9 +4,9 @@ import { useActions } from "@stackflow/react";
|
|
|
4
4
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
5
|
import { useRef } from "react";
|
|
6
6
|
|
|
7
|
+
import type { GlobalVars } from "../basicUIPlugin.css";
|
|
8
|
+
import { globalVars } from "../basicUIPlugin.css";
|
|
7
9
|
import { useLazy, useNullableActivity, useStyleEffect } from "../hooks";
|
|
8
|
-
import type { GlobalVars } from "../theme.css";
|
|
9
|
-
import { globalVars } from "../theme.css";
|
|
10
10
|
import { compactMap } from "../utils";
|
|
11
11
|
import * as css from "./Modal.css";
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-param-reassign */
|
|
2
2
|
|
|
3
|
-
import { globalVars } from "../
|
|
3
|
+
import { globalVars } from "../basicUIPlugin.css";
|
|
4
4
|
import { listenOnce, noop } from "../utils";
|
|
5
5
|
import { useStyleEffect } from "./useStyleEffect";
|
|
6
6
|
import { OFFSET_PX_CUPERTINO } from "./useStyleEffectOffset";
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { IconBack, IconClose } from "./assets";
|
|
1
2
|
export { basicUIPlugin } from "./basicUIPlugin";
|
|
3
|
+
export { globalVars as cssVars } from "./basicUIPlugin.css";
|
|
2
4
|
export {
|
|
3
5
|
default as AppScreen,
|
|
4
6
|
AppScreenContext,
|
|
@@ -10,4 +12,3 @@ export {
|
|
|
10
12
|
BottomSheetProps,
|
|
11
13
|
} from "./components/BottomSheet";
|
|
12
14
|
export { default as Modal, ModalProps } from "./components/Modal";
|
|
13
|
-
export { globalVars as cssVars } from "./theme.css";
|