@ornikar/kitt-universal 28.1.0 → 29.1.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 +22 -0
- package/dist/definitions/Sticker/Sticker.d.ts +10 -0
- package/dist/definitions/Sticker/Sticker.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +7 -4
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/sticker.d.ts +9 -0
- package/dist/definitions/themes/late-ocean/sticker.d.ts.map +1 -0
- package/dist/definitions/typography/Typography.d.ts +6 -2
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +105 -1
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +105 -1
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +105 -0
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +105 -0
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +105 -1
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +105 -1
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +196 -91
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +167 -62
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +6 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +6 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +6 -0
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +6 -0
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +6 -0
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +6 -0
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +7 -1
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +7 -1
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +26 -26
package/dist/index.es.js
CHANGED
|
@@ -2336,6 +2336,11 @@ var skeleton = {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
};
|
|
2338
2338
|
|
|
2339
|
+
var sticker = {
|
|
2340
|
+
borderRadius: 2,
|
|
2341
|
+
padding: 4
|
|
2342
|
+
};
|
|
2343
|
+
|
|
2339
2344
|
var tabBar = {
|
|
2340
2345
|
underline: {
|
|
2341
2346
|
"default": {
|
|
@@ -2628,7 +2633,7 @@ var breakpoints = {
|
|
|
2628
2633
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
2629
2634
|
var theme = {
|
|
2630
2635
|
spacing: spacing,
|
|
2631
|
-
getSpacing: function
|
|
2636
|
+
getSpacing: function (multiplier) {
|
|
2632
2637
|
return spacing * multiplier;
|
|
2633
2638
|
},
|
|
2634
2639
|
colors: colors,
|
|
@@ -2656,6 +2661,7 @@ var theme = {
|
|
|
2656
2661
|
skeleton: skeleton,
|
|
2657
2662
|
tabBar: tabBar,
|
|
2658
2663
|
tag: tag,
|
|
2664
|
+
sticker: sticker,
|
|
2659
2665
|
tooltip: tooltip,
|
|
2660
2666
|
typography: typography,
|
|
2661
2667
|
fullscreenModal: fullscreenModal,
|
|
@@ -2816,7 +2822,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
2816
2822
|
onPress: onPress,
|
|
2817
2823
|
onHoverIn: onHoverIn,
|
|
2818
2824
|
onHoverOut: onHoverOut,
|
|
2819
|
-
children: function
|
|
2825
|
+
children: function (_ref3) {
|
|
2820
2826
|
var isHovered = _ref3.isHovered,
|
|
2821
2827
|
isPressed = _ref3.isPressed,
|
|
2822
2828
|
isFocused = _ref3.isFocused;
|
|
@@ -3591,11 +3597,11 @@ var useNativeAnimation$4 = function (_ref) {
|
|
|
3591
3597
|
};
|
|
3592
3598
|
});
|
|
3593
3599
|
return {
|
|
3594
|
-
onPressIn: function
|
|
3600
|
+
onPressIn: function () {
|
|
3595
3601
|
color.value = withSpring(1);
|
|
3596
3602
|
pressed.value = 1;
|
|
3597
3603
|
},
|
|
3598
|
-
onPressOut: function
|
|
3604
|
+
onPressOut: function () {
|
|
3599
3605
|
color.value = withSpring(0);
|
|
3600
3606
|
pressed.value = 0;
|
|
3601
3607
|
},
|
|
@@ -3664,7 +3670,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3664
3670
|
onHoverOut: onHoverOut,
|
|
3665
3671
|
onFocus: onFocus,
|
|
3666
3672
|
onBlur: onBlur,
|
|
3667
|
-
children: function
|
|
3673
|
+
children: function (_ref2) {
|
|
3668
3674
|
var isHovered = _ref2.isHovered,
|
|
3669
3675
|
isPressed = _ref2.isPressed,
|
|
3670
3676
|
isFocused = _ref2.isFocused;
|
|
@@ -3787,7 +3793,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3787
3793
|
stretch: stretch,
|
|
3788
3794
|
disabled: isLoading ? true : disabled,
|
|
3789
3795
|
icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
|
|
3790
|
-
onPress: function
|
|
3796
|
+
onPress: function (e) {
|
|
3791
3797
|
var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
|
|
3792
3798
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3793
3799
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
@@ -4059,10 +4065,10 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4059
4065
|
borderRadius: 4,
|
|
4060
4066
|
backgroundColor: theme.kitt.bottomSheet.handle.backgroundColor
|
|
4061
4067
|
},
|
|
4062
|
-
handleComponent: function
|
|
4068
|
+
handleComponent: function (props) {
|
|
4063
4069
|
return hasHandle ? /*#__PURE__*/jsx(BottomSheetHandle, _objectSpread({}, props)) : null;
|
|
4064
4070
|
},
|
|
4065
|
-
backdropComponent: function
|
|
4071
|
+
backdropComponent: function (props) {
|
|
4066
4072
|
return hasBackdrop ? /*#__PURE__*/jsx(BottomSheetBackdrop, _objectSpread(_objectSpread({}, props), {}, {
|
|
4067
4073
|
opacity: 0.25,
|
|
4068
4074
|
appearsOnIndex: 0,
|
|
@@ -4071,7 +4077,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4071
4077
|
}
|
|
4072
4078
|
}, rest), {}, {
|
|
4073
4079
|
topInset: top,
|
|
4074
|
-
children: function
|
|
4080
|
+
children: function (props) {
|
|
4075
4081
|
return /*#__PURE__*/jsx(Wrapper, {
|
|
4076
4082
|
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
4077
4083
|
});
|
|
@@ -4147,7 +4153,7 @@ function CloseButton$1(_ref) {
|
|
|
4147
4153
|
onPress = _ref.onPress;
|
|
4148
4154
|
var onCloseContextCallback = useOnCloseModalBehaviour();
|
|
4149
4155
|
return /*#__PURE__*/cloneElement(children, {
|
|
4150
|
-
onPress: function
|
|
4156
|
+
onPress: function () {
|
|
4151
4157
|
if (onPress) onPress();
|
|
4152
4158
|
onCloseContextCallback();
|
|
4153
4159
|
}
|
|
@@ -4323,11 +4329,11 @@ function CardModalAnimation(_ref) {
|
|
|
4323
4329
|
transparent: true,
|
|
4324
4330
|
supportedOrientations: ['landscape', 'portrait'],
|
|
4325
4331
|
visible: isModalVisible,
|
|
4326
|
-
onShow: function
|
|
4332
|
+
onShow: function () {
|
|
4327
4333
|
if (onEnter) onEnter();
|
|
4328
4334
|
setIsContentVisible(true);
|
|
4329
4335
|
},
|
|
4330
|
-
onDismiss: function
|
|
4336
|
+
onDismiss: function () {
|
|
4331
4337
|
if (onExited) onExited();
|
|
4332
4338
|
},
|
|
4333
4339
|
children: /*#__PURE__*/jsxs(View, {
|
|
@@ -4374,7 +4380,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4374
4380
|
onClose: onClose,
|
|
4375
4381
|
children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4376
4382
|
visible: visible,
|
|
4377
|
-
onExited: function
|
|
4383
|
+
onExited: function () {
|
|
4378
4384
|
if (onExited) onExited();
|
|
4379
4385
|
setIsModalBehaviourVisible(false);
|
|
4380
4386
|
},
|
|
@@ -4691,10 +4697,10 @@ var useNativeAnimation$3 = function (_ref) {
|
|
|
4691
4697
|
};
|
|
4692
4698
|
});
|
|
4693
4699
|
return {
|
|
4694
|
-
onPressIn: function
|
|
4700
|
+
onPressIn: function () {
|
|
4695
4701
|
pressed.value = true;
|
|
4696
4702
|
},
|
|
4697
|
-
onPressOut: function
|
|
4703
|
+
onPressOut: function () {
|
|
4698
4704
|
pressed.value = false;
|
|
4699
4705
|
},
|
|
4700
4706
|
backgroundStyles: backgroundStyles
|
|
@@ -4757,7 +4763,7 @@ function ChoiceItem(_ref) {
|
|
|
4757
4763
|
style: style,
|
|
4758
4764
|
onBlur: onBlur,
|
|
4759
4765
|
onFocus: onFocus,
|
|
4760
|
-
onPress: function
|
|
4766
|
+
onPress: function (e) {
|
|
4761
4767
|
if (onFocus) onFocus(e);
|
|
4762
4768
|
if (onPress) onPress();
|
|
4763
4769
|
handleChange();
|
|
@@ -4765,7 +4771,7 @@ function ChoiceItem(_ref) {
|
|
|
4765
4771
|
},
|
|
4766
4772
|
onPressIn: onPressIn,
|
|
4767
4773
|
onPressOut: onPressOut,
|
|
4768
|
-
children: function
|
|
4774
|
+
children: function (_ref2) {
|
|
4769
4775
|
var isHovered = _ref2.isHovered,
|
|
4770
4776
|
isPressed = _ref2.isPressed;
|
|
4771
4777
|
var textColor = getCurrentTextColor$1({
|
|
@@ -4869,7 +4875,7 @@ function Choices(_ref2) {
|
|
|
4869
4875
|
type: type,
|
|
4870
4876
|
disabled: disabled,
|
|
4871
4877
|
onPress: !isForm ? onPress : undefined,
|
|
4872
|
-
onChange: isForm ? function
|
|
4878
|
+
onChange: isForm ? function (newValue) {
|
|
4873
4879
|
setCurrentValue(newValue);
|
|
4874
4880
|
if (onChange) onChange(newValue);
|
|
4875
4881
|
} : undefined,
|
|
@@ -5025,11 +5031,11 @@ function DialogModalAnimation(_ref) {
|
|
|
5025
5031
|
transparent: true,
|
|
5026
5032
|
supportedOrientations: ['landscape', 'portrait'],
|
|
5027
5033
|
visible: isModalVisible,
|
|
5028
|
-
onShow: function
|
|
5034
|
+
onShow: function () {
|
|
5029
5035
|
if (onEnter) onEnter();
|
|
5030
5036
|
setIsContentVisible(true);
|
|
5031
5037
|
},
|
|
5032
|
-
onDismiss: function
|
|
5038
|
+
onDismiss: function () {
|
|
5033
5039
|
if (onExited) onExited();
|
|
5034
5040
|
},
|
|
5035
5041
|
children: /*#__PURE__*/jsxs(View, {
|
|
@@ -5083,7 +5089,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5083
5089
|
},
|
|
5084
5090
|
children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
5085
5091
|
visible: visible,
|
|
5086
|
-
onExited: function
|
|
5092
|
+
onExited: function () {
|
|
5087
5093
|
if (onExited) onExited();
|
|
5088
5094
|
setIsModalBehaviourVisible(false);
|
|
5089
5095
|
},
|
|
@@ -5346,7 +5352,7 @@ function ExternalLink(_ref) {
|
|
|
5346
5352
|
var openExternalLink = useOpenExternalLink();
|
|
5347
5353
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5348
5354
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
5349
|
-
onPress: function
|
|
5355
|
+
onPress: function (e) {
|
|
5350
5356
|
if (onPress) {
|
|
5351
5357
|
onPress(e);
|
|
5352
5358
|
if (e.defaultPrevented) return;
|
|
@@ -5570,14 +5576,14 @@ var _excluded$y = ["children", "name", "disabled", "placeholder", "isInitialOpen
|
|
|
5570
5576
|
function patchNativeEvent(event) {
|
|
5571
5577
|
return event || {
|
|
5572
5578
|
preventDownshiftDefault: false,
|
|
5573
|
-
preventDefault: function
|
|
5579
|
+
preventDefault: function () {}
|
|
5574
5580
|
};
|
|
5575
5581
|
}
|
|
5576
5582
|
function isReactElement(element) {
|
|
5577
5583
|
return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
|
|
5578
5584
|
}
|
|
5579
5585
|
function Autocomplete(_ref) {
|
|
5580
|
-
var
|
|
5586
|
+
var children = _ref.children,
|
|
5581
5587
|
name = _ref.name,
|
|
5582
5588
|
disabled = _ref.disabled,
|
|
5583
5589
|
placeholder = _ref.placeholder,
|
|
@@ -5604,7 +5610,7 @@ function Autocomplete(_ref) {
|
|
|
5604
5610
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5605
5611
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5606
5612
|
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5607
|
-
var childrenArray = Children.toArray(
|
|
5613
|
+
var childrenArray = Children.toArray(children);
|
|
5608
5614
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5609
5615
|
return {
|
|
5610
5616
|
child: child,
|
|
@@ -5615,12 +5621,12 @@ function Autocomplete(_ref) {
|
|
|
5615
5621
|
defaultIsOpen: isInitialOpen,
|
|
5616
5622
|
initialSelectedItem: initialValue,
|
|
5617
5623
|
initialInputValue: initialValue ? itemToString(initialValue) : undefined,
|
|
5618
|
-
itemToString: function
|
|
5624
|
+
itemToString: function (item) {
|
|
5619
5625
|
// Prevents returning null values
|
|
5620
5626
|
if (!itemToString) return '';
|
|
5621
5627
|
return itemToString(item || undefined);
|
|
5622
5628
|
},
|
|
5623
|
-
stateReducer: function
|
|
5629
|
+
stateReducer: function (state, changes) {
|
|
5624
5630
|
switch (changes.type) {
|
|
5625
5631
|
case Downshift.stateChangeTypes.changeInput:
|
|
5626
5632
|
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
@@ -5630,7 +5636,7 @@ function Autocomplete(_ref) {
|
|
|
5630
5636
|
return changes;
|
|
5631
5637
|
}
|
|
5632
5638
|
},
|
|
5633
|
-
onChange: function
|
|
5639
|
+
onChange: function (selectedItem, stateAndHelpers) {
|
|
5634
5640
|
if (_onChange) {
|
|
5635
5641
|
_onChange(selectedItem, stateAndHelpers);
|
|
5636
5642
|
}
|
|
@@ -5638,7 +5644,7 @@ function Autocomplete(_ref) {
|
|
|
5638
5644
|
onSelect: onSelectItem,
|
|
5639
5645
|
onOuterClick: onOuterPress,
|
|
5640
5646
|
onInputValueChange: onInputChange,
|
|
5641
|
-
children: function
|
|
5647
|
+
children: function (_ref2) {
|
|
5642
5648
|
var getRootProps = _ref2.getRootProps,
|
|
5643
5649
|
getInputProps = _ref2.getInputProps,
|
|
5644
5650
|
getMenuProps = _ref2.getMenuProps,
|
|
@@ -5690,7 +5696,7 @@ function Autocomplete(_ref) {
|
|
|
5690
5696
|
right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
|
|
5691
5697
|
testID: "kitt.Autocomplete.listToggle",
|
|
5692
5698
|
hitSlop: 40,
|
|
5693
|
-
onPress: function
|
|
5699
|
+
onPress: function (e) {
|
|
5694
5700
|
if (Platform.OS === 'web') {
|
|
5695
5701
|
onClickToggle(e);
|
|
5696
5702
|
return;
|
|
@@ -5701,13 +5707,13 @@ function Autocomplete(_ref) {
|
|
|
5701
5707
|
icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
|
|
5702
5708
|
})
|
|
5703
5709
|
})) : null),
|
|
5704
|
-
onFocus: function
|
|
5710
|
+
onFocus: function (e) {
|
|
5705
5711
|
openMenu();
|
|
5706
5712
|
/** @ts-expect-error onFocus wants web events */
|
|
5707
5713
|
if (Platform.OS !== 'android' && onSearchInputFocus) onSearchInputFocus(e);
|
|
5708
5714
|
if (_onFocus) _onFocus(e);
|
|
5709
5715
|
},
|
|
5710
|
-
onBlur: function
|
|
5716
|
+
onBlur: function (e) {
|
|
5711
5717
|
/** @ts-expect-error onBlur wants web events */
|
|
5712
5718
|
if (Platform.OS === 'web' && onSearchInputBlur) onSearchInputBlur(e);
|
|
5713
5719
|
|
|
@@ -5743,14 +5749,14 @@ function Autocomplete(_ref) {
|
|
|
5743
5749
|
selected: ariaSelected
|
|
5744
5750
|
},
|
|
5745
5751
|
disabled: disabled,
|
|
5746
|
-
onPress: function
|
|
5752
|
+
onPress: function (e) {
|
|
5747
5753
|
if (Platform.OS === 'web') {
|
|
5748
5754
|
if (onClick) onClick(e);
|
|
5749
5755
|
return;
|
|
5750
5756
|
}
|
|
5751
5757
|
if (_onPress) _onPress(patchNativeEvent(e));
|
|
5752
5758
|
},
|
|
5753
|
-
children: function
|
|
5759
|
+
children: function (_ref5) {
|
|
5754
5760
|
var isHovered = _ref5.isHovered,
|
|
5755
5761
|
isFocused = _ref5.isFocused,
|
|
5756
5762
|
isPressed = _ref5.isPressed;
|
|
@@ -5840,12 +5846,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5840
5846
|
disabled: disabled
|
|
5841
5847
|
},
|
|
5842
5848
|
disabled: disabled,
|
|
5843
|
-
onPress: function
|
|
5849
|
+
onPress: function (e) {
|
|
5844
5850
|
if (onFocus) onFocus();
|
|
5845
5851
|
if (onChange) onChange(!checked, e);
|
|
5846
5852
|
if (onBlur) onBlur();
|
|
5847
5853
|
},
|
|
5848
|
-
children: function
|
|
5854
|
+
children: function (_ref2) {
|
|
5849
5855
|
var isHovered = _ref2.isHovered,
|
|
5850
5856
|
isPressed = _ref2.isPressed,
|
|
5851
5857
|
isFocused = _ref2.isFocused;
|
|
@@ -6400,7 +6406,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6400
6406
|
DateTimePickerAndroid.open({
|
|
6401
6407
|
testID: pickerUITestID,
|
|
6402
6408
|
value: currentValue || pickerDefaultDate || new Date(Date.now()),
|
|
6403
|
-
onChange: function
|
|
6409
|
+
onChange: function (e) {
|
|
6404
6410
|
setIsFocused(false);
|
|
6405
6411
|
var timestamp = e.nativeEvent.timestamp;
|
|
6406
6412
|
if (timestamp) {
|
|
@@ -6452,7 +6458,7 @@ function PlatformDateTimePicker(_ref) {
|
|
|
6452
6458
|
minimumDate: minimuDate,
|
|
6453
6459
|
display: displayMode
|
|
6454
6460
|
}, iosProps), {}, {
|
|
6455
|
-
onChange: function
|
|
6461
|
+
onChange: function (_event, date) {
|
|
6456
6462
|
return _onChange(date);
|
|
6457
6463
|
}
|
|
6458
6464
|
}));
|
|
@@ -6482,7 +6488,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6482
6488
|
|
|
6483
6489
|
return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
|
|
6484
6490
|
visible: Boolean(isVisible),
|
|
6485
|
-
onClose: function
|
|
6491
|
+
onClose: function () {
|
|
6486
6492
|
setCurrentValue(value);
|
|
6487
6493
|
onClose();
|
|
6488
6494
|
},
|
|
@@ -6493,7 +6499,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6493
6499
|
}) : null, /*#__PURE__*/jsx(CardModal.Body, {
|
|
6494
6500
|
children: /*#__PURE__*/jsx(PlatformDateTimePicker, _objectSpread(_objectSpread({}, props), {}, {
|
|
6495
6501
|
value: currentValue,
|
|
6496
|
-
onChange: function
|
|
6502
|
+
onChange: function (newDate) {
|
|
6497
6503
|
setCurrentValue(function (prev) {
|
|
6498
6504
|
return newDate || prev;
|
|
6499
6505
|
});
|
|
@@ -6503,7 +6509,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6503
6509
|
children: /*#__PURE__*/jsx(Button, {
|
|
6504
6510
|
stretch: true,
|
|
6505
6511
|
type: "primary",
|
|
6506
|
-
onPress: function
|
|
6512
|
+
onPress: function () {
|
|
6507
6513
|
onChange(currentValue);
|
|
6508
6514
|
},
|
|
6509
6515
|
children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
|
|
@@ -6557,7 +6563,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6557
6563
|
isFocusedInternal: isFocused || isFocusedInternal,
|
|
6558
6564
|
isHoveredInternal: isHoveredInternal,
|
|
6559
6565
|
isPressedInternal: isPressedInternal,
|
|
6560
|
-
onPress: function
|
|
6566
|
+
onPress: function () {
|
|
6561
6567
|
if (onFocus) onFocus();
|
|
6562
6568
|
setIsPickerUIVisible(true);
|
|
6563
6569
|
setIsFocused(true);
|
|
@@ -6570,7 +6576,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6570
6576
|
validateButtonLabel: pickerUIValidateButtonLabel,
|
|
6571
6577
|
defaultDate: pickerDefaultDate,
|
|
6572
6578
|
onClose: handleModalClose,
|
|
6573
|
-
onChange: function
|
|
6579
|
+
onChange: function (newDate) {
|
|
6574
6580
|
setCurrentValue(newDate);
|
|
6575
6581
|
onChange(newDate);
|
|
6576
6582
|
handleModalClose();
|
|
@@ -6886,7 +6892,7 @@ function FilePicker(_ref) {
|
|
|
6886
6892
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
6887
6893
|
children: [/*#__PURE__*/cloneElement(childElement, {
|
|
6888
6894
|
// ensure that the press event is not prevented by Button component
|
|
6889
|
-
onPress: function
|
|
6895
|
+
onPress: function () {
|
|
6890
6896
|
var _childElement$props$o, _childElement$props, _bottomSheetRef$curre;
|
|
6891
6897
|
if (disabled) return;
|
|
6892
6898
|
(_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
|
|
@@ -7187,10 +7193,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
|
|
|
7187
7193
|
isLoadingResultDetails: false,
|
|
7188
7194
|
shouldDisplayEmptyStateWhenNoResults: false
|
|
7189
7195
|
},
|
|
7190
|
-
onInputChange: function
|
|
7196
|
+
onInputChange: function () {
|
|
7191
7197
|
return Promise.resolve();
|
|
7192
7198
|
},
|
|
7193
|
-
onSelectItem: function
|
|
7199
|
+
onSelectItem: function () {}
|
|
7194
7200
|
});
|
|
7195
7201
|
function GoogleMapsAutocompleteProvider(_ref) {
|
|
7196
7202
|
var children = _ref.children,
|
|
@@ -7441,7 +7447,7 @@ function InputAddress(_ref) {
|
|
|
7441
7447
|
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
7442
7448
|
itemToString: itemToString,
|
|
7443
7449
|
initialValue: formattedInitialValue,
|
|
7444
|
-
checkSelectedItem: function
|
|
7450
|
+
checkSelectedItem: function (selectedItem, item) {
|
|
7445
7451
|
return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
|
|
7446
7452
|
},
|
|
7447
7453
|
right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
|
|
@@ -7450,10 +7456,10 @@ function InputAddress(_ref) {
|
|
|
7450
7456
|
}) : undefined,
|
|
7451
7457
|
errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
|
|
7452
7458
|
emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
|
|
7453
|
-
onInputChange: function
|
|
7459
|
+
onInputChange: function (v) {
|
|
7454
7460
|
_onInputChange(v);
|
|
7455
7461
|
},
|
|
7456
|
-
onChange: function
|
|
7462
|
+
onChange: function (v) {
|
|
7457
7463
|
onSelectItem(v, _onChange);
|
|
7458
7464
|
},
|
|
7459
7465
|
children: state.items.map(function (item) {
|
|
@@ -7535,7 +7541,7 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7535
7541
|
ref: ref
|
|
7536
7542
|
}, props), {}, {
|
|
7537
7543
|
inputMode: "numeric",
|
|
7538
|
-
onChange: function
|
|
7544
|
+
onChange: function (event) {
|
|
7539
7545
|
if (!onChange) return;
|
|
7540
7546
|
var value = parseFloat(event.nativeEvent.text);
|
|
7541
7547
|
|
|
@@ -7567,7 +7573,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7567
7573
|
testID: "kitt.InputPassword.passwordToggle",
|
|
7568
7574
|
hitSlop: 20,
|
|
7569
7575
|
accessibilityRole: "button",
|
|
7570
|
-
onPress: function
|
|
7576
|
+
onPress: function () {
|
|
7571
7577
|
return setIsVisible(function (prev) {
|
|
7572
7578
|
return !prev;
|
|
7573
7579
|
});
|
|
@@ -7602,7 +7608,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7602
7608
|
enterKeyHint: currentEnterKeyHint,
|
|
7603
7609
|
autoComplete: autoComplete,
|
|
7604
7610
|
textContentType: "telephoneNumber",
|
|
7605
|
-
onChange: function
|
|
7611
|
+
onChange: function (event) {
|
|
7606
7612
|
var number = parseNumber(event.nativeEvent.text);
|
|
7607
7613
|
|
|
7608
7614
|
// When intl phone number is valid :
|
|
@@ -7795,14 +7801,14 @@ function Radio(_ref, ref) {
|
|
|
7795
7801
|
focusable: checked && !disabled,
|
|
7796
7802
|
flexDirection: "row",
|
|
7797
7803
|
alignItems: "center",
|
|
7798
|
-
onPress: function
|
|
7804
|
+
onPress: function (event) {
|
|
7799
7805
|
if (onFocus) onFocus();
|
|
7800
7806
|
if (onChange) onChange(value, event);
|
|
7801
7807
|
if (onBlur) onBlur();
|
|
7802
7808
|
},
|
|
7803
7809
|
onFocus: onFocus,
|
|
7804
7810
|
onBlur: onBlur,
|
|
7805
|
-
children: function
|
|
7811
|
+
children: function (_ref2) {
|
|
7806
7812
|
var isHovered = _ref2.isHovered,
|
|
7807
7813
|
isPressed = _ref2.isPressed,
|
|
7808
7814
|
isFocused = _ref2.isFocused;
|
|
@@ -7921,11 +7927,11 @@ var useNativeAnimation$2 = function (_ref) {
|
|
|
7921
7927
|
};
|
|
7922
7928
|
});
|
|
7923
7929
|
return {
|
|
7924
|
-
onPressIn: function
|
|
7930
|
+
onPressIn: function () {
|
|
7925
7931
|
color.value = withSpring(1);
|
|
7926
7932
|
pressed.value = 1;
|
|
7927
7933
|
},
|
|
7928
|
-
onPressOut: function
|
|
7934
|
+
onPressOut: function () {
|
|
7929
7935
|
color.value = withSpring(0);
|
|
7930
7936
|
pressed.value = 0;
|
|
7931
7937
|
},
|
|
@@ -7978,7 +7984,7 @@ function RadioButton(_ref) {
|
|
|
7978
7984
|
flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
|
|
7979
7985
|
flexBasis: createResponsiveStyleFromProp(stretch, 0),
|
|
7980
7986
|
disabled: disabled,
|
|
7981
|
-
onPress: function
|
|
7987
|
+
onPress: function (e) {
|
|
7982
7988
|
if (onFocus) onFocus(e);
|
|
7983
7989
|
if (onChange) onChange(value);
|
|
7984
7990
|
if (onBlur) onBlur(e);
|
|
@@ -7987,7 +7993,7 @@ function RadioButton(_ref) {
|
|
|
7987
7993
|
onPressOut: onPressOut,
|
|
7988
7994
|
onFocus: onFocus,
|
|
7989
7995
|
onBlur: onBlur,
|
|
7990
|
-
children: function
|
|
7996
|
+
children: function (_ref2) {
|
|
7991
7997
|
var isHovered = _ref2.isHovered,
|
|
7992
7998
|
isPressed = _ref2.isPressed,
|
|
7993
7999
|
isFocused = _ref2.isFocused;
|
|
@@ -8106,7 +8112,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
8106
8112
|
textAlignVertical: "top",
|
|
8107
8113
|
minHeight: "kitt.forms.textArea.minHeight"
|
|
8108
8114
|
}, props), {}, {
|
|
8109
|
-
onChange: function
|
|
8115
|
+
onChange: function (e) {
|
|
8110
8116
|
if (!limit || e.nativeEvent.text.length <= limit) {
|
|
8111
8117
|
var _props$onChange;
|
|
8112
8118
|
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
|
|
@@ -8269,10 +8275,10 @@ function Toggle(_ref) {
|
|
|
8269
8275
|
children: [/*#__PURE__*/jsx(Pressable, {
|
|
8270
8276
|
accessibilityRole: "togglebutton",
|
|
8271
8277
|
disabled: isDisabled,
|
|
8272
|
-
onPress: function
|
|
8278
|
+
onPress: function () {
|
|
8273
8279
|
onChange(!value);
|
|
8274
8280
|
},
|
|
8275
|
-
children: function
|
|
8281
|
+
children: function (_ref2) {
|
|
8276
8282
|
var isHovered = _ref2.isHovered,
|
|
8277
8283
|
isPressed = _ref2.isPressed,
|
|
8278
8284
|
isFocused = _ref2.isFocused;
|
|
@@ -8459,11 +8465,11 @@ function FullscreenModalAnimation(_ref) {
|
|
|
8459
8465
|
transparent: true,
|
|
8460
8466
|
supportedOrientations: ['landscape', 'portrait'],
|
|
8461
8467
|
visible: isModalVisible,
|
|
8462
|
-
onShow: function
|
|
8468
|
+
onShow: function () {
|
|
8463
8469
|
if (onEnter) onEnter();
|
|
8464
8470
|
setIsContentVisible(true);
|
|
8465
8471
|
},
|
|
8466
|
-
onDismiss: function
|
|
8472
|
+
onDismiss: function () {
|
|
8467
8473
|
if (onExited) onExited();
|
|
8468
8474
|
},
|
|
8469
8475
|
children: /*#__PURE__*/jsxs(View, {
|
|
@@ -8510,7 +8516,7 @@ function FullscreenModalBehaviour(_ref) {
|
|
|
8510
8516
|
onClose: onClose,
|
|
8511
8517
|
children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
8512
8518
|
visible: visible,
|
|
8513
|
-
onExited: function
|
|
8519
|
+
onExited: function () {
|
|
8514
8520
|
if (onExited) onExited();
|
|
8515
8521
|
setIsModalBehaviourVisible(false);
|
|
8516
8522
|
},
|
|
@@ -8693,11 +8699,11 @@ var useNativeAnimation$1 = function (_ref) {
|
|
|
8693
8699
|
};
|
|
8694
8700
|
});
|
|
8695
8701
|
return {
|
|
8696
|
-
onPressIn: function
|
|
8702
|
+
onPressIn: function () {
|
|
8697
8703
|
color.value = withTiming(1, withTimingConfig);
|
|
8698
8704
|
translate.value = withTiming(2, withTimingConfig);
|
|
8699
8705
|
},
|
|
8700
|
-
onPressOut: function
|
|
8706
|
+
onPressOut: function () {
|
|
8701
8707
|
color.value = withTiming(0, withTimingConfig);
|
|
8702
8708
|
translate.value = withTiming(0, withTimingConfig);
|
|
8703
8709
|
},
|
|
@@ -8791,13 +8797,13 @@ function Highlight(_ref) {
|
|
|
8791
8797
|
});
|
|
8792
8798
|
}
|
|
8793
8799
|
return /*#__PURE__*/jsx(Pressable, {
|
|
8794
|
-
onPress: function
|
|
8800
|
+
onPress: function () {
|
|
8795
8801
|
setIsExpanded(!isExpanded);
|
|
8796
8802
|
setIsInitialRender(false);
|
|
8797
8803
|
},
|
|
8798
8804
|
onPressIn: onPressIn,
|
|
8799
8805
|
onPressOut: onPressOut,
|
|
8800
|
-
children: function
|
|
8806
|
+
children: function (_ref2) {
|
|
8801
8807
|
var isHovered = _ref2.isHovered;
|
|
8802
8808
|
return /*#__PURE__*/jsxs(AnimatedContainer, {
|
|
8803
8809
|
isHovered: isHovered,
|
|
@@ -9135,7 +9141,7 @@ function MapMarker(_ref2) {
|
|
|
9135
9141
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
9136
9142
|
testID: testID,
|
|
9137
9143
|
onPress: onPress,
|
|
9138
|
-
children: function
|
|
9144
|
+
children: function (_ref3) {
|
|
9139
9145
|
var isHovered = _ref3.isHovered;
|
|
9140
9146
|
return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
9141
9147
|
isHovered: isHovered
|
|
@@ -10241,6 +10247,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10241
10247
|
tag: {
|
|
10242
10248
|
borderRadius: theme.tag.borderRadius
|
|
10243
10249
|
},
|
|
10250
|
+
sticker: {
|
|
10251
|
+
borderRadius: theme.sticker.borderRadius
|
|
10252
|
+
},
|
|
10244
10253
|
tooltip: {
|
|
10245
10254
|
borderRadius: theme.tooltip.borderRadius
|
|
10246
10255
|
},
|
|
@@ -11027,6 +11036,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11027
11036
|
}
|
|
11028
11037
|
}
|
|
11029
11038
|
},
|
|
11039
|
+
sticker: {
|
|
11040
|
+
padding: theme.sticker.padding
|
|
11041
|
+
},
|
|
11030
11042
|
toggle: {
|
|
11031
11043
|
primary: {
|
|
11032
11044
|
enabled: {
|
|
@@ -11897,19 +11909,19 @@ function NavigationModalBehaviour(_ref) {
|
|
|
11897
11909
|
children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
11898
11910
|
appear: shouldAppear,
|
|
11899
11911
|
visible: visible,
|
|
11900
|
-
onEnter: function
|
|
11912
|
+
onEnter: function () {
|
|
11901
11913
|
if (onEnter) onEnter();
|
|
11902
11914
|
|
|
11903
11915
|
// Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
|
|
11904
11916
|
setShouldAppear(false);
|
|
11905
11917
|
},
|
|
11906
|
-
onExit: function
|
|
11918
|
+
onExit: function () {
|
|
11907
11919
|
if (onExit) onExit();
|
|
11908
11920
|
|
|
11909
11921
|
// Reset appear value to its original value for future modal display
|
|
11910
11922
|
setShouldAppear(appear);
|
|
11911
11923
|
},
|
|
11912
|
-
onExited: function
|
|
11924
|
+
onExited: function () {
|
|
11913
11925
|
if (onExited) onExited();
|
|
11914
11926
|
setIsModalBehaviourVisible(false);
|
|
11915
11927
|
},
|
|
@@ -12270,7 +12282,7 @@ function Picker(_ref) {
|
|
|
12270
12282
|
isOpen: state.isOpen,
|
|
12271
12283
|
selectedItem: state.currentValue,
|
|
12272
12284
|
disabled: disabled,
|
|
12273
|
-
onPress: function
|
|
12285
|
+
onPress: function () {
|
|
12274
12286
|
if (syncStateWithSourceValue) {
|
|
12275
12287
|
dispatch({
|
|
12276
12288
|
type: 'open-modal-with-value',
|
|
@@ -12319,7 +12331,7 @@ function Picker(_ref) {
|
|
|
12319
12331
|
accessibilityState: {
|
|
12320
12332
|
selected: isSelected
|
|
12321
12333
|
},
|
|
12322
|
-
onPress: function
|
|
12334
|
+
onPress: function () {
|
|
12323
12335
|
handleInternalChange(item.props.value);
|
|
12324
12336
|
},
|
|
12325
12337
|
children: function (_ref2) {
|
|
@@ -12340,7 +12352,7 @@ function Picker(_ref) {
|
|
|
12340
12352
|
children: /*#__PURE__*/jsx(Button, {
|
|
12341
12353
|
stretch: true,
|
|
12342
12354
|
type: "primary",
|
|
12343
|
-
onPress: function
|
|
12355
|
+
onPress: function () {
|
|
12344
12356
|
if (onChange) onChange(state.internalValue);
|
|
12345
12357
|
dispatch({
|
|
12346
12358
|
type: 'change-value'
|
|
@@ -12477,7 +12489,7 @@ function Skeleton(_ref) {
|
|
|
12477
12489
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
12478
12490
|
overflow: "hidden",
|
|
12479
12491
|
style: style,
|
|
12480
|
-
onLayout: function
|
|
12492
|
+
onLayout: function (_ref2) {
|
|
12481
12493
|
var nativeEvent = _ref2.nativeEvent;
|
|
12482
12494
|
return setWidth(nativeEvent.layout.width);
|
|
12483
12495
|
},
|
|
@@ -12699,7 +12711,7 @@ function StaticMap(_ref) {
|
|
|
12699
12711
|
position: "relative",
|
|
12700
12712
|
maxWidth: mapBoxMaxPictureWidth,
|
|
12701
12713
|
height: height,
|
|
12702
|
-
onLayout: function
|
|
12714
|
+
onLayout: function (event) {
|
|
12703
12715
|
var nativeEvent = event.nativeEvent;
|
|
12704
12716
|
var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
|
|
12705
12717
|
setCurrentWidth(rangedMapWidth);
|
|
@@ -12711,11 +12723,11 @@ function StaticMap(_ref) {
|
|
|
12711
12723
|
width: currentWidth,
|
|
12712
12724
|
height: height,
|
|
12713
12725
|
alt: alt,
|
|
12714
|
-
onLoadEnd: function
|
|
12726
|
+
onLoadEnd: function () {
|
|
12715
12727
|
setIsLoading(false);
|
|
12716
12728
|
if (onLoaded) onLoaded();
|
|
12717
12729
|
},
|
|
12718
|
-
onError: function
|
|
12730
|
+
onError: function () {
|
|
12719
12731
|
setHasError(true);
|
|
12720
12732
|
if (onError) onError();
|
|
12721
12733
|
}
|
|
@@ -12740,7 +12752,7 @@ function StaticMap(_ref) {
|
|
|
12740
12752
|
width: "100%",
|
|
12741
12753
|
height: "100%",
|
|
12742
12754
|
children: /*#__PURE__*/jsx(StaticMapError, {
|
|
12743
|
-
onReload: function
|
|
12755
|
+
onReload: function () {
|
|
12744
12756
|
setHasError(false);
|
|
12745
12757
|
setIsLoading(true);
|
|
12746
12758
|
setCurrentMapKey(function (prev) {
|
|
@@ -12756,6 +12768,99 @@ StaticMap.Loader = StaticMapLoader;
|
|
|
12756
12768
|
StaticMap.Error = StaticMapError;
|
|
12757
12769
|
StaticMap.Marker = StaticMapMarker;
|
|
12758
12770
|
|
|
12771
|
+
var getTypographySize = function (size) {
|
|
12772
|
+
switch (size) {
|
|
12773
|
+
case 'small':
|
|
12774
|
+
return 'content-caps-xs';
|
|
12775
|
+
case 'medium':
|
|
12776
|
+
return 'content-caps-m';
|
|
12777
|
+
case 'large':
|
|
12778
|
+
default:
|
|
12779
|
+
return 'content-caps-l';
|
|
12780
|
+
}
|
|
12781
|
+
};
|
|
12782
|
+
function Sticker(_ref) {
|
|
12783
|
+
var label = _ref.label,
|
|
12784
|
+
_ref$color = _ref.color,
|
|
12785
|
+
color = _ref$color === void 0 ? 'linen' : _ref$color,
|
|
12786
|
+
_ref$size = _ref.size,
|
|
12787
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size;
|
|
12788
|
+
var kittTheme = useKittTheme();
|
|
12789
|
+
var colorMatching = {
|
|
12790
|
+
green: {
|
|
12791
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.green-grass'],
|
|
12792
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.green-apple']
|
|
12793
|
+
},
|
|
12794
|
+
darkGreen: {
|
|
12795
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.green-pine'],
|
|
12796
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.blue-sky']
|
|
12797
|
+
},
|
|
12798
|
+
blue: {
|
|
12799
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.blue-sky'],
|
|
12800
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.green-pine']
|
|
12801
|
+
},
|
|
12802
|
+
darkBlue: {
|
|
12803
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.blue-electric'],
|
|
12804
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.3']
|
|
12805
|
+
},
|
|
12806
|
+
red: {
|
|
12807
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.brick'],
|
|
12808
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.sun']
|
|
12809
|
+
},
|
|
12810
|
+
orange: {
|
|
12811
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.orange'],
|
|
12812
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.2']
|
|
12813
|
+
},
|
|
12814
|
+
pink: {
|
|
12815
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.pink'],
|
|
12816
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.brick']
|
|
12817
|
+
},
|
|
12818
|
+
gold: {
|
|
12819
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.gold'],
|
|
12820
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.1']
|
|
12821
|
+
},
|
|
12822
|
+
cream: {
|
|
12823
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.1'],
|
|
12824
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.brick']
|
|
12825
|
+
},
|
|
12826
|
+
linen: {
|
|
12827
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.3'],
|
|
12828
|
+
font: kittTheme.kitt.palettes.deepPurple['deepPurple.8']
|
|
12829
|
+
},
|
|
12830
|
+
promo: {
|
|
12831
|
+
background: kittTheme.kitt.palettes.deepPurple['lightning.5'],
|
|
12832
|
+
font: kittTheme.kitt.palettes.deepPurple['lightning.7']
|
|
12833
|
+
},
|
|
12834
|
+
darkPromo: {
|
|
12835
|
+
background: kittTheme.kitt.palettes.deepPurple['lightning.7'],
|
|
12836
|
+
font: kittTheme.kitt.palettes.deepPurple['lightning.5']
|
|
12837
|
+
},
|
|
12838
|
+
disabled: {
|
|
12839
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.6'],
|
|
12840
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.2']
|
|
12841
|
+
}
|
|
12842
|
+
};
|
|
12843
|
+
return /*#__PURE__*/jsx(HStack, {
|
|
12844
|
+
alignSelf: "flex-start",
|
|
12845
|
+
borderRadius: "kitt.sticker.borderRadius",
|
|
12846
|
+
padding: "kitt.sticker.padding",
|
|
12847
|
+
backgroundColor: colorMatching[color].background,
|
|
12848
|
+
space: "kitt.1",
|
|
12849
|
+
alignItems: "center",
|
|
12850
|
+
maxWidth: "100%",
|
|
12851
|
+
children: /*#__PURE__*/jsx(View, {
|
|
12852
|
+
flexShrink: 1,
|
|
12853
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12854
|
+
base: getTypographySize(size),
|
|
12855
|
+
color: colorMatching[color].font,
|
|
12856
|
+
numberOfLines: 1,
|
|
12857
|
+
ellipsizeMode: "tail",
|
|
12858
|
+
children: label
|
|
12859
|
+
})
|
|
12860
|
+
})
|
|
12861
|
+
});
|
|
12862
|
+
}
|
|
12863
|
+
|
|
12759
12864
|
var _excluded$6 = ["direction", "wrap"];
|
|
12760
12865
|
function Flex(_ref) {
|
|
12761
12866
|
var direction = _ref.direction,
|
|
@@ -12981,7 +13086,7 @@ function StoryContainer(_ref) {
|
|
|
12981
13086
|
var StoryDecorator = makeDecorator({
|
|
12982
13087
|
name: 'StoryDecorator',
|
|
12983
13088
|
parameterName: 'storyDecorator',
|
|
12984
|
-
wrapper: function
|
|
13089
|
+
wrapper: function (storyFn, context) {
|
|
12985
13090
|
var story = storyFn(context);
|
|
12986
13091
|
if (context.parameters.disableStoryContainer) {
|
|
12987
13092
|
return story;
|
|
@@ -13089,7 +13194,7 @@ function TabBarItem(_ref) {
|
|
|
13089
13194
|
disabled: disabled,
|
|
13090
13195
|
testID: testID,
|
|
13091
13196
|
onPress: onPress,
|
|
13092
|
-
children: function
|
|
13197
|
+
children: function (_ref2) {
|
|
13093
13198
|
var isHovered = _ref2.isHovered,
|
|
13094
13199
|
isPressed = _ref2.isPressed,
|
|
13095
13200
|
isFocused = _ref2.isFocused;
|
|
@@ -13178,7 +13283,7 @@ function TabBar(_ref) {
|
|
|
13178
13283
|
color: color,
|
|
13179
13284
|
variant: definedVariant,
|
|
13180
13285
|
type: type,
|
|
13181
|
-
onPress: function
|
|
13286
|
+
onPress: function (event) {
|
|
13182
13287
|
var _child$props$onPress, _child$props;
|
|
13183
13288
|
onChangeTab({
|
|
13184
13289
|
tab: tab,
|
|
@@ -13327,7 +13432,7 @@ function ModalDateTimePicker(_ref) {
|
|
|
13327
13432
|
stretch: true,
|
|
13328
13433
|
testID: "timePicker.ModalDateTimePicker.submitButton",
|
|
13329
13434
|
type: "primary",
|
|
13330
|
-
onPress: function
|
|
13435
|
+
onPress: function () {
|
|
13331
13436
|
onChange(currentValue);
|
|
13332
13437
|
},
|
|
13333
13438
|
children: buttonContent
|
|
@@ -13374,7 +13479,7 @@ var TimePickerPressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13374
13479
|
width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
|
|
13375
13480
|
pointerEvents: "box-only",
|
|
13376
13481
|
onPress: onPress,
|
|
13377
|
-
children: function
|
|
13482
|
+
children: function (_ref2) {
|
|
13378
13483
|
var isHovered = _ref2.isHovered,
|
|
13379
13484
|
isFocused = _ref2.isFocused,
|
|
13380
13485
|
isPressed = _ref2.isPressed;
|
|
@@ -13451,7 +13556,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13451
13556
|
isHoveredInternal: isHoveredInternal,
|
|
13452
13557
|
isFocusedInternal: isFocusedInternal,
|
|
13453
13558
|
isPressedInternal: isPressedInternal,
|
|
13454
|
-
onPress: function
|
|
13559
|
+
onPress: function () {
|
|
13455
13560
|
setIsPickerVisible(true);
|
|
13456
13561
|
}
|
|
13457
13562
|
}), Platform.OS === 'android' && isPickerVisible ? /*#__PURE__*/jsx(DateTimePicker, {
|
|
@@ -13475,7 +13580,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13475
13580
|
value: pickerValue,
|
|
13476
13581
|
validateButtonLabel: validateButtonLabel,
|
|
13477
13582
|
onChange: handleChange,
|
|
13478
|
-
onClose: function
|
|
13583
|
+
onClose: function () {
|
|
13479
13584
|
setIsPickerVisible(false);
|
|
13480
13585
|
}
|
|
13481
13586
|
}) : null]
|
|
@@ -13838,7 +13943,7 @@ function Tooltip(_ref) {
|
|
|
13838
13943
|
ref: reference,
|
|
13839
13944
|
children: renderPressable({
|
|
13840
13945
|
ref: getPressableRect,
|
|
13841
|
-
onPress: function
|
|
13946
|
+
onPress: function () {
|
|
13842
13947
|
if (onToggle) onToggle(!!pressed.value);
|
|
13843
13948
|
pressed.value = !pressed.value;
|
|
13844
13949
|
},
|
|
@@ -13857,7 +13962,7 @@ function Tooltip(_ref) {
|
|
|
13857
13962
|
left: customShiftData.left,
|
|
13858
13963
|
right: customShiftData.right,
|
|
13859
13964
|
zIndex: zIndex,
|
|
13860
|
-
onLayout: function
|
|
13965
|
+
onLayout: function (_ref2) {
|
|
13861
13966
|
var nativeEvent = _ref2.nativeEvent;
|
|
13862
13967
|
return setFloatingWidth(nativeEvent.layout.width);
|
|
13863
13968
|
},
|
|
@@ -14021,7 +14126,7 @@ function KittThemeProvider(_ref) {
|
|
|
14021
14126
|
var KittThemeDecorator = makeDecorator({
|
|
14022
14127
|
name: 'ThemeDecorator',
|
|
14023
14128
|
parameterName: 'theme',
|
|
14024
|
-
wrapper: function
|
|
14129
|
+
wrapper: function (storyFn, context, _ref2) {
|
|
14025
14130
|
var _parameters$isSSR;
|
|
14026
14131
|
var _ref2$options = _ref2.options,
|
|
14027
14132
|
options = _ref2$options === void 0 ? {} : _ref2$options,
|
|
@@ -14360,5 +14465,5 @@ function VerticalSteps(_ref) {
|
|
|
14360
14465
|
VerticalSteps.Step = Step;
|
|
14361
14466
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14362
14467
|
|
|
14363
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, 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, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, 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 };
|
|
14468
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, 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, FlatList as 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 };
|
|
14364
14469
|
//# sourceMappingURL=index.es.js.map
|