@ornikar/kitt-universal 9.1.3 → 9.2.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.
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +3498 -3556
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/native-base/acceptable-native-base-props.d.ts +9 -0
- package/dist/definitions/native-base/acceptable-native-base-props.d.ts.map +1 -0
- package/dist/definitions/native-base/layout.d.ts +23 -0
- package/dist/definitions/native-base/layout.d.ts.map +1 -0
- package/dist/definitions/native-base/primitives.d.ts +21 -0
- package/dist/definitions/native-base/primitives.d.ts.map +1 -0
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +47 -25
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +47 -25
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +47 -25
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +106 -84
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +31 -6
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +31 -6
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -181,6 +181,14 @@ function Typography({
|
|
|
181
181
|
base: baseOrDefaultToBody
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
185
|
+
Object.entries(type).forEach(([key, value]) => {
|
|
186
|
+
if (value && isTypeHeader(value) !== isHeader) {
|
|
187
|
+
throw new Error(`Invalid value for "${key}": "${value}" is ${isHeader ? 'not' : ''} an header. Don't mix headers and bodies.`);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
|
|
184
192
|
const text = /*#__PURE__*/jsxRuntime.jsx(nativeBase.Text, {
|
|
185
193
|
accessibilityRole: accessibilityRole || undefined,
|
|
186
194
|
fontSize: fontSizeForNativeBase,
|
|
@@ -867,15 +875,15 @@ function ExternalAppLink({
|
|
|
867
875
|
const canOpen = await reactNative.Linking.canOpenURL(href);
|
|
868
876
|
|
|
869
877
|
if (canOpen) {
|
|
870
|
-
reactNative.Linking.openURL(href).catch(err => {
|
|
871
|
-
console.error(`An error occurred while opening ${href}`, err);
|
|
872
|
-
onOpenAppError?.(`An error occurred while opening ${href}`);
|
|
873
|
-
});
|
|
874
|
-
|
|
875
878
|
if (onPress) {
|
|
876
879
|
onPress(e);
|
|
877
880
|
if (e?.defaultPrevented) return;
|
|
878
881
|
}
|
|
882
|
+
|
|
883
|
+
reactNative.Linking.openURL(href).catch(err => {
|
|
884
|
+
console.error(`An error occurred while opening ${href}`, err);
|
|
885
|
+
onOpenAppError?.(`An error occurred while opening ${href}`);
|
|
886
|
+
});
|
|
879
887
|
} else {
|
|
880
888
|
onOpenAppError?.(`Cannot open url: ${href}`);
|
|
881
889
|
}
|
|
@@ -3373,7 +3381,7 @@ const createKittSpaces = spacing => {
|
|
|
3373
3381
|
|
|
3374
3382
|
const createKittNativeBaseCustomTheme = theme => {
|
|
3375
3383
|
const spaces = createKittSpaces(theme.spacing);
|
|
3376
|
-
|
|
3384
|
+
const extendedTheme = nativeBase.extendTheme({
|
|
3377
3385
|
colors: {
|
|
3378
3386
|
kitt: { ...theme.colors,
|
|
3379
3387
|
typography: theme.typography.colors
|
|
@@ -3483,6 +3491,9 @@ const createKittNativeBaseCustomTheme = theme => {
|
|
|
3483
3491
|
}
|
|
3484
3492
|
}
|
|
3485
3493
|
});
|
|
3494
|
+
return { ...extendedTheme,
|
|
3495
|
+
space: extendedTheme.space
|
|
3496
|
+
};
|
|
3486
3497
|
};
|
|
3487
3498
|
function KittNativeBaseProvider({
|
|
3488
3499
|
theme,
|
|
@@ -3498,6 +3509,14 @@ function KittNativeBaseProvider({
|
|
|
3498
3509
|
});
|
|
3499
3510
|
}
|
|
3500
3511
|
|
|
3512
|
+
const Stack = nativeBase.Stack;
|
|
3513
|
+
const VStack = nativeBase.VStack;
|
|
3514
|
+
const HStack = nativeBase.HStack;
|
|
3515
|
+
|
|
3516
|
+
const View = nativeBase.View;
|
|
3517
|
+
const ScrollView = nativeBase.ScrollView;
|
|
3518
|
+
const Pressable = nativeBase.Pressable;
|
|
3519
|
+
|
|
3501
3520
|
function Notification({
|
|
3502
3521
|
type,
|
|
3503
3522
|
children,
|
|
@@ -4799,6 +4818,7 @@ exports.ExternalAppLink = ExternalAppLink;
|
|
|
4799
4818
|
exports.ExternalLink = ExternalLink;
|
|
4800
4819
|
exports.Flex = Flex;
|
|
4801
4820
|
exports.FullScreenModal = FullScreenModal;
|
|
4821
|
+
exports.HStack = HStack;
|
|
4802
4822
|
exports.Icon = Icon;
|
|
4803
4823
|
exports.IconButton = IconButton;
|
|
4804
4824
|
exports.InputEmail = InputEmail;
|
|
@@ -4825,10 +4845,13 @@ exports.Notification = Notification;
|
|
|
4825
4845
|
exports.Overlay = Overlay;
|
|
4826
4846
|
exports.PageLoader = PageLoader;
|
|
4827
4847
|
exports.Picker = Picker;
|
|
4848
|
+
exports.Pressable = Pressable;
|
|
4828
4849
|
exports.Radio = Radio;
|
|
4850
|
+
exports.ScrollView = ScrollView;
|
|
4829
4851
|
exports.Section = DeprecatedSection;
|
|
4830
4852
|
exports.Skeleton = Skeleton;
|
|
4831
4853
|
exports.SpinningIcon = SpinningIcon;
|
|
4854
|
+
exports.Stack = Stack;
|
|
4832
4855
|
exports.Story = Story;
|
|
4833
4856
|
exports.StoryBlock = StoryBlock;
|
|
4834
4857
|
exports.StoryContainer = StoryContainer;
|
|
@@ -4845,6 +4868,8 @@ exports.Typography = Typography;
|
|
|
4845
4868
|
exports.TypographyEmoji = TypographyEmoji;
|
|
4846
4869
|
exports.TypographyIcon = TypographyIcon;
|
|
4847
4870
|
exports.TypographyLink = TypographyLink;
|
|
4871
|
+
exports.VStack = VStack;
|
|
4872
|
+
exports.View = View;
|
|
4848
4873
|
exports.createWindowSizeHelper = createWindowSizeHelper;
|
|
4849
4874
|
exports.hex2rgba = hex2rgba;
|
|
4850
4875
|
exports.matchWindowSize = matchWindowSize;
|