@loykin/cron-input 0.0.1-dev.4 → 0.0.2
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 +34 -0
- package/dist/UIAdapterContext-2S2m9TWH.d.cts +57 -0
- package/dist/UIAdapterContext-2S2m9TWH.d.ts +57 -0
- package/dist/adapters/shadcn.cjs +67 -0
- package/dist/adapters/shadcn.cjs.map +1 -0
- package/dist/adapters/shadcn.d.cts +24 -0
- package/dist/adapters/shadcn.d.ts +24 -0
- package/dist/adapters/shadcn.js +65 -0
- package/dist/adapters/shadcn.js.map +1 -0
- package/dist/index.cjs +129 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -6
- package/dist/index.d.ts +19 -6
- package/dist/index.js +130 -67
- package/dist/index.js.map +1 -1
- package/dist/styles.css +109 -83
- package/package.json +6 -1
package/dist/styles.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @loykin/cron-input
|
|
3
3
|
*
|
|
4
4
|
* Plain CSS, no Tailwind dependency.
|
|
5
|
-
* Override with --basekit-* custom properties or .
|
|
5
|
+
* Override with --basekit-* custom properties or .cron-input-* class names.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root {
|
|
@@ -43,22 +43,22 @@
|
|
|
43
43
|
|
|
44
44
|
/* ── Animations ─────────────────────────────────────────────────────────────── */
|
|
45
45
|
|
|
46
|
-
@keyframes
|
|
46
|
+
@keyframes cron-input-enter {
|
|
47
47
|
from {
|
|
48
|
-
opacity: var(--
|
|
49
|
-
transform: translate(var(--
|
|
48
|
+
opacity: var(--cron-input-enter-opacity, 1);
|
|
49
|
+
transform: translate(var(--cron-input-enter-tx, 0), var(--cron-input-enter-ty, 0)) scale(var(--cron-input-enter-scale, 1));
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
@keyframes
|
|
52
|
+
@keyframes cron-input-exit {
|
|
53
53
|
to {
|
|
54
|
-
opacity: var(--
|
|
55
|
-
transform: translate(var(--
|
|
54
|
+
opacity: var(--cron-input-exit-opacity, 1);
|
|
55
|
+
transform: translate(var(--cron-input-exit-tx, 0), var(--cron-input-exit-ty, 0)) scale(var(--cron-input-exit-scale, 1));
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/* ── Button ─────────────────────────────────────────────────────────────────── */
|
|
60
60
|
|
|
61
|
-
.
|
|
61
|
+
.cron-input-btn {
|
|
62
62
|
display: inline-flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: center;
|
|
@@ -77,22 +77,22 @@
|
|
|
77
77
|
user-select: none;
|
|
78
78
|
flex-shrink: 0;
|
|
79
79
|
}
|
|
80
|
-
.
|
|
81
|
-
.
|
|
80
|
+
.cron-input-btn:disabled { pointer-events: none; opacity: 0.5; }
|
|
81
|
+
.cron-input-btn:focus-visible {
|
|
82
82
|
border-color: var(--basekit-ring);
|
|
83
83
|
box-shadow: 0 0 0 1px color-mix(in oklab, var(--basekit-ring) 50%, transparent);
|
|
84
84
|
}
|
|
85
|
-
.
|
|
86
|
-
.
|
|
87
|
-
.
|
|
88
|
-
.
|
|
89
|
-
.
|
|
85
|
+
.cron-input-btn[data-variant="default"] { background: var(--basekit-primary); color: var(--basekit-primary-foreground); }
|
|
86
|
+
.cron-input-btn[data-variant="outline"] { border-color: var(--basekit-border); background: var(--basekit-background); color: var(--basekit-foreground); }
|
|
87
|
+
.cron-input-btn[data-variant="outline"]:hover { background: var(--basekit-muted); }
|
|
88
|
+
.cron-input-btn[data-variant="ghost"]:hover { background: var(--basekit-muted); }
|
|
89
|
+
.cron-input-btn[data-size="sm"] { height: 26px; padding: 0 8px; font-size: 11px; }
|
|
90
90
|
|
|
91
91
|
/* ── Positioner / Popover ───────────────────────────────────────────────────── */
|
|
92
92
|
|
|
93
|
-
.
|
|
93
|
+
.cron-input-positioner { isolation: isolate; z-index: 50; }
|
|
94
94
|
|
|
95
|
-
.
|
|
95
|
+
.cron-input-popover-content {
|
|
96
96
|
z-index: 50;
|
|
97
97
|
width: 300px;
|
|
98
98
|
border-radius: var(--basekit-radius);
|
|
@@ -104,29 +104,29 @@
|
|
|
104
104
|
overflow: hidden;
|
|
105
105
|
transform-origin: var(--transform-origin);
|
|
106
106
|
}
|
|
107
|
-
.
|
|
108
|
-
--
|
|
109
|
-
animation:
|
|
107
|
+
.cron-input-popover-content[data-open] {
|
|
108
|
+
--cron-input-enter-opacity: 0; --cron-input-enter-scale: 0.97;
|
|
109
|
+
animation: cron-input-enter 120ms ease both;
|
|
110
110
|
}
|
|
111
|
-
.
|
|
112
|
-
--
|
|
113
|
-
animation:
|
|
111
|
+
.cron-input-popover-content[data-closed] {
|
|
112
|
+
--cron-input-exit-opacity: 0; --cron-input-exit-scale: 0.97;
|
|
113
|
+
animation: cron-input-exit 100ms ease both;
|
|
114
114
|
}
|
|
115
|
-
.
|
|
116
|
-
.
|
|
115
|
+
.cron-input-popover-content[data-open][data-side="bottom"] { --cron-input-enter-ty: -4px; }
|
|
116
|
+
.cron-input-popover-content[data-open][data-side="top"] { --cron-input-enter-ty: 4px; }
|
|
117
117
|
|
|
118
118
|
/* ── Tabs ───────────────────────────────────────────────────────────────────── */
|
|
119
119
|
|
|
120
|
-
.
|
|
120
|
+
.cron-input-tabs { display: flex; flex-direction: column; }
|
|
121
121
|
|
|
122
|
-
.
|
|
122
|
+
.cron-input-tabs-list {
|
|
123
123
|
display: grid;
|
|
124
124
|
grid-template-columns: repeat(5, 1fr);
|
|
125
125
|
border-bottom: 1px solid var(--basekit-border);
|
|
126
126
|
background: var(--basekit-muted);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.
|
|
129
|
+
.cron-input-tabs-trigger {
|
|
130
130
|
display: inline-flex;
|
|
131
131
|
align-items: center;
|
|
132
132
|
justify-content: center;
|
|
@@ -144,48 +144,50 @@
|
|
|
144
144
|
transition: color 150ms, border-color 150ms, background 150ms;
|
|
145
145
|
user-select: none;
|
|
146
146
|
}
|
|
147
|
-
.
|
|
148
|
-
.
|
|
147
|
+
.cron-input-tabs-trigger:hover { color: var(--basekit-foreground); background: color-mix(in oklab, var(--basekit-foreground) 5%, transparent); }
|
|
148
|
+
.cron-input-tabs-trigger[data-active] {
|
|
149
149
|
color: var(--basekit-foreground);
|
|
150
150
|
border-bottom-color: var(--basekit-primary);
|
|
151
151
|
background: var(--basekit-background);
|
|
152
152
|
}
|
|
153
|
-
.
|
|
153
|
+
.cron-input-tabs-trigger:focus-visible {
|
|
154
154
|
outline: 2px solid var(--basekit-ring);
|
|
155
155
|
outline-offset: -2px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.
|
|
158
|
+
.cron-input-tabs-content { font-size: 12px; outline: none; }
|
|
159
159
|
|
|
160
160
|
/* ── Tab body ───────────────────────────────────────────────────────────────── */
|
|
161
161
|
|
|
162
|
-
.
|
|
162
|
+
.cron-input-tab-body {
|
|
163
163
|
display: flex;
|
|
164
164
|
flex-direction: column;
|
|
165
|
+
justify-content: center;
|
|
165
166
|
gap: 0;
|
|
166
167
|
padding: 16px;
|
|
167
168
|
min-height: 88px;
|
|
168
169
|
}
|
|
169
170
|
|
|
170
|
-
.
|
|
171
|
+
.cron-input-label {
|
|
171
172
|
font-size: 12px;
|
|
172
173
|
color: var(--basekit-muted-foreground);
|
|
173
174
|
white-space: nowrap;
|
|
174
175
|
flex-shrink: 0;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
.
|
|
178
|
+
.cron-input-field-row {
|
|
178
179
|
display: flex;
|
|
179
180
|
align-items: center;
|
|
181
|
+
align-self: center;
|
|
180
182
|
gap: 8px;
|
|
181
183
|
flex-wrap: wrap;
|
|
182
184
|
}
|
|
183
|
-
.
|
|
184
|
-
.
|
|
185
|
+
.cron-input-field-row--col { flex-direction: column; align-items: flex-start; gap: 6px; }
|
|
186
|
+
.cron-input-field-row--mt { margin-top: 12px; }
|
|
185
187
|
|
|
186
188
|
/* ── NumberStepper ──────────────────────────────────────────────────────────── */
|
|
187
189
|
|
|
188
|
-
.
|
|
190
|
+
.cron-input-stepper {
|
|
189
191
|
display: inline-flex;
|
|
190
192
|
align-items: center;
|
|
191
193
|
border: 1px solid var(--basekit-input);
|
|
@@ -195,7 +197,7 @@
|
|
|
195
197
|
height: 28px;
|
|
196
198
|
}
|
|
197
199
|
|
|
198
|
-
.
|
|
200
|
+
.cron-input-stepper-btn {
|
|
199
201
|
display: flex;
|
|
200
202
|
align-items: center;
|
|
201
203
|
justify-content: center;
|
|
@@ -212,10 +214,10 @@
|
|
|
212
214
|
user-select: none;
|
|
213
215
|
line-height: 1;
|
|
214
216
|
}
|
|
215
|
-
.
|
|
216
|
-
.
|
|
217
|
+
.cron-input-stepper-btn:hover { background: var(--basekit-muted); color: var(--basekit-foreground); }
|
|
218
|
+
.cron-input-stepper-btn:active { background: var(--basekit-accent); }
|
|
217
219
|
|
|
218
|
-
.
|
|
220
|
+
.cron-input-stepper-input {
|
|
219
221
|
width: 36px;
|
|
220
222
|
height: 100%;
|
|
221
223
|
border: none;
|
|
@@ -230,17 +232,17 @@
|
|
|
230
232
|
padding: 0;
|
|
231
233
|
font-variant-numeric: tabular-nums;
|
|
232
234
|
}
|
|
233
|
-
.
|
|
235
|
+
.cron-input-stepper-input:focus { background: color-mix(in oklab, var(--basekit-primary) 8%, transparent); }
|
|
234
236
|
|
|
235
237
|
/* ── TimePicker ─────────────────────────────────────────────────────────────── */
|
|
236
238
|
|
|
237
|
-
.
|
|
239
|
+
.cron-input-time {
|
|
238
240
|
display: flex;
|
|
239
241
|
align-items: center;
|
|
240
242
|
gap: 4px;
|
|
241
243
|
}
|
|
242
244
|
|
|
243
|
-
.
|
|
245
|
+
.cron-input-time-sep {
|
|
244
246
|
font-size: 14px;
|
|
245
247
|
font-weight: 600;
|
|
246
248
|
color: var(--basekit-muted-foreground);
|
|
@@ -251,14 +253,15 @@
|
|
|
251
253
|
|
|
252
254
|
/* ── Interval tab extras ────────────────────────────────────────────────────── */
|
|
253
255
|
|
|
254
|
-
.
|
|
256
|
+
.cron-input-interval-row {
|
|
255
257
|
display: flex;
|
|
256
258
|
align-items: center;
|
|
259
|
+
align-self: center;
|
|
257
260
|
gap: 8px;
|
|
258
261
|
flex-wrap: wrap;
|
|
259
262
|
}
|
|
260
263
|
|
|
261
|
-
.
|
|
264
|
+
.cron-input-unit-seg {
|
|
262
265
|
display: flex;
|
|
263
266
|
border: 1px solid var(--basekit-input);
|
|
264
267
|
border-radius: var(--basekit-radius);
|
|
@@ -266,7 +269,7 @@
|
|
|
266
269
|
height: 28px;
|
|
267
270
|
}
|
|
268
271
|
|
|
269
|
-
.
|
|
272
|
+
.cron-input-unit-btn {
|
|
270
273
|
display: flex;
|
|
271
274
|
align-items: center;
|
|
272
275
|
justify-content: center;
|
|
@@ -284,26 +287,26 @@
|
|
|
284
287
|
transition: background 100ms, color 100ms;
|
|
285
288
|
white-space: nowrap;
|
|
286
289
|
}
|
|
287
|
-
.
|
|
288
|
-
.
|
|
289
|
-
.
|
|
290
|
+
.cron-input-unit-btn:first-child { border-left: none; }
|
|
291
|
+
.cron-input-unit-btn:hover { background: var(--basekit-muted); color: var(--basekit-foreground); }
|
|
292
|
+
.cron-input-unit-btn--active {
|
|
290
293
|
background: var(--basekit-primary);
|
|
291
294
|
color: var(--basekit-primary-foreground);
|
|
292
295
|
}
|
|
293
|
-
.
|
|
296
|
+
.cron-input-unit-btn--active:hover {
|
|
294
297
|
background: var(--basekit-primary);
|
|
295
298
|
color: var(--basekit-primary-foreground);
|
|
296
299
|
}
|
|
297
|
-
.
|
|
300
|
+
.cron-input-unit-btn:focus-visible { outline: 2px solid var(--basekit-ring); outline-offset: -2px; }
|
|
298
301
|
|
|
299
302
|
/* ── DayChips ───────────────────────────────────────────────────────────────── */
|
|
300
303
|
|
|
301
|
-
.
|
|
304
|
+
.cron-input-day-chips {
|
|
302
305
|
display: flex;
|
|
303
306
|
gap: 4px;
|
|
304
307
|
}
|
|
305
308
|
|
|
306
|
-
.
|
|
309
|
+
.cron-input-day-chip {
|
|
307
310
|
display: flex;
|
|
308
311
|
align-items: center;
|
|
309
312
|
justify-content: center;
|
|
@@ -320,30 +323,30 @@
|
|
|
320
323
|
transition: background 100ms, color 100ms, border-color 100ms;
|
|
321
324
|
user-select: none;
|
|
322
325
|
}
|
|
323
|
-
.
|
|
324
|
-
.
|
|
326
|
+
.cron-input-day-chip:hover { border-color: var(--basekit-ring); color: var(--basekit-foreground); }
|
|
327
|
+
.cron-input-day-chip--active {
|
|
325
328
|
background: var(--basekit-primary);
|
|
326
329
|
border-color: var(--basekit-primary);
|
|
327
330
|
color: var(--basekit-primary-foreground);
|
|
328
331
|
}
|
|
329
|
-
.
|
|
332
|
+
.cron-input-day-chip--active:hover {
|
|
330
333
|
background: var(--basekit-primary);
|
|
331
334
|
border-color: var(--basekit-primary);
|
|
332
335
|
color: var(--basekit-primary-foreground);
|
|
333
336
|
}
|
|
334
|
-
.
|
|
337
|
+
.cron-input-day-chip:focus-visible { outline: 2px solid var(--basekit-ring); outline-offset: 1px; }
|
|
335
338
|
|
|
336
339
|
/* ── Custom tab ─────────────────────────────────────────────────────────────── */
|
|
337
340
|
|
|
338
|
-
.
|
|
341
|
+
.cron-input-custom { gap: 10px; }
|
|
339
342
|
|
|
340
|
-
.
|
|
343
|
+
.cron-input-custom-wrap {
|
|
341
344
|
position: relative;
|
|
342
345
|
display: flex;
|
|
343
346
|
align-items: center;
|
|
344
347
|
}
|
|
345
348
|
|
|
346
|
-
.
|
|
349
|
+
.cron-input-custom-input {
|
|
347
350
|
width: 100%;
|
|
348
351
|
height: 32px;
|
|
349
352
|
border: 1px solid var(--basekit-input);
|
|
@@ -356,17 +359,17 @@
|
|
|
356
359
|
outline: none;
|
|
357
360
|
transition: border-color 150ms;
|
|
358
361
|
}
|
|
359
|
-
.
|
|
362
|
+
.cron-input-custom-input:focus {
|
|
360
363
|
border-color: var(--basekit-ring);
|
|
361
364
|
box-shadow: 0 0 0 1px color-mix(in oklab, var(--basekit-ring) 50%, transparent);
|
|
362
365
|
}
|
|
363
|
-
.
|
|
366
|
+
.cron-input-custom-wrap--error .cron-input-custom-input {
|
|
364
367
|
border-color: var(--basekit-destructive);
|
|
365
368
|
box-shadow: 0 0 0 1px color-mix(in oklab, var(--basekit-destructive) 20%, transparent);
|
|
366
369
|
}
|
|
367
|
-
.
|
|
370
|
+
.cron-input-custom-input::placeholder { color: var(--basekit-muted-foreground); }
|
|
368
371
|
|
|
369
|
-
.
|
|
372
|
+
.cron-input-custom-badge {
|
|
370
373
|
position: absolute;
|
|
371
374
|
right: 8px;
|
|
372
375
|
font-size: 12px;
|
|
@@ -374,22 +377,22 @@
|
|
|
374
377
|
pointer-events: none;
|
|
375
378
|
line-height: 1;
|
|
376
379
|
}
|
|
377
|
-
.
|
|
378
|
-
.
|
|
380
|
+
.cron-input-custom-badge--ok { color: oklch(0.6 0.15 145); }
|
|
381
|
+
.cron-input-custom-badge--err { color: var(--basekit-destructive); }
|
|
379
382
|
|
|
380
|
-
.
|
|
383
|
+
.cron-input-custom-desc {
|
|
381
384
|
font-size: 11px;
|
|
382
385
|
color: var(--basekit-muted-foreground);
|
|
383
386
|
margin: 0;
|
|
384
387
|
}
|
|
385
388
|
|
|
386
|
-
.
|
|
389
|
+
.cron-input-custom-fields {
|
|
387
390
|
display: flex;
|
|
388
391
|
gap: 4px;
|
|
389
392
|
margin-top: 4px;
|
|
390
393
|
}
|
|
391
394
|
|
|
392
|
-
.
|
|
395
|
+
.cron-input-custom-field {
|
|
393
396
|
flex: 1;
|
|
394
397
|
display: flex;
|
|
395
398
|
flex-direction: column;
|
|
@@ -400,7 +403,7 @@
|
|
|
400
403
|
padding: 5px 4px;
|
|
401
404
|
}
|
|
402
405
|
|
|
403
|
-
.
|
|
406
|
+
.cron-input-custom-field-val {
|
|
404
407
|
font-size: 11px;
|
|
405
408
|
font-weight: 600;
|
|
406
409
|
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
|
|
@@ -408,7 +411,7 @@
|
|
|
408
411
|
line-height: 1;
|
|
409
412
|
}
|
|
410
413
|
|
|
411
|
-
.
|
|
414
|
+
.cron-input-custom-field-lbl {
|
|
412
415
|
font-size: 9px;
|
|
413
416
|
font-weight: 500;
|
|
414
417
|
color: var(--basekit-muted-foreground);
|
|
@@ -417,9 +420,32 @@
|
|
|
417
420
|
line-height: 1;
|
|
418
421
|
}
|
|
419
422
|
|
|
423
|
+
/* ── Adapted scale ──────────────────────────────────────────────────────────────
|
|
424
|
+
* NumberStepper/DayChips/TimePicker/the Custom-tab input aren't part of the
|
|
425
|
+
* uiAdapter surface (they're cron-input's own domain widgets, not generic
|
|
426
|
+
* Button/Popover/Tabs primitives), so swapping in a real UI kit's Button/Tabs
|
|
427
|
+
* doesn't touch them — they'd stay at this built-in 11-14px/~28px scale even
|
|
428
|
+
* inside a card sized for the adapter's own ~14px/~36px typography, looking
|
|
429
|
+
* shrunken next to it. `.cron-input-shadcn-scale` (added by the shadcn adapter's
|
|
430
|
+
* PopoverContent, so it never affects the built-in 300px card) bumps them up to
|
|
431
|
+
* match instead.
|
|
432
|
+
*/
|
|
433
|
+
.cron-input-shadcn-scale .cron-input-label { font-size: 13px; }
|
|
434
|
+
.cron-input-shadcn-scale .cron-input-stepper { height: 32px; }
|
|
435
|
+
.cron-input-shadcn-scale .cron-input-stepper-btn { width: 30px; font-size: 15px; }
|
|
436
|
+
.cron-input-shadcn-scale .cron-input-stepper-input { width: 40px; font-size: 13px; }
|
|
437
|
+
.cron-input-shadcn-scale .cron-input-time-sep { font-size: 15px; }
|
|
438
|
+
.cron-input-shadcn-scale .cron-input-unit-seg { height: 32px; }
|
|
439
|
+
.cron-input-shadcn-scale .cron-input-unit-btn { font-size: 12px; padding: 0 12px; }
|
|
440
|
+
.cron-input-shadcn-scale .cron-input-day-chip { width: 34px; height: 32px; font-size: 12px; }
|
|
441
|
+
.cron-input-shadcn-scale .cron-input-custom-input { height: 36px; font-size: 13px; }
|
|
442
|
+
.cron-input-shadcn-scale .cron-input-custom-badge { font-size: 13px; }
|
|
443
|
+
.cron-input-shadcn-scale .cron-input-custom-field-val { font-size: 12px; }
|
|
444
|
+
.cron-input-shadcn-scale .cron-input-custom-field-lbl { font-size: 10px; }
|
|
445
|
+
|
|
420
446
|
/* ── Footer ─────────────────────────────────────────────────────────────────── */
|
|
421
447
|
|
|
422
|
-
.
|
|
448
|
+
.cron-input-footer {
|
|
423
449
|
display: flex;
|
|
424
450
|
align-items: center;
|
|
425
451
|
justify-content: space-between;
|
|
@@ -429,7 +455,7 @@
|
|
|
429
455
|
background: color-mix(in oklab, var(--basekit-muted) 40%, transparent);
|
|
430
456
|
}
|
|
431
457
|
|
|
432
|
-
.
|
|
458
|
+
.cron-input-preview {
|
|
433
459
|
font-size: 11px;
|
|
434
460
|
color: var(--basekit-muted-foreground);
|
|
435
461
|
min-width: 0;
|
|
@@ -439,7 +465,7 @@
|
|
|
439
465
|
flex: 1;
|
|
440
466
|
}
|
|
441
467
|
|
|
442
|
-
.
|
|
468
|
+
.cron-input-footer-actions {
|
|
443
469
|
display: flex;
|
|
444
470
|
gap: 6px;
|
|
445
471
|
flex-shrink: 0;
|
|
@@ -447,7 +473,7 @@
|
|
|
447
473
|
|
|
448
474
|
/* ── Trigger button ─────────────────────────────────────────────────────────── */
|
|
449
475
|
|
|
450
|
-
.
|
|
476
|
+
.cron-input-trigger {
|
|
451
477
|
display: inline-flex;
|
|
452
478
|
align-items: center;
|
|
453
479
|
gap: 6px;
|
|
@@ -464,13 +490,13 @@
|
|
|
464
490
|
user-select: none;
|
|
465
491
|
white-space: nowrap;
|
|
466
492
|
}
|
|
467
|
-
.
|
|
468
|
-
.
|
|
469
|
-
.
|
|
470
|
-
.
|
|
493
|
+
.cron-input-trigger:hover { background: var(--basekit-muted); }
|
|
494
|
+
.cron-input-trigger--open { border-color: var(--basekit-foreground); }
|
|
495
|
+
.cron-input-trigger:disabled { pointer-events: none; opacity: 0.5; }
|
|
496
|
+
.cron-input-trigger:focus-visible {
|
|
471
497
|
border-color: var(--basekit-ring);
|
|
472
498
|
box-shadow: 0 0 0 1px color-mix(in oklab, var(--basekit-ring) 50%, transparent);
|
|
473
499
|
}
|
|
474
500
|
|
|
475
|
-
.
|
|
476
|
-
.
|
|
501
|
+
.cron-input-trigger-icon { color: var(--basekit-muted-foreground); flex-shrink: 0; }
|
|
502
|
+
.cron-input-trigger-label { flex: 1; text-align: left; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loykin/cron-input",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Cron expression builder component with visual schedule editor and raw expression fallback.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"./styles": {
|
|
16
16
|
"types": "./dist/styles.d.ts",
|
|
17
17
|
"default": "./dist/styles.css"
|
|
18
|
+
},
|
|
19
|
+
"./adapters/shadcn": {
|
|
20
|
+
"types": "./dist/adapters/shadcn.d.ts",
|
|
21
|
+
"import": "./dist/adapters/shadcn.js",
|
|
22
|
+
"require": "./dist/adapters/shadcn.cjs"
|
|
18
23
|
}
|
|
19
24
|
},
|
|
20
25
|
"files": [
|