rei-kit 0.19.0 → 0.20.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/dist/pwa.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as addDays, f as todayKey, i as needsIosInstall, r as isInstalled, t as SettingsGroup_default } from "./SettingsGroup-DtEB_Hrd.js";
1
+ import { a as addDays, f as todayKey, i as needsIosInstall, r as isInstalled, t as SettingsGroup_default } from "./SettingsGroup-JsD19V81.js";
2
2
  import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.js";
3
3
  import { n as BaseButton_default, t as SettingsRow_default } from "./SettingsRow-3lPRJbBZ.js";
4
4
  import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
package/dist/styles.css CHANGED
@@ -311,6 +311,173 @@
311
311
  background: color-mix(in srgb, var(--color-hair) 70%, transparent);
312
312
  }
313
313
 
314
+ .rk-combo[data-v-52b21155] {
315
+ position: relative;
316
+ display: flex;
317
+ flex-direction: column;
318
+ gap: 0.375rem;
319
+ }
320
+ .rk-combo-label[data-v-52b21155] {
321
+ font-size: 0.875rem;
322
+ font-weight: 500;
323
+ color: var(--color-ink);
324
+ }
325
+ .rk-combo-field[data-v-52b21155] {
326
+ position: relative;
327
+ display: flex;
328
+ align-items: center;
329
+ }
330
+
331
+ /* 16px, like every other text control here: iOS zooms the viewport when it
332
+ focuses a field under 16px and never zooms back. */
333
+ .rk-combo-input[data-v-52b21155] {
334
+ width: 100%;
335
+ height: 2.75rem;
336
+ border-radius: var(--radius-card);
337
+ border: 1px solid var(--color-hair);
338
+ background: var(--color-surface);
339
+ padding: 0 2rem 0 0.75rem;
340
+ font-size: 1rem;
341
+ color: var(--color-ink);
342
+ }
343
+ .rk-combo-input[data-v-52b21155]:focus-visible {
344
+ outline: 2px solid var(--color-primary);
345
+ outline-offset: -1px;
346
+ }
347
+ .rk-combo-input[data-v-52b21155]:disabled {
348
+ opacity: 0.5;
349
+ }
350
+ .rk-combo-toggle[data-v-52b21155] {
351
+ position: absolute;
352
+ right: 0.5rem;
353
+ color: var(--color-ink-soft);
354
+ font-size: 0.75rem;
355
+ }
356
+ .rk-combo-list[data-v-52b21155] {
357
+ position: absolute;
358
+ top: calc(100% - 1.25rem);
359
+ z-index: 50;
360
+ max-height: 14rem;
361
+ width: 100%;
362
+ overflow-y: auto;
363
+ border-radius: var(--radius-card);
364
+ border: 1px solid var(--color-hair);
365
+ background: var(--color-surface);
366
+ padding: 0.25rem;
367
+ box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.25);
368
+ }
369
+ .rk-combo-option[data-v-52b21155] {
370
+ cursor: pointer;
371
+ border-radius: var(--radius-cell);
372
+ padding: 0.5rem 0.625rem;
373
+ font-size: 0.875rem;
374
+ color: var(--color-ink);
375
+ }
376
+ .rk-combo-option.is-highlighted[data-v-52b21155] {
377
+ background: var(--color-muted);
378
+ }
379
+ .rk-combo-option.is-selected[data-v-52b21155] {
380
+ font-weight: 600;
381
+ }
382
+ .rk-combo-empty[data-v-52b21155] {
383
+ padding: 0.75rem 0.625rem;
384
+ font-size: 0.875rem;
385
+ color: var(--color-ink-soft);
386
+ }
387
+ .rk-combo-error[data-v-52b21155] {
388
+ font-size: 0.75rem;
389
+ color: var(--color-negative);
390
+ }
391
+ .rk-combo-hint[data-v-52b21155] {
392
+ font-size: 0.75rem;
393
+ color: var(--color-ink-soft);
394
+ }
395
+
396
+ .rk-slider[data-v-0a408519] {
397
+ display: flex;
398
+ flex-direction: column;
399
+ gap: 0.5rem;
400
+ }
401
+ .rk-slider-head[data-v-0a408519] {
402
+ display: flex;
403
+ align-items: baseline;
404
+ justify-content: space-between;
405
+ gap: 1rem;
406
+ }
407
+ .rk-slider-label[data-v-0a408519] {
408
+ font-size: 0.875rem;
409
+ font-weight: 500;
410
+ color: var(--color-ink);
411
+ }
412
+ .rk-slider-value[data-v-0a408519] {
413
+ font-size: 0.875rem;
414
+ color: var(--color-ink-soft);
415
+ font-variant-numeric: tabular-nums;
416
+ }
417
+ .rk-slider-input[data-v-0a408519] {
418
+ width: 100%;
419
+ height: 1.25rem;
420
+ appearance: none;
421
+ background: transparent;
422
+ cursor: pointer;
423
+ }
424
+ .rk-slider-input[data-v-0a408519]:disabled {
425
+ opacity: 0.5;
426
+ cursor: default;
427
+ }
428
+
429
+ /* The two engines will not accept these in one rule: an unknown pseudo-element
430
+ invalidates the whole selector, so WebKit and Firefox are written twice. */
431
+ .rk-slider-input[data-v-0a408519]::-webkit-slider-runnable-track {
432
+ height: 0.375rem;
433
+ border-radius: 9999px;
434
+ background: linear-gradient(
435
+ to right,
436
+ var(--color-primary) var(--rk-slider-filled, 0%),
437
+ var(--color-hair) var(--rk-slider-filled, 0%)
438
+ );
439
+ }
440
+ .rk-slider-input[data-v-0a408519]::-moz-range-track {
441
+ height: 0.375rem;
442
+ border-radius: 9999px;
443
+ background: var(--color-hair);
444
+ }
445
+ .rk-slider-input[data-v-0a408519]::-moz-range-progress {
446
+ height: 0.375rem;
447
+ border-radius: 9999px;
448
+ background: var(--color-primary);
449
+ }
450
+ .rk-slider-input[data-v-0a408519]::-webkit-slider-thumb {
451
+ appearance: none;
452
+ margin-top: -0.4375rem;
453
+ width: 1.25rem;
454
+ height: 1.25rem;
455
+ border-radius: 9999px;
456
+ background: #fff;
457
+ border: 2px solid var(--color-primary);
458
+ box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
459
+ }
460
+ .rk-slider-input[data-v-0a408519]::-moz-range-thumb {
461
+ width: 1.25rem;
462
+ height: 1.25rem;
463
+ border: 2px solid var(--color-primary);
464
+ border-radius: 9999px;
465
+ background: #fff;
466
+ box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
467
+ }
468
+ .rk-slider-input[data-v-0a408519]:focus-visible::-webkit-slider-thumb {
469
+ outline: 2px solid var(--color-primary);
470
+ outline-offset: 2px;
471
+ }
472
+ .rk-slider-input[data-v-0a408519]:focus-visible::-moz-range-thumb {
473
+ outline: 2px solid var(--color-primary);
474
+ outline-offset: 2px;
475
+ }
476
+ .rk-slider-hint[data-v-0a408519] {
477
+ font-size: 0.75rem;
478
+ color: var(--color-ink-soft);
479
+ }
480
+
314
481
  .rk-spin-wrap[data-v-842da62c] {
315
482
  display: inline-flex;
316
483
  align-items: center;
@@ -391,6 +558,67 @@ to {
391
558
  }
392
559
  }
393
560
 
561
+ .rk-table-scroll[data-v-89958b5a] {
562
+ overflow-x: auto;
563
+ }
564
+ .rk-table-scroll[data-v-89958b5a]:focus-visible {
565
+ outline: 2px solid var(--color-primary);
566
+ outline-offset: 2px;
567
+ border-radius: var(--radius-cell);
568
+ }
569
+ .rk-table[data-v-89958b5a] {
570
+ width: 100%;
571
+ border-collapse: collapse;
572
+ font-size: 0.875rem;
573
+ }
574
+ .rk-table-caption[data-v-89958b5a] {
575
+ padding-bottom: 0.75rem;
576
+ text-align: left;
577
+ font-size: 0.8125rem;
578
+ color: var(--color-ink-soft);
579
+ }
580
+
581
+ /* Off screen rather than `display: none`, which is not announced at all. */
582
+ .rk-table-caption-hidden[data-v-89958b5a] {
583
+ position: absolute;
584
+ width: 1px;
585
+ height: 1px;
586
+ overflow: hidden;
587
+ clip-path: inset(50%);
588
+ white-space: nowrap;
589
+ }
590
+ .rk-table th[data-v-89958b5a] {
591
+ border-bottom: 1px solid var(--color-hair);
592
+ padding: 0.625rem 0.75rem;
593
+ text-align: left;
594
+ font-weight: 500;
595
+ color: var(--color-ink-soft);
596
+ white-space: nowrap;
597
+ }
598
+ .rk-table td[data-v-89958b5a] {
599
+ border-bottom: 1px solid color-mix(in srgb, var(--color-hair) 50%, transparent);
600
+ padding: 0.75rem;
601
+ color: var(--color-ink);
602
+ vertical-align: top;
603
+ }
604
+ .rk-table tbody tr:last-child td[data-v-89958b5a] {
605
+ border-bottom: 0;
606
+ }
607
+
608
+ /* Numbers line up on their last digit, which is the one being compared. */
609
+ .is-end[data-v-89958b5a] {
610
+ text-align: right;
611
+ font-variant-numeric: tabular-nums;
612
+ }
613
+ .is-nowrap[data-v-89958b5a] {
614
+ white-space: nowrap;
615
+ }
616
+ .rk-table-empty[data-v-89958b5a] {
617
+ padding: 2rem 0.75rem;
618
+ text-align: center;
619
+ color: var(--color-ink-soft);
620
+ }
621
+
394
622
  /* Movement is small and downward from the top, upward from the bottom — the
395
623
  direction it came from either way. */
396
624
  .toast-enter-active[data-v-f1a3439c],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rei-kit",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Vue 3 and Tailwind 4 design system and shared runtime. Extracted from Hibi.",
5
5
  "license": "MIT",
6
6
  "author": "Ramazan Doğan",
@@ -49,8 +49,8 @@
49
49
  "dev": "vite build --watch",
50
50
  "build": "run-s type-check build-only",
51
51
  "build-only": "vite build && node scripts/verify-bundle.mjs",
52
- "showcase": "vite --config vite.showcase.config.ts",
53
- "showcase:build": "vite build --config vite.showcase.config.ts",
52
+ "showcase": "node scripts/extract-props.mjs && vite --config vite.showcase.config.ts",
53
+ "showcase:build": "node scripts/extract-props.mjs && vite build --config vite.showcase.config.ts",
54
54
  "type-check": "vue-tsc --build",
55
55
  "test:unit": "vitest",
56
56
  "test:ci": "vitest run",