@ornikar/kitt-universal 31.3.2-canary.1a5b65d2fbfa0e00bf6c237b7d017b61dce7e75b.0 → 31.3.2-canary.2f602b2cfade63278a988a7f253e6de89bdee0e8.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.
- package/CHANGELOG.md +3 -2
- package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts +9 -15
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +4 -5
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +1 -4
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +106 -186
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +106 -186
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +41 -121
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +0 -1
- package/dist/index-node-22.17.cjs.web.js +44 -125
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +42 -121
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +0 -1
- package/dist/index-node-22.17.es.web.mjs +45 -125
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +105 -188
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +94 -178
- package/dist/index.es.web.js.map +1 -1
- package/dist/styles.css +0 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +0 -15
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +0 -1
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +0 -7
- 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.
|
|
4230
|
+
document.body.style.overflow = 'hidden';
|
|
4232
4231
|
} else if (!isInitialRender) {
|
|
4233
|
-
document.body.
|
|
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.
|
|
4237
|
+
document.body.style.overflow = '';
|
|
4239
4238
|
}
|
|
4240
4239
|
};
|
|
4241
4240
|
}, [shouldBlockScroll, isInitialRender]);
|
|
@@ -6247,123 +6246,6 @@ function ImagePicker({
|
|
|
6247
6246
|
});
|
|
6248
6247
|
}
|
|
6249
6248
|
|
|
6250
|
-
function InputAddressOption({
|
|
6251
|
-
item,
|
|
6252
|
-
itemToMainText,
|
|
6253
|
-
itemToSecondaryText
|
|
6254
|
-
}) {
|
|
6255
|
-
const sharedTransform = {
|
|
6256
|
-
style: {
|
|
6257
|
-
transform: 'translateY(4px)'
|
|
6258
|
-
}
|
|
6259
|
-
};
|
|
6260
|
-
const mainText = itemToMainText(item);
|
|
6261
|
-
const secondaryText = itemToSecondaryText(item);
|
|
6262
|
-
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6263
|
-
item: item,
|
|
6264
|
-
testID: "kitt.InputAddressOption.item",
|
|
6265
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
6266
|
-
space: "kitt.2",
|
|
6267
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6268
|
-
_web: sharedTransform,
|
|
6269
|
-
_ios: sharedTransform,
|
|
6270
|
-
_android: sharedTransform,
|
|
6271
|
-
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
6272
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
6273
|
-
color: "black"
|
|
6274
|
-
})
|
|
6275
|
-
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6276
|
-
flexShrink: 1,
|
|
6277
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6278
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6279
|
-
variant: "bold",
|
|
6280
|
-
children: mainText
|
|
6281
|
-
}), secondaryText ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6282
|
-
color: "black-light",
|
|
6283
|
-
variant: "bold",
|
|
6284
|
-
children: [' ', secondaryText]
|
|
6285
|
-
}) : null]
|
|
6286
|
-
})
|
|
6287
|
-
})]
|
|
6288
|
-
})
|
|
6289
|
-
});
|
|
6290
|
-
}
|
|
6291
|
-
|
|
6292
|
-
function InputAddressOptionLegacy({
|
|
6293
|
-
item
|
|
6294
|
-
}) {
|
|
6295
|
-
const sharedTransform = {
|
|
6296
|
-
style: {
|
|
6297
|
-
transform: 'translateY(4px)'
|
|
6298
|
-
}
|
|
6299
|
-
};
|
|
6300
|
-
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6301
|
-
item: item,
|
|
6302
|
-
testID: "kitt.InputAddressOptionLegacy.item",
|
|
6303
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
6304
|
-
space: "kitt.2",
|
|
6305
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6306
|
-
_web: sharedTransform,
|
|
6307
|
-
_ios: sharedTransform,
|
|
6308
|
-
_android: sharedTransform,
|
|
6309
|
-
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
6310
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
6311
|
-
color: "black"
|
|
6312
|
-
})
|
|
6313
|
-
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6314
|
-
flexShrink: 1,
|
|
6315
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6316
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6317
|
-
variant: "bold",
|
|
6318
|
-
children: item.structured_formatting.main_text
|
|
6319
|
-
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6320
|
-
color: "black-light",
|
|
6321
|
-
variant: "bold",
|
|
6322
|
-
children: [' ', item.structured_formatting.secondary_text]
|
|
6323
|
-
}) : null]
|
|
6324
|
-
})
|
|
6325
|
-
})]
|
|
6326
|
-
})
|
|
6327
|
-
});
|
|
6328
|
-
}
|
|
6329
|
-
|
|
6330
|
-
function InputAddress({
|
|
6331
|
-
errorElement,
|
|
6332
|
-
initialValue,
|
|
6333
|
-
emptyResultsElement,
|
|
6334
|
-
onChange,
|
|
6335
|
-
items,
|
|
6336
|
-
isLoading,
|
|
6337
|
-
hasError,
|
|
6338
|
-
onInputChange,
|
|
6339
|
-
onSelectItem,
|
|
6340
|
-
convertInitialValue,
|
|
6341
|
-
itemToMainText,
|
|
6342
|
-
itemToSecondaryText,
|
|
6343
|
-
itemToKey,
|
|
6344
|
-
...props
|
|
6345
|
-
}) {
|
|
6346
|
-
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
6347
|
-
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete, {
|
|
6348
|
-
...props,
|
|
6349
|
-
initialValue: formattedInitialValue,
|
|
6350
|
-
right: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
6351
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(LoaderIcon, {}),
|
|
6352
|
-
color: "kitt.black"
|
|
6353
|
-
}) : undefined,
|
|
6354
|
-
errorElement: hasError ? errorElement : null,
|
|
6355
|
-
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
6356
|
-
onInputChange: value => onInputChange(value),
|
|
6357
|
-
onChange: item => onSelectItem(item, onChange),
|
|
6358
|
-
children: items.map(item => /*#__PURE__*/jsxRuntime.jsx(InputAddressOption, {
|
|
6359
|
-
item: item,
|
|
6360
|
-
itemToMainText: itemToMainText,
|
|
6361
|
-
itemToSecondaryText: itemToSecondaryText
|
|
6362
|
-
}, itemToKey(item)))
|
|
6363
|
-
});
|
|
6364
|
-
}
|
|
6365
|
-
InputAddress.Option = InputAddressOptionLegacy;
|
|
6366
|
-
|
|
6367
6249
|
const GoogleMapsApiKeyContext = /*#__PURE__*/react.createContext(undefined);
|
|
6368
6250
|
function GoogleMapsApiKeyProvider({
|
|
6369
6251
|
children,
|
|
@@ -6689,6 +6571,44 @@ function useGoogleMapsAutocomplete() {
|
|
|
6689
6571
|
return context;
|
|
6690
6572
|
}
|
|
6691
6573
|
|
|
6574
|
+
function InputAddressOption({
|
|
6575
|
+
item
|
|
6576
|
+
}) {
|
|
6577
|
+
const sharedTransform = {
|
|
6578
|
+
style: {
|
|
6579
|
+
transform: 'translateY(4px)'
|
|
6580
|
+
}
|
|
6581
|
+
};
|
|
6582
|
+
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
6583
|
+
item: item,
|
|
6584
|
+
testID: "kitt.InputAddressOption.item",
|
|
6585
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
6586
|
+
space: "kitt.2",
|
|
6587
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6588
|
+
_web: sharedTransform,
|
|
6589
|
+
_ios: sharedTransform,
|
|
6590
|
+
_android: sharedTransform,
|
|
6591
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
6592
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
6593
|
+
color: "black"
|
|
6594
|
+
})
|
|
6595
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
6596
|
+
flexShrink: 1,
|
|
6597
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6598
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6599
|
+
variant: "bold",
|
|
6600
|
+
children: item.structured_formatting.main_text
|
|
6601
|
+
}), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6602
|
+
color: "black-light",
|
|
6603
|
+
variant: "bold",
|
|
6604
|
+
children: [' ', item.structured_formatting.secondary_text]
|
|
6605
|
+
}) : null]
|
|
6606
|
+
})
|
|
6607
|
+
})]
|
|
6608
|
+
})
|
|
6609
|
+
});
|
|
6610
|
+
}
|
|
6611
|
+
|
|
6692
6612
|
function defaultItemToString(item) {
|
|
6693
6613
|
if (!item) return '';
|
|
6694
6614
|
return item.description;
|
|
@@ -6722,7 +6642,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6722
6642
|
};
|
|
6723
6643
|
}
|
|
6724
6644
|
|
|
6725
|
-
function
|
|
6645
|
+
function InputAddress({
|
|
6726
6646
|
initialValue,
|
|
6727
6647
|
itemToString = defaultItemToString,
|
|
6728
6648
|
errorElement,
|
|
@@ -6755,12 +6675,12 @@ function InputAddressLegacy({
|
|
|
6755
6675
|
onChange: v => {
|
|
6756
6676
|
onSelectItem(v, onChange);
|
|
6757
6677
|
},
|
|
6758
|
-
children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(
|
|
6678
|
+
children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(InputAddressOption, {
|
|
6759
6679
|
item: item
|
|
6760
6680
|
}, item.place_id))
|
|
6761
6681
|
});
|
|
6762
6682
|
}
|
|
6763
|
-
|
|
6683
|
+
InputAddress.Option = InputAddressOption;
|
|
6764
6684
|
|
|
6765
6685
|
const InputEmail = /*#__PURE__*/react.forwardRef((props, ref) => {
|
|
6766
6686
|
return /*#__PURE__*/jsxRuntime.jsx(InputText, {
|
|
@@ -13764,7 +13684,6 @@ exports.Image = Image;
|
|
|
13764
13684
|
exports.ImagePicker = ImagePicker;
|
|
13765
13685
|
exports.InfoCard = InfoCard;
|
|
13766
13686
|
exports.InputAddress = InputAddress;
|
|
13767
|
-
exports.InputAddressLegacy = InputAddressLegacy;
|
|
13768
13687
|
exports.InputEmail = InputEmail;
|
|
13769
13688
|
exports.InputFeedback = InputFeedback;
|
|
13770
13689
|
exports.InputField = InputField;
|