@stackflow/plugin-basic-ui 0.19.3-alpha.1 → 0.20.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/basicUIPlugin.d.ts +1 -0
- package/dist/components/AppBar.css.d.ts +3 -1
- package/dist/components/AppBar.d.ts +3 -2
- package/dist/components/AppScreen.css.d.ts +2 -2
- package/dist/components/AppScreen.d.ts +7 -3
- package/dist/components/BottomSheet.d.ts +1 -1
- package/dist/components/Modal.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useNullableActivity.d.ts +2 -0
- package/dist/index.css +409 -1
- package/dist/index.css.map +3 -3
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1009 -1
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +987 -1
- package/dist/index.mjs.map +4 -4
- package/dist/styles/f.css.d.ts +1 -0
- package/dist/theme.css.d.ts +2 -1
- package/dist/utils/compact.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +6 -7
- package/src/basicUIPlugin.tsx +5 -2
- package/src/components/AppBar.css.ts +29 -21
- package/src/components/AppBar.tsx +41 -33
- package/src/components/AppScreen.css.ts +11 -10
- package/src/components/AppScreen.tsx +72 -50
- package/src/components/BottomSheet.css.ts +5 -4
- package/src/components/BottomSheet.tsx +12 -9
- package/src/components/Modal.css.ts +2 -1
- package/src/components/Modal.tsx +12 -9
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useNullableActivity.ts +6 -0
- package/src/hooks/useStyleEffect.ts +11 -4
- package/src/hooks/useStyleEffectOffset.ts +2 -2
- package/src/hooks/useStyleEffectSwipeBack.ts +5 -5
- package/src/index.ts +10 -8
- package/src/styles/f.css.ts +4 -0
- package/src/theme.css.ts +5 -2
- package/src/utils/compact.ts +6 -0
- package/src/utils/index.ts +1 -0
package/src/index.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export { basicUIPlugin } from "./basicUIPlugin";
|
|
2
|
-
export { default as AppScreen } from "./components/AppScreen";
|
|
3
|
-
export { default as BottomSheet } from "./components/BottomSheet";
|
|
4
|
-
export { default as Modal } from "./components/Modal";
|
|
5
2
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
3
|
+
default as AppScreen,
|
|
4
|
+
AppScreenContext,
|
|
5
|
+
AppScreenProps,
|
|
6
|
+
useAppScreen,
|
|
7
|
+
} from "./components/AppScreen";
|
|
8
|
+
export {
|
|
9
|
+
default as BottomSheet,
|
|
10
|
+
BottomSheetProps,
|
|
11
|
+
} from "./components/BottomSheet";
|
|
12
|
+
export { default as Modal, ModalProps } from "./components/Modal";
|
|
11
13
|
export { globalVars as cssVars } from "./theme.css";
|
package/src/styles/f.css.ts
CHANGED
package/src/theme.css.ts
CHANGED
|
@@ -13,10 +13,11 @@ export const globalVars = createGlobalThemeContract(
|
|
|
13
13
|
borderColor: "app-bar-border-color",
|
|
14
14
|
borderSize: "app-bar-border-size",
|
|
15
15
|
height: "app-bar-height",
|
|
16
|
+
heightTransitionDuration: "app-bar-height-transition-duration",
|
|
17
|
+
minHeight: "app-bar-min-height",
|
|
16
18
|
iconColor: "app-bar-icon-color",
|
|
17
19
|
textColor: "app-bar-text-color",
|
|
18
20
|
backgroundColor: "app-bar-background-color",
|
|
19
|
-
showTransitionDuration: "app-bar-show-transition-duration",
|
|
20
21
|
},
|
|
21
22
|
bottomSheet: {
|
|
22
23
|
borderRadius: "bottom-sheet-border-radius",
|
|
@@ -38,10 +39,11 @@ const defaultVars = {
|
|
|
38
39
|
borderColor: "rgba(0, 0, 0, 0.07)",
|
|
39
40
|
borderSize: "1px",
|
|
40
41
|
height: "3.5rem",
|
|
42
|
+
heightTransitionDuration: "275ms",
|
|
43
|
+
minHeight: "3.5rem",
|
|
41
44
|
iconColor: "#212124",
|
|
42
45
|
textColor: "#212124",
|
|
43
46
|
backgroundColor: "#fff",
|
|
44
|
-
showTransitionDuration: "275ms",
|
|
45
47
|
},
|
|
46
48
|
bottomSheet: {
|
|
47
49
|
borderRadius: "1rem",
|
|
@@ -56,6 +58,7 @@ const cupertinoVars = {
|
|
|
56
58
|
appBar: {
|
|
57
59
|
...defaultVars.appBar,
|
|
58
60
|
height: "2.75rem",
|
|
61
|
+
minHeight: "2.75rem",
|
|
59
62
|
borderSize: "0.5px",
|
|
60
63
|
},
|
|
61
64
|
};
|
package/src/utils/index.ts
CHANGED