@skirbi/pinta 0.0.19 → 0.0.21

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/Changes CHANGED
@@ -1,5 +1,13 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.21 2026-06-17 16:41:23Z
4
+
5
+ * Fix small glitch
6
+
7
+ 0.0.20 2026-06-17 16:22:28Z
8
+
9
+ * Import other projects sane defaults to pinta
10
+
3
11
  0.0.19 2026-06-17 15:49:39Z
4
12
 
5
13
  * Fix small vite build issue(s)
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.19";
5
+ const VERSION = "0.0.21";
@@ -2357,4 +2357,237 @@
2357
2357
  }
2358
2358
  }
2359
2359
  }
2360
+
2361
+ [skirbi-theme] {
2362
+ semtic-choice-card,
2363
+ semtic-choice-card * {
2364
+ cursor: pointer;
2365
+ }
2366
+
2367
+ [semtic-choice-card-panel] {
2368
+ background: var(--skirbi-surface-bg);
2369
+ border: 2px solid var(--skirbi-secondary-main);
2370
+ box-shadow: var(--skirbi-shadow-md);
2371
+ }
2372
+
2373
+ [semtic-choice-card-panel]:not([selected]) {
2374
+ background: var(--skirbi-secondary-wash);
2375
+ }
2376
+
2377
+ [semtic-choice-card-panel][selected] {
2378
+ background: var(--skirbi-surface-bg);
2379
+ }
2380
+
2381
+ [semtic-choice-card-panel] header {
2382
+ color: var(--skirbi-primary-main);
2383
+ }
2384
+
2385
+ [semtic-choice-card-panel][selected] header {
2386
+ font-weight: 700;
2387
+ }
2388
+
2389
+ [semtic-choice-card-panel] {
2390
+ overflow: hidden;
2391
+ color: var(--skirbi-primary-dark);
2392
+ }
2393
+
2394
+ [semtic-choice-card-control] {
2395
+ position: absolute;
2396
+ left: -9999px;
2397
+ }
2398
+
2399
+ [semtic-choice-card-panel] {
2400
+ border: 2px solid var(--skirbi-secondary-main);
2401
+ transition:
2402
+ border-color 150ms ease,
2403
+ box-shadow 150ms ease,
2404
+ transform 150ms ease;
2405
+ }
2406
+
2407
+ semtic-choice-card:hover [semtic-choice-card-panel] {
2408
+ border-color: var(--skirbi-primary-main);
2409
+ }
2410
+
2411
+ semtic-choice-card[selected] [semtic-choice-card-panel] {
2412
+ border-color: var(--skirbi-primary-main);
2413
+ box-shadow: 0 0 0 2px color-mix(
2414
+ in srgb,
2415
+ var(--skirbi-primary-main) 25%,
2416
+ transparent
2417
+ );
2418
+ }
2419
+
2420
+ label[semtic-choice-card] {
2421
+ cursor: pointer;
2422
+ user-select: none;
2423
+ }
2424
+
2425
+ [semtic-choice-card-panel] {
2426
+ display: flex;
2427
+ flex-direction: column;
2428
+ height: 100%;
2429
+ }
2430
+
2431
+ }
2432
+
2433
+ [skirbi-theme] {
2434
+
2435
+ input,
2436
+ select,
2437
+ textarea {
2438
+ background: white;
2439
+ border: 1px solid var(--skirbi-primary-main);
2440
+ border-radius: 0.5rem;
2441
+ color: var(--skirbi-primary-dark);
2442
+ box-sizing: border-box;
2443
+ }
2444
+
2445
+ input:focus,
2446
+ select:focus,
2447
+ textarea:focus {
2448
+ outline: none;
2449
+ border-color: var(--skirbi-primary-main);
2450
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--skirbi-primary-main) 25%, transparent);
2451
+ }
2452
+
2453
+ semtic-input[label-position="top"] {
2454
+ display: grid;
2455
+ grid-template-areas:
2456
+ "label error"
2457
+ "input input";
2458
+ grid-template-columns: auto 1fr;
2459
+ }
2460
+
2461
+ semtic-input[label-position="top"] [semtic-label] {
2462
+ grid-area: label;
2463
+ }
2464
+
2465
+ semtic-input[label-position="top"] input[wc-control] {
2466
+ grid-area: input;
2467
+ }
2468
+
2469
+ semtic-input[label-position="top"] [semtic-error] {
2470
+ grid-area: error;
2471
+ text-align: right;
2472
+ }
2473
+
2474
+ }
2475
+
2476
+ [skirbi-theme] {
2477
+ semtic-steps {
2478
+ --step-dot: 2rem;
2479
+ --step-line: 0.4rem;
2480
+ --step-overlap: 5px;
2481
+
2482
+ --step-active: var(--skirbi-tertiary-main);
2483
+ --step-on: var(--skirbi-quaternary-main);
2484
+ --step-muted: var(--skirbi-secondary-soft, var(--skirbi-secondary-light));
2485
+ --step-text: var(--skirbi-secondary-strong, var(--skirbi-secondary-dark));
2486
+ --step-text-muted: color-mix(
2487
+ in srgb,
2488
+ var(--skirbi-page-fg) 65%,
2489
+ transparent
2490
+ );
2491
+
2492
+ display: block;
2493
+ margin-block-end: 2.5rem;
2494
+
2495
+ nav {
2496
+ inline-size: 100%;
2497
+ }
2498
+
2499
+ ol[semtic-steps] {
2500
+ display: flex;
2501
+ inline-size: 100%;
2502
+ margin: 0;
2503
+ padding: 0;
2504
+ list-style: none;
2505
+ counter-reset: semtic-step;
2506
+ }
2507
+
2508
+ li[semtic-step] {
2509
+ position: relative;
2510
+ flex: 1 1 0;
2511
+ min-inline-size: 0;
2512
+
2513
+ padding-block-start: calc(var(--step-dot) + 0.9rem);
2514
+
2515
+ text-align: center;
2516
+ color: var(--step-text-muted);
2517
+ font-size: 0.75rem;
2518
+ font-weight: 700;
2519
+ letter-spacing: 0.08em;
2520
+ text-transform: uppercase;
2521
+
2522
+ &::before {
2523
+ content: "";
2524
+ position: absolute;
2525
+ z-index: 0;
2526
+
2527
+ inset-block-start: calc(var(--step-dot) / 2 - var(--step-line) / 2);
2528
+ inset-inline-start: calc(-50% + (var(--step-dot) / 2) - var(--step-overlap));
2529
+
2530
+ inline-size: calc(100% - var(--step-dot) + (var(--step-overlap) * 2));
2531
+ block-size: var(--step-line);
2532
+
2533
+ border-radius: 999px;
2534
+ background: var(--step-muted);
2535
+ }
2536
+
2537
+ &:first-child::before {
2538
+ content: none;
2539
+ }
2540
+
2541
+ &::after {
2542
+ content: attr(data-index);
2543
+
2544
+ position: absolute;
2545
+ z-index: 1;
2546
+
2547
+ inset-block-start: 0;
2548
+ inset-inline-start: 50%;
2549
+ transform: translateX(-50%);
2550
+
2551
+ inline-size: var(--step-dot);
2552
+ block-size: var(--step-dot);
2553
+
2554
+ display: grid;
2555
+ place-items: center;
2556
+
2557
+ border-radius: 999px;
2558
+ background: var(--step-muted);
2559
+ color: var(--step-text);
2560
+
2561
+ font-weight: 800;
2562
+ }
2563
+
2564
+ &[semtic-state="completed"],
2565
+ &[semtic-state="active"] {
2566
+ color: var(--step-active);
2567
+ font-weight: 800;
2568
+ }
2569
+
2570
+ &[semtic-state="completed"]:not(:first-child)::before,
2571
+ &[semtic-state="active"]:not(:first-child)::before {
2572
+ background: var(--step-active);
2573
+ }
2574
+
2575
+ @media (max-width: 48rem) {
2576
+ [skirbi-theme] semtic-steps li[semtic-step] {
2577
+ display: flex;
2578
+ flex-direction: column;
2579
+ font-size: clamp(0.7rem, 2vw, 1rem);
2580
+ text-overflow: ellipsis;
2581
+ align-items: center;
2582
+ padding-block-start: calc(var(--step-dot) + 0.9rem);
2583
+ }
2584
+
2585
+ [skirbi-theme] semtic-steps li[semtic-step]:nth-child(even) {
2586
+ flex-direction: column-reverse;
2587
+ padding-block-start: 0;
2588
+ }
2589
+ }
2590
+ }
2591
+ }
2592
+ }
2360
2593
  }
package/package.json CHANGED
@@ -28,5 +28,5 @@
28
28
  },
29
29
  "sideEffects": false,
30
30
  "type": "module",
31
- "version": "0.0.19"
31
+ "version": "0.0.21"
32
32
  }