tabler-react-2 0.1.76 → 0.1.78

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.
Files changed (37) hide show
  1. package/dist/badge/index.js +3 -4
  2. package/dist/breadcrumb/index.js +2 -1
  3. package/dist/button/index.js +2 -1
  4. package/dist/steps/index.js +3 -4
  5. package/dist/util/flex.js +6 -3
  6. package/docs/LICENSE +21 -0
  7. package/docs/README.md +61 -0
  8. package/docs/gatsby-config.js +54 -0
  9. package/docs/package-lock.json +23315 -0
  10. package/docs/package.json +36 -0
  11. package/docs/src/@rocketseat/gatsby-theme-docs/components/Logo.js +31 -0
  12. package/docs/src/components/ColorSwatch.jsx +22 -0
  13. package/docs/src/components/Excerpt.jsx +28 -0
  14. package/docs/src/components/Margin.jsx +13 -0
  15. package/docs/src/components/Tabler.jsx +48 -0
  16. package/docs/src/config/sidebar.yml +36 -0
  17. package/docs/src/docs/components/alerts.mdx +105 -0
  18. package/docs/src/docs/components/avatar.mdx +259 -0
  19. package/docs/src/docs/components/badges.mdx +190 -0
  20. package/docs/src/docs/components/cards.mdx +245 -0
  21. package/docs/src/docs/components/hr.mdx +68 -0
  22. package/docs/src/docs/components/typography.mdx +173 -0
  23. package/docs/src/docs/faq.mdx +35 -0
  24. package/docs/src/docs/getting-started.mdx +79 -0
  25. package/docs/src/docs/todo.md +5 -0
  26. package/docs/src/docs/utilities/colors.mdx +114 -0
  27. package/docs/src/docs/utilities/margins.mdx +90 -0
  28. package/docs/src/home/index.mdx +23 -0
  29. package/docs/src/pages/404.js +18 -0
  30. package/docs/src/yamlFiles/letters.yml +3 -0
  31. package/docs/static/banner.png +0 -0
  32. package/docs/static/favicon.png +0 -0
  33. package/docs/static/tabler.replaced.css +23191 -0
  34. package/package.json +1 -1
  35. /package/{docs → static-docs}/assets/index-BGz0WjR_.css +0 -0
  36. /package/{docs → static-docs}/assets/index-BzTYsikY.js +0 -0
  37. /package/{docs → static-docs}/index.html +0 -0
@@ -0,0 +1,79 @@
1
+ ---
2
+ title: 'Getting started'
3
+ description: Learn how to get started with Rocket Docs.
4
+ ---
5
+
6
+ > Rocket Docs is ready for Gatsby v5. New projects will use the new version!
7
+
8
+ The best way to start is by using our starter:
9
+
10
+ ```bash
11
+ npx gatsby new rocketdocs https://github.com/jpedroschmitz/gatsby-starter-rocketdocs
12
+ ```
13
+
14
+ But, if you prefer, you can install and configure manually.
15
+
16
+ #### Using Yarn:
17
+
18
+ ```bash
19
+ yarn add @rocketseat/gatsby-theme-docs
20
+ ```
21
+
22
+ #### Using NPM:
23
+
24
+ ```bash
25
+ npm i @rocketseat/gatsby-theme-docs
26
+ ```
27
+
28
+ ## Theme Options
29
+
30
+ | Key | Default | Required | Description |
31
+ | ------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
32
+ | basePath | / | No | Root url for all docs |
33
+ | configPath | config | No | Location of config files |
34
+ | docsPath | docs | No | The site description for SEO and social (FB, Twitter) tags |
35
+ | homePath | - | No | Location of home file |
36
+ | githubUrl | - | - | Deprecated in favor of `repositoryUrl` |
37
+ | repositoryUrl | - | No | The complete URL of your repository (supports GitHub, GitLab and Bitbucket). Example: `https://github/jpedroschmitz/rocketdocs` |
38
+ | baseDir | - | No | If your Gatsby site does not live in the root of your project directory/git repo, pass the subdirectory name here (ex: `docs`) |
39
+ | withMdx | true | No | If necessary, you can add your own MDX options to the theme. To do so, make sure you turn this option to false and include `gatsby-plugin-mdx` on your `gatsby-config` |
40
+ | branch | main | No | Default branch of the repository |
41
+
42
+ <br />
43
+
44
+ > Note: When adding a BitBucket link on the `repositoryUrl` option, don't add the `src/<branch>` to it.
45
+ > Example of correct link: <br /> `https://bitbucket.org/jpedroschmitz/rocketdocs`
46
+
47
+ ## Example usage
48
+
49
+ ```js title=gatsby-config.js
50
+ module.exports = {
51
+ siteMetadata: {
52
+ siteTitle: `@rocketseat/gatsby-theme-docs`,
53
+ defaultTitle: `@rocketseat/gatsby-theme-docs`,
54
+ siteTitleShort: `gatsby-theme-docs`,
55
+ siteDescription: `Out of the box Gatsby Theme for creating documentation websites easily and quickly`,
56
+ siteUrl: `https://rocketdocs.netlify.app`,
57
+ siteAuthor: `@jpedroschmitz`,
58
+ siteImage: `/banner.png`,
59
+ siteLanguage: `en`,
60
+ themeColor: `#8257E6`,
61
+ basePath: `/`,
62
+ },
63
+ plugins: [
64
+ {
65
+ resolve: `@rocketseat/gatsby-theme-docs`,
66
+ options: {
67
+ basePath: `/`,
68
+ configPath: `src/config`,
69
+ docsPath: `src/docs`,
70
+ homePath: `src/home`,
71
+ repositoryUrl: `https://github.com/jpedroschmitz/rocketdocs`,
72
+ baseDir: `examples/gatsby-theme-docs`,
73
+ },
74
+ },
75
+ ],
76
+ };
77
+ ```
78
+
79
+ Once you have installed the dependencies you will need to create the [navigation](/usage/navigation) and [documentation](/usage/creating-docs) files.
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: To do list for documentation
3
+ ---
4
+
5
+ - [ ] Padding
@@ -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&#39;t exist... the sadness.</p>
12
+ <p>
13
+ If you&#39;d like to go back to homepage, <Link to="/">click here</Link>
14
+ .
15
+ </p>
16
+ </Layout>
17
+ );
18
+ }
@@ -0,0 +1,3 @@
1
+ - character: a
2
+ - character: b
3
+ - character: c
Binary file
Binary file