@ornikar/kitt-universal 8.0.0-beta.0 → 8.0.0-beta.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/dist/definitions/native-base/KittNativeBaseProvider.d.ts +7 -2
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts +3 -1
- package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +17 -5
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +17 -5
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +17 -5
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +17 -5
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +9 -1
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +9 -1
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NativeBaseProviderProps } from 'native-base';
|
|
1
2
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
3
|
import type { KittTheme } from '..';
|
|
3
4
|
export declare const kittNativeBaseCustomTheme: {
|
|
@@ -240,7 +241,10 @@ export declare const kittNativeBaseCustomTheme: {
|
|
|
240
241
|
};
|
|
241
242
|
};
|
|
242
243
|
fontWeights: {
|
|
243
|
-
headers:
|
|
244
|
+
headers: {
|
|
245
|
+
regular: number;
|
|
246
|
+
bold: number;
|
|
247
|
+
};
|
|
244
248
|
bodies: {
|
|
245
249
|
regular: number;
|
|
246
250
|
bold: number;
|
|
@@ -4704,8 +4708,9 @@ declare module 'native-base' {
|
|
|
4704
4708
|
}
|
|
4705
4709
|
export interface KittNativeBaseProviderProps {
|
|
4706
4710
|
theme: KittTheme;
|
|
4711
|
+
isSSR: NativeBaseProviderProps['isSSR'];
|
|
4707
4712
|
children: ReactNode;
|
|
4708
4713
|
}
|
|
4709
|
-
export declare function KittNativeBaseProvider({ theme, children }: KittNativeBaseProviderProps): ReactElement;
|
|
4714
|
+
export declare function KittNativeBaseProvider({ theme, isSSR, children }: KittNativeBaseProviderProps): ReactElement;
|
|
4710
4715
|
export {};
|
|
4711
4716
|
//# sourceMappingURL=KittNativeBaseProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KittNativeBaseProvider.d.ts","sourceRoot":"","sources":["../../../src/native-base/KittNativeBaseProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KittNativeBaseProvider.d.ts","sourceRoot":"","sources":["../../../src/native-base/KittNativeBaseProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAwEpC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GpC,CAAC;AAEH,aAAK,yBAAyB,GAAG,OAAO,yBAAyB,CAAC;AAElE,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,YAAa,SAAQ,yBAAyB;KAAG;CAC5D;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACxC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,2BAA2B,GAAG,YAAY,CAM5G"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { KittNativeBaseProviderProps } from '../../native-base/KittNativeBaseProvider';
|
|
2
3
|
import type { KittTheme } from '../../useKittTheme';
|
|
3
4
|
declare module 'styled-components' {
|
|
4
5
|
interface DefaultTheme extends KittTheme {
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
interface KittThemeProviderProps {
|
|
9
|
+
isSSR?: KittNativeBaseProviderProps['isSSR'];
|
|
8
10
|
children: ReactNode;
|
|
9
11
|
}
|
|
10
|
-
export declare function KittThemeProvider({ children }: KittThemeProviderProps): ReactElement;
|
|
12
|
+
export declare function KittThemeProvider({ isSSR, children }: KittThemeProviderProps): ReactElement;
|
|
11
13
|
export declare const KittThemeDecorator: (...args: any) => any;
|
|
12
14
|
export {};
|
|
13
15
|
//# sourceMappingURL=KittThemeDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KittThemeDecorator.d.ts","sourceRoot":"","sources":["../../../../src/utils/storybook/KittThemeDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"KittThemeDecorator.d.ts","sourceRoot":"","sources":["../../../../src/utils/storybook/KittThemeDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAiB,YAAa,SAAQ,SAAS;KAAG;CACnD;AAED,UAAU,sBAAsB;IAC9B,KAAK,CAAC,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;IAC7C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,GAAG,YAAY,CAS3F;AAED,eAAO,MAAM,kBAAkB,uBAU7B,CAAC"}
|
|
@@ -4667,7 +4667,10 @@ var kittNativeBaseCustomTheme = extendTheme({
|
|
|
4667
4667
|
}
|
|
4668
4668
|
},
|
|
4669
4669
|
fontWeights: {
|
|
4670
|
-
headers:
|
|
4670
|
+
headers: {
|
|
4671
|
+
regular: theme.typography.types.headers.fontWeight,
|
|
4672
|
+
bold: theme.typography.types.headers.fontWeight
|
|
4673
|
+
},
|
|
4671
4674
|
bodies: theme.typography.types.bodies.fontWeight
|
|
4672
4675
|
},
|
|
4673
4676
|
fonts: {
|
|
@@ -4694,20 +4697,24 @@ var kittNativeBaseCustomTheme = extendTheme({
|
|
|
4694
4697
|
});
|
|
4695
4698
|
function KittNativeBaseProvider(_ref) {
|
|
4696
4699
|
_ref.theme;
|
|
4697
|
-
var
|
|
4700
|
+
var isSSR = _ref.isSSR,
|
|
4701
|
+
children = _ref.children;
|
|
4698
4702
|
return /*#__PURE__*/jsx(NativeBaseProvider, {
|
|
4699
4703
|
theme: kittNativeBaseCustomTheme,
|
|
4704
|
+
isSSR: isSSR,
|
|
4700
4705
|
children: children
|
|
4701
4706
|
});
|
|
4702
4707
|
}
|
|
4703
4708
|
|
|
4704
4709
|
function KittThemeProvider(_ref) {
|
|
4705
|
-
var
|
|
4710
|
+
var isSSR = _ref.isSSR,
|
|
4711
|
+
children = _ref.children;
|
|
4706
4712
|
var theme = useKittTheme();
|
|
4707
4713
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
4708
4714
|
theme: theme,
|
|
4709
4715
|
children: /*#__PURE__*/jsx(KittNativeBaseProvider, {
|
|
4710
4716
|
theme: theme,
|
|
4717
|
+
isSSR: isSSR,
|
|
4711
4718
|
children: children
|
|
4712
4719
|
})
|
|
4713
4720
|
});
|
|
@@ -4716,9 +4723,14 @@ var KittThemeDecorator = makeDecorator({
|
|
|
4716
4723
|
name: 'ThemeDecorator',
|
|
4717
4724
|
parameterName: 'theme',
|
|
4718
4725
|
wrapper: function wrapper(storyFn, context, _ref2) {
|
|
4719
|
-
|
|
4720
|
-
|
|
4726
|
+
var _parameters$isSSR;
|
|
4727
|
+
|
|
4728
|
+
var _ref2$options = _ref2.options,
|
|
4729
|
+
options = _ref2$options === void 0 ? {} : _ref2$options,
|
|
4730
|
+
_ref2$parameters = _ref2.parameters,
|
|
4731
|
+
parameters = _ref2$parameters === void 0 ? {} : _ref2$parameters;
|
|
4721
4732
|
return /*#__PURE__*/jsx(KittThemeProvider, {
|
|
4733
|
+
isSSR: (_parameters$isSSR = parameters.isSSR) !== null && _parameters$isSSR !== void 0 ? _parameters$isSSR : options.isSSR,
|
|
4722
4734
|
children: storyFn(context)
|
|
4723
4735
|
});
|
|
4724
4736
|
}
|