@iyulab/u-widgets 0.7.0 → 0.7.1

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/u-widgets.js CHANGED
@@ -410,7 +410,7 @@ I.styles = [b, w`
410
410
  :host {
411
411
  display: block;
412
412
  font-family: system-ui, -apple-system, sans-serif;
413
- container: u-metric / inline-size;
413
+ container: uw-metric / inline-size;
414
414
  }
415
415
 
416
416
  /* ── metric (single) ── */
@@ -427,7 +427,7 @@ I.styles = [b, w`
427
427
  color: var(--u-widget-text, #1a1a2e);
428
428
  }
429
429
 
430
- @container u-metric (max-width: 30rem) {
430
+ @container uw-metric (max-width: 30rem) {
431
431
  .metric-value {
432
432
  font-size: 1.5rem;
433
433
  }
@@ -494,7 +494,7 @@ I.styles = [b, w`
494
494
  padding-left: 1.5rem;
495
495
  }
496
496
 
497
- @container u-metric (max-width: 30rem) {
497
+ @container uw-metric (max-width: 30rem) {
498
498
  .stat-group {
499
499
  flex-direction: column;
500
500
  gap: 1rem;
@@ -520,7 +520,7 @@ Z([
520
520
  f({ type: String, reflect: !0 })
521
521
  ], I.prototype, "theme", 2);
522
522
  I = Z([
523
- x("u-metric")
523
+ x("uw-metric")
524
524
  ], I);
525
525
  var Me = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, Q = (e, t, a, r) => {
526
526
  for (var i = r > 1 ? void 0 : r ? Te(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -626,7 +626,7 @@ N.styles = [b, w`
626
626
  :host {
627
627
  display: block;
628
628
  font-family: system-ui, -apple-system, sans-serif;
629
- container: u-gauge / inline-size;
629
+ container: uw-gauge / inline-size;
630
630
  }
631
631
 
632
632
  .gauge-container {
@@ -701,7 +701,7 @@ N.styles = [b, w`
701
701
  color: var(--u-widget-text-secondary, #64748b);
702
702
  }
703
703
 
704
- @container u-gauge (max-width: 10rem) {
704
+ @container uw-gauge (max-width: 10rem) {
705
705
  .gauge-value {
706
706
  font-size: 1.25rem;
707
707
  }
@@ -726,7 +726,7 @@ Q([
726
726
  f({ type: String, reflect: !0 })
727
727
  ], N.prototype, "theme", 2);
728
728
  N = Q([
729
- x("u-gauge")
729
+ x("uw-gauge")
730
730
  ], N);
731
731
  var qe = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, C = (e, t, a, r) => {
732
732
  for (var i = r > 1 ? void 0 : r ? Be(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -958,7 +958,7 @@ _.styles = [b, w`
958
958
  :host {
959
959
  display: block;
960
960
  font-family: system-ui, -apple-system, sans-serif;
961
- container: u-table / inline-size;
961
+ container: uw-table / inline-size;
962
962
  }
963
963
 
964
964
  /* ── table ── */
@@ -1228,7 +1228,7 @@ _.styles = [b, w`
1228
1228
  }
1229
1229
 
1230
1230
  /* ── container-query responsive ── */
1231
- @container u-table (max-width: 30rem) {
1231
+ @container uw-table (max-width: 30rem) {
1232
1232
  table {
1233
1233
  font-size: 0.75rem;
1234
1234
  }
@@ -1285,7 +1285,7 @@ C([
1285
1285
  S()
1286
1286
  ], _.prototype, "_focusedIdx", 2);
1287
1287
  _ = C([
1288
- x("u-table")
1288
+ x("uw-table")
1289
1289
  ], _);
1290
1290
  var We = Object.defineProperty, He = Object.getOwnPropertyDescriptor, H = (e, t, a, r) => {
1291
1291
  for (var i = r > 1 ? void 0 : r ? He(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -1588,7 +1588,7 @@ D.styles = [b, w`
1588
1588
  :host {
1589
1589
  display: block;
1590
1590
  font-family: system-ui, -apple-system, sans-serif;
1591
- container: u-form / inline-size;
1591
+ container: uw-form / inline-size;
1592
1592
  }
1593
1593
 
1594
1594
  .form-container {
@@ -1773,7 +1773,7 @@ D.styles = [b, w`
1773
1773
  line-height: 1.5;
1774
1774
  }
1775
1775
 
1776
- @container u-form (max-width: 20rem) {
1776
+ @container uw-form (max-width: 20rem) {
1777
1777
  .form-container {
1778
1778
  gap: 12px;
1779
1779
  }
@@ -1815,7 +1815,7 @@ H([
1815
1815
  S()
1816
1816
  ], D.prototype, "_errors", 2);
1817
1817
  D = H([
1818
- x("u-form")
1818
+ x("uw-form")
1819
1819
  ], D);
1820
1820
  var Ke = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, ee = (e, t, a, r) => {
1821
1821
  for (var i = r > 1 ? void 0 : r ? Ve(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -1865,7 +1865,7 @@ let F = class extends y {
1865
1865
  F.styles = [b, w`
1866
1866
  :host {
1867
1867
  display: block;
1868
- container: u-compose / inline-size;
1868
+ container: uw-compose / inline-size;
1869
1869
  }
1870
1870
 
1871
1871
  .compose-container {
@@ -1953,7 +1953,7 @@ F.styles = [b, w`
1953
1953
  }
1954
1954
 
1955
1955
  /* ── container-query responsive ── */
1956
- @container u-compose (max-width: 30rem) {
1956
+ @container uw-compose (max-width: 30rem) {
1957
1957
  .layout-row {
1958
1958
  flex-direction: column;
1959
1959
  }
@@ -1970,7 +1970,7 @@ ee([
1970
1970
  f({ type: String, reflect: !0 })
1971
1971
  ], F.prototype, "theme", 2);
1972
1972
  F = ee([
1973
- x("u-compose")
1973
+ x("uw-compose")
1974
1974
  ], F);
1975
1975
  var Ge = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, te = (e, t, a, r) => {
1976
1976
  for (var i = r > 1 ? void 0 : r ? Xe(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -2049,7 +2049,7 @@ M.styles = [b, w`
2049
2049
  :host {
2050
2050
  display: block;
2051
2051
  font-family: system-ui, -apple-system, sans-serif;
2052
- container: u-content / inline-size;
2052
+ container: uw-content / inline-size;
2053
2053
  }
2054
2054
 
2055
2055
  /* ── markdown ── */
@@ -2203,7 +2203,7 @@ M.styles = [b, w`
2203
2203
  margin-bottom: 4px;
2204
2204
  }
2205
2205
 
2206
- @container u-content (max-width: 20rem) {
2206
+ @container uw-content (max-width: 20rem) {
2207
2207
  .markdown {
2208
2208
  font-size: 0.8125rem;
2209
2209
  }
@@ -2229,7 +2229,7 @@ te([
2229
2229
  f({ type: String, reflect: !0 })
2230
2230
  ], M.prototype, "theme", 2);
2231
2231
  M = te([
2232
- x("u-content")
2232
+ x("uw-content")
2233
2233
  ], M);
2234
2234
  var Je = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, re = (e, t, a, r) => {
2235
2235
  for (var i = r > 1 ? void 0 : r ? Ye(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -2271,7 +2271,7 @@ T.styles = [b, w`
2271
2271
  :host {
2272
2272
  display: block;
2273
2273
  font-family: system-ui, -apple-system, sans-serif;
2274
- container: u-kv / inline-size;
2274
+ container: uw-kv / inline-size;
2275
2275
  }
2276
2276
 
2277
2277
  .kv-vertical {
@@ -2346,7 +2346,7 @@ T.styles = [b, w`
2346
2346
  text-align: left;
2347
2347
  }
2348
2348
 
2349
- @container u-kv (max-width: 20rem) {
2349
+ @container uw-kv (max-width: 20rem) {
2350
2350
  .kv-horizontal {
2351
2351
  flex-direction: column;
2352
2352
  gap: 8px;
@@ -2368,7 +2368,7 @@ re([
2368
2368
  f({ type: String, reflect: !0 })
2369
2369
  ], T.prototype, "theme", 2);
2370
2370
  T = re([
2371
- x("u-kv")
2371
+ x("uw-kv")
2372
2372
  ], T);
2373
2373
  var Ze = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, G = (e, t, a, r) => {
2374
2374
  for (var i = r > 1 ? void 0 : r ? Qe(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -2582,7 +2582,7 @@ O.styles = [b, w`
2582
2582
  :host {
2583
2583
  display: block;
2584
2584
  font-family: system-ui, -apple-system, sans-serif;
2585
- container: u-code / inline-size;
2585
+ container: uw-code / inline-size;
2586
2586
  }
2587
2587
 
2588
2588
  .code-block {
@@ -2675,7 +2675,7 @@ O.styles = [b, w`
2675
2675
  :host([theme="dark"]) .hl-c { color: #64748b; }
2676
2676
  :host([theme="dark"]) .hl-n { color: #fbbf24; }
2677
2677
 
2678
- @container u-code (max-width: 20rem) {
2678
+ @container uw-code (max-width: 20rem) {
2679
2679
  pre { font-size: 0.75rem; padding: 8px; }
2680
2680
  .code-header { padding: 4px 8px; }
2681
2681
  .line-no { width: 2.5ch; margin-right: 1ch; }
@@ -2691,7 +2691,7 @@ G([
2691
2691
  S()
2692
2692
  ], O.prototype, "_copied", 2);
2693
2693
  O = G([
2694
- x("u-code")
2694
+ x("uw-code")
2695
2695
  ], O);
2696
2696
  var nt = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, ae = (e, t, a, r) => {
2697
2697
  for (var i = r > 1 ? void 0 : r ? ot(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -2789,7 +2789,7 @@ U.styles = [b, w`
2789
2789
  :host {
2790
2790
  display: block;
2791
2791
  font-family: system-ui, -apple-system, sans-serif;
2792
- container: u-citation / inline-size;
2792
+ container: uw-citation / inline-size;
2793
2793
  }
2794
2794
 
2795
2795
  .citations {
@@ -2877,7 +2877,7 @@ U.styles = [b, w`
2877
2877
  .citations[data-compact] .cite-snippet,
2878
2878
  .citations[data-compact] .cite-source { display: none; }
2879
2879
 
2880
- @container u-citation (max-width: 20rem) {
2880
+ @container uw-citation (max-width: 20rem) {
2881
2881
  .cite-title { font-size: 0.8125rem; }
2882
2882
  .cite-snippet { font-size: 0.75rem; }
2883
2883
  }
@@ -2889,7 +2889,7 @@ ae([
2889
2889
  f({ type: String, reflect: !0 })
2890
2890
  ], U.prototype, "theme", 2);
2891
2891
  U = ae([
2892
- x("u-citation")
2892
+ x("uw-citation")
2893
2893
  ], U);
2894
2894
  var lt = Object.defineProperty, ct = Object.getOwnPropertyDescriptor, ie = (e, t, a, r) => {
2895
2895
  for (var i = r > 1 ? void 0 : r ? ct(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -2957,7 +2957,7 @@ R.styles = [b, w`
2957
2957
  :host {
2958
2958
  display: block;
2959
2959
  font-family: system-ui, -apple-system, sans-serif;
2960
- container: u-status / inline-size;
2960
+ container: uw-status / inline-size;
2961
2961
  }
2962
2962
 
2963
2963
  .status-list {
@@ -3013,7 +3013,7 @@ R.styles = [b, w`
3013
3013
  color: var(--u-widget-text-secondary, #64748b);
3014
3014
  }
3015
3015
 
3016
- @container u-status (max-width: 20rem) {
3016
+ @container uw-status (max-width: 20rem) {
3017
3017
  .status-list { gap: 8px 16px; }
3018
3018
  .status-item { font-size: 0.8125rem; }
3019
3019
  }
@@ -3025,7 +3025,7 @@ ie([
3025
3025
  f({ type: String, reflect: !0 })
3026
3026
  ], R.prototype, "theme", 2);
3027
3027
  R = ie([
3028
- x("u-status")
3028
+ x("uw-status")
3029
3029
  ], R);
3030
3030
  var ut = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, se = (e, t, a, r) => {
3031
3031
  for (var i = r > 1 ? void 0 : r ? gt(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -3116,7 +3116,7 @@ q.styles = [b, w`
3116
3116
  :host {
3117
3117
  display: block;
3118
3118
  font-family: system-ui, -apple-system, sans-serif;
3119
- container: u-steps / inline-size;
3119
+ container: uw-steps / inline-size;
3120
3120
  }
3121
3121
 
3122
3122
  /* ── Vertical Layout ── */
@@ -3300,7 +3300,7 @@ q.styles = [b, w`
3300
3300
  .steps-horizontal[data-compact] .step-icon { width: 20px; height: 20px; font-size: 0.625rem; }
3301
3301
  .steps-horizontal[data-compact] .step-label { font-size: 0.6875rem; margin-top: 4px; }
3302
3302
 
3303
- @container u-steps (max-width: 20rem) {
3303
+ @container uw-steps (max-width: 20rem) {
3304
3304
  .step-label { font-size: 0.8125rem; }
3305
3305
  .step-desc { font-size: 0.75rem; }
3306
3306
 
@@ -3351,7 +3351,7 @@ se([
3351
3351
  f({ type: String, reflect: !0 })
3352
3352
  ], q.prototype, "theme", 2);
3353
3353
  q = se([
3354
- x("u-steps")
3354
+ x("uw-steps")
3355
3355
  ], q);
3356
3356
  var ht = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, X = (e, t, a, r) => {
3357
3357
  for (var i = r > 1 ? void 0 : r ? mt(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -3448,7 +3448,7 @@ E.styles = [b, w`
3448
3448
  :host {
3449
3449
  display: block;
3450
3450
  font-family: system-ui, -apple-system, sans-serif;
3451
- container: u-rating / inline-size;
3451
+ container: uw-rating / inline-size;
3452
3452
  }
3453
3453
 
3454
3454
  .rating {
@@ -3545,7 +3545,7 @@ E.styles = [b, w`
3545
3545
  color: var(--u-widget-primary, #4f46e5);
3546
3546
  }
3547
3547
 
3548
- @container u-rating (max-width: 20rem) {
3548
+ @container uw-rating (max-width: 20rem) {
3549
3549
  .rating-icon { font-size: 1rem; }
3550
3550
  .rating-value { font-size: 0.8125rem; }
3551
3551
  }
@@ -3560,7 +3560,7 @@ X([
3560
3560
  S()
3561
3561
  ], E.prototype, "_hoverIdx", 2);
3562
3562
  E = X([
3563
- x("u-rating")
3563
+ x("uw-rating")
3564
3564
  ], E);
3565
3565
  var bt = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, ne = (e, t, a, r) => {
3566
3566
  for (var i = r > 1 ? void 0 : r ? wt(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -3605,7 +3605,7 @@ B.styles = [b, w`
3605
3605
  :host {
3606
3606
  display: block;
3607
3607
  font-family: system-ui, -apple-system, sans-serif;
3608
- container: u-video / inline-size;
3608
+ container: uw-video / inline-size;
3609
3609
  }
3610
3610
 
3611
3611
  .video-container {
@@ -3624,7 +3624,7 @@ B.styles = [b, w`
3624
3624
  color: var(--u-widget-text-secondary, #64748b);
3625
3625
  }
3626
3626
 
3627
- @container u-video (max-width: 20rem) {
3627
+ @container uw-video (max-width: 20rem) {
3628
3628
  video {
3629
3629
  border-radius: 4px;
3630
3630
  }
@@ -3642,7 +3642,7 @@ ne([
3642
3642
  f({ type: String, reflect: !0 })
3643
3643
  ], B.prototype, "theme", 2);
3644
3644
  B = ne([
3645
- x("u-video")
3645
+ x("uw-video")
3646
3646
  ], B);
3647
3647
  var yt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, oe = (e, t, a, r) => {
3648
3648
  for (var i = r > 1 ? void 0 : r ? xt(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -3694,7 +3694,7 @@ W.styles = [b, w`
3694
3694
  :host {
3695
3695
  display: block;
3696
3696
  font-family: system-ui, -apple-system, sans-serif;
3697
- container: u-gallery / inline-size;
3697
+ container: uw-gallery / inline-size;
3698
3698
  }
3699
3699
 
3700
3700
  .gallery-grid {
@@ -3722,7 +3722,7 @@ W.styles = [b, w`
3722
3722
  background: var(--u-widget-surface, #f1f5f9);
3723
3723
  }
3724
3724
 
3725
- @container u-gallery (max-width: 20rem) {
3725
+ @container uw-gallery (max-width: 20rem) {
3726
3726
  .gallery-grid {
3727
3727
  grid-template-columns: 1fr !important;
3728
3728
  }
@@ -3735,7 +3735,7 @@ oe([
3735
3735
  f({ type: String, reflect: !0 })
3736
3736
  ], W.prototype, "theme", 2);
3737
3737
  W = oe([
3738
- x("u-gallery")
3738
+ x("uw-gallery")
3739
3739
  ], W);
3740
3740
  var $t = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, J = (e, t, a, r) => {
3741
3741
  for (var i = r > 1 ? void 0 : r ? _t(t, a) : t, s = e.length - 1, n; s >= 0; s--)
@@ -3782,51 +3782,51 @@ let P = class extends y {
3782
3782
  switch (t) {
3783
3783
  case "metric":
3784
3784
  case "stat-group":
3785
- c = o`<u-metric .spec=${r} theme=${s ?? l}></u-metric>`;
3785
+ c = o`<uw-metric .spec=${r} theme=${s ?? l}></uw-metric>`;
3786
3786
  break;
3787
3787
  case "gauge":
3788
3788
  case "progress":
3789
- c = o`<u-gauge .spec=${r} theme=${s ?? l}></u-gauge>`;
3789
+ c = o`<uw-gauge .spec=${r} theme=${s ?? l}></uw-gauge>`;
3790
3790
  break;
3791
3791
  case "table":
3792
3792
  case "list":
3793
- c = o`<u-table .spec=${r} theme=${s ?? l}></u-table>`;
3793
+ c = o`<uw-table .spec=${r} theme=${s ?? l}></uw-table>`;
3794
3794
  break;
3795
3795
  case "form":
3796
3796
  case "confirm":
3797
- c = o`<u-form .spec=${r} theme=${s ?? l}></u-form>`;
3797
+ c = o`<uw-form .spec=${r} theme=${s ?? l}></uw-form>`;
3798
3798
  break;
3799
3799
  case "compose":
3800
- c = o`<u-compose .spec=${r} theme=${s ?? l}></u-compose>`;
3800
+ c = o`<uw-compose .spec=${r} theme=${s ?? l}></uw-compose>`;
3801
3801
  break;
3802
3802
  case "markdown":
3803
3803
  case "image":
3804
3804
  case "callout":
3805
- c = o`<u-content .spec=${r} theme=${s ?? l}></u-content>`;
3805
+ c = o`<uw-content .spec=${r} theme=${s ?? l}></uw-content>`;
3806
3806
  break;
3807
3807
  case "kv":
3808
- c = o`<u-kv .spec=${r} theme=${s ?? l}></u-kv>`;
3808
+ c = o`<uw-kv .spec=${r} theme=${s ?? l}></uw-kv>`;
3809
3809
  break;
3810
3810
  case "code":
3811
- c = o`<u-code .spec=${r} theme=${s ?? l}></u-code>`;
3811
+ c = o`<uw-code .spec=${r} theme=${s ?? l}></uw-code>`;
3812
3812
  break;
3813
3813
  case "citation":
3814
- c = o`<u-citation .spec=${r} theme=${s ?? l}></u-citation>`;
3814
+ c = o`<uw-citation .spec=${r} theme=${s ?? l}></uw-citation>`;
3815
3815
  break;
3816
3816
  case "status":
3817
- c = o`<u-status .spec=${r} theme=${s ?? l}></u-status>`;
3817
+ c = o`<uw-status .spec=${r} theme=${s ?? l}></uw-status>`;
3818
3818
  break;
3819
3819
  case "steps":
3820
- c = o`<u-steps .spec=${r} theme=${s ?? l}></u-steps>`;
3820
+ c = o`<uw-steps .spec=${r} theme=${s ?? l}></uw-steps>`;
3821
3821
  break;
3822
3822
  case "rating":
3823
- c = o`<u-rating .spec=${r} theme=${s ?? l}></u-rating>`;
3823
+ c = o`<uw-rating .spec=${r} theme=${s ?? l}></uw-rating>`;
3824
3824
  break;
3825
3825
  case "video":
3826
- c = o`<u-video .spec=${r} theme=${s ?? l}></u-video>`;
3826
+ c = o`<uw-video .spec=${r} theme=${s ?? l}></uw-video>`;
3827
3827
  break;
3828
3828
  case "gallery":
3829
- c = o`<u-gallery .spec=${r} theme=${s ?? l}></u-gallery>`;
3829
+ c = o`<uw-gallery .spec=${r} theme=${s ?? l}></uw-gallery>`;
3830
3830
  break;
3831
3831
  case "actions":
3832
3832
  c = this.renderActionsWidget(r);
@@ -3838,8 +3838,8 @@ let P = class extends y {
3838
3838
  c = this.renderHeader(r);
3839
3839
  break;
3840
3840
  default:
3841
- if (t.startsWith("chart.") && customElements.get("u-chart")) {
3842
- c = o`<u-chart .spec=${r} theme=${s ?? l}></u-chart>`;
3841
+ if (t.startsWith("chart.") && customElements.get("uw-chart")) {
3842
+ c = o`<uw-chart .spec=${r} theme=${s ?? l}></uw-chart>`;
3843
3843
  break;
3844
3844
  }
3845
3845
  return this.renderFallback(r);