@doist/reactist 30.1.2 → 30.1.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/CHANGELOG.md +6 -0
- package/dist/reactist.cjs.development.js +63 -57
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/banner/banner.js +62 -56
- package/es/banner/banner.js.map +1 -1
- package/es/banner/banner.module.css.js +1 -1
- package/lib/banner/banner.js +62 -56
- package/lib/banner/banner.js.map +1 -1
- package/lib/banner/banner.module.css.js +1 -1
- package/package.json +1 -1
- package/styles/banner.css +1 -1
- package/styles/banner.module.css.css +1 -1
- package/styles/reactist.css +1 -1
- /package/styles/{divider.css → stack.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [30.1.3](https://github.com/Doist/reactist/compare/v30.1.2...v30.1.3) (2026-04-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- Vertically center Banner text content when action or close button is present ([#1029](https://github.com/Doist/reactist/issues/1029)) ([6759976](https://github.com/Doist/reactist/commit/67599764ba151c480cb2a58c5366aac990525176))
|
|
6
|
+
|
|
1
7
|
## [30.1.2](https://github.com/Doist/reactist/compare/v30.1.1...v30.1.2) (2026-04-03)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -1364,7 +1364,7 @@ function useId(providedId) {
|
|
|
1364
1364
|
return ref.current;
|
|
1365
1365
|
}
|
|
1366
1366
|
|
|
1367
|
-
var modules_afa80466 = {"banner":"
|
|
1367
|
+
var modules_afa80466 = {"banner":"b5b593b1","image":"_5f315350","title":"_6188ea80","description":"_68b258a0","secondary":"eddb9d77","typeIcon":"de88193f","iconCopy":"_701950c0","closeButton":"bb6407f3","copy":"_14c85d09","inlineLink":"_342d3997","actions":"_17b9ed33","topContent":"_6eb862f2","content":"_00ac3ae8"};
|
|
1368
1368
|
|
|
1369
1369
|
const _excluded$n = ["id", "type", "title", "description", "children", "action", "icon", "image", "inlineLinks", "closeLabel", "onClose"],
|
|
1370
1370
|
_excluded2$6 = ["label"],
|
|
@@ -1512,39 +1512,38 @@ const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(t0, ref)
|
|
|
1512
1512
|
t5 = $[20];
|
|
1513
1513
|
}
|
|
1514
1514
|
let t6;
|
|
1515
|
-
if ($[21] !==
|
|
1515
|
+
if ($[21] !== t5) {
|
|
1516
1516
|
t6 = /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1517
|
-
className: modules_afa80466.
|
|
1518
|
-
}, t5
|
|
1519
|
-
$[21] =
|
|
1520
|
-
$[22] =
|
|
1521
|
-
$[23] = t6;
|
|
1517
|
+
className: modules_afa80466.typeIcon
|
|
1518
|
+
}, t5);
|
|
1519
|
+
$[21] = t5;
|
|
1520
|
+
$[22] = t6;
|
|
1522
1521
|
} else {
|
|
1523
|
-
t6 = $[
|
|
1522
|
+
t6 = $[22];
|
|
1524
1523
|
}
|
|
1525
1524
|
let t7;
|
|
1526
|
-
if ($[
|
|
1525
|
+
if ($[23] !== title || $[24] !== titleId) {
|
|
1527
1526
|
t7 = title ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1528
1527
|
id: titleId,
|
|
1529
1528
|
className: modules_afa80466.title
|
|
1530
1529
|
}, title) : null;
|
|
1531
|
-
$[
|
|
1532
|
-
$[
|
|
1533
|
-
$[
|
|
1530
|
+
$[23] = title;
|
|
1531
|
+
$[24] = titleId;
|
|
1532
|
+
$[25] = t7;
|
|
1534
1533
|
} else {
|
|
1535
|
-
t7 = $[
|
|
1534
|
+
t7 = $[25];
|
|
1536
1535
|
}
|
|
1537
1536
|
const t8 = title ? modules_afa80466.secondary : null;
|
|
1538
1537
|
let t9;
|
|
1539
|
-
if ($[
|
|
1538
|
+
if ($[26] !== t8) {
|
|
1540
1539
|
t9 = [modules_afa80466.description, t8];
|
|
1541
|
-
$[
|
|
1542
|
-
$[
|
|
1540
|
+
$[26] = t8;
|
|
1541
|
+
$[27] = t9;
|
|
1543
1542
|
} else {
|
|
1544
|
-
t9 = $[
|
|
1543
|
+
t9 = $[27];
|
|
1545
1544
|
}
|
|
1546
1545
|
let t10;
|
|
1547
|
-
if ($[
|
|
1546
|
+
if ($[28] !== inlineLinks) {
|
|
1548
1547
|
t10 = inlineLinks?.map((t11, index) => {
|
|
1549
1548
|
const {
|
|
1550
1549
|
label
|
|
@@ -1556,89 +1555,96 @@ const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(t0, ref)
|
|
|
1556
1555
|
exceptionallySetClassName: modules_afa80466.inlineLink
|
|
1557
1556
|
}), label), index < inlineLinks.length - 1 ? /*#__PURE__*/React__namespace.createElement("span", null, " \xB7 ") : "");
|
|
1558
1557
|
});
|
|
1559
|
-
$[
|
|
1560
|
-
$[
|
|
1558
|
+
$[28] = inlineLinks;
|
|
1559
|
+
$[29] = t10;
|
|
1561
1560
|
} else {
|
|
1562
|
-
t10 = $[
|
|
1561
|
+
t10 = $[29];
|
|
1563
1562
|
}
|
|
1564
1563
|
let t11;
|
|
1565
|
-
if ($[
|
|
1564
|
+
if ($[30] !== description || $[31] !== descriptionId || $[32] !== t10 || $[33] !== t9) {
|
|
1566
1565
|
t11 = /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1567
1566
|
id: descriptionId,
|
|
1568
1567
|
className: t9
|
|
1569
1568
|
}, description, t10);
|
|
1570
|
-
$[
|
|
1571
|
-
$[
|
|
1572
|
-
$[
|
|
1573
|
-
$[
|
|
1574
|
-
$[
|
|
1569
|
+
$[30] = description;
|
|
1570
|
+
$[31] = descriptionId;
|
|
1571
|
+
$[32] = t10;
|
|
1572
|
+
$[33] = t9;
|
|
1573
|
+
$[34] = t11;
|
|
1575
1574
|
} else {
|
|
1576
|
-
t11 = $[
|
|
1575
|
+
t11 = $[34];
|
|
1577
1576
|
}
|
|
1578
1577
|
let t12;
|
|
1579
|
-
if ($[
|
|
1578
|
+
if ($[35] !== t11 || $[36] !== t7) {
|
|
1580
1579
|
t12 = /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1581
1580
|
className: modules_afa80466.copy,
|
|
1582
1581
|
display: "flex",
|
|
1583
1582
|
flexDirection: "column",
|
|
1584
1583
|
flexGrow: 1
|
|
1585
1584
|
}, t7, t11);
|
|
1586
|
-
$[
|
|
1587
|
-
$[
|
|
1588
|
-
$[
|
|
1585
|
+
$[35] = t11;
|
|
1586
|
+
$[36] = t7;
|
|
1587
|
+
$[37] = t12;
|
|
1589
1588
|
} else {
|
|
1590
|
-
t12 = $[
|
|
1589
|
+
t12 = $[37];
|
|
1591
1590
|
}
|
|
1592
1591
|
let t13;
|
|
1593
|
-
if ($[39] !==
|
|
1594
|
-
t13 =
|
|
1595
|
-
className: modules_afa80466.
|
|
1592
|
+
if ($[38] !== closeButton || $[39] !== t12 || $[40] !== t6) {
|
|
1593
|
+
t13 = /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1594
|
+
className: modules_afa80466.iconCopy,
|
|
1596
1595
|
display: "flex",
|
|
1597
|
-
gap: "small"
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1596
|
+
gap: "small",
|
|
1597
|
+
alignItems: "flexStart",
|
|
1598
|
+
flexGrow: 1
|
|
1599
|
+
}, t6, t12, closeButton);
|
|
1600
|
+
$[38] = closeButton;
|
|
1601
|
+
$[39] = t12;
|
|
1602
|
+
$[40] = t6;
|
|
1601
1603
|
$[41] = t13;
|
|
1602
1604
|
} else {
|
|
1603
1605
|
t13 = $[41];
|
|
1604
1606
|
}
|
|
1605
1607
|
let t14;
|
|
1606
|
-
if ($[42] !==
|
|
1607
|
-
t14 = /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1608
|
-
className: modules_afa80466.
|
|
1608
|
+
if ($[42] !== action || $[43] !== closeButton) {
|
|
1609
|
+
t14 = action || closeButton ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1610
|
+
className: modules_afa80466.actions,
|
|
1609
1611
|
display: "flex",
|
|
1610
|
-
gap: "small"
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
$[
|
|
1614
|
-
$[43] = t13;
|
|
1612
|
+
gap: "small"
|
|
1613
|
+
}, action ? isActionObject$1(action) ? action.type === "button" ? /*#__PURE__*/React__namespace.createElement(ActionButton, action) : /*#__PURE__*/React__namespace.createElement(ActionLink, action) : action : null, closeButton) : null;
|
|
1614
|
+
$[42] = action;
|
|
1615
|
+
$[43] = closeButton;
|
|
1615
1616
|
$[44] = t14;
|
|
1616
1617
|
} else {
|
|
1617
1618
|
t14 = $[44];
|
|
1618
1619
|
}
|
|
1619
1620
|
let t15;
|
|
1620
|
-
if ($[45] !==
|
|
1621
|
+
if ($[45] !== t13 || $[46] !== t14) {
|
|
1621
1622
|
t15 = /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1623
|
+
className: modules_afa80466.topContent,
|
|
1622
1624
|
display: "flex",
|
|
1623
|
-
flexDirection: "column",
|
|
1624
1625
|
gap: "small",
|
|
1625
|
-
|
|
1626
|
-
},
|
|
1627
|
-
$[45] =
|
|
1626
|
+
alignItems: "center"
|
|
1627
|
+
}, t13, t14);
|
|
1628
|
+
$[45] = t13;
|
|
1628
1629
|
$[46] = t14;
|
|
1629
1630
|
$[47] = t15;
|
|
1630
1631
|
} else {
|
|
1631
1632
|
t15 = $[47];
|
|
1632
1633
|
}
|
|
1633
1634
|
let t16;
|
|
1634
|
-
if ($[48] !==
|
|
1635
|
+
if ($[48] !== children || $[49] !== t15) {
|
|
1635
1636
|
t16 = /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1636
1637
|
className: modules_afa80466.content,
|
|
1637
1638
|
display: "flex",
|
|
1638
1639
|
gap: "small"
|
|
1639
|
-
},
|
|
1640
|
-
|
|
1641
|
-
|
|
1640
|
+
}, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
1641
|
+
display: "flex",
|
|
1642
|
+
flexDirection: "column",
|
|
1643
|
+
gap: "small",
|
|
1644
|
+
flexGrow: 1
|
|
1645
|
+
}, t15, children));
|
|
1646
|
+
$[48] = children;
|
|
1647
|
+
$[49] = t15;
|
|
1642
1648
|
$[50] = t16;
|
|
1643
1649
|
} else {
|
|
1644
1650
|
t16 = $[50];
|