@hai-dev/ui-kit 1.2.1 → 1.2.2

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 (46) hide show
  1. package/dist/assets/button.css +1 -1
  2. package/dist/assets/circular-progress-loader.css +1 -1
  3. package/dist/assets/code-input.css +1 -1
  4. package/dist/assets/error-upload-dialog.css +1 -1
  5. package/dist/assets/upload-dialog-errors.css +1 -1
  6. package/dist/button.module-BnTmlu-U.js +40 -0
  7. package/dist/components/button/button-content.js +8 -8
  8. package/dist/components/button/button.js +21 -22
  9. package/dist/components/button/utils/get-button-classnames.js +10 -10
  10. package/dist/components/circular-progress-loader/circular-progress-loader.js +25 -28
  11. package/dist/components/code-input/code-input.js +114 -915
  12. package/dist/components/code-input/types.d.ts +1 -0
  13. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +25 -93
  14. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +38 -120
  15. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +16 -16
  16. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +4 -5
  17. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +111 -403
  18. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +12 -12
  19. package/dist/components/photo-crop-uploader/utils/draw-cropped-image.js +8 -8
  20. package/dist/components/photo-crop-uploader/utils/get-cropped-source.js +10 -10
  21. package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.js +10 -10
  22. package/dist/components/photo-crop-uploader/utils/get-photo-crop.js +18 -18
  23. package/dist/upload-dialog-errors-B7V0G-Ey.js +71 -0
  24. package/package.json +1 -1
  25. package/dist/Box-BgNAyP2L.js +0 -56
  26. package/dist/Button-DTV8ztWw.js +0 -660
  27. package/dist/ButtonBase-C4krg_zd.js +0 -913
  28. package/dist/CircularProgress-BoaEg4rF.js +0 -274
  29. package/dist/Dialog-BK9lMUKV.js +0 -2632
  30. package/dist/DialogTitle-ByUfLB5M.js +0 -254
  31. package/dist/Typography-BMyz0ZCh.js +0 -255
  32. package/dist/assets/inter.css +0 -1
  33. package/dist/button.module-C0UNQnBk.js +0 -40
  34. package/dist/chainPropTypes-DgqFdXGi.js +0 -532
  35. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  36. package/dist/createTheme-BoOmbNvy.js +0 -4119
  37. package/dist/extendSxProp-BaUCVMKV.js +0 -50
  38. package/dist/index-CcueJ2sD.js +0 -432
  39. package/dist/index-YnD2EP-S.js +0 -43
  40. package/dist/index-h5oTv8GF.js +0 -91
  41. package/dist/isHostComponent-Dm_U9uOy.js +0 -14
  42. package/dist/memoTheme-BYBJ2Fe6.js +0 -15
  43. package/dist/refType-CsohaiiT.js +0 -60
  44. package/dist/upload-dialog-errors-BwQsTOc3.js +0 -367
  45. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  46. package/dist/useId-CK6Kn3Tn.js +0 -21
@@ -1,660 +0,0 @@
1
- import * as y from "react";
2
- import { g as H, a as A, r as q, c as R, b as r, P as t } from "./createTheme-BoOmbNvy.js";
3
- import { u as J, c as K, s as f, r as Q } from "./chainPropTypes-DgqFdXGi.js";
4
- import { m as X } from "./memoTheme-BYBJ2Fe6.js";
5
- import { c as Y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
- import { jsxs as Z, jsx as d } from "react/jsx-runtime";
7
- import { u as oo } from "./useId-CK6Kn3Tn.js";
8
- import { B as to } from "./ButtonBase-C4krg_zd.js";
9
- import { C as no } from "./CircularProgress-BoaEg4rF.js";
10
- function ao(o) {
11
- return H("MuiButton", o);
12
- }
13
- const p = A("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", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), W = /* @__PURE__ */ y.createContext({});
14
- process.env.NODE_ENV !== "production" && (W.displayName = "ButtonGroupContext");
15
- const O = /* @__PURE__ */ y.createContext(void 0);
16
- process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
17
- const io = (o) => {
18
- const {
19
- color: n,
20
- disableElevation: a,
21
- fullWidth: i,
22
- size: c,
23
- variant: u,
24
- loading: g,
25
- loadingPosition: S,
26
- classes: b
27
- } = o, x = {
28
- root: ["root", g && "loading", u, `${u}${r(n)}`, `size${r(c)}`, `${u}Size${r(c)}`, `color${r(n)}`, a && "disableElevation", i && "fullWidth", g && `loadingPosition${r(S)}`],
29
- startIcon: ["icon", "startIcon", `iconSize${r(c)}`],
30
- endIcon: ["icon", "endIcon", `iconSize${r(c)}`],
31
- loadingIndicator: ["loadingIndicator"],
32
- loadingWrapper: ["loadingWrapper"]
33
- }, z = K(x, ao, b);
34
- return {
35
- ...b,
36
- // forward the focused, disabled, etc. classes to the ButtonBase
37
- ...z
38
- };
39
- }, T = [{
40
- props: {
41
- size: "small"
42
- },
43
- style: {
44
- "& > *:nth-of-type(1)": {
45
- fontSize: 18
46
- }
47
- }
48
- }, {
49
- props: {
50
- size: "medium"
51
- },
52
- style: {
53
- "& > *:nth-of-type(1)": {
54
- fontSize: 20
55
- }
56
- }
57
- }, {
58
- props: {
59
- size: "large"
60
- },
61
- style: {
62
- "& > *:nth-of-type(1)": {
63
- fontSize: 22
64
- }
65
- }
66
- }], ro = f(to, {
67
- shouldForwardProp: (o) => Q(o) || o === "classes",
68
- name: "MuiButton",
69
- slot: "Root",
70
- overridesResolver: (o, n) => {
71
- const {
72
- ownerState: a
73
- } = o;
74
- return [n.root, n[a.variant], n[`${a.variant}${r(a.color)}`], n[`size${r(a.size)}`], n[`${a.variant}Size${r(a.size)}`], a.color === "inherit" && n.colorInherit, a.disableElevation && n.disableElevation, a.fullWidth && n.fullWidth, a.loading && n.loading];
75
- }
76
- })(X(({
77
- theme: o
78
- }) => {
79
- const n = 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];
80
- return {
81
- ...o.typography.button,
82
- minWidth: 64,
83
- padding: "6px 16px",
84
- border: 0,
85
- borderRadius: (o.vars || o).shape.borderRadius,
86
- transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
87
- duration: o.transitions.duration.short
88
- }),
89
- "&:hover": {
90
- textDecoration: "none"
91
- },
92
- [`&.${p.disabled}`]: {
93
- color: (o.vars || o).palette.action.disabled
94
- },
95
- variants: [{
96
- props: {
97
- variant: "contained"
98
- },
99
- style: {
100
- color: "var(--variant-containedColor)",
101
- backgroundColor: "var(--variant-containedBg)",
102
- boxShadow: (o.vars || o).shadows[2],
103
- "&:hover": {
104
- boxShadow: (o.vars || o).shadows[4],
105
- // Reset on touch devices, it doesn't add specificity
106
- "@media (hover: none)": {
107
- boxShadow: (o.vars || o).shadows[2]
108
- }
109
- },
110
- "&:active": {
111
- boxShadow: (o.vars || o).shadows[8]
112
- },
113
- [`&.${p.focusVisible}`]: {
114
- boxShadow: (o.vars || o).shadows[6]
115
- },
116
- [`&.${p.disabled}`]: {
117
- color: (o.vars || o).palette.action.disabled,
118
- boxShadow: (o.vars || o).shadows[0],
119
- backgroundColor: (o.vars || o).palette.action.disabledBackground
120
- }
121
- }
122
- }, {
123
- props: {
124
- variant: "outlined"
125
- },
126
- style: {
127
- padding: "5px 15px",
128
- border: "1px solid currentColor",
129
- borderColor: "var(--variant-outlinedBorder, currentColor)",
130
- backgroundColor: "var(--variant-outlinedBg)",
131
- color: "var(--variant-outlinedColor)",
132
- [`&.${p.disabled}`]: {
133
- border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
134
- }
135
- }
136
- }, {
137
- props: {
138
- variant: "text"
139
- },
140
- style: {
141
- padding: "6px 8px",
142
- color: "var(--variant-textColor)",
143
- backgroundColor: "var(--variant-textBg)"
144
- }
145
- }, ...Object.entries(o.palette).filter(Y()).map(([i]) => ({
146
- props: {
147
- color: i
148
- },
149
- style: {
150
- "--variant-textColor": (o.vars || o).palette[i].main,
151
- "--variant-outlinedColor": (o.vars || o).palette[i].main,
152
- "--variant-outlinedBorder": o.alpha((o.vars || o).palette[i].main, 0.5),
153
- "--variant-containedColor": (o.vars || o).palette[i].contrastText,
154
- "--variant-containedBg": (o.vars || o).palette[i].main,
155
- "@media (hover: hover)": {
156
- "&:hover": {
157
- "--variant-containedBg": (o.vars || o).palette[i].dark,
158
- "--variant-textBg": o.alpha((o.vars || o).palette[i].main, (o.vars || o).palette.action.hoverOpacity),
159
- "--variant-outlinedBorder": (o.vars || o).palette[i].main,
160
- "--variant-outlinedBg": o.alpha((o.vars || o).palette[i].main, (o.vars || o).palette.action.hoverOpacity)
161
- }
162
- }
163
- }
164
- })), {
165
- props: {
166
- color: "inherit"
167
- },
168
- style: {
169
- color: "inherit",
170
- borderColor: "currentColor",
171
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
172
- "@media (hover: hover)": {
173
- "&:hover": {
174
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
175
- "--variant-textBg": o.alpha((o.vars || o).palette.text.primary, (o.vars || o).palette.action.hoverOpacity),
176
- "--variant-outlinedBg": o.alpha((o.vars || o).palette.text.primary, (o.vars || o).palette.action.hoverOpacity)
177
- }
178
- }
179
- }
180
- }, {
181
- props: {
182
- size: "small",
183
- variant: "text"
184
- },
185
- style: {
186
- padding: "4px 5px",
187
- fontSize: o.typography.pxToRem(13)
188
- }
189
- }, {
190
- props: {
191
- size: "large",
192
- variant: "text"
193
- },
194
- style: {
195
- padding: "8px 11px",
196
- fontSize: o.typography.pxToRem(15)
197
- }
198
- }, {
199
- props: {
200
- size: "small",
201
- variant: "outlined"
202
- },
203
- style: {
204
- padding: "3px 9px",
205
- fontSize: o.typography.pxToRem(13)
206
- }
207
- }, {
208
- props: {
209
- size: "large",
210
- variant: "outlined"
211
- },
212
- style: {
213
- padding: "7px 21px",
214
- fontSize: o.typography.pxToRem(15)
215
- }
216
- }, {
217
- props: {
218
- size: "small",
219
- variant: "contained"
220
- },
221
- style: {
222
- padding: "4px 10px",
223
- fontSize: o.typography.pxToRem(13)
224
- }
225
- }, {
226
- props: {
227
- size: "large",
228
- variant: "contained"
229
- },
230
- style: {
231
- padding: "8px 22px",
232
- fontSize: o.typography.pxToRem(15)
233
- }
234
- }, {
235
- props: {
236
- disableElevation: !0
237
- },
238
- style: {
239
- boxShadow: "none",
240
- "&:hover": {
241
- boxShadow: "none"
242
- },
243
- [`&.${p.focusVisible}`]: {
244
- boxShadow: "none"
245
- },
246
- "&:active": {
247
- boxShadow: "none"
248
- },
249
- [`&.${p.disabled}`]: {
250
- boxShadow: "none"
251
- }
252
- }
253
- }, {
254
- props: {
255
- fullWidth: !0
256
- },
257
- style: {
258
- width: "100%"
259
- }
260
- }, {
261
- props: {
262
- loadingPosition: "center"
263
- },
264
- style: {
265
- transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
266
- duration: o.transitions.duration.short
267
- }),
268
- [`&.${p.loading}`]: {
269
- color: "transparent"
270
- }
271
- }
272
- }]
273
- };
274
- })), eo = f("span", {
275
- name: "MuiButton",
276
- slot: "StartIcon",
277
- overridesResolver: (o, n) => {
278
- const {
279
- ownerState: a
280
- } = o;
281
- return [n.startIcon, a.loading && n.startIconLoadingStart, n[`iconSize${r(a.size)}`]];
282
- }
283
- })(({
284
- theme: o
285
- }) => ({
286
- display: "inherit",
287
- marginRight: 8,
288
- marginLeft: -4,
289
- variants: [{
290
- props: {
291
- size: "small"
292
- },
293
- style: {
294
- marginLeft: -2
295
- }
296
- }, {
297
- props: {
298
- loadingPosition: "start",
299
- loading: !0
300
- },
301
- style: {
302
- transition: o.transitions.create(["opacity"], {
303
- duration: o.transitions.duration.short
304
- }),
305
- opacity: 0
306
- }
307
- }, {
308
- props: {
309
- loadingPosition: "start",
310
- loading: !0,
311
- fullWidth: !0
312
- },
313
- style: {
314
- marginRight: -8
315
- }
316
- }, ...T]
317
- })), so = f("span", {
318
- name: "MuiButton",
319
- slot: "EndIcon",
320
- overridesResolver: (o, n) => {
321
- const {
322
- ownerState: a
323
- } = o;
324
- return [n.endIcon, a.loading && n.endIconLoadingEnd, n[`iconSize${r(a.size)}`]];
325
- }
326
- })(({
327
- theme: o
328
- }) => ({
329
- display: "inherit",
330
- marginRight: -4,
331
- marginLeft: 8,
332
- variants: [{
333
- props: {
334
- size: "small"
335
- },
336
- style: {
337
- marginRight: -2
338
- }
339
- }, {
340
- props: {
341
- loadingPosition: "end",
342
- loading: !0
343
- },
344
- style: {
345
- transition: o.transitions.create(["opacity"], {
346
- duration: o.transitions.duration.short
347
- }),
348
- opacity: 0
349
- }
350
- }, {
351
- props: {
352
- loadingPosition: "end",
353
- loading: !0,
354
- fullWidth: !0
355
- },
356
- style: {
357
- marginLeft: -8
358
- }
359
- }, ...T]
360
- })), lo = f("span", {
361
- name: "MuiButton",
362
- slot: "LoadingIndicator"
363
- })(({
364
- theme: o
365
- }) => ({
366
- display: "none",
367
- position: "absolute",
368
- visibility: "visible",
369
- variants: [{
370
- props: {
371
- loading: !0
372
- },
373
- style: {
374
- display: "flex"
375
- }
376
- }, {
377
- props: {
378
- loadingPosition: "start"
379
- },
380
- style: {
381
- left: 14
382
- }
383
- }, {
384
- props: {
385
- loadingPosition: "start",
386
- size: "small"
387
- },
388
- style: {
389
- left: 10
390
- }
391
- }, {
392
- props: {
393
- variant: "text",
394
- loadingPosition: "start"
395
- },
396
- style: {
397
- left: 6
398
- }
399
- }, {
400
- props: {
401
- loadingPosition: "center"
402
- },
403
- style: {
404
- left: "50%",
405
- transform: "translate(-50%)",
406
- color: (o.vars || o).palette.action.disabled
407
- }
408
- }, {
409
- props: {
410
- loadingPosition: "end"
411
- },
412
- style: {
413
- right: 14
414
- }
415
- }, {
416
- props: {
417
- loadingPosition: "end",
418
- size: "small"
419
- },
420
- style: {
421
- right: 10
422
- }
423
- }, {
424
- props: {
425
- variant: "text",
426
- loadingPosition: "end"
427
- },
428
- style: {
429
- right: 6
430
- }
431
- }, {
432
- props: {
433
- loadingPosition: "start",
434
- fullWidth: !0
435
- },
436
- style: {
437
- position: "relative",
438
- left: -10
439
- }
440
- }, {
441
- props: {
442
- loadingPosition: "end",
443
- fullWidth: !0
444
- },
445
- style: {
446
- position: "relative",
447
- right: -10
448
- }
449
- }]
450
- })), E = f("span", {
451
- name: "MuiButton",
452
- slot: "LoadingIconPlaceholder"
453
- })({
454
- display: "inline-block",
455
- width: "1em",
456
- height: "1em"
457
- }), po = /* @__PURE__ */ y.forwardRef(function(n, a) {
458
- const i = y.useContext(W), c = y.useContext(O), u = q(i, n), g = J({
459
- props: u,
460
- name: "MuiButton"
461
- }), {
462
- children: S,
463
- color: b = "primary",
464
- component: x = "button",
465
- className: z,
466
- disabled: I = !1,
467
- disableElevation: L = !1,
468
- disableFocusRipple: B = !1,
469
- endIcon: C,
470
- focusVisibleClassName: M,
471
- fullWidth: k = !1,
472
- id: P,
473
- loading: s = null,
474
- loadingIndicator: V,
475
- loadingPosition: v = "center",
476
- size: j = "medium",
477
- startIcon: m,
478
- type: w,
479
- variant: D = "text",
480
- ...F
481
- } = g, h = oo(P), $ = V ?? /* @__PURE__ */ d(no, {
482
- "aria-labelledby": h,
483
- color: "inherit",
484
- size: 16
485
- }), l = {
486
- ...g,
487
- color: b,
488
- component: x,
489
- disabled: I,
490
- disableElevation: L,
491
- disableFocusRipple: B,
492
- fullWidth: k,
493
- loading: s,
494
- loadingIndicator: $,
495
- loadingPosition: v,
496
- size: j,
497
- type: w,
498
- variant: D
499
- }, e = io(l), G = (m || s && v === "start") && /* @__PURE__ */ d(eo, {
500
- className: e.startIcon,
501
- ownerState: l,
502
- children: m || /* @__PURE__ */ d(E, {
503
- className: e.loadingIconPlaceholder,
504
- ownerState: l
505
- })
506
- }), U = (C || s && v === "end") && /* @__PURE__ */ d(so, {
507
- className: e.endIcon,
508
- ownerState: l,
509
- children: C || /* @__PURE__ */ d(E, {
510
- className: e.loadingIconPlaceholder,
511
- ownerState: l
512
- })
513
- }), _ = c || "", N = typeof s == "boolean" ? (
514
- // use plain HTML span to minimize the runtime overhead
515
- /* @__PURE__ */ d("span", {
516
- className: e.loadingWrapper,
517
- style: {
518
- display: "contents"
519
- },
520
- children: s && /* @__PURE__ */ d(lo, {
521
- className: e.loadingIndicator,
522
- ownerState: l,
523
- children: $
524
- })
525
- })
526
- ) : null;
527
- return /* @__PURE__ */ Z(ro, {
528
- ownerState: l,
529
- className: R(i.className, e.root, z, _),
530
- component: x,
531
- disabled: I || s,
532
- focusRipple: !B,
533
- focusVisibleClassName: R(e.focusVisible, M),
534
- ref: a,
535
- type: w,
536
- id: s ? h : P,
537
- ...F,
538
- classes: e,
539
- children: [G, v !== "end" && N, S, v === "end" && N, U]
540
- });
541
- });
542
- process.env.NODE_ENV !== "production" && (po.propTypes = {
543
- // ┌────────────────────────────── Warning ──────────────────────────────┐
544
- // │ These PropTypes are generated from the TypeScript type definitions. │
545
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
546
- // └─────────────────────────────────────────────────────────────────────┘
547
- /**
548
- * The content of the component.
549
- */
550
- children: t.node,
551
- /**
552
- * Override or extend the styles applied to the component.
553
- */
554
- classes: t.object,
555
- /**
556
- * @ignore
557
- */
558
- className: t.string,
559
- /**
560
- * The color of the component.
561
- * It supports both default and custom theme colors, which can be added as shown in the
562
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
563
- * @default 'primary'
564
- */
565
- color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
566
- /**
567
- * The component used for the root node.
568
- * Either a string to use a HTML element or a component.
569
- */
570
- component: t.elementType,
571
- /**
572
- * If `true`, the component is disabled.
573
- * @default false
574
- */
575
- disabled: t.bool,
576
- /**
577
- * If `true`, no elevation is used.
578
- * @default false
579
- */
580
- disableElevation: t.bool,
581
- /**
582
- * If `true`, the keyboard focus ripple is disabled.
583
- * @default false
584
- */
585
- disableFocusRipple: t.bool,
586
- /**
587
- * If `true`, the ripple effect is disabled.
588
- *
589
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
590
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
591
- * @default false
592
- */
593
- disableRipple: t.bool,
594
- /**
595
- * Element placed after the children.
596
- */
597
- endIcon: t.node,
598
- /**
599
- * @ignore
600
- */
601
- focusVisibleClassName: t.string,
602
- /**
603
- * If `true`, the button will take up the full width of its container.
604
- * @default false
605
- */
606
- fullWidth: t.bool,
607
- /**
608
- * The URL to link to when the button is clicked.
609
- * If defined, an `a` element will be used as the root node.
610
- */
611
- href: t.string,
612
- /**
613
- * @ignore
614
- */
615
- id: t.string,
616
- /**
617
- * If `true`, the loading indicator is visible and the button is disabled.
618
- * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
619
- * @default null
620
- */
621
- loading: t.bool,
622
- /**
623
- * Element placed before the children if the button is in loading state.
624
- * The node should contain an element with `role="progressbar"` with an accessible name.
625
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
626
- * @default <CircularProgress color="inherit" size={16} />
627
- */
628
- loadingIndicator: t.node,
629
- /**
630
- * The loading indicator can be positioned on the start, end, or the center of the button.
631
- * @default 'center'
632
- */
633
- loadingPosition: t.oneOf(["center", "end", "start"]),
634
- /**
635
- * The size of the component.
636
- * `small` is equivalent to the dense button styling.
637
- * @default 'medium'
638
- */
639
- size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
640
- /**
641
- * Element placed before the children.
642
- */
643
- startIcon: t.node,
644
- /**
645
- * The system prop that allows defining system overrides as well as additional CSS styles.
646
- */
647
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
648
- /**
649
- * @ignore
650
- */
651
- type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
652
- /**
653
- * The variant to use.
654
- * @default 'text'
655
- */
656
- variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
657
- });
658
- export {
659
- po as B
660
- };