@skirbi/pinta 0.0.19 → 0.0.20

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