pallote-react 0.15.7 → 0.15.9

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 CHANGED
@@ -976,13 +976,12 @@ SectionHeader.propTypes = {
976
976
  title: PropTypes.string.isRequired,
977
977
  promoteTitle: PropTypes.bool,
978
978
  titleComponent: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']).isRequired,
979
- subtitle: PropTypes.string,
979
+ subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
980
980
  actions: PropTypes.node,
981
981
  className: PropTypes.node
982
982
  };
983
983
 
984
984
  const Section = ({
985
- component = 'div',
986
985
  align = 'left',
987
986
  color = 'default',
988
987
  landing,
@@ -991,8 +990,7 @@ const Section = ({
991
990
  children,
992
991
  ...props
993
992
  }) => {
994
- const Component = component || 'div';
995
- return /*#__PURE__*/React__default.createElement(Component, _extends({
993
+ return /*#__PURE__*/React__default.createElement("div", _extends({
996
994
  className: classnames(['section', {
997
995
  [`section-${align}`]: align,
998
996
  [`section-${color}`]: color,
@@ -1011,7 +1009,6 @@ const Section = ({
1011
1009
  })));
1012
1010
  };
1013
1011
  Section.propTypes = {
1014
- component: PropTypes.oneOf(['div', 'footer', 'header', 'section']),
1015
1012
  align: PropTypes.oneOf(['left', 'center', 'right']),
1016
1013
  color: PropTypes.oneOf(['default', 'paper', 'primary', 'primaryLight']),
1017
1014
  landing: PropTypes.bool,
@@ -1032,8 +1029,7 @@ const NavBar = ({
1032
1029
  setIsOpen(!isOpen);
1033
1030
  document.body.classList.toggle('js-navbar', !isOpen);
1034
1031
  };
1035
- return /*#__PURE__*/React__default.createElement(Section, _extends({
1036
- component: "header",
1032
+ return /*#__PURE__*/React__default.createElement("header", null, /*#__PURE__*/React__default.createElement(Section, _extends({
1037
1033
  className: classnames(['navbar', {
1038
1034
  [`navbar-${align}`]: align,
1039
1035
  'js-opened': isOpen
@@ -1055,7 +1051,7 @@ const NavBar = ({
1055
1051
  })
1056
1052
  }, /*#__PURE__*/React__default.createElement("div", {
1057
1053
  className: "nav_container"
1058
- }, children)));
1054
+ }, children))));
1059
1055
  };
1060
1056
  NavBar.propTypes = {
1061
1057
  logo: PropTypes.node,
@@ -1400,11 +1396,14 @@ const Snippet = ({
1400
1396
  content = 'Snippet',
1401
1397
  isDefault = false,
1402
1398
  dense = false,
1399
+ fullWidth,
1403
1400
  className,
1404
1401
  ...props
1405
1402
  }) => {
1406
1403
  return /*#__PURE__*/React__default.createElement("div", {
1407
- className: classnames('snippet_wrapper')
1404
+ className: classnames(['snippet_wrapper', {
1405
+ ' w-full': fullWidth
1406
+ }])
1408
1407
  }, /*#__PURE__*/React__default.createElement(SyntaxHighlighter, _extends({
1409
1408
  language: "javascript",
1410
1409
  style: nnfxDark,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pallote-react",
3
- "version": "0.15.7",
3
+ "version": "0.15.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "styles": "dist/index.css",
@@ -14,8 +14,8 @@
14
14
  "author": "",
15
15
  "license": "ISC",
16
16
  "peerDependencies": {
17
- "react": "^18.0.0",
18
- "react-dom": "^18.0.0",
17
+ "react": "^18.0.0 || ^19.0.0",
18
+ "react-dom": "^18.0.0 || ^19.0.0",
19
19
  "react-router-dom": ">=6 <8"
20
20
  },
21
21
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pallote-react",
3
- "version": "0.15.7",
3
+ "version": "0.15.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "styles": "dist/index.css",
@@ -12,8 +12,8 @@
12
12
  "author": "",
13
13
  "license": "ISC",
14
14
  "peerDependencies": {
15
- "react": "^18.0.0",
16
- "react-dom": "^18.0.0",
15
+ "react": "^18.0.0 || ^19.0.0",
16
+ "react-dom": "^18.0.0 || ^19.0.0",
17
17
  "react-router-dom": ">=6 <8"
18
18
  },
19
19
  "dependencies": {
@@ -23,7 +23,7 @@
23
23
  "classnames": "^2.5.1",
24
24
  "react-syntax-highlighter": "^15.6.1",
25
25
  "sass": "^1.71.1",
26
- "pallote-css": "^0.9.8"
26
+ "pallote-css": "^0.9.10"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@chromatic-com/storybook": "^3.2.4",