diff --git a/.editorconfig b/.editorconfig index d41b743d8..24c3d45f8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,8 +10,8 @@ indent_style=tab tab_width=3 [*.html] -indent_style=space indent_size=3 +insert_final_newline=false [*.md] indent_style=tab @@ -20,12 +20,3 @@ tab_width=3 [*.js.map] indent_style=tab indent_size=3 - -[{*.css,*.scss}] -indent_style=space -indent_size=2 -insert_final_newline = true - -[{*.yml,*.yaml}] -indent_style=space -indent_size=2 diff --git a/.github/no-response.yml b/.github/no-response.yml new file mode 100644 index 000000000..27ccae058 --- /dev/null +++ b/.github/no-response.yml @@ -0,0 +1,10 @@ +# Configuration for probot-no-response - https://github.com/probot/no-response + +daysUntilClose: 28 + +closeComment: > + This issue has been automatically closed because there has been no response + to our request for more information from the original author. With only the + information that is currently in the issue, we don't have enough information + to take action. Please reach out if you have or find the answers we need so + that we can investigate further. diff --git a/README.md b/README.md index 798e5260c..03302542b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Premium and Open Source dashboard template with responsive and high-quality UI. View Demo | View React Version | Download ZIP | Join us on Slack - + ## Status diff --git a/js/tabler-charts.js b/js/tabler-charts.js index 8d9a34bd1..1cada1a26 100644 --- a/js/tabler-charts.js +++ b/js/tabler-charts.js @@ -84,6 +84,9 @@ if (window.Apex) { dataLabels: { minAngleToShowLabel: 10, }, + donut: { + size: '80%' + } }, }, diff --git a/package.json b/package.json index 51b4fb91a..a20f7af26 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,10 @@ "bugs": { "url": "https://github.com/tabler/tabler/issues" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/codecalm" + }, "engines": { "node": ">=10" }, @@ -69,19 +73,19 @@ "bundlesize": "0.18.0", "clean-css-cli": "4.3.0", "cross-env": "6.0.3", - "eslint": "6.7.1", + "eslint": "6.7.2", "eslint-config-xo": "0.27.2", "eslint-plugin-import": "2.18.2", - "eslint-plugin-unicorn": "13.0.0", + "eslint-plugin-unicorn": "14.0.1", "glob": "^7.1.6", - "http-server": "0.11.1", + "http-server": "0.12.0", "icon-font-generator": "2.1.10", "node-sass": "4.13.0", "node-sass-package-importer": "5.3.2", "nodemon": "^2.0.1", "npm-run-all": "4.1.5", "postcss-cli": "6.1.3", - "rollup": "1.27.5", + "rollup": "1.27.7", "rollup-plugin-babel": "4.3.3", "rollup-plugin-babel-minify": "9.1.1", "rollup-plugin-commonjs": "10.1.0", @@ -91,7 +95,7 @@ "stylelint": "12.0.0", "stylelint-config-twbs-bootstrap": "1.0.0", "svgo": "1.3.2", - "terser": "4.4.0", + "terser": "4.4.1", "yaml": "1.7.2" }, "dependencies": { diff --git a/pages/_data/charts.yml b/pages/_data/charts.yml index dda7bb82e..b52d9efd8 100644 --- a/pages/_data/charts.yml +++ b/pages/_data/charts.yml @@ -1,5 +1,43 @@ +total-sales: + type: donut + demo: true + sparkline: true + hide-legend: true + name: Total sales + series: + - name: Direct + color: blue + data: 44 + - name: Affilliate + color: green + data: 55 + - name: Sponsored + color: red + data: 35 + - name: E-mail + color: yellow + data: 12 + +campaigns: + name: Campaigns + demo: true + type: radialBar + sparkline: true + hide-legend: true + series: + - name: Total Sent + color: blue + data: 44 + - name: Reached + color: blue-light + data: 36 + - name: Opened + color: blue-lighten + data: 18 + tasks: name: Tasks + demo: true type: line categories: ['M', 'T', 'W', 'T', 'F', 'S', 'S', 'M', 'T', 'W', 'T', 'F', 'S', 'S', 'M', 'T', 'W'] groups: [1, 2, 3] @@ -36,7 +74,7 @@ development-activity: line: name: Employment Growth - display: true + demo: true type: line show-grid: true categories: ['2013', '2014', '2015', '2016', '2017', '2018'] @@ -53,7 +91,7 @@ line: line-stroke: name: Line chart - display: true + demo: true type: line stroke-curve: straight hide-legend: true @@ -72,7 +110,7 @@ line-stroke: stepline: name: Stepline - display: true + demo: true type: line hide-legend: true stroke-curve: stepline @@ -84,7 +122,7 @@ stepline: temperature: name: Monthly Average Temperature - display: true + demo: true type: line show-labels: true show-data-labels: true @@ -103,7 +141,7 @@ temperature: area: name: Lorem ipsum - display: true + demo: true type: area hide-legend: true categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'] @@ -118,7 +156,7 @@ area: area-spline: name: Lorem ipsum - display: true + demo: true type: area spline: true hide-legend: true @@ -134,12 +172,11 @@ area-spline: area-spline-stacked: name: Lorem ipsum - display: true + demo: true type: area spline: true hide-legend: true stacked: true -# groups: [1, 2] categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'] series: - name: Maximum @@ -152,7 +189,7 @@ area-spline-stacked: spline: name: Wind speed during two days - display: true + demo: true type: line spline: true show-labels: true @@ -169,7 +206,7 @@ spline: spline-rotated: name: Lorem ipsum - display: true + demo: true type: line spline: true rotated: true @@ -186,7 +223,7 @@ spline-rotated: bar: name: Lorem ipsum - display: true + demo: true type: bar hide-legend: true categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'] @@ -200,7 +237,7 @@ bar: bar-rotated: name: Lorem ipsum - display: true + demo: true type: bar rotated: true hide-legend: true @@ -216,10 +253,9 @@ bar-rotated: bar-stacked: name: Lorem ipsum - display: true + demo: true type: bar stacked: true -# groups: [1, 2] hide-legend: true categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'] series: @@ -233,7 +269,7 @@ bar-stacked: pie: name: Lorem ipsum - display: true + demo: true type: pie hide-legend: true show-data-labels: true @@ -241,35 +277,35 @@ pie: series: - name: A color: blue-darker - data: [63] + data: 63 - name: B color: blue - data: [44] + data: 44 - name: C color: blue-light - data: [12] + data: 12 - name: D color: blue-lighter - data: [14] + data: 14 donut: name: Lorem ipsum - display: true + demo: true type: donut sparkline: true hide-legend: true series: - name: Maximum color: green - data: [63] + data: 63 - name: Minimum color: green-light - data: [37] + data: 37 scatter: name: Lorem ipsum - display: true + demo: true type: scatter hide-legend: true categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'] @@ -284,7 +320,7 @@ scatter: combination: name: Combination chart - display: true + demo: true type: bar types: 2: 'line' @@ -376,14 +412,13 @@ devices: type: donut sparkline: true hide-legend: true - sparkline: true series: - name: a color: blue-dark - data: [23] + data: 23 - name: b color: blue - data: [54] + data: 54 - name: c color: blue-light - data: [34] + data: 34 diff --git a/pages/_docs/avatars.md b/pages/_docs/avatars.md index d974fd63c..966329320 100644 --- a/pages/_docs/avatars.md +++ b/pages/_docs/avatars.md @@ -14,6 +14,50 @@ Create and group avatars of various shapes and sizes with one component. {% include ui/avatar.html person-id=3 %} {% endexample %} +### Avatar image + +Set an image as the background. + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html person-id=1 %} +{% include ui/avatar.html person-id=3 %} +{% include ui/avatar.html person-id=4 %} +{% endexample %} + +### Initials + +You can easily use initials instead of images. + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html placeholder="AB" %} +{% include ui/avatar.html placeholder="CD" %} +{% include ui/avatar.html placeholder="EF" %} +{% include ui/avatar.html placeholder="GH" %} +{% include ui/avatar.html placeholder="IJ" %} +{% endexample %} + +### Avatar icons + +You can also use icons in avatars. + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html icon="user" %} +{% include ui/avatar.html icon="plus" %} +{% include ui/avatar.html icon="user-plus" %} +{% endexample %} + +### Avatar initials color + +Customize the color of the avatars' background. You can click [here]({% docs_url colors %}) to see the list of available colors. + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html placeholder="AB" color="green" %} +{% include ui/avatar.html placeholder="CD" color="red" %} +{% include ui/avatar.html placeholder="EF" color="yellow" %} +{% include ui/avatar.html placeholder="GH" color="blue" %} +{% include ui/avatar.html placeholder="IJ" color="purple" %} +{% endexample %} + ### Avatar size Using Bootstrap’s typical naming structure, you can create a standard avatar, or scale it up to different sizes based on what’s needed. @@ -51,43 +95,18 @@ Change the shape of an avatar with the default Bootstrap image classes. {% include ui/avatar.html person-id=21 shape="rounded-lg" %} {% endexample %} -### Initials - -{% example html wrapper=avatar-list %} -{% include ui/avatar.html placeholder="AB" size="xl" %} -{% include ui/avatar.html placeholder="CD" size="lg" %} -{% include ui/avatar.html placeholder="EF" size="md" %} -{% include ui/avatar.html placeholder="GH" %} -{% include ui/avatar.html placeholder="IJ" size="sm" %} -{% endexample %} - - -### Avatar initials color - -[See more]({% docs_url colors %}) - -{% example html wrapper=avatar-list %} -{% include ui/avatar.html placeholder="AB" color="green" %} -{% include ui/avatar.html placeholder="CD" color="red" %} -{% include ui/avatar.html placeholder="EF" color="yellow" %} -{% include ui/avatar.html placeholder="GH" color="blue" %} -{% include ui/avatar.html placeholder="IJ" color="purple" %} -{% endexample %} - -### Avatar initials icons - -{% example html wrapper=avatar-list %} -{% include ui/avatar.html icon="user" %} -{% include ui/avatar.html icon="plus" %} -{% include ui/avatar.html icon="user-plus" %} -{% endexample %} - ### Avatars list +You can easily create a list of avatars. + {% example %} {% include ui/avatar-list.html %} {% endexample %} +### Stacked list + +Make the list stack when it reaches a certain length. + {% example %}
| diff --git a/pages/_includes/layout/homepage.html b/pages/_includes/layout/homepage.html index 64d3e084b..b52493991 100644 --- a/pages/_includes/layout/homepage.html +++ b/pages/_includes/layout/homepage.html @@ -43,10 +43,10 @@ |
|---|