tabler-react-2 0.1.76 → 0.1.77
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/badge/index.js +3 -4
- package/dist/steps/index.js +3 -4
- package/docs/LICENSE +21 -0
- package/docs/README.md +61 -0
- package/docs/gatsby-config.js +54 -0
- package/docs/package-lock.json +23315 -0
- package/docs/package.json +37 -0
- package/docs/src/@rocketseat/gatsby-theme-docs/components/Logo.js +31 -0
- package/docs/src/components/ColorSwatch.jsx +22 -0
- package/docs/src/components/Excerpt.jsx +28 -0
- package/docs/src/components/Margin.jsx +13 -0
- package/docs/src/components/Tabler.jsx +46 -0
- package/docs/src/config/sidebar.yml +36 -0
- package/docs/src/docs/components/alerts.mdx +124 -0
- package/docs/src/docs/components/avatar.mdx +259 -0
- package/docs/src/docs/components/badges.mdx +32 -0
- package/docs/src/docs/components/cards.mdx +245 -0
- package/docs/src/docs/components/hr.mdx +68 -0
- package/docs/src/docs/components/typography.mdx +173 -0
- package/docs/src/docs/faq.mdx +35 -0
- package/docs/src/docs/getting-started.mdx +79 -0
- package/docs/src/docs/todo.md +5 -0
- package/docs/src/docs/utilities/colors.mdx +114 -0
- package/docs/src/docs/utilities/margins.mdx +90 -0
- package/docs/src/home/index.mdx +23 -0
- package/docs/src/pages/404.js +18 -0
- package/docs/src/yamlFiles/letters.yml +3 -0
- package/docs/static/banner.png +0 -0
- package/docs/static/favicon.png +0 -0
- package/docs/static/tabler.replaced.css +23191 -0
- package/package.json +1 -1
- /package/{docs → static-docs}/assets/index-BGz0WjR_.css +0 -0
- /package/{docs → static-docs}/assets/index-BzTYsikY.js +0 -0
- /package/{docs → static-docs}/index.html +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Colors
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
import { ColorSwatch } from "../../components/ColorSwatch.jsx";
|
|
6
|
+
import { Excerpt } from "../../components/Excerpt.jsx";
|
|
7
|
+
|
|
8
|
+
## Color Usage
|
|
9
|
+
|
|
10
|
+
Colors are used by providing a class to an element you wish to color. The classname is comprised of `[fg|bg]-[colorName]`. For example, to color an element with a background of the `primary` color, you would use the class `bg-primary`, and to color an element with the text color of the `primary` color, you would use the class `text-primary`.
|
|
11
|
+
|
|
12
|
+
## Color Palette
|
|
13
|
+
|
|
14
|
+
### Semantic Colors
|
|
15
|
+
|
|
16
|
+
<Excerpt>
|
|
17
|
+
<div
|
|
18
|
+
style={{ display: "flex", flexDirection: "row", gap: 10, flexWrap: "wrap" }}
|
|
19
|
+
>
|
|
20
|
+
<ColorSwatch colorName="primary" fg="white" />
|
|
21
|
+
<ColorSwatch colorName="secondary" fg="white" />
|
|
22
|
+
<ColorSwatch colorName="success" fg="white" />
|
|
23
|
+
<ColorSwatch colorName="danger" fg="white" />
|
|
24
|
+
<ColorSwatch colorName="warning" fg="white" />
|
|
25
|
+
<ColorSwatch colorName="info" fg="white" />
|
|
26
|
+
<ColorSwatch colorName="light" fg="black" />
|
|
27
|
+
<ColorSwatch colorName="dark" fg="white" />
|
|
28
|
+
</div>
|
|
29
|
+
</Excerpt>
|
|
30
|
+
|
|
31
|
+
### Bold Colors
|
|
32
|
+
|
|
33
|
+
<Excerpt>
|
|
34
|
+
<div
|
|
35
|
+
style={{ display: "flex", flexDirection: "row", gap: 10, flexWrap: "wrap" }}
|
|
36
|
+
>
|
|
37
|
+
<ColorSwatch colorName="blue" fg="white" />
|
|
38
|
+
<ColorSwatch colorName="azure" fg="white" />
|
|
39
|
+
<ColorSwatch colorName="indigo" fg="white" />
|
|
40
|
+
<ColorSwatch colorName="purple" fg="white" />
|
|
41
|
+
<ColorSwatch colorName="pink" fg="white" />
|
|
42
|
+
<ColorSwatch colorName="red" fg="white" />
|
|
43
|
+
<ColorSwatch colorName="orange" fg="white" />
|
|
44
|
+
<ColorSwatch colorName="yellow" fg="white" />
|
|
45
|
+
<ColorSwatch colorName="lime" fg="white" />
|
|
46
|
+
<ColorSwatch colorName="green" fg="white" />
|
|
47
|
+
<ColorSwatch colorName="teal" fg="white" />
|
|
48
|
+
<ColorSwatch colorName="cyan" fg="white" />
|
|
49
|
+
</div>
|
|
50
|
+
</Excerpt>
|
|
51
|
+
|
|
52
|
+
### Light Colors
|
|
53
|
+
|
|
54
|
+
<Excerpt>
|
|
55
|
+
<div
|
|
56
|
+
style={{ display: "flex", flexDirection: "row", gap: 10, flexWrap: "wrap" }}
|
|
57
|
+
>
|
|
58
|
+
<ColorSwatch colorName="blue-lt" fg="black" />
|
|
59
|
+
<ColorSwatch colorName="azure-lt" fg="black" />
|
|
60
|
+
<ColorSwatch colorName="indigo-lt" fg="black" />
|
|
61
|
+
<ColorSwatch colorName="purple-lt" fg="black" />
|
|
62
|
+
<ColorSwatch colorName="pink-lt" fg="black" />
|
|
63
|
+
<ColorSwatch colorName="red-lt" fg="black" />
|
|
64
|
+
<ColorSwatch colorName="orange-lt" fg="black" />
|
|
65
|
+
<ColorSwatch colorName="yellow-lt" fg="black" />
|
|
66
|
+
<ColorSwatch colorName="lime-lt" fg="black" />
|
|
67
|
+
<ColorSwatch colorName="green-lt" fg="black" />
|
|
68
|
+
<ColorSwatch colorName="teal-lt" fg="black" />
|
|
69
|
+
<ColorSwatch colorName="cyan-lt" fg="black" />
|
|
70
|
+
</div>
|
|
71
|
+
</Excerpt>
|
|
72
|
+
|
|
73
|
+
### Grays
|
|
74
|
+
|
|
75
|
+
<Excerpt>
|
|
76
|
+
<div
|
|
77
|
+
style={{ display: "flex", flexDirection: "row", gap: 10, flexWrap: "wrap" }}
|
|
78
|
+
>
|
|
79
|
+
<ColorSwatch colorName="gray-50" fg="black" />
|
|
80
|
+
<ColorSwatch colorName="gray-100" fg="black" />
|
|
81
|
+
<ColorSwatch colorName="gray-200" fg="black" />
|
|
82
|
+
<ColorSwatch colorName="gray-300" fg="black" />
|
|
83
|
+
<ColorSwatch colorName="gray-400" fg="black" />
|
|
84
|
+
<ColorSwatch colorName="gray-500" fg="black" />
|
|
85
|
+
<ColorSwatch colorName="gray-600" fg="black" />
|
|
86
|
+
<ColorSwatch colorName="gray-700" fg="black" />
|
|
87
|
+
<ColorSwatch colorName="gray-800" fg="black" />
|
|
88
|
+
<ColorSwatch colorName="gray-900" fg="black" />
|
|
89
|
+
</div>
|
|
90
|
+
</Excerpt>
|
|
91
|
+
|
|
92
|
+
### Brand Colors
|
|
93
|
+
|
|
94
|
+
<Excerpt>
|
|
95
|
+
<div
|
|
96
|
+
style={{ display: "flex", flexDirection: "row", gap: 10, flexWrap: "wrap" }}
|
|
97
|
+
>
|
|
98
|
+
<ColorSwatch colorName="facebook" fg="white" />
|
|
99
|
+
<ColorSwatch colorName="twitter" fg="white" />
|
|
100
|
+
<ColorSwatch colorName="linkedin" fg="white" />
|
|
101
|
+
<ColorSwatch colorName="google" fg="white" />
|
|
102
|
+
<ColorSwatch colorName="youtube" fg="white" />
|
|
103
|
+
<ColorSwatch colorName="vimeo" fg="white" />
|
|
104
|
+
<ColorSwatch colorName="dribbble" fg="white" />
|
|
105
|
+
<ColorSwatch colorName="github" fg="white" />
|
|
106
|
+
<ColorSwatch colorName="instagram" fg="white" />
|
|
107
|
+
<ColorSwatch colorName="pinterest" fg="white" />
|
|
108
|
+
<ColorSwatch colorName="vk" fg="white" />
|
|
109
|
+
<ColorSwatch colorName="rss" fg="white" />
|
|
110
|
+
<ColorSwatch colorName="flickr" fg="white" />
|
|
111
|
+
<ColorSwatch colorName="bitbucket" fg="white" />
|
|
112
|
+
<ColorSwatch colorName="tabler" fg="white" />
|
|
113
|
+
</div>
|
|
114
|
+
</Excerpt>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Margins
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
import { Margin } from "../../components/Margin.jsx";
|
|
6
|
+
import { Excerpt } from "../../components/Excerpt.jsx";
|
|
7
|
+
|
|
8
|
+
# Margin utilities
|
|
9
|
+
|
|
10
|
+
Margin utilities are provided by the `m[direction]-[0-6]` classes.
|
|
11
|
+
|
|
12
|
+
<Excerpt>
|
|
13
|
+
<div
|
|
14
|
+
style={{
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "row",
|
|
17
|
+
gap: 10,
|
|
18
|
+
flexWrap: "wrap",
|
|
19
|
+
justifyContent: "center",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
marginBottom: 10,
|
|
22
|
+
}}
|
|
23
|
+
>
|
|
24
|
+
<Margin className="m-auto" />
|
|
25
|
+
<Margin className="m-0" />
|
|
26
|
+
<Margin className="m-1" />
|
|
27
|
+
<Margin className="m-2" />
|
|
28
|
+
<Margin className="m-3" />
|
|
29
|
+
<Margin className="m-4" />
|
|
30
|
+
<Margin className="m-5" />
|
|
31
|
+
</div>
|
|
32
|
+
<div
|
|
33
|
+
style={{
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: "row",
|
|
36
|
+
gap: 10,
|
|
37
|
+
flexWrap: "wrap",
|
|
38
|
+
justifyContent: "center",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
marginBottom: 10,
|
|
41
|
+
}}
|
|
42
|
+
>
|
|
43
|
+
<Margin className="mt-auto" />
|
|
44
|
+
<Margin className="mt-0" />
|
|
45
|
+
<Margin className="mt-1" />
|
|
46
|
+
<Margin className="mt-2" />
|
|
47
|
+
<Margin className="mt-3" />
|
|
48
|
+
<Margin className="mt-4" />
|
|
49
|
+
<Margin className="mt-5" />
|
|
50
|
+
</div>
|
|
51
|
+
<div
|
|
52
|
+
style={{
|
|
53
|
+
display: "flex",
|
|
54
|
+
flexDirection: "row",
|
|
55
|
+
gap: 10,
|
|
56
|
+
flexWrap: "wrap",
|
|
57
|
+
justifyContent: "center",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
marginBottom: 10,
|
|
60
|
+
}}
|
|
61
|
+
>
|
|
62
|
+
<Margin className="mb-auto" />
|
|
63
|
+
<Margin className="mb-0" />
|
|
64
|
+
<Margin className="mb-1" />
|
|
65
|
+
<Margin className="mb-2" />
|
|
66
|
+
<Margin className="mb-3" />
|
|
67
|
+
<Margin className="mb-4" />
|
|
68
|
+
<Margin className="mb-5" />
|
|
69
|
+
</div>
|
|
70
|
+
</Excerpt>
|
|
71
|
+
|
|
72
|
+
## Margin directions
|
|
73
|
+
|
|
74
|
+
The margin utilities can be applied to the following directions:
|
|
75
|
+
|
|
76
|
+
- `mt-*` = `margin-top`
|
|
77
|
+
- `mb-*` = `margin-bottom`
|
|
78
|
+
- `m-*` = `margin`
|
|
79
|
+
|
|
80
|
+
## Margin sizes
|
|
81
|
+
|
|
82
|
+
The margin utilities can be applied to the following sizes:
|
|
83
|
+
|
|
84
|
+
- `0` = `0`
|
|
85
|
+
- `1` = `.25rem`
|
|
86
|
+
- `2` = `.5rem`
|
|
87
|
+
- `3` = `1rem`
|
|
88
|
+
- `4` = `2rem`
|
|
89
|
+
- `5` = `4rem`
|
|
90
|
+
- `auto` = `auto`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Introduction
|
|
2
|
+
|
|
3
|
+
Rocket Docs is a complete and awesome Gatsby Theme for documentation websites. We've
|
|
4
|
+
developed it to be easy to use and customize. Forget about other
|
|
5
|
+
things and focus on what matters: **writing docs.**
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- ⚛️ Ready for Gatsby v5;
|
|
10
|
+
- 📝 MDX for docs;
|
|
11
|
+
- 🛣 Yaml-based sidebar navigation;
|
|
12
|
+
- 📱 Responsive and mobile friendly;
|
|
13
|
+
- 🖥 Code highlighting with [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) and [react-live](https://github.com/FormidableLabs/react-live) support;
|
|
14
|
+
- 🥇 SEO (Sitemap, schema.org data, Open Graph and Twitter tags).
|
|
15
|
+
- 📈 Google Analytics support;
|
|
16
|
+
- 📄 Custom docs schema;
|
|
17
|
+
- 🖱 Table of Contents;
|
|
18
|
+
- ⚡️ Offline Support & WebApp Manifest;
|
|
19
|
+
- and much more 🔥
|
|
20
|
+
|
|
21
|
+
<br />
|
|
22
|
+
|
|
23
|
+
[Get started now!](/getting-started)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Link } from 'gatsby';
|
|
3
|
+
|
|
4
|
+
import Layout from '@rocketseat/gatsby-theme-docs/src/components/Layout';
|
|
5
|
+
import Seo from '@rocketseat/gatsby-theme-docs/src/components/SEO';
|
|
6
|
+
|
|
7
|
+
export default function NotFound() {
|
|
8
|
+
return (
|
|
9
|
+
<Layout title="Page not found!">
|
|
10
|
+
<Seo title="404: Not found" />
|
|
11
|
+
<p>You just hit a route that doesn't exist... the sadness.</p>
|
|
12
|
+
<p>
|
|
13
|
+
If you'd like to go back to homepage, <Link to="/">click here</Link>
|
|
14
|
+
.
|
|
15
|
+
</p>
|
|
16
|
+
</Layout>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
Binary file
|
|
Binary file
|