@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.
- package/CHANGELOG.md +14 -6
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts +12 -8
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +15 -0
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +1 -0
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +5 -4
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +7 -0
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +4 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +14 -0
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +184 -101
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +184 -101
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +119 -36
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +8 -38
- package/dist/index-node-22.17.cjs.web.js +177 -101
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +119 -37
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +8 -38
- package/dist/index-node-22.17.es.web.mjs +177 -102
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +185 -101
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +225 -148
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +34 -30
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +34 -30
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +34 -30
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +34 -30
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +34 -30
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +34 -30
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +34 -30
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +34 -30
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +8 -38
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -864,15 +864,15 @@ const card = {
|
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
866
|
|
|
867
|
-
const webAnimationContentDuration$
|
|
868
|
-
const webAnimationContentEasing$
|
|
867
|
+
const webAnimationContentDuration$2 = 400;
|
|
868
|
+
const webAnimationContentEasing$2 = {
|
|
869
869
|
x1: 0.77,
|
|
870
870
|
y1: 0,
|
|
871
871
|
x2: 0.175,
|
|
872
872
|
y2: 1
|
|
873
873
|
};
|
|
874
|
-
const webAnimationOverlayDuration$
|
|
875
|
-
const webAnimationOverlayEasing$
|
|
874
|
+
const webAnimationOverlayDuration$2 = 250;
|
|
875
|
+
const webAnimationOverlayEasing$2 = {
|
|
876
876
|
x1: 0.42,
|
|
877
877
|
y1: 0,
|
|
878
878
|
x2: 1,
|
|
@@ -907,12 +907,12 @@ const cardModal = {
|
|
|
907
907
|
},
|
|
908
908
|
animation: {
|
|
909
909
|
overlay: {
|
|
910
|
-
duration: webAnimationOverlayDuration$
|
|
911
|
-
easing: webAnimationOverlayEasing$
|
|
910
|
+
duration: webAnimationOverlayDuration$2,
|
|
911
|
+
easing: webAnimationOverlayEasing$2
|
|
912
912
|
},
|
|
913
913
|
content: {
|
|
914
|
-
duration: webAnimationContentDuration$
|
|
915
|
-
easing: webAnimationContentEasing$
|
|
914
|
+
duration: webAnimationContentDuration$2,
|
|
915
|
+
easing: webAnimationContentEasing$2
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
};
|
|
@@ -968,15 +968,15 @@ const choices = {
|
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
970
|
|
|
971
|
-
const webAnimationContentDuration = 400;
|
|
972
|
-
const webAnimationContentEasing = {
|
|
971
|
+
const webAnimationContentDuration$1 = 400;
|
|
972
|
+
const webAnimationContentEasing$1 = {
|
|
973
973
|
x1: 0.77,
|
|
974
974
|
y1: 0,
|
|
975
975
|
x2: 0.175,
|
|
976
976
|
y2: 1
|
|
977
977
|
};
|
|
978
|
-
const webAnimationOverlayDuration = 250;
|
|
979
|
-
const webAnimationOverlayEasing = {
|
|
978
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
979
|
+
const webAnimationOverlayEasing$1 = {
|
|
980
980
|
x1: 0.42,
|
|
981
981
|
y1: 0,
|
|
982
982
|
x2: 1,
|
|
@@ -998,12 +998,12 @@ const dialogModal = {
|
|
|
998
998
|
},
|
|
999
999
|
animation: {
|
|
1000
1000
|
overlay: {
|
|
1001
|
-
duration: webAnimationOverlayDuration,
|
|
1002
|
-
easing: webAnimationOverlayEasing
|
|
1001
|
+
duration: webAnimationOverlayDuration$1,
|
|
1002
|
+
easing: webAnimationOverlayEasing$1
|
|
1003
1003
|
},
|
|
1004
1004
|
content: {
|
|
1005
|
-
duration: webAnimationContentDuration,
|
|
1006
|
-
easing: webAnimationContentEasing
|
|
1005
|
+
duration: webAnimationContentDuration$1,
|
|
1006
|
+
easing: webAnimationContentEasing$1
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
@@ -1912,6 +1912,20 @@ const forms = {
|
|
|
1912
1912
|
timePicker
|
|
1913
1913
|
};
|
|
1914
1914
|
|
|
1915
|
+
const webAnimationContentDuration = 600;
|
|
1916
|
+
const webAnimationContentEasing = {
|
|
1917
|
+
x1: 0.77,
|
|
1918
|
+
y1: 0,
|
|
1919
|
+
x2: 0.175,
|
|
1920
|
+
y2: 1
|
|
1921
|
+
};
|
|
1922
|
+
const webAnimationOverlayDuration = 250;
|
|
1923
|
+
const webAnimationOverlayEasing = {
|
|
1924
|
+
x1: 0.42,
|
|
1925
|
+
y1: 0,
|
|
1926
|
+
x2: 1,
|
|
1927
|
+
y2: 1
|
|
1928
|
+
};
|
|
1915
1929
|
const fullscreenModal = {
|
|
1916
1930
|
header: {
|
|
1917
1931
|
height: 56
|
|
@@ -1925,22 +1939,12 @@ const fullscreenModal = {
|
|
|
1925
1939
|
},
|
|
1926
1940
|
animation: {
|
|
1927
1941
|
overlay: {
|
|
1928
|
-
duration:
|
|
1929
|
-
easing:
|
|
1930
|
-
x1: 0.42,
|
|
1931
|
-
y1: 0,
|
|
1932
|
-
x2: 1,
|
|
1933
|
-
y2: 1
|
|
1934
|
-
}
|
|
1942
|
+
duration: webAnimationOverlayDuration,
|
|
1943
|
+
easing: webAnimationOverlayEasing
|
|
1935
1944
|
},
|
|
1936
1945
|
content: {
|
|
1937
|
-
duration:
|
|
1938
|
-
easing:
|
|
1939
|
-
x1: 0.77,
|
|
1940
|
-
y1: 0,
|
|
1941
|
-
x2: 0.175,
|
|
1942
|
-
y2: 1
|
|
1943
|
-
}
|
|
1946
|
+
duration: webAnimationContentDuration,
|
|
1947
|
+
easing: webAnimationContentEasing
|
|
1944
1948
|
}
|
|
1945
1949
|
}
|
|
1946
1950
|
};
|
|
@@ -5202,7 +5206,8 @@ function DialogModalAnimation({
|
|
|
5202
5206
|
onEntered,
|
|
5203
5207
|
onExit,
|
|
5204
5208
|
onExited,
|
|
5205
|
-
onClose
|
|
5209
|
+
onClose,
|
|
5210
|
+
testID
|
|
5206
5211
|
}) {
|
|
5207
5212
|
const [isModalVisible, setIsModalVisible] = React.useState(visible);
|
|
5208
5213
|
const [isContentVisible, setIsContentVisible] = React.useState(false);
|
|
@@ -5237,6 +5242,7 @@ function DialogModalAnimation({
|
|
|
5237
5242
|
flexGrow: 1,
|
|
5238
5243
|
justifyContent: "center",
|
|
5239
5244
|
alignItems: "center",
|
|
5245
|
+
testID: testID,
|
|
5240
5246
|
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$1, {
|
|
5241
5247
|
visible: isContentVisible,
|
|
5242
5248
|
onExited: handleAnimationExited,
|
|
@@ -6994,6 +7000,82 @@ function FilePicker({
|
|
|
6994
7000
|
});
|
|
6995
7001
|
}
|
|
6996
7002
|
|
|
7003
|
+
function InputAddressOption({
|
|
7004
|
+
item,
|
|
7005
|
+
mainText,
|
|
7006
|
+
secondaryText
|
|
7007
|
+
}) {
|
|
7008
|
+
const sharedTransform = {
|
|
7009
|
+
style: {
|
|
7010
|
+
transform: 'translateY(4px)'
|
|
7011
|
+
}
|
|
7012
|
+
};
|
|
7013
|
+
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
7014
|
+
item: item,
|
|
7015
|
+
testID: "kitt.InputAddressOption.item",
|
|
7016
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
7017
|
+
space: "kitt.2",
|
|
7018
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7019
|
+
_web: sharedTransform,
|
|
7020
|
+
_ios: sharedTransform,
|
|
7021
|
+
_android: sharedTransform,
|
|
7022
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
7023
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.MapPinRegularIcon, {}),
|
|
7024
|
+
color: "black"
|
|
7025
|
+
})
|
|
7026
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7027
|
+
flexShrink: 1,
|
|
7028
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7029
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7030
|
+
variant: "bold",
|
|
7031
|
+
children: mainText
|
|
7032
|
+
}), secondaryText ? /*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7033
|
+
color: "black-light",
|
|
7034
|
+
variant: "bold",
|
|
7035
|
+
children: [' ', secondaryText]
|
|
7036
|
+
}) : null]
|
|
7037
|
+
})
|
|
7038
|
+
})]
|
|
7039
|
+
})
|
|
7040
|
+
});
|
|
7041
|
+
}
|
|
7042
|
+
|
|
7043
|
+
function InputAddress({
|
|
7044
|
+
errorElement,
|
|
7045
|
+
initialValue,
|
|
7046
|
+
emptyResultsElement,
|
|
7047
|
+
onChange,
|
|
7048
|
+
items,
|
|
7049
|
+
isLoading,
|
|
7050
|
+
hasError,
|
|
7051
|
+
onInputChange,
|
|
7052
|
+
onSelectItem,
|
|
7053
|
+
convertInitialValue,
|
|
7054
|
+
renderItem,
|
|
7055
|
+
...props
|
|
7056
|
+
}) {
|
|
7057
|
+
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7058
|
+
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete, {
|
|
7059
|
+
...props,
|
|
7060
|
+
initialValue: formattedInitialValue,
|
|
7061
|
+
right: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
7062
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(LoaderIcon, {}),
|
|
7063
|
+
color: "kitt.black"
|
|
7064
|
+
}) : undefined,
|
|
7065
|
+
errorElement: hasError ? errorElement : null,
|
|
7066
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7067
|
+
onInputChange: value => onInputChange(value),
|
|
7068
|
+
onChange: item => onSelectItem(item, onChange),
|
|
7069
|
+
children: items.map(item => {
|
|
7070
|
+
const itemElement = renderItem(item);
|
|
7071
|
+
return /*#__PURE__*/React.cloneElement(itemElement, {
|
|
7072
|
+
item
|
|
7073
|
+
});
|
|
7074
|
+
})
|
|
7075
|
+
});
|
|
7076
|
+
}
|
|
7077
|
+
InputAddress.Option = InputAddressOption;
|
|
7078
|
+
|
|
6997
7079
|
const GoogleMapsApiKeyContext = /*#__PURE__*/React.createContext(undefined);
|
|
6998
7080
|
function GoogleMapsApiKeyProvider({
|
|
6999
7081
|
children,
|
|
@@ -7337,7 +7419,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
7337
7419
|
return context;
|
|
7338
7420
|
}
|
|
7339
7421
|
|
|
7340
|
-
function
|
|
7422
|
+
function InputAddressOptionLegacy({
|
|
7341
7423
|
item
|
|
7342
7424
|
}) {
|
|
7343
7425
|
const sharedTransform = {
|
|
@@ -7347,7 +7429,7 @@ function InputAddressOption({
|
|
|
7347
7429
|
};
|
|
7348
7430
|
return /*#__PURE__*/jsxRuntime.jsx(Autocomplete.Option, {
|
|
7349
7431
|
item: item,
|
|
7350
|
-
testID: "kitt.
|
|
7432
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7351
7433
|
children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
7352
7434
|
space: "kitt.2",
|
|
7353
7435
|
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -7408,7 +7490,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7408
7490
|
};
|
|
7409
7491
|
}
|
|
7410
7492
|
|
|
7411
|
-
function
|
|
7493
|
+
function InputAddressLegacy({
|
|
7412
7494
|
initialValue,
|
|
7413
7495
|
itemToString = defaultItemToString,
|
|
7414
7496
|
errorElement,
|
|
@@ -7441,12 +7523,12 @@ function InputAddress({
|
|
|
7441
7523
|
onChange: v => {
|
|
7442
7524
|
onSelectItem(v, onChange);
|
|
7443
7525
|
},
|
|
7444
|
-
children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(
|
|
7526
|
+
children: state.items.map(item => /*#__PURE__*/jsxRuntime.jsx(InputAddressOptionLegacy, {
|
|
7445
7527
|
item: item
|
|
7446
7528
|
}, item.place_id))
|
|
7447
7529
|
});
|
|
7448
7530
|
}
|
|
7449
|
-
|
|
7531
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
7450
7532
|
|
|
7451
7533
|
const InputEmail = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
7452
7534
|
return /*#__PURE__*/jsxRuntime.jsx(InputText, {
|
|
@@ -14460,6 +14542,7 @@ exports.Image = Image;
|
|
|
14460
14542
|
exports.ImagePicker = ImagePicker;
|
|
14461
14543
|
exports.InfoCard = InfoCard;
|
|
14462
14544
|
exports.InputAddress = InputAddress;
|
|
14545
|
+
exports.InputAddressLegacy = InputAddressLegacy;
|
|
14463
14546
|
exports.InputEmail = InputEmail;
|
|
14464
14547
|
exports.InputFeedback = InputFeedback;
|
|
14465
14548
|
exports.InputField = InputField;
|