tui-components 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/box.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from '@tuicomponents/box';
2
+ import '@tuicomponents/callout';
2
3
  import '@tuicomponents/chart';
3
4
  import '@tuicomponents/core';
4
5
  import '@tuicomponents/diff';
@@ -10,3 +11,4 @@ import '@tuicomponents/progress';
10
11
  import '@tuicomponents/sparkline';
11
12
  import '@tuicomponents/table';
12
13
  import '@tuicomponents/tree';
14
+ import '@tuicomponents/layout';
package/dist/box.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from '@tuicomponents/box';
2
+ import '@tuicomponents/callout';
2
3
  import '@tuicomponents/chart';
3
4
  import '@tuicomponents/core';
4
5
  import '@tuicomponents/diff';
@@ -10,3 +11,4 @@ import '@tuicomponents/progress';
10
11
  import '@tuicomponents/sparkline';
11
12
  import '@tuicomponents/table';
12
13
  import '@tuicomponents/tree';
14
+ import '@tuicomponents/layout';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/callout.ts
18
+ var callout_exports = {};
19
+ module.exports = __toCommonJS(callout_exports);
20
+ __reExport(callout_exports, require("@tuicomponents/callout"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("@tuicomponents/callout")
24
+ });
25
+ //# sourceMappingURL=callout.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/callout.ts"],"sourcesContent":["/**\n * Callout component for semantic alert boxes.\n *\n * @example\n * ```ts\n * import { createCallout } from 'tui-components/callout';\n * ```\n */\nexport * from \"@tuicomponents/callout\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAQA,4BAAc,mCARd;","names":[]}
@@ -0,0 +1 @@
1
+ export * from '@tuicomponents/callout';
@@ -0,0 +1 @@
1
+ export * from '@tuicomponents/callout';
@@ -0,0 +1,3 @@
1
+ // src/callout.ts
2
+ export * from "@tuicomponents/callout";
3
+ //# sourceMappingURL=callout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/callout.ts"],"sourcesContent":["/**\n * Callout component for semantic alert boxes.\n *\n * @example\n * ```ts\n * import { createCallout } from 'tui-components/callout';\n * ```\n */\nexport * from \"@tuicomponents/callout\";\n"],"mappings":";AAQA,cAAc;","names":[]}
package/dist/index.cjs CHANGED
@@ -22,6 +22,7 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  BaseTuiComponent: () => import_core.BaseTuiComponent,
24
24
  BoxComponent: () => import_box.BoxComponent,
25
+ CalloutComponent: () => import_callout.CalloutComponent,
25
26
  ChartComponent: () => import_chart.ChartComponent,
26
27
  DiffComponent: () => import_diff.DiffComponent,
27
28
  GaugeComponent: () => import_gauge.GaugeComponent,
@@ -32,9 +33,12 @@ __export(index_exports, {
32
33
  SparklineComponent: () => import_sparkline.SparklineComponent,
33
34
  TableComponent: () => import_table.TableComponent,
34
35
  TreeComponent: () => import_tree.TreeComponent,
36
+ VerticalLayoutComponent: () => import_layout.VerticalLayoutComponent,
35
37
  boxInputSchema: () => import_box2.boxInputSchema,
38
+ calloutInputSchema: () => import_callout2.calloutInputSchema,
36
39
  chartInputSchema: () => import_chart2.chartInputSchema,
37
40
  createBox: () => import_box.createBox,
41
+ createCallout: () => import_callout.createCallout,
38
42
  createChart: () => import_chart.createChart,
39
43
  createDiff: () => import_diff.createDiff,
40
44
  createGauge: () => import_gauge.createGauge,
@@ -45,6 +49,7 @@ __export(index_exports, {
45
49
  createSparkline: () => import_sparkline.createSparkline,
46
50
  createTable: () => import_table.createTable,
47
51
  createTree: () => import_tree.createTree,
52
+ createVerticalLayout: () => import_layout.createVerticalLayout,
48
53
  diffInputSchema: () => import_diff2.diffInputSchema,
49
54
  gaugeInputSchema: () => import_gauge2.gaugeInputSchema,
50
55
  getStringWidth: () => import_core.getStringWidth,
@@ -59,6 +64,7 @@ __export(index_exports, {
59
64
  tableInputSchema: () => import_table2.tableInputSchema,
60
65
  treeInputSchema: () => import_tree2.treeInputSchema,
61
66
  truncateToWidth: () => import_core.truncateToWidth,
67
+ verticalLayoutInputSchema: () => import_layout2.verticalLayoutInputSchema,
62
68
  wrapText: () => import_core.wrapText
63
69
  });
64
70
  module.exports = __toCommonJS(index_exports);
@@ -73,6 +79,8 @@ var import_progress = require("@tuicomponents/progress");
73
79
  var import_sparkline = require("@tuicomponents/sparkline");
74
80
  var import_table = require("@tuicomponents/table");
75
81
  var import_tree = require("@tuicomponents/tree");
82
+ var import_layout = require("@tuicomponents/layout");
83
+ var import_callout = require("@tuicomponents/callout");
76
84
  var import_core = require("@tuicomponents/core");
77
85
  var import_box2 = require("@tuicomponents/box");
78
86
  var import_chart2 = require("@tuicomponents/chart");
@@ -85,10 +93,13 @@ var import_progress2 = require("@tuicomponents/progress");
85
93
  var import_sparkline2 = require("@tuicomponents/sparkline");
86
94
  var import_table2 = require("@tuicomponents/table");
87
95
  var import_tree2 = require("@tuicomponents/tree");
96
+ var import_layout2 = require("@tuicomponents/layout");
97
+ var import_callout2 = require("@tuicomponents/callout");
88
98
  // Annotate the CommonJS export names for ESM import in node:
89
99
  0 && (module.exports = {
90
100
  BaseTuiComponent,
91
101
  BoxComponent,
102
+ CalloutComponent,
92
103
  ChartComponent,
93
104
  DiffComponent,
94
105
  GaugeComponent,
@@ -99,9 +110,12 @@ var import_tree2 = require("@tuicomponents/tree");
99
110
  SparklineComponent,
100
111
  TableComponent,
101
112
  TreeComponent,
113
+ VerticalLayoutComponent,
102
114
  boxInputSchema,
115
+ calloutInputSchema,
103
116
  chartInputSchema,
104
117
  createBox,
118
+ createCallout,
105
119
  createChart,
106
120
  createDiff,
107
121
  createGauge,
@@ -112,6 +126,7 @@ var import_tree2 = require("@tuicomponents/tree");
112
126
  createSparkline,
113
127
  createTable,
114
128
  createTree,
129
+ createVerticalLayout,
115
130
  diffInputSchema,
116
131
  gaugeInputSchema,
117
132
  getStringWidth,
@@ -126,6 +141,7 @@ var import_tree2 = require("@tuicomponents/tree");
126
141
  tableInputSchema,
127
142
  treeInputSchema,
128
143
  truncateToWidth,
144
+ verticalLayoutInputSchema,
129
145
  wrapText
130
146
  });
131
147
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * TUI Components - Terminal UI components for beautiful CLI output\n *\n * This umbrella package re-exports all TUI components for convenience.\n * You can also import individual packages for smaller bundle sizes:\n *\n * @example\n * // Import everything\n * import { createTable, createBox } from 'tui-components';\n *\n * // Or import specific packages\n * import { createTable } from 'tui-components/table';\n * import { createBox } from 'tui-components/box';\n */\n\n// Re-export component factory functions (no conflicts)\nexport { createBox, BoxComponent } from \"@tuicomponents/box\";\nexport { createChart, ChartComponent } from \"@tuicomponents/chart\";\nexport { createDiff, DiffComponent } from \"@tuicomponents/diff\";\nexport { createGauge, GaugeComponent } from \"@tuicomponents/gauge\";\nexport { createGraph, GraphComponent } from \"@tuicomponents/graph\";\nexport { createKeyValue, KeyValueComponent } from \"@tuicomponents/keyvalue\";\nexport { createList, ListComponent } from \"@tuicomponents/list\";\nexport { createProgress, ProgressComponent } from \"@tuicomponents/progress\";\nexport { createSparkline, SparklineComponent } from \"@tuicomponents/sparkline\";\nexport { createTable, TableComponent } from \"@tuicomponents/table\";\nexport { createTree, TreeComponent } from \"@tuicomponents/tree\";\n\n// Re-export core utilities\nexport {\n registry,\n BaseTuiComponent,\n getStringWidth,\n padToWidth,\n truncateToWidth,\n wrapText,\n measureLines,\n} from \"@tuicomponents/core\";\n\n// Re-export core types\nexport type {\n TuiComponent,\n ComponentMetadata,\n RenderContext,\n RenderResult,\n} from \"@tuicomponents/core\";\n\n// Re-export input types with namespacing to avoid conflicts\nexport type { BoxInput, Padding } from \"@tuicomponents/box\";\nexport type {\n ChartInput,\n ChartType,\n DataPoint,\n DataSeries,\n AxisConfig,\n BarStyle,\n LineStyle,\n} from \"@tuicomponents/chart\";\nexport type { DiffInput, DiffLine, Hunk, LineType } from \"@tuicomponents/diff\";\nexport type {\n GaugeInput,\n GaugeZone,\n GaugeZoneColor,\n GaugeStyle,\n} from \"@tuicomponents/gauge\";\nexport type { GraphInput, GraphNode, GraphStyle } from \"@tuicomponents/graph\";\nexport type { KeyValueInput, KeyValuePair } from \"@tuicomponents/keyvalue\";\nexport type { ListInput, ListItem, ListStyle } from \"@tuicomponents/list\";\nexport type { ProgressInput, ProgressStyle } from \"@tuicomponents/progress\";\nexport type { SparklineInput } from \"@tuicomponents/sparkline\";\nexport type { TableInput, Column } from \"@tuicomponents/table\";\nexport type { TreeInput, TreeNode, TreeStyle } from \"@tuicomponents/tree\";\n\n// Re-export schemas for validation\nexport { boxInputSchema } from \"@tuicomponents/box\";\nexport { chartInputSchema } from \"@tuicomponents/chart\";\nexport { diffInputSchema } from \"@tuicomponents/diff\";\nexport { gaugeInputSchema } from \"@tuicomponents/gauge\";\nexport { graphInputSchema } from \"@tuicomponents/graph\";\nexport { keyValueInputSchema } from \"@tuicomponents/keyvalue\";\nexport { listInputSchema } from \"@tuicomponents/list\";\nexport { progressInputSchema } from \"@tuicomponents/progress\";\nexport { sparklineInputSchema } from \"@tuicomponents/sparkline\";\nexport { tableInputSchema } from \"@tuicomponents/table\";\nexport { treeInputSchema } from \"@tuicomponents/tree\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,iBAAwC;AACxC,mBAA4C;AAC5C,kBAA0C;AAC1C,mBAA4C;AAC5C,mBAA4C;AAC5C,sBAAkD;AAClD,kBAA0C;AAC1C,sBAAkD;AAClD,uBAAoD;AACpD,mBAA4C;AAC5C,kBAA0C;AAG1C,kBAQO;AAqCP,IAAAA,cAA+B;AAC/B,IAAAC,gBAAiC;AACjC,IAAAC,eAAgC;AAChC,IAAAC,gBAAiC;AACjC,IAAAC,gBAAiC;AACjC,IAAAC,mBAAoC;AACpC,IAAAC,eAAgC;AAChC,IAAAC,mBAAoC;AACpC,IAAAC,oBAAqC;AACrC,IAAAC,gBAAiC;AACjC,IAAAC,eAAgC;","names":["import_box","import_chart","import_diff","import_gauge","import_graph","import_keyvalue","import_list","import_progress","import_sparkline","import_table","import_tree"]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * TUI Components - Terminal UI components for beautiful CLI output\n *\n * This umbrella package re-exports all TUI components for convenience.\n * You can also import individual packages for smaller bundle sizes:\n *\n * @example\n * // Import everything\n * import { createTable, createBox } from 'tui-components';\n *\n * // Or import specific packages\n * import { createTable } from 'tui-components/table';\n * import { createBox } from 'tui-components/box';\n */\n\n// Re-export component factory functions (no conflicts)\nexport { createBox, BoxComponent } from \"@tuicomponents/box\";\nexport { createChart, ChartComponent } from \"@tuicomponents/chart\";\nexport { createDiff, DiffComponent } from \"@tuicomponents/diff\";\nexport { createGauge, GaugeComponent } from \"@tuicomponents/gauge\";\nexport { createGraph, GraphComponent } from \"@tuicomponents/graph\";\nexport { createKeyValue, KeyValueComponent } from \"@tuicomponents/keyvalue\";\nexport { createList, ListComponent } from \"@tuicomponents/list\";\nexport { createProgress, ProgressComponent } from \"@tuicomponents/progress\";\nexport { createSparkline, SparklineComponent } from \"@tuicomponents/sparkline\";\nexport { createTable, TableComponent } from \"@tuicomponents/table\";\nexport { createTree, TreeComponent } from \"@tuicomponents/tree\";\nexport {\n createVerticalLayout,\n VerticalLayoutComponent,\n} from \"@tuicomponents/layout\";\nexport { createCallout, CalloutComponent } from \"@tuicomponents/callout\";\n\n// Re-export core utilities\nexport {\n registry,\n BaseTuiComponent,\n getStringWidth,\n padToWidth,\n truncateToWidth,\n wrapText,\n measureLines,\n} from \"@tuicomponents/core\";\n\n// Re-export core types\nexport type {\n TuiComponent,\n ComponentMetadata,\n RenderContext,\n RenderResult,\n} from \"@tuicomponents/core\";\n\n// Re-export input types with namespacing to avoid conflicts\nexport type { BoxInput, Padding } from \"@tuicomponents/box\";\nexport type {\n ChartInput,\n ChartType,\n DataPoint,\n DataSeries,\n AxisConfig,\n BarStyle,\n LineStyle,\n} from \"@tuicomponents/chart\";\nexport type { DiffInput, DiffLine, Hunk, LineType } from \"@tuicomponents/diff\";\nexport type {\n GaugeInput,\n GaugeZone,\n GaugeZoneColor,\n GaugeStyle,\n} from \"@tuicomponents/gauge\";\nexport type { GraphInput, GraphNode, GraphStyle } from \"@tuicomponents/graph\";\nexport type { KeyValueInput, KeyValuePair } from \"@tuicomponents/keyvalue\";\nexport type { ListInput, ListItem, ListStyle } from \"@tuicomponents/list\";\nexport type { ProgressInput, ProgressStyle } from \"@tuicomponents/progress\";\nexport type { SparklineInput } from \"@tuicomponents/sparkline\";\nexport type { TableInput, Column } from \"@tuicomponents/table\";\nexport type { TreeInput, TreeNode, TreeStyle } from \"@tuicomponents/tree\";\nexport type { VerticalLayoutInput, VerticalAlign } from \"@tuicomponents/layout\";\nexport type { CalloutInput, CalloutType } from \"@tuicomponents/callout\";\n\n// Re-export schemas for validation\nexport { boxInputSchema } from \"@tuicomponents/box\";\nexport { chartInputSchema } from \"@tuicomponents/chart\";\nexport { diffInputSchema } from \"@tuicomponents/diff\";\nexport { gaugeInputSchema } from \"@tuicomponents/gauge\";\nexport { graphInputSchema } from \"@tuicomponents/graph\";\nexport { keyValueInputSchema } from \"@tuicomponents/keyvalue\";\nexport { listInputSchema } from \"@tuicomponents/list\";\nexport { progressInputSchema } from \"@tuicomponents/progress\";\nexport { sparklineInputSchema } from \"@tuicomponents/sparkline\";\nexport { tableInputSchema } from \"@tuicomponents/table\";\nexport { treeInputSchema } from \"@tuicomponents/tree\";\nexport { verticalLayoutInputSchema } from \"@tuicomponents/layout\";\nexport { calloutInputSchema } from \"@tuicomponents/callout\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,iBAAwC;AACxC,mBAA4C;AAC5C,kBAA0C;AAC1C,mBAA4C;AAC5C,mBAA4C;AAC5C,sBAAkD;AAClD,kBAA0C;AAC1C,sBAAkD;AAClD,uBAAoD;AACpD,mBAA4C;AAC5C,kBAA0C;AAC1C,oBAGO;AACP,qBAAgD;AAGhD,kBAQO;AAuCP,IAAAA,cAA+B;AAC/B,IAAAC,gBAAiC;AACjC,IAAAC,eAAgC;AAChC,IAAAC,gBAAiC;AACjC,IAAAC,gBAAiC;AACjC,IAAAC,mBAAoC;AACpC,IAAAC,eAAgC;AAChC,IAAAC,mBAAoC;AACpC,IAAAC,oBAAqC;AACrC,IAAAC,gBAAiC;AACjC,IAAAC,eAAgC;AAChC,IAAAC,iBAA0C;AAC1C,IAAAC,kBAAmC;","names":["import_box","import_chart","import_diff","import_gauge","import_graph","import_keyvalue","import_list","import_progress","import_sparkline","import_table","import_tree","import_layout","import_callout"]}
package/dist/index.d.cts CHANGED
@@ -9,4 +9,6 @@ export { ProgressComponent, ProgressInput, ProgressStyle, createProgress, progre
9
9
  export { SparklineComponent, SparklineInput, createSparkline, sparklineInputSchema } from '@tuicomponents/sparkline';
10
10
  export { Column, TableComponent, TableInput, createTable, tableInputSchema } from '@tuicomponents/table';
11
11
  export { TreeComponent, TreeInput, TreeNode, TreeStyle, createTree, treeInputSchema } from '@tuicomponents/tree';
12
+ export { VerticalAlign, VerticalLayoutComponent, VerticalLayoutInput, createVerticalLayout, verticalLayoutInputSchema } from '@tuicomponents/layout';
13
+ export { CalloutComponent, CalloutInput, CalloutType, calloutInputSchema, createCallout } from '@tuicomponents/callout';
12
14
  export { BaseTuiComponent, ComponentMetadata, RenderContext, RenderResult, TuiComponent, getStringWidth, measureLines, padToWidth, registry, truncateToWidth, wrapText } from '@tuicomponents/core';
package/dist/index.d.ts CHANGED
@@ -9,4 +9,6 @@ export { ProgressComponent, ProgressInput, ProgressStyle, createProgress, progre
9
9
  export { SparklineComponent, SparklineInput, createSparkline, sparklineInputSchema } from '@tuicomponents/sparkline';
10
10
  export { Column, TableComponent, TableInput, createTable, tableInputSchema } from '@tuicomponents/table';
11
11
  export { TreeComponent, TreeInput, TreeNode, TreeStyle, createTree, treeInputSchema } from '@tuicomponents/tree';
12
+ export { VerticalAlign, VerticalLayoutComponent, VerticalLayoutInput, createVerticalLayout, verticalLayoutInputSchema } from '@tuicomponents/layout';
13
+ export { CalloutComponent, CalloutInput, CalloutType, calloutInputSchema, createCallout } from '@tuicomponents/callout';
12
14
  export { BaseTuiComponent, ComponentMetadata, RenderContext, RenderResult, TuiComponent, getStringWidth, measureLines, padToWidth, registry, truncateToWidth, wrapText } from '@tuicomponents/core';
package/dist/index.js CHANGED
@@ -10,6 +10,11 @@ import { createProgress, ProgressComponent } from "@tuicomponents/progress";
10
10
  import { createSparkline, SparklineComponent } from "@tuicomponents/sparkline";
11
11
  import { createTable, TableComponent } from "@tuicomponents/table";
12
12
  import { createTree, TreeComponent } from "@tuicomponents/tree";
13
+ import {
14
+ createVerticalLayout,
15
+ VerticalLayoutComponent
16
+ } from "@tuicomponents/layout";
17
+ import { createCallout, CalloutComponent } from "@tuicomponents/callout";
13
18
  import {
14
19
  registry,
15
20
  BaseTuiComponent,
@@ -30,9 +35,12 @@ import { progressInputSchema } from "@tuicomponents/progress";
30
35
  import { sparklineInputSchema } from "@tuicomponents/sparkline";
31
36
  import { tableInputSchema } from "@tuicomponents/table";
32
37
  import { treeInputSchema } from "@tuicomponents/tree";
38
+ import { verticalLayoutInputSchema } from "@tuicomponents/layout";
39
+ import { calloutInputSchema } from "@tuicomponents/callout";
33
40
  export {
34
41
  BaseTuiComponent,
35
42
  BoxComponent,
43
+ CalloutComponent,
36
44
  ChartComponent,
37
45
  DiffComponent,
38
46
  GaugeComponent,
@@ -43,9 +51,12 @@ export {
43
51
  SparklineComponent,
44
52
  TableComponent,
45
53
  TreeComponent,
54
+ VerticalLayoutComponent,
46
55
  boxInputSchema,
56
+ calloutInputSchema,
47
57
  chartInputSchema,
48
58
  createBox,
59
+ createCallout,
49
60
  createChart,
50
61
  createDiff,
51
62
  createGauge,
@@ -56,6 +67,7 @@ export {
56
67
  createSparkline,
57
68
  createTable,
58
69
  createTree,
70
+ createVerticalLayout,
59
71
  diffInputSchema,
60
72
  gaugeInputSchema,
61
73
  getStringWidth,
@@ -70,6 +82,7 @@ export {
70
82
  tableInputSchema,
71
83
  treeInputSchema,
72
84
  truncateToWidth,
85
+ verticalLayoutInputSchema,
73
86
  wrapText
74
87
  };
75
88
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * TUI Components - Terminal UI components for beautiful CLI output\n *\n * This umbrella package re-exports all TUI components for convenience.\n * You can also import individual packages for smaller bundle sizes:\n *\n * @example\n * // Import everything\n * import { createTable, createBox } from 'tui-components';\n *\n * // Or import specific packages\n * import { createTable } from 'tui-components/table';\n * import { createBox } from 'tui-components/box';\n */\n\n// Re-export component factory functions (no conflicts)\nexport { createBox, BoxComponent } from \"@tuicomponents/box\";\nexport { createChart, ChartComponent } from \"@tuicomponents/chart\";\nexport { createDiff, DiffComponent } from \"@tuicomponents/diff\";\nexport { createGauge, GaugeComponent } from \"@tuicomponents/gauge\";\nexport { createGraph, GraphComponent } from \"@tuicomponents/graph\";\nexport { createKeyValue, KeyValueComponent } from \"@tuicomponents/keyvalue\";\nexport { createList, ListComponent } from \"@tuicomponents/list\";\nexport { createProgress, ProgressComponent } from \"@tuicomponents/progress\";\nexport { createSparkline, SparklineComponent } from \"@tuicomponents/sparkline\";\nexport { createTable, TableComponent } from \"@tuicomponents/table\";\nexport { createTree, TreeComponent } from \"@tuicomponents/tree\";\n\n// Re-export core utilities\nexport {\n registry,\n BaseTuiComponent,\n getStringWidth,\n padToWidth,\n truncateToWidth,\n wrapText,\n measureLines,\n} from \"@tuicomponents/core\";\n\n// Re-export core types\nexport type {\n TuiComponent,\n ComponentMetadata,\n RenderContext,\n RenderResult,\n} from \"@tuicomponents/core\";\n\n// Re-export input types with namespacing to avoid conflicts\nexport type { BoxInput, Padding } from \"@tuicomponents/box\";\nexport type {\n ChartInput,\n ChartType,\n DataPoint,\n DataSeries,\n AxisConfig,\n BarStyle,\n LineStyle,\n} from \"@tuicomponents/chart\";\nexport type { DiffInput, DiffLine, Hunk, LineType } from \"@tuicomponents/diff\";\nexport type {\n GaugeInput,\n GaugeZone,\n GaugeZoneColor,\n GaugeStyle,\n} from \"@tuicomponents/gauge\";\nexport type { GraphInput, GraphNode, GraphStyle } from \"@tuicomponents/graph\";\nexport type { KeyValueInput, KeyValuePair } from \"@tuicomponents/keyvalue\";\nexport type { ListInput, ListItem, ListStyle } from \"@tuicomponents/list\";\nexport type { ProgressInput, ProgressStyle } from \"@tuicomponents/progress\";\nexport type { SparklineInput } from \"@tuicomponents/sparkline\";\nexport type { TableInput, Column } from \"@tuicomponents/table\";\nexport type { TreeInput, TreeNode, TreeStyle } from \"@tuicomponents/tree\";\n\n// Re-export schemas for validation\nexport { boxInputSchema } from \"@tuicomponents/box\";\nexport { chartInputSchema } from \"@tuicomponents/chart\";\nexport { diffInputSchema } from \"@tuicomponents/diff\";\nexport { gaugeInputSchema } from \"@tuicomponents/gauge\";\nexport { graphInputSchema } from \"@tuicomponents/graph\";\nexport { keyValueInputSchema } from \"@tuicomponents/keyvalue\";\nexport { listInputSchema } from \"@tuicomponents/list\";\nexport { progressInputSchema } from \"@tuicomponents/progress\";\nexport { sparklineInputSchema } from \"@tuicomponents/sparkline\";\nexport { tableInputSchema } from \"@tuicomponents/table\";\nexport { treeInputSchema } from \"@tuicomponents/tree\";\n"],"mappings":";AAgBA,SAAS,WAAW,oBAAoB;AACxC,SAAS,aAAa,sBAAsB;AAC5C,SAAS,YAAY,qBAAqB;AAC1C,SAAS,aAAa,sBAAsB;AAC5C,SAAS,aAAa,sBAAsB;AAC5C,SAAS,gBAAgB,yBAAyB;AAClD,SAAS,YAAY,qBAAqB;AAC1C,SAAS,gBAAgB,yBAAyB;AAClD,SAAS,iBAAiB,0BAA0B;AACpD,SAAS,aAAa,sBAAsB;AAC5C,SAAS,YAAY,qBAAqB;AAG1C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAqCP,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * TUI Components - Terminal UI components for beautiful CLI output\n *\n * This umbrella package re-exports all TUI components for convenience.\n * You can also import individual packages for smaller bundle sizes:\n *\n * @example\n * // Import everything\n * import { createTable, createBox } from 'tui-components';\n *\n * // Or import specific packages\n * import { createTable } from 'tui-components/table';\n * import { createBox } from 'tui-components/box';\n */\n\n// Re-export component factory functions (no conflicts)\nexport { createBox, BoxComponent } from \"@tuicomponents/box\";\nexport { createChart, ChartComponent } from \"@tuicomponents/chart\";\nexport { createDiff, DiffComponent } from \"@tuicomponents/diff\";\nexport { createGauge, GaugeComponent } from \"@tuicomponents/gauge\";\nexport { createGraph, GraphComponent } from \"@tuicomponents/graph\";\nexport { createKeyValue, KeyValueComponent } from \"@tuicomponents/keyvalue\";\nexport { createList, ListComponent } from \"@tuicomponents/list\";\nexport { createProgress, ProgressComponent } from \"@tuicomponents/progress\";\nexport { createSparkline, SparklineComponent } from \"@tuicomponents/sparkline\";\nexport { createTable, TableComponent } from \"@tuicomponents/table\";\nexport { createTree, TreeComponent } from \"@tuicomponents/tree\";\nexport {\n createVerticalLayout,\n VerticalLayoutComponent,\n} from \"@tuicomponents/layout\";\nexport { createCallout, CalloutComponent } from \"@tuicomponents/callout\";\n\n// Re-export core utilities\nexport {\n registry,\n BaseTuiComponent,\n getStringWidth,\n padToWidth,\n truncateToWidth,\n wrapText,\n measureLines,\n} from \"@tuicomponents/core\";\n\n// Re-export core types\nexport type {\n TuiComponent,\n ComponentMetadata,\n RenderContext,\n RenderResult,\n} from \"@tuicomponents/core\";\n\n// Re-export input types with namespacing to avoid conflicts\nexport type { BoxInput, Padding } from \"@tuicomponents/box\";\nexport type {\n ChartInput,\n ChartType,\n DataPoint,\n DataSeries,\n AxisConfig,\n BarStyle,\n LineStyle,\n} from \"@tuicomponents/chart\";\nexport type { DiffInput, DiffLine, Hunk, LineType } from \"@tuicomponents/diff\";\nexport type {\n GaugeInput,\n GaugeZone,\n GaugeZoneColor,\n GaugeStyle,\n} from \"@tuicomponents/gauge\";\nexport type { GraphInput, GraphNode, GraphStyle } from \"@tuicomponents/graph\";\nexport type { KeyValueInput, KeyValuePair } from \"@tuicomponents/keyvalue\";\nexport type { ListInput, ListItem, ListStyle } from \"@tuicomponents/list\";\nexport type { ProgressInput, ProgressStyle } from \"@tuicomponents/progress\";\nexport type { SparklineInput } from \"@tuicomponents/sparkline\";\nexport type { TableInput, Column } from \"@tuicomponents/table\";\nexport type { TreeInput, TreeNode, TreeStyle } from \"@tuicomponents/tree\";\nexport type { VerticalLayoutInput, VerticalAlign } from \"@tuicomponents/layout\";\nexport type { CalloutInput, CalloutType } from \"@tuicomponents/callout\";\n\n// Re-export schemas for validation\nexport { boxInputSchema } from \"@tuicomponents/box\";\nexport { chartInputSchema } from \"@tuicomponents/chart\";\nexport { diffInputSchema } from \"@tuicomponents/diff\";\nexport { gaugeInputSchema } from \"@tuicomponents/gauge\";\nexport { graphInputSchema } from \"@tuicomponents/graph\";\nexport { keyValueInputSchema } from \"@tuicomponents/keyvalue\";\nexport { listInputSchema } from \"@tuicomponents/list\";\nexport { progressInputSchema } from \"@tuicomponents/progress\";\nexport { sparklineInputSchema } from \"@tuicomponents/sparkline\";\nexport { tableInputSchema } from \"@tuicomponents/table\";\nexport { treeInputSchema } from \"@tuicomponents/tree\";\nexport { verticalLayoutInputSchema } from \"@tuicomponents/layout\";\nexport { calloutInputSchema } from \"@tuicomponents/callout\";\n"],"mappings":";AAgBA,SAAS,WAAW,oBAAoB;AACxC,SAAS,aAAa,sBAAsB;AAC5C,SAAS,YAAY,qBAAqB;AAC1C,SAAS,aAAa,sBAAsB;AAC5C,SAAS,aAAa,sBAAsB;AAC5C,SAAS,gBAAgB,yBAAyB;AAClD,SAAS,YAAY,qBAAqB;AAC1C,SAAS,gBAAgB,yBAAyB;AAClD,SAAS,iBAAiB,0BAA0B;AACpD,SAAS,aAAa,sBAAsB;AAC5C,SAAS,YAAY,qBAAqB;AAC1C;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe,wBAAwB;AAGhD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAuCP,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,iCAAiC;AAC1C,SAAS,0BAA0B;","names":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/layout.ts
18
+ var layout_exports = {};
19
+ module.exports = __toCommonJS(layout_exports);
20
+ __reExport(layout_exports, require("@tuicomponents/layout"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("@tuicomponents/layout")
24
+ });
25
+ //# sourceMappingURL=layout.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/layout.ts"],"sourcesContent":["/**\n * Layout components for composing TUI elements.\n *\n * @example\n * ```ts\n * import { createVerticalLayout } from 'tui-components/layout';\n * ```\n */\nexport * from \"@tuicomponents/layout\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAQA,2BAAc,kCARd;","names":[]}
@@ -0,0 +1 @@
1
+ export * from '@tuicomponents/layout';
@@ -0,0 +1 @@
1
+ export * from '@tuicomponents/layout';
package/dist/layout.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/layout.ts
2
+ export * from "@tuicomponents/layout";
3
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/layout.ts"],"sourcesContent":["/**\n * Layout components for composing TUI elements.\n *\n * @example\n * ```ts\n * import { createVerticalLayout } from 'tui-components/layout';\n * ```\n */\nexport * from \"@tuicomponents/layout\";\n"],"mappings":";AAQA,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tui-components",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Terminal UI components for beautiful CLI output",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -136,6 +136,26 @@
136
136
  "types": "./dist/core.d.cts",
137
137
  "default": "./dist/core.cjs"
138
138
  }
139
+ },
140
+ "./layout": {
141
+ "import": {
142
+ "types": "./dist/layout.d.ts",
143
+ "default": "./dist/layout.js"
144
+ },
145
+ "require": {
146
+ "types": "./dist/layout.d.cts",
147
+ "default": "./dist/layout.cjs"
148
+ }
149
+ },
150
+ "./callout": {
151
+ "import": {
152
+ "types": "./dist/callout.d.ts",
153
+ "default": "./dist/callout.js"
154
+ },
155
+ "require": {
156
+ "types": "./dist/callout.d.cts",
157
+ "default": "./dist/callout.cjs"
158
+ }
139
159
  }
140
160
  },
141
161
  "files": [
@@ -155,25 +175,29 @@
155
175
  "keyvalue",
156
176
  "sparkline",
157
177
  "progress",
158
- "gauge"
178
+ "gauge",
179
+ "layout",
180
+ "callout"
159
181
  ],
160
182
  "license": "UNLICENSED",
161
183
  "devDependencies": {
162
184
  "@types/node": "^22.0.0"
163
185
  },
164
186
  "dependencies": {
165
- "@tuicomponents/core": "0.1.1",
166
- "@tuicomponents/box": "0.1.1",
167
- "@tuicomponents/chart": "0.2.0",
168
- "@tuicomponents/diff": "0.1.1",
169
- "@tuicomponents/gauge": "0.1.1",
170
- "@tuicomponents/graph": "0.1.1",
171
- "@tuicomponents/keyvalue": "0.1.1",
172
- "@tuicomponents/list": "0.1.1",
173
- "@tuicomponents/progress": "0.1.1",
174
- "@tuicomponents/sparkline": "0.1.1",
175
- "@tuicomponents/table": "0.1.1",
176
- "@tuicomponents/tree": "0.1.1"
187
+ "@tuicomponents/core": "0.2.0",
188
+ "@tuicomponents/box": "0.2.0",
189
+ "@tuicomponents/chart": "0.3.0",
190
+ "@tuicomponents/diff": "0.3.0",
191
+ "@tuicomponents/gauge": "0.2.0",
192
+ "@tuicomponents/graph": "0.2.0",
193
+ "@tuicomponents/keyvalue": "0.2.0",
194
+ "@tuicomponents/list": "0.2.0",
195
+ "@tuicomponents/progress": "0.2.0",
196
+ "@tuicomponents/sparkline": "0.2.0",
197
+ "@tuicomponents/table": "0.2.0",
198
+ "@tuicomponents/tree": "1.0.0",
199
+ "@tuicomponents/layout": "0.2.0",
200
+ "@tuicomponents/callout": "0.2.0"
177
201
  },
178
202
  "scripts": {
179
203
  "build": "tsup",