Comparing version 1.8.0 to 1.8.1
{ | ||
"name": "flowbite", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "The most popular library of interactive components built with Tailwind CSS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -807,22 +807,27 @@ /* eslint-disable @typescript-eslint/no-var-requires */ | ||
}, | ||
function (options) { | ||
function (options = {}) { | ||
// Enable forms and tooltip by default if not specified in options | ||
const { charts = false, forms = true, tooltips = true } = options; | ||
const safelist = [ | ||
'w-64', | ||
'w-1/2', | ||
'rounded-l-lg', | ||
'rounded-r-lg', | ||
'bg-gray-200', | ||
'grid-cols-4', | ||
'grid-cols-7', | ||
'h-6', | ||
'leading-6', | ||
'h-9', | ||
'leading-9', | ||
'shadow-lg', | ||
]; | ||
if (charts) { | ||
safelist.push({ pattern: /^apexcharts-.*$/ }); | ||
} | ||
return { | ||
safelist: [ | ||
// datepicker classes | ||
'w-64', | ||
'w-1/2', | ||
'rounded-l-lg', | ||
'rounded-r-lg', | ||
'bg-gray-200', | ||
'grid-cols-4', | ||
'grid-cols-7', | ||
'h-6', | ||
'leading-6', | ||
'h-9', | ||
'leading-9', | ||
'shadow-lg', | ||
// chart classes | ||
{ pattern: /^apexcharts-.*$/ }, | ||
], | ||
safelist: safelist, | ||
darkMode: 'class', // or 'media' or 'class', | ||
@@ -829,0 +834,0 @@ theme: { |
@@ -94,3 +94,3 @@ <p> | ||
```html | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.0/flowbite.min.css" rel="stylesheet" /> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.1/flowbite.min.css" rel="stylesheet" /> | ||
``` | ||
@@ -101,3 +101,3 @@ | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.0/flowbite.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.1/flowbite.min.js"></script> | ||
``` | ||
@@ -710,3 +710,3 @@ | ||
<td width="33.3333%">Device mockups</td> | ||
<td width="33.3333%"></td> | ||
<td width="33.3333%">Charts</td> | ||
</tr> | ||
@@ -724,3 +724,7 @@ <tr> | ||
</td> | ||
<td width="33.3333%"></td> | ||
<td width="33.3333%"> | ||
<a href="https://flowbite.com/docs/plugins/charts/"> | ||
<img alt="Tailwind CSS Charts" src="https://flowbite.s3.amazonaws.com/github/charts.jpg"> | ||
</a> | ||
</td> | ||
</tr> | ||
@@ -727,0 +731,0 @@ </table> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3487245
33364
779