resuxjs 0.3.2 → 0.3.4
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 +150 -892
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/compiler/implementation.js +12 -4
- package/dist/compiler/index.js.map +1 -1
- package/dist/core/config.d.ts +9 -0
- package/dist/core/config.js +16 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/hooks.js +4 -1
- package/dist/core/hooks.js.map +1 -1
- package/dist/create.js +34 -1
- package/dist/create.js.map +1 -1
- package/dist/deploy/common.js +9 -5
- package/dist/deploy/common.js.map +1 -1
- package/dist/deploy/vercel.js +35 -9
- package/dist/deploy/vercel.js.map +1 -1
- package/dist/halal-core/ai/classifyRuntimeContent.d.ts +3 -0
- package/dist/halal-core/ai/classifyRuntimeContent.js +123 -0
- package/dist/halal-core/ai/classifyRuntimeContent.js.map +1 -0
- package/dist/halal-core/index.d.ts +2 -0
- package/dist/halal-core/index.js +2 -0
- package/dist/halal-core/index.js.map +1 -1
- package/dist/halal-core/runtime/guard.d.ts +19 -0
- package/dist/halal-core/runtime/guard.js +203 -0
- package/dist/halal-core/runtime/guard.js.map +1 -0
- package/dist/halal-core/runtime/index.d.ts +4 -0
- package/dist/halal-core/runtime/index.js +5 -0
- package/dist/halal-core/runtime/index.js.map +1 -0
- package/dist/halal-core/runtime/reviewedMemory.d.ts +5 -0
- package/dist/halal-core/runtime/reviewedMemory.js +131 -0
- package/dist/halal-core/runtime/reviewedMemory.js.map +1 -0
- package/dist/halal-core/runtime/serializeRuntimeContent.d.ts +13 -0
- package/dist/halal-core/runtime/serializeRuntimeContent.js +170 -0
- package/dist/halal-core/runtime/serializeRuntimeContent.js.map +1 -0
- package/dist/halal-core/runtime/types.d.ts +57 -0
- package/dist/halal-core/runtime/types.js +2 -0
- package/dist/halal-core/runtime/types.js.map +1 -0
- package/dist/halal.d.ts +1 -0
- package/dist/halal.js +2 -0
- package/dist/halal.js.map +1 -0
- package/dist/i18n/index.js +3 -3
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/shared.js +15 -11
- package/dist/i18n/shared.js.map +1 -1
- package/dist/icons/index.d.ts +6 -6
- package/dist/kit/index.js +6 -11
- package/dist/kit/index.js.map +1 -1
- package/dist/reactivity/reactive.js +5 -1
- package/dist/reactivity/reactive.js.map +1 -1
- package/dist/reactivity/scheduler.js +13 -1
- package/dist/reactivity/scheduler.js.map +1 -1
- package/dist/runtime/index.js +334 -42
- package/dist/runtime/index.js.map +1 -1
- package/dist/ui/index.d.ts +29 -16
- package/dist/ui/index.js +274 -258
- package/dist/ui/index.js.map +1 -1
- package/package.json +2 -2
package/dist/ui/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent, h, onMounted, ref } from "vue";
|
|
2
|
-
import { defineResuxModule } from "../kit/index.js";
|
|
3
2
|
export function defineUiTokens(tokens) {
|
|
4
3
|
return tokens;
|
|
5
4
|
}
|
|
@@ -80,6 +79,7 @@ export function useAnimate(target, options = {}) {
|
|
|
80
79
|
}
|
|
81
80
|
return null;
|
|
82
81
|
}
|
|
82
|
+
const animeDirectiveState = new WeakMap();
|
|
83
83
|
export const vAnime = {
|
|
84
84
|
mounted(el, binding) {
|
|
85
85
|
if (typeof window === "undefined" || isReducedMotion())
|
|
@@ -87,22 +87,34 @@ export const vAnime = {
|
|
|
87
87
|
const config = typeof binding.value === "string"
|
|
88
88
|
? { type: binding.value }
|
|
89
89
|
: binding.value || { type: "fade-up" };
|
|
90
|
-
|
|
90
|
+
const state = {};
|
|
91
|
+
animeDirectiveState.set(el, state);
|
|
91
92
|
const triggerAnimation = () => {
|
|
92
|
-
useAnimate(el, config);
|
|
93
|
+
const animation = useAnimate(el, { ...config, fill: config.fill ?? "both" });
|
|
94
|
+
if (animation) {
|
|
95
|
+
state.animation = animation;
|
|
96
|
+
}
|
|
93
97
|
};
|
|
94
98
|
if ("IntersectionObserver" in window) {
|
|
95
99
|
const observer = new IntersectionObserver((entries) => {
|
|
96
100
|
if (entries.some((entry) => entry.isIntersecting)) {
|
|
97
101
|
triggerAnimation();
|
|
98
102
|
observer.unobserve(el);
|
|
103
|
+
state.observer = undefined;
|
|
99
104
|
}
|
|
100
105
|
}, { rootMargin: "50px" });
|
|
106
|
+
state.observer = observer;
|
|
101
107
|
observer.observe(el);
|
|
102
108
|
}
|
|
103
109
|
else {
|
|
104
110
|
triggerAnimation();
|
|
105
111
|
}
|
|
112
|
+
},
|
|
113
|
+
unmounted(el) {
|
|
114
|
+
const state = animeDirectiveState.get(el);
|
|
115
|
+
state?.observer?.disconnect();
|
|
116
|
+
state?.animation?.cancel();
|
|
117
|
+
animeDirectiveState.delete(el);
|
|
106
118
|
}
|
|
107
119
|
};
|
|
108
120
|
export const vAnimate = vAnime;
|
|
@@ -291,6 +303,12 @@ export const RxSelect = defineComponent({
|
|
|
291
303
|
};
|
|
292
304
|
}
|
|
293
305
|
});
|
|
306
|
+
function formatDatePickerValue(value) {
|
|
307
|
+
if (value instanceof Date) {
|
|
308
|
+
return Number.isFinite(value.getTime()) ? value.toISOString().split("T")[0] : "";
|
|
309
|
+
}
|
|
310
|
+
return String(value || "");
|
|
311
|
+
}
|
|
294
312
|
export const RxDatePicker = defineComponent({
|
|
295
313
|
name: "RxDatePicker",
|
|
296
314
|
props: {
|
|
@@ -300,15 +318,12 @@ export const RxDatePicker = defineComponent({
|
|
|
300
318
|
},
|
|
301
319
|
emits: ["update:modelValue"],
|
|
302
320
|
setup(props, { emit, attrs }) {
|
|
303
|
-
const formattedValue = typeof props.modelValue === "object" && props.modelValue instanceof Date
|
|
304
|
-
? props.modelValue.toISOString().split("T")[0]
|
|
305
|
-
: String(props.modelValue || "");
|
|
306
321
|
return () => {
|
|
307
322
|
const classes = props.unstyled ? (attrs.class || "") : ["rx-input", "rx-datepicker", attrs.class].filter(Boolean).join(" ");
|
|
308
323
|
return h("input", {
|
|
309
324
|
...attrs,
|
|
310
325
|
type: "date",
|
|
311
|
-
value:
|
|
326
|
+
value: formatDatePickerValue(props.modelValue),
|
|
312
327
|
placeholder: props.placeholder,
|
|
313
328
|
class: classes,
|
|
314
329
|
onInput: (e) => emit("update:modelValue", e.target.value)
|
|
@@ -641,258 +656,258 @@ export const ResuxSkeleton = RxSkeleton;
|
|
|
641
656
|
export const ResuxDivider = RxDivider;
|
|
642
657
|
export const ResuxKbd = RxKbd;
|
|
643
658
|
export const ResuxModal = RxModal;
|
|
644
|
-
const uiStyles = `
|
|
645
|
-
@keyframes rxFadeUp {
|
|
646
|
-
from { opacity: 0; transform: translate3d(0, 30px, 0); }
|
|
647
|
-
to { opacity: 1; transform: translate3d(0, 0, 0); }
|
|
648
|
-
}
|
|
649
|
-
@keyframes rxScaleIn {
|
|
650
|
-
from { opacity: 0; transform: scale3d(0.92, 0.92, 1); }
|
|
651
|
-
to { opacity: 1; transform: scale3d(1, 1, 1); }
|
|
652
|
-
}
|
|
653
|
-
@keyframes rxPulseGlow {
|
|
654
|
-
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(3, 200, 191, 0.4); }
|
|
655
|
-
50% { transform: scale(1.03); box-shadow: 0 0 20px 10px rgba(3, 200, 191, 0); }
|
|
656
|
-
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(3, 200, 191, 0); }
|
|
657
|
-
}
|
|
658
|
-
@keyframes rxShimmer {
|
|
659
|
-
0% { background-position: -200% 0; }
|
|
660
|
-
100% { background-position: 200% 0; }
|
|
661
|
-
}
|
|
662
|
-
.rx-animate-fade-up { animation: rxFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
663
|
-
.rx-animate-scale-in { animation: rxScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
664
|
-
.rx-animate-pulse { animation: rxPulseGlow 2s infinite; }
|
|
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; }
|
|
665
680
|
`;
|
|
666
|
-
const uiPrimitiveStyles = `
|
|
667
|
-
.rx-btn {
|
|
668
|
-
display: inline-flex;
|
|
669
|
-
align-items: center;
|
|
670
|
-
justify-content: center;
|
|
671
|
-
padding: 0.5rem 1rem;
|
|
672
|
-
font-size: 0.875rem;
|
|
673
|
-
font-weight: 500;
|
|
674
|
-
border-radius: 0.375rem;
|
|
675
|
-
cursor: pointer;
|
|
676
|
-
transition: all 0.2s ease-in-out;
|
|
677
|
-
border: 1px solid transparent;
|
|
678
|
-
}
|
|
679
|
-
.rx-btn-primary { background-color: #03c8bf; color: #0f172a; border-color: #03c8bf; }
|
|
680
|
-
.rx-btn-primary:hover { background-color: #02b3ab; }
|
|
681
|
-
.rx-btn-secondary { background-color: #334155; color: #f8fafc; border-color: #334155; }
|
|
682
|
-
.rx-btn-secondary:hover { background-color: #475569; }
|
|
683
|
-
.rx-btn-outline { background-color: transparent; color: #03c8bf; border-color: #03c8bf; }
|
|
684
|
-
.rx-btn-outline:hover { background-color: rgba(3, 200, 191, 0.1); }
|
|
685
|
-
.rx-btn-ghost { background-color: transparent; color: #cbd5e1; border-color: transparent; }
|
|
686
|
-
.rx-btn-ghost:hover { background-color: rgba(255, 255, 255, 0.08); }
|
|
687
|
-
.rx-btn-sm { padding: 0.25rem 0.625rem; font-size: 0.75rem; }
|
|
688
|
-
.rx-btn-md { padding: 0.5rem 1rem; font-size: 0.875rem; }
|
|
689
|
-
.rx-btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
|
|
690
|
-
|
|
691
|
-
.rx-card {
|
|
692
|
-
background-color: #1e293b;
|
|
693
|
-
border-radius: 0.5rem;
|
|
694
|
-
padding: 1.25rem;
|
|
695
|
-
border: 1px solid #334155;
|
|
696
|
-
color: #f8fafc;
|
|
697
|
-
}
|
|
698
|
-
.rx-card-glass {
|
|
699
|
-
background: rgba(30, 41, 59, 0.7);
|
|
700
|
-
backdrop-filter: blur(12px);
|
|
701
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
.rx-badge {
|
|
705
|
-
display: inline-flex;
|
|
706
|
-
align-items: center;
|
|
707
|
-
padding: 0.125rem 0.5rem;
|
|
708
|
-
border-radius: 9999px;
|
|
709
|
-
font-size: 0.75rem;
|
|
710
|
-
font-weight: 600;
|
|
711
|
-
}
|
|
712
|
-
.rx-badge-default { background-color: #334155; color: #e2e8f0; }
|
|
713
|
-
.rx-badge-success { background-color: rgba(16, 185, 129, 0.2); color: #34d399; }
|
|
714
|
-
.rx-badge-warning { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }
|
|
715
|
-
.rx-badge-danger { background-color: rgba(239, 68, 68, 0.2); color: #f87171; }
|
|
716
|
-
.rx-badge-info { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }
|
|
717
|
-
|
|
718
|
-
.rx-input {
|
|
719
|
-
width: 100%;
|
|
720
|
-
padding: 0.5rem 0.75rem;
|
|
721
|
-
border-radius: 0.375rem;
|
|
722
|
-
background-color: #0f172a;
|
|
723
|
-
border: 1px solid #334155;
|
|
724
|
-
color: #f8fafc;
|
|
725
|
-
font-size: 0.875rem;
|
|
726
|
-
outline: none;
|
|
727
|
-
transition: border-color 0.2s ease;
|
|
728
|
-
}
|
|
729
|
-
.rx-input:focus { border-color: #03c8bf; }
|
|
730
|
-
|
|
731
|
-
.rx-select {
|
|
732
|
-
position: relative;
|
|
733
|
-
width: 100%;
|
|
734
|
-
border-radius: 0.375rem;
|
|
735
|
-
background-color: #0f172a;
|
|
736
|
-
border: 1px solid #334155;
|
|
737
|
-
color: #f8fafc;
|
|
738
|
-
font-size: 0.875rem;
|
|
739
|
-
cursor: pointer;
|
|
740
|
-
outline: none;
|
|
741
|
-
}
|
|
742
|
-
.rx-select-trigger {
|
|
743
|
-
display: flex;
|
|
744
|
-
justify-content: space-between;
|
|
745
|
-
align-items: center;
|
|
746
|
-
padding: 0.5rem 0.75rem;
|
|
747
|
-
}
|
|
748
|
-
.rx-select-dropdown {
|
|
749
|
-
position: absolute;
|
|
750
|
-
top: 100%;
|
|
751
|
-
left: 0; right: 0;
|
|
752
|
-
margin-top: 0.25rem;
|
|
753
|
-
background-color: #1e293b;
|
|
754
|
-
border: 1px solid #334155;
|
|
755
|
-
border-radius: 0.375rem;
|
|
756
|
-
list-style: none;
|
|
757
|
-
padding: 0.25rem 0;
|
|
758
|
-
z-index: 100;
|
|
759
|
-
}
|
|
760
|
-
.rx-select-option {
|
|
761
|
-
padding: 0.5rem 0.75rem;
|
|
762
|
-
}
|
|
763
|
-
.rx-select-option:hover, .rx-select-option.selected {
|
|
764
|
-
background-color: rgba(3, 200, 191, 0.15);
|
|
765
|
-
color: #03c8bf;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
.rx-avatar {
|
|
769
|
-
position: relative;
|
|
770
|
-
display: inline-flex;
|
|
771
|
-
align-items: center;
|
|
772
|
-
justify-content: center;
|
|
773
|
-
border-radius: 9999px;
|
|
774
|
-
background-color: #334155;
|
|
775
|
-
color: #f8fafc;
|
|
776
|
-
font-weight: 600;
|
|
777
|
-
overflow: hidden;
|
|
778
|
-
}
|
|
779
|
-
.rx-avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
|
|
780
|
-
.rx-avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
|
|
781
|
-
.rx-avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
|
|
782
|
-
.rx-avatar-img { width: 100%; height: 100%; object-fit: cover; }
|
|
783
|
-
.rx-avatar-status {
|
|
784
|
-
position: absolute;
|
|
785
|
-
bottom: 0; right: 0;
|
|
786
|
-
width: 0.625rem; height: 0.625rem;
|
|
787
|
-
border-radius: 9999px;
|
|
788
|
-
border: 2px solid #0f172a;
|
|
789
|
-
}
|
|
790
|
-
.rx-status-online { background-color: #10b981; }
|
|
791
|
-
.rx-status-offline { background-color: #64748b; }
|
|
792
|
-
|
|
793
|
-
.rx-alert {
|
|
794
|
-
padding: 0.875rem 1rem;
|
|
795
|
-
border-radius: 0.375rem;
|
|
796
|
-
display: flex;
|
|
797
|
-
flex-direction: column;
|
|
798
|
-
gap: 0.25rem;
|
|
799
|
-
position: relative;
|
|
800
|
-
}
|
|
801
|
-
.rx-alert-info { background-color: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
|
|
802
|
-
.rx-alert-success { background-color: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }
|
|
803
|
-
.rx-alert-warning { background-color: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde047; }
|
|
804
|
-
.rx-alert-danger { background-color: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
|
|
805
|
-
.rx-alert-title { font-weight: 600; font-size: 0.9375rem; }
|
|
806
|
-
|
|
807
|
-
.rx-accordion {
|
|
808
|
-
border: 1px solid #334155;
|
|
809
|
-
border-radius: 0.375rem;
|
|
810
|
-
overflow: hidden;
|
|
811
|
-
}
|
|
812
|
-
.rx-accordion-header {
|
|
813
|
-
width: 100%;
|
|
814
|
-
padding: 0.75rem 1rem;
|
|
815
|
-
background-color: #1e293b;
|
|
816
|
-
color: #f8fafc;
|
|
817
|
-
display: flex;
|
|
818
|
-
justify-content: space-between;
|
|
819
|
-
align-items: center;
|
|
820
|
-
border: none;
|
|
821
|
-
cursor: pointer;
|
|
822
|
-
}
|
|
823
|
-
.rx-accordion-body {
|
|
824
|
-
padding: 1rem;
|
|
825
|
-
background-color: #0f172a;
|
|
826
|
-
color: #cbd5e1;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
.rx-switch {
|
|
830
|
-
position: relative;
|
|
831
|
-
width: 2.75rem;
|
|
832
|
-
height: 1.5rem;
|
|
833
|
-
border-radius: 9999px;
|
|
834
|
-
background-color: #334155;
|
|
835
|
-
border: none;
|
|
836
|
-
cursor: pointer;
|
|
837
|
-
transition: background-color 0.2s ease;
|
|
838
|
-
padding: 0.125rem;
|
|
839
|
-
}
|
|
840
|
-
.rx-switch.checked { background-color: #03c8bf; }
|
|
841
|
-
.rx-switch-thumb {
|
|
842
|
-
display: block;
|
|
843
|
-
width: 1.25rem;
|
|
844
|
-
height: 1.25rem;
|
|
845
|
-
border-radius: 9999px;
|
|
846
|
-
background-color: #ffffff;
|
|
847
|
-
transition: transform 0.2s ease;
|
|
848
|
-
}
|
|
849
|
-
.rx-switch.checked .rx-switch-thumb { transform: translateX(1.25rem); }
|
|
850
|
-
|
|
851
|
-
.rx-skeleton {
|
|
852
|
-
background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
|
|
853
|
-
background-size: 200% 100%;
|
|
854
|
-
animation: rxShimmer 1.5s infinite;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
.rx-kbd {
|
|
858
|
-
display: inline-block;
|
|
859
|
-
padding: 0.125rem 0.375rem;
|
|
860
|
-
font-size: 0.75rem;
|
|
861
|
-
font-family: monospace;
|
|
862
|
-
background-color: #1e293b;
|
|
863
|
-
border: 1px solid #475569;
|
|
864
|
-
border-radius: 0.25rem;
|
|
865
|
-
color: #e2e8f0;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
.rx-divider {
|
|
869
|
-
display: flex;
|
|
870
|
-
align-items: center;
|
|
871
|
-
margin: 1rem 0;
|
|
872
|
-
}
|
|
873
|
-
.rx-divider-horizontal { border-bottom: 1px solid #334155; width: 100%; }
|
|
874
|
-
.rx-divider-label { padding: 0 0.5rem; color: #94a3b8; font-size: 0.75rem; }
|
|
875
|
-
|
|
876
|
-
.rx-modal-backdrop {
|
|
877
|
-
position: fixed;
|
|
878
|
-
top: 0; left: 0; right: 0; bottom: 0;
|
|
879
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
880
|
-
display: flex;
|
|
881
|
-
align-items: center;
|
|
882
|
-
justify-content: center;
|
|
883
|
-
z-index: 9999;
|
|
884
|
-
}
|
|
885
|
-
.rx-modal-content {
|
|
886
|
-
background-color: #1e293b;
|
|
887
|
-
border-radius: 0.5rem;
|
|
888
|
-
padding: 1.5rem;
|
|
889
|
-
max-width: 500px;
|
|
890
|
-
width: 90%;
|
|
891
|
-
border: 1px solid #334155;
|
|
892
|
-
color: #f8fafc;
|
|
893
|
-
}
|
|
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
|
+
}
|
|
894
909
|
`;
|
|
895
|
-
|
|
910
|
+
const resuxUiModule = {
|
|
896
911
|
defaults: {
|
|
897
912
|
css: [],
|
|
898
913
|
tokens: {},
|
|
@@ -934,5 +949,6 @@ export default defineResuxModule({
|
|
|
934
949
|
}
|
|
935
950
|
});
|
|
936
951
|
}
|
|
937
|
-
}
|
|
952
|
+
};
|
|
953
|
+
export default resuxUiModule;
|
|
938
954
|
//# sourceMappingURL=index.js.map
|