@nutui/nutui-react-taro 3.0.5 → 3.0.7
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 +59 -1
- package/dist/cjs/packages/actionsheet/style/style.css +4 -4
- package/dist/cjs/packages/address/style/style.css +4 -4
- package/dist/cjs/packages/audio/style/style.css +4 -16
- package/dist/cjs/packages/badge/badge.js +4 -3
- package/dist/cjs/packages/badge/style/badge.scss +4 -0
- package/dist/cjs/packages/badge/style/style.css +9 -6
- package/dist/cjs/packages/badge/style/style.harmony.css +3 -0
- package/dist/cjs/packages/button/style/button.scss +4 -20
- package/dist/cjs/packages/button/style/style.css +4 -16
- package/dist/cjs/packages/button/style/style.harmony.css +2 -14
- package/dist/cjs/packages/calendar/style/style.css +4 -4
- package/dist/cjs/packages/cascader/style/style.css +4 -4
- package/dist/cjs/packages/collapse/style/style.css +22 -7
- package/dist/cjs/packages/collapseitem/collapseitem.js +63 -77
- package/dist/cjs/packages/collapseitem/style/collapseitem.scss +22 -5
- package/dist/cjs/packages/collapseitem/style/style.css +22 -7
- package/dist/cjs/packages/collapseitem/style/style.harmony.css +22 -7
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/style/style.css +7 -4
- package/dist/cjs/packages/datepickerview/style/style.css +3 -0
- package/dist/cjs/packages/dialog/content.d.ts +11 -3
- package/dist/cjs/packages/dialog/content.js +4 -4
- package/dist/cjs/packages/dialog/dialog.d.ts +39 -4
- package/dist/cjs/packages/dialog/dialog.js +14 -13
- package/dist/cjs/packages/dialog/index.d.ts +1 -1
- package/dist/cjs/packages/dialog/style/style.css +4 -16
- package/dist/cjs/packages/empty/style/style.css +4 -16
- package/dist/cjs/packages/fixednav/style/style.css +9 -6
- package/dist/cjs/packages/imagepreview/style/style.css +4 -4
- package/dist/cjs/packages/indicator/indicator.js +1 -1
- package/dist/cjs/packages/lottie/index.js +5 -5
- package/dist/cjs/packages/lottie/{mp.js → lottiemp.js} +1 -1
- package/dist/cjs/packages/notify/notify.js +44 -13
- package/dist/cjs/packages/notify/style/notify.scss +39 -36
- package/dist/cjs/packages/notify/style/style.css +36 -31
- package/dist/cjs/packages/notify/style/style.harmony.css +36 -31
- package/dist/cjs/packages/numberkeyboard/style/style.css +4 -4
- package/dist/cjs/packages/picker/style/style.css +7 -4
- package/dist/cjs/packages/pickerview/pickerroller.js +7 -2
- package/dist/cjs/packages/pickerview/style/pickerview.scss +3 -0
- package/dist/cjs/packages/pickerview/style/style.css +3 -0
- package/dist/cjs/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/cjs/packages/popover/popover.d.ts +0 -7
- package/dist/cjs/packages/popover/popover.js +114 -141
- package/dist/cjs/packages/popover/style/popover.scss +48 -51
- package/dist/cjs/packages/popover/style/style.css +64 -70
- package/dist/cjs/packages/popover/style/style.harmony.css +64 -60
- package/dist/cjs/packages/popup/style/popup.scss +4 -4
- package/dist/cjs/packages/popup/style/style.css +4 -4
- package/dist/cjs/packages/popup/style/style.harmony.css +4 -4
- package/dist/cjs/packages/resultpage/style/style.css +4 -16
- package/dist/cjs/packages/searchbar/searchbar.js +8 -2
- package/dist/cjs/packages/shortpassword/style/style.css +4 -4
- package/dist/cjs/packages/skeleton/skeleton.js +63 -52
- package/dist/cjs/packages/skeleton/style/index.js +0 -1
- package/dist/cjs/packages/skeleton/style/skeleton.scss +40 -46
- package/dist/cjs/packages/skeleton/style/style.css +32 -175
- package/dist/cjs/packages/skeleton/style/style.harmony.css +32 -42
- package/dist/cjs/packages/switch/style/style.css +5 -0
- package/dist/cjs/packages/switch/style/style.harmony.css +5 -0
- package/dist/cjs/packages/switch/style/switch.scss +5 -0
- package/dist/cjs/packages/switch/switch.js +22 -11
- package/dist/cjs/packages/tabbar/style/style.css +54 -45
- package/dist/cjs/packages/tabbar/style/style.harmony.css +24 -18
- package/dist/cjs/packages/tabbar/style/tabbar.scss +28 -19
- package/dist/cjs/packages/tabbar/tabbar.js +28 -10
- package/dist/cjs/packages/tabbaritem/style/style.css +30 -27
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +21 -21
- package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +32 -29
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +38 -14
- package/dist/cjs/packages/tabpane/tabpane.js +2 -2
- package/dist/cjs/packages/timeselect/style/style.css +4 -4
- package/dist/cjs/packages/tour/style/style.css +64 -70
- package/dist/cjs/packages/tour/tour.js +3 -4
- package/dist/cjs/types/spec/badge/base.d.ts +1 -0
- package/dist/cjs/types/spec/dialog/base.d.ts +50 -1
- package/dist/cjs/types/spec/dialog/base.js +7 -0
- package/dist/cjs/types/spec/dialog/h5.d.ts +4 -1
- package/dist/cjs/types/spec/dialog/taro.d.ts +8 -2
- package/dist/cjs/types/spec/indicator/base.d.ts +1 -1
- package/dist/cjs/types/spec/notify/base.d.ts +7 -2
- package/dist/cjs/types/spec/popover/base.d.ts +7 -0
- package/dist/cjs/types/spec/searchbar/taro.d.ts +10 -7
- package/dist/cjs/types/spec/skeleton/base.d.ts +7 -5
- package/dist/cjs/types/spec/switch/base.d.ts +3 -2
- package/dist/cjs/types/spec/switch/h5.d.ts +1 -1
- package/dist/cjs/types/spec/switch/taro.d.ts +1 -4
- package/dist/cjs/types/spec/tabbar/base.d.ts +7 -4
- package/dist/cjs/utils/get-rect-by-taro.js +10 -0
- package/dist/cjs/utils/lru.d.ts +8 -0
- package/dist/cjs/utils/lru.js +58 -0
- package/dist/es/packages/actionsheet/style/style.css +4 -4
- package/dist/es/packages/address/style/style.css +4 -4
- package/dist/es/packages/audio/style/style.css +4 -16
- package/dist/es/packages/badge/badge.js +4 -3
- package/dist/es/packages/badge/style/badge.scss +4 -0
- package/dist/es/packages/badge/style/style.css +9 -6
- package/dist/es/packages/badge/style/style.harmony.css +3 -0
- package/dist/es/packages/button/style/button.scss +4 -20
- package/dist/es/packages/button/style/style.css +4 -16
- package/dist/es/packages/button/style/style.harmony.css +2 -14
- package/dist/es/packages/calendar/style/style.css +4 -4
- package/dist/es/packages/cascader/style/style.css +4 -4
- package/dist/es/packages/collapse/style/style.css +22 -7
- package/dist/es/packages/collapseitem/collapseitem.js +65 -79
- package/dist/es/packages/collapseitem/style/collapseitem.scss +22 -5
- package/dist/es/packages/collapseitem/style/style.css +22 -7
- package/dist/es/packages/collapseitem/style/style.harmony.css +22 -7
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/datepicker/style/style.css +7 -4
- package/dist/es/packages/datepickerview/style/style.css +3 -0
- package/dist/es/packages/dialog/content.d.ts +11 -3
- package/dist/es/packages/dialog/content.js +4 -4
- package/dist/es/packages/dialog/dialog.d.ts +39 -4
- package/dist/es/packages/dialog/dialog.js +14 -13
- package/dist/es/packages/dialog/index.d.ts +1 -1
- package/dist/es/packages/dialog/style/style.css +4 -16
- package/dist/es/packages/empty/style/style.css +4 -16
- package/dist/es/packages/fixednav/style/style.css +9 -6
- package/dist/es/packages/imagepreview/style/style.css +4 -4
- package/dist/es/packages/indicator/indicator.js +1 -1
- package/dist/es/packages/lottie/index.js +3 -3
- package/dist/es/packages/lottie/{mp.js → lottiemp.js} +1 -1
- package/dist/es/packages/notify/notify.js +45 -14
- package/dist/es/packages/notify/style/notify.scss +39 -36
- package/dist/es/packages/notify/style/style.css +36 -31
- package/dist/es/packages/notify/style/style.harmony.css +36 -31
- package/dist/es/packages/numberkeyboard/style/style.css +4 -4
- package/dist/es/packages/picker/style/style.css +7 -4
- package/dist/es/packages/pickerview/pickerroller.js +7 -2
- package/dist/es/packages/pickerview/style/pickerview.scss +3 -0
- package/dist/es/packages/pickerview/style/style.css +3 -0
- package/dist/es/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/es/packages/popover/popover.d.ts +0 -7
- package/dist/es/packages/popover/popover.js +115 -142
- package/dist/es/packages/popover/style/popover.scss +48 -51
- package/dist/es/packages/popover/style/style.css +64 -70
- package/dist/es/packages/popover/style/style.harmony.css +64 -60
- package/dist/es/packages/popup/style/popup.scss +4 -4
- package/dist/es/packages/popup/style/style.css +4 -4
- package/dist/es/packages/popup/style/style.harmony.css +4 -4
- package/dist/es/packages/resultpage/style/style.css +4 -16
- package/dist/es/packages/searchbar/searchbar.js +7 -2
- package/dist/es/packages/shortpassword/style/style.css +4 -4
- package/dist/es/packages/skeleton/skeleton.js +62 -52
- package/dist/es/packages/skeleton/style/index.js +0 -1
- package/dist/es/packages/skeleton/style/skeleton.scss +40 -46
- package/dist/es/packages/skeleton/style/style.css +32 -175
- package/dist/es/packages/skeleton/style/style.harmony.css +32 -42
- package/dist/es/packages/switch/style/style.css +5 -0
- package/dist/es/packages/switch/style/style.harmony.css +5 -0
- package/dist/es/packages/switch/style/switch.scss +5 -0
- package/dist/es/packages/switch/switch.js +21 -11
- package/dist/es/packages/tabbar/style/style.css +54 -45
- package/dist/es/packages/tabbar/style/style.harmony.css +24 -18
- package/dist/es/packages/tabbar/style/tabbar.scss +28 -19
- package/dist/es/packages/tabbar/tabbar.js +27 -10
- package/dist/es/packages/tabbaritem/style/style.css +30 -27
- package/dist/es/packages/tabbaritem/style/style.harmony.css +21 -21
- package/dist/es/packages/tabbaritem/style/tabbaritem.scss +32 -29
- package/dist/es/packages/tabbaritem/tabbaritem.js +38 -14
- package/dist/es/packages/tabpane/tabpane.js +2 -2
- package/dist/es/packages/timeselect/style/style.css +4 -4
- package/dist/es/packages/tour/style/style.css +64 -70
- package/dist/es/packages/tour/tour.js +3 -4
- package/dist/es/types/spec/badge/base.d.ts +4 -0
- package/dist/es/types/spec/dialog/base.d.ts +83 -1
- package/dist/es/types/spec/dialog/base.js +1 -1
- package/dist/es/types/spec/dialog/h5.d.ts +4 -1
- package/dist/es/types/spec/dialog/taro.d.ts +8 -2
- package/dist/es/types/spec/indicator/base.d.ts +1 -1
- package/dist/es/types/spec/notify/base.d.ts +22 -5
- package/dist/es/types/spec/popover/base.d.ts +7 -0
- package/dist/es/types/spec/searchbar/taro.d.ts +10 -7
- package/dist/es/types/spec/skeleton/base.d.ts +19 -14
- package/dist/es/types/spec/switch/base.d.ts +6 -2
- package/dist/es/types/spec/switch/h5.d.ts +1 -1
- package/dist/es/types/spec/switch/taro.d.ts +1 -4
- package/dist/es/types/spec/tabbar/base.d.ts +7 -4
- package/dist/es/utils/get-rect-by-taro.js +9 -0
- package/dist/es/utils/lru.d.ts +8 -0
- package/dist/es/utils/lru.js +49 -0
- package/dist/nutui.react.umd.js +683 -552
- package/dist/style.css +1 -1
- package/dist/style.scss +46 -46
- package/dist/styles/theme-jmapp.scss +1 -0
- package/dist/styles/themes/jmapp.css +1 -1
- package/dist/styles/variables-jmapp.scss +237 -50
- package/dist/styles/variables-jrkf.scss +25 -14
- package/dist/styles/variables.scss +38 -51
- package/package.json +1 -1
- package/dist/cjs/packages/dialog/types.d.ts +0 -57
- package/dist/cjs/packages/dialog/types.js +0 -4
- package/dist/cjs/packages/dialog/types.taro.d.ts +0 -10
- package/dist/es/packages/dialog/types.d.ts +0 -57
- package/dist/es/packages/dialog/types.js +0 -1
- package/dist/es/packages/dialog/types.taro.d.ts +0 -10
- /package/dist/cjs/packages/lottie/{mp.d.ts → lottiemp.d.ts} +0 -0
- /package/dist/cjs/packages/lottie/{web.d.ts → lottieweb.d.ts} +0 -0
- /package/dist/cjs/packages/lottie/{web.js → lottieweb.js} +0 -0
- /package/dist/es/packages/lottie/{mp.d.ts → lottiemp.d.ts} +0 -0
- /package/dist/es/packages/lottie/{web.d.ts → lottieweb.d.ts} +0 -0
- /package/dist/es/packages/lottie/{web.js → lottieweb.js} +0 -0
|
@@ -1099,30 +1099,17 @@ $popup-title-border-bottom: var(--nutui-popup-title-border-bottom, 0) !default;
|
|
|
1099
1099
|
$popup-animation-duration: var(--nutui-popup-animation-duration, 0.3s) !default;
|
|
1100
1100
|
|
|
1101
1101
|
// Notify(✅)
|
|
1102
|
-
$notify-text-color: var(--nutui-notify-text-color, $white) !default;
|
|
1103
|
-
$notify-padding: var(--nutui-notify-padding, 0px 10px) !default;
|
|
1104
|
-
$notify-font-size: var(--nutui-notify-font-size, $font-size-base) !default;
|
|
1105
1102
|
$notify-height: var(--nutui-notify-height, 40px) !default;
|
|
1106
|
-
$notify-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
) !default;
|
|
1114
|
-
$notify-
|
|
1115
|
-
|
|
1116
|
-
$color-success
|
|
1117
|
-
) !default;
|
|
1118
|
-
$notify-danger-background-color: var(
|
|
1119
|
-
--nutui-notify-danger-background-color,
|
|
1120
|
-
$color-primary
|
|
1121
|
-
) !default;
|
|
1122
|
-
$notify-warning-background-color: var(
|
|
1123
|
-
--nutui-notify-warning-background-color,
|
|
1124
|
-
$color-warning
|
|
1125
|
-
) !default;
|
|
1103
|
+
$notify-padding: var(--nutui-notify-padding, 0px 12px) !default;
|
|
1104
|
+
$notify-border-radius: var(--nutui-notify-border-radius, 8px) !default;
|
|
1105
|
+
$notify-box-shadow: var(
|
|
1106
|
+
--nutui-notify-box-shadow,
|
|
1107
|
+
0px 4px 12px 0px rgba(0, 0, 0, 0.06)
|
|
1108
|
+
) !default;
|
|
1109
|
+
$notify-z-index: var(--nutui-notify-z-index, 1000) !default;
|
|
1110
|
+
$notify-text-color: var(--nutui-notify-text-color, $color-title) !default;
|
|
1111
|
+
$notify-font-size: var(--nutui-notify-font-size, $font-size-base) !default;
|
|
1112
|
+
$notify-background-color: var(--nutui-notify-background-color, $white) !default;
|
|
1126
1113
|
|
|
1127
1114
|
// rate(✅)
|
|
1128
1115
|
$rate-item-margin: var(--nutui-rate-item-margin, 4px) !default;
|
|
@@ -1136,21 +1123,18 @@ $rate-font-color: var(--nutui-rate-font-color, $color-primary-icon) !default;
|
|
|
1136
1123
|
$rate-font-size: var(--nutui-rate-font-size, 12px) !default;
|
|
1137
1124
|
|
|
1138
1125
|
// tabbar(✅)
|
|
1139
|
-
$tabbar-height: var(--nutui-tabbar-height,
|
|
1126
|
+
$tabbar-height: var(--nutui-tabbar-height, 46px) !default;
|
|
1140
1127
|
$tabbar-active-color: var(--nutui-tabbar-active-color, $color-primary) !default;
|
|
1141
1128
|
$tabbar-inactive-color: var(
|
|
1142
1129
|
--nutui-tabbar-inactive-color,
|
|
1143
1130
|
$color-title
|
|
1144
1131
|
) !default;
|
|
1145
|
-
$tabbar-border-top: var(--nutui-tabbar-border-top,
|
|
1146
|
-
$tabbar-border-bottom: var(
|
|
1147
|
-
--nutui-tabbar-border-bottom,
|
|
1148
|
-
1px solid #eee
|
|
1149
|
-
) !default;
|
|
1132
|
+
$tabbar-border-top: var(--nutui-tabbar-border-top, 0) !default;
|
|
1133
|
+
$tabbar-border-bottom: var(--nutui-tabbar-border-bottom, 0) !default;
|
|
1150
1134
|
$tabbar-box-shadow: var(--nutui-tabbar-box-shadow, none) !default;
|
|
1151
1135
|
$tabbar-text-font-size: var(
|
|
1152
1136
|
--nutui-tabbar-text-font-size,
|
|
1153
|
-
$font-size-
|
|
1137
|
+
$font-size-xxs
|
|
1154
1138
|
) !default;
|
|
1155
1139
|
$tabbar-text-large-font-size: var(
|
|
1156
1140
|
--nutui-tabbar-text-large-font-size,
|
|
@@ -1161,8 +1145,7 @@ $tabbar-text-large-font-weight: var(
|
|
|
1161
1145
|
$font-weight
|
|
1162
1146
|
) !default;
|
|
1163
1147
|
$tabbar-text-line-height: var(--nutui-tabbar-text-line-height, 20px) !default;
|
|
1164
|
-
$tabbar-
|
|
1165
|
-
$tabbar-text-margin-top: var(--nutui-tabbar-text-margin-top, 3px) !default;
|
|
1148
|
+
$tabbar-text-margin-top: var(--nutui-tabbar-text-margin-top, 4px) !default;
|
|
1166
1149
|
|
|
1167
1150
|
//pulltorefresh
|
|
1168
1151
|
$pulltorefresh-icon-width: var(--nutui-pulltorefresh-icon-width, 36px) !default;
|
|
@@ -1616,6 +1599,10 @@ $badge-background-color: var(
|
|
|
1616
1599
|
--nutui-badge-background-color,
|
|
1617
1600
|
$color-primary
|
|
1618
1601
|
) !default;
|
|
1602
|
+
$badge-background-disabled-color: var(
|
|
1603
|
+
--nutui-badge-background-disabled-color,
|
|
1604
|
+
$color-text-disabled
|
|
1605
|
+
) !default;
|
|
1619
1606
|
$badge-color: var(--nutui-badge-color, $color-primary-text) !default;
|
|
1620
1607
|
$badge-font-size: var(--nutui-badge-font-size, $font-size-xxxs) !default;
|
|
1621
1608
|
$badge-border: var(
|
|
@@ -1633,8 +1620,8 @@ $badge-content-transform: var(
|
|
|
1633
1620
|
) !default;
|
|
1634
1621
|
$badge-z-index: var(--nutui-badge-z-index, 1) !default;
|
|
1635
1622
|
$badge-dot-width: var(--nutui-badge-dot-width, 6px) !default;
|
|
1636
|
-
$badge-dot-small-width: var(--nutui-badge-dot-width, 4px) !default;
|
|
1637
|
-
$badge-dot-large-width: var(--nutui-badge-dot-width, 8px) !default;
|
|
1623
|
+
$badge-dot-small-width: var(--nutui-badge-dot-small-width, 4px) !default;
|
|
1624
|
+
$badge-dot-large-width: var(--nutui-badge-dot-large-width, 8px) !default;
|
|
1638
1625
|
$badge-dot-border: var(--nutui-badge-dot-border, 1px solid $color-primary-text);
|
|
1639
1626
|
$badge-outline-color: var(--nutui-badge-outline-color, $color-primary) !default;
|
|
1640
1627
|
$badge-outline-border: var(
|
|
@@ -1644,21 +1631,12 @@ $badge-outline-border: var(
|
|
|
1644
1631
|
|
|
1645
1632
|
//popover(✅)
|
|
1646
1633
|
$popover-border-radius: var(--nutui-popover-border-radius, $radius-xs) !default;
|
|
1647
|
-
$popover-border-color: var(--nutui-popover-border-color, #ffffff) !default;
|
|
1648
1634
|
$popover-font-size: var(--nutui-popover-font-size, $font-size-s) !default;
|
|
1649
1635
|
$popover-content-background-color: var(
|
|
1650
1636
|
--nutui-popover-content-background-color,
|
|
1651
1637
|
#ffffff
|
|
1652
1638
|
) !default;
|
|
1653
1639
|
$popover-text-color: var(--nutui-popover-text-color, $color-mask) !default;
|
|
1654
|
-
$popover-hover-background-color: var(
|
|
1655
|
-
--nutui-popover-hover-background-color,
|
|
1656
|
-
#fff
|
|
1657
|
-
) !default;
|
|
1658
|
-
$popover-hover-text-color: var(
|
|
1659
|
-
--nutui-popover-hover-text-color,
|
|
1660
|
-
#1a1a1a
|
|
1661
|
-
) !default;
|
|
1662
1640
|
$popover-disable-color: var(
|
|
1663
1641
|
--nutui-popover-disable-color,
|
|
1664
1642
|
$color-text-disabled
|
|
@@ -1667,11 +1645,8 @@ $popover-divider-color: var(
|
|
|
1667
1645
|
--nutui-popover-divider-color,
|
|
1668
1646
|
$color-border
|
|
1669
1647
|
) !default;
|
|
1670
|
-
$popover-
|
|
1671
|
-
|
|
1672
|
-
8px
|
|
1673
|
-
) !default;
|
|
1674
|
-
$popover-menu-item-width: var(--nutui-popover-menu-item-width, 160px) !default;
|
|
1648
|
+
$popover-padding: var(--nutui-popover-padding, 8px) !default;
|
|
1649
|
+
$popover-item-width: var(--nutui-popover-item-width, 160px) !default;
|
|
1675
1650
|
|
|
1676
1651
|
//progress(✅)
|
|
1677
1652
|
$progress-height: var(--nutui-progress-height, 10px) !default;
|
|
@@ -2132,13 +2107,24 @@ $form-item-tip-text-align: var(--nutui-form-item-tip-text-align, left) !default;
|
|
|
2132
2107
|
// skeleton(✅)
|
|
2133
2108
|
$skeleton-background: var(
|
|
2134
2109
|
--nutui-skeleton-background,
|
|
2135
|
-
$color-background
|
|
2110
|
+
$color-background-sunken
|
|
2136
2111
|
) !default;
|
|
2137
2112
|
$skeleton-line-width: var(--nutui-skeleton-line-width, 100%) !default;
|
|
2138
|
-
$skeleton-line-height: var(
|
|
2113
|
+
$skeleton-line-small-height: var(
|
|
2114
|
+
--nutui-skeleton-line-small-height,
|
|
2115
|
+
16px
|
|
2116
|
+
) !default;
|
|
2117
|
+
$skeleton-line-normal-height: var(
|
|
2118
|
+
--nutui-skeleton-line-normal-height,
|
|
2119
|
+
24px
|
|
2120
|
+
) !default;
|
|
2121
|
+
$skeleton-line-large-height: var(
|
|
2122
|
+
--nutui-skeleton-line-large-height,
|
|
2123
|
+
32px
|
|
2124
|
+
) !default;
|
|
2139
2125
|
$skeleton-line-border-radius: var(
|
|
2140
2126
|
--nutui-skeleton-line-border-radius,
|
|
2141
|
-
|
|
2127
|
+
$radius-xs
|
|
2142
2128
|
) !default;
|
|
2143
2129
|
|
|
2144
2130
|
// card(✅)
|
|
@@ -2203,6 +2189,7 @@ $navbar-title-font-color: var(
|
|
|
2203
2189
|
--nutui-navbar-title-font-color,
|
|
2204
2190
|
$color-title
|
|
2205
2191
|
) !default;
|
|
2192
|
+
|
|
2206
2193
|
// sidebar(✅)
|
|
2207
2194
|
$sidebar-background-color: var(
|
|
2208
2195
|
--nutui-sidebar-background-color,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@nutui/nutui-react-taro","version":"3.0.
|
|
1
|
+
{"name":"@nutui/nutui-react-taro","version":"3.0.7","style":"dist/style.css","main":"dist/nutui.react.umd.js","module":"dist/es/packages/nutui.react.build.js","typings":"dist/es/packages/nutui.react.build.d.ts","scripts":{"publish:beta":"npm publish --tag=beta --access public --no-git-checks","publish:latest":"npm publish --access public --no-git-checks"},"sideEffects":["*.scss","dist/es/**/style/*","dist/cjs/**/style/*","dist/style.css","dist/styles/font/*","dist/styles/font-jmapp/*"],"description":"京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序","keywords":["nutui","nutui2","nutui3","react","nutui-react","webpack","react component","vite","jdc","jdcfe","taro"],"author":"jdcfe","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jdf2e/nutui-react.git"},"files":["dist","README.md","package.json","LICENSE","CHANGELOG.md"],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"dependencies":{"@babel/runtime":"^7.23.9","@nutui/icons-react-taro":"^3.0.1","@nutui/jdesign-icons-react-taro":"1.0.6-beta.2","@nutui/touch-emulator":"^1.0.0","@nutui/lottie-miniprogram":"^1.0.1","@react-spring/web":"~9.6.1","@swc/helpers":"^0.5.7","@use-gesture/react":"10.2.20","async-validator":"^4.2.5","classnames":"^2.5.1","codesandbox":"^2.2.3","lodash.kebabcase":"^4.1.1","lottie-react":"^2.4.0","react-fast-compare":"^3.2.2","react-transition-group":"^4.4.5","rehype-highlight":"^7.0.2"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0"}}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import type { MouseEvent, CSSProperties } from 'react';
|
|
3
|
-
import { WebOverlayProps } from "../../types";
|
|
4
|
-
import { BasicComponent } from "../../utils/typings";
|
|
5
|
-
export type DialogConfigType = {
|
|
6
|
-
prefixCls?: string;
|
|
7
|
-
simple?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export type DialogCloseIconPosition = 'top-right' | 'top-left' | 'bottom';
|
|
10
|
-
export type DialogFooterDirection = 'horizontal' | 'vertical';
|
|
11
|
-
export interface ContentProps extends BasicComponent {
|
|
12
|
-
visible: boolean;
|
|
13
|
-
title: ReactNode;
|
|
14
|
-
header: ReactNode;
|
|
15
|
-
footer: ReactNode;
|
|
16
|
-
close: ReactNode;
|
|
17
|
-
footerDirection: DialogFooterDirection;
|
|
18
|
-
onClick: (event: MouseEvent) => void;
|
|
19
|
-
}
|
|
20
|
-
export interface DialogWrapProps extends WebOverlayProps, Omit<ContentProps, 'onClick'> {
|
|
21
|
-
visible: boolean;
|
|
22
|
-
overlay: boolean;
|
|
23
|
-
overlayStyle: CSSProperties;
|
|
24
|
-
overlayClassName: string;
|
|
25
|
-
onCancel: () => void;
|
|
26
|
-
onClose: () => void;
|
|
27
|
-
onOverlayClick: (e: MouseEvent) => boolean | void;
|
|
28
|
-
}
|
|
29
|
-
export interface DialogBasicProps extends DialogWrapProps {
|
|
30
|
-
content?: ReactNode;
|
|
31
|
-
confirmText?: ReactNode;
|
|
32
|
-
cancelText?: ReactNode;
|
|
33
|
-
hideConfirmButton?: boolean;
|
|
34
|
-
hideCancelButton?: boolean;
|
|
35
|
-
disableConfirmButton?: boolean;
|
|
36
|
-
closeIconPosition?: DialogCloseIconPosition;
|
|
37
|
-
closeIcon?: boolean | ReactNode;
|
|
38
|
-
beforeClose?: () => boolean;
|
|
39
|
-
beforeCancel?: () => boolean;
|
|
40
|
-
onConfirm?: (e?: MouseEvent<HTMLButtonElement>) => PromiseLike<any> | void;
|
|
41
|
-
}
|
|
42
|
-
export interface DialogConfirmProps extends DialogBasicProps {
|
|
43
|
-
content: ReactNode;
|
|
44
|
-
isNotice: boolean;
|
|
45
|
-
noticeType: string;
|
|
46
|
-
}
|
|
47
|
-
export type DialogReturnProps = {
|
|
48
|
-
update: (newConfig: Partial<DialogConfirmProps>) => void;
|
|
49
|
-
close: () => void;
|
|
50
|
-
};
|
|
51
|
-
export interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<Partial<DialogBasicProps>>> {
|
|
52
|
-
confirm: (props: Partial<DialogConfirmProps>) => DialogReturnProps;
|
|
53
|
-
alert: (props: Partial<DialogConfirmProps>) => DialogReturnProps;
|
|
54
|
-
config: (config: DialogConfigType) => void;
|
|
55
|
-
destroyAll: () => void;
|
|
56
|
-
}
|
|
57
|
-
export declare const destroyList: Array<() => void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ITouchEvent } from '@tarojs/components';
|
|
2
|
-
import { ContentProps as ContentWebProps, DialogBasicProps as DialogBasicWebProps } from './types';
|
|
3
|
-
export type { DialogConfigType, DialogCloseIconPosition, DialogFooterDirection, DialogWrapProps, DialogConfirmProps, DialogReturnProps, } from './types';
|
|
4
|
-
export type ContentProps = Omit<ContentWebProps, 'onClick'> & {
|
|
5
|
-
onClick: (event: ITouchEvent) => void;
|
|
6
|
-
};
|
|
7
|
-
export type DialogBasicProps = Omit<DialogBasicWebProps, 'onOverlayClick' | 'onClick'> & {
|
|
8
|
-
onClick: (event: ITouchEvent) => void;
|
|
9
|
-
onOverlayClick: (event: ITouchEvent) => boolean | void;
|
|
10
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import type { MouseEvent, CSSProperties } from 'react';
|
|
3
|
-
import { WebOverlayProps } from "../../types";
|
|
4
|
-
import { BasicComponent } from "../../utils/typings";
|
|
5
|
-
export type DialogConfigType = {
|
|
6
|
-
prefixCls?: string;
|
|
7
|
-
simple?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export type DialogCloseIconPosition = 'top-right' | 'top-left' | 'bottom';
|
|
10
|
-
export type DialogFooterDirection = 'horizontal' | 'vertical';
|
|
11
|
-
export interface ContentProps extends BasicComponent {
|
|
12
|
-
visible: boolean;
|
|
13
|
-
title: ReactNode;
|
|
14
|
-
header: ReactNode;
|
|
15
|
-
footer: ReactNode;
|
|
16
|
-
close: ReactNode;
|
|
17
|
-
footerDirection: DialogFooterDirection;
|
|
18
|
-
onClick: (event: MouseEvent) => void;
|
|
19
|
-
}
|
|
20
|
-
export interface DialogWrapProps extends WebOverlayProps, Omit<ContentProps, 'onClick'> {
|
|
21
|
-
visible: boolean;
|
|
22
|
-
overlay: boolean;
|
|
23
|
-
overlayStyle: CSSProperties;
|
|
24
|
-
overlayClassName: string;
|
|
25
|
-
onCancel: () => void;
|
|
26
|
-
onClose: () => void;
|
|
27
|
-
onOverlayClick: (e: MouseEvent) => boolean | void;
|
|
28
|
-
}
|
|
29
|
-
export interface DialogBasicProps extends DialogWrapProps {
|
|
30
|
-
content?: ReactNode;
|
|
31
|
-
confirmText?: ReactNode;
|
|
32
|
-
cancelText?: ReactNode;
|
|
33
|
-
hideConfirmButton?: boolean;
|
|
34
|
-
hideCancelButton?: boolean;
|
|
35
|
-
disableConfirmButton?: boolean;
|
|
36
|
-
closeIconPosition?: DialogCloseIconPosition;
|
|
37
|
-
closeIcon?: boolean | ReactNode;
|
|
38
|
-
beforeClose?: () => boolean;
|
|
39
|
-
beforeCancel?: () => boolean;
|
|
40
|
-
onConfirm?: (e?: MouseEvent<HTMLButtonElement>) => PromiseLike<any> | void;
|
|
41
|
-
}
|
|
42
|
-
export interface DialogConfirmProps extends DialogBasicProps {
|
|
43
|
-
content: ReactNode;
|
|
44
|
-
isNotice: boolean;
|
|
45
|
-
noticeType: string;
|
|
46
|
-
}
|
|
47
|
-
export type DialogReturnProps = {
|
|
48
|
-
update: (newConfig: Partial<DialogConfirmProps>) => void;
|
|
49
|
-
close: () => void;
|
|
50
|
-
};
|
|
51
|
-
export interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<Partial<DialogBasicProps>>> {
|
|
52
|
-
confirm: (props: Partial<DialogConfirmProps>) => DialogReturnProps;
|
|
53
|
-
alert: (props: Partial<DialogConfirmProps>) => DialogReturnProps;
|
|
54
|
-
config: (config: DialogConfigType) => void;
|
|
55
|
-
destroyAll: () => void;
|
|
56
|
-
}
|
|
57
|
-
export declare const destroyList: Array<() => void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ITouchEvent } from '@tarojs/components';
|
|
2
|
-
import { ContentProps as ContentWebProps, DialogBasicProps as DialogBasicWebProps } from './types';
|
|
3
|
-
export type { DialogConfigType, DialogCloseIconPosition, DialogFooterDirection, DialogWrapProps, DialogConfirmProps, DialogReturnProps, } from './types';
|
|
4
|
-
export type ContentProps = Omit<ContentWebProps, 'onClick'> & {
|
|
5
|
-
onClick: (event: ITouchEvent) => void;
|
|
6
|
-
};
|
|
7
|
-
export type DialogBasicProps = Omit<DialogBasicWebProps, 'onOverlayClick' | 'onClick'> & {
|
|
8
|
-
onClick: (event: ITouchEvent) => void;
|
|
9
|
-
onOverlayClick: (event: ITouchEvent) => boolean | void;
|
|
10
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|