flikkui 0.1.0-beta.8 → 0.1.0-beta.9
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/dist/components/charts/AreaChart/AreaChart.js +80 -38
- package/dist/components/charts/AreaChart/AreaChart.types.d.ts +5 -1
- package/dist/components/charts/BarChart/BarChart.js +51 -77
- package/dist/components/charts/BarChart/BarChart.types.d.ts +1 -0
- package/dist/components/charts/LineChart/LineChart.js +6 -6
- package/dist/components/charts/types/chart.types.d.ts +1 -1
- package/dist/components/charts/utils/chart-validation.js +13 -4
- package/dist/components/charts/utils/color-utils.js +12 -12
- package/dist/components/core/Avatar/Avatar.theme.js +1 -1
- package/dist/components/core/Badge/Badge.theme.js +12 -12
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.js +4 -4
- package/dist/components/core/Card/Card.js +2 -2
- package/dist/components/core/Card/Card.theme.js +1 -1
- package/dist/components/core/Divider/Divider.theme.js +1 -1
- package/dist/components/core/Drawer/Drawer.theme.js +4 -4
- package/dist/components/forms/RichTextEditor/RichTextEditor.d.ts +4 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.js +960 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.d.ts +10 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.js +37 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.types.d.ts +122 -0
- package/dist/components/forms/RichTextEditor/index.d.ts +3 -0
- package/dist/components/forms/index.d.ts +1 -0
- package/dist/components/navigation/NavItem/NavItem.theme.d.ts +1 -1
- package/dist/components/navigation/NavItem/NavItem.theme.js +15 -15
- package/dist/index.js +2 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowUturnLeftIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowUturnRightIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3BottomLeftIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3BottomRightIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/BoldIcon.js +27 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ItalicIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/UnderlineIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/solid/esm/PaintBrushIcon.js +26 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/shadcn-compat.css +0 -80
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
var badgeTheme = {
|
|
5
5
|
baseStyle: '',
|
|
6
6
|
variants: {
|
|
7
|
-
default: 'bg-white text-
|
|
8
|
-
primary: 'bg-[var(--color-primary-50)] text-primary ring-1 ring-primary/10',
|
|
9
|
-
secondary: 'bg-
|
|
10
|
-
success: 'bg-[var(--color-success-50)] text-[var(--color-success-700)] ring-1 ring-success/20',
|
|
11
|
-
warning: 'bg-[var(--color-warning-50)] text-warning ring-1 ring-warning/20',
|
|
12
|
-
error: 'bg-[var(--color-danger-50)] text-danger ring-1 ring-danger/10',
|
|
7
|
+
default: 'bg-white text-[var(--color-text-primary)] ring-1 ring-[var(--color-border)]',
|
|
8
|
+
primary: 'bg-[var(--color-primary-50)] text-[var(--color-primary-700)] ring-1 ring-[var(--color-primary)]/10',
|
|
9
|
+
secondary: 'bg-slate-100 text-slate-700 ring-1 ring-slate-900/10',
|
|
10
|
+
success: 'bg-[var(--color-success-50)] text-[var(--color-success-700)] ring-1 ring-[var(--color-success)]/20',
|
|
11
|
+
warning: 'bg-[var(--color-warning-50)] text-[var(--color-warning-700)] ring-1 ring-[var(--color-warning)]/20',
|
|
12
|
+
error: 'bg-[var(--color-danger-50)] text-[var(--color-danger-600)] ring-1 ring-[var(--color-danger)]/10',
|
|
13
13
|
},
|
|
14
14
|
sizes: {
|
|
15
15
|
sm: {
|
|
@@ -29,12 +29,12 @@ var badgeTheme = {
|
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
dotColors: {
|
|
32
|
-
default: 'bg-
|
|
33
|
-
primary: 'bg-primary',
|
|
34
|
-
secondary: 'bg-
|
|
35
|
-
success: 'bg-success',
|
|
36
|
-
warning: 'bg-warning',
|
|
37
|
-
error: 'bg-danger',
|
|
32
|
+
default: 'bg-[var(--color-text-primary)]',
|
|
33
|
+
primary: 'bg-[var(--color-primary-700)]',
|
|
34
|
+
secondary: 'bg-slate-700',
|
|
35
|
+
success: 'bg-[var(--color-success-700)]',
|
|
36
|
+
warning: 'bg-[var(--color-warning-700)]',
|
|
37
|
+
error: 'bg-[var(--color-danger-600)]',
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -8,10 +8,10 @@ var breadcrumbsTheme = {
|
|
|
8
8
|
container: "flex items-center space-x-1",
|
|
9
9
|
nav: "flex items-center gap-3 space-x-1",
|
|
10
10
|
item: "flex items-cente",
|
|
11
|
-
link: "text-[var(--color-
|
|
12
|
-
current: "text-[var(--color-
|
|
13
|
-
separator: "text-[var(--color-
|
|
14
|
-
ellipsis: "text-[var(--color-
|
|
11
|
+
link: "text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] transition-colors duration-150 font-medium",
|
|
12
|
+
current: "text-[var(--color-text-primary)] font-medium",
|
|
13
|
+
separator: "text-[var(--color-text-muted)] select-none",
|
|
14
|
+
ellipsis: "text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] transition-colors duration-150 cursor-pointer p-1 rounded hover:bg-[var(--color-neutral-100)]",
|
|
15
15
|
icon: "mr-1.5 flex-shrink-0",
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
@@ -14,11 +14,11 @@ var CardHeader = React__default.forwardRef(function (_a, ref) {
|
|
|
14
14
|
});
|
|
15
15
|
var CardTitle = React__default.forwardRef(function (_a, ref) {
|
|
16
16
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
17
|
-
return (React__default.createElement("
|
|
17
|
+
return (React__default.createElement("div", __assign({ ref: ref, className: cn('text-lg font-semibold leading-none text-[var(--color-text-primary)]', className) }, props), children));
|
|
18
18
|
});
|
|
19
19
|
var CardDescription = React__default.forwardRef(function (_a, ref) {
|
|
20
20
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
21
|
-
return (React__default.createElement("
|
|
21
|
+
return (React__default.createElement("div", __assign({ ref: ref, className: cn('text-sm text-[var(--color-text-muted)]', className) }, props), children));
|
|
22
22
|
});
|
|
23
23
|
var CardContent = React__default.forwardRef(function (_a, ref) {
|
|
24
24
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var drawerTheme = {
|
|
2
2
|
overlay: "fixed inset-0 bg-black/70 backdrop-blur-sm z-50",
|
|
3
|
-
container: "fixed bg-white shadow-2xl shadow-black/30 border border-border ring-6 ring-white/20 flex flex-col overflow-hidden rounded-2xl",
|
|
3
|
+
container: "fixed bg-white shadow-2xl shadow-black/30 border border-[var(--color-border)] ring-6 ring-white/20 flex flex-col overflow-hidden rounded-2xl",
|
|
4
4
|
content: "h-full flex flex-col",
|
|
5
|
-
header: "flex items-center justify-between p-4 border-b border-border shrink-0",
|
|
5
|
+
header: "flex items-center justify-between p-4 border-b border-[var(--color-border)] shrink-0",
|
|
6
6
|
body: "flex-1 overflow-y-auto p-4",
|
|
7
|
-
footer: "flex items-center justify-end gap-3 p-4 border-t border-border shrink-0",
|
|
8
|
-
closeButton: "p-1 rounded-md hover:bg-neutral-100 transition-colors text-
|
|
7
|
+
footer: "flex items-center justify-end gap-3 p-4 border-t border-[var(--color-border)] shrink-0",
|
|
8
|
+
closeButton: "p-1 rounded-md hover:bg-neutral-100 transition-colors text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)]",
|
|
9
9
|
};
|
|
10
10
|
// Position variants with margin support
|
|
11
11
|
var drawerPositionVariantsWithMargin = {
|