@boxcustodia/library 2.0.0-alpha.4 → 2.0.0-alpha.6
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/index.cjs.js +56 -60
- package/dist/index.d.ts +122 -85
- package/dist/index.es.js +19033 -17881
- package/dist/theme.css +232 -228
- package/package.json +124 -124
package/dist/theme.css
CHANGED
|
@@ -1,228 +1,232 @@
|
|
|
1
|
-
@plugin "tailwindcss-animate";
|
|
2
|
-
@custom-variant open (&[data-state="open"]);
|
|
3
|
-
@custom-variant closed (&[data-state="closed"]);
|
|
4
|
-
@custom-variant invalid (&[aria-invalid="true"]);
|
|
5
|
-
|
|
6
|
-
@theme {
|
|
7
|
-
--color-background: oklch(100% 0 0);
|
|
8
|
-
--color-foreground: oklch(13.63% 0.036 259.2);
|
|
9
|
-
|
|
10
|
-
--color-popover: oklch(100% 0 0);
|
|
11
|
-
--color-popover-foreground: oklch(13.63% 0.036 259.2);
|
|
12
|
-
|
|
13
|
-
--color-primary: oklch(59.5% 0.195 270.48);
|
|
14
|
-
--color-primary-foreground: oklch(100% 0 0);
|
|
15
|
-
|
|
16
|
-
--color-secondary: oklch(96.83% 0.007 247.9);
|
|
17
|
-
--color-secondary-foreground: oklch(20.77% 0.04 265.75);
|
|
18
|
-
|
|
19
|
-
--color-muted: oklch(96.83% 0.007 247.9);
|
|
20
|
-
--color-muted-foreground: oklch(55.44% 0.041 257.42);
|
|
21
|
-
|
|
22
|
-
--color-accent: oklch(96.74% 0.001 286.38);
|
|
23
|
-
--color-accent-foreground: oklch(19.06% 0.003 247.96);
|
|
24
|
-
|
|
25
|
-
--color-error: oklch(63.68% 0.208 25.33);
|
|
26
|
-
--color-error-foreground: oklch(98.42% 0.003 247.86);
|
|
27
|
-
|
|
28
|
-
--color-success: oklch(70.1% 0.146 156.33);
|
|
29
|
-
--color-success-foreground: oklch(98.42% 0.003 247.86);
|
|
30
|
-
|
|
31
|
-
--color-warning: oklch(79.65% 0.16 70.08);
|
|
32
|
-
--color-warning-foreground: oklch(17.97% 0.034 59.63);
|
|
33
|
-
|
|
34
|
-
--color-info: oklch(62.8% 0.152 237.57);
|
|
35
|
-
--color-info-foreground: oklch(98.42% 0.003 247.86);
|
|
36
|
-
|
|
37
|
-
--animate-toast-bump: toast-bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
38
|
-
--animate-skeleton: skeleton 1.5s linear infinite;
|
|
39
|
-
|
|
40
|
-
--color-input: oklch(76.68% 0 0);
|
|
41
|
-
--color-checkbox: var(--color-primary);
|
|
42
|
-
--color-ring: oklch(13.63% 0.036 259.2);
|
|
43
|
-
|
|
44
|
-
--radius: 0.5rem;
|
|
45
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
46
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
47
|
-
--radius-lg: calc(var(--radius));
|
|
48
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
49
|
-
--radius-tag: 0.375rem;
|
|
50
|
-
--radius-checkbox: 0.25rem;
|
|
51
|
-
|
|
52
|
-
--icon-size: 1rem;
|
|
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
|
-
.btn-loader-
|
|
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
|
-
}
|
|
1
|
+
@plugin "tailwindcss-animate";
|
|
2
|
+
@custom-variant open (&[data-state="open"]);
|
|
3
|
+
@custom-variant closed (&[data-state="closed"]);
|
|
4
|
+
@custom-variant invalid (&[aria-invalid="true"]);
|
|
5
|
+
|
|
6
|
+
@theme {
|
|
7
|
+
--color-background: oklch(100% 0 0);
|
|
8
|
+
--color-foreground: oklch(13.63% 0.036 259.2);
|
|
9
|
+
|
|
10
|
+
--color-popover: oklch(100% 0 0);
|
|
11
|
+
--color-popover-foreground: oklch(13.63% 0.036 259.2);
|
|
12
|
+
|
|
13
|
+
--color-primary: oklch(59.5% 0.195 270.48);
|
|
14
|
+
--color-primary-foreground: oklch(100% 0 0);
|
|
15
|
+
|
|
16
|
+
--color-secondary: oklch(96.83% 0.007 247.9);
|
|
17
|
+
--color-secondary-foreground: oklch(20.77% 0.04 265.75);
|
|
18
|
+
|
|
19
|
+
--color-muted: oklch(96.83% 0.007 247.9);
|
|
20
|
+
--color-muted-foreground: oklch(55.44% 0.041 257.42);
|
|
21
|
+
|
|
22
|
+
--color-accent: oklch(96.74% 0.001 286.38);
|
|
23
|
+
--color-accent-foreground: oklch(19.06% 0.003 247.96);
|
|
24
|
+
|
|
25
|
+
--color-error: oklch(63.68% 0.208 25.33);
|
|
26
|
+
--color-error-foreground: oklch(98.42% 0.003 247.86);
|
|
27
|
+
|
|
28
|
+
--color-success: oklch(70.1% 0.146 156.33);
|
|
29
|
+
--color-success-foreground: oklch(98.42% 0.003 247.86);
|
|
30
|
+
|
|
31
|
+
--color-warning: oklch(79.65% 0.16 70.08);
|
|
32
|
+
--color-warning-foreground: oklch(17.97% 0.034 59.63);
|
|
33
|
+
|
|
34
|
+
--color-info: oklch(62.8% 0.152 237.57);
|
|
35
|
+
--color-info-foreground: oklch(98.42% 0.003 247.86);
|
|
36
|
+
|
|
37
|
+
--animate-toast-bump: toast-bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
38
|
+
--animate-skeleton: skeleton 1.5s linear infinite;
|
|
39
|
+
|
|
40
|
+
--color-input: oklch(76.68% 0 0);
|
|
41
|
+
--color-checkbox: var(--color-primary);
|
|
42
|
+
--color-ring: oklch(13.63% 0.036 259.2);
|
|
43
|
+
|
|
44
|
+
--radius: 0.5rem;
|
|
45
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
46
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
47
|
+
--radius-lg: calc(var(--radius));
|
|
48
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
49
|
+
--radius-tag: 0.375rem;
|
|
50
|
+
--radius-checkbox: 0.25rem;
|
|
51
|
+
|
|
52
|
+
--icon-size: 1rem;
|
|
53
|
+
|
|
54
|
+
--z-overlay: 50;
|
|
55
|
+
--z-float: 60;
|
|
56
|
+
--z-toast: 70;
|
|
57
|
+
}
|
|
58
|
+
/* Tooltip enter animation — @starting-style is more reliable than data-[starting-style]
|
|
59
|
+
because it guarantees the browser paints the initial state before the transition fires,
|
|
60
|
+
avoiding the "no animation" issue caused by lost repaint frames. */
|
|
61
|
+
@starting-style {
|
|
62
|
+
[data-slot="tooltip-popup"] {
|
|
63
|
+
scale: 0.98;
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@layer base {
|
|
69
|
+
#root {
|
|
70
|
+
isolation: isolate;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
body {
|
|
74
|
+
background-color: var(--color-background);
|
|
75
|
+
color: var(--color-foreground);
|
|
76
|
+
}
|
|
77
|
+
* {
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding: 0;
|
|
81
|
+
}
|
|
82
|
+
*,
|
|
83
|
+
::after,
|
|
84
|
+
::before,
|
|
85
|
+
::backdrop,
|
|
86
|
+
::file-selector-button {
|
|
87
|
+
border-color: var(--color-gray-200, currentColor);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
input:disabled,
|
|
91
|
+
button:disabled,
|
|
92
|
+
textarea:disabled,
|
|
93
|
+
select:disabled,
|
|
94
|
+
[data-disabled="true"] {
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
}
|
|
98
|
+
button:not(:disabled),
|
|
99
|
+
[role="button"]:not(:disabled) {
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.field-error {
|
|
104
|
+
border-color: var(--color-error);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.lucide {
|
|
108
|
+
width: var(--icon-size);
|
|
109
|
+
height: var(--icon-size);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@keyframes pulse {
|
|
113
|
+
0%,
|
|
114
|
+
100% {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
50% {
|
|
118
|
+
opacity: 0.9;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes fadeIn {
|
|
123
|
+
from {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
}
|
|
126
|
+
to {
|
|
127
|
+
opacity: 1;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Btn loader */
|
|
132
|
+
.btn-loader-enter,
|
|
133
|
+
.btn-loader-exit {
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.btn-loader-enter {
|
|
138
|
+
width: 0;
|
|
139
|
+
opacity: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.btn-loader-enter-active {
|
|
143
|
+
width: var(--icon-size);
|
|
144
|
+
opacity: 1;
|
|
145
|
+
transition:
|
|
146
|
+
width 0.3s ease,
|
|
147
|
+
opacity 0.3s ease;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.btn-loader-exit {
|
|
151
|
+
width: var(--icon-size);
|
|
152
|
+
opacity: 1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.btn-loader-exit-active {
|
|
156
|
+
width: 0;
|
|
157
|
+
opacity: 0;
|
|
158
|
+
transition:
|
|
159
|
+
width 0.15s ease,
|
|
160
|
+
opacity 0.25s ease;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Fade */
|
|
164
|
+
.fade-enter {
|
|
165
|
+
opacity: 0;
|
|
166
|
+
transform: scale(0.8);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.fade-enter-active {
|
|
170
|
+
opacity: 1;
|
|
171
|
+
transform: scale(1);
|
|
172
|
+
transition:
|
|
173
|
+
opacity 0.1s ease,
|
|
174
|
+
transform 0.1s ease;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.fade-exit {
|
|
178
|
+
opacity: 1;
|
|
179
|
+
transform: scale(1);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.fade-exit-active {
|
|
183
|
+
opacity: 0;
|
|
184
|
+
transform: scale(0.8);
|
|
185
|
+
transition:
|
|
186
|
+
opacity 0.2s ease,
|
|
187
|
+
transform 0.2s ease;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@keyframes skeleton {
|
|
191
|
+
to {
|
|
192
|
+
background-position: -200% 0;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@keyframes toast-bump {
|
|
197
|
+
0%,
|
|
198
|
+
100% {
|
|
199
|
+
transform: scale(1);
|
|
200
|
+
}
|
|
201
|
+
40% {
|
|
202
|
+
transform: scale(1.03);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.numberInput {
|
|
207
|
+
/* Chrome, Safari, Edge, Opera */
|
|
208
|
+
&::-webkit-outer-spin-button,
|
|
209
|
+
&::-webkit-inner-spin-button {
|
|
210
|
+
-webkit-appearance: none;
|
|
211
|
+
margin: -1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Firefox */
|
|
215
|
+
&[type="number"] {
|
|
216
|
+
-moz-appearance: textfield;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
|
|
221
|
+
margin-top: 1.5rem;
|
|
222
|
+
}
|
|
223
|
+
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
224
|
+
margin-top: 1rem;
|
|
225
|
+
}
|
|
226
|
+
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
|
|
227
|
+
margin-top: 0.5rem;
|
|
228
|
+
}
|
|
229
|
+
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
|
230
|
+
margin-top: 0.275rem;
|
|
231
|
+
}
|
|
232
|
+
}
|