@notificationapi/react 0.0.37 → 1.0.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 (72) hide show
  1. package/dist/assets/Badge.js +456 -0
  2. package/dist/assets/Box.js +57 -0
  3. package/dist/assets/ButtonBase.js +1224 -0
  4. package/dist/assets/DefaultPropsProvider.js +4368 -0
  5. package/dist/assets/Divider.js +343 -0
  6. package/dist/assets/IconButton.js +225 -0
  7. package/dist/assets/Inbox.js +3051 -0
  8. package/dist/assets/InboxHeader.js +2338 -0
  9. package/dist/assets/Notification.js +5349 -7150
  10. package/dist/assets/NotificationPreferencesPopup.js +1694 -0
  11. package/dist/assets/Paper.js +154 -0
  12. package/dist/assets/Popover.js +451 -0
  13. package/dist/assets/Portal.js +110 -0
  14. package/dist/assets/PreferenceInput.js +1545 -1366
  15. package/dist/assets/Typography.js +292 -0
  16. package/dist/assets/WebPushOptInMessage.js +794 -407
  17. package/dist/assets/channelUtils.js +33 -65
  18. package/dist/assets/createSimplePaletteValueFilter.js +17 -0
  19. package/dist/assets/createSvgIcon.js +248 -0
  20. package/dist/assets/integerPropType.js +31 -0
  21. package/dist/assets/resolveComponentProps.js +93 -0
  22. package/dist/assets/style.css +1 -0
  23. package/dist/assets/useSlotProps.js +24 -0
  24. package/dist/assets/useTheme.js +10 -0
  25. package/dist/assets/useTheme2.js +16 -0
  26. package/dist/assets/utils.js +743 -0
  27. package/dist/components/Notifications/DefaultEmpty.d.ts +3 -0
  28. package/dist/components/Notifications/DefaultEmpty.js +7 -0
  29. package/dist/components/Notifications/Inbox.d.ts +4 -4
  30. package/dist/components/Notifications/Inbox.js +9 -6450
  31. package/dist/components/Notifications/InboxHeader.d.ts +1 -1
  32. package/dist/components/Notifications/InboxHeader.js +7 -53
  33. package/dist/components/Notifications/Notification.d.ts +3 -4
  34. package/dist/components/Notifications/Notification.js +6 -5
  35. package/dist/components/Notifications/NotificationCounter.js +16 -6
  36. package/dist/components/Notifications/NotificationFeed.d.ts +1 -2
  37. package/dist/components/Notifications/NotificationFeed.js +41 -38
  38. package/dist/components/Notifications/NotificationLauncher.d.ts +1 -0
  39. package/dist/components/Notifications/NotificationLauncher.js +100 -114
  40. package/dist/components/Notifications/NotificationPopup.d.ts +3 -4
  41. package/dist/components/Notifications/NotificationPopup.js +86 -88
  42. package/dist/components/Notifications/UnreadBadge.d.ts +7 -4
  43. package/dist/components/Notifications/UnreadBadge.js +28 -20
  44. package/dist/components/Notifications/interface.d.ts +0 -4
  45. package/dist/components/Notifications/interface.js +4 -5
  46. package/dist/components/Preferences/NotificationPreferencesInline.js +14 -14
  47. package/dist/components/Preferences/NotificationPreferencesPopup.js +7 -2068
  48. package/dist/components/Preferences/PreferenceInput.js +4 -3
  49. package/dist/components/Preferences/Preferences.js +1042 -547
  50. package/dist/components/Preferences/channelUtils.js +3 -4
  51. package/dist/components/Preferences/index.js +1 -1
  52. package/dist/components/Provider/context.d.ts +27 -0
  53. package/dist/components/Provider/context.js +7 -0
  54. package/dist/components/Provider/index.d.ts +2 -25
  55. package/dist/components/Provider/index.js +22 -24
  56. package/dist/components/WebPush/WebPushOptInMessage.js +3 -4
  57. package/dist/main.d.ts +1 -0
  58. package/dist/main.js +4 -4
  59. package/package.json +14 -12
  60. package/dist/assets/AntdIcon.js +0 -200
  61. package/dist/assets/CloseOutlined.js +0 -13
  62. package/dist/assets/PurePanel.js +0 -59
  63. package/dist/assets/RightOutlined.js +0 -13
  64. package/dist/assets/button.js +0 -1660
  65. package/dist/assets/colors.js +0 -36
  66. package/dist/assets/compact-item.js +0 -860
  67. package/dist/assets/index.js +0 -271
  68. package/dist/assets/index2.js +0 -647
  69. package/dist/assets/index3.js +0 -7527
  70. package/dist/assets/pickAttrs.js +0 -42
  71. package/dist/assets/presets.js +0 -810
  72. package/dist/assets/reactNode.js +0 -20821
@@ -0,0 +1,343 @@
1
+ import * as l from "react";
2
+ import { g as A, a as R, s as x, m as w, b as $, u as S, c as T, P as r, f as V } from "./DefaultPropsProvider.js";
3
+ import { jsx as v } from "react/jsx-runtime";
4
+ let b = 0;
5
+ function L(t) {
6
+ const [e, i] = l.useState(t), o = t || e;
7
+ return l.useEffect(() => {
8
+ e == null && (b += 1, i(`mui-${b}`));
9
+ }, [e]), o;
10
+ }
11
+ const N = {
12
+ ...l
13
+ }, m = N.useId;
14
+ function k(t) {
15
+ if (m !== void 0) {
16
+ const e = m();
17
+ return t ?? e;
18
+ }
19
+ return L(t);
20
+ }
21
+ function z({
22
+ controlled: t,
23
+ default: e,
24
+ name: i,
25
+ state: o = "value"
26
+ }) {
27
+ const {
28
+ current: n
29
+ } = l.useRef(t !== void 0), [d, a] = l.useState(e), s = n ? t : d;
30
+ if (process.env.NODE_ENV !== "production") {
31
+ l.useEffect(() => {
32
+ n !== (t !== void 0) && console.error([`MUI: A component is changing the ${n ? "" : "un"}controlled ${o} state of ${i} to be ${n ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
33
+ `));
34
+ }, [o, i, t]);
35
+ const {
36
+ current: p
37
+ } = l.useRef(e);
38
+ l.useEffect(() => {
39
+ !n && !Object.is(p, e) && console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
40
+ `));
41
+ }, [JSON.stringify(e)]);
42
+ }
43
+ const c = l.useCallback((p) => {
44
+ n || a(p);
45
+ }, []);
46
+ return [s, c];
47
+ }
48
+ function O(t) {
49
+ return R("MuiDivider", t);
50
+ }
51
+ A("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
52
+ const W = (t) => {
53
+ const {
54
+ absolute: e,
55
+ children: i,
56
+ classes: o,
57
+ flexItem: n,
58
+ light: d,
59
+ orientation: a,
60
+ textAlign: s,
61
+ variant: c
62
+ } = t;
63
+ return V({
64
+ root: ["root", e && "absolute", c, d && "light", a === "vertical" && "vertical", n && "flexItem", i && "withChildren", i && a === "vertical" && "withChildrenVertical", s === "right" && a !== "vertical" && "textAlignRight", s === "left" && a !== "vertical" && "textAlignLeft"],
65
+ wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
66
+ }, O, o);
67
+ }, E = x("div", {
68
+ name: "MuiDivider",
69
+ slot: "Root",
70
+ overridesResolver: (t, e) => {
71
+ const {
72
+ ownerState: i
73
+ } = t;
74
+ return [e.root, i.absolute && e.absolute, e[i.variant], i.light && e.light, i.orientation === "vertical" && e.vertical, i.flexItem && e.flexItem, i.children && e.withChildren, i.children && i.orientation === "vertical" && e.withChildrenVertical, i.textAlign === "right" && i.orientation !== "vertical" && e.textAlignRight, i.textAlign === "left" && i.orientation !== "vertical" && e.textAlignLeft];
75
+ }
76
+ })(w(({
77
+ theme: t
78
+ }) => ({
79
+ margin: 0,
80
+ // Reset browser default style.
81
+ flexShrink: 0,
82
+ borderWidth: 0,
83
+ borderStyle: "solid",
84
+ borderColor: (t.vars || t).palette.divider,
85
+ borderBottomWidth: "thin",
86
+ variants: [{
87
+ props: {
88
+ absolute: !0
89
+ },
90
+ style: {
91
+ position: "absolute",
92
+ bottom: 0,
93
+ left: 0,
94
+ width: "100%"
95
+ }
96
+ }, {
97
+ props: {
98
+ light: !0
99
+ },
100
+ style: {
101
+ borderColor: t.vars ? `rgba(${t.vars.palette.dividerChannel} / 0.08)` : $(t.palette.divider, 0.08)
102
+ }
103
+ }, {
104
+ props: {
105
+ variant: "inset"
106
+ },
107
+ style: {
108
+ marginLeft: 72
109
+ }
110
+ }, {
111
+ props: {
112
+ variant: "middle",
113
+ orientation: "horizontal"
114
+ },
115
+ style: {
116
+ marginLeft: t.spacing(2),
117
+ marginRight: t.spacing(2)
118
+ }
119
+ }, {
120
+ props: {
121
+ variant: "middle",
122
+ orientation: "vertical"
123
+ },
124
+ style: {
125
+ marginTop: t.spacing(1),
126
+ marginBottom: t.spacing(1)
127
+ }
128
+ }, {
129
+ props: {
130
+ orientation: "vertical"
131
+ },
132
+ style: {
133
+ height: "100%",
134
+ borderBottomWidth: 0,
135
+ borderRightWidth: "thin"
136
+ }
137
+ }, {
138
+ props: {
139
+ flexItem: !0
140
+ },
141
+ style: {
142
+ alignSelf: "stretch",
143
+ height: "auto"
144
+ }
145
+ }, {
146
+ props: ({
147
+ ownerState: e
148
+ }) => !!e.children,
149
+ style: {
150
+ display: "flex",
151
+ textAlign: "center",
152
+ border: 0,
153
+ borderTopStyle: "solid",
154
+ borderLeftStyle: "solid",
155
+ "&::before, &::after": {
156
+ content: '""',
157
+ alignSelf: "center"
158
+ }
159
+ }
160
+ }, {
161
+ props: ({
162
+ ownerState: e
163
+ }) => e.children && e.orientation !== "vertical",
164
+ style: {
165
+ "&::before, &::after": {
166
+ width: "100%",
167
+ borderTop: `thin solid ${(t.vars || t).palette.divider}`,
168
+ borderTopStyle: "inherit"
169
+ }
170
+ }
171
+ }, {
172
+ props: ({
173
+ ownerState: e
174
+ }) => e.orientation === "vertical" && e.children,
175
+ style: {
176
+ flexDirection: "column",
177
+ "&::before, &::after": {
178
+ height: "100%",
179
+ borderLeft: `thin solid ${(t.vars || t).palette.divider}`,
180
+ borderLeftStyle: "inherit"
181
+ }
182
+ }
183
+ }, {
184
+ props: ({
185
+ ownerState: e
186
+ }) => e.textAlign === "right" && e.orientation !== "vertical",
187
+ style: {
188
+ "&::before": {
189
+ width: "90%"
190
+ },
191
+ "&::after": {
192
+ width: "10%"
193
+ }
194
+ }
195
+ }, {
196
+ props: ({
197
+ ownerState: e
198
+ }) => e.textAlign === "left" && e.orientation !== "vertical",
199
+ style: {
200
+ "&::before": {
201
+ width: "10%"
202
+ },
203
+ "&::after": {
204
+ width: "90%"
205
+ }
206
+ }
207
+ }]
208
+ }))), M = x("span", {
209
+ name: "MuiDivider",
210
+ slot: "Wrapper",
211
+ overridesResolver: (t, e) => {
212
+ const {
213
+ ownerState: i
214
+ } = t;
215
+ return [e.wrapper, i.orientation === "vertical" && e.wrapperVertical];
216
+ }
217
+ })(w(({
218
+ theme: t
219
+ }) => ({
220
+ display: "inline-block",
221
+ paddingLeft: `calc(${t.spacing(1)} * 1.2)`,
222
+ paddingRight: `calc(${t.spacing(1)} * 1.2)`,
223
+ whiteSpace: "nowrap",
224
+ variants: [{
225
+ props: {
226
+ orientation: "vertical"
227
+ },
228
+ style: {
229
+ paddingTop: `calc(${t.spacing(1)} * 1.2)`,
230
+ paddingBottom: `calc(${t.spacing(1)} * 1.2)`
231
+ }
232
+ }]
233
+ }))), h = /* @__PURE__ */ l.forwardRef(function(e, i) {
234
+ const o = S({
235
+ props: e,
236
+ name: "MuiDivider"
237
+ }), {
238
+ absolute: n = !1,
239
+ children: d,
240
+ className: a,
241
+ orientation: s = "horizontal",
242
+ component: c = d || s === "vertical" ? "div" : "hr",
243
+ flexItem: p = !1,
244
+ light: y = !1,
245
+ role: f = c !== "hr" ? "separator" : void 0,
246
+ textAlign: I = "center",
247
+ variant: C = "fullWidth",
248
+ ...D
249
+ } = o, u = {
250
+ ...o,
251
+ absolute: n,
252
+ component: c,
253
+ flexItem: p,
254
+ light: y,
255
+ orientation: s,
256
+ role: f,
257
+ textAlign: I,
258
+ variant: C
259
+ }, g = W(u);
260
+ return /* @__PURE__ */ v(E, {
261
+ as: c,
262
+ className: T(g.root, a),
263
+ role: f,
264
+ ref: i,
265
+ ownerState: u,
266
+ "aria-orientation": f === "separator" && (c !== "hr" || s === "vertical") ? s : void 0,
267
+ ...D,
268
+ children: d ? /* @__PURE__ */ v(M, {
269
+ className: g.wrapper,
270
+ ownerState: u,
271
+ children: d
272
+ }) : null
273
+ });
274
+ });
275
+ h && (h.muiSkipListHighlight = !0);
276
+ process.env.NODE_ENV !== "production" && (h.propTypes = {
277
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
278
+ // │ These PropTypes are generated from the TypeScript type definitions. │
279
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
280
+ // └─────────────────────────────────────────────────────────────────────┘
281
+ /**
282
+ * Absolutely position the element.
283
+ * @default false
284
+ */
285
+ absolute: r.bool,
286
+ /**
287
+ * The content of the component.
288
+ */
289
+ children: r.node,
290
+ /**
291
+ * Override or extend the styles applied to the component.
292
+ */
293
+ classes: r.object,
294
+ /**
295
+ * @ignore
296
+ */
297
+ className: r.string,
298
+ /**
299
+ * The component used for the root node.
300
+ * Either a string to use a HTML element or a component.
301
+ */
302
+ component: r.elementType,
303
+ /**
304
+ * If `true`, a vertical divider will have the correct height when used in flex container.
305
+ * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
306
+ * @default false
307
+ */
308
+ flexItem: r.bool,
309
+ /**
310
+ * If `true`, the divider will have a lighter color.
311
+ * @default false
312
+ * @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
313
+ */
314
+ light: r.bool,
315
+ /**
316
+ * The component orientation.
317
+ * @default 'horizontal'
318
+ */
319
+ orientation: r.oneOf(["horizontal", "vertical"]),
320
+ /**
321
+ * @ignore
322
+ */
323
+ role: r.string,
324
+ /**
325
+ * The system prop that allows defining system overrides as well as additional CSS styles.
326
+ */
327
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
328
+ /**
329
+ * The text alignment.
330
+ * @default 'center'
331
+ */
332
+ textAlign: r.oneOf(["center", "left", "right"]),
333
+ /**
334
+ * The variant to use.
335
+ * @default 'fullWidth'
336
+ */
337
+ variant: r.oneOfType([r.oneOf(["fullWidth", "inset", "middle"]), r.string])
338
+ });
339
+ export {
340
+ h as D,
341
+ k as a,
342
+ z as u
343
+ };
@@ -0,0 +1,225 @@
1
+ import * as c from "react";
2
+ import { g as z, a as R, s as I, h as a, m as g, b as f, u as O, c as C, P as e, f as h } from "./DefaultPropsProvider.js";
3
+ import { c as y } from "./createSimplePaletteValueFilter.js";
4
+ import { jsx as T } from "react/jsx-runtime";
5
+ import { B as S, c as $ } from "./ButtonBase.js";
6
+ function x(o) {
7
+ return R("MuiIconButton", o);
8
+ }
9
+ const w = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), j = (o) => {
10
+ const {
11
+ classes: t,
12
+ disabled: r,
13
+ color: s,
14
+ edge: n,
15
+ size: i
16
+ } = o, l = {
17
+ root: ["root", r && "disabled", s !== "default" && `color${a(s)}`, n && `edge${a(n)}`, `size${a(i)}`]
18
+ };
19
+ return h(l, x, t);
20
+ }, k = I(S, {
21
+ name: "MuiIconButton",
22
+ slot: "Root",
23
+ overridesResolver: (o, t) => {
24
+ const {
25
+ ownerState: r
26
+ } = o;
27
+ return [t.root, r.color !== "default" && t[`color${a(r.color)}`], r.edge && t[`edge${a(r.edge)}`], t[`size${a(r.size)}`]];
28
+ }
29
+ })(g(({
30
+ theme: o
31
+ }) => ({
32
+ textAlign: "center",
33
+ flex: "0 0 auto",
34
+ fontSize: o.typography.pxToRem(24),
35
+ padding: 8,
36
+ borderRadius: "50%",
37
+ color: (o.vars || o).palette.action.active,
38
+ transition: o.transitions.create("background-color", {
39
+ duration: o.transitions.duration.shortest
40
+ }),
41
+ variants: [{
42
+ props: (t) => !t.disableRipple,
43
+ style: {
44
+ "--IconButton-hoverBg": o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.action.active, o.palette.action.hoverOpacity),
45
+ "&:hover": {
46
+ backgroundColor: "var(--IconButton-hoverBg)",
47
+ // Reset on touch devices, it doesn't add specificity
48
+ "@media (hover: none)": {
49
+ backgroundColor: "transparent"
50
+ }
51
+ }
52
+ }
53
+ }, {
54
+ props: {
55
+ edge: "start"
56
+ },
57
+ style: {
58
+ marginLeft: -12
59
+ }
60
+ }, {
61
+ props: {
62
+ edge: "start",
63
+ size: "small"
64
+ },
65
+ style: {
66
+ marginLeft: -3
67
+ }
68
+ }, {
69
+ props: {
70
+ edge: "end"
71
+ },
72
+ style: {
73
+ marginRight: -12
74
+ }
75
+ }, {
76
+ props: {
77
+ edge: "end",
78
+ size: "small"
79
+ },
80
+ style: {
81
+ marginRight: -3
82
+ }
83
+ }]
84
+ })), g(({
85
+ theme: o
86
+ }) => ({
87
+ variants: [{
88
+ props: {
89
+ color: "inherit"
90
+ },
91
+ style: {
92
+ color: "inherit"
93
+ }
94
+ }, ...Object.entries(o.palette).filter(y()).map(([t]) => ({
95
+ props: {
96
+ color: t
97
+ },
98
+ style: {
99
+ color: (o.vars || o).palette[t].main
100
+ }
101
+ })), ...Object.entries(o.palette).filter(y()).map(([t]) => ({
102
+ props: {
103
+ color: t
104
+ },
105
+ style: {
106
+ "--IconButton-hoverBg": o.vars ? `rgba(${(o.vars || o).palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f((o.vars || o).palette[t].main, o.palette.action.hoverOpacity)
107
+ }
108
+ })), {
109
+ props: {
110
+ size: "small"
111
+ },
112
+ style: {
113
+ padding: 5,
114
+ fontSize: o.typography.pxToRem(18)
115
+ }
116
+ }, {
117
+ props: {
118
+ size: "large"
119
+ },
120
+ style: {
121
+ padding: 12,
122
+ fontSize: o.typography.pxToRem(28)
123
+ }
124
+ }],
125
+ [`&.${w.disabled}`]: {
126
+ backgroundColor: "transparent",
127
+ color: (o.vars || o).palette.action.disabled
128
+ }
129
+ }))), P = /* @__PURE__ */ c.forwardRef(function(t, r) {
130
+ const s = O({
131
+ props: t,
132
+ name: "MuiIconButton"
133
+ }), {
134
+ edge: n = !1,
135
+ children: i,
136
+ className: l,
137
+ color: v = "default",
138
+ disabled: p = !1,
139
+ disableFocusRipple: d = !1,
140
+ size: b = "medium",
141
+ ...m
142
+ } = s, u = {
143
+ ...s,
144
+ edge: n,
145
+ color: v,
146
+ disabled: p,
147
+ disableFocusRipple: d,
148
+ size: b
149
+ }, B = j(u);
150
+ return /* @__PURE__ */ T(k, {
151
+ className: C(B.root, l),
152
+ centerRipple: !0,
153
+ focusRipple: !d,
154
+ disabled: p,
155
+ ref: r,
156
+ ...m,
157
+ ownerState: u,
158
+ children: i
159
+ });
160
+ });
161
+ process.env.NODE_ENV !== "production" && (P.propTypes = {
162
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
163
+ // │ These PropTypes are generated from the TypeScript type definitions. │
164
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
165
+ // └─────────────────────────────────────────────────────────────────────┘
166
+ /**
167
+ * The icon to display.
168
+ */
169
+ children: $(e.node, (o) => c.Children.toArray(o.children).some((r) => /* @__PURE__ */ c.isValidElement(r) && r.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
170
+ `)) : null),
171
+ /**
172
+ * Override or extend the styles applied to the component.
173
+ */
174
+ classes: e.object,
175
+ /**
176
+ * @ignore
177
+ */
178
+ className: e.string,
179
+ /**
180
+ * The color of the component.
181
+ * It supports both default and custom theme colors, which can be added as shown in the
182
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
183
+ * @default 'default'
184
+ */
185
+ color: e.oneOfType([e.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
186
+ /**
187
+ * If `true`, the component is disabled.
188
+ * @default false
189
+ */
190
+ disabled: e.bool,
191
+ /**
192
+ * If `true`, the keyboard focus ripple is disabled.
193
+ * @default false
194
+ */
195
+ disableFocusRipple: e.bool,
196
+ /**
197
+ * If `true`, the ripple effect is disabled.
198
+ *
199
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
200
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
201
+ * @default false
202
+ */
203
+ disableRipple: e.bool,
204
+ /**
205
+ * If given, uses a negative margin to counteract the padding on one
206
+ * side (this is often helpful for aligning the left or right
207
+ * side of the icon with content above or below, without ruining the border
208
+ * size and shape).
209
+ * @default false
210
+ */
211
+ edge: e.oneOf(["end", "start", !1]),
212
+ /**
213
+ * The size of the component.
214
+ * `small` is equivalent to the dense button styling.
215
+ * @default 'medium'
216
+ */
217
+ size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
218
+ /**
219
+ * The system prop that allows defining system overrides as well as additional CSS styles.
220
+ */
221
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
222
+ });
223
+ export {
224
+ P as I
225
+ };