@ornikar/kitt-universal 32.1.1-canary.28d1f9f68cb643b8c67559f72df59006a88da1e9.0 → 32.2.1-canary.b6a558c2a534e5d22cad1dfac7725ddeca489e44.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +1 -2
  3. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
  4. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +1 -1
  5. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
  6. package/dist/definitions/Choices/ChoiceItem.d.ts +1 -2
  7. package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
  8. package/dist/definitions/Choices/ChoiceItemContainer.d.ts +1 -2
  9. package/dist/definitions/Choices/ChoiceItemContainer.d.ts.map +1 -1
  10. package/dist/definitions/Choices/Choices.d.ts +5 -5
  11. package/dist/definitions/Choices/Choices.d.ts.map +1 -1
  12. package/dist/index-metro.es.android.js +14 -39
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +14 -39
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-22.17.cjs.js +12 -40
  17. package/dist/index-node-22.17.cjs.js.map +1 -1
  18. package/dist/index-node-22.17.cjs.web.js +12 -40
  19. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  20. package/dist/index-node-22.17.es.mjs +13 -41
  21. package/dist/index-node-22.17.es.mjs.map +1 -1
  22. package/dist/index-node-22.17.es.web.mjs +13 -41
  23. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  24. package/dist/index.es.js +14 -42
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +14 -42
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/linaria-themes-metro.es.android.js +4 -4
  29. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  30. package/dist/linaria-themes-metro.es.ios.js +4 -4
  31. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  32. package/dist/linaria-themes-node-22.17.cjs.js +4 -4
  33. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  34. package/dist/linaria-themes-node-22.17.cjs.web.js +4 -4
  35. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  36. package/dist/linaria-themes-node-22.17.es.mjs +4 -4
  37. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  38. package/dist/linaria-themes-node-22.17.es.web.mjs +4 -4
  39. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  40. package/dist/linaria-themes.es.js +4 -4
  41. package/dist/linaria-themes.es.js.map +1 -1
  42. package/dist/linaria-themes.es.web.js +4 -4
  43. package/dist/linaria-themes.es.web.js.map +1 -1
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, I
3
3
  export { useClipboard, useContrastText, useMediaQuery, useSx, useToken } from 'native-base';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate, ReducedMotionConfig, ReduceMotion } from 'react-native-reanimated';
6
- import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions, ScrollView as ScrollView$2, PixelRatio } from 'react-native';
6
+ import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions, PixelRatio } from 'react-native';
7
7
  export { useWindowDimensions as useWindowSize } from 'react-native';
8
8
  import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
9
9
  import { BottomSheetView, BottomSheetScrollView, BottomSheetSectionList, BottomSheetFlatList, BottomSheetHandle, BottomSheetBackdrop, BottomSheetFooter, BottomSheetTextInput, BottomSheetModal, useBottomSheetModal } from '@gorhom/bottom-sheet';
@@ -1054,10 +1054,10 @@ const autocomplete = {
1054
1054
  };
1055
1055
 
1056
1056
  const checkbox = {
1057
- borderWidth: 2,
1058
- borderRadius: 5,
1059
- height: 20,
1060
- width: 20,
1057
+ borderWidth: 1,
1058
+ borderRadius: 4,
1059
+ height: 24,
1060
+ width: 24,
1061
1061
  iconSize: 14,
1062
1062
  markColor: colors.uiBackgroundLight,
1063
1063
  textSpacing: 10,
@@ -4814,7 +4814,6 @@ function AnimatedChoiceItemView({
4814
4814
  isDisabled,
4815
4815
  isSelected,
4816
4816
  hasError,
4817
- shouldExpand = false,
4818
4817
  animatedStyles
4819
4818
  }) {
4820
4819
  const sx = useSx();
@@ -4833,9 +4832,7 @@ function AnimatedChoiceItemView({
4833
4832
  isHovered,
4834
4833
  isPressed
4835
4834
  }),
4836
- padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4837
- flexGrow: shouldExpand ? 1 : undefined,
4838
- flexShrink: shouldExpand ? 1 : undefined
4835
+ padding: size === 'small' ? 'kitt.2' : 'kitt.4'
4839
4836
  });
4840
4837
  return /*#__PURE__*/jsx(Animated.View, {
4841
4838
  style: [style, animatedStyles],
@@ -4899,7 +4896,6 @@ function ChoiceItem({
4899
4896
  value,
4900
4897
  selected,
4901
4898
  disabled,
4902
- shouldExpand = false,
4903
4899
  children,
4904
4900
  isPressedInternal,
4905
4901
  isHoveredInternal,
@@ -4939,8 +4935,6 @@ function ChoiceItem({
4939
4935
  checked: selected
4940
4936
  },
4941
4937
  style: style,
4942
- flexGrow: shouldExpand ? 1 : undefined,
4943
- flexShrink: shouldExpand ? 1 : undefined,
4944
4938
  onBlur: onBlur,
4945
4939
  onFocus: onFocus,
4946
4940
  onPress: e => {
@@ -4960,8 +4954,6 @@ function ChoiceItem({
4960
4954
  });
4961
4955
  return /*#__PURE__*/jsxs(VStack, {
4962
4956
  space: "kitt.2",
4963
- flexGrow: shouldExpand ? 1 : undefined,
4964
- flexShrink: shouldExpand ? 1 : undefined,
4965
4957
  children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
4966
4958
  animatedStyles: backgroundStyles,
4967
4959
  isHovered: isHovered || isHoveredInternal,
@@ -4969,13 +4961,10 @@ function ChoiceItem({
4969
4961
  isSelected: selected,
4970
4962
  isPressed: isPressed || isPressedInternal,
4971
4963
  hasError: hasError,
4972
- shouldExpand: shouldExpand,
4973
4964
  size: size,
4974
4965
  children: [/*#__PURE__*/jsxs(Stack, {
4975
4966
  alignItems: "center",
4976
4967
  space: "kitt.2",
4977
- flexGrow: shouldExpand ? 1 : undefined,
4978
- flexShrink: shouldExpand ? 1 : undefined,
4979
4968
  children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
4980
4969
  color: textColor,
4981
4970
  icon: icon
@@ -5004,49 +4993,36 @@ function ChoiceItem({
5004
4993
  function ChoiceItemContainer({
5005
4994
  children,
5006
4995
  direction,
5007
- shouldExpand,
5008
4996
  isLast
5009
4997
  }) {
5010
4998
  const currentItemMarginValue = isLast ? undefined : 'kitt.3';
5011
- const directionFlexProps = direction === 'row' ? {
4999
+ const flexProps = direction === 'row' ? {
5012
5000
  flexGrow: 1,
5013
5001
  flexShrink: 1,
5014
5002
  flexBasis: 0
5015
5003
  } : {};
5016
- const shouldExpandFlexProps = shouldExpand ? {
5017
- flexGrow: 1,
5018
- flexShrink: 1
5019
- } : {};
5020
5004
  return /*#__PURE__*/jsx(View, {
5021
5005
  marginRight: direction === 'row' ? currentItemMarginValue : undefined,
5022
5006
  marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
5023
- ...directionFlexProps,
5024
- ...shouldExpandFlexProps,
5007
+ ...flexProps,
5025
5008
  children: children
5026
5009
  });
5027
5010
  }
5028
5011
 
5029
5012
  function ChoicesContainer({
5030
5013
  direction,
5031
- shouldExpand,
5032
5014
  contentContainerStyle,
5033
5015
  ...props
5034
5016
  }) {
5035
- const shouldExpandFlexProps = shouldExpand ? {
5036
- flexGrow: 1,
5037
- flexShrink: 1
5038
- } : {};
5039
5017
  if (direction === 'row') {
5040
- return /*#__PURE__*/jsx(ScrollView, {
5018
+ return /*#__PURE__*/jsx(ScrollView$2, {
5041
5019
  horizontal: true,
5042
- contentContainerStyle: shouldExpand ? shouldExpandFlexProps : contentContainerStyle,
5043
- ...props,
5044
- ...shouldExpandFlexProps
5020
+ contentContainerStyle: contentContainerStyle,
5021
+ ...props
5045
5022
  });
5046
5023
  }
5047
- return /*#__PURE__*/jsx(View, {
5048
- ...props,
5049
- ...shouldExpandFlexProps
5024
+ return /*#__PURE__*/jsx(View$2, {
5025
+ ...props
5050
5026
  });
5051
5027
  }
5052
5028
 
@@ -5058,7 +5034,6 @@ function Choices({
5058
5034
  type,
5059
5035
  direction = 'column',
5060
5036
  disabled,
5061
- shouldExpand = false,
5062
5037
  children,
5063
5038
  value,
5064
5039
  onPress,
@@ -5075,7 +5050,6 @@ function Choices({
5075
5050
  const sharedProps = {
5076
5051
  type,
5077
5052
  disabled,
5078
- shouldExpand,
5079
5053
  onPress: !isForm ? onPress : undefined,
5080
5054
  onChange: isForm ? newValue => {
5081
5055
  setCurrentValue(newValue);
@@ -5087,7 +5061,6 @@ function Choices({
5087
5061
  };
5088
5062
  return /*#__PURE__*/jsx(ChoicesContainer, {
5089
5063
  direction: direction,
5090
- shouldExpand: shouldExpand,
5091
5064
  testID: testID,
5092
5065
  id: id,
5093
5066
  style: style,
@@ -5099,7 +5072,6 @@ function Choices({
5099
5072
  });
5100
5073
  return /*#__PURE__*/jsx(ChoiceItemContainer, {
5101
5074
  direction: direction,
5102
- shouldExpand: shouldExpand,
5103
5075
  isLast: index === childrenArray.length - 1,
5104
5076
  children: element
5105
5077
  }, child.key);