@solostylist/ui-kit 1.0.106 → 1.0.107

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.
@@ -1,9 +1,11 @@
1
1
  import { default as React } from 'react';
2
+ import { TypographyProps } from '@mui/material/Typography';
2
3
  export interface SAccordionProps {
3
4
  title: React.ReactNode;
4
5
  children: React.ReactNode;
5
6
  startIcon?: React.ReactNode;
6
7
  defaultExpanded?: boolean;
8
+ titleTypographyProps?: TypographyProps;
7
9
  }
8
- declare const SAccordion: ({ title, children, startIcon, defaultExpanded }: SAccordionProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const SAccordion: ({ title, children, startIcon, defaultExpanded, titleTypographyProps }: SAccordionProps) => import("react/jsx-runtime").JSX.Element;
9
11
  export default SAccordion;
@@ -1,8 +1,8 @@
1
1
  import { j as i } from "../jsx-runtime-DywqP_6a.js";
2
2
  import { E as mo } from "../ExpandMore-CE1RzE_y.js";
3
- import * as l from "react";
3
+ import * as p from "react";
4
4
  import { l as go, P as o, j as yo } from "../createTheme-YLBX8GSj.js";
5
- import { u as K, a as L, b as Q, m as I } from "../createSvgIcon-DCQI9UV5.js";
5
+ import { u as K, a as L, b as Q, m as $ } from "../createSvgIcon-DCQI9UV5.js";
6
6
  import { b as xo, u as ho, e as bo, d as D, c as To, B as Co } from "../ButtonBase-B-mcxJe8.js";
7
7
  import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
8
8
  import { g as Y } from "../colorManipulator-ep5lERxB.js";
@@ -36,7 +36,7 @@ const Po = (e) => {
36
36
  } = e;
37
37
  return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
38
38
  }
39
- })(I(({
39
+ })($(({
40
40
  theme: e
41
41
  }) => ({
42
42
  height: 0,
@@ -105,17 +105,17 @@ const Po = (e) => {
105
105
  height: "100%"
106
106
  }
107
107
  }]
108
- }), J = /* @__PURE__ */ l.forwardRef(function(t, r) {
108
+ }), J = /* @__PURE__ */ p.forwardRef(function(t, r) {
109
109
  const s = K({
110
110
  props: t,
111
111
  name: "MuiCollapse"
112
112
  }), {
113
- addEndListener: p,
113
+ addEndListener: c,
114
114
  children: h,
115
115
  className: b,
116
116
  collapsedSize: f = "0px",
117
117
  component: E,
118
- easing: $,
118
+ easing: I,
119
119
  in: S,
120
120
  onEnter: A,
121
121
  onEntered: j,
@@ -123,17 +123,17 @@ const Po = (e) => {
123
123
  onExit: P,
124
124
  onExited: W,
125
125
  onExiting: V,
126
- orientation: c = "vertical",
126
+ orientation: d = "vertical",
127
127
  style: m,
128
- timeout: d = go.standard,
128
+ timeout: l = go.standard,
129
129
  // eslint-disable-next-line react/prop-types
130
130
  TransitionComponent: N = So,
131
131
  ...G
132
132
  } = s, v = {
133
133
  ...s,
134
- orientation: c,
134
+ orientation: d,
135
135
  collapsedSize: f
136
- }, u = Po(v), w = vo(), U = xo(), a = l.useRef(null), g = l.useRef(), C = typeof f == "number" ? `${f}px` : f, O = c === "horizontal", M = O ? "width" : "height", k = l.useRef(null), Z = ho(r, k), R = (n) => (y) => {
136
+ }, u = Po(v), w = vo(), U = xo(), a = p.useRef(null), g = p.useRef(), C = typeof f == "number" ? `${f}px` : f, O = d === "horizontal", M = O ? "width" : "height", k = p.useRef(null), Z = ho(r, k), R = (n) => (y) => {
137
137
  if (n) {
138
138
  const x = k.current;
139
139
  y === void 0 ? n(x) : n(x, y);
@@ -148,12 +148,12 @@ const Po = (e) => {
148
148
  easing: q
149
149
  } = ro({
150
150
  style: m,
151
- timeout: d,
152
- easing: $
151
+ timeout: l,
152
+ easing: I
153
153
  }, {
154
154
  mode: "enter"
155
155
  });
156
- if (d === "auto") {
156
+ if (l === "auto") {
157
157
  const no = w.transitions.getAutoHeightDuration(x);
158
158
  n.style.transitionDuration = `${no}ms`, g.current = no;
159
159
  } else
@@ -169,19 +169,19 @@ const Po = (e) => {
169
169
  easing: B
170
170
  } = ro({
171
171
  style: m,
172
- timeout: d,
173
- easing: $
172
+ timeout: l,
173
+ easing: I
174
174
  }, {
175
175
  mode: "exit"
176
176
  });
177
- if (d === "auto") {
177
+ if (l === "auto") {
178
178
  const q = w.transitions.getAutoHeightDuration(y);
179
179
  n.style.transitionDuration = `${q}ms`, g.current = q;
180
180
  } else
181
181
  n.style.transitionDuration = typeof x == "string" ? x : `${x}ms`;
182
182
  n.style[M] = C, n.style.transitionTimingFunction = B, V && V(n);
183
183
  }), fo = (n) => {
184
- d === "auto" && U.start(g.current || 0, n), p && p(k.current, n);
184
+ l === "auto" && U.start(g.current || 0, n), c && c(k.current, n);
185
185
  };
186
186
  return /* @__PURE__ */ i.jsx(N, {
187
187
  in: S,
@@ -193,7 +193,7 @@ const Po = (e) => {
193
193
  onExiting: uo,
194
194
  addEndListener: fo,
195
195
  nodeRef: k,
196
- timeout: d === "auto" ? null : d,
196
+ timeout: l === "auto" ? null : l,
197
197
  ...G,
198
198
  children: (n, {
199
199
  ownerState: y,
@@ -329,25 +329,25 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
329
329
  })])
330
330
  });
331
331
  J && (J.muiSupportAuto = !0);
332
- const to = /* @__PURE__ */ l.createContext({});
332
+ const to = /* @__PURE__ */ p.createContext({});
333
333
  process.env.NODE_ENV !== "production" && (to.displayName = "AccordionContext");
334
334
  function Do(e) {
335
335
  return Y("MuiAccordion", e);
336
336
  }
337
- const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), Io = (e) => {
337
+ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), $o = (e) => {
338
338
  const {
339
339
  classes: t,
340
340
  square: r,
341
341
  expanded: s,
342
- disabled: p,
342
+ disabled: c,
343
343
  disableGutters: h
344
344
  } = e;
345
345
  return Q({
346
- root: ["root", !r && "rounded", s && "expanded", p && "disabled", !h && "gutters"],
346
+ root: ["root", !r && "rounded", s && "expanded", c && "disabled", !h && "gutters"],
347
347
  heading: ["heading"],
348
348
  region: ["region"]
349
349
  }, Do, t);
350
- }, $o = T(wo, {
350
+ }, Io = T(wo, {
351
351
  name: "MuiAccordion",
352
352
  slot: "Root",
353
353
  overridesResolver: (e, t) => {
@@ -358,7 +358,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
358
358
  [`& .${_.region}`]: t.region
359
359
  }, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
360
360
  }
361
- })(I(({
361
+ })($(({
362
362
  theme: e
363
363
  }) => {
364
364
  const t = {
@@ -405,7 +405,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
405
405
  backgroundColor: (e.vars || e).palette.action.disabledBackground
406
406
  }
407
407
  };
408
- }), I(({
408
+ }), $(({
409
409
  theme: e
410
410
  }) => ({
411
411
  variants: [{
@@ -442,17 +442,17 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
442
442
  }), Wo = T("div", {
443
443
  name: "MuiAccordion",
444
444
  slot: "Region"
445
- })({}), so = /* @__PURE__ */ l.forwardRef(function(t, r) {
445
+ })({}), so = /* @__PURE__ */ p.forwardRef(function(t, r) {
446
446
  const s = K({
447
447
  props: t,
448
448
  name: "MuiAccordion"
449
449
  }), {
450
- children: p,
450
+ children: c,
451
451
  className: h,
452
452
  defaultExpanded: b = !1,
453
453
  disabled: f = !1,
454
454
  disableGutters: E = !1,
455
- expanded: $,
455
+ expanded: I,
456
456
  onChange: S,
457
457
  square: A = !1,
458
458
  slots: j = {},
@@ -460,25 +460,25 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
460
460
  TransitionComponent: P,
461
461
  TransitionProps: W,
462
462
  ...V
463
- } = s, [c, m] = Eo({
464
- controlled: $,
463
+ } = s, [d, m] = Eo({
464
+ controlled: I,
465
465
  default: b,
466
466
  name: "Accordion",
467
467
  state: "expanded"
468
- }), d = l.useCallback((eo) => {
469
- m(!c), S && S(eo, !c);
470
- }, [c, S, m]), [N, ...G] = l.Children.toArray(p), v = l.useMemo(() => ({
471
- expanded: c,
468
+ }), l = p.useCallback((eo) => {
469
+ m(!d), S && S(eo, !d);
470
+ }, [d, S, m]), [N, ...G] = p.Children.toArray(c), v = p.useMemo(() => ({
471
+ expanded: d,
472
472
  disabled: f,
473
473
  disableGutters: E,
474
- toggle: d
475
- }), [c, f, E, d]), u = {
474
+ toggle: l
475
+ }), [d, f, E, l]), u = {
476
476
  ...s,
477
477
  square: A,
478
478
  disabled: f,
479
479
  disableGutters: E,
480
- expanded: c
481
- }, w = Io(u), U = {
480
+ expanded: d
481
+ }, w = $o(u), U = {
482
482
  transition: P,
483
483
  ...j
484
484
  }, a = {
@@ -488,7 +488,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
488
488
  slots: U,
489
489
  slotProps: a
490
490
  }, [C, O] = D("root", {
491
- elementType: $o,
491
+ elementType: Io,
492
492
  externalForwardedProps: {
493
493
  ...g,
494
494
  ...V
@@ -529,7 +529,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
529
529
  children: N
530
530
  })
531
531
  }), /* @__PURE__ */ i.jsx(Z, {
532
- in: c,
532
+ in: d,
533
533
  timeout: "auto",
534
534
  ...R,
535
535
  children: /* @__PURE__ */ i.jsx(H, {
@@ -548,8 +548,8 @@ process.env.NODE_ENV !== "production" && (so.propTypes = {
548
548
  * The content of the component.
549
549
  */
550
550
  children: To(o.node.isRequired, (e) => {
551
- const t = l.Children.toArray(e.children)[0];
552
- return yo.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ l.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
551
+ const t = p.Children.toArray(e.children)[0];
552
+ return yo.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ p.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
553
553
  }),
554
554
  /**
555
555
  * Override or extend the styles applied to the component.
@@ -642,20 +642,20 @@ const ko = (e) => {
642
642
  }, Fo = T("div", {
643
643
  name: "MuiAccordionDetails",
644
644
  slot: "Root"
645
- })(I(({
645
+ })($(({
646
646
  theme: e
647
647
  }) => ({
648
648
  padding: e.spacing(1, 2, 2)
649
- }))), io = /* @__PURE__ */ l.forwardRef(function(t, r) {
649
+ }))), io = /* @__PURE__ */ p.forwardRef(function(t, r) {
650
650
  const s = K({
651
651
  props: t,
652
652
  name: "MuiAccordionDetails"
653
653
  }), {
654
- className: p,
654
+ className: c,
655
655
  ...h
656
656
  } = s, b = s, f = ko(b);
657
657
  return /* @__PURE__ */ i.jsx(Fo, {
658
- className: L(f.root, p),
658
+ className: L(f.root, c),
659
659
  ref: r,
660
660
  ownerState: b,
661
661
  ...h
@@ -691,18 +691,18 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
691
691
  classes: t,
692
692
  expanded: r,
693
693
  disabled: s,
694
- disableGutters: p
694
+ disableGutters: c
695
695
  } = e;
696
696
  return Q({
697
- root: ["root", r && "expanded", s && "disabled", !p && "gutters"],
697
+ root: ["root", r && "expanded", s && "disabled", !c && "gutters"],
698
698
  focusVisible: ["focusVisible"],
699
- content: ["content", r && "expanded", !p && "contentGutters"],
699
+ content: ["content", r && "expanded", !c && "contentGutters"],
700
700
  expandIconWrapper: ["expandIconWrapper", r && "expanded"]
701
701
  }, Go, t);
702
702
  }, Ho = T(Co, {
703
703
  name: "MuiAccordionSummary",
704
704
  slot: "Root"
705
- })(I(({
705
+ })($(({
706
706
  theme: e
707
707
  }) => {
708
708
  const t = {
@@ -735,7 +735,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
735
735
  })), Bo = T("span", {
736
736
  name: "MuiAccordionSummary",
737
737
  slot: "Content"
738
- })(I(({
738
+ })($(({
739
739
  theme: e
740
740
  }) => ({
741
741
  display: "flex",
@@ -756,7 +756,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
756
756
  }))), Lo = T("span", {
757
757
  name: "MuiAccordionSummary",
758
758
  slot: "ExpandIconWrapper"
759
- })(I(({
759
+ })($(({
760
760
  theme: e
761
761
  }) => ({
762
762
  display: "flex",
@@ -768,17 +768,17 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
768
768
  [`&.${F.expanded}`]: {
769
769
  transform: "rotate(180deg)"
770
770
  }
771
- }))), ao = /* @__PURE__ */ l.forwardRef(function(t, r) {
771
+ }))), ao = /* @__PURE__ */ p.forwardRef(function(t, r) {
772
772
  const s = K({
773
773
  props: t,
774
774
  name: "MuiAccordionSummary"
775
775
  }), {
776
- children: p,
776
+ children: c,
777
777
  className: h,
778
778
  expandIcon: b,
779
779
  focusVisibleClassName: f,
780
780
  onClick: E,
781
- slots: $,
781
+ slots: I,
782
782
  slotProps: S,
783
783
  ...A
784
784
  } = s, {
@@ -786,15 +786,15 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
786
786
  disableGutters: z,
787
787
  expanded: P,
788
788
  toggle: W
789
- } = l.useContext(to), V = (a) => {
789
+ } = p.useContext(to), V = (a) => {
790
790
  W && W(a), E && E(a);
791
- }, c = {
791
+ }, d = {
792
792
  ...s,
793
793
  expanded: P,
794
794
  disabled: j,
795
795
  disableGutters: z
796
- }, m = Uo(c), d = {
797
- slots: $,
796
+ }, m = Uo(d), l = {
797
+ slots: I,
798
798
  slotProps: S
799
799
  }, [N, G] = D("root", {
800
800
  ref: r,
@@ -802,10 +802,10 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
802
802
  className: L(m.root, h),
803
803
  elementType: Ho,
804
804
  externalForwardedProps: {
805
- ...d,
805
+ ...l,
806
806
  ...A
807
807
  },
808
- ownerState: c,
808
+ ownerState: d,
809
809
  additionalProps: {
810
810
  focusRipple: !1,
811
811
  disableRipple: !0,
@@ -823,19 +823,19 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
823
823
  }), [v, u] = D("content", {
824
824
  className: m.content,
825
825
  elementType: Bo,
826
- externalForwardedProps: d,
827
- ownerState: c
826
+ externalForwardedProps: l,
827
+ ownerState: d
828
828
  }), [w, U] = D("expandIconWrapper", {
829
829
  className: m.expandIconWrapper,
830
830
  elementType: Lo,
831
- externalForwardedProps: d,
832
- ownerState: c
831
+ externalForwardedProps: l,
832
+ ownerState: d
833
833
  });
834
834
  return /* @__PURE__ */ i.jsxs(N, {
835
835
  ...G,
836
836
  children: [/* @__PURE__ */ i.jsx(v, {
837
837
  ...u,
838
- children: p
838
+ children: c
839
839
  }), b && /* @__PURE__ */ i.jsx(w, {
840
840
  ...U,
841
841
  children: b
@@ -899,7 +899,7 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
899
899
  */
900
900
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
901
901
  });
902
- const re = ({ title: e, children: t, startIcon: r, defaultExpanded: s = !1 }) => /* @__PURE__ */ i.jsxs(
902
+ const re = ({ title: e, children: t, startIcon: r, defaultExpanded: s = !1, titleTypographyProps: c }) => /* @__PURE__ */ i.jsxs(
903
903
  so,
904
904
  {
905
905
  defaultExpanded: s,
@@ -910,10 +910,10 @@ const re = ({ title: e, children: t, startIcon: r, defaultExpanded: s = !1 }) =>
910
910
  },
911
911
  elevation: 0,
912
912
  children: [
913
- /* @__PURE__ */ i.jsx(ao, { expandIcon: /* @__PURE__ */ i.jsx(mo, {}), children: /* @__PURE__ */ i.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
913
+ e || r ? /* @__PURE__ */ i.jsx(ao, { expandIcon: /* @__PURE__ */ i.jsx(mo, {}), children: /* @__PURE__ */ i.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
914
914
  r,
915
- /* @__PURE__ */ i.jsx(Ao, { variant: "subtitle1", fontWeight: 600, children: e })
916
- ] }) }),
915
+ /* @__PURE__ */ i.jsx(Ao, { variant: "subtitle1", fontWeight: 600, ...c, children: e })
916
+ ] }) }) : null,
917
917
  /* @__PURE__ */ i.jsx(io, { children: t })
918
918
  ]
919
919
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.106",
6
+ "version": "1.0.107",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",