@metamask/snaps-sdk 10.0.0 → 10.2.0
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/CHANGELOG.md +20 -1
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/internals/index.cjs +1 -0
- package/dist/internals/index.cjs.map +1 -1
- package/dist/internals/index.d.cts +1 -0
- package/dist/internals/index.d.cts.map +1 -1
- package/dist/internals/index.d.mts +1 -0
- package/dist/internals/index.d.mts.map +1 -1
- package/dist/internals/index.mjs +1 -0
- package/dist/internals/index.mjs.map +1 -1
- package/dist/internals/time.cjs +24 -0
- package/dist/internals/time.cjs.map +1 -0
- package/dist/internals/time.d.cts +5 -0
- package/dist/internals/time.d.cts.map +1 -0
- package/dist/internals/time.d.mts +5 -0
- package/dist/internals/time.d.mts.map +1 -0
- package/dist/internals/time.mjs +21 -0
- package/dist/internals/time.mjs.map +1 -0
- package/dist/jsx/components/form/DateTimePicker.cjs +21 -0
- package/dist/jsx/components/form/DateTimePicker.cjs.map +1 -0
- package/dist/jsx/components/form/DateTimePicker.d.cts +45 -0
- package/dist/jsx/components/form/DateTimePicker.d.cts.map +1 -0
- package/dist/jsx/components/form/DateTimePicker.d.mts +45 -0
- package/dist/jsx/components/form/DateTimePicker.d.mts.map +1 -0
- package/dist/jsx/components/form/DateTimePicker.mjs +18 -0
- package/dist/jsx/components/form/DateTimePicker.mjs.map +1 -0
- package/dist/jsx/components/form/Field.cjs.map +1 -1
- package/dist/jsx/components/form/Field.d.cts +2 -1
- package/dist/jsx/components/form/Field.d.cts.map +1 -1
- package/dist/jsx/components/form/Field.d.mts +2 -1
- package/dist/jsx/components/form/Field.d.mts.map +1 -1
- package/dist/jsx/components/form/Field.mjs.map +1 -1
- package/dist/jsx/components/form/index.cjs +1 -0
- package/dist/jsx/components/form/index.cjs.map +1 -1
- package/dist/jsx/components/form/index.d.cts +3 -1
- package/dist/jsx/components/form/index.d.cts.map +1 -1
- package/dist/jsx/components/form/index.d.mts +3 -1
- package/dist/jsx/components/form/index.d.mts.map +1 -1
- package/dist/jsx/components/form/index.mjs +1 -0
- package/dist/jsx/components/form/index.mjs.map +1 -1
- package/dist/jsx/components/formatting/Italic.cjs +1 -1
- package/dist/jsx/components/formatting/Italic.cjs.map +1 -1
- package/dist/jsx/components/formatting/Italic.d.cts +1 -1
- package/dist/jsx/components/formatting/Italic.d.mts +1 -1
- package/dist/jsx/components/formatting/Italic.mjs +1 -1
- package/dist/jsx/components/formatting/Italic.mjs.map +1 -1
- package/dist/jsx/validation.cjs +17 -2
- package/dist/jsx/validation.cjs.map +1 -1
- package/dist/jsx/validation.d.cts +8 -4
- package/dist/jsx/validation.d.cts.map +1 -1
- package/dist/jsx/validation.d.mts +8 -4
- package/dist/jsx/validation.d.mts.map +1 -1
- package/dist/jsx/validation.mjs +16 -1
- package/dist/jsx/validation.mjs.map +1 -1
- package/dist/types/handlers/user-input.cjs +2 -2
- package/dist/types/handlers/user-input.cjs.map +1 -1
- package/dist/types/handlers/user-input.d.cts +3 -3
- package/dist/types/handlers/user-input.d.cts.map +1 -1
- package/dist/types/handlers/user-input.d.mts +3 -3
- package/dist/types/handlers/user-input.d.mts.map +1 -1
- package/dist/types/handlers/user-input.mjs +2 -2
- package/dist/types/handlers/user-input.mjs.map +1 -1
- package/dist/types/interface.d.cts +1 -1
- package/dist/types/interface.d.mts +1 -1
- package/dist/types/methods/get-client-status.cjs.map +1 -1
- package/dist/types/methods/get-client-status.d.cts +14 -0
- package/dist/types/methods/get-client-status.d.cts.map +1 -1
- package/dist/types/methods/get-client-status.d.mts +14 -0
- package/dist/types/methods/get-client-status.d.mts.map +1 -1
- package/dist/types/methods/get-client-status.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.assert = exports.nonEmptyRecord = exports.selectiveUnion = exports.typedUnion = exports.enumValue = exports.union = exports.literal = exports.SNAP_ERROR_MESSAGE = exports.SNAP_ERROR_CODE = exports.getErrorStack = exports.getErrorMessage = exports.getErrorData = void 0;
|
|
17
|
+
exports.assert = exports.ISO8601DateStruct = exports.nonEmptyRecord = exports.selectiveUnion = exports.typedUnion = exports.enumValue = exports.union = exports.literal = exports.SNAP_ERROR_MESSAGE = exports.SNAP_ERROR_CODE = exports.getErrorStack = exports.getErrorMessage = exports.getErrorData = void 0;
|
|
18
18
|
var internals_1 = require("./internals/index.cjs");
|
|
19
19
|
Object.defineProperty(exports, "getErrorData", { enumerable: true, get: function () { return internals_1.getErrorData; } });
|
|
20
20
|
Object.defineProperty(exports, "getErrorMessage", { enumerable: true, get: function () { return internals_1.getErrorMessage; } });
|
|
@@ -27,6 +27,7 @@ Object.defineProperty(exports, "enumValue", { enumerable: true, get: function ()
|
|
|
27
27
|
Object.defineProperty(exports, "typedUnion", { enumerable: true, get: function () { return internals_1.typedUnion; } });
|
|
28
28
|
Object.defineProperty(exports, "selectiveUnion", { enumerable: true, get: function () { return internals_1.selectiveUnion; } });
|
|
29
29
|
Object.defineProperty(exports, "nonEmptyRecord", { enumerable: true, get: function () { return internals_1.nonEmptyRecord; } });
|
|
30
|
+
Object.defineProperty(exports, "ISO8601DateStruct", { enumerable: true, get: function () { return internals_1.ISO8601DateStruct; } });
|
|
30
31
|
var utils_1 = require("@metamask/utils");
|
|
31
32
|
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return utils_1.assert; } });
|
|
32
33
|
__exportStar(require("./errors.cjs"), exports);
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mDAaqB;AAZnB,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AACf,0GAAA,aAAa,OAAA;AACb,4GAAA,eAAe,OAAA;AACf,+GAAA,kBAAkB,OAAA;AAClB,oGAAA,OAAO,OAAA;AACP,kGAAA,KAAK,OAAA;AACL,sGAAA,SAAS,OAAA;AACT,uGAAA,UAAU,OAAA;AACV,2GAAA,cAAc,OAAA;AACd,2GAAA,cAAc,OAAA;AACd,8GAAA,iBAAiB,OAAA;AAUnB,yCAAyC;AAAhC,+FAAA,MAAM,OAAA;AAEf,+CAAyB;AACzB,uDAAiC;AACjC,+CAAyB;AACzB,oDAAwB;AACxB,iDAAqB","sourcesContent":["// Only internals that are used by other Snaps packages should be exported here.\nexport type { EnumToUnion } from './internals';\nexport {\n getErrorData,\n getErrorMessage,\n getErrorStack,\n SNAP_ERROR_CODE,\n SNAP_ERROR_MESSAGE,\n literal,\n union,\n enumValue,\n typedUnion,\n selectiveUnion,\n nonEmptyRecord,\n ISO8601DateStruct,\n} from './internals';\n\n// Re-exported from `@metamask/utils` for convenience.\nexport type {\n Json,\n JsonRpcError,\n JsonRpcRequest,\n JsonRpcParams,\n} from '@metamask/utils';\nexport { assert } from '@metamask/utils';\n\nexport * from './errors';\nexport * from './error-wrappers';\nexport * from './images';\nexport * from './types';\nexport * from './ui';\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { EnumToUnion } from "./internals/index.cjs";
|
|
2
|
-
export { getErrorData, getErrorMessage, getErrorStack, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE, literal, union, enumValue, typedUnion, selectiveUnion, nonEmptyRecord, } from "./internals/index.cjs";
|
|
2
|
+
export { getErrorData, getErrorMessage, getErrorStack, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE, literal, union, enumValue, typedUnion, selectiveUnion, nonEmptyRecord, ISO8601DateStruct, } from "./internals/index.cjs";
|
|
3
3
|
export type { Json, JsonRpcError, JsonRpcRequest, JsonRpcParams, } from "@metamask/utils";
|
|
4
4
|
export { assert } from "@metamask/utils";
|
|
5
5
|
export * from "./errors.cjs";
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,8BAAoB;AAC/C,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,8BAAoB;AAC/C,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,GAClB,8BAAoB;AAGrB,YAAY,EACV,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,aAAa,GACd,wBAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,wBAAwB;AAEzC,6BAAyB;AACzB,qCAAiC;AACjC,6BAAyB;AACzB,kCAAwB;AACxB,+BAAqB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { EnumToUnion } from "./internals/index.mjs";
|
|
2
|
-
export { getErrorData, getErrorMessage, getErrorStack, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE, literal, union, enumValue, typedUnion, selectiveUnion, nonEmptyRecord, } from "./internals/index.mjs";
|
|
2
|
+
export { getErrorData, getErrorMessage, getErrorStack, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE, literal, union, enumValue, typedUnion, selectiveUnion, nonEmptyRecord, ISO8601DateStruct, } from "./internals/index.mjs";
|
|
3
3
|
export type { Json, JsonRpcError, JsonRpcRequest, JsonRpcParams, } from "@metamask/utils";
|
|
4
4
|
export { assert } from "@metamask/utils";
|
|
5
5
|
export * from "./errors.mjs";
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,8BAAoB;AAC/C,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,8BAAoB;AAC/C,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,GAClB,8BAAoB;AAGrB,YAAY,EACV,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,aAAa,GACd,wBAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,wBAAwB;AAEzC,6BAAyB;AACzB,qCAAiC;AACjC,6BAAyB;AACzB,kCAAwB;AACxB,+BAAqB"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getErrorData, getErrorMessage, getErrorStack, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE, literal, union, enumValue, typedUnion, selectiveUnion, nonEmptyRecord } from "./internals/index.mjs";
|
|
1
|
+
export { getErrorData, getErrorMessage, getErrorStack, SNAP_ERROR_CODE, SNAP_ERROR_MESSAGE, literal, union, enumValue, typedUnion, selectiveUnion, nonEmptyRecord, ISO8601DateStruct } from "./internals/index.mjs";
|
|
2
2
|
export { assert } from "@metamask/utils";
|
|
3
3
|
export * from "./errors.mjs";
|
|
4
4
|
export * from "./error-wrappers.mjs";
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EAClB,8BAAoB;AASrB,OAAO,EAAE,MAAM,EAAE,wBAAwB;AAEzC,6BAAyB;AACzB,qCAAiC;AACjC,6BAAyB;AACzB,kCAAwB;AACxB,+BAAqB","sourcesContent":["// Only internals that are used by other Snaps packages should be exported here.\nexport type { EnumToUnion } from './internals';\nexport {\n getErrorData,\n getErrorMessage,\n getErrorStack,\n SNAP_ERROR_CODE,\n SNAP_ERROR_MESSAGE,\n literal,\n union,\n enumValue,\n typedUnion,\n selectiveUnion,\n nonEmptyRecord,\n ISO8601DateStruct,\n} from './internals';\n\n// Re-exported from `@metamask/utils` for convenience.\nexport type {\n Json,\n JsonRpcError,\n JsonRpcRequest,\n JsonRpcParams,\n} from '@metamask/utils';\nexport { assert } from '@metamask/utils';\n\nexport * from './errors';\nexport * from './error-wrappers';\nexport * from './images';\nexport * from './types';\nexport * from './ui';\n"]}
|
|
@@ -15,10 +15,10 @@ export type JsonRpcErrorFunction = typeof rpcErrors.parse;
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
17
17
|
new (message?: string): {
|
|
18
|
-
readonly "__#
|
|
19
|
-
readonly "__#
|
|
20
|
-
readonly "__#
|
|
21
|
-
readonly "__#
|
|
18
|
+
readonly "__#16823@#code": number;
|
|
19
|
+
readonly "__#16823@#message": string;
|
|
20
|
+
readonly "__#16823@#data"?: Record<string, Json> | undefined;
|
|
21
|
+
readonly "__#16823@#stack"?: string | undefined;
|
|
22
22
|
readonly name: string;
|
|
23
23
|
readonly code: number;
|
|
24
24
|
readonly message: string;
|
|
@@ -29,10 +29,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
29
29
|
cause?: unknown;
|
|
30
30
|
};
|
|
31
31
|
new (data?: Record<string, Json>): {
|
|
32
|
-
readonly "__#
|
|
33
|
-
readonly "__#
|
|
34
|
-
readonly "__#
|
|
35
|
-
readonly "__#
|
|
32
|
+
readonly "__#16823@#code": number;
|
|
33
|
+
readonly "__#16823@#message": string;
|
|
34
|
+
readonly "__#16823@#data"?: Record<string, Json> | undefined;
|
|
35
|
+
readonly "__#16823@#stack"?: string | undefined;
|
|
36
36
|
readonly name: string;
|
|
37
37
|
readonly code: number;
|
|
38
38
|
readonly message: string;
|
|
@@ -43,10 +43,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
43
43
|
cause?: unknown;
|
|
44
44
|
};
|
|
45
45
|
new (message?: string | Record<string, Json>, data?: Record<string, Json>): {
|
|
46
|
-
readonly "__#
|
|
47
|
-
readonly "__#
|
|
48
|
-
readonly "__#
|
|
49
|
-
readonly "__#
|
|
46
|
+
readonly "__#16823@#code": number;
|
|
47
|
+
readonly "__#16823@#message": string;
|
|
48
|
+
readonly "__#16823@#data"?: Record<string, Json> | undefined;
|
|
49
|
+
readonly "__#16823@#stack"?: string | undefined;
|
|
50
50
|
readonly name: string;
|
|
51
51
|
readonly code: number;
|
|
52
52
|
readonly message: string;
|
|
@@ -15,10 +15,10 @@ export type JsonRpcErrorFunction = typeof rpcErrors.parse;
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
17
17
|
new (message?: string): {
|
|
18
|
-
readonly "__#
|
|
19
|
-
readonly "__#
|
|
20
|
-
readonly "__#
|
|
21
|
-
readonly "__#
|
|
18
|
+
readonly "__#8417@#code": number;
|
|
19
|
+
readonly "__#8417@#message": string;
|
|
20
|
+
readonly "__#8417@#data"?: Record<string, Json> | undefined;
|
|
21
|
+
readonly "__#8417@#stack"?: string | undefined;
|
|
22
22
|
readonly name: string;
|
|
23
23
|
readonly code: number;
|
|
24
24
|
readonly message: string;
|
|
@@ -29,10 +29,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
29
29
|
cause?: unknown;
|
|
30
30
|
};
|
|
31
31
|
new (data?: Record<string, Json>): {
|
|
32
|
-
readonly "__#
|
|
33
|
-
readonly "__#
|
|
34
|
-
readonly "__#
|
|
35
|
-
readonly "__#
|
|
32
|
+
readonly "__#8417@#code": number;
|
|
33
|
+
readonly "__#8417@#message": string;
|
|
34
|
+
readonly "__#8417@#data"?: Record<string, Json> | undefined;
|
|
35
|
+
readonly "__#8417@#stack"?: string | undefined;
|
|
36
36
|
readonly name: string;
|
|
37
37
|
readonly code: number;
|
|
38
38
|
readonly message: string;
|
|
@@ -43,10 +43,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
43
43
|
cause?: unknown;
|
|
44
44
|
};
|
|
45
45
|
new (message?: string | Record<string, Json>, data?: Record<string, Json>): {
|
|
46
|
-
readonly "__#
|
|
47
|
-
readonly "__#
|
|
48
|
-
readonly "__#
|
|
49
|
-
readonly "__#
|
|
46
|
+
readonly "__#8417@#code": number;
|
|
47
|
+
readonly "__#8417@#message": string;
|
|
48
|
+
readonly "__#8417@#data"?: Record<string, Json> | undefined;
|
|
49
|
+
readonly "__#8417@#stack"?: string | undefined;
|
|
50
50
|
readonly name: string;
|
|
51
51
|
readonly code: number;
|
|
52
52
|
readonly message: string;
|
package/dist/internals/index.cjs
CHANGED
|
@@ -19,4 +19,5 @@ __exportStar(require("./errors.cjs"), exports);
|
|
|
19
19
|
__exportStar(require("./structs.cjs"), exports);
|
|
20
20
|
__exportStar(require("./jsx.cjs"), exports);
|
|
21
21
|
__exportStar(require("./svg.cjs"), exports);
|
|
22
|
+
__exportStar(require("./time.cjs"), exports);
|
|
22
23
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAiC;AACjC,+CAAyB;AAEzB,gDAA0B;AAC1B,4CAAsB;AACtB,4CAAsB","sourcesContent":["export * from './error-wrappers';\nexport * from './errors';\nexport type * from './helpers';\nexport * from './structs';\nexport * from './jsx';\nexport * from './svg';\n"]}
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAiC;AACjC,+CAAyB;AAEzB,gDAA0B;AAC1B,4CAAsB;AACtB,4CAAsB;AACtB,6CAAuB","sourcesContent":["export * from './error-wrappers';\nexport * from './errors';\nexport type * from './helpers';\nexport * from './structs';\nexport * from './jsx';\nexport * from './svg';\nexport * from './time';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,6BAAyB;AACzB,mCAA+B;AAC/B,8BAA0B;AAC1B,0BAAsB;AACtB,0BAAsB"}
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,6BAAyB;AACzB,mCAA+B;AAC/B,8BAA0B;AAC1B,0BAAsB;AACtB,0BAAsB;AACtB,2BAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,6BAAyB;AACzB,mCAA+B;AAC/B,8BAA0B;AAC1B,0BAAsB;AACtB,0BAAsB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,6BAAyB;AACzB,mCAA+B;AAC/B,8BAA0B;AAC1B,0BAAsB;AACtB,0BAAsB;AACtB,2BAAuB"}
|
package/dist/internals/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,6BAAyB;AAEzB,8BAA0B;AAC1B,0BAAsB;AACtB,0BAAsB","sourcesContent":["export * from './error-wrappers';\nexport * from './errors';\nexport type * from './helpers';\nexport * from './structs';\nexport * from './jsx';\nexport * from './svg';\n"]}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,6BAAyB;AAEzB,8BAA0B;AAC1B,0BAAsB;AACtB,0BAAsB;AACtB,2BAAuB","sourcesContent":["export * from './error-wrappers';\nexport * from './errors';\nexport type * from './helpers';\nexport * from './structs';\nexport * from './jsx';\nexport * from './svg';\nexport * from './time';\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ISO8601DateStruct = void 0;
|
|
4
|
+
const superstruct_1 = require("@metamask/superstruct");
|
|
5
|
+
const luxon_1 = require("luxon");
|
|
6
|
+
/**
|
|
7
|
+
* Regex to match the offset part of an ISO 8601 date.
|
|
8
|
+
*/
|
|
9
|
+
const offsetRegex = /Z|([+-]\d{2}:?\d{2})$/u;
|
|
10
|
+
/**
|
|
11
|
+
* Refines a string as an ISO 8601 date.
|
|
12
|
+
*/
|
|
13
|
+
exports.ISO8601DateStruct = (0, superstruct_1.refine)((0, superstruct_1.string)(), 'ISO 8601 date', (value) => {
|
|
14
|
+
const parsedDate = luxon_1.DateTime.fromISO(value);
|
|
15
|
+
if (!parsedDate.isValid) {
|
|
16
|
+
return 'Not a valid ISO 8601 date';
|
|
17
|
+
}
|
|
18
|
+
if (!offsetRegex.test(value)) {
|
|
19
|
+
// Luxon doesn't have a reliable way to check if timezone info was not provided
|
|
20
|
+
return 'ISO 8601 date must have timezone information';
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=time.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.cjs","sourceRoot":"","sources":["../../src/internals/time.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,iCAAiC;AAEjC;;GAEG;AACH,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAE7C;;GAEG;AACU,QAAA,iBAAiB,GAAG,IAAA,oBAAM,EAAC,IAAA,oBAAM,GAAE,EAAE,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;IAC3E,MAAM,UAAU,GAAG,gBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE3C,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACxB,OAAO,2BAA2B,CAAC;IACrC,CAAC;IAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,+EAA+E;QAC/E,OAAO,8CAA8C,CAAC;IACxD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC,CAAC","sourcesContent":["import { refine, string } from '@metamask/superstruct';\nimport { DateTime } from 'luxon';\n\n/**\n * Regex to match the offset part of an ISO 8601 date.\n */\nconst offsetRegex = /Z|([+-]\\d{2}:?\\d{2})$/u;\n\n/**\n * Refines a string as an ISO 8601 date.\n */\nexport const ISO8601DateStruct = refine(string(), 'ISO 8601 date', (value) => {\n const parsedDate = DateTime.fromISO(value);\n\n if (!parsedDate.isValid) {\n return 'Not a valid ISO 8601 date';\n }\n\n if (!offsetRegex.test(value)) {\n // Luxon doesn't have a reliable way to check if timezone info was not provided\n return 'ISO 8601 date must have timezone information';\n }\n\n return true;\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.cts","sourceRoot":"","sources":["../../src/internals/time.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,iBAAiB,sDAa5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.mts","sourceRoot":"","sources":["../../src/internals/time.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,iBAAiB,sDAa5B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { refine, string } from "@metamask/superstruct";
|
|
2
|
+
import { DateTime } from "luxon";
|
|
3
|
+
/**
|
|
4
|
+
* Regex to match the offset part of an ISO 8601 date.
|
|
5
|
+
*/
|
|
6
|
+
const offsetRegex = /Z|([+-]\d{2}:?\d{2})$/u;
|
|
7
|
+
/**
|
|
8
|
+
* Refines a string as an ISO 8601 date.
|
|
9
|
+
*/
|
|
10
|
+
export const ISO8601DateStruct = refine(string(), 'ISO 8601 date', (value) => {
|
|
11
|
+
const parsedDate = DateTime.fromISO(value);
|
|
12
|
+
if (!parsedDate.isValid) {
|
|
13
|
+
return 'Not a valid ISO 8601 date';
|
|
14
|
+
}
|
|
15
|
+
if (!offsetRegex.test(value)) {
|
|
16
|
+
// Luxon doesn't have a reliable way to check if timezone info was not provided
|
|
17
|
+
return 'ISO 8601 date must have timezone information';
|
|
18
|
+
}
|
|
19
|
+
return true;
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=time.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.mjs","sourceRoot":"","sources":["../../src/internals/time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B;AACvD,OAAO,EAAE,QAAQ,EAAE,cAAc;AAEjC;;GAEG;AACH,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;IAC3E,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE3C,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACxB,OAAO,2BAA2B,CAAC;IACrC,CAAC;IAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,+EAA+E;QAC/E,OAAO,8CAA8C,CAAC;IACxD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC,CAAC","sourcesContent":["import { refine, string } from '@metamask/superstruct';\nimport { DateTime } from 'luxon';\n\n/**\n * Regex to match the offset part of an ISO 8601 date.\n */\nconst offsetRegex = /Z|([+-]\\d{2}:?\\d{2})$/u;\n\n/**\n * Refines a string as an ISO 8601 date.\n */\nexport const ISO8601DateStruct = refine(string(), 'ISO 8601 date', (value) => {\n const parsedDate = DateTime.fromISO(value);\n\n if (!parsedDate.isValid) {\n return 'Not a valid ISO 8601 date';\n }\n\n if (!offsetRegex.test(value)) {\n // Luxon doesn't have a reliable way to check if timezone info was not provided\n return 'ISO 8601 date must have timezone information';\n }\n\n return true;\n});\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateTimePicker = void 0;
|
|
4
|
+
const component_1 = require("../../component.cjs");
|
|
5
|
+
const TYPE = 'DateTimePicker';
|
|
6
|
+
/**
|
|
7
|
+
* A date/time picker component, which is used to create a date/time picker field.
|
|
8
|
+
*
|
|
9
|
+
* @param props - The props of the component.
|
|
10
|
+
* @param props.name - The name of the date/time picker field. This is used to identify the
|
|
11
|
+
* date/time picker field in the form data.
|
|
12
|
+
* @param props.value - The value of the date/time picker field.
|
|
13
|
+
* @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.
|
|
14
|
+
* Defaults to 'datetime'.
|
|
15
|
+
* @param props.placeholder - The placeholder text of the date/time picker field.
|
|
16
|
+
* @param props.disabled - Whether the date/time picker field is disabled.
|
|
17
|
+
* @param props.disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
18
|
+
* @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
19
|
+
*/
|
|
20
|
+
exports.DateTimePicker = (0, component_1.createSnapComponent)(TYPE);
|
|
21
|
+
//# sourceMappingURL=DateTimePicker.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimePicker.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":";;;AAAA,mDAAsD;AA0BtD,MAAM,IAAI,GAAG,gBAAgB,CAAC;AAE9B;;;;;;;;;;;;;GAaG;AACU,QAAA,cAAc,GAAG,IAAA,+BAAmB,EAG/C,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link DateTimePicker} component.\n *\n * @property name - The name of the date/time picker field. This is used to identify the\n * date/time picker field in the form data.\n * @property value - The value of the date/time picker field. Must be an ISO 8601 date string with\n * timezone information.\n * @property type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.\n * Defaults to 'datetime'.\n * @property placeholder - The placeholder text of the date/time picker field.\n * @property disabled - Whether the date/time picker field is disabled.\n * @property disablePast - Whether to allow selection of past dates. Defaults to false.\n * @property disableFuture - Whether to allow selection of future dates. Defaults to false.\n */\nexport type DateTimePickerProps = {\n name: string;\n value?: string | undefined;\n type?: 'date' | 'time' | 'datetime' | undefined;\n placeholder?: string | undefined;\n disabled?: boolean | undefined;\n disablePast?: boolean | undefined;\n disableFuture?: boolean | undefined;\n};\n\nconst TYPE = 'DateTimePicker';\n\n/**\n * A date/time picker component, which is used to create a date/time picker field.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the date/time picker field. This is used to identify the\n * date/time picker field in the form data.\n * @param props.value - The value of the date/time picker field.\n * @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.\n * Defaults to 'datetime'.\n * @param props.placeholder - The placeholder text of the date/time picker field.\n * @param props.disabled - Whether the date/time picker field is disabled.\n * @param props.disablePast - Whether to allow selection of past dates. Defaults to false.\n * @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.\n */\nexport const DateTimePicker = createSnapComponent<\n DateTimePickerProps,\n typeof TYPE\n>(TYPE);\n\n/**\n * A DateTimePicker element.\n *\n * @see DateTimePicker\n */\nexport type DateTimePickerElement = ReturnType<typeof DateTimePicker>;\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The props of the {@link DateTimePicker} component.
|
|
3
|
+
*
|
|
4
|
+
* @property name - The name of the date/time picker field. This is used to identify the
|
|
5
|
+
* date/time picker field in the form data.
|
|
6
|
+
* @property value - The value of the date/time picker field. Must be an ISO 8601 date string with
|
|
7
|
+
* timezone information.
|
|
8
|
+
* @property type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.
|
|
9
|
+
* Defaults to 'datetime'.
|
|
10
|
+
* @property placeholder - The placeholder text of the date/time picker field.
|
|
11
|
+
* @property disabled - Whether the date/time picker field is disabled.
|
|
12
|
+
* @property disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
13
|
+
* @property disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
14
|
+
*/
|
|
15
|
+
export type DateTimePickerProps = {
|
|
16
|
+
name: string;
|
|
17
|
+
value?: string | undefined;
|
|
18
|
+
type?: 'date' | 'time' | 'datetime' | undefined;
|
|
19
|
+
placeholder?: string | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
|
+
disablePast?: boolean | undefined;
|
|
22
|
+
disableFuture?: boolean | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* A date/time picker component, which is used to create a date/time picker field.
|
|
26
|
+
*
|
|
27
|
+
* @param props - The props of the component.
|
|
28
|
+
* @param props.name - The name of the date/time picker field. This is used to identify the
|
|
29
|
+
* date/time picker field in the form data.
|
|
30
|
+
* @param props.value - The value of the date/time picker field.
|
|
31
|
+
* @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.
|
|
32
|
+
* Defaults to 'datetime'.
|
|
33
|
+
* @param props.placeholder - The placeholder text of the date/time picker field.
|
|
34
|
+
* @param props.disabled - Whether the date/time picker field is disabled.
|
|
35
|
+
* @param props.disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
36
|
+
* @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
37
|
+
*/
|
|
38
|
+
export declare const DateTimePicker: import("../../component.cjs").SnapComponent<DateTimePickerProps, "DateTimePicker">;
|
|
39
|
+
/**
|
|
40
|
+
* A DateTimePicker element.
|
|
41
|
+
*
|
|
42
|
+
* @see DateTimePicker
|
|
43
|
+
*/
|
|
44
|
+
export type DateTimePickerElement = ReturnType<typeof DateTimePicker>;
|
|
45
|
+
//# sourceMappingURL=DateTimePicker.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimePicker.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,gFAGpB,CAAC;AAER;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The props of the {@link DateTimePicker} component.
|
|
3
|
+
*
|
|
4
|
+
* @property name - The name of the date/time picker field. This is used to identify the
|
|
5
|
+
* date/time picker field in the form data.
|
|
6
|
+
* @property value - The value of the date/time picker field. Must be an ISO 8601 date string with
|
|
7
|
+
* timezone information.
|
|
8
|
+
* @property type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.
|
|
9
|
+
* Defaults to 'datetime'.
|
|
10
|
+
* @property placeholder - The placeholder text of the date/time picker field.
|
|
11
|
+
* @property disabled - Whether the date/time picker field is disabled.
|
|
12
|
+
* @property disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
13
|
+
* @property disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
14
|
+
*/
|
|
15
|
+
export type DateTimePickerProps = {
|
|
16
|
+
name: string;
|
|
17
|
+
value?: string | undefined;
|
|
18
|
+
type?: 'date' | 'time' | 'datetime' | undefined;
|
|
19
|
+
placeholder?: string | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
|
+
disablePast?: boolean | undefined;
|
|
22
|
+
disableFuture?: boolean | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* A date/time picker component, which is used to create a date/time picker field.
|
|
26
|
+
*
|
|
27
|
+
* @param props - The props of the component.
|
|
28
|
+
* @param props.name - The name of the date/time picker field. This is used to identify the
|
|
29
|
+
* date/time picker field in the form data.
|
|
30
|
+
* @param props.value - The value of the date/time picker field.
|
|
31
|
+
* @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.
|
|
32
|
+
* Defaults to 'datetime'.
|
|
33
|
+
* @param props.placeholder - The placeholder text of the date/time picker field.
|
|
34
|
+
* @param props.disabled - Whether the date/time picker field is disabled.
|
|
35
|
+
* @param props.disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
36
|
+
* @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
37
|
+
*/
|
|
38
|
+
export declare const DateTimePicker: import("../../component.mjs").SnapComponent<DateTimePickerProps, "DateTimePicker">;
|
|
39
|
+
/**
|
|
40
|
+
* A DateTimePicker element.
|
|
41
|
+
*
|
|
42
|
+
* @see DateTimePicker
|
|
43
|
+
*/
|
|
44
|
+
export type DateTimePickerElement = ReturnType<typeof DateTimePicker>;
|
|
45
|
+
//# sourceMappingURL=DateTimePicker.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimePicker.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,gFAGpB,CAAC;AAER;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createSnapComponent } from "../../component.mjs";
|
|
2
|
+
const TYPE = 'DateTimePicker';
|
|
3
|
+
/**
|
|
4
|
+
* A date/time picker component, which is used to create a date/time picker field.
|
|
5
|
+
*
|
|
6
|
+
* @param props - The props of the component.
|
|
7
|
+
* @param props.name - The name of the date/time picker field. This is used to identify the
|
|
8
|
+
* date/time picker field in the form data.
|
|
9
|
+
* @param props.value - The value of the date/time picker field.
|
|
10
|
+
* @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.
|
|
11
|
+
* Defaults to 'datetime'.
|
|
12
|
+
* @param props.placeholder - The placeholder text of the date/time picker field.
|
|
13
|
+
* @param props.disabled - Whether the date/time picker field is disabled.
|
|
14
|
+
* @param props.disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
15
|
+
* @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
16
|
+
*/
|
|
17
|
+
export const DateTimePicker = createSnapComponent(TYPE);
|
|
18
|
+
//# sourceMappingURL=DateTimePicker.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimePicker.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;AA0BtD,MAAM,IAAI,GAAG,gBAAgB,CAAC;AAE9B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAG/C,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link DateTimePicker} component.\n *\n * @property name - The name of the date/time picker field. This is used to identify the\n * date/time picker field in the form data.\n * @property value - The value of the date/time picker field. Must be an ISO 8601 date string with\n * timezone information.\n * @property type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.\n * Defaults to 'datetime'.\n * @property placeholder - The placeholder text of the date/time picker field.\n * @property disabled - Whether the date/time picker field is disabled.\n * @property disablePast - Whether to allow selection of past dates. Defaults to false.\n * @property disableFuture - Whether to allow selection of future dates. Defaults to false.\n */\nexport type DateTimePickerProps = {\n name: string;\n value?: string | undefined;\n type?: 'date' | 'time' | 'datetime' | undefined;\n placeholder?: string | undefined;\n disabled?: boolean | undefined;\n disablePast?: boolean | undefined;\n disableFuture?: boolean | undefined;\n};\n\nconst TYPE = 'DateTimePicker';\n\n/**\n * A date/time picker component, which is used to create a date/time picker field.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the date/time picker field. This is used to identify the\n * date/time picker field in the form data.\n * @param props.value - The value of the date/time picker field.\n * @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.\n * Defaults to 'datetime'.\n * @param props.placeholder - The placeholder text of the date/time picker field.\n * @param props.disabled - Whether the date/time picker field is disabled.\n * @param props.disablePast - Whether to allow selection of past dates. Defaults to false.\n * @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.\n */\nexport const DateTimePicker = createSnapComponent<\n DateTimePickerProps,\n typeof TYPE\n>(TYPE);\n\n/**\n * A DateTimePicker element.\n *\n * @see DateTimePicker\n */\nexport type DateTimePickerElement = ReturnType<typeof DateTimePicker>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Field.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":";;;AAWA,mDAAsD;AA4BtD,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,KAAK,GAAG,IAAA,+BAAmB,EAA0B,IAAI,CAAC,CAAC","sourcesContent":["import type { AccountSelectorElement } from './AccountSelector';\nimport type { AddressInputElement } from './AddressInput';\nimport type { AssetSelectorElement } from './AssetSelector';\nimport type { CheckboxElement } from './Checkbox';\nimport type { DateTimePickerElement } from './DateTimePicker';\nimport type { DropdownElement } from './Dropdown';\nimport type { FileInputElement } from './FileInput';\nimport type { InputElement } from './Input';\nimport type { RadioGroupElement } from './RadioGroup';\nimport type { SelectorElement } from './Selector';\nimport type { GenericSnapChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link Field} component.\n *\n * @property label - The label of the field.\n * @property error - The error message of the field.\n * @property children - The input field and the submit button.\n */\nexport type FieldProps = {\n label?: string | undefined;\n error?: string | undefined;\n children:\n | [InputElement, GenericSnapChildren]\n | [GenericSnapChildren, InputElement]\n | [GenericSnapChildren, InputElement, GenericSnapChildren]\n | DropdownElement\n | DateTimePickerElement\n | RadioGroupElement\n | FileInputElement\n | InputElement\n | CheckboxElement\n | SelectorElement\n | AssetSelectorElement\n | AddressInputElement\n | AccountSelectorElement;\n};\n\nconst TYPE = 'Field';\n\n/**\n * A field component, which is used to create a form field.\n *\n * @param props - The props of the component.\n * @param props.label - The label of the field.\n * @param props.error - The error message of the field.\n * @param props.children - The input field and the submit button.\n * @returns A field element.\n * @example\n * <Field label=\"Username\">\n * <Input name=\"username\" type=\"text\" />\n * <Button type=\"submit\">Submit</Button>\n * </Field>\n * @example\n * <Field label=\"Upload file\">\n * <FileInput name=\"file\" accept={['image/*']} multiple />\n * </Field>\n */\nexport const Field = createSnapComponent<FieldProps, typeof TYPE>(TYPE);\n\n/**\n * A field element.\n *\n * @see Field\n */\nexport type FieldElement = ReturnType<typeof Field>;\n"]}
|
|
@@ -2,6 +2,7 @@ import type { AccountSelectorElement } from "./AccountSelector.cjs";
|
|
|
2
2
|
import type { AddressInputElement } from "./AddressInput.cjs";
|
|
3
3
|
import type { AssetSelectorElement } from "./AssetSelector.cjs";
|
|
4
4
|
import type { CheckboxElement } from "./Checkbox.cjs";
|
|
5
|
+
import type { DateTimePickerElement } from "./DateTimePicker.cjs";
|
|
5
6
|
import type { DropdownElement } from "./Dropdown.cjs";
|
|
6
7
|
import type { FileInputElement } from "./FileInput.cjs";
|
|
7
8
|
import type { InputElement } from "./Input.cjs";
|
|
@@ -18,7 +19,7 @@ import type { GenericSnapChildren } from "../../component.cjs";
|
|
|
18
19
|
export type FieldProps = {
|
|
19
20
|
label?: string | undefined;
|
|
20
21
|
error?: string | undefined;
|
|
21
|
-
children: [InputElement, GenericSnapChildren] | [GenericSnapChildren, InputElement] | [GenericSnapChildren, InputElement, GenericSnapChildren] | DropdownElement | RadioGroupElement | FileInputElement | InputElement | CheckboxElement | SelectorElement | AssetSelectorElement | AddressInputElement | AccountSelectorElement;
|
|
22
|
+
children: [InputElement, GenericSnapChildren] | [GenericSnapChildren, InputElement] | [GenericSnapChildren, InputElement, GenericSnapChildren] | DropdownElement | DateTimePickerElement | RadioGroupElement | FileInputElement | InputElement | CheckboxElement | SelectorElement | AssetSelectorElement | AddressInputElement | AccountSelectorElement;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* A field component, which is used to create a form field.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EACJ,CAAC,YAAY,EAAE,mBAAmB,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,CAAC,GACxD,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,CAAC;CAC5B,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,8DAAqD,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Field.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAAyB;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EACJ,CAAC,YAAY,EAAE,mBAAmB,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,CAAC,GACxD,eAAe,GACf,qBAAqB,GACrB,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,CAAC;CAC5B,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,8DAAqD,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import type { AccountSelectorElement } from "./AccountSelector.mjs";
|
|
|
2
2
|
import type { AddressInputElement } from "./AddressInput.mjs";
|
|
3
3
|
import type { AssetSelectorElement } from "./AssetSelector.mjs";
|
|
4
4
|
import type { CheckboxElement } from "./Checkbox.mjs";
|
|
5
|
+
import type { DateTimePickerElement } from "./DateTimePicker.mjs";
|
|
5
6
|
import type { DropdownElement } from "./Dropdown.mjs";
|
|
6
7
|
import type { FileInputElement } from "./FileInput.mjs";
|
|
7
8
|
import type { InputElement } from "./Input.mjs";
|
|
@@ -18,7 +19,7 @@ import type { GenericSnapChildren } from "../../component.mjs";
|
|
|
18
19
|
export type FieldProps = {
|
|
19
20
|
label?: string | undefined;
|
|
20
21
|
error?: string | undefined;
|
|
21
|
-
children: [InputElement, GenericSnapChildren] | [GenericSnapChildren, InputElement] | [GenericSnapChildren, InputElement, GenericSnapChildren] | DropdownElement | RadioGroupElement | FileInputElement | InputElement | CheckboxElement | SelectorElement | AssetSelectorElement | AddressInputElement | AccountSelectorElement;
|
|
22
|
+
children: [InputElement, GenericSnapChildren] | [GenericSnapChildren, InputElement] | [GenericSnapChildren, InputElement, GenericSnapChildren] | DropdownElement | DateTimePickerElement | RadioGroupElement | FileInputElement | InputElement | CheckboxElement | SelectorElement | AssetSelectorElement | AddressInputElement | AccountSelectorElement;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* A field component, which is used to create a form field.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EACJ,CAAC,YAAY,EAAE,mBAAmB,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,CAAC,GACxD,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,CAAC;CAC5B,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,8DAAqD,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Field.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAAyB;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EACJ,CAAC,YAAY,EAAE,mBAAmB,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,CAAC,GACxD,eAAe,GACf,qBAAqB,GACrB,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,CAAC;CAC5B,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,8DAAqD,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Field.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;AA4BtD,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAA0B,IAAI,CAAC,CAAC","sourcesContent":["import type { AccountSelectorElement } from './AccountSelector';\nimport type { AddressInputElement } from './AddressInput';\nimport type { AssetSelectorElement } from './AssetSelector';\nimport type { CheckboxElement } from './Checkbox';\nimport type { DateTimePickerElement } from './DateTimePicker';\nimport type { DropdownElement } from './Dropdown';\nimport type { FileInputElement } from './FileInput';\nimport type { InputElement } from './Input';\nimport type { RadioGroupElement } from './RadioGroup';\nimport type { SelectorElement } from './Selector';\nimport type { GenericSnapChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link Field} component.\n *\n * @property label - The label of the field.\n * @property error - The error message of the field.\n * @property children - The input field and the submit button.\n */\nexport type FieldProps = {\n label?: string | undefined;\n error?: string | undefined;\n children:\n | [InputElement, GenericSnapChildren]\n | [GenericSnapChildren, InputElement]\n | [GenericSnapChildren, InputElement, GenericSnapChildren]\n | DropdownElement\n | DateTimePickerElement\n | RadioGroupElement\n | FileInputElement\n | InputElement\n | CheckboxElement\n | SelectorElement\n | AssetSelectorElement\n | AddressInputElement\n | AccountSelectorElement;\n};\n\nconst TYPE = 'Field';\n\n/**\n * A field component, which is used to create a form field.\n *\n * @param props - The props of the component.\n * @param props.label - The label of the field.\n * @param props.error - The error message of the field.\n * @param props.children - The input field and the submit button.\n * @returns A field element.\n * @example\n * <Field label=\"Username\">\n * <Input name=\"username\" type=\"text\" />\n * <Button type=\"submit\">Submit</Button>\n * </Field>\n * @example\n * <Field label=\"Upload file\">\n * <FileInput name=\"file\" accept={['image/*']} multiple />\n * </Field>\n */\nexport const Field = createSnapComponent<FieldProps, typeof TYPE>(TYPE);\n\n/**\n * A field element.\n *\n * @see Field\n */\nexport type FieldElement = ReturnType<typeof Field>;\n"]}
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./AddressInput.cjs"), exports);
|
|
|
19
19
|
__exportStar(require("./AssetSelector.cjs"), exports);
|
|
20
20
|
__exportStar(require("./Button.cjs"), exports);
|
|
21
21
|
__exportStar(require("./Checkbox.cjs"), exports);
|
|
22
|
+
__exportStar(require("./DateTimePicker.cjs"), exports);
|
|
22
23
|
__exportStar(require("./Dropdown.cjs"), exports);
|
|
23
24
|
__exportStar(require("./Option.cjs"), exports);
|
|
24
25
|
__exportStar(require("./Radio.cjs"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA,wDAAkC;AAClC,qDAA+B;AAC/B,sDAAgC;AAChC,+CAAyB;AACzB,iDAA2B;AAC3B,uDAAiC;AACjC,iDAA2B;AAC3B,+CAAyB;AACzB,8CAAwB;AACxB,mDAA6B;AAC7B,8CAAwB;AACxB,kDAA4B;AAC5B,6CAAuB;AACvB,8CAAwB;AACxB,iDAA2B;AAC3B,uDAAiC","sourcesContent":["import type { AccountSelectorElement } from './AccountSelector';\nimport type { AddressInputElement } from './AddressInput';\nimport type { AssetSelectorElement } from './AssetSelector';\nimport type { ButtonElement } from './Button';\nimport type { CheckboxElement } from './Checkbox';\nimport type { DateTimePickerElement } from './DateTimePicker';\nimport type { DropdownElement } from './Dropdown';\nimport type { FieldElement } from './Field';\nimport type { FileInputElement } from './FileInput';\nimport type { FormElement } from './Form';\nimport type { InputElement } from './Input';\nimport type { OptionElement } from './Option';\nimport type { RadioElement } from './Radio';\nimport type { RadioGroupElement } from './RadioGroup';\nimport type { SelectorElement } from './Selector';\nimport type { SelectorOptionElement } from './SelectorOption';\n\nexport * from './AccountSelector';\nexport * from './AddressInput';\nexport * from './AssetSelector';\nexport * from './Button';\nexport * from './Checkbox';\nexport * from './DateTimePicker';\nexport * from './Dropdown';\nexport * from './Option';\nexport * from './Radio';\nexport * from './RadioGroup';\nexport * from './Field';\nexport * from './FileInput';\nexport * from './Form';\nexport * from './Input';\nexport * from './Selector';\nexport * from './SelectorOption';\n\nexport type StandardFormElement =\n | AccountSelectorElement\n | AddressInputElement\n | AssetSelectorElement\n | ButtonElement\n | CheckboxElement\n | DateTimePickerElement\n | FormElement\n | FieldElement\n | FileInputElement\n | InputElement\n | DropdownElement\n | OptionElement\n | RadioElement\n | RadioGroupElement\n | SelectorElement\n | SelectorOptionElement;\n"]}
|
|
@@ -3,6 +3,7 @@ import type { AddressInputElement } from "./AddressInput.cjs";
|
|
|
3
3
|
import type { AssetSelectorElement } from "./AssetSelector.cjs";
|
|
4
4
|
import type { ButtonElement } from "./Button.cjs";
|
|
5
5
|
import type { CheckboxElement } from "./Checkbox.cjs";
|
|
6
|
+
import type { DateTimePickerElement } from "./DateTimePicker.cjs";
|
|
6
7
|
import type { DropdownElement } from "./Dropdown.cjs";
|
|
7
8
|
import type { FieldElement } from "./Field.cjs";
|
|
8
9
|
import type { FileInputElement } from "./FileInput.cjs";
|
|
@@ -18,6 +19,7 @@ export * from "./AddressInput.cjs";
|
|
|
18
19
|
export * from "./AssetSelector.cjs";
|
|
19
20
|
export * from "./Button.cjs";
|
|
20
21
|
export * from "./Checkbox.cjs";
|
|
22
|
+
export * from "./DateTimePicker.cjs";
|
|
21
23
|
export * from "./Dropdown.cjs";
|
|
22
24
|
export * from "./Option.cjs";
|
|
23
25
|
export * from "./Radio.cjs";
|
|
@@ -28,5 +30,5 @@ export * from "./Form.cjs";
|
|
|
28
30
|
export * from "./Input.cjs";
|
|
29
31
|
export * from "./Selector.cjs";
|
|
30
32
|
export * from "./SelectorOption.cjs";
|
|
31
|
-
export type StandardFormElement = AccountSelectorElement | AddressInputElement | AssetSelectorElement | ButtonElement | CheckboxElement | FormElement | FieldElement | FileInputElement | InputElement | DropdownElement | OptionElement | RadioElement | RadioGroupElement | SelectorElement | SelectorOptionElement;
|
|
33
|
+
export type StandardFormElement = AccountSelectorElement | AddressInputElement | AssetSelectorElement | ButtonElement | CheckboxElement | DateTimePickerElement | FormElement | FieldElement | FileInputElement | InputElement | DropdownElement | OptionElement | RadioElement | RadioGroupElement | SelectorElement | SelectorOptionElement;
|
|
32
34
|
//# sourceMappingURL=index.d.cts.map
|