umwd-components 0.1.56 → 0.1.58

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.
@@ -60,8 +60,12 @@ function NavBar(_ref) {
60
60
  console.log(newValue);
61
61
  setCurrentTab(newValue);
62
62
  };
63
+ const theme = material.useTheme();
63
64
  return /*#__PURE__*/React.createElement(material.AppBar, {
64
- position: "sticky"
65
+ position: "sticky",
66
+ sx: {
67
+ backgroundColor: theme.palette.primary.main
68
+ }
65
69
  }, /*#__PURE__*/React.createElement(material.Container, {
66
70
  maxWidth: maxWidth
67
71
  }, /*#__PURE__*/React.createElement(material.Toolbar, {
@@ -7,6 +7,7 @@
7
7
  'use strict';
8
8
 
9
9
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
10
+ var React = require('react');
10
11
 
11
12
  function getIcon(name) {
12
13
  switch (name) {
@@ -6,6 +6,7 @@
6
6
 
7
7
  'use strict';
8
8
 
9
+ var React = require('react');
9
10
  var Link = require('next/link');
10
11
  var StrapiImage = require('./StrapiImage.js');
11
12
 
@@ -6,6 +6,7 @@
6
6
 
7
7
  'use strict';
8
8
 
9
+ var React = require('react');
9
10
  var Image = require('next/image');
10
11
  var utils = require('../../lib/utils.js');
11
12
 
@@ -8,7 +8,7 @@
8
8
  import React from 'react';
9
9
  import Link from 'next/link';
10
10
  import Image from 'next/image';
11
- import { AppBar, Container, Toolbar, Box, Typography, Button, Tabs, Tab, Dialog, List, ListItem, ListItemText, Divider } from '@mui/material';
11
+ import { useTheme, AppBar, Container, Toolbar, Box, Typography, Button, Tabs, Tab, Dialog, List, ListItem, ListItemText, Divider } from '@mui/material';
12
12
  import CloseIcon from '@mui/icons-material/Close';
13
13
  import MoreVertIcon from '@mui/icons-material/MoreVert';
14
14
  import { useRouter } from 'next/navigation';
@@ -56,8 +56,12 @@ function NavBar(_ref) {
56
56
  console.log(newValue);
57
57
  setCurrentTab(newValue);
58
58
  };
59
+ const theme = useTheme();
59
60
  return /*#__PURE__*/React.createElement(AppBar, {
60
- position: "sticky"
61
+ position: "sticky",
62
+ sx: {
63
+ backgroundColor: theme.palette.primary.main
64
+ }
61
65
  }, /*#__PURE__*/React.createElement(Container, {
62
66
  maxWidth: maxWidth
63
67
  }, /*#__PURE__*/React.createElement(Toolbar, {
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import React from 'react';
8
9
 
9
10
  function getIcon(name) {
10
11
  switch (name) {
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
 
7
+ import React from 'react';
7
8
  import Link from 'next/link';
8
9
  import { StrapiImage } from './StrapiImage.js';
9
10
 
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
 
7
+ import React from 'react';
7
8
  import Image from 'next/image';
8
9
  import { getStrapiMedia } from '../../lib/utils.js';
9
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -18,6 +18,7 @@ import {
18
18
  ListItemText,
19
19
  Tabs,
20
20
  Tab,
21
+ useTheme,
21
22
  } from "@mui/material";
22
23
 
23
24
  import CloseIcon from "@mui/icons-material/Close";
@@ -78,8 +79,13 @@ function NavBar({
78
79
  setCurrentTab(newValue);
79
80
  };
80
81
 
82
+ const theme = useTheme();
83
+
81
84
  return (
82
- <AppBar position="sticky">
85
+ <AppBar
86
+ position="sticky"
87
+ sx={{ backgroundColor: theme.palette.primary.main }}
88
+ >
83
89
  <Container maxWidth={maxWidth}>
84
90
  <Toolbar
85
91
  disableGutters
@@ -1,3 +1,5 @@
1
+ import React from "react";
2
+
1
3
  function getIcon(name: string) {
2
4
  switch (name) {
3
5
  case "CLOCK_ICON":
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import Link from "next/link";
2
3
  import { Logo } from "@/components/custom/Logo";
3
4
 
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import Link from "next/link";
2
3
  import { Logo } from "@/components/custom/Logo";
3
4
  import { Button } from "@mui/material";
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import Link from "next/link";
2
3
  import { StrapiImage } from "./StrapiImage.tsx";
3
4
 
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import Link from "next/link";
2
3
 
3
4
  function MountainIcon(props: any) {
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import Image from "next/image";
2
3
  import { getStrapiMedia } from "../../lib/utils.ts";
3
4