@ornikar/kitt-universal 21.0.2 → 22.0.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 +21 -0
- package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Button/FocusBorder.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +2 -2
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Arrow.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.d.ts +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +1 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/HoverBorder.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +2 -2
- package/dist/definitions/themes/default.d.ts +0 -2
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +0 -2
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +376 -46
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +3 -3
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts +3 -0
- package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts.map +1 -0
- package/dist/{index.es.ios.js → index-metro.es.android.js} +3576 -4152
- package/dist/index-metro.es.android.js.map +1 -0
- package/dist/{index.es.android.js → index-metro.es.ios.js} +3576 -4152
- package/dist/index-metro.es.ios.js.map +1 -0
- package/dist/index-node-18.18.cjs.js +217 -602
- package/dist/index-node-18.18.cjs.js.map +1 -1
- package/dist/index-node-18.18.cjs.web.js +45 -66
- package/dist/index-node-18.18.cjs.web.js.map +1 -1
- package/dist/index-node-18.18.es.mjs +217 -602
- package/dist/index-node-18.18.es.mjs.map +1 -1
- package/dist/index-node-18.18.es.web.mjs +45 -66
- package/dist/index-node-18.18.es.web.mjs.map +1 -1
- package/dist/index.es.js +227 -612
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +49 -70
- package/dist/index.es.web.js.map +1 -1
- package/dist/{linaria-themes.es.ios.js → linaria-themes-metro.es.android.js} +172 -187
- package/dist/linaria-themes-metro.es.android.js.map +1 -0
- package/dist/{linaria-themes.es.android.js → linaria-themes-metro.es.ios.js} +172 -187
- package/dist/linaria-themes-metro.es.ios.js.map +1 -0
- package/dist/linaria-themes-node-18.18.cjs.js +0 -6
- package/dist/linaria-themes-node-18.18.cjs.js.map +1 -1
- package/dist/linaria-themes-node-18.18.cjs.web.js +0 -6
- package/dist/linaria-themes-node-18.18.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-18.18.es.mjs +0 -6
- package/dist/linaria-themes-node-18.18.es.mjs.map +1 -1
- package/dist/linaria-themes-node-18.18.es.web.mjs +0 -6
- package/dist/linaria-themes-node-18.18.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +0 -6
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +0 -6
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +17 -16
- package/typings/react-native-web.d.ts +48 -5
- package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts +0 -3
- package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts.map +0 -1
- package/dist/index.es.android.js.map +0 -1
- package/dist/index.es.ios.js.map +0 -1
- package/dist/linaria-themes.es.android.js.map +0 -1
- package/dist/linaria-themes.es.ios.js.map +0 -1
package/dist/index.es.web.js
CHANGED
|
@@ -870,9 +870,6 @@ var typography = {
|
|
|
870
870
|
warning: colors.warning
|
|
871
871
|
},
|
|
872
872
|
types: {
|
|
873
|
-
get header() {
|
|
874
|
-
throw new Error('typography.types.header is deprecated, use typography.type.headings instead');
|
|
875
|
-
},
|
|
876
873
|
headings: {
|
|
877
874
|
fontFamily: {
|
|
878
875
|
"native": {
|
|
@@ -906,9 +903,6 @@ var typography = {
|
|
|
906
903
|
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
907
904
|
}
|
|
908
905
|
},
|
|
909
|
-
get 'headers-impact'() {
|
|
910
|
-
throw new Error('typography.types.headers-impact is deprecated, use typography.type.headings-impact instead');
|
|
911
|
-
},
|
|
912
906
|
'headings-impact': {
|
|
913
907
|
fontFamily: {
|
|
914
908
|
"native": {
|
|
@@ -1696,7 +1690,9 @@ function ActionCardContentWrapper(_ref) {
|
|
|
1696
1690
|
style: sharedTransform
|
|
1697
1691
|
},
|
|
1698
1692
|
_web: {
|
|
1699
|
-
style:
|
|
1693
|
+
style: {
|
|
1694
|
+
transform: "translateY(".concat(translateY, "px)")
|
|
1695
|
+
}
|
|
1700
1696
|
},
|
|
1701
1697
|
width: "100%",
|
|
1702
1698
|
backgroundColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".backgroundColor"),
|
|
@@ -1898,9 +1894,7 @@ function AnimatedContainer$1(_ref) {
|
|
|
1898
1894
|
transitionTimingFunction: timingFunction,
|
|
1899
1895
|
/* Simplifies the animation to just the front of the object – avoid blurry scale */
|
|
1900
1896
|
backfaceVisibility: 'hidden',
|
|
1901
|
-
transform:
|
|
1902
|
-
scale: currentScale
|
|
1903
|
-
}]
|
|
1897
|
+
transform: "scale(".concat(currentScale, ")")
|
|
1904
1898
|
}
|
|
1905
1899
|
},
|
|
1906
1900
|
width: createResponsiveStyleFromProp(isStretch, '100%', 'auto'),
|
|
@@ -2124,7 +2118,7 @@ var createHeading = function (level, defaultBase) {
|
|
|
2124
2118
|
accessibilityRole: "header",
|
|
2125
2119
|
base: defaultBase
|
|
2126
2120
|
}, props), {}, {
|
|
2127
|
-
|
|
2121
|
+
"aria-level": level
|
|
2128
2122
|
}));
|
|
2129
2123
|
}
|
|
2130
2124
|
TypographyHeading.displayName = "TypographyHeading".concat(level);
|
|
@@ -2722,7 +2716,7 @@ function AvatarContent(_ref) {
|
|
|
2722
2716
|
width: size,
|
|
2723
2717
|
height: size,
|
|
2724
2718
|
alt: alt,
|
|
2725
|
-
|
|
2719
|
+
"aria-label": alt
|
|
2726
2720
|
});
|
|
2727
2721
|
}
|
|
2728
2722
|
if (firstname && lastname) {
|
|
@@ -3353,7 +3347,7 @@ function Choices(_ref2) {
|
|
|
3353
3347
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
3354
3348
|
direction: direction,
|
|
3355
3349
|
testID: testID,
|
|
3356
|
-
|
|
3350
|
+
id: id,
|
|
3357
3351
|
children: childrenArray.map(function (child, index) {
|
|
3358
3352
|
var element = /*#__PURE__*/cloneElement(child, _objectSpread({
|
|
3359
3353
|
selected: isForm ? child.props.value === currentValue : undefined
|
|
@@ -3555,7 +3549,7 @@ function Emoji(_ref) {
|
|
|
3555
3549
|
testID: testID,
|
|
3556
3550
|
size: size,
|
|
3557
3551
|
alt: emojiData.text,
|
|
3558
|
-
|
|
3552
|
+
"aria-label": emojiData.text,
|
|
3559
3553
|
source: {
|
|
3560
3554
|
uri: emojiData.url
|
|
3561
3555
|
},
|
|
@@ -3752,7 +3746,7 @@ function InputTextContainer(props) {
|
|
|
3752
3746
|
}, props));
|
|
3753
3747
|
}
|
|
3754
3748
|
|
|
3755
|
-
var _excluded$u = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "
|
|
3749
|
+
var _excluded$u = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "onSubmitEditing"];
|
|
3756
3750
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3757
3751
|
var id = _ref.id,
|
|
3758
3752
|
right = _ref.right;
|
|
@@ -3768,8 +3762,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3768
3762
|
textContentType = _ref$textContentType === void 0 ? 'none' : _ref$textContentType,
|
|
3769
3763
|
_ref$autoComplete = _ref.autoComplete,
|
|
3770
3764
|
autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete,
|
|
3771
|
-
_ref$
|
|
3772
|
-
|
|
3765
|
+
_ref$inputMode = _ref.inputMode,
|
|
3766
|
+
inputMode = _ref$inputMode === void 0 ? 'none' : _ref$inputMode,
|
|
3773
3767
|
multiline = _ref.multiline,
|
|
3774
3768
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
3775
3769
|
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
@@ -3781,11 +3775,11 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3781
3775
|
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
3782
3776
|
ref: ref,
|
|
3783
3777
|
multiline: multiline,
|
|
3784
|
-
|
|
3778
|
+
id: id,
|
|
3785
3779
|
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
3786
3780
|
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
3787
3781
|
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
3788
|
-
|
|
3782
|
+
inputMode: inputMode,
|
|
3789
3783
|
autoComplete: autoComplete,
|
|
3790
3784
|
autoCorrect: autoCorrect,
|
|
3791
3785
|
textContentType: textContentType,
|
|
@@ -4152,7 +4146,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4152
4146
|
var theme = useTheme();
|
|
4153
4147
|
return /*#__PURE__*/jsx(Pressable, {
|
|
4154
4148
|
ref: ref,
|
|
4155
|
-
|
|
4149
|
+
id: id,
|
|
4156
4150
|
testID: testID,
|
|
4157
4151
|
accessibilityRole: "checkbox",
|
|
4158
4152
|
accessibilityState: {
|
|
@@ -4228,8 +4222,8 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4228
4222
|
});
|
|
4229
4223
|
});
|
|
4230
4224
|
|
|
4231
|
-
function
|
|
4232
|
-
return
|
|
4225
|
+
function getEnterKeyHintForNumericInput(enterKeyHint) {
|
|
4226
|
+
return enterKeyHint;
|
|
4233
4227
|
}
|
|
4234
4228
|
|
|
4235
4229
|
function prefixWithZero$1(value) {
|
|
@@ -4425,7 +4419,7 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
4425
4419
|
isFocusedInternal = _ref2.isFocusedInternal,
|
|
4426
4420
|
isHoveredInternal = _ref2.isHoveredInternal,
|
|
4427
4421
|
isPressedInternal = _ref2.isPressedInternal,
|
|
4428
|
-
|
|
4422
|
+
enterKeyHint = _ref2.enterKeyHint,
|
|
4429
4423
|
onChange = _ref2.onChange,
|
|
4430
4424
|
onBlur = _ref2.onBlur,
|
|
4431
4425
|
onSubmitEditing = _ref2.onSubmitEditing;
|
|
@@ -4441,8 +4435,8 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
4441
4435
|
value: value,
|
|
4442
4436
|
placeholder: placeholder,
|
|
4443
4437
|
disabled: disabled,
|
|
4444
|
-
|
|
4445
|
-
|
|
4438
|
+
inputMode: "numeric",
|
|
4439
|
+
enterKeyHint: enterKeyHint,
|
|
4446
4440
|
textAlign: "center",
|
|
4447
4441
|
onChange: onChange,
|
|
4448
4442
|
onBlur: onBlur,
|
|
@@ -4463,7 +4457,7 @@ function PartContainer(_ref) {
|
|
|
4463
4457
|
});
|
|
4464
4458
|
}
|
|
4465
4459
|
|
|
4466
|
-
var _excluded$r = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "
|
|
4460
|
+
var _excluded$r = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
4467
4461
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
4468
4462
|
var id = _ref.id,
|
|
4469
4463
|
value = _ref.value,
|
|
@@ -4476,7 +4470,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4476
4470
|
isFocusedInternal = _ref.isFocusedInternal,
|
|
4477
4471
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
4478
4472
|
isPressedInternal = _ref.isPressedInternal,
|
|
4479
|
-
|
|
4473
|
+
enterKeyHint = _ref.enterKeyHint,
|
|
4480
4474
|
onChange = _ref.onChange,
|
|
4481
4475
|
onBlur = _ref.onBlur,
|
|
4482
4476
|
onFocus = _ref.onFocus,
|
|
@@ -4527,7 +4521,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4527
4521
|
};
|
|
4528
4522
|
return /*#__PURE__*/jsx(View, {
|
|
4529
4523
|
testID: testID,
|
|
4530
|
-
|
|
4524
|
+
id: id,
|
|
4531
4525
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
4532
4526
|
space: "kitt.2",
|
|
4533
4527
|
children: [/*#__PURE__*/jsx(PartContainer, {
|
|
@@ -4539,7 +4533,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4539
4533
|
}, sharedInputPartProps), {}, {
|
|
4540
4534
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day,
|
|
4541
4535
|
value: state.displayedDay,
|
|
4542
|
-
|
|
4536
|
+
enterKeyHint: getEnterKeyHintForNumericInput('next'),
|
|
4543
4537
|
onChange: function (e) {
|
|
4544
4538
|
var nextDay = stringToNumber(e.nativeEvent.text);
|
|
4545
4539
|
dispatch({
|
|
@@ -4570,7 +4564,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4570
4564
|
}, sharedInputPartProps), {}, {
|
|
4571
4565
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month,
|
|
4572
4566
|
value: state.displayedMonth,
|
|
4573
|
-
|
|
4567
|
+
enterKeyHint: getEnterKeyHintForNumericInput('next'),
|
|
4574
4568
|
onChange: function (e) {
|
|
4575
4569
|
var nextMonth = stringToNumber(e.nativeEvent.text);
|
|
4576
4570
|
dispatch({
|
|
@@ -4601,7 +4595,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4601
4595
|
}, sharedInputPartProps), {}, {
|
|
4602
4596
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year,
|
|
4603
4597
|
value: state.displayedYear,
|
|
4604
|
-
|
|
4598
|
+
enterKeyHint: enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined,
|
|
4605
4599
|
onChange: function (e) {
|
|
4606
4600
|
var nextYear = stringToNumber(e.nativeEvent.text);
|
|
4607
4601
|
dispatch({
|
|
@@ -5019,9 +5013,7 @@ function InputAddressOption(_ref) {
|
|
|
5019
5013
|
var item = _ref.item;
|
|
5020
5014
|
var sharedTransform = {
|
|
5021
5015
|
style: {
|
|
5022
|
-
transform:
|
|
5023
|
-
translateY: 4
|
|
5024
|
-
}]
|
|
5016
|
+
transform: 'translateY(4)'
|
|
5025
5017
|
}
|
|
5026
5018
|
};
|
|
5027
5019
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
@@ -5122,7 +5114,7 @@ var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5122
5114
|
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
5123
5115
|
ref: ref,
|
|
5124
5116
|
autoComplete: "email",
|
|
5125
|
-
|
|
5117
|
+
inputMode: "email",
|
|
5126
5118
|
textContentType: "emailAddress",
|
|
5127
5119
|
autoCapitalize: "none"
|
|
5128
5120
|
}, props));
|
|
@@ -5227,7 +5219,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5227
5219
|
}));
|
|
5228
5220
|
});
|
|
5229
5221
|
|
|
5230
|
-
var _excluded$m = ["
|
|
5222
|
+
var _excluded$m = ["enterKeyHint", "autoComplete", "phoneNumberLength", "value", "onChange"];
|
|
5231
5223
|
function isPhoneNumberValid(number) {
|
|
5232
5224
|
return isValidNumber(number);
|
|
5233
5225
|
}
|
|
@@ -5235,7 +5227,7 @@ function prefixWithZero(value, phoneNumberLength) {
|
|
|
5235
5227
|
return value.padStart(phoneNumberLength, '0');
|
|
5236
5228
|
}
|
|
5237
5229
|
var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5238
|
-
var
|
|
5230
|
+
var enterKeyHint = _ref.enterKeyHint,
|
|
5239
5231
|
_ref$autoComplete = _ref.autoComplete,
|
|
5240
5232
|
autoComplete = _ref$autoComplete === void 0 ? 'tel' : _ref$autoComplete,
|
|
5241
5233
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
@@ -5247,13 +5239,13 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5247
5239
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5248
5240
|
currentValue = _useState2[0],
|
|
5249
5241
|
setCurrentValue = _useState2[1];
|
|
5250
|
-
var
|
|
5242
|
+
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
5251
5243
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
5252
5244
|
ref: ref
|
|
5253
5245
|
}, props), {}, {
|
|
5254
5246
|
value: currentValue,
|
|
5255
|
-
|
|
5256
|
-
|
|
5247
|
+
inputMode: "tel",
|
|
5248
|
+
enterKeyHint: currentEnterKeyHint,
|
|
5257
5249
|
autoComplete: autoComplete,
|
|
5258
5250
|
textContentType: "telephoneNumber",
|
|
5259
5251
|
onChange: function handleChange(event) {
|
|
@@ -5326,7 +5318,7 @@ function Label(_ref) {
|
|
|
5326
5318
|
children = _ref.children;
|
|
5327
5319
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
5328
5320
|
base: "body",
|
|
5329
|
-
|
|
5321
|
+
id: undefined,
|
|
5330
5322
|
children: /*#__PURE__*/jsx("label", {
|
|
5331
5323
|
id: id,
|
|
5332
5324
|
htmlFor: htmlFor,
|
|
@@ -5348,7 +5340,7 @@ function InnerCircle(_ref) {
|
|
|
5348
5340
|
backgroundColor: "kitt.forms.radio.innerCircle.backgroundColor",
|
|
5349
5341
|
_web: {
|
|
5350
5342
|
style: {
|
|
5351
|
-
transform:
|
|
5343
|
+
transform: "scale(".concat(isChecked ? 1 : 0, "))"),
|
|
5352
5344
|
transitionProperty: 'all',
|
|
5353
5345
|
transitionDuration: theme.kitt.forms.radio.transition.duration,
|
|
5354
5346
|
transitionTimingFunction: theme.kitt.forms.radio.transition.timingFunction
|
|
@@ -5448,7 +5440,7 @@ var Radio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5448
5440
|
return /*#__PURE__*/jsx(Pressable, {
|
|
5449
5441
|
ref: ref,
|
|
5450
5442
|
testID: testID,
|
|
5451
|
-
|
|
5443
|
+
id: id,
|
|
5452
5444
|
disabled: disabled,
|
|
5453
5445
|
accessibilityRole: "radio",
|
|
5454
5446
|
"aria-checked": checked,
|
|
@@ -6101,9 +6093,7 @@ function AnimatedScale(_ref) {
|
|
|
6101
6093
|
transitionTimingFunction: timingFunction,
|
|
6102
6094
|
/* Simplifies the animation to just the front of the object – avoid blurry scale */
|
|
6103
6095
|
backfaceVisibility: 'hidden',
|
|
6104
|
-
transform:
|
|
6105
|
-
scale: isDisabled ? 1 : currentScale
|
|
6106
|
-
}]
|
|
6096
|
+
transform: "scale(".concat(isDisabled ? 1 : currentScale, ")")
|
|
6107
6097
|
}
|
|
6108
6098
|
},
|
|
6109
6099
|
children: children
|
|
@@ -6137,7 +6127,7 @@ function IconButton(_ref) {
|
|
|
6137
6127
|
color = _ref$color === void 0 ? 'black' : _ref$color,
|
|
6138
6128
|
disabled = _ref.disabled,
|
|
6139
6129
|
testID = _ref.testID,
|
|
6140
|
-
|
|
6130
|
+
ariaLabel = _ref.ariaLabel,
|
|
6141
6131
|
_ref$accessibilityRol = _ref.accessibilityRole,
|
|
6142
6132
|
accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
|
|
6143
6133
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
@@ -6154,14 +6144,12 @@ function IconButton(_ref) {
|
|
|
6154
6144
|
disabled: disabled,
|
|
6155
6145
|
width: "kitt.iconButton.width",
|
|
6156
6146
|
height: "kitt.iconButton.height",
|
|
6157
|
-
|
|
6147
|
+
"aria-label": ariaLabel,
|
|
6158
6148
|
accessibilityRole: accessibilityRole,
|
|
6159
6149
|
_web: {
|
|
6160
6150
|
style: {
|
|
6161
6151
|
backfaceVisibility: 'hidden',
|
|
6162
|
-
transform:
|
|
6163
|
-
translate3d: '0'
|
|
6164
|
-
}]
|
|
6152
|
+
transform: 'translate3d(0px)'
|
|
6165
6153
|
}
|
|
6166
6154
|
},
|
|
6167
6155
|
borderRadius: "kitt.iconButton.borderRadius",
|
|
@@ -8691,9 +8679,8 @@ function Picker(_ref) {
|
|
|
8691
8679
|
paddingY: isOpen ? 'kitt.2' : undefined,
|
|
8692
8680
|
_web: {
|
|
8693
8681
|
style: {
|
|
8694
|
-
transform:
|
|
8695
|
-
|
|
8696
|
-
}],
|
|
8682
|
+
transform: "translate3d(".concat(tooltipX, "px, ").concat(tooltipY, "px, 0)"),
|
|
8683
|
+
visibility: isOpen ? 'visible' : 'hidden',
|
|
8697
8684
|
transitionDuration: '300ms',
|
|
8698
8685
|
transitionProperty: 'opacity, padding',
|
|
8699
8686
|
transitionTimingFunction: 'ease-in-out'
|
|
@@ -8706,9 +8693,7 @@ function Picker(_ref) {
|
|
|
8706
8693
|
shadow: "kitt.picker.web.optionsContainer.shadow",
|
|
8707
8694
|
_web: {
|
|
8708
8695
|
style: {
|
|
8709
|
-
transform:
|
|
8710
|
-
translateY: isOpen ? 0 : 8
|
|
8711
|
-
}],
|
|
8696
|
+
transform: "translateY(".concat(isOpen ? 0 : 8, ")"),
|
|
8712
8697
|
visibility: isOpen ? 'visible' : 'hidden',
|
|
8713
8698
|
transitionDuration: '300ms',
|
|
8714
8699
|
transitionTimingFunction: 'ease-in-out'
|
|
@@ -9648,9 +9633,6 @@ var Arrow = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9648
9633
|
left = _ref.left,
|
|
9649
9634
|
display = _ref.display;
|
|
9650
9635
|
var theme = useTheme();
|
|
9651
|
-
var transformStyle = [{
|
|
9652
|
-
rotate: position === 'bottom' ? '180deg' : '0deg'
|
|
9653
|
-
}];
|
|
9654
9636
|
return /*#__PURE__*/jsx(View, {
|
|
9655
9637
|
ref: ref,
|
|
9656
9638
|
display: display || {
|
|
@@ -9662,7 +9644,7 @@ var Arrow = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9662
9644
|
left: left,
|
|
9663
9645
|
top: top,
|
|
9664
9646
|
style: {
|
|
9665
|
-
transform:
|
|
9647
|
+
transform: "rotate(".concat(position === 'bottom' ? '180deg' : '0deg', ")")
|
|
9666
9648
|
},
|
|
9667
9649
|
children: /*#__PURE__*/jsx(SvgArrowinline, {
|
|
9668
9650
|
color: theme.kitt.tooltip.backgroundColor,
|
|
@@ -9831,7 +9813,7 @@ function Tooltip(_ref) {
|
|
|
9831
9813
|
}), /*#__PURE__*/jsx(Portal, {
|
|
9832
9814
|
children: /*#__PURE__*/jsx(View, {
|
|
9833
9815
|
ref: floating,
|
|
9834
|
-
|
|
9816
|
+
"aria-hidden": !isVisible,
|
|
9835
9817
|
paddingX: {
|
|
9836
9818
|
base: 'kitt.4',
|
|
9837
9819
|
small: 0
|
|
@@ -9845,16 +9827,16 @@ function Tooltip(_ref) {
|
|
|
9845
9827
|
small: 'kitt.tooltip.maxWidth'
|
|
9846
9828
|
},
|
|
9847
9829
|
opacity: isVisible ? 'kitt.tooltip.opacity' : 0,
|
|
9848
|
-
|
|
9830
|
+
style: {
|
|
9831
|
+
pointerEvents: isVisible || isCursorOnTooltip ? 'auto' : 'none'
|
|
9832
|
+
},
|
|
9849
9833
|
position: strategy,
|
|
9850
9834
|
zIndex: zIndex,
|
|
9851
9835
|
top: 0,
|
|
9852
9836
|
left: 0,
|
|
9853
9837
|
_web: {
|
|
9854
9838
|
style: {
|
|
9855
|
-
transform:
|
|
9856
|
-
translate3d: isBase && !fullWidth ? "0, ".concat(tooltipY, "px, 0") : "".concat(tooltipX, "px, ").concat(tooltipY, "px, 0")
|
|
9857
|
-
}],
|
|
9839
|
+
transform: "translate3d(".concat(isBase && !fullWidth ? "0, ".concat(tooltipY, "px, 0") : "".concat(tooltipX, "px, ").concat(tooltipY, "px, 0"), ")"),
|
|
9858
9840
|
visibility: isVisible ? 'visible' : 'hidden',
|
|
9859
9841
|
transitionDuration: transitionDuration,
|
|
9860
9842
|
transitionProperty: theme.kitt.tooltip.transition[themePart].property,
|
|
@@ -9868,9 +9850,7 @@ function Tooltip(_ref) {
|
|
|
9868
9850
|
children: /*#__PURE__*/jsxs(View, {
|
|
9869
9851
|
_web: {
|
|
9870
9852
|
style: {
|
|
9871
|
-
transform:
|
|
9872
|
-
scale: isVisible ? 1 : 0.8
|
|
9873
|
-
}],
|
|
9853
|
+
transform: "scale(".concat(isVisible ? 1 : 0.8, ")"),
|
|
9874
9854
|
transitionDuration: isVisible ? '0' : transitionDuration,
|
|
9875
9855
|
transitionProperty: 'all',
|
|
9876
9856
|
transitionTimingFunction: transitionTimingFunction,
|
|
@@ -9966,7 +9946,6 @@ function TypographyEmoji(_ref3) {
|
|
|
9966
9946
|
emoji: emoji,
|
|
9967
9947
|
alignSelf: "center",
|
|
9968
9948
|
_web: {
|
|
9969
|
-
// @ts-expect-error -- transform expects number, but string works on web
|
|
9970
9949
|
style: {
|
|
9971
9950
|
transform: 'translateY(20%)'
|
|
9972
9951
|
},
|