@plasmicpkgs/react-aria 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/ErrorBoundary.d.ts +14 -0
- package/dist/contexts.d.ts +1 -1
- package/dist/react-aria.esm.js +757 -475
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +754 -472
- package/dist/react-aria.js.map +1 -1
- package/dist/registerCheckbox.d.ts +1 -0
- package/dist/registerInput.d.ts +2 -2
- package/dist/registerRadio.d.ts +1 -0
- package/dist/registerTextArea.d.ts +5 -0
- package/dist/registerTextField.d.ts +15 -0
- package/package.json +2 -2
- package/skinny/ErrorBoundary.d.ts +14 -0
- package/skinny/contexts.d.ts +1 -1
- package/skinny/registerButton.cjs.js +2 -2
- package/skinny/registerButton.cjs.js.map +1 -1
- package/skinny/registerButton.esm.js +2 -2
- package/skinny/registerButton.esm.js.map +1 -1
- package/skinny/registerCheckbox.cjs.js +24 -5
- package/skinny/registerCheckbox.cjs.js.map +1 -1
- package/skinny/registerCheckbox.d.ts +1 -0
- package/skinny/registerCheckbox.esm.js +24 -5
- package/skinny/registerCheckbox.esm.js.map +1 -1
- package/skinny/registerCheckboxGroup.cjs.js +2 -14
- package/skinny/registerCheckboxGroup.cjs.js.map +1 -1
- package/skinny/registerCheckboxGroup.esm.js +2 -14
- package/skinny/registerCheckboxGroup.esm.js.map +1 -1
- package/skinny/registerComboBox.cjs.js +4 -4
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.esm.js +4 -4
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/registerDescription.cjs.js +1 -1
- package/skinny/registerDescription.cjs.js.map +1 -1
- package/skinny/registerDescription.esm.js +1 -1
- package/skinny/registerDescription.esm.js.map +1 -1
- package/skinny/registerFieldError.cjs.js +2 -2
- package/skinny/registerFieldError.cjs.js.map +1 -1
- package/skinny/registerFieldError.esm.js +2 -2
- package/skinny/registerFieldError.esm.js.map +1 -1
- package/skinny/registerForm.cjs.js +2 -2
- package/skinny/registerForm.cjs.js.map +1 -1
- package/skinny/registerForm.esm.js +2 -2
- package/skinny/registerForm.esm.js.map +1 -1
- package/skinny/registerHeader.cjs.js +2 -2
- package/skinny/registerHeader.cjs.js.map +1 -1
- package/skinny/registerHeader.esm.js +2 -2
- package/skinny/registerHeader.esm.js.map +1 -1
- package/skinny/registerInput.cjs.js +10 -35
- package/skinny/registerInput.cjs.js.map +1 -1
- package/skinny/registerInput.d.ts +2 -2
- package/skinny/registerInput.esm.js +7 -32
- package/skinny/registerInput.esm.js.map +1 -1
- package/skinny/registerLabel.cjs.js +2 -2
- package/skinny/registerLabel.cjs.js.map +1 -1
- package/skinny/registerLabel.esm.js +2 -2
- package/skinny/registerLabel.esm.js.map +1 -1
- package/skinny/registerListBox.cjs.js +2 -2
- package/skinny/registerListBox.cjs.js.map +1 -1
- package/skinny/registerListBox.esm.js +2 -2
- package/skinny/registerListBox.esm.js.map +1 -1
- package/skinny/registerListBoxItem.cjs.js +2 -2
- package/skinny/registerListBoxItem.cjs.js.map +1 -1
- package/skinny/registerListBoxItem.esm.js +2 -2
- package/skinny/registerListBoxItem.esm.js.map +1 -1
- package/skinny/registerPopover.cjs.js +4 -4
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.esm.js +4 -4
- package/skinny/registerPopover.esm.js.map +1 -1
- package/skinny/registerRadio.cjs.js +39 -27
- package/skinny/registerRadio.cjs.js.map +1 -1
- package/skinny/registerRadio.d.ts +1 -0
- package/skinny/registerRadio.esm.js +41 -29
- package/skinny/registerRadio.esm.js.map +1 -1
- package/skinny/registerRadioGroup.cjs.js +2 -15
- package/skinny/registerRadioGroup.cjs.js.map +1 -1
- package/skinny/registerRadioGroup.esm.js +2 -15
- package/skinny/registerRadioGroup.esm.js.map +1 -1
- package/skinny/registerSection.cjs.js +2 -2
- package/skinny/registerSection.cjs.js.map +1 -1
- package/skinny/registerSection.esm.js +2 -2
- package/skinny/registerSection.esm.js.map +1 -1
- package/skinny/registerSelect.cjs.js +3 -3
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.esm.js +3 -3
- package/skinny/registerSelect.esm.js.map +1 -1
- package/skinny/registerSwitch.cjs.js +2 -2
- package/skinny/registerSwitch.cjs.js.map +1 -1
- package/skinny/registerSwitch.esm.js +2 -2
- package/skinny/registerSwitch.esm.js.map +1 -1
- package/skinny/registerText.cjs.js +2 -2
- package/skinny/registerText.cjs.js.map +1 -1
- package/skinny/registerText.esm.js +2 -2
- package/skinny/registerText.esm.js.map +1 -1
- package/skinny/registerTextArea.cjs.js +53 -0
- package/skinny/registerTextArea.cjs.js.map +1 -0
- package/skinny/registerTextArea.d.ts +5 -0
- package/skinny/registerTextArea.esm.js +46 -0
- package/skinny/registerTextArea.esm.js.map +1 -0
- package/skinny/registerTextField.cjs.js +278 -0
- package/skinny/registerTextField.cjs.js.map +1 -0
- package/skinny/registerTextField.d.ts +15 -0
- package/skinny/registerTextField.esm.js +271 -0
- package/skinny/registerTextField.esm.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerText.cjs.js","sources":["../src/registerText.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TextProps } from \"react-aria-components\";\nimport { Text } from \"react-aria-components\";\nimport {\n CodeComponentMetaOverrides,\n makeComponentName,\n Registerable,\n registerComponentHelper,\n} from \"./utils\";\n\nexport function BaseText({ children, ...rest }: TextProps) {\n return <Text {...rest}>{children}</Text>;\n}\n\nexport function registerText(\n loader?: Registerable,\n overrides?: CodeComponentMetaOverrides<typeof BaseText>\n) {\n registerComponentHelper(\n loader,\n BaseText,\n {\n name: makeComponentName(\"text\"),\n displayName: \"
|
|
1
|
+
{"version":3,"file":"registerText.cjs.js","sources":["../src/registerText.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TextProps } from \"react-aria-components\";\nimport { Text } from \"react-aria-components\";\nimport {\n CodeComponentMetaOverrides,\n makeComponentName,\n Registerable,\n registerComponentHelper,\n} from \"./utils\";\n\nexport function BaseText({ children, ...rest }: TextProps) {\n return <Text {...rest}>{children}</Text>;\n}\n\nexport function registerText(\n loader?: Registerable,\n overrides?: CodeComponentMetaOverrides<typeof BaseText>\n) {\n registerComponentHelper(\n loader,\n BaseText,\n {\n name: makeComponentName(\"text\"),\n displayName: \"Aria Text\",\n importPath: \"@plasmicpkgs/react-aria/skinny/registerText\",\n importName: \"BaseText\",\n props: {\n children: {\n type: \"slot\",\n },\n slot: {\n type: \"string\",\n },\n },\n trapsFocus: true,\n },\n overrides\n );\n}\n"],"names":["React","Text","registerComponentHelper","makeComponentName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,SAAS,SAAS,EAAkC,EAAA;AAAlC,EAAA,IAAA,EAAA,GAAA,EAAA,EAAE,EAV3B,QAAA,EAAA,GAUyB,EAAe,EAAA,IAAA,GAAA,SAAA,CAAf,IAAe,CAAb,UAAA,CAAA,CAAA,CAAA;AACzB,EAAO,uBAAAA,sBAAA,CAAA,aAAA,CAACC,wBAAS,EAAA,cAAA,CAAA,EAAA,EAAA,IAAA,CAAA,EAAO,QAAS,CAAA,CAAA;AACnC,CAAA;AAEgB,SAAA,YAAA,CACd,QACA,SACA,EAAA;AACA,EAAAC,6BAAA;AAAA,IACE,MAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,MACE,IAAA,EAAMC,wBAAkB,MAAM,CAAA;AAAA,MAC9B,WAAa,EAAA,WAAA;AAAA,MACb,UAAY,EAAA,6CAAA;AAAA,MACZ,UAAY,EAAA,UAAA;AAAA,MACZ,KAAO,EAAA;AAAA,QACL,QAAU,EAAA;AAAA,UACR,IAAM,EAAA,MAAA;AAAA,SACR;AAAA,QACA,IAAM,EAAA;AAAA,UACJ,IAAM,EAAA,QAAA;AAAA,SACR;AAAA,OACF;AAAA,MACA,UAAY,EAAA,IAAA;AAAA,KACd;AAAA,IACA,SAAA;AAAA,GACF,CAAA;AACF;;;;;"}
|
|
@@ -41,8 +41,8 @@ function registerText(loader, overrides) {
|
|
|
41
41
|
BaseText,
|
|
42
42
|
{
|
|
43
43
|
name: makeComponentName("text"),
|
|
44
|
-
displayName: "
|
|
45
|
-
importPath: "@plasmicpkgs/react-aria/registerText",
|
|
44
|
+
displayName: "Aria Text",
|
|
45
|
+
importPath: "@plasmicpkgs/react-aria/skinny/registerText",
|
|
46
46
|
importName: "BaseText",
|
|
47
47
|
props: {
|
|
48
48
|
children: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerText.esm.js","sources":["../src/registerText.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TextProps } from \"react-aria-components\";\nimport { Text } from \"react-aria-components\";\nimport {\n CodeComponentMetaOverrides,\n makeComponentName,\n Registerable,\n registerComponentHelper,\n} from \"./utils\";\n\nexport function BaseText({ children, ...rest }: TextProps) {\n return <Text {...rest}>{children}</Text>;\n}\n\nexport function registerText(\n loader?: Registerable,\n overrides?: CodeComponentMetaOverrides<typeof BaseText>\n) {\n registerComponentHelper(\n loader,\n BaseText,\n {\n name: makeComponentName(\"text\"),\n displayName: \"
|
|
1
|
+
{"version":3,"file":"registerText.esm.js","sources":["../src/registerText.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TextProps } from \"react-aria-components\";\nimport { Text } from \"react-aria-components\";\nimport {\n CodeComponentMetaOverrides,\n makeComponentName,\n Registerable,\n registerComponentHelper,\n} from \"./utils\";\n\nexport function BaseText({ children, ...rest }: TextProps) {\n return <Text {...rest}>{children}</Text>;\n}\n\nexport function registerText(\n loader?: Registerable,\n overrides?: CodeComponentMetaOverrides<typeof BaseText>\n) {\n registerComponentHelper(\n loader,\n BaseText,\n {\n name: makeComponentName(\"text\"),\n displayName: \"Aria Text\",\n importPath: \"@plasmicpkgs/react-aria/skinny/registerText\",\n importName: \"BaseText\",\n props: {\n children: {\n type: \"slot\",\n },\n slot: {\n type: \"string\",\n },\n },\n trapsFocus: true,\n },\n overrides\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,SAAS,SAAS,EAAkC,EAAA;AAAlC,EAAA,IAAA,EAAA,GAAA,EAAA,EAAE,EAV3B,QAAA,EAAA,GAUyB,EAAe,EAAA,IAAA,GAAA,SAAA,CAAf,IAAe,CAAb,UAAA,CAAA,CAAA,CAAA;AACzB,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,IAAS,EAAA,cAAA,CAAA,EAAA,EAAA,IAAA,CAAA,EAAO,QAAS,CAAA,CAAA;AACnC,CAAA;AAEgB,SAAA,YAAA,CACd,QACA,SACA,EAAA;AACA,EAAA,uBAAA;AAAA,IACE,MAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,MACE,IAAA,EAAM,kBAAkB,MAAM,CAAA;AAAA,MAC9B,WAAa,EAAA,WAAA;AAAA,MACb,UAAY,EAAA,6CAAA;AAAA,MACZ,UAAY,EAAA,UAAA;AAAA,MACZ,KAAO,EAAA;AAAA,QACL,QAAU,EAAA;AAAA,UACR,IAAM,EAAA,MAAA;AAAA,SACR;AAAA,QACA,IAAM,EAAA;AAAA,UACJ,IAAM,EAAA,QAAA;AAAA,SACR;AAAA,OACF;AAAA,MACA,UAAY,EAAA,IAAA;AAAA,KACd;AAAA,IACA,SAAA;AAAA,GACF,CAAA;AACF;;;;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var reactAriaComponents = require('react-aria-components');
|
|
5
|
+
var utils = require('./utils-1190a0a9.cjs.js');
|
|
6
|
+
require('@plasmicapp/host/registerComponent');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
|
+
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
16
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17
|
+
var __spreadValues = (a, b) => {
|
|
18
|
+
for (var prop in b || (b = {}))
|
|
19
|
+
if (__hasOwnProp.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols)
|
|
22
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
23
|
+
if (__propIsEnum.call(b, prop))
|
|
24
|
+
__defNormalProp(a, prop, b[prop]);
|
|
25
|
+
}
|
|
26
|
+
return a;
|
|
27
|
+
};
|
|
28
|
+
function BaseTextArea(props) {
|
|
29
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.TextArea, __spreadValues({}, props));
|
|
30
|
+
}
|
|
31
|
+
function registerTextArea(loader, overrides) {
|
|
32
|
+
utils.registerComponentHelper(
|
|
33
|
+
loader,
|
|
34
|
+
BaseTextArea,
|
|
35
|
+
{
|
|
36
|
+
name: utils.makeComponentName("textarea"),
|
|
37
|
+
displayName: "Aria TextArea",
|
|
38
|
+
importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
|
|
39
|
+
importName: "BaseTextArea",
|
|
40
|
+
props: {
|
|
41
|
+
placeholder: {
|
|
42
|
+
type: "string"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
trapsFocus: true
|
|
46
|
+
},
|
|
47
|
+
overrides
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
exports.BaseTextArea = BaseTextArea;
|
|
52
|
+
exports.registerTextArea = registerTextArea;
|
|
53
|
+
//# sourceMappingURL=registerTextArea.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerTextArea.cjs.js","sources":["../src/registerTextArea.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TextAreaProps } from \"react-aria-components\";\nimport { TextArea } from \"react-aria-components\";\nimport {\n CodeComponentMetaOverrides,\n makeComponentName,\n Registerable,\n registerComponentHelper,\n} from \"./utils\";\n\nexport function BaseTextArea(props: TextAreaProps) {\n return <TextArea {...props} />;\n}\n\nexport function registerTextArea(\n loader?: Registerable,\n overrides?: CodeComponentMetaOverrides<typeof BaseTextArea>\n) {\n registerComponentHelper(\n loader,\n BaseTextArea,\n {\n name: makeComponentName(\"textarea\"),\n displayName: \"Aria TextArea\",\n importPath: \"@plasmicpkgs/react-aria/skinny/registerTextArea\",\n importName: \"BaseTextArea\",\n props: {\n placeholder: {\n type: \"string\",\n },\n },\n trapsFocus: true,\n },\n overrides\n );\n}\n"],"names":["React","TextArea","registerComponentHelper","makeComponentName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,SAAS,aAAa,KAAsB,EAAA;AACjD,EAAO,uBAAAA,sBAAA,CAAA,aAAA,CAACC,iDAAa,KAAO,CAAA,CAAA,CAAA;AAC9B,CAAA;AAEgB,SAAA,gBAAA,CACd,QACA,SACA,EAAA;AACA,EAAAC,6BAAA;AAAA,IACE,MAAA;AAAA,IACA,YAAA;AAAA,IACA;AAAA,MACE,IAAA,EAAMC,wBAAkB,UAAU,CAAA;AAAA,MAClC,WAAa,EAAA,eAAA;AAAA,MACb,UAAY,EAAA,iDAAA;AAAA,MACZ,UAAY,EAAA,cAAA;AAAA,MACZ,KAAO,EAAA;AAAA,QACL,WAAa,EAAA;AAAA,UACX,IAAM,EAAA,QAAA;AAAA,SACR;AAAA,OACF;AAAA,MACA,UAAY,EAAA,IAAA;AAAA,KACd;AAAA,IACA,SAAA;AAAA,GACF,CAAA;AACF;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TextAreaProps } from "react-aria-components";
|
|
3
|
+
import { CodeComponentMetaOverrides, Registerable } from "./utils";
|
|
4
|
+
export declare function BaseTextArea(props: TextAreaProps): React.JSX.Element;
|
|
5
|
+
export declare function registerTextArea(loader?: Registerable, overrides?: CodeComponentMetaOverrides<typeof BaseTextArea>): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextArea } from 'react-aria-components';
|
|
3
|
+
import { r as registerComponentHelper, m as makeComponentName } from './utils-28f98072.esm.js';
|
|
4
|
+
import '@plasmicapp/host/registerComponent';
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
function BaseTextArea(props) {
|
|
23
|
+
return /* @__PURE__ */ React.createElement(TextArea, __spreadValues({}, props));
|
|
24
|
+
}
|
|
25
|
+
function registerTextArea(loader, overrides) {
|
|
26
|
+
registerComponentHelper(
|
|
27
|
+
loader,
|
|
28
|
+
BaseTextArea,
|
|
29
|
+
{
|
|
30
|
+
name: makeComponentName("textarea"),
|
|
31
|
+
displayName: "Aria TextArea",
|
|
32
|
+
importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
|
|
33
|
+
importName: "BaseTextArea",
|
|
34
|
+
props: {
|
|
35
|
+
placeholder: {
|
|
36
|
+
type: "string"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
trapsFocus: true
|
|
40
|
+
},
|
|
41
|
+
overrides
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { BaseTextArea, registerTextArea };
|
|
46
|
+
//# sourceMappingURL=registerTextArea.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerTextArea.esm.js","sources":["../src/registerTextArea.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TextAreaProps } from \"react-aria-components\";\nimport { TextArea } from \"react-aria-components\";\nimport {\n CodeComponentMetaOverrides,\n makeComponentName,\n Registerable,\n registerComponentHelper,\n} from \"./utils\";\n\nexport function BaseTextArea(props: TextAreaProps) {\n return <TextArea {...props} />;\n}\n\nexport function registerTextArea(\n loader?: Registerable,\n overrides?: CodeComponentMetaOverrides<typeof BaseTextArea>\n) {\n registerComponentHelper(\n loader,\n BaseTextArea,\n {\n name: makeComponentName(\"textarea\"),\n displayName: \"Aria TextArea\",\n importPath: \"@plasmicpkgs/react-aria/skinny/registerTextArea\",\n importName: \"BaseTextArea\",\n props: {\n placeholder: {\n type: \"string\",\n },\n },\n trapsFocus: true,\n },\n overrides\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAUO,SAAS,aAAa,KAAsB,EAAA;AACjD,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,6BAAa,KAAO,CAAA,CAAA,CAAA;AAC9B,CAAA;AAEgB,SAAA,gBAAA,CACd,QACA,SACA,EAAA;AACA,EAAA,uBAAA;AAAA,IACE,MAAA;AAAA,IACA,YAAA;AAAA,IACA;AAAA,MACE,IAAA,EAAM,kBAAkB,UAAU,CAAA;AAAA,MAClC,WAAa,EAAA,eAAA;AAAA,MACb,UAAY,EAAA,iDAAA;AAAA,MACZ,UAAY,EAAA,cAAA;AAAA,MACZ,KAAO,EAAA;AAAA,QACL,WAAa,EAAA;AAAA,UACX,IAAM,EAAA,QAAA;AAAA,SACR;AAAA,OACF;AAAA,MACA,UAAY,EAAA,IAAA;AAAA,KACd;AAAA,IACA,SAAA;AAAA,GACF,CAAA;AACF;;;;"}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var reactAriaComponents = require('react-aria-components');
|
|
5
|
+
var common = require('./common-e74a9214.cjs.js');
|
|
6
|
+
var registerDescription = require('./registerDescription.cjs.js');
|
|
7
|
+
var registerFieldError = require('./registerFieldError.cjs.js');
|
|
8
|
+
var registerInput = require('./registerInput.cjs.js');
|
|
9
|
+
var registerLabel = require('./registerLabel.cjs.js');
|
|
10
|
+
var registerTextArea = require('./registerTextArea.cjs.js');
|
|
11
|
+
var utils = require('./utils-1190a0a9.cjs.js');
|
|
12
|
+
require('./registerText.cjs.js');
|
|
13
|
+
require('@plasmicapp/host/registerComponent');
|
|
14
|
+
|
|
15
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
18
|
+
|
|
19
|
+
var __defProp = Object.defineProperty;
|
|
20
|
+
var __defProps = Object.defineProperties;
|
|
21
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
22
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
23
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
24
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
25
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
26
|
+
var __spreadValues = (a, b) => {
|
|
27
|
+
for (var prop in b || (b = {}))
|
|
28
|
+
if (__hasOwnProp.call(b, prop))
|
|
29
|
+
__defNormalProp(a, prop, b[prop]);
|
|
30
|
+
if (__getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
32
|
+
if (__propIsEnum.call(b, prop))
|
|
33
|
+
__defNormalProp(a, prop, b[prop]);
|
|
34
|
+
}
|
|
35
|
+
return a;
|
|
36
|
+
};
|
|
37
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
38
|
+
var __objRest = (source, exclude) => {
|
|
39
|
+
var target = {};
|
|
40
|
+
for (var prop in source)
|
|
41
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
42
|
+
target[prop] = source[prop];
|
|
43
|
+
if (source != null && __getOwnPropSymbols)
|
|
44
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
45
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
46
|
+
target[prop] = source[prop];
|
|
47
|
+
}
|
|
48
|
+
return target;
|
|
49
|
+
};
|
|
50
|
+
function BaseTextField(props) {
|
|
51
|
+
const _a = props, {
|
|
52
|
+
enableAutoComplete,
|
|
53
|
+
autoComplete,
|
|
54
|
+
children,
|
|
55
|
+
onInvalidChange
|
|
56
|
+
} = _a, rest = __objRest(_a, [
|
|
57
|
+
"enableAutoComplete",
|
|
58
|
+
"autoComplete",
|
|
59
|
+
"children",
|
|
60
|
+
"onInvalidChange"
|
|
61
|
+
]);
|
|
62
|
+
return /* @__PURE__ */ React__default.default.createElement(
|
|
63
|
+
reactAriaComponents.TextField,
|
|
64
|
+
__spreadValues({
|
|
65
|
+
autoComplete: enableAutoComplete ? autoComplete : void 0
|
|
66
|
+
}, rest),
|
|
67
|
+
({ isInvalid }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(utils.ValueObserver, { value: isInvalid, onChange: onInvalidChange }), children)
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
const componentName = utils.makeComponentName("textField");
|
|
71
|
+
function registerTextField(loader, overrides) {
|
|
72
|
+
utils.registerComponentHelper(
|
|
73
|
+
loader,
|
|
74
|
+
BaseTextField,
|
|
75
|
+
{
|
|
76
|
+
name: componentName,
|
|
77
|
+
displayName: "Aria TextField",
|
|
78
|
+
importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
|
|
79
|
+
importName: "BaseTextField",
|
|
80
|
+
// TODO: Support for validate prop
|
|
81
|
+
props: __spreadProps(__spreadValues({}, common.getCommonInputProps("input", [
|
|
82
|
+
"name",
|
|
83
|
+
"isDisabled",
|
|
84
|
+
"isReadOnly",
|
|
85
|
+
"autoFocus",
|
|
86
|
+
"aria-label",
|
|
87
|
+
"children",
|
|
88
|
+
"isRequired"
|
|
89
|
+
])), {
|
|
90
|
+
value: {
|
|
91
|
+
type: "string",
|
|
92
|
+
editOnly: true,
|
|
93
|
+
uncontrolledProp: "defaultValue",
|
|
94
|
+
description: "The current value"
|
|
95
|
+
},
|
|
96
|
+
isInvalid: {
|
|
97
|
+
// TODO: Not sure if needed
|
|
98
|
+
displayName: "Invalid",
|
|
99
|
+
type: "boolean",
|
|
100
|
+
description: "Whether the input value is invalid",
|
|
101
|
+
defaultValueHint: false
|
|
102
|
+
},
|
|
103
|
+
customValidationErrors: {
|
|
104
|
+
// TODO: Not sure if needed
|
|
105
|
+
type: "array",
|
|
106
|
+
description: "Errors for custom validation"
|
|
107
|
+
},
|
|
108
|
+
// validate: {
|
|
109
|
+
// type: "function" as const,
|
|
110
|
+
// argNames: ["value"],
|
|
111
|
+
// argValues: (_ps: any, ctx: any) => [ctx.data[0]],
|
|
112
|
+
// },
|
|
113
|
+
enableAutoComplete: {
|
|
114
|
+
type: "boolean",
|
|
115
|
+
description: "Whether the browser is allowed to automatically complete the input",
|
|
116
|
+
defaultValueHint: false
|
|
117
|
+
},
|
|
118
|
+
autoComplete: {
|
|
119
|
+
type: "choice",
|
|
120
|
+
hidden: ({ enableAutoComplete }) => !enableAutoComplete,
|
|
121
|
+
description: "Guidance as to the type of data expected in the field",
|
|
122
|
+
helpText: "For explanations on what each of the values mean, check https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values",
|
|
123
|
+
options: [
|
|
124
|
+
"name",
|
|
125
|
+
"honorific-prefix",
|
|
126
|
+
"given-name",
|
|
127
|
+
"additional-name",
|
|
128
|
+
"family-name",
|
|
129
|
+
"honorific-suffix",
|
|
130
|
+
"nickname",
|
|
131
|
+
"email",
|
|
132
|
+
"username",
|
|
133
|
+
"new-password",
|
|
134
|
+
"current-password",
|
|
135
|
+
"one-time-code",
|
|
136
|
+
"organization-title",
|
|
137
|
+
"organization",
|
|
138
|
+
"street-address",
|
|
139
|
+
"shipping",
|
|
140
|
+
"billing",
|
|
141
|
+
"address-line1",
|
|
142
|
+
"address-line2",
|
|
143
|
+
"address-line3",
|
|
144
|
+
"address-level4",
|
|
145
|
+
"address-level3",
|
|
146
|
+
"address-level2",
|
|
147
|
+
"address-level1",
|
|
148
|
+
"country",
|
|
149
|
+
"country-name",
|
|
150
|
+
"postal-code",
|
|
151
|
+
"cc-name",
|
|
152
|
+
"cc-given-name",
|
|
153
|
+
"cc-additional-name",
|
|
154
|
+
"cc-family-name",
|
|
155
|
+
"cc-number",
|
|
156
|
+
"cc-exp",
|
|
157
|
+
"cc-exp-month",
|
|
158
|
+
"cc-exp-year",
|
|
159
|
+
"cc-csc",
|
|
160
|
+
"cc-type",
|
|
161
|
+
"transaction-currency",
|
|
162
|
+
"transaction-amount",
|
|
163
|
+
"language",
|
|
164
|
+
"bday",
|
|
165
|
+
"bday-day",
|
|
166
|
+
"bday-month",
|
|
167
|
+
"bday-year",
|
|
168
|
+
"sex",
|
|
169
|
+
"tel",
|
|
170
|
+
"tel-country-code",
|
|
171
|
+
"tel-national",
|
|
172
|
+
"tel-area-code",
|
|
173
|
+
"tel-local",
|
|
174
|
+
"tel-local-suffix",
|
|
175
|
+
"tel-local-prefix",
|
|
176
|
+
"tel-extension",
|
|
177
|
+
"impp",
|
|
178
|
+
"url",
|
|
179
|
+
"photo",
|
|
180
|
+
"webauthn"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
maxLength: {
|
|
184
|
+
type: "number",
|
|
185
|
+
description: "The maximum number of characters supported by the input"
|
|
186
|
+
},
|
|
187
|
+
minLength: {
|
|
188
|
+
type: "number",
|
|
189
|
+
description: "The minimum number of characters supported by the input"
|
|
190
|
+
},
|
|
191
|
+
pattern: {
|
|
192
|
+
type: "string",
|
|
193
|
+
description: "Regex pattern that the value of the input must match to be valid",
|
|
194
|
+
helpText: "For more information about writing Regular Expressions (regex), check out https://regexr.com/",
|
|
195
|
+
validator: (value) => {
|
|
196
|
+
try {
|
|
197
|
+
new RegExp(value);
|
|
198
|
+
return true;
|
|
199
|
+
} catch (error) {
|
|
200
|
+
return "Invalid Regex";
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
type: {
|
|
205
|
+
type: "choice",
|
|
206
|
+
defaultValueHint: "text",
|
|
207
|
+
options: ["text", "search", "url", "tel", "email", "password"]
|
|
208
|
+
},
|
|
209
|
+
inputMode: {
|
|
210
|
+
type: "choice",
|
|
211
|
+
description: "hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents.",
|
|
212
|
+
options: [
|
|
213
|
+
"none",
|
|
214
|
+
"text",
|
|
215
|
+
"tel",
|
|
216
|
+
"url",
|
|
217
|
+
"email",
|
|
218
|
+
"numeric",
|
|
219
|
+
"decimal",
|
|
220
|
+
"search"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
validationBehavior: {
|
|
224
|
+
type: "choice",
|
|
225
|
+
options: ["native", "aria"],
|
|
226
|
+
description: "Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.",
|
|
227
|
+
defaultValueHint: "native"
|
|
228
|
+
},
|
|
229
|
+
onChange: {
|
|
230
|
+
type: "eventHandler",
|
|
231
|
+
argTypes: [{ name: "value", type: "string" }]
|
|
232
|
+
},
|
|
233
|
+
onFocusChange: {
|
|
234
|
+
type: "eventHandler",
|
|
235
|
+
argTypes: [{ name: "isFocused", type: "boolean" }]
|
|
236
|
+
},
|
|
237
|
+
onInvalidChange: {
|
|
238
|
+
type: "eventHandler",
|
|
239
|
+
argTypes: [{ name: "isInvalid", type: "boolean" }]
|
|
240
|
+
}
|
|
241
|
+
}),
|
|
242
|
+
// NOTE: React-Aria does not support render props for <Input> and <Textarea>, so focusVisible and inputHovered states are not implemented
|
|
243
|
+
states: {
|
|
244
|
+
value: {
|
|
245
|
+
type: "writable",
|
|
246
|
+
valueProp: "value",
|
|
247
|
+
onChangeProp: "onChange",
|
|
248
|
+
variableType: "text"
|
|
249
|
+
},
|
|
250
|
+
isFocused: {
|
|
251
|
+
type: "readonly",
|
|
252
|
+
onChangeProp: "onFocusChange",
|
|
253
|
+
variableType: "boolean"
|
|
254
|
+
},
|
|
255
|
+
isInvalid: {
|
|
256
|
+
type: "readonly",
|
|
257
|
+
onChangeProp: "onInvalidChange",
|
|
258
|
+
variableType: "boolean"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
trapsFocus: true
|
|
262
|
+
},
|
|
263
|
+
overrides
|
|
264
|
+
);
|
|
265
|
+
const thisName = utils.makeChildComponentName(
|
|
266
|
+
overrides == null ? void 0 : overrides.parentComponentName,
|
|
267
|
+
componentName
|
|
268
|
+
);
|
|
269
|
+
registerFieldError.registerFieldError(loader, { parentComponentName: thisName });
|
|
270
|
+
registerInput.registerInput(loader, { parentComponentName: thisName });
|
|
271
|
+
registerLabel.registerLabel(loader, { parentComponentName: thisName });
|
|
272
|
+
registerDescription.registerDescription(loader, { parentComponentName: thisName });
|
|
273
|
+
registerTextArea.registerTextArea(loader, { parentComponentName: thisName });
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
exports.BaseTextField = BaseTextField;
|
|
277
|
+
exports.registerTextField = registerTextField;
|
|
278
|
+
//# sourceMappingURL=registerTextField.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerTextField.cjs.js","sources":["../src/registerTextField.tsx"],"sourcesContent":["import React, { ReactNode } from \"react\";\nimport type { InputProps, TextFieldProps } from \"react-aria-components\";\nimport { TextField } from \"react-aria-components\";\nimport { getCommonInputProps } from \"./common\";\nimport { registerDescription } from \"./registerDescription\";\nimport { registerFieldError } from \"./registerFieldError\";\nimport { registerInput } from \"./registerInput\";\nimport { registerLabel } from \"./registerLabel\";\nimport { registerTextArea } from \"./registerTextArea\";\nimport {\n CodeComponentMetaOverrides,\n makeChildComponentName,\n makeComponentName,\n Registerable,\n registerComponentHelper,\n ValueObserver,\n} from \"./utils\";\n\ninterface BaseTextFieldProps extends TextFieldProps {\n children?: ReactNode;\n label?: ReactNode;\n description?: ReactNode;\n enableAutoComplete?: boolean;\n multiline?: boolean;\n inputProps?: InputProps;\n onInvalidChange?: (isInvalid: boolean) => void;\n}\n\nexport function BaseTextField(props: BaseTextFieldProps) {\n const {\n enableAutoComplete,\n autoComplete,\n children,\n onInvalidChange,\n ...rest\n } = props;\n\n return (\n <TextField\n autoComplete={enableAutoComplete ? autoComplete : undefined}\n {...rest}\n >\n {({ isInvalid }) => (\n <>\n <ValueObserver value={isInvalid} onChange={onInvalidChange} />\n {children as ReactNode}\n </>\n )}\n </TextField>\n );\n}\n\nconst componentName = makeComponentName(\"textField\");\n\nexport function registerTextField(\n loader?: Registerable,\n overrides?: CodeComponentMetaOverrides<typeof BaseTextField>\n) {\n registerComponentHelper(\n loader,\n BaseTextField,\n {\n name: componentName,\n displayName: \"Aria TextField\",\n importPath: \"@plasmicpkgs/react-aria/skinny/registerTextField\",\n importName: \"BaseTextField\",\n // TODO: Support for validate prop\n props: {\n ...getCommonInputProps<BaseTextFieldProps>(\"input\", [\n \"name\",\n \"isDisabled\",\n \"isReadOnly\",\n \"autoFocus\",\n \"aria-label\",\n \"children\",\n \"isRequired\",\n ]),\n value: {\n type: \"string\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n description: \"The current value\",\n },\n isInvalid: {\n // TODO: Not sure if needed\n displayName: \"Invalid\",\n type: \"boolean\",\n description: \"Whether the input value is invalid\",\n defaultValueHint: false,\n },\n customValidationErrors: {\n // TODO: Not sure if needed\n type: \"array\",\n description: \"Errors for custom validation\",\n },\n // validate: {\n // type: \"function\" as const,\n // argNames: [\"value\"],\n // argValues: (_ps: any, ctx: any) => [ctx.data[0]],\n // },\n enableAutoComplete: {\n type: \"boolean\",\n description:\n \"Whether the browser is allowed to automatically complete the input\",\n defaultValueHint: false,\n },\n autoComplete: {\n type: \"choice\",\n hidden: ({ enableAutoComplete }: BaseTextFieldProps) =>\n !enableAutoComplete,\n description: \"Guidance as to the type of data expected in the field\",\n helpText:\n \"For explanations on what each of the values mean, check https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values\",\n options: [\n \"name\",\n \"honorific-prefix\",\n \"given-name\",\n \"additional-name\",\n \"family-name\",\n \"honorific-suffix\",\n \"nickname\",\n \"email\",\n \"username\",\n \"new-password\",\n \"current-password\",\n \"one-time-code\",\n \"organization-title\",\n \"organization\",\n \"street-address\",\n \"shipping\",\n \"billing\",\n \"address-line1\",\n \"address-line2\",\n \"address-line3\",\n \"address-level4\",\n \"address-level3\",\n \"address-level2\",\n \"address-level1\",\n \"country\",\n \"country-name\",\n \"postal-code\",\n \"cc-name\",\n \"cc-given-name\",\n \"cc-additional-name\",\n \"cc-family-name\",\n \"cc-number\",\n \"cc-exp\",\n \"cc-exp-month\",\n \"cc-exp-year\",\n \"cc-csc\",\n \"cc-type\",\n \"transaction-currency\",\n \"transaction-amount\",\n \"language\",\n \"bday\",\n \"bday-day\",\n \"bday-month\",\n \"bday-year\",\n \"sex\",\n \"tel\",\n \"tel-country-code\",\n \"tel-national\",\n \"tel-area-code\",\n \"tel-local\",\n \"tel-local-suffix\",\n \"tel-local-prefix\",\n \"tel-extension\",\n \"impp\",\n \"url\",\n \"photo\",\n \"webauthn\",\n ],\n },\n maxLength: {\n type: \"number\",\n description:\n \"The maximum number of characters supported by the input\",\n },\n minLength: {\n type: \"number\",\n description:\n \"The minimum number of characters supported by the input\",\n },\n pattern: {\n type: \"string\",\n description:\n \"Regex pattern that the value of the input must match to be valid\",\n helpText:\n \"For more information about writing Regular Expressions (regex), check out https://regexr.com/\",\n validator: (value) => {\n try {\n new RegExp(value);\n return true;\n } catch (error) {\n return \"Invalid Regex\";\n }\n },\n },\n type: {\n type: \"choice\",\n defaultValueHint: \"text\",\n options: [\"text\", \"search\", \"url\", \"tel\", \"email\", \"password\"],\n },\n inputMode: {\n type: \"choice\",\n description:\n \"hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents.\",\n options: [\n \"none\",\n \"text\",\n \"tel\",\n \"url\",\n \"email\",\n \"numeric\",\n \"decimal\",\n \"search\",\n ],\n },\n validationBehavior: {\n type: \"choice\",\n options: [\"native\", \"aria\"],\n description:\n \"Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.\",\n defaultValueHint: \"native\",\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [{ name: \"value\", type: \"string\" }],\n },\n onFocusChange: {\n type: \"eventHandler\",\n argTypes: [{ name: \"isFocused\", type: \"boolean\" }],\n },\n onInvalidChange: {\n type: \"eventHandler\",\n argTypes: [{ name: \"isInvalid\", type: \"boolean\" }],\n },\n },\n // NOTE: React-Aria does not support render props for <Input> and <Textarea>, so focusVisible and inputHovered states are not implemented\n states: {\n value: {\n type: \"writable\",\n valueProp: \"value\",\n onChangeProp: \"onChange\",\n variableType: \"text\",\n },\n isFocused: {\n type: \"readonly\",\n onChangeProp: \"onFocusChange\",\n variableType: \"boolean\",\n },\n isInvalid: {\n type: \"readonly\",\n onChangeProp: \"onInvalidChange\",\n variableType: \"boolean\",\n },\n },\n trapsFocus: true,\n },\n overrides\n );\n\n const thisName = makeChildComponentName(\n overrides?.parentComponentName,\n componentName\n );\n\n registerFieldError(loader, { parentComponentName: thisName });\n registerInput(loader, { parentComponentName: thisName });\n registerLabel(loader, { parentComponentName: thisName });\n registerDescription(loader, { parentComponentName: thisName });\n registerTextArea(loader, { parentComponentName: thisName });\n}\n"],"names":["React","TextField","ValueObserver","makeComponentName","registerComponentHelper","getCommonInputProps","makeChildComponentName","registerFieldError","registerInput","registerLabel","registerDescription","registerTextArea"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BO,SAAS,cAAc,KAA2B,EAAA;AACvD,EAAA,MAMI,EALF,GAAA,KAAA,EAAA;AAAA,IAAA,kBAAA;AAAA,IACA,YAAA;AAAA,IACA,QAAA;AAAA,IACA,eAAA;AAAA,GAjCJ,GAmCM,EADC,EAAA,IAAA,GAAA,SAAA,CACD,EADC,EAAA;AAAA,IAJH,oBAAA;AAAA,IACA,cAAA;AAAA,IACA,UAAA;AAAA,IACA,iBAAA;AAAA,GAAA,CAAA,CAAA;AAIF,EACE,uBAAAA,sBAAA,CAAA,aAAA;AAAA,IAACC,6BAAA;AAAA,IAAA,cAAA,CAAA;AAAA,MACC,YAAA,EAAc,qBAAqB,YAAe,GAAA,KAAA,CAAA;AAAA,KAC9C,EAAA,IAAA,CAAA;AAAA,IAEH,CAAC,EAAE,SAAU,EAAA,qBAEVD,sBAAA,CAAA,aAAA,CAAAA,sBAAA,CAAA,QAAA,EAAA,IAAA,kBAAAA,sBAAA,CAAA,aAAA,CAACE,mBAAc,EAAA,EAAA,KAAA,EAAO,SAAW,EAAA,QAAA,EAAU,eAAiB,EAAA,CAAA,EAC3D,QACH,CAAA;AAAA,GAEJ,CAAA;AAEJ,CAAA;AAEA,MAAM,aAAA,GAAgBC,wBAAkB,WAAW,CAAA,CAAA;AAEnC,SAAA,iBAAA,CACd,QACA,SACA,EAAA;AACA,EAAAC,6BAAA;AAAA,IACE,MAAA;AAAA,IACA,aAAA;AAAA,I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A;AAAA;AAAA,MAEA,MAAQ,EAAA;AAAA,QACN,KAAO,EAAA;AAAA,UACL,IAAM,EAAA,UAAA;AAAA,UACN,SAAW,EAAA,OAAA;AAAA,UACX,YAAc,EAAA,UAAA;AAAA,UACd,YAAc,EAAA,MAAA;AAAA,SAChB;AAAA,QACA,SAAW,EAAA;AAAA,UACT,IAAM,EAAA,UAAA;AAAA,UACN,YAAc,EAAA,eAAA;AAAA,UACd,YAAc,EAAA,SAAA;AAAA,SAChB;AAAA,QACA,SAAW,EAAA;AAAA,UACT,IAAM,EAAA,UAAA;AAAA,UACN,YAAc,EAAA,iBAAA;AAAA,UACd,YAAc,EAAA,SAAA;AAAA,SAChB;AAAA,OACF;AAAA,MACA,UAAY,EAAA,IAAA;AAAA,KACd;AAAA,IACA,SAAA;AAAA,GACF,CAAA;AAEA,EAAA,MAAM,QAAW,GAAAC,4BAAA;AAAA,IACf,SAAW,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,SAAA,CAAA,mBAAA;AAAA,IACX,aAAA;AAAA,GACF,CAAA;AAEA,EAAAC,qCAAA,CAAmB,MAAQ,EAAA,EAAE,mBAAqB,EAAA,QAAA,EAAU,CAAA,CAAA;AAC5D,EAAAC,2BAAA,CAAc,MAAQ,EAAA,EAAE,mBAAqB,EAAA,QAAA,EAAU,CAAA,CAAA;AACvD,EAAAC,2BAAA,CAAc,MAAQ,EAAA,EAAE,mBAAqB,EAAA,QAAA,EAAU,CAAA,CAAA;AACvD,EAAAC,uCAAA,CAAoB,MAAQ,EAAA,EAAE,mBAAqB,EAAA,QAAA,EAAU,CAAA,CAAA;AAC7D,EAAAC,iCAAA,CAAiB,MAAQ,EAAA,EAAE,mBAAqB,EAAA,QAAA,EAAU,CAAA,CAAA;AAC5D;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import type { InputProps, TextFieldProps } from "react-aria-components";
|
|
3
|
+
import { CodeComponentMetaOverrides, Registerable } from "./utils";
|
|
4
|
+
interface BaseTextFieldProps extends TextFieldProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
enableAutoComplete?: boolean;
|
|
9
|
+
multiline?: boolean;
|
|
10
|
+
inputProps?: InputProps;
|
|
11
|
+
onInvalidChange?: (isInvalid: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function BaseTextField(props: BaseTextFieldProps): React.JSX.Element;
|
|
14
|
+
export declare function registerTextField(loader?: Registerable, overrides?: CodeComponentMetaOverrides<typeof BaseTextField>): void;
|
|
15
|
+
export {};
|