@trops/dash-react 1.0.10 → 1.0.12
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/index.js +46 -23
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1377,7 +1377,7 @@ function Paragraph(_ref) {
|
|
|
1377
1377
|
var _ref$text = _ref.text,
|
|
1378
1378
|
text = _ref$text === void 0 ? null : _ref$text,
|
|
1379
1379
|
_ref$padding = _ref.padding,
|
|
1380
|
-
padding = _ref$padding === void 0 ? "
|
|
1380
|
+
padding = _ref$padding === void 0 ? "py-2" : _ref$padding,
|
|
1381
1381
|
_ref$onClick = _ref.onClick,
|
|
1382
1382
|
onClick = _ref$onClick === void 0 ? null : _ref$onClick,
|
|
1383
1383
|
_ref$scrollable = _ref.scrollable,
|
|
@@ -1460,7 +1460,7 @@ function Paragraph2(_ref2) {
|
|
|
1460
1460
|
function Paragraph3(_ref3) {
|
|
1461
1461
|
var text = _ref3.text,
|
|
1462
1462
|
_ref3$padding = _ref3.padding,
|
|
1463
|
-
padding = _ref3$padding === void 0 ?
|
|
1463
|
+
padding = _ref3$padding === void 0 ? "py-1" : _ref3$padding,
|
|
1464
1464
|
_ref3$onClick = _ref3.onClick,
|
|
1465
1465
|
onClick = _ref3$onClick === void 0 ? null : _ref3$onClick,
|
|
1466
1466
|
_ref3$scrollable = _ref3.scrollable,
|
|
@@ -1667,7 +1667,7 @@ function Heading(_ref) {
|
|
|
1667
1667
|
as = _ref$as === void 0 ? null : _ref$as;
|
|
1668
1668
|
var _useContext = useContext(ThemeContext),
|
|
1669
1669
|
currentTheme = _useContext.currentTheme;
|
|
1670
|
-
var paddingStyles = padding === true ? "
|
|
1670
|
+
var paddingStyles = padding === true ? "py-3 2xl:py-4" : "p-0";
|
|
1671
1671
|
var styles = getStylesForItem(themeObjects.HEADING, currentTheme, {
|
|
1672
1672
|
textColor: textColor,
|
|
1673
1673
|
backgroundColor: backgroundColor,
|
|
@@ -1696,7 +1696,7 @@ function Heading2(_ref2) {
|
|
|
1696
1696
|
as = _ref2$as === void 0 ? null : _ref2$as;
|
|
1697
1697
|
var _useContext2 = useContext(ThemeContext),
|
|
1698
1698
|
currentTheme = _useContext2.currentTheme;
|
|
1699
|
-
var paddingStyles = padding === true ? "
|
|
1699
|
+
var paddingStyles = padding === true ? "py-2.5 2xl:py-3" : "p-0";
|
|
1700
1700
|
var styles = getStylesForItem(themeObjects.HEADING_2, currentTheme, {
|
|
1701
1701
|
textColor: textColor,
|
|
1702
1702
|
backgroundColor: backgroundColor,
|
|
@@ -1725,7 +1725,7 @@ function Heading3(_ref3) {
|
|
|
1725
1725
|
as = _ref3$as === void 0 ? null : _ref3$as;
|
|
1726
1726
|
var _useContext3 = useContext(ThemeContext),
|
|
1727
1727
|
currentTheme = _useContext3.currentTheme;
|
|
1728
|
-
var paddingStyles = padding === true ? "
|
|
1728
|
+
var paddingStyles = padding === true ? "py-2 2xl:py-3" : "p-0";
|
|
1729
1729
|
var styles = getStylesForItem(themeObjects.HEADING_3, currentTheme, {
|
|
1730
1730
|
textColor: textColor,
|
|
1731
1731
|
backgroundColor: backgroundColor,
|
|
@@ -1754,7 +1754,7 @@ function SubHeading(_ref4) {
|
|
|
1754
1754
|
as = _ref4$as === void 0 ? null : _ref4$as;
|
|
1755
1755
|
var _useContext4 = useContext(ThemeContext),
|
|
1756
1756
|
currentTheme = _useContext4.currentTheme;
|
|
1757
|
-
var paddingStyles = padding === true ? "
|
|
1757
|
+
var paddingStyles = padding === true ? "py-2 2xl:py-3" : "p-0";
|
|
1758
1758
|
var styles = getStylesForItem(themeObjects.SUBHEADING, currentTheme, {
|
|
1759
1759
|
textColor: textColor,
|
|
1760
1760
|
backgroundColor: backgroundColor,
|
|
@@ -1783,7 +1783,7 @@ function SubHeading2(_ref5) {
|
|
|
1783
1783
|
as = _ref5$as === void 0 ? null : _ref5$as;
|
|
1784
1784
|
var _useContext5 = useContext(ThemeContext),
|
|
1785
1785
|
currentTheme = _useContext5.currentTheme;
|
|
1786
|
-
var paddingStyles = padding === true ? "
|
|
1786
|
+
var paddingStyles = padding === true ? "py-1.5 2xl:py-2" : "p-0";
|
|
1787
1787
|
var styles = getStylesForItem(themeObjects.SUBHEADING_2, currentTheme, {
|
|
1788
1788
|
textColor: textColor,
|
|
1789
1789
|
backgroundColor: backgroundColor,
|
|
@@ -1812,7 +1812,7 @@ function SubHeading3(_ref6) {
|
|
|
1812
1812
|
as = _ref6$as === void 0 ? null : _ref6$as;
|
|
1813
1813
|
var _useContext6 = useContext(ThemeContext),
|
|
1814
1814
|
currentTheme = _useContext6.currentTheme;
|
|
1815
|
-
var paddingStyles = padding === true ? "
|
|
1815
|
+
var paddingStyles = padding === true ? "py-1 2xl:py-2" : "p-0";
|
|
1816
1816
|
var styles = getStylesForItem(themeObjects.SUBHEADING_3, currentTheme, {
|
|
1817
1817
|
textColor: textColor,
|
|
1818
1818
|
backgroundColor: backgroundColor,
|
|
@@ -6676,28 +6676,47 @@ var SettingsModalFooter = function SettingsModalFooter(_ref4) {
|
|
|
6676
6676
|
})]
|
|
6677
6677
|
});
|
|
6678
6678
|
};
|
|
6679
|
-
var
|
|
6680
|
-
var
|
|
6681
|
-
setIsOpen = _ref5.setIsOpen,
|
|
6682
|
-
_ref5$width = _ref5.width,
|
|
6683
|
-
width = _ref5$width === void 0 ? "w-11/12 xl:w-5/6" : _ref5$width,
|
|
6684
|
-
_ref5$height = _ref5.height,
|
|
6685
|
-
height = _ref5$height === void 0 ? "h-5/6" : _ref5$height,
|
|
6686
|
-
children = _ref5.children,
|
|
6679
|
+
var SettingsModalTitle = function SettingsModalTitle(_ref5) {
|
|
6680
|
+
var children = _ref5.children,
|
|
6687
6681
|
_ref5$className = _ref5.className,
|
|
6688
|
-
className = _ref5$className === void 0 ? "" : _ref5$className
|
|
6682
|
+
className = _ref5$className === void 0 ? "" : _ref5$className,
|
|
6683
|
+
_ref5$padding = _ref5.padding,
|
|
6684
|
+
padding = _ref5$padding === void 0 ? "px-4 py-3" : _ref5$padding;
|
|
6689
6685
|
var _useContext4 = useContext(ThemeContext),
|
|
6690
6686
|
currentTheme = _useContext4.currentTheme;
|
|
6687
|
+
var styles = getStylesForItem(themeObjects.PANEL_HEADER, currentTheme, {
|
|
6688
|
+
grow: false
|
|
6689
|
+
});
|
|
6690
|
+
return /*#__PURE__*/jsx("div", {
|
|
6691
|
+
className: "flex flex-row items-center flex-shrink-0 border-b ".concat(padding, " ").concat(styles.borderColor || "", " ").concat(styles.textColor || "", " ").concat(className),
|
|
6692
|
+
children: children
|
|
6693
|
+
});
|
|
6694
|
+
};
|
|
6695
|
+
var SettingsModal = function SettingsModal(_ref6) {
|
|
6696
|
+
var isOpen = _ref6.isOpen,
|
|
6697
|
+
setIsOpen = _ref6.setIsOpen,
|
|
6698
|
+
_ref6$width = _ref6.width,
|
|
6699
|
+
width = _ref6$width === void 0 ? "w-11/12 xl:w-5/6" : _ref6$width,
|
|
6700
|
+
_ref6$height = _ref6.height,
|
|
6701
|
+
height = _ref6$height === void 0 ? "h-5/6" : _ref6$height,
|
|
6702
|
+
children = _ref6.children,
|
|
6703
|
+
_ref6$className = _ref6.className,
|
|
6704
|
+
className = _ref6$className === void 0 ? "" : _ref6$className;
|
|
6705
|
+
var _useContext5 = useContext(ThemeContext),
|
|
6706
|
+
currentTheme = _useContext5.currentTheme;
|
|
6691
6707
|
var panelStyles = getStylesForItem(themeObjects.PANEL, currentTheme, {
|
|
6692
6708
|
scrollable: false,
|
|
6693
6709
|
grow: false
|
|
6694
6710
|
});
|
|
6695
6711
|
|
|
6696
|
-
// Separate sidebar
|
|
6712
|
+
// Separate title, sidebar, and other children
|
|
6713
|
+
var title = null;
|
|
6697
6714
|
var sidebar = null;
|
|
6698
6715
|
var otherChildren = [];
|
|
6699
6716
|
Children.forEach(children, function (child) {
|
|
6700
|
-
if (child && child.type ===
|
|
6717
|
+
if (child && child.type === SettingsModalTitle) {
|
|
6718
|
+
title = child;
|
|
6719
|
+
} else if (child && child.type === SettingsModalSidebar) {
|
|
6701
6720
|
sidebar = child;
|
|
6702
6721
|
} else {
|
|
6703
6722
|
otherChildren.push(child);
|
|
@@ -6709,14 +6728,18 @@ var SettingsModal = function SettingsModal(_ref5) {
|
|
|
6709
6728
|
width: width,
|
|
6710
6729
|
height: height,
|
|
6711
6730
|
children: /*#__PURE__*/jsxs("div", {
|
|
6712
|
-
className: "flex flex-
|
|
6713
|
-
children: [
|
|
6714
|
-
className: "flex flex-
|
|
6715
|
-
children:
|
|
6731
|
+
className: "flex flex-col h-full w-full rounded-lg overflow-clip ".concat(panelStyles.backgroundColor || "", " ").concat(panelStyles.borderColor || "", " ").concat(panelStyles.textColor || "", " border ").concat(className),
|
|
6732
|
+
children: [title, /*#__PURE__*/jsxs("div", {
|
|
6733
|
+
className: "flex flex-row flex-1 min-h-0",
|
|
6734
|
+
children: [sidebar, /*#__PURE__*/jsx("div", {
|
|
6735
|
+
className: "flex flex-col flex-1 min-w-0",
|
|
6736
|
+
children: otherChildren
|
|
6737
|
+
})]
|
|
6716
6738
|
})]
|
|
6717
6739
|
})
|
|
6718
6740
|
});
|
|
6719
6741
|
};
|
|
6742
|
+
SettingsModal.Title = SettingsModalTitle;
|
|
6720
6743
|
SettingsModal.Sidebar = SettingsModalSidebar;
|
|
6721
6744
|
SettingsModal.Header = SettingsModalHeader;
|
|
6722
6745
|
SettingsModal.Body = SettingsModalBody;
|