@outfitter/cli 0.2.0 → 0.4.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/README.md +47 -4
- package/dist/actions.js +0 -2
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -2
- package/dist/{render → colors}/colors.d.ts +1 -1
- package/dist/{render → colors}/colors.js +2 -6
- package/dist/colors/index.d.ts +1 -1
- package/dist/colors/index.js +3 -4
- package/dist/command.d.ts +1 -1
- package/dist/command.js +1 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -5
- package/dist/input.d.ts +3 -26
- package/dist/input.js +1 -31
- package/dist/output.d.ts +3 -3
- package/dist/output.js +4 -3
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +0 -2
- package/dist/shared/@outfitter/{cli-ttt7r0j7.d.ts → cli-02kyvj7h.d.ts} +2 -13
- package/dist/shared/@outfitter/{cli-8gg0hck1.js → cli-7wp5nj0s.js} +16 -12
- package/dist/shared/@outfitter/{cli-72kg550t.d.ts → cli-f79bwzsp.d.ts} +30 -2
- package/dist/shared/@outfitter/{cli-d9ad0rqj.js → cli-jbj78ac5.js} +1 -6
- package/dist/shared/@outfitter/{cli-5g6rkv3d.js → cli-rk9zagkm.js} +24 -32
- package/dist/shared/@outfitter/{cli-efy6jfcj.js → cli-zahqsaby.js} +33 -10
- package/dist/terminal/detection.js +1 -5
- package/dist/terminal/index.js +1 -6
- package/dist/{shared/@outfitter/cli-4cb5g831.d.ts → text.d.ts} +1 -1
- package/dist/{shared/@outfitter/cli-mwxsh3sr.js → text.js} +15 -14
- package/dist/types.d.ts +2 -2
- package/dist/types.js +0 -2
- package/package.json +35 -213
- package/dist/borders/index.d.ts +0 -3
- package/dist/borders/index.js +0 -13
- package/dist/box/index.d.ts +0 -4
- package/dist/box/index.js +0 -13
- package/dist/demo/index.d.ts +0 -78
- package/dist/demo/index.js +0 -148
- package/dist/demo/registry.d.ts +0 -7
- package/dist/demo/registry.js +0 -28
- package/dist/demo/renderers/borders.d.ts +0 -7
- package/dist/demo/renderers/borders.js +0 -17
- package/dist/demo/renderers/box.d.ts +0 -7
- package/dist/demo/renderers/box.js +0 -18
- package/dist/demo/renderers/colors.d.ts +0 -7
- package/dist/demo/renderers/colors.js +0 -18
- package/dist/demo/renderers/indicators.d.ts +0 -7
- package/dist/demo/renderers/indicators.js +0 -17
- package/dist/demo/renderers/list.d.ts +0 -7
- package/dist/demo/renderers/list.js +0 -19
- package/dist/demo/renderers/markdown.d.ts +0 -7
- package/dist/demo/renderers/markdown.js +0 -18
- package/dist/demo/renderers/progress.d.ts +0 -7
- package/dist/demo/renderers/progress.js +0 -17
- package/dist/demo/renderers/spinner.d.ts +0 -7
- package/dist/demo/renderers/spinner.js +0 -19
- package/dist/demo/renderers/table.d.ts +0 -7
- package/dist/demo/renderers/table.js +0 -19
- package/dist/demo/renderers/text.d.ts +0 -7
- package/dist/demo/renderers/text.js +0 -16
- package/dist/demo/renderers/tree.d.ts +0 -7
- package/dist/demo/renderers/tree.js +0 -18
- package/dist/demo/section.d.ts +0 -5
- package/dist/demo/section.js +0 -23
- package/dist/demo/templates.d.ts +0 -4
- package/dist/demo/templates.js +0 -10
- package/dist/demo/types.d.ts +0 -3
- package/dist/demo/types.js +0 -8
- package/dist/list/index.d.ts +0 -3
- package/dist/list/index.js +0 -9
- package/dist/preset/full.d.ts +0 -14
- package/dist/preset/full.js +0 -41
- package/dist/preset/standard.d.ts +0 -11
- package/dist/preset/standard.js +0 -30
- package/dist/prompt/confirm.d.ts +0 -4
- package/dist/prompt/confirm.js +0 -9
- package/dist/prompt/group.d.ts +0 -4
- package/dist/prompt/group.js +0 -9
- package/dist/prompt/index.d.ts +0 -7
- package/dist/prompt/index.js +0 -32
- package/dist/prompt/select.d.ts +0 -4
- package/dist/prompt/select.js +0 -11
- package/dist/prompt/text.d.ts +0 -4
- package/dist/prompt/text.js +0 -11
- package/dist/prompt/types.d.ts +0 -3
- package/dist/prompt/types.js +0 -8
- package/dist/prompt/validators.d.ts +0 -2
- package/dist/prompt/validators.js +0 -8
- package/dist/render/borders.d.ts +0 -2
- package/dist/render/borders.js +0 -15
- package/dist/render/box.d.ts +0 -3
- package/dist/render/box.js +0 -23
- package/dist/render/date.d.ts +0 -2
- package/dist/render/date.js +0 -12
- package/dist/render/format-relative.d.ts +0 -2
- package/dist/render/format-relative.js +0 -8
- package/dist/render/format.d.ts +0 -2
- package/dist/render/format.js +0 -10
- package/dist/render/heading.d.ts +0 -3
- package/dist/render/heading.js +0 -14
- package/dist/render/index.d.ts +0 -32
- package/dist/render/index.js +0 -235
- package/dist/render/indicators.d.ts +0 -2
- package/dist/render/indicators.js +0 -16
- package/dist/render/json.d.ts +0 -2
- package/dist/render/json.js +0 -10
- package/dist/render/layout.d.ts +0 -5
- package/dist/render/layout.js +0 -25
- package/dist/render/list.d.ts +0 -2
- package/dist/render/list.js +0 -8
- package/dist/render/markdown.d.ts +0 -2
- package/dist/render/markdown.js +0 -10
- package/dist/render/progress.d.ts +0 -2
- package/dist/render/progress.js +0 -8
- package/dist/render/separator.d.ts +0 -3
- package/dist/render/separator.js +0 -14
- package/dist/render/shapes.d.ts +0 -2
- package/dist/render/shapes.js +0 -35
- package/dist/render/spinner.d.ts +0 -2
- package/dist/render/spinner.js +0 -12
- package/dist/render/stack.d.ts +0 -3
- package/dist/render/stack.js +0 -38
- package/dist/render/table.d.ts +0 -3
- package/dist/render/table.js +0 -12
- package/dist/render/text.d.ts +0 -2
- package/dist/render/text.js +0 -27
- package/dist/render/tree.d.ts +0 -2
- package/dist/render/tree.js +0 -10
- package/dist/render/types.d.ts +0 -2
- package/dist/shared/@outfitter/cli-0djg8q91.js +0 -7
- package/dist/shared/@outfitter/cli-0w242qtv.d.ts +0 -48
- package/dist/shared/@outfitter/cli-1g8tt31a.d.ts +0 -119
- package/dist/shared/@outfitter/cli-1kwbnt86.d.ts +0 -45
- package/dist/shared/@outfitter/cli-1sb3xvnw.js +0 -95
- package/dist/shared/@outfitter/cli-1vy0vtga.js +0 -135
- package/dist/shared/@outfitter/cli-2g8bx1aq.d.ts +0 -50
- package/dist/shared/@outfitter/cli-33e97cjs.d.ts +0 -42
- package/dist/shared/@outfitter/cli-3b7ed3rm.d.ts +0 -97
- package/dist/shared/@outfitter/cli-3hk2xf3c.js +0 -82
- package/dist/shared/@outfitter/cli-3hp8qwx3.js +0 -11
- package/dist/shared/@outfitter/cli-47yw5h6a.js +0 -7
- package/dist/shared/@outfitter/cli-4b6tbp68.d.ts +0 -36
- package/dist/shared/@outfitter/cli-4fcz51qa.js +0 -70
- package/dist/shared/@outfitter/cli-4x6pqnez.js +0 -20
- package/dist/shared/@outfitter/cli-4zk2y4a2.d.ts +0 -61
- package/dist/shared/@outfitter/cli-60b5xh1r.js +0 -20
- package/dist/shared/@outfitter/cli-6bztk73z.d.ts +0 -51
- package/dist/shared/@outfitter/cli-6fxffp8k.js +0 -1
- package/dist/shared/@outfitter/cli-6hg0sg2d.d.ts +0 -93
- package/dist/shared/@outfitter/cli-6r3m2knf.js +0 -62
- package/dist/shared/@outfitter/cli-6ty1nvws.js +0 -179
- package/dist/shared/@outfitter/cli-7n610r63.js +0 -20
- package/dist/shared/@outfitter/cli-7na6p4fs.d.ts +0 -59
- package/dist/shared/@outfitter/cli-83jwvj1t.d.ts +0 -17
- package/dist/shared/@outfitter/cli-85fg2vr5.js +0 -123
- package/dist/shared/@outfitter/cli-8bwaw3pz.js +0 -7
- package/dist/shared/@outfitter/cli-8hngbjyr.d.ts +0 -164
- package/dist/shared/@outfitter/cli-8j5k6mr3.js +0 -71
- package/dist/shared/@outfitter/cli-8xsmsbbd.d.ts +0 -223
- package/dist/shared/@outfitter/cli-914d47mt.js +0 -20
- package/dist/shared/@outfitter/cli-9bcm4zhf.d.ts +0 -87
- package/dist/shared/@outfitter/cli-9khk3cbq.d.ts +0 -190
- package/dist/shared/@outfitter/cli-a4q87517.d.ts +0 -64
- package/dist/shared/@outfitter/cli-aem6v4c8.js +0 -146
- package/dist/shared/@outfitter/cli-b0tzqgnf.d.ts +0 -132
- package/dist/shared/@outfitter/cli-b5c2k0d7.js +0 -39
- package/dist/shared/@outfitter/cli-b5epywry.js +0 -1
- package/dist/shared/@outfitter/cli-bc17qeh2.js +0 -19
- package/dist/shared/@outfitter/cli-bcmcaz1b.js +0 -23
- package/dist/shared/@outfitter/cli-bv09nme3.d.ts +0 -56
- package/dist/shared/@outfitter/cli-c6pbxpw0.d.ts +0 -112
- package/dist/shared/@outfitter/cli-c8fqdaes.js +0 -117
- package/dist/shared/@outfitter/cli-c8q4f71g.js +0 -144
- package/dist/shared/@outfitter/cli-c9knfqn5.d.ts +0 -30
- package/dist/shared/@outfitter/cli-cf1xexgn.d.ts +0 -53
- package/dist/shared/@outfitter/cli-cf2s94s1.d.ts +0 -42
- package/dist/shared/@outfitter/cli-cwgj6mcs.js +0 -214
- package/dist/shared/@outfitter/cli-d8ahdd9d.js +0 -272
- package/dist/shared/@outfitter/cli-dbyteh27.d.ts +0 -24
- package/dist/shared/@outfitter/cli-e5ms1y0x.d.ts +0 -91
- package/dist/shared/@outfitter/cli-en6zn6sj.js +0 -1
- package/dist/shared/@outfitter/cli-evx7qcp1.d.ts +0 -300
- package/dist/shared/@outfitter/cli-f6fsaayd.js +0 -94
- package/dist/shared/@outfitter/cli-fakncnjp.d.ts +0 -106
- package/dist/shared/@outfitter/cli-ffa0jwb7.js +0 -122
- package/dist/shared/@outfitter/cli-h20jc0bs.d.ts +0 -66
- package/dist/shared/@outfitter/cli-h3jz0bxz.js +0 -48
- package/dist/shared/@outfitter/cli-h4wpzb3f.js +0 -67
- package/dist/shared/@outfitter/cli-hda6mc28.js +0 -126
- package/dist/shared/@outfitter/cli-hnpbqmc8.d.ts +0 -328
- package/dist/shared/@outfitter/cli-j19a91ck.js +0 -30
- package/dist/shared/@outfitter/cli-jejfypgf.js +0 -85
- package/dist/shared/@outfitter/cli-jp0k3qd9.js +0 -279
- package/dist/shared/@outfitter/cli-k76e7173.js +0 -128
- package/dist/shared/@outfitter/cli-kc3ffp1v.d.ts +0 -23
- package/dist/shared/@outfitter/cli-kk5hnndk.d.ts +0 -128
- package/dist/shared/@outfitter/cli-ktqme80d.js +0 -7
- package/dist/shared/@outfitter/cli-mq0jp15z.js +0 -1
- package/dist/shared/@outfitter/cli-n0c33vba.js +0 -25
- package/dist/shared/@outfitter/cli-n17gt1dz.js +0 -19
- package/dist/shared/@outfitter/cli-n9dbh0hp.js +0 -51
- package/dist/shared/@outfitter/cli-ndem6tz8.js +0 -63
- package/dist/shared/@outfitter/cli-nj4nqy1h.d.ts +0 -24
- package/dist/shared/@outfitter/cli-nkns8p4r.js +0 -61
- package/dist/shared/@outfitter/cli-p3dqm1vd.js +0 -22
- package/dist/shared/@outfitter/cli-pndwprz8.js +0 -118
- package/dist/shared/@outfitter/cli-pvrwv6rb.js +0 -352
- package/dist/shared/@outfitter/cli-py02m79x.d.ts +0 -20
- package/dist/shared/@outfitter/cli-qj83y5wj.d.ts +0 -71
- package/dist/shared/@outfitter/cli-regjbef6.d.ts +0 -26
- package/dist/shared/@outfitter/cli-s1tx5kha.d.ts +0 -59
- package/dist/shared/@outfitter/cli-sam2sq50.js +0 -37
- package/dist/shared/@outfitter/cli-snxj55n6.js +0 -43
- package/dist/shared/@outfitter/cli-symyxb0z.js +0 -20
- package/dist/shared/@outfitter/cli-tvw1xrdj.js +0 -20
- package/dist/shared/@outfitter/cli-v1tzwxkt.js +0 -32
- package/dist/shared/@outfitter/cli-vd60dj65.js +0 -1
- package/dist/shared/@outfitter/cli-vfcrskfj.d.ts +0 -41
- package/dist/shared/@outfitter/cli-vstbkzky.d.ts +0 -74
- package/dist/shared/@outfitter/cli-vtg0sqk2.d.ts +0 -54
- package/dist/shared/@outfitter/cli-x4cavvc0.js +0 -1
- package/dist/shared/@outfitter/cli-xep6v2c0.js +0 -52
- package/dist/shared/@outfitter/cli-xg5y5fhk.js +0 -86
- package/dist/shared/@outfitter/cli-y7k1t81k.js +0 -30
- package/dist/shared/@outfitter/cli-yfyzy95c.js +0 -67
- package/dist/shared/@outfitter/cli-z78mkrc7.js +0 -59
- package/dist/shared/@outfitter/cli-znc47004.js +0 -134
- package/dist/shared/@outfitter/cli-zx598p8q.d.ts +0 -26
- package/dist/streaming/ansi.d.ts +0 -2
- package/dist/streaming/ansi.js +0 -8
- package/dist/streaming/index.d.ts +0 -4
- package/dist/streaming/index.js +0 -17
- package/dist/streaming/spinner.d.ts +0 -3
- package/dist/streaming/spinner.js +0 -10
- package/dist/streaming/writer.d.ts +0 -2
- package/dist/streaming/writer.js +0 -9
- package/dist/table/index.d.ts +0 -4
- package/dist/table/index.js +0 -13
- package/dist/theme/context.d.ts +0 -9
- package/dist/theme/context.js +0 -14
- package/dist/theme/create.d.ts +0 -8
- package/dist/theme/create.js +0 -12
- package/dist/theme/index.d.ts +0 -17
- package/dist/theme/index.js +0 -42
- package/dist/theme/presets/bold.d.ts +0 -8
- package/dist/theme/presets/bold.js +0 -12
- package/dist/theme/presets/default.d.ts +0 -8
- package/dist/theme/presets/default.js +0 -11
- package/dist/theme/presets/index.d.ts +0 -12
- package/dist/theme/presets/index.js +0 -24
- package/dist/theme/presets/minimal.d.ts +0 -8
- package/dist/theme/presets/minimal.js +0 -12
- package/dist/theme/presets/rounded.d.ts +0 -8
- package/dist/theme/presets/rounded.js +0 -12
- package/dist/theme/resolve.d.ts +0 -8
- package/dist/theme/resolve.js +0 -11
- package/dist/theme/types.d.ts +0 -7
- package/dist/theme/types.js +0 -1
- package/dist/tree/index.d.ts +0 -3
- package/dist/tree/index.js +0 -11
- /package/dist/shared/@outfitter/{cli-ykxn7rb2.d.ts → cli-xppg982q.d.ts} +0 -0
- /package/dist/{render/types.js → shared/@outfitter/cli-zw75pdk8.js} +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
ANSI
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
__esm
|
|
8
|
-
} from "./cli-v1tzwxkt.js";
|
|
3
|
+
ANSI
|
|
4
|
+
} from "./shared/@outfitter/cli-rk9zagkm.js";
|
|
5
|
+
import"./shared/@outfitter/cli-jbj78ac5.js";
|
|
9
6
|
|
|
10
|
-
// packages/cli/src/
|
|
7
|
+
// packages/cli/src/text.ts
|
|
8
|
+
var ANSI_REGEX = /\x1b\[[0-9;]*m/g;
|
|
11
9
|
function stripAnsi(text) {
|
|
12
10
|
return text.replace(ANSI_REGEX, "");
|
|
13
11
|
}
|
|
@@ -76,10 +74,13 @@ function pluralize(count, singular, plural) {
|
|
|
76
74
|
function slugify(text) {
|
|
77
75
|
return text.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
78
76
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
export {
|
|
78
|
+
wrapText,
|
|
79
|
+
truncateText,
|
|
80
|
+
stripAnsi,
|
|
81
|
+
slugify,
|
|
82
|
+
pluralize,
|
|
83
|
+
padText,
|
|
84
|
+
getStringWidth,
|
|
85
|
+
ANSI_REGEX
|
|
86
|
+
};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CLI, CLIConfig, CancelledError, CollectIdsOptions, CommandAction, CommandBuilder, CommandConfig, CommandFlags,
|
|
2
|
-
export { ValidationError, SortCriteria, Result, Range, ParseGlobOptions, PaginationState, OutputOptions, OutputMode, NumericRange, NormalizeIdOptions, KeyValuePair, FilterExpression, ExpandFileOptions, ErrorCategory, DateRange, CursorOptions,
|
|
1
|
+
import { CLI, CLIConfig, CancelledError, CollectIdsOptions, CommandAction, CommandBuilder, CommandConfig, CommandFlags, CursorOptions, DateRange, ErrorCategory, ExpandFileOptions, FilterExpression, KeyValuePair, NormalizeIdOptions, NumericRange, OutputMode, OutputOptions, PaginationState, ParseGlobOptions, Range, Result, SortCriteria, ValidationError } from "./shared/@outfitter/cli-02kyvj7h";
|
|
2
|
+
export { ValidationError, SortCriteria, Result, Range, ParseGlobOptions, PaginationState, OutputOptions, OutputMode, NumericRange, NormalizeIdOptions, KeyValuePair, FilterExpression, ExpandFileOptions, ErrorCategory, DateRange, CursorOptions, CommandFlags, CommandConfig, CommandBuilder, CommandAction, CollectIdsOptions, CancelledError, CLIConfig, CLI };
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outfitter/cli",
|
|
3
3
|
"description": "Typed CLI runtime with terminal detection, rendering, output contracts, and input parsing",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -9,58 +9,47 @@
|
|
|
9
9
|
"module": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|
|
12
|
-
"
|
|
13
|
-
"import": {
|
|
14
|
-
"types": "./dist/output.d.ts",
|
|
15
|
-
"default": "./dist/output.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"./demo": {
|
|
19
|
-
"import": {
|
|
20
|
-
"types": "./dist/demo/index.d.ts",
|
|
21
|
-
"default": "./dist/demo/index.js"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"./borders": {
|
|
12
|
+
".": {
|
|
25
13
|
"import": {
|
|
26
|
-
"types": "./dist/
|
|
27
|
-
"default": "./dist/
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
28
16
|
}
|
|
29
17
|
},
|
|
30
|
-
"./
|
|
18
|
+
"./actions": {
|
|
31
19
|
"import": {
|
|
32
|
-
"types": "./dist/
|
|
33
|
-
"default": "./dist/
|
|
20
|
+
"types": "./dist/actions.d.ts",
|
|
21
|
+
"default": "./dist/actions.js"
|
|
34
22
|
}
|
|
35
23
|
},
|
|
36
|
-
"./
|
|
24
|
+
"./colors": {
|
|
37
25
|
"import": {
|
|
38
|
-
"types": "./dist/
|
|
39
|
-
"default": "./dist/
|
|
26
|
+
"types": "./dist/colors/index.d.ts",
|
|
27
|
+
"default": "./dist/colors/index.js"
|
|
40
28
|
}
|
|
41
29
|
},
|
|
42
|
-
"./
|
|
30
|
+
"./command": {
|
|
43
31
|
"import": {
|
|
44
|
-
"types": "./dist/
|
|
45
|
-
"default": "./dist/
|
|
32
|
+
"types": "./dist/command.d.ts",
|
|
33
|
+
"default": "./dist/command.js"
|
|
46
34
|
}
|
|
47
35
|
},
|
|
48
|
-
"./
|
|
36
|
+
"./input": {
|
|
49
37
|
"import": {
|
|
50
|
-
"types": "./dist/
|
|
51
|
-
"default": "./dist/
|
|
38
|
+
"types": "./dist/input.d.ts",
|
|
39
|
+
"default": "./dist/input.js"
|
|
52
40
|
}
|
|
53
41
|
},
|
|
54
|
-
"./
|
|
42
|
+
"./output": {
|
|
55
43
|
"import": {
|
|
56
|
-
"types": "./dist/
|
|
57
|
-
"default": "./dist/
|
|
44
|
+
"types": "./dist/output.d.ts",
|
|
45
|
+
"default": "./dist/output.js"
|
|
58
46
|
}
|
|
59
47
|
},
|
|
60
|
-
"./
|
|
48
|
+
"./package.json": "./package.json",
|
|
49
|
+
"./pagination": {
|
|
61
50
|
"import": {
|
|
62
|
-
"types": "./dist/
|
|
63
|
-
"default": "./dist/
|
|
51
|
+
"types": "./dist/pagination.d.ts",
|
|
52
|
+
"default": "./dist/pagination.js"
|
|
64
53
|
}
|
|
65
54
|
},
|
|
66
55
|
"./terminal": {
|
|
@@ -75,160 +64,10 @@
|
|
|
75
64
|
"default": "./dist/terminal/detection.js"
|
|
76
65
|
}
|
|
77
66
|
},
|
|
78
|
-
"./
|
|
79
|
-
"import": {
|
|
80
|
-
"types": "./dist/prompt/text.d.ts",
|
|
81
|
-
"default": "./dist/prompt/text.js"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"./prompt/types": {
|
|
85
|
-
"import": {
|
|
86
|
-
"types": "./dist/prompt/types.d.ts",
|
|
87
|
-
"default": "./dist/prompt/types.js"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"./prompt/validators": {
|
|
91
|
-
"import": {
|
|
92
|
-
"types": "./dist/prompt/validators.d.ts",
|
|
93
|
-
"default": "./dist/prompt/validators.js"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"./prompt": {
|
|
97
|
-
"import": {
|
|
98
|
-
"types": "./dist/prompt/index.d.ts",
|
|
99
|
-
"default": "./dist/prompt/index.js"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"./streaming/spinner": {
|
|
103
|
-
"import": {
|
|
104
|
-
"types": "./dist/streaming/spinner.d.ts",
|
|
105
|
-
"default": "./dist/streaming/spinner.js"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"./streaming/ansi": {
|
|
67
|
+
"./text": {
|
|
109
68
|
"import": {
|
|
110
|
-
"types": "./dist/
|
|
111
|
-
"default": "./dist/
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"./streaming/writer": {
|
|
115
|
-
"import": {
|
|
116
|
-
"types": "./dist/streaming/writer.d.ts",
|
|
117
|
-
"default": "./dist/streaming/writer.js"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"./streaming": {
|
|
121
|
-
"import": {
|
|
122
|
-
"types": "./dist/streaming/index.d.ts",
|
|
123
|
-
"default": "./dist/streaming/index.js"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"./theme/presets/rounded": {
|
|
127
|
-
"import": {
|
|
128
|
-
"types": "./dist/theme/presets/rounded.d.ts",
|
|
129
|
-
"default": "./dist/theme/presets/rounded.js"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
"./theme/presets/bold": {
|
|
133
|
-
"import": {
|
|
134
|
-
"types": "./dist/theme/presets/bold.d.ts",
|
|
135
|
-
"default": "./dist/theme/presets/bold.js"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"./theme/presets/minimal": {
|
|
139
|
-
"import": {
|
|
140
|
-
"types": "./dist/theme/presets/minimal.d.ts",
|
|
141
|
-
"default": "./dist/theme/presets/minimal.js"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"./theme/presets/default": {
|
|
145
|
-
"import": {
|
|
146
|
-
"types": "./dist/theme/presets/default.d.ts",
|
|
147
|
-
"default": "./dist/theme/presets/default.js"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"./theme/presets": {
|
|
151
|
-
"import": {
|
|
152
|
-
"types": "./dist/theme/presets/index.d.ts",
|
|
153
|
-
"default": "./dist/theme/presets/index.js"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
"./prompt/confirm": {
|
|
157
|
-
"import": {
|
|
158
|
-
"types": "./dist/prompt/confirm.d.ts",
|
|
159
|
-
"default": "./dist/prompt/confirm.js"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
"./prompt/select": {
|
|
163
|
-
"import": {
|
|
164
|
-
"types": "./dist/prompt/select.d.ts",
|
|
165
|
-
"default": "./dist/prompt/select.js"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"./prompt/group": {
|
|
169
|
-
"import": {
|
|
170
|
-
"types": "./dist/prompt/group.d.ts",
|
|
171
|
-
"default": "./dist/prompt/group.js"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"./list": {
|
|
175
|
-
"import": {
|
|
176
|
-
"types": "./dist/list/index.d.ts",
|
|
177
|
-
"default": "./dist/list/index.js"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"./colors": {
|
|
181
|
-
"import": {
|
|
182
|
-
"types": "./dist/colors/index.d.ts",
|
|
183
|
-
"default": "./dist/colors/index.js"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"./table": {
|
|
187
|
-
"import": {
|
|
188
|
-
"types": "./dist/table/index.d.ts",
|
|
189
|
-
"default": "./dist/table/index.js"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"./theme/context": {
|
|
193
|
-
"import": {
|
|
194
|
-
"types": "./dist/theme/context.d.ts",
|
|
195
|
-
"default": "./dist/theme/context.js"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"./theme/types": {
|
|
199
|
-
"import": {
|
|
200
|
-
"types": "./dist/theme/types.d.ts",
|
|
201
|
-
"default": "./dist/theme/types.js"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"./theme": {
|
|
205
|
-
"import": {
|
|
206
|
-
"types": "./dist/theme/index.d.ts",
|
|
207
|
-
"default": "./dist/theme/index.js"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"./theme/create": {
|
|
211
|
-
"import": {
|
|
212
|
-
"types": "./dist/theme/create.d.ts",
|
|
213
|
-
"default": "./dist/theme/create.js"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"./theme/resolve": {
|
|
217
|
-
"import": {
|
|
218
|
-
"types": "./dist/theme/resolve.d.ts",
|
|
219
|
-
"default": "./dist/theme/resolve.js"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
"./pagination": {
|
|
223
|
-
"import": {
|
|
224
|
-
"types": "./dist/pagination.d.ts",
|
|
225
|
-
"default": "./dist/pagination.js"
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
"./input": {
|
|
229
|
-
"import": {
|
|
230
|
-
"types": "./dist/input.d.ts",
|
|
231
|
-
"default": "./dist/input.js"
|
|
69
|
+
"types": "./dist/text.d.ts",
|
|
70
|
+
"default": "./dist/text.js"
|
|
232
71
|
}
|
|
233
72
|
},
|
|
234
73
|
"./types": {
|
|
@@ -236,26 +75,7 @@
|
|
|
236
75
|
"types": "./dist/types.d.ts",
|
|
237
76
|
"default": "./dist/types.js"
|
|
238
77
|
}
|
|
239
|
-
}
|
|
240
|
-
"./actions": {
|
|
241
|
-
"import": {
|
|
242
|
-
"types": "./dist/actions.d.ts",
|
|
243
|
-
"default": "./dist/actions.js"
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
".": {
|
|
247
|
-
"import": {
|
|
248
|
-
"types": "./dist/index.d.ts",
|
|
249
|
-
"default": "./dist/index.js"
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"./command": {
|
|
253
|
-
"import": {
|
|
254
|
-
"types": "./dist/command.d.ts",
|
|
255
|
-
"default": "./dist/command.js"
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
"./package.json": "./package.json"
|
|
78
|
+
}
|
|
259
79
|
},
|
|
260
80
|
"sideEffects": false,
|
|
261
81
|
"scripts": {
|
|
@@ -269,20 +89,22 @@
|
|
|
269
89
|
},
|
|
270
90
|
"dependencies": {
|
|
271
91
|
"@clack/prompts": "^0.11.0",
|
|
272
|
-
"@outfitter/config": "0.2.0",
|
|
273
|
-
"@outfitter/contracts": "0.2.0",
|
|
274
|
-
"@outfitter/types": "0.2.0",
|
|
275
92
|
"better-result": "^2.5.1",
|
|
276
93
|
"commander": "^14.0.2"
|
|
277
94
|
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"@outfitter/config": ">=0.3.0",
|
|
97
|
+
"@outfitter/contracts": ">=0.2.0",
|
|
98
|
+
"@outfitter/types": ">=0.2.0",
|
|
99
|
+
"zod": "^4.3.5"
|
|
100
|
+
},
|
|
278
101
|
"devDependencies": {
|
|
102
|
+
"@outfitter/config": "0.3.1",
|
|
103
|
+
"@outfitter/contracts": "0.3.0",
|
|
279
104
|
"@types/bun": "^1.3.7",
|
|
280
105
|
"@types/node": "^25.0.10",
|
|
281
106
|
"typescript": "^5.9.3"
|
|
282
107
|
},
|
|
283
|
-
"peerDependencies": {
|
|
284
|
-
"zod": "^4.3.5"
|
|
285
|
-
},
|
|
286
108
|
"engines": {
|
|
287
109
|
"bun": ">=1.3.7"
|
|
288
110
|
},
|
package/dist/borders/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "../shared/@outfitter/cli-w7w7ta31";
|
|
2
|
-
import { BORDERS, BorderCharacters, BorderStyle, LinePosition, drawHorizontalLine, getBorderCharacters } from "../shared/@outfitter/cli-fakncnjp";
|
|
3
|
-
export { getBorderCharacters, drawHorizontalLine, LinePosition, BorderStyle, BorderCharacters, BORDERS };
|
package/dist/borders/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../shared/@outfitter/cli-ktqme80d.js";
|
|
3
|
-
import {
|
|
4
|
-
BORDERS,
|
|
5
|
-
drawHorizontalLine,
|
|
6
|
-
getBorderCharacters
|
|
7
|
-
} from "../shared/@outfitter/cli-85fg2vr5.js";
|
|
8
|
-
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
9
|
-
export {
|
|
10
|
-
getBorderCharacters,
|
|
11
|
-
drawHorizontalLine,
|
|
12
|
-
BORDERS
|
|
13
|
-
};
|
package/dist/box/index.d.ts
DELETED
package/dist/box/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../shared/@outfitter/cli-0djg8q91.js";
|
|
3
|
-
import {
|
|
4
|
-
renderBox
|
|
5
|
-
} from "../shared/@outfitter/cli-jp0k3qd9.js";
|
|
6
|
-
import"../shared/@outfitter/cli-mwxsh3sr.js";
|
|
7
|
-
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
8
|
-
import"../shared/@outfitter/cli-5g6rkv3d.js";
|
|
9
|
-
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
10
|
-
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
11
|
-
export {
|
|
12
|
-
renderBox
|
|
13
|
-
};
|
package/dist/demo/index.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { BORDER_STYLE_META, LIST_STYLE_META, PRIMITIVE_META, SPINNER_STYLE_META, THEME_METHOD_META, getBorderStyles, getListStyles, getPrimitiveIds, getSpinnerStyles, getThemeMethodsByCategory } from "../shared/@outfitter/cli-bv09nme3";
|
|
2
|
-
import "../shared/@outfitter/cli-e5ms1y0x";
|
|
3
|
-
import "../shared/@outfitter/cli-b0tzqgnf";
|
|
4
|
-
import "../shared/@outfitter/cli-fakncnjp";
|
|
5
|
-
import { SectionOptions, SubsectionOptions, codeBlock, demoContent, demoSection, demoSubsection, description } from "../shared/@outfitter/cli-kk5hnndk";
|
|
6
|
-
import "../shared/@outfitter/cli-6bztk73z";
|
|
7
|
-
import "../shared/@outfitter/cli-2g8bx1aq";
|
|
8
|
-
import { DEFAULT_EXAMPLES, getExample } from "../shared/@outfitter/cli-83jwvj1t";
|
|
9
|
-
import { DemoConfig, DemoRegistryEntry, DemoRenderer, ExampleTexts, PrimitiveId, PrimitiveMeta, ThemeMethodCategory, ThemeMethodMeta, VariantMeta, isPrimitiveId } from "../shared/@outfitter/cli-c6pbxpw0";
|
|
10
|
-
import "../shared/@outfitter/cli-ykxn7rb2";
|
|
11
|
-
/**
|
|
12
|
-
* Renders a demo for a specific primitive.
|
|
13
|
-
*
|
|
14
|
-
* @param id - The primitive to demo
|
|
15
|
-
* @param config - Optional configuration for customization
|
|
16
|
-
* @returns Formatted demo output string
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* // Default examples
|
|
21
|
-
* console.log(renderDemo("colors"));
|
|
22
|
-
*
|
|
23
|
-
* // Custom examples
|
|
24
|
-
* console.log(renderDemo("colors", {
|
|
25
|
-
* examples: { success: "Build completed" }
|
|
26
|
-
* }));
|
|
27
|
-
*
|
|
28
|
-
* // No code examples
|
|
29
|
-
* console.log(renderDemo("table", { showCode: false }));
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
declare function renderDemo(id: PrimitiveId, config?: DemoConfig): string;
|
|
33
|
-
/**
|
|
34
|
-
* Renders demos for all primitives.
|
|
35
|
-
*
|
|
36
|
-
* @param config - Optional configuration applied to all demos
|
|
37
|
-
* @returns Combined output from all demos, separated by blank lines
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```typescript
|
|
41
|
-
* console.log(renderAllDemos());
|
|
42
|
-
*
|
|
43
|
-
* // With custom config
|
|
44
|
-
* console.log(renderAllDemos({
|
|
45
|
-
* showCode: false,
|
|
46
|
-
* showDescriptions: true,
|
|
47
|
-
* }));
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
declare function renderAllDemos(config?: DemoConfig): string;
|
|
51
|
-
/**
|
|
52
|
-
* Gets metadata for a specific primitive.
|
|
53
|
-
*
|
|
54
|
-
* @param id - The primitive ID
|
|
55
|
-
* @returns Primitive metadata including name, description, and import example
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```typescript
|
|
59
|
-
* const meta = getPrimitive("colors");
|
|
60
|
-
* console.log(meta.name); // "Colors"
|
|
61
|
-
* console.log(meta.importExample); // 'import { createTheme } from "@outfitter/cli/render";'
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
declare function getPrimitive(id: PrimitiveId): PrimitiveMeta;
|
|
65
|
-
/**
|
|
66
|
-
* Gets all primitives with their metadata.
|
|
67
|
-
*
|
|
68
|
-
* @returns Array of all primitive metadata
|
|
69
|
-
*/
|
|
70
|
-
declare function getAllPrimitives(): PrimitiveMeta[];
|
|
71
|
-
/**
|
|
72
|
-
* Gets a registry entry with both metadata and renderer.
|
|
73
|
-
*
|
|
74
|
-
* @param id - The primitive ID
|
|
75
|
-
* @returns Registry entry with meta and render function
|
|
76
|
-
*/
|
|
77
|
-
declare function getDemoEntry(id: PrimitiveId): DemoRegistryEntry;
|
|
78
|
-
export { renderDemo, renderAllDemos, isPrimitiveId, getThemeMethodsByCategory, getSpinnerStyles, getPrimitiveIds, getPrimitive, getListStyles, getExample, getDemoEntry, getBorderStyles, getAllPrimitives, description, demoSubsection, demoSection, demoContent, codeBlock, VariantMeta, ThemeMethodMeta, ThemeMethodCategory, THEME_METHOD_META, SubsectionOptions, SectionOptions, SPINNER_STYLE_META, PrimitiveMeta, PrimitiveId, PRIMITIVE_META, LIST_STYLE_META, ExampleTexts, DemoRenderer, DemoRegistryEntry, DemoConfig, DEFAULT_EXAMPLES, BORDER_STYLE_META };
|
package/dist/demo/index.js
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
renderTreeDemo
|
|
4
|
-
} from "../shared/@outfitter/cli-ffa0jwb7.js";
|
|
5
|
-
import"../shared/@outfitter/cli-b5c2k0d7.js";
|
|
6
|
-
import {
|
|
7
|
-
renderTextDemo
|
|
8
|
-
} from "../shared/@outfitter/cli-k76e7173.js";
|
|
9
|
-
import {
|
|
10
|
-
renderSpinnerDemo
|
|
11
|
-
} from "../shared/@outfitter/cli-h4wpzb3f.js";
|
|
12
|
-
import"../shared/@outfitter/cli-n9dbh0hp.js";
|
|
13
|
-
import {
|
|
14
|
-
renderColorsDemo
|
|
15
|
-
} from "../shared/@outfitter/cli-znc47004.js";
|
|
16
|
-
import {
|
|
17
|
-
renderListDemo
|
|
18
|
-
} from "../shared/@outfitter/cli-hda6mc28.js";
|
|
19
|
-
import"../shared/@outfitter/cli-xg5y5fhk.js";
|
|
20
|
-
import {
|
|
21
|
-
renderIndicatorsDemo
|
|
22
|
-
} from "../shared/@outfitter/cli-pndwprz8.js";
|
|
23
|
-
import"../shared/@outfitter/cli-6ty1nvws.js";
|
|
24
|
-
import {
|
|
25
|
-
renderProgressDemo
|
|
26
|
-
} from "../shared/@outfitter/cli-nkns8p4r.js";
|
|
27
|
-
import"../shared/@outfitter/cli-bc17qeh2.js";
|
|
28
|
-
import {
|
|
29
|
-
renderTableDemo
|
|
30
|
-
} from "../shared/@outfitter/cli-f6fsaayd.js";
|
|
31
|
-
import"../shared/@outfitter/cli-c8fqdaes.js";
|
|
32
|
-
import {
|
|
33
|
-
isPrimitiveId
|
|
34
|
-
} from "../shared/@outfitter/cli-tvw1xrdj.js";
|
|
35
|
-
import {
|
|
36
|
-
renderBordersDemo
|
|
37
|
-
} from "../shared/@outfitter/cli-6r3m2knf.js";
|
|
38
|
-
import {
|
|
39
|
-
renderMarkdownDemo
|
|
40
|
-
} from "../shared/@outfitter/cli-4fcz51qa.js";
|
|
41
|
-
import"../shared/@outfitter/cli-ndem6tz8.js";
|
|
42
|
-
import {
|
|
43
|
-
renderBoxDemo
|
|
44
|
-
} from "../shared/@outfitter/cli-cwgj6mcs.js";
|
|
45
|
-
import {
|
|
46
|
-
BORDER_STYLE_META,
|
|
47
|
-
LIST_STYLE_META,
|
|
48
|
-
PRIMITIVE_META,
|
|
49
|
-
SPINNER_STYLE_META,
|
|
50
|
-
THEME_METHOD_META,
|
|
51
|
-
getBorderStyles,
|
|
52
|
-
getListStyles,
|
|
53
|
-
getPrimitiveIds,
|
|
54
|
-
getPrimitiveMeta,
|
|
55
|
-
getSpinnerStyles,
|
|
56
|
-
getThemeMethodsByCategory
|
|
57
|
-
} from "../shared/@outfitter/cli-d8ahdd9d.js";
|
|
58
|
-
import {
|
|
59
|
-
DEFAULT_EXAMPLES,
|
|
60
|
-
getExample
|
|
61
|
-
} from "../shared/@outfitter/cli-xep6v2c0.js";
|
|
62
|
-
import {
|
|
63
|
-
codeBlock,
|
|
64
|
-
demoContent,
|
|
65
|
-
demoSection,
|
|
66
|
-
demoSubsection,
|
|
67
|
-
description
|
|
68
|
-
} from "../shared/@outfitter/cli-sam2sq50.js";
|
|
69
|
-
import"../shared/@outfitter/cli-3hk2xf3c.js";
|
|
70
|
-
import"../shared/@outfitter/cli-aem6v4c8.js";
|
|
71
|
-
import"../shared/@outfitter/cli-jp0k3qd9.js";
|
|
72
|
-
import"../shared/@outfitter/cli-mwxsh3sr.js";
|
|
73
|
-
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
74
|
-
import {
|
|
75
|
-
createTheme,
|
|
76
|
-
init_colors
|
|
77
|
-
} from "../shared/@outfitter/cli-5g6rkv3d.js";
|
|
78
|
-
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
79
|
-
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
80
|
-
|
|
81
|
-
// packages/cli/src/demo/index.ts
|
|
82
|
-
init_colors();
|
|
83
|
-
var DEMO_RENDERERS = {
|
|
84
|
-
colors: renderColorsDemo,
|
|
85
|
-
borders: renderBordersDemo,
|
|
86
|
-
spinner: renderSpinnerDemo,
|
|
87
|
-
list: renderListDemo,
|
|
88
|
-
box: renderBoxDemo,
|
|
89
|
-
table: renderTableDemo,
|
|
90
|
-
progress: renderProgressDemo,
|
|
91
|
-
tree: renderTreeDemo,
|
|
92
|
-
text: renderTextDemo,
|
|
93
|
-
markdown: renderMarkdownDemo,
|
|
94
|
-
indicators: renderIndicatorsDemo
|
|
95
|
-
};
|
|
96
|
-
function renderDemo(id, config = {}) {
|
|
97
|
-
const renderer = DEMO_RENDERERS[id];
|
|
98
|
-
const theme = createTheme();
|
|
99
|
-
return renderer(config, theme);
|
|
100
|
-
}
|
|
101
|
-
function renderAllDemos(config = {}) {
|
|
102
|
-
const theme = createTheme();
|
|
103
|
-
const outputs = [];
|
|
104
|
-
for (const id of getPrimitiveIds()) {
|
|
105
|
-
const renderer = DEMO_RENDERERS[id];
|
|
106
|
-
outputs.push(renderer(config, theme));
|
|
107
|
-
outputs.push("");
|
|
108
|
-
}
|
|
109
|
-
return outputs.join(`
|
|
110
|
-
`).trimEnd();
|
|
111
|
-
}
|
|
112
|
-
function getPrimitive(id) {
|
|
113
|
-
return getPrimitiveMeta(id);
|
|
114
|
-
}
|
|
115
|
-
function getAllPrimitives() {
|
|
116
|
-
return getPrimitiveIds().map((id) => PRIMITIVE_META[id]);
|
|
117
|
-
}
|
|
118
|
-
function getDemoEntry(id) {
|
|
119
|
-
return {
|
|
120
|
-
meta: getPrimitiveMeta(id),
|
|
121
|
-
render: DEMO_RENDERERS[id]
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
export {
|
|
125
|
-
renderDemo,
|
|
126
|
-
renderAllDemos,
|
|
127
|
-
isPrimitiveId,
|
|
128
|
-
getThemeMethodsByCategory,
|
|
129
|
-
getSpinnerStyles,
|
|
130
|
-
getPrimitiveIds,
|
|
131
|
-
getPrimitive,
|
|
132
|
-
getListStyles,
|
|
133
|
-
getExample,
|
|
134
|
-
getDemoEntry,
|
|
135
|
-
getBorderStyles,
|
|
136
|
-
getAllPrimitives,
|
|
137
|
-
description,
|
|
138
|
-
demoSubsection,
|
|
139
|
-
demoSection,
|
|
140
|
-
demoContent,
|
|
141
|
-
codeBlock,
|
|
142
|
-
THEME_METHOD_META,
|
|
143
|
-
SPINNER_STYLE_META,
|
|
144
|
-
PRIMITIVE_META,
|
|
145
|
-
LIST_STYLE_META,
|
|
146
|
-
DEFAULT_EXAMPLES,
|
|
147
|
-
BORDER_STYLE_META
|
|
148
|
-
};
|
package/dist/demo/registry.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BORDER_STYLE_META, LIST_STYLE_META, PRIMITIVE_META, SPINNER_STYLE_META, THEME_METHOD_META, getBorderStyles, getListStyles, getPrimitiveIds, getPrimitiveMeta, getSpinnerStyles, getThemeMethodsByCategory } from "../shared/@outfitter/cli-bv09nme3";
|
|
2
|
-
import "../shared/@outfitter/cli-e5ms1y0x";
|
|
3
|
-
import "../shared/@outfitter/cli-b0tzqgnf";
|
|
4
|
-
import "../shared/@outfitter/cli-fakncnjp";
|
|
5
|
-
import "../shared/@outfitter/cli-c6pbxpw0";
|
|
6
|
-
import "../shared/@outfitter/cli-ykxn7rb2";
|
|
7
|
-
export { getThemeMethodsByCategory, getSpinnerStyles, getPrimitiveMeta, getPrimitiveIds, getListStyles, getBorderStyles, THEME_METHOD_META, SPINNER_STYLE_META, PRIMITIVE_META, LIST_STYLE_META, BORDER_STYLE_META };
|
package/dist/demo/registry.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
BORDER_STYLE_META,
|
|
4
|
-
LIST_STYLE_META,
|
|
5
|
-
PRIMITIVE_META,
|
|
6
|
-
SPINNER_STYLE_META,
|
|
7
|
-
THEME_METHOD_META,
|
|
8
|
-
getBorderStyles,
|
|
9
|
-
getListStyles,
|
|
10
|
-
getPrimitiveIds,
|
|
11
|
-
getPrimitiveMeta,
|
|
12
|
-
getSpinnerStyles,
|
|
13
|
-
getThemeMethodsByCategory
|
|
14
|
-
} from "../shared/@outfitter/cli-d8ahdd9d.js";
|
|
15
|
-
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
16
|
-
export {
|
|
17
|
-
getThemeMethodsByCategory,
|
|
18
|
-
getSpinnerStyles,
|
|
19
|
-
getPrimitiveMeta,
|
|
20
|
-
getPrimitiveIds,
|
|
21
|
-
getListStyles,
|
|
22
|
-
getBorderStyles,
|
|
23
|
-
THEME_METHOD_META,
|
|
24
|
-
SPINNER_STYLE_META,
|
|
25
|
-
PRIMITIVE_META,
|
|
26
|
-
LIST_STYLE_META,
|
|
27
|
-
BORDER_STYLE_META
|
|
28
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DemoConfig } from "../../shared/@outfitter/cli-c6pbxpw0";
|
|
2
|
-
import { Theme } from "../../shared/@outfitter/cli-ykxn7rb2";
|
|
3
|
-
/**
|
|
4
|
-
* Renders the borders demo section.
|
|
5
|
-
*/
|
|
6
|
-
declare function renderBordersDemo(config: DemoConfig, theme: Theme): string;
|
|
7
|
-
export { renderBordersDemo };
|