jcicl 0.0.0
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.
- package/.chunks/AppBar.js +359 -0
- package/.chunks/AppContainer.js +71 -0
- package/.chunks/AppHeader.js +31 -0
- package/.chunks/Avatar.js +38 -0
- package/.chunks/AvatarWithImage.js +36 -0
- package/.chunks/BasicPage.js +31 -0
- package/.chunks/Button.js +486 -0
- package/.chunks/ButtonBase.js +874 -0
- package/.chunks/CompactNav.js +70 -0
- package/.chunks/Divider.js +311 -0
- package/.chunks/Flex.js +21 -0
- package/.chunks/Grid.js +18 -0
- package/.chunks/Input.js +4392 -0
- package/.chunks/Menu.js +3160 -0
- package/.chunks/Nav.js +2138 -0
- package/.chunks/TransitionGroupContext.js +342 -0
- package/.chunks/createSimplePaletteValueFilter.js +17 -0
- package/.chunks/createSvgIcon.js +249 -0
- package/.chunks/emotion-styled.browser.esm.js +1032 -0
- package/.chunks/jocologo.js +4 -0
- package/.chunks/memoTheme.js +15 -0
- package/.chunks/theme.js +3314 -0
- package/base/Avatar/Avatar/index.d.ts +1 -0
- package/base/Avatar/Avatar/index.js +4 -0
- package/base/Avatar/AvatarWithImage/index.d.ts +1 -0
- package/base/Avatar/AvatarWithImage/index.js +4 -0
- package/base/Avatar/index.d.ts +2 -0
- package/base/Avatar/index.js +6 -0
- package/base/Button/index.d.ts +1 -0
- package/base/Button/index.js +4 -0
- package/base/Divider/index.d.ts +1 -0
- package/base/Divider/index.js +4 -0
- package/base/Flex/index.d.ts +1 -0
- package/base/Flex/index.js +4 -0
- package/base/Grid/index.d.ts +1 -0
- package/base/Grid/index.js +4 -0
- package/base/Input/index.d.ts +1 -0
- package/base/Input/index.js +4 -0
- package/base/index.d.ts +7 -0
- package/base/index.js +16 -0
- package/index.d.ts +3 -0
- package/index.js +22 -0
- package/package.json +82 -0
- package/supercomposite/AppBar/index.d.ts +1 -0
- package/supercomposite/AppBar/index.js +4 -0
- package/supercomposite/AppHeader/index.d.ts +1 -0
- package/supercomposite/AppHeader/index.js +4 -0
- package/supercomposite/CompactNav/index.d.ts +1 -0
- package/supercomposite/CompactNav/index.js +4 -0
- package/supercomposite/Nav/index.d.ts +2 -0
- package/supercomposite/Nav/index.js +4 -0
- package/supercomposite/index.d.ts +3 -0
- package/supercomposite/index.js +8 -0
- package/templates/AppContainer/index.d.ts +1 -0
- package/templates/AppContainer/index.js +4 -0
- package/templates/BasicPage/index.d.ts +1 -0
- package/templates/BasicPage/index.js +4 -0
- package/templates/index.d.ts +2 -0
- package/templates/index.js +6 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { jsxs as D, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { a as F, g as U, s as c, r as _, e, f as H, u as A, c as w, P as t, b as q, d as g, t as i } from "./theme.js";
|
|
4
|
+
import { m as J } from "./memoTheme.js";
|
|
5
|
+
import { c as K } from "./createSimplePaletteValueFilter.js";
|
|
6
|
+
import { B as Q } from "./ButtonBase.js";
|
|
7
|
+
function X(o) {
|
|
8
|
+
return F("MuiButton", o);
|
|
9
|
+
}
|
|
10
|
+
const l = U("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"]), I = /* @__PURE__ */ b.createContext({});
|
|
11
|
+
process.env.NODE_ENV !== "production" && (I.displayName = "ButtonGroupContext");
|
|
12
|
+
const h = /* @__PURE__ */ b.createContext(void 0);
|
|
13
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupButtonContext");
|
|
14
|
+
const Y = (o) => {
|
|
15
|
+
const {
|
|
16
|
+
color: a,
|
|
17
|
+
disableElevation: n,
|
|
18
|
+
fullWidth: r,
|
|
19
|
+
size: s,
|
|
20
|
+
variant: p,
|
|
21
|
+
classes: u
|
|
22
|
+
} = o, y = {
|
|
23
|
+
root: ["root", p, `${p}${e(a)}`, `size${e(s)}`, `${p}Size${e(s)}`, `color${e(a)}`, n && "disableElevation", r && "fullWidth"],
|
|
24
|
+
label: ["label"],
|
|
25
|
+
startIcon: ["icon", "startIcon", `iconSize${e(s)}`],
|
|
26
|
+
endIcon: ["icon", "endIcon", `iconSize${e(s)}`]
|
|
27
|
+
}, f = q(y, X, u);
|
|
28
|
+
return {
|
|
29
|
+
...u,
|
|
30
|
+
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
31
|
+
...f
|
|
32
|
+
};
|
|
33
|
+
}, O = [{
|
|
34
|
+
props: {
|
|
35
|
+
size: "small"
|
|
36
|
+
},
|
|
37
|
+
style: {
|
|
38
|
+
"& > *:nth-of-type(1)": {
|
|
39
|
+
fontSize: 18
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
props: {
|
|
44
|
+
size: "medium"
|
|
45
|
+
},
|
|
46
|
+
style: {
|
|
47
|
+
"& > *:nth-of-type(1)": {
|
|
48
|
+
fontSize: 20
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
props: {
|
|
53
|
+
size: "large"
|
|
54
|
+
},
|
|
55
|
+
style: {
|
|
56
|
+
"& > *:nth-of-type(1)": {
|
|
57
|
+
fontSize: 22
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}], Z = c(Q, {
|
|
61
|
+
shouldForwardProp: (o) => _(o) || o === "classes",
|
|
62
|
+
name: "MuiButton",
|
|
63
|
+
slot: "Root",
|
|
64
|
+
overridesResolver: (o, a) => {
|
|
65
|
+
const {
|
|
66
|
+
ownerState: n
|
|
67
|
+
} = o;
|
|
68
|
+
return [a.root, a[n.variant], a[`${n.variant}${e(n.color)}`], a[`size${e(n.size)}`], a[`${n.variant}Size${e(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth];
|
|
69
|
+
}
|
|
70
|
+
})(J(({
|
|
71
|
+
theme: o
|
|
72
|
+
}) => {
|
|
73
|
+
const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], n = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
74
|
+
return {
|
|
75
|
+
...o.typography.button,
|
|
76
|
+
minWidth: 64,
|
|
77
|
+
padding: "6px 16px",
|
|
78
|
+
border: 0,
|
|
79
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
80
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
81
|
+
duration: o.transitions.duration.short
|
|
82
|
+
}),
|
|
83
|
+
"&:hover": {
|
|
84
|
+
textDecoration: "none"
|
|
85
|
+
},
|
|
86
|
+
[`&.${l.disabled}`]: {
|
|
87
|
+
color: (o.vars || o).palette.action.disabled
|
|
88
|
+
},
|
|
89
|
+
variants: [{
|
|
90
|
+
props: {
|
|
91
|
+
variant: "contained"
|
|
92
|
+
},
|
|
93
|
+
style: {
|
|
94
|
+
color: "var(--variant-containedColor)",
|
|
95
|
+
backgroundColor: "var(--variant-containedBg)",
|
|
96
|
+
boxShadow: (o.vars || o).shadows[2],
|
|
97
|
+
"&:hover": {
|
|
98
|
+
boxShadow: (o.vars || o).shadows[4],
|
|
99
|
+
// Reset on touch devices, it doesn't add specificity
|
|
100
|
+
"@media (hover: none)": {
|
|
101
|
+
boxShadow: (o.vars || o).shadows[2]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"&:active": {
|
|
105
|
+
boxShadow: (o.vars || o).shadows[8]
|
|
106
|
+
},
|
|
107
|
+
[`&.${l.focusVisible}`]: {
|
|
108
|
+
boxShadow: (o.vars || o).shadows[6]
|
|
109
|
+
},
|
|
110
|
+
[`&.${l.disabled}`]: {
|
|
111
|
+
color: (o.vars || o).palette.action.disabled,
|
|
112
|
+
boxShadow: (o.vars || o).shadows[0],
|
|
113
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
props: {
|
|
118
|
+
variant: "outlined"
|
|
119
|
+
},
|
|
120
|
+
style: {
|
|
121
|
+
padding: "5px 15px",
|
|
122
|
+
border: "1px solid currentColor",
|
|
123
|
+
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
124
|
+
backgroundColor: "var(--variant-outlinedBg)",
|
|
125
|
+
color: "var(--variant-outlinedColor)",
|
|
126
|
+
[`&.${l.disabled}`]: {
|
|
127
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
props: {
|
|
132
|
+
variant: "text"
|
|
133
|
+
},
|
|
134
|
+
style: {
|
|
135
|
+
padding: "6px 8px",
|
|
136
|
+
color: "var(--variant-textColor)",
|
|
137
|
+
backgroundColor: "var(--variant-textBg)"
|
|
138
|
+
}
|
|
139
|
+
}, ...Object.entries(o.palette).filter(K()).map(([r]) => ({
|
|
140
|
+
props: {
|
|
141
|
+
color: r
|
|
142
|
+
},
|
|
143
|
+
style: {
|
|
144
|
+
"--variant-textColor": (o.vars || o).palette[r].main,
|
|
145
|
+
"--variant-outlinedColor": (o.vars || o).palette[r].main,
|
|
146
|
+
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / 0.5)` : g(o.palette[r].main, 0.5),
|
|
147
|
+
"--variant-containedColor": (o.vars || o).palette[r].contrastText,
|
|
148
|
+
"--variant-containedBg": (o.vars || o).palette[r].main,
|
|
149
|
+
"@media (hover: hover)": {
|
|
150
|
+
"&:hover": {
|
|
151
|
+
"--variant-containedBg": (o.vars || o).palette[r].dark,
|
|
152
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette[r].main, o.palette.action.hoverOpacity),
|
|
153
|
+
"--variant-outlinedBorder": (o.vars || o).palette[r].main,
|
|
154
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette[r].main, o.palette.action.hoverOpacity)
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
})), {
|
|
159
|
+
props: {
|
|
160
|
+
color: "inherit"
|
|
161
|
+
},
|
|
162
|
+
style: {
|
|
163
|
+
color: "inherit",
|
|
164
|
+
borderColor: "currentColor",
|
|
165
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
|
|
166
|
+
"@media (hover: hover)": {
|
|
167
|
+
"&:hover": {
|
|
168
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
|
|
169
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
170
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.text.primary, o.palette.action.hoverOpacity)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
props: {
|
|
176
|
+
size: "small",
|
|
177
|
+
variant: "text"
|
|
178
|
+
},
|
|
179
|
+
style: {
|
|
180
|
+
padding: "4px 5px",
|
|
181
|
+
fontSize: o.typography.pxToRem(13)
|
|
182
|
+
}
|
|
183
|
+
}, {
|
|
184
|
+
props: {
|
|
185
|
+
size: "large",
|
|
186
|
+
variant: "text"
|
|
187
|
+
},
|
|
188
|
+
style: {
|
|
189
|
+
padding: "8px 11px",
|
|
190
|
+
fontSize: o.typography.pxToRem(15)
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
props: {
|
|
194
|
+
size: "small",
|
|
195
|
+
variant: "outlined"
|
|
196
|
+
},
|
|
197
|
+
style: {
|
|
198
|
+
padding: "3px 9px",
|
|
199
|
+
fontSize: o.typography.pxToRem(13)
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
props: {
|
|
203
|
+
size: "large",
|
|
204
|
+
variant: "outlined"
|
|
205
|
+
},
|
|
206
|
+
style: {
|
|
207
|
+
padding: "7px 21px",
|
|
208
|
+
fontSize: o.typography.pxToRem(15)
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
211
|
+
props: {
|
|
212
|
+
size: "small",
|
|
213
|
+
variant: "contained"
|
|
214
|
+
},
|
|
215
|
+
style: {
|
|
216
|
+
padding: "4px 10px",
|
|
217
|
+
fontSize: o.typography.pxToRem(13)
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
props: {
|
|
221
|
+
size: "large",
|
|
222
|
+
variant: "contained"
|
|
223
|
+
},
|
|
224
|
+
style: {
|
|
225
|
+
padding: "8px 22px",
|
|
226
|
+
fontSize: o.typography.pxToRem(15)
|
|
227
|
+
}
|
|
228
|
+
}, {
|
|
229
|
+
props: {
|
|
230
|
+
disableElevation: !0
|
|
231
|
+
},
|
|
232
|
+
style: {
|
|
233
|
+
boxShadow: "none",
|
|
234
|
+
"&:hover": {
|
|
235
|
+
boxShadow: "none"
|
|
236
|
+
},
|
|
237
|
+
[`&.${l.focusVisible}`]: {
|
|
238
|
+
boxShadow: "none"
|
|
239
|
+
},
|
|
240
|
+
"&:active": {
|
|
241
|
+
boxShadow: "none"
|
|
242
|
+
},
|
|
243
|
+
[`&.${l.disabled}`]: {
|
|
244
|
+
boxShadow: "none"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}, {
|
|
248
|
+
props: {
|
|
249
|
+
fullWidth: !0
|
|
250
|
+
},
|
|
251
|
+
style: {
|
|
252
|
+
width: "100%"
|
|
253
|
+
}
|
|
254
|
+
}]
|
|
255
|
+
};
|
|
256
|
+
})), oo = c("span", {
|
|
257
|
+
name: "MuiButton",
|
|
258
|
+
slot: "StartIcon",
|
|
259
|
+
overridesResolver: (o, a) => {
|
|
260
|
+
const {
|
|
261
|
+
ownerState: n
|
|
262
|
+
} = o;
|
|
263
|
+
return [a.startIcon, a[`iconSize${e(n.size)}`]];
|
|
264
|
+
}
|
|
265
|
+
})({
|
|
266
|
+
display: "inherit",
|
|
267
|
+
marginRight: 8,
|
|
268
|
+
marginLeft: -4,
|
|
269
|
+
variants: [{
|
|
270
|
+
props: {
|
|
271
|
+
size: "small"
|
|
272
|
+
},
|
|
273
|
+
style: {
|
|
274
|
+
marginLeft: -2
|
|
275
|
+
}
|
|
276
|
+
}, ...O]
|
|
277
|
+
}), to = c("span", {
|
|
278
|
+
name: "MuiButton",
|
|
279
|
+
slot: "EndIcon",
|
|
280
|
+
overridesResolver: (o, a) => {
|
|
281
|
+
const {
|
|
282
|
+
ownerState: n
|
|
283
|
+
} = o;
|
|
284
|
+
return [a.endIcon, a[`iconSize${e(n.size)}`]];
|
|
285
|
+
}
|
|
286
|
+
})({
|
|
287
|
+
display: "inherit",
|
|
288
|
+
marginRight: -4,
|
|
289
|
+
marginLeft: 8,
|
|
290
|
+
variants: [{
|
|
291
|
+
props: {
|
|
292
|
+
size: "small"
|
|
293
|
+
},
|
|
294
|
+
style: {
|
|
295
|
+
marginRight: -2
|
|
296
|
+
}
|
|
297
|
+
}, ...O]
|
|
298
|
+
}), R = /* @__PURE__ */ b.forwardRef(function(a, n) {
|
|
299
|
+
const r = b.useContext(I), s = b.useContext(h), p = H(r, a), u = A({
|
|
300
|
+
props: p,
|
|
301
|
+
name: "MuiButton"
|
|
302
|
+
}), {
|
|
303
|
+
children: y,
|
|
304
|
+
color: f = "primary",
|
|
305
|
+
component: S = "button",
|
|
306
|
+
className: N,
|
|
307
|
+
disabled: z = !1,
|
|
308
|
+
disableElevation: k = !1,
|
|
309
|
+
disableFocusRipple: B = !1,
|
|
310
|
+
endIcon: C,
|
|
311
|
+
focusVisibleClassName: T,
|
|
312
|
+
fullWidth: P = !1,
|
|
313
|
+
size: W = "medium",
|
|
314
|
+
startIcon: $,
|
|
315
|
+
type: m,
|
|
316
|
+
variant: M = "text",
|
|
317
|
+
...V
|
|
318
|
+
} = u, x = {
|
|
319
|
+
...u,
|
|
320
|
+
color: f,
|
|
321
|
+
component: S,
|
|
322
|
+
disabled: z,
|
|
323
|
+
disableElevation: k,
|
|
324
|
+
disableFocusRipple: B,
|
|
325
|
+
fullWidth: P,
|
|
326
|
+
size: W,
|
|
327
|
+
type: m,
|
|
328
|
+
variant: M
|
|
329
|
+
}, v = Y(x), L = $ && /* @__PURE__ */ d(oo, {
|
|
330
|
+
className: v.startIcon,
|
|
331
|
+
ownerState: x,
|
|
332
|
+
children: $
|
|
333
|
+
}), j = C && /* @__PURE__ */ d(to, {
|
|
334
|
+
className: v.endIcon,
|
|
335
|
+
ownerState: x,
|
|
336
|
+
children: C
|
|
337
|
+
}), G = s || "";
|
|
338
|
+
return /* @__PURE__ */ D(Z, {
|
|
339
|
+
ownerState: x,
|
|
340
|
+
className: w(r.className, v.root, N, G),
|
|
341
|
+
component: S,
|
|
342
|
+
disabled: z,
|
|
343
|
+
focusRipple: !B,
|
|
344
|
+
focusVisibleClassName: w(v.focusVisible, T),
|
|
345
|
+
ref: n,
|
|
346
|
+
type: m,
|
|
347
|
+
...V,
|
|
348
|
+
classes: v,
|
|
349
|
+
children: [L, y, j]
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
353
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
354
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
355
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
356
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
357
|
+
/**
|
|
358
|
+
* The content of the component.
|
|
359
|
+
*/
|
|
360
|
+
children: t.node,
|
|
361
|
+
/**
|
|
362
|
+
* Override or extend the styles applied to the component.
|
|
363
|
+
*/
|
|
364
|
+
classes: t.object,
|
|
365
|
+
/**
|
|
366
|
+
* @ignore
|
|
367
|
+
*/
|
|
368
|
+
className: t.string,
|
|
369
|
+
/**
|
|
370
|
+
* The color of the component.
|
|
371
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
372
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
373
|
+
* @default 'primary'
|
|
374
|
+
*/
|
|
375
|
+
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
|
|
376
|
+
/**
|
|
377
|
+
* The component used for the root node.
|
|
378
|
+
* Either a string to use a HTML element or a component.
|
|
379
|
+
*/
|
|
380
|
+
component: t.elementType,
|
|
381
|
+
/**
|
|
382
|
+
* If `true`, the component is disabled.
|
|
383
|
+
* @default false
|
|
384
|
+
*/
|
|
385
|
+
disabled: t.bool,
|
|
386
|
+
/**
|
|
387
|
+
* If `true`, no elevation is used.
|
|
388
|
+
* @default false
|
|
389
|
+
*/
|
|
390
|
+
disableElevation: t.bool,
|
|
391
|
+
/**
|
|
392
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
393
|
+
* @default false
|
|
394
|
+
*/
|
|
395
|
+
disableFocusRipple: t.bool,
|
|
396
|
+
/**
|
|
397
|
+
* If `true`, the ripple effect is disabled.
|
|
398
|
+
*
|
|
399
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
400
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
401
|
+
* @default false
|
|
402
|
+
*/
|
|
403
|
+
disableRipple: t.bool,
|
|
404
|
+
/**
|
|
405
|
+
* Element placed after the children.
|
|
406
|
+
*/
|
|
407
|
+
endIcon: t.node,
|
|
408
|
+
/**
|
|
409
|
+
* @ignore
|
|
410
|
+
*/
|
|
411
|
+
focusVisibleClassName: t.string,
|
|
412
|
+
/**
|
|
413
|
+
* If `true`, the button will take up the full width of its container.
|
|
414
|
+
* @default false
|
|
415
|
+
*/
|
|
416
|
+
fullWidth: t.bool,
|
|
417
|
+
/**
|
|
418
|
+
* The URL to link to when the button is clicked.
|
|
419
|
+
* If defined, an `a` element will be used as the root node.
|
|
420
|
+
*/
|
|
421
|
+
href: t.string,
|
|
422
|
+
/**
|
|
423
|
+
* The size of the component.
|
|
424
|
+
* `small` is equivalent to the dense button styling.
|
|
425
|
+
* @default 'medium'
|
|
426
|
+
*/
|
|
427
|
+
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
428
|
+
/**
|
|
429
|
+
* Element placed before the children.
|
|
430
|
+
*/
|
|
431
|
+
startIcon: t.node,
|
|
432
|
+
/**
|
|
433
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
434
|
+
*/
|
|
435
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
436
|
+
/**
|
|
437
|
+
* @ignore
|
|
438
|
+
*/
|
|
439
|
+
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
|
|
440
|
+
/**
|
|
441
|
+
* The variant to use.
|
|
442
|
+
* @default 'text'
|
|
443
|
+
*/
|
|
444
|
+
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
445
|
+
});
|
|
446
|
+
const E = c(R)`
|
|
447
|
+
text-transform: none;
|
|
448
|
+
&:disabled {
|
|
449
|
+
opacity: 0.5;
|
|
450
|
+
color: ${i.colors.black};
|
|
451
|
+
display: flex;
|
|
452
|
+
justify-content: center;
|
|
453
|
+
align-items: center;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
p {
|
|
457
|
+
margin: 0;
|
|
458
|
+
}
|
|
459
|
+
`, ao = c(E)`
|
|
460
|
+
background-color: ${i.colors.green};
|
|
461
|
+
border-radius: 0;
|
|
462
|
+
height: 2.5rem;
|
|
463
|
+
border: 2px solid transparent;
|
|
464
|
+
color: ${i.colors.white};
|
|
465
|
+
transition: 313ms all ease-in;
|
|
466
|
+
border-radius: 32px;
|
|
467
|
+
font-weight: 400;
|
|
468
|
+
padding: 0.75rem 2rem;
|
|
469
|
+
font-size: 1rem;
|
|
470
|
+
box-shadow: 0px 0px 2px 1px rgba(100, 100, 100, 0.63);
|
|
471
|
+
&:hover,
|
|
472
|
+
:focus {
|
|
473
|
+
background-color: ${i.colors.darkGreen};
|
|
474
|
+
box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.63);
|
|
475
|
+
}
|
|
476
|
+
&:disabled {
|
|
477
|
+
background-color: ${i.colors.darkGreen};
|
|
478
|
+
}
|
|
479
|
+
`, no = c(E)`
|
|
480
|
+
color: ${i.colors.black};
|
|
481
|
+
border: 3px solid ${i.colors.blue};
|
|
482
|
+
padding: 0.5rem 2rem;
|
|
483
|
+
`, co = ({ variant: o = 1, children: a, ...n }) => o === 2 ? /* @__PURE__ */ d(no, { ...n, children: /* @__PURE__ */ d("p", { children: a }) }) : /* @__PURE__ */ d(ao, { ...n, children: /* @__PURE__ */ d("p", { children: a }) });
|
|
484
|
+
export {
|
|
485
|
+
co as B
|
|
486
|
+
};
|