@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
|
@@ -4049,7 +4049,6 @@ function BottomSheetComp({
|
|
|
4049
4049
|
}
|
|
4050
4050
|
function BottomSheetContainerView(props) {
|
|
4051
4051
|
return /*#__PURE__*/jsx(View$1, {
|
|
4052
|
-
padding: "kitt.bottomSheet.container.padding",
|
|
4053
4052
|
...props
|
|
4054
4053
|
});
|
|
4055
4054
|
}
|
|
@@ -4556,9 +4555,6 @@ function CardModal({
|
|
|
4556
4555
|
maxWidth = 'kitt.cardModal.maxWidth',
|
|
4557
4556
|
withoutShadow,
|
|
4558
4557
|
children,
|
|
4559
|
-
header,
|
|
4560
|
-
body,
|
|
4561
|
-
footer,
|
|
4562
4558
|
...props
|
|
4563
4559
|
}) {
|
|
4564
4560
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -4571,9 +4567,7 @@ function CardModal({
|
|
|
4571
4567
|
maxHeight: "100%",
|
|
4572
4568
|
maxWidth: maxWidth,
|
|
4573
4569
|
minHeight: "kitt.cardModal.minHeight",
|
|
4574
|
-
children: children
|
|
4575
|
-
children: [header || null, body || null, footer || null]
|
|
4576
|
-
})
|
|
4570
|
+
children: children
|
|
4577
4571
|
});
|
|
4578
4572
|
}
|
|
4579
4573
|
CardModal.Body = CardModalBody;
|
|
@@ -4641,7 +4635,10 @@ function AnimatedChoiceItemView({
|
|
|
4641
4635
|
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4642
4636
|
});
|
|
4643
4637
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
4644
|
-
style: [
|
|
4638
|
+
style: [{
|
|
4639
|
+
flexGrow: 1,
|
|
4640
|
+
justifyContent: 'center'
|
|
4641
|
+
}, style, animatedStyles],
|
|
4645
4642
|
children: children
|
|
4646
4643
|
});
|
|
4647
4644
|
}
|
|
@@ -4741,6 +4738,7 @@ function ChoiceItem({
|
|
|
4741
4738
|
checked: selected
|
|
4742
4739
|
},
|
|
4743
4740
|
style: style,
|
|
4741
|
+
flexGrow: 1,
|
|
4744
4742
|
onBlur: onBlur,
|
|
4745
4743
|
onFocus: onFocus,
|
|
4746
4744
|
onPress: e => {
|
|
@@ -4760,6 +4758,7 @@ function ChoiceItem({
|
|
|
4760
4758
|
});
|
|
4761
4759
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4762
4760
|
space: "kitt.2",
|
|
4761
|
+
flexGrow: 1,
|
|
4763
4762
|
children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
4764
4763
|
animatedStyles: backgroundStyles,
|
|
4765
4764
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -8353,30 +8352,11 @@ function FullscreenModalHeader({
|
|
|
8353
8352
|
|
|
8354
8353
|
function FullscreenModal({
|
|
8355
8354
|
children,
|
|
8356
|
-
body,
|
|
8357
|
-
header,
|
|
8358
|
-
footer,
|
|
8359
8355
|
backgroundColor
|
|
8360
8356
|
}) {
|
|
8361
8357
|
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8362
8358
|
backgroundColor: backgroundColor,
|
|
8363
|
-
children: children
|
|
8364
|
-
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8365
|
-
children: header
|
|
8366
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8367
|
-
flexGrow: 1,
|
|
8368
|
-
flexShrink: 1,
|
|
8369
|
-
justifyContent: "space-between",
|
|
8370
|
-
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8371
|
-
bounces: false,
|
|
8372
|
-
contentContainerStyle: {
|
|
8373
|
-
flexGrow: 1,
|
|
8374
|
-
position: 'relative'
|
|
8375
|
-
},
|
|
8376
|
-
children: body
|
|
8377
|
-
}), footer || null]
|
|
8378
|
-
})]
|
|
8379
|
-
})
|
|
8359
|
+
children: children
|
|
8380
8360
|
});
|
|
8381
8361
|
}
|
|
8382
8362
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -11652,12 +11632,14 @@ function NavigationBottomSheetBody(props) {
|
|
|
11652
11632
|
flexGrow: 1,
|
|
11653
11633
|
flexShrink: 1,
|
|
11654
11634
|
marginBottom: "kitt.4",
|
|
11635
|
+
paddingX: "kitt.bottomSheet.container.padding",
|
|
11655
11636
|
...props
|
|
11656
11637
|
});
|
|
11657
11638
|
}
|
|
11658
11639
|
function NavigationBottomSheetFooter(props) {
|
|
11659
11640
|
return /*#__PURE__*/jsx(HStack, {
|
|
11660
11641
|
width: "100%",
|
|
11642
|
+
paddingX: "kitt.bottomSheet.container.padding",
|
|
11661
11643
|
...props
|
|
11662
11644
|
});
|
|
11663
11645
|
}
|
|
@@ -11716,24 +11698,16 @@ function NavigationModalBehaviour({
|
|
|
11716
11698
|
}
|
|
11717
11699
|
|
|
11718
11700
|
function NavigationModal({
|
|
11719
|
-
body,
|
|
11720
11701
|
backgroundColor,
|
|
11721
|
-
footer,
|
|
11722
|
-
header,
|
|
11723
11702
|
children
|
|
11724
11703
|
}) {
|
|
11725
11704
|
const Component = useBreakpointValue({
|
|
11726
11705
|
base: FullscreenModal,
|
|
11727
11706
|
small: CardModal
|
|
11728
11707
|
});
|
|
11729
|
-
return
|
|
11708
|
+
return /*#__PURE__*/jsx(Component, {
|
|
11730
11709
|
backgroundColor: backgroundColor,
|
|
11731
11710
|
children: children
|
|
11732
|
-
}) : /*#__PURE__*/jsx(Component, {
|
|
11733
|
-
body: body,
|
|
11734
|
-
backgroundColor: backgroundColor,
|
|
11735
|
-
footer: footer,
|
|
11736
|
-
header: header
|
|
11737
11711
|
});
|
|
11738
11712
|
}
|
|
11739
11713
|
function Header(props) {
|