@cgi-learning-hub/ui 0.0.1-dev.1709568003 → 0.0.1-dev.1709569638

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 (127) hide show
  1. package/dist/{Box-erN4AuKs.js → Box-C0qXdJzV.js} +8 -8
  2. package/dist/Box-DjRIKMD0.cjs +1 -0
  3. package/dist/ButtonBase-BvllyU4w.cjs +75 -0
  4. package/dist/ButtonBase-C14ZYs6z.js +833 -0
  5. package/dist/CircularProgress-Bf46-VRs.js +217 -0
  6. package/dist/CircularProgress-DjSMBYnK.cjs +28 -0
  7. package/dist/{DefaultButton-DbpZOb47.js → DefaultButton-B-2UppUm.js} +146 -355
  8. package/dist/DefaultButton-DPZOltN5.cjs +1 -0
  9. package/dist/{IconButton-DE5JOshS.js → IconButton-1URziYlU.js} +8 -8
  10. package/dist/IconButton-X6l-U-im.cjs +2 -0
  11. package/dist/InputBase-BrkAyp4z.cjs +4 -0
  12. package/dist/{InputBase-C8AzQJJ9.js → InputBase-D_wYPpmB.js} +173 -160
  13. package/dist/{LocalizationProvider-Cov62Xe0.js → LocalizationProvider-BD64DNxF.js} +3 -4
  14. package/dist/LocalizationProvider-DqwEOZOd.cjs +5 -0
  15. package/dist/SearchInput-CMLDZJ8k.cjs +1 -0
  16. package/dist/SearchInput-D2HnePqk.js +177 -0
  17. package/dist/Tabs-B9BPJaDx.js +1090 -0
  18. package/dist/Tabs-Dx8YJT4c.cjs +4 -0
  19. package/dist/TextInput-BO1q4hT2.cjs +12 -0
  20. package/dist/{TextInput-DmMk4i-V.js → TextInput-DiA3Q5CJ.js} +1353 -1594
  21. package/dist/TimePicker-CBI_tdzH.js +19695 -0
  22. package/dist/TimePicker-CnW0kylk.cjs +69 -0
  23. package/dist/Typography-CRt6WSxo.js +204 -0
  24. package/dist/Typography-DsPQABF2.cjs +1 -0
  25. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  26. package/dist/components/Dropzone/Dropzone.es.js +11 -12
  27. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  28. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
  29. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  30. package/dist/components/LocalizationProvider/index.es.js +1 -1
  31. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  32. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
  33. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  34. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
  35. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  36. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  37. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  38. package/dist/components/buttons/IconButton.stories.es.js +9 -10
  39. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  40. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
  41. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  42. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  43. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  44. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  45. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  46. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  47. package/dist/components/buttons/index.cjs.js +1 -1
  48. package/dist/components/buttons/index.es.js +1 -1
  49. package/dist/components/index.cjs.js +1 -1
  50. package/dist/components/index.es.js +91 -90
  51. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  52. package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -174
  53. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  54. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
  55. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  56. package/dist/components/inputs/SearchInput/index.es.js +2 -2
  57. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  58. package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
  59. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  60. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  61. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  62. package/dist/components/inputs/TextInput/index.es.js +1 -1
  63. package/dist/components/inputs/index.cjs.js +1 -1
  64. package/dist/components/inputs/index.es.js +4 -4
  65. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  66. package/dist/components/lists/FileList/FileList.es.js +2 -2
  67. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  68. package/dist/components/lists/FileList/FileListItem.es.js +39 -7
  69. package/dist/components/lists/FileList/index.cjs.js +1 -1
  70. package/dist/components/lists/FileList/index.es.js +4 -4
  71. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  72. package/dist/components/lists/TabList.stories.es.js +16 -18
  73. package/dist/components/lists/index.cjs.js +1 -1
  74. package/dist/components/lists/index.es.js +4 -4
  75. package/dist/createSvgIcon-BOQCM03y.cjs +2 -0
  76. package/dist/createSvgIcon-C2VxBqzG.cjs +1 -0
  77. package/dist/{createSvgIcon-DeRU4e-L.js → createSvgIcon-Dspfpz-l.js} +18 -20
  78. package/dist/createSvgIcon-xJp3_zwo.js +84 -0
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.es.js +94 -93
  81. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  82. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  83. package/dist/refType-5EEBZL5_.cjs +1 -0
  84. package/dist/{refType-CoCfCK--.js → refType-BBFUe6fu.js} +1 -1
  85. package/dist/styled-D8lXwcQy.js +423 -0
  86. package/dist/styled-DFoJwRxe.cjs +24 -0
  87. package/dist/useSlotProps-BoMYRJkF.js +72 -0
  88. package/dist/useSlotProps-EKKRQjEn.cjs +1 -0
  89. package/dist/useTheme-BkW5nNsn.cjs +1 -0
  90. package/dist/useTheme-Bo1inEHN.js +9 -0
  91. package/dist/useThemeProps-BRWSvuZw.cjs +42 -0
  92. package/dist/useThemeProps-CZzcR_pm.js +2288 -0
  93. package/package.json +5 -2
  94. package/dist/Box-CjHm9A9L.cjs +0 -1
  95. package/dist/ButtonBase-BybMkBUd.cjs +0 -75
  96. package/dist/ButtonBase-CGcs8Gbj.cjs +0 -75
  97. package/dist/ButtonBase-V1pwsMMs.js +0 -649
  98. package/dist/ButtonBase-aujiNoUb.js +0 -649
  99. package/dist/DefaultButton-Cg4tPCgf.cjs +0 -28
  100. package/dist/FileListItem-ChKTjDnV.js +0 -254
  101. package/dist/FileListItem-CjFIZgYg.cjs +0 -28
  102. package/dist/IconButton-CHXclgOn.cjs +0 -2
  103. package/dist/InputBase-D6eXzDaz.cjs +0 -4
  104. package/dist/LocalizationProvider-42pD7VmS.cjs +0 -5
  105. package/dist/Tabs-DiWeNGD4.js +0 -1167
  106. package/dist/Tabs-DoxP7EMA.cjs +0 -4
  107. package/dist/TextInput-BbSyyuvO.cjs +0 -12
  108. package/dist/TimePicker-B5MjZCK0.cjs +0 -89
  109. package/dist/TimePicker-BmxG3a2D.js +0 -28354
  110. package/dist/TransitionGroup-COuDopJ-.js +0 -188
  111. package/dist/TransitionGroup-X90dkobW.cjs +0 -1
  112. package/dist/Typography-B90UzlQW.js +0 -179
  113. package/dist/Typography-KFjBz5Hm.cjs +0 -1
  114. package/dist/clamp-0LjYbpE_.cjs +0 -23
  115. package/dist/clamp-BGJvJ0FN.js +0 -1641
  116. package/dist/createSvgIcon-BSYat4nx.js +0 -74
  117. package/dist/createSvgIcon-BqRWmIPG.cjs +0 -1
  118. package/dist/createSvgIcon-doNQ5emq.cjs +0 -2
  119. package/dist/refType-Bt58K9Sk.cjs +0 -1
  120. package/dist/styled-BU8dAebc.js +0 -1751
  121. package/dist/styled-DGjsLYEN.cjs +0 -45
  122. package/dist/styled-DP6LeBLQ.js +0 -261
  123. package/dist/styled-Dkd1VGM-.cjs +0 -1
  124. package/dist/useTheme-C132tQV-.js +0 -10
  125. package/dist/useTheme-CliHZTkE.cjs +0 -1
  126. package/dist/useThemeProps-63SNG58r.js +0 -753
  127. package/dist/useThemeProps-CVatCXfo.cjs +0 -20
@@ -1,38 +1,36 @@
1
- import { jsx as b, jsxs as N } from "react/jsx-runtime";
2
- import * as C from "react";
3
- import V from "./components/buttons/DefaultButton/DefaultButtonIcon.es.js";
4
- import { g as M, c as T, b as S, s as eo } from "./styled-BU8dAebc.js";
5
- import { g as W, c as e, _ as a, r as K, a as _, P as i } from "./clamp-BGJvJ0FN.js";
6
- import { s as I, r as lo } from "./styled-DP6LeBLQ.js";
7
- import { a as R, u as D } from "./useThemeProps-63SNG58r.js";
8
- import { B as co } from "./ButtonBase-aujiNoUb.js";
9
- import { u as uo } from "./useId-BW-oWmul.js";
10
- import { c as A } from "./refType-CoCfCK--.js";
11
- import { keyframes as Y, css as Z } from "@emotion/react";
12
- import { u as po } from "./useTheme-C132tQV-.js";
13
- function go(o) {
14
- return W("MuiButton", o);
1
+ import { jsx as b, jsxs as O } from "react/jsx-runtime";
2
+ import * as p from "react";
3
+ import N from "./components/buttons/DefaultButton/DefaultButtonIcon.es.js";
4
+ import { g as W, s as f, r as Y, c as k, a as M } from "./styled-D8lXwcQy.js";
5
+ import { g as V, c as l, _ as a, a as E, r as _, b as j, e as D, P as i } from "./useThemeProps-CZzcR_pm.js";
6
+ import { B as Z } from "./ButtonBase-C14ZYs6z.js";
7
+ import { u as w } from "./useId-BW-oWmul.js";
8
+ import { c as oo } from "./refType-BBFUe6fu.js";
9
+ import { C as no } from "./CircularProgress-Bf46-VRs.js";
10
+ import { u as io } from "./useTheme-Bo1inEHN.js";
11
+ function to(o) {
12
+ return V("MuiButton", o);
15
13
  }
16
- const vo = M("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", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), E = vo, q = /* @__PURE__ */ C.createContext({});
17
- process.env.NODE_ENV !== "production" && (q.displayName = "ButtonGroupContext");
18
- const J = q, Q = /* @__PURE__ */ C.createContext(void 0);
19
- process.env.NODE_ENV !== "production" && (Q.displayName = "ButtonGroupButtonContext");
20
- const fo = Q, bo = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], xo = (o) => {
14
+ const ao = W("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", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), R = ao, F = /* @__PURE__ */ p.createContext({});
15
+ process.env.NODE_ENV !== "production" && (F.displayName = "ButtonGroupContext");
16
+ const G = F, U = /* @__PURE__ */ p.createContext(void 0);
17
+ process.env.NODE_ENV !== "production" && (U.displayName = "ButtonGroupButtonContext");
18
+ const ro = U, so = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], lo = (o) => {
21
19
  const {
22
20
  color: n,
23
21
  disableElevation: t,
24
- fullWidth: r,
25
- size: s,
26
- variant: l,
22
+ fullWidth: s,
23
+ size: r,
24
+ variant: e,
27
25
  classes: d
28
- } = o, u = {
29
- root: ["root", l, `${l}${e(n)}`, `size${e(s)}`, `${l}Size${e(s)}`, n === "inherit" && "colorInherit", t && "disableElevation", r && "fullWidth"],
26
+ } = o, g = {
27
+ root: ["root", e, `${e}${l(n)}`, `size${l(r)}`, `${e}Size${l(r)}`, n === "inherit" && "colorInherit", t && "disableElevation", s && "fullWidth"],
30
28
  label: ["label"],
31
- startIcon: ["startIcon", `iconSize${e(s)}`],
32
- endIcon: ["endIcon", `iconSize${e(s)}`]
33
- }, $ = S(u, go, d);
34
- return a({}, d, $);
35
- }, X = (o) => a({}, o.size === "small" && {
29
+ startIcon: ["startIcon", `iconSize${l(r)}`],
30
+ endIcon: ["endIcon", `iconSize${l(r)}`]
31
+ }, x = M(g, to, d);
32
+ return a({}, d, x);
33
+ }, S = (o) => a({}, o.size === "small" && {
36
34
  "& > *:nth-of-type(1)": {
37
35
  fontSize: 18
38
36
  }
@@ -44,22 +42,22 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
44
42
  "& > *:nth-of-type(1)": {
45
43
  fontSize: 22
46
44
  }
47
- }), yo = I(co, {
48
- shouldForwardProp: (o) => lo(o) || o === "classes",
45
+ }), eo = f(Z, {
46
+ shouldForwardProp: (o) => Y(o) || o === "classes",
49
47
  name: "MuiButton",
50
48
  slot: "Root",
51
49
  overridesResolver: (o, n) => {
52
50
  const {
53
51
  ownerState: t
54
52
  } = o;
55
- return [n.root, n[t.variant], n[`${t.variant}${e(t.color)}`], n[`size${e(t.size)}`], n[`${t.variant}Size${e(t.size)}`], t.color === "inherit" && n.colorInherit, t.disableElevation && n.disableElevation, t.fullWidth && n.fullWidth];
53
+ return [n.root, n[t.variant], n[`${t.variant}${l(t.color)}`], n[`size${l(t.size)}`], n[`${t.variant}Size${l(t.size)}`], t.color === "inherit" && n.colorInherit, t.disableElevation && n.disableElevation, t.fullWidth && n.fullWidth];
56
54
  }
57
55
  })(({
58
56
  theme: o,
59
57
  ownerState: n
60
58
  }) => {
61
- var t, r;
62
- const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], l = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
59
+ var t, s;
60
+ const r = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
63
61
  return a({}, o.typography.button, {
64
62
  minWidth: 64,
65
63
  padding: "6px 16px",
@@ -69,26 +67,26 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
69
67
  }),
70
68
  "&:hover": a({
71
69
  textDecoration: "none",
72
- backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : R(o.palette.text.primary, o.palette.action.hoverOpacity),
70
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette.text.primary, o.palette.action.hoverOpacity),
73
71
  // Reset on touch devices, it doesn't add specificity
74
72
  "@media (hover: none)": {
75
73
  backgroundColor: "transparent"
76
74
  }
77
75
  }, n.variant === "text" && n.color !== "inherit" && {
78
- backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : R(o.palette[n.color].main, o.palette.action.hoverOpacity),
76
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette[n.color].main, o.palette.action.hoverOpacity),
79
77
  // Reset on touch devices, it doesn't add specificity
80
78
  "@media (hover: none)": {
81
79
  backgroundColor: "transparent"
82
80
  }
83
81
  }, n.variant === "outlined" && n.color !== "inherit" && {
84
82
  border: `1px solid ${(o.vars || o).palette[n.color].main}`,
85
- backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : R(o.palette[n.color].main, o.palette.action.hoverOpacity),
83
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette[n.color].main, o.palette.action.hoverOpacity),
86
84
  // Reset on touch devices, it doesn't add specificity
87
85
  "@media (hover: none)": {
88
86
  backgroundColor: "transparent"
89
87
  }
90
88
  }, n.variant === "contained" && {
91
- backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : l,
89
+ backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
92
90
  boxShadow: (o.vars || o).shadows[4],
93
91
  // Reset on touch devices, it doesn't add specificity
94
92
  "@media (hover: none)": {
@@ -105,10 +103,10 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
105
103
  "&:active": a({}, n.variant === "contained" && {
106
104
  boxShadow: (o.vars || o).shadows[8]
107
105
  }),
108
- [`&.${E.focusVisible}`]: a({}, n.variant === "contained" && {
106
+ [`&.${R.focusVisible}`]: a({}, n.variant === "contained" && {
109
107
  boxShadow: (o.vars || o).shadows[6]
110
108
  }),
111
- [`&.${E.disabled}`]: a({
109
+ [`&.${R.disabled}`]: a({
112
110
  color: (o.vars || o).palette.action.disabled
113
111
  }, n.variant === "outlined" && {
114
112
  border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
@@ -126,13 +124,13 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
126
124
  border: "1px solid currentColor"
127
125
  }, n.variant === "outlined" && n.color !== "inherit" && {
128
126
  color: (o.vars || o).palette[n.color].main,
129
- border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${R(o.palette[n.color].main, 0.5)}`
127
+ border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${E(o.palette[n.color].main, 0.5)}`
130
128
  }, n.variant === "contained" && {
131
129
  color: o.vars ? (
132
130
  // this is safe because grey does not change between default light/dark mode
133
131
  o.vars.palette.text.primary
134
- ) : (t = (r = o.palette).getContrastText) == null ? void 0 : t.call(r, o.palette.grey[300]),
135
- backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
132
+ ) : (t = (s = o.palette).getContrastText) == null ? void 0 : t.call(s, o.palette.grey[300]),
133
+ backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : r,
136
134
  boxShadow: (o.vars || o).shadows[2]
137
135
  }, n.variant === "contained" && n.color !== "inherit" && {
138
136
  color: (o.vars || o).palette[n.color].contrastText,
@@ -168,23 +166,23 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
168
166
  "&:hover": {
169
167
  boxShadow: "none"
170
168
  },
171
- [`&.${E.focusVisible}`]: {
169
+ [`&.${R.focusVisible}`]: {
172
170
  boxShadow: "none"
173
171
  },
174
172
  "&:active": {
175
173
  boxShadow: "none"
176
174
  },
177
- [`&.${E.disabled}`]: {
175
+ [`&.${R.disabled}`]: {
178
176
  boxShadow: "none"
179
177
  }
180
- }), ho = I("span", {
178
+ }), co = f("span", {
181
179
  name: "MuiButton",
182
180
  slot: "StartIcon",
183
181
  overridesResolver: (o, n) => {
184
182
  const {
185
183
  ownerState: t
186
184
  } = o;
187
- return [n.startIcon, n[`iconSize${e(t.size)}`]];
185
+ return [n.startIcon, n[`iconSize${l(t.size)}`]];
188
186
  }
189
187
  })(({
190
188
  ownerState: o
@@ -194,14 +192,14 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
194
192
  marginLeft: -4
195
193
  }, o.size === "small" && {
196
194
  marginLeft: -2
197
- }, X(o))), mo = I("span", {
195
+ }, S(o))), uo = f("span", {
198
196
  name: "MuiButton",
199
197
  slot: "EndIcon",
200
198
  overridesResolver: (o, n) => {
201
199
  const {
202
200
  ownerState: t
203
201
  } = o;
204
- return [n.endIcon, n[`iconSize${e(t.size)}`]];
202
+ return [n.endIcon, n[`iconSize${l(t.size)}`]];
205
203
  }
206
204
  })(({
207
205
  ownerState: o
@@ -211,59 +209,59 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
211
209
  marginLeft: 8
212
210
  }, o.size === "small" && {
213
211
  marginRight: -2
214
- }, X(o))), w = /* @__PURE__ */ C.forwardRef(function(n, t) {
215
- const r = C.useContext(J), s = C.useContext(fo), l = K(r, n), d = D({
216
- props: l,
212
+ }, S(o))), H = /* @__PURE__ */ p.forwardRef(function(n, t) {
213
+ const s = p.useContext(G), r = p.useContext(ro), e = _(s, n), d = j({
214
+ props: e,
217
215
  name: "MuiButton"
218
216
  }), {
219
- children: u,
220
- color: $ = "primary",
221
- component: c = "button",
222
- className: x,
217
+ children: g,
218
+ color: x = "primary",
219
+ component: v = "button",
220
+ className: h,
223
221
  disabled: z = !1,
224
- disableElevation: B = !1,
225
- disableFocusRipple: g = !1,
226
- endIcon: v,
227
- focusVisibleClassName: y,
228
- fullWidth: p = !1,
222
+ disableElevation: $ = !1,
223
+ disableFocusRipple: B = !1,
224
+ endIcon: I,
225
+ focusVisibleClassName: m,
226
+ fullWidth: u = !1,
229
227
  size: P = "medium",
230
- startIcon: h,
231
- type: j,
232
- variant: io = "text"
233
- } = d, to = _(d, bo), L = a({}, d, {
234
- color: $,
235
- component: c,
228
+ startIcon: y,
229
+ type: T,
230
+ variant: q = "text"
231
+ } = d, J = D(d, so), L = a({}, d, {
232
+ color: x,
233
+ component: v,
236
234
  disabled: z,
237
- disableElevation: B,
238
- disableFocusRipple: g,
239
- fullWidth: p,
235
+ disableElevation: $,
236
+ disableFocusRipple: B,
237
+ fullWidth: u,
240
238
  size: P,
241
- type: j,
242
- variant: io
243
- }), k = xo(L), ao = h && /* @__PURE__ */ b(ho, {
244
- className: k.startIcon,
239
+ type: T,
240
+ variant: q
241
+ }), C = lo(L), K = y && /* @__PURE__ */ b(co, {
242
+ className: C.startIcon,
245
243
  ownerState: L,
246
- children: h
247
- }), ro = v && /* @__PURE__ */ b(mo, {
248
- className: k.endIcon,
244
+ children: y
245
+ }), Q = I && /* @__PURE__ */ b(uo, {
246
+ className: C.endIcon,
249
247
  ownerState: L,
250
- children: v
251
- }), so = s || "";
252
- return /* @__PURE__ */ N(yo, a({
248
+ children: I
249
+ }), X = r || "";
250
+ return /* @__PURE__ */ O(eo, a({
253
251
  ownerState: L,
254
- className: T(r.className, k.root, x, so),
255
- component: c,
252
+ className: k(s.className, C.root, h, X),
253
+ component: v,
256
254
  disabled: z,
257
- focusRipple: !g,
258
- focusVisibleClassName: T(k.focusVisible, y),
255
+ focusRipple: !B,
256
+ focusVisibleClassName: k(C.focusVisible, m),
259
257
  ref: t,
260
- type: j
261
- }, to, {
262
- classes: k,
263
- children: [ao, u, ro]
258
+ type: T
259
+ }, J, {
260
+ classes: C,
261
+ children: [K, g, Q]
264
262
  }));
265
263
  });
266
- process.env.NODE_ENV !== "production" && (w.propTypes = {
264
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
267
265
  // ┌────────────────────────────── Warning ──────────────────────────────┐
268
266
  // │ These PropTypes are generated from the TypeScript type definitions. │
269
267
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -357,243 +355,36 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
357
355
  */
358
356
  variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
359
357
  });
360
- const Co = w;
361
- function Io(o) {
362
- return W("MuiCircularProgress", o);
363
- }
364
- M("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
365
- const $o = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
366
- let O = (o) => o, U, F, G, H;
367
- const m = 44, zo = Y(U || (U = O`
368
- 0% {
369
- transform: rotate(0deg);
370
- }
371
-
372
- 100% {
373
- transform: rotate(360deg);
374
- }
375
- `)), Po = Y(F || (F = O`
376
- 0% {
377
- stroke-dasharray: 1px, 200px;
378
- stroke-dashoffset: 0;
379
- }
380
-
381
- 50% {
382
- stroke-dasharray: 100px, 200px;
383
- stroke-dashoffset: -15px;
384
- }
385
-
386
- 100% {
387
- stroke-dasharray: 100px, 200px;
388
- stroke-dashoffset: -125px;
389
- }
390
- `)), Bo = (o) => {
391
- const {
392
- classes: n,
393
- variant: t,
394
- color: r,
395
- disableShrink: s
396
- } = o, l = {
397
- root: ["root", t, `color${e(r)}`],
398
- svg: ["svg"],
399
- circle: ["circle", `circle${e(t)}`, s && "circleDisableShrink"]
400
- };
401
- return S(l, Io, n);
402
- }, ko = I("span", {
403
- name: "MuiCircularProgress",
404
- slot: "Root",
405
- overridesResolver: (o, n) => {
406
- const {
407
- ownerState: t
408
- } = o;
409
- return [n.root, n[t.variant], n[`color${e(t.color)}`]];
410
- }
411
- })(({
412
- ownerState: o,
413
- theme: n
414
- }) => a({
415
- display: "inline-block"
416
- }, o.variant === "determinate" && {
417
- transition: n.transitions.create("transform")
418
- }, o.color !== "inherit" && {
419
- color: (n.vars || n).palette[o.color].main
420
- }), ({
421
- ownerState: o
422
- }) => o.variant === "indeterminate" && Z(G || (G = O`
423
- animation: ${0} 1.4s linear infinite;
424
- `), zo)), Lo = I("svg", {
425
- name: "MuiCircularProgress",
426
- slot: "Svg",
427
- overridesResolver: (o, n) => n.svg
428
- })({
429
- display: "block"
430
- // Keeps the progress centered
431
- }), Ro = I("circle", {
432
- name: "MuiCircularProgress",
433
- slot: "Circle",
434
- overridesResolver: (o, n) => {
435
- const {
436
- ownerState: t
437
- } = o;
438
- return [n.circle, n[`circle${e(t.variant)}`], t.disableShrink && n.circleDisableShrink];
439
- }
440
- })(({
441
- ownerState: o,
442
- theme: n
443
- }) => a({
444
- stroke: "currentColor"
445
- }, o.variant === "determinate" && {
446
- transition: n.transitions.create("stroke-dashoffset")
447
- }, o.variant === "indeterminate" && {
448
- // Some default value that looks fine waiting for the animation to kicks in.
449
- strokeDasharray: "80px, 200px",
450
- strokeDashoffset: 0
451
- // Add the unit to fix a Edge 16 and below bug.
452
- }), ({
453
- ownerState: o
454
- }) => o.variant === "indeterminate" && !o.disableShrink && Z(H || (H = O`
455
- animation: ${0} 1.4s ease-in-out infinite;
456
- `), Po)), oo = /* @__PURE__ */ C.forwardRef(function(n, t) {
457
- const r = D({
458
- props: n,
459
- name: "MuiCircularProgress"
460
- }), {
461
- className: s,
462
- color: l = "primary",
463
- disableShrink: d = !1,
464
- size: u = 40,
465
- style: $,
466
- thickness: c = 3.6,
467
- value: x = 0,
468
- variant: z = "indeterminate"
469
- } = r, B = _(r, $o), g = a({}, r, {
470
- color: l,
471
- disableShrink: d,
472
- size: u,
473
- thickness: c,
474
- value: x,
475
- variant: z
476
- }), v = Bo(g), y = {}, p = {}, P = {};
477
- if (z === "determinate") {
478
- const h = 2 * Math.PI * ((m - c) / 2);
479
- y.strokeDasharray = h.toFixed(3), P["aria-valuenow"] = Math.round(x), y.strokeDashoffset = `${((100 - x) / 100 * h).toFixed(3)}px`, p.transform = "rotate(-90deg)";
480
- }
481
- return /* @__PURE__ */ b(ko, a({
482
- className: T(v.root, s),
483
- style: a({
484
- width: u,
485
- height: u
486
- }, p, $),
487
- ownerState: g,
488
- ref: t,
489
- role: "progressbar"
490
- }, P, B, {
491
- children: /* @__PURE__ */ b(Lo, {
492
- className: v.svg,
493
- ownerState: g,
494
- viewBox: `${m / 2} ${m / 2} ${m} ${m}`,
495
- children: /* @__PURE__ */ b(Ro, {
496
- className: v.circle,
497
- style: y,
498
- ownerState: g,
499
- cx: m,
500
- cy: m,
501
- r: (m - c) / 2,
502
- fill: "none",
503
- strokeWidth: c
504
- })
505
- })
506
- }));
507
- });
508
- process.env.NODE_ENV !== "production" && (oo.propTypes = {
509
- // ┌────────────────────────────── Warning ──────────────────────────────┐
510
- // │ These PropTypes are generated from the TypeScript type definitions. │
511
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
512
- // └─────────────────────────────────────────────────────────────────────┘
513
- /**
514
- * Override or extend the styles applied to the component.
515
- */
516
- classes: i.object,
517
- /**
518
- * @ignore
519
- */
520
- className: i.string,
521
- /**
522
- * The color of the component.
523
- * It supports both default and custom theme colors, which can be added as shown in the
524
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
525
- * @default 'primary'
526
- */
527
- color: i.oneOfType([i.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), i.string]),
528
- /**
529
- * If `true`, the shrink animation is disabled.
530
- * This only works if variant is `indeterminate`.
531
- * @default false
532
- */
533
- disableShrink: A(i.bool, (o) => o.disableShrink && o.variant && o.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
534
- /**
535
- * The size of the component.
536
- * If using a number, the pixel unit is assumed.
537
- * If using a string, you need to provide the CSS unit, e.g. '3rem'.
538
- * @default 40
539
- */
540
- size: i.oneOfType([i.number, i.string]),
541
- /**
542
- * @ignore
543
- */
544
- style: i.object,
545
- /**
546
- * The system prop that allows defining system overrides as well as additional CSS styles.
547
- */
548
- sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
549
- /**
550
- * The thickness of the circle.
551
- * @default 3.6
552
- */
553
- thickness: i.number,
554
- /**
555
- * The value of the progress indicator for the determinate variant.
556
- * Value between 0 and 100.
557
- * @default 0
558
- */
559
- value: i.number,
560
- /**
561
- * The variant to use.
562
- * Use indeterminate when there is no progress value.
563
- * @default 'indeterminate'
564
- */
565
- variant: i.oneOf(["determinate", "indeterminate"])
566
- });
567
- const Eo = oo;
568
- function Oo(o) {
569
- return W("MuiLoadingButton", o);
358
+ const po = H;
359
+ function go(o) {
360
+ return V("MuiLoadingButton", o);
570
361
  }
571
- const To = M("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), f = To, No = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], Mo = (o) => {
362
+ const vo = W("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), c = vo, bo = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], fo = (o) => {
572
363
  const {
573
364
  loading: n,
574
365
  loadingPosition: t,
575
- classes: r
576
- } = o, s = {
366
+ classes: s
367
+ } = o, r = {
577
368
  root: ["root", n && "loading"],
578
- startIcon: [n && `startIconLoading${e(t)}`],
579
- endIcon: [n && `endIconLoading${e(t)}`],
580
- loadingIndicator: ["loadingIndicator", n && `loadingIndicator${e(t)}`]
581
- }, l = S(s, Oo, r);
582
- return a({}, r, l);
583
- }, So = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", Wo = I(Co, {
584
- shouldForwardProp: (o) => So(o) || o === "classes",
369
+ startIcon: [n && `startIconLoading${l(t)}`],
370
+ endIcon: [n && `endIconLoading${l(t)}`],
371
+ loadingIndicator: ["loadingIndicator", n && `loadingIndicator${l(t)}`]
372
+ }, e = M(r, go, s);
373
+ return a({}, s, e);
374
+ }, xo = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", Io = f(po, {
375
+ shouldForwardProp: (o) => xo(o) || o === "classes",
585
376
  name: "MuiLoadingButton",
586
377
  slot: "Root",
587
378
  overridesResolver: (o, n) => [n.root, n.startIconLoadingStart && {
588
- [`& .${f.startIconLoadingStart}`]: n.startIconLoadingStart
379
+ [`& .${c.startIconLoadingStart}`]: n.startIconLoadingStart
589
380
  }, n.endIconLoadingEnd && {
590
- [`& .${f.endIconLoadingEnd}`]: n.endIconLoadingEnd
381
+ [`& .${c.endIconLoadingEnd}`]: n.endIconLoadingEnd
591
382
  }]
592
383
  })(({
593
384
  ownerState: o,
594
385
  theme: n
595
386
  }) => a({
596
- [`& .${f.startIconLoadingStart}, & .${f.endIconLoadingEnd}`]: {
387
+ [`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
597
388
  transition: n.transitions.create(["opacity"], {
598
389
  duration: n.transitions.duration.short
599
390
  }),
@@ -603,11 +394,11 @@ const To = M("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadin
603
394
  transition: n.transitions.create(["background-color", "box-shadow", "border-color"], {
604
395
  duration: n.transitions.duration.short
605
396
  }),
606
- [`&.${f.loading}`]: {
397
+ [`&.${c.loading}`]: {
607
398
  color: "transparent"
608
399
  }
609
400
  }, o.loadingPosition === "start" && o.fullWidth && {
610
- [`& .${f.startIconLoadingStart}, & .${f.endIconLoadingEnd}`]: {
401
+ [`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
611
402
  transition: n.transitions.create(["opacity"], {
612
403
  duration: n.transitions.duration.short
613
404
  }),
@@ -615,21 +406,21 @@ const To = M("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadin
615
406
  marginRight: -8
616
407
  }
617
408
  }, o.loadingPosition === "end" && o.fullWidth && {
618
- [`& .${f.startIconLoadingStart}, & .${f.endIconLoadingEnd}`]: {
409
+ [`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
619
410
  transition: n.transitions.create(["opacity"], {
620
411
  duration: n.transitions.duration.short
621
412
  }),
622
413
  opacity: 0,
623
414
  marginLeft: -8
624
415
  }
625
- })), _o = I("span", {
416
+ })), yo = f("span", {
626
417
  name: "MuiLoadingButton",
627
418
  slot: "LoadingIndicator",
628
419
  overridesResolver: (o, n) => {
629
420
  const {
630
421
  ownerState: t
631
422
  } = o;
632
- return [n.loadingIndicator, n[`loadingIndicator${e(t.loadingPosition)}`]];
423
+ return [n.loadingIndicator, n[`loadingIndicator${l(t.loadingPosition)}`]];
633
424
  }
634
425
  })(({
635
426
  theme: o,
@@ -656,45 +447,45 @@ const To = M("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadin
656
447
  }, n.loadingPosition === "end" && n.fullWidth && {
657
448
  position: "relative",
658
449
  right: -10
659
- })), no = /* @__PURE__ */ C.forwardRef(function(n, t) {
660
- const r = C.useContext(J), s = K(r, n), l = D({
661
- props: s,
450
+ })), A = /* @__PURE__ */ p.forwardRef(function(n, t) {
451
+ const s = p.useContext(G), r = _(s, n), e = j({
452
+ props: r,
662
453
  name: "MuiLoadingButton"
663
454
  }), {
664
455
  children: d,
665
- disabled: u = !1,
666
- id: $,
667
- loading: c = !1,
668
- loadingIndicator: x,
456
+ disabled: g = !1,
457
+ id: x,
458
+ loading: v = !1,
459
+ loadingIndicator: h,
669
460
  loadingPosition: z = "center",
670
- variant: B = "text"
671
- } = l, g = _(l, No), v = uo($), y = x ?? /* @__PURE__ */ b(Eo, {
672
- "aria-labelledby": v,
461
+ variant: $ = "text"
462
+ } = e, B = D(e, bo), I = w(x), m = h ?? /* @__PURE__ */ b(no, {
463
+ "aria-labelledby": I,
673
464
  color: "inherit",
674
465
  size: 16
675
- }), p = a({}, l, {
676
- disabled: u,
677
- loading: c,
678
- loadingIndicator: y,
466
+ }), u = a({}, e, {
467
+ disabled: g,
468
+ loading: v,
469
+ loadingIndicator: m,
679
470
  loadingPosition: z,
680
- variant: B
681
- }), P = Mo(p), h = c ? /* @__PURE__ */ b(_o, {
471
+ variant: $
472
+ }), P = fo(u), y = v ? /* @__PURE__ */ b(yo, {
682
473
  className: P.loadingIndicator,
683
- ownerState: p,
684
- children: y
474
+ ownerState: u,
475
+ children: m
685
476
  }) : null;
686
- return /* @__PURE__ */ N(Wo, a({
687
- disabled: u || c,
688
- id: v,
477
+ return /* @__PURE__ */ O(Io, a({
478
+ disabled: g || v,
479
+ id: I,
689
480
  ref: t
690
- }, g, {
691
- variant: B,
481
+ }, B, {
482
+ variant: $,
692
483
  classes: P,
693
- ownerState: p,
694
- children: [p.loadingPosition === "end" ? d : h, p.loadingPosition === "end" ? h : d]
484
+ ownerState: u,
485
+ children: [u.loadingPosition === "end" ? d : y, u.loadingPosition === "end" ? y : d]
695
486
  }));
696
487
  });
697
- process.env.NODE_ENV !== "production" && (no.propTypes = {
488
+ process.env.NODE_ENV !== "production" && (A.propTypes = {
698
489
  // ┌────────────────────────────── Warning ──────────────────────────────┐
699
490
  // │ These PropTypes are generated from the TypeScript type definitions. │
700
491
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -732,7 +523,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
732
523
  * The loading indicator can be positioned on the start, end, or the center of the button.
733
524
  * @default 'center'
734
525
  */
735
- loadingPosition: A(i.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
526
+ loadingPosition: oo(i.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
736
527
  /**
737
528
  * The system prop that allows defining system overrides as well as additional CSS styles.
738
529
  */
@@ -743,7 +534,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
743
534
  */
744
535
  variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
745
536
  });
746
- const Do = no, jo = eo(Do, {
537
+ const Co = A, ho = f(Co, {
747
538
  shouldForwardProp: (o) => o !== "contentColor" && o !== "hoverColor"
748
539
  })(({ contentColor: o, hoverColor: n, theme: t }) => ({
749
540
  justifyContent: "center",
@@ -763,28 +554,28 @@ const Do = no, jo = eo(Do, {
763
554
  borderColor: n,
764
555
  borderWidth: 2
765
556
  }
766
- })), Qo = ({
557
+ })), To = ({
767
558
  icon: o,
768
559
  text: n,
769
560
  ...t
770
561
  }) => {
771
- const r = po(), s = t.contentColor ?? r.palette.primary.main;
772
- return /* @__PURE__ */ N(
773
- jo,
562
+ const s = io(), r = t.contentColor ?? s.palette.primary.main;
563
+ return /* @__PURE__ */ O(
564
+ ho,
774
565
  {
775
566
  ...t,
776
567
  variant: "outlined",
777
- contentColor: s,
778
- hoverColor: t.hoverColor ?? s,
568
+ contentColor: r,
569
+ hoverColor: t.hoverColor ?? r,
779
570
  children: [
780
- (o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */ b(V, { ...o }) : null,
571
+ (o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */ b(N, { ...o }) : null,
781
572
  n,
782
- (o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */ b(V, { ...o }) : null
573
+ (o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */ b(N, { ...o }) : null
783
574
  ]
784
575
  }
785
576
  );
786
577
  };
787
578
  export {
788
- Co as B,
789
- Qo as D
579
+ po as B,
580
+ To as D
790
581
  };