@ornikar/kitt-universal 31.3.2-canary.a176fae6a745e6f1b650fe56c3dca27af6b8816f.0 → 31.4.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 (33) hide show
  1. package/CHANGELOG.md +3 -8
  2. package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputAddress/InputAddress.d.ts +8 -12
  4. package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
  5. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +4 -5
  6. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
  7. package/dist/definitions/index.d.ts +1 -4
  8. package/dist/definitions/index.d.ts.map +1 -1
  9. package/dist/index-metro.es.android.js +70 -148
  10. package/dist/index-metro.es.android.js.map +1 -1
  11. package/dist/index-metro.es.ios.js +70 -148
  12. package/dist/index-metro.es.ios.js.map +1 -1
  13. package/dist/index-node-22.17.cjs.js +5 -83
  14. package/dist/index-node-22.17.cjs.js.map +1 -1
  15. package/dist/index-node-22.17.cjs.web.css +0 -1
  16. package/dist/index-node-22.17.cjs.web.js +8 -87
  17. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  18. package/dist/index-node-22.17.es.mjs +6 -83
  19. package/dist/index-node-22.17.es.mjs.map +1 -1
  20. package/dist/index-node-22.17.es.web.css +0 -1
  21. package/dist/index-node-22.17.es.web.mjs +9 -87
  22. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  23. package/dist/index.es.js +70 -149
  24. package/dist/index.es.js.map +1 -1
  25. package/dist/index.es.web.js +59 -139
  26. package/dist/index.es.web.js.map +1 -1
  27. package/dist/styles.css +0 -1
  28. package/dist/tsbuildinfo +1 -1
  29. package/package.json +3 -3
  30. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +0 -15
  31. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +0 -1
  32. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +0 -7
  33. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +0 -1
@@ -1,4 +1,3 @@
1
- .kitt-u_overflowHidden_otm3u3{overflow:hidden;}
2
1
  .kitt-u_contentAnimationEnter_c11xxy4r{opacity:0;-webkit-transform:rotateZ(5deg) scale(0.8);-ms-transform:rotateZ(5deg) scale(0.8);transform:rotateZ(5deg) scale(0.8);}
3
2
  .kitt-u_contentAnimatioEnterActive_cl52117{opacity:1;-webkit-transform:rotateZ(0) scale(1);-ms-transform:rotateZ(0) scale(1);transform:rotateZ(0) scale(1);-webkit-transition:all 400ms cubic-bezier(0.77,0,0.175,1);transition:all 400ms cubic-bezier(0.77,0,0.175,1);}
4
3
  .kitt-u_contentAnimatioExit_cyjczep{opacity:1;-webkit-transform:rotateZ(0) scale(1);-ms-transform:rotateZ(0) scale(1);transform:rotateZ(0) scale(1);}
@@ -4224,18 +4224,17 @@ function useStaticBottomSheet(Content) {
4224
4224
  };
4225
4225
  }
4226
4226
 
4227
- const overflowHidden = "kitt-u_overflowHidden_otm3u3";
4228
4227
  function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
4229
4228
  react.useEffect(() => {
4230
4229
  if (shouldBlockScroll) {
4231
- document.body.classList.add(overflowHidden);
4230
+ document.body.style.overflow = 'hidden';
4232
4231
  } else if (!isInitialRender) {
4233
- document.body.classList.remove(overflowHidden);
4232
+ document.body.style.overflow = '';
4234
4233
  }
4235
4234
  return () => {
4236
4235
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- When leaving the website, document.body can be null
4237
4236
  if (document.body) {
4238
- document.body.classList.remove(overflowHidden);
4237
+ document.body.style.overflow = '';
4239
4238
  }
4240
4239
  };
4241
4240
  }, [shouldBlockScroll, isInitialRender]);
@@ -6247,83 +6246,6 @@ function ImagePicker({
6247
6246
  });
6248
6247
  }
6249
6248
 
6250
- function InputAddressOption({
6251
- item,
6252
- mainText,
6253
- secondaryText
6254
- }) {
6255
- const sharedTransform = {
6256
- style: {
6257
- transform: 'translateY(4px)'
6258
- }
6259
- };
6260
- return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
6261
- item: item,
6262
- testID: "kitt.InputAddressOption.item",
6263
- children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
6264
- space: "kitt.2",
6265
- children: [/*#__PURE__*/jsxRuntime.jsx(View, {
6266
- _web: sharedTransform,
6267
- _ios: sharedTransform,
6268
- _android: sharedTransform,
6269
- children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
6270
- icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
6271
- color: "black"
6272
- })
6273
- }), /*#__PURE__*/jsxRuntime.jsx(View, {
6274
- flexShrink: 1,
6275
- children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
6276
- children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
6277
- variant: "bold",
6278
- children: mainText
6279
- }), secondaryText ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
6280
- color: "black-light",
6281
- variant: "bold",
6282
- children: [' ', secondaryText]
6283
- }) : null]
6284
- })
6285
- })]
6286
- })
6287
- });
6288
- }
6289
-
6290
- function InputAddress({
6291
- errorElement,
6292
- initialValue,
6293
- emptyResultsElement,
6294
- onChange,
6295
- items,
6296
- isLoading,
6297
- hasError,
6298
- onInputChange,
6299
- onSelectItem,
6300
- convertInitialValue,
6301
- children,
6302
- ...props
6303
- }) {
6304
- const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
6305
- return /*#__PURE__*/jsxRuntime.jsx(Autocomplete, {
6306
- ...props,
6307
- initialValue: formattedInitialValue,
6308
- right: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
6309
- icon: /*#__PURE__*/jsxRuntime.jsx(LoaderIcon, {}),
6310
- color: "kitt.black"
6311
- }) : undefined,
6312
- errorElement: hasError ? errorElement : null,
6313
- emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
6314
- onInputChange: value => onInputChange(value),
6315
- onChange: item => onSelectItem(item, onChange),
6316
- children: items.map(item => {
6317
- const child = children(item);
6318
- return /*#__PURE__*/react.cloneElement(child, {
6319
- key: child.key,
6320
- item
6321
- });
6322
- })
6323
- });
6324
- }
6325
- InputAddress.Option = InputAddressOption;
6326
-
6327
6249
  const GoogleMapsApiKeyContext = /*#__PURE__*/react.createContext(undefined);
6328
6250
  function GoogleMapsApiKeyProvider({
6329
6251
  children,
@@ -6649,7 +6571,7 @@ function useGoogleMapsAutocomplete() {
6649
6571
  return context;
6650
6572
  }
6651
6573
 
6652
- function InputAddressOptionLegacy({
6574
+ function InputAddressOption({
6653
6575
  item
6654
6576
  }) {
6655
6577
  const sharedTransform = {
@@ -6659,7 +6581,7 @@ function InputAddressOptionLegacy({
6659
6581
  };
6660
6582
  return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
6661
6583
  item: item,
6662
- testID: "kitt.InputAddressOptionLegacy.item",
6584
+ testID: "kitt.InputAddressOption.item",
6663
6585
  children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
6664
6586
  space: "kitt.2",
6665
6587
  children: [/*#__PURE__*/jsxRuntime.jsx(View, {
@@ -6720,7 +6642,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
6720
6642
  };
6721
6643
  }
6722
6644
 
6723
- function InputAddressLegacy({
6645
+ function InputAddress({
6724
6646
  initialValue,
6725
6647
  itemToString = defaultItemToString,
6726
6648
  errorElement,
@@ -6753,12 +6675,12 @@ function InputAddressLegacy({
6753
6675
  onChange: v => {
6754
6676
  onSelectItem(v, onChange);
6755
6677
  },
6756
- children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(InputAddressOptionLegacy, {
6678
+ children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(InputAddressOption, {
6757
6679
  item: item
6758
6680
  }, item.place_id))
6759
6681
  });
6760
6682
  }
6761
- InputAddressLegacy.Option = InputAddressOptionLegacy;
6683
+ InputAddress.Option = InputAddressOption;
6762
6684
 
6763
6685
  const InputEmail = /*#__PURE__*/react.forwardRef((props, ref) => {
6764
6686
  return /*#__PURE__*/jsxRuntime.jsx(InputText, {
@@ -13762,7 +13684,6 @@ exports.Image = Image;
13762
13684
  exports.ImagePicker = ImagePicker;
13763
13685
  exports.InfoCard = InfoCard;
13764
13686
  exports.InputAddress = InputAddress;
13765
- exports.InputAddressLegacy = InputAddressLegacy;
13766
13687
  exports.InputEmail = InputEmail;
13767
13688
  exports.InputFeedback = InputFeedback;
13768
13689
  exports.InputField = InputField;