@axzydev/axzy_ui_system 1.2.11 → 1.2.13
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 +21 -9
- package/dist/index.cjs +294 -257
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +300 -263
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/avatar/avatar.tsx +1 -1
- package/src/components/calendar/calendar.tsx +1 -1
- package/src/components/card/card.tsx +11 -8
- package/src/components/data-table/dataTable.tsx +3 -3
- package/src/components/dialog/dialog.tsx +2 -2
- package/src/components/divider/divider.tsx +1 -1
- package/src/components/dropfile/dropfile.doc.mdx +15 -0
- package/src/components/dropfile/dropfile.props.ts +13 -0
- package/src/components/dropfile/dropfile.stories.tsx +21 -0
- package/src/components/dropfile/dropfile.tsx +90 -27
- package/src/components/form-builder/fieldRenderer.tsx +3 -3
- package/src/components/input/input.tsx +7 -7
- package/src/components/loader/loader.tsx +1 -1
- package/src/components/navbar/navbar.tsx +10 -10
- package/src/components/pagination/pagination.tsx +11 -11
- package/src/components/search-select/search-select.tsx +8 -8
- package/src/components/searchTable/components/EditableCell.tsx +1 -1
- package/src/components/searchTable/components/PaginationControls.tsx +2 -2
- package/src/components/searchTable/components/PaginationInfo.tsx +1 -1
- package/src/components/searchTable/components/SearchAndSortBar.tsx +1 -1
- package/src/components/searchTable/components/SearchInput.tsx +1 -1
- package/src/components/searchTable/components/SortButton.tsx +3 -3
- package/src/components/searchTable/components/TableHeader.tsx +1 -1
- package/src/components/searchTable/components/TableRow.tsx +4 -4
- package/src/components/searchTable/searchTable.tsx +2 -2
- package/src/components/select/select.tsx +2 -2
- package/src/components/sidebar/sidebar.tsx +15 -15
- package/src/components/slider/slider.tsx +3 -3
- package/src/components/stepper/stepper.tsx +5 -5
- package/src/components/table/table.tsx +3 -3
- package/src/components/tabs/tabs.tsx +4 -4
- package/src/components/textarea/textarea.tsx +3 -3
- package/src/components/theme-provider/themeProvider.tsx +32 -32
- package/src/components/time-picker/timePicker.tsx +5 -5
- package/src/components/topbar/topbar.tsx +6 -6
- package/src/index.css +23 -0
- package/src/theme/theme.ts +17 -17
- package/src/utils/styles.ts +5 -5
|
@@ -799,23 +799,23 @@ export default function ITThemeProvider({
|
|
|
799
799
|
color: #cbd5e1;
|
|
800
800
|
}
|
|
801
801
|
.dark .text-slate-800, [data-theme="dark"] .text-slate-800,
|
|
802
|
-
.dark .text-
|
|
802
|
+
.dark .text-secondary-800, [data-theme="dark"] .text-secondary-800 {
|
|
803
803
|
color: #f8fafc !important;
|
|
804
804
|
}
|
|
805
805
|
.dark .text-slate-700, [data-theme="dark"] .text-slate-700,
|
|
806
|
-
.dark .text-
|
|
806
|
+
.dark .text-secondary-700, [data-theme="dark"] .text-secondary-700 {
|
|
807
807
|
color: #cbd5e1 !important;
|
|
808
808
|
}
|
|
809
809
|
.dark .text-slate-600, [data-theme="dark"] .text-slate-600,
|
|
810
|
-
.dark .text-
|
|
810
|
+
.dark .text-secondary-600, [data-theme="dark"] .text-secondary-600 {
|
|
811
811
|
color: #cbd5e1 !important;
|
|
812
812
|
}
|
|
813
813
|
.dark .text-slate-500, [data-theme="dark"] .text-slate-500,
|
|
814
|
-
.dark .text-
|
|
814
|
+
.dark .text-secondary-500, [data-theme="dark"] .text-secondary-500 {
|
|
815
815
|
color: #94a3b8 !important;
|
|
816
816
|
}
|
|
817
817
|
.dark .text-slate-400, [data-theme="dark"] .text-slate-400,
|
|
818
|
-
.dark .text-
|
|
818
|
+
.dark .text-secondary-400, [data-theme="dark"] .text-secondary-400 {
|
|
819
819
|
color: #64748b !important;
|
|
820
820
|
}
|
|
821
821
|
|
|
@@ -823,25 +823,25 @@ export default function ITThemeProvider({
|
|
|
823
823
|
background-color: var(--card-bg, #111827) !important;
|
|
824
824
|
}
|
|
825
825
|
.dark .bg-slate-50, [data-theme="dark"] .bg-slate-50,
|
|
826
|
-
.dark .bg-
|
|
826
|
+
.dark .bg-secondary-50, [data-theme="dark"] .bg-secondary-50 {
|
|
827
827
|
background-color: #1f2937 !important;
|
|
828
828
|
}
|
|
829
829
|
.dark .border-slate-100, [data-theme="dark"] .border-slate-100,
|
|
830
|
-
.dark .border-
|
|
830
|
+
.dark .border-secondary-100, [data-theme="dark"] .border-secondary-100,
|
|
831
831
|
.dark .border-slate-200, [data-theme="dark"] .border-slate-200,
|
|
832
|
-
.dark .border-
|
|
832
|
+
.dark .border-secondary-200, [data-theme="dark"] .border-secondary-200 {
|
|
833
833
|
border-color: #374151 !important;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
-
.dark .bg-
|
|
836
|
+
.dark .bg-secondary-100, [data-theme="dark"] .bg-secondary-100,
|
|
837
837
|
.dark .bg-slate-100, [data-theme="dark"] .bg-slate-100 {
|
|
838
838
|
background-color: #1f2937 !important;
|
|
839
839
|
}
|
|
840
|
-
.dark .border-
|
|
840
|
+
.dark .border-secondary-300, [data-theme="dark"] .border-secondary-300,
|
|
841
841
|
.dark .border-slate-300, [data-theme="dark"] .border-slate-300 {
|
|
842
842
|
border-color: #4b5563 !important;
|
|
843
843
|
}
|
|
844
|
-
.dark .bg-
|
|
844
|
+
.dark .bg-secondary-200, [data-theme="dark"] .bg-secondary-200,
|
|
845
845
|
.dark .bg-slate-200, [data-theme="dark"] .bg-slate-200 {
|
|
846
846
|
background-color: #374151 !important;
|
|
847
847
|
}
|
|
@@ -909,23 +909,23 @@ export default function ITThemeProvider({
|
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
[data-theme="light"] .text-slate-800,
|
|
912
|
-
[data-theme="light"] .text-
|
|
912
|
+
[data-theme="light"] .text-secondary-800 {
|
|
913
913
|
color: #1e293b !important;
|
|
914
914
|
}
|
|
915
915
|
[data-theme="light"] .text-slate-700,
|
|
916
|
-
[data-theme="light"] .text-
|
|
916
|
+
[data-theme="light"] .text-secondary-700 {
|
|
917
917
|
color: #334155 !important;
|
|
918
918
|
}
|
|
919
919
|
[data-theme="light"] .text-slate-600,
|
|
920
|
-
[data-theme="light"] .text-
|
|
920
|
+
[data-theme="light"] .text-secondary-600 {
|
|
921
921
|
color: #475569 !important;
|
|
922
922
|
}
|
|
923
923
|
[data-theme="light"] .text-slate-500,
|
|
924
|
-
[data-theme="light"] .text-
|
|
924
|
+
[data-theme="light"] .text-secondary-500 {
|
|
925
925
|
color: #64748b !important;
|
|
926
926
|
}
|
|
927
927
|
[data-theme="light"] .text-slate-400,
|
|
928
|
-
[data-theme="light"] .text-
|
|
928
|
+
[data-theme="light"] .text-secondary-400 {
|
|
929
929
|
color: #94a3b8 !important;
|
|
930
930
|
}
|
|
931
931
|
|
|
@@ -933,24 +933,24 @@ export default function ITThemeProvider({
|
|
|
933
933
|
background-color: #ffffff !important;
|
|
934
934
|
}
|
|
935
935
|
[data-theme="light"] .bg-slate-50,
|
|
936
|
-
[data-theme="light"] .bg-
|
|
936
|
+
[data-theme="light"] .bg-secondary-50 {
|
|
937
937
|
background-color: #f8fafc !important;
|
|
938
938
|
}
|
|
939
939
|
[data-theme="light"] .border-slate-100,
|
|
940
|
-
[data-theme="light"] .border-
|
|
940
|
+
[data-theme="light"] .border-secondary-100,
|
|
941
941
|
[data-theme="light"] .border-slate-200,
|
|
942
|
-
[data-theme="light"] .border-
|
|
942
|
+
[data-theme="light"] .border-secondary-200 {
|
|
943
943
|
border-color: #e2e8f0 !important;
|
|
944
944
|
}
|
|
945
|
-
[data-theme="light"] .bg-
|
|
945
|
+
[data-theme="light"] .bg-secondary-100,
|
|
946
946
|
[data-theme="light"] .bg-slate-100 {
|
|
947
947
|
background-color: #f1f5f9 !important;
|
|
948
948
|
}
|
|
949
|
-
[data-theme="light"] .border-
|
|
949
|
+
[data-theme="light"] .border-secondary-300,
|
|
950
950
|
[data-theme="light"] .border-slate-300 {
|
|
951
951
|
border-color: #cbd5e1 !important;
|
|
952
952
|
}
|
|
953
|
-
[data-theme="light"] .bg-
|
|
953
|
+
[data-theme="light"] .bg-secondary-200,
|
|
954
954
|
[data-theme="light"] .bg-slate-200 {
|
|
955
955
|
background-color: #e2e8f0 !important;
|
|
956
956
|
}
|
|
@@ -978,13 +978,13 @@ export default function ITThemeProvider({
|
|
|
978
978
|
.hover\\:bg-green-600:hover { background-color: var(--color-success-hover) !important; }
|
|
979
979
|
|
|
980
980
|
/* Danger overrides (red mappings in UI library) */
|
|
981
|
-
.bg-
|
|
982
|
-
.hover\\:bg-
|
|
983
|
-
.focus\\:ring-
|
|
984
|
-
.text-
|
|
985
|
-
.border-
|
|
986
|
-
.bg-
|
|
987
|
-
.hover\\:bg-
|
|
981
|
+
.bg-danger-700 { background-color: var(--color-danger) !important; }
|
|
982
|
+
.hover\\:bg-danger-800:hover { background-color: var(--color-danger-hover) !important; }
|
|
983
|
+
.focus\\:ring-danger-300:focus { --tw-ring-color: var(--color-danger-ring) !important; }
|
|
984
|
+
.text-danger-700 { color: var(--color-danger) !important; }
|
|
985
|
+
.border-danger-700 { border-color: var(--color-danger) !important; }
|
|
986
|
+
.bg-danger-500 { background-color: var(--color-danger) !important; }
|
|
987
|
+
.hover\\:bg-danger-600:hover { background-color: var(--color-danger-hover) !important; }
|
|
988
988
|
|
|
989
989
|
/* Warning overrides (yellow mappings in UI library) */
|
|
990
990
|
.bg-yellow-400 { background-color: var(--color-warning) !important; }
|
|
@@ -1014,12 +1014,12 @@ export default function ITThemeProvider({
|
|
|
1014
1014
|
.border-blue-500 { border-color: var(--color-info) !important; }
|
|
1015
1015
|
|
|
1016
1016
|
/* Secondary elements overrides */
|
|
1017
|
-
button[class*="bg-white"][class*="hover:bg-
|
|
1017
|
+
button[class*="bg-white"][class*="hover:bg-secondary-100"] {
|
|
1018
1018
|
background-color: var(--color-secondary) !important;
|
|
1019
1019
|
border-color: var(--color-secondary-soft-border) !important;
|
|
1020
1020
|
color: #111827 !important;
|
|
1021
1021
|
}
|
|
1022
|
-
button[class*="bg-white"][class*="hover:bg-
|
|
1022
|
+
button[class*="bg-white"][class*="hover:bg-secondary-100"]:hover {
|
|
1023
1023
|
background-color: var(--color-secondary-hover) !important;
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
@@ -1625,7 +1625,7 @@ export default function ITThemeProvider({
|
|
|
1625
1625
|
e.stopPropagation();
|
|
1626
1626
|
handleDeletePreset(preset.name, e);
|
|
1627
1627
|
}}
|
|
1628
|
-
className="absolute top-1.5 right-1.5 opacity-0 group-hover:opacity-100 p-0.5 rounded-md hover:bg-
|
|
1628
|
+
className="absolute top-1.5 right-1.5 opacity-0 group-hover:opacity-100 p-0.5 rounded-md hover:bg-danger-500/10 hover:text-danger-500 text-slate-400 dark:text-slate-500 cursor-pointer transition-all z-10"
|
|
1629
1629
|
title="Eliminar"
|
|
1630
1630
|
>
|
|
1631
1631
|
<MdClose size={12} />
|
|
@@ -227,14 +227,14 @@ export default function ITTimePicker({
|
|
|
227
227
|
{isOpen && !disabled && (
|
|
228
228
|
<div
|
|
229
229
|
ref={dropdownRef}
|
|
230
|
-
className="fixed z-[70] bg-white border border-
|
|
230
|
+
className="fixed z-[70] bg-white border border-secondary-100 shadow-xl rounded-xl w-64 overflow-hidden flex flex-col animate-in fade-in zoom-in-95 duration-200 origin-top it-timepicker-dropdown"
|
|
231
231
|
style={{
|
|
232
232
|
top: `${dropdownPosition.top}px`,
|
|
233
233
|
left: `${dropdownPosition.left}px`,
|
|
234
234
|
}}
|
|
235
235
|
>
|
|
236
|
-
<div className="flex bg-
|
|
237
|
-
<ITText as="div" className="flex-1 text-center py-2 border-r border-
|
|
236
|
+
<div className="flex bg-secondary-50 border-b border-secondary-100 text-xs font-semibold text-secondary-500 uppercase tracking-wider">
|
|
237
|
+
<ITText as="div" className="flex-1 text-center py-2 border-r border-secondary-100">
|
|
238
238
|
Horas
|
|
239
239
|
</ITText>
|
|
240
240
|
<ITText as="div" className="flex-1 text-center py-2">Minutos</ITText>
|
|
@@ -244,7 +244,7 @@ export default function ITTimePicker({
|
|
|
244
244
|
{/* Hours Column */}
|
|
245
245
|
<div
|
|
246
246
|
ref={hoursRef}
|
|
247
|
-
className="flex-1 overflow-y-auto no-scrollbar border-r border-
|
|
247
|
+
className="flex-1 overflow-y-auto no-scrollbar border-r border-secondary-50 scroll-smooth relative"
|
|
248
248
|
>
|
|
249
249
|
<div className="py-2">
|
|
250
250
|
{hoursList.map((h) => {
|
|
@@ -321,7 +321,7 @@ export default function ITTimePicker({
|
|
|
321
321
|
<div className="absolute top-1/2 left-0 right-0 h-10 -mt-5 bg-black/5 pointer-events-none border-y border-black/10 z-10" />
|
|
322
322
|
</div>
|
|
323
323
|
|
|
324
|
-
<div className="p-3 bg-
|
|
324
|
+
<div className="p-3 bg-secondary-50 border-t border-secondary-100 flex justify-end">
|
|
325
325
|
<ITButton
|
|
326
326
|
variant="solid"
|
|
327
327
|
color={color as any}
|
|
@@ -61,8 +61,8 @@ export default function ITTopBar({
|
|
|
61
61
|
className="sticky top-0 z-40 backdrop-blur-md transition-all duration-300"
|
|
62
62
|
style={{
|
|
63
63
|
backgroundColor: "var(--topbar-bg, rgba(255, 255, 255, 0.9))",
|
|
64
|
-
borderBottom: "1px solid var(--topbar-border,
|
|
65
|
-
boxShadow: "
|
|
64
|
+
borderBottom: "1px solid var(--topbar-border, rgba(15, 23, 42, 0.06))",
|
|
65
|
+
boxShadow: "var(--shadow-xs)",
|
|
66
66
|
}}
|
|
67
67
|
>
|
|
68
68
|
<div className="flex items-center justify-between h-[72px] px-6 lg:px-8">
|
|
@@ -105,7 +105,7 @@ export default function ITTopBar({
|
|
|
105
105
|
|
|
106
106
|
{/* Top Navigation Items (Desktop) */}
|
|
107
107
|
{navItems && navItems.length > 0 && (
|
|
108
|
-
<nav className="hidden md:flex ml-8 space-x-1 border-l pl-8" style={{ borderColor: "var(--topbar-border,
|
|
108
|
+
<nav className="hidden md:flex ml-8 space-x-1 border-l pl-8" style={{ borderColor: "var(--topbar-border, rgba(15, 23, 42, 0.06))" }}>
|
|
109
109
|
{navItems.map((item) => (
|
|
110
110
|
<button
|
|
111
111
|
key={item.id}
|
|
@@ -136,7 +136,7 @@ export default function ITTopBar({
|
|
|
136
136
|
<div className="relative">
|
|
137
137
|
<button
|
|
138
138
|
type="button"
|
|
139
|
-
className="flex items-center gap-3 rounded-full pl-2 pr-4 py-1.5 transition-all duration-200 ease-[cubic-bezier(0.2,0,0,1)] border border-transparent hover:border-
|
|
139
|
+
className="flex items-center gap-3 rounded-full pl-2 pr-4 py-1.5 transition-all duration-200 ease-[cubic-bezier(0.2,0,0,1)] border border-transparent hover:border-secondary-200"
|
|
140
140
|
style={{
|
|
141
141
|
backgroundColor: isUserMenuOpen ? "var(--topbar-user-hover, #f1f5f9)" : "transparent",
|
|
142
142
|
}}
|
|
@@ -220,9 +220,9 @@ export default function ITTopBar({
|
|
|
220
220
|
setIsUserMenuOpen(false);
|
|
221
221
|
}}
|
|
222
222
|
className="block w-full text-left px-3 py-2.5 rounded-xl text-[0.875rem] font-medium transition-colors duration-150"
|
|
223
|
-
style={{ color: isDestructive ? '
|
|
223
|
+
style={{ color: isDestructive ? 'var(--color-danger-500)' : "var(--topbar-user-text, #334155)" }}
|
|
224
224
|
onMouseEnter={(e) => {
|
|
225
|
-
e.currentTarget.style.backgroundColor = isDestructive ? '
|
|
225
|
+
e.currentTarget.style.backgroundColor = isDestructive ? 'var(--color-danger-50)' : "var(--topbar-user-item-hover, #f8fafc)";
|
|
226
226
|
}}
|
|
227
227
|
onMouseLeave={(e) => {
|
|
228
228
|
e.currentTarget.style.backgroundColor = "transparent";
|
package/src/index.css
CHANGED
|
@@ -94,6 +94,29 @@
|
|
|
94
94
|
--color-info-800: #075985;
|
|
95
95
|
--color-info-900: #0c4a6e;
|
|
96
96
|
--color-info-950: #082f49;
|
|
97
|
+
|
|
98
|
+
/* Soft-depth radius scale: larger, more consistent rounding across the system */
|
|
99
|
+
--radius-xs: 0.25rem;
|
|
100
|
+
--radius-sm: 0.375rem;
|
|
101
|
+
--radius-md: 0.625rem;
|
|
102
|
+
--radius-lg: 0.875rem;
|
|
103
|
+
--radius-xl: 1.125rem;
|
|
104
|
+
--radius-2xl: 1.5rem;
|
|
105
|
+
--radius-3xl: 2rem;
|
|
106
|
+
|
|
107
|
+
/* Soft-depth shadow scale: cool slate-tinted, low-opacity, multi-layer.
|
|
108
|
+
Overrides Tailwind's default shadow-* tokens system-wide so every
|
|
109
|
+
existing shadow-* usage picks up the new "floating" look with no
|
|
110
|
+
per-component changes. */
|
|
111
|
+
--shadow-2xs: 0 1px 2px 0 rgb(15 23 42 / 0.04);
|
|
112
|
+
--shadow-xs: 0 1px 3px 0 rgb(15 23 42 / 0.05), 0 1px 2px -1px rgb(15 23 42 / 0.04);
|
|
113
|
+
--shadow-sm: 0 2px 6px -1px rgb(15 23 42 / 0.06), 0 1px 3px -1px rgb(15 23 42 / 0.05);
|
|
114
|
+
--shadow-md: 0 6px 16px -4px rgb(15 23 42 / 0.08), 0 3px 6px -3px rgb(15 23 42 / 0.05);
|
|
115
|
+
--shadow-lg: 0 12px 28px -6px rgb(15 23 42 / 0.1), 0 6px 12px -6px rgb(15 23 42 / 0.06);
|
|
116
|
+
--shadow-xl: 0 20px 40px -8px rgb(15 23 42 / 0.12), 0 10px 20px -8px rgb(15 23 42 / 0.06);
|
|
117
|
+
--shadow-2xl: 0 32px 64px -16px rgb(15 23 42 / 0.18);
|
|
118
|
+
--shadow: 0 2px 6px -1px rgb(15 23 42 / 0.06), 0 1px 3px -1px rgb(15 23 42 / 0.05);
|
|
119
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(15 23 42 / 0.04);
|
|
97
120
|
}
|
|
98
121
|
|
|
99
122
|
@keyframes fadeIn {
|
package/src/theme/theme.ts
CHANGED
|
@@ -160,7 +160,7 @@ export const components = {
|
|
|
160
160
|
hover: semanticColors.primary[600],
|
|
161
161
|
active: semanticColors.primary[700],
|
|
162
162
|
focus: `0 0 0 2px ${semanticColors.primary[200]}`,
|
|
163
|
-
borderRadius: '
|
|
163
|
+
borderRadius: 'var(--radius-md)',
|
|
164
164
|
padding: '0.5rem 1rem',
|
|
165
165
|
fontSize: '0.875rem',
|
|
166
166
|
fontWeight: '600',
|
|
@@ -172,7 +172,7 @@ export const components = {
|
|
|
172
172
|
color: '#ffffff',
|
|
173
173
|
hover: semanticColors.secondary[600],
|
|
174
174
|
focus: `0 0 0 2px ${semanticColors.secondary[200]}`,
|
|
175
|
-
borderRadius: '
|
|
175
|
+
borderRadius: 'var(--radius-md)',
|
|
176
176
|
padding: '0.5rem 1rem',
|
|
177
177
|
fontSize: '0.875rem',
|
|
178
178
|
fontWeight: '600',
|
|
@@ -183,7 +183,7 @@ export const components = {
|
|
|
183
183
|
color: '#ffffff',
|
|
184
184
|
hover: semanticColors.success[600],
|
|
185
185
|
focus: `0 0 0 2px ${semanticColors.success[200]}`,
|
|
186
|
-
borderRadius: '
|
|
186
|
+
borderRadius: 'var(--radius-md)',
|
|
187
187
|
},
|
|
188
188
|
|
|
189
189
|
danger: {
|
|
@@ -191,14 +191,14 @@ export const components = {
|
|
|
191
191
|
color: '#ffffff',
|
|
192
192
|
hover: semanticColors.danger[600],
|
|
193
193
|
focus: `0 0 0 2px ${semanticColors.danger[200]}`,
|
|
194
|
-
borderRadius: '
|
|
194
|
+
borderRadius: 'var(--radius-md)',
|
|
195
195
|
},
|
|
196
196
|
|
|
197
197
|
error: {
|
|
198
198
|
backgroundColor: semanticColors.danger[500],
|
|
199
199
|
color: '#ffffff',
|
|
200
200
|
hover: semanticColors.danger[600],
|
|
201
|
-
borderRadius: '
|
|
201
|
+
borderRadius: 'var(--radius-md)',
|
|
202
202
|
},
|
|
203
203
|
|
|
204
204
|
warning: {
|
|
@@ -206,7 +206,7 @@ export const components = {
|
|
|
206
206
|
color: '#ffffff',
|
|
207
207
|
hover: semanticColors.warning[600],
|
|
208
208
|
focus: `0 0 0 2px ${semanticColors.warning[200]}`,
|
|
209
|
-
borderRadius: '
|
|
209
|
+
borderRadius: 'var(--radius-md)',
|
|
210
210
|
},
|
|
211
211
|
|
|
212
212
|
info: {
|
|
@@ -214,7 +214,7 @@ export const components = {
|
|
|
214
214
|
color: '#ffffff',
|
|
215
215
|
hover: semanticColors.info[600],
|
|
216
216
|
focus: `0 0 0 2px ${semanticColors.info[200]}`,
|
|
217
|
-
borderRadius: '
|
|
217
|
+
borderRadius: 'var(--radius-md)',
|
|
218
218
|
},
|
|
219
219
|
|
|
220
220
|
purple: {
|
|
@@ -222,7 +222,7 @@ export const components = {
|
|
|
222
222
|
color: '#ffffff',
|
|
223
223
|
hover: semanticColors.purple[600],
|
|
224
224
|
focus: `0 0 0 2px ${semanticColors.purple[200]}`,
|
|
225
|
-
borderRadius: '
|
|
225
|
+
borderRadius: 'var(--radius-md)',
|
|
226
226
|
},
|
|
227
227
|
|
|
228
228
|
outline: {
|
|
@@ -231,7 +231,7 @@ export const components = {
|
|
|
231
231
|
borderColor: semanticColors.primary[600],
|
|
232
232
|
borderWidth: '2px',
|
|
233
233
|
hover: semanticColors.primary[50],
|
|
234
|
-
borderRadius: '
|
|
234
|
+
borderRadius: 'var(--radius-md)',
|
|
235
235
|
},
|
|
236
236
|
},
|
|
237
237
|
|
|
@@ -291,19 +291,19 @@ export const components = {
|
|
|
291
291
|
|
|
292
292
|
card: {
|
|
293
293
|
backgroundColor: 'var(--card-bg, #ffffff)',
|
|
294
|
-
borderRadius: '
|
|
294
|
+
borderRadius: 'var(--radius-2xl)',
|
|
295
295
|
borderColor: `var(--card-border, ${semanticColors.gray[200]})`,
|
|
296
296
|
borderWidth: '1px',
|
|
297
|
-
shadow: 'var(--card-shadow,
|
|
297
|
+
shadow: 'var(--card-shadow, var(--shadow-md))',
|
|
298
298
|
hover: {
|
|
299
|
-
shadow: 'var(--card-shadow-hover,
|
|
299
|
+
shadow: 'var(--card-shadow-hover, var(--shadow-lg))',
|
|
300
300
|
},
|
|
301
301
|
header: {
|
|
302
302
|
backgroundColor: `var(--card-header-bg, ${semanticColors.gray[50]})`,
|
|
303
303
|
borderBottom: `1px solid var(--card-header-border, var(--color-secondary-200))`,
|
|
304
304
|
padding: '1rem 1.5rem',
|
|
305
|
-
borderTopLeftRadius: '
|
|
306
|
-
borderTopRightRadius: '
|
|
305
|
+
borderTopLeftRadius: 'var(--radius-2xl)',
|
|
306
|
+
borderTopRightRadius: 'var(--radius-2xl)',
|
|
307
307
|
},
|
|
308
308
|
body: {
|
|
309
309
|
padding: '1.5rem',
|
|
@@ -313,7 +313,7 @@ export const components = {
|
|
|
313
313
|
input: {
|
|
314
314
|
backgroundColor: 'var(--input-bg, #ffffff)',
|
|
315
315
|
borderColor: `var(--input-border, ${semanticColors.gray[300]})`,
|
|
316
|
-
borderRadius: '
|
|
316
|
+
borderRadius: 'var(--radius-md)',
|
|
317
317
|
padding: '0.5rem 0.75rem',
|
|
318
318
|
fontSize: '0.875rem',
|
|
319
319
|
focus: {
|
|
@@ -382,8 +382,8 @@ export const components = {
|
|
|
382
382
|
},
|
|
383
383
|
content: {
|
|
384
384
|
backgroundColor: 'var(--modal-bg, #ffffff)',
|
|
385
|
-
borderRadius: '
|
|
386
|
-
shadow: 'var(--modal-shadow,
|
|
385
|
+
borderRadius: 'var(--radius-2xl)',
|
|
386
|
+
shadow: 'var(--modal-shadow, var(--shadow-xl))',
|
|
387
387
|
},
|
|
388
388
|
header: {
|
|
389
389
|
padding: '1.5rem 1.5rem 0.5rem 1.5rem',
|
package/src/utils/styles.ts
CHANGED
|
@@ -9,20 +9,20 @@ export function inputContainer(hasError?: boolean, disabled?: boolean) {
|
|
|
9
9
|
"w-full border border-solid transition-all duration-200 rounded-lg px-3 py-2 text-sm",
|
|
10
10
|
"focus:outline-none focus:ring-2",
|
|
11
11
|
hasError
|
|
12
|
-
? "border-
|
|
13
|
-
: "border-
|
|
14
|
-
disabled && "opacity-50 cursor-not-allowed bg-
|
|
12
|
+
? "border-danger-500 ring-danger-100"
|
|
13
|
+
: "border-secondary-300 focus:border-primary-500 focus:ring-primary-100",
|
|
14
|
+
disabled && "opacity-50 cursor-not-allowed bg-secondary-100"
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export function inputLabel(error?: boolean) {
|
|
19
19
|
return clsx(
|
|
20
20
|
"text-sm font-medium",
|
|
21
|
-
error ? "text-
|
|
21
|
+
error ? "text-danger-500" : "text-secondary-700 dark:text-secondary-300"
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export const inputError = "text-
|
|
25
|
+
export const inputError = "text-danger-500 text-xs mt-1";
|
|
26
26
|
|
|
27
27
|
export function inputWrapper(className?: string) {
|
|
28
28
|
return clsx("flex flex-col gap-1.5", className);
|