@nutui/nutui-react-taro 3.0.0-beta.1 → 3.0.0-beta.3
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/cjs/packages/avatar/avatar.js +14 -16
- package/dist/cjs/packages/avatar/style/avatar.scss +7 -60
- package/dist/cjs/packages/avatar/style/style.css +5 -43
- package/dist/cjs/packages/avatar/style/style.harmony.css +5 -43
- package/dist/cjs/packages/badge/badge.js +67 -12
- package/dist/cjs/packages/badge/style/badge.scss +18 -24
- package/dist/cjs/packages/badge/style/style.css +17 -15
- package/dist/cjs/packages/badge/style/style.harmony.css +22 -17
- package/dist/cjs/packages/button/button.js +1 -1
- package/dist/cjs/packages/calendarcard/calendarcard.js +8 -3
- package/dist/cjs/packages/calendarcard/icon.js +14 -2
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +25 -4
- package/dist/cjs/packages/calendarcard/style/style.css +27 -2
- package/dist/cjs/packages/image/image.js +5 -5
- package/dist/cjs/packages/input/input.js +3 -5
- package/dist/cjs/packages/input/style/input.scss +4 -0
- package/dist/cjs/packages/input/style/style.css +4 -0
- package/dist/cjs/packages/input/style/style.harmony.css +4 -0
- package/dist/cjs/packages/navbar/navbar.js +17 -8
- package/dist/cjs/packages/navbar/style/navbar.scss +46 -101
- package/dist/cjs/packages/navbar/style/style.css +44 -89
- package/dist/cjs/packages/navbar/style/style.harmony.css +45 -93
- package/dist/cjs/packages/overlay/style/style.harmony.css +5 -3
- package/dist/cjs/packages/pagination/pagination.js +2 -0
- package/dist/cjs/packages/pagination/style/pagination.scss +6 -12
- package/dist/cjs/packages/pagination/style/style.css +8 -14
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +1 -1
- package/dist/cjs/packages/radio/index.d.ts +8 -2
- package/dist/cjs/packages/radio/index.js +6 -1
- package/dist/cjs/packages/radio/radio.d.ts +2 -5
- package/dist/cjs/packages/radio/radio.js +2 -4
- package/dist/cjs/packages/radio/style/radio.scss +1 -0
- package/dist/cjs/packages/radiogroup/radiogroup.d.ts +2 -1
- package/dist/cjs/packages/radiogroup/radiogroup.js +3 -2
- package/dist/cjs/packages/safearea/style/safearea.scss +1 -1
- package/dist/cjs/packages/safearea/style/style.css +1 -1
- package/dist/cjs/packages/safearea/style/style.harmony.css +1 -1
- package/dist/cjs/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/cjs/packages/searchbar/searchbar.js +31 -33
- package/dist/cjs/packages/searchbar/style/searchbar.scss +10 -7
- package/dist/cjs/packages/searchbar/style/style.css +11 -8
- package/dist/cjs/packages/searchbar/style/style.harmony.css +25 -12
- package/dist/cjs/packages/skeleton/style/style.css +5 -43
- package/dist/cjs/packages/tabbar/style/style.css +17 -15
- package/dist/cjs/packages/tabbaritem/style/style.css +17 -15
- package/dist/cjs/packages/tag/tag.d.ts +1 -1
- package/dist/cjs/packages/tag/tag.js +5 -11
- package/dist/cjs/packages/toast/style/style.css +56 -30
- package/dist/cjs/packages/toast/style/style.harmony.css +51 -62
- package/dist/cjs/packages/toast/style/toast.scss +65 -49
- package/dist/cjs/packages/toast/toast.d.ts +7 -7
- package/dist/cjs/packages/toast/toast.js +24 -19
- package/dist/cjs/packages/trendarrow/style/style.css +2 -1
- package/dist/cjs/packages/trendarrow/style/style.harmony.css +3 -2
- package/dist/cjs/packages/trendarrow/style/trendarrow.scss +2 -1
- package/dist/cjs/packages/trendarrow/trendarrow.js +6 -4
- package/dist/cjs/packages/video/video.js +3 -3
- package/dist/es/packages/avatar/avatar.js +14 -16
- package/dist/es/packages/avatar/style/avatar.scss +7 -60
- package/dist/es/packages/avatar/style/style.css +5 -43
- package/dist/es/packages/avatar/style/style.harmony.css +5 -43
- package/dist/es/packages/badge/badge.d.ts +7 -35
- package/dist/es/packages/badge/badge.js +66 -12
- package/dist/es/packages/badge/style/badge.scss +18 -24
- package/dist/es/packages/badge/style/style.css +17 -15
- package/dist/es/packages/badge/style/style.harmony.css +22 -17
- package/dist/es/packages/button/button.js +1 -1
- package/dist/es/packages/calendarcard/calendarcard.d.ts +13 -65
- package/dist/es/packages/calendarcard/calendarcard.js +9 -4
- package/dist/es/packages/calendarcard/icon.js +15 -3
- package/dist/es/packages/calendarcard/style/calendarcard.scss +25 -4
- package/dist/es/packages/calendarcard/style/style.css +27 -2
- package/dist/es/packages/image/image.js +5 -5
- package/dist/es/packages/input/input.js +3 -5
- package/dist/es/packages/input/style/input.scss +4 -0
- package/dist/es/packages/input/style/style.css +4 -0
- package/dist/es/packages/input/style/style.harmony.css +4 -0
- package/dist/es/packages/loading/loading.d.ts +3 -15
- package/dist/es/packages/navbar/navbar.js +17 -8
- package/dist/es/packages/navbar/style/navbar.scss +46 -101
- package/dist/es/packages/navbar/style/style.css +44 -89
- package/dist/es/packages/navbar/style/style.harmony.css +45 -93
- package/dist/es/packages/overlay/style/style.harmony.css +5 -3
- package/dist/es/packages/pagination/pagination.js +2 -0
- package/dist/es/packages/pagination/style/pagination.scss +6 -12
- package/dist/es/packages/pagination/style/style.css +8 -14
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +2 -2
- package/dist/es/packages/radio/index.d.ts +8 -2
- package/dist/es/packages/radio/index.js +5 -1
- package/dist/es/packages/radio/radio.d.ts +11 -50
- package/dist/es/packages/radio/radio.js +3 -5
- package/dist/es/packages/radio/style/radio.scss +1 -0
- package/dist/es/packages/radiogroup/radiogroup.d.ts +9 -36
- package/dist/es/packages/radiogroup/radiogroup.js +3 -2
- package/dist/es/packages/safearea/safearea.d.ts +1 -5
- package/dist/es/packages/safearea/style/safearea.scss +1 -1
- package/dist/es/packages/safearea/style/style.css +1 -1
- package/dist/es/packages/safearea/style/style.harmony.css +1 -1
- package/dist/es/packages/searchbar/searchbar.d.ts +19 -95
- package/dist/es/packages/searchbar/searchbar.js +32 -34
- package/dist/es/packages/searchbar/style/searchbar.scss +10 -7
- package/dist/es/packages/searchbar/style/style.css +11 -8
- package/dist/es/packages/searchbar/style/style.harmony.css +25 -12
- package/dist/es/packages/skeleton/style/style.css +5 -43
- package/dist/es/packages/tabbar/style/style.css +17 -15
- package/dist/es/packages/tabbaritem/style/style.css +17 -15
- package/dist/es/packages/tag/tag.d.ts +1 -1
- package/dist/es/packages/tag/tag.js +6 -14
- package/dist/es/packages/toast/style/style.css +56 -30
- package/dist/es/packages/toast/style/style.harmony.css +51 -62
- package/dist/es/packages/toast/style/toast.scss +65 -49
- package/dist/es/packages/toast/toast.d.ts +15 -71
- package/dist/es/packages/toast/toast.js +25 -20
- package/dist/es/packages/trendarrow/style/style.css +2 -1
- package/dist/es/packages/trendarrow/style/style.harmony.css +3 -2
- package/dist/es/packages/trendarrow/style/trendarrow.scss +2 -1
- package/dist/es/packages/trendarrow/trendarrow.d.ts +11 -55
- package/dist/es/packages/trendarrow/trendarrow.js +6 -4
- package/dist/es/packages/video/video.d.ts +5 -25
- package/dist/es/packages/video/video.js +3 -3
- package/dist/nutui.react.umd.js +533 -437
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +28 -28
- package/dist/styles/variables-jrkf.scss +21 -27
- package/dist/styles/variables.scss +7 -4
- package/package.json +2 -2
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
.nut-badge {
|
|
2
2
|
position: relative;
|
|
3
|
-
display: inline-
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
width: auto;
|
|
5
|
+
/* #ifdef harmony */
|
|
6
|
+
min-width: 1px;
|
|
7
|
+
/* #endif */
|
|
8
|
+
/* #ifndef harmony */
|
|
9
|
+
min-width: auto;
|
|
10
|
+
/* #endif */
|
|
4
11
|
}
|
|
5
12
|
.nut-badge-icon {
|
|
6
13
|
position: absolute;
|
|
@@ -8,8 +15,6 @@
|
|
|
8
15
|
justify-content: center;
|
|
9
16
|
align-items: center;
|
|
10
17
|
background: var(--nutui-badge-background-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-stop-2, #ff0f23) 100%));
|
|
11
|
-
top: -10%;
|
|
12
|
-
right: -15%;
|
|
13
18
|
padding: var(--nutui-badge-icon-padding, 3px);
|
|
14
19
|
text-align: center;
|
|
15
20
|
border: var(--nutui-badge-border, 0px solid var(--nutui-color-primary-text, #ffffff));
|
|
@@ -27,7 +32,12 @@
|
|
|
27
32
|
display: flex;
|
|
28
33
|
justify-content: center;
|
|
29
34
|
align-items: center;
|
|
35
|
+
/* #ifdef harmony */
|
|
36
|
+
background: var(--nutui-color-primary, #ff0f23);
|
|
37
|
+
/* #endif */
|
|
38
|
+
/* #ifndef harmony */
|
|
30
39
|
background: var(--nutui-badge-background-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-stop-2, #ff0f23) 100%));
|
|
40
|
+
/* #endif */
|
|
31
41
|
color: var(--nutui-badge-color, #fff);
|
|
32
42
|
padding: var(--nutui-badge-padding, 0 4px);
|
|
33
43
|
font-size: var(--nutui-badge-font-size, var(--nutui-font-size-xxs, 10px));
|
|
@@ -45,7 +55,9 @@
|
|
|
45
55
|
padding: 0;
|
|
46
56
|
}
|
|
47
57
|
.nut-badge-content {
|
|
48
|
-
|
|
58
|
+
/* #ifndef rn */
|
|
59
|
+
transform: var(--nutui-badge-content-transform, translateX(100%));
|
|
60
|
+
/* #endif */
|
|
49
61
|
}
|
|
50
62
|
.nut-badge-dot {
|
|
51
63
|
width: var(--nutui-badge-dot-width, 7px);
|
|
@@ -54,18 +66,8 @@
|
|
|
54
66
|
border-radius: var(--nutui-badge-dot-width, 7px);
|
|
55
67
|
padding: 0;
|
|
56
68
|
}
|
|
57
|
-
.nut-badge-outline
|
|
69
|
+
.nut-badge-outline {
|
|
58
70
|
background: var(--nutui-color-primary-text, #ffffff);
|
|
59
71
|
border: 1px solid var(--nutui-color-primary, #ff0f23);
|
|
60
72
|
color: var(--nutui-color-primary, #ff0f23);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
[dir=rtl] .nut-badge-icon,
|
|
64
|
-
.nut-rtl .nut-badge-icon {
|
|
65
|
-
right: auto;
|
|
66
|
-
left: -15%;
|
|
67
|
-
}
|
|
68
|
-
[dir=rtl] .nut-badge-content,
|
|
69
|
-
.nut-rtl .nut-badge-content {
|
|
70
|
-
transform: var(--nutui-badge-content-transform, translateY(-50%) translateX(-100%));
|
|
71
73
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
.nut-badge {
|
|
2
2
|
position: relative;
|
|
3
|
-
display: inline-
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
width: auto;
|
|
5
|
+
/* #ifdef harmony */
|
|
6
|
+
min-width: 1px;
|
|
7
|
+
/* #endif */
|
|
8
|
+
/* #ifndef harmony */
|
|
9
|
+
min-width: auto;
|
|
10
|
+
/* #endif */
|
|
4
11
|
}
|
|
5
12
|
.nut-badge-icon {
|
|
6
13
|
position: absolute;
|
|
7
14
|
display: flex;
|
|
8
15
|
justify-content: center;
|
|
9
16
|
align-items: center;
|
|
10
|
-
background: linear-gradient(135deg, #
|
|
11
|
-
top: -10%;
|
|
12
|
-
right: -15%;
|
|
17
|
+
background: linear-gradient(135deg, #ff475d 0%, #ff0f23 100%);
|
|
13
18
|
padding: 3px;
|
|
14
19
|
text-align: center;
|
|
15
20
|
border: 0px solid #ffffff;
|
|
@@ -27,7 +32,12 @@
|
|
|
27
32
|
display: flex;
|
|
28
33
|
justify-content: center;
|
|
29
34
|
align-items: center;
|
|
30
|
-
|
|
35
|
+
/* #ifdef harmony */
|
|
36
|
+
background: #ff0f23;
|
|
37
|
+
/* #endif */
|
|
38
|
+
/* #ifndef harmony */
|
|
39
|
+
background: linear-gradient(135deg, #ff475d 0%, #ff0f23 100%);
|
|
40
|
+
/* #endif */
|
|
31
41
|
color: #fff;
|
|
32
42
|
padding: 0 4px;
|
|
33
43
|
font-size: 10px;
|
|
@@ -45,7 +55,9 @@
|
|
|
45
55
|
padding: 0;
|
|
46
56
|
}
|
|
47
57
|
.nut-badge-content {
|
|
48
|
-
|
|
58
|
+
/* #ifndef rn */
|
|
59
|
+
transform: translateX(100%);
|
|
60
|
+
/* #endif */
|
|
49
61
|
}
|
|
50
62
|
.nut-badge-dot {
|
|
51
63
|
width: 7px;
|
|
@@ -54,15 +66,8 @@
|
|
|
54
66
|
border-radius: 7px;
|
|
55
67
|
padding: 0;
|
|
56
68
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
left: -15%;
|
|
62
|
-
}
|
|
63
|
-
[dir=rtl] .nut-badge-content {
|
|
64
|
-
transform: translateY(-50%) translateX(-100%);
|
|
65
|
-
}
|
|
66
|
-
.nut-rtl .nut-badge-content {
|
|
67
|
-
transform: translateY(-50%) translateX(-100%);
|
|
69
|
+
.nut-badge-outline {
|
|
70
|
+
background: #ffffff;
|
|
71
|
+
border: 1px solid #ff0f23;
|
|
72
|
+
color: #ff0f23;
|
|
68
73
|
}
|
|
@@ -102,7 +102,7 @@ export var Button = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
102
102
|
}
|
|
103
103
|
}), /*#__PURE__*/ React.createElement(View, {
|
|
104
104
|
className: "nut-button-wrap"
|
|
105
|
-
}, loading &&
|
|
105
|
+
}, loading && /*#__PURE__*/ React.createElement(Loading, {
|
|
106
106
|
className: "nut-icon-loading"
|
|
107
107
|
}), !loading && icon ? icon : null, children && /*#__PURE__*/ React.createElement(View, {
|
|
108
108
|
className: "nut-button-children nut-button-".concat(size, "-children nut-button-").concat(type, "-children ").concat(!(props.fill || disabled || loading) ? '' : "nut-button-".concat(type).concat(props.fill ? "-".concat(fill) : '').concat(disabled || loading ? '-disabled' : '')).concat(icon || loading ? " nut-button-text" : '').concat(rightIcon ? " nut-button-text-right" : ''),
|
|
@@ -2,70 +2,18 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import { BasicComponent } from "../../utils/typings";
|
|
3
3
|
import type { CalendarCardDay, CalendarCardMonth, CalendarCardRef, CalendarCardValue } from './types';
|
|
4
4
|
export interface CalendarCardProps extends BasicComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
defaultValue?: CalendarCardValue
|
|
20
|
-
/**
|
|
21
|
-
* 设置周起始日,0 为周日,1 为周一
|
|
22
|
-
* @default 1
|
|
23
|
-
*/
|
|
24
|
-
firstDayOfWeek?: number
|
|
25
|
-
/**
|
|
26
|
-
* 限制范围开始日期
|
|
27
|
-
* @default -
|
|
28
|
-
*/
|
|
29
|
-
startDate?: Date
|
|
30
|
-
/**
|
|
31
|
-
* 限制范围结束日期
|
|
32
|
-
* @default -
|
|
33
|
-
*/
|
|
34
|
-
endDate?: Date
|
|
35
|
-
/**
|
|
36
|
-
* 设置不可选日期
|
|
37
|
-
* @default -
|
|
38
|
-
*/
|
|
39
|
-
disableDay?: (day: CalendarCardDay) => boolean
|
|
40
|
-
/**
|
|
41
|
-
* 日期信息
|
|
42
|
-
* @default -
|
|
43
|
-
*/
|
|
44
|
-
renderDay?: (day: CalendarCardDay) => ReactNode
|
|
45
|
-
/**
|
|
46
|
-
* 日期顶部信息
|
|
47
|
-
* @default -
|
|
48
|
-
*/
|
|
49
|
-
renderDayTop?: (day: CalendarCardDay) => ReactNode
|
|
50
|
-
/**
|
|
51
|
-
* 日期底部信息
|
|
52
|
-
* @default -
|
|
53
|
-
*/
|
|
54
|
-
renderDayBottom?: (day: CalendarCardDay) => ReactNode
|
|
55
|
-
/**
|
|
56
|
-
* 点击后触发
|
|
57
|
-
* @default -
|
|
58
|
-
*/
|
|
59
|
-
onDayClick?: (day: CalendarCardDay) => void
|
|
60
|
-
/**
|
|
61
|
-
* 切换月份时触发
|
|
62
|
-
* @default -
|
|
63
|
-
*/
|
|
64
|
-
onPageChange: (data: CalendarCardMonth) => void
|
|
65
|
-
/**
|
|
66
|
-
* 选择值发生变化时触发
|
|
67
|
-
* @default -
|
|
68
|
-
*/
|
|
69
|
-
onChange: (value: CalendarCardValue) => void
|
|
5
|
+
type: 'single' | 'multiple' | 'range' | 'week';
|
|
6
|
+
value?: CalendarCardValue;
|
|
7
|
+
defaultValue?: CalendarCardValue;
|
|
8
|
+
firstDayOfWeek?: number;
|
|
9
|
+
startDate?: Date;
|
|
10
|
+
endDate?: Date;
|
|
11
|
+
disableDay?: (day: CalendarCardDay) => boolean;
|
|
12
|
+
renderDay?: (day: CalendarCardDay) => ReactNode;
|
|
13
|
+
renderDayTop?: (day: CalendarCardDay) => ReactNode;
|
|
14
|
+
renderDayBottom?: (day: CalendarCardDay) => ReactNode;
|
|
15
|
+
onDayClick?: (day: CalendarCardDay) => void;
|
|
16
|
+
onPageChange: (data: CalendarCardMonth) => void;
|
|
17
|
+
onChange: (value: CalendarCardValue) => void;
|
|
70
18
|
}
|
|
71
19
|
export declare const CalendarCard: React.ForwardRefExoticComponent<Partial<CalendarCardProps> & React.RefAttributes<CalendarCardRef>>;
|
|
@@ -2,7 +2,7 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
2
2
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
3
3
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
4
4
|
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
|
|
5
|
-
import React, {
|
|
5
|
+
import React, { useCallback, useEffect, useState } from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { View } from "@tarojs/components";
|
|
8
8
|
import { ArrowLeft, ArrowRight, DoubleLeft, DoubleRight } from "./icon";
|
|
@@ -71,7 +71,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
71
71
|
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
var getDays = function(month) {
|
|
74
|
+
var getDays = useCallback(function(month) {
|
|
75
75
|
var y = month.year;
|
|
76
76
|
var m = month.month;
|
|
77
77
|
var days = _to_consumable_array(getPrevMonthDays(y, m, firstDayOfWeek)).concat(_to_consumable_array(getCurrentMonthDays(y, m)));
|
|
@@ -88,13 +88,18 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
return days;
|
|
91
|
-
}
|
|
91
|
+
}, [
|
|
92
|
+
firstDayOfWeek
|
|
93
|
+
]);
|
|
92
94
|
useEffect(function() {
|
|
93
95
|
var newDays = getDays(month);
|
|
94
96
|
setDays(newDays);
|
|
95
97
|
onPageChange === null || onPageChange === void 0 ? void 0 : onPageChange(month);
|
|
96
98
|
}, [
|
|
97
|
-
month
|
|
99
|
+
month,
|
|
100
|
+
getDays,
|
|
101
|
+
onPageChange,
|
|
102
|
+
firstDayOfWeek
|
|
98
103
|
]);
|
|
99
104
|
var isSameDay = function(day1, day2) {
|
|
100
105
|
return (day1 === null || day1 === void 0 ? void 0 : day1.year) === (day2 === null || day2 === void 0 ? void 0 : day2.year) && (day1 === null || day1 === void 0 ? void 0 : day1.month) === (day2 === null || day2 === void 0 ? void 0 : day2.month) && (day1 === null || day1 === void 0 ? void 0 : day1.date) === (day2 === null || day2 === void 0 ? void 0 : day2.date);
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { View } from "@tarojs/components";
|
|
2
|
+
import { Image, View } from "@tarojs/components";
|
|
3
3
|
var left = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==';
|
|
4
4
|
var right = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+';
|
|
5
5
|
var doubleLeft = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTMuODUzIDQuMDI2YS43NzEuNzcxIDAgMCAxIC4xMiAxLjA4NUwxMC44NjQgOWwzLjExIDMuODg5YS43NzEuNzcxIDAgMSAxLTEuMjA0Ljk2M2wtMy40OTgtNC4zN2EuNzcxLjc3MSAwIDAgMSAwLS45NjRsMy40OTctNC4zNzFhLjc3MS43NzEgMCAwIDEgMS4wODQtLjEyem0tNS4yNDUgMGEuNzcxLjc3MSAwIDAgMSAuMTIgMS4wODVMNS42MTcgOWwzLjExMSAzLjg4OWEuNzcxLjc3MSAwIDAgMS0xLjIwNS45NjNsLTMuNDk3LTQuMzdhLjc3MS43NzEgMCAwIDEgMC0uOTY0bDMuNDk3LTQuMzcxYS43NzEuNzcxIDAgMCAxIDEuMDg1LS4xMnoiLz48L3N2Zz4=';
|
|
6
6
|
var doubleRight = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNC4xNDcgMTMuOTc0YS43NzEuNzcxIDAgMCAxLS4xMi0xLjA4NUw3LjEzNiA5IDQuMDI4IDUuMTFhLjc3MS43NzEgMCAxIDEgMS4yMDQtLjk2M2wzLjQ5NyA0LjM3MWEuNzcxLjc3MSAwIDAgMSAwIC45NjRsLTMuNDk3IDQuMzcxYS43NzEuNzcxIDAgMCAxLTEuMDg0LjEyem01LjI0NSAwYS43NzEuNzcxIDAgMCAxLS4xMi0xLjA4NUwxMi4zODMgOSA5LjI3MiA1LjExYS43NzEuNzcxIDAgMSAxIDEuMjA1LS45NjNsMy40OTcgNC4zNzFhLjc3MS43NzEgMCAwIDEgMCAuOTY0bC0zLjQ5NyA0LjM3MWEuNzcxLjc3MSAwIDAgMS0xLjA4NS4xMnoiLz48L3N2Zz4=';
|
|
7
|
+
if (process.env.TARO_ENV === 'jdharmony_cpp') {
|
|
8
|
+
left = 'https://img11.360buyimg.com/imagetools/jfs/t1/187031/35/51586/196/6731c464F9b9f8f00/5506e32bf15e29dc.png';
|
|
9
|
+
right = 'https://img12.360buyimg.com/imagetools/jfs/t1/181006/25/51824/185/6731c452F9e252322/7493147dd6b4a88d.png';
|
|
10
|
+
doubleLeft = 'https://img13.360buyimg.com/imagetools/jfs/t1/221244/29/45876/259/6731c6bdF515df0a2/624e8eee3c8494a2.png';
|
|
11
|
+
doubleRight = 'https://img11.360buyimg.com/imagetools/jfs/t1/238382/25/24000/235/6731c6bdF0153286c/4a57e60b6e889af3.png';
|
|
12
|
+
}
|
|
7
13
|
var Icon = function(param) {
|
|
8
14
|
var url = param.url;
|
|
9
15
|
var style = {
|
|
10
16
|
background: "url('".concat(url, "') no-repeat center"),
|
|
11
17
|
backgroundSize: '100% 100%',
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
18
|
+
width: 18,
|
|
19
|
+
height: 18
|
|
14
20
|
};
|
|
21
|
+
if (process.env.TARO_ENV === 'jdharmony_cpp') {
|
|
22
|
+
return /*#__PURE__*/ React.createElement(Image, {
|
|
23
|
+
src: url,
|
|
24
|
+
style: style
|
|
25
|
+
});
|
|
26
|
+
}
|
|
15
27
|
return /*#__PURE__*/ React.createElement(View, {
|
|
16
28
|
style: style
|
|
17
29
|
});
|
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
|
|
56
56
|
&-top,
|
|
57
57
|
&-bottom {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
58
61
|
width: 100%;
|
|
59
62
|
height: 12px;
|
|
60
63
|
font-size: 12px;
|
|
@@ -67,14 +70,22 @@
|
|
|
67
70
|
|
|
68
71
|
&.active {
|
|
69
72
|
background-color: $calendar-active-background-color;
|
|
70
|
-
color: $color-primary-text;
|
|
71
73
|
border-radius: $calendar-day-active-border-radius;
|
|
74
|
+
.nut-calendarcard-day-top,
|
|
75
|
+
.nut-calendarcard-day-inner,
|
|
76
|
+
.nut-calendarcard-day-bottom {
|
|
77
|
+
color: $color-primary-text;
|
|
78
|
+
}
|
|
72
79
|
}
|
|
73
80
|
|
|
74
81
|
&.start,
|
|
75
82
|
&.end {
|
|
76
83
|
background-color: $calendar-active-background-color;
|
|
77
|
-
|
|
84
|
+
.nut-calendarcard-day-top,
|
|
85
|
+
.nut-calendarcard-day-inner,
|
|
86
|
+
.nut-calendarcard-day-bottom {
|
|
87
|
+
color: $color-primary-text;
|
|
88
|
+
}
|
|
78
89
|
}
|
|
79
90
|
|
|
80
91
|
&.start {
|
|
@@ -89,7 +100,11 @@
|
|
|
89
100
|
|
|
90
101
|
&.mid {
|
|
91
102
|
background-color: $calendar-choose-background-color;
|
|
92
|
-
|
|
103
|
+
.nut-calendarcard-day-top,
|
|
104
|
+
.nut-calendarcard-day-inner,
|
|
105
|
+
.nut-calendarcard-day-bottom {
|
|
106
|
+
color: $calendar-choose-color;
|
|
107
|
+
}
|
|
93
108
|
}
|
|
94
109
|
|
|
95
110
|
.nut-calendar-day-info {
|
|
@@ -100,7 +115,11 @@
|
|
|
100
115
|
&.prev,
|
|
101
116
|
&.next,
|
|
102
117
|
&.disabled {
|
|
103
|
-
|
|
118
|
+
.nut-calendarcard-day-top,
|
|
119
|
+
.nut-calendarcard-day-inner,
|
|
120
|
+
.nut-calendarcard-day-bottom {
|
|
121
|
+
color: $calendar-disable-color;
|
|
122
|
+
}
|
|
104
123
|
cursor: not-allowed;
|
|
105
124
|
}
|
|
106
125
|
}
|
|
@@ -128,11 +147,13 @@
|
|
|
128
147
|
}
|
|
129
148
|
}
|
|
130
149
|
}
|
|
150
|
+
|
|
131
151
|
&-day {
|
|
132
152
|
&.start,
|
|
133
153
|
&.end {
|
|
134
154
|
border-radius: 0;
|
|
135
155
|
}
|
|
156
|
+
|
|
136
157
|
&.start {
|
|
137
158
|
border-top-right-radius: $calendar-day-active-border-radius;
|
|
138
159
|
border-bottom-right-radius: $calendar-day-active-border-radius;
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
cursor: auto;
|
|
48
48
|
}
|
|
49
49
|
.nut-calendarcard-day-top, .nut-calendarcard-day-bottom {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
50
53
|
width: 100%;
|
|
51
54
|
height: 12px;
|
|
52
55
|
font-size: 12px;
|
|
@@ -57,11 +60,21 @@
|
|
|
57
60
|
}
|
|
58
61
|
.nut-calendarcard-day.active {
|
|
59
62
|
background-color: var(--nutui-calendar-active-background-color, var(--nutui-color-primary, #ff0f23));
|
|
60
|
-
color: var(--nutui-color-primary-text, #ffffff);
|
|
61
63
|
border-radius: var(--nutui-calendar-day-active-border-radius, 4px);
|
|
62
64
|
}
|
|
65
|
+
.nut-calendarcard-day.active .nut-calendarcard-day-top,
|
|
66
|
+
.nut-calendarcard-day.active .nut-calendarcard-day-inner,
|
|
67
|
+
.nut-calendarcard-day.active .nut-calendarcard-day-bottom {
|
|
68
|
+
color: var(--nutui-color-primary-text, #ffffff);
|
|
69
|
+
}
|
|
63
70
|
.nut-calendarcard-day.start, .nut-calendarcard-day.end {
|
|
64
71
|
background-color: var(--nutui-calendar-active-background-color, var(--nutui-color-primary, #ff0f23));
|
|
72
|
+
}
|
|
73
|
+
.nut-calendarcard-day.start .nut-calendarcard-day-top,
|
|
74
|
+
.nut-calendarcard-day.start .nut-calendarcard-day-inner,
|
|
75
|
+
.nut-calendarcard-day.start .nut-calendarcard-day-bottom, .nut-calendarcard-day.end .nut-calendarcard-day-top,
|
|
76
|
+
.nut-calendarcard-day.end .nut-calendarcard-day-inner,
|
|
77
|
+
.nut-calendarcard-day.end .nut-calendarcard-day-bottom {
|
|
65
78
|
color: var(--nutui-color-primary-text, #ffffff);
|
|
66
79
|
}
|
|
67
80
|
.nut-calendarcard-day.start {
|
|
@@ -74,15 +87,27 @@
|
|
|
74
87
|
}
|
|
75
88
|
.nut-calendarcard-day.mid {
|
|
76
89
|
background-color: var(--nutui-calendar-choose-background-color, var(--nutui-color-primary-light-pressed, #ffebf1));
|
|
90
|
+
}
|
|
91
|
+
.nut-calendarcard-day.mid .nut-calendarcard-day-top,
|
|
92
|
+
.nut-calendarcard-day.mid .nut-calendarcard-day-inner,
|
|
93
|
+
.nut-calendarcard-day.mid .nut-calendarcard-day-bottom {
|
|
77
94
|
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff0f23));
|
|
78
95
|
}
|
|
79
96
|
.nut-calendarcard-day .nut-calendar-day-info {
|
|
80
97
|
color: var(--nutui-color-primary-text, #ffffff);
|
|
81
98
|
}
|
|
82
99
|
.nut-calendarcard-day.prev, .nut-calendarcard-day.next, .nut-calendarcard-day.disabled {
|
|
83
|
-
color: var(--nutui-calendar-disable-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
84
100
|
cursor: not-allowed;
|
|
85
101
|
}
|
|
102
|
+
.nut-calendarcard-day.prev .nut-calendarcard-day-top,
|
|
103
|
+
.nut-calendarcard-day.prev .nut-calendarcard-day-inner,
|
|
104
|
+
.nut-calendarcard-day.prev .nut-calendarcard-day-bottom, .nut-calendarcard-day.next .nut-calendarcard-day-top,
|
|
105
|
+
.nut-calendarcard-day.next .nut-calendarcard-day-inner,
|
|
106
|
+
.nut-calendarcard-day.next .nut-calendarcard-day-bottom, .nut-calendarcard-day.disabled .nut-calendarcard-day-top,
|
|
107
|
+
.nut-calendarcard-day.disabled .nut-calendarcard-day-inner,
|
|
108
|
+
.nut-calendarcard-day.disabled .nut-calendarcard-day-bottom {
|
|
109
|
+
color: var(--nutui-calendar-disable-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
110
|
+
}
|
|
86
111
|
|
|
87
112
|
[dir=rtl] .nut-calendarcard-header-left .left, [dir=rtl] .nut-calendarcard-header-right .left,
|
|
88
113
|
.nut-rtl .nut-calendarcard-header-left .left,
|
|
@@ -7,7 +7,7 @@ import Taro from "@tarojs/taro";
|
|
|
7
7
|
import { Image as TImage, View } from "@tarojs/components";
|
|
8
8
|
import { Image as ImageIcon, ImageError } from "@nutui/icons-react-taro";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import pxTransform from "../../utils/px-transform";
|
|
11
11
|
var defaultProps = {
|
|
12
12
|
src: '',
|
|
13
13
|
error: true,
|
|
@@ -30,7 +30,7 @@ export var Image = function(props) {
|
|
|
30
30
|
var _useState = _sliced_to_array(useState(true), 2), innerLoading = _useState[0], setInnerLoading = _useState[1];
|
|
31
31
|
var _useState1 = _sliced_to_array(useState(false), 2), isError = _useState1[0], setIsError = _useState1[1];
|
|
32
32
|
var pxCheck = function(value) {
|
|
33
|
-
return Number.isNaN(Number(value)) ? String(value) :
|
|
33
|
+
return Number.isNaN(Number(value)) ? String(value) : pxTransform(+value);
|
|
34
34
|
};
|
|
35
35
|
// 图片加载
|
|
36
36
|
var handleLoad = function(e) {
|
|
@@ -47,9 +47,9 @@ export var Image = function(props) {
|
|
|
47
47
|
};
|
|
48
48
|
var containerStyle = {
|
|
49
49
|
// eslint-disable-next-line no-nested-ternary
|
|
50
|
-
height: height ?
|
|
50
|
+
height: height ? pxCheck(height) : Taro.getEnv() === 'WEB' ? '' : '100%',
|
|
51
51
|
// eslint-disable-next-line no-nested-ternary
|
|
52
|
-
width: width ?
|
|
52
|
+
width: width ? pxCheck(width) : Taro.getEnv() === 'WEB' ? '' : '100%',
|
|
53
53
|
overflow: radius !== undefined && radius !== null ? 'hidden' : '',
|
|
54
54
|
borderRadius: // eslint-disable-next-line no-nested-ternary
|
|
55
55
|
radius !== undefined && radius != null ? Taro.getEnv() === 'RN' ? radius : pxCheck(radius) : ''
|
|
@@ -106,6 +106,6 @@ export var Image = function(props) {
|
|
|
106
106
|
onError: function(e) {
|
|
107
107
|
return handleError(e);
|
|
108
108
|
}
|
|
109
|
-
})),
|
|
109
|
+
})), /*#__PURE__*/ React.createElement(React.Fragment, null, renderLoading(), renderErrorImg()));
|
|
110
110
|
};
|
|
111
111
|
Image.displayName = 'NutImage';
|
|
@@ -10,7 +10,6 @@ import { formatNumber } from "./utils";
|
|
|
10
10
|
import { useConfig, useRtl } from "../configprovider/index";
|
|
11
11
|
import { ComponentDefaults } from "../../utils/typings";
|
|
12
12
|
import { usePropsValue } from "../../utils/use-props-value";
|
|
13
|
-
import { harmonyAndRn } from "../../utils/platform-taro";
|
|
14
13
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
15
14
|
type: 'text',
|
|
16
15
|
name: '',
|
|
@@ -169,8 +168,7 @@ export var Input = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
169
168
|
onBlur: handleBlur,
|
|
170
169
|
onFocus: handleFocus,
|
|
171
170
|
onInput: function(e) {
|
|
172
|
-
|
|
173
|
-
handleInput((e.currentTarget || e.detail).value);
|
|
171
|
+
handleInput((e.detail || e.currentTarget).value);
|
|
174
172
|
}
|
|
175
173
|
})), /*#__PURE__*/ React.createElement(View, {
|
|
176
174
|
style: {
|
|
@@ -185,8 +183,8 @@ export var Input = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
185
183
|
onClear === null || onClear === void 0 ? void 0 : onClear('');
|
|
186
184
|
}
|
|
187
185
|
}
|
|
188
|
-
}, clearIcon ||
|
|
186
|
+
}, clearIcon || /*#__PURE__*/ React.createElement(MaskClose, {
|
|
189
187
|
className: "nut-input-clear"
|
|
190
|
-
})
|
|
188
|
+
})));
|
|
191
189
|
});
|
|
192
190
|
Input.displayName = 'NutInput';
|
|
@@ -3,20 +3,8 @@ import { BasicComponent } from "../../utils/typings";
|
|
|
3
3
|
export type LoadingType = 'spinner' | 'circular';
|
|
4
4
|
export type LoadingDirection = 'horizontal' | 'vertical';
|
|
5
5
|
export interface LoadingProps extends BasicComponent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
type: LoadingType
|
|
11
|
-
/**
|
|
12
|
-
* loading图标和文字的排列方式
|
|
13
|
-
* @default horizontal
|
|
14
|
-
*/
|
|
15
|
-
direction: LoadingDirection
|
|
16
|
-
/**
|
|
17
|
-
* 自定义loading的图标
|
|
18
|
-
* @default -
|
|
19
|
-
*/
|
|
20
|
-
icon?: ReactNode
|
|
6
|
+
type: LoadingType;
|
|
7
|
+
direction: LoadingDirection;
|
|
8
|
+
icon?: ReactNode;
|
|
21
9
|
}
|
|
22
10
|
export declare const Loading: FunctionComponent<Partial<LoadingProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -7,8 +7,11 @@ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
|
7
7
|
import React, { useEffect, useRef, useState } from "react";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import { View } from "@tarojs/components";
|
|
10
|
+
import { useRtl } from "../configprovider/index";
|
|
10
11
|
import { ComponentDefaults } from "../../utils/typings";
|
|
11
12
|
import { getRectByTaro } from "../../utils/get-rect-by-taro";
|
|
13
|
+
import { harmonyAndRn } from "../../utils/platform-taro";
|
|
14
|
+
import pxTransform from "../../utils/px-transform";
|
|
12
15
|
import { SafeArea } from "../safearea/safearea";
|
|
13
16
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
14
17
|
left: '',
|
|
@@ -23,6 +26,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
23
26
|
export var NavBar = function(props) {
|
|
24
27
|
var _$_object_spread = _object_spread({}, defaultProps, props), right = _$_object_spread.right, left = _$_object_spread.left, titleAlign = _$_object_spread.titleAlign, className = _$_object_spread.className, style = _$_object_spread.style, back = _$_object_spread.back, fixed = _$_object_spread.fixed, safeAreaInsetTop = _$_object_spread.safeAreaInsetTop, placeholder = _$_object_spread.placeholder, zIndex = _$_object_spread.zIndex, onBackClick = _$_object_spread.onBackClick;
|
|
25
28
|
var classPrefix = 'nut-navbar';
|
|
29
|
+
var rtl = useRtl();
|
|
26
30
|
var children = Array.isArray(props.children) ? props.children : [
|
|
27
31
|
props.children
|
|
28
32
|
];
|
|
@@ -115,18 +119,21 @@ export var NavBar = function(props) {
|
|
|
115
119
|
return _ref.apply(this, arguments);
|
|
116
120
|
};
|
|
117
121
|
}();
|
|
118
|
-
|
|
122
|
+
setTimeout(function() {
|
|
123
|
+
init();
|
|
124
|
+
}, 0);
|
|
119
125
|
}, [
|
|
120
126
|
left,
|
|
121
127
|
right,
|
|
122
128
|
back
|
|
123
129
|
]);
|
|
124
130
|
var renderLeft = function() {
|
|
131
|
+
var _obj, _obj1;
|
|
125
132
|
return back || left ? /*#__PURE__*/ React.createElement(View, {
|
|
126
|
-
className: "".concat(classPrefix, "-left"),
|
|
133
|
+
className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-left"), true), _define_property(_obj, "".concat(classPrefix, "-left-align-").concat(titleAlign), true), _define_property(_obj, "".concat(classPrefix, "-left-rtl"), rtl), _obj)),
|
|
127
134
|
ref: leftRef
|
|
128
135
|
}, back && /*#__PURE__*/ React.createElement(View, {
|
|
129
|
-
className: "".concat(classPrefix, "-left-back"),
|
|
136
|
+
className: classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix, "-left-back"), true), _define_property(_obj1, "".concat(classPrefix, "-left-back-align-").concat(titleAlign), true), _define_property(_obj1, "".concat(classPrefix, "-left-back-children"), left), _define_property(_obj1, "".concat(classPrefix, "-left-back-children-rtl"), left && rtl), _obj1)),
|
|
130
137
|
onClick: function(e) {
|
|
131
138
|
return onBackClick(e);
|
|
132
139
|
}
|
|
@@ -135,20 +142,22 @@ export var NavBar = function(props) {
|
|
|
135
142
|
var renderContent = function() {
|
|
136
143
|
var titleStyle = {};
|
|
137
144
|
if (titleAlign === 'center') {
|
|
138
|
-
var
|
|
145
|
+
var width = harmonyAndRn() ? pxTransform(Number(contentWidth)) : "".concat(contentWidth, "px");
|
|
146
|
+
var contentRealWidth = /%$/i.test(contentWidth) ? contentWidth : width;
|
|
139
147
|
titleStyle = {
|
|
140
|
-
minWidth: contentRealWidth,
|
|
141
148
|
width: contentRealWidth
|
|
142
149
|
};
|
|
143
150
|
}
|
|
151
|
+
var _obj;
|
|
144
152
|
return /*#__PURE__*/ React.createElement(View, {
|
|
145
|
-
className: "".concat(classPrefix, "-title"),
|
|
153
|
+
className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-title"), true), _define_property(_obj, "".concat(classPrefix, "-title-align-").concat(titleAlign), true), _obj)),
|
|
146
154
|
style: titleStyle
|
|
147
155
|
}, children);
|
|
148
156
|
};
|
|
149
157
|
var renderRight = function() {
|
|
158
|
+
var _obj;
|
|
150
159
|
return /*#__PURE__*/ React.createElement(View, {
|
|
151
|
-
className: "".concat(classPrefix, "-right"),
|
|
160
|
+
className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-right"), true), _define_property(_obj, "".concat(classPrefix, "-right-align-").concat(titleAlign), true), _define_property(_obj, "".concat(classPrefix, "-right-rtl"), rtl), _obj)),
|
|
152
161
|
ref: rightRef
|
|
153
162
|
}, right);
|
|
154
163
|
};
|
|
@@ -160,7 +169,7 @@ export var NavBar = function(props) {
|
|
|
160
169
|
}, renderLeft(), renderContent(), renderRight());
|
|
161
170
|
};
|
|
162
171
|
var _obj;
|
|
163
|
-
var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-fixed"), fixed), _define_property(_obj, "".concat(classPrefix, "-
|
|
172
|
+
var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-fixed"), fixed), _define_property(_obj, "".concat(classPrefix, "-safe-area-inset-top"), safeAreaInsetTop), _define_property(_obj, "".concat(classPrefix, "-align-").concat(titleAlign), true), _define_property(_obj, "".concat(classPrefix, "-rtl"), rtl), _obj));
|
|
164
173
|
var cls = classNames(classPrefix, classes, className);
|
|
165
174
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, safeAreaInsetTop && /*#__PURE__*/ React.createElement(SafeArea, {
|
|
166
175
|
position: "top"
|