@humu-tech/ui 0.1.26 → 0.3.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/README.md +313 -88
- package/dist/DateInput-W7IF3TRC.css +112 -0
- package/dist/DateRangeInput-66WC5JQX.css +150 -0
- package/dist/Sidebar-RBBNUVDV.css +7 -0
- package/dist/index.d.mts +630 -65
- package/dist/index.d.ts +630 -65
- package/dist/index.js +7720 -4286
- package/dist/index.mjs +6676 -3186
- package/dist/tailwind-preset.js +142 -33
- package/dist/tailwind-preset.mjs +132 -33
- package/dist/tokens/colors.css +55 -55
- package/dist/tokens/elevation.css +10 -5
- package/dist/tokens/motion.css +23 -14
- package/dist/tokens/primitives.css +94 -0
- package/dist/tokens/primitives.d.mts +2 -0
- package/dist/tokens/primitives.d.ts +2 -0
- package/dist/tokens/semantic.css +172 -0
- package/dist/tokens/semantic.d.mts +2 -0
- package/dist/tokens/semantic.d.ts +2 -0
- package/dist/tokens/spacing.css +1 -17
- package/dist/tokens/surfaces.css +64 -98
- package/dist/tokens/typography.css +44 -23
- package/dist/tokens.css +10 -7
- package/package.json +42 -22
- package/dist/DateInput-ASNJQV43.css +0 -105
- package/dist/DateRangeInput-PC5F3TTS.css +0 -143
- package/dist/Sidebar-4ILVFQI5.css +0 -44
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
.rdp-root.rdp-humu-range {
|
|
2
|
+
--rdp-accent-background-color: color-mix(
|
|
3
|
+
in oklch,
|
|
4
|
+
var(--humu-background-brand-brand) 18%,
|
|
5
|
+
transparent
|
|
6
|
+
);
|
|
7
|
+
--rdp-day-width: 36px;
|
|
8
|
+
--rdp-day-height: 36px;
|
|
9
|
+
--rdp-day_button-width: 36px;
|
|
10
|
+
--rdp-day_button-height: 36px;
|
|
11
|
+
--rdp-nav-height: 2rem;
|
|
12
|
+
--rdp-nav_button-width: 2rem;
|
|
13
|
+
--rdp-nav_button-height: 2rem;
|
|
14
|
+
--rdp-months-gap: 1.5rem;
|
|
15
|
+
--rdp-accent-color: var(--humu-background-brand-brand);
|
|
16
|
+
--rdp-today-color: var(--humu-background-brand-brand);
|
|
17
|
+
--rdp-selected-border: 2px solid var(--humu-background-brand-brand);
|
|
18
|
+
--rdp-outside-opacity: 0.5;
|
|
19
|
+
--rdp-disabled-opacity: 0.4;
|
|
20
|
+
--rdp-weekday-text-transform: uppercase;
|
|
21
|
+
--rdp-weekday-opacity: 1;
|
|
22
|
+
margin: 0;
|
|
23
|
+
color: var(--humu-content-title);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.rdp-humu-range .rdp-weekday {
|
|
27
|
+
color: var(--humu-content-subtitle);
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rdp-humu-range .rdp-caption_label {
|
|
32
|
+
color: var(--humu-content-title);
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.rdp-humu-range .rdp-day_button {
|
|
37
|
+
border-radius: var(--radius-md, 8px);
|
|
38
|
+
color: var(--humu-content-title);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.rdp-humu-range
|
|
42
|
+
.rdp-day:not(.rdp-selected):not(.rdp-range_middle)
|
|
43
|
+
.rdp-day_button:hover:not([disabled]) {
|
|
44
|
+
background-color: color-mix(
|
|
45
|
+
in oklch,
|
|
46
|
+
var(--humu-background-brand-brand) 22%,
|
|
47
|
+
transparent
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.rdp-humu-range .rdp-day_button:focus-visible {
|
|
52
|
+
outline: 2px solid var(--humu-focus-ring);
|
|
53
|
+
outline-offset: 1px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.rdp-humu-range .rdp-today .rdp-day_button {
|
|
57
|
+
color: var(--humu-background-brand-brand);
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rdp-humu-range
|
|
62
|
+
.rdp-today:not(.rdp-selected):not(.rdp-range_middle)
|
|
63
|
+
.rdp-day_button {
|
|
64
|
+
box-shadow: inset 0 0 0 1.5px var(--humu-background-brand-brand);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rdp-humu-range .rdp-outside .rdp-day_button {
|
|
68
|
+
color: var(--humu-content-body-text);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.rdp-humu-range .rdp-range_start .rdp-day_button,
|
|
72
|
+
.rdp-humu-range .rdp-range_end .rdp-day_button,
|
|
73
|
+
.rdp-humu-range .rdp-selected:not(.rdp-range_middle) .rdp-day_button {
|
|
74
|
+
background-color: var(--humu-background-brand-brand);
|
|
75
|
+
color: var(--humu-content-on-brand);
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
border: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rdp-humu-range .rdp-range_middle {
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.rdp-humu-range .rdp-range_middle .rdp-day_button {
|
|
85
|
+
color: var(--humu-content-title);
|
|
86
|
+
border-radius: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.rdp-humu-range .rdp-range_middle .rdp-day_button:hover:not([disabled]) {
|
|
90
|
+
background-color: color-mix(
|
|
91
|
+
in oklch,
|
|
92
|
+
var(--humu-background-brand-brand) 32%,
|
|
93
|
+
transparent
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rdp-humu-range .rdp-range_start:not(.rdp-range_end) .rdp-day_button {
|
|
98
|
+
border-top-right-radius: 0;
|
|
99
|
+
border-bottom-right-radius: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.rdp-humu-range .rdp-range_end:not(.rdp-range_start) .rdp-day_button {
|
|
103
|
+
border-top-left-radius: 0;
|
|
104
|
+
border-bottom-left-radius: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.rdp-humu-range .rdp-button_previous,
|
|
108
|
+
.rdp-humu-range .rdp-button_next {
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
border: 1px solid var(--humu-border-default);
|
|
113
|
+
border-radius: 9999px;
|
|
114
|
+
background-color: var(--humu-background-surface);
|
|
115
|
+
color: var(--humu-content-title);
|
|
116
|
+
transition: background-color var(--humu-duration-fast) var(--humu-easing-in-out);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.rdp-humu-range .rdp-button_previous:not([aria-disabled='true']):hover,
|
|
120
|
+
.rdp-humu-range .rdp-button_next:not([aria-disabled='true']):hover {
|
|
121
|
+
background-color: var(--humu-background-surface);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.rdp-humu-range .rdp-button_previous:focus-visible,
|
|
125
|
+
.rdp-humu-range .rdp-button_next:focus-visible {
|
|
126
|
+
outline: 2px solid var(--humu-focus-ring);
|
|
127
|
+
outline-offset: 1px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.rdp-humu-range .rdp-button_previous[aria-disabled='true'],
|
|
131
|
+
.rdp-humu-range .rdp-button_next[aria-disabled='true'] {
|
|
132
|
+
opacity: 0.4;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.rdp-humu-range .rdp-chevron {
|
|
136
|
+
width: 1rem;
|
|
137
|
+
height: 1rem;
|
|
138
|
+
fill: currentColor;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.rdp-humu-range .rdp-selected {
|
|
142
|
+
font-size: inherit;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@media (prefers-reduced-motion: reduce) {
|
|
146
|
+
.rdp-humu-range .rdp-button_previous,
|
|
147
|
+
.rdp-humu-range .rdp-button_next {
|
|
148
|
+
transition: none;
|
|
149
|
+
}
|
|
150
|
+
}
|