@andreagiugni/tailwind-dashboard-ui 0.4.0 → 0.5.1
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.
- package/README.md +12 -0
- package/dist/{chunk-OSIOO5AE.cjs → chunk-2C5QY3Z2.cjs} +22 -6
- package/dist/chunk-2C5QY3Z2.cjs.map +1 -0
- package/dist/{chunk-BGA7AECV.cjs → chunk-3EE6CPHW.cjs} +11 -3
- package/dist/chunk-3EE6CPHW.cjs.map +1 -0
- package/dist/chunk-MYN5LDMO.cjs +184 -0
- package/dist/chunk-MYN5LDMO.cjs.map +1 -0
- package/dist/{chunk-MEU4PMP5.js → chunk-NWIOJGF7.js} +11 -3
- package/dist/chunk-NWIOJGF7.js.map +1 -0
- package/dist/chunk-P7LI2FSR.js +182 -0
- package/dist/chunk-P7LI2FSR.js.map +1 -0
- package/dist/{chunk-HZQZC5CK.js → chunk-YAKIMPXZ.js} +22 -6
- package/dist/chunk-YAKIMPXZ.js.map +1 -0
- package/dist/components/Charts/BarChart.cjs +2 -2
- package/dist/components/Charts/BarChart.js +1 -1
- package/dist/components/Charts/LineChart.cjs +2 -2
- package/dist/components/Charts/LineChart.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.cjs +14 -0
- package/dist/components/ColorPicker/ColorPicker.cjs.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.cts +23 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +23 -0
- package/dist/components/ColorPicker/ColorPicker.js +5 -0
- package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-BGA7AECV.cjs.map +0 -1
- package/dist/chunk-HZQZC5CK.js.map +0 -1
- package/dist/chunk-MEU4PMP5.js.map +0 -1
- package/dist/chunk-OSIOO5AE.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -7,9 +7,11 @@ export { BarChart, BarChartProps } from './components/Charts/BarChart.cjs';
|
|
|
7
7
|
export { LineChart, LineChartProps } from './components/Charts/LineChart.cjs';
|
|
8
8
|
export { Calendar, CalendarProps } from './components/Calendar/Calendar.cjs';
|
|
9
9
|
export { CountryMap, CountryMapProps } from './components/Map/CountryMap.cjs';
|
|
10
|
+
export { ColorPicker, ColorPickerFormat, ColorPickerProps } from './components/ColorPicker/ColorPicker.cjs';
|
|
10
11
|
import '@tiptap/react';
|
|
11
12
|
import 'apexcharts';
|
|
12
13
|
import '@fullcalendar/core';
|
|
14
|
+
import 'react-beautiful-color';
|
|
13
15
|
|
|
14
16
|
declare function cn(...inputs: ClassValue[]): string;
|
|
15
17
|
|
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,11 @@ export { BarChart, BarChartProps } from './components/Charts/BarChart.js';
|
|
|
7
7
|
export { LineChart, LineChartProps } from './components/Charts/LineChart.js';
|
|
8
8
|
export { Calendar, CalendarProps } from './components/Calendar/Calendar.js';
|
|
9
9
|
export { CountryMap, CountryMapProps } from './components/Map/CountryMap.js';
|
|
10
|
+
export { ColorPicker, ColorPickerFormat, ColorPickerProps } from './components/ColorPicker/ColorPicker.js';
|
|
10
11
|
import '@tiptap/react';
|
|
11
12
|
import 'apexcharts';
|
|
12
13
|
import '@fullcalendar/core';
|
|
14
|
+
import 'react-beautiful-color';
|
|
13
15
|
|
|
14
16
|
declare function cn(...inputs: ClassValue[]): string;
|
|
15
17
|
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { BarChart } from './chunk-
|
|
3
|
-
export { LineChart } from './chunk-
|
|
2
|
+
export { BarChart } from './chunk-YAKIMPXZ.js';
|
|
3
|
+
export { LineChart } from './chunk-NWIOJGF7.js';
|
|
4
4
|
export { Calendar, Modal } from './chunk-7OWZKV75.js';
|
|
5
5
|
export { CountryMap } from './chunk-R66LONPQ.js';
|
|
6
6
|
export { Editor } from './chunk-4OETC46A.js';
|
|
7
|
+
export { ColorPicker } from './chunk-P7LI2FSR.js';
|
|
7
8
|
import { cn } from './chunk-ZLIYUUA4.js';
|
|
8
9
|
export { cn } from './chunk-ZLIYUUA4.js';
|
|
9
10
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -2457,12 +2458,13 @@ var Switch = ({
|
|
|
2457
2458
|
onChange(newCheckedState);
|
|
2458
2459
|
}
|
|
2459
2460
|
};
|
|
2461
|
+
const offTrack = "bg-gray-200 ring-1 ring-inset ring-gray-300 dark:bg-white/10 dark:ring-0";
|
|
2460
2462
|
const switchColors = color === "blue" ? {
|
|
2461
|
-
background: isChecked ? "bg-brand-500 " :
|
|
2463
|
+
background: isChecked ? "bg-brand-500 " : offTrack,
|
|
2462
2464
|
// Blue version
|
|
2463
2465
|
knob: isChecked ? "translate-x-full bg-white" : "translate-x-0 bg-white"
|
|
2464
2466
|
} : {
|
|
2465
|
-
background: isChecked ? "bg-gray-800 dark:bg-white/10" :
|
|
2467
|
+
background: isChecked ? "bg-gray-800 dark:bg-white/10" : offTrack,
|
|
2466
2468
|
// Gray version
|
|
2467
2469
|
knob: isChecked ? "translate-x-full bg-white" : "translate-x-0 bg-white"
|
|
2468
2470
|
};
|