Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | 4x 35x 35x | import { makeStyles } from "@repo/ui/themes/makeStyles";
export const useStyles = makeStyles((theme) => {
const { background, border, icon, text } = theme.colors;
return {
container: {
marginVertical: theme.metrics.spacing[2],
},
label: {
marginBottom: theme.metrics.spacing[1],
fontSize: theme.metrics.textSize[14],
fontWeight: theme.metrics.fontWeight.medium,
color: theme.colors.text.info,
},
card: {
backgroundColor: background.default,
borderRadius: theme.metrics.borderRadius[4],
paddingHorizontal: theme.metrics.spacing[3.5],
paddingTop: theme.metrics.spacing[3],
paddingBottom: theme.metrics.spacing[2],
},
cardDisabled: {
opacity: theme.metrics.opacity[60],
},
calendarHeader: {
marginBottom: theme.metrics.spacing[0.5],
paddingHorizontal: theme.metrics.spacing[1],
},
calendarMonthSelector: {
paddingHorizontal: 0,
},
calendarYearSelector: {
paddingHorizontal: 0,
},
calendarMonthLabel: {
color: text.heading,
fontSize: theme.metrics.textSize[20],
fontWeight: theme.metrics.fontWeight.bold,
},
calendarWeekdayLabel: {
color: text.muted,
fontSize: theme.metrics.textSize[12],
fontWeight: theme.metrics.fontWeight.bold,
textTransform: "uppercase",
},
calendarDay: {
borderRadius: theme.metrics.borderRadius[9],
overflow: "hidden",
marginHorizontal: theme.metrics.spacing[0.5],
marginVertical: theme.metrics.spacing[0.5],
},
calendarDisabled: {
overflow: "visible",
},
calendarDayLabel: {
color: text.muted,
fontSize: theme.metrics.textSize[16],
fontWeight: theme.metrics.fontWeight.medium,
},
customDayContent: {
position: "relative",
flex: 1,
alignSelf: "stretch",
width: "100%",
height: "100%",
alignItems: "center",
justifyContent: "center",
overflow: "visible",
},
disabledInRangeMask: {
position: "absolute",
top: 0,
bottom: 0,
left: -2,
right: -2,
backgroundColor: background.default,
zIndex: 1,
},
customDayLabel: {
zIndex: 2,
color: text.muted,
fontSize: theme.metrics.textSize[16],
fontWeight: theme.metrics.fontWeight.medium,
},
halfSelectionMask: {
position: "absolute",
top: 0,
bottom: 0,
backgroundColor: background.mask,
},
halfSelectionMaskLeft: {
left: 0,
right: "50%",
},
halfSelectionMaskRight: {
left: "50%",
right: 0,
},
calendarOutsideDayLabel: {
color: text.disabledSoft,
},
calendarDisabledLabel: {
color: text.disabledSoft,
opacity: theme.metrics.opacity[75],
},
calendarNavButtonPrev: {
borderWidth: theme.metrics.borderWidth.default,
borderColor: border.strong,
borderRadius: theme.metrics.borderRadius[2],
width: theme.metrics.spacing[6.5],
height: theme.metrics.spacing[6.5],
justifyContent: "center",
alignItems: "center",
backgroundColor: "transparent",
marginRight: theme.metrics.spacing[6.5],
},
calendarNavButtonNext: {
borderWidth: theme.metrics.borderWidth.default,
borderColor: border.strong,
borderRadius: theme.metrics.borderRadius[2],
width: theme.metrics.spacing[6.5],
height: theme.metrics.spacing[6.5],
justifyContent: "center",
alignItems: "center",
backgroundColor: "transparent",
},
calendarNavIconPrev: {
tintColor: icon.emphasis,
},
calendarNavIconNext: {
tintColor: icon.emphasis,
},
calendarSelected: {
backgroundColor: background.selected,
},
calendarSelectedLabel: {
color: theme.colors.text.white,
fontWeight: theme.metrics.fontWeight.semiBold,
},
calendarToday: {
borderWidth: theme.metrics.borderWidth.default,
borderColor: background.selected,
},
calendarRangeFill: {
backgroundColor: background.selected,
marginVertical: theme.metrics.spacing[0.5],
marginHorizontal: -1,
borderRadius: 0,
overflow: "visible",
},
calendarRangeFillWeekstart: {
backgroundColor: background.selected,
},
calendarRangeFillWeekend: {
backgroundColor: background.selected,
},
calendarRangeStart: {
backgroundColor: background.selected,
marginHorizontal: 0,
marginRight: -1,
borderTopLeftRadius: theme.metrics.borderRadius[9],
borderBottomLeftRadius: theme.metrics.borderRadius[9],
borderTopRightRadius: 0,
borderBottomRightRadius: 0,
},
calendarRangeMiddle: {
backgroundColor: "transparent",
marginHorizontal: -1,
borderRadius: 0,
},
calendarRangeEnd: {
backgroundColor: background.selected,
marginHorizontal: 0,
marginLeft: -1,
borderTopRightRadius: theme.metrics.borderRadius[9],
borderBottomRightRadius: theme.metrics.borderRadius[9],
borderTopLeftRadius: 0,
borderBottomLeftRadius: 0,
},
calendarRangeSelectedLabel: {
color: theme.colors.text.white,
fontWeight: theme.metrics.fontWeight.semiBold,
},
divider: {
borderTopWidth: theme.metrics.borderWidth.default,
borderTopColor: border.divider,
marginVertical: theme.metrics.spacing[2],
},
slotContainer: {
flexDirection: "row",
justifyContent: "space-between",
gap: theme.metrics.spacing[4],
},
slotButton: {
flex: 1,
borderWidth: theme.metrics.borderWidth.default,
borderColor: border.slot,
borderRadius: theme.metrics.borderRadius[2],
paddingVertical: theme.metrics.spacing[2],
alignItems: "center",
backgroundColor: "transparent",
},
slotButtonActive: {
backgroundColor: background.selected,
borderColor: background.selected,
},
slotButtonDisabled: {
borderColor: border.slotDisabled,
backgroundColor: "transparent",
opacity: theme.metrics.opacity[40],
},
slotText: {
color: text.placeholder,
fontSize: theme.metrics.textSize[16],
fontWeight: theme.metrics.fontWeight.medium,
},
slotTextActive: {
color: theme.colors.text.white,
},
slotTextDisabled: {
color: text.disabled,
},
summaryContainer: {
alignItems: "flex-end",
gap: theme.metrics.spacing[0.5],
},
summaryDate: {
color: text.muted,
fontSize: theme.metrics.textSize[18],
},
summaryDaysOff: {
color: text.emphasis,
fontSize: theme.metrics.textSize[18],
fontWeight: theme.metrics.fontWeight.bold,
},
errorMessage: {
position: "absolute",
bottom: -theme.metrics.spacing[4.5],
fontSize: theme.metrics.textSize[12],
color: theme.colors.text.error,
},
};
});
|