@max-ts/components 1.1.3 → 1.1.5

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.
Files changed (2) hide show
  1. package/lib/index.mjs +19 -12
  2. package/package.json +1 -1
package/lib/index.mjs CHANGED
@@ -3680,7 +3680,7 @@ const Ad = ({
3680
3680
  overflow: hidden;
3681
3681
  display: flex;
3682
3682
  flex-direction: column;
3683
- background-color: ${({ theme: e }) => e.palette.common.white};
3683
+ padding: ${({ theme: e }) => e.spacing(2, 2, 2, 0)};
3684
3684
  `, Wd = ({ children: e, className: t }) => /* @__PURE__ */ l.jsx(Fd, { className: t, children: e }), Nd = "16rem", Id = "54px", Rd = m("aside", {
3685
3685
  label: "Sidebar",
3686
3686
  shouldForwardProp(e) {
@@ -3692,9 +3692,8 @@ const Ad = ({
3692
3692
  display: grid;
3693
3693
  grid-template-rows: auto 1fr auto;
3694
3694
  grid-template-areas: 'header' 'content' 'footer';
3695
- border-right: 1px solid ${({ theme: e }) => e.palette.grey[200]};
3696
- background-color: #FAFAFA;
3697
3695
  overflow: hidden auto;
3696
+ background-color: transparent;
3698
3697
  transition: ${({ theme: e }) => e.transitions.create("width", {
3699
3698
  duration: e.transitions.duration.standard,
3700
3699
  easing: e.transitions.easing.easeInOut
@@ -3746,13 +3745,15 @@ const Ad = ({
3746
3745
  );
3747
3746
  }, Hd = "dashboard::collapsedIn", Yd = m("div")`
3748
3747
  width: 100%;
3748
+ max-width: 1200px;
3749
3749
  height: 100%;
3750
3750
  margin: auto;
3751
3751
  display: grid;
3752
3752
  grid-template-columns: auto 1fr;
3753
3753
  grid-template-areas: 'sidebar main';
3754
3754
  border: 1px solid ${({ theme: e }) => e.palette.grey[200]};
3755
- border-radius: ${({ theme: e }) => e.shape.small};
3755
+ border-radius: ${({ theme: e }) => e.shape.large};
3756
+ background-color: #FAFAFA;
3756
3757
  `, Ni = ({
3757
3758
  children: e,
3758
3759
  className: t
@@ -9522,13 +9523,13 @@ const Uo = ({
9522
9523
  display: grid;
9523
9524
  grid-template-columns: auto 1fr auto;
9524
9525
  grid-template-rows: repeat(3, auto);
9525
- gap: ${({ theme: e }) => e.spacing(2)};
9526
- grid-template-areas: '. . .' 'buttons title actions' 'subtitle subtitle subtitle';
9526
+ align-items: center;
9527
+ grid-template-areas: 'buttons title actions' 'subtitle subtitle subtitle' '. . .';
9527
9528
  padding: ${({ theme: e }) => e.spacing(4)};
9529
+ gap: ${({ theme: e }) => e.spacing(2)};
9528
9530
  padding-bottom: 0;
9529
-
9530
9531
  &:has(.breadcrumbs) {
9531
- grid-template-areas: 'buttons breadcrumbs actions' 'title title title' 'subtitle subtitle subtitle';
9532
+ grid-template-areas: 'buttons breadcrumbs actions' 'title title title' 'subtitle subtitle subtitle';
9532
9533
  }
9533
9534
  `, fv = m("div")`
9534
9535
  grid-area: buttons;
@@ -9561,13 +9562,13 @@ const Uo = ({
9561
9562
  typeof t == "string" && (document.title = t);
9562
9563
  }, [t]), /* @__PURE__ */ l.jsxs(dv, { className: Rn(a, La), children: [
9563
9564
  /* @__PURE__ */ l.jsxs(fv, { children: [
9564
- /* @__PURE__ */ l.jsx(we, { title: s ? "Развернуть" : "Свернуть", children: /* @__PURE__ */ l.jsx(Ue, { variant: "text", onClick: c, children: s ? /* @__PURE__ */ l.jsx(xs, { size: 20 }) : /* @__PURE__ */ l.jsx(ws, { size: 20 }) }) }),
9565
+ /* @__PURE__ */ l.jsx(we, { title: s ? "Развернуть" : "Свернуть", children: /* @__PURE__ */ l.jsx(Ue, { variant: "text", onClick: c, children: s ? /* @__PURE__ */ l.jsx(xs, {}) : /* @__PURE__ */ l.jsx(ws, {}) }) }),
9565
9566
  i && /* @__PURE__ */ l.jsx(we, { title: "Назад", children: /* @__PURE__ */ l.jsx(
9566
9567
  Ue,
9567
9568
  {
9568
9569
  ...i,
9569
9570
  variant: "text",
9570
- children: /* @__PURE__ */ l.jsx(ks, { size: 20 })
9571
+ children: /* @__PURE__ */ l.jsx(ks, {})
9571
9572
  }
9572
9573
  ) })
9573
9574
  ] }),
@@ -9580,7 +9581,10 @@ const Uo = ({
9580
9581
  }, bv = m("div")`
9581
9582
  display: grid;
9582
9583
  grid-template-columns: 1fr auto;
9583
- grid-template-rows: auto 1fr auto;
9584
+ grid-template-rows: repeat(3, auto);
9585
+ border: 1px solid ${({ theme: e }) => e.palette.grey[200]};
9586
+ border-radius: ${({ theme: e }) => e.shape.large};
9587
+ background-color: ${({ theme: e }) => e.palette.background.paper};
9584
9588
  grid-template-areas: 'header header' 'content aside' 'footer aside';
9585
9589
  flex-grow: 1;
9586
9590
 
@@ -10127,9 +10131,12 @@ const Ub = (e) => /* @__PURE__ */ l.jsx(gl, { ...e }), xv = m(Wr)`
10127
10131
  &:hover,
10128
10132
  &:active {
10129
10133
  color: unset;
10130
-
10131
10134
  background-color: unset;
10132
10135
  }
10136
+ svg {
10137
+ width: 20px;
10138
+ height: 20px;
10139
+ }
10133
10140
  `, Hv = m(he)`
10134
10141
  overflow: hidden;
10135
10142
  text-overflow: ellipsis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/components",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "browser": "./src/index.ts",
5
5
  "main": "./lib/index.mjs",
6
6
  "module": "./lib/index.mjs",