@lichta/core 2.0.0
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/LICENSE +21 -0
- package/README.md +104 -0
- package/dist/index.d.mts +265 -0
- package/dist/index.d.ts +265 -0
- package/dist/index.js +534 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +494 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +36 -0
- package/styles/calendar-base.css +188 -0
- package/styles/calendar-glass.css +45 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
.lich-ta-calendar {
|
|
2
|
+
--lichta-primary: #d4a373;
|
|
3
|
+
--lichta-primary-light: #f5e6d3;
|
|
4
|
+
--lichta-bg: #fffcf7;
|
|
5
|
+
--lichta-surface: #ffffff;
|
|
6
|
+
--lichta-text: #2c1810;
|
|
7
|
+
--lichta-text-muted: #8b7355;
|
|
8
|
+
--lichta-text-dim: #c4b5a0;
|
|
9
|
+
--lichta-border: #e8ddd0;
|
|
10
|
+
--lichta-today-bg: #d4a373;
|
|
11
|
+
--lichta-today-text: #ffffff;
|
|
12
|
+
--lichta-selected-bg: #a0522d;
|
|
13
|
+
--lichta-selected-text: #ffffff;
|
|
14
|
+
--lichta-hover-bg: #f5e6d3;
|
|
15
|
+
--lichta-lunar-text: #b08968;
|
|
16
|
+
--lichta-first-lunar: #c2185b;
|
|
17
|
+
--lichta-radius: 8px;
|
|
18
|
+
--lichta-font: inherit;
|
|
19
|
+
|
|
20
|
+
font-family: var(--lichta-font);
|
|
21
|
+
background: var(--lichta-bg);
|
|
22
|
+
border: 1px solid var(--lichta-border);
|
|
23
|
+
border-radius: calc(var(--lichta-radius) * 2);
|
|
24
|
+
padding: 16px;
|
|
25
|
+
max-width: 420px;
|
|
26
|
+
width: 100%;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
user-select: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lich-ta-calendar-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
margin-bottom: 16px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.lich-ta-calendar-nav {
|
|
39
|
+
background: none;
|
|
40
|
+
border: 1px solid var(--lichta-border);
|
|
41
|
+
border-radius: var(--lichta-radius);
|
|
42
|
+
width: 36px;
|
|
43
|
+
height: 36px;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
color: var(--lichta-text);
|
|
49
|
+
font-size: 0.85rem;
|
|
50
|
+
transition: all 0.15s ease;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.lich-ta-calendar-nav:hover {
|
|
54
|
+
background: var(--lichta-hover-bg);
|
|
55
|
+
border-color: var(--lichta-primary);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.lich-ta-calendar-title {
|
|
59
|
+
text-align: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.lich-ta-calendar-month-year {
|
|
63
|
+
display: block;
|
|
64
|
+
font-size: 1.1rem;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
color: var(--lichta-text);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.lich-ta-calendar-canchi {
|
|
70
|
+
display: block;
|
|
71
|
+
font-size: 0.8rem;
|
|
72
|
+
color: var(--lichta-text-muted);
|
|
73
|
+
margin-top: 2px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.lich-ta-calendar-weekdays {
|
|
77
|
+
display: grid;
|
|
78
|
+
grid-template-columns: repeat(7, 1fr);
|
|
79
|
+
margin-bottom: 4px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.lich-ta-calendar-weekday {
|
|
83
|
+
text-align: center;
|
|
84
|
+
font-size: 0.75rem;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
color: var(--lichta-text-muted);
|
|
87
|
+
padding: 6px 0;
|
|
88
|
+
text-transform: uppercase;
|
|
89
|
+
letter-spacing: 0.05em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.lich-ta-calendar-grid {
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: repeat(7, 1fr);
|
|
95
|
+
gap: 2px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.lich-ta-calendar-day {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
padding: 6px 2px;
|
|
104
|
+
min-height: 48px;
|
|
105
|
+
border: none;
|
|
106
|
+
border-radius: var(--lichta-radius);
|
|
107
|
+
background: transparent;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
transition: all 0.15s ease;
|
|
110
|
+
font-family: inherit;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.lich-ta-calendar-day:hover {
|
|
114
|
+
background: var(--lichta-hover-bg);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.lich-ta-calendar-day:focus-visible {
|
|
118
|
+
outline: 2px solid var(--lichta-primary);
|
|
119
|
+
outline-offset: 1px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.solar-day {
|
|
123
|
+
font-size: 0.95rem;
|
|
124
|
+
font-weight: 500;
|
|
125
|
+
color: var(--lichta-text);
|
|
126
|
+
line-height: 1.2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.lunar-day {
|
|
130
|
+
font-size: 0.65rem;
|
|
131
|
+
color: var(--lichta-lunar-text);
|
|
132
|
+
line-height: 1.2;
|
|
133
|
+
margin-top: 1px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.is-other-month .solar-day,
|
|
137
|
+
.is-other-month .lunar-day {
|
|
138
|
+
color: var(--lichta-text-dim);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.is-today {
|
|
142
|
+
background: var(--lichta-today-bg);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.is-today .solar-day {
|
|
146
|
+
color: var(--lichta-today-text);
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.is-today .lunar-day {
|
|
151
|
+
color: var(--lichta-today-text);
|
|
152
|
+
opacity: 0.85;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.is-today:hover {
|
|
156
|
+
background: var(--lichta-today-bg);
|
|
157
|
+
opacity: 0.9;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.is-selected {
|
|
161
|
+
background: var(--lichta-selected-bg);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.is-selected .solar-day {
|
|
165
|
+
color: var(--lichta-selected-text);
|
|
166
|
+
font-weight: 700;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.is-selected .lunar-day {
|
|
170
|
+
color: var(--lichta-selected-text);
|
|
171
|
+
opacity: 0.85;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.is-first-lunar .lunar-day {
|
|
175
|
+
color: var(--lichta-first-lunar);
|
|
176
|
+
font-weight: 600;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.is-today.is-first-lunar .lunar-day,
|
|
180
|
+
.is-selected.is-first-lunar .lunar-day {
|
|
181
|
+
color: var(--lichta-today-text);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.lich-ta-calendar-footer {
|
|
185
|
+
margin-top: 12px;
|
|
186
|
+
padding-top: 12px;
|
|
187
|
+
border-top: 1px solid var(--lichta-border);
|
|
188
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* ── LichTa Framework Calendar Glassmorphism Theme ───────── */
|
|
2
|
+
.lich-ta-calendar.lichta-theme-glass {
|
|
3
|
+
--lichta-primary: #FBBF24 !important;
|
|
4
|
+
--lichta-primary-light: rgba(251, 191, 36, 0.15) !important;
|
|
5
|
+
--lichta-bg: transparent !important;
|
|
6
|
+
--lichta-surface: rgba(255, 255, 255, 0.03) !important;
|
|
7
|
+
--lichta-text: #F8FAFC !important;
|
|
8
|
+
--lichta-text-muted: #94A3B8 !important;
|
|
9
|
+
--lichta-text-dim: rgba(255, 255, 255, 0.2) !important;
|
|
10
|
+
--lichta-border: rgba(255, 255, 255, 0.08) !important;
|
|
11
|
+
--lichta-today-bg: rgba(251, 191, 36, 0.15) !important;
|
|
12
|
+
--lichta-today-text: #FBBF24 !important;
|
|
13
|
+
--lichta-selected-bg: rgba(251, 191, 36, 0.3) !important;
|
|
14
|
+
--lichta-selected-text: #F8FAFC !important;
|
|
15
|
+
--lichta-hover-bg: rgba(255, 255, 255, 0.05) !important;
|
|
16
|
+
--lichta-lunar-text: rgba(255, 255, 255, 0.6) !important;
|
|
17
|
+
--lichta-first-lunar: #FBBF24 !important;
|
|
18
|
+
--lichta-radius: 12px !important;
|
|
19
|
+
--lichta-font: 'Outfit', sans-serif !important;
|
|
20
|
+
|
|
21
|
+
border: none !important;
|
|
22
|
+
padding: 0 !important;
|
|
23
|
+
max-width: 100% !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.lich-ta-calendar.lichta-theme-glass .lich-ta-calendar-nav {
|
|
27
|
+
background: rgba(255,255,255,0.05) !important;
|
|
28
|
+
border-color: rgba(255,255,255,0.1) !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lich-ta-calendar.lichta-theme-glass .lich-ta-calendar-nav:hover {
|
|
32
|
+
background: rgba(251, 191, 36, 0.15) !important;
|
|
33
|
+
border-color: rgba(251, 191, 36, 0.3) !important;
|
|
34
|
+
color: #FBBF24 !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.lich-ta-calendar.lichta-theme-glass .is-today .solar-day {
|
|
38
|
+
background: rgba(251, 191, 36, 0.2) !important;
|
|
39
|
+
border-radius: 50% !important;
|
|
40
|
+
width: 28px !important;
|
|
41
|
+
height: 28px !important;
|
|
42
|
+
display: flex !important;
|
|
43
|
+
align-items: center !important;
|
|
44
|
+
justify-content: center !important;
|
|
45
|
+
}
|