@ornikar/kitt-universal 31.4.1-canary.2fdbcaad37b7e76ba2442f7c56a4939349d51eb1.0 → 32.0.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +14 -6
  2. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts +1 -1
  3. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts.map +1 -1
  4. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  5. package/dist/definitions/forms/InputAddress/InputAddress.d.ts +12 -8
  6. package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
  7. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +15 -0
  8. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +1 -0
  9. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +5 -4
  10. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
  11. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +7 -0
  12. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +1 -0
  13. package/dist/definitions/index.d.ts +4 -1
  14. package/dist/definitions/index.d.ts.map +1 -1
  15. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +14 -0
  16. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  17. package/dist/index-metro.es.android.js +184 -101
  18. package/dist/index-metro.es.android.js.map +1 -1
  19. package/dist/index-metro.es.ios.js +184 -101
  20. package/dist/index-metro.es.ios.js.map +1 -1
  21. package/dist/index-node-22.17.cjs.js +119 -36
  22. package/dist/index-node-22.17.cjs.js.map +1 -1
  23. package/dist/index-node-22.17.cjs.web.css +8 -38
  24. package/dist/index-node-22.17.cjs.web.js +177 -101
  25. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  26. package/dist/index-node-22.17.es.mjs +119 -37
  27. package/dist/index-node-22.17.es.mjs.map +1 -1
  28. package/dist/index-node-22.17.es.web.css +8 -38
  29. package/dist/index-node-22.17.es.web.mjs +177 -102
  30. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  31. package/dist/index.es.js +185 -101
  32. package/dist/index.es.js.map +1 -1
  33. package/dist/index.es.web.js +225 -148
  34. package/dist/index.es.web.js.map +1 -1
  35. package/dist/linaria-themes-metro.es.android.js +34 -30
  36. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  37. package/dist/linaria-themes-metro.es.ios.js +34 -30
  38. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  39. package/dist/linaria-themes-node-22.17.cjs.js +34 -30
  40. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.cjs.web.js +34 -30
  42. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.es.mjs +34 -30
  44. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  45. package/dist/linaria-themes-node-22.17.es.web.mjs +34 -30
  46. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  47. package/dist/linaria-themes.es.js +34 -30
  48. package/dist/linaria-themes.es.js.map +1 -1
  49. package/dist/linaria-themes.es.web.js +34 -30
  50. package/dist/linaria-themes.es.web.js.map +1 -1
  51. package/dist/styles.css +8 -38
  52. package/dist/tsbuildinfo +1 -1
  53. package/package.json +1 -1
@@ -7,44 +7,14 @@
7
7
  .kitt-u_opacityExit_ogyytm1{opacity:1;}
8
8
  .kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
9
9
  .kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
10
- /* Overlay animation styles - uses CSS variables for theme values */
11
- .FullscreenModalAnimation-module_overlay-enter__L1J1X {
12
- opacity: 0;
13
- }
14
-
15
- .FullscreenModalAnimation-module_overlay-enter-active__gDEVb {
16
- opacity: 1;
17
- transition: opacity var(--overlay-duration) var(--overlay-easing);
18
- }
19
-
20
- .FullscreenModalAnimation-module_overlay-exit__Qx1WE {
21
- opacity: 1;
22
- }
23
-
24
- .FullscreenModalAnimation-module_overlay-exit-active__lFR3x {
25
- opacity: 0;
26
- transition: opacity var(--overlay-duration) var(--overlay-easing);
27
- }
28
-
29
- /* Content animation styles - uses CSS variables for theme values */
30
- .FullscreenModalAnimation-module_content-enter__JmCWa {
31
- transform: translateY(100%);
32
- }
33
-
34
- .FullscreenModalAnimation-module_content-enter-active__iaNRs {
35
- transform: translateY(0);
36
- transition: transform var(--content-duration) var(--content-easing);
37
- }
38
-
39
- .FullscreenModalAnimation-module_content-exit__hB0wY {
40
- transform: translateY(0);
41
- }
42
-
43
- .FullscreenModalAnimation-module_content-exit-active__BPVPo {
44
- transform: translateY(100%);
45
- transition: transform var(--content-duration) var(--content-easing);
46
- }
47
-
10
+ .kitt-u_slideInFromBottomEnter_s1717rto{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);}
11
+ .kitt-u_slideInFromBottomEnterActive_sux6xgc{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform 600ms cubic-bezier(0.77,0,0.175,1);-webkit-transition:transform 600ms cubic-bezier(0.77,0,0.175,1);transition:transform 600ms cubic-bezier(0.77,0,0.175,1);}
12
+ .kitt-u_slideInFromBottomExit_sl0lsxt{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}
13
+ .kitt-u_slideInFromBottomExitActive_srlzzmu{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 600ms cubic-bezier(0.77,0,0.175,1);-webkit-transition:transform 600ms cubic-bezier(0.77,0,0.175,1);transition:transform 600ms cubic-bezier(0.77,0,0.175,1);}
14
+ .kitt-u_opacityEnter_okm44hr{opacity:0;}
15
+ .kitt-u_opacityEnterActive_o2w8t0i{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
16
+ .kitt-u_opacityExit_o14r8iix{opacity:1;}
17
+ .kitt-u_opacityExitActive_oim72y2{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
48
18
  .kitt-u_enter_ereraf{-webkit-transform:translateY(8px);-ms-transform:translateY(8px);transform:translateY(8px);opacity:0;}
49
19
  .kitt-u_enterActive_e1jmsjrm{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out;}
50
20
  .kitt-u_exit_e1mwnccz{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;}
@@ -838,15 +838,15 @@ const card = {
838
838
  }
839
839
  };
840
840
 
841
- const webAnimationContentDuration$1 = 400;
842
- const webAnimationContentEasing$1 = {
841
+ const webAnimationContentDuration$2 = 400;
842
+ const webAnimationContentEasing$2 = {
843
843
  x1: 0.77,
844
844
  y1: 0,
845
845
  x2: 0.175,
846
846
  y2: 1
847
847
  };
848
- const webAnimationOverlayDuration$1 = 250;
849
- const webAnimationOverlayEasing$1 = {
848
+ const webAnimationOverlayDuration$2 = 250;
849
+ const webAnimationOverlayEasing$2 = {
850
850
  x1: 0.42,
851
851
  y1: 0,
852
852
  x2: 1,
@@ -881,12 +881,12 @@ const cardModal = {
881
881
  },
882
882
  animation: {
883
883
  overlay: {
884
- duration: webAnimationOverlayDuration$1,
885
- easing: webAnimationOverlayEasing$1
884
+ duration: webAnimationOverlayDuration$2,
885
+ easing: webAnimationOverlayEasing$2
886
886
  },
887
887
  content: {
888
- duration: webAnimationContentDuration$1,
889
- easing: webAnimationContentEasing$1
888
+ duration: webAnimationContentDuration$2,
889
+ easing: webAnimationContentEasing$2
890
890
  }
891
891
  }
892
892
  };
@@ -942,15 +942,15 @@ const choices = {
942
942
  }
943
943
  };
944
944
 
945
- const webAnimationContentDuration = 400;
946
- const webAnimationContentEasing = {
945
+ const webAnimationContentDuration$1 = 400;
946
+ const webAnimationContentEasing$1 = {
947
947
  x1: 0.77,
948
948
  y1: 0,
949
949
  x2: 0.175,
950
950
  y2: 1
951
951
  };
952
- const webAnimationOverlayDuration = 250;
953
- const webAnimationOverlayEasing = {
952
+ const webAnimationOverlayDuration$1 = 250;
953
+ const webAnimationOverlayEasing$1 = {
954
954
  x1: 0.42,
955
955
  y1: 0,
956
956
  x2: 1,
@@ -972,12 +972,12 @@ const dialogModal = {
972
972
  },
973
973
  animation: {
974
974
  overlay: {
975
- duration: webAnimationOverlayDuration,
976
- easing: webAnimationOverlayEasing
975
+ duration: webAnimationOverlayDuration$1,
976
+ easing: webAnimationOverlayEasing$1
977
977
  },
978
978
  content: {
979
- duration: webAnimationContentDuration,
980
- easing: webAnimationContentEasing
979
+ duration: webAnimationContentDuration$1,
980
+ easing: webAnimationContentEasing$1
981
981
  }
982
982
  }
983
983
  };
@@ -1886,6 +1886,20 @@ const forms = {
1886
1886
  timePicker
1887
1887
  };
1888
1888
 
1889
+ const webAnimationContentDuration = 600;
1890
+ const webAnimationContentEasing = {
1891
+ x1: 0.77,
1892
+ y1: 0,
1893
+ x2: 0.175,
1894
+ y2: 1
1895
+ };
1896
+ const webAnimationOverlayDuration = 250;
1897
+ const webAnimationOverlayEasing = {
1898
+ x1: 0.42,
1899
+ y1: 0,
1900
+ x2: 1,
1901
+ y2: 1
1902
+ };
1889
1903
  const fullscreenModal = {
1890
1904
  header: {
1891
1905
  height: 56
@@ -1899,22 +1913,12 @@ const fullscreenModal = {
1899
1913
  },
1900
1914
  animation: {
1901
1915
  overlay: {
1902
- duration: 250,
1903
- easing: {
1904
- x1: 0.42,
1905
- y1: 0,
1906
- x2: 1,
1907
- y2: 1
1908
- }
1916
+ duration: webAnimationOverlayDuration,
1917
+ easing: webAnimationOverlayEasing
1909
1918
  },
1910
1919
  content: {
1911
- duration: 600,
1912
- easing: {
1913
- x1: 0.77,
1914
- y1: 0,
1915
- x2: 0.175,
1916
- y2: 1
1917
- }
1920
+ duration: webAnimationContentDuration,
1921
+ easing: webAnimationContentEasing
1918
1922
  }
1919
1923
  }
1920
1924
  };
@@ -4331,17 +4335,17 @@ const contentAnimationClassNames = {
4331
4335
  exit: contentAnimatioExit,
4332
4336
  exitActive: contentAnimatioExitActive
4333
4337
  };
4334
- const opacityEnter = "kitt-u_opacityEnter_o1ae40dx";
4335
- const opacityEnterActive = "kitt-u_opacityEnterActive_o1t4vl7b";
4336
- const opacityExit = "kitt-u_opacityExit_ogyytm1";
4337
- const opacityExitActive = "kitt-u_opacityExitActive_o18xvk52";
4338
- const opacityClassNames = {
4339
- appear: opacityEnter,
4340
- appearActive: opacityEnterActive,
4341
- enter: opacityEnter,
4342
- enterActive: opacityEnterActive,
4343
- exit: opacityExit,
4344
- exitActive: opacityExitActive
4338
+ const opacityEnter$1 = "kitt-u_opacityEnter_o1ae40dx";
4339
+ const opacityEnterActive$1 = "kitt-u_opacityEnterActive_o1t4vl7b";
4340
+ const opacityExit$1 = "kitt-u_opacityExit_ogyytm1";
4341
+ const opacityExitActive$1 = "kitt-u_opacityExitActive_o18xvk52";
4342
+ const opacityClassNames$1 = {
4343
+ appear: opacityEnter$1,
4344
+ appearActive: opacityEnterActive$1,
4345
+ enter: opacityEnter$1,
4346
+ enterActive: opacityEnterActive$1,
4347
+ exit: opacityExit$1,
4348
+ exitActive: opacityExitActive$1
4345
4349
  };
4346
4350
  function CardModalAnimation({
4347
4351
  children,
@@ -4377,7 +4381,7 @@ function CardModalAnimation({
4377
4381
  ...sharedProps,
4378
4382
  nodeRef: overlayRef,
4379
4383
  timeout: isAnimationEnabled ? animation.overlay.duration : 0,
4380
- classNames: opacityClassNames,
4384
+ classNames: opacityClassNames$1,
4381
4385
  children: /*#__PURE__*/jsx(Overlay, {
4382
4386
  ref: overlayRef,
4383
4387
  onPress: onClose
@@ -5033,7 +5037,8 @@ function DialogModalAnimation({
5033
5037
  onEntered,
5034
5038
  onExit,
5035
5039
  onExited,
5036
- onClose
5040
+ onClose,
5041
+ testID
5037
5042
  }) {
5038
5043
  const [isModalVisible, setIsModalVisible] = useState(visible);
5039
5044
  const [isContentVisible, setIsContentVisible] = useState(false);
@@ -5067,6 +5072,7 @@ function DialogModalAnimation({
5067
5072
  flexGrow: 1,
5068
5073
  justifyContent: "center",
5069
5074
  alignItems: "center",
5075
+ testID: testID,
5070
5076
  children: [/*#__PURE__*/jsx(NativeOpacityAnimation, {
5071
5077
  visible: isContentVisible,
5072
5078
  onExited: handleAnimationExited,
@@ -6313,6 +6319,82 @@ function ImagePicker({
6313
6319
  });
6314
6320
  }
6315
6321
 
6322
+ function InputAddressOption({
6323
+ item,
6324
+ mainText,
6325
+ secondaryText
6326
+ }) {
6327
+ const sharedTransform = {
6328
+ style: {
6329
+ transform: 'translateY(4px)'
6330
+ }
6331
+ };
6332
+ return /*#__PURE__*/jsx(Autocomplete.Option, {
6333
+ item: item,
6334
+ testID: "kitt.InputAddressOption.item",
6335
+ children: /*#__PURE__*/jsxs(HStack, {
6336
+ space: "kitt.2",
6337
+ children: [/*#__PURE__*/jsx(View, {
6338
+ _web: sharedTransform,
6339
+ _ios: sharedTransform,
6340
+ _android: sharedTransform,
6341
+ children: /*#__PURE__*/jsx(TypographyIcon, {
6342
+ icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
6343
+ color: "black"
6344
+ })
6345
+ }), /*#__PURE__*/jsx(View, {
6346
+ flexShrink: 1,
6347
+ children: /*#__PURE__*/jsxs(Typography.Text, {
6348
+ children: [/*#__PURE__*/jsx(Typography.Text, {
6349
+ variant: "bold",
6350
+ children: mainText
6351
+ }), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
6352
+ color: "black-light",
6353
+ variant: "bold",
6354
+ children: [' ', secondaryText]
6355
+ }) : null]
6356
+ })
6357
+ })]
6358
+ })
6359
+ });
6360
+ }
6361
+
6362
+ function InputAddress({
6363
+ errorElement,
6364
+ initialValue,
6365
+ emptyResultsElement,
6366
+ onChange,
6367
+ items,
6368
+ isLoading,
6369
+ hasError,
6370
+ onInputChange,
6371
+ onSelectItem,
6372
+ convertInitialValue,
6373
+ renderItem,
6374
+ ...props
6375
+ }) {
6376
+ const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
6377
+ return /*#__PURE__*/jsx(Autocomplete, {
6378
+ ...props,
6379
+ initialValue: formattedInitialValue,
6380
+ right: isLoading ? /*#__PURE__*/jsx(Icon, {
6381
+ icon: /*#__PURE__*/jsx(LoaderIcon, {}),
6382
+ color: "kitt.black"
6383
+ }) : undefined,
6384
+ errorElement: hasError ? errorElement : null,
6385
+ emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
6386
+ onInputChange: value => onInputChange(value),
6387
+ onChange: item => onSelectItem(item, onChange),
6388
+ children: items.map(item => {
6389
+ const itemElement = renderItem(item);
6390
+ return /*#__PURE__*/cloneElement(itemElement, {
6391
+ item
6392
+ });
6393
+ })
6394
+ });
6395
+ }
6396
+ InputAddress.Option = InputAddressOption;
6397
+
6316
6398
  const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
6317
6399
  function GoogleMapsApiKeyProvider({
6318
6400
  children,
@@ -6638,7 +6720,7 @@ function useGoogleMapsAutocomplete() {
6638
6720
  return context;
6639
6721
  }
6640
6722
 
6641
- function InputAddressOption({
6723
+ function InputAddressOptionLegacy({
6642
6724
  item
6643
6725
  }) {
6644
6726
  const sharedTransform = {
@@ -6648,7 +6730,7 @@ function InputAddressOption({
6648
6730
  };
6649
6731
  return /*#__PURE__*/jsx(Autocomplete.Option, {
6650
6732
  item: item,
6651
- testID: "kitt.InputAddressOption.item",
6733
+ testID: "kitt.InputAddressOptionLegacy.item",
6652
6734
  children: /*#__PURE__*/jsxs(HStack, {
6653
6735
  space: "kitt.2",
6654
6736
  children: [/*#__PURE__*/jsx(View, {
@@ -6709,7 +6791,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
6709
6791
  };
6710
6792
  }
6711
6793
 
6712
- function InputAddress({
6794
+ function InputAddressLegacy({
6713
6795
  initialValue,
6714
6796
  itemToString = defaultItemToString,
6715
6797
  errorElement,
@@ -6742,12 +6824,12 @@ function InputAddress({
6742
6824
  onChange: v => {
6743
6825
  onSelectItem(v, onChange);
6744
6826
  },
6745
- children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
6827
+ children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOptionLegacy, {
6746
6828
  item: item
6747
6829
  }, item.place_id))
6748
6830
  });
6749
6831
  }
6750
- InputAddress.Option = InputAddressOption;
6832
+ InputAddressLegacy.Option = InputAddressOptionLegacy;
6751
6833
 
6752
6834
  const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
6753
6835
  return /*#__PURE__*/jsx(InputText, {
@@ -7638,23 +7720,29 @@ function FullscreenModalFooter({
7638
7720
  });
7639
7721
  }
7640
7722
 
7641
- const styles$1 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
7642
-
7643
- const overlayClassNames = {
7644
- appear: styles$1['overlay-enter'],
7645
- appearActive: styles$1['overlay-enter-active'],
7646
- enter: styles$1['overlay-enter'],
7647
- enterActive: styles$1['overlay-enter-active'],
7648
- exit: styles$1['overlay-exit'],
7649
- exitActive: styles$1['overlay-exit-active']
7650
- };
7723
+ const slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7724
+ const slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7725
+ const slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7726
+ const slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7651
7727
  const slideInClassNames = {
7652
- appear: styles$1['content-enter'],
7653
- appearActive: styles$1['content-enter-active'],
7654
- enter: styles$1['content-enter'],
7655
- enterActive: styles$1['content-enter-active'],
7656
- exit: styles$1['content-exit'],
7657
- exitActive: styles$1['content-exit-active']
7728
+ appear: slideInFromBottomEnter,
7729
+ appearActive: slideInFromBottomEnterActive,
7730
+ enter: slideInFromBottomEnter,
7731
+ enterActive: slideInFromBottomEnterActive,
7732
+ exit: slideInFromBottomExit,
7733
+ exitActive: slideInFromBottomExitActive
7734
+ };
7735
+ const opacityEnter = "kitt-u_opacityEnter_okm44hr";
7736
+ const opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7737
+ const opacityExit = "kitt-u_opacityExit_o14r8iix";
7738
+ const opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7739
+ const opacityClassNames = {
7740
+ appear: opacityEnter,
7741
+ appearActive: opacityEnterActive,
7742
+ enter: opacityEnter,
7743
+ enterActive: opacityEnterActive,
7744
+ exit: opacityExit,
7745
+ exitActive: opacityExitActive
7658
7746
  };
7659
7747
  function FullscreenModalAnimation({
7660
7748
  children,
@@ -7682,44 +7770,31 @@ function FullscreenModalAnimation({
7682
7770
  appear,
7683
7771
  unmountOnExit
7684
7772
  };
7685
-
7686
- // CSS custom properties for theme-based animation values
7687
- const overlayEasing = animation.overlay.easing;
7688
- const contentEasing = animation.content.easing;
7689
- const cssVariables = {
7690
- '--overlay-duration': `${animation.overlay.duration}ms`,
7691
- '--overlay-easing': `cubic-bezier(${overlayEasing.x1}, ${overlayEasing.y1}, ${overlayEasing.x2}, ${overlayEasing.y2})`,
7692
- '--content-duration': `${animation.content.duration}ms`,
7693
- '--content-easing': `cubic-bezier(${contentEasing.x1}, ${contentEasing.y1}, ${contentEasing.x2}, ${contentEasing.y2})`
7694
- };
7695
- return /*#__PURE__*/jsx(View, {
7773
+ return /*#__PURE__*/jsxs(View, {
7696
7774
  ...props,
7697
- children: /*#__PURE__*/jsxs("div", {
7698
- style: cssVariables,
7699
- children: [/*#__PURE__*/jsx(CSSTransition, {
7700
- ...sharedProps,
7701
- nodeRef: overlayRef,
7702
- timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7703
- classNames: overlayClassNames,
7704
- children: /*#__PURE__*/jsx(Overlay, {
7705
- ref: overlayRef,
7706
- onPress: onClose
7707
- })
7708
- }), /*#__PURE__*/jsx(CSSTransition, {
7709
- ...sharedProps,
7710
- nodeRef: contentRef,
7711
- timeout: isAnimationEnabled ? animation.content.duration : 0,
7712
- classNames: slideInClassNames,
7713
- onEnter: onEnter,
7714
- onEntered: onEntered,
7715
- onExit: onExit,
7716
- onExited: onExited,
7717
- children: /*#__PURE__*/jsx(View, {
7718
- ref: contentRef,
7719
- children: children
7720
- })
7721
- })]
7722
- })
7775
+ children: [/*#__PURE__*/jsx(CSSTransition, {
7776
+ ...sharedProps,
7777
+ nodeRef: overlayRef,
7778
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7779
+ classNames: opacityClassNames,
7780
+ children: /*#__PURE__*/jsx(Overlay, {
7781
+ ref: overlayRef,
7782
+ onPress: onClose
7783
+ })
7784
+ }), /*#__PURE__*/jsx(CSSTransition, {
7785
+ ...sharedProps,
7786
+ nodeRef: contentRef,
7787
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
7788
+ classNames: slideInClassNames,
7789
+ onEnter: onEnter,
7790
+ onEntered: onEntered,
7791
+ onExit: onExit,
7792
+ onExited: onExited,
7793
+ children: /*#__PURE__*/jsx(View, {
7794
+ ref: contentRef,
7795
+ children: children
7796
+ })
7797
+ })]
7723
7798
  });
7724
7799
  }
7725
7800
 
@@ -13718,5 +13793,5 @@ function VerticalSteps({
13718
13793
  VerticalSteps.Step = Step;
13719
13794
  VerticalSteps.BorderlessStep = BorderlessStep;
13720
13795
 
13721
- 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, 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 };
13796
+ 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, InputAddressLegacy, 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, 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 };
13722
13797
  //# sourceMappingURL=index-node-22.17.es.web.mjs.map