@pstdio/ui 0.12.1 → 0.13.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.
@@ -16,29 +16,25 @@ const S = {
16
16
  "menu.background": ["colors.bg.panel", "colors.bg.menu-item.default"],
17
17
  "menu.foreground": ["colors.fg.menu-item.default"],
18
18
  "menu.selectionBackground": ["colors.bg.menu-item.hover", "colors.bg.menu-item.focus", "colors.bg.menu-item.selected"],
19
+ "list.hoverBackground": ["colors.bg.menu-item.hover", "colors.bg.menu-item.focus"],
20
+ "list.focusBackground": ["colors.bg.menu-item.focus"],
21
+ "list.inactiveSelectionBackground": ["colors.bg.menu-item.selected"],
22
+ "list.activeSelectionBackground": ["colors.bg.menu-item.selected"],
23
+ "badge.background": ["colors.bg.muted"],
24
+ "badge.foreground": ["colors.fg.muted"],
19
25
  "button.background": ["colors.bg.button.primary.default", "colors.bg.accent-primary.default"],
20
26
  "button.hoverBackground": ["colors.bg.button.primary.hover", "colors.bg.accent-primary.hover"],
21
27
  "button.foreground": ["colors.fg.button.primary.default"],
28
+ "diffEditor.insertedTextBackground": ["colors.bg.success"],
29
+ "diffEditor.removedTextBackground": ["colors.bg.error"],
22
30
  focusBorder: ["colors.border.accent"],
23
31
  foreground: ["colors.fg"],
32
+ "gitDecoration.addedResourceForeground": ["colors.fg.success"],
33
+ "gitDecoration.deletedResourceForeground": ["colors.fg.error"],
24
34
  descriptionForeground: ["colors.fg.muted"],
25
35
  disabledForeground: ["colors.fg.subtle"],
26
36
  border: ["colors.border", "colors.border.muted", "colors.border.subtle"]
27
- }, C = (l) => `colors.vscode.${l}`, E = (l) => l.replace(/^#/, ""), De = (l) => {
28
- const t = {}, o = l.theme.colors ?? {};
29
- for (const [s, i] of Object.entries(o))
30
- t[C(s)] = i;
31
- for (const [s, i] of Object.entries(S)) {
32
- const n = o[s];
33
- if (n)
34
- for (const d of i) t[d] = n;
35
- }
36
- return {
37
- id: l.id,
38
- mode: l.mode,
39
- tokens: t
40
- };
41
- }, Be = (l) => {
37
+ }, C = (l) => `colors.vscode.${l}`, E = (l) => l.replace(/^#/, ""), w = (l) => {
42
38
  const t = (l.theme.tokenColors ?? []).flatMap((o) => (Array.isArray(o.scope) ? o.scope : o.scope ? [o.scope] : []).map((i) => ({
43
39
  token: i,
44
40
  ...o.settings?.foreground ? {
@@ -54,7 +50,25 @@ const S = {
54
50
  rules: t,
55
51
  colors: l.theme.colors ?? {}
56
52
  };
57
- }, w = {
53
+ }, Be = (l) => {
54
+ const t = {}, o = l.theme.colors ?? {};
55
+ for (const [s, i] of Object.entries(o))
56
+ t[C(s)] = i;
57
+ for (const [s, i] of Object.entries(S)) {
58
+ const n = o[s];
59
+ if (n)
60
+ for (const d of i) t[d] = n;
61
+ }
62
+ return {
63
+ id: l.id,
64
+ mode: l.mode,
65
+ tokens: t,
66
+ monacoTheme: w({
67
+ mode: l.mode,
68
+ theme: l.theme
69
+ })
70
+ };
71
+ }, A = {
58
72
  "*::selection": {
59
73
  bg: {
60
74
  base: "bg.accent-secondary.blue-medium",
@@ -112,7 +126,7 @@ const S = {
112
126
  fontSize: "1.5rem"
113
127
  }
114
128
  }
115
- }, A = {
129
+ }, D = {
116
130
  DEFAULT: {
117
131
  value: "#0A0D15"
118
132
  },
@@ -161,7 +175,7 @@ const S = {
161
175
  1e3: {
162
176
  value: "#000000"
163
177
  }
164
- }, D = {
178
+ }, B = {
165
179
  DEFAULT: {
166
180
  value: "#5098FF"
167
181
  },
@@ -195,7 +209,7 @@ const S = {
195
209
  900: {
196
210
  value: "#002862"
197
211
  }
198
- }, B = {
212
+ }, z = {
199
213
  DEFAULT: {
200
214
  value: "#3A4BE4"
201
215
  },
@@ -232,7 +246,7 @@ const S = {
232
246
  900: {
233
247
  value: "#0A125A"
234
248
  }
235
- }, z = {
249
+ }, R = {
236
250
  DEFAULT: {
237
251
  value: "#E054EC"
238
252
  },
@@ -303,7 +317,7 @@ const S = {
303
317
  900: {
304
318
  value: "#522923"
305
319
  }
306
- }, R = {
320
+ }, H = {
307
321
  DEFAULT: {
308
322
  value: "#FF3232"
309
323
  },
@@ -337,7 +351,7 @@ const S = {
337
351
  900: {
338
352
  value: "#580707"
339
353
  }
340
- }, H = {
354
+ }, L = {
341
355
  DEFAULT: {
342
356
  value: "#F78C25"
343
357
  },
@@ -371,7 +385,7 @@ const S = {
371
385
  900: {
372
386
  value: "#552107"
373
387
  }
374
- }, L = {
388
+ }, T = {
375
389
  DEFAULT: {
376
390
  value: "#FFD643"
377
391
  },
@@ -411,7 +425,7 @@ const S = {
411
425
  900: {
412
426
  value: "#644E00"
413
427
  }
414
- }, T = {
428
+ }, M = {
415
429
  DEFAULT: {
416
430
  value: "#2DD665"
417
431
  },
@@ -445,7 +459,7 @@ const S = {
445
459
  900: {
446
460
  value: "#003110"
447
461
  }
448
- }, M = {
462
+ }, U = {
449
463
  DEFAULT: {
450
464
  value: "#3EECC4"
451
465
  },
@@ -479,7 +493,7 @@ const S = {
479
493
  900: {
480
494
  value: "#024F3D"
481
495
  }
482
- }, U = {
496
+ }, V = {
483
497
  DEFAULT: {
484
498
  value: "#5CDCFF"
485
499
  },
@@ -513,7 +527,7 @@ const S = {
513
527
  900: {
514
528
  value: "#005B73"
515
529
  }
516
- }, V = {
530
+ }, P = {
517
531
  DEFAULT: {
518
532
  value: "#8B47FF"
519
533
  },
@@ -547,7 +561,7 @@ const S = {
547
561
  900: {
548
562
  value: "#1E0050"
549
563
  }
550
- }, P = {
564
+ }, X = {
551
565
  DEFAULT: {
552
566
  value: "#F4F2EC"
553
567
  },
@@ -581,7 +595,7 @@ const S = {
581
595
  900: {
582
596
  value: "#E8CECE"
583
597
  }
584
- }, X = {
598
+ }, I = {
585
599
  50: {
586
600
  value: "#FCFDFC"
587
601
  },
@@ -624,30 +638,30 @@ const S = {
624
638
  950: {
625
639
  value: "#10141B"
626
640
  }
627
- }, I = {
641
+ }, O = {
628
642
  100: {
629
643
  value: "#D3ECEE"
630
644
  },
631
645
  200: {
632
646
  value: "#B3DEE2"
633
647
  }
634
- }, O = {
635
- sand: P,
636
- blacks: A,
637
- blue: D,
638
- sapphire: B,
639
- pink: z,
640
- peach: W,
641
- red: R,
642
- orange: H,
643
- yellow: L,
644
- green: T,
645
- teal: M,
646
- cyan: U,
647
- purple: V,
648
- neutral: X,
649
- mint: I
650
648
  }, $ = {
649
+ sand: X,
650
+ blacks: D,
651
+ blue: B,
652
+ sapphire: z,
653
+ pink: R,
654
+ peach: W,
655
+ red: H,
656
+ orange: L,
657
+ yellow: T,
658
+ green: M,
659
+ teal: U,
660
+ cyan: V,
661
+ purple: P,
662
+ neutral: I,
663
+ mint: O
664
+ }, j = {
651
665
  display: {
652
666
  value: "'Playfair Display', serif"
653
667
  },
@@ -663,7 +677,7 @@ const S = {
663
677
  body: {
664
678
  value: "Inter, sans-serif"
665
679
  }
666
- }, j = {
680
+ }, Y = {
667
681
  xs: {
668
682
  value: "0.625rem"
669
683
  },
@@ -728,7 +742,7 @@ const S = {
728
742
  value: "1.25rem"
729
743
  }
730
744
  // 20px
731
- }, Y = {
745
+ }, q = {
732
746
  regular: {
733
747
  value: 400
734
748
  },
@@ -768,7 +782,7 @@ const S = {
768
782
  900: "4.5rem",
769
783
  // 96px
770
784
  1600: "8rem"
771
- }, q = {
785
+ }, G = {
772
786
  none: {
773
787
  value: "0"
774
788
  },
@@ -808,7 +822,7 @@ const S = {
808
822
  "5xl": {
809
823
  value: e[1600]
810
824
  }
811
- }, G = {
825
+ }, J = {
812
826
  none: {
813
827
  value: "0"
814
828
  },
@@ -833,7 +847,7 @@ const S = {
833
847
  full: {
834
848
  value: "100%"
835
849
  }
836
- }, J = r({
850
+ }, K = r({
837
851
  slots: h.keys(),
838
852
  base: {
839
853
  root: {
@@ -841,7 +855,7 @@ const S = {
841
855
  pb: "xs"
842
856
  }
843
857
  }
844
- }), K = a({
858
+ }), N = a({
845
859
  base: {
846
860
  borderRadius: "sm",
847
861
  transition: "all 0.1s ease-in-out",
@@ -915,7 +929,7 @@ const S = {
915
929
  }
916
930
  },
917
931
  primary: {
918
- color: "blacks.1000",
932
+ color: "fg.button.primary.default",
919
933
  bg: "bg.button.primary.default",
920
934
  border: "none",
921
935
  _hover: {
@@ -1035,18 +1049,18 @@ const S = {
1035
1049
  size: "md",
1036
1050
  variant: "outline"
1037
1051
  }
1038
- }), N = r({
1052
+ }), Q = r({
1039
1053
  slots: p.keys(),
1040
1054
  base: {
1041
1055
  content: {
1042
1056
  bg: "bg"
1043
1057
  }
1044
1058
  }
1045
- }), Q = a({
1059
+ }), Z = a({
1046
1060
  base: {
1047
1061
  borderColor: "border"
1048
1062
  }
1049
- }), Z = r({
1063
+ }), ee = r({
1050
1064
  slots: _.keys(),
1051
1065
  base: {
1052
1066
  header: {
@@ -1058,7 +1072,7 @@ const S = {
1058
1072
  bg: "bg"
1059
1073
  }
1060
1074
  }
1061
- }), ee = r({
1075
+ }), le = r({
1062
1076
  slots: ["preview", "input", "textarea"],
1063
1077
  base: {
1064
1078
  preview: {
@@ -1153,14 +1167,14 @@ const S = {
1153
1167
  }
1154
1168
  }
1155
1169
  }
1156
- }), le = r({
1170
+ }), oe = r({
1157
1171
  slots: f.keys(),
1158
1172
  base: {
1159
1173
  legend: {
1160
1174
  mb: "2xs"
1161
1175
  }
1162
1176
  }
1163
- }), oe = a({
1177
+ }), re = a({
1164
1178
  base: {
1165
1179
  px: "sm",
1166
1180
  borderRadius: "sm",
@@ -1192,7 +1206,7 @@ const S = {
1192
1206
  }
1193
1207
  }
1194
1208
  }
1195
- }), re = a({
1209
+ }), ae = a({
1196
1210
  base: {
1197
1211
  display: "inline-flex",
1198
1212
  alignItems: "center",
@@ -1255,7 +1269,7 @@ const S = {
1255
1269
  size: "md",
1256
1270
  variant: "raised"
1257
1271
  }
1258
- }), ae = r({
1272
+ }), te = r({
1259
1273
  slots: F.keys(),
1260
1274
  base: {
1261
1275
  itemGroupLabel: {
@@ -1305,7 +1319,7 @@ const S = {
1305
1319
  textStyle: "label/M/regular"
1306
1320
  }
1307
1321
  }
1308
- }), te = r({
1322
+ }), ie = r({
1309
1323
  slots: k.keys(),
1310
1324
  base: {
1311
1325
  positioner: {
@@ -1359,12 +1373,12 @@ const S = {
1359
1373
  }
1360
1374
  }
1361
1375
  }
1362
- }), ie = u.variants?.size ?? {}, se = {
1376
+ }), se = u.variants?.size ?? {}, ue = {
1363
1377
  ...u,
1364
1378
  variants: {
1365
1379
  ...u.variants,
1366
1380
  size: {
1367
- ...ie,
1381
+ ...se,
1368
1382
  "2xs": {
1369
1383
  circle: {
1370
1384
  "--size": "14px",
@@ -1376,12 +1390,12 @@ const S = {
1376
1390
  }
1377
1391
  }
1378
1392
  }
1379
- }, ue = a({
1393
+ }, ne = a({
1380
1394
  base: {
1381
1395
  "--start-color": "fg",
1382
1396
  "--end-color": "fg.muted"
1383
1397
  }
1384
- }), ne = r({
1398
+ }), de = r({
1385
1399
  slots: x.keys(),
1386
1400
  base: {
1387
1401
  trigger: {
@@ -1441,7 +1455,7 @@ const S = {
1441
1455
  }
1442
1456
  }
1443
1457
  }
1444
- }), de = a({
1458
+ }), ce = a({
1445
1459
  base: {
1446
1460
  paddingX: "sm",
1447
1461
  paddingY: "xs",
@@ -1467,7 +1481,7 @@ const S = {
1467
1481
  color: "fg.subtle"
1468
1482
  }
1469
1483
  }
1470
- }), ce = r({
1484
+ }), ge = r({
1471
1485
  slots: y.keys(),
1472
1486
  base: {
1473
1487
  content: {
@@ -1478,7 +1492,7 @@ const S = {
1478
1492
  bg: "bg.inverted"
1479
1493
  }
1480
1494
  }
1481
- }), ge = {
1495
+ }), be = {
1482
1496
  DEFAULT: {
1483
1497
  value: "1px solid {colors.border}"
1484
1498
  },
@@ -1497,7 +1511,7 @@ const S = {
1497
1511
  "accent-light": {
1498
1512
  value: "1px solid {colors.border.accent-light}"
1499
1513
  }
1500
- }, be = {
1514
+ }, ve = {
1501
1515
  DEFAULT: {
1502
1516
  value: {
1503
1517
  _light: "{colors.blacks.800}",
@@ -1581,7 +1595,7 @@ const S = {
1581
1595
  value: "{colors.fg.muted}"
1582
1596
  }
1583
1597
  }
1584
- }, ve = {
1598
+ }, me = {
1585
1599
  DEFAULT: {
1586
1600
  value: {
1587
1601
  _light: "{colors.blacks.50}",
@@ -1612,6 +1626,18 @@ const S = {
1612
1626
  _dark: "{colors.blacks.850}"
1613
1627
  }
1614
1628
  },
1629
+ success: {
1630
+ value: {
1631
+ _light: "{colors.green.50}",
1632
+ _dark: "{colors.green.900}"
1633
+ }
1634
+ },
1635
+ error: {
1636
+ value: {
1637
+ _light: "{colors.red.50}",
1638
+ _dark: "{colors.red.900}"
1639
+ }
1640
+ },
1615
1641
  code: {
1616
1642
  value: {
1617
1643
  _light: "{colors.blacks.50}",
@@ -1846,23 +1872,23 @@ const S = {
1846
1872
  }
1847
1873
  }
1848
1874
  }
1849
- }, me = {
1875
+ }, he = {
1850
1876
  DEFAULT: {
1851
1877
  value: {
1852
- _light: "{colors.neutral.500}",
1853
- _dark: "{colors.neutral.600}"
1878
+ _light: "{colors.neutral.400}",
1879
+ _dark: "{colors.neutral.700}"
1854
1880
  }
1855
1881
  },
1856
1882
  muted: {
1857
1883
  value: {
1858
- _light: "{colors.neutral.400}",
1859
- _dark: "{colors.neutral.700}"
1884
+ _light: "{colors.neutral.300}",
1885
+ _dark: "{colors.neutral.750}"
1860
1886
  }
1861
1887
  },
1862
1888
  subtle: {
1863
1889
  value: {
1864
- _light: "{colors.neutral.300}",
1865
- _dark: "{colors.neutral.750}"
1890
+ _light: "{colors.neutral.200}",
1891
+ _dark: "{colors.neutral.800}"
1866
1892
  }
1867
1893
  },
1868
1894
  inverted: {
@@ -1888,14 +1914,14 @@ const S = {
1888
1914
  value: "{colors.border.muted}"
1889
1915
  }
1890
1916
  }
1891
- }, he = {
1917
+ }, pe = {
1892
1918
  border: {
1893
1919
  value: {
1894
1920
  _light: "{colors.mint.200}",
1895
1921
  _dark: "{colors.mint.200}"
1896
1922
  }
1897
1923
  }
1898
- }, pe = {
1924
+ }, _e = {
1899
1925
  contrast: {
1900
1926
  value: {
1901
1927
  _light: "black",
@@ -1944,7 +1970,7 @@ const S = {
1944
1970
  _dark: "{colors.orange.500}"
1945
1971
  }
1946
1972
  }
1947
- }, _e = {
1973
+ }, fe = {
1948
1974
  text: {
1949
1975
  primary: {
1950
1976
  value: {
@@ -2105,7 +2131,7 @@ const S = {
2105
2131
  }
2106
2132
  }
2107
2133
  }
2108
- }, fe = {
2134
+ }, Fe = {
2109
2135
  selectable: {
2110
2136
  primary: {
2111
2137
  value: {
@@ -2114,15 +2140,15 @@ const S = {
2114
2140
  }
2115
2141
  }
2116
2142
  }
2117
- }, Fe = {
2118
- fg: be,
2119
- bg: ve,
2120
- border: me,
2121
- blue: he,
2122
- orange: pe,
2123
- vis: _e,
2124
- text: fe
2125
- }, ke = c({
2143
+ }, ke = {
2144
+ fg: ve,
2145
+ bg: me,
2146
+ border: he,
2147
+ blue: pe,
2148
+ orange: _e,
2149
+ vis: fe,
2150
+ text: Fe
2151
+ }, xe = c({
2126
2152
  modal: {
2127
2153
  value: {
2128
2154
  paddingInline: "xs",
@@ -2134,7 +2160,7 @@ const S = {
2134
2160
  boxShadow: "mid"
2135
2161
  }
2136
2162
  }
2137
- }), xe = {
2163
+ }), ye = {
2138
2164
  "low-light": {
2139
2165
  value: "0px 2px 4px 0px rgba(0, 0, 0, 0.10)"
2140
2166
  },
@@ -2165,7 +2191,7 @@ const S = {
2165
2191
  "desktop-icon-label-text-selected-dark": {
2166
2192
  value: "0px 2px 4px rgba(37, 99, 235, 0.75)"
2167
2193
  }
2168
- }, ye = {
2194
+ }, Se = {
2169
2195
  low: {
2170
2196
  value: {
2171
2197
  _light: "{shadows.low-light}",
@@ -2196,7 +2222,7 @@ const S = {
2196
2222
  _dark: "{shadows.desktop-icon-label-text-selected-dark}"
2197
2223
  }
2198
2224
  }
2199
- }, Se = g({
2225
+ }, Ce = g({
2200
2226
  brand: {
2201
2227
  value: {
2202
2228
  fontFamily: "brand",
@@ -2429,54 +2455,54 @@ const S = {
2429
2455
  letterSpacing: "0.14px"
2430
2456
  }
2431
2457
  }
2432
- }), Ce = b({
2433
- globalCss: w,
2458
+ }), Ee = b({
2459
+ globalCss: A,
2434
2460
  theme: {
2435
2461
  breakpoints: {
2436
2462
  "3xl": "2560px",
2437
2463
  "4xl": "3840px"
2438
2464
  },
2439
- textStyles: Se,
2440
- layerStyles: ke,
2465
+ textStyles: Ce,
2466
+ layerStyles: xe,
2441
2467
  recipes: {
2442
- button: K,
2443
- divider: Q,
2444
- input: oe,
2445
- kbd: re,
2446
- skeleton: ue,
2447
- textarea: de
2468
+ button: N,
2469
+ divider: Z,
2470
+ input: re,
2471
+ kbd: ae,
2472
+ skeleton: ne,
2473
+ textarea: ce
2448
2474
  },
2449
2475
  tokens: {
2450
- colors: O,
2451
- fonts: $,
2452
- fontSizes: j,
2453
- fontWeights: Y,
2454
- radii: G,
2455
- shadows: xe,
2456
- spacing: q
2476
+ colors: $,
2477
+ fonts: j,
2478
+ fontSizes: Y,
2479
+ fontWeights: q,
2480
+ radii: J,
2481
+ shadows: ye,
2482
+ spacing: G
2457
2483
  },
2458
2484
  semanticTokens: {
2459
- colors: Fe,
2460
- borders: ge,
2461
- shadows: ye
2485
+ colors: ke,
2486
+ borders: be,
2487
+ shadows: Se
2462
2488
  },
2463
2489
  slotRecipes: {
2464
- alert: J,
2465
- drawer: Z,
2466
- tooltip: ce,
2467
- popover: te,
2468
- menu: ae,
2469
- editable: ee,
2470
- form: le,
2471
- dialog: N,
2472
- progressCircle: se,
2473
- tabs: ne
2490
+ alert: K,
2491
+ drawer: ee,
2492
+ tooltip: ge,
2493
+ popover: ie,
2494
+ menu: te,
2495
+ editable: le,
2496
+ form: oe,
2497
+ dialog: Q,
2498
+ progressCircle: ue,
2499
+ tabs: de
2474
2500
  }
2475
2501
  }
2476
- }), ze = v(m, Ce);
2502
+ }), ze = v(m, Ee);
2477
2503
  export {
2478
- De as a,
2479
- Be as c,
2504
+ Be as a,
2505
+ w as c,
2480
2506
  ze as t
2481
2507
  };
2482
- //# sourceMappingURL=theme-BnpFnY9v.js.map
2508
+ //# sourceMappingURL=theme-D2LYEa0j.js.map