@lssm/lib.ui-kit 1.41.0 → 1.42.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.
Files changed (90) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/ui/organisms/ListPage/ListPage.js +1 -1
  3. package/package.json +4 -3
  4. package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +0 -34
  5. package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js +0 -118
  6. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -14
  7. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -35
  8. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -25
  9. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -24
  10. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -21
  11. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -17
  12. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -17
  13. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -17
  14. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -17
  15. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +0 -20
  16. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +0 -20
  17. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -33
  18. package/dist/node_modules/lucide-react/dist/esm/icons/funnel.js +0 -17
  19. package/dist/node_modules/lucide-react/dist/esm/icons/house.js +0 -20
  20. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +0 -17
  21. package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +0 -20
  22. package/dist/node_modules/lucide-react/dist/esm/icons/refresh-ccw.js +0 -31
  23. package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +0 -31
  24. package/dist/node_modules/lucide-react/dist/esm/icons/search.js +0 -22
  25. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +0 -27
  26. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -20
  27. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -22
  28. package/dist/node_modules/next/dist/client/add-base-path.js +0 -30
  29. package/dist/node_modules/next/dist/client/add-locale.js +0 -29
  30. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -26
  31. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -41
  32. package/dist/node_modules/next/dist/client/has-base-path.js +0 -28
  33. package/dist/node_modules/next/dist/client/link.js +0 -311
  34. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -30
  35. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -34
  36. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -44
  37. package/dist/node_modules/next/dist/client/resolve-href.js +0 -86
  38. package/dist/node_modules/next/dist/client/use-intersection.js +0 -104
  39. package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -56
  40. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -372
  41. package/dist/node_modules/next/dist/lib/constants.js +0 -316
  42. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -69
  43. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -23
  44. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -22
  45. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
  46. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -23
  47. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -23
  48. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -30
  49. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -24
  50. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -41
  51. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -78
  52. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -151
  53. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -77
  54. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -32
  55. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -92
  56. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -41
  57. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -26
  58. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -31
  59. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -24
  60. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -33
  61. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -36
  62. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -24
  63. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -56
  64. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -26
  65. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -94
  66. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -46
  67. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -203
  68. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -167
  69. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -20
  70. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -80
  71. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -25
  72. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -172
  73. package/dist/node_modules/next/link.js +0 -12
  74. package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -2074
  75. package/dist/node_modules/zod/v4/classic/errors.js +0 -29
  76. package/dist/node_modules/zod/v4/classic/iso.js +0 -37
  77. package/dist/node_modules/zod/v4/classic/parse.js +0 -19
  78. package/dist/node_modules/zod/v4/classic/schemas.js +0 -418
  79. package/dist/node_modules/zod/v4/core/api.js +0 -404
  80. package/dist/node_modules/zod/v4/core/checks.js +0 -225
  81. package/dist/node_modules/zod/v4/core/core.js +0 -61
  82. package/dist/node_modules/zod/v4/core/errors.js +0 -62
  83. package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -148
  84. package/dist/node_modules/zod/v4/core/parse.js +0 -109
  85. package/dist/node_modules/zod/v4/core/regexes.js +0 -57
  86. package/dist/node_modules/zod/v4/core/registries.js +0 -52
  87. package/dist/node_modules/zod/v4/core/schemas.js +0 -744
  88. package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -260
  89. package/dist/node_modules/zod/v4/core/util.js +0 -155
  90. package/dist/node_modules/zod/v4/core/versions.js +0 -9
@@ -1,29 +0,0 @@
1
- import { $constructor } from "../core/core.js";
2
- import { jsonStringifyReplacer } from "../core/util.js";
3
- import { $ZodError, flattenError, formatError } from "../core/errors.js";
4
-
5
- //#region ../../../node_modules/zod/v4/classic/errors.js
6
- const initializer = (inst, issues) => {
7
- $ZodError.init(inst, issues);
8
- inst.name = "ZodError";
9
- Object.defineProperties(inst, {
10
- format: { value: (mapper) => formatError(inst, mapper) },
11
- flatten: { value: (mapper) => flattenError(inst, mapper) },
12
- addIssue: { value: (issue) => {
13
- inst.issues.push(issue);
14
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
15
- } },
16
- addIssues: { value: (issues$1) => {
17
- inst.issues.push(...issues$1);
18
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
19
- } },
20
- isEmpty: { get() {
21
- return inst.issues.length === 0;
22
- } }
23
- });
24
- };
25
- const ZodError = $constructor("ZodError", initializer);
26
- const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
27
-
28
- //#endregion
29
- export { ZodRealError };
@@ -1,37 +0,0 @@
1
- import { $constructor } from "../core/core.js";
2
- import { $ZodISODate, $ZodISODateTime, $ZodISODuration, $ZodISOTime } from "../core/schemas.js";
3
- import { _isoDate, _isoDateTime, _isoDuration, _isoTime } from "../core/api.js";
4
- import { ZodStringFormat } from "./schemas.js";
5
-
6
- //#region ../../../node_modules/zod/v4/classic/iso.js
7
- const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
8
- $ZodISODateTime.init(inst, def);
9
- ZodStringFormat.init(inst, def);
10
- });
11
- function datetime(params) {
12
- return _isoDateTime(ZodISODateTime, params);
13
- }
14
- const ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
15
- $ZodISODate.init(inst, def);
16
- ZodStringFormat.init(inst, def);
17
- });
18
- function date(params) {
19
- return _isoDate(ZodISODate, params);
20
- }
21
- const ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
22
- $ZodISOTime.init(inst, def);
23
- ZodStringFormat.init(inst, def);
24
- });
25
- function time(params) {
26
- return _isoTime(ZodISOTime, params);
27
- }
28
- const ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
29
- $ZodISODuration.init(inst, def);
30
- ZodStringFormat.init(inst, def);
31
- });
32
- function duration(params) {
33
- return _isoDuration(ZodISODuration, params);
34
- }
35
-
36
- //#endregion
37
- export { date, datetime, duration, time };
@@ -1,19 +0,0 @@
1
- import { _decode, _decodeAsync, _encode, _encodeAsync, _parse, _parseAsync, _safeDecode, _safeDecodeAsync, _safeEncode, _safeEncodeAsync, _safeParse, _safeParseAsync } from "../core/parse.js";
2
- import { ZodRealError } from "./errors.js";
3
-
4
- //#region ../../../node_modules/zod/v4/classic/parse.js
5
- const parse = /* @__PURE__ */ _parse(ZodRealError);
6
- const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
7
- const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
8
- const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
9
- const encode = /* @__PURE__ */ _encode(ZodRealError);
10
- const decode = /* @__PURE__ */ _decode(ZodRealError);
11
- const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
12
- const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
13
- const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
14
- const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
15
- const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
16
- const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
17
-
18
- //#endregion
19
- export { decode, decodeAsync, encode, encodeAsync, parse, parseAsync, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync };
@@ -1,418 +0,0 @@
1
- import { $ZodEncodeError, $constructor } from "../core/core.js";
2
- import { clone, issue, mergeDefs, normalizeParams, shallowClone } from "../core/util.js";
3
- import { $ZodArray, $ZodBase64, $ZodBase64URL, $ZodCIDRv4, $ZodCIDRv6, $ZodCUID, $ZodCUID2, $ZodCatch, $ZodCustom, $ZodDefault, $ZodE164, $ZodEmail, $ZodEmoji, $ZodGUID, $ZodIPv4, $ZodIPv6, $ZodIntersection, $ZodJWT, $ZodKSUID, $ZodNanoID, $ZodNonOptional, $ZodNullable, $ZodOptional, $ZodPipe, $ZodPrefault, $ZodReadonly, $ZodString, $ZodStringFormat, $ZodTransform, $ZodType, $ZodULID, $ZodURL, $ZodUUID, $ZodUnion, $ZodXID } from "../core/schemas.js";
4
- import { globalRegistry } from "../core/registries.js";
5
- import { _array, _base64, _base64url, _cidrv4, _cidrv6, _cuid, _cuid2, _e164, _email, _emoji, _endsWith, _guid, _includes, _ipv4, _ipv6, _jwt, _ksuid, _length, _lowercase, _maxLength, _minLength, _nanoid, _normalize, _overwrite, _refine, _regex, _slugify, _startsWith, _string, _superRefine, _toLowerCase, _toUpperCase, _trim, _ulid, _uppercase, _url, _uuid, _uuidv4, _uuidv6, _uuidv7, _xid, describe as describe$1, meta as meta$1 } from "../core/api.js";
6
- import { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from "../core/to-json-schema.js";
7
- import { arrayProcessor, catchProcessor, customProcessor, defaultProcessor, intersectionProcessor, nonoptionalProcessor, nullableProcessor, optionalProcessor, pipeProcessor, prefaultProcessor, readonlyProcessor, stringProcessor, transformProcessor, unionProcessor } from "../core/json-schema-processors.js";
8
- import { date, datetime, duration, time } from "./iso.js";
9
- import { decode, decodeAsync, encode, encodeAsync, parse, parseAsync, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync } from "./parse.js";
10
-
11
- //#region ../../../node_modules/zod/v4/classic/schemas.js
12
- const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13
- $ZodType.init(inst, def);
14
- Object.assign(inst["~standard"], { jsonSchema: {
15
- input: createStandardJSONSchemaMethod(inst, "input"),
16
- output: createStandardJSONSchemaMethod(inst, "output")
17
- } });
18
- inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
19
- inst.def = def;
20
- inst.type = def.type;
21
- Object.defineProperty(inst, "_def", { value: def });
22
- inst.check = (...checks) => {
23
- return inst.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
24
- check: ch,
25
- def: { check: "custom" },
26
- onattach: []
27
- } } : ch)] }));
28
- };
29
- inst.clone = (def$1, params) => clone(inst, def$1, params);
30
- inst.brand = () => inst;
31
- inst.register = ((reg, meta$2) => {
32
- reg.add(inst, meta$2);
33
- return inst;
34
- });
35
- inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
36
- inst.safeParse = (data, params) => safeParse(inst, data, params);
37
- inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
38
- inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
39
- inst.spa = inst.safeParseAsync;
40
- inst.encode = (data, params) => encode(inst, data, params);
41
- inst.decode = (data, params) => decode(inst, data, params);
42
- inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
43
- inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
44
- inst.safeEncode = (data, params) => safeEncode(inst, data, params);
45
- inst.safeDecode = (data, params) => safeDecode(inst, data, params);
46
- inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
47
- inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
48
- inst.refine = (check, params) => inst.check(refine(check, params));
49
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
50
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
51
- inst.optional = () => optional(inst);
52
- inst.nullable = () => nullable(inst);
53
- inst.nullish = () => optional(nullable(inst));
54
- inst.nonoptional = (params) => nonoptional(inst, params);
55
- inst.array = () => array(inst);
56
- inst.or = (arg) => union([inst, arg]);
57
- inst.and = (arg) => intersection(inst, arg);
58
- inst.transform = (tx) => pipe(inst, transform(tx));
59
- inst.default = (def$1) => _default(inst, def$1);
60
- inst.prefault = (def$1) => prefault(inst, def$1);
61
- inst.catch = (params) => _catch(inst, params);
62
- inst.pipe = (target) => pipe(inst, target);
63
- inst.readonly = () => readonly(inst);
64
- inst.describe = (description) => {
65
- const cl = inst.clone();
66
- globalRegistry.add(cl, { description });
67
- return cl;
68
- };
69
- Object.defineProperty(inst, "description", {
70
- get() {
71
- return globalRegistry.get(inst)?.description;
72
- },
73
- configurable: true
74
- });
75
- inst.meta = (...args) => {
76
- if (args.length === 0) return globalRegistry.get(inst);
77
- const cl = inst.clone();
78
- globalRegistry.add(cl, args[0]);
79
- return cl;
80
- };
81
- inst.isOptional = () => inst.safeParse(void 0).success;
82
- inst.isNullable = () => inst.safeParse(null).success;
83
- return inst;
84
- });
85
- /** @internal */
86
- const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
87
- $ZodString.init(inst, def);
88
- ZodType.init(inst, def);
89
- inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
90
- const bag = inst._zod.bag;
91
- inst.format = bag.format ?? null;
92
- inst.minLength = bag.minimum ?? null;
93
- inst.maxLength = bag.maximum ?? null;
94
- inst.regex = (...args) => inst.check(_regex(...args));
95
- inst.includes = (...args) => inst.check(_includes(...args));
96
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
97
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
98
- inst.min = (...args) => inst.check(_minLength(...args));
99
- inst.max = (...args) => inst.check(_maxLength(...args));
100
- inst.length = (...args) => inst.check(_length(...args));
101
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
102
- inst.lowercase = (params) => inst.check(_lowercase(params));
103
- inst.uppercase = (params) => inst.check(_uppercase(params));
104
- inst.trim = () => inst.check(_trim());
105
- inst.normalize = (...args) => inst.check(_normalize(...args));
106
- inst.toLowerCase = () => inst.check(_toLowerCase());
107
- inst.toUpperCase = () => inst.check(_toUpperCase());
108
- inst.slugify = () => inst.check(_slugify());
109
- });
110
- const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
111
- $ZodString.init(inst, def);
112
- _ZodString.init(inst, def);
113
- inst.email = (params) => inst.check(_email(ZodEmail, params));
114
- inst.url = (params) => inst.check(_url(ZodURL, params));
115
- inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
116
- inst.emoji = (params) => inst.check(_emoji(ZodEmoji, params));
117
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
118
- inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
119
- inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
120
- inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
121
- inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
122
- inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
123
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
124
- inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
125
- inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
126
- inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
127
- inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
128
- inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
129
- inst.xid = (params) => inst.check(_xid(ZodXID, params));
130
- inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
131
- inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
132
- inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
133
- inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
134
- inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
135
- inst.e164 = (params) => inst.check(_e164(ZodE164, params));
136
- inst.datetime = (params) => inst.check(datetime(params));
137
- inst.date = (params) => inst.check(date(params));
138
- inst.time = (params) => inst.check(time(params));
139
- inst.duration = (params) => inst.check(duration(params));
140
- });
141
- function string(params) {
142
- return _string(ZodString, params);
143
- }
144
- const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
145
- $ZodStringFormat.init(inst, def);
146
- _ZodString.init(inst, def);
147
- });
148
- const ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
149
- $ZodEmail.init(inst, def);
150
- ZodStringFormat.init(inst, def);
151
- });
152
- const ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
153
- $ZodGUID.init(inst, def);
154
- ZodStringFormat.init(inst, def);
155
- });
156
- const ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
157
- $ZodUUID.init(inst, def);
158
- ZodStringFormat.init(inst, def);
159
- });
160
- const ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
161
- $ZodURL.init(inst, def);
162
- ZodStringFormat.init(inst, def);
163
- });
164
- const ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
165
- $ZodEmoji.init(inst, def);
166
- ZodStringFormat.init(inst, def);
167
- });
168
- const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
169
- $ZodNanoID.init(inst, def);
170
- ZodStringFormat.init(inst, def);
171
- });
172
- const ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
173
- $ZodCUID.init(inst, def);
174
- ZodStringFormat.init(inst, def);
175
- });
176
- const ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
177
- $ZodCUID2.init(inst, def);
178
- ZodStringFormat.init(inst, def);
179
- });
180
- const ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
181
- $ZodULID.init(inst, def);
182
- ZodStringFormat.init(inst, def);
183
- });
184
- const ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
185
- $ZodXID.init(inst, def);
186
- ZodStringFormat.init(inst, def);
187
- });
188
- const ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
189
- $ZodKSUID.init(inst, def);
190
- ZodStringFormat.init(inst, def);
191
- });
192
- const ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
193
- $ZodIPv4.init(inst, def);
194
- ZodStringFormat.init(inst, def);
195
- });
196
- const ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
197
- $ZodIPv6.init(inst, def);
198
- ZodStringFormat.init(inst, def);
199
- });
200
- const ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
201
- $ZodCIDRv4.init(inst, def);
202
- ZodStringFormat.init(inst, def);
203
- });
204
- const ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
205
- $ZodCIDRv6.init(inst, def);
206
- ZodStringFormat.init(inst, def);
207
- });
208
- const ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
209
- $ZodBase64.init(inst, def);
210
- ZodStringFormat.init(inst, def);
211
- });
212
- const ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
213
- $ZodBase64URL.init(inst, def);
214
- ZodStringFormat.init(inst, def);
215
- });
216
- const ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
217
- $ZodE164.init(inst, def);
218
- ZodStringFormat.init(inst, def);
219
- });
220
- const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
221
- $ZodJWT.init(inst, def);
222
- ZodStringFormat.init(inst, def);
223
- });
224
- const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
225
- $ZodArray.init(inst, def);
226
- ZodType.init(inst, def);
227
- inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
228
- inst.element = def.element;
229
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
230
- inst.nonempty = (params) => inst.check(_minLength(1, params));
231
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
232
- inst.length = (len, params) => inst.check(_length(len, params));
233
- inst.unwrap = () => inst.element;
234
- });
235
- function array(element, params) {
236
- return _array(ZodArray, element, params);
237
- }
238
- const ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
239
- $ZodUnion.init(inst, def);
240
- ZodType.init(inst, def);
241
- inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
242
- inst.options = def.options;
243
- });
244
- function union(options, params) {
245
- return new ZodUnion({
246
- type: "union",
247
- options,
248
- ...normalizeParams(params)
249
- });
250
- }
251
- const ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
252
- $ZodIntersection.init(inst, def);
253
- ZodType.init(inst, def);
254
- inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
255
- });
256
- function intersection(left, right) {
257
- return new ZodIntersection({
258
- type: "intersection",
259
- left,
260
- right
261
- });
262
- }
263
- const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
264
- $ZodTransform.init(inst, def);
265
- ZodType.init(inst, def);
266
- inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
267
- inst._zod.parse = (payload, _ctx) => {
268
- if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
269
- payload.addIssue = (issue$1) => {
270
- if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def));
271
- else {
272
- const _issue = issue$1;
273
- if (_issue.fatal) _issue.continue = false;
274
- _issue.code ?? (_issue.code = "custom");
275
- _issue.input ?? (_issue.input = payload.value);
276
- _issue.inst ?? (_issue.inst = inst);
277
- payload.issues.push(issue(_issue));
278
- }
279
- };
280
- const output = def.transform(payload.value, payload);
281
- if (output instanceof Promise) return output.then((output$1) => {
282
- payload.value = output$1;
283
- return payload;
284
- });
285
- payload.value = output;
286
- return payload;
287
- };
288
- });
289
- function transform(fn) {
290
- return new ZodTransform({
291
- type: "transform",
292
- transform: fn
293
- });
294
- }
295
- const ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
296
- $ZodOptional.init(inst, def);
297
- ZodType.init(inst, def);
298
- inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
299
- inst.unwrap = () => inst._zod.def.innerType;
300
- });
301
- function optional(innerType) {
302
- return new ZodOptional({
303
- type: "optional",
304
- innerType
305
- });
306
- }
307
- const ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
308
- $ZodNullable.init(inst, def);
309
- ZodType.init(inst, def);
310
- inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
311
- inst.unwrap = () => inst._zod.def.innerType;
312
- });
313
- function nullable(innerType) {
314
- return new ZodNullable({
315
- type: "nullable",
316
- innerType
317
- });
318
- }
319
- const ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
320
- $ZodDefault.init(inst, def);
321
- ZodType.init(inst, def);
322
- inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
323
- inst.unwrap = () => inst._zod.def.innerType;
324
- inst.removeDefault = inst.unwrap;
325
- });
326
- function _default(innerType, defaultValue) {
327
- return new ZodDefault({
328
- type: "default",
329
- innerType,
330
- get defaultValue() {
331
- return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
332
- }
333
- });
334
- }
335
- const ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
336
- $ZodPrefault.init(inst, def);
337
- ZodType.init(inst, def);
338
- inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
339
- inst.unwrap = () => inst._zod.def.innerType;
340
- });
341
- function prefault(innerType, defaultValue) {
342
- return new ZodPrefault({
343
- type: "prefault",
344
- innerType,
345
- get defaultValue() {
346
- return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
347
- }
348
- });
349
- }
350
- const ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
351
- $ZodNonOptional.init(inst, def);
352
- ZodType.init(inst, def);
353
- inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
354
- inst.unwrap = () => inst._zod.def.innerType;
355
- });
356
- function nonoptional(innerType, params) {
357
- return new ZodNonOptional({
358
- type: "nonoptional",
359
- innerType,
360
- ...normalizeParams(params)
361
- });
362
- }
363
- const ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
364
- $ZodCatch.init(inst, def);
365
- ZodType.init(inst, def);
366
- inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
367
- inst.unwrap = () => inst._zod.def.innerType;
368
- inst.removeCatch = inst.unwrap;
369
- });
370
- function _catch(innerType, catchValue) {
371
- return new ZodCatch({
372
- type: "catch",
373
- innerType,
374
- catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
375
- });
376
- }
377
- const ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
378
- $ZodPipe.init(inst, def);
379
- ZodType.init(inst, def);
380
- inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
381
- inst.in = def.in;
382
- inst.out = def.out;
383
- });
384
- function pipe(in_, out) {
385
- return new ZodPipe({
386
- type: "pipe",
387
- in: in_,
388
- out
389
- });
390
- }
391
- const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
392
- $ZodReadonly.init(inst, def);
393
- ZodType.init(inst, def);
394
- inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
395
- inst.unwrap = () => inst._zod.def.innerType;
396
- });
397
- function readonly(innerType) {
398
- return new ZodReadonly({
399
- type: "readonly",
400
- innerType
401
- });
402
- }
403
- const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
404
- $ZodCustom.init(inst, def);
405
- ZodType.init(inst, def);
406
- inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
407
- });
408
- function refine(fn, _params = {}) {
409
- return _refine(ZodCustom, fn, _params);
410
- }
411
- function superRefine(fn) {
412
- return _superRefine(fn);
413
- }
414
- const describe = describe$1;
415
- const meta = meta$1;
416
-
417
- //#endregion
418
- export { ZodStringFormat, string };