@nutui/nutui-react 2.0.0-alpha.0 → 2.0.0-alpha.2
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 +35 -627
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Animate.js +6 -7
- package/dist/esm/Audio.js +18 -21
- package/dist/esm/Badge.js +15 -22
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Col.js +4 -3
- package/dist/esm/Divider.js +4 -3
- package/dist/esm/Drag.js +7 -9
- package/dist/esm/Elevator.js +38 -41
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/Menu.js +75 -73
- package/dist/esm/MenuItem.js +29 -27
- package/dist/esm/NavBar.js +17 -48
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Popup.js +23 -30
- package/dist/esm/Progress.js +20 -68
- package/dist/esm/Row.js +6 -5
- package/dist/esm/SideNavBar.js +0 -2
- package/dist/esm/Uploader.js +49 -52
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +717 -832
- package/dist/nutui.react.umd.js +717 -832
- package/dist/packages/audio/audio.scss +2 -15
- package/dist/packages/badge/badge.scss +8 -17
- package/dist/packages/calendar/calendar.scss +0 -30
- package/dist/packages/elevator/elevator.scss +2 -28
- package/dist/packages/menu/menu.scss +44 -55
- package/dist/packages/menuitem/menuitem.scss +16 -26
- package/dist/packages/navbar/navbar.scss +16 -115
- package/dist/packages/popup/popup.scss +0 -16
- package/dist/packages/progress/progress.scss +19 -58
- package/dist/packages/row/row.scss +13 -31
- package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
- package/dist/packages/uploader/uploader.scss +2 -28
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +23 -114
- package/dist/styles/variables.scss +31 -122
- package/dist/types/index.d.ts +43 -81
- package/package.json +1 -1
package/dist/style.mjs
CHANGED
|
@@ -1520,108 +1520,36 @@ $popover-menu-name-line-height: var(
|
|
|
1520
1520
|
normal
|
|
1521
1521
|
) !default;
|
|
1522
1522
|
|
|
1523
|
-
//
|
|
1523
|
+
//progress(✅)
|
|
1524
|
+
$progress-height: var(--nutui-progress-height, 10px) !default;
|
|
1525
|
+
$progress-color: var(
|
|
1526
|
+
--nutui-progress-color,
|
|
1527
|
+
linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)
|
|
1528
|
+
) !default;
|
|
1529
|
+
$progress-background: var(--nutui-progress-background, #f3f3f3) !default;
|
|
1524
1530
|
$progress-border-radius: var(--nutui-progress-border-radius, 12px) !default;
|
|
1525
|
-
$progress-text-
|
|
1526
|
-
|
|
1527
|
-
$progress-text-color: var(--nutui-progress-text-color, $title-color) !default;
|
|
1528
|
-
$progress-text-inner-color: var(
|
|
1529
|
-
--nutui-progress-text-inner-color,
|
|
1531
|
+
$progress-text-color: var(
|
|
1532
|
+
--nutui-progress-text-color,
|
|
1530
1533
|
$primary-text-color
|
|
1531
1534
|
) !default;
|
|
1532
|
-
$progress-
|
|
1533
|
-
--nutui-progress-
|
|
1534
|
-
-
|
|
1535
|
+
$progress-text-background: var(
|
|
1536
|
+
--nutui-progress-text-background,
|
|
1537
|
+
$progress-color
|
|
1535
1538
|
) !default;
|
|
1536
|
-
$progress-
|
|
1537
|
-
|
|
1539
|
+
$progress-text-padding: var(--nutui-progress-text-padding, 0 5px) !default;
|
|
1540
|
+
$progress-text-font-size: var(--nutui-progress-text-font-size, 9px) !default;
|
|
1541
|
+
$progress-text-position-top: var(
|
|
1542
|
+
--nutui-progress-text-position-top,
|
|
1538
1543
|
-4px
|
|
1539
1544
|
) !default;
|
|
1540
|
-
$progress-
|
|
1541
|
-
--nutui-progress-
|
|
1542
|
-
|
|
1543
|
-
) !default;
|
|
1544
|
-
$progress-inner-background-color: linear-gradient(
|
|
1545
|
-
135deg,
|
|
1546
|
-
$primary-color 0%,
|
|
1547
|
-
$primary-color-end 100%
|
|
1548
|
-
) !default;
|
|
1549
|
-
$progress-insidetext-background: var(
|
|
1550
|
-
--nutui-progress-insidetext-background,
|
|
1551
|
-
$progress-inner-background-color
|
|
1552
|
-
) !default;
|
|
1553
|
-
$progress-outer-background-color: var(
|
|
1554
|
-
--nutui-progress-outer-background-color,
|
|
1555
|
-
#f3f3f3
|
|
1556
|
-
) !default;
|
|
1557
|
-
$progress-outer-border-radius: var(
|
|
1558
|
-
--nutui-progress-outer-border-radius,
|
|
1559
|
-
12px
|
|
1545
|
+
$progress-text-position-bottom: var(
|
|
1546
|
+
--nutui-progress-text-position-bottom,
|
|
1547
|
+
-4px
|
|
1560
1548
|
) !default;
|
|
1561
|
-
$progress-
|
|
1562
|
-
--nutui-progress-
|
|
1549
|
+
$progress-text-border-radius: var(
|
|
1550
|
+
--nutui-progress-text-border-radius,
|
|
1563
1551
|
5px
|
|
1564
1552
|
) !default;
|
|
1565
|
-
$progress-insidetext-padding: var(
|
|
1566
|
-
--nutui-progress-insidetext-padding,
|
|
1567
|
-
3px 5px 3px 6px
|
|
1568
|
-
) !default;
|
|
1569
|
-
$progress-insidetext-top: var(--nutui-progress-insidetext-top, -42%) !default;
|
|
1570
|
-
$progress-small-text-top: var(--nutui-progress-small-text-top, -100%) !default;
|
|
1571
|
-
$progress-small-font-size: var(--nutui-progress-small-font-size, 7px) !default;
|
|
1572
|
-
$progress-small-padding: var(--nutui-progress-small-padding, 0 4px) !default;
|
|
1573
|
-
$progress-small-height: var(--nutui-progress-small-height, 5px) !default;
|
|
1574
|
-
$progress-small-text-font-size: var(
|
|
1575
|
-
--nutui-progress-small-text-font-size,
|
|
1576
|
-
7px
|
|
1577
|
-
) !default;
|
|
1578
|
-
$progress-small-text-line-height: var(
|
|
1579
|
-
--nutui-progress-small-text-line-height,
|
|
1580
|
-
10px
|
|
1581
|
-
) !default;
|
|
1582
|
-
$progress-small-text-padding: var(
|
|
1583
|
-
--nutui-progress-small-text-padding,
|
|
1584
|
-
2px 4px
|
|
1585
|
-
) !default;
|
|
1586
|
-
$progress-small-text-top: var(--nutui-progress-small-text-top, -100%) !default;
|
|
1587
|
-
$progress-base-font-size: var(--nutui-progress-base-font-size, 9px) !default;
|
|
1588
|
-
$progress-base-padding: var(--nutui-progress-base-padding, 0 5px) !default;
|
|
1589
|
-
$progress-base-height: var(--nutui-progress-base-height, 10px) !default;
|
|
1590
|
-
$progress-base-text-font-size: var(
|
|
1591
|
-
--nutui-progress-base-text-font-size,
|
|
1592
|
-
9px
|
|
1593
|
-
) !default;
|
|
1594
|
-
$progress-base-text-line-height: var(
|
|
1595
|
-
--nutui-progress-base-text-line-height,
|
|
1596
|
-
13px
|
|
1597
|
-
) !default;
|
|
1598
|
-
$progress-base-text-padding: var(
|
|
1599
|
-
--nutui-progress-base-text-padding,
|
|
1600
|
-
$progress-insidetext-padding
|
|
1601
|
-
) !default;
|
|
1602
|
-
$progress-base-text-top: var(
|
|
1603
|
-
--nutui-progress-base-text-top,
|
|
1604
|
-
$progress-insidetext-top
|
|
1605
|
-
) !default;
|
|
1606
|
-
$progress-large-font-size: var(--nutui-progress-large-font-size, 13px) !default;
|
|
1607
|
-
$progress-large-padding: var(--nutui-progress-large-padding, 0 5px) !default;
|
|
1608
|
-
$progress-large-height: var(--nutui-progress-large-height, 15px) !default;
|
|
1609
|
-
$progress-large-text-font-size: var(
|
|
1610
|
-
--nutui-progress-large-text-font-size,
|
|
1611
|
-
13px
|
|
1612
|
-
) !default;
|
|
1613
|
-
$progress-large-text-line-height: var(
|
|
1614
|
-
--nutui-progress-large-text-line-height,
|
|
1615
|
-
18px
|
|
1616
|
-
) !default;
|
|
1617
|
-
$progress-large-text-padding: var(
|
|
1618
|
-
--nutui-progress-large-text-padding,
|
|
1619
|
-
$progress-insidetext-padding
|
|
1620
|
-
) !default;
|
|
1621
|
-
$progress-large-text-top: var(
|
|
1622
|
-
--nutui-progress-large-text-top,
|
|
1623
|
-
$progress-insidetext-top
|
|
1624
|
-
) !default;
|
|
1625
1553
|
|
|
1626
1554
|
//pagination(✅)
|
|
1627
1555
|
$pagination-color: var(--nutui-pagination-color, $primary-color) !default;
|
|
@@ -2196,21 +2124,14 @@ $navbar-box-shadow: var(
|
|
|
2196
2124
|
0px 1px 7px 0px rgba(237, 238, 241, 1)
|
|
2197
2125
|
) !default;
|
|
2198
2126
|
$navbar-color: var(--nutui-navbar-color, $gray1) !default;
|
|
2199
|
-
$navbar-
|
|
2200
|
-
|
|
2201
|
-
$font-size-2
|
|
2202
|
-
) !default;
|
|
2203
|
-
$navbar-title-font: var(--nutui-navbar-title-font, $font-size-2) !default;
|
|
2127
|
+
$navbar-font-size: var(--nutui-navbar-font-size, $font-size-2) !default;
|
|
2128
|
+
$navbar-title-font: var(--nutui-navbar-title-font-size, $font-size-2) !default;
|
|
2204
2129
|
$navbar-title-font-weight: var(--nutui-navbar-title-font-weight, 0) !default;
|
|
2205
2130
|
$navbar-title-font-color: var(
|
|
2206
2131
|
--nutui-navbar-title-font-color,
|
|
2207
2132
|
$navbar-color
|
|
2208
2133
|
) !default;
|
|
2209
2134
|
$navbar-title-width: var(--nutui-navbar-title-width, 100px) !default;
|
|
2210
|
-
$navbar-title-icon-margin: var(
|
|
2211
|
-
--nutui-navbar-title-icon-margin,
|
|
2212
|
-
0 0 0 13px
|
|
2213
|
-
) !default;
|
|
2214
2135
|
|
|
2215
2136
|
// sidenavbar(✅)
|
|
2216
2137
|
$sidenavbar-content-bg-color: var(
|
|
@@ -2328,18 +2249,6 @@ $elevator-list-item-code-line-height: var(
|
|
|
2328
2249
|
--nutui-elevator-list-item-code-line-height,
|
|
2329
2250
|
35px
|
|
2330
2251
|
) !default;
|
|
2331
|
-
$elevator-list-item-code-after-width: var(
|
|
2332
|
-
--nutui-elevator-list-item-code-after-width,
|
|
2333
|
-
100%
|
|
2334
|
-
) !default;
|
|
2335
|
-
$elevator-list-item-code-after-height: var(
|
|
2336
|
-
--nutui-elevator-list-item-code-after-height,
|
|
2337
|
-
1px
|
|
2338
|
-
) !default;
|
|
2339
|
-
$elevator-list-item-code-after-bg-color: var(
|
|
2340
|
-
--nutui-elevator-list-item-code-after-bg-color,
|
|
2341
|
-
#f5f5f5
|
|
2342
|
-
) !default;
|
|
2343
2252
|
$elevator-list-item-code-current-box-shadow: 0 3px 3px 1px
|
|
2344
2253
|
rgba(240, 240, 240, 1) !default;
|
|
2345
2254
|
$elevator-list-item-code-current-bg-color: var(
|
|
@@ -1419,26 +1419,19 @@ $badge-background-color: var(
|
|
|
1419
1419
|
) !default;
|
|
1420
1420
|
$badge-color: var(--nutui-badge-color, #fff) !default;
|
|
1421
1421
|
$badge-font-size: var(--nutui-badge-font-size, $font-size-1) !default;
|
|
1422
|
-
$badge-default-background-color: var(
|
|
1423
|
-
--nutui-badge-default-background-color,
|
|
1424
|
-
rgba(255, 255, 255, 1)
|
|
1425
|
-
) !default;
|
|
1426
1422
|
$badge-border: var(
|
|
1427
1423
|
--nutui-badge-border,
|
|
1428
1424
|
0px solid $primary-text-color
|
|
1429
1425
|
) !default;
|
|
1430
1426
|
$badge-border-radius: var(--nutui-badge-border-radius, 14px) !default;
|
|
1431
1427
|
$badge-padding: var(--nutui-badge-padding, 0 5px) !default;
|
|
1432
|
-
$badge-icon-padding: var(--nutui-badge-icon-padding,
|
|
1428
|
+
$badge-icon-padding: var(--nutui-badge-icon-padding, 3px) !default;
|
|
1433
1429
|
$badge-content-transform: var(
|
|
1434
1430
|
--nutui-badge-content-transform,
|
|
1435
1431
|
translateY(-50%) translateX(100%)
|
|
1436
1432
|
) !default;
|
|
1437
1433
|
$badge-z-index: var(--nutui-badge-z-index, 1) !default;
|
|
1438
1434
|
$badge-dot-width: var(--nutui-badge-dot-width, 7px) !default;
|
|
1439
|
-
$badge-dot-height: var(--nutui-badge-dot-height, 7px) !default;
|
|
1440
|
-
$badge-dot-border-radius: var(--nutui-badge-dot-border-radius, 7px) !default;
|
|
1441
|
-
$badge-dot-padding: var(--nutui-badge-dot-padding, 0px) !default;
|
|
1442
1435
|
|
|
1443
1436
|
//popover(✅)
|
|
1444
1437
|
$popover-border-radius: var(--nutui-popover-border-radius, 8px) !default;
|
|
@@ -1505,108 +1498,36 @@ $popover-menu-name-line-height: var(
|
|
|
1505
1498
|
normal
|
|
1506
1499
|
) !default;
|
|
1507
1500
|
|
|
1508
|
-
//
|
|
1501
|
+
//progress(✅)
|
|
1502
|
+
$progress-height: var(--nutui-progress-height, 10px) !default;
|
|
1503
|
+
$progress-color: var(
|
|
1504
|
+
--nutui-progress-color,
|
|
1505
|
+
linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)
|
|
1506
|
+
) !default;
|
|
1507
|
+
$progress-background: var(--nutui-progress-background, #f3f3f3) !default;
|
|
1509
1508
|
$progress-border-radius: var(--nutui-progress-border-radius, 12px) !default;
|
|
1510
|
-
$progress-text-
|
|
1511
|
-
|
|
1512
|
-
$progress-text-color: var(--nutui-progress-text-color, $title-color) !default;
|
|
1513
|
-
$progress-text-inner-color: var(
|
|
1514
|
-
--nutui-progress-text-inner-color,
|
|
1509
|
+
$progress-text-color: var(
|
|
1510
|
+
--nutui-progress-text-color,
|
|
1515
1511
|
$primary-text-color
|
|
1516
1512
|
) !default;
|
|
1517
|
-
$progress-
|
|
1518
|
-
--nutui-progress-
|
|
1519
|
-
-
|
|
1513
|
+
$progress-text-background: var(
|
|
1514
|
+
--nutui-progress-text-background,
|
|
1515
|
+
$progress-color
|
|
1520
1516
|
) !default;
|
|
1521
|
-
$progress-
|
|
1522
|
-
|
|
1517
|
+
$progress-text-padding: var(--nutui-progress-text-padding, 0 5px) !default;
|
|
1518
|
+
$progress-text-font-size: var(--nutui-progress-text-font-size, 9px) !default;
|
|
1519
|
+
$progress-text-position-top: var(
|
|
1520
|
+
--nutui-progress-text-position-top,
|
|
1523
1521
|
-4px
|
|
1524
1522
|
) !default;
|
|
1525
|
-
$progress-
|
|
1526
|
-
--nutui-progress-
|
|
1527
|
-
|
|
1528
|
-
) !default;
|
|
1529
|
-
$progress-inner-background-color: linear-gradient(
|
|
1530
|
-
135deg,
|
|
1531
|
-
$primary-color 0%,
|
|
1532
|
-
$primary-color-end 100%
|
|
1533
|
-
) !default;
|
|
1534
|
-
$progress-insidetext-background: var(
|
|
1535
|
-
--nutui-progress-insidetext-background,
|
|
1536
|
-
$progress-inner-background-color
|
|
1537
|
-
) !default;
|
|
1538
|
-
$progress-outer-background-color: var(
|
|
1539
|
-
--nutui-progress-outer-background-color,
|
|
1540
|
-
#f3f3f3
|
|
1541
|
-
) !default;
|
|
1542
|
-
$progress-outer-border-radius: var(
|
|
1543
|
-
--nutui-progress-outer-border-radius,
|
|
1544
|
-
12px
|
|
1523
|
+
$progress-text-position-bottom: var(
|
|
1524
|
+
--nutui-progress-text-position-bottom,
|
|
1525
|
+
-4px
|
|
1545
1526
|
) !default;
|
|
1546
|
-
$progress-
|
|
1547
|
-
--nutui-progress-
|
|
1527
|
+
$progress-text-border-radius: var(
|
|
1528
|
+
--nutui-progress-text-border-radius,
|
|
1548
1529
|
5px
|
|
1549
1530
|
) !default;
|
|
1550
|
-
$progress-insidetext-padding: var(
|
|
1551
|
-
--nutui-progress-insidetext-padding,
|
|
1552
|
-
3px 5px 3px 6px
|
|
1553
|
-
) !default;
|
|
1554
|
-
$progress-insidetext-top: var(--nutui-progress-insidetext-top, -42%) !default;
|
|
1555
|
-
$progress-small-text-top: var(--nutui-progress-small-text-top, -100%) !default;
|
|
1556
|
-
$progress-small-font-size: var(--nutui-progress-small-font-size, 7px) !default;
|
|
1557
|
-
$progress-small-padding: var(--nutui-progress-small-padding, 0 4px) !default;
|
|
1558
|
-
$progress-small-height: var(--nutui-progress-small-height, 5px) !default;
|
|
1559
|
-
$progress-small-text-font-size: var(
|
|
1560
|
-
--nutui-progress-small-text-font-size,
|
|
1561
|
-
7px
|
|
1562
|
-
) !default;
|
|
1563
|
-
$progress-small-text-line-height: var(
|
|
1564
|
-
--nutui-progress-small-text-line-height,
|
|
1565
|
-
10px
|
|
1566
|
-
) !default;
|
|
1567
|
-
$progress-small-text-padding: var(
|
|
1568
|
-
--nutui-progress-small-text-padding,
|
|
1569
|
-
2px 4px
|
|
1570
|
-
) !default;
|
|
1571
|
-
$progress-small-text-top: var(--nutui-progress-small-text-top, -100%) !default;
|
|
1572
|
-
$progress-base-font-size: var(--nutui-progress-base-font-size, 9px) !default;
|
|
1573
|
-
$progress-base-padding: var(--nutui-progress-base-padding, 0 5px) !default;
|
|
1574
|
-
$progress-base-height: var(--nutui-progress-base-height, 10px) !default;
|
|
1575
|
-
$progress-base-text-font-size: var(
|
|
1576
|
-
--nutui-progress-base-text-font-size,
|
|
1577
|
-
9px
|
|
1578
|
-
) !default;
|
|
1579
|
-
$progress-base-text-line-height: var(
|
|
1580
|
-
--nutui-progress-base-text-line-height,
|
|
1581
|
-
13px
|
|
1582
|
-
) !default;
|
|
1583
|
-
$progress-base-text-padding: var(
|
|
1584
|
-
--nutui-progress-base-text-padding,
|
|
1585
|
-
$progress-insidetext-padding
|
|
1586
|
-
) !default;
|
|
1587
|
-
$progress-base-text-top: var(
|
|
1588
|
-
--nutui-progress-base-text-top,
|
|
1589
|
-
$progress-insidetext-top
|
|
1590
|
-
) !default;
|
|
1591
|
-
$progress-large-font-size: var(--nutui-progress-large-font-size, 13px) !default;
|
|
1592
|
-
$progress-large-padding: var(--nutui-progress-large-padding, 0 5px) !default;
|
|
1593
|
-
$progress-large-height: var(--nutui-progress-large-height, 15px) !default;
|
|
1594
|
-
$progress-large-text-font-size: var(
|
|
1595
|
-
--nutui-progress-large-text-font-size,
|
|
1596
|
-
13px
|
|
1597
|
-
) !default;
|
|
1598
|
-
$progress-large-text-line-height: var(
|
|
1599
|
-
--nutui-progress-large-text-line-height,
|
|
1600
|
-
18px
|
|
1601
|
-
) !default;
|
|
1602
|
-
$progress-large-text-padding: var(
|
|
1603
|
-
--nutui-progress-large-text-padding,
|
|
1604
|
-
$progress-insidetext-padding
|
|
1605
|
-
) !default;
|
|
1606
|
-
$progress-large-text-top: var(
|
|
1607
|
-
--nutui-progress-large-text-top,
|
|
1608
|
-
$progress-insidetext-top
|
|
1609
|
-
) !default;
|
|
1610
1531
|
|
|
1611
1532
|
//pagination(✅)
|
|
1612
1533
|
$pagination-color: var(--nutui-pagination-color, $primary-color) !default;
|
|
@@ -2180,22 +2101,14 @@ $navbar-box-shadow: var(
|
|
|
2180
2101
|
--nutui-navbar-box-shadow,
|
|
2181
2102
|
0px 1px 7px 0px rgba(237, 238, 241, 1)
|
|
2182
2103
|
) !default;
|
|
2183
|
-
$navbar-color: var(--nutui-navbar-color, $
|
|
2184
|
-
$navbar-
|
|
2185
|
-
|
|
2104
|
+
$navbar-color: var(--nutui-navbar-color, $gray2) !default;
|
|
2105
|
+
$navbar-font-size: var(--nutui-navbar-font-size, $font-size-2) !default;
|
|
2106
|
+
$navbar-title-font-size: var(
|
|
2107
|
+
--nutui-navbar-title-font-size,
|
|
2186
2108
|
$font-size-2
|
|
2187
2109
|
) !default;
|
|
2188
|
-
$navbar-title-font: var(--nutui-navbar-title-font, $font-size-2) !default;
|
|
2189
2110
|
$navbar-title-font-weight: var(--nutui-navbar-title-font-weight, 0) !default;
|
|
2190
|
-
$navbar-title-font-color: var(
|
|
2191
|
-
--nutui-navbar-title-font-color,
|
|
2192
|
-
$navbar-color
|
|
2193
|
-
) !default;
|
|
2194
|
-
$navbar-title-width: var(--nutui-navbar-title-width, 100px) !default;
|
|
2195
|
-
$navbar-title-icon-margin: var(
|
|
2196
|
-
--nutui-navbar-title-icon-margin,
|
|
2197
|
-
0 0 0 13px
|
|
2198
|
-
) !default;
|
|
2111
|
+
$navbar-title-font-color: var(--nutui-navbar-title-font-color, $gray1) !default;
|
|
2199
2112
|
|
|
2200
2113
|
// sidenavbar(✅)
|
|
2201
2114
|
$sidenavbar-content-bg-color: var(
|
|
@@ -2313,16 +2226,12 @@ $elevator-list-item-code-line-height: var(
|
|
|
2313
2226
|
--nutui-elevator-list-item-code-line-height,
|
|
2314
2227
|
35px
|
|
2315
2228
|
) !default;
|
|
2316
|
-
$elevator-list-item-code-
|
|
2317
|
-
--nutui-elevator-list-item-code-
|
|
2318
|
-
100%
|
|
2319
|
-
) !default;
|
|
2320
|
-
$elevator-list-item-code-after-height: var(
|
|
2321
|
-
--nutui-elevator-list-item-code-after-height,
|
|
2229
|
+
$elevator-list-item-code-border-bottom: var(
|
|
2230
|
+
--nutui-elevator-list-item-code-border-bottom,
|
|
2322
2231
|
1px
|
|
2323
2232
|
) !default;
|
|
2324
|
-
$elevator-list-item-code-
|
|
2325
|
-
--nutui-elevator-list-item-code-
|
|
2233
|
+
$elevator-list-item-code-border-bottom-color: var(
|
|
2234
|
+
--nutui-elevator-list-item-code-border-bottom-color,
|
|
2326
2235
|
#f5f5f5
|
|
2327
2236
|
) !default;
|
|
2328
2237
|
$elevator-list-item-code-current-box-shadow: 0 3px 3px 1px
|
package/dist/types/index.d.ts
CHANGED
|
@@ -214,27 +214,24 @@ interface PopupProps extends OverlayProps {
|
|
|
214
214
|
position: string;
|
|
215
215
|
transition: string;
|
|
216
216
|
overlayStyle: React__default.CSSProperties;
|
|
217
|
-
|
|
218
|
-
popClass: string;
|
|
217
|
+
overlayClassName: string;
|
|
219
218
|
closeable: boolean;
|
|
220
219
|
closeIconPosition: string;
|
|
221
220
|
closeIcon: React__default.ReactNode;
|
|
222
221
|
destroyOnClose: boolean;
|
|
223
|
-
|
|
222
|
+
portal: Teleport;
|
|
224
223
|
overlay: boolean;
|
|
225
224
|
round: boolean;
|
|
226
225
|
onOpen: () => void;
|
|
227
226
|
onClose: () => void;
|
|
228
227
|
onClick: (e: MouseEvent$1) => void;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
onClickOverlay: (e: MouseEvent$1) => void;
|
|
232
|
-
onClickCloseIcon: (e: MouseEvent$1) => void;
|
|
228
|
+
onClickOverlay: (e: MouseEvent$1) => boolean | void;
|
|
229
|
+
onClickCloseIcon: (e: MouseEvent$1) => boolean | void;
|
|
233
230
|
}
|
|
234
231
|
declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
235
232
|
|
|
236
233
|
type EventType$1 = 'row' | 'col';
|
|
237
|
-
interface ColProps {
|
|
234
|
+
interface ColProps extends BasicComponent {
|
|
238
235
|
span: string | number;
|
|
239
236
|
offset: string | number;
|
|
240
237
|
gutter: string | number;
|
|
@@ -244,10 +241,8 @@ declare const Col: FunctionComponent<Partial<ColProps> & Omit<React__default.HTM
|
|
|
244
241
|
|
|
245
242
|
type ContentPositionType = 'left' | 'center' | 'right';
|
|
246
243
|
type DirectionType = 'horizontal' | 'vertical';
|
|
247
|
-
interface DividerProps {
|
|
244
|
+
interface DividerProps extends BasicComponent {
|
|
248
245
|
contentPosition: ContentPositionType;
|
|
249
|
-
style?: React__default.CSSProperties;
|
|
250
|
-
className?: string;
|
|
251
246
|
direction?: DirectionType;
|
|
252
247
|
}
|
|
253
248
|
declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -286,7 +281,7 @@ interface LayoutProps {
|
|
|
286
281
|
declare const Layout: FunctionComponent<Partial<LayoutProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
287
282
|
|
|
288
283
|
type EventType = 'row' | 'col';
|
|
289
|
-
interface RowProps {
|
|
284
|
+
interface RowProps extends BasicComponent {
|
|
290
285
|
type: string;
|
|
291
286
|
justify: string;
|
|
292
287
|
align: string;
|
|
@@ -307,15 +302,13 @@ interface StickyProps extends BasicComponent {
|
|
|
307
302
|
declare const Sticky: FunctionComponent<Partial<StickyProps>>;
|
|
308
303
|
|
|
309
304
|
declare const elevatorContext: React__default.Context<ElevatorData>;
|
|
310
|
-
interface ElevatorProps {
|
|
305
|
+
interface ElevatorProps extends BasicComponent {
|
|
311
306
|
height: number | string;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
floorKey: string;
|
|
308
|
+
list: any[];
|
|
309
|
+
sticky: boolean;
|
|
315
310
|
spaceHeight: number;
|
|
316
311
|
titleHeight: number;
|
|
317
|
-
className: string;
|
|
318
|
-
style: React__default.CSSProperties;
|
|
319
312
|
children: React__default.ReactNode;
|
|
320
313
|
onClickItem: (key: string, item: ElevatorData) => void;
|
|
321
314
|
onClickIndex: (key: string) => void;
|
|
@@ -356,13 +349,11 @@ interface IndicatorProps {
|
|
|
356
349
|
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
357
350
|
|
|
358
351
|
interface MenuProps extends BasicComponent {
|
|
359
|
-
className: string;
|
|
360
|
-
style: React__default.CSSProperties;
|
|
361
352
|
activeColor: string;
|
|
362
|
-
|
|
353
|
+
closeOnOverlayClick: boolean;
|
|
363
354
|
scrollFixed: boolean | string | number;
|
|
364
355
|
lockScroll: boolean;
|
|
365
|
-
|
|
356
|
+
icon: React__default.ReactNode;
|
|
366
357
|
children: React__default.ReactNode;
|
|
367
358
|
}
|
|
368
359
|
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
@@ -372,13 +363,12 @@ interface OptionItem {
|
|
|
372
363
|
value: string | number;
|
|
373
364
|
}
|
|
374
365
|
interface MenuItemProps extends BasicComponent {
|
|
375
|
-
className: string;
|
|
376
|
-
style: React__default.CSSProperties;
|
|
377
366
|
title: React__default.ReactNode;
|
|
378
367
|
options: OptionItem[];
|
|
379
368
|
disabled: boolean;
|
|
380
369
|
columns: number;
|
|
381
|
-
|
|
370
|
+
icon: React__default.ReactNode;
|
|
371
|
+
closeOnClickAway: boolean;
|
|
382
372
|
direction: string;
|
|
383
373
|
activeTitleClass: string;
|
|
384
374
|
inactiveTitleClass: string;
|
|
@@ -389,21 +379,14 @@ interface MenuItemProps extends BasicComponent {
|
|
|
389
379
|
declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
|
|
390
380
|
|
|
391
381
|
interface NavBarProps$1 extends BasicComponent {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
description: string;
|
|
396
|
-
className: string;
|
|
382
|
+
left: React__default.ReactNode;
|
|
383
|
+
back: React__default.ReactNode;
|
|
384
|
+
right: React__default.ReactNode;
|
|
397
385
|
fixed: boolean;
|
|
398
386
|
safeAreaInsetTop: boolean;
|
|
399
|
-
border: boolean;
|
|
400
387
|
placeholder: boolean;
|
|
401
388
|
zIndex: number | string;
|
|
402
|
-
style: React__default.CSSProperties;
|
|
403
|
-
onClickTitle: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
404
|
-
onClickIcon: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
405
389
|
onClickBack: (e: React__default.MouseEvent<HTMLElement>) => void;
|
|
406
|
-
onClickRight: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
407
390
|
children?: React__default.ReactNode;
|
|
408
391
|
}
|
|
409
392
|
declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
|
|
@@ -1156,13 +1139,14 @@ type FileType<T> = {
|
|
|
1156
1139
|
type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
1157
1140
|
interface UploaderProps extends BasicComponent {
|
|
1158
1141
|
url: string;
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1142
|
+
maxCount: string | number;
|
|
1143
|
+
maxFileSize: number;
|
|
1144
|
+
defaultValue?: FileType<React__default.ReactNode>[];
|
|
1145
|
+
value?: FileType<string>[];
|
|
1146
|
+
previewType: 'picture' | 'list';
|
|
1147
|
+
imageFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1148
|
+
uploadIcon?: React__default.ReactNode;
|
|
1149
|
+
uploadLabel?: React__default.ReactNode;
|
|
1166
1150
|
name: string;
|
|
1167
1151
|
accept: string;
|
|
1168
1152
|
disabled: boolean;
|
|
@@ -1175,14 +1159,14 @@ interface UploaderProps extends BasicComponent {
|
|
|
1175
1159
|
headers: any;
|
|
1176
1160
|
withCredentials: boolean;
|
|
1177
1161
|
clearInput: boolean;
|
|
1178
|
-
|
|
1179
|
-
|
|
1162
|
+
preview: boolean;
|
|
1163
|
+
deletable: boolean;
|
|
1180
1164
|
capture: boolean;
|
|
1181
1165
|
className: string;
|
|
1182
|
-
|
|
1166
|
+
previewUrl?: string;
|
|
1183
1167
|
style: React__default.CSSProperties;
|
|
1184
1168
|
onStart?: (option: UploadOptions) => void;
|
|
1185
|
-
|
|
1169
|
+
onDelete?: (file: FileItem, fileList: FileItem[]) => void;
|
|
1186
1170
|
onSuccess?: (param: {
|
|
1187
1171
|
responseText: XMLHttpRequest['responseText'];
|
|
1188
1172
|
option: UploadOptions;
|
|
@@ -1204,9 +1188,9 @@ interface UploaderProps extends BasicComponent {
|
|
|
1204
1188
|
fileList: FileItem[];
|
|
1205
1189
|
event: React__default.ChangeEvent<HTMLInputElement>;
|
|
1206
1190
|
}) => void;
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1191
|
+
beforeUpload?: (file: File[]) => Promise<File[] | boolean>;
|
|
1192
|
+
beforeXhrUpload?: (xhr: XMLHttpRequest, options: any) => void;
|
|
1193
|
+
beforeDelete?: (file: FileItem, files: FileItem[]) => boolean;
|
|
1210
1194
|
onFileItemClick?: (file: FileItem) => void;
|
|
1211
1195
|
}
|
|
1212
1196
|
declare class FileItem {
|
|
@@ -1302,7 +1286,7 @@ interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<Ba
|
|
|
1302
1286
|
type DialogProps = BasicDialogProps;
|
|
1303
1287
|
declare const Dialog: DialogComponent;
|
|
1304
1288
|
|
|
1305
|
-
interface DragProps {
|
|
1289
|
+
interface DragProps extends BasicComponent {
|
|
1306
1290
|
attract: boolean;
|
|
1307
1291
|
direction: 'x' | 'y' | 'lock' | undefined;
|
|
1308
1292
|
boundary: {
|
|
@@ -1311,8 +1295,6 @@ interface DragProps {
|
|
|
1311
1295
|
right: number;
|
|
1312
1296
|
bottom: number;
|
|
1313
1297
|
};
|
|
1314
|
-
className: string;
|
|
1315
|
-
style: React__default.CSSProperties;
|
|
1316
1298
|
}
|
|
1317
1299
|
declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1318
1300
|
|
|
@@ -1467,12 +1449,10 @@ declare const _default: {
|
|
|
1467
1449
|
type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
|
|
1468
1450
|
type AnimateAction = 'initial' | 'click';
|
|
1469
1451
|
|
|
1470
|
-
interface AnimateProps {
|
|
1452
|
+
interface AnimateProps extends BasicComponent {
|
|
1471
1453
|
type: AnimateType;
|
|
1472
1454
|
action: AnimateAction;
|
|
1473
1455
|
loop: boolean;
|
|
1474
|
-
className: string;
|
|
1475
|
-
style: React__default.CSSProperties;
|
|
1476
1456
|
onClick: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1477
1457
|
}
|
|
1478
1458
|
declare const Animate: FunctionComponent<Partial<AnimateProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1499,18 +1479,16 @@ declare class AnimatingNumbers extends Component<AnimatingNumbersProps, Animatin
|
|
|
1499
1479
|
}
|
|
1500
1480
|
|
|
1501
1481
|
interface AudioProps extends BasicComponent {
|
|
1502
|
-
|
|
1503
|
-
style: CSSProperties;
|
|
1504
|
-
url: string;
|
|
1482
|
+
src: string;
|
|
1505
1483
|
muted: boolean;
|
|
1506
1484
|
autoplay: boolean;
|
|
1507
1485
|
loop: boolean;
|
|
1508
1486
|
preload: string;
|
|
1509
1487
|
type: string;
|
|
1510
|
-
|
|
1488
|
+
onBack: (e: HTMLAudioElement) => void;
|
|
1511
1489
|
onForward: (e: HTMLAudioElement) => void;
|
|
1512
1490
|
onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1513
|
-
|
|
1491
|
+
onEnd: (e: HTMLAudioElement) => void;
|
|
1514
1492
|
onMute: (e: HTMLAudioElement) => void;
|
|
1515
1493
|
onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1516
1494
|
}
|
|
@@ -1549,15 +1527,12 @@ interface AvatarGroupProps {
|
|
|
1549
1527
|
declare const AvatarGroup: FunctionComponent<Partial<AvatarGroupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1550
1528
|
|
|
1551
1529
|
interface BadgeProps extends BasicComponent {
|
|
1552
|
-
value:
|
|
1530
|
+
value: ReactNode;
|
|
1553
1531
|
dot: boolean;
|
|
1554
1532
|
max: number;
|
|
1555
1533
|
top: string;
|
|
1556
1534
|
right: string;
|
|
1557
|
-
zIndex: string;
|
|
1558
1535
|
color: string;
|
|
1559
|
-
icon: ReactNode;
|
|
1560
|
-
children?: ReactNode;
|
|
1561
1536
|
}
|
|
1562
1537
|
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
1563
1538
|
|
|
@@ -1723,26 +1698,13 @@ interface PriceProps {
|
|
|
1723
1698
|
}
|
|
1724
1699
|
declare const Price: FunctionComponent<Partial<PriceProps>>;
|
|
1725
1700
|
|
|
1726
|
-
type ProgressSize = 'small' | 'base' | 'large';
|
|
1727
|
-
type TextType = 'icon' | 'text';
|
|
1728
1701
|
interface ProgressProps extends BasicComponent {
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
percentage: number;
|
|
1733
|
-
fillColor: string;
|
|
1734
|
-
strokeColor: string;
|
|
1702
|
+
percent: number;
|
|
1703
|
+
background: string;
|
|
1704
|
+
color: string;
|
|
1735
1705
|
strokeWidth: string;
|
|
1736
|
-
size: ProgressSize;
|
|
1737
|
-
textColor: string;
|
|
1738
|
-
textWidth: string;
|
|
1739
1706
|
showText: boolean;
|
|
1740
|
-
|
|
1741
|
-
textBackground: string;
|
|
1742
|
-
textType: TextType;
|
|
1743
|
-
status: boolean;
|
|
1744
|
-
icon: ReactNode;
|
|
1745
|
-
children: ReactNode;
|
|
1707
|
+
animated: boolean;
|
|
1746
1708
|
}
|
|
1747
1709
|
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1748
1710
|
|