@ornikar/kitt-universal 9.46.1 → 9.47.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/dist/definitions/MapMarker/MapMarker.d.ts +6 -2
- package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/reducers/keyboardDatePickerReducer.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +28 -9
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +28 -9
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +28 -9
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +29 -10
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +26 -9
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +26 -9
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +4 -4
- package/typings/react-native-web.d.ts +4 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ColorType } from 'native-base/lib/typescript/components/types';
|
|
1
2
|
import type { ReactElement } from 'react';
|
|
2
3
|
interface BaseMarkerWithSizeProps {
|
|
3
4
|
width: number;
|
|
@@ -7,9 +8,12 @@ interface BaseMarkerWithoutSizeProps {
|
|
|
7
8
|
width?: never;
|
|
8
9
|
height?: never;
|
|
9
10
|
}
|
|
11
|
+
interface BaseMarkerWithColorProp {
|
|
12
|
+
color?: ColorType;
|
|
13
|
+
}
|
|
10
14
|
export type MapMarkerProps = BaseMarkerWithSizeProps | BaseMarkerWithoutSizeProps;
|
|
11
|
-
export declare function MapMarkerSimple({ width, height }: MapMarkerProps): ReactElement;
|
|
12
|
-
export declare function MapMarkerLarge({ width, height }: MapMarkerProps): ReactElement;
|
|
15
|
+
export declare function MapMarkerSimple({ width, height, color, }: MapMarkerProps & BaseMarkerWithColorProp): ReactElement;
|
|
16
|
+
export declare function MapMarkerLarge({ width, height, color, }: MapMarkerProps & BaseMarkerWithColorProp): ReactElement;
|
|
13
17
|
export declare function MapMarkerPosition({ width, height }: MapMarkerProps): ReactElement;
|
|
14
18
|
export {};
|
|
15
19
|
//# sourceMappingURL=MapMarker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../src/MapMarker/MapMarker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../src/MapMarker/MapMarker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,0BAA0B;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG,0BAA0B,CAAC;AAElF,wBAAgB,eAAe,CAAC,EAC9B,KAAU,EACV,MAAW,EACX,KAAuC,GACxC,EAAE,cAAc,GAAG,uBAAuB,GAAG,YAAY,CAOzD;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAU,EACV,MAAW,EACX,KAAuC,GACxC,EAAE,cAAc,GAAG,uBAAuB,GAAG,YAAY,CAOzD;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAU,EAAE,MAAW,EAAE,EAAE,cAAc,GAAG,YAAY,CAE3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardDatePickerReducer.d.ts","sourceRoot":"","sources":["../../../../../src/forms/DatePicker/reducers/keyboardDatePickerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"keyboardDatePickerReducer.d.ts","sourceRoot":"","sources":["../../../../../src/forms/DatePicker/reducers/keyboardDatePickerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAWrD,MAAM,WAAW,KAAK;IACpB,YAAY,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CACrC;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,KAAK,OAAO,GACR,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAoE7D,CAAC"}
|
|
@@ -2678,6 +2678,11 @@ function getYearInInterval(value, minDate, maxDate) {
|
|
|
2678
2678
|
return value !== undefined ? Math.max(minValue, Math.min(maxValue, value)) : value;
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
|
+
function getValueToDisplayedString(value) {
|
|
2682
|
+
// We exclude the undefined value since 0 is a valid number
|
|
2683
|
+
if (value === undefined) return '';
|
|
2684
|
+
return value.toString();
|
|
2685
|
+
}
|
|
2681
2686
|
var keyboardDatePickerReducer = function (state, action) {
|
|
2682
2687
|
switch (action.type) {
|
|
2683
2688
|
case 'day-change':
|
|
@@ -2685,7 +2690,7 @@ var keyboardDatePickerReducer = function (state, action) {
|
|
|
2685
2690
|
var nextDay = action.nextDay;
|
|
2686
2691
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
2687
2692
|
currentDay: nextDay,
|
|
2688
|
-
displayedDay: nextDay
|
|
2693
|
+
displayedDay: getValueToDisplayedString(nextDay)
|
|
2689
2694
|
});
|
|
2690
2695
|
}
|
|
2691
2696
|
case 'month-change':
|
|
@@ -2693,7 +2698,7 @@ var keyboardDatePickerReducer = function (state, action) {
|
|
|
2693
2698
|
var nextMonth = action.nextMonth;
|
|
2694
2699
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
2695
2700
|
currentMonth: nextMonth,
|
|
2696
|
-
displayedMonth: nextMonth
|
|
2701
|
+
displayedMonth: getValueToDisplayedString(nextMonth)
|
|
2697
2702
|
});
|
|
2698
2703
|
}
|
|
2699
2704
|
case 'year-change':
|
|
@@ -2701,7 +2706,7 @@ var keyboardDatePickerReducer = function (state, action) {
|
|
|
2701
2706
|
var nextYear = action.nextYear;
|
|
2702
2707
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
2703
2708
|
currentYear: nextYear,
|
|
2704
|
-
displayedYear: nextYear
|
|
2709
|
+
displayedYear: getValueToDisplayedString(nextYear)
|
|
2705
2710
|
});
|
|
2706
2711
|
}
|
|
2707
2712
|
case 'day-blur':
|
|
@@ -4630,7 +4635,7 @@ ListItem.SideContainer = ListItemSideContainer;
|
|
|
4630
4635
|
|
|
4631
4636
|
var SvgMarkerLargeinline = function SvgMarkerLargeinline(props) {
|
|
4632
4637
|
return /*#__PURE__*/jsxs(Svg, _objectSpread(_objectSpread({
|
|
4633
|
-
fill: "
|
|
4638
|
+
fill: "currentColor",
|
|
4634
4639
|
viewBox: "0 0 54 56",
|
|
4635
4640
|
width: 54,
|
|
4636
4641
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -4683,7 +4688,7 @@ var SvgMarkerLargeinline = function SvgMarkerLargeinline(props) {
|
|
|
4683
4688
|
var SvgMarkerinline = function SvgMarkerinline(props) {
|
|
4684
4689
|
return /*#__PURE__*/jsxs(Svg, _objectSpread(_objectSpread({
|
|
4685
4690
|
viewBox: "0 0 40 39",
|
|
4686
|
-
fill: "
|
|
4691
|
+
fill: "currentColor",
|
|
4687
4692
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4688
4693
|
}, props), {}, {
|
|
4689
4694
|
children: [/*#__PURE__*/jsx(Path, {
|
|
@@ -4767,20 +4772,34 @@ function MapMarkerSimple(_ref) {
|
|
|
4767
4772
|
var _ref$width = _ref.width,
|
|
4768
4773
|
width = _ref$width === void 0 ? 40 : _ref$width,
|
|
4769
4774
|
_ref$height = _ref.height,
|
|
4770
|
-
height = _ref$height === void 0 ? 39 : _ref$height
|
|
4775
|
+
height = _ref$height === void 0 ? 39 : _ref$height,
|
|
4776
|
+
_ref$color = _ref.color,
|
|
4777
|
+
color = _ref$color === void 0 ? lateOceanColorPalette.lateOcean : _ref$color;
|
|
4778
|
+
var sx = useSx();
|
|
4779
|
+
var styles = sx({
|
|
4780
|
+
color: color
|
|
4781
|
+
});
|
|
4771
4782
|
return /*#__PURE__*/jsx(SvgMarkerinline, {
|
|
4772
4783
|
width: width,
|
|
4773
|
-
height: height
|
|
4784
|
+
height: height,
|
|
4785
|
+
color: styles.color
|
|
4774
4786
|
});
|
|
4775
4787
|
}
|
|
4776
4788
|
function MapMarkerLarge(_ref2) {
|
|
4777
4789
|
var _ref2$width = _ref2.width,
|
|
4778
4790
|
width = _ref2$width === void 0 ? 54 : _ref2$width,
|
|
4779
4791
|
_ref2$height = _ref2.height,
|
|
4780
|
-
height = _ref2$height === void 0 ? 56 : _ref2$height
|
|
4792
|
+
height = _ref2$height === void 0 ? 56 : _ref2$height,
|
|
4793
|
+
_ref2$color = _ref2.color,
|
|
4794
|
+
color = _ref2$color === void 0 ? lateOceanColorPalette.lateOcean : _ref2$color;
|
|
4795
|
+
var sx = useSx();
|
|
4796
|
+
var styles = sx({
|
|
4797
|
+
color: color
|
|
4798
|
+
});
|
|
4781
4799
|
return /*#__PURE__*/jsx(SvgMarkerLargeinline, {
|
|
4782
4800
|
width: width,
|
|
4783
|
-
height: height
|
|
4801
|
+
height: height,
|
|
4802
|
+
color: styles.color
|
|
4784
4803
|
});
|
|
4785
4804
|
}
|
|
4786
4805
|
function MapMarkerPosition(_ref3) {
|