@metropolle/design-system 1.2025.0-8.28.1647 → 1.2025.0-8.31.144
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/css/components.css +500 -1
- package/dist/react/components/react/Modal/ConfirmDialog.d.ts +17 -0
- package/dist/react/components/react/Modal/ConfirmDialog.d.ts.map +1 -0
- package/dist/react/components/react/Modal/Modal.d.ts +12 -0
- package/dist/react/components/react/Modal/Modal.d.ts.map +1 -0
- package/dist/react/components/react/Modal/ModalBody.d.ts +9 -0
- package/dist/react/components/react/Modal/ModalBody.d.ts.map +1 -0
- package/dist/react/components/react/Modal/ModalFooter.d.ts +8 -0
- package/dist/react/components/react/Modal/ModalFooter.d.ts.map +1 -0
- package/dist/react/components/react/Modal/ModalHeader.d.ts +11 -0
- package/dist/react/components/react/Modal/ModalHeader.d.ts.map +1 -0
- package/dist/react/components/react/Modal/index.d.ts +6 -0
- package/dist/react/components/react/Modal/index.d.ts.map +1 -0
- package/dist/react/components/react/index.d.ts +5 -0
- package/dist/react/components/react/index.d.ts.map +1 -1
- package/dist/react/index.d.ts +5 -0
- package/dist/react/index.esm.js +84 -2
- package/dist/react/index.esm.js.map +1 -1
- package/dist/react/index.js +87 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/css/components.css
CHANGED
|
@@ -42,6 +42,150 @@
|
|
|
42
42
|
width: 100%;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/* =========================
|
|
46
|
+
Modal Styles
|
|
47
|
+
========================= */
|
|
48
|
+
|
|
49
|
+
/* Modal overlay styles */
|
|
50
|
+
.mds-modal-overlay,
|
|
51
|
+
.modal-overlay {
|
|
52
|
+
position: fixed !important;
|
|
53
|
+
top: 0 !important;
|
|
54
|
+
left: 0 !important;
|
|
55
|
+
right: 0 !important;
|
|
56
|
+
bottom: 0 !important;
|
|
57
|
+
background-color: transparent !important;
|
|
58
|
+
backdrop-filter: blur(4px) !important;
|
|
59
|
+
z-index: 9999 !important;
|
|
60
|
+
display: flex !important;
|
|
61
|
+
align-items: center !important;
|
|
62
|
+
justify-content: center !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Modal card styles - Liquid Glass Effect */
|
|
66
|
+
.mds-modal-overlay .mds-modal-card,
|
|
67
|
+
.modal-overlay .mds-modal-card {
|
|
68
|
+
background: rgba(255, 255, 255, 0.3) !important;
|
|
69
|
+
backdrop-filter: blur(20px) !important;
|
|
70
|
+
-webkit-backdrop-filter: blur(20px) !important;
|
|
71
|
+
border: 1px solid rgba(255, 255, 255, 0.4) !important;
|
|
72
|
+
box-shadow:
|
|
73
|
+
0 8px 32px rgba(0, 0, 0, 0.2) !important,
|
|
74
|
+
0 0 0 1px rgba(255, 255, 255, 0.2) !important,
|
|
75
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
|
|
76
|
+
color: var(--text-primary) !important;
|
|
77
|
+
min-width: 320px !important;
|
|
78
|
+
max-width: 600px !important;
|
|
79
|
+
width: 90vw !important;
|
|
80
|
+
border-radius: 16px !important;
|
|
81
|
+
position: relative !important;
|
|
82
|
+
overflow: hidden !important;
|
|
83
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
84
|
+
transform: translate(0, 0) !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Inner glow effect */
|
|
88
|
+
.mds-modal-overlay .mds-modal-card::before,
|
|
89
|
+
.modal-overlay .mds-modal-card::before {
|
|
90
|
+
content: '' !important;
|
|
91
|
+
position: absolute !important;
|
|
92
|
+
top: 0 !important;
|
|
93
|
+
left: 0 !important;
|
|
94
|
+
right: 0 !important;
|
|
95
|
+
bottom: 0 !important;
|
|
96
|
+
background: linear-gradient(
|
|
97
|
+
135deg,
|
|
98
|
+
rgba(255, 255, 255, 0.1) 0%,
|
|
99
|
+
rgba(255, 255, 255, 0.05) 50%,
|
|
100
|
+
rgba(255, 255, 255, 0.02) 100%
|
|
101
|
+
) !important;
|
|
102
|
+
border-radius: 16px !important;
|
|
103
|
+
pointer-events: none !important;
|
|
104
|
+
z-index: -1 !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Border glow */
|
|
108
|
+
.mds-modal-overlay .mds-modal-card::after,
|
|
109
|
+
.modal-overlay .mds-modal-card::after {
|
|
110
|
+
content: '' !important;
|
|
111
|
+
position: absolute !important;
|
|
112
|
+
top: -1px !important;
|
|
113
|
+
left: -1px !important;
|
|
114
|
+
right: -1px !important;
|
|
115
|
+
bottom: -1px !important;
|
|
116
|
+
background: linear-gradient(
|
|
117
|
+
45deg,
|
|
118
|
+
rgba(255, 255, 255, 0.3),
|
|
119
|
+
rgba(255, 255, 255, 0.1),
|
|
120
|
+
rgba(255, 255, 255, 0.05),
|
|
121
|
+
rgba(255, 255, 255, 0.1),
|
|
122
|
+
rgba(255, 255, 255, 0.3)
|
|
123
|
+
) !important;
|
|
124
|
+
border-radius: 16px !important;
|
|
125
|
+
z-index: -2 !important;
|
|
126
|
+
opacity: 0.6 !important;
|
|
127
|
+
animation: mdsLiquidBorder 3s ease-in-out infinite !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@keyframes mdsLiquidBorder {
|
|
131
|
+
0%, 100% { opacity: 0.6; transform: scale(1); }
|
|
132
|
+
50% { opacity: 0.8; transform: scale(1.02); }
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* No hover lift or color change */
|
|
136
|
+
.mds-modal-overlay .mds-modal-card,
|
|
137
|
+
.mds-modal-overlay .mds-modal-card:hover,
|
|
138
|
+
.modal-overlay .mds-modal-card,
|
|
139
|
+
.modal-overlay .mds-modal-card:hover {
|
|
140
|
+
transform: none !important;
|
|
141
|
+
}
|
|
142
|
+
.mds-modal-overlay .mds-modal-card:hover::after,
|
|
143
|
+
.modal-overlay .mds-modal-card:hover::after {
|
|
144
|
+
opacity: 0.6 !important;
|
|
145
|
+
animation-duration: 3s !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Light theme */
|
|
149
|
+
html[data-theme="light"] .mds-modal-overlay .mds-modal-card,
|
|
150
|
+
html[data-theme="light"] .modal-overlay .mds-modal-card {
|
|
151
|
+
background: rgba(255, 255, 255, 0.35) !important;
|
|
152
|
+
border: 1px solid rgba(255, 255, 255, 0.5) !important;
|
|
153
|
+
box-shadow:
|
|
154
|
+
0 8px 32px rgba(0, 0, 0, 0.15) !important,
|
|
155
|
+
0 0 0 1px rgba(255, 255, 255, 0.3) !important,
|
|
156
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Dark theme */
|
|
160
|
+
html[data-theme="dark"] .mds-modal-overlay .mds-modal-card,
|
|
161
|
+
html:not([data-theme]) .mds-modal-overlay .mds-modal-card,
|
|
162
|
+
html[data-theme="dark"] .modal-overlay .mds-modal-card,
|
|
163
|
+
html:not([data-theme]) .modal-overlay .mds-modal-card {
|
|
164
|
+
background: rgba(30, 41, 59, 0.5) !important;
|
|
165
|
+
border: 1px solid rgba(255, 255, 255, 0.35) !important;
|
|
166
|
+
box-shadow:
|
|
167
|
+
0 8px 32px rgba(0, 0, 0, 0.5) !important,
|
|
168
|
+
0 0 0 1px rgba(255, 255, 255, 0.25) !important,
|
|
169
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Header button sizing + alignment */
|
|
173
|
+
.mds-modal-header > button[aria-label="Fechar"] {
|
|
174
|
+
font-size: 1rem !important;
|
|
175
|
+
line-height: 1 !important;
|
|
176
|
+
padding: 4px 8px !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Responsive modal */
|
|
180
|
+
@media (max-width: 768px) {
|
|
181
|
+
.mds-modal-overlay .mds-modal-card,
|
|
182
|
+
.modal-overlay .mds-modal-card {
|
|
183
|
+
min-width: 90vw !important;
|
|
184
|
+
max-width: 95vw !important;
|
|
185
|
+
margin: 20px !important;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
45
189
|
/* Button Sizes */
|
|
46
190
|
.mds-button--sm {
|
|
47
191
|
padding: var(--mds-spacing-sm) var(--mds-spacing-md);
|
|
@@ -472,6 +616,103 @@
|
|
|
472
616
|
--mds-dashboard-control-option-color: #1a1a1a;
|
|
473
617
|
}
|
|
474
618
|
|
|
619
|
+
/* Form Input Styles */
|
|
620
|
+
.mds-input {
|
|
621
|
+
position: relative;
|
|
622
|
+
display: block;
|
|
623
|
+
width: 100%;
|
|
624
|
+
padding: var(--mds-spacing-md) var(--mds-spacing-md);
|
|
625
|
+
font-family: var(--mds-typography-fontFamily-brand);
|
|
626
|
+
font-size: var(--mds-typography-fontSize-base);
|
|
627
|
+
font-weight: var(--mds-typography-fontWeight-normal);
|
|
628
|
+
line-height: var(--mds-typography-lineHeight-normal);
|
|
629
|
+
color: var(--mds-color-text-primary);
|
|
630
|
+
background-color: var(--mds-color-background-primary);
|
|
631
|
+
border: 2px solid var(--mds-color-border-medium);
|
|
632
|
+
border-radius: var(--mds-spacing-borderRadius-md);
|
|
633
|
+
outline: none;
|
|
634
|
+
transition: var(--mds-effects-transition-normal);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.mds-input:focus {
|
|
638
|
+
border-color: var(--mds-color-brand-primary);
|
|
639
|
+
box-shadow: 0 0 0 3px rgba(0, 111, 238, 0.1);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.mds-input:disabled {
|
|
643
|
+
opacity: var(--mds-effects-opacity-disabled);
|
|
644
|
+
cursor: not-allowed;
|
|
645
|
+
background-color: var(--mds-color-background-secondary);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.mds-input--error {
|
|
649
|
+
border-color: #dc2626;
|
|
650
|
+
background-color: #fef2f2;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.mds-input--error:focus {
|
|
654
|
+
border-color: #dc2626;
|
|
655
|
+
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/* Textarea specific styles */
|
|
659
|
+
.mds-textarea {
|
|
660
|
+
resize: vertical;
|
|
661
|
+
min-height: 80px;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/* Select specific styles */
|
|
665
|
+
.mds-select {
|
|
666
|
+
-webkit-appearance: none;
|
|
667
|
+
-moz-appearance: none;
|
|
668
|
+
appearance: none;
|
|
669
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
|
|
670
|
+
background-position: right var(--mds-spacing-md) center;
|
|
671
|
+
background-repeat: no-repeat;
|
|
672
|
+
background-size: 16px;
|
|
673
|
+
padding-right: calc(var(--mds-spacing-md) + 24px);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.mds-select:disabled {
|
|
677
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/* Label styles */
|
|
681
|
+
.mds-label {
|
|
682
|
+
display: block;
|
|
683
|
+
font-family: var(--mds-typography-fontFamily-brand);
|
|
684
|
+
font-size: var(--mds-typography-fontSize-sm);
|
|
685
|
+
font-weight: var(--mds-typography-fontWeight-medium);
|
|
686
|
+
color: var(--mds-color-text-primary);
|
|
687
|
+
margin-bottom: var(--mds-spacing-xs);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.mds-label--required::after {
|
|
691
|
+
content: " *";
|
|
692
|
+
color: #dc2626;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* Field group */
|
|
696
|
+
.mds-field {
|
|
697
|
+
margin-bottom: var(--mds-spacing-lg);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.mds-field-error {
|
|
701
|
+
display: block;
|
|
702
|
+
font-family: var(--mds-typography-fontFamily-brand);
|
|
703
|
+
font-size: var(--mds-typography-fontSize-sm);
|
|
704
|
+
color: #dc2626;
|
|
705
|
+
margin-top: var(--mds-spacing-xs);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.mds-field-help {
|
|
709
|
+
display: block;
|
|
710
|
+
font-family: var(--mds-typography-fontFamily-brand);
|
|
711
|
+
font-size: var(--mds-typography-fontSize-sm);
|
|
712
|
+
color: var(--mds-color-text-secondary);
|
|
713
|
+
margin-top: var(--mds-spacing-xs);
|
|
714
|
+
}
|
|
715
|
+
|
|
475
716
|
/* Dashboard Layout Utilities */
|
|
476
717
|
.mds-dashboard-grid {
|
|
477
718
|
display: grid;
|
|
@@ -497,7 +738,265 @@
|
|
|
497
738
|
gap: var(--mds-spacing-xl);
|
|
498
739
|
}
|
|
499
740
|
|
|
741
|
+
/* ========================================
|
|
742
|
+
Layout Utility Classes - @back optimization
|
|
743
|
+
======================================== */
|
|
744
|
+
|
|
745
|
+
/* Flexbox utilities */
|
|
746
|
+
.mds-flex {
|
|
747
|
+
display: flex;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.mds-flex-col {
|
|
751
|
+
display: flex;
|
|
752
|
+
flex-direction: column;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.mds-flex-center {
|
|
756
|
+
display: flex;
|
|
757
|
+
align-items: center;
|
|
758
|
+
justify-content: center;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.mds-flex-between {
|
|
762
|
+
display: flex;
|
|
763
|
+
align-items: center;
|
|
764
|
+
justify-content: space-between;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.mds-flex-start {
|
|
768
|
+
display: flex;
|
|
769
|
+
align-items: flex-start;
|
|
770
|
+
justify-content: flex-start;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.mds-flex-end {
|
|
774
|
+
display: flex;
|
|
775
|
+
align-items: center;
|
|
776
|
+
justify-content: flex-end;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/* Spacing utilities */
|
|
780
|
+
.mds-gap-xs { gap: var(--mds-spacing-xs); }
|
|
781
|
+
.mds-gap-sm { gap: var(--mds-spacing-sm); }
|
|
782
|
+
.mds-gap-md { gap: var(--mds-spacing-md); }
|
|
783
|
+
.mds-gap-lg { gap: var(--mds-spacing-lg); }
|
|
784
|
+
.mds-gap-xl { gap: var(--mds-spacing-xl); }
|
|
785
|
+
|
|
786
|
+
/* Padding utilities */
|
|
787
|
+
.mds-p-xs { padding: var(--mds-spacing-xs); }
|
|
788
|
+
.mds-p-sm { padding: var(--mds-spacing-sm); }
|
|
789
|
+
.mds-p-md { padding: var(--mds-spacing-md); }
|
|
790
|
+
.mds-p-lg { padding: var(--mds-spacing-lg); }
|
|
791
|
+
.mds-p-xl { padding: var(--mds-spacing-xl); }
|
|
792
|
+
|
|
793
|
+
/* Margin utilities */
|
|
794
|
+
.mds-m-xs { margin: var(--mds-spacing-xs); }
|
|
795
|
+
.mds-m-sm { margin: var(--mds-spacing-sm); }
|
|
796
|
+
.mds-m-md { margin: var(--mds-spacing-md); }
|
|
797
|
+
.mds-m-lg { margin: var(--mds-spacing-lg); }
|
|
798
|
+
.mds-m-xl { margin: var(--mds-spacing-xl); }
|
|
799
|
+
|
|
800
|
+
/* Margin bottom utilities */
|
|
801
|
+
.mds-mb-xs { margin-bottom: var(--mds-spacing-xs); }
|
|
802
|
+
.mds-mb-sm { margin-bottom: var(--mds-spacing-sm); }
|
|
803
|
+
.mds-mb-md { margin-bottom: var(--mds-spacing-md); }
|
|
804
|
+
.mds-mb-lg { margin-bottom: var(--mds-spacing-lg); }
|
|
805
|
+
.mds-mb-xl { margin-bottom: var(--mds-spacing-xl); }
|
|
806
|
+
|
|
807
|
+
/* ========================================
|
|
808
|
+
Dashboard Layout Classes - @back optimization
|
|
809
|
+
======================================== */
|
|
810
|
+
|
|
811
|
+
/* Dashboard container */
|
|
812
|
+
.mds-dashboard-container {
|
|
813
|
+
display: flex;
|
|
814
|
+
min-height: 100vh;
|
|
815
|
+
font-family: var(--mds-typography-fontFamily-brand);
|
|
816
|
+
transition: all 0.3s ease;
|
|
817
|
+
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
|
|
818
|
+
background-attachment: fixed;
|
|
819
|
+
background-repeat: no-repeat;
|
|
820
|
+
background-size: 100% 100%;
|
|
821
|
+
color: #ffffff;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/* Light theme dashboard container */
|
|
825
|
+
html[data-theme="light"] .mds-dashboard-container {
|
|
826
|
+
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
|
|
827
|
+
color: #1a1a1a;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/* Dashboard main content */
|
|
831
|
+
.mds-dashboard-main {
|
|
832
|
+
flex: 1;
|
|
833
|
+
margin-left: 260px;
|
|
834
|
+
margin-top: 60px;
|
|
835
|
+
display: flex;
|
|
836
|
+
flex-direction: column;
|
|
837
|
+
min-height: calc(100vh - 60px);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/* Page header */
|
|
841
|
+
.mds-page-header {
|
|
842
|
+
padding: var(--mds-spacing-lg) var(--mds-spacing-xl) var(--mds-spacing-md) var(--mds-spacing-xl);
|
|
843
|
+
backdrop-filter: blur(10px);
|
|
844
|
+
-webkit-backdrop-filter: blur(10px);
|
|
845
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/* Dark theme page header */
|
|
849
|
+
html[data-theme="dark"] .mds-page-header {
|
|
850
|
+
background-color: rgba(30, 41, 59, 0.4);
|
|
851
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/* Light theme page header */
|
|
855
|
+
html[data-theme="light"] .mds-page-header {
|
|
856
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
857
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/* Page title */
|
|
861
|
+
.mds-page-title {
|
|
862
|
+
margin: 0 0 var(--mds-spacing-xs) 0;
|
|
863
|
+
font-size: var(--mds-typography-fontSize-xl);
|
|
864
|
+
font-weight: var(--mds-typography-fontWeight-semibold);
|
|
865
|
+
color: var(--mds-colors-color-text-primary);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/* Page description */
|
|
869
|
+
.mds-page-description {
|
|
870
|
+
margin: 0;
|
|
871
|
+
font-size: var(--mds-typography-fontSize-sm);
|
|
872
|
+
color: var(--mds-colors-color-text-secondary);
|
|
873
|
+
line-height: var(--mds-typography-lineHeight-normal);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/* Main content area */
|
|
877
|
+
.mds-main-content {
|
|
878
|
+
flex: 1;
|
|
879
|
+
padding: var(--mds-spacing-xl);
|
|
880
|
+
overflow-y: auto;
|
|
881
|
+
position: relative;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/* ========================================
|
|
885
|
+
Navbar Classes - @back optimization
|
|
886
|
+
======================================== */
|
|
887
|
+
|
|
888
|
+
/* Fixed navbar */
|
|
889
|
+
.mds-navbar {
|
|
890
|
+
position: fixed;
|
|
891
|
+
top: 0;
|
|
892
|
+
left: 0;
|
|
893
|
+
right: 0;
|
|
894
|
+
height: 60px;
|
|
895
|
+
z-index: 1000;
|
|
896
|
+
backdrop-filter: blur(10px);
|
|
897
|
+
-webkit-backdrop-filter: blur(10px);
|
|
898
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
899
|
+
transition: all 0.3s ease;
|
|
900
|
+
font-family: var(--mds-typography-fontFamily-brand);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/* Dark theme navbar */
|
|
904
|
+
html[data-theme="dark"] .mds-navbar {
|
|
905
|
+
background-color: rgba(30, 41, 59, 0.95);
|
|
906
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/* Light theme navbar */
|
|
910
|
+
html[data-theme="light"] .mds-navbar {
|
|
911
|
+
background-color: rgba(255, 255, 255, 0.95);
|
|
912
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/* Navbar content container */
|
|
916
|
+
.mds-navbar-content {
|
|
917
|
+
display: flex;
|
|
918
|
+
align-items: center;
|
|
919
|
+
justify-content: space-between;
|
|
920
|
+
height: 100%;
|
|
921
|
+
max-width: 100%;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/* Navbar brand section */
|
|
925
|
+
.mds-navbar-brand {
|
|
926
|
+
display: flex;
|
|
927
|
+
align-items: center;
|
|
928
|
+
gap: var(--mds-spacing-md);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/* Navbar actions section */
|
|
932
|
+
.mds-navbar-actions {
|
|
933
|
+
display: flex;
|
|
934
|
+
align-items: center;
|
|
935
|
+
gap: var(--mds-spacing-md);
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/* User info in navbar */
|
|
939
|
+
.mds-navbar-user {
|
|
940
|
+
font-size: var(--mds-typography-fontSize-sm);
|
|
941
|
+
color: var(--mds-colors-color-text-secondary);
|
|
942
|
+
margin-right: var(--mds-spacing-sm);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/* Sidebar-width brand section */
|
|
946
|
+
.mds-navbar-brand-section {
|
|
947
|
+
width: 260px;
|
|
948
|
+
display: flex;
|
|
949
|
+
align-items: center;
|
|
950
|
+
justify-content: center;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/* Center user info section */
|
|
954
|
+
.mds-navbar-center {
|
|
955
|
+
flex: 1;
|
|
956
|
+
display: flex;
|
|
957
|
+
justify-content: center;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
/* User info badge */
|
|
961
|
+
.mds-navbar-user-badge {
|
|
962
|
+
display: flex;
|
|
963
|
+
align-items: center;
|
|
964
|
+
gap: var(--mds-spacing-sm);
|
|
965
|
+
font-size: var(--mds-typography-fontSize-sm);
|
|
966
|
+
padding: var(--mds-spacing-sm) var(--mds-spacing-md);
|
|
967
|
+
border-radius: 20px;
|
|
968
|
+
border: 1px solid;
|
|
969
|
+
font-weight: var(--mds-typography-fontWeight-medium);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/* Dark theme user badge */
|
|
973
|
+
html[data-theme="dark"] .mds-navbar-user-badge {
|
|
974
|
+
color: #888;
|
|
975
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
976
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/* Light theme user badge */
|
|
980
|
+
html[data-theme="light"] .mds-navbar-user-badge {
|
|
981
|
+
color: #666;
|
|
982
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
983
|
+
border-color: rgba(0, 0, 0, 0.1);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/* User badge elements */
|
|
987
|
+
.mds-navbar-user-badge .user-name {
|
|
988
|
+
font-weight: var(--mds-typography-fontWeight-medium);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.mds-navbar-user-badge .user-separator {
|
|
992
|
+
opacity: 0.7;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.mds-navbar-user-badge .user-email {
|
|
996
|
+
opacity: 0.8;
|
|
997
|
+
}
|
|
998
|
+
|
|
500
999
|
/* Dark mode support (future) */
|
|
501
1000
|
@media (prefers-color-scheme: dark) {
|
|
502
1001
|
/* Enhanced styles for dark mode when implemented */
|
|
503
|
-
}
|
|
1002
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ConfirmDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
onConfirm: () => void | Promise<void>;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
tone?: 'warning' | 'danger' | 'info' | 'success';
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
disableOverlayClose?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function ConfirmDialog({ open, onClose, title, description, confirmText, cancelText, onConfirm, loading, tone, icon, disableOverlayClose }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default ConfirmDialog;
|
|
17
|
+
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/ConfirmDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACjD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AASD,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,OAAO,EACP,KAAK,EACL,WAAW,EACX,WAAyB,EACzB,UAAuB,EACvB,SAAS,EACT,OAAe,EACf,IAAgB,EAChB,IAAI,EACJ,mBAAmB,EACpB,EAAE,kBAAkB,2CA0BpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
closeOnOverlay?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
export declare function Modal({ open, onClose, closeOnOverlay, children, className, style }: ModalProps): React.ReactPortal | null;
|
|
11
|
+
export default Modal;
|
|
12
|
+
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,KAAK,CAAC,EACpB,IAAI,EACJ,OAAO,EACP,cAAqB,EACrB,QAAQ,EACR,SAAS,EACT,KAAK,EACN,EAAE,UAAU,4BAyEZ;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModalBodyProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function ModalBody({ children, style, className }: ModalBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ModalBody;
|
|
9
|
+
//# sourceMappingURL=ModalBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalBody.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/ModalBody.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,2CAMvE;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModalFooterProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
align?: 'start' | 'center' | 'end';
|
|
5
|
+
}
|
|
6
|
+
export declare function ModalFooter({ children, align }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ModalFooter;
|
|
8
|
+
//# sourceMappingURL=ModalFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/ModalFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CACpC;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAa,EAAE,EAAE,gBAAgB,2CAOxE;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModalHeaderProps {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
closeAriaLabel?: string;
|
|
7
|
+
align?: 'center' | 'start';
|
|
8
|
+
}
|
|
9
|
+
export declare function ModalHeader({ title, icon, onClose, closeAriaLabel, align }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default ModalHeader;
|
|
11
|
+
//# sourceMappingURL=ModalHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,cAAyB,EAAE,KAAgB,EAAE,EAAE,gBAAgB,2CAsDlH;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -5,4 +5,9 @@ export { cn } from '../../utils/cn';
|
|
|
5
5
|
export * from './GlassCard';
|
|
6
6
|
export * from './Typography';
|
|
7
7
|
export * from './Button';
|
|
8
|
+
export * from './Modal/Modal';
|
|
9
|
+
export * from './Modal/ModalHeader';
|
|
10
|
+
export * from './Modal/ModalBody';
|
|
11
|
+
export * from './Modal/ModalFooter';
|
|
12
|
+
export * from './Modal/ConfirmDialog';
|
|
8
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/react/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,UAAU,EACV,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAGpD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAGpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/react/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,UAAU,EACV,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAGpD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAGpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -5,4 +5,9 @@ export { cn } from '../../utils/cn';
|
|
|
5
5
|
export * from './GlassCard';
|
|
6
6
|
export * from './Typography';
|
|
7
7
|
export * from './Button';
|
|
8
|
+
export * from './Modal/Modal';
|
|
9
|
+
export * from './Modal/ModalHeader';
|
|
10
|
+
export * from './Modal/ModalBody';
|
|
11
|
+
export * from './Modal/ModalFooter';
|
|
12
|
+
export * from './Modal/ConfirmDialog';
|
|
8
13
|
//# sourceMappingURL=index.d.ts.map
|