-
Notifications
You must be signed in to change notification settings - Fork 4
/
styleguide.config.js
103 lines (102 loc) · 3.3 KB
/
styleguide.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
const path = require("path");
const fs = require("fs");
// eslint-disable-next-line import/no-extraneous-dependencies
const tsdocgen = require("react-docgen-typescript");
module.exports = {
components: "src/**/*.tsx",
pagePerSection: true,
sections: [
{
name: "Getting Started on Components",
content: "README.md",
},
{
name: "Changelog for Components",
content: "CHANGELOG.md",
},
{
name: "Wrappers",
components: () => [
"./src/style-wrapper/style-wrapper.tsx",
"./src/date-input/picker-util-provider-hoc.tsx",
],
},
{
name: "Text & Inputs",
components: () => [
"./src/date/date-input.tsx",
"./src/date/date-time-input.tsx",
"./src/date/date-value.tsx",
"./src/date/date-time-value.tsx",
"./src/date/humanized-date-time.tsx",
"./src/date/time-input.tsx",
"./src/readonly-text-field/readonly-text-field.tsx",
"./src/readonly-text-field/validated-readonly-text-field.tsx",
"./src/text-input/text-input.tsx",
"./src/filled-text-input/filled-text-input.tsx",
"./src/two-column-grid/two-column-grid.tsx",
"./src/upload-button/upload-button.tsx",
],
},
{
name: "Switches, Buttons & Links",
components: () => [
"./src/common-switch/common-switch.tsx",
"./src/link/external-link.tsx",
"./src/link/external-link-button.tsx",
"./src/link/link-button.tsx",
],
},
{
name: "Simple Components",
components: () => [
"./src/alert/alert.tsx",
"./src/common-card/card.tsx",
"./src/common-panel/panel.tsx",
"./src/sign-in-page/sign-in-page.tsx",
"./src/spinner-overlay/spinner-overlay.tsx",
"./src/page/slim-page/slim-page.tsx",
],
},
{
name: "Interactive Components",
components: () => [
"./src/common-dialog/dialog.tsx",
"./src/common-dialog/multi-page-dialog.tsx",
"./src/page/slim-page/slim-tabbed-page.tsx",
"./src/avatar-icon/avatar-icon.tsx",
"./src/common-select/common-select.tsx",
"./src/common-select/common-multi-select.tsx",
"./src/common-suggest/common-suggest.tsx",
"./src/common-dropdown/dropdown-menu.tsx",
"./src/export-button/export-button.tsx",
"./src/notification-center/notification-center.tsx",
"./src/navbar/navbar.tsx",
"./src/omni-search-bar/omni-chips.tsx",
"./src/omni-search-bar/omni-search-bar.tsx",
"./src/table/paged-table.tsx",
"./src/selection-grid/selection-grid.tsx",
"./src/table/simple-table.tsx",
"./src/table/large-simple-table.tsx",
"./src/timeline-graph/timeline-graph.tsx",
"./src/timeline-graph/timeline-card.tsx",
"./src/timeline-graph/tabbed-timeline-card.tsx",
"./src/pdf-viewer/pdf-viewer.tsx",
],
},
],
propsParser: tsdocgen.withCustomConfig("./tsconfig.json", {
propFilter: prop =>
prop.parent ? !prop.parent.fileName.includes("node_modules") : true,
}).parse,
usageMode: "expand",
exampleMode: "expand",
skipComponentsWithoutExample: true,
ignore: [
"components/utils",
"**/__tests__/**",
"**/*.test.{js,jsx,ts,tsx}",
"**/*.spec.{js,jsx,ts,tsx}",
"**/*.d.ts",
],
};