bootstrap-rn 0.4.1 → 0.4.3
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/lib/module/components/helpers/BackdropHandler.js +3 -3
- package/lib/module/components/helpers/BackdropHandler.js.map +1 -1
- package/lib/module/hooks/useScrollbarEffects.js +2 -2
- package/lib/module/hooks/useScrollbarEffects.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/style/StyleSheet.js +1 -1
- package/lib/module/style/StyleSheet.js.map +1 -1
- package/lib/module/theme/variables.js +91 -91
- package/lib/module/theme/variables.js.map +1 -1
- package/lib/typescript/components/Pressable.d.ts.map +1 -1
- package/lib/typescript/hooks/useStyle.d.ts.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/theme/functions.d.ts.map +1 -1
- package/lib/typescript/theme/variables.d.ts.map +1 -1
- package/package.json +85 -84
- package/src/components/helpers/BackdropHandler.tsx +3 -3
- package/src/hooks/useScrollbarEffects.ts +2 -2
- package/src/style/StyleSheet.ts +1 -1
- package/src/theme/variables.ts +1420 -1414
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, RefObject } from 'react';
|
|
2
|
-
import { Platform
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
3
|
import StyleSheet from '../../style/StyleSheet';
|
|
4
4
|
import css from '../../style/css';
|
|
5
5
|
import Pressable from '../Pressable';
|
|
@@ -47,10 +47,10 @@ function BackdropHandler(props: BackdropHandlerProps) {
|
|
|
47
47
|
useEffect(() => {
|
|
48
48
|
const toggle = toggleRef
|
|
49
49
|
? // @ts-expect-error web only method for converting to HTMLElement
|
|
50
|
-
(
|
|
50
|
+
(toggleRef.current as HTMLElement)
|
|
51
51
|
: undefined;
|
|
52
52
|
// @ts-expect-error web only method for converting to HTMLElement
|
|
53
|
-
const dialog =
|
|
53
|
+
const dialog = dialogRef.current as HTMLElement;
|
|
54
54
|
|
|
55
55
|
const handleDialogMouseDown = () => {
|
|
56
56
|
state.waitingForMouseUp = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useMemo, RefObject } from 'react';
|
|
2
|
-
import { Platform
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
3
|
import type { ViewRef } from '../components/View';
|
|
4
4
|
|
|
5
5
|
type ScrollbarEffectsState = {
|
|
@@ -49,7 +49,7 @@ export default function useScrollbarEffects(
|
|
|
49
49
|
// Set body and fixed elements padding adjustments.
|
|
50
50
|
const fixedElements = elements
|
|
51
51
|
.filter((ref) => ref.current)
|
|
52
|
-
.map((ref) =>
|
|
52
|
+
.map((ref) => ref.current);
|
|
53
53
|
|
|
54
54
|
// @ts-expect-error fixedElements should be of type HTMLElement[]
|
|
55
55
|
state.current.elements = [document.body, ...fixedElements];
|
package/src/style/StyleSheet.ts
CHANGED
|
@@ -97,7 +97,7 @@ const StyleSheet = {
|
|
|
97
97
|
// If initialized, set active sheet based by active theme.
|
|
98
98
|
if (activeKey !== null) {
|
|
99
99
|
sheet.cache[activeKey] = createSheet(sheet);
|
|
100
|
-
sheet.active
|
|
100
|
+
Object.assign(sheet.active, sheet.cache[activeKey]);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
sheets.push(sheet);
|