@ornikar/kitt-universal 31.0.2-canary.e53cdb7e12a8aa3be6ae21c546ec9bcaca9b660c.0 → 31.1.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 (47) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +0 -3
  3. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
  4. package/dist/definitions/index.d.ts +1 -0
  5. package/dist/definitions/index.d.ts.map +1 -1
  6. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +93 -0
  7. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  8. package/dist/definitions/themes/default.d.ts +93 -0
  9. package/dist/definitions/themes/default.d.ts.map +1 -1
  10. package/dist/definitions/themes/late-ocean/colors.d.ts +93 -0
  11. package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
  12. package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts +2 -0
  13. package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts.map +1 -0
  14. package/dist/index-metro.es.android.js +111 -5
  15. package/dist/index-metro.es.android.js.map +1 -1
  16. package/dist/index-metro.es.ios.js +111 -5
  17. package/dist/index-metro.es.ios.js.map +1 -1
  18. package/dist/index-node-22.17.cjs.js +111 -3
  19. package/dist/index-node-22.17.cjs.js.map +1 -1
  20. package/dist/index-node-22.17.cjs.web.js +109 -0
  21. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  22. package/dist/index-node-22.17.es.mjs +111 -5
  23. package/dist/index-node-22.17.es.mjs.map +1 -1
  24. package/dist/index-node-22.17.es.web.mjs +109 -2
  25. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  26. package/dist/index.es.js +113 -6
  27. package/dist/index.es.js.map +1 -1
  28. package/dist/index.es.web.js +111 -2
  29. package/dist/index.es.web.js.map +1 -1
  30. package/dist/linaria-themes-metro.es.android.js +96 -0
  31. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  32. package/dist/linaria-themes-metro.es.ios.js +96 -0
  33. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  34. package/dist/linaria-themes-node-22.17.cjs.js +96 -0
  35. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  36. package/dist/linaria-themes-node-22.17.cjs.web.js +96 -0
  37. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  38. package/dist/linaria-themes-node-22.17.es.mjs +96 -0
  39. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  40. package/dist/linaria-themes-node-22.17.es.web.mjs +96 -0
  41. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  42. package/dist/linaria-themes.es.js +96 -0
  43. package/dist/linaria-themes.es.js.map +1 -1
  44. package/dist/linaria-themes.es.web.js +96 -0
  45. package/dist/linaria-themes.es.web.js.map +1 -1
  46. package/dist/tsbuildinfo +1 -1
  47. package/package.json +2 -1
@@ -6,7 +6,7 @@ export { useClipboard, useContrastText, useMediaQuery, useSx, useToken } from 'n
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
8
8
  import _extends from '@babel/runtime/helpers/extends';
9
- import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate } from 'react-native-reanimated';
9
+ import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate, ReducedMotionConfig, ReduceMotion } from 'react-native-reanimated';
10
10
  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';
11
11
  export { useWindowDimensions as useWindowSize } from 'react-native';
12
12
  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';
@@ -26,6 +26,7 @@ import { Picker as Picker$1 } from '@react-native-picker/picker';
26
26
  import { LinearGradient } from 'expo-linear-gradient';
27
27
  import { useFloating, offset, autoPlacement } from '@floating-ui/react-native';
28
28
  import { makeDecorator } from '@storybook/addons';
29
+ import isChromatic from 'chromatic/isChromatic';
29
30
 
30
31
  const View = View$1;
31
32
  const ScrollView = ScrollView$1;
@@ -164,6 +165,102 @@ const colors = {
164
165
  overlay: {
165
166
  dark: deepPurpleColorPalette['grey-alpha.50'],
166
167
  light: deepPurpleColorPalette['white-alpha.80']
168
+ },
169
+ // Bumper semantic tokens
170
+ // Should be kept in sync with the light theme in bumper
171
+ // https://github.com/ornikar/kitt/blob/79e367e962c957c016c4df67dbcf515c8f45ff0e/@ornikar/bumper/src/themes/light.ts#L6
172
+ bumper: {
173
+ content: {
174
+ base: {
175
+ hi: deepPurpleColorPalette['grey.9'],
176
+ mid: deepPurpleColorPalette['grey.7'],
177
+ low: deepPurpleColorPalette['grey.5'],
178
+ onContrasted: {
179
+ hi: deepPurpleColorPalette['grey.0'],
180
+ mid: deepPurpleColorPalette['white-alpha.80'],
181
+ low: deepPurpleColorPalette['white-alpha.60']
182
+ }
183
+ },
184
+ accent: deepPurpleColorPalette['deepPurple.8'],
185
+ promo: deepPurpleColorPalette['lightning.9'],
186
+ info: deepPurpleColorPalette['blue.7'],
187
+ success: deepPurpleColorPalette['green.7'],
188
+ warning: deepPurpleColorPalette['yellow.7'],
189
+ danger: deepPurpleColorPalette['red.7'],
190
+ muted: deepPurpleColorPalette['beige.6'],
191
+ disabled: deepPurpleColorPalette['grey.3']
192
+ },
193
+ bg: {
194
+ base: {
195
+ hi: {
196
+ default: deepPurpleColorPalette['beige.2'],
197
+ pressed: deepPurpleColorPalette['beige.3']
198
+ },
199
+ mid: {
200
+ default: deepPurpleColorPalette['beige.1'],
201
+ pressed: deepPurpleColorPalette['beige.2']
202
+ },
203
+ low: {
204
+ default: deepPurpleColorPalette['grey.0'],
205
+ pressed: deepPurpleColorPalette['beige.1']
206
+ }
207
+ },
208
+ accent: {
209
+ default: deepPurpleColorPalette['deepPurple.8'],
210
+ pressed: deepPurpleColorPalette['deepPurple.7']
211
+ },
212
+ promo: {
213
+ hi: {
214
+ default: deepPurpleColorPalette['lightning.9'],
215
+ pressed: deepPurpleColorPalette['lightning.8']
216
+ },
217
+ mid: {
218
+ default: deepPurpleColorPalette['lightning.5'],
219
+ pressed: deepPurpleColorPalette['lightning.4']
220
+ }
221
+ },
222
+ highlight: {
223
+ default: deepPurpleColorPalette['blue.1'],
224
+ pressed: deepPurpleColorPalette['blue.2']
225
+ },
226
+ info: {
227
+ hi: deepPurpleColorPalette['blue.6'],
228
+ mid: deepPurpleColorPalette['blue.1']
229
+ },
230
+ success: {
231
+ hi: deepPurpleColorPalette['green.6'],
232
+ mid: deepPurpleColorPalette['green.1']
233
+ },
234
+ warning: {
235
+ hi: deepPurpleColorPalette['yellow.6'],
236
+ mid: deepPurpleColorPalette['yellow.1']
237
+ },
238
+ danger: {
239
+ hi: deepPurpleColorPalette['red.6'],
240
+ mid: deepPurpleColorPalette['red.1']
241
+ },
242
+ disabled: {
243
+ hi: deepPurpleColorPalette['grey.3'],
244
+ mid: deepPurpleColorPalette['grey.1']
245
+ },
246
+ overlay: deepPurpleColorPalette['grey-alpha.50']
247
+ },
248
+ border: {
249
+ base: {
250
+ hi: deepPurpleColorPalette['grey.9'],
251
+ mid: deepPurpleColorPalette['beige.3'],
252
+ onContrasted: {
253
+ hi: deepPurpleColorPalette['grey.0'],
254
+ mid: deepPurpleColorPalette['white-alpha.20']
255
+ }
256
+ },
257
+ accent: deepPurpleColorPalette['deepPurple.8'],
258
+ info: deepPurpleColorPalette['blue.6'],
259
+ success: deepPurpleColorPalette['green.6'],
260
+ warning: deepPurpleColorPalette['yellow.6'],
261
+ danger: deepPurpleColorPalette['red.6'],
262
+ disabled: deepPurpleColorPalette['grey.2']
263
+ }
167
264
  }
168
265
  };
169
266
 
@@ -11604,7 +11701,7 @@ function NavigationBottomSheet({
11604
11701
  snapPoints,
11605
11702
  maxDynamicContentSize,
11606
11703
  isVisible,
11607
- isExpanded = false,
11704
+ isExpanded,
11608
11705
  onClose
11609
11706
  }) {
11610
11707
  const bottomSheetRef = useBottomSheet();
@@ -11618,8 +11715,7 @@ function NavigationBottomSheet({
11618
11715
  }
11619
11716
  }, [bottomSheetRef, isVisible]);
11620
11717
  useEffect(() => {
11621
- if (!isVisible) return;
11622
- if (isExpanded) {
11718
+ if (isVisible && isExpanded) {
11623
11719
  var _bottomSheetRef$curre3;
11624
11720
  (_bottomSheetRef$curre3 = bottomSheetRef.current) === null || _bottomSheetRef$curre3 === void 0 || _bottomSheetRef$curre3.expand();
11625
11721
  } else {
@@ -13875,6 +13971,16 @@ const TypographyLink = /*#__PURE__*/forwardRef((_ref, ref) => {
13875
13971
  });
13876
13972
  });
13877
13973
 
13974
+ const ChromaticReducedMotionDecorator = makeDecorator({
13975
+ name: 'ChromaticReducedMotionDecorator',
13976
+ parameterName: 'chromaticReducedMotion',
13977
+ wrapper: (storyFn, context) => /*#__PURE__*/jsxs(Fragment, {
13978
+ children: [isChromatic() ? /*#__PURE__*/jsx(ReducedMotionConfig, {
13979
+ mode: ReduceMotion.Always
13980
+ }) : null, storyFn(context)]
13981
+ })
13982
+ });
13983
+
13878
13984
  function KittThemeProvider({
13879
13985
  isSSR,
13880
13986
  children,
@@ -14237,5 +14343,5 @@ function VerticalSteps(_ref) {
14237
14343
  VerticalSteps.Step = Step;
14238
14344
  VerticalSteps.BorderlessStep = BorderlessStep;
14239
14345
 
14240
- export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
14346
+ export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
14241
14347
  //# sourceMappingURL=index-metro.es.ios.js.map