tabler-react-2 0.1.75 → 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.
Files changed (35) hide show
  1. package/dist/badge/index.js +3 -4
  2. package/dist/input/enclosedselectgroup.js +2 -4
  3. package/dist/steps/index.js +3 -4
  4. package/docs/LICENSE +21 -0
  5. package/docs/README.md +61 -0
  6. package/docs/gatsby-config.js +54 -0
  7. package/docs/package-lock.json +23315 -0
  8. package/docs/package.json +37 -0
  9. package/docs/src/@rocketseat/gatsby-theme-docs/components/Logo.js +31 -0
  10. package/docs/src/components/ColorSwatch.jsx +22 -0
  11. package/docs/src/components/Excerpt.jsx +28 -0
  12. package/docs/src/components/Margin.jsx +13 -0
  13. package/docs/src/components/Tabler.jsx +46 -0
  14. package/docs/src/config/sidebar.yml +36 -0
  15. package/docs/src/docs/components/alerts.mdx +124 -0
  16. package/docs/src/docs/components/avatar.mdx +259 -0
  17. package/docs/src/docs/components/badges.mdx +32 -0
  18. package/docs/src/docs/components/cards.mdx +245 -0
  19. package/docs/src/docs/components/hr.mdx +68 -0
  20. package/docs/src/docs/components/typography.mdx +173 -0
  21. package/docs/src/docs/faq.mdx +35 -0
  22. package/docs/src/docs/getting-started.mdx +79 -0
  23. package/docs/src/docs/todo.md +5 -0
  24. package/docs/src/docs/utilities/colors.mdx +114 -0
  25. package/docs/src/docs/utilities/margins.mdx +90 -0
  26. package/docs/src/home/index.mdx +23 -0
  27. package/docs/src/pages/404.js +18 -0
  28. package/docs/src/yamlFiles/letters.yml +3 -0
  29. package/docs/static/banner.png +0 -0
  30. package/docs/static/favicon.png +0 -0
  31. package/docs/static/tabler.replaced.css +23191 -0
  32. package/package.json +1 -1
  33. /package/{docs → static-docs}/assets/index-BGz0WjR_.css +0 -0
  34. /package/{docs → static-docs}/assets/index-BzTYsikY.js +0 -0
  35. /package/{docs → static-docs}/index.html +0 -0
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = void 0;
7
+ exports.Badge = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
19
19
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
20
20
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
21
- var Badge = function Badge(_ref) {
21
+ var Badge = exports.Badge = function Badge(_ref) {
22
22
  var href = _ref.href,
23
23
  children = _ref.children,
24
24
  color = _ref.color,
@@ -37,5 +37,4 @@ var Badge = function Badge(_ref) {
37
37
  }, props.style),
38
38
  onClick: onClick
39
39
  }, props), children);
40
- };
41
- var _default = exports["default"] = Badge;
40
+ };
@@ -91,7 +91,7 @@ var EnclosedSelectGroup = exports.EnclosedSelectGroup = function EnclosedSelectG
91
91
  },
92
92
  disabled: item.disabled
93
93
  }), /*#__PURE__*/_react["default"].createElement("div", {
94
- className: "form-selectgroup-label d-flex p-3 ".concat((item === null || item === void 0 ? void 0 : item.disabled) && "bg-gray-600"),
94
+ className: "form-selectgroup-label d-flex p-3 ".concat((item === null || item === void 0 ? void 0 : item.disabled) && "bg-gray-400"),
95
95
  style: {
96
96
  pointerEvents: item.disabled,
97
97
  cursor: item.disabled ? "not-allowed" : null
@@ -104,9 +104,7 @@ var EnclosedSelectGroup = exports.EnclosedSelectGroup = function EnclosedSelectG
104
104
  style: {
105
105
  textAlign: "left"
106
106
  }
107
- }, item.content, " ", JSON.stringify({
108
- disabled: item.disabled
109
- }))));
107
+ }, item.content)));
110
108
  }));
111
109
  };
112
110
  EnclosedSelectGroup.propTypes = {
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.Steps = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
11
- var Steps = function Steps(_ref) {
11
+ var Steps = exports.Steps = function Steps(_ref) {
12
12
  var steps = _ref.steps,
13
13
  color = _ref.color,
14
14
  _ref$numbered = _ref.numbered,
@@ -56,5 +56,4 @@ Steps.propTypes = {
56
56
  numbered: _propTypes["default"].bool,
57
57
  // Whether steps are numbered
58
58
  hideText: _propTypes["default"].bool // Hide text inside the steps (useful for numbered)
59
- };
60
- var _default = exports["default"] = Steps;
59
+ };
package/docs/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 João Pedro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/docs/README.md ADDED
@@ -0,0 +1,61 @@
1
+ <p align="center">
2
+ <img src="https://rocketseat-cdn.s3-sa-east-1.amazonaws.com/theme-docs.svg" alt="A illustration of file that is the @rocketseat/gatsby-theme-docs logo" width="100">
3
+ </p>
4
+
5
+ <h2 align="center">
6
+ Gatsby Starter: Rocket Docs
7
+ </h2>
8
+
9
+ <p align="center">
10
+ Out of the box Gatsby Starter for creating documentation websites easily and quickly. With support for MDX, code highlight, Analytics, SEO and more 🔥 Using the theme: <a href="https://github.com/jpedroschmitz/rocketdocs/tree/main/%40rocketseat/gatsby-theme-docs">@rocketseat/gatsby-theme-docs</a>
11
+ </p>
12
+
13
+ <p align="center">
14
+ <img src="https://img.shields.io/badge/PRs-welcome-%238257E6.svg" alt="PRs welcome!" />
15
+
16
+ <img alt="License" src="https://img.shields.io/badge/license-MIT-%238257E6">
17
+
18
+ <a href="https://twitter.com/intent/follow?screen_name=jpedroschmitz">
19
+ <img src="https://img.shields.io/twitter/follow/jpedroschmitz.svg?label=Follow%20@jpedroschmitz" alt="Follow @jpedroschmitz" />
20
+ </a>
21
+ </p>
22
+
23
+ ## 🚀 Features
24
+
25
+ - 📝 MDX for docs;
26
+ - 🛣 Yaml-based sidebar navigation;
27
+ - 📱 Responsive and mobile friendly;
28
+ - 🖥 Code highlighting with [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) and [react-live](https://github.com/FormidableLabs/react-live) support;
29
+ - 🥇 SEO (Sitemap, schema.org data, Open Graph and Twitter tags).
30
+ - 📈 Google Analytics support;
31
+ - 📄 Custom docs schema;
32
+ - 🖱 Table of Contents;
33
+ - ⚡️ Offline Support & WebApp Manifest;
34
+ - and much more 🔥
35
+
36
+ ## ⚡️ Getting started
37
+
38
+ 1. Create the website.
39
+
40
+ ```sh
41
+ npx gatsby new rocketdocs https://github.com/jpedroschmitz/gatsby-starter-rocketdocs
42
+ ```
43
+
44
+ 2. Start developing.
45
+
46
+ ```sh
47
+ cd rocketdocs
48
+ gatsby develop
49
+ ```
50
+
51
+ 3. Are you ready for launch?
52
+
53
+ Your site is now running at `http://localhost:8000`
54
+
55
+ ## 📄 Docs
56
+
57
+ Looking for docs? Check our live demo and documentation [website](https://rocketdocs.netlify.app).
58
+
59
+ ---
60
+
61
+ Made with 💜 by João Pedro
@@ -0,0 +1,54 @@
1
+ module.exports = {
2
+ siteMetadata: {
3
+ siteTitle: `Tabler React 2 Docs`,
4
+ defaultTitle: `Tabler React 2 Docs`,
5
+ siteTitleShort: `Tabler React 2 Docs`,
6
+ siteDescription: `Documentation for Tabler React 2`,
7
+ siteUrl: `https://rocketdocs.netlify.app`,
8
+ siteAuthor: `@jpedroschmitz`,
9
+ siteImage: `/banner.png`,
10
+ siteLanguage: `en`,
11
+ themeColor: `#066fd1`,
12
+ basePath: `/`,
13
+ },
14
+ plugins: [
15
+ {
16
+ resolve: `@rocketseat/gatsby-theme-docs`,
17
+ options: {
18
+ configPath: `src/config`,
19
+ docsPath: `src/docs`,
20
+ homePath: `src/home`,
21
+ yamlFilesPath: `src/yamlFiles`,
22
+ repositoryUrl: `https://github.com/jpedroschmitz/rocketdocs`,
23
+ baseDir: `examples/gatsby-theme-docs`,
24
+ gatsbyRemarkPlugins: [],
25
+ },
26
+ },
27
+ {
28
+ resolve: `gatsby-plugin-manifest`,
29
+ options: {
30
+ name: `Rocket Docs`,
31
+ short_name: `Rocket Docs`,
32
+ start_url: `/`,
33
+ background_color: `#ffffff`,
34
+ display: `standalone`,
35
+ icon: `static/favicon.png`,
36
+ },
37
+ },
38
+ `gatsby-plugin-sitemap`,
39
+ // {
40
+ // resolve: `gatsby-plugin-google-analytics`,
41
+ // options: {
42
+ // trackingId: `YOUR_ANALYTICS_ID`,
43
+ // },
44
+ // },
45
+ `gatsby-plugin-remove-trailing-slashes`,
46
+ {
47
+ resolve: `gatsby-plugin-canonical-urls`,
48
+ options: {
49
+ siteUrl: `https://rocketdocs.netlify.app`,
50
+ },
51
+ },
52
+ `gatsby-plugin-offline`,
53
+ ],
54
+ };