@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
|
@@ -917,6 +917,7 @@ var lateOceanColorPalette = {
|
|
|
917
917
|
englishVermillon: '#D44148',
|
|
918
918
|
goldCrayola: '#F8C583',
|
|
919
919
|
aero: '#89BDDD',
|
|
920
|
+
seaShell: '#FFF9F3',
|
|
920
921
|
transparent: 'transparent',
|
|
921
922
|
moonPurple: '#DBD6F9',
|
|
922
923
|
moonPurpleLight1: '#EDEBFC'
|
|
@@ -5152,13 +5153,14 @@ function ContentPadding(_ref2) {
|
|
|
5152
5153
|
}));
|
|
5153
5154
|
}
|
|
5154
5155
|
|
|
5155
|
-
var _excluded$7 = ["children", "shouldHandleBottomNotch", "style"];
|
|
5156
|
+
var _excluded$7 = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
5156
5157
|
var StyledViewWithPadding = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
5157
5158
|
displayName: "Body__StyledViewWithPadding",
|
|
5158
5159
|
componentId: "kitt-universal__sc-oc39vn-0"
|
|
5159
5160
|
})(["padding-top:", "px;padding-bottom:", "px;"], function (_ref) {
|
|
5160
|
-
var theme = _ref.theme
|
|
5161
|
-
|
|
5161
|
+
var theme = _ref.theme,
|
|
5162
|
+
$insetTop = _ref.$insetTop;
|
|
5163
|
+
return Math.max(theme.kitt.spacing * 6, $insetTop);
|
|
5162
5164
|
}, function (_ref2) {
|
|
5163
5165
|
var theme = _ref2.theme,
|
|
5164
5166
|
$insetBottom = _ref2.$insetBottom;
|
|
@@ -5168,12 +5170,16 @@ function Body(_ref3) {
|
|
|
5168
5170
|
var children = _ref3.children,
|
|
5169
5171
|
shouldHandleBottomNotch = _ref3.shouldHandleBottomNotch,
|
|
5170
5172
|
style = _ref3.style,
|
|
5173
|
+
shouldHandleTopNotch = _ref3.shouldHandleTopNotch,
|
|
5171
5174
|
props = _objectWithoutProperties(_ref3, _excluded$7);
|
|
5172
5175
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
5173
|
-
bottom = _useSafeAreaInsets.bottom
|
|
5176
|
+
bottom = _useSafeAreaInsets.bottom,
|
|
5177
|
+
top = _useSafeAreaInsets.top;
|
|
5174
5178
|
var insetBottom = shouldHandleBottomNotch ? bottom : 0;
|
|
5179
|
+
var insetTop = shouldHandleTopNotch ? top : 0;
|
|
5175
5180
|
return /*#__PURE__*/jsx(StyledViewWithPadding, _objectSpread(_objectSpread({}, props), {}, {
|
|
5176
5181
|
$insetBottom: insetBottom,
|
|
5182
|
+
$insetTop: insetTop,
|
|
5177
5183
|
style: style,
|
|
5178
5184
|
children: children
|
|
5179
5185
|
}));
|
|
@@ -5218,9 +5224,10 @@ function Footer(_ref5) {
|
|
|
5218
5224
|
var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
5219
5225
|
displayName: "Header__HeaderContainer",
|
|
5220
5226
|
componentId: "kitt-universal__sc-1g7sbq-0"
|
|
5221
|
-
})(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;", ";"], function (_ref) {
|
|
5222
|
-
var theme = _ref.theme
|
|
5223
|
-
|
|
5227
|
+
})(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;padding-top:", "px;", ";"], function (_ref) {
|
|
5228
|
+
var theme = _ref.theme,
|
|
5229
|
+
$insetTop = _ref.$insetTop;
|
|
5230
|
+
return theme.kitt.navigationModal.height + $insetTop;
|
|
5224
5231
|
}, function (_ref2) {
|
|
5225
5232
|
var theme = _ref2.theme,
|
|
5226
5233
|
$isTransparent = _ref2.$isTransparent;
|
|
@@ -5235,68 +5242,77 @@ var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
|
5235
5242
|
$hasLeft = _ref4.$hasLeft;
|
|
5236
5243
|
return $hasLeft ? theme.kitt.spacing * 2 : theme.kitt.navigationModal.padding;
|
|
5237
5244
|
}, function (_ref5) {
|
|
5238
|
-
var $
|
|
5245
|
+
var $insetTop = _ref5.$insetTop;
|
|
5246
|
+
return $insetTop;
|
|
5247
|
+
}, function (_ref6) {
|
|
5248
|
+
var $hasSeparator = _ref6.$hasSeparator;
|
|
5239
5249
|
if (!$hasSeparator) return undefined;
|
|
5240
|
-
return css(["border-bottom-width:1px;border-bottom-color:", ";"], function (
|
|
5241
|
-
var theme =
|
|
5250
|
+
return css(["border-bottom-width:1px;border-bottom-color:", ";"], function (_ref7) {
|
|
5251
|
+
var theme = _ref7.theme;
|
|
5242
5252
|
return theme.kitt.colors.separator;
|
|
5243
5253
|
});
|
|
5244
5254
|
});
|
|
5245
5255
|
var Row = /*#__PURE__*/styled(View$2).withConfig({
|
|
5246
5256
|
displayName: "Header__Row",
|
|
5247
5257
|
componentId: "kitt-universal__sc-1g7sbq-1"
|
|
5248
|
-
})(["flex-direction:row;justify-content:", ";align-items:center;"], function (
|
|
5249
|
-
var $hasContent =
|
|
5250
|
-
$hasLeft =
|
|
5258
|
+
})(["flex-direction:row;justify-content:", ";align-items:center;"], function (_ref8) {
|
|
5259
|
+
var $hasContent = _ref8.$hasContent,
|
|
5260
|
+
$hasLeft = _ref8.$hasLeft;
|
|
5251
5261
|
return !$hasContent && !$hasLeft ? 'flex-end' : 'space-between';
|
|
5252
5262
|
});
|
|
5253
5263
|
var ButtonContainer = /*#__PURE__*/styled(View$2).withConfig({
|
|
5254
5264
|
displayName: "Header__ButtonContainer",
|
|
5255
5265
|
componentId: "kitt-universal__sc-1g7sbq-2"
|
|
5256
|
-
})(["width:", "px;"], function (
|
|
5257
|
-
var theme =
|
|
5266
|
+
})(["width:", "px;"], function (_ref9) {
|
|
5267
|
+
var theme = _ref9.theme;
|
|
5258
5268
|
return theme.kitt.iconButton.width;
|
|
5259
5269
|
});
|
|
5260
5270
|
var ChildrenComponent = /*#__PURE__*/styled(View$2).withConfig({
|
|
5261
5271
|
displayName: "Header__ChildrenComponent",
|
|
5262
5272
|
componentId: "kitt-universal__sc-1g7sbq-3"
|
|
5263
|
-
})(["flex:1;align-items:center;", ";"], function (
|
|
5264
|
-
var theme =
|
|
5265
|
-
$hasLeft =
|
|
5266
|
-
$hasRight =
|
|
5273
|
+
})(["flex:1;align-items:center;", ";"], function (_ref10) {
|
|
5274
|
+
var theme = _ref10.theme,
|
|
5275
|
+
$hasLeft = _ref10.$hasLeft,
|
|
5276
|
+
$hasRight = _ref10.$hasRight;
|
|
5267
5277
|
var paddingHorizontal = theme.kitt.spacing * 2;
|
|
5268
5278
|
return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
|
|
5269
5279
|
});
|
|
5270
5280
|
var HeaderTitle = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
5271
5281
|
displayName: "Header__HeaderTitle",
|
|
5272
5282
|
componentId: "kitt-universal__sc-1g7sbq-4"
|
|
5273
|
-
})(["flex:1;text-align:", ";", ";"], function (
|
|
5274
|
-
var $hasLeft =
|
|
5275
|
-
$hasRight =
|
|
5283
|
+
})(["flex:1;text-align:", ";", ";"], function (_ref11) {
|
|
5284
|
+
var $hasLeft = _ref11.$hasLeft,
|
|
5285
|
+
$hasRight = _ref11.$hasRight;
|
|
5276
5286
|
if (!$hasLeft && $hasRight) return 'left';
|
|
5277
5287
|
return 'center';
|
|
5278
|
-
}, function (
|
|
5279
|
-
var theme =
|
|
5280
|
-
$hasLeft =
|
|
5281
|
-
$hasRight =
|
|
5288
|
+
}, function (_ref12) {
|
|
5289
|
+
var theme = _ref12.theme,
|
|
5290
|
+
$hasLeft = _ref12.$hasLeft,
|
|
5291
|
+
$hasRight = _ref12.$hasRight;
|
|
5282
5292
|
var paddingHorizontal = theme.kitt.spacing * 2;
|
|
5283
5293
|
return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
|
|
5284
5294
|
});
|
|
5285
|
-
function Header(
|
|
5286
|
-
var
|
|
5287
|
-
hasSeparator =
|
|
5288
|
-
isTransparent =
|
|
5289
|
-
title =
|
|
5290
|
-
children =
|
|
5291
|
-
right =
|
|
5292
|
-
left =
|
|
5293
|
-
|
|
5295
|
+
function Header(_ref13) {
|
|
5296
|
+
var _ref13$hasSeparator = _ref13.hasSeparator,
|
|
5297
|
+
hasSeparator = _ref13$hasSeparator === void 0 ? true : _ref13$hasSeparator,
|
|
5298
|
+
isTransparent = _ref13.isTransparent,
|
|
5299
|
+
title = _ref13.title,
|
|
5300
|
+
children = _ref13.children,
|
|
5301
|
+
right = _ref13.right,
|
|
5302
|
+
left = _ref13.left,
|
|
5303
|
+
_ref13$shouldHandleTo = _ref13.shouldHandleTopNotch,
|
|
5304
|
+
shouldHandleTopNotch = _ref13$shouldHandleTo === void 0 ? true : _ref13$shouldHandleTo,
|
|
5305
|
+
style = _ref13.style;
|
|
5306
|
+
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
5307
|
+
top = _useSafeAreaInsets.top;
|
|
5308
|
+
var insetTop = shouldHandleTopNotch ? top : 0;
|
|
5294
5309
|
var sharedProps = {
|
|
5295
5310
|
$hasLeft: Boolean(left),
|
|
5296
5311
|
$hasRight: Boolean(right)
|
|
5297
5312
|
};
|
|
5298
5313
|
return /*#__PURE__*/jsx(HeaderContainer, {
|
|
5299
5314
|
$isTransparent: isTransparent,
|
|
5315
|
+
$insetTop: insetTop,
|
|
5300
5316
|
$hasSeparator: hasSeparator,
|
|
5301
5317
|
$hasLeft: Boolean(left),
|
|
5302
5318
|
$hasRight: Boolean(right),
|