react-markdown-table-ts 1.1.9 → 1.2.1
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/cellFormatter.d.ts +9 -0
- package/dist/index.cjs.js +100 -65
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +100 -65
- package/dist/index.esm.js.map +1 -1
- package/dist/types.d.ts +18 -7
- package/dist/utils.d.ts +7 -5
- package/dist/validation.d.ts +1 -1
- package/package.json +1 -1
- package/dist/MarkdownTable.stories.d.ts +0 -156
- package/dist/jest.setup.d.ts +0 -2
- package/dist/jest.setup.js +0 -3
- package/dist/jest.setup.js.map +0 -1
- package/dist/src/MarkdownTable.stories.d.ts +0 -156
- package/dist/src/MarkdownTable.stories.js +0 -172
- package/dist/src/MarkdownTable.stories.js.map +0 -1
- package/dist/src/index.d.ts +0 -5
- package/dist/src/index.js +0 -78
- package/dist/src/index.js.map +0 -1
- package/dist/src/types.d.ts +0 -123
- package/dist/src/types.js +0 -3
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils.d.ts +0 -8
- package/dist/src/utils.js +0 -176
- package/dist/src/utils.js.map +0 -1
- package/dist/src/validation.d.ts +0 -19
- package/dist/src/validation.js +0 -106
- package/dist/src/validation.js.map +0 -1
- package/dist/stories/Button.d.ts +0 -15
- package/dist/stories/Button.stories.d.ts +0 -23
- package/dist/stories/Header.d.ts +0 -12
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.stories.d.ts +0 -13
- package/dist/test/MarkdownTable.test.d.ts +0 -1
- package/dist/test/MarkdownTable.test.js +0 -91
- package/dist/test/MarkdownTable.test.js.map +0 -1
- package/dist/test/utils.test.d.ts +0 -1
- package/dist/test/utils.test.js +0 -234
- package/dist/test/utils.test.js.map +0 -1
- package/dist/test/validation.test.d.ts +0 -1
- package/dist/test/validation.test.js +0 -86
- package/dist/test/validation.test.js.map +0 -1
package/dist/types.d.ts
CHANGED
@@ -1,25 +1,36 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
/**
|
3
|
+
* Represents a single cell's data in the table.
|
4
|
+
*/
|
5
|
+
export interface CellData {
|
6
|
+
content: string;
|
7
|
+
alignment?: "left" | "center" | "right" | "inherit" | "justify";
|
8
|
+
bold?: boolean;
|
9
|
+
italic?: boolean;
|
10
|
+
code?: boolean;
|
11
|
+
link?: string;
|
12
|
+
}
|
2
13
|
/**
|
3
14
|
* Represents a single row in a table, consisting of cells.
|
4
15
|
*/
|
5
|
-
export type TableRow = readonly
|
16
|
+
export type TableRow = readonly CellData[];
|
6
17
|
/**
|
7
18
|
* Represents the structure of a Markdown table.
|
8
19
|
*/
|
9
20
|
export interface InputData {
|
10
|
-
inputDataHeader:
|
11
|
-
inputDataBody: readonly
|
21
|
+
inputDataHeader: CellData[];
|
22
|
+
inputDataBody: readonly CellData[][];
|
12
23
|
}
|
13
24
|
/**
|
14
25
|
* Props for the MarkdownTable component.
|
15
26
|
*/
|
16
27
|
export interface MarkdownTableProps {
|
17
28
|
/**
|
18
|
-
* The entire table data as a two-dimensional array.
|
29
|
+
* The entire table data as a two-dimensional array of CellData objects.
|
19
30
|
* If `hasHeader` is true, the first row is treated as the header.
|
20
31
|
* @default null
|
21
32
|
*/
|
22
|
-
inputData?:
|
33
|
+
inputData?: CellData[][] | null;
|
23
34
|
/**
|
24
35
|
* Optional array specifying the alignment for each column.
|
25
36
|
* Acceptable values are 'left', 'center', 'right', or 'none'.
|
@@ -58,7 +69,7 @@ export interface MarkdownTableProps {
|
|
58
69
|
* Acceptable values are 'light' or 'dark'.
|
59
70
|
* @default 'light'
|
60
71
|
*/
|
61
|
-
theme?:
|
72
|
+
theme?: "light" | "dark";
|
62
73
|
/**
|
63
74
|
* Optional CSS class for styling the rendered Markdown table.
|
64
75
|
* This class will be applied to the <pre> element containing the table.
|
@@ -109,7 +120,7 @@ export interface MarkdownTableProps {
|
|
109
120
|
/**
|
110
121
|
* Represents the alignment options for table columns.
|
111
122
|
*/
|
112
|
-
export type Alignment =
|
123
|
+
export type Alignment = "left" | "right" | "center" | "none" | "justify";
|
113
124
|
/**
|
114
125
|
* Configuration for table formatting.
|
115
126
|
*/
|
package/dist/utils.d.ts
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/**
|
2
|
+
* @fileoverview Utilities for formatting and generating markdown tables with support
|
3
|
+
* for cell formatting, alignment, and width calculations.
|
4
|
+
*/
|
5
|
+
import { TableRow, InputData, Alignment, TableConfig, CellData } from "./types";
|
6
|
+
export declare function calculateColumnWidths(tableRows: readonly TableRow[], maxColumnCount: number, config: TableConfig): number[];
|
3
7
|
export declare function generateMarkdownTableString(inputData: InputData, columnAlignments: readonly Alignment[], canAdjustColumnWidths?: boolean, useTabs?: boolean, replaceNewlines?: boolean, hasPadding?: boolean): string;
|
4
|
-
export declare function replaceNewlinesInCell(cell:
|
8
|
+
export declare function replaceNewlinesInCell(cell: CellData): CellData;
|
5
9
|
export declare function getColumnName(index: number): string;
|
6
10
|
export declare function generateAlphabetHeaders(columnCount: number): string[];
|
7
|
-
export declare function formatMarkdownRow(columnCount: number, currentRow: TableRow, columnAlignments: readonly Alignment[], columnWidths?: readonly number[], useTabs?: boolean, canReplaceNewlines?: boolean, hasPadding?: boolean): string;
|
8
|
-
export declare function formatAlignmentRow(columnCount: number, columnAlignments: readonly Alignment[], columnWidths?: readonly number[], useTabs?: boolean, hasPadding?: boolean): string;
|
package/dist/validation.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-markdown-table-ts",
|
3
|
-
"version": "1.1
|
3
|
+
"version": "1.2.1",
|
4
4
|
"description": "A React component that converts structured data into Markdown table syntax and displays it within a `<pre>` tag.",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -1,156 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileoverview Storybook stories for the MarkdownTable component, demonstrating
|
3
|
-
* various configurations and use cases for markdown table generation and display.
|
4
|
-
*/
|
5
|
-
/// <reference types="react" />
|
6
|
-
import type { StoryObj } from '@storybook/react';
|
7
|
-
import { MarkdownTable } from './index';
|
8
|
-
declare const meta: {
|
9
|
-
title: string;
|
10
|
-
component: import("react").FC<import("./types").MarkdownTableProps>;
|
11
|
-
parameters: {
|
12
|
-
layout: string;
|
13
|
-
};
|
14
|
-
tags: string[];
|
15
|
-
args: {
|
16
|
-
inputData: null;
|
17
|
-
columnAlignments: never[];
|
18
|
-
isCompact: false;
|
19
|
-
hasPadding: true;
|
20
|
-
hasTabs: false;
|
21
|
-
hasHeader: true;
|
22
|
-
convertLineBreaks: false;
|
23
|
-
topPadding: number;
|
24
|
-
theme: "light";
|
25
|
-
};
|
26
|
-
argTypes: {
|
27
|
-
inputData: {
|
28
|
-
control: {
|
29
|
-
type: "object";
|
30
|
-
};
|
31
|
-
description: string;
|
32
|
-
table: {
|
33
|
-
category: string;
|
34
|
-
type: {
|
35
|
-
summary: string;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
};
|
39
|
-
columnAlignments: {
|
40
|
-
control: {
|
41
|
-
type: "object";
|
42
|
-
};
|
43
|
-
description: string;
|
44
|
-
table: {
|
45
|
-
category: string;
|
46
|
-
type: {
|
47
|
-
summary: string;
|
48
|
-
detail: string;
|
49
|
-
};
|
50
|
-
};
|
51
|
-
};
|
52
|
-
isCompact: {
|
53
|
-
control: "boolean";
|
54
|
-
description: string;
|
55
|
-
table: {
|
56
|
-
category: string;
|
57
|
-
type: {
|
58
|
-
summary: string;
|
59
|
-
};
|
60
|
-
};
|
61
|
-
};
|
62
|
-
hasPadding: {
|
63
|
-
control: "boolean";
|
64
|
-
description: string;
|
65
|
-
table: {
|
66
|
-
category: string;
|
67
|
-
type: {
|
68
|
-
summary: string;
|
69
|
-
};
|
70
|
-
};
|
71
|
-
};
|
72
|
-
hasTabs: {
|
73
|
-
control: "boolean";
|
74
|
-
description: string;
|
75
|
-
table: {
|
76
|
-
category: string;
|
77
|
-
type: {
|
78
|
-
summary: string;
|
79
|
-
};
|
80
|
-
};
|
81
|
-
};
|
82
|
-
hasHeader: {
|
83
|
-
control: "boolean";
|
84
|
-
description: string;
|
85
|
-
table: {
|
86
|
-
category: string;
|
87
|
-
type: {
|
88
|
-
summary: string;
|
89
|
-
};
|
90
|
-
};
|
91
|
-
};
|
92
|
-
convertLineBreaks: {
|
93
|
-
control: "boolean";
|
94
|
-
description: string;
|
95
|
-
table: {
|
96
|
-
category: string;
|
97
|
-
type: {
|
98
|
-
summary: string;
|
99
|
-
};
|
100
|
-
};
|
101
|
-
};
|
102
|
-
topPadding: {
|
103
|
-
control: {
|
104
|
-
type: "number";
|
105
|
-
};
|
106
|
-
description: string;
|
107
|
-
table: {
|
108
|
-
category: string;
|
109
|
-
type: {
|
110
|
-
summary: string;
|
111
|
-
};
|
112
|
-
};
|
113
|
-
};
|
114
|
-
theme: {
|
115
|
-
options: string[];
|
116
|
-
control: {
|
117
|
-
type: "select";
|
118
|
-
};
|
119
|
-
description: string;
|
120
|
-
table: {
|
121
|
-
category: string;
|
122
|
-
type: {
|
123
|
-
summary: string;
|
124
|
-
};
|
125
|
-
defaultValue: {
|
126
|
-
summary: string;
|
127
|
-
};
|
128
|
-
};
|
129
|
-
};
|
130
|
-
className: {
|
131
|
-
control: "text";
|
132
|
-
description: string;
|
133
|
-
table: {
|
134
|
-
category: string;
|
135
|
-
type: {
|
136
|
-
summary: string;
|
137
|
-
};
|
138
|
-
};
|
139
|
-
};
|
140
|
-
preStyle: {
|
141
|
-
control: {
|
142
|
-
type: "object";
|
143
|
-
};
|
144
|
-
description: string;
|
145
|
-
table: {
|
146
|
-
category: string;
|
147
|
-
type: {
|
148
|
-
summary: string;
|
149
|
-
};
|
150
|
-
};
|
151
|
-
};
|
152
|
-
};
|
153
|
-
};
|
154
|
-
export default meta;
|
155
|
-
type Story = StoryObj<typeof MarkdownTable>;
|
156
|
-
export declare const Default: Story;
|
package/dist/jest.setup.d.ts
DELETED
package/dist/jest.setup.js
DELETED
package/dist/jest.setup.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"jest.setup.js","sourceRoot":"","sources":["../jest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,wBAAwB,CAAC"}
|
@@ -1,156 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileoverview Storybook stories for the MarkdownTable component, demonstrating
|
3
|
-
* various configurations and use cases for markdown table generation and display.
|
4
|
-
*/
|
5
|
-
/// <reference types="react" />
|
6
|
-
import type { StoryObj } from '@storybook/react';
|
7
|
-
import { MarkdownTable } from './index';
|
8
|
-
declare const meta: {
|
9
|
-
title: string;
|
10
|
-
component: import("react").FC<import("./types").MarkdownTableProps>;
|
11
|
-
parameters: {
|
12
|
-
layout: string;
|
13
|
-
};
|
14
|
-
tags: string[];
|
15
|
-
args: {
|
16
|
-
inputData: null;
|
17
|
-
columnAlignments: never[];
|
18
|
-
isCompact: false;
|
19
|
-
hasPadding: true;
|
20
|
-
hasTabs: false;
|
21
|
-
hasHeader: true;
|
22
|
-
convertLineBreaks: false;
|
23
|
-
topPadding: number;
|
24
|
-
theme: "light";
|
25
|
-
};
|
26
|
-
argTypes: {
|
27
|
-
inputData: {
|
28
|
-
control: {
|
29
|
-
type: "object";
|
30
|
-
};
|
31
|
-
description: string;
|
32
|
-
table: {
|
33
|
-
category: string;
|
34
|
-
type: {
|
35
|
-
summary: string;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
};
|
39
|
-
columnAlignments: {
|
40
|
-
control: {
|
41
|
-
type: "object";
|
42
|
-
};
|
43
|
-
description: string;
|
44
|
-
table: {
|
45
|
-
category: string;
|
46
|
-
type: {
|
47
|
-
summary: string;
|
48
|
-
detail: string;
|
49
|
-
};
|
50
|
-
};
|
51
|
-
};
|
52
|
-
isCompact: {
|
53
|
-
control: "boolean";
|
54
|
-
description: string;
|
55
|
-
table: {
|
56
|
-
category: string;
|
57
|
-
type: {
|
58
|
-
summary: string;
|
59
|
-
};
|
60
|
-
};
|
61
|
-
};
|
62
|
-
hasPadding: {
|
63
|
-
control: "boolean";
|
64
|
-
description: string;
|
65
|
-
table: {
|
66
|
-
category: string;
|
67
|
-
type: {
|
68
|
-
summary: string;
|
69
|
-
};
|
70
|
-
};
|
71
|
-
};
|
72
|
-
hasTabs: {
|
73
|
-
control: "boolean";
|
74
|
-
description: string;
|
75
|
-
table: {
|
76
|
-
category: string;
|
77
|
-
type: {
|
78
|
-
summary: string;
|
79
|
-
};
|
80
|
-
};
|
81
|
-
};
|
82
|
-
hasHeader: {
|
83
|
-
control: "boolean";
|
84
|
-
description: string;
|
85
|
-
table: {
|
86
|
-
category: string;
|
87
|
-
type: {
|
88
|
-
summary: string;
|
89
|
-
};
|
90
|
-
};
|
91
|
-
};
|
92
|
-
convertLineBreaks: {
|
93
|
-
control: "boolean";
|
94
|
-
description: string;
|
95
|
-
table: {
|
96
|
-
category: string;
|
97
|
-
type: {
|
98
|
-
summary: string;
|
99
|
-
};
|
100
|
-
};
|
101
|
-
};
|
102
|
-
topPadding: {
|
103
|
-
control: {
|
104
|
-
type: "number";
|
105
|
-
};
|
106
|
-
description: string;
|
107
|
-
table: {
|
108
|
-
category: string;
|
109
|
-
type: {
|
110
|
-
summary: string;
|
111
|
-
};
|
112
|
-
};
|
113
|
-
};
|
114
|
-
theme: {
|
115
|
-
options: string[];
|
116
|
-
control: {
|
117
|
-
type: "select";
|
118
|
-
};
|
119
|
-
description: string;
|
120
|
-
table: {
|
121
|
-
category: string;
|
122
|
-
type: {
|
123
|
-
summary: string;
|
124
|
-
};
|
125
|
-
defaultValue: {
|
126
|
-
summary: string;
|
127
|
-
};
|
128
|
-
};
|
129
|
-
};
|
130
|
-
className: {
|
131
|
-
control: "text";
|
132
|
-
description: string;
|
133
|
-
table: {
|
134
|
-
category: string;
|
135
|
-
type: {
|
136
|
-
summary: string;
|
137
|
-
};
|
138
|
-
};
|
139
|
-
};
|
140
|
-
preStyle: {
|
141
|
-
control: {
|
142
|
-
type: "object";
|
143
|
-
};
|
144
|
-
description: string;
|
145
|
-
table: {
|
146
|
-
category: string;
|
147
|
-
type: {
|
148
|
-
summary: string;
|
149
|
-
};
|
150
|
-
};
|
151
|
-
};
|
152
|
-
};
|
153
|
-
};
|
154
|
-
export default meta;
|
155
|
-
type Story = StoryObj<typeof MarkdownTable>;
|
156
|
-
export declare const Default: Story;
|
@@ -1,172 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileoverview Storybook stories for the MarkdownTable component, demonstrating
|
3
|
-
* various configurations and use cases for markdown table generation and display.
|
4
|
-
*/
|
5
|
-
import { MarkdownTable } from './index';
|
6
|
-
var meta = {
|
7
|
-
title: 'Components/MarkdownTable',
|
8
|
-
component: MarkdownTable,
|
9
|
-
parameters: {
|
10
|
-
layout: 'centered'
|
11
|
-
},
|
12
|
-
tags: ['autodocs'],
|
13
|
-
args: {
|
14
|
-
inputData: null,
|
15
|
-
columnAlignments: [],
|
16
|
-
isCompact: false,
|
17
|
-
hasPadding: true,
|
18
|
-
hasTabs: false,
|
19
|
-
hasHeader: true,
|
20
|
-
convertLineBreaks: false,
|
21
|
-
topPadding: 16,
|
22
|
-
theme: 'light'
|
23
|
-
},
|
24
|
-
argTypes: {
|
25
|
-
inputData: {
|
26
|
-
control: {
|
27
|
-
type: 'object'
|
28
|
-
},
|
29
|
-
description: 'The outer array represents rows. The inner array represent cells within each row.',
|
30
|
-
table: {
|
31
|
-
category: 'Core Data Props',
|
32
|
-
type: {
|
33
|
-
summary: 'string[][] | null'
|
34
|
-
}
|
35
|
-
}
|
36
|
-
},
|
37
|
-
columnAlignments: {
|
38
|
-
control: {
|
39
|
-
type: 'object'
|
40
|
-
},
|
41
|
-
description: 'An array specifying the alignment for each column.',
|
42
|
-
table: {
|
43
|
-
category: 'Core Data Props',
|
44
|
-
type: {
|
45
|
-
summary: 'readonly Alignment[]',
|
46
|
-
detail: 'export type Alignment = "left" | "right" | "center" | "none";'
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
isCompact: {
|
51
|
-
control: 'boolean',
|
52
|
-
description: 'Disables column width alignment to provide a more compact markdown table string.',
|
53
|
-
table: {
|
54
|
-
category: 'Configuration Props',
|
55
|
-
type: {
|
56
|
-
summary: 'boolean'
|
57
|
-
}
|
58
|
-
}
|
59
|
-
},
|
60
|
-
hasPadding: {
|
61
|
-
control: 'boolean',
|
62
|
-
description: 'Optional flag to add a single space around cell content in the markdown table.',
|
63
|
-
table: {
|
64
|
-
category: 'Configuration Props',
|
65
|
-
type: {
|
66
|
-
summary: 'boolean'
|
67
|
-
}
|
68
|
-
}
|
69
|
-
},
|
70
|
-
hasTabs: {
|
71
|
-
control: 'boolean',
|
72
|
-
description: 'Optional flag to add tabs as additional padding between column pipes.',
|
73
|
-
table: {
|
74
|
-
category: 'Configuration Props',
|
75
|
-
type: {
|
76
|
-
summary: 'boolean'
|
77
|
-
}
|
78
|
-
}
|
79
|
-
},
|
80
|
-
hasHeader: {
|
81
|
-
control: 'boolean',
|
82
|
-
description: 'Indicates whether the first row of `data` is a header.',
|
83
|
-
table: {
|
84
|
-
category: 'Configuration Props',
|
85
|
-
type: {
|
86
|
-
summary: 'boolean'
|
87
|
-
}
|
88
|
-
}
|
89
|
-
},
|
90
|
-
convertLineBreaks: {
|
91
|
-
control: 'boolean',
|
92
|
-
description: 'Optional flag to replace newlines with `<br>` tags in table cells.',
|
93
|
-
table: {
|
94
|
-
category: 'Configuration Props',
|
95
|
-
type: {
|
96
|
-
summary: 'boolean'
|
97
|
-
}
|
98
|
-
}
|
99
|
-
},
|
100
|
-
topPadding: {
|
101
|
-
control: {
|
102
|
-
type: 'number'
|
103
|
-
},
|
104
|
-
description: 'Controls the padding-top (in pixels) of the pre element display.',
|
105
|
-
table: {
|
106
|
-
category: 'Visual/UI Props',
|
107
|
-
type: {
|
108
|
-
summary: 'number'
|
109
|
-
}
|
110
|
-
}
|
111
|
-
},
|
112
|
-
theme: {
|
113
|
-
options: ['light', 'dark'],
|
114
|
-
control: { type: 'select' },
|
115
|
-
description: 'Switch between light and dark mode.',
|
116
|
-
table: {
|
117
|
-
category: 'Visual/UI Props',
|
118
|
-
type: {
|
119
|
-
summary: "'light' | 'dark'"
|
120
|
-
},
|
121
|
-
defaultValue: { summary: 'light' }
|
122
|
-
}
|
123
|
-
},
|
124
|
-
className: {
|
125
|
-
control: 'text',
|
126
|
-
description: 'Optional CSS class for styling the rendered Markdown table.',
|
127
|
-
table: {
|
128
|
-
category: 'Visual/UI Props',
|
129
|
-
type: {
|
130
|
-
summary: 'string'
|
131
|
-
}
|
132
|
-
}
|
133
|
-
},
|
134
|
-
preStyle: {
|
135
|
-
control: {
|
136
|
-
type: 'object'
|
137
|
-
},
|
138
|
-
description: 'Optional inline styles for the pre element.',
|
139
|
-
table: {
|
140
|
-
category: 'Visual/UI Props',
|
141
|
-
type: {
|
142
|
-
summary: 'React.CSSProperties'
|
143
|
-
}
|
144
|
-
}
|
145
|
-
}
|
146
|
-
}
|
147
|
-
};
|
148
|
-
export default meta;
|
149
|
-
// Move sample data before its usage
|
150
|
-
var sampleData = [
|
151
|
-
['Package ID', 'Weight (kg)', 'Status', 'Destination'],
|
152
|
-
['PKG-2024-001', '12.50', 'In Transit', 'Dublin, IE'],
|
153
|
-
['PKG-2024-002', '3.75', 'Delivered', 'New York, US'],
|
154
|
-
['PKG-2024-003', '8.20', 'Processing', 'Frankfurt, DE'],
|
155
|
-
['PKG-2024-004', '5.60', 'In Transit', 'London, GB']
|
156
|
-
];
|
157
|
-
export var Default = {
|
158
|
-
args: {
|
159
|
-
inputData: sampleData,
|
160
|
-
columnAlignments: ['left', 'right', 'center', 'none'],
|
161
|
-
isCompact: false,
|
162
|
-
hasPadding: true,
|
163
|
-
hasTabs: false,
|
164
|
-
hasHeader: true,
|
165
|
-
convertLineBreaks: false,
|
166
|
-
topPadding: 16,
|
167
|
-
theme: 'light',
|
168
|
-
className: undefined,
|
169
|
-
preStyle: undefined
|
170
|
-
}
|
171
|
-
};
|
172
|
-
//# sourceMappingURL=MarkdownTable.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MarkdownTable.stories.js","sourceRoot":"","sources":["../../src/MarkdownTable.stories.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,IAAM,IAAI,GAAG;IACX,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACJ,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,EAAE;QACpB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,IAAI;QACf,iBAAiB,EAAE,KAAK;QACxB,UAAU,EAAE,EAAE;QACd,KAAK,EAAE,OAAgB;KACxB;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE,mFAAmF;YAChG,KAAK,EAAE;gBACL,QAAQ,EAAE,iBAAiB;gBAC3B,IAAI,EAAE;oBACJ,OAAO,EAAE,mBAAmB;iBAC7B;aACF;SACF;QACD,gBAAgB,EAAE;YAChB,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACL,QAAQ,EAAE,iBAAiB;gBAC3B,IAAI,EAAE;oBACJ,OAAO,EAAE,sBAAsB;oBAC/B,MAAM,EAAE,+DAA+D;iBACxE;aACF;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,kFAAk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