@x-plat/design-system 0.4.5 → 0.5.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/dist/components/Accordion/index.cjs +294 -294
- package/dist/components/Accordion/index.css +11 -11
- package/dist/components/Accordion/index.d.cts +0 -1
- package/dist/components/Accordion/index.d.ts +0 -1
- package/dist/components/Accordion/index.js +491 -491
- package/dist/components/Alert/index.cjs +2 -2
- package/dist/components/Alert/index.css +19 -19
- package/dist/components/Alert/index.d.cts +0 -1
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/Alert/index.js +2 -2
- package/dist/components/Avatar/index.cjs +11 -6
- package/dist/components/Avatar/index.css +41 -11
- package/dist/components/Avatar/index.d.cts +1 -3
- package/dist/components/Avatar/index.d.ts +1 -3
- package/dist/components/Avatar/index.js +11 -6
- package/dist/components/Badge/index.cjs +4 -6
- package/dist/components/Badge/index.css +32 -19
- package/dist/components/Badge/index.d.cts +3 -3
- package/dist/components/Badge/index.d.ts +3 -3
- package/dist/components/Badge/index.js +4 -6
- package/dist/components/Breadcrumb/index.cjs +2 -18
- package/dist/components/Breadcrumb/index.css +6 -6
- package/dist/components/Breadcrumb/index.d.cts +0 -1
- package/dist/components/Breadcrumb/index.d.ts +0 -1
- package/dist/components/Breadcrumb/index.js +2 -18
- package/dist/components/Button/index.cjs +1 -4
- package/dist/components/Button/index.css +67 -23
- package/dist/components/Button/index.d.cts +2 -3
- package/dist/components/Button/index.d.ts +2 -3
- package/dist/components/Button/index.js +1 -4
- package/dist/components/Calendar/index.cjs +306 -307
- package/dist/components/Calendar/index.css +51 -52
- package/dist/components/Calendar/index.d.cts +3 -4
- package/dist/components/Calendar/index.d.ts +3 -4
- package/dist/components/Calendar/index.js +503 -504
- package/dist/components/Card/index.cjs +2 -18
- package/dist/components/Card/index.css +6 -6
- package/dist/components/Card/index.d.cts +0 -4
- package/dist/components/Card/index.d.ts +0 -4
- package/dist/components/Card/index.js +2 -18
- package/dist/components/CardTab/index.cjs +4 -5
- package/dist/components/CardTab/index.css +28 -28
- package/dist/components/CardTab/index.d.cts +0 -2
- package/dist/components/CardTab/index.d.ts +0 -2
- package/dist/components/CardTab/index.js +4 -5
- package/dist/components/Chart/index.cjs +228 -14548
- package/dist/components/Chart/index.css +57 -0
- package/dist/components/Chart/index.d.cts +3 -2
- package/dist/components/Chart/index.d.ts +3 -2
- package/dist/components/Chart/index.js +219 -14541
- package/dist/components/CheckBox/index.cjs +301 -297
- package/dist/components/CheckBox/index.css +50 -27
- package/dist/components/CheckBox/index.d.cts +3 -3
- package/dist/components/CheckBox/index.d.ts +3 -3
- package/dist/components/CheckBox/index.js +486 -482
- package/dist/components/Chip/index.cjs +2 -5
- package/dist/components/Chip/index.css +35 -23
- package/dist/components/Chip/index.d.cts +2 -4
- package/dist/components/Chip/index.d.ts +2 -4
- package/dist/components/Chip/index.js +2 -5
- package/dist/components/DatePicker/index.cjs +348 -359
- package/dist/components/DatePicker/index.css +175 -122
- package/dist/components/DatePicker/index.d.cts +2 -3
- package/dist/components/DatePicker/index.d.ts +2 -3
- package/dist/components/DatePicker/index.js +525 -536
- package/dist/components/Divider/index.cjs +2 -2
- package/dist/components/Divider/index.css +2 -2
- package/dist/components/Divider/index.d.cts +0 -1
- package/dist/components/Divider/index.d.ts +0 -1
- package/dist/components/Divider/index.js +2 -2
- package/dist/components/Drawer/index.css +7 -7
- package/dist/components/Dropdown/index.cjs +2 -2
- package/dist/components/Dropdown/index.css +10 -10
- package/dist/components/Dropdown/index.d.cts +0 -1
- package/dist/components/Dropdown/index.d.ts +0 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/EmptyState/index.cjs +2 -18
- package/dist/components/EmptyState/index.css +8 -9
- package/dist/components/EmptyState/index.d.cts +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -1
- package/dist/components/EmptyState/index.js +2 -18
- package/dist/components/FileUpload/index.cjs +280 -281
- package/dist/components/FileUpload/index.css +13 -14
- package/dist/components/FileUpload/index.d.cts +0 -1
- package/dist/components/FileUpload/index.d.ts +0 -1
- package/dist/components/FileUpload/index.js +476 -477
- package/dist/components/HtmlTypeWriter/index.cjs +10 -10
- package/dist/components/HtmlTypeWriter/index.css +3 -3
- package/dist/components/HtmlTypeWriter/index.js +10 -10
- package/dist/components/ImageSelector/index.cjs +309 -309
- package/dist/components/ImageSelector/index.css +15 -15
- package/dist/components/ImageSelector/index.js +477 -477
- package/dist/components/Input/index.cjs +6 -7
- package/dist/components/Input/index.css +37 -26
- package/dist/components/Input/index.d.cts +2 -2
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/Input/index.js +6 -7
- package/dist/components/Modal/index.css +5 -4
- package/dist/components/Pagination/index.cjs +303 -305
- package/dist/components/Pagination/index.css +37 -26
- package/dist/components/Pagination/index.d.cts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/index.js +500 -502
- package/dist/components/PopOver/index.css +3 -3
- package/dist/components/Progress/index.cjs +4 -6
- package/dist/components/Progress/index.css +23 -9
- package/dist/components/Progress/index.d.cts +3 -3
- package/dist/components/Progress/index.d.ts +3 -3
- package/dist/components/Progress/index.js +4 -6
- package/dist/components/Radio/index.cjs +4 -7
- package/dist/components/Radio/index.css +61 -29
- package/dist/components/Radio/index.d.cts +3 -3
- package/dist/components/Radio/index.d.ts +3 -3
- package/dist/components/Radio/index.js +4 -7
- package/dist/components/Select/index.cjs +294 -294
- package/dist/components/Select/index.css +46 -40
- package/dist/components/Select/index.d.cts +0 -1
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.js +491 -491
- package/dist/components/Skeleton/index.cjs +2 -2
- package/dist/components/Skeleton/index.css +3 -3
- package/dist/components/Skeleton/index.d.cts +0 -1
- package/dist/components/Skeleton/index.d.ts +0 -1
- package/dist/components/Skeleton/index.js +2 -2
- package/dist/components/Spinner/index.cjs +2 -4
- package/dist/components/Spinner/index.css +22 -8
- package/dist/components/Spinner/index.d.cts +3 -3
- package/dist/components/Spinner/index.d.ts +3 -3
- package/dist/components/Spinner/index.js +2 -4
- package/dist/components/Steps/index.cjs +296 -298
- package/dist/components/Steps/index.css +77 -22
- package/dist/components/Steps/index.d.cts +3 -3
- package/dist/components/Steps/index.d.ts +3 -3
- package/dist/components/Steps/index.js +481 -483
- package/dist/components/Swiper/index.cjs +2 -3
- package/dist/components/Swiper/index.css +10 -10
- package/dist/components/Swiper/index.d.cts +0 -1
- package/dist/components/Swiper/index.d.ts +0 -1
- package/dist/components/Swiper/index.js +2 -3
- package/dist/components/Switch/index.cjs +4 -7
- package/dist/components/Switch/index.css +58 -26
- package/dist/components/Switch/index.d.cts +3 -3
- package/dist/components/Switch/index.d.ts +3 -3
- package/dist/components/Switch/index.js +4 -7
- package/dist/components/Tab/index.css +15 -15
- package/dist/components/Table/index.cjs +22 -31
- package/dist/components/Table/index.css +15 -15
- package/dist/components/Table/index.d.cts +2 -8
- package/dist/components/Table/index.d.ts +2 -8
- package/dist/components/Table/index.js +22 -31
- package/dist/components/Tag/index.cjs +305 -293
- package/dist/components/Tag/index.css +58 -17
- package/dist/components/Tag/index.d.cts +5 -3
- package/dist/components/Tag/index.d.ts +5 -3
- package/dist/components/Tag/index.js +492 -480
- package/dist/components/TextArea/index.cjs +2 -2
- package/dist/components/TextArea/index.css +20 -9
- package/dist/components/TextArea/index.d.cts +2 -1
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/TextArea/index.js +2 -2
- package/dist/components/Toast/index.css +22 -22
- package/dist/components/Tooltip/index.cjs +1 -3
- package/dist/components/Tooltip/index.css +6 -6
- package/dist/components/Tooltip/index.d.cts +1 -2
- package/dist/components/Tooltip/index.d.ts +1 -2
- package/dist/components/Tooltip/index.js +1 -3
- package/dist/components/Video/index.cjs +1 -3
- package/dist/components/Video/index.css +5 -5
- package/dist/components/Video/index.d.cts +0 -2
- package/dist/components/Video/index.d.ts +0 -2
- package/dist/components/Video/index.js +1 -3
- package/dist/components/index.cjs +1604 -15950
- package/dist/components/index.css +2167 -1061
- package/dist/components/index.d.cts +1 -2
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1478 -15826
- package/dist/index.cjs +2941 -17269
- package/dist/index.css +2164 -1058
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2837 -17169
- package/dist/layout/Grid/FullGrid/index.cjs +9 -18
- package/dist/layout/Grid/FullGrid/index.d.cts +1 -1
- package/dist/layout/Grid/FullGrid/index.d.ts +1 -1
- package/dist/layout/Grid/FullGrid/index.js +9 -18
- package/dist/layout/Grid/FullScreen/index.cjs +9 -18
- package/dist/layout/Grid/FullScreen/index.d.cts +3 -3
- package/dist/layout/Grid/FullScreen/index.d.ts +3 -3
- package/dist/layout/Grid/FullScreen/index.js +9 -18
- package/dist/layout/Grid/index.cjs +34 -20
- package/dist/layout/Grid/index.js +34 -20
- package/dist/layout/index.cjs +34 -20
- package/dist/layout/index.css +1000 -295
- package/dist/layout/index.js +34 -20
- package/dist/tokens/index.cjs +1861 -1970
- package/dist/tokens/index.d.cts +209 -192
- package/dist/tokens/index.d.ts +209 -192
- package/dist/tokens/index.js +2048 -2159
- package/package.json +2 -4
- package/dist/colors-CY4JXVHj.d.cts +0 -137
- package/dist/colors-CY4JXVHj.d.ts +0 -137
- package/dist/layout/Grid/GapGrid/index.cjs +0 -32
- package/dist/layout/Grid/GapGrid/index.d.cts +0 -12
- package/dist/layout/Grid/GapGrid/index.d.ts +0 -12
- package/dist/layout/Grid/GapGrid/index.js +0 -11
|
@@ -8,76 +8,75 @@
|
|
|
8
8
|
.lib-xplat-calendar .calendar-header {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
|
-
gap:
|
|
12
|
-
margin-bottom:
|
|
11
|
+
gap: var(--spacing-space-2);
|
|
12
|
+
margin-bottom: var(--spacing-space-4);
|
|
13
13
|
}
|
|
14
14
|
.lib-xplat-calendar .calendar-title {
|
|
15
|
-
font-size: clamp(
|
|
15
|
+
font-size: clamp(14px, 3cqi, 20px);
|
|
16
16
|
font-weight: 600;
|
|
17
|
-
color: var(--
|
|
17
|
+
color: var(--semantic-text-strong);
|
|
18
18
|
min-width: 120px;
|
|
19
19
|
text-align: center;
|
|
20
20
|
background: none;
|
|
21
21
|
border: none;
|
|
22
22
|
cursor: pointer;
|
|
23
|
-
padding:
|
|
24
|
-
border-radius:
|
|
23
|
+
padding: var(--spacing-space-1) var(--spacing-space-2);
|
|
24
|
+
border-radius: var(--spacing-radius-md);
|
|
25
25
|
transition: background-color 0.15s;
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-calendar .calendar-title:hover {
|
|
28
|
-
background-color: var(--
|
|
28
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
29
29
|
}
|
|
30
30
|
.lib-xplat-calendar .calendar-nav {
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
justify-content: center;
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
34
|
+
width: var(--spacing-space-7);
|
|
35
|
+
height: var(--spacing-space-7);
|
|
36
36
|
border: none;
|
|
37
|
-
border-radius:
|
|
37
|
+
border-radius: var(--spacing-radius-md);
|
|
38
38
|
background: none;
|
|
39
39
|
cursor: pointer;
|
|
40
|
-
color: var(--
|
|
40
|
+
color: var(--semantic-text-subtle);
|
|
41
41
|
transition: background-color 0.15s;
|
|
42
42
|
}
|
|
43
43
|
.lib-xplat-calendar .calendar-nav:hover {
|
|
44
|
-
background-color: var(--
|
|
44
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
45
45
|
}
|
|
46
46
|
.lib-xplat-calendar .calendar-nav svg {
|
|
47
|
-
|
|
48
|
-
height: 16px;
|
|
47
|
+
font-size: 16px;
|
|
49
48
|
}
|
|
50
49
|
.lib-xplat-calendar .calendar-today-btn {
|
|
51
50
|
margin-left: auto;
|
|
52
|
-
padding:
|
|
53
|
-
border: 1px solid var(--
|
|
54
|
-
border-radius:
|
|
51
|
+
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
52
|
+
border: 1px solid var(--semantic-border-default);
|
|
53
|
+
border-radius: var(--spacing-radius-md);
|
|
55
54
|
background: none;
|
|
56
|
-
font-size: clamp(
|
|
57
|
-
color: var(--
|
|
55
|
+
font-size: clamp(12px, 2cqi, 14px);
|
|
56
|
+
color: var(--semantic-text-subtle);
|
|
58
57
|
cursor: pointer;
|
|
59
58
|
transition: background-color 0.15s;
|
|
60
59
|
}
|
|
61
60
|
.lib-xplat-calendar .calendar-today-btn:hover {
|
|
62
|
-
background-color: var(--
|
|
61
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
63
62
|
}
|
|
64
63
|
.lib-xplat-calendar .calendar-weekdays {
|
|
65
64
|
display: grid;
|
|
66
65
|
grid-template-columns: repeat(7, 1fr);
|
|
67
|
-
margin-bottom:
|
|
66
|
+
margin-bottom: var(--spacing-space-1);
|
|
68
67
|
}
|
|
69
68
|
.lib-xplat-calendar .calendar-weekday {
|
|
70
69
|
text-align: center;
|
|
71
|
-
font-size: clamp(
|
|
70
|
+
font-size: clamp(11px, 2cqi, 14px);
|
|
72
71
|
font-weight: 500;
|
|
73
|
-
padding:
|
|
74
|
-
color: var(--
|
|
72
|
+
padding: var(--spacing-space-2) 0;
|
|
73
|
+
color: var(--semantic-text-muted);
|
|
75
74
|
}
|
|
76
75
|
.lib-xplat-calendar .calendar-weekday.sunday {
|
|
77
|
-
color: var(--
|
|
76
|
+
color: var(--semantic-text-sunday);
|
|
78
77
|
}
|
|
79
78
|
.lib-xplat-calendar .calendar-weekday.saturday {
|
|
80
|
-
color: var(--
|
|
79
|
+
color: var(--semantic-text-saturday);
|
|
81
80
|
}
|
|
82
81
|
.lib-xplat-calendar .calendar-grid {
|
|
83
82
|
display: grid;
|
|
@@ -90,96 +89,96 @@
|
|
|
90
89
|
justify-content: center;
|
|
91
90
|
aspect-ratio: 1/0.85;
|
|
92
91
|
cursor: pointer;
|
|
93
|
-
border-radius:
|
|
92
|
+
border-radius: var(--spacing-radius-md);
|
|
94
93
|
transition: background-color 0.15s;
|
|
95
94
|
}
|
|
96
95
|
.lib-xplat-calendar .calendar-day:hover:not(.disabled):not(.outside):not(.selected) {
|
|
97
|
-
background-color: var(--
|
|
96
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
98
97
|
}
|
|
99
98
|
.lib-xplat-calendar .calendar-day.outside {
|
|
100
99
|
cursor: default;
|
|
101
100
|
}
|
|
102
101
|
.lib-xplat-calendar .calendar-day.outside .calendar-day-number {
|
|
103
|
-
color: var(--
|
|
102
|
+
color: var(--semantic-text-disabled);
|
|
104
103
|
}
|
|
105
104
|
.lib-xplat-calendar .calendar-day.outside.sunday .calendar-day-number {
|
|
106
|
-
color: color-mix(in srgb, var(--
|
|
105
|
+
color: color-mix(in srgb, var(--semantic-text-sunday) 35%, transparent);
|
|
107
106
|
}
|
|
108
107
|
.lib-xplat-calendar .calendar-day.outside.saturday .calendar-day-number {
|
|
109
|
-
color: color-mix(in srgb, var(--
|
|
108
|
+
color: color-mix(in srgb, var(--semantic-text-saturday) 35%, transparent);
|
|
110
109
|
}
|
|
111
110
|
.lib-xplat-calendar .calendar-day.disabled {
|
|
112
111
|
cursor: not-allowed;
|
|
113
112
|
}
|
|
114
113
|
.lib-xplat-calendar .calendar-day.disabled .calendar-day-number {
|
|
115
|
-
color: var(--
|
|
114
|
+
color: var(--semantic-text-disabled);
|
|
116
115
|
}
|
|
117
116
|
.lib-xplat-calendar .calendar-day.today .calendar-day-number {
|
|
118
117
|
font-weight: 700;
|
|
119
|
-
color: var(--
|
|
118
|
+
color: var(--semantic-surface-brand-default);
|
|
120
119
|
}
|
|
121
120
|
.lib-xplat-calendar .calendar-day.selected {
|
|
122
|
-
box-shadow: inset 0 0 0 1.5px var(--calendar-selected-color, var(--
|
|
121
|
+
box-shadow: inset 0 0 0 1.5px var(--calendar-selected-color, var(--semantic-text-muted));
|
|
123
122
|
}
|
|
124
123
|
.lib-xplat-calendar .calendar-day.selected .calendar-day-number {
|
|
125
124
|
font-weight: 700;
|
|
126
125
|
}
|
|
127
126
|
.lib-xplat-calendar .calendar-day.selected:hover {
|
|
128
|
-
background-color: color-mix(in srgb, var(--calendar-selected-color, var(--
|
|
127
|
+
background-color: color-mix(in srgb, var(--calendar-selected-color, var(--semantic-text-muted)) 10%, transparent);
|
|
129
128
|
}
|
|
130
129
|
.lib-xplat-calendar .calendar-day.sunday:not(.outside) .calendar-day-number {
|
|
131
|
-
color: var(--
|
|
130
|
+
color: var(--semantic-text-sunday);
|
|
132
131
|
}
|
|
133
132
|
.lib-xplat-calendar .calendar-day.saturday:not(.outside) .calendar-day-number {
|
|
134
|
-
color: var(--
|
|
133
|
+
color: var(--semantic-text-saturday);
|
|
135
134
|
}
|
|
136
135
|
.lib-xplat-calendar .calendar-day-number {
|
|
137
|
-
font-size: clamp(
|
|
136
|
+
font-size: clamp(12px, 2.5cqi, 16px);
|
|
138
137
|
line-height: 1;
|
|
139
|
-
color: var(--
|
|
138
|
+
color: var(--semantic-text-strong);
|
|
140
139
|
}
|
|
141
140
|
.lib-xplat-calendar .calendar-day-events {
|
|
142
141
|
display: flex;
|
|
143
142
|
gap: 2px;
|
|
144
|
-
margin-top:
|
|
143
|
+
margin-top: var(--spacing-space-1);
|
|
145
144
|
align-items: center;
|
|
146
145
|
}
|
|
147
146
|
.lib-xplat-calendar .calendar-event-dot {
|
|
148
|
-
width:
|
|
149
|
-
height:
|
|
147
|
+
width: var(--spacing-space-1);
|
|
148
|
+
height: var(--spacing-space-1);
|
|
150
149
|
border-radius: 50%;
|
|
151
150
|
flex-shrink: 0;
|
|
152
151
|
cursor: pointer;
|
|
153
152
|
}
|
|
154
153
|
.lib-xplat-calendar .calendar-event-more {
|
|
155
154
|
font-size: 9px;
|
|
156
|
-
color: var(--
|
|
155
|
+
color: var(--semantic-text-muted);
|
|
157
156
|
line-height: 1;
|
|
158
157
|
}
|
|
159
158
|
.lib-xplat-calendar .calendar-picker-grid {
|
|
160
159
|
display: grid;
|
|
161
160
|
grid-template-columns: repeat(3, 1fr);
|
|
162
|
-
gap:
|
|
163
|
-
padding:
|
|
161
|
+
gap: var(--spacing-space-2);
|
|
162
|
+
padding: var(--spacing-space-2) 0;
|
|
164
163
|
}
|
|
165
164
|
.lib-xplat-calendar .calendar-picker-cell {
|
|
166
165
|
display: flex;
|
|
167
166
|
align-items: center;
|
|
168
167
|
justify-content: center;
|
|
169
|
-
padding:
|
|
168
|
+
padding: var(--spacing-space-2);
|
|
170
169
|
border: none;
|
|
171
|
-
border-radius:
|
|
170
|
+
border-radius: var(--spacing-radius-md);
|
|
172
171
|
background: none;
|
|
173
|
-
font-size: clamp(
|
|
174
|
-
color: var(--
|
|
172
|
+
font-size: clamp(12px, 2.5cqi, 15px);
|
|
173
|
+
color: var(--semantic-text-subtle);
|
|
175
174
|
cursor: pointer;
|
|
176
175
|
transition: background-color 0.15s;
|
|
177
176
|
}
|
|
178
177
|
.lib-xplat-calendar .calendar-picker-cell:hover {
|
|
179
|
-
background-color: var(--
|
|
178
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
180
179
|
}
|
|
181
180
|
.lib-xplat-calendar .calendar-picker-cell.active {
|
|
182
|
-
background-color: var(--
|
|
183
|
-
color: var(--
|
|
181
|
+
background-color: var(--semantic-surface-neutral-strong);
|
|
182
|
+
color: var(--semantic-text-inverse);
|
|
184
183
|
font-weight: 600;
|
|
185
184
|
}
|
|
@@ -9,7 +9,7 @@ interface CalendarDay {
|
|
|
9
9
|
isSunday: boolean;
|
|
10
10
|
isSaturday: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare const useCalendar: (initialYear?: number, initialMonth?: number) => {
|
|
13
13
|
year: number;
|
|
14
14
|
month: number;
|
|
15
15
|
days: CalendarDay[];
|
|
@@ -19,8 +19,8 @@ declare function useCalendar(initialYear?: number, initialMonth?: number): {
|
|
|
19
19
|
setYear: React.Dispatch<React.SetStateAction<number>>;
|
|
20
20
|
setMonth: React.Dispatch<React.SetStateAction<number>>;
|
|
21
21
|
};
|
|
22
|
-
declare
|
|
23
|
-
declare
|
|
22
|
+
declare const isSameDay: (a: Date, b: Date) => boolean;
|
|
23
|
+
declare const isInRange: (date: Date, start: Date, end: Date) => boolean;
|
|
24
24
|
|
|
25
25
|
interface CalendarEvent {
|
|
26
26
|
date: Date;
|
|
@@ -42,7 +42,6 @@ interface CalendarProps {
|
|
|
42
42
|
maxDate?: Date;
|
|
43
43
|
selectedColor?: string;
|
|
44
44
|
showToday?: boolean;
|
|
45
|
-
className?: string;
|
|
46
45
|
}
|
|
47
46
|
declare const Calendar: {
|
|
48
47
|
(props: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
@@ -9,7 +9,7 @@ interface CalendarDay {
|
|
|
9
9
|
isSunday: boolean;
|
|
10
10
|
isSaturday: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare const useCalendar: (initialYear?: number, initialMonth?: number) => {
|
|
13
13
|
year: number;
|
|
14
14
|
month: number;
|
|
15
15
|
days: CalendarDay[];
|
|
@@ -19,8 +19,8 @@ declare function useCalendar(initialYear?: number, initialMonth?: number): {
|
|
|
19
19
|
setYear: React.Dispatch<React.SetStateAction<number>>;
|
|
20
20
|
setMonth: React.Dispatch<React.SetStateAction<number>>;
|
|
21
21
|
};
|
|
22
|
-
declare
|
|
23
|
-
declare
|
|
22
|
+
declare const isSameDay: (a: Date, b: Date) => boolean;
|
|
23
|
+
declare const isInRange: (date: Date, start: Date, end: Date) => boolean;
|
|
24
24
|
|
|
25
25
|
interface CalendarEvent {
|
|
26
26
|
date: Date;
|
|
@@ -42,7 +42,6 @@ interface CalendarProps {
|
|
|
42
42
|
maxDate?: Date;
|
|
43
43
|
selectedColor?: string;
|
|
44
44
|
showToday?: boolean;
|
|
45
|
-
className?: string;
|
|
46
45
|
}
|
|
47
46
|
declare const Calendar: {
|
|
48
47
|
(props: CalendarProps): react_jsx_runtime.JSX.Element;
|