@ornikar/kitt-universal 9.30.2 → 9.31.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/KittBreakpoints.d.ts +2 -2
- package/dist/definitions/KittBreakpoints.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/Body.d.ts +2 -1
- package/dist/definitions/NavigationModal/Body.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/Header.d.ts +3 -1
- package/dist/definitions/NavigationModal/Header.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModalAnimation.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/components/NativeSlideInAnimation.d.ts +1 -2
- package/dist/definitions/NavigationModal/components/NativeSlideInAnimation.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +1 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +1 -0
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +68 -54
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +68 -54
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +68 -54
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +51 -35
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +37 -24
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +21 -6
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +1 -0
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +1 -0
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +1 -0
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +1 -0
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +1 -0
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +1 -0
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -906,6 +906,7 @@ const lateOceanColorPalette = {
|
|
|
906
906
|
englishVermillon: '#D44148',
|
|
907
907
|
goldCrayola: '#F8C583',
|
|
908
908
|
aero: '#89BDDD',
|
|
909
|
+
seaShell: '#FFF9F3',
|
|
909
910
|
transparent: 'transparent',
|
|
910
911
|
moonPurple: '#DBD6F9',
|
|
911
912
|
moonPurpleLight1: '#EDEBFC'
|
|
@@ -5084,8 +5085,9 @@ const StyledViewWithPadding = /*#__PURE__*/styled__default(ContentPadding).withC
|
|
|
5084
5085
|
displayName: "Body__StyledViewWithPadding",
|
|
5085
5086
|
componentId: "kitt-universal__sc-oc39vn-0"
|
|
5086
5087
|
})(["padding-top:", "px;padding-bottom:", "px;"], ({
|
|
5087
|
-
theme
|
|
5088
|
-
|
|
5088
|
+
theme,
|
|
5089
|
+
$insetTop
|
|
5090
|
+
}) => Math.max(theme.kitt.spacing * 6, $insetTop), ({
|
|
5089
5091
|
theme,
|
|
5090
5092
|
$insetBottom
|
|
5091
5093
|
}) => Math.max(theme.kitt.spacing * 4, $insetBottom));
|
|
@@ -5093,15 +5095,19 @@ function Body({
|
|
|
5093
5095
|
children,
|
|
5094
5096
|
shouldHandleBottomNotch,
|
|
5095
5097
|
style,
|
|
5098
|
+
shouldHandleTopNotch,
|
|
5096
5099
|
...props
|
|
5097
5100
|
}) {
|
|
5098
5101
|
const {
|
|
5099
|
-
bottom
|
|
5102
|
+
bottom,
|
|
5103
|
+
top
|
|
5100
5104
|
} = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
5101
5105
|
const insetBottom = shouldHandleBottomNotch ? bottom : 0;
|
|
5106
|
+
const insetTop = shouldHandleTopNotch ? top : 0;
|
|
5102
5107
|
return /*#__PURE__*/jsxRuntime.jsx(StyledViewWithPadding, {
|
|
5103
5108
|
...props,
|
|
5104
5109
|
$insetBottom: insetBottom,
|
|
5110
|
+
$insetTop: insetTop,
|
|
5105
5111
|
style: style,
|
|
5106
5112
|
children: children
|
|
5107
5113
|
});
|
|
@@ -5144,9 +5150,10 @@ function Footer({
|
|
|
5144
5150
|
const HeaderContainer = /*#__PURE__*/styled__default(ContentPadding).withConfig({
|
|
5145
5151
|
displayName: "Header__HeaderContainer",
|
|
5146
5152
|
componentId: "kitt-universal__sc-1g7sbq-0"
|
|
5147
|
-
})(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;", ";"], ({
|
|
5148
|
-
theme
|
|
5149
|
-
|
|
5153
|
+
})(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;padding-top:", "px;", ";"], ({
|
|
5154
|
+
theme,
|
|
5155
|
+
$insetTop
|
|
5156
|
+
}) => theme.kitt.navigationModal.height + $insetTop, ({
|
|
5150
5157
|
theme,
|
|
5151
5158
|
$isTransparent
|
|
5152
5159
|
}) => {
|
|
@@ -5159,6 +5166,8 @@ const HeaderContainer = /*#__PURE__*/styled__default(ContentPadding).withConfig(
|
|
|
5159
5166
|
theme,
|
|
5160
5167
|
$hasLeft
|
|
5161
5168
|
}) => $hasLeft ? theme.kitt.spacing * 2 : theme.kitt.navigationModal.padding, ({
|
|
5169
|
+
$insetTop
|
|
5170
|
+
}) => $insetTop, ({
|
|
5162
5171
|
$hasSeparator
|
|
5163
5172
|
}) => {
|
|
5164
5173
|
if (!$hasSeparator) return undefined;
|
|
@@ -5214,14 +5223,20 @@ function Header({
|
|
|
5214
5223
|
children,
|
|
5215
5224
|
right,
|
|
5216
5225
|
left,
|
|
5226
|
+
shouldHandleTopNotch = true,
|
|
5217
5227
|
style
|
|
5218
5228
|
}) {
|
|
5229
|
+
const {
|
|
5230
|
+
top
|
|
5231
|
+
} = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
5232
|
+
const insetTop = shouldHandleTopNotch ? top : 0;
|
|
5219
5233
|
const sharedProps = {
|
|
5220
5234
|
$hasLeft: Boolean(left),
|
|
5221
5235
|
$hasRight: Boolean(right)
|
|
5222
5236
|
};
|
|
5223
5237
|
return /*#__PURE__*/jsxRuntime.jsx(HeaderContainer, {
|
|
5224
5238
|
$isTransparent: isTransparent,
|
|
5239
|
+
$insetTop: insetTop,
|
|
5225
5240
|
$hasSeparator: hasSeparator,
|
|
5226
5241
|
$hasLeft: Boolean(left),
|
|
5227
5242
|
$hasRight: Boolean(right),
|