@xyo-network/react-xns 6.0.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/browser/components/EstimateName/EstimateNameTextField.stories.d.ts +7 -0
  2. package/dist/browser/components/EstimateName/EstimateNameTextField.stories.d.ts.map +1 -0
  3. package/dist/{types → browser}/components/XnsNameCapture/Props.d.ts +1 -0
  4. package/dist/{types → browser}/components/XnsNameCapture/Props.d.ts.map +1 -1
  5. package/dist/browser/components/XnsNameCapture/SecondaryLink.stories.d.ts +7 -0
  6. package/dist/browser/components/XnsNameCapture/SecondaryLink.stories.d.ts.map +1 -0
  7. package/dist/{types → browser}/components/XnsNameCapture/XnsNameCapture.d.ts.map +1 -1
  8. package/dist/browser/components/XnsNameCapture/XnsNameCapture.stories.d.ts +7 -0
  9. package/dist/browser/components/XnsNameCapture/XnsNameCapture.stories.d.ts.map +1 -0
  10. package/dist/browser/components/XnsNameCapture/XnsNameCaptureWithContext.stories.d.ts +9 -0
  11. package/dist/browser/components/XnsNameCapture/XnsNameCaptureWithContext.stories.d.ts.map +1 -0
  12. package/dist/{types → browser}/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.d.ts +1 -0
  13. package/dist/{types → browser}/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.d.ts.map +1 -1
  14. package/dist/browser/index.d.ts +500 -0
  15. package/dist/browser/index.mjs +2 -1
  16. package/dist/browser/index.mjs.map +1 -1
  17. package/package.json +13 -12
  18. package/src/components/XnsNameCapture/Props.ts +1 -0
  19. package/src/components/XnsNameCapture/XnsNameCapture.tsx +2 -0
  20. package/dist/types/index.d.ts +0 -2
  21. /package/dist/{types → browser}/components/EstimateName/EstimateNameTextField.d.ts +0 -0
  22. /package/dist/{types → browser}/components/EstimateName/EstimateNameTextField.d.ts.map +0 -0
  23. /package/dist/{types → browser}/components/EstimateName/index.d.ts +0 -0
  24. /package/dist/{types → browser}/components/EstimateName/index.d.ts.map +0 -0
  25. /package/dist/{types → browser}/components/XnsNameCapture/Errors.d.ts +0 -0
  26. /package/dist/{types → browser}/components/XnsNameCapture/Errors.d.ts.map +0 -0
  27. /package/dist/{types → browser}/components/XnsNameCapture/SecondaryLink.d.ts +0 -0
  28. /package/dist/{types → browser}/components/XnsNameCapture/SecondaryLink.d.ts.map +0 -0
  29. /package/dist/{types → browser}/components/XnsNameCapture/XnsNameCapture.d.ts +0 -0
  30. /package/dist/{types → browser}/components/XnsNameCapture/XnsNameCaptureWithContext.d.ts +0 -0
  31. /package/dist/{types → browser}/components/XnsNameCapture/XnsNameCaptureWithContext.d.ts.map +0 -0
  32. /package/dist/{types → browser}/components/XnsNameCapture/hooks/index.d.ts +0 -0
  33. /package/dist/{types → browser}/components/XnsNameCapture/hooks/index.d.ts.map +0 -0
  34. /package/dist/{types → browser}/components/XnsNameCapture/hooks/routing/index.d.ts +0 -0
  35. /package/dist/{types → browser}/components/XnsNameCapture/hooks/routing/index.d.ts.map +0 -0
  36. /package/dist/{types → browser}/components/XnsNameCapture/hooks/routing/useXnsNameFromLocation.d.ts +0 -0
  37. /package/dist/{types → browser}/components/XnsNameCapture/hooks/routing/useXnsNameFromLocation.d.ts.map +0 -0
  38. /package/dist/{types → browser}/components/XnsNameCapture/index.d.ts +0 -0
  39. /package/dist/{types → browser}/components/XnsNameCapture/index.d.ts.map +0 -0
  40. /package/dist/{types → browser}/components/XnsNameCapture/lib/index.d.ts +0 -0
  41. /package/dist/{types → browser}/components/XnsNameCapture/lib/index.d.ts.map +0 -0
  42. /package/dist/{types → browser}/components/XnsNameCapture/lib/navigateWithUsername.d.ts +0 -0
  43. /package/dist/{types → browser}/components/XnsNameCapture/lib/navigateWithUsername.d.ts.map +0 -0
  44. /package/dist/{types → browser}/components/index.d.ts +0 -0
  45. /package/dist/{types → browser}/components/index.d.ts.map +0 -0
  46. /package/dist/{types → browser}/index.d.ts.map +0 -0
@@ -0,0 +1,7 @@
1
+ import type { Meta } from '@storybook/react-vite';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./EstimateNameTextField.tsx").XnsEstimateNameTextFieldProps & import("@mui/material").TextFieldProps>;
5
+ declare const WithExternalValue: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./EstimateNameTextField.tsx").XnsEstimateNameTextFieldProps & import("@mui/material").TextFieldProps>;
6
+ export { Default, WithExternalValue };
7
+ //# sourceMappingURL=EstimateNameTextField.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EstimateNameTextField.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateName/EstimateNameTextField.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAKU,IAAI;AAAxE,wBAAwE;AAWxE,QAAA,MAAM,OAAO,gNAAoB,CAAA;AAGjC,QAAA,MAAM,iBAAiB,gNAAqC,CAAA;AAG5D,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -28,6 +28,7 @@ export interface XnsNameCaptureBaseProps {
28
28
  autoFocus?: boolean;
29
29
  buttonText?: string;
30
30
  defaultXnsName?: string;
31
+ disabled?: boolean;
31
32
  errorUi?: 'alert' | 'toast';
32
33
  mobileButtonText?: string;
33
34
  onNameChange?: (name: string) => void;
@@ -1 +1 @@
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,CAA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Meta;
3
+ export default _default;
4
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./SecondaryLink.tsx").XnsCaptureSecondaryLinkProps>;
5
+ declare const WithOnBuyName: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./SecondaryLink.tsx").XnsCaptureSecondaryLinkProps>;
6
+ export { Default, WithOnBuyName };
7
+ //# sourceMappingURL=SecondaryLink.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecondaryLink.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/SecondaryLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAKS,IAAI;AAAvE,wBAAuE;AAMvE,QAAA,MAAM,OAAO,8JAAoB,CAAA;AAGjC,QAAA,MAAM,aAAa,8JAAoB,CAAA;AAGvC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,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,CAkGxD,CAAA"}
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,CAoGxD,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Meta } from '@storybook/react-vite';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Props.ts").XnsNameCaptureProps>;
5
+ declare const WithOnBuyName: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Props.ts").XnsNameCaptureProps>;
6
+ export { Default, WithOnBuyName };
7
+ //# sourceMappingURL=XnsNameCapture.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XnsNameCapture.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/XnsNameCapture.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAMA,IAAI;AAA9D,wBAA8D;AAM9D,QAAA,MAAM,OAAO,4IAAoB,CAAA;AAGjC,QAAA,MAAM,aAAa,4IAAoB,CAAA;AAGvC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { Meta } from '@storybook/react-vite';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Props.ts").XnsNameCaptureProps>;
5
+ declare const WithOnCaptureName: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Props.ts").XnsNameCaptureProps>;
6
+ declare const WithBadXnsNameInRoute: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Props.ts").XnsNameCaptureProps>;
7
+ declare const WithUserName: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Props.ts").XnsNameCaptureProps>;
8
+ export { Default, WithBadXnsNameInRoute, WithOnCaptureName, WithUserName, };
9
+ //# sourceMappingURL=XnsNameCaptureWithContext.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XnsNameCaptureWithContext.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/XnsNameCapture/XnsNameCaptureWithContext.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBAOuC,IAAI;AAAzE,wBAAyE;AA+BzE,QAAA,MAAM,OAAO,4IAAoB,CAAA;AAIjC,QAAA,MAAM,iBAAiB,4IAAoB,CAAA;AAI3C,QAAA,MAAM,qBAAqB,4IAAoB,CAAA;AAO/C,QAAA,MAAM,YAAY,4IAAoB,CAAA;AAItC,OAAO,EACL,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,YAAY,GAChE,CAAA"}
@@ -6,6 +6,7 @@ export declare const useXnsNameCaptureRouting: (props: XnsNameCaptureProps) => {
6
6
  paramsString: string;
7
7
  autoFocus?: boolean;
8
8
  buttonText?: string;
9
+ disabled?: boolean;
9
10
  errorUi?: "alert" | "toast";
10
11
  mobileButtonText?: string;
11
12
  onNameChange?: (name: string) => void;
@@ -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,GAAI,OAAO,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclE,CAAA"}
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,GAAI,OAAO,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclE,CAAA"}
@@ -0,0 +1,500 @@
1
+ import * as _mui_material from '@mui/material';
2
+ import { TextFieldProps } from '@mui/material';
3
+ import * as react from 'react';
4
+ import react__default, { ReactNode, Dispatch } from 'react';
5
+ import * as _xylabs_react_shared from '@xylabs/react-shared';
6
+ import * as _mui_system_styleFunctionSx from '@mui/system/styleFunctionSx';
7
+ import * as csstype from 'csstype';
8
+ import * as _mui_system from '@mui/system';
9
+ import * as react_router_dom from 'react-router-dom';
10
+ import { To } from 'react-router-dom';
11
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
12
+ import { LinkExProps } from '@xylabs/react-link';
13
+
14
+ interface XnsEstimateNameTextFieldProps {
15
+ maskOutput?: boolean;
16
+ }
17
+ declare const XnsEstimateNameTextField: react__default.FC<XnsEstimateNameTextFieldProps & TextFieldProps>;
18
+
19
+ interface XnsNameCaptureErrorsProps {
20
+ error?: Error;
21
+ errorUi?: 'alert' | 'toast';
22
+ resetError?: () => void;
23
+ }
24
+ declare const XnsNameCaptureErrors: react__default.FC<XnsNameCaptureErrorsProps>;
25
+
26
+ interface XnsNameCaptureBuyCallbacks {
27
+ onCaptureName?: (name: string) => Promise<void>;
28
+ }
29
+ /**
30
+ * Trackers for user actions
31
+ */
32
+ interface XnsNameCaptureTrackingProps {
33
+ funnel?: string;
34
+ intent?: string;
35
+ placement?: string;
36
+ }
37
+ /**
38
+ * Properties derived from the route and used for navigation
39
+ */
40
+ interface XnsNameCaptureRoutingProps {
41
+ navigate?: (to: string) => void;
42
+ paramsString?: string;
43
+ routingError?: Error;
44
+ to?: To;
45
+ }
46
+ /**
47
+ * Base properties for the XnsNameCapture component related to the UI and Events
48
+ */
49
+ interface XnsNameCaptureBaseProps {
50
+ autoFocus?: boolean;
51
+ buttonText?: string;
52
+ defaultXnsName?: string;
53
+ disabled?: boolean;
54
+ errorUi?: 'alert' | 'toast';
55
+ mobileButtonText?: string;
56
+ onNameChange?: (name: string) => void;
57
+ showSecondary?: boolean | ReactNode;
58
+ }
59
+ interface XnsNameCaptureProps extends XnsNameCaptureBaseProps, XnsNameCaptureTrackingProps, XnsNameCaptureBuyCallbacks, XnsNameCaptureRoutingProps, FlexBoxProps {
60
+ }
61
+ type WithXnsCapture<T> = T & {
62
+ XnsCapture?: React.FC<XnsNameCaptureProps>;
63
+ };
64
+
65
+ declare const useXnsNameCaptureRouting: (props: XnsNameCaptureProps) => {
66
+ defaultXnsName: string | undefined;
67
+ routingError: Error | undefined;
68
+ navigate: (to: string) => void;
69
+ paramsString: string;
70
+ autoFocus?: boolean;
71
+ buttonText?: string;
72
+ disabled?: boolean;
73
+ errorUi?: "alert" | "toast";
74
+ mobileButtonText?: string;
75
+ onNameChange?: (name: string) => void;
76
+ showSecondary?: boolean | react.ReactNode;
77
+ funnel?: string;
78
+ intent?: string;
79
+ placement?: string;
80
+ onCaptureName?: (name: string) => Promise<void>;
81
+ to?: react_router_dom.To;
82
+ background?: boolean;
83
+ paper?: boolean;
84
+ children?: react.ReactNode;
85
+ ref?: react.Ref<unknown>;
86
+ sx?: _mui_system.SxProps<_mui_material.Theme> | undefined;
87
+ color?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Color | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Color | undefined>);
88
+ margin?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Margin<string | number> | readonly NonNullable<csstype.Property.Margin<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Margin<string | number> | readonly NonNullable<csstype.Property.Margin<string | number> | undefined>[] | undefined>);
89
+ p?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Padding<string | number> | readonly NonNullable<csstype.Property.Padding<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Padding<string | number> | readonly NonNullable<csstype.Property.Padding<string | number> | undefined>[] | undefined>);
90
+ border?: _mui_system_styleFunctionSx.ResponsiveStyleValue<number | "hidden" | "medium" | (string & {}) | "none" | "inherit" | "grey" | "-moz-initial" | "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" | "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" | "inset" | "thick" | "thin" | "dashed" | "dotted" | "double" | "groove" | "outset" | "ridge" | "solid" | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<number | "hidden" | "medium" | (string & {}) | "none" | "inherit" | "grey" | "-moz-initial" | "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" | "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" | "inset" | "thick" | "thin" | "dashed" | "dotted" | "double" | "groove" | "outset" | "ridge" | "solid" | undefined>);
91
+ height?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Height<string | number> | readonly NonNullable<csstype.Property.Height<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Height<string | number> | readonly NonNullable<csstype.Property.Height<string | number> | undefined>[] | undefined>);
92
+ width?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Width<string | number> | readonly NonNullable<csstype.Property.Width<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Width<string | number> | readonly NonNullable<csstype.Property.Width<string | number> | undefined>[] | undefined>);
93
+ position?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Position | readonly NonNullable<csstype.Property.Position | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Position | readonly NonNullable<csstype.Property.Position | undefined>[] | undefined>);
94
+ boxShadow?: _mui_system_styleFunctionSx.ResponsiveStyleValue<number | csstype.Property.BoxShadow | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<number | csstype.Property.BoxShadow | undefined>);
95
+ fontWeight?: _mui_system_styleFunctionSx.ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined>);
96
+ zIndex?: _mui_system_styleFunctionSx.ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<string | (string & {}) | (number & {}) | undefined>);
97
+ alignContent?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.AlignContent | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.AlignContent | undefined>);
98
+ alignItems?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.AlignItems | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.AlignItems | undefined>);
99
+ alignSelf?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.AlignSelf | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.AlignSelf | undefined>);
100
+ bottom?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Bottom<string | number> | readonly NonNullable<csstype.Property.Bottom<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Bottom<string | number> | readonly NonNullable<csstype.Property.Bottom<string | number> | undefined>[] | undefined>);
101
+ boxSizing?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BoxSizing | readonly NonNullable<csstype.Property.BoxSizing | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BoxSizing | readonly NonNullable<csstype.Property.BoxSizing | undefined>[] | undefined>);
102
+ columnGap?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.ColumnGap<string | number> | readonly NonNullable<csstype.Property.ColumnGap<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.ColumnGap<string | number> | readonly NonNullable<csstype.Property.ColumnGap<string | number> | undefined>[] | undefined>);
103
+ display?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Display | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Display | undefined>);
104
+ flexBasis?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexBasis<string | number> | readonly NonNullable<csstype.Property.FlexBasis<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexBasis<string | number> | readonly NonNullable<csstype.Property.FlexBasis<string | number> | undefined>[] | undefined>);
105
+ flexDirection?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexDirection | readonly NonNullable<csstype.Property.FlexDirection | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexDirection | readonly NonNullable<csstype.Property.FlexDirection | undefined>[] | undefined>);
106
+ flexGrow?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexGrow | readonly NonNullable<csstype.Property.FlexGrow | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexGrow | readonly NonNullable<csstype.Property.FlexGrow | undefined>[] | undefined>);
107
+ flexShrink?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexShrink | readonly NonNullable<csstype.Property.FlexShrink | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexShrink | readonly NonNullable<csstype.Property.FlexShrink | undefined>[] | undefined>);
108
+ flexWrap?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexWrap | readonly NonNullable<csstype.Property.FlexWrap | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FlexWrap | readonly NonNullable<csstype.Property.FlexWrap | undefined>[] | undefined>);
109
+ fontFamily?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.FontFamily | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.FontFamily | undefined>);
110
+ fontSize?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FontSize<string | number> | readonly NonNullable<csstype.Property.FontSize<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.FontSize<string | number> | readonly NonNullable<csstype.Property.FontSize<string | number> | undefined>[] | undefined>);
111
+ fontStyle?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.FontStyle | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.FontStyle | undefined>);
112
+ gridAutoColumns?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridAutoColumns<string | number> | readonly NonNullable<csstype.Property.GridAutoColumns<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridAutoColumns<string | number> | readonly NonNullable<csstype.Property.GridAutoColumns<string | number> | undefined>[] | undefined>);
113
+ gridAutoFlow?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.GridAutoFlow | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.GridAutoFlow | undefined>);
114
+ gridAutoRows?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridAutoRows<string | number> | readonly NonNullable<csstype.Property.GridAutoRows<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridAutoRows<string | number> | readonly NonNullable<csstype.Property.GridAutoRows<string | number> | undefined>[] | undefined>);
115
+ gridTemplateAreas?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.GridTemplateAreas | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.GridTemplateAreas | undefined>);
116
+ gridTemplateColumns?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridTemplateColumns<string | number> | readonly NonNullable<csstype.Property.GridTemplateColumns<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridTemplateColumns<string | number> | readonly NonNullable<csstype.Property.GridTemplateColumns<string | number> | undefined>[] | undefined>);
117
+ gridTemplateRows?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridTemplateRows<string | number> | readonly NonNullable<csstype.Property.GridTemplateRows<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridTemplateRows<string | number> | readonly NonNullable<csstype.Property.GridTemplateRows<string | number> | undefined>[] | undefined>);
118
+ justifyContent?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.JustifyContent | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.JustifyContent | undefined>);
119
+ justifyItems?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.JustifyItems | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.JustifyItems | undefined>);
120
+ justifySelf?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.JustifySelf | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.JustifySelf | undefined>);
121
+ left?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Left<string | number> | readonly NonNullable<csstype.Property.Left<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Left<string | number> | readonly NonNullable<csstype.Property.Left<string | number> | undefined>[] | undefined>);
122
+ letterSpacing?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.LetterSpacing<string | number> | readonly NonNullable<csstype.Property.LetterSpacing<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.LetterSpacing<string | number> | readonly NonNullable<csstype.Property.LetterSpacing<string | number> | undefined>[] | undefined>);
123
+ lineHeight?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.LineHeight<string | number> | readonly NonNullable<csstype.Property.LineHeight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.LineHeight<string | number> | readonly NonNullable<csstype.Property.LineHeight<string | number> | undefined>[] | undefined>);
124
+ marginBlockEnd?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBlockEnd<string | number> | readonly NonNullable<csstype.Property.MarginBlockEnd<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBlockEnd<string | number> | readonly NonNullable<csstype.Property.MarginBlockEnd<string | number> | undefined>[] | undefined>);
125
+ marginBlockStart?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBlockStart<string | number> | readonly NonNullable<csstype.Property.MarginBlockStart<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBlockStart<string | number> | readonly NonNullable<csstype.Property.MarginBlockStart<string | number> | undefined>[] | undefined>);
126
+ marginBottom?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBottom<string | number> | readonly NonNullable<csstype.Property.MarginBottom<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBottom<string | number> | readonly NonNullable<csstype.Property.MarginBottom<string | number> | undefined>[] | undefined>);
127
+ marginInlineEnd?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginInlineEnd<string | number> | readonly NonNullable<csstype.Property.MarginInlineEnd<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginInlineEnd<string | number> | readonly NonNullable<csstype.Property.MarginInlineEnd<string | number> | undefined>[] | undefined>);
128
+ marginInlineStart?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginInlineStart<string | number> | readonly NonNullable<csstype.Property.MarginInlineStart<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginInlineStart<string | number> | readonly NonNullable<csstype.Property.MarginInlineStart<string | number> | undefined>[] | undefined>);
129
+ marginLeft?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined>);
130
+ marginRight?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginRight<string | number> | readonly NonNullable<csstype.Property.MarginRight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginRight<string | number> | readonly NonNullable<csstype.Property.MarginRight<string | number> | undefined>[] | undefined>);
131
+ marginTop?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined>);
132
+ maxHeight?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MaxHeight<string | number> | readonly NonNullable<csstype.Property.MaxHeight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MaxHeight<string | number> | readonly NonNullable<csstype.Property.MaxHeight<string | number> | undefined>[] | undefined>);
133
+ maxWidth?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MaxWidth<string | number> | readonly NonNullable<csstype.Property.MaxWidth<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MaxWidth<string | number> | readonly NonNullable<csstype.Property.MaxWidth<string | number> | undefined>[] | undefined>);
134
+ minHeight?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MinHeight<string | number> | readonly NonNullable<csstype.Property.MinHeight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MinHeight<string | number> | readonly NonNullable<csstype.Property.MinHeight<string | number> | undefined>[] | undefined>);
135
+ minWidth?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MinWidth<string | number> | readonly NonNullable<csstype.Property.MinWidth<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MinWidth<string | number> | readonly NonNullable<csstype.Property.MinWidth<string | number> | undefined>[] | undefined>);
136
+ order?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Order | readonly NonNullable<csstype.Property.Order | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Order | readonly NonNullable<csstype.Property.Order | undefined>[] | undefined>);
137
+ paddingBlockEnd?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBlockEnd<string | number> | readonly NonNullable<csstype.Property.PaddingBlockEnd<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBlockEnd<string | number> | readonly NonNullable<csstype.Property.PaddingBlockEnd<string | number> | undefined>[] | undefined>);
138
+ paddingBlockStart?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBlockStart<string | number> | readonly NonNullable<csstype.Property.PaddingBlockStart<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBlockStart<string | number> | readonly NonNullable<csstype.Property.PaddingBlockStart<string | number> | undefined>[] | undefined>);
139
+ paddingBottom?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBottom<string | number> | readonly NonNullable<csstype.Property.PaddingBottom<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBottom<string | number> | readonly NonNullable<csstype.Property.PaddingBottom<string | number> | undefined>[] | undefined>);
140
+ paddingInlineEnd?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingInlineEnd<string | number> | readonly NonNullable<csstype.Property.PaddingInlineEnd<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingInlineEnd<string | number> | readonly NonNullable<csstype.Property.PaddingInlineEnd<string | number> | undefined>[] | undefined>);
141
+ paddingInlineStart?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingInlineStart<string | number> | readonly NonNullable<csstype.Property.PaddingInlineStart<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingInlineStart<string | number> | readonly NonNullable<csstype.Property.PaddingInlineStart<string | number> | undefined>[] | undefined>);
142
+ paddingLeft?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined>);
143
+ paddingRight?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingRight<string | number> | readonly NonNullable<csstype.Property.PaddingRight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingRight<string | number> | readonly NonNullable<csstype.Property.PaddingRight<string | number> | undefined>[] | undefined>);
144
+ paddingTop?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined>);
145
+ right?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Right<string | number> | readonly NonNullable<csstype.Property.Right<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Right<string | number> | readonly NonNullable<csstype.Property.Right<string | number> | undefined>[] | undefined>);
146
+ rowGap?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.RowGap<string | number> | readonly NonNullable<csstype.Property.RowGap<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.RowGap<string | number> | readonly NonNullable<csstype.Property.RowGap<string | number> | undefined>[] | undefined>);
147
+ textAlign?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.TextAlign | readonly NonNullable<csstype.Property.TextAlign | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.TextAlign | readonly NonNullable<csstype.Property.TextAlign | undefined>[] | undefined>);
148
+ textOverflow?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.TextOverflow | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.TextOverflow | undefined>);
149
+ textTransform?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.TextTransform | readonly NonNullable<csstype.Property.TextTransform | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.TextTransform | readonly NonNullable<csstype.Property.TextTransform | undefined>[] | undefined>);
150
+ top?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Top<string | number> | readonly NonNullable<csstype.Property.Top<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Top<string | number> | readonly NonNullable<csstype.Property.Top<string | number> | undefined>[] | undefined>);
151
+ visibility?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Visibility | readonly NonNullable<csstype.Property.Visibility | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Visibility | readonly NonNullable<csstype.Property.Visibility | undefined>[] | undefined>);
152
+ whiteSpace?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.WhiteSpace | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.WhiteSpace | undefined>);
153
+ borderBottom?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderBottom<string | number> | readonly NonNullable<csstype.Property.BorderBottom<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderBottom<string | number> | readonly NonNullable<csstype.Property.BorderBottom<string | number> | undefined>[] | undefined>);
154
+ borderColor?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.BorderColor | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.BorderColor | undefined>);
155
+ borderLeft?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderLeft<string | number> | readonly NonNullable<csstype.Property.BorderLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderLeft<string | number> | readonly NonNullable<csstype.Property.BorderLeft<string | number> | undefined>[] | undefined>);
156
+ borderRadius?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderRadius<string | number> | readonly NonNullable<csstype.Property.BorderRadius<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderRadius<string | number> | readonly NonNullable<csstype.Property.BorderRadius<string | number> | undefined>[] | undefined>);
157
+ borderRight?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderRight<string | number> | readonly NonNullable<csstype.Property.BorderRight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderRight<string | number> | readonly NonNullable<csstype.Property.BorderRight<string | number> | undefined>[] | undefined>);
158
+ borderTop?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderTop<string | number> | readonly NonNullable<csstype.Property.BorderTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.BorderTop<string | number> | readonly NonNullable<csstype.Property.BorderTop<string | number> | undefined>[] | undefined>);
159
+ flex?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Flex<string | number> | readonly NonNullable<csstype.Property.Flex<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Flex<string | number> | readonly NonNullable<csstype.Property.Flex<string | number> | undefined>[] | undefined>);
160
+ gap?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Gap<string | number> | readonly NonNullable<csstype.Property.Gap<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Gap<string | number> | readonly NonNullable<csstype.Property.Gap<string | number> | undefined>[] | undefined>);
161
+ gridArea?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridArea | readonly NonNullable<csstype.Property.GridArea | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridArea | readonly NonNullable<csstype.Property.GridArea | undefined>[] | undefined>);
162
+ gridColumn?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridColumn | readonly NonNullable<csstype.Property.GridColumn | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridColumn | readonly NonNullable<csstype.Property.GridColumn | undefined>[] | undefined>);
163
+ gridRow?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridRow | readonly NonNullable<csstype.Property.GridRow | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.GridRow | readonly NonNullable<csstype.Property.GridRow | undefined>[] | undefined>);
164
+ marginBlock?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBlock<string | number> | readonly NonNullable<csstype.Property.MarginBlock<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBlock<string | number> | readonly NonNullable<csstype.Property.MarginBlock<string | number> | undefined>[] | undefined>);
165
+ marginInline?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginInline<string | number> | readonly NonNullable<csstype.Property.MarginInline<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginInline<string | number> | readonly NonNullable<csstype.Property.MarginInline<string | number> | undefined>[] | undefined>);
166
+ overflow?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Overflow | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Overflow | undefined>);
167
+ padding?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Padding<string | number> | readonly NonNullable<csstype.Property.Padding<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Padding<string | number> | readonly NonNullable<csstype.Property.Padding<string | number> | undefined>[] | undefined>);
168
+ paddingBlock?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBlock<string | number> | readonly NonNullable<csstype.Property.PaddingBlock<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBlock<string | number> | readonly NonNullable<csstype.Property.PaddingBlock<string | number> | undefined>[] | undefined>);
169
+ paddingInline?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingInline<string | number> | readonly NonNullable<csstype.Property.PaddingInline<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingInline<string | number> | readonly NonNullable<csstype.Property.PaddingInline<string | number> | undefined>[] | undefined>);
170
+ bgcolor?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.BackgroundColor | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.BackgroundColor | undefined>);
171
+ m?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Margin<string | number> | readonly NonNullable<csstype.Property.Margin<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.Margin<string | number> | readonly NonNullable<csstype.Property.Margin<string | number> | undefined>[] | undefined>);
172
+ mt?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined>);
173
+ mr?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginRight<string | number> | readonly NonNullable<csstype.Property.MarginRight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginRight<string | number> | readonly NonNullable<csstype.Property.MarginRight<string | number> | undefined>[] | undefined>);
174
+ mb?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBottom<string | number> | readonly NonNullable<csstype.Property.MarginBottom<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginBottom<string | number> | readonly NonNullable<csstype.Property.MarginBottom<string | number> | undefined>[] | undefined>);
175
+ ml?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined>);
176
+ mx?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined>);
177
+ marginX?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginLeft<string | number> | readonly NonNullable<csstype.Property.MarginLeft<string | number> | undefined>[] | undefined>);
178
+ my?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined>);
179
+ marginY?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.MarginTop<string | number> | readonly NonNullable<csstype.Property.MarginTop<string | number> | undefined>[] | undefined>);
180
+ pt?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined>);
181
+ pr?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingRight<string | number> | readonly NonNullable<csstype.Property.PaddingRight<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingRight<string | number> | readonly NonNullable<csstype.Property.PaddingRight<string | number> | undefined>[] | undefined>);
182
+ pb?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBottom<string | number> | readonly NonNullable<csstype.Property.PaddingBottom<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingBottom<string | number> | readonly NonNullable<csstype.Property.PaddingBottom<string | number> | undefined>[] | undefined>);
183
+ pl?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined>);
184
+ px?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined>);
185
+ paddingX?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingLeft<string | number> | readonly NonNullable<csstype.Property.PaddingLeft<string | number> | undefined>[] | undefined>);
186
+ py?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined>);
187
+ paddingY?: _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<csstype.Property.PaddingTop<string | number> | readonly NonNullable<csstype.Property.PaddingTop<string | number> | undefined>[] | undefined>);
188
+ typography?: _mui_system_styleFunctionSx.ResponsiveStyleValue<string | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<string | undefined>);
189
+ displayPrint?: _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Display | undefined> | ((theme: _mui_material.Theme) => _mui_system_styleFunctionSx.ResponsiveStyleValue<readonly string[] | csstype.Property.Display | undefined>);
190
+ className?: string;
191
+ style?: react.CSSProperties;
192
+ classes?: Partial<_mui_material.ClassNameMap<never>> | undefined;
193
+ slot?: string | undefined | undefined;
194
+ title?: string | undefined | undefined;
195
+ key?: react.Key | null | undefined;
196
+ defaultChecked?: boolean | undefined | undefined;
197
+ defaultValue?: string | number | readonly string[] | undefined;
198
+ suppressContentEditableWarning?: boolean | undefined | undefined;
199
+ suppressHydrationWarning?: boolean | undefined | undefined;
200
+ accessKey?: string | undefined | undefined;
201
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
202
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
203
+ contextMenu?: string | undefined | undefined;
204
+ dir?: string | undefined | undefined;
205
+ draggable?: (boolean | "true" | "false") | undefined;
206
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
207
+ hidden?: boolean | undefined | undefined;
208
+ id?: string | undefined | undefined;
209
+ lang?: string | undefined | undefined;
210
+ nonce?: string | undefined | undefined;
211
+ spellCheck?: (boolean | "true" | "false") | undefined;
212
+ tabIndex?: number | undefined | undefined;
213
+ translate?: "yes" | "no" | undefined | undefined;
214
+ radioGroup?: string | undefined | undefined;
215
+ role?: react.AriaRole | undefined;
216
+ about?: string | undefined | undefined;
217
+ content?: string | undefined | undefined;
218
+ datatype?: string | undefined | undefined;
219
+ inlist?: any;
220
+ prefix?: string | undefined | undefined;
221
+ property?: string | undefined | undefined;
222
+ rel?: string | undefined | undefined;
223
+ resource?: string | undefined | undefined;
224
+ rev?: string | undefined | undefined;
225
+ typeof?: string | undefined | undefined;
226
+ vocab?: string | undefined | undefined;
227
+ autoCorrect?: string | undefined | undefined;
228
+ autoSave?: string | undefined | undefined;
229
+ itemProp?: string | undefined | undefined;
230
+ itemScope?: boolean | undefined | undefined;
231
+ itemType?: string | undefined | undefined;
232
+ itemID?: string | undefined | undefined;
233
+ itemRef?: string | undefined | undefined;
234
+ results?: number | undefined | undefined;
235
+ security?: string | undefined | undefined;
236
+ unselectable?: "on" | "off" | undefined | undefined;
237
+ popover?: "" | "auto" | "manual" | undefined | undefined;
238
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
239
+ popoverTarget?: string | undefined | undefined;
240
+ inert?: boolean | undefined | undefined;
241
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
242
+ is?: string | undefined | undefined;
243
+ exportparts?: string | undefined | undefined;
244
+ part?: string | undefined | undefined;
245
+ "aria-activedescendant"?: string | undefined | undefined;
246
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
247
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
248
+ "aria-braillelabel"?: string | undefined | undefined;
249
+ "aria-brailleroledescription"?: string | undefined | undefined;
250
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
251
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
252
+ "aria-colcount"?: number | undefined | undefined;
253
+ "aria-colindex"?: number | undefined | undefined;
254
+ "aria-colindextext"?: string | undefined | undefined;
255
+ "aria-colspan"?: number | undefined | undefined;
256
+ "aria-controls"?: string | undefined | undefined;
257
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
258
+ "aria-describedby"?: string | undefined | undefined;
259
+ "aria-description"?: string | undefined | undefined;
260
+ "aria-details"?: string | undefined | undefined;
261
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
262
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
263
+ "aria-errormessage"?: string | undefined | undefined;
264
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
265
+ "aria-flowto"?: string | undefined | undefined;
266
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
267
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
268
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
269
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
270
+ "aria-keyshortcuts"?: string | undefined | undefined;
271
+ "aria-label"?: string | undefined | undefined;
272
+ "aria-labelledby"?: string | undefined | undefined;
273
+ "aria-level"?: number | undefined | undefined;
274
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
275
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
276
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
277
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
278
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
279
+ "aria-owns"?: string | undefined | undefined;
280
+ "aria-placeholder"?: string | undefined | undefined;
281
+ "aria-posinset"?: number | undefined | undefined;
282
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
283
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
284
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
285
+ "aria-required"?: (boolean | "true" | "false") | undefined;
286
+ "aria-roledescription"?: string | undefined | undefined;
287
+ "aria-rowcount"?: number | undefined | undefined;
288
+ "aria-rowindex"?: number | undefined | undefined;
289
+ "aria-rowindextext"?: string | undefined | undefined;
290
+ "aria-rowspan"?: number | undefined | undefined;
291
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
292
+ "aria-setsize"?: number | undefined | undefined;
293
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
294
+ "aria-valuemax"?: number | undefined | undefined;
295
+ "aria-valuemin"?: number | undefined | undefined;
296
+ "aria-valuenow"?: number | undefined | undefined;
297
+ "aria-valuetext"?: string | undefined | undefined;
298
+ dangerouslySetInnerHTML?: {
299
+ __html: string | TrustedHTML;
300
+ } | undefined | undefined;
301
+ onCopy?: react.ClipboardEventHandler<HTMLDivElement> | undefined;
302
+ onCopyCapture?: react.ClipboardEventHandler<HTMLDivElement> | undefined;
303
+ onCut?: react.ClipboardEventHandler<HTMLDivElement> | undefined;
304
+ onCutCapture?: react.ClipboardEventHandler<HTMLDivElement> | undefined;
305
+ onPaste?: react.ClipboardEventHandler<HTMLDivElement> | undefined;
306
+ onPasteCapture?: react.ClipboardEventHandler<HTMLDivElement> | undefined;
307
+ onCompositionEnd?: react.CompositionEventHandler<HTMLDivElement> | undefined;
308
+ onCompositionEndCapture?: react.CompositionEventHandler<HTMLDivElement> | undefined;
309
+ onCompositionStart?: react.CompositionEventHandler<HTMLDivElement> | undefined;
310
+ onCompositionStartCapture?: react.CompositionEventHandler<HTMLDivElement> | undefined;
311
+ onCompositionUpdate?: react.CompositionEventHandler<HTMLDivElement> | undefined;
312
+ onCompositionUpdateCapture?: react.CompositionEventHandler<HTMLDivElement> | undefined;
313
+ onFocus?: react.FocusEventHandler<HTMLDivElement> | undefined;
314
+ onFocusCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
315
+ onBlur?: react.FocusEventHandler<HTMLDivElement> | undefined;
316
+ onBlurCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
317
+ onChange?: react.FormEventHandler<HTMLDivElement> | undefined;
318
+ onChangeCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
319
+ onBeforeInput?: react.FormEventHandler<HTMLDivElement> | undefined;
320
+ onBeforeInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
321
+ onInput?: react.FormEventHandler<HTMLDivElement> | undefined;
322
+ onInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
323
+ onReset?: react.FormEventHandler<HTMLDivElement> | undefined;
324
+ onResetCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
325
+ onSubmit?: react.FormEventHandler<HTMLDivElement> | undefined;
326
+ onSubmitCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
327
+ onInvalid?: react.FormEventHandler<HTMLDivElement> | undefined;
328
+ onInvalidCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
329
+ onLoad?: react.ReactEventHandler<HTMLDivElement> | undefined;
330
+ onLoadCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
331
+ onError?: react.ReactEventHandler<HTMLDivElement> | undefined;
332
+ onErrorCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
333
+ onKeyDown?: react.KeyboardEventHandler<HTMLDivElement> | undefined;
334
+ onKeyDownCapture?: react.KeyboardEventHandler<HTMLDivElement> | undefined;
335
+ onKeyPress?: react.KeyboardEventHandler<HTMLDivElement> | undefined;
336
+ onKeyPressCapture?: react.KeyboardEventHandler<HTMLDivElement> | undefined;
337
+ onKeyUp?: react.KeyboardEventHandler<HTMLDivElement> | undefined;
338
+ onKeyUpCapture?: react.KeyboardEventHandler<HTMLDivElement> | undefined;
339
+ onAbort?: react.ReactEventHandler<HTMLDivElement> | undefined;
340
+ onAbortCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
341
+ onCanPlay?: react.ReactEventHandler<HTMLDivElement> | undefined;
342
+ onCanPlayCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
343
+ onCanPlayThrough?: react.ReactEventHandler<HTMLDivElement> | undefined;
344
+ onCanPlayThroughCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
345
+ onDurationChange?: react.ReactEventHandler<HTMLDivElement> | undefined;
346
+ onDurationChangeCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
347
+ onEmptied?: react.ReactEventHandler<HTMLDivElement> | undefined;
348
+ onEmptiedCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
349
+ onEncrypted?: react.ReactEventHandler<HTMLDivElement> | undefined;
350
+ onEncryptedCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
351
+ onEnded?: react.ReactEventHandler<HTMLDivElement> | undefined;
352
+ onEndedCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
353
+ onLoadedData?: react.ReactEventHandler<HTMLDivElement> | undefined;
354
+ onLoadedDataCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
355
+ onLoadedMetadata?: react.ReactEventHandler<HTMLDivElement> | undefined;
356
+ onLoadedMetadataCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
357
+ onLoadStart?: react.ReactEventHandler<HTMLDivElement> | undefined;
358
+ onLoadStartCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
359
+ onPause?: react.ReactEventHandler<HTMLDivElement> | undefined;
360
+ onPauseCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
361
+ onPlay?: react.ReactEventHandler<HTMLDivElement> | undefined;
362
+ onPlayCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
363
+ onPlaying?: react.ReactEventHandler<HTMLDivElement> | undefined;
364
+ onPlayingCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
365
+ onProgress?: react.ReactEventHandler<HTMLDivElement> | undefined;
366
+ onProgressCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
367
+ onRateChange?: react.ReactEventHandler<HTMLDivElement> | undefined;
368
+ onRateChangeCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
369
+ onResize?: react.ReactEventHandler<HTMLDivElement> | undefined;
370
+ onResizeCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
371
+ onSeeked?: react.ReactEventHandler<HTMLDivElement> | undefined;
372
+ onSeekedCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
373
+ onSeeking?: react.ReactEventHandler<HTMLDivElement> | undefined;
374
+ onSeekingCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
375
+ onStalled?: react.ReactEventHandler<HTMLDivElement> | undefined;
376
+ onStalledCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
377
+ onSuspend?: react.ReactEventHandler<HTMLDivElement> | undefined;
378
+ onSuspendCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
379
+ onTimeUpdate?: react.ReactEventHandler<HTMLDivElement> | undefined;
380
+ onTimeUpdateCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
381
+ onVolumeChange?: react.ReactEventHandler<HTMLDivElement> | undefined;
382
+ onVolumeChangeCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
383
+ onWaiting?: react.ReactEventHandler<HTMLDivElement> | undefined;
384
+ onWaitingCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
385
+ onAuxClick?: react.MouseEventHandler<HTMLDivElement> | undefined;
386
+ onAuxClickCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
387
+ onClick?: react.MouseEventHandler<HTMLDivElement> | undefined;
388
+ onClickCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
389
+ onContextMenu?: react.MouseEventHandler<HTMLDivElement> | undefined;
390
+ onContextMenuCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
391
+ onDoubleClick?: react.MouseEventHandler<HTMLDivElement> | undefined;
392
+ onDoubleClickCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
393
+ onDrag?: react.DragEventHandler<HTMLDivElement> | undefined;
394
+ onDragCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
395
+ onDragEnd?: react.DragEventHandler<HTMLDivElement> | undefined;
396
+ onDragEndCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
397
+ onDragEnter?: react.DragEventHandler<HTMLDivElement> | undefined;
398
+ onDragEnterCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
399
+ onDragExit?: react.DragEventHandler<HTMLDivElement> | undefined;
400
+ onDragExitCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
401
+ onDragLeave?: react.DragEventHandler<HTMLDivElement> | undefined;
402
+ onDragLeaveCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
403
+ onDragOver?: react.DragEventHandler<HTMLDivElement> | undefined;
404
+ onDragOverCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
405
+ onDragStart?: react.DragEventHandler<HTMLDivElement> | undefined;
406
+ onDragStartCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
407
+ onDrop?: react.DragEventHandler<HTMLDivElement> | undefined;
408
+ onDropCapture?: react.DragEventHandler<HTMLDivElement> | undefined;
409
+ onMouseDown?: react.MouseEventHandler<HTMLDivElement> | undefined;
410
+ onMouseDownCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
411
+ onMouseEnter?: react.MouseEventHandler<HTMLDivElement> | undefined;
412
+ onMouseLeave?: react.MouseEventHandler<HTMLDivElement> | undefined;
413
+ onMouseMove?: react.MouseEventHandler<HTMLDivElement> | undefined;
414
+ onMouseMoveCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
415
+ onMouseOut?: react.MouseEventHandler<HTMLDivElement> | undefined;
416
+ onMouseOutCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
417
+ onMouseOver?: react.MouseEventHandler<HTMLDivElement> | undefined;
418
+ onMouseOverCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
419
+ onMouseUp?: react.MouseEventHandler<HTMLDivElement> | undefined;
420
+ onMouseUpCapture?: react.MouseEventHandler<HTMLDivElement> | undefined;
421
+ onSelect?: react.ReactEventHandler<HTMLDivElement> | undefined;
422
+ onSelectCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
423
+ onTouchCancel?: react.TouchEventHandler<HTMLDivElement> | undefined;
424
+ onTouchCancelCapture?: react.TouchEventHandler<HTMLDivElement> | undefined;
425
+ onTouchEnd?: react.TouchEventHandler<HTMLDivElement> | undefined;
426
+ onTouchEndCapture?: react.TouchEventHandler<HTMLDivElement> | undefined;
427
+ onTouchMove?: react.TouchEventHandler<HTMLDivElement> | undefined;
428
+ onTouchMoveCapture?: react.TouchEventHandler<HTMLDivElement> | undefined;
429
+ onTouchStart?: react.TouchEventHandler<HTMLDivElement> | undefined;
430
+ onTouchStartCapture?: react.TouchEventHandler<HTMLDivElement> | undefined;
431
+ onPointerDown?: react.PointerEventHandler<HTMLDivElement> | undefined;
432
+ onPointerDownCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
433
+ onPointerMove?: react.PointerEventHandler<HTMLDivElement> | undefined;
434
+ onPointerMoveCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
435
+ onPointerUp?: react.PointerEventHandler<HTMLDivElement> | undefined;
436
+ onPointerUpCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
437
+ onPointerCancel?: react.PointerEventHandler<HTMLDivElement> | undefined;
438
+ onPointerCancelCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
439
+ onPointerEnter?: react.PointerEventHandler<HTMLDivElement> | undefined;
440
+ onPointerLeave?: react.PointerEventHandler<HTMLDivElement> | undefined;
441
+ onPointerOver?: react.PointerEventHandler<HTMLDivElement> | undefined;
442
+ onPointerOverCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
443
+ onPointerOut?: react.PointerEventHandler<HTMLDivElement> | undefined;
444
+ onPointerOutCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
445
+ onGotPointerCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
446
+ onGotPointerCaptureCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
447
+ onLostPointerCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
448
+ onLostPointerCaptureCapture?: react.PointerEventHandler<HTMLDivElement> | undefined;
449
+ onScroll?: react.UIEventHandler<HTMLDivElement> | undefined;
450
+ onScrollCapture?: react.UIEventHandler<HTMLDivElement> | undefined;
451
+ onScrollEnd?: react.UIEventHandler<HTMLDivElement> | undefined;
452
+ onScrollEndCapture?: react.UIEventHandler<HTMLDivElement> | undefined;
453
+ onWheel?: react.WheelEventHandler<HTMLDivElement> | undefined;
454
+ onWheelCapture?: react.WheelEventHandler<HTMLDivElement> | undefined;
455
+ onAnimationStart?: react.AnimationEventHandler<HTMLDivElement> | undefined;
456
+ onAnimationStartCapture?: react.AnimationEventHandler<HTMLDivElement> | undefined;
457
+ onAnimationEnd?: react.AnimationEventHandler<HTMLDivElement> | undefined;
458
+ onAnimationEndCapture?: react.AnimationEventHandler<HTMLDivElement> | undefined;
459
+ onAnimationIteration?: react.AnimationEventHandler<HTMLDivElement> | undefined;
460
+ onAnimationIterationCapture?: react.AnimationEventHandler<HTMLDivElement> | undefined;
461
+ onToggle?: react.ToggleEventHandler<HTMLDivElement> | undefined;
462
+ onBeforeToggle?: react.ToggleEventHandler<HTMLDivElement> | undefined;
463
+ onTransitionCancel?: react.TransitionEventHandler<HTMLDivElement> | undefined;
464
+ onTransitionCancelCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
465
+ onTransitionEnd?: react.TransitionEventHandler<HTMLDivElement> | undefined;
466
+ onTransitionEndCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
467
+ onTransitionRun?: react.TransitionEventHandler<HTMLDivElement> | undefined;
468
+ onTransitionRunCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
469
+ onTransitionStart?: react.TransitionEventHandler<HTMLDivElement> | undefined;
470
+ onTransitionStartCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
471
+ component?: React.ElementType;
472
+ busy?: boolean;
473
+ busyCircularProps?: _xylabs_react_shared.BusyCircularProgressProps;
474
+ busyColor?: _xylabs_react_shared.MaterialUIThemeColor;
475
+ busyLinearProps?: _xylabs_react_shared.BusyLinearProgressProps;
476
+ busyMinimum?: number;
477
+ busyOpacity?: string | number;
478
+ busySize?: number;
479
+ busyVariant?: _xylabs_react_shared.BusyVariant;
480
+ };
481
+
482
+ /**
483
+ * Assumes the user was redirected with a link that contains a username query parameter.
484
+ * @returns The xNS name from the URI username query parameter.
485
+ */
486
+ declare const useXnsNameFromLocation: () => [name: string | undefined, error: Error | undefined];
487
+
488
+ type XnsCaptureSecondaryLinkProps = XnsNameCaptureTrackingProps & XnsNameCaptureRoutingProps & XnsNameCaptureBuyCallbacks & LinkExProps & {
489
+ setError?: Dispatch<Error | undefined>;
490
+ text?: string;
491
+ xnsName: string;
492
+ };
493
+ declare const XnsCaptureSecondaryLink: react__default.FC<XnsCaptureSecondaryLinkProps>;
494
+
495
+ declare const XnsNameCapture: react__default.FC<XnsNameCaptureProps>;
496
+
497
+ declare const XnsNameCaptureWithContext: react__default.FC<XnsNameCaptureProps>;
498
+
499
+ export { XnsCaptureSecondaryLink, XnsEstimateNameTextField, XnsNameCapture, XnsNameCaptureErrors, XnsNameCaptureWithContext, useXnsNameCaptureRouting, useXnsNameFromLocation };
500
+ export type { WithXnsCapture, XnsCaptureSecondaryLinkProps, XnsEstimateNameTextFieldProps, XnsNameCaptureBaseProps, XnsNameCaptureBuyCallbacks, XnsNameCaptureErrorsProps, XnsNameCaptureProps, XnsNameCaptureRoutingProps, XnsNameCaptureTrackingProps };
@@ -220,7 +220,7 @@ var navigateWithUsername = /* @__PURE__ */ __name((xnsName, paramsString, naviga
220
220
  }, "navigateWithUsername");
221
221
 
222
222
  // src/components/XnsNameCapture/XnsNameCapture.tsx
223
- 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 }) => {
223
+ var XnsNameCapture = /* @__PURE__ */ __name(({ autoFocus = false, buttonText = "Buy My Name", children, defaultXnsName, disabled, errorUi = "alert", funnel = "xns", intent = "unset", mobileButtonText = "Buy", navigate, onCaptureName: onCaptureNameProp, onNameChange, paramsString = "", placement = "", routingError, showSecondary = false, to = "/xns/estimation", ...props }) => {
224
224
  const [xnsName, setXnsName] = useState2(() => defaultXnsName ?? "");
225
225
  const [error, setError] = useState2(routingError);
226
226
  const theme = useTheme3();
@@ -269,6 +269,7 @@ var XnsNameCapture = /* @__PURE__ */ __name(({ autoFocus = false, buttonText = "
269
269
  gap: 1
270
270
  }, /* @__PURE__ */ React4.createElement(XnsEstimateNameTextField, {
271
271
  autoFocus,
272
+ disabled,
272
273
  label: "xNS Name",
273
274
  variant: "outlined",
274
275
  size: "small",
@@ -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/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 { TextField, useTheme } from '@mui/material'\nimport { alphaCss } from '@xylabs/react-theme'\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 inputRef={inputRef}\n onBlur={handleBlur}\n onChange={handleChange}\n {...props}\n slotProps={{ htmlInput: { style: { color: validLength ? theme.vars.palette.text.primary : alphaCss(theme.vars.palette.text.primary, 0.5) } } }}\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 type XnsCaptureSecondaryLinkProps = 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,SAASA,WAAWC,gBAAgB;AACpC,SAASC,gBAAgB;AACzB,SAASC,mBAAmBC,qBAAqB;AACjD,OAAOC,SACLC,iBAAiBC,SAASC,QAAQC,gBAC7B;AAMA,IAAMC,2BAAqF,wBAAC,EACjGC,aAAa,MAAMC,UAAUC,cAAcC,QAAQC,YAAYC,OAAO,G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;IAAiBpB;GAAc;AAEnC,SACE,gBAAA2C,OAAA;IAACC;IAAAA;MAAQC,KAAKvC,gBAAgB,MAAM;MAAGwC,YAAW;MAAU,GAAGtC;;IAC7D,gBAAAmC,OAAA,cAACI,UAAAA;MAAQF,KAAK;OACZ,gBAAAF,OAAA,cAACK,0BAAAA;MACCzD;MACA0D,OAAM;MACNC,SAAQ;MACRC,MAAK;MACLtB,OAAOpB,WAAW;MAClBgC;MACAW,UAAU7B;MACV8B,QAAQ9B;QAEV,gBAAAoB,OAAA,cAACW,UAAAA;MACCC,UAAUnC;MACVxB;MACAC;MACAO;MACA8C,SAAQ;MACRM,OAAM;MACNC,SAAS,gBAAAd,OAAA,cAACe,2BAAAA,IAAAA;MACVC,SAAS3D;OAERgB,WAAWlB,mBAAmBN,UAAAA,CAAAA;IAGjCc,kBAAkB,OAEd,gBAAAqC,OAAA,cAACiB,yBAAAA;MACCnD;MACAL;MACAR;MACAiB;SAGJ;;IAGFP,gBAAgBA,gBAAgB;IAEjCb;IACD,gBAAAkD,OAAA,cAACkB,sBAAAA;MAAqBjD;MAAcjB;MAAkBmE,YAAY,6BAAMjD,SAASiB,MAAAA,GAAf;;;AAGxE,GAlG6D;;;AEf7D,OAAOiC,UAASC,WAAAA,gBAAe;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":["TextField","useTheme","alphaCss","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","slotProps","htmlInput","style","color","vars","palette","text","primary","alphaCss","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"]}
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 { TextField, useTheme } from '@mui/material'\nimport { alphaCss } from '@xylabs/react-theme'\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 inputRef={inputRef}\n onBlur={handleBlur}\n onChange={handleChange}\n {...props}\n slotProps={{ htmlInput: { style: { color: validLength ? theme.vars.palette.text.primary : alphaCss(theme.vars.palette.text.primary, 0.5) } } }}\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 type XnsCaptureSecondaryLinkProps = 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 disabled,\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 disabled={disabled}\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,SAASA,WAAWC,gBAAgB;AACpC,SAASC,gBAAgB;AACzB,SAASC,mBAAmBC,qBAAqB;AACjD,OAAOC,SACLC,iBAAiBC,SAASC,QAAQC,gBAC7B;AAMA,IAAMC,2BAAqF,wBAAC,EACjGC,aAAa,MAAMC,UAAUC,cAAcC,QAAQC,YAAYC,OAAO,GAAGC,MAAAA,MAC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GAAc;AAEnC,SACE,gBAAA2C,OAAA;IAACC;IAAAA;MAAQC,KAAKvC,gBAAgB,MAAM;MAAGwC,YAAW;MAAU,GAAGtC;;IAC7D,gBAAAmC,OAAA,cAACI,UAAAA;MAAQF,KAAK;OACZ,gBAAAF,OAAA,cAACK,0BAAAA;MACC1D;MACAI;MACAuD,OAAM;MACNC,SAAQ;MACRC,MAAK;MACLtB,OAAOpB,WAAW;MAClBgC;MACAW,UAAU7B;MACV8B,QAAQ9B;QAEV,gBAAAoB,OAAA,cAACW,UAAAA;MACC5D,UAAU0B;MACVxB;MACAC;MACAO;MACA8C,SAAQ;MACRK,OAAM;MACNC,SAAS,gBAAAb,OAAA,cAACc,2BAAAA,IAAAA;MACVC,SAAS1D;OAERgB,WAAWlB,mBAAmBP,UAAAA,CAAAA;IAGjCe,kBAAkB,OAEd,gBAAAqC,OAAA,cAACgB,yBAAAA;MACClD;MACAL;MACAR;MACAiB;SAGJ;;IAGFP,gBAAgBA,gBAAgB;IAEjCd;IACD,gBAAAmD,OAAA,cAACiB,sBAAAA;MAAqBhD;MAAcjB;MAAkBkE,YAAY,6BAAMhD,SAASiB,MAAAA,GAAf;;;AAGxE,GApG6D;;;AEf7D,OAAOgC,UAASC,WAAAA,gBAAe;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":["TextField","useTheme","alphaCss","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","slotProps","htmlInput","style","color","vars","palette","text","primary","alphaCss","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","disabled","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","color","endIcon","KeyboardArrowRightRounded","onClick","XnsCaptureSecondaryLink","XnsNameCaptureErrors","resetError","React","useMemo","XnsNameCaptureWithContext","props","routingProps","useXnsNameCaptureRouting","updatedProps","useMemo","React","XnsNameCapture"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-xns",
3
- "version": "6.0.0",
3
+ "version": "6.1.1",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -28,34 +28,35 @@
28
28
  "exports": {
29
29
  ".": {
30
30
  "import": {
31
- "types": "./dist/types/index.d.ts",
31
+ "types": "./dist/browser/index.d.ts",
32
32
  "default": "./dist/browser/index.mjs"
33
33
  },
34
- "types": "./dist/types/index.d.ts",
34
+ "types": "./dist/browser/index.d.ts",
35
35
  "default": "./dist/browser/index.mjs"
36
36
  },
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "module": "dist/browser/index.mjs",
40
- "types": "dist/types/index.d.ts",
40
+ "types": "dist/browser/index.d.ts",
41
41
  "dependencies": {
42
- "@xylabs/react-button": "^6.3.7",
43
- "@xylabs/react-flexbox": "^6.3.7",
44
- "@xylabs/react-link": "^6.3.7",
45
- "@xylabs/react-pixel": "^6.3.7",
46
- "@xylabs/react-theme": "^6.3.7",
42
+ "@xylabs/react-button": "^6.3.10",
43
+ "@xylabs/react-flexbox": "^6.3.10",
44
+ "@xylabs/react-link": "^6.3.10",
45
+ "@xylabs/react-pixel": "^6.3.10",
46
+ "@xylabs/react-theme": "^6.3.10",
47
47
  "@xyo-network/xns-record-payloadset-plugins": "^4.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@mui/icons-material": "^7.2.0",
51
51
  "@mui/material": "^7.2.0",
52
+ "@storybook/react-vite": "^9.0.16",
52
53
  "@types/react": "^19.1.8",
53
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
54
- "@xylabs/tsconfig-react": "^6.5.12",
54
+ "@xylabs/ts-scripts-yarn3": "next",
55
+ "@xylabs/tsconfig-react": "next",
55
56
  "react": "^19.1.0",
56
57
  "react-dom": "^19.1.0",
57
58
  "react-router-dom": "^7.6.3",
58
- "storybook": "^9.0.15",
59
+ "storybook": "^9.0.16",
59
60
  "typescript": "^5.8.3"
60
61
  },
61
62
  "peerDependencies": {
@@ -32,6 +32,7 @@ export interface XnsNameCaptureBaseProps {
32
32
  autoFocus?: boolean
33
33
  buttonText?: string
34
34
  defaultXnsName?: string
35
+ disabled?: boolean
35
36
  errorUi?: 'alert' | 'toast'
36
37
  mobileButtonText?: string
37
38
  onNameChange?: (name: string) => void
@@ -18,6 +18,7 @@ export const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({
18
18
  buttonText = 'Buy My Name',
19
19
  children,
20
20
  defaultXnsName,
21
+ disabled,
21
22
  errorUi = 'alert',
22
23
  funnel = 'xns',
23
24
  intent = 'unset',
@@ -72,6 +73,7 @@ export const XnsNameCapture: React.FC<XnsNameCaptureProps> = ({
72
73
  <FlexRow gap={1}>
73
74
  <XnsEstimateNameTextField
74
75
  autoFocus={autoFocus}
76
+ disabled={disabled}
75
77
  label="xNS Name"
76
78
  variant="outlined"
77
79
  size="small"
@@ -1,2 +0,0 @@
1
- export * from './components/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
File without changes
File without changes