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
@@ -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
+ };
@@ -9,11 +9,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _reactRouterDom = require("react-router-dom");
10
10
  var _excluded = ["children"],
11
11
  _excluded2 = ["children", "href", "active"];
12
+ var _window;
12
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
14
  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); }
14
15
  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; }
15
16
  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; }
16
- var ElementToRender = window.USE_FALLBACK_ANCHOR ? "a" : _reactRouterDom.Link;
17
+ var ElementToRender = (_window = window) !== null && _window !== void 0 && _window.USE_FALLBACK_ANCHOR ? "a" : _reactRouterDom.Link;
17
18
  var Breadcrumb = exports.Breadcrumb = function Breadcrumb(_ref) {
18
19
  var children = _ref.children,
19
20
  props = _objectWithoutProperties(_ref, _excluded);
@@ -19,6 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
21
  var Button = exports.Button = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
22
+ var _window;
22
23
  var children = _ref.children,
23
24
  href = _ref.href,
24
25
  onClick = _ref.onClick,
@@ -35,7 +36,7 @@ var Button = exports.Button = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
35
36
  className = _ref.className,
36
37
  props = _objectWithoutProperties(_ref, _excluded);
37
38
  var classes = (0, _classnames["default"])("btn", "btn-".concat(size), _defineProperty({}, "btn-".concat(outline ? "outline-" : "").concat(ghost ? "ghost-" : "").concat(color || variant || fill && "primary"), fill || color || variant), square && "btn-square", pill && "btn-pill", className === null || className === void 0 ? void 0 : className.split(" "));
38
- var ElementToRender = window.USE_FALLBACK_ANCHOR ? "a" : _reactRouterDom.Link;
39
+ var ElementToRender = (_window = window) !== null && _window !== void 0 && _window.USE_FALLBACK_ANCHOR ? "a" : _reactRouterDom.Link;
39
40
  if (href) {
40
41
  return /*#__PURE__*/_react["default"].createElement(ElementToRender, _extends({
41
42
  ref: ref,
@@ -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/dist/util/flex.js CHANGED
@@ -116,8 +116,10 @@ var Responsive = exports.Responsive = function Responsive(_ref3) {
116
116
  direction = _useState2[0],
117
117
  setDirection = _useState2[1];
118
118
  (0, _react.useEffect)(function () {
119
+ var _window2;
119
120
  var handleResize = function handleResize() {
120
- if (window.innerWidth <= threshold) {
121
+ var _window;
122
+ if (((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth) <= threshold) {
121
123
  setDirection(defaultDirection === "row" ? "column" : "row");
122
124
  } else {
123
125
  setDirection(defaultDirection);
@@ -128,11 +130,12 @@ var Responsive = exports.Responsive = function Responsive(_ref3) {
128
130
  handleResize();
129
131
 
130
132
  // Add event listener for window resize
131
- window.addEventListener("resize", handleResize);
133
+ (_window2 = window) === null || _window2 === void 0 || _window2.addEventListener("resize", handleResize);
132
134
 
133
135
  // Cleanup the event listener on component unmount
134
136
  return function () {
135
- return window.removeEventListener("resize", handleResize);
137
+ var _window3;
138
+ return (_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.removeEventListener("resize", handleResize);
136
139
  };
137
140
  }, [threshold, defaultDirection]);
138
141
  return /*#__PURE__*/_react["default"].createElement("div", _extends({}, props, {
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
+ };