@sisense/sdk-shared-ui 2.0.0 → 2.1.1

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 (69) hide show
  1. package/dist/Breadcrumbs-Da5cnPID.cjs +3 -0
  2. package/dist/{Breadcrumbs-D4b_GQtd.js → Breadcrumbs-qJmt9n6B.js} +53 -53
  3. package/dist/Button-RoXZvXZf.cjs +1 -0
  4. package/dist/{Button-APrD1mzX.js → Button-Y7DwfxdO.js} +40 -40
  5. package/dist/{ButtonBase-BS1IFUdV.cjs → ButtonBase-CISYuRKV.cjs} +1 -1
  6. package/dist/{ButtonBase-DOZfyNZL.js → ButtonBase-UWHDpyst.js} +1 -1
  7. package/dist/{Checkbox-DFOHQKnj.js → Checkbox-BNkk6YDz.js} +43 -43
  8. package/dist/Checkbox-DpGUO-Li.cjs +1 -0
  9. package/dist/{Icon-YfaQM06u.js → Icon-JQpFT2bY.js} +12 -12
  10. package/dist/Icon-KwS2TWVq.cjs +1 -0
  11. package/dist/Portal-CtJkkaJ7.cjs +1 -0
  12. package/dist/{Portal-CLHtBz5i.js → Portal-DUw3q8Mq.js} +3 -3
  13. package/dist/{SvgIcon-DRiOiPzl.js → SvgIcon-5KhsYNcu.js} +1 -1
  14. package/dist/SvgIcon-DXzFs5aw.cjs +1 -0
  15. package/dist/{TablePagination-DMqJ2TDQ.js → TablePagination-CgaKWA2r.js} +455 -455
  16. package/dist/{TablePagination-DxCn_NpI.cjs → TablePagination-baLnBUNn.cjs} +12 -12
  17. package/dist/{Tooltip-DAxLCXwu.js → Tooltip-BpA4opI3.js} +154 -154
  18. package/dist/Tooltip-Dcsip2Zy.cjs +7 -0
  19. package/dist/Typography-BDMqUlbg.cjs +1 -0
  20. package/dist/{Typography-V0qAux0_.js → Typography-pY0gGUzu.js} +42 -42
  21. package/dist/{createSvgIcon-BFO1uNry.js → createSvgIcon-B28x3Jky.js} +1 -1
  22. package/dist/{createSvgIcon-BECoGUSX.cjs → createSvgIcon-KaV60kcg.cjs} +1 -1
  23. package/dist/emotion-cache-provider-C66nBUtN.cjs +114 -0
  24. package/dist/{ThemeProvider-idCYeHSk.js → emotion-cache-provider-CsTOkc-k.js} +1854 -1567
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +7 -7
  27. package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
  28. package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  29. package/dist/lib/Breadcrumbs/Breadcrumbs.js +2 -2
  30. package/dist/lib/Button/Button.cjs +1 -1
  31. package/dist/lib/Button/Button.d.ts.map +1 -1
  32. package/dist/lib/Button/Button.js +2 -2
  33. package/dist/lib/Checkbox/Checkbox.cjs +1 -1
  34. package/dist/lib/Checkbox/Checkbox.d.ts.map +1 -1
  35. package/dist/lib/Checkbox/Checkbox.js +1 -1
  36. package/dist/lib/Icon/Icon.cjs +1 -1
  37. package/dist/lib/Icon/Icon.d.ts.map +1 -1
  38. package/dist/lib/Icon/Icon.js +1 -1
  39. package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -1
  40. package/dist/lib/TablePagination/TablePagination.cjs +1 -1
  41. package/dist/lib/TablePagination/TablePagination.d.ts.map +1 -1
  42. package/dist/lib/TablePagination/TablePagination.js +1 -1
  43. package/dist/lib/Tooltip/Tooltip.cjs +1 -1
  44. package/dist/lib/Tooltip/Tooltip.d.ts.map +1 -1
  45. package/dist/lib/Tooltip/Tooltip.js +2 -2
  46. package/dist/lib/Typography/Typography.cjs +1 -1
  47. package/dist/lib/Typography/Typography.d.ts.map +1 -1
  48. package/dist/lib/Typography/Typography.js +2 -2
  49. package/dist/lib/common/emotion-cache-provider.d.ts +11 -0
  50. package/dist/lib/common/emotion-cache-provider.d.ts.map +1 -0
  51. package/dist/lib/themes/themes.cjs +1 -1
  52. package/dist/lib/themes/themes.js +1 -1
  53. package/dist/package.json +3 -1
  54. package/dist/{useSlotProps-DHNviH4P.js → useSlotProps-BxlgPyQJ.js} +1 -1
  55. package/dist/useSlotProps-DS82uuM_.cjs +1 -0
  56. package/dist/{useTheme-CNirH-1O.js → useTheme-CzEManLl.js} +1 -1
  57. package/dist/useTheme-DmoPdQRb.cjs +1 -0
  58. package/package.json +3 -1
  59. package/dist/Breadcrumbs-DHLUMk5g.cjs +0 -3
  60. package/dist/Button-DOVMisTd.cjs +0 -1
  61. package/dist/Checkbox-Ckp-O85I.cjs +0 -1
  62. package/dist/Icon-gOwM-Vrv.cjs +0 -1
  63. package/dist/Portal-DCkmwdyF.cjs +0 -1
  64. package/dist/SvgIcon-DwrPxEJR.cjs +0 -1
  65. package/dist/ThemeProvider-CLfPqpv1.cjs +0 -114
  66. package/dist/Tooltip-_QBcDSPT.cjs +0 -7
  67. package/dist/Typography-qWhZXZhp.cjs +0 -1
  68. package/dist/useSlotProps-1DAAbdYI.cjs +0 -1
  69. package/dist/useTheme-CKptR5QM.cjs +0 -1
@@ -0,0 +1,3 @@
1
+ "use strict";const t=require("react/jsx-runtime"),j=require("react"),s=require("./emotion-cache-provider-C66nBUtN.cjs"),k=require("./Icon-KwS2TWVq.cjs"),w=require("./Typography-BDMqUlbg.cjs"),z=require("./deepmerge-BuAjuQR6.cjs"),P=require("./integerPropType-BGlNA6vX.cjs"),r=require("./index-B-zZeebW.cjs"),D=require("./createSvgIcon-KaV60kcg.cjs"),U=require("./ButtonBase-CISYuRKV.cjs"),_=require("./useSlotProps-DS82uuM_.cjs");function A(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const u=A(j),V=D.createSvgIcon(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),F=s.styled(U.ButtonBase)(s.memoTheme(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:s.emphasize(e.palette.grey[200],.12)}:{backgroundColor:s.emphasize(e.palette.grey[600],.12)}}}))),H=s.styled(V)({width:24,height:16});function R(e){const{slots:o={},slotProps:n={},...a}=e,p=e;return t.jsx("li",{children:t.jsx(F,{focusRipple:!0,...a,ownerState:p,children:t.jsx(H,{as:o.CollapsedIcon,ownerState:p,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(R.propTypes={slotProps:r.PropTypes.shape({collapsedIcon:r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object])}),slots:r.PropTypes.shape({CollapsedIcon:r.PropTypes.elementType}),sx:r.PropTypes.object});function L(e){return s.generateUtilityClass("MuiBreadcrumbs",e)}const W=s.generateUtilityClasses("MuiBreadcrumbs",["root","ol","li","separator"]),Y=e=>{const{classes:o}=e,n={root:["root"],li:["li"],ol:["ol"],separator:["separator"]};return s.composeClasses(n,L,o)},G=s.styled(w.Typography$1,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,o)=>[{[`& .${W.li}`]:o.li},o.root]})({}),J=s.styled("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,o)=>o.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),K=s.styled("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,o)=>o.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Q(e,o,n,a){return e.reduce((p,i,l)=>(l<e.length-1?p=p.concat(i,t.jsx(K,{"aria-hidden":!0,className:o,ownerState:a,children:n},`separator-${l}`)):p.push(i),p),[])}const N=u.forwardRef(function(o,n){const a=s.useDefaultProps({props:o,name:"MuiBreadcrumbs"}),{children:p,className:i,component:l="nav",slots:m={},slotProps:y={},expandText:f="Show path",itemsAfterCollapse:g=1,itemsBeforeCollapse:b=1,maxItems:T=8,separator:v="/",...M}=a,[S,E]=u.useState(!1),d={...a,component:l,expanded:S,expandText:f,itemsAfterCollapse:g,itemsBeforeCollapse:b,maxItems:T,separator:v},h=Y(d),$=_.useSlotProps({elementType:m.CollapsedIcon,externalSlotProps:y.collapsedIcon,ownerState:d}),I=u.useRef(null),q=c=>{const B=()=>{E(!0);const O=I.current.querySelector("a[href],button,[tabindex]");O&&O.focus()};return b+g>=c.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${g}} + itemsBeforeCollapse={${b}} >= maxItems={${T}}`].join(`
2
+ `)),c):[...c.slice(0,b),t.jsx(R,{"aria-label":f,slots:{CollapsedIcon:m.CollapsedIcon},slotProps:{collapsedIcon:$},onClick:B},"ellipsis"),...c.slice(c.length-g,c.length)]},x=u.Children.toArray(p).filter(c=>(process.env.NODE_ENV!=="production"&&P.reactIsExports.isFragment(c)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
3
+ `)),u.isValidElement(c))).map((c,B)=>t.jsx("li",{className:h.li,children:c},`child-${B}`));return t.jsx(G,{ref:n,component:l,color:"textSecondary",className:s.clsx(h.root,i),ownerState:d,...M,children:t.jsx(J,{className:h.ol,ref:I,ownerState:d,children:Q(S||T&&x.length<=T?x:q(x),h.separator,v,d)})})});process.env.NODE_ENV!=="production"&&(N.propTypes={children:r.PropTypes.node,classes:r.PropTypes.object,className:r.PropTypes.string,component:r.PropTypes.elementType,expandText:r.PropTypes.string,itemsAfterCollapse:P.integerPropType,itemsBeforeCollapse:P.integerPropType,maxItems:P.integerPropType,separator:r.PropTypes.node,slotProps:r.PropTypes.shape({collapsedIcon:r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object])}),slots:r.PropTypes.shape({CollapsedIcon:r.PropTypes.elementType}),sx:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object])});const C=s.createTheme$1({components:{MuiBreadcrumbs:{styleOverrides:{separator:{height:"24px"}}}}}),X=j.memo(()=>t.jsx(k.Icon,{name:"general-double-arrow-front"})),Z=j.forwardRef(({theme:e,breadcrumbItems:o,separator:n=t.jsx(X,{}),...a},p)=>{const i=e?z.deepmerge(C,{components:{MuiBreadcrumbs:e}}):C;return t.jsx(s.EmotionCacheProvider,{children:t.jsx(s.ThemeProvider,{theme:i,children:t.jsx(N,{"aria-label":"breadcrumb",ref:p,...a,separator:n,children:o.map(({label:l,isActive:m,onClick:y},f)=>t.jsx(w.Typography,{variant:m?"laccent":"bodyUI",onClick:y,sx:y?{cursor:"pointer"}:{},children:l},`${l}-${f}`))})})})});exports.Breadcrumbs=Z;exports.breadcrumbsTheme=C;
@@ -1,18 +1,18 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
- import P from "react";
4
- import { I as U } from "./Icon-YfaQM06u.js";
5
- import { a as z, T as A } from "./Typography-V0qAux0_.js";
6
- import { d as _ } from "./deepmerge-DNqbOtFI.js";
7
- import { s as m, m as D, i as R, b as V, g as F, e as H, f as L, h as q, a as W, T as Y } from "./ThemeProvider-idCYeHSk.js";
8
- import { r as G, i as T } from "./integerPropType-B8hl-7D0.js";
3
+ import E from "react";
4
+ import { s as m, m as U, i as P, b as z, g as A, e as _, f as D, h as V, a as F, E as H, T as L } from "./emotion-cache-provider-CsTOkc-k.js";
5
+ import { I as q } from "./Icon-JQpFT2bY.js";
6
+ import { a as W, T as Y } from "./Typography-pY0gGUzu.js";
7
+ import { d as G } from "./deepmerge-DNqbOtFI.js";
8
+ import { r as J, i as v } from "./integerPropType-B8hl-7D0.js";
9
9
  import { P as o } from "./index-D0lMis-I.js";
10
- import { c as J } from "./createSvgIcon-BFO1uNry.js";
11
- import { B as K } from "./ButtonBase-DOZfyNZL.js";
12
- import { u as Q } from "./useSlotProps-DHNviH4P.js";
13
- const X = J(/* @__PURE__ */ s("path", {
10
+ import { c as K } from "./createSvgIcon-B28x3Jky.js";
11
+ import { B as Q } from "./ButtonBase-UWHDpyst.js";
12
+ import { u as X } from "./useSlotProps-BxlgPyQJ.js";
13
+ const Z = K(/* @__PURE__ */ s("path", {
14
14
  d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
15
- }), "MoreHoriz"), Z = m(K)(D(({
15
+ }), "MoreHoriz"), ee = m(Q)(U(({
16
16
  theme: e
17
17
  }) => ({
18
18
  display: "flex",
@@ -36,27 +36,27 @@ const X = J(/* @__PURE__ */ s("path", {
36
36
  "&:active": {
37
37
  boxShadow: e.shadows[0],
38
38
  ...e.palette.mode === "light" ? {
39
- backgroundColor: R(e.palette.grey[200], 0.12)
39
+ backgroundColor: P(e.palette.grey[200], 0.12)
40
40
  } : {
41
- backgroundColor: R(e.palette.grey[600], 0.12)
41
+ backgroundColor: P(e.palette.grey[600], 0.12)
42
42
  }
43
43
  }
44
- }))), ee = m(X)({
44
+ }))), oe = m(Z)({
45
45
  width: 24,
46
46
  height: 16
47
47
  });
48
- function M(e) {
48
+ function N(e) {
49
49
  const {
50
50
  slots: r = {},
51
51
  slotProps: n = {},
52
52
  ...l
53
53
  } = e, a = e;
54
54
  return /* @__PURE__ */ s("li", {
55
- children: /* @__PURE__ */ s(Z, {
55
+ children: /* @__PURE__ */ s(ee, {
56
56
  focusRipple: !0,
57
57
  ...l,
58
58
  ownerState: a,
59
- children: /* @__PURE__ */ s(ee, {
59
+ children: /* @__PURE__ */ s(oe, {
60
60
  as: r.CollapsedIcon,
61
61
  ownerState: a,
62
62
  ...n.collapsedIcon
@@ -64,7 +64,7 @@ function M(e) {
64
64
  })
65
65
  });
66
66
  }
67
- process.env.NODE_ENV !== "production" && (M.propTypes = {
67
+ process.env.NODE_ENV !== "production" && (N.propTypes = {
68
68
  /**
69
69
  * The props used for the CollapsedIcon slot.
70
70
  * @default {}
@@ -85,26 +85,26 @@ process.env.NODE_ENV !== "production" && (M.propTypes = {
85
85
  */
86
86
  sx: o.object
87
87
  });
88
- function oe(e) {
89
- return F("MuiBreadcrumbs", e);
88
+ function re(e) {
89
+ return A("MuiBreadcrumbs", e);
90
90
  }
91
- const re = V("MuiBreadcrumbs", ["root", "ol", "li", "separator"]), se = (e) => {
91
+ const se = z("MuiBreadcrumbs", ["root", "ol", "li", "separator"]), ae = (e) => {
92
92
  const {
93
93
  classes: r
94
94
  } = e;
95
- return q({
95
+ return V({
96
96
  root: ["root"],
97
97
  li: ["li"],
98
98
  ol: ["ol"],
99
99
  separator: ["separator"]
100
- }, oe, r);
101
- }, ae = m(z, {
100
+ }, re, r);
101
+ }, te = m(W, {
102
102
  name: "MuiBreadcrumbs",
103
103
  slot: "Root",
104
104
  overridesResolver: (e, r) => [{
105
- [`& .${re.li}`]: r.li
105
+ [`& .${se.li}`]: r.li
106
106
  }, r.root]
107
- })({}), te = m("ol", {
107
+ })({}), ne = m("ol", {
108
108
  name: "MuiBreadcrumbs",
109
109
  slot: "Ol",
110
110
  overridesResolver: (e, r) => r.ol
@@ -115,7 +115,7 @@ const re = V("MuiBreadcrumbs", ["root", "ol", "li", "separator"]), se = (e) => {
115
115
  padding: 0,
116
116
  margin: 0,
117
117
  listStyle: "none"
118
- }), ne = m("li", {
118
+ }), le = m("li", {
119
119
  name: "MuiBreadcrumbs",
120
120
  slot: "Separator",
121
121
  overridesResolver: (e, r) => r.separator
@@ -125,16 +125,16 @@ const re = V("MuiBreadcrumbs", ["root", "ol", "li", "separator"]), se = (e) => {
125
125
  marginLeft: 8,
126
126
  marginRight: 8
127
127
  });
128
- function le(e, r, n, l) {
129
- return e.reduce((a, p, c) => (c < e.length - 1 ? a = a.concat(p, /* @__PURE__ */ s(ne, {
128
+ function ce(e, r, n, l) {
129
+ return e.reduce((a, p, c) => (c < e.length - 1 ? a = a.concat(p, /* @__PURE__ */ s(le, {
130
130
  "aria-hidden": !0,
131
131
  className: r,
132
132
  ownerState: l,
133
133
  children: n
134
134
  }, `separator-${c}`)) : a.push(p), a), []);
135
135
  }
136
- const E = /* @__PURE__ */ d.forwardRef(function(r, n) {
137
- const l = H({
136
+ const M = /* @__PURE__ */ d.forwardRef(function(r, n) {
137
+ const l = _({
138
138
  props: r,
139
139
  name: "MuiBreadcrumbs"
140
140
  }), {
@@ -147,7 +147,7 @@ const E = /* @__PURE__ */ d.forwardRef(function(r, n) {
147
147
  itemsAfterCollapse: g = 1,
148
148
  itemsBeforeCollapse: h = 1,
149
149
  maxItems: y = 8,
150
- separator: v = "/",
150
+ separator: T = "/",
151
151
  ...O
152
152
  } = l, [I, $] = d.useState(!1), i = {
153
153
  ...l,
@@ -157,8 +157,8 @@ const E = /* @__PURE__ */ d.forwardRef(function(r, n) {
157
157
  itemsAfterCollapse: g,
158
158
  itemsBeforeCollapse: h,
159
159
  maxItems: y,
160
- separator: v
161
- }, B = se(i), j = Q({
160
+ separator: T
161
+ }, B = ae(i), j = X({
162
162
  elementType: u.CollapsedIcon,
163
163
  externalSlotProps: f.collapsedIcon,
164
164
  ownerState: i
@@ -169,7 +169,7 @@ const E = /* @__PURE__ */ d.forwardRef(function(r, n) {
169
169
  w && w.focus();
170
170
  };
171
171
  return h + g >= t.length ? (process.env.NODE_ENV !== "production" && console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.", `itemsAfterCollapse={${g}} + itemsBeforeCollapse={${h}} >= maxItems={${y}}`].join(`
172
- `)), t) : [...t.slice(0, h), /* @__PURE__ */ s(M, {
172
+ `)), t) : [...t.slice(0, h), /* @__PURE__ */ s(N, {
173
173
  "aria-label": b,
174
174
  slots: {
175
175
  CollapsedIcon: u.CollapsedIcon
@@ -179,27 +179,27 @@ const E = /* @__PURE__ */ d.forwardRef(function(r, n) {
179
179
  },
180
180
  onClick: x
181
181
  }, "ellipsis"), ...t.slice(t.length - g, t.length)];
182
- }, C = d.Children.toArray(a).filter((t) => (process.env.NODE_ENV !== "production" && G.isFragment(t) && console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
182
+ }, C = d.Children.toArray(a).filter((t) => (process.env.NODE_ENV !== "production" && J.isFragment(t) && console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
183
183
  `)), /* @__PURE__ */ d.isValidElement(t))).map((t, x) => /* @__PURE__ */ s("li", {
184
184
  className: B.li,
185
185
  children: t
186
186
  }, `child-${x}`));
187
- return /* @__PURE__ */ s(ae, {
187
+ return /* @__PURE__ */ s(te, {
188
188
  ref: n,
189
189
  component: c,
190
190
  color: "textSecondary",
191
- className: L(B.root, p),
191
+ className: D(B.root, p),
192
192
  ownerState: i,
193
193
  ...O,
194
- children: /* @__PURE__ */ s(te, {
194
+ children: /* @__PURE__ */ s(ne, {
195
195
  className: B.ol,
196
196
  ref: S,
197
197
  ownerState: i,
198
- children: le(I || y && C.length <= y ? C : k(C), B.separator, v, i)
198
+ children: ce(I || y && C.length <= y ? C : k(C), B.separator, T, i)
199
199
  })
200
200
  });
201
201
  });
202
- process.env.NODE_ENV !== "production" && (E.propTypes = {
202
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
203
203
  // ┌────────────────────────────── Warning ──────────────────────────────┐
204
204
  // │ These PropTypes are generated from the TypeScript type definitions. │
205
205
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -232,19 +232,19 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
232
232
  * If max items is exceeded, the number of items to show after the ellipsis.
233
233
  * @default 1
234
234
  */
235
- itemsAfterCollapse: T,
235
+ itemsAfterCollapse: v,
236
236
  /**
237
237
  * If max items is exceeded, the number of items to show before the ellipsis.
238
238
  * @default 1
239
239
  */
240
- itemsBeforeCollapse: T,
240
+ itemsBeforeCollapse: v,
241
241
  /**
242
242
  * Specifies the maximum number of breadcrumbs to display. When there are more
243
243
  * than the maximum number, only the first `itemsBeforeCollapse` and last `itemsAfterCollapse`
244
244
  * will be shown, with an ellipsis in between.
245
245
  * @default 8
246
246
  */
247
- maxItems: T,
247
+ maxItems: v,
248
248
  /**
249
249
  * Custom separator node.
250
250
  * @default '/'
@@ -270,7 +270,7 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
270
270
  */
271
271
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
272
272
  });
273
- const N = W({
273
+ const R = F({
274
274
  components: {
275
275
  MuiBreadcrumbs: {
276
276
  styleOverrides: {
@@ -280,11 +280,11 @@ const N = W({
280
280
  }
281
281
  }
282
282
  }
283
- }), ce = P.memo(() => /* @__PURE__ */ s(U, { name: "general-double-arrow-front" })), Ce = P.forwardRef(
284
- ({ theme: e, breadcrumbItems: r, separator: n = /* @__PURE__ */ s(ce, {}), ...l }, a) => {
285
- const p = e ? _(N, { components: { MuiBreadcrumbs: e } }) : N;
286
- return /* @__PURE__ */ s(Y, { theme: p, children: /* @__PURE__ */ s(E, { "aria-label": "breadcrumb", ref: a, ...l, separator: n, children: r.map(({ label: c, isActive: u, onClick: f }, b) => /* @__PURE__ */ s(
287
- A,
283
+ }), pe = E.memo(() => /* @__PURE__ */ s(q, { name: "general-double-arrow-front" })), xe = E.forwardRef(
284
+ ({ theme: e, breadcrumbItems: r, separator: n = /* @__PURE__ */ s(pe, {}), ...l }, a) => {
285
+ const p = e ? G(R, { components: { MuiBreadcrumbs: e } }) : R;
286
+ return /* @__PURE__ */ s(H, { children: /* @__PURE__ */ s(L, { theme: p, children: /* @__PURE__ */ s(M, { "aria-label": "breadcrumb", ref: a, ...l, separator: n, children: r.map(({ label: c, isActive: u, onClick: f }, b) => /* @__PURE__ */ s(
287
+ Y,
288
288
  {
289
289
  variant: u ? "laccent" : "bodyUI",
290
290
  onClick: f,
@@ -292,10 +292,10 @@ const N = W({
292
292
  children: c
293
293
  },
294
294
  `${c}-${b}`
295
- )) }) });
295
+ )) }) }) });
296
296
  }
297
297
  );
298
298
  export {
299
- Ce as B,
300
- N as b
299
+ xe as B,
300
+ R as b
301
301
  };
@@ -0,0 +1 @@
1
+ "use strict";const v=require("react/jsx-runtime"),B=require("react"),a=require("./emotion-cache-provider-C66nBUtN.cjs"),V=require("./deepmerge-BuAjuQR6.cjs"),s=require("./lib/themes/themes.cjs"),e=require("./index-B-zZeebW.cjs"),L=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),D=require("./ButtonBase-CISYuRKV.cjs");function q(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const g=q(B);function h(o,r){const t={...r};for(const n in o)if(Object.prototype.hasOwnProperty.call(o,n)){const i=n;if(i==="components"||i==="slots")t[i]={...o[i],...t[i]};else if(i==="componentsProps"||i==="slotProps"){const l=o[i],p=r[i];if(!p)t[i]=l||{};else if(!l)t[i]=p;else{t[i]={...p};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const c=d;t[i][c]=h(l[c],p[c])}}}else t[i]===void 0&&(t[i]=o[i])}return t}function G(o){return a.generateUtilityClass("MuiButton",o)}const u=a.generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),m=g.createContext({});process.env.NODE_ENV!=="production"&&(m.displayName="ButtonGroupContext");const w=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(w.displayName="ButtonGroupButtonContext");const U=o=>{const{color:r,disableElevation:t,fullWidth:n,size:i,variant:l,classes:p}=o,d={root:["root",l,`${l}${a.capitalize(r)}`,`size${a.capitalize(i)}`,`${l}Size${a.capitalize(i)}`,`color${a.capitalize(r)}`,t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${a.capitalize(i)}`],endIcon:["icon","endIcon",`iconSize${a.capitalize(i)}`]},c=a.composeClasses(d,G,p);return{...p,...c}},$=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],A=a.styled(D.ButtonBase,{shouldForwardProp:o=>a.rootShouldForwardProp(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,r[t.variant],r[`${t.variant}${a.capitalize(t.color)}`],r[`size${a.capitalize(t.size)}`],r[`${t.variant}Size${a.capitalize(t.size)}`],t.color==="inherit"&&r.colorInherit,t.disableElevation&&r.disableElevation,t.fullWidth&&r.fullWidth]}})(a.memoTheme(({theme:o})=>{const r=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],t=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return{...o.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${u.disabled}`]:{color:(o.vars||o).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(o.vars||o).shadows[2],"&:hover":{boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2]}},"&:active":{boxShadow:(o.vars||o).shadows[8]},[`&.${u.focusVisible}`]:{boxShadow:(o.vars||o).shadows[6]},[`&.${u.disabled}`]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${u.disabled}`]:{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(o.palette).filter(L.createSimplePaletteValueFilter()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(o.vars||o).palette[n].main,"--variant-outlinedColor":(o.vars||o).palette[n].main,"--variant-outlinedBorder":o.vars?`rgba(${o.vars.palette[n].mainChannel} / 0.5)`:a.alpha(o.palette[n].main,.5),"--variant-containedColor":(o.vars||o).palette[n].contrastText,"--variant-containedBg":(o.vars||o).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(o.vars||o).palette[n].dark,"--variant-textBg":o.vars?`rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette[n].main,o.palette.action.hoverOpacity),"--variant-outlinedBorder":(o.vars||o).palette[n].main,"--variant-outlinedBg":o.vars?`rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette[n].main,o.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":o.vars?o.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":o.vars?o.vars.palette.Button.inheritContainedHoverBg:t,"--variant-textBg":o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette.text.primary,o.palette.action.hoverOpacity),"--variant-outlinedBg":o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette.text.primary,o.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:o.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:o.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:o.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${u.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${u.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),F=a.styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.startIcon,r[`iconSize${a.capitalize(t.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...$]}),K=a.styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.endIcon,r[`iconSize${a.capitalize(t.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...$]}),I=g.forwardRef(function(r,t){const n=g.useContext(m),i=g.useContext(w),l=h(n,r),p=a.useDefaultProps({props:l,name:"MuiButton"}),{children:d,color:c="primary",component:C="button",className:k,disabled:f=!1,disableElevation:O=!1,disableFocusRipple:S=!1,endIcon:T,focusVisibleClassName:R,fullWidth:E=!1,size:N="medium",startIcon:z,type:P,variant:j="text",...M}=p,x={...p,color:c,component:C,disabled:f,disableElevation:O,disableFocusRipple:S,fullWidth:E,size:N,type:P,variant:j},y=U(x),_=z&&v.jsx(F,{className:y.startIcon,ownerState:x,children:z}),W=T&&v.jsx(K,{className:y.endIcon,ownerState:x,children:T}),H=i||"";return v.jsxs(A,{ownerState:x,className:a.clsx(n.className,y.root,k,H),component:C,disabled:f,focusRipple:!S,focusVisibleClassName:a.clsx(y.focusVisible,R),ref:t,type:P,...M,classes:y,children:[_,d,W]})});process.env.NODE_ENV!=="production"&&(I.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","primary","secondary","success","error","info","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,disableElevation:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,endIcon:e.PropTypes.node,focusVisibleClassName:e.PropTypes.string,fullWidth:e.PropTypes.bool,href:e.PropTypes.string,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["small","medium","large"]),e.PropTypes.string]),startIcon:e.PropTypes.node,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["contained","outlined","text"]),e.PropTypes.string])});const b=a.createTheme$1({components:{MuiButton:{variants:[{props:{variant:"gray"},style:{backgroundColor:s.siColors.StUiColors.guiding,color:s.siColors.StInteractionColors.linkHovered,"&:hover":{backgroundColor:s.siColors.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:s.siColors.StBackgroundColors.workspace}}},{props:{variant:"primary"},style:{"&:disabled":{backgroundColor:s.siColors.StPrimaryColors.primary}}},{props:{variant:"secondary"},style:{backgroundColor:s.siColors.StBackgroundColors.workspace,color:s.siColors.StInteractionColors.linkHovered,border:`1px solid ${s.sfColors.$SHUTTLE_GRAY_DARK}`,"&:hover":{backgroundColor:s.siColors.StBackgroundColors.workspace,border:`1px solid ${s.sfColors.$SHUTTLE_GRAY_DARK}`},"&:disabled":{backgroundColor:s.siColors.StBackgroundColors.workspace}}},{props:{variant:"text"},style:{color:s.siColors.StTextColors.link,"&:hover":{backgroundColor:s.siColors.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:s.siColors.StBackgroundColors.workspace}}}],styleOverrides:{root:{borderRadius:"4px",height:"28px",lineHeight:"24px",minHeight:0,textTransform:"none",color:s.siColors.StTextColors.active,boxShadow:"none","&:hover":{backgroundColor:s.siColors.StInteractionColors.primaryHovered,boxShadow:"none"},"&:disabled":{color:s.sfColors.$SHUTTLE_GRAY_DARK,opacity:".3"}}}}}});b.shadows[1]="0px 0px 5px rgba(58, 67, 86, 0.2)";b.shadows[2]="0 1px 3px 1px rgba(58, 67, 86, 0.3)";const Y=B.forwardRef((o,r)=>{const{children:t,theme:n,...i}=o,l=n?V.deepmerge(b,{components:{MuiButton:n}}):b;return v.jsx(a.EmotionCacheProvider,{children:v.jsx(a.ThemeProvider,{theme:l,children:v.jsx(I,{...i,ref:r,children:t})})})});exports.Button=Y;exports.buttonsTheme=b;
@@ -1,12 +1,12 @@
1
- import { jsxs as G, jsx as y } from "react/jsx-runtime";
2
- import * as b from "react";
1
+ import { jsxs as G, jsx as b } from "react/jsx-runtime";
2
+ import * as x from "react";
3
3
  import { forwardRef as U } from "react";
4
- import { d as A } from "./deepmerge-DNqbOtFI.js";
4
+ import { g as A, b as F, s as C, r as K, d as l, m as Y, e as q, f as $, h as J, j as g, a as Q, E as X, T as Z } from "./emotion-cache-provider-CsTOkc-k.js";
5
+ import { d as oo } from "./deepmerge-DNqbOtFI.js";
5
6
  import { siColors as i, sfColors as S } from "./lib/themes/themes.js";
6
- import { g as F, b as K, s as C, r as Y, d as l, m as q, e as J, f as $, h as Q, j as g, a as X, T as Z } from "./ThemeProvider-idCYeHSk.js";
7
7
  import { P as t } from "./index-D0lMis-I.js";
8
- import { c as oo } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
9
- import { B as to } from "./ButtonBase-DOZfyNZL.js";
8
+ import { c as to } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
9
+ import { B as ao } from "./ButtonBase-UWHDpyst.js";
10
10
  function k(o, r) {
11
11
  const a = {
12
12
  ...r
@@ -39,14 +39,14 @@ function k(o, r) {
39
39
  }
40
40
  return a;
41
41
  }
42
- function ao(o) {
43
- return F("MuiButton", o);
42
+ function ro(o) {
43
+ return A("MuiButton", o);
44
44
  }
45
- const u = K("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), T = /* @__PURE__ */ b.createContext({});
45
+ const u = F("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), T = /* @__PURE__ */ x.createContext({});
46
46
  process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupContext");
47
- const R = /* @__PURE__ */ b.createContext(void 0);
47
+ const R = /* @__PURE__ */ x.createContext(void 0);
48
48
  process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupButtonContext");
49
- const ro = (o) => {
49
+ const no = (o) => {
50
50
  const {
51
51
  color: r,
52
52
  disableElevation: a,
@@ -59,7 +59,7 @@ const ro = (o) => {
59
59
  label: ["label"],
60
60
  startIcon: ["icon", "startIcon", `iconSize${l(n)}`],
61
61
  endIcon: ["icon", "endIcon", `iconSize${l(n)}`]
62
- }, c = Q(p, ao, d);
62
+ }, c = J(p, ro, d);
63
63
  return {
64
64
  ...d,
65
65
  // forward the focused, disabled, etc. classes to the ButtonBase
@@ -92,8 +92,8 @@ const ro = (o) => {
92
92
  fontSize: 22
93
93
  }
94
94
  }
95
- }], no = C(to, {
96
- shouldForwardProp: (o) => Y(o) || o === "classes",
95
+ }], eo = C(ao, {
96
+ shouldForwardProp: (o) => K(o) || o === "classes",
97
97
  name: "MuiButton",
98
98
  slot: "Root",
99
99
  overridesResolver: (o, r) => {
@@ -102,7 +102,7 @@ const ro = (o) => {
102
102
  } = o;
103
103
  return [r.root, r[a.variant], r[`${a.variant}${l(a.color)}`], r[`size${l(a.size)}`], r[`${a.variant}Size${l(a.size)}`], a.color === "inherit" && r.colorInherit, a.disableElevation && r.disableElevation, a.fullWidth && r.fullWidth];
104
104
  }
105
- })(q(({
105
+ })(Y(({
106
106
  theme: o
107
107
  }) => {
108
108
  const r = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], a = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
@@ -171,7 +171,7 @@ const ro = (o) => {
171
171
  color: "var(--variant-textColor)",
172
172
  backgroundColor: "var(--variant-textBg)"
173
173
  }
174
- }, ...Object.entries(o.palette).filter(oo()).map(([e]) => ({
174
+ }, ...Object.entries(o.palette).filter(to()).map(([e]) => ({
175
175
  props: {
176
176
  color: e
177
177
  },
@@ -288,7 +288,7 @@ const ro = (o) => {
288
288
  }
289
289
  }]
290
290
  };
291
- })), eo = C("span", {
291
+ })), io = C("span", {
292
292
  name: "MuiButton",
293
293
  slot: "StartIcon",
294
294
  overridesResolver: (o, r) => {
@@ -309,7 +309,7 @@ const ro = (o) => {
309
309
  marginLeft: -2
310
310
  }
311
311
  }, ...O]
312
- }), io = C("span", {
312
+ }), so = C("span", {
313
313
  name: "MuiButton",
314
314
  slot: "EndIcon",
315
315
  overridesResolver: (o, r) => {
@@ -330,49 +330,49 @@ const ro = (o) => {
330
330
  marginRight: -2
331
331
  }
332
332
  }, ...O]
333
- }), E = /* @__PURE__ */ b.forwardRef(function(r, a) {
334
- const e = b.useContext(T), n = b.useContext(R), s = k(e, r), d = J({
333
+ }), E = /* @__PURE__ */ x.forwardRef(function(r, a) {
334
+ const e = x.useContext(T), n = x.useContext(R), s = k(e, r), d = q({
335
335
  props: s,
336
336
  name: "MuiButton"
337
337
  }), {
338
338
  children: p,
339
339
  color: c = "primary",
340
340
  component: m = "button",
341
- className: N,
341
+ className: P,
342
342
  disabled: B = !1,
343
- disableElevation: P = !1,
343
+ disableElevation: N = !1,
344
344
  disableFocusRipple: z = !1,
345
- endIcon: w,
345
+ endIcon: h,
346
346
  focusVisibleClassName: M,
347
347
  fullWidth: W = !1,
348
348
  size: H = "medium",
349
- startIcon: h,
349
+ startIcon: w,
350
350
  type: I,
351
351
  variant: L = "text",
352
352
  ...V
353
- } = d, x = {
353
+ } = d, y = {
354
354
  ...d,
355
355
  color: c,
356
356
  component: m,
357
357
  disabled: B,
358
- disableElevation: P,
358
+ disableElevation: N,
359
359
  disableFocusRipple: z,
360
360
  fullWidth: W,
361
361
  size: H,
362
362
  type: I,
363
363
  variant: L
364
- }, v = ro(x), j = h && /* @__PURE__ */ y(eo, {
364
+ }, v = no(y), j = w && /* @__PURE__ */ b(io, {
365
365
  className: v.startIcon,
366
- ownerState: x,
367
- children: h
368
- }), _ = w && /* @__PURE__ */ y(io, {
369
- className: v.endIcon,
370
- ownerState: x,
366
+ ownerState: y,
371
367
  children: w
368
+ }), _ = h && /* @__PURE__ */ b(so, {
369
+ className: v.endIcon,
370
+ ownerState: y,
371
+ children: h
372
372
  }), D = n || "";
373
- return /* @__PURE__ */ G(no, {
374
- ownerState: x,
375
- className: $(e.className, v.root, N, D),
373
+ return /* @__PURE__ */ G(eo, {
374
+ ownerState: y,
375
+ className: $(e.className, v.root, P, D),
376
376
  component: m,
377
377
  disabled: B,
378
378
  focusRipple: !z,
@@ -478,7 +478,7 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
478
478
  */
479
479
  variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
480
480
  });
481
- const f = X({
481
+ const f = Q({
482
482
  components: {
483
483
  MuiButton: {
484
484
  variants: [
@@ -555,15 +555,15 @@ const f = X({
555
555
  });
556
556
  f.shadows[1] = "0px 0px 5px rgba(58, 67, 86, 0.2)";
557
557
  f.shadows[2] = "0 1px 3px 1px rgba(58, 67, 86, 0.3)";
558
- const xo = U((o, r) => {
559
- const { children: a, theme: e, ...n } = o, s = e ? A(f, {
558
+ const yo = U((o, r) => {
559
+ const { children: a, theme: e, ...n } = o, s = e ? oo(f, {
560
560
  components: {
561
561
  MuiButton: e
562
562
  }
563
563
  }) : f;
564
- return /* @__PURE__ */ y(Z, { theme: s, children: /* @__PURE__ */ y(E, { ...n, ref: r, children: a }) });
564
+ return /* @__PURE__ */ b(X, { children: /* @__PURE__ */ b(Z, { theme: s, children: /* @__PURE__ */ b(E, { ...n, ref: r, children: a }) }) });
565
565
  });
566
566
  export {
567
- xo as B,
567
+ yo as B,
568
568
  f as b
569
569
  };
@@ -1,4 +1,4 @@
1
- "use strict";var xe=Object.defineProperty;var Ee=(n,e,t)=>e in n?xe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ne=(n,e,t)=>Ee(n,typeof e!="symbol"?e+"":e,t);const P=require("react"),o=require("./index-B-zZeebW.cjs"),h=require("./ThemeProvider-CLfPqpv1.cjs"),F=require("react/jsx-runtime"),b=require("./useTimeout-DwkOFF8P.cjs"),Ce=require("./setPrototypeOf-BmHXYjK5.cjs"),Ve=require("./extends-q0Hkx4pQ.cjs"),De=require("./assertThisInitialized-BSnhOY1M.cjs");function ve(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,l.get?l:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const d=ve(P);function Ne(n){const{prototype:e={}}=n;return!!e.isReactComponent}function Se(n,e,t,l,s){const r=n[e],i=s||e;if(r==null||typeof window>"u")return null;let u;return typeof r=="function"&&!Ne(r)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${l} \`${i}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oe=b.chainPropTypes(o.PropTypes.elementType,Se);class G{constructor(){ne(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new G}static use(){const e=b.useLazyRef(G.create).current,[t,l]=d.useState(!1);return e.shouldMount=t,e.setShouldMount=l,d.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=je(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.start(...e)})}stop(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.stop(...e)})}pulsate(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.pulsate(...e)})}}function we(){return G.use()}function je(){let n,e;const t=new Promise((l,s)=>{n=l,e=s});return t.resolve=n,t.reject=e,t}function Z(n,e){var t=function(r){return e&&P.isValidElement(r)?e(r):r},l=Object.create(null);return n&&P.Children.map(n,function(s){return s}).forEach(function(s){l[s.key]=t(s)}),l}function ke(n,e){n=n||{},e=e||{};function t(m){return m in e?e[m]:n[m]}var l=Object.create(null),s=[];for(var r in n)r in e?s.length&&(l[r]=s,s=[]):s.push(r);var i,u={};for(var p in e){if(l[p])for(i=0;i<l[p].length;i++){var f=l[p][i];u[l[p][i]]=t(f)}u[p]=t(p)}for(i=0;i<s.length;i++)u[s[i]]=t(s[i]);return u}function $(n,e,t){return t[e]!=null?t[e]:n.props[e]}function Be(n,e){return Z(n.children,function(t){return P.cloneElement(t,{onExited:e.bind(null,t),in:!0,appear:$(t,"appear",n),enter:$(t,"enter",n),exit:$(t,"exit",n)})})}function Oe(n,e,t){var l=Z(n.children),s=ke(e,l);return Object.keys(s).forEach(function(r){var i=s[r];if(P.isValidElement(i)){var u=r in e,p=r in l,f=e[r],m=P.isValidElement(f)&&!f.props.in;p&&(!u||m)?s[r]=P.cloneElement(i,{onExited:t.bind(null,i),in:!0,exit:$(i,"exit",n),enter:$(i,"enter",n)}):!p&&u&&!m?s[r]=P.cloneElement(i,{in:!1}):p&&u&&P.isValidElement(f)&&(s[r]=P.cloneElement(i,{onExited:t.bind(null,i),in:f.props.in,exit:$(i,"exit",n),enter:$(i,"enter",n)}))}}),s}var Le=Object.values||function(n){return Object.keys(n).map(function(e){return n[e]})},$e={component:"div",childFactory:function(e){return e}},ee=function(n){b._inheritsLoose(e,n);function e(l,s){var r;r=n.call(this,l,s)||this;var i=r.handleExited.bind(De._assertThisInitialized(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}var t=e.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,r){var i=r.children,u=r.handleExited,p=r.firstRender;return{children:p?Be(s,u):Oe(s,i,u),firstRender:!1}},t.handleExited=function(s,r){var i=Z(this.props.children);s.key in i||(s.props.onExited&&s.props.onExited(r),this.mounted&&this.setState(function(u){var p=Ve._extends({},u.children);return delete p[s.key],{children:p}}))},t.render=function(){var s=this.props,r=s.component,i=s.childFactory,u=Ce._objectWithoutPropertiesLoose(s,["component","childFactory"]),p=this.state.contextValue,f=Le(this.state.children).map(i);return delete u.appear,delete u.enter,delete u.exit,r===null?P.createElement(b.TransitionGroupContext.Provider,{value:p},f):P.createElement(b.TransitionGroupContext.Provider,{value:p},P.createElement(r,u,f))},e}(P.Component);ee.propTypes=process.env.NODE_ENV!=="production"?{component:o.PropTypes.any,children:o.PropTypes.node,appear:o.PropTypes.bool,enter:o.PropTypes.bool,exit:o.PropTypes.bool,childFactory:o.PropTypes.func}:{};ee.defaultProps=$e;function se(n){const{className:e,classes:t,pulsate:l=!1,rippleX:s,rippleY:r,rippleSize:i,in:u,onExited:p,timeout:f}=n,[m,y]=d.useState(!1),M=h.clsx(e,t.ripple,t.rippleVisible,l&&t.ripplePulsate),N={width:i,height:i,top:-(i/2)+r,left:-(i/2)+s},g=h.clsx(t.child,m&&t.childLeaving,l&&t.childPulsate);return!u&&!m&&y(!0),d.useEffect(()=>{if(!u&&p!=null){const k=setTimeout(p,f);return()=>{clearTimeout(k)}}},[p,u,f]),F.jsx("span",{className:M,style:N,children:F.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(se.propTypes={classes:o.PropTypes.object.isRequired,className:o.PropTypes.string,in:o.PropTypes.bool,onExited:o.PropTypes.func,pulsate:o.PropTypes.bool,rippleSize:o.PropTypes.number,rippleX:o.PropTypes.number,rippleY:o.PropTypes.number,timeout:o.PropTypes.number.isRequired});const R=h.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q=550,Fe=80,Ie=h.keyframes`
1
+ "use strict";var xe=Object.defineProperty;var Ee=(n,e,t)=>e in n?xe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ne=(n,e,t)=>Ee(n,typeof e!="symbol"?e+"":e,t);const P=require("react"),o=require("./index-B-zZeebW.cjs"),h=require("./emotion-cache-provider-C66nBUtN.cjs"),F=require("react/jsx-runtime"),b=require("./useTimeout-DwkOFF8P.cjs"),Ce=require("./setPrototypeOf-BmHXYjK5.cjs"),Ve=require("./extends-q0Hkx4pQ.cjs"),De=require("./assertThisInitialized-BSnhOY1M.cjs");function ve(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,l.get?l:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const d=ve(P);function Ne(n){const{prototype:e={}}=n;return!!e.isReactComponent}function Se(n,e,t,l,s){const r=n[e],i=s||e;if(r==null||typeof window>"u")return null;let u;return typeof r=="function"&&!Ne(r)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${l} \`${i}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oe=b.chainPropTypes(o.PropTypes.elementType,Se);class G{constructor(){ne(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new G}static use(){const e=b.useLazyRef(G.create).current,[t,l]=d.useState(!1);return e.shouldMount=t,e.setShouldMount=l,d.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=je(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.start(...e)})}stop(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.stop(...e)})}pulsate(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.pulsate(...e)})}}function we(){return G.use()}function je(){let n,e;const t=new Promise((l,s)=>{n=l,e=s});return t.resolve=n,t.reject=e,t}function Z(n,e){var t=function(r){return e&&P.isValidElement(r)?e(r):r},l=Object.create(null);return n&&P.Children.map(n,function(s){return s}).forEach(function(s){l[s.key]=t(s)}),l}function ke(n,e){n=n||{},e=e||{};function t(m){return m in e?e[m]:n[m]}var l=Object.create(null),s=[];for(var r in n)r in e?s.length&&(l[r]=s,s=[]):s.push(r);var i,u={};for(var p in e){if(l[p])for(i=0;i<l[p].length;i++){var f=l[p][i];u[l[p][i]]=t(f)}u[p]=t(p)}for(i=0;i<s.length;i++)u[s[i]]=t(s[i]);return u}function $(n,e,t){return t[e]!=null?t[e]:n.props[e]}function Be(n,e){return Z(n.children,function(t){return P.cloneElement(t,{onExited:e.bind(null,t),in:!0,appear:$(t,"appear",n),enter:$(t,"enter",n),exit:$(t,"exit",n)})})}function Oe(n,e,t){var l=Z(n.children),s=ke(e,l);return Object.keys(s).forEach(function(r){var i=s[r];if(P.isValidElement(i)){var u=r in e,p=r in l,f=e[r],m=P.isValidElement(f)&&!f.props.in;p&&(!u||m)?s[r]=P.cloneElement(i,{onExited:t.bind(null,i),in:!0,exit:$(i,"exit",n),enter:$(i,"enter",n)}):!p&&u&&!m?s[r]=P.cloneElement(i,{in:!1}):p&&u&&P.isValidElement(f)&&(s[r]=P.cloneElement(i,{onExited:t.bind(null,i),in:f.props.in,exit:$(i,"exit",n),enter:$(i,"enter",n)}))}}),s}var Le=Object.values||function(n){return Object.keys(n).map(function(e){return n[e]})},$e={component:"div",childFactory:function(e){return e}},ee=function(n){b._inheritsLoose(e,n);function e(l,s){var r;r=n.call(this,l,s)||this;var i=r.handleExited.bind(De._assertThisInitialized(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}var t=e.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,r){var i=r.children,u=r.handleExited,p=r.firstRender;return{children:p?Be(s,u):Oe(s,i,u),firstRender:!1}},t.handleExited=function(s,r){var i=Z(this.props.children);s.key in i||(s.props.onExited&&s.props.onExited(r),this.mounted&&this.setState(function(u){var p=Ve._extends({},u.children);return delete p[s.key],{children:p}}))},t.render=function(){var s=this.props,r=s.component,i=s.childFactory,u=Ce._objectWithoutPropertiesLoose(s,["component","childFactory"]),p=this.state.contextValue,f=Le(this.state.children).map(i);return delete u.appear,delete u.enter,delete u.exit,r===null?P.createElement(b.TransitionGroupContext.Provider,{value:p},f):P.createElement(b.TransitionGroupContext.Provider,{value:p},P.createElement(r,u,f))},e}(P.Component);ee.propTypes=process.env.NODE_ENV!=="production"?{component:o.PropTypes.any,children:o.PropTypes.node,appear:o.PropTypes.bool,enter:o.PropTypes.bool,exit:o.PropTypes.bool,childFactory:o.PropTypes.func}:{};ee.defaultProps=$e;function se(n){const{className:e,classes:t,pulsate:l=!1,rippleX:s,rippleY:r,rippleSize:i,in:u,onExited:p,timeout:f}=n,[m,y]=d.useState(!1),M=h.clsx(e,t.ripple,t.rippleVisible,l&&t.ripplePulsate),N={width:i,height:i,top:-(i/2)+r,left:-(i/2)+s},g=h.clsx(t.child,m&&t.childLeaving,l&&t.childPulsate);return!u&&!m&&y(!0),d.useEffect(()=>{if(!u&&p!=null){const k=setTimeout(p,f);return()=>{clearTimeout(k)}}},[p,u,f]),F.jsx("span",{className:M,style:N,children:F.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(se.propTypes={classes:o.PropTypes.object.isRequired,className:o.PropTypes.string,in:o.PropTypes.bool,onExited:o.PropTypes.func,pulsate:o.PropTypes.bool,rippleSize:o.PropTypes.number,rippleX:o.PropTypes.number,rippleY:o.PropTypes.number,timeout:o.PropTypes.number.isRequired});const R=h.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q=550,Fe=80,Ie=h.keyframes`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;
@@ -4,7 +4,7 @@ var re = (o, e, n) => ve(o, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as d from "react";
5
5
  import H, { Children as Be, isValidElement as W, cloneElement as G } from "react";
6
6
  import { P as t } from "./index-D0lMis-I.js";
7
- import { f as E, b as ce, p as te, s as ne, e as pe, g as Le, h as $e } from "./ThemeProvider-idCYeHSk.js";
7
+ import { f as E, b as ce, p as te, s as ne, e as pe, g as Le, h as $e } from "./emotion-cache-provider-CsTOkc-k.js";
8
8
  import { jsx as I, jsxs as ke } from "react/jsx-runtime";
9
9
  import { c as Oe, a as Fe, _ as je, T as ae, b as Ie, u as le, d as J, i as ue, r as Ue } from "./useTimeout-Oe_jK-ia.js";
10
10
  import { _ as ze } from "./setPrototypeOf-CEtRTXk2.js";