@ornikar/kitt-universal 29.4.2-canary.fd1b4b35933bafb4acef3ae114e07a03477878a2.0 → 29.5.1
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/CHANGELOG.md +12 -1
- package/dist/definitions/CardModal/CardModal.d.ts +2 -20
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -18
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +16 -43
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +16 -43
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +11 -37
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +7 -35
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +11 -37
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +7 -35
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +16 -43
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +9 -37
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4072,7 +4072,6 @@ function BottomSheetComp({
|
|
|
4072
4072
|
}
|
|
4073
4073
|
function BottomSheetContainerView(props) {
|
|
4074
4074
|
return /*#__PURE__*/jsxRuntime.jsx(nativeBase.View, {
|
|
4075
|
-
padding: "kitt.bottomSheet.container.padding",
|
|
4076
4075
|
...props
|
|
4077
4076
|
});
|
|
4078
4077
|
}
|
|
@@ -4579,9 +4578,6 @@ function CardModal({
|
|
|
4579
4578
|
maxWidth = 'kitt.cardModal.maxWidth',
|
|
4580
4579
|
withoutShadow,
|
|
4581
4580
|
children,
|
|
4582
|
-
header,
|
|
4583
|
-
body,
|
|
4584
|
-
footer,
|
|
4585
4581
|
...props
|
|
4586
4582
|
}) {
|
|
4587
4583
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4594,9 +4590,7 @@ function CardModal({
|
|
|
4594
4590
|
maxHeight: "100%",
|
|
4595
4591
|
maxWidth: maxWidth,
|
|
4596
4592
|
minHeight: "kitt.cardModal.minHeight",
|
|
4597
|
-
children: children
|
|
4598
|
-
children: [header || null, body || null, footer || null]
|
|
4599
|
-
})
|
|
4593
|
+
children: children
|
|
4600
4594
|
});
|
|
4601
4595
|
}
|
|
4602
4596
|
CardModal.Body = CardModalBody;
|
|
@@ -4664,7 +4658,10 @@ function AnimatedChoiceItemView({
|
|
|
4664
4658
|
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4665
4659
|
});
|
|
4666
4660
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
4667
|
-
style: [
|
|
4661
|
+
style: [{
|
|
4662
|
+
flexGrow: 1,
|
|
4663
|
+
justifyContent: 'center'
|
|
4664
|
+
}, style, animatedStyles],
|
|
4668
4665
|
children: children
|
|
4669
4666
|
});
|
|
4670
4667
|
}
|
|
@@ -4764,6 +4761,7 @@ function ChoiceItem({
|
|
|
4764
4761
|
checked: selected
|
|
4765
4762
|
},
|
|
4766
4763
|
style: style,
|
|
4764
|
+
flexGrow: 1,
|
|
4767
4765
|
onBlur: onBlur,
|
|
4768
4766
|
onFocus: onFocus,
|
|
4769
4767
|
onPress: e => {
|
|
@@ -4783,6 +4781,7 @@ function ChoiceItem({
|
|
|
4783
4781
|
});
|
|
4784
4782
|
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4785
4783
|
space: "kitt.2",
|
|
4784
|
+
flexGrow: 1,
|
|
4786
4785
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
|
|
4787
4786
|
animatedStyles: backgroundStyles,
|
|
4788
4787
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -8376,30 +8375,11 @@ function FullscreenModalHeader({
|
|
|
8376
8375
|
|
|
8377
8376
|
function FullscreenModal({
|
|
8378
8377
|
children,
|
|
8379
|
-
body,
|
|
8380
|
-
header,
|
|
8381
|
-
footer,
|
|
8382
8378
|
backgroundColor
|
|
8383
8379
|
}) {
|
|
8384
8380
|
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
8385
8381
|
backgroundColor: backgroundColor,
|
|
8386
|
-
children: children
|
|
8387
|
-
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8388
|
-
children: header
|
|
8389
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8390
|
-
flexGrow: 1,
|
|
8391
|
-
flexShrink: 1,
|
|
8392
|
-
justifyContent: "space-between",
|
|
8393
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
8394
|
-
bounces: false,
|
|
8395
|
-
contentContainerStyle: {
|
|
8396
|
-
flexGrow: 1,
|
|
8397
|
-
position: 'relative'
|
|
8398
|
-
},
|
|
8399
|
-
children: body
|
|
8400
|
-
}), footer || null]
|
|
8401
|
-
})]
|
|
8402
|
-
})
|
|
8382
|
+
children: children
|
|
8403
8383
|
});
|
|
8404
8384
|
}
|
|
8405
8385
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11675,12 +11655,14 @@ function NavigationBottomSheetBody(props) {
|
|
|
11675
11655
|
flexGrow: 1,
|
|
11676
11656
|
flexShrink: 1,
|
|
11677
11657
|
marginBottom: "kitt.4",
|
|
11658
|
+
paddingX: "kitt.bottomSheet.container.padding",
|
|
11678
11659
|
...props
|
|
11679
11660
|
});
|
|
11680
11661
|
}
|
|
11681
11662
|
function NavigationBottomSheetFooter(props) {
|
|
11682
11663
|
return /*#__PURE__*/jsxRuntime.jsx(HStack, {
|
|
11683
11664
|
width: "100%",
|
|
11665
|
+
paddingX: "kitt.bottomSheet.container.padding",
|
|
11684
11666
|
...props
|
|
11685
11667
|
});
|
|
11686
11668
|
}
|
|
@@ -11739,24 +11721,16 @@ function NavigationModalBehaviour({
|
|
|
11739
11721
|
}
|
|
11740
11722
|
|
|
11741
11723
|
function NavigationModal({
|
|
11742
|
-
body,
|
|
11743
11724
|
backgroundColor,
|
|
11744
|
-
footer,
|
|
11745
|
-
header,
|
|
11746
11725
|
children
|
|
11747
11726
|
}) {
|
|
11748
11727
|
const Component = useBreakpointValue({
|
|
11749
11728
|
base: FullscreenModal,
|
|
11750
11729
|
small: CardModal
|
|
11751
11730
|
});
|
|
11752
|
-
return
|
|
11731
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
11753
11732
|
backgroundColor: backgroundColor,
|
|
11754
11733
|
children: children
|
|
11755
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
11756
|
-
body: body,
|
|
11757
|
-
backgroundColor: backgroundColor,
|
|
11758
|
-
footer: footer,
|
|
11759
|
-
header: header
|
|
11760
11734
|
});
|
|
11761
11735
|
}
|
|
11762
11736
|
function Header(props) {
|