resuxjs 0.3.6 → 0.3.8
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 +251 -251
- package/dist/cli.js +308 -295
- package/dist/cli.js.map +1 -1
- package/dist/compiler/implementation.js +266 -162
- package/dist/compiler/index.js.map +1 -1
- package/dist/core/module-container.d.ts +4 -0
- package/dist/core/module-container.js +35 -8
- package/dist/core/module-container.js.map +1 -1
- package/dist/create.js +446 -446
- package/dist/deploy/framework-runtime.d.ts +1 -0
- package/dist/deploy/framework-runtime.js +56 -0
- package/dist/deploy/framework-runtime.js.map +1 -0
- package/dist/deploy/netlify.js +7 -0
- package/dist/deploy/netlify.js.map +1 -1
- package/dist/deploy/production-report.d.ts +1 -0
- package/dist/deploy/production-report.js +19 -0
- package/dist/deploy/production-report.js.map +1 -0
- package/dist/deploy/runtime-dependencies.d.ts +4 -0
- package/dist/deploy/runtime-dependencies.js +237 -0
- package/dist/deploy/runtime-dependencies.js.map +1 -0
- package/dist/deploy/vercel.js +7 -125
- package/dist/deploy/vercel.js.map +1 -1
- package/dist/halal-core/ai/classifyRuntimeContent.js +20 -20
- package/dist/halal-core/report/generateHalalReport.js +17 -17
- package/dist/i18n/index.js +45 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/shared.js +11 -1
- package/dist/i18n/shared.js.map +1 -1
- package/dist/icons/index.d.ts +4 -4
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.js +9307 -8941
- package/dist/runtime/index.js.map +1 -1
- package/dist/ui/index.d.ts +15 -15
- package/dist/ui/index.js +254 -250
- package/dist/ui/index.js.map +1 -1
- package/package.json +150 -150
- package/templates/default/README.md +18 -18
- package/templates/default/pages/index.vue +102 -102
package/dist/ui/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface ResuxUiModuleOptions {
|
|
|
7
7
|
defaultPreset?: string;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
export declare function defineUiTokens
|
|
10
|
+
export declare function defineUiTokens<T extends Record<string, unknown>>(tokens: T): T;
|
|
11
11
|
export type AnimationPreset = "fade-up" | "fade-down" | "scale-in" | "slide-in-left" | "slide-in-right" | "pulse-glow" | "bounce-in";
|
|
12
12
|
export interface AnimateOptions {
|
|
13
13
|
type?: AnimationPreset | string;
|
|
@@ -85,9 +85,9 @@ export declare const RxMotion: import("vue").DefineComponent<import("vue").Extra
|
|
|
85
85
|
default: boolean;
|
|
86
86
|
};
|
|
87
87
|
}>> & Readonly<{}>, {
|
|
88
|
-
preset: string;
|
|
89
88
|
duration: number;
|
|
90
89
|
tag: string;
|
|
90
|
+
preset: string;
|
|
91
91
|
delay: number;
|
|
92
92
|
easing: string;
|
|
93
93
|
unstyled: boolean;
|
|
@@ -121,8 +121,8 @@ export declare const RxReveal: import("vue").DefineComponent<import("vue").Extra
|
|
|
121
121
|
default: boolean;
|
|
122
122
|
};
|
|
123
123
|
}>> & Readonly<{}>, {
|
|
124
|
-
preset: string;
|
|
125
124
|
duration: number;
|
|
125
|
+
preset: string;
|
|
126
126
|
unstyled: boolean;
|
|
127
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
128
128
|
export declare const RxAutoAnimate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -195,8 +195,8 @@ export declare const RxButton: import("vue").DefineComponent<import("vue").Extra
|
|
|
195
195
|
};
|
|
196
196
|
}>> & Readonly<{}>, {
|
|
197
197
|
type: string;
|
|
198
|
-
size: string;
|
|
199
198
|
disabled: boolean;
|
|
199
|
+
size: string;
|
|
200
200
|
unstyled: boolean;
|
|
201
201
|
variant: string;
|
|
202
202
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -461,8 +461,8 @@ export declare const RxIcon: import("vue").DefineComponent<import("vue").Extract
|
|
|
461
461
|
default: boolean;
|
|
462
462
|
};
|
|
463
463
|
}>> & Readonly<{}>, {
|
|
464
|
-
size: string | number;
|
|
465
464
|
name: string;
|
|
465
|
+
size: string | number;
|
|
466
466
|
color: string;
|
|
467
467
|
unstyled: boolean;
|
|
468
468
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -512,8 +512,8 @@ export declare const RxAvatar: import("vue").DefineComponent<import("vue").Extra
|
|
|
512
512
|
};
|
|
513
513
|
}>> & Readonly<{}>, {
|
|
514
514
|
src: string;
|
|
515
|
-
size: string;
|
|
516
515
|
alt: string;
|
|
516
|
+
size: string;
|
|
517
517
|
status: string;
|
|
518
518
|
unstyled: boolean;
|
|
519
519
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -590,8 +590,8 @@ export declare const RxAccordion: import("vue").DefineComponent<import("vue").Ex
|
|
|
590
590
|
default: boolean;
|
|
591
591
|
};
|
|
592
592
|
}>> & Readonly<{}>, {
|
|
593
|
-
open: boolean;
|
|
594
593
|
title: string;
|
|
594
|
+
open: boolean;
|
|
595
595
|
unstyled: boolean;
|
|
596
596
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
597
597
|
export declare const RxTooltip: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -925,8 +925,8 @@ export declare const RxModal: import("vue").DefineComponent<import("vue").Extrac
|
|
|
925
925
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
926
926
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
927
927
|
}>, {
|
|
928
|
-
open: boolean;
|
|
929
928
|
title: string;
|
|
929
|
+
open: boolean;
|
|
930
930
|
unstyled: boolean;
|
|
931
931
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
932
932
|
export declare const ResuxMotion: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -982,9 +982,9 @@ export declare const ResuxMotion: import("vue").DefineComponent<import("vue").Ex
|
|
|
982
982
|
default: boolean;
|
|
983
983
|
};
|
|
984
984
|
}>> & Readonly<{}>, {
|
|
985
|
-
preset: string;
|
|
986
985
|
duration: number;
|
|
987
986
|
tag: string;
|
|
987
|
+
preset: string;
|
|
988
988
|
delay: number;
|
|
989
989
|
easing: string;
|
|
990
990
|
unstyled: boolean;
|
|
@@ -1018,8 +1018,8 @@ export declare const ResuxReveal: import("vue").DefineComponent<import("vue").Ex
|
|
|
1018
1018
|
default: boolean;
|
|
1019
1019
|
};
|
|
1020
1020
|
}>> & Readonly<{}>, {
|
|
1021
|
-
preset: string;
|
|
1022
1021
|
duration: number;
|
|
1022
|
+
preset: string;
|
|
1023
1023
|
unstyled: boolean;
|
|
1024
1024
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1025
1025
|
export declare const ResuxAutoAnimate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1092,8 +1092,8 @@ export declare const ResuxButton: import("vue").DefineComponent<import("vue").Ex
|
|
|
1092
1092
|
};
|
|
1093
1093
|
}>> & Readonly<{}>, {
|
|
1094
1094
|
type: string;
|
|
1095
|
-
size: string;
|
|
1096
1095
|
disabled: boolean;
|
|
1096
|
+
size: string;
|
|
1097
1097
|
unstyled: boolean;
|
|
1098
1098
|
variant: string;
|
|
1099
1099
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1358,8 +1358,8 @@ export declare const ResuxIcon: import("vue").DefineComponent<import("vue").Extr
|
|
|
1358
1358
|
default: boolean;
|
|
1359
1359
|
};
|
|
1360
1360
|
}>> & Readonly<{}>, {
|
|
1361
|
-
size: string | number;
|
|
1362
1361
|
name: string;
|
|
1362
|
+
size: string | number;
|
|
1363
1363
|
color: string;
|
|
1364
1364
|
unstyled: boolean;
|
|
1365
1365
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1409,8 +1409,8 @@ export declare const ResuxAvatar: import("vue").DefineComponent<import("vue").Ex
|
|
|
1409
1409
|
};
|
|
1410
1410
|
}>> & Readonly<{}>, {
|
|
1411
1411
|
src: string;
|
|
1412
|
-
size: string;
|
|
1413
1412
|
alt: string;
|
|
1413
|
+
size: string;
|
|
1414
1414
|
status: string;
|
|
1415
1415
|
unstyled: boolean;
|
|
1416
1416
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1487,8 +1487,8 @@ export declare const ResuxAccordion: import("vue").DefineComponent<import("vue")
|
|
|
1487
1487
|
default: boolean;
|
|
1488
1488
|
};
|
|
1489
1489
|
}>> & Readonly<{}>, {
|
|
1490
|
-
open: boolean;
|
|
1491
1490
|
title: string;
|
|
1491
|
+
open: boolean;
|
|
1492
1492
|
unstyled: boolean;
|
|
1493
1493
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1494
1494
|
export declare const ResuxTooltip: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1822,8 +1822,8 @@ export declare const ResuxModal: import("vue").DefineComponent<import("vue").Ext
|
|
|
1822
1822
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
1823
1823
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
1824
1824
|
}>, {
|
|
1825
|
-
open: boolean;
|
|
1826
1825
|
title: string;
|
|
1826
|
+
open: boolean;
|
|
1827
1827
|
unstyled: boolean;
|
|
1828
1828
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1829
1829
|
declare const resuxUiModule: {
|
package/dist/ui/index.js
CHANGED
|
@@ -8,7 +8,11 @@ export function isReducedMotion() {
|
|
|
8
8
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
9
9
|
}
|
|
10
10
|
export function useAnimate(target, options = {}) {
|
|
11
|
-
const element = target && "
|
|
11
|
+
const element = target && "animate" in target && typeof target.animate === "function"
|
|
12
|
+
? target
|
|
13
|
+
: target && "value" in target
|
|
14
|
+
? target.value
|
|
15
|
+
: null;
|
|
12
16
|
if (!element || typeof window === "undefined")
|
|
13
17
|
return null;
|
|
14
18
|
if (isReducedMotion())
|
|
@@ -656,256 +660,256 @@ export const ResuxSkeleton = RxSkeleton;
|
|
|
656
660
|
export const ResuxDivider = RxDivider;
|
|
657
661
|
export const ResuxKbd = RxKbd;
|
|
658
662
|
export const ResuxModal = RxModal;
|
|
659
|
-
const uiStyles = `
|
|
660
|
-
@keyframes rxFadeUp {
|
|
661
|
-
from { opacity: 0; transform: translate3d(0, 30px, 0); }
|
|
662
|
-
to { opacity: 1; transform: translate3d(0, 0, 0); }
|
|
663
|
-
}
|
|
664
|
-
@keyframes rxScaleIn {
|
|
665
|
-
from { opacity: 0; transform: scale3d(0.92, 0.92, 1); }
|
|
666
|
-
to { opacity: 1; transform: scale3d(1, 1, 1); }
|
|
667
|
-
}
|
|
668
|
-
@keyframes rxPulseGlow {
|
|
669
|
-
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(3, 200, 191, 0.4); }
|
|
670
|
-
50% { transform: scale(1.03); box-shadow: 0 0 20px 10px rgba(3, 200, 191, 0); }
|
|
671
|
-
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(3, 200, 191, 0); }
|
|
672
|
-
}
|
|
673
|
-
@keyframes rxShimmer {
|
|
674
|
-
0% { background-position: -200% 0; }
|
|
675
|
-
100% { background-position: 200% 0; }
|
|
676
|
-
}
|
|
677
|
-
.rx-animate-fade-up { animation: rxFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
678
|
-
.rx-animate-scale-in { animation: rxScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
679
|
-
.rx-animate-pulse { animation: rxPulseGlow 2s infinite; }
|
|
663
|
+
const uiStyles = `
|
|
664
|
+
@keyframes rxFadeUp {
|
|
665
|
+
from { opacity: 0; transform: translate3d(0, 30px, 0); }
|
|
666
|
+
to { opacity: 1; transform: translate3d(0, 0, 0); }
|
|
667
|
+
}
|
|
668
|
+
@keyframes rxScaleIn {
|
|
669
|
+
from { opacity: 0; transform: scale3d(0.92, 0.92, 1); }
|
|
670
|
+
to { opacity: 1; transform: scale3d(1, 1, 1); }
|
|
671
|
+
}
|
|
672
|
+
@keyframes rxPulseGlow {
|
|
673
|
+
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(3, 200, 191, 0.4); }
|
|
674
|
+
50% { transform: scale(1.03); box-shadow: 0 0 20px 10px rgba(3, 200, 191, 0); }
|
|
675
|
+
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(3, 200, 191, 0); }
|
|
676
|
+
}
|
|
677
|
+
@keyframes rxShimmer {
|
|
678
|
+
0% { background-position: -200% 0; }
|
|
679
|
+
100% { background-position: 200% 0; }
|
|
680
|
+
}
|
|
681
|
+
.rx-animate-fade-up { animation: rxFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
682
|
+
.rx-animate-scale-in { animation: rxScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
683
|
+
.rx-animate-pulse { animation: rxPulseGlow 2s infinite; }
|
|
680
684
|
`;
|
|
681
|
-
const uiPrimitiveStyles = `
|
|
682
|
-
.rx-btn {
|
|
683
|
-
display: inline-flex;
|
|
684
|
-
align-items: center;
|
|
685
|
-
justify-content: center;
|
|
686
|
-
padding: 0.5rem 1rem;
|
|
687
|
-
font-size: 0.875rem;
|
|
688
|
-
font-weight: 500;
|
|
689
|
-
border-radius: 0.375rem;
|
|
690
|
-
cursor: pointer;
|
|
691
|
-
transition: all 0.2s ease-in-out;
|
|
692
|
-
border: 1px solid transparent;
|
|
693
|
-
}
|
|
694
|
-
.rx-btn-primary { background-color: #03c8bf; color: #0f172a; border-color: #03c8bf; }
|
|
695
|
-
.rx-btn-primary:hover { background-color: #02b3ab; }
|
|
696
|
-
.rx-btn-secondary { background-color: #334155; color: #f8fafc; border-color: #334155; }
|
|
697
|
-
.rx-btn-secondary:hover { background-color: #475569; }
|
|
698
|
-
.rx-btn-outline { background-color: transparent; color: #03c8bf; border-color: #03c8bf; }
|
|
699
|
-
.rx-btn-outline:hover { background-color: rgba(3, 200, 191, 0.1); }
|
|
700
|
-
.rx-btn-ghost { background-color: transparent; color: #cbd5e1; border-color: transparent; }
|
|
701
|
-
.rx-btn-ghost:hover { background-color: rgba(255, 255, 255, 0.08); }
|
|
702
|
-
.rx-btn-sm { padding: 0.25rem 0.625rem; font-size: 0.75rem; }
|
|
703
|
-
.rx-btn-md { padding: 0.5rem 1rem; font-size: 0.875rem; }
|
|
704
|
-
.rx-btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
|
|
705
|
-
|
|
706
|
-
.rx-card {
|
|
707
|
-
background-color: #1e293b;
|
|
708
|
-
border-radius: 0.5rem;
|
|
709
|
-
padding: 1.25rem;
|
|
710
|
-
border: 1px solid #334155;
|
|
711
|
-
color: #f8fafc;
|
|
712
|
-
}
|
|
713
|
-
.rx-card-glass {
|
|
714
|
-
background: rgba(30, 41, 59, 0.7);
|
|
715
|
-
backdrop-filter: blur(12px);
|
|
716
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
.rx-badge {
|
|
720
|
-
display: inline-flex;
|
|
721
|
-
align-items: center;
|
|
722
|
-
padding: 0.125rem 0.5rem;
|
|
723
|
-
border-radius: 9999px;
|
|
724
|
-
font-size: 0.75rem;
|
|
725
|
-
font-weight: 600;
|
|
726
|
-
}
|
|
727
|
-
.rx-badge-default { background-color: #334155; color: #e2e8f0; }
|
|
728
|
-
.rx-badge-success { background-color: rgba(16, 185, 129, 0.2); color: #34d399; }
|
|
729
|
-
.rx-badge-warning { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }
|
|
730
|
-
.rx-badge-danger { background-color: rgba(239, 68, 68, 0.2); color: #f87171; }
|
|
731
|
-
.rx-badge-info { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }
|
|
732
|
-
|
|
733
|
-
.rx-input {
|
|
734
|
-
width: 100%;
|
|
735
|
-
padding: 0.5rem 0.75rem;
|
|
736
|
-
border-radius: 0.375rem;
|
|
737
|
-
background-color: #0f172a;
|
|
738
|
-
border: 1px solid #334155;
|
|
739
|
-
color: #f8fafc;
|
|
740
|
-
font-size: 0.875rem;
|
|
741
|
-
outline: none;
|
|
742
|
-
transition: border-color 0.2s ease;
|
|
743
|
-
}
|
|
744
|
-
.rx-input:focus { border-color: #03c8bf; }
|
|
745
|
-
|
|
746
|
-
.rx-select {
|
|
747
|
-
position: relative;
|
|
748
|
-
width: 100%;
|
|
749
|
-
border-radius: 0.375rem;
|
|
750
|
-
background-color: #0f172a;
|
|
751
|
-
border: 1px solid #334155;
|
|
752
|
-
color: #f8fafc;
|
|
753
|
-
font-size: 0.875rem;
|
|
754
|
-
cursor: pointer;
|
|
755
|
-
outline: none;
|
|
756
|
-
}
|
|
757
|
-
.rx-select-trigger {
|
|
758
|
-
display: flex;
|
|
759
|
-
justify-content: space-between;
|
|
760
|
-
align-items: center;
|
|
761
|
-
padding: 0.5rem 0.75rem;
|
|
762
|
-
}
|
|
763
|
-
.rx-select-dropdown {
|
|
764
|
-
position: absolute;
|
|
765
|
-
top: 100%;
|
|
766
|
-
left: 0; right: 0;
|
|
767
|
-
margin-top: 0.25rem;
|
|
768
|
-
background-color: #1e293b;
|
|
769
|
-
border: 1px solid #334155;
|
|
770
|
-
border-radius: 0.375rem;
|
|
771
|
-
list-style: none;
|
|
772
|
-
padding: 0.25rem 0;
|
|
773
|
-
z-index: 100;
|
|
774
|
-
}
|
|
775
|
-
.rx-select-option {
|
|
776
|
-
padding: 0.5rem 0.75rem;
|
|
777
|
-
}
|
|
778
|
-
.rx-select-option:hover, .rx-select-option.selected {
|
|
779
|
-
background-color: rgba(3, 200, 191, 0.15);
|
|
780
|
-
color: #03c8bf;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.rx-avatar {
|
|
784
|
-
position: relative;
|
|
785
|
-
display: inline-flex;
|
|
786
|
-
align-items: center;
|
|
787
|
-
justify-content: center;
|
|
788
|
-
border-radius: 9999px;
|
|
789
|
-
background-color: #334155;
|
|
790
|
-
color: #f8fafc;
|
|
791
|
-
font-weight: 600;
|
|
792
|
-
overflow: hidden;
|
|
793
|
-
}
|
|
794
|
-
.rx-avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
|
|
795
|
-
.rx-avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
|
|
796
|
-
.rx-avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
|
|
797
|
-
.rx-avatar-img { width: 100%; height: 100%; object-fit: cover; }
|
|
798
|
-
.rx-avatar-status {
|
|
799
|
-
position: absolute;
|
|
800
|
-
bottom: 0; right: 0;
|
|
801
|
-
width: 0.625rem; height: 0.625rem;
|
|
802
|
-
border-radius: 9999px;
|
|
803
|
-
border: 2px solid #0f172a;
|
|
804
|
-
}
|
|
805
|
-
.rx-status-online { background-color: #10b981; }
|
|
806
|
-
.rx-status-offline { background-color: #64748b; }
|
|
807
|
-
|
|
808
|
-
.rx-alert {
|
|
809
|
-
padding: 0.875rem 1rem;
|
|
810
|
-
border-radius: 0.375rem;
|
|
811
|
-
display: flex;
|
|
812
|
-
flex-direction: column;
|
|
813
|
-
gap: 0.25rem;
|
|
814
|
-
position: relative;
|
|
815
|
-
}
|
|
816
|
-
.rx-alert-info { background-color: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
|
|
817
|
-
.rx-alert-success { background-color: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }
|
|
818
|
-
.rx-alert-warning { background-color: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde047; }
|
|
819
|
-
.rx-alert-danger { background-color: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
|
|
820
|
-
.rx-alert-title { font-weight: 600; font-size: 0.9375rem; }
|
|
821
|
-
|
|
822
|
-
.rx-accordion {
|
|
823
|
-
border: 1px solid #334155;
|
|
824
|
-
border-radius: 0.375rem;
|
|
825
|
-
overflow: hidden;
|
|
826
|
-
}
|
|
827
|
-
.rx-accordion-header {
|
|
828
|
-
width: 100%;
|
|
829
|
-
padding: 0.75rem 1rem;
|
|
830
|
-
background-color: #1e293b;
|
|
831
|
-
color: #f8fafc;
|
|
832
|
-
display: flex;
|
|
833
|
-
justify-content: space-between;
|
|
834
|
-
align-items: center;
|
|
835
|
-
border: none;
|
|
836
|
-
cursor: pointer;
|
|
837
|
-
}
|
|
838
|
-
.rx-accordion-body {
|
|
839
|
-
padding: 1rem;
|
|
840
|
-
background-color: #0f172a;
|
|
841
|
-
color: #cbd5e1;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
.rx-switch {
|
|
845
|
-
position: relative;
|
|
846
|
-
width: 2.75rem;
|
|
847
|
-
height: 1.5rem;
|
|
848
|
-
border-radius: 9999px;
|
|
849
|
-
background-color: #334155;
|
|
850
|
-
border: none;
|
|
851
|
-
cursor: pointer;
|
|
852
|
-
transition: background-color 0.2s ease;
|
|
853
|
-
padding: 0.125rem;
|
|
854
|
-
}
|
|
855
|
-
.rx-switch.checked { background-color: #03c8bf; }
|
|
856
|
-
.rx-switch-thumb {
|
|
857
|
-
display: block;
|
|
858
|
-
width: 1.25rem;
|
|
859
|
-
height: 1.25rem;
|
|
860
|
-
border-radius: 9999px;
|
|
861
|
-
background-color: #ffffff;
|
|
862
|
-
transition: transform 0.2s ease;
|
|
863
|
-
}
|
|
864
|
-
.rx-switch.checked .rx-switch-thumb { transform: translateX(1.25rem); }
|
|
865
|
-
|
|
866
|
-
.rx-skeleton {
|
|
867
|
-
background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
|
|
868
|
-
background-size: 200% 100%;
|
|
869
|
-
animation: rxShimmer 1.5s infinite;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
.rx-kbd {
|
|
873
|
-
display: inline-block;
|
|
874
|
-
padding: 0.125rem 0.375rem;
|
|
875
|
-
font-size: 0.75rem;
|
|
876
|
-
font-family: monospace;
|
|
877
|
-
background-color: #1e293b;
|
|
878
|
-
border: 1px solid #475569;
|
|
879
|
-
border-radius: 0.25rem;
|
|
880
|
-
color: #e2e8f0;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
.rx-divider {
|
|
884
|
-
display: flex;
|
|
885
|
-
align-items: center;
|
|
886
|
-
margin: 1rem 0;
|
|
887
|
-
}
|
|
888
|
-
.rx-divider-horizontal { border-bottom: 1px solid #334155; width: 100%; }
|
|
889
|
-
.rx-divider-label { padding: 0 0.5rem; color: #94a3b8; font-size: 0.75rem; }
|
|
890
|
-
|
|
891
|
-
.rx-modal-backdrop {
|
|
892
|
-
position: fixed;
|
|
893
|
-
top: 0; left: 0; right: 0; bottom: 0;
|
|
894
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
895
|
-
display: flex;
|
|
896
|
-
align-items: center;
|
|
897
|
-
justify-content: center;
|
|
898
|
-
z-index: 9999;
|
|
899
|
-
}
|
|
900
|
-
.rx-modal-content {
|
|
901
|
-
background-color: #1e293b;
|
|
902
|
-
border-radius: 0.5rem;
|
|
903
|
-
padding: 1.5rem;
|
|
904
|
-
max-width: 500px;
|
|
905
|
-
width: 90%;
|
|
906
|
-
border: 1px solid #334155;
|
|
907
|
-
color: #f8fafc;
|
|
908
|
-
}
|
|
685
|
+
const uiPrimitiveStyles = `
|
|
686
|
+
.rx-btn {
|
|
687
|
+
display: inline-flex;
|
|
688
|
+
align-items: center;
|
|
689
|
+
justify-content: center;
|
|
690
|
+
padding: 0.5rem 1rem;
|
|
691
|
+
font-size: 0.875rem;
|
|
692
|
+
font-weight: 500;
|
|
693
|
+
border-radius: 0.375rem;
|
|
694
|
+
cursor: pointer;
|
|
695
|
+
transition: all 0.2s ease-in-out;
|
|
696
|
+
border: 1px solid transparent;
|
|
697
|
+
}
|
|
698
|
+
.rx-btn-primary { background-color: #03c8bf; color: #0f172a; border-color: #03c8bf; }
|
|
699
|
+
.rx-btn-primary:hover { background-color: #02b3ab; }
|
|
700
|
+
.rx-btn-secondary { background-color: #334155; color: #f8fafc; border-color: #334155; }
|
|
701
|
+
.rx-btn-secondary:hover { background-color: #475569; }
|
|
702
|
+
.rx-btn-outline { background-color: transparent; color: #03c8bf; border-color: #03c8bf; }
|
|
703
|
+
.rx-btn-outline:hover { background-color: rgba(3, 200, 191, 0.1); }
|
|
704
|
+
.rx-btn-ghost { background-color: transparent; color: #cbd5e1; border-color: transparent; }
|
|
705
|
+
.rx-btn-ghost:hover { background-color: rgba(255, 255, 255, 0.08); }
|
|
706
|
+
.rx-btn-sm { padding: 0.25rem 0.625rem; font-size: 0.75rem; }
|
|
707
|
+
.rx-btn-md { padding: 0.5rem 1rem; font-size: 0.875rem; }
|
|
708
|
+
.rx-btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
|
|
709
|
+
|
|
710
|
+
.rx-card {
|
|
711
|
+
background-color: #1e293b;
|
|
712
|
+
border-radius: 0.5rem;
|
|
713
|
+
padding: 1.25rem;
|
|
714
|
+
border: 1px solid #334155;
|
|
715
|
+
color: #f8fafc;
|
|
716
|
+
}
|
|
717
|
+
.rx-card-glass {
|
|
718
|
+
background: rgba(30, 41, 59, 0.7);
|
|
719
|
+
backdrop-filter: blur(12px);
|
|
720
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.rx-badge {
|
|
724
|
+
display: inline-flex;
|
|
725
|
+
align-items: center;
|
|
726
|
+
padding: 0.125rem 0.5rem;
|
|
727
|
+
border-radius: 9999px;
|
|
728
|
+
font-size: 0.75rem;
|
|
729
|
+
font-weight: 600;
|
|
730
|
+
}
|
|
731
|
+
.rx-badge-default { background-color: #334155; color: #e2e8f0; }
|
|
732
|
+
.rx-badge-success { background-color: rgba(16, 185, 129, 0.2); color: #34d399; }
|
|
733
|
+
.rx-badge-warning { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }
|
|
734
|
+
.rx-badge-danger { background-color: rgba(239, 68, 68, 0.2); color: #f87171; }
|
|
735
|
+
.rx-badge-info { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }
|
|
736
|
+
|
|
737
|
+
.rx-input {
|
|
738
|
+
width: 100%;
|
|
739
|
+
padding: 0.5rem 0.75rem;
|
|
740
|
+
border-radius: 0.375rem;
|
|
741
|
+
background-color: #0f172a;
|
|
742
|
+
border: 1px solid #334155;
|
|
743
|
+
color: #f8fafc;
|
|
744
|
+
font-size: 0.875rem;
|
|
745
|
+
outline: none;
|
|
746
|
+
transition: border-color 0.2s ease;
|
|
747
|
+
}
|
|
748
|
+
.rx-input:focus { border-color: #03c8bf; }
|
|
749
|
+
|
|
750
|
+
.rx-select {
|
|
751
|
+
position: relative;
|
|
752
|
+
width: 100%;
|
|
753
|
+
border-radius: 0.375rem;
|
|
754
|
+
background-color: #0f172a;
|
|
755
|
+
border: 1px solid #334155;
|
|
756
|
+
color: #f8fafc;
|
|
757
|
+
font-size: 0.875rem;
|
|
758
|
+
cursor: pointer;
|
|
759
|
+
outline: none;
|
|
760
|
+
}
|
|
761
|
+
.rx-select-trigger {
|
|
762
|
+
display: flex;
|
|
763
|
+
justify-content: space-between;
|
|
764
|
+
align-items: center;
|
|
765
|
+
padding: 0.5rem 0.75rem;
|
|
766
|
+
}
|
|
767
|
+
.rx-select-dropdown {
|
|
768
|
+
position: absolute;
|
|
769
|
+
top: 100%;
|
|
770
|
+
left: 0; right: 0;
|
|
771
|
+
margin-top: 0.25rem;
|
|
772
|
+
background-color: #1e293b;
|
|
773
|
+
border: 1px solid #334155;
|
|
774
|
+
border-radius: 0.375rem;
|
|
775
|
+
list-style: none;
|
|
776
|
+
padding: 0.25rem 0;
|
|
777
|
+
z-index: 100;
|
|
778
|
+
}
|
|
779
|
+
.rx-select-option {
|
|
780
|
+
padding: 0.5rem 0.75rem;
|
|
781
|
+
}
|
|
782
|
+
.rx-select-option:hover, .rx-select-option.selected {
|
|
783
|
+
background-color: rgba(3, 200, 191, 0.15);
|
|
784
|
+
color: #03c8bf;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.rx-avatar {
|
|
788
|
+
position: relative;
|
|
789
|
+
display: inline-flex;
|
|
790
|
+
align-items: center;
|
|
791
|
+
justify-content: center;
|
|
792
|
+
border-radius: 9999px;
|
|
793
|
+
background-color: #334155;
|
|
794
|
+
color: #f8fafc;
|
|
795
|
+
font-weight: 600;
|
|
796
|
+
overflow: hidden;
|
|
797
|
+
}
|
|
798
|
+
.rx-avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
|
|
799
|
+
.rx-avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
|
|
800
|
+
.rx-avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
|
|
801
|
+
.rx-avatar-img { width: 100%; height: 100%; object-fit: cover; }
|
|
802
|
+
.rx-avatar-status {
|
|
803
|
+
position: absolute;
|
|
804
|
+
bottom: 0; right: 0;
|
|
805
|
+
width: 0.625rem; height: 0.625rem;
|
|
806
|
+
border-radius: 9999px;
|
|
807
|
+
border: 2px solid #0f172a;
|
|
808
|
+
}
|
|
809
|
+
.rx-status-online { background-color: #10b981; }
|
|
810
|
+
.rx-status-offline { background-color: #64748b; }
|
|
811
|
+
|
|
812
|
+
.rx-alert {
|
|
813
|
+
padding: 0.875rem 1rem;
|
|
814
|
+
border-radius: 0.375rem;
|
|
815
|
+
display: flex;
|
|
816
|
+
flex-direction: column;
|
|
817
|
+
gap: 0.25rem;
|
|
818
|
+
position: relative;
|
|
819
|
+
}
|
|
820
|
+
.rx-alert-info { background-color: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
|
|
821
|
+
.rx-alert-success { background-color: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }
|
|
822
|
+
.rx-alert-warning { background-color: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde047; }
|
|
823
|
+
.rx-alert-danger { background-color: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
|
|
824
|
+
.rx-alert-title { font-weight: 600; font-size: 0.9375rem; }
|
|
825
|
+
|
|
826
|
+
.rx-accordion {
|
|
827
|
+
border: 1px solid #334155;
|
|
828
|
+
border-radius: 0.375rem;
|
|
829
|
+
overflow: hidden;
|
|
830
|
+
}
|
|
831
|
+
.rx-accordion-header {
|
|
832
|
+
width: 100%;
|
|
833
|
+
padding: 0.75rem 1rem;
|
|
834
|
+
background-color: #1e293b;
|
|
835
|
+
color: #f8fafc;
|
|
836
|
+
display: flex;
|
|
837
|
+
justify-content: space-between;
|
|
838
|
+
align-items: center;
|
|
839
|
+
border: none;
|
|
840
|
+
cursor: pointer;
|
|
841
|
+
}
|
|
842
|
+
.rx-accordion-body {
|
|
843
|
+
padding: 1rem;
|
|
844
|
+
background-color: #0f172a;
|
|
845
|
+
color: #cbd5e1;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.rx-switch {
|
|
849
|
+
position: relative;
|
|
850
|
+
width: 2.75rem;
|
|
851
|
+
height: 1.5rem;
|
|
852
|
+
border-radius: 9999px;
|
|
853
|
+
background-color: #334155;
|
|
854
|
+
border: none;
|
|
855
|
+
cursor: pointer;
|
|
856
|
+
transition: background-color 0.2s ease;
|
|
857
|
+
padding: 0.125rem;
|
|
858
|
+
}
|
|
859
|
+
.rx-switch.checked { background-color: #03c8bf; }
|
|
860
|
+
.rx-switch-thumb {
|
|
861
|
+
display: block;
|
|
862
|
+
width: 1.25rem;
|
|
863
|
+
height: 1.25rem;
|
|
864
|
+
border-radius: 9999px;
|
|
865
|
+
background-color: #ffffff;
|
|
866
|
+
transition: transform 0.2s ease;
|
|
867
|
+
}
|
|
868
|
+
.rx-switch.checked .rx-switch-thumb { transform: translateX(1.25rem); }
|
|
869
|
+
|
|
870
|
+
.rx-skeleton {
|
|
871
|
+
background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
|
|
872
|
+
background-size: 200% 100%;
|
|
873
|
+
animation: rxShimmer 1.5s infinite;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.rx-kbd {
|
|
877
|
+
display: inline-block;
|
|
878
|
+
padding: 0.125rem 0.375rem;
|
|
879
|
+
font-size: 0.75rem;
|
|
880
|
+
font-family: monospace;
|
|
881
|
+
background-color: #1e293b;
|
|
882
|
+
border: 1px solid #475569;
|
|
883
|
+
border-radius: 0.25rem;
|
|
884
|
+
color: #e2e8f0;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.rx-divider {
|
|
888
|
+
display: flex;
|
|
889
|
+
align-items: center;
|
|
890
|
+
margin: 1rem 0;
|
|
891
|
+
}
|
|
892
|
+
.rx-divider-horizontal { border-bottom: 1px solid #334155; width: 100%; }
|
|
893
|
+
.rx-divider-label { padding: 0 0.5rem; color: #94a3b8; font-size: 0.75rem; }
|
|
894
|
+
|
|
895
|
+
.rx-modal-backdrop {
|
|
896
|
+
position: fixed;
|
|
897
|
+
top: 0; left: 0; right: 0; bottom: 0;
|
|
898
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
899
|
+
display: flex;
|
|
900
|
+
align-items: center;
|
|
901
|
+
justify-content: center;
|
|
902
|
+
z-index: 9999;
|
|
903
|
+
}
|
|
904
|
+
.rx-modal-content {
|
|
905
|
+
background-color: #1e293b;
|
|
906
|
+
border-radius: 0.5rem;
|
|
907
|
+
padding: 1.5rem;
|
|
908
|
+
max-width: 500px;
|
|
909
|
+
width: 90%;
|
|
910
|
+
border: 1px solid #334155;
|
|
911
|
+
color: #f8fafc;
|
|
912
|
+
}
|
|
909
913
|
`;
|
|
910
914
|
const resuxUiModule = {
|
|
911
915
|
defaults: {
|