@boxcustodia/library 2.0.0-alpha.3 → 2.0.0-alpha.5

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/theme.css CHANGED
@@ -1,224 +1,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
- /* Tooltip enter animation — @starting-style is more reliable than data-[starting-style]
55
- because it guarantees the browser paints the initial state before the transition fires,
56
- avoiding the "no animation" issue caused by lost repaint frames. */
57
- @starting-style {
58
- [data-slot="tooltip-popup"] {
59
- scale: 0.98;
60
- opacity: 0;
61
- }
62
- }
63
-
64
- @layer base {
65
- body {
66
- background-color: var(--color-background);
67
- color: var(--color-foreground);
68
- }
69
- * {
70
- box-sizing: border-box;
71
- margin: 0;
72
- padding: 0;
73
- }
74
- *,
75
- ::after,
76
- ::before,
77
- ::backdrop,
78
- ::file-selector-button {
79
- border-color: var(--color-gray-200, currentColor);
80
- }
81
-
82
- input:disabled,
83
- button:disabled,
84
- textarea:disabled,
85
- select:disabled,
86
- [data-disabled="true"] {
87
- pointer-events: none;
88
- opacity: 0.5;
89
- }
90
- button:not(:disabled),
91
- [role="button"]:not(:disabled) {
92
- cursor: pointer;
93
- }
94
-
95
- .field-error {
96
- border-color: var(--color-error);
97
- }
98
-
99
- .lucide {
100
- width: var(--icon-size);
101
- height: var(--icon-size);
102
- }
103
-
104
- @keyframes pulse {
105
- 0%,
106
- 100% {
107
- opacity: 1;
108
- }
109
- 50% {
110
- opacity: 0.9;
111
- }
112
- }
113
-
114
- @keyframes fadeIn {
115
- from {
116
- opacity: 0;
117
- }
118
- to {
119
- opacity: 1;
120
- }
121
- }
122
-
123
- /* Btn loader */
124
- .btn-loader-enter,
125
- .btn-loader-exit {
126
- overflow: hidden;
127
- }
128
-
129
- .btn-loader-enter {
130
- width: 0;
131
- opacity: 0;
132
- }
133
-
134
- .btn-loader-enter-active {
135
- width: var(--icon-size);
136
- opacity: 1;
137
- transition:
138
- width 0.3s ease,
139
- opacity 0.3s ease;
140
- }
141
-
142
- .btn-loader-exit {
143
- width: var(--icon-size);
144
- opacity: 1;
145
- }
146
-
147
- .btn-loader-exit-active {
148
- width: 0;
149
- opacity: 0;
150
- transition:
151
- width 0.15s ease,
152
- opacity 0.25s ease;
153
- }
154
-
155
- /* Fade */
156
- .fade-enter {
157
- opacity: 0;
158
- transform: scale(0.8);
159
- }
160
-
161
- .fade-enter-active {
162
- opacity: 1;
163
- transform: scale(1);
164
- transition:
165
- opacity 0.1s ease,
166
- transform 0.1s ease;
167
- }
168
-
169
- .fade-exit {
170
- opacity: 1;
171
- transform: scale(1);
172
- }
173
-
174
- .fade-exit-active {
175
- opacity: 0;
176
- transform: scale(0.8);
177
- transition:
178
- opacity 0.2s ease,
179
- transform 0.2s ease;
180
- }
181
-
182
- @keyframes skeleton {
183
- to {
184
- background-position: -200% 0;
185
- }
186
- }
187
-
188
- @keyframes toast-bump {
189
- 0%,
190
- 100% {
191
- transform: scale(1);
192
- }
193
- 40% {
194
- transform: scale(1.03);
195
- }
196
- }
197
-
198
- .numberInput {
199
- /* Chrome, Safari, Edge, Opera */
200
- &::-webkit-outer-spin-button,
201
- &::-webkit-inner-spin-button {
202
- -webkit-appearance: none;
203
- margin: -1;
204
- }
205
-
206
- /* Firefox */
207
- &[type="number"] {
208
- -moz-appearance: textfield;
209
- }
210
- }
211
-
212
- .space-y-6 > :not([hidden]) ~ :not([hidden]) {
213
- margin-top: 1.5rem;
214
- }
215
- .space-y-4 > :not([hidden]) ~ :not([hidden]) {
216
- margin-top: 1rem;
217
- }
218
- .space-y-2 > :not([hidden]) ~ :not([hidden]) {
219
- margin-top: 0.5rem;
220
- }
221
- .space-y-1 > :not([hidden]) ~ :not([hidden]) {
222
- margin-top: 0.275rem;
223
- }
224
- }
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
+ /* Tooltip enter animation — @starting-style is more reliable than data-[starting-style]
55
+ because it guarantees the browser paints the initial state before the transition fires,
56
+ avoiding the "no animation" issue caused by lost repaint frames. */
57
+ @starting-style {
58
+ [data-slot="tooltip-popup"] {
59
+ scale: 0.98;
60
+ opacity: 0;
61
+ }
62
+ }
63
+
64
+ @layer base {
65
+ #root {
66
+ isolation: isolate;
67
+ }
68
+
69
+ body {
70
+ background-color: var(--color-background);
71
+ color: var(--color-foreground);
72
+ }
73
+ * {
74
+ box-sizing: border-box;
75
+ margin: 0;
76
+ padding: 0;
77
+ }
78
+ *,
79
+ ::after,
80
+ ::before,
81
+ ::backdrop,
82
+ ::file-selector-button {
83
+ border-color: var(--color-gray-200, currentColor);
84
+ }
85
+
86
+ input:disabled,
87
+ button:disabled,
88
+ textarea:disabled,
89
+ select:disabled,
90
+ [data-disabled="true"] {
91
+ pointer-events: none;
92
+ opacity: 0.5;
93
+ }
94
+ button:not(:disabled),
95
+ [role="button"]:not(:disabled) {
96
+ cursor: pointer;
97
+ }
98
+
99
+ .field-error {
100
+ border-color: var(--color-error);
101
+ }
102
+
103
+ .lucide {
104
+ width: var(--icon-size);
105
+ height: var(--icon-size);
106
+ }
107
+
108
+ @keyframes pulse {
109
+ 0%,
110
+ 100% {
111
+ opacity: 1;
112
+ }
113
+ 50% {
114
+ opacity: 0.9;
115
+ }
116
+ }
117
+
118
+ @keyframes fadeIn {
119
+ from {
120
+ opacity: 0;
121
+ }
122
+ to {
123
+ opacity: 1;
124
+ }
125
+ }
126
+
127
+ /* Btn loader */
128
+ .btn-loader-enter,
129
+ .btn-loader-exit {
130
+ overflow: hidden;
131
+ }
132
+
133
+ .btn-loader-enter {
134
+ width: 0;
135
+ opacity: 0;
136
+ }
137
+
138
+ .btn-loader-enter-active {
139
+ width: var(--icon-size);
140
+ opacity: 1;
141
+ transition:
142
+ width 0.3s ease,
143
+ opacity 0.3s ease;
144
+ }
145
+
146
+ .btn-loader-exit {
147
+ width: var(--icon-size);
148
+ opacity: 1;
149
+ }
150
+
151
+ .btn-loader-exit-active {
152
+ width: 0;
153
+ opacity: 0;
154
+ transition:
155
+ width 0.15s ease,
156
+ opacity 0.25s ease;
157
+ }
158
+
159
+ /* Fade */
160
+ .fade-enter {
161
+ opacity: 0;
162
+ transform: scale(0.8);
163
+ }
164
+
165
+ .fade-enter-active {
166
+ opacity: 1;
167
+ transform: scale(1);
168
+ transition:
169
+ opacity 0.1s ease,
170
+ transform 0.1s ease;
171
+ }
172
+
173
+ .fade-exit {
174
+ opacity: 1;
175
+ transform: scale(1);
176
+ }
177
+
178
+ .fade-exit-active {
179
+ opacity: 0;
180
+ transform: scale(0.8);
181
+ transition:
182
+ opacity 0.2s ease,
183
+ transform 0.2s ease;
184
+ }
185
+
186
+ @keyframes skeleton {
187
+ to {
188
+ background-position: -200% 0;
189
+ }
190
+ }
191
+
192
+ @keyframes toast-bump {
193
+ 0%,
194
+ 100% {
195
+ transform: scale(1);
196
+ }
197
+ 40% {
198
+ transform: scale(1.03);
199
+ }
200
+ }
201
+
202
+ .numberInput {
203
+ /* Chrome, Safari, Edge, Opera */
204
+ &::-webkit-outer-spin-button,
205
+ &::-webkit-inner-spin-button {
206
+ -webkit-appearance: none;
207
+ margin: -1;
208
+ }
209
+
210
+ /* Firefox */
211
+ &[type="number"] {
212
+ -moz-appearance: textfield;
213
+ }
214
+ }
215
+
216
+ .space-y-6 > :not([hidden]) ~ :not([hidden]) {
217
+ margin-top: 1.5rem;
218
+ }
219
+ .space-y-4 > :not([hidden]) ~ :not([hidden]) {
220
+ margin-top: 1rem;
221
+ }
222
+ .space-y-2 > :not([hidden]) ~ :not([hidden]) {
223
+ margin-top: 0.5rem;
224
+ }
225
+ .space-y-1 > :not([hidden]) ~ :not([hidden]) {
226
+ margin-top: 0.275rem;
227
+ }
228
+ }