@mintlify/components 0.3.2 → 0.3.4
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 +55 -15
- package/build-storybook.log +368 -0
- package/dist/Button.d.ts +38 -6
- package/dist/Card.d.ts +26 -11
- package/dist/Code/CodeBlock.d.ts +11 -3
- package/dist/Code/CodeGroup.d.ts +11 -3
- package/dist/Code/CopyToClipboardButton.d.ts +2 -1
- package/dist/CodeBlock/CodeBlock.d.ts +9 -0
- package/dist/CodeBlock/CodeGroup.d.ts +11 -0
- package/dist/CodeBlock/CodeTabBar.d.ts +6 -0
- package/dist/CodeBlock/CopyToClipboard.d.ts +2 -0
- package/dist/CodeBlock/CopyToClipboardButton.d.ts +5 -0
- package/dist/CodeBlock/index.d.ts +3 -0
- package/dist/CodeGroup.d.ts +12 -0
- package/dist/LightDarkToggle.d.ts +14 -0
- package/dist/UserDefinedIcon.d.ts +7 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Mintlify
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://mintlify.com">
|
|
3
|
+
<img
|
|
4
|
+
src="https://res.cloudinary.com/mintlify/image/upload/v1665385627/logo-rounded_zuk7q1.svg"
|
|
5
|
+
alt="Mintlify Logo"
|
|
6
|
+
height="64"
|
|
7
|
+
/>
|
|
8
|
+
</a>
|
|
9
|
+
<br />
|
|
10
|
+
<p>
|
|
11
|
+
<h3>
|
|
12
|
+
<b>
|
|
13
|
+
Mintlify Components
|
|
14
|
+
</b>
|
|
15
|
+
</h3>
|
|
16
|
+
</p>
|
|
17
|
+
<p>
|
|
18
|
+
<b>
|
|
19
|
+
Open-source library of UI components made with React and TailwindCSS.
|
|
20
|
+
</b>
|
|
21
|
+
</p>
|
|
22
|
+
<p>
|
|
23
|
+
|
|
24
|
+
[](/) [](https://mintlify.com)
|
|
25
|
+
|
|
26
|
+
</p>
|
|
27
|
+
<p>
|
|
28
|
+
<sub>
|
|
29
|
+
Built with 💚 by
|
|
30
|
+
<a href="https://mintlify.com">
|
|
31
|
+
Mintlify
|
|
32
|
+
</a>
|
|
33
|
+
</sub>
|
|
34
|
+
</p>
|
|
35
|
+
<br />
|
|
36
|
+
<p>
|
|
37
|
+
<a href="https://mintlify.com" target="_blank">
|
|
38
|
+
<img
|
|
39
|
+
src="https://mintlify-assets.b-cdn.net/website/mintlify-preview.png"
|
|
40
|
+
alt="Mintlify"
|
|
41
|
+
width="100%"
|
|
42
|
+
/>
|
|
43
|
+
</a>
|
|
44
|
+
</p>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
This repo contains the components Mintlify uses in our open-source documentation framework: [mint](https://github.com/mintlify/mint). Checkout [mintlify.com/docs](https://mintlify.com/docs) to see the components in action. Feel free to use the components on your own websites!
|
|
10
48
|
|
|
11
49
|
## Installation
|
|
12
50
|
|
|
@@ -22,17 +60,21 @@ Import components like so:
|
|
|
22
60
|
|
|
23
61
|
`import { Accordion, Card } from "@mintlify/components"`
|
|
24
62
|
|
|
63
|
+
## Designed for Next.js
|
|
64
|
+
|
|
65
|
+
The project is designed for use with static side rendering where we don't have access to `document` or `window`. Thus, our webpack config has to use `mini-css-extract-plugin` instead of `style-loader`.
|
|
66
|
+
|
|
25
67
|
# Documentation
|
|
26
68
|
|
|
27
|
-
[
|
|
69
|
+
The [repo wiki](https://github.com/mintlify/components/wiki) explains how to contribute to the repo.
|
|
28
70
|
|
|
29
|
-
|
|
71
|
+
[Storybook](https://main--63134bd5ae01f2a7717a0e47.chromatic.com/) has interactive demos.
|
|
30
72
|
|
|
31
|
-
Go to [
|
|
73
|
+
Go to [mintlify.com/docs/components](https://mintlify.com/docs/components) for how to use the components in Mintlify's documentation platform.
|
|
32
74
|
|
|
33
75
|
# Long Term Vision
|
|
34
76
|
|
|
35
|
-
The first version of this library only
|
|
77
|
+
The first version of this library only includes documentation components. In the long run, Mintlify will include layout components you could use to build an entire site.
|
|
36
78
|
|
|
37
79
|
## Community
|
|
38
80
|
|
|
@@ -43,5 +85,3 @@ Join our Discord community if you have questions or just want to chat:
|
|
|
43
85
|
# License
|
|
44
86
|
|
|
45
87
|
[MIT](https://tldrlegal.com/license/mit-license)
|
|
46
|
-
|
|
47
|
-
_Built with 💚 by the Mintlify team._
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
info @storybook/react v6.5.13
|
|
2
|
+
info
|
|
3
|
+
info => Cleaning outputDir: /var/folders/xs/h01kpl5x3xzdn3gr17jjwp2w0000gn/T/chromatic--4974-RM14HT9wgVSB
|
|
4
|
+
info => Loading presets
|
|
5
|
+
info => Compiling manager..
|
|
6
|
+
info => Compiling preview..
|
|
7
|
+
WARN Expected '@storybook/addon-actions' (or '@storybook/addon-essentials') to be listed before '@storybook/addon-interactions' in main Storybook config.
|
|
8
|
+
info Addon-docs: using MDX1
|
|
9
|
+
info => Using PostCSS preset with postcss@8.4.16
|
|
10
|
+
info => Using default Webpack5 setup
|
|
11
|
+
<s> [webpack.Progress] 0%
|
|
12
|
+
|
|
13
|
+
<s> [webpack.Progress] 1% setup before run
|
|
14
|
+
<s> [webpack.Progress] 1% setup before run NodeEnvironmentPlugin
|
|
15
|
+
<s> [webpack.Progress] 1% setup before run
|
|
16
|
+
<s> [webpack.Progress] 2% setup run
|
|
17
|
+
<s> [webpack.Progress] 2% setup run
|
|
18
|
+
<s> [webpack.Progress] 4% setup normal module factory
|
|
19
|
+
<s> [webpack.Progress] 4% setup normal module factory CaseSensitivePathsPlugin
|
|
20
|
+
<s> [webpack.Progress] 4% setup normal module factory
|
|
21
|
+
<s> [webpack.Progress] 5% setup context module factory
|
|
22
|
+
<s> [webpack.Progress] 5% setup context module factory
|
|
23
|
+
<s> [webpack.Progress] 6% setup before compile
|
|
24
|
+
<s> [webpack.Progress] 6% setup before compile ProgressPlugin
|
|
25
|
+
<s> [webpack.Progress] 6% setup before compile
|
|
26
|
+
<s> [webpack.Progress] 7% setup compile
|
|
27
|
+
<s> [webpack.Progress] 7% setup compile ExternalsPlugin
|
|
28
|
+
<s> [webpack.Progress] 7% setup compile
|
|
29
|
+
<s> [webpack.Progress] 8% setup compilation
|
|
30
|
+
<s> [webpack.Progress] 8% setup compilation ArrayPushCallbackChunkFormatPlugin
|
|
31
|
+
<s> [webpack.Progress] 8% setup compilation JsonpChunkLoadingPlugin
|
|
32
|
+
<s> [webpack.Progress] 8% setup compilation StartupChunkDependenciesPlugin
|
|
33
|
+
<s> [webpack.Progress] 8% setup compilation ImportScriptsChunkLoadingPlugin
|
|
34
|
+
<s> [webpack.Progress] 8% setup compilation FetchCompileWasmPlugin
|
|
35
|
+
<s> [webpack.Progress] 8% setup compilation FetchCompileAsyncWasmPlugin
|
|
36
|
+
<s> [webpack.Progress] 8% setup compilation WorkerPlugin
|
|
37
|
+
<s> [webpack.Progress] 8% setup compilation SplitChunksPlugin
|
|
38
|
+
<s> [webpack.Progress] 8% setup compilation RuntimeChunkPlugin
|
|
39
|
+
<s> [webpack.Progress] 8% setup compilation ResolverCachePlugin
|
|
40
|
+
<s> [webpack.Progress] 8% setup compilation HtmlWebpackPlugin
|
|
41
|
+
<s> [webpack.Progress] 8% setup compilation
|
|
42
|
+
<s> [webpack.Progress] 9% setup compilation
|
|
43
|
+
<s> [webpack.Progress] 9% setup compilation DefinePlugin
|
|
44
|
+
<s> [webpack.Progress] 9% setup compilation ProvidePlugin
|
|
45
|
+
<s> [webpack.Progress] 9% setup compilation ProgressPlugin
|
|
46
|
+
<s> [webpack.Progress] 9% setup compilation DocGenPlugin
|
|
47
|
+
<s> [webpack.Progress] 9% setup compilation ChunkPrefetchPreloadPlugin
|
|
48
|
+
<s> [webpack.Progress] 9% setup compilation SourceMapDevToolPlugin
|
|
49
|
+
<s> [webpack.Progress] 9% setup compilation JavascriptModulesPlugin
|
|
50
|
+
<s> [webpack.Progress] 9% setup compilation JsonModulesPlugin
|
|
51
|
+
<s> [webpack.Progress] 9% setup compilation AssetModulesPlugin
|
|
52
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
53
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
54
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
55
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
56
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
57
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
58
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
59
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
60
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
61
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
62
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
63
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
64
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
65
|
+
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
66
|
+
<s> [webpack.Progress] 9% setup compilation RuntimePlugin
|
|
67
|
+
<s> [webpack.Progress] 9% setup compilation InferAsyncModulesPlugin
|
|
68
|
+
<s> [webpack.Progress] 9% setup compilation DataUriPlugin
|
|
69
|
+
<s> [webpack.Progress] 9% setup compilation FileUriPlugin
|
|
70
|
+
<s> [webpack.Progress] 9% setup compilation CompatibilityPlugin
|
|
71
|
+
<s> [webpack.Progress] 9% setup compilation HarmonyModulesPlugin
|
|
72
|
+
<s> [webpack.Progress] 9% setup compilation AMDPlugin
|
|
73
|
+
<s> [webpack.Progress] 9% setup compilation RequireJsStuffPlugin
|
|
74
|
+
<s> [webpack.Progress] 9% setup compilation CommonJsPlugin
|
|
75
|
+
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
|
|
76
|
+
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
|
|
77
|
+
<s> [webpack.Progress] 9% setup compilation NodeStuffPlugin
|
|
78
|
+
<s> [webpack.Progress] 9% setup compilation APIPlugin
|
|
79
|
+
<s> [webpack.Progress] 9% setup compilation ExportsInfoApiPlugin
|
|
80
|
+
<s> [webpack.Progress] 9% setup compilation WebpackIsIncludedPlugin
|
|
81
|
+
<s> [webpack.Progress] 9% setup compilation ConstPlugin
|
|
82
|
+
<s> [webpack.Progress] 9% setup compilation UseStrictPlugin
|
|
83
|
+
<s> [webpack.Progress] 9% setup compilation RequireIncludePlugin
|
|
84
|
+
<s> [webpack.Progress] 9% setup compilation RequireEnsurePlugin
|
|
85
|
+
<s> [webpack.Progress] 9% setup compilation RequireContextPlugin
|
|
86
|
+
<s> [webpack.Progress] 9% setup compilation ImportPlugin
|
|
87
|
+
<s> [webpack.Progress] 9% setup compilation RequireContextPlugin
|
|
88
|
+
<s> [webpack.Progress] 9% setup compilation SystemPlugin
|
|
89
|
+
<s> [webpack.Progress] 9% setup compilation ImportMetaPlugin
|
|
90
|
+
<s> [webpack.Progress] 9% setup compilation URLPlugin
|
|
91
|
+
<s> [webpack.Progress] 9% setup compilation DefaultStatsFactoryPlugin
|
|
92
|
+
<s> [webpack.Progress] 9% setup compilation DefaultStatsPresetPlugin
|
|
93
|
+
<s> [webpack.Progress] 9% setup compilation DefaultStatsPrinterPlugin
|
|
94
|
+
<s> [webpack.Progress] 9% setup compilation JavascriptMetaInfoPlugin
|
|
95
|
+
<s> [webpack.Progress] 9% setup compilation EnsureChunkConditionsPlugin
|
|
96
|
+
<s> [webpack.Progress] 9% setup compilation RemoveEmptyChunksPlugin
|
|
97
|
+
<s> [webpack.Progress] 9% setup compilation MergeDuplicateChunksPlugin
|
|
98
|
+
<s> [webpack.Progress] 9% setup compilation FlagIncludedChunksPlugin
|
|
99
|
+
<s> [webpack.Progress] 9% setup compilation SideEffectsFlagPlugin
|
|
100
|
+
<s> [webpack.Progress] 9% setup compilation FlagDependencyExportsPlugin
|
|
101
|
+
<s> [webpack.Progress] 9% setup compilation FlagDependencyUsagePlugin
|
|
102
|
+
<s> [webpack.Progress] 9% setup compilation InnerGraphPlugin
|
|
103
|
+
<s> [webpack.Progress] 9% setup compilation MangleExportsPlugin
|
|
104
|
+
<s> [webpack.Progress] 9% setup compilation ModuleConcatenationPlugin
|
|
105
|
+
<s> [webpack.Progress] 9% setup compilation NoEmitOnErrorsPlugin
|
|
106
|
+
<s> [webpack.Progress] 9% setup compilation RealContentHashPlugin
|
|
107
|
+
<s> [webpack.Progress] 9% setup compilation WasmFinalizeExportsPlugin
|
|
108
|
+
<s> [webpack.Progress] 9% setup compilation NamedModuleIdsPlugin
|
|
109
|
+
<s> [webpack.Progress] 9% setup compilation DeterministicChunkIdsPlugin
|
|
110
|
+
<s> [webpack.Progress] 9% setup compilation DefinePlugin
|
|
111
|
+
<s> [webpack.Progress] 9% setup compilation TerserPlugin
|
|
112
|
+
<s> [webpack.Progress] 9% setup compilation TemplatedPathPlugin
|
|
113
|
+
<s> [webpack.Progress] 9% setup compilation RecordIdsPlugin
|
|
114
|
+
<s> [webpack.Progress] 9% setup compilation WarnCaseSensitiveModulesPlugin
|
|
115
|
+
<s> [webpack.Progress] 9% setup compilation IgnoreWarningsPlugin
|
|
116
|
+
<s> [webpack.Progress] 9% setup compilation
|
|
117
|
+
<s> [webpack.Progress] 10% building
|
|
118
|
+
<s> [webpack.Progress] 10% building 0/1 entries 0/0 dependencies 0/0 modules
|
|
119
|
+
(node:4991) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
|
|
120
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
121
|
+
<s> [webpack.Progress] 10% building import loader ./node_modules/babel-loader/lib/index.js
|
|
122
|
+
<s> [webpack.Progress] 10% building 0/14 entries 13/18 dependencies 0/12 modules
|
|
123
|
+
<s> [webpack.Progress] 13% building 1/14 entries 21/74 dependencies 2/18 modules
|
|
124
|
+
<s> [webpack.Progress] 13% building import loader ./node_modules/@storybook/source-loader/dist/cjs/index.js
|
|
125
|
+
<s> [webpack.Progress] 13% building 1/14 entries 46/75 dependencies 2/43 modules
|
|
126
|
+
<s> [webpack.Progress] 17% building 2/14 entries 191/354 dependencies 9/114 modules
|
|
127
|
+
<s> [webpack.Progress] 17% building 2/14 entries 987/1092 dependencies 40/349 modules
|
|
128
|
+
<s> [webpack.Progress] 17% building import loader ./node_modules/@storybook/addon-postcss/node_modules/style-loader/dist/cjs.js
|
|
129
|
+
<s> [webpack.Progress] 17% building import loader ./node_modules/@storybook/addon-postcss/node_modules/css-loader/dist/cjs.js
|
|
130
|
+
<s> [webpack.Progress] 17% building import loader ./node_modules/@storybook/addon-postcss/node_modules/postcss-loader/dist/cjs.js
|
|
131
|
+
<s> [webpack.Progress] 17% building 2/14 entries 1066/1117 dependencies 52/359 modules
|
|
132
|
+
<s> [webpack.Progress] 17% building 2/14 entries 1880/2000 dependencies 162/452 modules
|
|
133
|
+
<s> [webpack.Progress] 17% building 2/14 entries 3048/3100 dependencies 374/634 modules
|
|
134
|
+
<s> [webpack.Progress] 17% building 2/14 entries 3073/3200 dependencies 381/653 modules
|
|
135
|
+
<s> [webpack.Progress] 17% building 2/14 entries 4200/4349 dependencies 579/854 modules
|
|
136
|
+
<s> [webpack.Progress] 21% building 3/14 entries 5347/5372 dependencies 1020/1120 modules
|
|
137
|
+
<s> [webpack.Progress] 25% building 4/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
138
|
+
<s> [webpack.Progress] 29% building 5/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
139
|
+
<s> [webpack.Progress] 33% building 6/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
140
|
+
<s> [webpack.Progress] 37% building 7/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
141
|
+
<s> [webpack.Progress] 41% building 8/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
142
|
+
<s> [webpack.Progress] 45% building 9/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
143
|
+
<s> [webpack.Progress] 49% building 10/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
144
|
+
<s> [webpack.Progress] 53% building 11/14 entries 5347/5372 dependencies 1021/1120 modules
|
|
145
|
+
<s> [webpack.Progress] 57% building 12/14 entries 5509/5518 dependencies 1125/1154 modules
|
|
146
|
+
<s> [webpack.Progress] 61% building 13/14 entries 5523/5523 dependencies 1147/1162 modules
|
|
147
|
+
<s> [webpack.Progress] 65% building 14/14 entries 5523/5523 dependencies 1162/1162 modules
|
|
148
|
+
<s> [webpack.Progress] 65% building
|
|
149
|
+
<s> [webpack.Progress] 69% building finish
|
|
150
|
+
<s> [webpack.Progress] 69% building finish
|
|
151
|
+
<s> [webpack.Progress] 70% sealing finish module graph
|
|
152
|
+
<s> [webpack.Progress] 70% sealing finish module graph ResolverCachePlugin
|
|
153
|
+
<s> [webpack.Progress] 70% sealing finish module graph InferAsyncModulesPlugin
|
|
154
|
+
<s> [webpack.Progress] 70% sealing finish module graph FlagDependencyExportsPlugin
|
|
155
|
+
<s> [webpack.Progress] 70% sealing finish module graph InnerGraphPlugin
|
|
156
|
+
<s> [webpack.Progress] 70% sealing finish module graph WasmFinalizeExportsPlugin
|
|
157
|
+
<s> [webpack.Progress] 70% sealing finish module graph
|
|
158
|
+
<s> [webpack.Progress] 70% sealing plugins
|
|
159
|
+
<s> [webpack.Progress] 70% sealing plugins DocGenPlugin
|
|
160
|
+
DeprecationWarning: 'createIdentifier' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
161
|
+
DeprecationWarning: '' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
162
|
+
DeprecationWarning: 'createLiteral' has been deprecated since v4.0.0. Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead.
|
|
163
|
+
DeprecationWarning: 'createBinaryExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
164
|
+
DeprecationWarning: 'createExpressionStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
165
|
+
DeprecationWarning: 'createPropertyAssignment' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
166
|
+
DeprecationWarning: 'createNull' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
167
|
+
DeprecationWarning: 'createTrue' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
168
|
+
DeprecationWarning: 'createObjectLiteralExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
169
|
+
DeprecationWarning: 'createFalse' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
170
|
+
DeprecationWarning: 'createExpressionStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
171
|
+
DeprecationWarning: 'createTypeOfExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
172
|
+
DeprecationWarning: 'createElementAccessExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
173
|
+
DeprecationWarning: 'createIfStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
174
|
+
DeprecationWarning: 'createBlock' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
175
|
+
DeprecationWarning: 'createVariableDeclaration' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
176
|
+
DeprecationWarning: 'createCatchClause' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
177
|
+
DeprecationWarning: 'createTryStatement' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
178
|
+
DeprecationWarning: 'createArrayLiteralExpression' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
|
|
179
|
+
<s> [webpack.Progress] 70% sealing plugins WarnCaseSensitiveModulesPlugin
|
|
180
|
+
<s> [webpack.Progress] 70% sealing plugins
|
|
181
|
+
<s> [webpack.Progress] 71% sealing dependencies optimization
|
|
182
|
+
<s> [webpack.Progress] 71% sealing dependencies optimization SideEffectsFlagPlugin
|
|
183
|
+
<s> [webpack.Progress] 71% sealing dependencies optimization FlagDependencyUsagePlugin
|
|
184
|
+
<s> [webpack.Progress] 71% sealing dependencies optimization
|
|
185
|
+
<s> [webpack.Progress] 71% sealing after dependencies optimization
|
|
186
|
+
<s> [webpack.Progress] 71% sealing after dependencies optimization
|
|
187
|
+
<s> [webpack.Progress] 72% sealing chunk graph
|
|
188
|
+
<s> [webpack.Progress] 72% sealing chunk graph
|
|
189
|
+
<s> [webpack.Progress] 73% sealing after chunk graph
|
|
190
|
+
<s> [webpack.Progress] 73% sealing after chunk graph
|
|
191
|
+
<s> [webpack.Progress] 73% sealing optimizing
|
|
192
|
+
<s> [webpack.Progress] 73% sealing optimizing
|
|
193
|
+
<s> [webpack.Progress] 74% sealing module optimization
|
|
194
|
+
<s> [webpack.Progress] 74% sealing module optimization
|
|
195
|
+
<s> [webpack.Progress] 75% sealing after module optimization
|
|
196
|
+
<s> [webpack.Progress] 75% sealing after module optimization
|
|
197
|
+
<s> [webpack.Progress] 75% sealing chunk optimization
|
|
198
|
+
<s> [webpack.Progress] 75% sealing chunk optimization EnsureChunkConditionsPlugin
|
|
199
|
+
<s> [webpack.Progress] 75% sealing chunk optimization RemoveEmptyChunksPlugin
|
|
200
|
+
<s> [webpack.Progress] 75% sealing chunk optimization MergeDuplicateChunksPlugin
|
|
201
|
+
<s> [webpack.Progress] 75% sealing chunk optimization SplitChunksPlugin
|
|
202
|
+
<s> [webpack.Progress] 75% sealing chunk optimization RemoveEmptyChunksPlugin
|
|
203
|
+
<s> [webpack.Progress] 75% sealing chunk optimization
|
|
204
|
+
<s> [webpack.Progress] 76% sealing after chunk optimization
|
|
205
|
+
<s> [webpack.Progress] 76% sealing after chunk optimization
|
|
206
|
+
<s> [webpack.Progress] 77% sealing module and chunk tree optimization
|
|
207
|
+
<s> [webpack.Progress] 77% sealing module and chunk tree optimization PersistentChildCompilerSingletonPlugin
|
|
208
|
+
<s> [webpack.Progress] 77% sealing module and chunk tree optimization
|
|
209
|
+
<s> [webpack.Progress] 77% sealing after module and chunk tree optimization
|
|
210
|
+
<s> [webpack.Progress] 77% sealing after module and chunk tree optimization
|
|
211
|
+
<s> [webpack.Progress] 78% sealing chunk modules optimization
|
|
212
|
+
<s> [webpack.Progress] 78% sealing chunk modules optimization ModuleConcatenationPlugin
|
|
213
|
+
<s> [webpack.Progress] 78% sealing chunk modules optimization
|
|
214
|
+
<s> [webpack.Progress] 78% sealing after chunk modules optimization
|
|
215
|
+
<s> [webpack.Progress] 78% sealing after chunk modules optimization
|
|
216
|
+
<s> [webpack.Progress] 79% sealing module reviving
|
|
217
|
+
<s> [webpack.Progress] 79% sealing module reviving RecordIdsPlugin
|
|
218
|
+
<s> [webpack.Progress] 79% sealing module reviving
|
|
219
|
+
<s> [webpack.Progress] 80% sealing before module ids
|
|
220
|
+
<s> [webpack.Progress] 80% sealing before module ids
|
|
221
|
+
<s> [webpack.Progress] 80% sealing module ids
|
|
222
|
+
<s> [webpack.Progress] 80% sealing module ids NamedModuleIdsPlugin
|
|
223
|
+
<s> [webpack.Progress] 80% sealing module ids
|
|
224
|
+
<s> [webpack.Progress] 81% sealing module id optimization
|
|
225
|
+
<s> [webpack.Progress] 81% sealing module id optimization
|
|
226
|
+
<s> [webpack.Progress] 82% sealing module id optimization
|
|
227
|
+
<s> [webpack.Progress] 82% sealing module id optimization
|
|
228
|
+
<s> [webpack.Progress] 82% sealing chunk reviving
|
|
229
|
+
<s> [webpack.Progress] 82% sealing chunk reviving RecordIdsPlugin
|
|
230
|
+
<s> [webpack.Progress] 82% sealing chunk reviving
|
|
231
|
+
<s> [webpack.Progress] 83% sealing before chunk ids
|
|
232
|
+
<s> [webpack.Progress] 83% sealing before chunk ids
|
|
233
|
+
<s> [webpack.Progress] 84% sealing chunk ids
|
|
234
|
+
<s> [webpack.Progress] 84% sealing chunk ids DeterministicChunkIdsPlugin
|
|
235
|
+
<s> [webpack.Progress] 84% sealing chunk ids
|
|
236
|
+
<s> [webpack.Progress] 84% sealing chunk id optimization
|
|
237
|
+
<s> [webpack.Progress] 84% sealing chunk id optimization FlagIncludedChunksPlugin
|
|
238
|
+
<s> [webpack.Progress] 84% sealing chunk id optimization
|
|
239
|
+
<s> [webpack.Progress] 85% sealing after chunk id optimization
|
|
240
|
+
<s> [webpack.Progress] 85% sealing after chunk id optimization
|
|
241
|
+
<s> [webpack.Progress] 86% sealing record modules
|
|
242
|
+
<s> [webpack.Progress] 86% sealing record modules RecordIdsPlugin
|
|
243
|
+
<s> [webpack.Progress] 86% sealing record modules
|
|
244
|
+
<s> [webpack.Progress] 86% sealing record chunks
|
|
245
|
+
<s> [webpack.Progress] 86% sealing record chunks RecordIdsPlugin
|
|
246
|
+
<s> [webpack.Progress] 86% sealing record chunks
|
|
247
|
+
<s> [webpack.Progress] 87% sealing module hashing
|
|
248
|
+
<s> [webpack.Progress] 87% sealing module hashing
|
|
249
|
+
<s> [webpack.Progress] 87% sealing code generation
|
|
250
|
+
<s> [webpack.Progress] 87% sealing code generation
|
|
251
|
+
<s> [webpack.Progress] 88% sealing runtime requirements
|
|
252
|
+
<s> [webpack.Progress] 88% sealing runtime requirements
|
|
253
|
+
<s> [webpack.Progress] 89% sealing hashing
|
|
254
|
+
<s> [webpack.Progress] 89% sealing hashing
|
|
255
|
+
<s> [webpack.Progress] 89% sealing after hashing
|
|
256
|
+
<s> [webpack.Progress] 89% sealing after hashing
|
|
257
|
+
<s> [webpack.Progress] 90% sealing record hash
|
|
258
|
+
<s> [webpack.Progress] 90% sealing record hash
|
|
259
|
+
<s> [webpack.Progress] 91% sealing module assets processing
|
|
260
|
+
<s> [webpack.Progress] 91% sealing module assets processing
|
|
261
|
+
<s> [webpack.Progress] 91% sealing chunk assets processing
|
|
262
|
+
<s> [webpack.Progress] 91% sealing chunk assets processing
|
|
263
|
+
<s> [webpack.Progress] 92% sealing asset processing
|
|
264
|
+
<s> [webpack.Progress] 92% sealing asset processing PersistentChildCompilerSingletonPlugin
|
|
265
|
+
<s> [webpack.Progress] 92% sealing asset processing TerserPlugin
|
|
266
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
267
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
268
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin main.6f70c138.iframe.bundle.js generate SourceMap
|
|
269
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin main.6f70c138.iframe.bundle.js generated SourceMap
|
|
270
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin runtime~main.0ce772d2.iframe.bundle.js generate SourceMap
|
|
271
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin runtime~main.0ce772d2.iframe.bundle.js generated SourceMap
|
|
272
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 701.543b61db.iframe.bundle.js generate SourceMap
|
|
273
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 701.543b61db.iframe.bundle.js generated SourceMap
|
|
274
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 745.3a9ffaff.iframe.bundle.js generate SourceMap
|
|
275
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 745.3a9ffaff.iframe.bundle.js generated SourceMap
|
|
276
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 273.1683659b.iframe.bundle.js generate SourceMap
|
|
277
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 273.1683659b.iframe.bundle.js generated SourceMap
|
|
278
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 51.7a6141b0.iframe.bundle.js generate SourceMap
|
|
279
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 51.7a6141b0.iframe.bundle.js generated SourceMap
|
|
280
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 807.08a18394.iframe.bundle.js generate SourceMap
|
|
281
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 807.08a18394.iframe.bundle.js generated SourceMap
|
|
282
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 551.ce59fca0.iframe.bundle.js generate SourceMap
|
|
283
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 551.ce59fca0.iframe.bundle.js generated SourceMap
|
|
284
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 897.997410c4.iframe.bundle.js generate SourceMap
|
|
285
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 897.997410c4.iframe.bundle.js generated SourceMap
|
|
286
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 229.503fe652.iframe.bundle.js generate SourceMap
|
|
287
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 229.503fe652.iframe.bundle.js generated SourceMap
|
|
288
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 935.c7e78174.iframe.bundle.js generate SourceMap
|
|
289
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 935.c7e78174.iframe.bundle.js generated SourceMap
|
|
290
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 90.56627f39.iframe.bundle.js generate SourceMap
|
|
291
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin 90.56627f39.iframe.bundle.js generated SourceMap
|
|
292
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin resolve sources
|
|
293
|
+
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
294
|
+
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
|
|
295
|
+
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
|
|
296
|
+
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin resolve sources
|
|
297
|
+
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
|
|
298
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
299
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
300
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin runtime~main.268a33e9.iframe.bundle.js generate SourceMap
|
|
301
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin runtime~main.268a33e9.iframe.bundle.js generated SourceMap
|
|
302
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 701.ec2943ad.iframe.bundle.js generate SourceMap
|
|
303
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 701.ec2943ad.iframe.bundle.js generated SourceMap
|
|
304
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 745.f1ddfa61.iframe.bundle.js generate SourceMap
|
|
305
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 745.f1ddfa61.iframe.bundle.js generated SourceMap
|
|
306
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 551.065ca94c.iframe.bundle.js generate SourceMap
|
|
307
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 551.065ca94c.iframe.bundle.js generated SourceMap
|
|
308
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 229.9a2a6b81.iframe.bundle.js generate SourceMap
|
|
309
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 229.9a2a6b81.iframe.bundle.js generated SourceMap
|
|
310
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 935.30d22a43.iframe.bundle.js generate SourceMap
|
|
311
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 935.30d22a43.iframe.bundle.js generated SourceMap
|
|
312
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin main.d0fa14a9.iframe.bundle.js generate SourceMap
|
|
313
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin main.d0fa14a9.iframe.bundle.js generated SourceMap
|
|
314
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 273.a4e52cb5.iframe.bundle.js generate SourceMap
|
|
315
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 273.a4e52cb5.iframe.bundle.js generated SourceMap
|
|
316
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 51.fa8a6e75.iframe.bundle.js generate SourceMap
|
|
317
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 51.fa8a6e75.iframe.bundle.js generated SourceMap
|
|
318
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 807.44fdcfe2.iframe.bundle.js generate SourceMap
|
|
319
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 807.44fdcfe2.iframe.bundle.js generated SourceMap
|
|
320
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 897.155874f0.iframe.bundle.js generate SourceMap
|
|
321
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 897.155874f0.iframe.bundle.js generated SourceMap
|
|
322
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 90.53702799.iframe.bundle.js generate SourceMap
|
|
323
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin 90.53702799.iframe.bundle.js generated SourceMap
|
|
324
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin resolve sources
|
|
325
|
+
<s> [webpack.Progress] 92% sealing asset processing RealContentHashPlugin
|
|
326
|
+
<s> [webpack.Progress] 92% sealing asset processing
|
|
327
|
+
<s> [webpack.Progress] 93% sealing after asset optimization
|
|
328
|
+
<s> [webpack.Progress] 93% sealing after asset optimization
|
|
329
|
+
<s> [webpack.Progress] 93% sealing recording
|
|
330
|
+
<s> [webpack.Progress] 93% sealing recording
|
|
331
|
+
<s> [webpack.Progress] 94% sealing after seal
|
|
332
|
+
<s> [webpack.Progress] 94% sealing after seal
|
|
333
|
+
<s> [webpack.Progress] 95% emitting emit
|
|
334
|
+
<s> [webpack.Progress] 95% emitting emit
|
|
335
|
+
info => Manager built (12 s)
|
|
336
|
+
<s> [webpack.Progress] 98% emitting after emit
|
|
337
|
+
<s> [webpack.Progress] 98% emitting after emit SizeLimitsPlugin
|
|
338
|
+
<s> [webpack.Progress] 98% emitting after emit
|
|
339
|
+
<s> [webpack.Progress] 99% done plugins
|
|
340
|
+
<s> [webpack.Progress] 99% done plugins CaseSensitivePathsPlugin
|
|
341
|
+
<s> [webpack.Progress] 99% done plugins
|
|
342
|
+
<s> [webpack.Progress] 99%
|
|
343
|
+
|
|
344
|
+
<s> [webpack.Progress] 99% cache store build dependencies
|
|
345
|
+
<s> [webpack.Progress] 99% cache store build dependencies
|
|
346
|
+
<s> [webpack.Progress] 99% cache begin idle
|
|
347
|
+
<s> [webpack.Progress] 99% cache begin idle
|
|
348
|
+
<s> [webpack.Progress] 100%
|
|
349
|
+
|
|
350
|
+
info => Preview built (12 s)
|
|
351
|
+
WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
352
|
+
WARN This can impact web performance.
|
|
353
|
+
WARN Assets:
|
|
354
|
+
WARN 273.a4e52cb5.iframe.bundle.js (593 KiB)
|
|
355
|
+
WARN 807.44fdcfe2.iframe.bundle.js (793 KiB)
|
|
356
|
+
WARN 90.53702799.iframe.bundle.js (1.67 MiB)
|
|
357
|
+
WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
358
|
+
WARN Entrypoints:
|
|
359
|
+
WARN main (1.88 MiB)
|
|
360
|
+
WARN runtime~main.268a33e9.iframe.bundle.js
|
|
361
|
+
WARN 90.53702799.iframe.bundle.js
|
|
362
|
+
WARN main.d0fa14a9.iframe.bundle.js
|
|
363
|
+
WARN
|
|
364
|
+
<s> [webpack.Progress] 99% cache shutdown
|
|
365
|
+
<s> [webpack.Progress] 99% cache shutdown
|
|
366
|
+
<s> [webpack.Progress] 100%
|
|
367
|
+
|
|
368
|
+
info => Output directory: /var/folders/xs/h01kpl5x3xzdn3gr17jjwp2w0000gn/T/chromatic--4974-RM14HT9wgVSB
|
package/dist/Button.d.ts
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ColorInterface =
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ElementType, ComponentPropsWithoutRef, Ref } from "react";
|
|
2
|
+
type ColorInterface = keyof typeof colors;
|
|
3
|
+
declare let colors: {
|
|
4
|
+
indigo: string[];
|
|
5
|
+
pink: string[];
|
|
6
|
+
sky: string[];
|
|
7
|
+
blue: string[];
|
|
8
|
+
gray: string[];
|
|
9
|
+
};
|
|
10
|
+
export interface ButtonPropsBase<T> {
|
|
11
|
+
/**
|
|
12
|
+
* Color of the button. Default is `gray`.
|
|
13
|
+
*/
|
|
5
14
|
color?: ColorInterface;
|
|
15
|
+
/**
|
|
16
|
+
* Color when in dark mode. Default is the same as the `color` prop.
|
|
17
|
+
*/
|
|
6
18
|
darkColor?: ColorInterface;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to reverse the layout.
|
|
21
|
+
*/
|
|
7
22
|
reverse?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Type of element to be rendered.
|
|
25
|
+
*/
|
|
26
|
+
as?: T;
|
|
27
|
+
/**
|
|
28
|
+
* If provided, will render as an anchor element.
|
|
29
|
+
*/
|
|
30
|
+
href?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Ref of the element to be rendered.
|
|
33
|
+
*/
|
|
34
|
+
mRef?: Ref<T>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Props for the `Button` component
|
|
38
|
+
* @typeParam T - Type of the Element rendered by the button.
|
|
39
|
+
*/
|
|
40
|
+
export type ButtonProps<T extends ElementType> = ButtonPropsBase<T> & Omit<ComponentPropsWithoutRef<T>, keyof ButtonPropsBase<T>>;
|
|
41
|
+
export declare function Button<T extends ElementType = "button">({ as, color, darkColor, reverse, children, className, mRef, ...props }: ButtonProps<T>): JSX.Element;
|
|
10
42
|
export {};
|
package/dist/Card.d.ts
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
/**
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType, ReactNode, Ref } from "react";
|
|
2
|
+
export interface CardPropsBase<T> {
|
|
3
|
+
/**
|
|
4
|
+
* Large title above children.
|
|
5
|
+
*/
|
|
4
6
|
title?: string;
|
|
5
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Icon to the top-left of the title.
|
|
9
|
+
*/
|
|
6
10
|
icon?: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Type of element to be rendered.
|
|
13
|
+
*/
|
|
14
|
+
as?: T;
|
|
15
|
+
/**
|
|
16
|
+
* If provided, will render as an anchor element.
|
|
17
|
+
*/
|
|
10
18
|
href?: string;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Ref of the element to be rendered.
|
|
21
|
+
*/
|
|
22
|
+
mRef?: Ref<T>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Props for the `Card` component
|
|
26
|
+
* @typeParam T - Type of the Element rendered by the card.
|
|
27
|
+
*/
|
|
28
|
+
export type CardProps<T extends ElementType> = CardPropsBase<T> & Omit<ComponentPropsWithoutRef<T>, keyof CardPropsBase<T>>;
|
|
29
|
+
export declare function Card<T extends ElementType = "div">({ title, icon, className, children, as, mRef, ...props }: CardProps<T>): JSX.Element;
|
package/dist/Code/CodeBlock.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare function CodeBlock({ filename, filenameColor, copiedTooltipColor, children, }: {
|
|
2
|
+
export declare function CodeBlock({ filename, filenameColor, tooltipColor, copiedTooltipColor, children, }: {
|
|
3
3
|
filename?: string;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Color of the filename text and the border underneath it when content is being shown.
|
|
6
|
+
*/
|
|
5
7
|
filenameColor?: string;
|
|
6
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Background color for the tooltip saying `Click to Copy` when hovering the clipboard button.
|
|
10
|
+
*/
|
|
11
|
+
tooltipColor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Background color for the tooltip saying `Copied` when clicking the clipboard button.
|
|
14
|
+
*/
|
|
7
15
|
copiedTooltipColor?: string;
|
|
8
16
|
children?: any;
|
|
9
17
|
}): JSX.Element;
|
package/dist/Code/CodeGroup.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type CodeGroupProps = {
|
|
3
3
|
children: any;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Color of the filename text and the border underneath it when the content is being shown
|
|
6
|
+
*/
|
|
5
7
|
selectedColor?: string;
|
|
6
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Background color for the tooltip saying `Click to Copy` when hovering the clipboard button.
|
|
10
|
+
*/
|
|
11
|
+
tooltipColor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Background color for the tooltip saying `Copied` when clicking the clipboard button.
|
|
14
|
+
*/
|
|
7
15
|
copiedTooltipColor?: string;
|
|
8
16
|
isSmallText?: boolean;
|
|
9
17
|
};
|
|
@@ -14,4 +22,4 @@ export type CodeGroupProps = {
|
|
|
14
22
|
*
|
|
15
23
|
* @param {CodeBlock[]} props.children
|
|
16
24
|
*/
|
|
17
|
-
export declare function CodeGroup({ children, selectedColor, copiedTooltipColor, isSmallText, }: CodeGroupProps): JSX.Element | null;
|
|
25
|
+
export declare function CodeGroup({ children, selectedColor, tooltipColor, copiedTooltipColor, isSmallText, }: CodeGroupProps): JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare function CopyToClipboardButton({ textToCopy, copiedTooltipColor, }: {
|
|
2
|
+
export declare function CopyToClipboardButton({ textToCopy, tooltipColor, copiedTooltipColor, }: {
|
|
3
3
|
textToCopy: string;
|
|
4
|
+
tooltipColor?: string;
|
|
4
5
|
copiedTooltipColor?: string;
|
|
5
6
|
}): JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function CodeBlock({ filename, filenameColor, copiedTooltipColor, children, }: {
|
|
3
|
+
filename?: string;
|
|
4
|
+
/** Color of the filename text and the border underneath it when the content is being shown */
|
|
5
|
+
filenameColor?: string;
|
|
6
|
+
/** Background color for the tooltip saying Copied when you click the clipboard */
|
|
7
|
+
copiedTooltipColor?: string;
|
|
8
|
+
children?: any;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type CodeGroupProps = {
|
|
3
|
+
children: any;
|
|
4
|
+
isSmallText?: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Group multiple code blocks into a tabbed UI.
|
|
8
|
+
*
|
|
9
|
+
* @param {CodeBlock[]} props.children
|
|
10
|
+
*/
|
|
11
|
+
export declare function CodeGroup({ children, isSmallText }: CodeGroupProps): JSX.Element;
|