@zaly/tui 0.0.6 → 0.0.8
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/assets/schemas/theme.schema.json +272 -270
- package/assets/themes/kanagawa-dragon.json +3 -0
- package/assets/themes/kanagawa-wave.json +3 -0
- package/dist/{actions-CnVzKVID.d.mts → actions-DFboj3g5.d.mts} +4 -4
- package/dist/{actions-CnVzKVID.d.mts.map → actions-DFboj3g5.d.mts.map} +1 -1
- package/dist/ansi.d.mts +10 -11
- package/dist/ansi.d.mts.map +1 -1
- package/dist/ansi.mjs +1 -2
- package/dist/{autocomplete-Dfw-yQDa.d.mts → autocomplete-CxzetPOo.d.mts} +4 -4
- package/dist/{autocomplete-Dfw-yQDa.d.mts.map → autocomplete-CxzetPOo.d.mts.map} +1 -1
- package/dist/{box-DepqUtuo.mjs → box-DLEcEvDH.mjs} +18 -11
- package/dist/box-DLEcEvDH.mjs.map +1 -0
- package/dist/{builder-DTz5mppV.mjs → builder-IkMf7I8z.mjs} +5 -4
- package/dist/builder-IkMf7I8z.mjs.map +1 -0
- package/dist/{callbacks-DcMBGQEO.mjs → callbacks-D132G8dy.mjs} +7 -6
- package/dist/callbacks-D132G8dy.mjs.map +1 -0
- package/dist/{client-BBdtbLp4.mjs → client-C2GXKfJ1.mjs} +63 -9
- package/dist/client-C2GXKfJ1.mjs.map +1 -0
- package/dist/client-bzdHIDL2.mjs +1 -0
- package/dist/{clipboard-l_TWxxTf.mjs → clipboard-CNPBTX7j.mjs} +9 -7
- package/dist/{clipboard-l_TWxxTf.mjs.map → clipboard-CNPBTX7j.mjs.map} +1 -1
- package/dist/clipboard.d.mts +6 -7
- package/dist/clipboard.d.mts.map +1 -1
- package/dist/clipboard.mjs +1 -2
- package/dist/{ctx-DjJ1zSbs.mjs → ctx-CXjkWABc.mjs} +3 -3
- package/dist/{ctx-DjJ1zSbs.mjs.map → ctx-CXjkWABc.mjs.map} +1 -1
- package/dist/ctx-Dh6slUVy.mjs +1 -0
- package/dist/{divider-cclEAdPx.mjs → divider-l0-JPEIm.mjs} +2 -2
- package/dist/{divider-cclEAdPx.mjs.map → divider-l0-JPEIm.mjs.map} +1 -1
- package/dist/{files-Aw3iWpXD.d.mts → files-BUsa-RVl.d.mts} +3 -3
- package/dist/{files-Aw3iWpXD.d.mts.map → files-BUsa-RVl.d.mts.map} +1 -1
- package/dist/{github-DS00VoOj.d.mts → github-D89A3F9U.d.mts} +3 -3
- package/dist/{github-DS00VoOj.d.mts.map → github-D89A3F9U.d.mts.map} +1 -1
- package/dist/{image-BTxDPPiT.d.mts → image-34bU73bW.d.mts} +2 -2
- package/dist/{image-BTxDPPiT.d.mts.map → image-34bU73bW.d.mts.map} +1 -1
- package/dist/image.d.mts +14 -15
- package/dist/image.d.mts.map +1 -1
- package/dist/image.mjs +1 -2
- package/dist/index.d.mts +13 -13
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{input-CRBuTrsL.mjs → input-D7fQEUdt.mjs} +3 -3
- package/dist/input-D7fQEUdt.mjs.map +1 -0
- package/dist/{input-B5Vy-iaa.d.mts → input-Dylds_sI.d.mts} +3 -3
- package/dist/input-Dylds_sI.d.mts.map +1 -0
- package/dist/{inspect-D6FW_QUo.d.mts → inspect-DPLRum7L.d.mts} +2 -2
- package/dist/{inspect-D6FW_QUo.d.mts.map → inspect-DPLRum7L.d.mts.map} +1 -1
- package/dist/{inspect-DE5goDzB.mjs → inspect-xR9KKdk9.mjs} +3 -3
- package/dist/{inspect-DE5goDzB.mjs.map → inspect-xR9KKdk9.mjs.map} +1 -1
- package/dist/kitty-JbCJC0iQ.mjs.map +1 -1
- package/dist/{log-Djvrxqk0.mjs → log-CnewrxAc.mjs} +4 -4
- package/dist/{log-Djvrxqk0.mjs.map → log-CnewrxAc.mjs.map} +1 -1
- package/dist/{logger-DDrt03So.mjs → logger-CWEGIWaG.mjs} +3 -3
- package/dist/logger-CWEGIWaG.mjs.map +1 -0
- package/dist/{markdown-CTlPe5ks.mjs → markdown-C6UVXJoj.mjs} +7 -7
- package/dist/markdown-C6UVXJoj.mjs.map +1 -0
- package/dist/markdown.d.mts +5 -5
- package/dist/markdown.d.mts.map +1 -1
- package/dist/markdown.mjs +1 -2
- package/dist/md.bun.d.mts +1 -2
- package/dist/md.bun.d.mts.map +1 -1
- package/dist/md.node.d.mts +1 -2
- package/dist/md.node.d.mts.map +1 -1
- package/dist/node-BZ7f6HzU.mjs.map +1 -1
- package/dist/{overlay-9xNgsuuy.mjs → overlay-9WXYiGgW.mjs} +2 -2
- package/dist/{overlay-9xNgsuuy.mjs.map → overlay-9WXYiGgW.mjs.map} +1 -1
- package/dist/{picker-cH-rc7-X.mjs → picker-BqHINl_a.mjs} +4 -4
- package/dist/picker-BqHINl_a.mjs.map +1 -0
- package/dist/{picker-D8OLb6kZ.d.mts → picker-JL8lZfRH.d.mts} +5 -5
- package/dist/{picker-D8OLb6kZ.d.mts.map → picker-JL8lZfRH.d.mts.map} +1 -1
- package/dist/queries-B_lOwEiE.mjs.map +1 -1
- package/dist/{queries-DH3bj74K.d.mts → queries-Cvalgu6P.d.mts} +3 -3
- package/dist/queries-Cvalgu6P.d.mts.map +1 -0
- package/dist/reactive-f7NpAi69.mjs.map +1 -1
- package/dist/{registry-w_w7gZr_.mjs → registry-JjYaWUZz.mjs} +2 -2
- package/dist/registry-JjYaWUZz.mjs.map +1 -0
- package/dist/{render-F8pVXN7h.mjs → render-DtRw_LwV.mjs} +2 -2
- package/dist/{render-F8pVXN7h.mjs.map → render-DtRw_LwV.mjs.map} +1 -1
- package/dist/{renderer-uMeDzF9B.mjs → renderer-BOqnFB5U.mjs} +7 -7
- package/dist/renderer-BOqnFB5U.mjs.map +1 -0
- package/dist/renderer-BSMOuiLM.mjs +1 -0
- package/dist/{renderer-qSMVeNSV.mjs → renderer-DesbRwjQ.mjs} +2 -2
- package/dist/renderer-DesbRwjQ.mjs.map +1 -0
- package/dist/select-m7NE6Rwa.mjs.map +1 -1
- package/dist/{select-CbmAZdpt.d.mts → select-zGd5pbiB.d.mts} +3 -3
- package/dist/{select-CbmAZdpt.d.mts.map → select-zGd5pbiB.d.mts.map} +1 -1
- package/dist/services/logger.d.mts +1 -1
- package/dist/services/logger.mjs +1 -2
- package/dist/services/notifier.d.mts +3 -4
- package/dist/services/notifier.d.mts.map +1 -1
- package/dist/services/notifier.mjs +2 -2
- package/dist/services/notifier.mjs.map +1 -1
- package/dist/services/picker.d.mts +8 -9
- package/dist/services/picker.d.mts.map +1 -1
- package/dist/services/picker.mjs +10 -8
- package/dist/services/picker.mjs.map +1 -1
- package/dist/services/prompt.d.mts +8 -9
- package/dist/services/prompt.d.mts.map +1 -1
- package/dist/services/prompt.mjs +9 -7
- package/dist/services/prompt.mjs.map +1 -1
- package/dist/shiki/server.d.mts +1 -1
- package/dist/shiki/server.mjs +6 -2
- package/dist/shiki/server.mjs.map +1 -1
- package/dist/{shiki-BK-v9CtF.mjs → shiki--ASSYv4_.mjs} +3 -3
- package/dist/{shiki-BK-v9CtF.mjs.map → shiki--ASSYv4_.mjs.map} +1 -1
- package/dist/{shiki-B5NwIiot.mjs → shiki-D7l5--zz.mjs} +19 -5
- package/dist/shiki-D7l5--zz.mjs.map +1 -0
- package/dist/show-DR2x1YFc.mjs.map +1 -1
- package/dist/style.d.mts +7 -7
- package/dist/style.d.mts.map +1 -1
- package/dist/style.mjs +2 -2
- package/dist/{text-DILrol9j.mjs → text-BLz1tRoC.mjs} +4 -3
- package/dist/{text-DILrol9j.mjs.map → text-BLz1tRoC.mjs.map} +1 -1
- package/dist/{text-9lwQeqYr.d.mts → text-BefiXAFW.d.mts} +3 -3
- package/dist/{text-9lwQeqYr.d.mts.map → text-BefiXAFW.d.mts.map} +1 -1
- package/dist/{text-q26V6_Sc.mjs → text-CRZD9KTN.mjs} +3 -2
- package/dist/{text-q26V6_Sc.mjs.map → text-CRZD9KTN.mjs.map} +1 -1
- package/dist/text.d.mts +1 -1
- package/dist/text.mjs +1 -2
- package/dist/{theme.config-BptYUq4K.mjs → theme.config-DHgHWQ9t.mjs} +273 -242
- package/dist/theme.config-DHgHWQ9t.mjs.map +1 -0
- package/dist/themes.d.mts +8 -9
- package/dist/themes.d.mts.map +1 -1
- package/dist/themes.mjs +1 -2
- package/dist/tree-Bo1afYhe.mjs.map +1 -1
- package/dist/{tree-C28QOVIK.d.mts → tree-CArtDRec.d.mts} +3 -3
- package/dist/{tree-C28QOVIK.d.mts.map → tree-CArtDRec.d.mts.map} +1 -1
- package/dist/{types-B9Eh7k2v.d.mts → types-C0EOLZDc.d.mts} +7 -2
- package/dist/types-C0EOLZDc.d.mts.map +1 -0
- package/dist/{widget-M7jD8Rgg.d.mts → widget-DtJU2-BJ.d.mts} +2 -2
- package/dist/{widget-M7jD8Rgg.d.mts.map → widget-DtJU2-BJ.d.mts.map} +1 -1
- package/dist/widgets/autocomplete.d.mts +1 -1
- package/dist/widgets/autocomplete.mjs +2 -2
- package/dist/widgets/autocomplete.mjs.map +1 -1
- package/dist/widgets/box.d.mts +1 -1
- package/dist/widgets/box.mjs +1 -2
- package/dist/widgets/code.d.mts +4 -5
- package/dist/widgets/code.d.mts.map +1 -1
- package/dist/widgets/code.mjs +5 -5
- package/dist/widgets/completions/actions.d.mts +1 -1
- package/dist/widgets/completions/actions.mjs +1 -2
- package/dist/widgets/completions/files.d.mts +1 -1
- package/dist/widgets/completions/files.mjs +1 -2
- package/dist/widgets/completions/github.d.mts +1 -1
- package/dist/widgets/completions/github.mjs +1 -2
- package/dist/widgets/completions/index.d.mts +3 -3
- package/dist/widgets/diff.d.mts +5 -6
- package/dist/widgets/diff.d.mts.map +1 -1
- package/dist/widgets/diff.mjs +3 -3
- package/dist/widgets/diff.mjs.map +1 -1
- package/dist/widgets/divider.d.mts +4 -5
- package/dist/widgets/divider.d.mts.map +1 -1
- package/dist/widgets/divider.mjs +1 -2
- package/dist/widgets/image.d.mts +1 -1
- package/dist/widgets/image.mjs +1 -1
- package/dist/widgets/image.mjs.map +1 -1
- package/dist/widgets/input.d.mts +1 -1
- package/dist/widgets/input.mjs +1 -2
- package/dist/widgets/log.d.mts +1 -1
- package/dist/widgets/log.mjs +1 -2
- package/dist/widgets/markdown.d.mts +8 -9
- package/dist/widgets/markdown.d.mts.map +1 -1
- package/dist/widgets/markdown.mjs +1 -2
- package/dist/widgets/overlay.d.mts +1 -1
- package/dist/widgets/overlay.mjs +1 -2
- package/dist/widgets/picker.d.mts +1 -1
- package/dist/widgets/picker.mjs +1 -2
- package/dist/widgets/progress.d.mts +5 -6
- package/dist/widgets/progress.d.mts.map +1 -1
- package/dist/widgets/select.d.mts +1 -1
- package/dist/widgets/select.mjs +1 -2
- package/dist/widgets/show.d.mts +7 -7
- package/dist/widgets/show.d.mts.map +1 -1
- package/dist/widgets/show.mjs +1 -2
- package/dist/widgets/spinner.d.mts +7 -8
- package/dist/widgets/spinner.d.mts.map +1 -1
- package/dist/widgets/spinner.mjs.map +1 -1
- package/dist/widgets/text.d.mts +1 -1
- package/dist/widgets/text.mjs +1 -2
- package/dist/widgets/tree.d.mts +1 -1
- package/dist/widgets/tree.mjs +1 -2
- package/dist/widgets/widget.d.mts +1 -1
- package/dist/widgets/widget.mjs +1 -2
- package/dist/worker-C01jK2Ip.mjs +1 -0
- package/dist/worker-T6SdPzUH.mjs.map +1 -1
- package/package.json +11 -12
- package/dist/box-DepqUtuo.mjs.map +0 -1
- package/dist/builder-DTz5mppV.mjs.map +0 -1
- package/dist/callbacks-DcMBGQEO.mjs.map +0 -1
- package/dist/client-BBdtbLp4.mjs.map +0 -1
- package/dist/client-cIckDgAj.mjs +0 -2
- package/dist/ctx-Bt4VlRPg.mjs +0 -2
- package/dist/input-B5Vy-iaa.d.mts.map +0 -1
- package/dist/input-CRBuTrsL.mjs.map +0 -1
- package/dist/logger-DDrt03So.mjs.map +0 -1
- package/dist/markdown-CTlPe5ks.mjs.map +0 -1
- package/dist/picker-cH-rc7-X.mjs.map +0 -1
- package/dist/queries-DH3bj74K.d.mts.map +0 -1
- package/dist/registry-w_w7gZr_.mjs.map +0 -1
- package/dist/renderer-Dgj_qEOA.mjs +0 -2
- package/dist/renderer-qSMVeNSV.mjs.map +0 -1
- package/dist/renderer-uMeDzF9B.mjs.map +0 -1
- package/dist/shiki-B5NwIiot.mjs.map +0 -1
- package/dist/theme.config-BptYUq4K.mjs.map +0 -1
- package/dist/types-B9Eh7k2v.d.mts.map +0 -1
- package/dist/worker-BvRm4OsW.mjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/typia@
|
|
1
|
+
//#region ../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/TypeGuardError.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Error thrown when type assertion fails.
|
|
4
4
|
*
|
|
@@ -37,14 +37,39 @@ var TypeGuardError = class extends Error {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.bun/typia@
|
|
40
|
+
//#region ../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/internal/_assertGuard.mjs
|
|
41
|
+
/**
|
|
42
|
+
* Report an assertion failure.
|
|
43
|
+
*
|
|
44
|
+
* When `exceptionable` is true it throws the error that `factory` makes, or a
|
|
45
|
+
* TypeGuardError when `factory` is not a function; otherwise it returns false
|
|
46
|
+
* so a union probe can try the next branch.
|
|
47
|
+
*
|
|
48
|
+
* @evidence contracts/common.md#principled-implementation When the call is exceptionable it throws an error built by the caller's factory if one is a function, and a TypeGuardError otherwise, and when it is not exceptionable it returns false so a union probe can try another branch without throwing. The factory is tested for callability because a pointwise call such as `rows.map(assertUser)` passes the element index in that position, which a bare truthiness test would call.
|
|
49
|
+
* @evidence contracts/common.md#clear-and-simple-design One function with a boolean guard and one factory branch.
|
|
50
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A non-callable argument falls back to the default error and is not retried or wrapped; the comment explains that a create-time factory overridden by the argument cannot be recovered here.
|
|
51
|
+
* @evidence contracts/common.md#meaningful-documentation The doc states the two outcomes and the factory rule; the inline comment records the pointwise hand-off failure.
|
|
52
|
+
*/
|
|
41
53
|
const _assertGuard = (exceptionable, props, factory) => {
|
|
42
|
-
if (exceptionable === true)
|
|
43
|
-
|
|
54
|
+
if (exceptionable === true) {
|
|
55
|
+
if (typeof factory === "function") throw factory(props);
|
|
56
|
+
throw new TypeGuardError(props);
|
|
57
|
+
}
|
|
44
58
|
return false;
|
|
45
59
|
};
|
|
46
60
|
//#endregion
|
|
47
|
-
//#region ../../node_modules/.bun/typia@
|
|
61
|
+
//#region ../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/internal/_accessExpressionAsString.mjs
|
|
62
|
+
/**
|
|
63
|
+
* Write a property access on a key as source text.
|
|
64
|
+
*
|
|
65
|
+
* A key that is a legal ASCII identifier and not a reserved word becomes
|
|
66
|
+
* `.key`, and any other key becomes `["key"]` with a JSON string literal.
|
|
67
|
+
*
|
|
68
|
+
* @evidence contracts/common.md#principled-implementation A key that is a legal ASCII identifier and not a reserved word is written as a dot access, and every other key as a bracket access with a JSON string literal, which is a valid JavaScript string literal for any key, so the emitted access expression is correct for every property name. The reserved list is conservative for dot access, which is legal after a dot, so it can only cause an extra bracket form; the strict-mode future reserved words are not in the list.
|
|
69
|
+
* @evidence contracts/common.md#clear-and-simple-design One function with two private helpers, the identifier test and the reserved set.
|
|
70
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The decision is purely lexical and no property name is special-cased.
|
|
71
|
+
* @evidence contracts/common.md#meaningful-documentation The doc states the dot and bracket forms and why bracket access is always safe.
|
|
72
|
+
*/
|
|
48
73
|
const _accessExpressionAsString = (str) => variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
|
|
49
74
|
const variable = (str) => reserved(str) === false && /^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(str);
|
|
50
75
|
const reserved = (str) => RESERVED.has(str);
|
|
@@ -88,75 +113,56 @@ const RESERVED = /* @__PURE__ */ new Set([
|
|
|
88
113
|
]);
|
|
89
114
|
//#endregion
|
|
90
115
|
//#region src/schemas/gen/theme.config.ts
|
|
116
|
+
const __typia_transform__accessExpressionAsString = _accessExpressionAsString;
|
|
91
117
|
const toBaseColor = (() => {
|
|
92
|
-
const
|
|
93
|
-
"
|
|
118
|
+
const _iv0 = /* @__PURE__ */ new Set([
|
|
119
|
+
"accent",
|
|
94
120
|
"black",
|
|
95
|
-
"green",
|
|
96
|
-
"yellow",
|
|
97
121
|
"blue",
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"white",
|
|
101
|
-
"gray",
|
|
102
|
-
"grey",
|
|
103
|
-
"brightRed",
|
|
122
|
+
"border",
|
|
123
|
+
"borderTitle",
|
|
104
124
|
"brightBlack",
|
|
105
|
-
"brightGreen",
|
|
106
|
-
"brightYellow",
|
|
107
125
|
"brightBlue",
|
|
108
|
-
"brightMagenta",
|
|
109
126
|
"brightCyan",
|
|
110
|
-
"brightWhite",
|
|
111
127
|
"brightGray",
|
|
128
|
+
"brightGreen",
|
|
112
129
|
"brightGrey",
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"muted",
|
|
120
|
-
"quiet",
|
|
130
|
+
"brightMagenta",
|
|
131
|
+
"brightRed",
|
|
132
|
+
"brightWhite",
|
|
133
|
+
"brightYellow",
|
|
134
|
+
"code",
|
|
135
|
+
"codeTitle",
|
|
121
136
|
"comment",
|
|
122
|
-
"
|
|
137
|
+
"cyan",
|
|
123
138
|
"delim",
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
139
|
+
"diffAdd",
|
|
140
|
+
"diffContext",
|
|
141
|
+
"diffDel",
|
|
142
|
+
"diffLine",
|
|
143
|
+
"diffTitle",
|
|
128
144
|
"divider",
|
|
129
|
-
"
|
|
145
|
+
"error",
|
|
146
|
+
"gray",
|
|
147
|
+
"green",
|
|
148
|
+
"grey",
|
|
130
149
|
"gutter",
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"borderTitle",
|
|
134
|
-
"code",
|
|
135
|
-
"codeTitle",
|
|
136
|
-
"success",
|
|
150
|
+
"highlight",
|
|
151
|
+
"id",
|
|
137
152
|
"info",
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"syntaxBoolean",
|
|
141
|
-
"syntaxBracket",
|
|
142
|
-
"syntaxConstant",
|
|
143
|
-
"syntaxDelimiter",
|
|
144
|
-
"syntaxField",
|
|
145
|
-
"syntaxFunction",
|
|
146
|
-
"syntaxNumber",
|
|
147
|
-
"syntaxSpecial",
|
|
148
|
-
"syntaxString",
|
|
153
|
+
"inherit",
|
|
154
|
+
"magenta",
|
|
149
155
|
"mdBold",
|
|
150
156
|
"mdCode",
|
|
151
157
|
"mdCodeBlock",
|
|
152
158
|
"mdCodeBlockTitle",
|
|
159
|
+
"mdHeading",
|
|
153
160
|
"mdHeading1",
|
|
154
161
|
"mdHeading2",
|
|
155
162
|
"mdHeading3",
|
|
156
163
|
"mdHeading4",
|
|
157
164
|
"mdHeading5",
|
|
158
165
|
"mdHeading6",
|
|
159
|
-
"mdHeading",
|
|
160
166
|
"mdHr",
|
|
161
167
|
"mdItalic",
|
|
162
168
|
"mdLink",
|
|
@@ -167,64 +173,20 @@ const toBaseColor = (() => {
|
|
|
167
173
|
"mdStrikethrough",
|
|
168
174
|
"mdTable",
|
|
169
175
|
"mdTableHeader",
|
|
170
|
-
"
|
|
171
|
-
"optionDesc",
|
|
172
|
-
"optionActive",
|
|
173
|
-
"diffAdd",
|
|
174
|
-
"diffContext",
|
|
175
|
-
"diffDel",
|
|
176
|
-
"diffLine",
|
|
177
|
-
"diffTitle",
|
|
178
|
-
"inherit"
|
|
179
|
-
]);
|
|
180
|
-
const _av2 = /* @__PURE__ */ new Set([
|
|
181
|
-
"red",
|
|
182
|
-
"black",
|
|
183
|
-
"green",
|
|
184
|
-
"yellow",
|
|
185
|
-
"blue",
|
|
186
|
-
"magenta",
|
|
187
|
-
"cyan",
|
|
188
|
-
"white",
|
|
189
|
-
"gray",
|
|
190
|
-
"grey",
|
|
191
|
-
"brightRed",
|
|
192
|
-
"brightBlack",
|
|
193
|
-
"brightGreen",
|
|
194
|
-
"brightYellow",
|
|
195
|
-
"brightBlue",
|
|
196
|
-
"brightMagenta",
|
|
197
|
-
"brightCyan",
|
|
198
|
-
"brightWhite",
|
|
199
|
-
"brightGray",
|
|
200
|
-
"brightGrey",
|
|
201
|
-
"id",
|
|
176
|
+
"muted",
|
|
202
177
|
"name",
|
|
203
|
-
"
|
|
178
|
+
"optionActive",
|
|
179
|
+
"optionDesc",
|
|
180
|
+
"optionName",
|
|
181
|
+
"overlay",
|
|
204
182
|
"primary",
|
|
205
|
-
"
|
|
206
|
-
"text",
|
|
207
|
-
"muted",
|
|
183
|
+
"prompt",
|
|
208
184
|
"quiet",
|
|
209
|
-
"
|
|
210
|
-
"title",
|
|
211
|
-
"delim",
|
|
212
|
-
"subtle",
|
|
213
|
-
"ui",
|
|
214
|
-
"overlay",
|
|
215
|
-
"highlight",
|
|
216
|
-
"divider",
|
|
185
|
+
"red",
|
|
217
186
|
"selection",
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"border",
|
|
221
|
-
"borderTitle",
|
|
222
|
-
"code",
|
|
223
|
-
"codeTitle",
|
|
187
|
+
"shiki",
|
|
188
|
+
"subtle",
|
|
224
189
|
"success",
|
|
225
|
-
"info",
|
|
226
|
-
"warn",
|
|
227
|
-
"error",
|
|
228
190
|
"syntaxBoolean",
|
|
229
191
|
"syntaxBracket",
|
|
230
192
|
"syntaxConstant",
|
|
@@ -234,17 +196,61 @@ const toBaseColor = (() => {
|
|
|
234
196
|
"syntaxNumber",
|
|
235
197
|
"syntaxSpecial",
|
|
236
198
|
"syntaxString",
|
|
199
|
+
"text",
|
|
200
|
+
"title",
|
|
201
|
+
"ui",
|
|
202
|
+
"warn",
|
|
203
|
+
"white",
|
|
204
|
+
"yellow"
|
|
205
|
+
]);
|
|
206
|
+
const _av0 = /* @__PURE__ */ new Set([
|
|
207
|
+
"accent",
|
|
208
|
+
"black",
|
|
209
|
+
"blue",
|
|
210
|
+
"border",
|
|
211
|
+
"borderTitle",
|
|
212
|
+
"brightBlack",
|
|
213
|
+
"brightBlue",
|
|
214
|
+
"brightCyan",
|
|
215
|
+
"brightGray",
|
|
216
|
+
"brightGreen",
|
|
217
|
+
"brightGrey",
|
|
218
|
+
"brightMagenta",
|
|
219
|
+
"brightRed",
|
|
220
|
+
"brightWhite",
|
|
221
|
+
"brightYellow",
|
|
222
|
+
"code",
|
|
223
|
+
"codeTitle",
|
|
224
|
+
"comment",
|
|
225
|
+
"cyan",
|
|
226
|
+
"delim",
|
|
227
|
+
"diffAdd",
|
|
228
|
+
"diffContext",
|
|
229
|
+
"diffDel",
|
|
230
|
+
"diffLine",
|
|
231
|
+
"diffTitle",
|
|
232
|
+
"divider",
|
|
233
|
+
"error",
|
|
234
|
+
"gray",
|
|
235
|
+
"green",
|
|
236
|
+
"grey",
|
|
237
|
+
"gutter",
|
|
238
|
+
"highlight",
|
|
239
|
+
"id",
|
|
240
|
+
"info",
|
|
241
|
+
"inherit",
|
|
242
|
+
"magenta",
|
|
237
243
|
"mdBold",
|
|
238
244
|
"mdCode",
|
|
239
245
|
"mdCodeBlock",
|
|
240
246
|
"mdCodeBlockTitle",
|
|
247
|
+
"mdHeading",
|
|
241
248
|
"mdHeading1",
|
|
242
249
|
"mdHeading2",
|
|
243
250
|
"mdHeading3",
|
|
244
251
|
"mdHeading4",
|
|
245
252
|
"mdHeading5",
|
|
246
253
|
"mdHeading6",
|
|
247
|
-
"mdHeading",
|
|
248
254
|
"mdHr",
|
|
249
255
|
"mdItalic",
|
|
250
256
|
"mdLink",
|
|
@@ -255,17 +261,38 @@ const toBaseColor = (() => {
|
|
|
255
261
|
"mdStrikethrough",
|
|
256
262
|
"mdTable",
|
|
257
263
|
"mdTableHeader",
|
|
258
|
-
"
|
|
259
|
-
"
|
|
264
|
+
"muted",
|
|
265
|
+
"name",
|
|
260
266
|
"optionActive",
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
266
|
-
"
|
|
267
|
+
"optionDesc",
|
|
268
|
+
"optionName",
|
|
269
|
+
"overlay",
|
|
270
|
+
"primary",
|
|
271
|
+
"prompt",
|
|
272
|
+
"quiet",
|
|
273
|
+
"red",
|
|
274
|
+
"selection",
|
|
275
|
+
"shiki",
|
|
276
|
+
"subtle",
|
|
277
|
+
"success",
|
|
278
|
+
"syntaxBoolean",
|
|
279
|
+
"syntaxBracket",
|
|
280
|
+
"syntaxConstant",
|
|
281
|
+
"syntaxDelimiter",
|
|
282
|
+
"syntaxField",
|
|
283
|
+
"syntaxFunction",
|
|
284
|
+
"syntaxNumber",
|
|
285
|
+
"syntaxSpecial",
|
|
286
|
+
"syntaxString",
|
|
287
|
+
"text",
|
|
288
|
+
"title",
|
|
289
|
+
"ui",
|
|
290
|
+
"warn",
|
|
291
|
+
"white",
|
|
292
|
+
"yellow"
|
|
267
293
|
]);
|
|
268
|
-
const
|
|
294
|
+
const _ae0 = "(\"accent\" | \"black\" | \"blue\" | \"border\" | \"borderTitle\" | \"brightBlack\" | \"brightBlue\" | \"brightCyan\" | \"brightGray\" | \"brightGreen\" | \"brightGrey\" | \"brightMagenta\" | \"brightRed\" | \"brightWhite\" | \"brightYellow\" | \"code\" | \"codeTitle\" | \"comment\" | \"cyan\" | \"delim\" | \"diffAdd\" | \"diffContext\" | \"diffDel\" | \"diffLine\" | \"diffTitle\" | \"divider\" | \"error\" | \"gray\" | \"green\" | \"grey\" | \"gutter\" | \"highlight\" | \"id\" | \"info\" | \"inherit\" | \"magenta\" | \"mdBold\" | \"mdCode\" | \"mdCodeBlock\" | \"mdCodeBlockTitle\" | \"mdHeading\" | \"mdHeading1\" | \"mdHeading2\" | \"mdHeading3\" | \"mdHeading4\" | \"mdHeading5\" | \"mdHeading6\" | \"mdHr\" | \"mdItalic\" | \"mdLink\" | \"mdListBullet\" | \"mdListChecked\" | \"mdListUnchecked\" | \"mdQuote\" | \"mdStrikethrough\" | \"mdTable\" | \"mdTableHeader\" | \"muted\" | \"name\" | \"optionActive\" | \"optionDesc\" | \"optionName\" | \"overlay\" | \"primary\" | \"prompt\" | \"quiet\" | \"red\" | \"selection\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | \"white\" | \"yellow\" | `#${string}`)";
|
|
295
|
+
const __is = (input) => null !== input && void 0 !== input && (true === _iv0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input));
|
|
269
296
|
let _errorFactory;
|
|
270
297
|
return (input, errorFactory) => {
|
|
271
298
|
if (false === __is(input)) {
|
|
@@ -273,17 +300,17 @@ const toBaseColor = (() => {
|
|
|
273
300
|
((input, _path, _exceptionable = true) => (null !== input || _assertGuard(true, {
|
|
274
301
|
method: "typia.createAssert",
|
|
275
302
|
path: _path + "",
|
|
276
|
-
expected:
|
|
303
|
+
expected: _ae0,
|
|
277
304
|
value: input
|
|
278
305
|
}, _errorFactory)) && (void 0 !== input || _assertGuard(true, {
|
|
279
306
|
method: "typia.createAssert",
|
|
280
307
|
path: _path + "",
|
|
281
|
-
expected:
|
|
308
|
+
expected: _ae0,
|
|
282
309
|
value: input
|
|
283
|
-
}, _errorFactory)) && (true ===
|
|
310
|
+
}, _errorFactory)) && (true === _av0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard(true, {
|
|
284
311
|
method: "typia.createAssert",
|
|
285
312
|
path: _path + "",
|
|
286
|
-
expected:
|
|
313
|
+
expected: _ae0,
|
|
287
314
|
value: input
|
|
288
315
|
}, _errorFactory)))(input, "$input", true);
|
|
289
316
|
}
|
|
@@ -291,54 +318,36 @@ const toBaseColor = (() => {
|
|
|
291
318
|
};
|
|
292
319
|
})();
|
|
293
320
|
const toLightnessColor = (() => {
|
|
294
|
-
const
|
|
295
|
-
"id",
|
|
296
|
-
"name",
|
|
297
|
-
"shiki",
|
|
298
|
-
"primary",
|
|
321
|
+
const _iv0 = /* @__PURE__ */ new Set([
|
|
299
322
|
"accent",
|
|
300
|
-
"text",
|
|
301
|
-
"muted",
|
|
302
|
-
"quiet",
|
|
303
|
-
"comment",
|
|
304
|
-
"title",
|
|
305
|
-
"delim",
|
|
306
|
-
"subtle",
|
|
307
|
-
"ui",
|
|
308
|
-
"overlay",
|
|
309
|
-
"highlight",
|
|
310
|
-
"divider",
|
|
311
|
-
"selection",
|
|
312
|
-
"gutter",
|
|
313
|
-
"prompt",
|
|
314
323
|
"border",
|
|
315
324
|
"borderTitle",
|
|
316
325
|
"code",
|
|
317
326
|
"codeTitle",
|
|
318
|
-
"
|
|
319
|
-
"
|
|
320
|
-
"
|
|
327
|
+
"comment",
|
|
328
|
+
"delim",
|
|
329
|
+
"diffAdd",
|
|
330
|
+
"diffContext",
|
|
331
|
+
"diffDel",
|
|
332
|
+
"diffLine",
|
|
333
|
+
"diffTitle",
|
|
334
|
+
"divider",
|
|
321
335
|
"error",
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
"
|
|
326
|
-
"syntaxField",
|
|
327
|
-
"syntaxFunction",
|
|
328
|
-
"syntaxNumber",
|
|
329
|
-
"syntaxSpecial",
|
|
330
|
-
"syntaxString",
|
|
336
|
+
"gutter",
|
|
337
|
+
"highlight",
|
|
338
|
+
"id",
|
|
339
|
+
"info",
|
|
331
340
|
"mdBold",
|
|
332
341
|
"mdCode",
|
|
333
342
|
"mdCodeBlock",
|
|
334
343
|
"mdCodeBlockTitle",
|
|
344
|
+
"mdHeading",
|
|
335
345
|
"mdHeading1",
|
|
336
346
|
"mdHeading2",
|
|
337
347
|
"mdHeading3",
|
|
338
348
|
"mdHeading4",
|
|
339
349
|
"mdHeading5",
|
|
340
350
|
"mdHeading6",
|
|
341
|
-
"mdHeading",
|
|
342
351
|
"mdHr",
|
|
343
352
|
"mdItalic",
|
|
344
353
|
"mdLink",
|
|
@@ -349,43 +358,19 @@ const toLightnessColor = (() => {
|
|
|
349
358
|
"mdStrikethrough",
|
|
350
359
|
"mdTable",
|
|
351
360
|
"mdTableHeader",
|
|
352
|
-
"
|
|
353
|
-
"optionDesc",
|
|
354
|
-
"optionActive",
|
|
355
|
-
"diffAdd",
|
|
356
|
-
"diffContext",
|
|
357
|
-
"diffDel",
|
|
358
|
-
"diffLine",
|
|
359
|
-
"diffTitle"
|
|
360
|
-
]);
|
|
361
|
-
const _av2 = /* @__PURE__ */ new Set([
|
|
362
|
-
"id",
|
|
361
|
+
"muted",
|
|
363
362
|
"name",
|
|
364
|
-
"
|
|
363
|
+
"optionActive",
|
|
364
|
+
"optionDesc",
|
|
365
|
+
"optionName",
|
|
366
|
+
"overlay",
|
|
365
367
|
"primary",
|
|
366
|
-
"
|
|
367
|
-
"text",
|
|
368
|
-
"muted",
|
|
368
|
+
"prompt",
|
|
369
369
|
"quiet",
|
|
370
|
-
"comment",
|
|
371
|
-
"title",
|
|
372
|
-
"delim",
|
|
373
|
-
"subtle",
|
|
374
|
-
"ui",
|
|
375
|
-
"overlay",
|
|
376
|
-
"highlight",
|
|
377
|
-
"divider",
|
|
378
370
|
"selection",
|
|
379
|
-
"
|
|
380
|
-
"
|
|
381
|
-
"border",
|
|
382
|
-
"borderTitle",
|
|
383
|
-
"code",
|
|
384
|
-
"codeTitle",
|
|
371
|
+
"shiki",
|
|
372
|
+
"subtle",
|
|
385
373
|
"success",
|
|
386
|
-
"info",
|
|
387
|
-
"warn",
|
|
388
|
-
"error",
|
|
389
374
|
"syntaxBoolean",
|
|
390
375
|
"syntaxBracket",
|
|
391
376
|
"syntaxConstant",
|
|
@@ -395,17 +380,41 @@ const toLightnessColor = (() => {
|
|
|
395
380
|
"syntaxNumber",
|
|
396
381
|
"syntaxSpecial",
|
|
397
382
|
"syntaxString",
|
|
383
|
+
"text",
|
|
384
|
+
"title",
|
|
385
|
+
"ui",
|
|
386
|
+
"warn"
|
|
387
|
+
]);
|
|
388
|
+
const _av0 = /* @__PURE__ */ new Set([
|
|
389
|
+
"accent",
|
|
390
|
+
"border",
|
|
391
|
+
"borderTitle",
|
|
392
|
+
"code",
|
|
393
|
+
"codeTitle",
|
|
394
|
+
"comment",
|
|
395
|
+
"delim",
|
|
396
|
+
"diffAdd",
|
|
397
|
+
"diffContext",
|
|
398
|
+
"diffDel",
|
|
399
|
+
"diffLine",
|
|
400
|
+
"diffTitle",
|
|
401
|
+
"divider",
|
|
402
|
+
"error",
|
|
403
|
+
"gutter",
|
|
404
|
+
"highlight",
|
|
405
|
+
"id",
|
|
406
|
+
"info",
|
|
398
407
|
"mdBold",
|
|
399
408
|
"mdCode",
|
|
400
409
|
"mdCodeBlock",
|
|
401
410
|
"mdCodeBlockTitle",
|
|
411
|
+
"mdHeading",
|
|
402
412
|
"mdHeading1",
|
|
403
413
|
"mdHeading2",
|
|
404
414
|
"mdHeading3",
|
|
405
415
|
"mdHeading4",
|
|
406
416
|
"mdHeading5",
|
|
407
417
|
"mdHeading6",
|
|
408
|
-
"mdHeading",
|
|
409
418
|
"mdHr",
|
|
410
419
|
"mdItalic",
|
|
411
420
|
"mdLink",
|
|
@@ -416,16 +425,35 @@ const toLightnessColor = (() => {
|
|
|
416
425
|
"mdStrikethrough",
|
|
417
426
|
"mdTable",
|
|
418
427
|
"mdTableHeader",
|
|
419
|
-
"
|
|
420
|
-
"
|
|
428
|
+
"muted",
|
|
429
|
+
"name",
|
|
421
430
|
"optionActive",
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"
|
|
426
|
-
"
|
|
431
|
+
"optionDesc",
|
|
432
|
+
"optionName",
|
|
433
|
+
"overlay",
|
|
434
|
+
"primary",
|
|
435
|
+
"prompt",
|
|
436
|
+
"quiet",
|
|
437
|
+
"selection",
|
|
438
|
+
"shiki",
|
|
439
|
+
"subtle",
|
|
440
|
+
"success",
|
|
441
|
+
"syntaxBoolean",
|
|
442
|
+
"syntaxBracket",
|
|
443
|
+
"syntaxConstant",
|
|
444
|
+
"syntaxDelimiter",
|
|
445
|
+
"syntaxField",
|
|
446
|
+
"syntaxFunction",
|
|
447
|
+
"syntaxNumber",
|
|
448
|
+
"syntaxSpecial",
|
|
449
|
+
"syntaxString",
|
|
450
|
+
"text",
|
|
451
|
+
"title",
|
|
452
|
+
"ui",
|
|
453
|
+
"warn"
|
|
427
454
|
]);
|
|
428
|
-
const
|
|
455
|
+
const _ae0 = "(\"accent\" | \"border\" | \"borderTitle\" | \"code\" | \"codeTitle\" | \"comment\" | \"delim\" | \"diffAdd\" | \"diffContext\" | \"diffDel\" | \"diffLine\" | \"diffTitle\" | \"divider\" | \"error\" | \"gutter\" | \"highlight\" | \"id\" | \"info\" | \"mdBold\" | \"mdCode\" | \"mdCodeBlock\" | \"mdCodeBlockTitle\" | \"mdHeading\" | \"mdHeading1\" | \"mdHeading2\" | \"mdHeading3\" | \"mdHeading4\" | \"mdHeading5\" | \"mdHeading6\" | \"mdHr\" | \"mdItalic\" | \"mdLink\" | \"mdListBullet\" | \"mdListChecked\" | \"mdListUnchecked\" | \"mdQuote\" | \"mdStrikethrough\" | \"mdTable\" | \"mdTableHeader\" | \"muted\" | \"name\" | \"optionActive\" | \"optionDesc\" | \"optionName\" | \"overlay\" | \"primary\" | \"prompt\" | \"quiet\" | \"selection\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | `#${string}`)";
|
|
456
|
+
const __is = (input) => null !== input && void 0 !== input && (true === _iv0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input));
|
|
429
457
|
let _errorFactory;
|
|
430
458
|
return (input, errorFactory) => {
|
|
431
459
|
if (false === __is(input)) {
|
|
@@ -433,17 +461,17 @@ const toLightnessColor = (() => {
|
|
|
433
461
|
((input, _path, _exceptionable = true) => (null !== input || _assertGuard(true, {
|
|
434
462
|
method: "typia.createAssert",
|
|
435
463
|
path: _path + "",
|
|
436
|
-
expected:
|
|
464
|
+
expected: _ae0,
|
|
437
465
|
value: input
|
|
438
466
|
}, _errorFactory)) && (void 0 !== input || _assertGuard(true, {
|
|
439
467
|
method: "typia.createAssert",
|
|
440
468
|
path: _path + "",
|
|
441
|
-
expected:
|
|
469
|
+
expected: _ae0,
|
|
442
470
|
value: input
|
|
443
|
-
}, _errorFactory)) && (true ===
|
|
471
|
+
}, _errorFactory)) && (true === _av0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard(true, {
|
|
444
472
|
method: "typia.createAssert",
|
|
445
473
|
path: _path + "",
|
|
446
|
-
expected:
|
|
474
|
+
expected: _ae0,
|
|
447
475
|
value: input
|
|
448
476
|
}, _errorFactory)))(input, "$input", true);
|
|
449
477
|
}
|
|
@@ -451,8 +479,18 @@ const toLightnessColor = (() => {
|
|
|
451
479
|
};
|
|
452
480
|
})();
|
|
453
481
|
const toStyle = (() => {
|
|
454
|
-
const
|
|
455
|
-
|
|
482
|
+
const _ao0 = (input, _path, _exceptionable = true) => _ao1(input, _path, _exceptionable) && (void 0 === input.fg || "string" === typeof input.fg || _assertGuard(_exceptionable, {
|
|
483
|
+
method: "typia.createAssert",
|
|
484
|
+
path: _path + ".fg",
|
|
485
|
+
expected: "(string | undefined)",
|
|
486
|
+
value: input.fg
|
|
487
|
+
}, _errorFactory)) && (void 0 === input.bg || "string" === typeof input.bg || _assertGuard(_exceptionable, {
|
|
488
|
+
method: "typia.createAssert",
|
|
489
|
+
path: _path + ".bg",
|
|
490
|
+
expected: "(string | undefined)",
|
|
491
|
+
value: input.bg
|
|
492
|
+
}, _errorFactory));
|
|
493
|
+
const _ao1 = (input, _path, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold || _assertGuard(_exceptionable, {
|
|
456
494
|
method: "typia.createAssert",
|
|
457
495
|
path: _path + ".bold",
|
|
458
496
|
expected: "(boolean | undefined)",
|
|
@@ -482,17 +520,9 @@ const toStyle = (() => {
|
|
|
482
520
|
path: _path + ".strikethrough",
|
|
483
521
|
expected: "(boolean | undefined)",
|
|
484
522
|
value: input.strikethrough
|
|
485
|
-
}, _errorFactory)) && (void 0 === input.fg || "string" === typeof input.fg || _assertGuard(_exceptionable, {
|
|
486
|
-
method: "typia.createAssert",
|
|
487
|
-
path: _path + ".fg",
|
|
488
|
-
expected: "(string | undefined)",
|
|
489
|
-
value: input.fg
|
|
490
|
-
}, _errorFactory)) && (void 0 === input.bg || "string" === typeof input.bg || _assertGuard(_exceptionable, {
|
|
491
|
-
method: "typia.createAssert",
|
|
492
|
-
path: _path + ".bg",
|
|
493
|
-
expected: "(string | undefined)",
|
|
494
|
-
value: input.bg
|
|
495
523
|
}, _errorFactory));
|
|
524
|
+
const _io0 = (input) => _io1(input) && (void 0 === input.fg || "string" === typeof input.fg) && (void 0 === input.bg || "string" === typeof input.bg);
|
|
525
|
+
const _io1 = (input) => (void 0 === input.bold || "boolean" === typeof input.bold) && (void 0 === input.dim || "boolean" === typeof input.dim) && (void 0 === input.italic || "boolean" === typeof input.italic) && (void 0 === input.underline || "boolean" === typeof input.underline) && (void 0 === input.inverse || "boolean" === typeof input.inverse) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough);
|
|
496
526
|
const __is = (input) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input);
|
|
497
527
|
let _errorFactory;
|
|
498
528
|
return (input, errorFactory) => {
|
|
@@ -514,7 +544,7 @@ const toStyle = (() => {
|
|
|
514
544
|
};
|
|
515
545
|
})();
|
|
516
546
|
const isColorKey = (() => {
|
|
517
|
-
return (input) => "
|
|
547
|
+
return (input) => "accent" === input || "error" === input || "info" === input || "primary" === input || "success" === input || "text" === input || "warn" === input;
|
|
518
548
|
})();
|
|
519
549
|
function toColor(value) {
|
|
520
550
|
if (typeof value !== "string") return toBaseColor(value);
|
|
@@ -523,7 +553,7 @@ function toColor(value) {
|
|
|
523
553
|
return toBaseColor(color);
|
|
524
554
|
}
|
|
525
555
|
const validator = (() => {
|
|
526
|
-
const
|
|
556
|
+
const _iv0 = /* @__PURE__ */ new Set([
|
|
527
557
|
"andromeeda",
|
|
528
558
|
"aurora-x",
|
|
529
559
|
"ayu-dark",
|
|
@@ -590,7 +620,7 @@ const validator = (() => {
|
|
|
590
620
|
"vitesse-dark",
|
|
591
621
|
"vitesse-light"
|
|
592
622
|
]);
|
|
593
|
-
const
|
|
623
|
+
const _av0 = /* @__PURE__ */ new Set([
|
|
594
624
|
"andromeeda",
|
|
595
625
|
"aurora-x",
|
|
596
626
|
"ayu-dark",
|
|
@@ -657,40 +687,16 @@ const validator = (() => {
|
|
|
657
687
|
"vitesse-dark",
|
|
658
688
|
"vitesse-light"
|
|
659
689
|
]);
|
|
660
|
-
const
|
|
661
|
-
if ([
|
|
662
|
-
"$schema",
|
|
663
|
-
"shiki",
|
|
664
|
-
"id",
|
|
665
|
-
"name"
|
|
666
|
-
].some((prop) => key === prop)) return true;
|
|
667
|
-
const value = input[key];
|
|
668
|
-
if (void 0 === value) return true;
|
|
669
|
-
return null !== value && (void 0 === value || "string" === typeof value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, _exceptionable));
|
|
670
|
-
});
|
|
671
|
-
const _io1 = (input, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold) && (void 0 === input.dim || "boolean" === typeof input.dim) && (void 0 === input.italic || "boolean" === typeof input.italic) && (void 0 === input.underline || "boolean" === typeof input.underline) && (void 0 === input.inverse || "boolean" === typeof input.inverse) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough) && (void 0 === input.fg || "string" === typeof input.fg) && (void 0 === input.bg || "string" === typeof input.bg) && (0 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
672
|
-
if ([
|
|
673
|
-
"bold",
|
|
674
|
-
"dim",
|
|
675
|
-
"italic",
|
|
676
|
-
"underline",
|
|
677
|
-
"inverse",
|
|
678
|
-
"strikethrough",
|
|
679
|
-
"fg",
|
|
680
|
-
"bg"
|
|
681
|
-
].some((prop) => key === prop)) return true;
|
|
682
|
-
if (void 0 === input[key]) return true;
|
|
683
|
-
return false;
|
|
684
|
-
}));
|
|
690
|
+
const _ae0 = "(\"andromeeda\" | \"aurora-x\" | \"ayu-dark\" | \"ayu-light\" | \"ayu-mirage\" | \"catppuccin-frappe\" | \"catppuccin-latte\" | \"catppuccin-macchiato\" | \"catppuccin-mocha\" | \"dark-plus\" | \"dracula\" | \"dracula-soft\" | \"everforest-dark\" | \"everforest-light\" | \"github-dark\" | \"github-dark-default\" | \"github-dark-dimmed\" | \"github-dark-high-contrast\" | \"github-light\" | \"github-light-default\" | \"github-light-high-contrast\" | \"gruvbox-dark-hard\" | \"gruvbox-dark-medium\" | \"gruvbox-dark-soft\" | \"gruvbox-light-hard\" | \"gruvbox-light-medium\" | \"gruvbox-light-soft\" | \"horizon\" | \"horizon-bright\" | \"houston\" | \"kanagawa-dragon\" | \"kanagawa-lotus\" | \"kanagawa-wave\" | \"laserwave\" | \"light-plus\" | \"material-theme\" | \"material-theme-darker\" | \"material-theme-lighter\" | \"material-theme-ocean\" | \"material-theme-palenight\" | \"min-dark\" | \"min-light\" | \"monokai\" | \"night-owl\" | \"night-owl-light\" | \"nord\" | \"one-dark-pro\" | \"one-light\" | \"plastic\" | \"poimandres\" | \"red\" | \"rose-pine\" | \"rose-pine-dawn\" | \"rose-pine-moon\" | \"slack-dark\" | \"slack-ochin\" | \"snazzy-light\" | \"solarized-dark\" | \"solarized-light\" | \"synthwave-84\" | \"tokyo-night\" | \"vesper\" | \"vitesse-black\" | \"vitesse-dark\" | \"vitesse-light\" | undefined)";
|
|
685
691
|
const _ao0 = (input, _path, _exceptionable = true) => (void 0 === input.$schema || "string" === typeof input.$schema || _assertGuard(_exceptionable, {
|
|
686
692
|
method: "typia.createAssertEquals",
|
|
687
693
|
path: _path + ".$schema",
|
|
688
694
|
expected: "(string | undefined)",
|
|
689
695
|
value: input.$schema
|
|
690
|
-
}, _errorFactory)) && (void 0 === input.shiki || true ===
|
|
696
|
+
}, _errorFactory)) && (void 0 === input.shiki || true === _av0.has(input.shiki) || _assertGuard(_exceptionable, {
|
|
691
697
|
method: "typia.createAssertEquals",
|
|
692
698
|
path: _path + ".shiki",
|
|
693
|
-
expected:
|
|
699
|
+
expected: _ae0,
|
|
694
700
|
value: input.shiki
|
|
695
701
|
}, _errorFactory)) && (void 0 === input.id || "string" === typeof input.id || _assertGuard(_exceptionable, {
|
|
696
702
|
method: "typia.createAssertEquals",
|
|
@@ -713,17 +719,17 @@ const validator = (() => {
|
|
|
713
719
|
if (void 0 === value) return true;
|
|
714
720
|
return (null !== value || _assertGuard(_exceptionable, {
|
|
715
721
|
method: "typia.createAssertEquals",
|
|
716
|
-
path: _path +
|
|
722
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
717
723
|
expected: "(UserStyle | string | undefined)",
|
|
718
724
|
value
|
|
719
725
|
}, _errorFactory)) && (void 0 === value || "string" === typeof value || ("object" === typeof value && null !== value && false === Array.isArray(value) || _assertGuard(_exceptionable, {
|
|
720
726
|
method: "typia.createAssertEquals",
|
|
721
|
-
path: _path +
|
|
727
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
722
728
|
expected: "(UserStyle | string | undefined)",
|
|
723
729
|
value
|
|
724
|
-
}, _errorFactory)) && _ao1(value, _path +
|
|
730
|
+
}, _errorFactory)) && _ao1(value, _path + __typia_transform__accessExpressionAsString(key), _exceptionable) || _assertGuard(_exceptionable, {
|
|
725
731
|
method: "typia.createAssertEquals",
|
|
726
|
-
path: _path +
|
|
732
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
727
733
|
expected: "(UserStyle | string | undefined)",
|
|
728
734
|
value
|
|
729
735
|
}, _errorFactory));
|
|
@@ -788,6 +794,31 @@ const validator = (() => {
|
|
|
788
794
|
value
|
|
789
795
|
}, _errorFactory);
|
|
790
796
|
}));
|
|
797
|
+
const _io0 = (input, _exceptionable = true) => (void 0 === input.$schema || "string" === typeof input.$schema) && (void 0 === input.shiki || true === _iv0.has(input.shiki)) && (void 0 === input.id || "string" === typeof input.id) && (void 0 === input.name || "string" === typeof input.name) && Object.keys(input).every((key) => {
|
|
798
|
+
if ([
|
|
799
|
+
"$schema",
|
|
800
|
+
"shiki",
|
|
801
|
+
"id",
|
|
802
|
+
"name"
|
|
803
|
+
].some((prop) => key === prop)) return true;
|
|
804
|
+
const value = input[key];
|
|
805
|
+
if (void 0 === value) return true;
|
|
806
|
+
return null !== value && (void 0 === value || "string" === typeof value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, _exceptionable));
|
|
807
|
+
});
|
|
808
|
+
const _io1 = (input, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold) && (void 0 === input.dim || "boolean" === typeof input.dim) && (void 0 === input.italic || "boolean" === typeof input.italic) && (void 0 === input.underline || "boolean" === typeof input.underline) && (void 0 === input.inverse || "boolean" === typeof input.inverse) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough) && (void 0 === input.fg || "string" === typeof input.fg) && (void 0 === input.bg || "string" === typeof input.bg) && (0 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
809
|
+
if ([
|
|
810
|
+
"bold",
|
|
811
|
+
"dim",
|
|
812
|
+
"italic",
|
|
813
|
+
"underline",
|
|
814
|
+
"inverse",
|
|
815
|
+
"strikethrough",
|
|
816
|
+
"fg",
|
|
817
|
+
"bg"
|
|
818
|
+
].some((prop) => key === prop)) return true;
|
|
819
|
+
if (void 0 === input[key]) return true;
|
|
820
|
+
return false;
|
|
821
|
+
}));
|
|
791
822
|
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true);
|
|
792
823
|
let _errorFactory;
|
|
793
824
|
return (input, errorFactory) => {
|
|
@@ -829,4 +860,4 @@ function validateTheme(input) {
|
|
|
829
860
|
//#endregion
|
|
830
861
|
export { validateTheme };
|
|
831
862
|
|
|
832
|
-
//# sourceMappingURL=theme.config-
|
|
863
|
+
//# sourceMappingURL=theme.config-DHgHWQ9t.mjs.map
|