@xyo-network/react-xns 3.0.21 → 3.0.22
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/dist/browser/components/XnsNameCapture/Props.d.ts +1 -5
- package/dist/browser/components/XnsNameCapture/Props.d.ts.map +1 -1
- package/dist/browser/components/XnsNameCapture/SecondaryLink.d.ts +0 -3
- package/dist/browser/components/XnsNameCapture/SecondaryLink.d.ts.map +1 -1
- package/dist/browser/components/XnsNameCapture/XnsNameCapture.d.ts.map +1 -1
- package/dist/browser/components/XnsNameCapture/XnsNameCaptureWithContext.d.ts.map +1 -1
- package/dist/browser/components/XnsNameCapture/hooks/index.d.ts +0 -1
- package/dist/browser/components/XnsNameCapture/hooks/index.d.ts.map +1 -1
- package/dist/browser/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.d.ts +1 -3
- package/dist/browser/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.d.ts.map +1 -1
- package/dist/browser/index.mjs +19 -49
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/XnsNameCapture/Props.ts +1 -5
- package/src/components/XnsNameCapture/SecondaryLink.tsx +6 -11
- package/src/components/XnsNameCapture/XnsNameCapture.tsx +5 -9
- package/src/components/XnsNameCapture/XnsNameCaptureWithContext.tsx +2 -7
- package/src/components/XnsNameCapture/hooks/index.ts +0 -1
- package/dist/browser/components/XnsNameCapture/hooks/useXnsNameCaptureProviders.d.ts +0 -401
- package/dist/browser/components/XnsNameCapture/hooks/useXnsNameCaptureProviders.d.ts.map +0 -1
- package/src/components/XnsNameCapture/hooks/useXnsNameCaptureProviders.ts +0 -13
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import type { UserEventHandler } from '@xylabs/pixel';
|
|
2
1
|
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
-
import type { Mixpanel } from 'mixpanel-browser';
|
|
4
2
|
import type { ReactNode } from 'react';
|
|
5
3
|
import type { To } from 'react-router-dom';
|
|
6
4
|
export interface XnsNameCaptureBuyCallbacks {
|
|
7
5
|
onCaptureName?: (name: string) => Promise<void>;
|
|
8
6
|
}
|
|
9
7
|
export interface XnsNameCaptureTrackingProps {
|
|
10
|
-
event?: string;
|
|
11
8
|
funnel?: string;
|
|
12
|
-
|
|
9
|
+
intent?: string;
|
|
13
10
|
placement?: string;
|
|
14
|
-
userEvents?: UserEventHandler<Record<string, unknown>>;
|
|
15
11
|
}
|
|
16
12
|
export interface XnsNameCaptureRoutingProps {
|
|
17
13
|
navigate?: (to: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/Props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/Props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAE1C,MAAM,WAAW,0BAA0B;IACzC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAChD;AAKD,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAKD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,KAAK,CAAA;IACpB,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAKD,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACpC;AAED,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB,EAClE,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,YAAY;CACZ;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAA;CAAE,CAAA"}
|
|
@@ -3,9 +3,6 @@ import type { Dispatch } from 'react';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import type { XnsNameCaptureBuyCallbacks, XnsNameCaptureRoutingProps, XnsNameCaptureTrackingProps } from './Props.ts';
|
|
5
5
|
export interface XnsCaptureSecondaryLinkProps extends XnsNameCaptureTrackingProps, XnsNameCaptureRoutingProps, XnsNameCaptureBuyCallbacks, LinkExProps {
|
|
6
|
-
event?: string;
|
|
7
|
-
funnel?: string;
|
|
8
|
-
placement?: string;
|
|
9
6
|
setError?: Dispatch<Error | undefined>;
|
|
10
7
|
text?: string;
|
|
11
8
|
xnsName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryLink.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/SecondaryLink.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"SecondaryLink.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/SecondaryLink.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAIrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,0BAA0B,EAAE,0BAA0B,EAAE,2BAA2B,EACpF,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,4BAA6B,SAAQ,2BAA2B,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,WAAW;IACpJ,QAAQ,CAAC,EAAE,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,CAAA;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAyC1E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XnsNameCapture.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/XnsNameCapture.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAKpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAGrD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"XnsNameCapture.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/XnsNameCapture.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAKpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAGrD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkGxD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XnsNameCaptureWithContext.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/XnsNameCaptureWithContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"XnsNameCaptureWithContext.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/XnsNameCaptureWithContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAGrD,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAWnE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/XnsNameCapture/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/XnsNameCapture/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
@@ -10,11 +10,9 @@ export declare const useXnsNameCaptureRouting: (props: XnsNameCaptureProps) => {
|
|
|
10
10
|
mobileButtonText?: string;
|
|
11
11
|
onNameChange?: (name: string) => void;
|
|
12
12
|
showSecondary?: boolean | import("react").ReactNode;
|
|
13
|
-
event?: string;
|
|
14
13
|
funnel?: string;
|
|
15
|
-
|
|
14
|
+
intent?: string;
|
|
16
15
|
placement?: string;
|
|
17
|
-
userEvents?: import("@xylabs/pixel").UserEventHandler<Record<string, unknown>>;
|
|
18
16
|
onCaptureName?: (name: string) => Promise<void>;
|
|
19
17
|
to?: import("react-router-dom").To;
|
|
20
18
|
background?: boolean;
|
package/dist/browser/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useXnsNameCaptureRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD,eAAO,MAAM,wBAAwB,UAAW,mBAAmB
|
|
1
|
+
{"version":3,"file":"useXnsNameCaptureRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD,eAAO,MAAM,wBAAwB,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAe8sC,MAAO,aAAa;eAA4wE,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAiI,MAAO,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADntH,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -148,27 +148,15 @@ var useXnsNameCaptureRouting = /* @__PURE__ */ __name((props) => {
|
|
|
148
148
|
]);
|
|
149
149
|
}, "useXnsNameCaptureRouting");
|
|
150
150
|
|
|
151
|
-
// src/components/XnsNameCapture/hooks/useXnsNameCaptureProviders.ts
|
|
152
|
-
import { useMixpanel } from "@xylabs/react-mixpanel";
|
|
153
|
-
import { useMemo as useMemo3 } from "react";
|
|
154
|
-
var useXnsNameCaptureProviders = /* @__PURE__ */ __name((props) => {
|
|
155
|
-
const mixpanel = useMixpanel();
|
|
156
|
-
return useMemo3(() => ({
|
|
157
|
-
...props,
|
|
158
|
-
mixpanel: props.mixpanel ?? mixpanel
|
|
159
|
-
}), [
|
|
160
|
-
props,
|
|
161
|
-
mixpanel
|
|
162
|
-
]);
|
|
163
|
-
}, "useXnsNameCaptureProviders");
|
|
164
|
-
|
|
165
151
|
// src/components/XnsNameCapture/SecondaryLink.tsx
|
|
166
152
|
import { ArrowForwardRounded } from "@mui/icons-material";
|
|
167
153
|
import { Stack } from "@mui/material";
|
|
168
154
|
import { LinkEx } from "@xylabs/react-link";
|
|
155
|
+
import { useUserEvents } from "@xylabs/react-pixel";
|
|
169
156
|
import { XnsNameHelper as XnsNameHelper2 } from "@xyo-network/xns-record-payloadset-plugins";
|
|
170
157
|
import React3 from "react";
|
|
171
|
-
var XnsCaptureSecondaryLink = /* @__PURE__ */ __name(({
|
|
158
|
+
var XnsCaptureSecondaryLink = /* @__PURE__ */ __name(({ funnel = "xns", navigate, onCaptureName, paramsString = "", intent, placement = "", setError, text = "Or make a free reservation", to = "/xns/reservation", xnsName, ...props }) => {
|
|
159
|
+
const userEvents = useUserEvents("warn");
|
|
172
160
|
return /* @__PURE__ */ React3.createElement(LinkEx, {
|
|
173
161
|
paddingX: 0,
|
|
174
162
|
color: "inherit",
|
|
@@ -177,17 +165,14 @@ var XnsCaptureSecondaryLink = /* @__PURE__ */ __name(({ event = "Click to Reserv
|
|
|
177
165
|
textUnderlineOffset: "5px"
|
|
178
166
|
},
|
|
179
167
|
onClick: /* @__PURE__ */ __name(async () => {
|
|
180
|
-
mixpanel?.track(event, {
|
|
181
|
-
Funnel: funnel,
|
|
182
|
-
Placement: placement
|
|
183
|
-
});
|
|
184
168
|
const formattedXnsName = `${xnsName}.xyo`;
|
|
185
169
|
const helper = XnsNameHelper2.fromString(formattedXnsName);
|
|
186
170
|
const [valid, errors] = await helper.validate();
|
|
187
171
|
if (valid) {
|
|
188
172
|
await userEvents?.userClick({
|
|
189
|
-
|
|
190
|
-
|
|
173
|
+
funnel,
|
|
174
|
+
placement,
|
|
175
|
+
intent
|
|
191
176
|
});
|
|
192
177
|
navigate?.(`${to}?username=${xnsName}${paramsString}`);
|
|
193
178
|
await onCaptureName?.(xnsName);
|
|
@@ -232,51 +217,38 @@ var navigateWithUsername = /* @__PURE__ */ __name((xnsName, paramsString, naviga
|
|
|
232
217
|
}, "navigateWithUsername");
|
|
233
218
|
|
|
234
219
|
// src/components/XnsNameCapture/XnsNameCapture.tsx
|
|
235
|
-
var XnsNameCapture = /* @__PURE__ */ __name(({ autoFocus = false, buttonText = "Buy My Name", children, defaultXnsName, errorUi = "alert",
|
|
220
|
+
var XnsNameCapture = /* @__PURE__ */ __name(({ autoFocus = false, buttonText = "Buy My Name", children, defaultXnsName, errorUi = "alert", funnel = "xns", intent = "unset", mobileButtonText = "Buy", navigate, onCaptureName: onCaptureNameProp, onNameChange, paramsString = "", placement = "", routingError, showSecondary = false, to = "/xns/estimation", ...props }) => {
|
|
236
221
|
const [xnsName, setXnsName] = useState2(() => defaultXnsName ?? "");
|
|
237
222
|
const [error, setError] = useState2(routingError);
|
|
238
223
|
const theme = useTheme3();
|
|
239
224
|
const isMobile = useMediaQuery2(theme.breakpoints.down("md"));
|
|
240
225
|
const captureDisabled = !xnsName || xnsName.length < MIN_DOMAIN_LENGTH2;
|
|
241
|
-
const handleChange = /* @__PURE__ */ __name((
|
|
242
|
-
const NsName = XnsNameHelper3.mask(
|
|
226
|
+
const handleChange = /* @__PURE__ */ __name((event) => {
|
|
227
|
+
const NsName = XnsNameHelper3.mask(event.target.value);
|
|
243
228
|
onNameChange?.(NsName);
|
|
244
229
|
setXnsName(NsName);
|
|
245
230
|
setError(void 0);
|
|
246
231
|
}, "handleChange");
|
|
247
232
|
const onCaptureName = useCallback(async () => {
|
|
248
233
|
if (captureDisabled) return;
|
|
249
|
-
mixpanel?.track(event, {
|
|
250
|
-
Funnel: funnel,
|
|
251
|
-
Placement: placement
|
|
252
|
-
});
|
|
253
234
|
const formattedXnsName = `${xnsName}.xyo`;
|
|
254
235
|
const helper = XnsNameHelper3.fromString(formattedXnsName);
|
|
255
236
|
const [valid, errors] = await helper.validate();
|
|
256
237
|
if (valid) {
|
|
257
|
-
await userEvents?.userClick({
|
|
258
|
-
elementName: event,
|
|
259
|
-
elementType: "xns-cta"
|
|
260
|
-
});
|
|
261
238
|
await onCaptureNameProp?.(xnsName);
|
|
262
239
|
navigateWithUsername(xnsName, paramsString, navigate, to);
|
|
263
240
|
} else {
|
|
264
241
|
setError(new Error(errors.join(", ")));
|
|
265
242
|
}
|
|
266
243
|
}, [
|
|
267
|
-
event,
|
|
268
|
-
funnel,
|
|
269
|
-
mixpanel,
|
|
270
244
|
paramsString,
|
|
271
|
-
placement,
|
|
272
245
|
to,
|
|
273
|
-
userEvents,
|
|
274
246
|
xnsName,
|
|
275
247
|
onCaptureNameProp,
|
|
276
248
|
navigate
|
|
277
249
|
]);
|
|
278
|
-
const onKeyDown = useCallback(async (
|
|
279
|
-
if (
|
|
250
|
+
const onKeyDown = useCallback(async (event) => {
|
|
251
|
+
if (event.key === "Enter" && !captureDisabled) {
|
|
280
252
|
await onCaptureName?.();
|
|
281
253
|
}
|
|
282
254
|
}, [
|
|
@@ -303,6 +275,9 @@ var XnsNameCapture = /* @__PURE__ */ __name(({ autoFocus = false, buttonText = "
|
|
|
303
275
|
onBlur: handleChange
|
|
304
276
|
}), /* @__PURE__ */ React4.createElement(ButtonEx, {
|
|
305
277
|
disabled: captureDisabled,
|
|
278
|
+
funnel,
|
|
279
|
+
intent,
|
|
280
|
+
placement,
|
|
306
281
|
variant: "contained",
|
|
307
282
|
color: "success",
|
|
308
283
|
endIcon: /* @__PURE__ */ React4.createElement(KeyboardArrowRightRounded, null),
|
|
@@ -326,19 +301,15 @@ var XnsNameCapture = /* @__PURE__ */ __name(({ autoFocus = false, buttonText = "
|
|
|
326
301
|
}, "XnsNameCapture");
|
|
327
302
|
|
|
328
303
|
// src/components/XnsNameCapture/XnsNameCaptureWithContext.tsx
|
|
329
|
-
import {
|
|
330
|
-
import React5, { useMemo as useMemo4 } from "react";
|
|
304
|
+
import React5, { useMemo as useMemo3 } from "react";
|
|
331
305
|
var XnsNameCaptureWithContext = /* @__PURE__ */ __name((props) => {
|
|
332
306
|
const routingProps = useXnsNameCaptureRouting(props);
|
|
333
|
-
const
|
|
334
|
-
const userEvents = useUserEvents(false);
|
|
335
|
-
const updatedProps = useMemo4(() => ({
|
|
307
|
+
const updatedProps = useMemo3(() => ({
|
|
336
308
|
...props,
|
|
337
|
-
...routingProps
|
|
338
|
-
...providersProps,
|
|
339
|
-
userEvents: props.userEvents ?? userEvents
|
|
309
|
+
...routingProps
|
|
340
310
|
}), [
|
|
341
|
-
|
|
311
|
+
routingProps,
|
|
312
|
+
props
|
|
342
313
|
]);
|
|
343
314
|
return /* @__PURE__ */ React5.createElement(XnsNameCapture, updatedProps);
|
|
344
315
|
}, "XnsNameCaptureWithContext");
|
|
@@ -348,7 +319,6 @@ export {
|
|
|
348
319
|
XnsNameCapture,
|
|
349
320
|
XnsNameCaptureErrors,
|
|
350
321
|
XnsNameCaptureWithContext,
|
|
351
|
-
useXnsNameCaptureProviders,
|
|
352
322
|
useXnsNameCaptureRouting,
|
|
353
323
|
useXnsNameFromLocation
|
|
354
324
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/EstimateName/EstimateNameTextField.tsx","../../src/components/XnsNameCapture/Errors.tsx","../../src/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.ts","../../src/components/XnsNameCapture/hooks/routing/useXnsNameFromLocation.ts","../../src/components/XnsNameCapture/hooks/useXnsNameCaptureProviders.ts","../../src/components/XnsNameCapture/SecondaryLink.tsx","../../src/components/XnsNameCapture/XnsNameCapture.tsx","../../src/components/XnsNameCapture/lib/navigateWithUsername.ts","../../src/components/XnsNameCapture/XnsNameCaptureWithContext.tsx"],"sourcesContent":["import type { StandardTextFieldProps, TextFieldProps } from '@mui/material'\nimport {\n alpha, TextField, useTheme,\n} from '@mui/material'\nimport { MIN_DOMAIN_LENGTH, XnsNameHelper } from '@xyo-network/xns-record-payloadset-plugins'\nimport React, {\n useLayoutEffect, useMemo, useRef, useState,\n} from 'react'\n\nexport interface XnsEstimateNameTextFieldProps {\n maskOutput?: boolean\n}\n\nexport const XnsEstimateNameTextField: React.FC<XnsEstimateNameTextFieldProps & TextFieldProps> = ({\n maskOutput = true, onChange: onChangeProp, onBlur: onBlurProp, value, ...props\n}) => {\n const theme = useTheme()\n const [validLength, setValidLength] = useState(false)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n // watch for external changes to the value and update the validLength state\n useMemo(() => {\n const validValueLength = !!(value && typeof value === 'string' && value.length >= MIN_DOMAIN_LENGTH)\n setValidLength(validValueLength)\n }, [value])\n\n // Update the input value when the value prop changes\n // NOTE: the intent of this component is to remain uncontrolled to avoid the need to manage the value state\n // Therefore, we use useLayoutEffect to update the input value directly.\n useLayoutEffect(() => {\n if (inputRef.current && typeof value === 'string') {\n inputRef.current.value = value\n }\n }, [value])\n\n // override onChange to mask the input and update the event value\n const handleChange: StandardTextFieldProps['onChange'] = (event) => {\n if (maskOutput) {\n const value = event.target.value\n event.target.value = XnsNameHelper.mask(value)\n }\n onChangeProp?.(event)\n\n if (inputRef.current) {\n setValidLength(inputRef.current.value.length >= MIN_DOMAIN_LENGTH)\n }\n }\n\n // override onBlur to do a final mask of the input and update the event value\n const handleBlur: StandardTextFieldProps['onBlur'] = (event) => {\n if (maskOutput) {\n const value = event.target.value\n event.target.value = XnsNameHelper.mask(value, { maskStartEndHyphens: true })\n }\n onBlurProp?.(event)\n }\n\n return (\n <TextField\n inputProps={{ style: { color: validLength ? theme.palette.text.primary : alpha(theme.palette.text.primary, 0.5) } }}\n inputRef={inputRef}\n onBlur={handleBlur}\n onChange={handleChange}\n {...props}\n />\n )\n}\n","import {\n Alert, Snackbar, useMediaQuery, useTheme,\n} from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nexport interface XnsNameCaptureErrorsProps {\n error?: Error\n errorUi?: 'alert' | 'toast'\n resetError?: () => void\n}\n\nexport const XnsNameCaptureErrors: React.FC<XnsNameCaptureErrorsProps> = ({\n error, errorUi, resetError,\n}) => {\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('md'))\n\n return (\n <>\n {(errorUi === 'toast')\n ? (\n <Snackbar\n open={!!error}\n message={error?.toString()}\n autoHideDuration={3000}\n onClose={() => resetError?.()}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n >\n <Alert\n severity=\"error\"\n sx={{\n width: '100%', display: (isMobile && !error) ? 'none' : undefined, visibility: error ? 'visible' : 'hidden',\n }}\n >\n {error?.message}\n </Alert>\n </Snackbar>\n )\n : (() => {\n // setTimeout(() => setError(undefined), 1500)\n return (\n <FlexRow alignSelf=\"stretch\">\n <Alert\n severity=\"error\"\n sx={{ display: (isMobile && !error) ? 'none' : undefined, visibility: error ? 'visible' : 'hidden' }}\n >\n {error?.message}\n </Alert>\n </FlexRow>\n )\n })()}\n </>\n )\n}\n","import { useMemo } from 'react'\nimport { useNavigate, useSearchParams } from 'react-router-dom'\n\nimport type { XnsNameCaptureProps } from '../../Props.ts'\nimport { useXnsNameFromLocation } from './useXnsNameFromLocation.ts'\n\nexport const useXnsNameCaptureRouting = (props: XnsNameCaptureProps) => {\n const [params] = useSearchParams()\n\n const navigate = useNavigate()\n\n const [name, error] = useXnsNameFromLocation()\n\n return useMemo(() => ({\n ...props,\n defaultXnsName: name,\n routingError: error,\n navigate: props.navigate ?? ((to: string) => navigate(to)),\n paramsString: props.paramsString ? `${props.paramsString}${params.toString()}` : params.toString(),\n }), [props, params, name, error])\n}\n","import { useLocation } from 'react-router-dom'\n\n/**\n * Assumes the user was redirected with a link that contains a username query parameter.\n * @returns The xNS name from the URI username query parameter.\n */\nexport const useXnsNameFromLocation = (): [name: string | undefined, error: Error | undefined] => {\n const location = useLocation()\n const search = new URLSearchParams(location.search)\n const rawName = (search.get('xnsname') ?? search.get('name') ?? search.get('username') ?? '').toLowerCase()\n switch (rawName?.split('.').length) {\n case 1: {\n return [rawName, undefined]\n }\n case 2: {\n const rawNameParts = rawName.split('.')\n if (rawNameParts[1] !== 'xyo') {\n return [, new Error('Invalid xNS name [Bad root]')]\n }\n return [rawNameParts[0], undefined]\n }\n default: {\n return [, new Error('Invalid xNS name [Too many parts]')]\n }\n }\n}\n","import { useMixpanel } from '@xylabs/react-mixpanel'\nimport { useMemo } from 'react'\n\nimport type { XnsNameCaptureProps } from '../Props.ts'\n\nexport const useXnsNameCaptureProviders = (props: XnsNameCaptureProps) => {\n const mixpanel = useMixpanel()\n\n return useMemo(() => ({\n ...props,\n mixpanel: props.mixpanel ?? mixpanel,\n }), [props, mixpanel])\n}\n","import { ArrowForwardRounded } from '@mui/icons-material'\nimport { Stack } from '@mui/material'\nimport type { LinkExProps } from '@xylabs/react-link'\nimport { LinkEx } from '@xylabs/react-link'\nimport { XnsNameHelper } from '@xyo-network/xns-record-payloadset-plugins'\nimport type { Dispatch } from 'react'\nimport React from 'react'\n\nimport type {\n XnsNameCaptureBuyCallbacks, XnsNameCaptureRoutingProps, XnsNameCaptureTrackingProps,\n} from './Props.ts'\n\nexport interface XnsCaptureSecondaryLinkProps extends XnsNameCaptureTrackingProps, XnsNameCaptureRoutingProps, XnsNameCaptureBuyCallbacks, LinkExProps {\n event?: string\n funnel?: string\n placement?: string\n setError?: Dispatch<Error | undefined>\n text?: string\n xnsName: string\n}\n\nexport const XnsCaptureSecondaryLink: React.FC<XnsCaptureSecondaryLinkProps> = ({\n event = 'Click to Reservation',\n funnel = 'xns',\n mixpanel,\n navigate,\n onCaptureName,\n paramsString = '',\n placement = '',\n setError,\n text = 'Or make a free reservation',\n to = '/xns/reservation',\n userEvents,\n xnsName,\n ...props\n}) => {\n return (\n <LinkEx\n paddingX={0}\n color=\"inherit\"\n style={{ textDecoration: 'underline', textUnderlineOffset: '5px' }}\n onClick={async () => {\n mixpanel?.track(event, {\n Funnel: funnel,\n Placement: placement,\n })\n const formattedXnsName = `${xnsName}.xyo`\n const helper = XnsNameHelper.fromString(formattedXnsName)\n const [valid, errors] = await helper.validate()\n if (valid) {\n await userEvents?.userClick({ elementName: event, elementType: 'xns-cta' })\n navigate?.(`${to}?username=${xnsName}${paramsString}`)\n await onCaptureName?.(xnsName)\n } else {\n setError?.(new Error(errors.join(', ')))\n }\n }}\n {...props}\n >\n <Stack flexDirection=\"row\" gap={0.5} alignItems=\"center\" sx={{ cursor: 'pointer' }}>\n {text}\n <ArrowForwardRounded />\n </Stack>\n </LinkEx>\n )\n}\n","import { KeyboardArrowRightRounded } from '@mui/icons-material'\nimport type { StandardTextFieldProps } from '@mui/material'\nimport { useMediaQuery, useTheme } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { MIN_DOMAIN_LENGTH, XnsNameHelper } from '@xyo-network/xns-record-payloadset-plugins'\nimport type { KeyboardEventHandler } from 'react'\nimport React, { useCallback, useState } from 'react'\n\nimport { XnsEstimateNameTextField } from '../EstimateName/index.ts'\nimport { XnsNameCaptureErrors } from './Errors.tsx'\nimport { navigateWithUsername } from './lib/index.ts'\nimport type { XnsNameCaptureProps } from './Props.ts'\nimport { XnsCaptureSecondaryLink } from './SecondaryLink.js'\n\nexport const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({\n autoFocus = false,\n buttonText = 'Buy My Name',\n children,\n defaultXnsName,\n errorUi = 'alert',\n event = 'Click to Checkout',\n funnel = 'xns',\n mixpanel,\n mobileButtonText = 'Buy',\n navigate,\n onCaptureName: onCaptureNameProp,\n onNameChange,\n paramsString = '',\n placement = '',\n routingError,\n showSecondary = false,\n to = '/xns/estimation',\n userEvents,\n ...props\n}) => {\n const [xnsName, setXnsName] = useState<string>(() => defaultXnsName ?? '')\n const [error, setError] = useState<Error | undefined>(routingError)\n\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('md'))\n\n const captureDisabled = !xnsName || xnsName.length < MIN_DOMAIN_LENGTH\n\n const handleChange: StandardTextFieldProps['onChange'] = (event) => {\n const NsName = XnsNameHelper.mask(event.target.value)\n onNameChange?.(NsName)\n setXnsName(NsName)\n setError(undefined)\n }\n\n const onCaptureName = useCallback(async () => {\n if (captureDisabled) return\n mixpanel?.track(event, {\n Funnel: funnel,\n Placement: placement,\n })\n const formattedXnsName = `${xnsName}.xyo`\n const helper = XnsNameHelper.fromString(formattedXnsName)\n const [valid, errors] = await helper.validate()\n if (valid) {\n await userEvents?.userClick({ elementName: event, elementType: 'xns-cta' })\n await onCaptureNameProp?.(xnsName)\n\n navigateWithUsername(xnsName, paramsString, navigate, to)\n } else {\n setError(new Error(errors.join(', ')))\n }\n }, [event, funnel, mixpanel, paramsString, placement, to, userEvents, xnsName, onCaptureNameProp, navigate])\n\n const onKeyDown: KeyboardEventHandler<HTMLDivElement> = useCallback(async (event) => {\n if (event.key === 'Enter' && !captureDisabled) {\n await onCaptureName?.()\n }\n }, [captureDisabled, onCaptureName])\n\n return (\n <FlexCol gap={showSecondary ? 1.5 : 0} alignItems=\"center\" {...props}>\n <FlexRow gap={1}>\n <XnsEstimateNameTextField\n autoFocus={autoFocus}\n label=\"xNS Name\"\n variant=\"outlined\"\n size=\"small\"\n value={xnsName ?? ''}\n onKeyDown={onKeyDown}\n onChange={handleChange}\n onBlur={handleChange}\n />\n <ButtonEx\n disabled={captureDisabled}\n variant=\"contained\"\n color=\"success\"\n endIcon={<KeyboardArrowRightRounded />}\n onClick={onCaptureName}\n >\n {isMobile ? mobileButtonText : buttonText}\n </ButtonEx>\n </FlexRow>\n {(showSecondary === true)\n ? (\n <XnsCaptureSecondaryLink\n xnsName={xnsName}\n placement={placement}\n funnel={funnel}\n setError={setError}\n />\n )\n : null}\n {\n // eslint-disable-next-line unicorn/prefer-logical-operator-over-ternary\n showSecondary ? showSecondary : null\n }\n {children}\n <XnsNameCaptureErrors error={error} errorUi={errorUi} resetError={() => setError(undefined)} />\n </FlexCol>\n )\n}\n","import type { To } from 'react-router-dom'\n\nexport const navigateWithUsername = (xnsName: string, paramsString: string, navigate?: ((to: string) => void), to?: To) => {\n // avoid duplicating the username param\n const params = new URLSearchParams(paramsString)\n const usernameParam = params.get('username')\n if (usernameParam) {\n // if username param is the same as the xnsName, navigate\n if (usernameParam === xnsName) {\n navigate?.(`${to}?${paramsString}`)\n }\n if (usernameParam !== xnsName) {\n // if username param is different, replace it\n params.set('username', xnsName)\n navigate?.(`${to}?${params.toString()}`)\n }\n } else {\n // if no username param, include it\n navigate?.(`${to}?username=${xnsName}&${paramsString}`)\n }\n}\n","import { useUserEvents } from '@xylabs/react-pixel'\nimport React, { useMemo } from 'react'\n\nimport { useXnsNameCaptureProviders, useXnsNameCaptureRouting } from './hooks/index.ts'\nimport type { XnsNameCaptureProps } from './Props.ts'\nimport { XnsNameCapture } from './XnsNameCapture.tsx'\n\nexport const XnsNameCaptureWithContext: React.FC<XnsNameCaptureProps> = (props) => {\n const routingProps = useXnsNameCaptureRouting(props)\n const providersProps = useXnsNameCaptureProviders(routingProps)\n const userEvents = useUserEvents(false)\n\n const updatedProps = useMemo<XnsNameCaptureProps>(() => ({\n ...props,\n ...routingProps,\n ...providersProps,\n userEvents: props.userEvents ?? userEvents,\n }), [providersProps])\n\n return (\n <XnsNameCapture {...updatedProps} />\n )\n}\n"],"mappings":";;;;AACA,SACEA,OAAOC,WAAWC,gBACb;AACP,SAASC,mBAAmBC,qBAAqB;AACjD,OAAOC,SACLC,iBAAiBC,SAASC,QAAQC,gBAC7B;AAMA,IAAMC,2BAAqF,wBAAC,EACjGC,aAAa,MAAMC,UAAUC,cAAcC,QAAQC,YAAYC,OAAO,GAAGC,MAAAA,MAC1E;AACC,QAAMC,QAAQC,SAAAA;AACd,QAAM,CAACC,aAAaC,cAAAA,IAAkBC,SAAS,KAAA;AAE/C,QAAMC,WAAWC,OAAyB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AAMI,aAAaC,cAAc,KAAA;AAEjC,QAAMC,eAAeC,SAA6B,OAAO;IACvD,GAAGR;IACH,GAAGC;IACH,GAAGE;IACHE,YAAYL,MAAMK,cAAcA;EAClC,IAAI;IAACF;GAAe;AAEpB,SACE,gBAAAM,OAAA,cAACC,gBAAmBH,YAAAA;AAExB,GAfwE;","names":["alpha","TextField","useTheme","MIN_DOMAIN_LENGTH","XnsNameHelper","React","useLayoutEffect","useMemo","useRef","useState","XnsEstimateNameTextField","maskOutput","onChange","onChangeProp","onBlur","onBlurProp","value","props","theme","useTheme","validLength","setValidLength","useState","inputRef","useRef","useMemo","validValueLength","length","MIN_DOMAIN_LENGTH","useLayoutEffect","current","handleChange","event","target","XnsNameHelper","mask","handleBlur","maskStartEndHyphens","TextField","inputProps","style","color","palette","text","primary","alpha","Alert","Snackbar","useMediaQuery","useTheme","FlexRow","React","XnsNameCaptureErrors","error","errorUi","resetError","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","React","Snackbar","open","message","toString","autoHideDuration","onClose","anchorOrigin","vertical","horizontal","Alert","severity","sx","width","display","undefined","visibility","FlexRow","alignSelf","useMemo","useNavigate","useSearchParams","useLocation","useXnsNameFromLocation","location","useLocation","search","URLSearchParams","rawName","get","toLowerCase","split","length","undefined","rawNameParts","Error","useXnsNameCaptureRouting","props","params","useSearchParams","navigate","useNavigate","name","error","useXnsNameFromLocation","useMemo","defaultXnsName","routingError","to","paramsString","toString","useMixpanel","useMemo","useXnsNameCaptureProviders","props","mixpanel","useMixpanel","useMemo","ArrowForwardRounded","Stack","LinkEx","XnsNameHelper","React","XnsCaptureSecondaryLink","event","funnel","mixpanel","navigate","onCaptureName","paramsString","placement","setError","text","to","userEvents","xnsName","props","React","LinkEx","paddingX","color","style","textDecoration","textUnderlineOffset","onClick","track","Funnel","Placement","formattedXnsName","helper","XnsNameHelper","fromString","valid","errors","validate","userClick","elementName","elementType","Error","join","Stack","flexDirection","gap","alignItems","sx","cursor","ArrowForwardRounded","KeyboardArrowRightRounded","useMediaQuery","useTheme","ButtonEx","FlexCol","FlexRow","MIN_DOMAIN_LENGTH","XnsNameHelper","React","useCallback","useState","navigateWithUsername","xnsName","paramsString","navigate","to","params","URLSearchParams","usernameParam","get","set","toString","XnsNameCapture","autoFocus","buttonText","children","defaultXnsName","errorUi","event","funnel","mixpanel","mobileButtonText","navigate","onCaptureName","onCaptureNameProp","onNameChange","paramsString","placement","routingError","showSecondary","to","userEvents","props","xnsName","setXnsName","useState","error","setError","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","captureDisabled","length","MIN_DOMAIN_LENGTH","handleChange","NsName","XnsNameHelper","mask","target","value","undefined","useCallback","track","Funnel","Placement","formattedXnsName","helper","fromString","valid","errors","validate","userClick","elementName","elementType","navigateWithUsername","Error","join","onKeyDown","key","React","FlexCol","gap","alignItems","FlexRow","XnsEstimateNameTextField","label","variant","size","onChange","onBlur","ButtonEx","disabled","color","endIcon","KeyboardArrowRightRounded","onClick","XnsCaptureSecondaryLink","XnsNameCaptureErrors","resetError","useUserEvents","React","useMemo","XnsNameCaptureWithContext","props","routingProps","useXnsNameCaptureRouting","providersProps","useXnsNameCaptureProviders","userEvents","useUserEvents","updatedProps","useMemo","React","XnsNameCapture"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/EstimateName/EstimateNameTextField.tsx","../../src/components/XnsNameCapture/Errors.tsx","../../src/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.ts","../../src/components/XnsNameCapture/hooks/routing/useXnsNameFromLocation.ts","../../src/components/XnsNameCapture/SecondaryLink.tsx","../../src/components/XnsNameCapture/XnsNameCapture.tsx","../../src/components/XnsNameCapture/lib/navigateWithUsername.ts","../../src/components/XnsNameCapture/XnsNameCaptureWithContext.tsx"],"sourcesContent":["import type { StandardTextFieldProps, TextFieldProps } from '@mui/material'\nimport {\n alpha, TextField, useTheme,\n} from '@mui/material'\nimport { MIN_DOMAIN_LENGTH, XnsNameHelper } from '@xyo-network/xns-record-payloadset-plugins'\nimport React, {\n useLayoutEffect, useMemo, useRef, useState,\n} from 'react'\n\nexport interface XnsEstimateNameTextFieldProps {\n maskOutput?: boolean\n}\n\nexport const XnsEstimateNameTextField: React.FC<XnsEstimateNameTextFieldProps & TextFieldProps> = ({\n maskOutput = true, onChange: onChangeProp, onBlur: onBlurProp, value, ...props\n}) => {\n const theme = useTheme()\n const [validLength, setValidLength] = useState(false)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n // watch for external changes to the value and update the validLength state\n useMemo(() => {\n const validValueLength = !!(value && typeof value === 'string' && value.length >= MIN_DOMAIN_LENGTH)\n setValidLength(validValueLength)\n }, [value])\n\n // Update the input value when the value prop changes\n // NOTE: the intent of this component is to remain uncontrolled to avoid the need to manage the value state\n // Therefore, we use useLayoutEffect to update the input value directly.\n useLayoutEffect(() => {\n if (inputRef.current && typeof value === 'string') {\n inputRef.current.value = value\n }\n }, [value])\n\n // override onChange to mask the input and update the event value\n const handleChange: StandardTextFieldProps['onChange'] = (event) => {\n if (maskOutput) {\n const value = event.target.value\n event.target.value = XnsNameHelper.mask(value)\n }\n onChangeProp?.(event)\n\n if (inputRef.current) {\n setValidLength(inputRef.current.value.length >= MIN_DOMAIN_LENGTH)\n }\n }\n\n // override onBlur to do a final mask of the input and update the event value\n const handleBlur: StandardTextFieldProps['onBlur'] = (event) => {\n if (maskOutput) {\n const value = event.target.value\n event.target.value = XnsNameHelper.mask(value, { maskStartEndHyphens: true })\n }\n onBlurProp?.(event)\n }\n\n return (\n <TextField\n inputProps={{ style: { color: validLength ? theme.palette.text.primary : alpha(theme.palette.text.primary, 0.5) } }}\n inputRef={inputRef}\n onBlur={handleBlur}\n onChange={handleChange}\n {...props}\n />\n )\n}\n","import {\n Alert, Snackbar, useMediaQuery, useTheme,\n} from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nexport interface XnsNameCaptureErrorsProps {\n error?: Error\n errorUi?: 'alert' | 'toast'\n resetError?: () => void\n}\n\nexport const XnsNameCaptureErrors: React.FC<XnsNameCaptureErrorsProps> = ({\n error, errorUi, resetError,\n}) => {\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('md'))\n\n return (\n <>\n {(errorUi === 'toast')\n ? (\n <Snackbar\n open={!!error}\n message={error?.toString()}\n autoHideDuration={3000}\n onClose={() => resetError?.()}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n >\n <Alert\n severity=\"error\"\n sx={{\n width: '100%', display: (isMobile && !error) ? 'none' : undefined, visibility: error ? 'visible' : 'hidden',\n }}\n >\n {error?.message}\n </Alert>\n </Snackbar>\n )\n : (() => {\n // setTimeout(() => setError(undefined), 1500)\n return (\n <FlexRow alignSelf=\"stretch\">\n <Alert\n severity=\"error\"\n sx={{ display: (isMobile && !error) ? 'none' : undefined, visibility: error ? 'visible' : 'hidden' }}\n >\n {error?.message}\n </Alert>\n </FlexRow>\n )\n })()}\n </>\n )\n}\n","import { useMemo } from 'react'\nimport { useNavigate, useSearchParams } from 'react-router-dom'\n\nimport type { XnsNameCaptureProps } from '../../Props.ts'\nimport { useXnsNameFromLocation } from './useXnsNameFromLocation.ts'\n\nexport const useXnsNameCaptureRouting = (props: XnsNameCaptureProps) => {\n const [params] = useSearchParams()\n\n const navigate = useNavigate()\n\n const [name, error] = useXnsNameFromLocation()\n\n return useMemo(() => ({\n ...props,\n defaultXnsName: name,\n routingError: error,\n navigate: props.navigate ?? ((to: string) => navigate(to)),\n paramsString: props.paramsString ? `${props.paramsString}${params.toString()}` : params.toString(),\n }), [props, params, name, error])\n}\n","import { useLocation } from 'react-router-dom'\n\n/**\n * Assumes the user was redirected with a link that contains a username query parameter.\n * @returns The xNS name from the URI username query parameter.\n */\nexport const useXnsNameFromLocation = (): [name: string | undefined, error: Error | undefined] => {\n const location = useLocation()\n const search = new URLSearchParams(location.search)\n const rawName = (search.get('xnsname') ?? search.get('name') ?? search.get('username') ?? '').toLowerCase()\n switch (rawName?.split('.').length) {\n case 1: {\n return [rawName, undefined]\n }\n case 2: {\n const rawNameParts = rawName.split('.')\n if (rawNameParts[1] !== 'xyo') {\n return [, new Error('Invalid xNS name [Bad root]')]\n }\n return [rawNameParts[0], undefined]\n }\n default: {\n return [, new Error('Invalid xNS name [Too many parts]')]\n }\n }\n}\n","import { ArrowForwardRounded } from '@mui/icons-material'\nimport { Stack } from '@mui/material'\nimport type { LinkExProps } from '@xylabs/react-link'\nimport { LinkEx } from '@xylabs/react-link'\nimport { useUserEvents } from '@xylabs/react-pixel'\nimport { XnsNameHelper } from '@xyo-network/xns-record-payloadset-plugins'\nimport type { Dispatch } from 'react'\nimport React from 'react'\n\nimport type {\n XnsNameCaptureBuyCallbacks, XnsNameCaptureRoutingProps, XnsNameCaptureTrackingProps,\n} from './Props.ts'\n\nexport interface XnsCaptureSecondaryLinkProps extends XnsNameCaptureTrackingProps, XnsNameCaptureRoutingProps, XnsNameCaptureBuyCallbacks, LinkExProps {\n setError?: Dispatch<Error | undefined>\n text?: string\n xnsName: string\n}\n\nexport const XnsCaptureSecondaryLink: React.FC<XnsCaptureSecondaryLinkProps> = ({\n funnel = 'xns',\n navigate,\n onCaptureName,\n paramsString = '',\n intent,\n placement = '',\n setError,\n text = 'Or make a free reservation',\n to = '/xns/reservation',\n xnsName,\n ...props\n}) => {\n const userEvents = useUserEvents('warn')\n return (\n <LinkEx\n paddingX={0}\n color=\"inherit\"\n style={{ textDecoration: 'underline', textUnderlineOffset: '5px' }}\n onClick={async () => {\n const formattedXnsName = `${xnsName}.xyo`\n const helper = XnsNameHelper.fromString(formattedXnsName)\n const [valid, errors] = await helper.validate()\n if (valid) {\n await userEvents?.userClick({\n funnel, placement, intent,\n })\n navigate?.(`${to}?username=${xnsName}${paramsString}`)\n await onCaptureName?.(xnsName)\n } else {\n setError?.(new Error(errors.join(', ')))\n }\n }}\n {...props}\n >\n <Stack flexDirection=\"row\" gap={0.5} alignItems=\"center\" sx={{ cursor: 'pointer' }}>\n {text}\n <ArrowForwardRounded />\n </Stack>\n </LinkEx>\n )\n}\n","import { KeyboardArrowRightRounded } from '@mui/icons-material'\nimport type { StandardTextFieldProps } from '@mui/material'\nimport { useMediaQuery, useTheme } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { MIN_DOMAIN_LENGTH, XnsNameHelper } from '@xyo-network/xns-record-payloadset-plugins'\nimport type { KeyboardEventHandler } from 'react'\nimport React, { useCallback, useState } from 'react'\n\nimport { XnsEstimateNameTextField } from '../EstimateName/index.ts'\nimport { XnsNameCaptureErrors } from './Errors.tsx'\nimport { navigateWithUsername } from './lib/index.ts'\nimport type { XnsNameCaptureProps } from './Props.ts'\nimport { XnsCaptureSecondaryLink } from './SecondaryLink.js'\n\nexport const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({\n autoFocus = false,\n buttonText = 'Buy My Name',\n children,\n defaultXnsName,\n errorUi = 'alert',\n funnel = 'xns',\n intent = 'unset',\n mobileButtonText = 'Buy',\n navigate,\n onCaptureName: onCaptureNameProp,\n onNameChange,\n paramsString = '',\n placement = '',\n routingError,\n showSecondary = false,\n to = '/xns/estimation',\n ...props\n}) => {\n const [xnsName, setXnsName] = useState<string>(() => defaultXnsName ?? '')\n const [error, setError] = useState<Error | undefined>(routingError)\n\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('md'))\n\n const captureDisabled = !xnsName || xnsName.length < MIN_DOMAIN_LENGTH\n\n const handleChange: StandardTextFieldProps['onChange'] = (event) => {\n const NsName = XnsNameHelper.mask(event.target.value)\n onNameChange?.(NsName)\n setXnsName(NsName)\n setError(undefined)\n }\n\n const onCaptureName = useCallback(async () => {\n if (captureDisabled) return\n const formattedXnsName = `${xnsName}.xyo`\n const helper = XnsNameHelper.fromString(formattedXnsName)\n const [valid, errors] = await helper.validate()\n if (valid) {\n await onCaptureNameProp?.(xnsName)\n\n navigateWithUsername(xnsName, paramsString, navigate, to)\n } else {\n setError(new Error(errors.join(', ')))\n }\n }, [paramsString, to, xnsName, onCaptureNameProp, navigate])\n\n const onKeyDown: KeyboardEventHandler<HTMLDivElement> = useCallback(async (event) => {\n if (event.key === 'Enter' && !captureDisabled) {\n await onCaptureName?.()\n }\n }, [captureDisabled, onCaptureName])\n\n return (\n <FlexCol gap={showSecondary ? 1.5 : 0} alignItems=\"center\" {...props}>\n <FlexRow gap={1}>\n <XnsEstimateNameTextField\n autoFocus={autoFocus}\n label=\"xNS Name\"\n variant=\"outlined\"\n size=\"small\"\n value={xnsName ?? ''}\n onKeyDown={onKeyDown}\n onChange={handleChange}\n onBlur={handleChange}\n />\n <ButtonEx\n disabled={captureDisabled}\n funnel={funnel}\n intent={intent}\n placement={placement}\n variant=\"contained\"\n color=\"success\"\n endIcon={<KeyboardArrowRightRounded />}\n onClick={onCaptureName}\n >\n {isMobile ? mobileButtonText : buttonText}\n </ButtonEx>\n </FlexRow>\n {(showSecondary === true)\n ? (\n <XnsCaptureSecondaryLink\n xnsName={xnsName}\n placement={placement}\n funnel={funnel}\n setError={setError}\n />\n )\n : null}\n {\n // eslint-disable-next-line unicorn/prefer-logical-operator-over-ternary\n showSecondary ? showSecondary : null\n }\n {children}\n <XnsNameCaptureErrors error={error} errorUi={errorUi} resetError={() => setError(undefined)} />\n </FlexCol>\n )\n}\n","import type { To } from 'react-router-dom'\n\nexport const navigateWithUsername = (xnsName: string, paramsString: string, navigate?: ((to: string) => void), to?: To) => {\n // avoid duplicating the username param\n const params = new URLSearchParams(paramsString)\n const usernameParam = params.get('username')\n if (usernameParam) {\n // if username param is the same as the xnsName, navigate\n if (usernameParam === xnsName) {\n navigate?.(`${to}?${paramsString}`)\n }\n if (usernameParam !== xnsName) {\n // if username param is different, replace it\n params.set('username', xnsName)\n navigate?.(`${to}?${params.toString()}`)\n }\n } else {\n // if no username param, include it\n navigate?.(`${to}?username=${xnsName}&${paramsString}`)\n }\n}\n","import React, { useMemo } from 'react'\n\nimport { useXnsNameCaptureRouting } from './hooks/index.ts'\nimport type { XnsNameCaptureProps } from './Props.ts'\nimport { XnsNameCapture } from './XnsNameCapture.tsx'\n\nexport const XnsNameCaptureWithContext: React.FC<XnsNameCaptureProps> = (props) => {\n const routingProps = useXnsNameCaptureRouting(props)\n\n const updatedProps = useMemo<XnsNameCaptureProps>(() => ({\n ...props,\n ...routingProps,\n }), [routingProps, props])\n\n return (\n <XnsNameCapture {...updatedProps} />\n )\n}\n"],"mappings":";;;;AACA,SACEA,OAAOC,WAAWC,gBACb;AACP,SAASC,mBAAmBC,qBAAqB;AACjD,OAAOC,SACLC,iBAAiBC,SAASC,QAAQC,gBAC7B;AAMA,IAAMC,2BAAqF,wBAAC,EACjGC,aAAa,MAAMC,UAAUC,cAAcC,QAAQC,YAAYC,OAAO,GAAGC,MAAAA,MAC1E;AACC,QAAMC,QAAQC,SAAAA;AACd,QAAM,CAACC,aAAaC,cAAAA,IAAkBC,SAAS,KAAA;AAE/C,QAAMC,WAAWC,OAAyB,IAAA;AAG1CC,UAAQ,MAAA;AACN,UAAMC,mBAAmB,CAAC,EAAEV,SAAS,OAAOA,UAAU,YAAYA,MAAMW,UAAUC;AAClFP,mBAAeK,gBAAAA;EACjB,GAAG;IAACV;GAAM;AAKVa,kBAAgB,MAAA;AACd,QAAIN,SAASO,WAAW,OAAOd,UAAU,UAAU;AACjDO,eAASO,QAAQd,QAAQA;IAC3B;EACF,GAAG;IAACA;GAAM;AAGV,QAAMe,eAAmD,wBAACC,UAAAA;AACxD,QAAIrB,YAAY;AACd,YAAMK,SAAQgB,MAAMC,OAAOjB;AAC3BgB,YAAMC,OAAOjB,QAAQkB,cAAcC,KAAKnB,MAAAA;IAC1C;AACAH,mBAAemB,KAAAA;AAEf,QAAIT,SAASO,SAAS;AACpBT,qBAAeE,SAASO,QAAQd,MAAMW,UAAUC,iBAAAA;IAClD;EACF,GAVyD;AAazD,QAAMQ,aAA+C,wBAACJ,UAAAA;AACpD,QAAIrB,YAAY;AACd,YAAMK,SAAQgB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;AAMxB,IAAMC,4BAA2D,wBAACC,UAAAA;AACvE,QAAMC,eAAeC,yBAAyBF,KAAAA;AAE9C,QAAMG,eAAeC,SAA6B,OAAO;IACvD,GAAGJ;IACH,GAAGC;EACL,IAAI;IAACA;IAAcD;GAAM;AAEzB,SACE,gBAAAK,OAAA,cAACC,gBAAmBH,YAAAA;AAExB,GAXwE;","names":["alpha","TextField","useTheme","MIN_DOMAIN_LENGTH","XnsNameHelper","React","useLayoutEffect","useMemo","useRef","useState","XnsEstimateNameTextField","maskOutput","onChange","onChangeProp","onBlur","onBlurProp","value","props","theme","useTheme","validLength","setValidLength","useState","inputRef","useRef","useMemo","validValueLength","length","MIN_DOMAIN_LENGTH","useLayoutEffect","current","handleChange","event","target","XnsNameHelper","mask","handleBlur","maskStartEndHyphens","TextField","inputProps","style","color","palette","text","primary","alpha","Alert","Snackbar","useMediaQuery","useTheme","FlexRow","React","XnsNameCaptureErrors","error","errorUi","resetError","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","React","Snackbar","open","message","toString","autoHideDuration","onClose","anchorOrigin","vertical","horizontal","Alert","severity","sx","width","display","undefined","visibility","FlexRow","alignSelf","useMemo","useNavigate","useSearchParams","useLocation","useXnsNameFromLocation","location","useLocation","search","URLSearchParams","rawName","get","toLowerCase","split","length","undefined","rawNameParts","Error","useXnsNameCaptureRouting","props","params","useSearchParams","navigate","useNavigate","name","error","useXnsNameFromLocation","useMemo","defaultXnsName","routingError","to","paramsString","toString","ArrowForwardRounded","Stack","LinkEx","useUserEvents","XnsNameHelper","React","XnsCaptureSecondaryLink","funnel","navigate","onCaptureName","paramsString","intent","placement","setError","text","to","xnsName","props","userEvents","useUserEvents","React","LinkEx","paddingX","color","style","textDecoration","textUnderlineOffset","onClick","formattedXnsName","helper","XnsNameHelper","fromString","valid","errors","validate","userClick","Error","join","Stack","flexDirection","gap","alignItems","sx","cursor","ArrowForwardRounded","KeyboardArrowRightRounded","useMediaQuery","useTheme","ButtonEx","FlexCol","FlexRow","MIN_DOMAIN_LENGTH","XnsNameHelper","React","useCallback","useState","navigateWithUsername","xnsName","paramsString","navigate","to","params","URLSearchParams","usernameParam","get","set","toString","XnsNameCapture","autoFocus","buttonText","children","defaultXnsName","errorUi","funnel","intent","mobileButtonText","navigate","onCaptureName","onCaptureNameProp","onNameChange","paramsString","placement","routingError","showSecondary","to","props","xnsName","setXnsName","useState","error","setError","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","captureDisabled","length","MIN_DOMAIN_LENGTH","handleChange","event","NsName","XnsNameHelper","mask","target","value","undefined","useCallback","formattedXnsName","helper","fromString","valid","errors","validate","navigateWithUsername","Error","join","onKeyDown","key","React","FlexCol","gap","alignItems","FlexRow","XnsEstimateNameTextField","label","variant","size","onChange","onBlur","ButtonEx","disabled","color","endIcon","KeyboardArrowRightRounded","onClick","XnsCaptureSecondaryLink","XnsNameCaptureErrors","resetError","React","useMemo","XnsNameCaptureWithContext","props","routingProps","useXnsNameCaptureRouting","updatedProps","useMemo","React","XnsNameCapture"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { UserEventHandler } from '@xylabs/pixel'
|
|
2
1
|
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
3
|
-
import type { Mixpanel } from 'mixpanel-browser'
|
|
4
2
|
import type { ReactNode } from 'react'
|
|
5
3
|
import type { To } from 'react-router-dom'
|
|
6
4
|
|
|
@@ -12,11 +10,9 @@ export interface XnsNameCaptureBuyCallbacks {
|
|
|
12
10
|
* Trackers for user actions
|
|
13
11
|
*/
|
|
14
12
|
export interface XnsNameCaptureTrackingProps {
|
|
15
|
-
event?: string
|
|
16
13
|
funnel?: string
|
|
17
|
-
|
|
14
|
+
intent?: string
|
|
18
15
|
placement?: string
|
|
19
|
-
userEvents?: UserEventHandler<Record<string, unknown>>
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
/**
|
|
@@ -2,6 +2,7 @@ import { ArrowForwardRounded } from '@mui/icons-material'
|
|
|
2
2
|
import { Stack } from '@mui/material'
|
|
3
3
|
import type { LinkExProps } from '@xylabs/react-link'
|
|
4
4
|
import { LinkEx } from '@xylabs/react-link'
|
|
5
|
+
import { useUserEvents } from '@xylabs/react-pixel'
|
|
5
6
|
import { XnsNameHelper } from '@xyo-network/xns-record-payloadset-plugins'
|
|
6
7
|
import type { Dispatch } from 'react'
|
|
7
8
|
import React from 'react'
|
|
@@ -11,44 +12,38 @@ import type {
|
|
|
11
12
|
} from './Props.ts'
|
|
12
13
|
|
|
13
14
|
export interface XnsCaptureSecondaryLinkProps extends XnsNameCaptureTrackingProps, XnsNameCaptureRoutingProps, XnsNameCaptureBuyCallbacks, LinkExProps {
|
|
14
|
-
event?: string
|
|
15
|
-
funnel?: string
|
|
16
|
-
placement?: string
|
|
17
15
|
setError?: Dispatch<Error | undefined>
|
|
18
16
|
text?: string
|
|
19
17
|
xnsName: string
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export const XnsCaptureSecondaryLink: React.FC<XnsCaptureSecondaryLinkProps> = ({
|
|
23
|
-
event = 'Click to Reservation',
|
|
24
21
|
funnel = 'xns',
|
|
25
|
-
mixpanel,
|
|
26
22
|
navigate,
|
|
27
23
|
onCaptureName,
|
|
28
24
|
paramsString = '',
|
|
25
|
+
intent,
|
|
29
26
|
placement = '',
|
|
30
27
|
setError,
|
|
31
28
|
text = 'Or make a free reservation',
|
|
32
29
|
to = '/xns/reservation',
|
|
33
|
-
userEvents,
|
|
34
30
|
xnsName,
|
|
35
31
|
...props
|
|
36
32
|
}) => {
|
|
33
|
+
const userEvents = useUserEvents('warn')
|
|
37
34
|
return (
|
|
38
35
|
<LinkEx
|
|
39
36
|
paddingX={0}
|
|
40
37
|
color="inherit"
|
|
41
38
|
style={{ textDecoration: 'underline', textUnderlineOffset: '5px' }}
|
|
42
39
|
onClick={async () => {
|
|
43
|
-
mixpanel?.track(event, {
|
|
44
|
-
Funnel: funnel,
|
|
45
|
-
Placement: placement,
|
|
46
|
-
})
|
|
47
40
|
const formattedXnsName = `${xnsName}.xyo`
|
|
48
41
|
const helper = XnsNameHelper.fromString(formattedXnsName)
|
|
49
42
|
const [valid, errors] = await helper.validate()
|
|
50
43
|
if (valid) {
|
|
51
|
-
await userEvents?.userClick({
|
|
44
|
+
await userEvents?.userClick({
|
|
45
|
+
funnel, placement, intent,
|
|
46
|
+
})
|
|
52
47
|
navigate?.(`${to}?username=${xnsName}${paramsString}`)
|
|
53
48
|
await onCaptureName?.(xnsName)
|
|
54
49
|
} else {
|
|
@@ -19,9 +19,8 @@ export const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({
|
|
|
19
19
|
children,
|
|
20
20
|
defaultXnsName,
|
|
21
21
|
errorUi = 'alert',
|
|
22
|
-
event = 'Click to Checkout',
|
|
23
22
|
funnel = 'xns',
|
|
24
|
-
|
|
23
|
+
intent = 'unset',
|
|
25
24
|
mobileButtonText = 'Buy',
|
|
26
25
|
navigate,
|
|
27
26
|
onCaptureName: onCaptureNameProp,
|
|
@@ -31,7 +30,6 @@ export const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({
|
|
|
31
30
|
routingError,
|
|
32
31
|
showSecondary = false,
|
|
33
32
|
to = '/xns/estimation',
|
|
34
|
-
userEvents,
|
|
35
33
|
...props
|
|
36
34
|
}) => {
|
|
37
35
|
const [xnsName, setXnsName] = useState<string>(() => defaultXnsName ?? '')
|
|
@@ -51,22 +49,17 @@ export const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({
|
|
|
51
49
|
|
|
52
50
|
const onCaptureName = useCallback(async () => {
|
|
53
51
|
if (captureDisabled) return
|
|
54
|
-
mixpanel?.track(event, {
|
|
55
|
-
Funnel: funnel,
|
|
56
|
-
Placement: placement,
|
|
57
|
-
})
|
|
58
52
|
const formattedXnsName = `${xnsName}.xyo`
|
|
59
53
|
const helper = XnsNameHelper.fromString(formattedXnsName)
|
|
60
54
|
const [valid, errors] = await helper.validate()
|
|
61
55
|
if (valid) {
|
|
62
|
-
await userEvents?.userClick({ elementName: event, elementType: 'xns-cta' })
|
|
63
56
|
await onCaptureNameProp?.(xnsName)
|
|
64
57
|
|
|
65
58
|
navigateWithUsername(xnsName, paramsString, navigate, to)
|
|
66
59
|
} else {
|
|
67
60
|
setError(new Error(errors.join(', ')))
|
|
68
61
|
}
|
|
69
|
-
}, [
|
|
62
|
+
}, [paramsString, to, xnsName, onCaptureNameProp, navigate])
|
|
70
63
|
|
|
71
64
|
const onKeyDown: KeyboardEventHandler<HTMLDivElement> = useCallback(async (event) => {
|
|
72
65
|
if (event.key === 'Enter' && !captureDisabled) {
|
|
@@ -89,6 +82,9 @@ export const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({
|
|
|
89
82
|
/>
|
|
90
83
|
<ButtonEx
|
|
91
84
|
disabled={captureDisabled}
|
|
85
|
+
funnel={funnel}
|
|
86
|
+
intent={intent}
|
|
87
|
+
placement={placement}
|
|
92
88
|
variant="contained"
|
|
93
89
|
color="success"
|
|
94
90
|
endIcon={<KeyboardArrowRightRounded />}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { useUserEvents } from '@xylabs/react-pixel'
|
|
2
1
|
import React, { useMemo } from 'react'
|
|
3
2
|
|
|
4
|
-
import {
|
|
3
|
+
import { useXnsNameCaptureRouting } from './hooks/index.ts'
|
|
5
4
|
import type { XnsNameCaptureProps } from './Props.ts'
|
|
6
5
|
import { XnsNameCapture } from './XnsNameCapture.tsx'
|
|
7
6
|
|
|
8
7
|
export const XnsNameCaptureWithContext: React.FC<XnsNameCaptureProps> = (props) => {
|
|
9
8
|
const routingProps = useXnsNameCaptureRouting(props)
|
|
10
|
-
const providersProps = useXnsNameCaptureProviders(routingProps)
|
|
11
|
-
const userEvents = useUserEvents(false)
|
|
12
9
|
|
|
13
10
|
const updatedProps = useMemo<XnsNameCaptureProps>(() => ({
|
|
14
11
|
...props,
|
|
15
12
|
...routingProps,
|
|
16
|
-
|
|
17
|
-
userEvents: props.userEvents ?? userEvents,
|
|
18
|
-
}), [providersProps])
|
|
13
|
+
}), [routingProps, props])
|
|
19
14
|
|
|
20
15
|
return (
|
|
21
16
|
<XnsNameCapture {...updatedProps} />
|
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
import type { XnsNameCaptureProps } from '../Props.ts';
|
|
2
|
-
export declare const useXnsNameCaptureProviders: (props: XnsNameCaptureProps) => {
|
|
3
|
-
mixpanel: import("mixpanel-browser").Mixpanel | undefined;
|
|
4
|
-
autoFocus?: boolean;
|
|
5
|
-
buttonText?: string;
|
|
6
|
-
defaultXnsName?: string;
|
|
7
|
-
errorUi?: "alert" | "toast";
|
|
8
|
-
mobileButtonText?: string;
|
|
9
|
-
onNameChange?: (name: string) => void;
|
|
10
|
-
showSecondary?: boolean | import("react").ReactNode;
|
|
11
|
-
event?: string;
|
|
12
|
-
funnel?: string;
|
|
13
|
-
placement?: string;
|
|
14
|
-
userEvents?: import("@xylabs/pixel").UserEventHandler<Record<string, unknown>>;
|
|
15
|
-
onCaptureName?: (name: string) => Promise<void>;
|
|
16
|
-
navigate?: (to: string) => void;
|
|
17
|
-
paramsString?: string;
|
|
18
|
-
routingError?: Error;
|
|
19
|
-
to?: import("react-router").To;
|
|
20
|
-
background?: boolean;
|
|
21
|
-
paper?: boolean;
|
|
22
|
-
busy?: boolean;
|
|
23
|
-
busyCircularProps?: import("@xylabs/react-shared").BusyCircularProgressProps;
|
|
24
|
-
busyColor?: import("@xylabs/react-shared").MaterialUIThemeColor;
|
|
25
|
-
busyLinearProps?: import("@xylabs/react-shared").BusyLinearProgressProps;
|
|
26
|
-
busyMinimum?: number;
|
|
27
|
-
busyOpacity?: string | number;
|
|
28
|
-
busySize?: number;
|
|
29
|
-
busyVariant?: import("@xylabs/react-shared").BusyVariant;
|
|
30
|
-
classes?: Partial<import("@mui/material").ClassNameMap<never>> | undefined;
|
|
31
|
-
className?: string | undefined;
|
|
32
|
-
style?: React.CSSProperties | undefined;
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
color?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Color | readonly string[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Color | readonly string[] | undefined>);
|
|
35
|
-
margin?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Margin<string | number> | readonly NonNullable<import("csstype").Property.Margin<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Margin<string | number> | readonly NonNullable<import("csstype").Property.Margin<string | number> | undefined>[] | undefined>);
|
|
36
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
37
|
-
p?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Padding<string | number> | readonly NonNullable<import("csstype").Property.Padding<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Padding<string | number> | readonly NonNullable<import("csstype").Property.Padding<string | number> | undefined>[] | undefined>);
|
|
38
|
-
slot?: string | undefined;
|
|
39
|
-
title?: string | undefined;
|
|
40
|
-
key?: import("react").Key | null | undefined;
|
|
41
|
-
defaultChecked?: boolean | undefined;
|
|
42
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
43
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
44
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
45
|
-
accessKey?: string | undefined;
|
|
46
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
47
|
-
contextMenu?: string | undefined;
|
|
48
|
-
dir?: string | undefined;
|
|
49
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
50
|
-
hidden?: boolean | undefined;
|
|
51
|
-
id?: string | undefined;
|
|
52
|
-
lang?: string | undefined;
|
|
53
|
-
nonce?: string | undefined;
|
|
54
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
55
|
-
tabIndex?: number | undefined;
|
|
56
|
-
translate?: "yes" | "no" | undefined;
|
|
57
|
-
radioGroup?: string | undefined;
|
|
58
|
-
role?: import("react").AriaRole | undefined;
|
|
59
|
-
about?: string | undefined;
|
|
60
|
-
content?: string | undefined;
|
|
61
|
-
datatype?: string | undefined;
|
|
62
|
-
inlist?: any;
|
|
63
|
-
prefix?: string | undefined;
|
|
64
|
-
property?: string | undefined;
|
|
65
|
-
rel?: string | undefined;
|
|
66
|
-
resource?: string | undefined;
|
|
67
|
-
rev?: string | undefined;
|
|
68
|
-
typeof?: string | undefined;
|
|
69
|
-
vocab?: string | undefined;
|
|
70
|
-
autoCapitalize?: string | undefined;
|
|
71
|
-
autoCorrect?: string | undefined;
|
|
72
|
-
autoSave?: string | undefined;
|
|
73
|
-
itemProp?: string | undefined;
|
|
74
|
-
itemScope?: boolean | undefined;
|
|
75
|
-
itemType?: string | undefined;
|
|
76
|
-
itemID?: string | undefined;
|
|
77
|
-
itemRef?: string | undefined;
|
|
78
|
-
results?: number | undefined;
|
|
79
|
-
security?: string | undefined;
|
|
80
|
-
unselectable?: "on" | "off" | undefined;
|
|
81
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
82
|
-
is?: string | undefined;
|
|
83
|
-
"aria-activedescendant"?: string | undefined;
|
|
84
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
85
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
86
|
-
"aria-braillelabel"?: string | undefined;
|
|
87
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
88
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
89
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
90
|
-
"aria-colcount"?: number | undefined;
|
|
91
|
-
"aria-colindex"?: number | undefined;
|
|
92
|
-
"aria-colindextext"?: string | undefined;
|
|
93
|
-
"aria-colspan"?: number | undefined;
|
|
94
|
-
"aria-controls"?: string | undefined;
|
|
95
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
96
|
-
"aria-describedby"?: string | undefined;
|
|
97
|
-
"aria-description"?: string | undefined;
|
|
98
|
-
"aria-details"?: string | undefined;
|
|
99
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
101
|
-
"aria-errormessage"?: string | undefined;
|
|
102
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
103
|
-
"aria-flowto"?: string | undefined;
|
|
104
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
105
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
106
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
107
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
108
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
109
|
-
"aria-label"?: string | undefined;
|
|
110
|
-
"aria-labelledby"?: string | undefined;
|
|
111
|
-
"aria-level"?: number | undefined;
|
|
112
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
113
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
114
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
115
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
116
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
117
|
-
"aria-owns"?: string | undefined;
|
|
118
|
-
"aria-placeholder"?: string | undefined;
|
|
119
|
-
"aria-posinset"?: number | undefined;
|
|
120
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
121
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
122
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
123
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
124
|
-
"aria-roledescription"?: string | undefined;
|
|
125
|
-
"aria-rowcount"?: number | undefined;
|
|
126
|
-
"aria-rowindex"?: number | undefined;
|
|
127
|
-
"aria-rowindextext"?: string | undefined;
|
|
128
|
-
"aria-rowspan"?: number | undefined;
|
|
129
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
130
|
-
"aria-setsize"?: number | undefined;
|
|
131
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
132
|
-
"aria-valuemax"?: number | undefined;
|
|
133
|
-
"aria-valuemin"?: number | undefined;
|
|
134
|
-
"aria-valuenow"?: number | undefined;
|
|
135
|
-
"aria-valuetext"?: string | undefined;
|
|
136
|
-
dangerouslySetInnerHTML?: {
|
|
137
|
-
__html: string | TrustedHTML;
|
|
138
|
-
} | undefined;
|
|
139
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
140
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
141
|
-
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
142
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
143
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
144
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
145
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
146
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
147
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
148
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
149
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
150
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
151
|
-
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
152
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
153
|
-
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
154
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
155
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
156
|
-
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
157
|
-
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
158
|
-
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
159
|
-
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
160
|
-
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
161
|
-
onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
162
|
-
onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
163
|
-
onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
164
|
-
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
165
|
-
onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
166
|
-
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
167
|
-
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
168
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
169
|
-
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
170
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
171
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
172
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
173
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
174
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
175
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
176
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
177
|
-
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
-
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
|
-
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
190
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
191
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
192
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
193
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
194
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
195
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
196
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
197
|
-
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
198
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
199
|
-
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
200
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
201
|
-
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
202
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
203
|
-
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
204
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
205
|
-
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
206
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
207
|
-
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
208
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
209
|
-
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
210
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
211
|
-
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
212
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
213
|
-
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
214
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
215
|
-
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
216
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
217
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
218
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
219
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
220
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
221
|
-
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
222
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
223
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
224
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
225
|
-
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
226
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
227
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
228
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
229
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
230
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
231
|
-
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
232
|
-
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
233
|
-
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
234
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
235
|
-
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
236
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
237
|
-
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
238
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
239
|
-
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
240
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
241
|
-
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
242
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
243
|
-
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
244
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
245
|
-
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
246
|
-
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
247
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
248
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
249
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
250
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
251
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
252
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
253
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
254
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
255
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
256
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
257
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
258
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
259
|
-
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
260
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
261
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
262
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
263
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
264
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
265
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
266
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
267
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
268
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
269
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
270
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
271
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
272
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
273
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
274
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
275
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
276
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
277
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
278
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
279
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
280
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
281
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
282
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
283
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
284
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
285
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
286
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
287
|
-
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
288
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
289
|
-
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
290
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
291
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
292
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
293
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
294
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
295
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
296
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
297
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
298
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
299
|
-
component?: React.ElementType | undefined;
|
|
300
|
-
border?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<number | "hidden" | "medium" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "transparent" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen" | "ActiveBorder" | "ActiveCaption" | "AppWorkspace" | "Background" | "ButtonFace" | "ButtonHighlight" | "ButtonShadow" | "ButtonText" | "CaptionText" | "GrayText" | "Highlight" | "HighlightText" | "InactiveBorder" | "InactiveCaption" | "InactiveCaptionText" | "InfoBackground" | "InfoText" | "Menu" | "MenuText" | "Scrollbar" | "ThreeDDarkShadow" | "ThreeDFace" | "ThreeDHighlight" | "ThreeDLightShadow" | "ThreeDShadow" | "Window" | "WindowFrame" | "WindowText" | "currentcolor" | "none" | "inset" | "thick" | "thin" | "dashed" | "dotted" | "double" | "groove" | "outset" | "ridge" | "solid" | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<number | "hidden" | "medium" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "transparent" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen" | "ActiveBorder" | "ActiveCaption" | "AppWorkspace" | "Background" | "ButtonFace" | "ButtonHighlight" | "ButtonShadow" | "ButtonText" | "CaptionText" | "GrayText" | "Highlight" | "HighlightText" | "InactiveBorder" | "InactiveCaption" | "InactiveCaptionText" | "InfoBackground" | "InfoText" | "Menu" | "MenuText" | "Scrollbar" | "ThreeDDarkShadow" | "ThreeDFace" | "ThreeDHighlight" | "ThreeDLightShadow" | "ThreeDShadow" | "Window" | "WindowFrame" | "WindowText" | "currentcolor" | "none" | "inset" | "thick" | "thin" | "dashed" | "dotted" | "double" | "groove" | "outset" | "ridge" | "solid" | undefined>);
|
|
301
|
-
boxShadow?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<number | import("csstype").Property.BoxShadow | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<number | import("csstype").Property.BoxShadow | undefined>);
|
|
302
|
-
fontWeight?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined>);
|
|
303
|
-
zIndex?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined>);
|
|
304
|
-
alignContent?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.AlignContent | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.AlignContent | undefined>);
|
|
305
|
-
alignItems?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.AlignItems | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.AlignItems | undefined>);
|
|
306
|
-
alignSelf?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.AlignSelf | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.AlignSelf | undefined>);
|
|
307
|
-
bottom?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Bottom<string | number> | readonly NonNullable<import("csstype").Property.Bottom<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Bottom<string | number> | readonly NonNullable<import("csstype").Property.Bottom<string | number> | undefined>[] | undefined>);
|
|
308
|
-
boxSizing?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BoxSizing | readonly NonNullable<import("csstype").Property.BoxSizing | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BoxSizing | readonly NonNullable<import("csstype").Property.BoxSizing | undefined>[] | undefined>);
|
|
309
|
-
columnGap?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.ColumnGap<string | number> | readonly NonNullable<import("csstype").Property.ColumnGap<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.ColumnGap<string | number> | readonly NonNullable<import("csstype").Property.ColumnGap<string | number> | undefined>[] | undefined>);
|
|
310
|
-
display?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Display | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Display | undefined>);
|
|
311
|
-
flexBasis?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexBasis<string | number> | readonly NonNullable<import("csstype").Property.FlexBasis<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexBasis<string | number> | readonly NonNullable<import("csstype").Property.FlexBasis<string | number> | undefined>[] | undefined>);
|
|
312
|
-
flexDirection?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexDirection | readonly NonNullable<import("csstype").Property.FlexDirection | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexDirection | readonly NonNullable<import("csstype").Property.FlexDirection | undefined>[] | undefined>);
|
|
313
|
-
flexGrow?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexGrow | readonly NonNullable<import("csstype").Property.FlexGrow | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexGrow | readonly NonNullable<import("csstype").Property.FlexGrow | undefined>[] | undefined>);
|
|
314
|
-
flexShrink?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexShrink | readonly NonNullable<import("csstype").Property.FlexShrink | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexShrink | readonly NonNullable<import("csstype").Property.FlexShrink | undefined>[] | undefined>);
|
|
315
|
-
flexWrap?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexWrap | readonly NonNullable<import("csstype").Property.FlexWrap | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FlexWrap | readonly NonNullable<import("csstype").Property.FlexWrap | undefined>[] | undefined>);
|
|
316
|
-
fontFamily?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.FontFamily | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.FontFamily | undefined>);
|
|
317
|
-
fontSize?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FontSize<string | number> | readonly NonNullable<import("csstype").Property.FontSize<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.FontSize<string | number> | readonly NonNullable<import("csstype").Property.FontSize<string | number> | undefined>[] | undefined>);
|
|
318
|
-
fontStyle?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.FontStyle | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.FontStyle | undefined>);
|
|
319
|
-
gridAutoColumns?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridAutoColumns<string | number> | readonly NonNullable<import("csstype").Property.GridAutoColumns<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridAutoColumns<string | number> | readonly NonNullable<import("csstype").Property.GridAutoColumns<string | number> | undefined>[] | undefined>);
|
|
320
|
-
gridAutoFlow?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.GridAutoFlow | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.GridAutoFlow | undefined>);
|
|
321
|
-
gridAutoRows?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridAutoRows<string | number> | readonly NonNullable<import("csstype").Property.GridAutoRows<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridAutoRows<string | number> | readonly NonNullable<import("csstype").Property.GridAutoRows<string | number> | undefined>[] | undefined>);
|
|
322
|
-
gridTemplateAreas?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.GridTemplateAreas | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.GridTemplateAreas | undefined>);
|
|
323
|
-
gridTemplateColumns?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridTemplateColumns<string | number> | readonly NonNullable<import("csstype").Property.GridTemplateColumns<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridTemplateColumns<string | number> | readonly NonNullable<import("csstype").Property.GridTemplateColumns<string | number> | undefined>[] | undefined>);
|
|
324
|
-
gridTemplateRows?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridTemplateRows<string | number> | readonly NonNullable<import("csstype").Property.GridTemplateRows<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridTemplateRows<string | number> | readonly NonNullable<import("csstype").Property.GridTemplateRows<string | number> | undefined>[] | undefined>);
|
|
325
|
-
height?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Height<string | number> | readonly NonNullable<import("csstype").Property.Height<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Height<string | number> | readonly NonNullable<import("csstype").Property.Height<string | number> | undefined>[] | undefined>);
|
|
326
|
-
justifyContent?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.JustifyContent | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.JustifyContent | undefined>);
|
|
327
|
-
justifyItems?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.JustifyItems | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.JustifyItems | undefined>);
|
|
328
|
-
justifySelf?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.JustifySelf | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.JustifySelf | undefined>);
|
|
329
|
-
left?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Left<string | number> | readonly NonNullable<import("csstype").Property.Left<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Left<string | number> | readonly NonNullable<import("csstype").Property.Left<string | number> | undefined>[] | undefined>);
|
|
330
|
-
letterSpacing?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.LetterSpacing<string | number> | readonly NonNullable<import("csstype").Property.LetterSpacing<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.LetterSpacing<string | number> | readonly NonNullable<import("csstype").Property.LetterSpacing<string | number> | undefined>[] | undefined>);
|
|
331
|
-
lineHeight?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.LineHeight<string | number> | readonly NonNullable<import("csstype").Property.LineHeight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.LineHeight<string | number> | readonly NonNullable<import("csstype").Property.LineHeight<string | number> | undefined>[] | undefined>);
|
|
332
|
-
marginBlockEnd?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBlockEnd<string | number> | readonly NonNullable<import("csstype").Property.MarginBlockEnd<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBlockEnd<string | number> | readonly NonNullable<import("csstype").Property.MarginBlockEnd<string | number> | undefined>[] | undefined>);
|
|
333
|
-
marginBlockStart?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBlockStart<string | number> | readonly NonNullable<import("csstype").Property.MarginBlockStart<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBlockStart<string | number> | readonly NonNullable<import("csstype").Property.MarginBlockStart<string | number> | undefined>[] | undefined>);
|
|
334
|
-
marginBottom?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBottom<string | number> | readonly NonNullable<import("csstype").Property.MarginBottom<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBottom<string | number> | readonly NonNullable<import("csstype").Property.MarginBottom<string | number> | undefined>[] | undefined>);
|
|
335
|
-
marginInlineEnd?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginInlineEnd<string | number> | readonly NonNullable<import("csstype").Property.MarginInlineEnd<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginInlineEnd<string | number> | readonly NonNullable<import("csstype").Property.MarginInlineEnd<string | number> | undefined>[] | undefined>);
|
|
336
|
-
marginInlineStart?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginInlineStart<string | number> | readonly NonNullable<import("csstype").Property.MarginInlineStart<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginInlineStart<string | number> | readonly NonNullable<import("csstype").Property.MarginInlineStart<string | number> | undefined>[] | undefined>);
|
|
337
|
-
marginLeft?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined>);
|
|
338
|
-
marginRight?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginRight<string | number> | readonly NonNullable<import("csstype").Property.MarginRight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginRight<string | number> | readonly NonNullable<import("csstype").Property.MarginRight<string | number> | undefined>[] | undefined>);
|
|
339
|
-
marginTop?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined>);
|
|
340
|
-
maxHeight?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MaxHeight<string | number> | readonly NonNullable<import("csstype").Property.MaxHeight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MaxHeight<string | number> | readonly NonNullable<import("csstype").Property.MaxHeight<string | number> | undefined>[] | undefined>);
|
|
341
|
-
maxWidth?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MaxWidth<string | number> | readonly NonNullable<import("csstype").Property.MaxWidth<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MaxWidth<string | number> | readonly NonNullable<import("csstype").Property.MaxWidth<string | number> | undefined>[] | undefined>);
|
|
342
|
-
minHeight?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MinHeight<string | number> | readonly NonNullable<import("csstype").Property.MinHeight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MinHeight<string | number> | readonly NonNullable<import("csstype").Property.MinHeight<string | number> | undefined>[] | undefined>);
|
|
343
|
-
minWidth?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MinWidth<string | number> | readonly NonNullable<import("csstype").Property.MinWidth<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MinWidth<string | number> | readonly NonNullable<import("csstype").Property.MinWidth<string | number> | undefined>[] | undefined>);
|
|
344
|
-
order?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Order | readonly NonNullable<import("csstype").Property.Order | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Order | readonly NonNullable<import("csstype").Property.Order | undefined>[] | undefined>);
|
|
345
|
-
paddingBlockEnd?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBlockEnd<string | number> | readonly NonNullable<import("csstype").Property.PaddingBlockEnd<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBlockEnd<string | number> | readonly NonNullable<import("csstype").Property.PaddingBlockEnd<string | number> | undefined>[] | undefined>);
|
|
346
|
-
paddingBlockStart?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBlockStart<string | number> | readonly NonNullable<import("csstype").Property.PaddingBlockStart<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBlockStart<string | number> | readonly NonNullable<import("csstype").Property.PaddingBlockStart<string | number> | undefined>[] | undefined>);
|
|
347
|
-
paddingBottom?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBottom<string | number> | readonly NonNullable<import("csstype").Property.PaddingBottom<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBottom<string | number> | readonly NonNullable<import("csstype").Property.PaddingBottom<string | number> | undefined>[] | undefined>);
|
|
348
|
-
paddingInlineEnd?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingInlineEnd<string | number> | readonly NonNullable<import("csstype").Property.PaddingInlineEnd<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingInlineEnd<string | number> | readonly NonNullable<import("csstype").Property.PaddingInlineEnd<string | number> | undefined>[] | undefined>);
|
|
349
|
-
paddingInlineStart?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingInlineStart<string | number> | readonly NonNullable<import("csstype").Property.PaddingInlineStart<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingInlineStart<string | number> | readonly NonNullable<import("csstype").Property.PaddingInlineStart<string | number> | undefined>[] | undefined>);
|
|
350
|
-
paddingLeft?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined>);
|
|
351
|
-
paddingRight?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingRight<string | number> | readonly NonNullable<import("csstype").Property.PaddingRight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingRight<string | number> | readonly NonNullable<import("csstype").Property.PaddingRight<string | number> | undefined>[] | undefined>);
|
|
352
|
-
paddingTop?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined>);
|
|
353
|
-
position?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Position | readonly NonNullable<import("csstype").Property.Position | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Position | readonly NonNullable<import("csstype").Property.Position | undefined>[] | undefined>);
|
|
354
|
-
right?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Right<string | number> | readonly NonNullable<import("csstype").Property.Right<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Right<string | number> | readonly NonNullable<import("csstype").Property.Right<string | number> | undefined>[] | undefined>);
|
|
355
|
-
rowGap?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.RowGap<string | number> | readonly NonNullable<import("csstype").Property.RowGap<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.RowGap<string | number> | readonly NonNullable<import("csstype").Property.RowGap<string | number> | undefined>[] | undefined>);
|
|
356
|
-
textAlign?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.TextAlign | readonly NonNullable<import("csstype").Property.TextAlign | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.TextAlign | readonly NonNullable<import("csstype").Property.TextAlign | undefined>[] | undefined>);
|
|
357
|
-
textOverflow?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.TextOverflow | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.TextOverflow | undefined>);
|
|
358
|
-
textTransform?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.TextTransform | readonly NonNullable<import("csstype").Property.TextTransform | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.TextTransform | readonly NonNullable<import("csstype").Property.TextTransform | undefined>[] | undefined>);
|
|
359
|
-
top?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Top<string | number> | readonly NonNullable<import("csstype").Property.Top<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Top<string | number> | readonly NonNullable<import("csstype").Property.Top<string | number> | undefined>[] | undefined>);
|
|
360
|
-
visibility?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Visibility | readonly NonNullable<import("csstype").Property.Visibility | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Visibility | readonly NonNullable<import("csstype").Property.Visibility | undefined>[] | undefined>);
|
|
361
|
-
whiteSpace?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.WhiteSpace | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.WhiteSpace | undefined>);
|
|
362
|
-
width?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Width<string | number> | readonly NonNullable<import("csstype").Property.Width<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Width<string | number> | readonly NonNullable<import("csstype").Property.Width<string | number> | undefined>[] | undefined>);
|
|
363
|
-
borderBottom?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderBottom<string | number> | readonly NonNullable<import("csstype").Property.BorderBottom<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderBottom<string | number> | readonly NonNullable<import("csstype").Property.BorderBottom<string | number> | undefined>[] | undefined>);
|
|
364
|
-
borderColor?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.BorderColor | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.BorderColor | undefined>);
|
|
365
|
-
borderLeft?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderLeft<string | number> | readonly NonNullable<import("csstype").Property.BorderLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderLeft<string | number> | readonly NonNullable<import("csstype").Property.BorderLeft<string | number> | undefined>[] | undefined>);
|
|
366
|
-
borderRadius?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderRadius<string | number> | readonly NonNullable<import("csstype").Property.BorderRadius<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderRadius<string | number> | readonly NonNullable<import("csstype").Property.BorderRadius<string | number> | undefined>[] | undefined>);
|
|
367
|
-
borderRight?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderRight<string | number> | readonly NonNullable<import("csstype").Property.BorderRight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderRight<string | number> | readonly NonNullable<import("csstype").Property.BorderRight<string | number> | undefined>[] | undefined>);
|
|
368
|
-
borderTop?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderTop<string | number> | readonly NonNullable<import("csstype").Property.BorderTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.BorderTop<string | number> | readonly NonNullable<import("csstype").Property.BorderTop<string | number> | undefined>[] | undefined>);
|
|
369
|
-
flex?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Flex<string | number> | readonly NonNullable<import("csstype").Property.Flex<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Flex<string | number> | readonly NonNullable<import("csstype").Property.Flex<string | number> | undefined>[] | undefined>);
|
|
370
|
-
gap?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Gap<string | number> | readonly NonNullable<import("csstype").Property.Gap<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Gap<string | number> | readonly NonNullable<import("csstype").Property.Gap<string | number> | undefined>[] | undefined>);
|
|
371
|
-
gridArea?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridArea | readonly NonNullable<import("csstype").Property.GridArea | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridArea | readonly NonNullable<import("csstype").Property.GridArea | undefined>[] | undefined>);
|
|
372
|
-
gridColumn?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridColumn | readonly NonNullable<import("csstype").Property.GridColumn | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridColumn | readonly NonNullable<import("csstype").Property.GridColumn | undefined>[] | undefined>);
|
|
373
|
-
gridRow?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridRow | readonly NonNullable<import("csstype").Property.GridRow | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.GridRow | readonly NonNullable<import("csstype").Property.GridRow | undefined>[] | undefined>);
|
|
374
|
-
marginBlock?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBlock<string | number> | readonly NonNullable<import("csstype").Property.MarginBlock<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBlock<string | number> | readonly NonNullable<import("csstype").Property.MarginBlock<string | number> | undefined>[] | undefined>);
|
|
375
|
-
marginInline?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginInline<string | number> | readonly NonNullable<import("csstype").Property.MarginInline<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginInline<string | number> | readonly NonNullable<import("csstype").Property.MarginInline<string | number> | undefined>[] | undefined>);
|
|
376
|
-
overflow?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Overflow | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Overflow | undefined>);
|
|
377
|
-
padding?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Padding<string | number> | readonly NonNullable<import("csstype").Property.Padding<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Padding<string | number> | readonly NonNullable<import("csstype").Property.Padding<string | number> | undefined>[] | undefined>);
|
|
378
|
-
paddingBlock?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBlock<string | number> | readonly NonNullable<import("csstype").Property.PaddingBlock<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBlock<string | number> | readonly NonNullable<import("csstype").Property.PaddingBlock<string | number> | undefined>[] | undefined>);
|
|
379
|
-
paddingInline?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingInline<string | number> | readonly NonNullable<import("csstype").Property.PaddingInline<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingInline<string | number> | readonly NonNullable<import("csstype").Property.PaddingInline<string | number> | undefined>[] | undefined>);
|
|
380
|
-
bgcolor?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.BackgroundColor | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.BackgroundColor | undefined>);
|
|
381
|
-
m?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Margin<string | number> | readonly NonNullable<import("csstype").Property.Margin<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Margin<string | number> | readonly NonNullable<import("csstype").Property.Margin<string | number> | undefined>[] | undefined>);
|
|
382
|
-
mt?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined>);
|
|
383
|
-
mr?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginRight<string | number> | readonly NonNullable<import("csstype").Property.MarginRight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginRight<string | number> | readonly NonNullable<import("csstype").Property.MarginRight<string | number> | undefined>[] | undefined>);
|
|
384
|
-
mb?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBottom<string | number> | readonly NonNullable<import("csstype").Property.MarginBottom<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginBottom<string | number> | readonly NonNullable<import("csstype").Property.MarginBottom<string | number> | undefined>[] | undefined>);
|
|
385
|
-
ml?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined>);
|
|
386
|
-
mx?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined>);
|
|
387
|
-
marginX?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginLeft<string | number> | readonly NonNullable<import("csstype").Property.MarginLeft<string | number> | undefined>[] | undefined>);
|
|
388
|
-
my?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined>);
|
|
389
|
-
marginY?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.MarginTop<string | number> | readonly NonNullable<import("csstype").Property.MarginTop<string | number> | undefined>[] | undefined>);
|
|
390
|
-
pt?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined>);
|
|
391
|
-
pr?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingRight<string | number> | readonly NonNullable<import("csstype").Property.PaddingRight<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingRight<string | number> | readonly NonNullable<import("csstype").Property.PaddingRight<string | number> | undefined>[] | undefined>);
|
|
392
|
-
pb?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBottom<string | number> | readonly NonNullable<import("csstype").Property.PaddingBottom<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingBottom<string | number> | readonly NonNullable<import("csstype").Property.PaddingBottom<string | number> | undefined>[] | undefined>);
|
|
393
|
-
pl?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined>);
|
|
394
|
-
px?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined>);
|
|
395
|
-
paddingX?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingLeft<string | number> | readonly NonNullable<import("csstype").Property.PaddingLeft<string | number> | undefined>[] | undefined>);
|
|
396
|
-
py?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined>);
|
|
397
|
-
paddingY?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.PaddingTop<string | number> | readonly NonNullable<import("csstype").Property.PaddingTop<string | number> | undefined>[] | undefined>);
|
|
398
|
-
typography?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string | undefined>);
|
|
399
|
-
displayPrint?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Display | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Display | undefined>);
|
|
400
|
-
};
|
|
401
|
-
//# sourceMappingURL=useXnsNameCaptureProviders.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useXnsNameCaptureProviders.d.ts","sourceRoot":"","sources":["../../../../../src/components/XnsNameCapture/hooks/useXnsNameCaptureProviders.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,eAAO,MAAM,0BAA0B,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAQijD,MAAO,aAAa;eAA4wE,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAiI,MAAO,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADxjI,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useMixpanel } from '@xylabs/react-mixpanel'
|
|
2
|
-
import { useMemo } from 'react'
|
|
3
|
-
|
|
4
|
-
import type { XnsNameCaptureProps } from '../Props.ts'
|
|
5
|
-
|
|
6
|
-
export const useXnsNameCaptureProviders = (props: XnsNameCaptureProps) => {
|
|
7
|
-
const mixpanel = useMixpanel()
|
|
8
|
-
|
|
9
|
-
return useMemo(() => ({
|
|
10
|
-
...props,
|
|
11
|
-
mixpanel: props.mixpanel ?? mixpanel,
|
|
12
|
-
}), [props, mixpanel])
|
|
13
|
-
}
|