@pstdio/ui 0.13.0 → 0.15.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.
Files changed (79) hide show
  1. package/dist/MermaidComponent-DBJsTOmj.js +60 -0
  2. package/dist/MermaidComponent-DBJsTOmj.js.map +1 -0
  3. package/dist/chat-ui.js +1222 -1147
  4. package/dist/chat-ui.js.map +1 -1
  5. package/dist/components/bubble-button.d.ts +1 -1
  6. package/dist/components/chat-ui/components/chat-input-attachments.d.ts +12 -0
  7. package/dist/components/chat-ui/components/chat-input.d.ts +3 -0
  8. package/dist/components/chat-ui/components/chat-panel.d.ts +2 -0
  9. package/dist/components/chat-ui/components/message-parts-renderer.d.ts +1 -1
  10. package/dist/components/chat-ui/components/message-types.d.ts +90 -3
  11. package/dist/components/chat-ui/index.d.ts +2 -2
  12. package/dist/components/chat-ui/mocks/library/index.d.ts +2 -2
  13. package/dist/components/chat-ui/performance/chat-performance-fixtures.d.ts +1 -1
  14. package/dist/components/chat-ui/performance/chat-performance-story-utils.d.ts +1 -1
  15. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +3 -3
  16. package/dist/components/chat-ui/tool-rendering/question-renderer.d.ts +1 -1
  17. package/dist/components/chat-ui/tool-rendering/shared.d.ts +2 -2
  18. package/dist/components/chat-ui/tool-rendering/todowrite-renderer.d.ts +1 -1
  19. package/dist/components/chat-ui/tool-rendering/types.d.ts +1 -1
  20. package/dist/components/data-renderer/data-renderer-board-column-header.d.ts +8 -0
  21. package/dist/components/data-renderer/data-renderer-board-group-section.d.ts +17 -0
  22. package/dist/components/data-renderer/data-renderer-board-move.d.ts +21 -0
  23. package/dist/components/data-renderer/data-renderer-board.d.ts +3 -2
  24. package/dist/components/data-renderer/data-renderer-content.d.ts +7 -2
  25. package/dist/components/data-renderer/data-renderer-enum-helpers.d.ts +3 -3
  26. package/dist/components/data-renderer/data-renderer-helpers.d.ts +2 -0
  27. package/dist/components/data-renderer/data-renderer.d.ts +2 -2
  28. package/dist/components/diff-viewer/diff-card-body.d.ts +16 -0
  29. package/dist/components/diff-viewer/diff-card.d.ts +1 -0
  30. package/dist/components/diff-viewer/diff-size.d.ts +1 -1
  31. package/dist/components/diff-viewer/diff-viewer-options-menu.d.ts +16 -0
  32. package/dist/components/icon-color-picker.d.ts +2 -6
  33. package/dist/components/list-row/list-row.types.d.ts +1 -1
  34. package/dist/components/mermaid-renderer/download-png.d.ts +7 -0
  35. package/dist/components/mermaid-renderer/index.d.ts +2 -0
  36. package/dist/components/mermaid-renderer/mermaid-error-state.d.ts +6 -0
  37. package/dist/components/mermaid-renderer/mermaid-fixtures.d.ts +9 -0
  38. package/dist/components/mermaid-renderer/mermaid-fullscreen.d.ts +10 -0
  39. package/dist/components/mermaid-renderer/mermaid-renderer.d.ts +8 -0
  40. package/dist/components/mermaid-renderer/mermaid-svg-view.d.ts +12 -0
  41. package/dist/components/mermaid-renderer/mermaid-toolbar.d.ts +12 -0
  42. package/dist/components/mermaid-renderer/mermaid-zoom.d.ts +6 -0
  43. package/dist/components/mermaid-renderer/svg-data-url.d.ts +6 -0
  44. package/dist/components/mermaid-renderer/use-mermaid-render.d.ts +5 -0
  45. package/dist/components/notification-center/index.d.ts +2 -0
  46. package/dist/components/notification-center/notification-center.d.ts +2 -0
  47. package/dist/components/notification-center/notification-center.types.d.ts +37 -0
  48. package/dist/components/palette-shortcut.d.ts +8 -0
  49. package/dist/components/search-modal-content.d.ts +20 -0
  50. package/dist/components/style-guide-data.d.ts +0 -6
  51. package/dist/components/tab-strip/tab-visibility-filter.d.ts +4 -2
  52. package/dist/components/tree-list/tree-list-visibility-filter.d.ts +11 -3
  53. package/dist/components/tree-list/tree-list.types.d.ts +7 -2
  54. package/dist/index.d.ts +9 -2
  55. package/dist/index.js +4641 -4326
  56. package/dist/index.js.map +1 -1
  57. package/dist/mermaid-renderer-CPGj6vsb.js +570 -0
  58. package/dist/mermaid-renderer-CPGj6vsb.js.map +1 -0
  59. package/dist/resource-badge-CeJTOn8F.js +188 -0
  60. package/dist/resource-badge-CeJTOn8F.js.map +1 -0
  61. package/dist/{rich-message-CEOSsdR2.js → rich-message-DNSEhxXh.js} +431 -519
  62. package/dist/rich-message-DNSEhxXh.js.map +1 -0
  63. package/dist/rich-text.js +405 -399
  64. package/dist/rich-text.js.map +1 -1
  65. package/dist/style.css +1 -1
  66. package/dist/theme/shadowless-default-config.d.ts +2 -0
  67. package/dist/{theme-D2LYEa0j.js → theme-25P7ij4C.js} +211 -241
  68. package/dist/theme-25P7ij4C.js.map +1 -0
  69. package/dist/theme.js +1 -1
  70. package/package.json +3 -2
  71. package/dist/MermaidComponent-Cz_Iob5U.js +0 -127
  72. package/dist/MermaidComponent-Cz_Iob5U.js.map +0 -1
  73. package/dist/components/chat-ui/agent-types.d.ts +0 -220
  74. package/dist/components/sidebar/sidebar-project-menu.d.ts +0 -7
  75. package/dist/get-file-type-icon-ufFb0IkR.js +0 -102
  76. package/dist/get-file-type-icon-ufFb0IkR.js.map +0 -1
  77. package/dist/rich-message-CEOSsdR2.js.map +0 -1
  78. package/dist/theme/tokens/shadows.d.ts +0 -64
  79. package/dist/theme-D2LYEa0j.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { defineSlotRecipe as r, defineRecipe as a, defineLayerStyles as c, defineTextStyles as g, defineConfig as b, createSystem as v, defaultConfig as m } from "@chakra-ui/react";
2
- import { alertAnatomy as h, dialogAnatomy as p, drawerAnatomy as _, fieldsetAnatomy as f, menuAnatomy as F, popoverAnatomy as k, tabsAnatomy as x, tooltipAnatomy as y } from "@chakra-ui/react/anatomy";
3
- import { progressCircleSlotRecipe as u } from "@chakra-ui/react/theme";
4
- const S = {
1
+ import { defineSlotRecipe as t, defineRecipe as n, defaultConfig as a, defineLayerStyles as m, defineTextStyles as h, defineConfig as p, createSystem as f } from "@chakra-ui/react";
2
+ import { alertAnatomy as _, dialogAnatomy as F, drawerAnatomy as y, fieldsetAnatomy as k, menuAnatomy as x, popoverAnatomy as S, tabsAnatomy as C, tooltipAnatomy as E } from "@chakra-ui/react/anatomy";
3
+ import { progressCircleSlotRecipe as d } from "@chakra-ui/react/theme";
4
+ const A = {
5
5
  "editor.background": ["colors.bg", "colors.bg.code"],
6
6
  "editor.foreground": ["colors.fg"],
7
7
  "editor.lineHighlightBackground": ["colors.bg.hover"],
@@ -34,41 +34,41 @@ const S = {
34
34
  descriptionForeground: ["colors.fg.muted"],
35
35
  disabledForeground: ["colors.fg.subtle"],
36
36
  border: ["colors.border", "colors.border.muted", "colors.border.subtle"]
37
- }, C = (l) => `colors.vscode.${l}`, E = (l) => l.replace(/^#/, ""), w = (l) => {
38
- const t = (l.theme.tokenColors ?? []).flatMap((o) => (Array.isArray(o.scope) ? o.scope : o.scope ? [o.scope] : []).map((i) => ({
39
- token: i,
40
- ...o.settings?.foreground ? {
41
- foreground: E(o.settings.foreground)
37
+ }, D = (e) => `colors.vscode.${e}`, w = (e) => e.replace(/^#/, ""), B = (e) => {
38
+ const r = (e.theme.tokenColors ?? []).flatMap((l) => (Array.isArray(l.scope) ? l.scope : l.scope ? [l.scope] : []).map((u) => ({
39
+ token: u,
40
+ ...l.settings?.foreground ? {
41
+ foreground: w(l.settings.foreground)
42
42
  } : {},
43
- ...o.settings?.fontStyle ? {
44
- fontStyle: o.settings.fontStyle
43
+ ...l.settings?.fontStyle ? {
44
+ fontStyle: l.settings.fontStyle
45
45
  } : {}
46
46
  })));
47
47
  return {
48
- base: l.mode === "dark" ? "vs-dark" : "vs",
48
+ base: e.mode === "dark" ? "vs-dark" : "vs",
49
49
  inherit: !0,
50
- rules: t,
51
- colors: l.theme.colors ?? {}
50
+ rules: r,
51
+ colors: e.theme.colors ?? {}
52
52
  };
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;
53
+ }, He = (e) => {
54
+ const r = {}, l = e.theme.colors ?? {};
55
+ for (const [i, u] of Object.entries(l))
56
+ r[D(i)] = u;
57
+ for (const [i, u] of Object.entries(A)) {
58
+ const g = l[i];
59
+ if (g)
60
+ for (const v of u) r[v] = g;
61
61
  }
62
62
  return {
63
- id: l.id,
64
- mode: l.mode,
65
- tokens: t,
66
- monacoTheme: w({
67
- mode: l.mode,
68
- theme: l.theme
63
+ id: e.id,
64
+ mode: e.mode,
65
+ tokens: r,
66
+ monacoTheme: B({
67
+ mode: e.mode,
68
+ theme: e.theme
69
69
  })
70
70
  };
71
- }, A = {
71
+ }, z = {
72
72
  "*::selection": {
73
73
  bg: {
74
74
  base: "bg.accent-secondary.blue-medium",
@@ -126,7 +126,7 @@ const S = {
126
126
  fontSize: "1.5rem"
127
127
  }
128
128
  }
129
- }, D = {
129
+ }, R = {
130
130
  DEFAULT: {
131
131
  value: "#0A0D15"
132
132
  },
@@ -175,7 +175,7 @@ const S = {
175
175
  1e3: {
176
176
  value: "#000000"
177
177
  }
178
- }, B = {
178
+ }, W = {
179
179
  DEFAULT: {
180
180
  value: "#5098FF"
181
181
  },
@@ -209,7 +209,7 @@ const S = {
209
209
  900: {
210
210
  value: "#002862"
211
211
  }
212
- }, z = {
212
+ }, H = {
213
213
  DEFAULT: {
214
214
  value: "#3A4BE4"
215
215
  },
@@ -246,7 +246,7 @@ const S = {
246
246
  900: {
247
247
  value: "#0A125A"
248
248
  }
249
- }, R = {
249
+ }, L = {
250
250
  DEFAULT: {
251
251
  value: "#E054EC"
252
252
  },
@@ -283,7 +283,7 @@ const S = {
283
283
  900: {
284
284
  value: "#520659"
285
285
  }
286
- }, W = {
286
+ }, T = {
287
287
  DEFAULT: {
288
288
  value: "#FBD8CE"
289
289
  },
@@ -317,7 +317,7 @@ const S = {
317
317
  900: {
318
318
  value: "#522923"
319
319
  }
320
- }, H = {
320
+ }, M = {
321
321
  DEFAULT: {
322
322
  value: "#FF3232"
323
323
  },
@@ -351,7 +351,7 @@ const S = {
351
351
  900: {
352
352
  value: "#580707"
353
353
  }
354
- }, L = {
354
+ }, U = {
355
355
  DEFAULT: {
356
356
  value: "#F78C25"
357
357
  },
@@ -385,7 +385,7 @@ const S = {
385
385
  900: {
386
386
  value: "#552107"
387
387
  }
388
- }, T = {
388
+ }, P = {
389
389
  DEFAULT: {
390
390
  value: "#FFD643"
391
391
  },
@@ -425,7 +425,7 @@ const S = {
425
425
  900: {
426
426
  value: "#644E00"
427
427
  }
428
- }, M = {
428
+ }, V = {
429
429
  DEFAULT: {
430
430
  value: "#2DD665"
431
431
  },
@@ -459,7 +459,7 @@ const S = {
459
459
  900: {
460
460
  value: "#003110"
461
461
  }
462
- }, U = {
462
+ }, O = {
463
463
  DEFAULT: {
464
464
  value: "#3EECC4"
465
465
  },
@@ -493,7 +493,7 @@ const S = {
493
493
  900: {
494
494
  value: "#024F3D"
495
495
  }
496
- }, V = {
496
+ }, X = {
497
497
  DEFAULT: {
498
498
  value: "#5CDCFF"
499
499
  },
@@ -527,7 +527,7 @@ const S = {
527
527
  900: {
528
528
  value: "#005B73"
529
529
  }
530
- }, P = {
530
+ }, j = {
531
531
  DEFAULT: {
532
532
  value: "#8B47FF"
533
533
  },
@@ -561,7 +561,7 @@ const S = {
561
561
  900: {
562
562
  value: "#1E0050"
563
563
  }
564
- }, X = {
564
+ }, I = {
565
565
  DEFAULT: {
566
566
  value: "#F4F2EC"
567
567
  },
@@ -595,7 +595,7 @@ const S = {
595
595
  900: {
596
596
  value: "#E8CECE"
597
597
  }
598
- }, I = {
598
+ }, $ = {
599
599
  50: {
600
600
  value: "#FCFDFC"
601
601
  },
@@ -638,30 +638,30 @@ const S = {
638
638
  950: {
639
639
  value: "#10141B"
640
640
  }
641
- }, O = {
641
+ }, Y = {
642
642
  100: {
643
643
  value: "#D3ECEE"
644
644
  },
645
645
  200: {
646
646
  value: "#B3DEE2"
647
647
  }
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 = {
648
+ }, q = {
649
+ sand: I,
650
+ blacks: R,
651
+ blue: W,
652
+ sapphire: H,
653
+ pink: L,
654
+ peach: T,
655
+ red: M,
656
+ orange: U,
657
+ yellow: P,
658
+ green: V,
659
+ teal: O,
660
+ cyan: X,
661
+ purple: j,
662
+ neutral: $,
663
+ mint: Y
664
+ }, G = {
665
665
  display: {
666
666
  value: "'Playfair Display', serif"
667
667
  },
@@ -677,7 +677,7 @@ const S = {
677
677
  body: {
678
678
  value: "Inter, sans-serif"
679
679
  }
680
- }, Y = {
680
+ }, K = {
681
681
  xs: {
682
682
  value: "0.625rem"
683
683
  },
@@ -742,7 +742,7 @@ const S = {
742
742
  value: "1.25rem"
743
743
  }
744
744
  // 20px
745
- }, q = {
745
+ }, J = {
746
746
  regular: {
747
747
  value: 400
748
748
  },
@@ -755,7 +755,7 @@ const S = {
755
755
  bold: {
756
756
  value: 700
757
757
  }
758
- }, e = {
758
+ }, o = {
759
759
  // 0px
760
760
  25: "0.125rem",
761
761
  // 2px
@@ -782,82 +782,82 @@ const S = {
782
782
  900: "4.5rem",
783
783
  // 96px
784
784
  1600: "8rem"
785
- }, G = {
785
+ }, N = {
786
786
  none: {
787
787
  value: "0"
788
788
  },
789
789
  "2xs": {
790
- value: e[50]
790
+ value: o[50]
791
791
  },
792
792
  xs: {
793
- value: e[100]
793
+ value: o[100]
794
794
  },
795
795
  sm: {
796
- value: e[150]
796
+ value: o[150]
797
797
  },
798
798
  md: {
799
- value: e[200]
799
+ value: o[200]
800
800
  },
801
801
  lg: {
802
- value: e[300]
802
+ value: o[300]
803
803
  },
804
804
  xl: {
805
- value: e[400]
805
+ value: o[400]
806
806
  },
807
807
  "2xl": {
808
- value: e[500]
808
+ value: o[500]
809
809
  },
810
810
  "3xl": {
811
- value: e[600]
811
+ value: o[600]
812
812
  },
813
813
  "3.5xl": {
814
- value: e[700]
814
+ value: o[700]
815
815
  },
816
816
  "4xl": {
817
- value: e[800]
817
+ value: o[800]
818
818
  },
819
819
  "4.5xl": {
820
- value: e[900]
820
+ value: o[900]
821
821
  },
822
822
  "5xl": {
823
- value: e[1600]
823
+ value: o[1600]
824
824
  }
825
- }, J = {
825
+ }, Q = {
826
826
  none: {
827
827
  value: "0"
828
828
  },
829
829
  "2xs": {
830
- value: e[25]
830
+ value: o[25]
831
831
  },
832
832
  xs: {
833
- value: e[50]
833
+ value: o[50]
834
834
  },
835
835
  sm: {
836
- value: e[100]
836
+ value: o[100]
837
837
  },
838
838
  md: {
839
- value: e[150]
839
+ value: o[150]
840
840
  },
841
841
  lg: {
842
- value: e[200]
842
+ value: o[200]
843
843
  },
844
844
  xl: {
845
- value: e[400]
845
+ value: o[400]
846
846
  },
847
847
  full: {
848
848
  value: "100%"
849
849
  }
850
- }, K = r({
851
- slots: h.keys(),
850
+ }, Z = t({
851
+ slots: _.keys(),
852
852
  base: {
853
853
  root: {
854
854
  pt: "xs",
855
855
  pb: "xs"
856
856
  }
857
857
  }
858
- }), N = a({
858
+ }), ee = n({
859
859
  base: {
860
- borderRadius: "sm",
860
+ borderRadius: "xs",
861
861
  transition: "all 0.1s ease-in-out",
862
862
  fontFamily: "label",
863
863
  fontWeight: "500",
@@ -1046,22 +1046,26 @@ const S = {
1046
1046
  }
1047
1047
  },
1048
1048
  defaultVariants: {
1049
- size: "md",
1049
+ size: "sm",
1050
1050
  variant: "outline"
1051
1051
  }
1052
- }), Q = r({
1053
- slots: p.keys(),
1052
+ }), le = t({
1053
+ slots: F.keys(),
1054
1054
  base: {
1055
1055
  content: {
1056
- bg: "bg"
1056
+ bg: "bg",
1057
+ borderRadius: "xs",
1058
+ borderWidth: "1px",
1059
+ borderColor: "border.muted",
1060
+ overflow: "hidden"
1057
1061
  }
1058
1062
  }
1059
- }), Z = a({
1063
+ }), oe = n({
1060
1064
  base: {
1061
1065
  borderColor: "border"
1062
1066
  }
1063
- }), ee = r({
1064
- slots: _.keys(),
1067
+ }), re = t({
1068
+ slots: y.keys(),
1065
1069
  base: {
1066
1070
  header: {
1067
1071
  fontWeight: "medium",
@@ -1072,7 +1076,7 @@ const S = {
1072
1076
  bg: "bg"
1073
1077
  }
1074
1078
  }
1075
- }), le = r({
1079
+ }), te = t({
1076
1080
  slots: ["preview", "input", "textarea"],
1077
1081
  base: {
1078
1082
  preview: {
@@ -1098,7 +1102,9 @@ const S = {
1098
1102
  bg: "bg",
1099
1103
  width: "auto",
1100
1104
  _focusVisible: {
1101
- boxShadow: "none"
1105
+ outline: "2px solid",
1106
+ outlineColor: "border",
1107
+ outlineOffset: "2px"
1102
1108
  },
1103
1109
  _placeholder: {
1104
1110
  color: "fg.muted"
@@ -1114,7 +1120,9 @@ const S = {
1114
1120
  bg: "bg.muted",
1115
1121
  width: "auto",
1116
1122
  _focusVisible: {
1117
- boxShadow: "none"
1123
+ outline: "2px solid",
1124
+ outlineColor: "border",
1125
+ outlineOffset: "2px"
1118
1126
  },
1119
1127
  _placeholder: {
1120
1128
  color: "fg.muted"
@@ -1167,17 +1175,17 @@ const S = {
1167
1175
  }
1168
1176
  }
1169
1177
  }
1170
- }), oe = r({
1171
- slots: f.keys(),
1178
+ }), ae = t({
1179
+ slots: k.keys(),
1172
1180
  base: {
1173
1181
  legend: {
1174
1182
  mb: "2xs"
1175
1183
  }
1176
1184
  }
1177
- }), re = a({
1185
+ }), ie = n({
1178
1186
  base: {
1179
1187
  px: "sm",
1180
- borderRadius: "sm",
1188
+ borderRadius: "xs",
1181
1189
  transition: "border-color 0.2s ease-in-out",
1182
1190
  bg: "bg",
1183
1191
  color: "fg",
@@ -1206,7 +1214,7 @@ const S = {
1206
1214
  }
1207
1215
  }
1208
1216
  }
1209
- }), ae = a({
1217
+ }), se = n({
1210
1218
  base: {
1211
1219
  display: "inline-flex",
1212
1220
  alignItems: "center",
@@ -1269,8 +1277,8 @@ const S = {
1269
1277
  size: "md",
1270
1278
  variant: "raised"
1271
1279
  }
1272
- }), te = r({
1273
- slots: F.keys(),
1280
+ }), ne = t({
1281
+ slots: x.keys(),
1274
1282
  base: {
1275
1283
  itemGroupLabel: {
1276
1284
  ml: "{2xs}",
@@ -1306,7 +1314,7 @@ const S = {
1306
1314
  display: "flex",
1307
1315
  flexDirection: "column",
1308
1316
  gap: "0",
1309
- borderRadius: "sm",
1317
+ borderRadius: "xs",
1310
1318
  p: "0",
1311
1319
  px: "0",
1312
1320
  py: "0",
@@ -1314,17 +1322,16 @@ const S = {
1314
1322
  borderWidth: "1px",
1315
1323
  borderStyle: "solid",
1316
1324
  borderColor: "border.muted",
1317
- boxShadow: "low",
1318
1325
  zIndex: "dropdown",
1319
1326
  textStyle: "label/M/regular"
1320
1327
  }
1321
1328
  }
1322
- }), ie = r({
1323
- slots: k.keys(),
1329
+ }), ue = t({
1330
+ slots: S.keys(),
1324
1331
  base: {
1325
1332
  positioner: {
1326
1333
  _focus: {
1327
- boxShadow: "none !important"
1334
+ outline: "none"
1328
1335
  }
1329
1336
  },
1330
1337
  closeTrigger: {
@@ -1344,7 +1351,7 @@ const S = {
1344
1351
  borderStyle: "solid",
1345
1352
  borderColor: "border.muted",
1346
1353
  _focus: {
1347
- boxShadow: "none !important"
1354
+ outline: "none"
1348
1355
  }
1349
1356
  },
1350
1357
  title: {
@@ -1373,12 +1380,12 @@ const S = {
1373
1380
  }
1374
1381
  }
1375
1382
  }
1376
- }), se = u.variants?.size ?? {}, ue = {
1377
- ...u,
1383
+ }), de = d.variants?.size ?? {}, ce = {
1384
+ ...d,
1378
1385
  variants: {
1379
- ...u.variants,
1386
+ ...d.variants,
1380
1387
  size: {
1381
- ...se,
1388
+ ...de,
1382
1389
  "2xs": {
1383
1390
  circle: {
1384
1391
  "--size": "14px",
@@ -1390,13 +1397,13 @@ const S = {
1390
1397
  }
1391
1398
  }
1392
1399
  }
1393
- }, ne = a({
1400
+ }, ge = n({
1394
1401
  base: {
1395
1402
  "--start-color": "fg",
1396
1403
  "--end-color": "fg.muted"
1397
1404
  }
1398
- }), de = r({
1399
- slots: x.keys(),
1405
+ }), be = t({
1406
+ slots: C.keys(),
1400
1407
  base: {
1401
1408
  trigger: {
1402
1409
  borderRadius: "0"
@@ -1455,7 +1462,7 @@ const S = {
1455
1462
  }
1456
1463
  }
1457
1464
  }
1458
- }), ce = a({
1465
+ }), ve = n({
1459
1466
  base: {
1460
1467
  paddingX: "sm",
1461
1468
  paddingY: "xs",
@@ -1463,6 +1470,7 @@ const S = {
1463
1470
  outline: "none",
1464
1471
  color: "fg",
1465
1472
  border: "1px solid",
1473
+ borderRadius: "xs",
1466
1474
  transition: "border-color 0.2s ease-in-out",
1467
1475
  borderColor: "border.muted",
1468
1476
  _hover: {
@@ -1481,18 +1489,45 @@ const S = {
1481
1489
  color: "fg.subtle"
1482
1490
  }
1483
1491
  }
1484
- }), ge = r({
1485
- slots: y.keys(),
1492
+ }), me = t({
1493
+ slots: E.keys(),
1486
1494
  base: {
1487
1495
  content: {
1488
1496
  bg: "bg.inverted",
1497
+ borderRadius: "xs",
1489
1498
  color: "fg.inverted"
1490
1499
  },
1491
1500
  arrow: {
1492
1501
  bg: "bg.inverted"
1493
1502
  }
1494
1503
  }
1495
- }), be = {
1504
+ }), he = /* @__PURE__ */ new Set(["boxShadow", "boxShadowColor", "textShadow"]), c = /shadow/i, pe = (e) => {
1505
+ if (!c.test(e)) return e;
1506
+ const r = e.split(",").map((l) => l.trim()).filter((l) => !c.test(l));
1507
+ if (r.length !== 0)
1508
+ return r.join(", ");
1509
+ }, s = (e) => Array.isArray(e) ? e.map(s).filter((r) => r !== void 0) : typeof e == "string" ? pe(e) : !e || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).flatMap(([r, l]) => {
1510
+ if (he.has(r) || c.test(r)) return [];
1511
+ const i = s(l);
1512
+ return i === void 0 ? [] : [[r, i]];
1513
+ })), b = (e) => {
1514
+ const {
1515
+ shadows: r,
1516
+ ...l
1517
+ } = e ?? {};
1518
+ return l;
1519
+ }, fe = {
1520
+ ...a,
1521
+ theme: {
1522
+ ...a.theme,
1523
+ tokens: b(a.theme?.tokens),
1524
+ semanticTokens: b(a.theme?.semanticTokens),
1525
+ recipes: s(a.theme?.recipes),
1526
+ slotRecipes: s(a.theme?.slotRecipes),
1527
+ layerStyles: s(a.theme?.layerStyles),
1528
+ animationStyles: s(a.theme?.animationStyles)
1529
+ }
1530
+ }, _e = {
1496
1531
  DEFAULT: {
1497
1532
  value: "1px solid {colors.border}"
1498
1533
  },
@@ -1511,7 +1546,7 @@ const S = {
1511
1546
  "accent-light": {
1512
1547
  value: "1px solid {colors.border.accent-light}"
1513
1548
  }
1514
- }, ve = {
1549
+ }, Fe = {
1515
1550
  DEFAULT: {
1516
1551
  value: {
1517
1552
  _light: "{colors.blacks.800}",
@@ -1578,8 +1613,8 @@ const S = {
1578
1613
  primary: {
1579
1614
  default: {
1580
1615
  value: {
1581
- _light: "{colors.blacks.200}",
1582
- _dark: "{colors.blacks.200}"
1616
+ _light: "{colors.blacks.800}",
1617
+ _dark: "{colors.blacks.800}"
1583
1618
  }
1584
1619
  },
1585
1620
  disabled: {
@@ -1595,7 +1630,7 @@ const S = {
1595
1630
  value: "{colors.fg.muted}"
1596
1631
  }
1597
1632
  }
1598
- }, me = {
1633
+ }, ye = {
1599
1634
  DEFAULT: {
1600
1635
  value: {
1601
1636
  _light: "{colors.blacks.50}",
@@ -1872,7 +1907,7 @@ const S = {
1872
1907
  }
1873
1908
  }
1874
1909
  }
1875
- }, he = {
1910
+ }, ke = {
1876
1911
  DEFAULT: {
1877
1912
  value: {
1878
1913
  _light: "{colors.neutral.400}",
@@ -1914,14 +1949,14 @@ const S = {
1914
1949
  value: "{colors.border.muted}"
1915
1950
  }
1916
1951
  }
1917
- }, pe = {
1952
+ }, xe = {
1918
1953
  border: {
1919
1954
  value: {
1920
1955
  _light: "{colors.mint.200}",
1921
1956
  _dark: "{colors.mint.200}"
1922
1957
  }
1923
1958
  }
1924
- }, _e = {
1959
+ }, Se = {
1925
1960
  contrast: {
1926
1961
  value: {
1927
1962
  _light: "black",
@@ -1970,7 +2005,7 @@ const S = {
1970
2005
  _dark: "{colors.orange.500}"
1971
2006
  }
1972
2007
  }
1973
- }, fe = {
2008
+ }, Ce = {
1974
2009
  text: {
1975
2010
  primary: {
1976
2011
  value: {
@@ -2131,7 +2166,7 @@ const S = {
2131
2166
  }
2132
2167
  }
2133
2168
  }
2134
- }, Fe = {
2169
+ }, Ee = {
2135
2170
  selectable: {
2136
2171
  primary: {
2137
2172
  value: {
@@ -2140,89 +2175,26 @@ const S = {
2140
2175
  }
2141
2176
  }
2142
2177
  }
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({
2178
+ }, Ae = {
2179
+ fg: Fe,
2180
+ bg: ye,
2181
+ border: ke,
2182
+ blue: xe,
2183
+ orange: Se,
2184
+ vis: Ce,
2185
+ text: Ee
2186
+ }, De = m({
2152
2187
  modal: {
2153
2188
  value: {
2154
2189
  paddingInline: "xs",
2155
2190
  paddingBlock: "sm",
2156
- borderRadius: "sm",
2191
+ borderRadius: "xs",
2157
2192
  bg: "bg",
2158
2193
  border: "1px solid",
2159
- borderColor: "border",
2160
- boxShadow: "mid"
2161
- }
2162
- }
2163
- }), ye = {
2164
- "low-light": {
2165
- value: "0px 2px 4px 0px rgba(0, 0, 0, 0.10)"
2166
- },
2167
- "mid-light": {
2168
- value: "0px 6px 12px 0px rgba(0, 0, 0, 0.10)"
2169
- },
2170
- "high-light": {
2171
- value: "0px 12px 24px 0px rgba(0, 0, 0, 0.10)"
2172
- },
2173
- "low-dark": {
2174
- value: "0px 2px 4px 0px rgba(0, 0, 0, 0.45)"
2175
- },
2176
- "mid-dark": {
2177
- value: "0px 6px 12px 0px rgba(0, 0, 0, 0.5)"
2178
- },
2179
- "high-dark": {
2180
- value: "0px 12px 24px 0px rgba(0, 0, 0, 0.55)"
2181
- },
2182
- "desktop-icon-label-text-light": {
2183
- value: "0px 1px 3px rgba(15, 23, 42, 0.45)"
2184
- },
2185
- "desktop-icon-label-text-dark": {
2186
- value: "0px 1px 3px rgba(8, 15, 35, 0.75)"
2187
- },
2188
- "desktop-icon-label-text-selected-light": {
2189
- value: "0px 1px 3px rgba(37, 99, 235, 0.55)"
2190
- },
2191
- "desktop-icon-label-text-selected-dark": {
2192
- value: "0px 2px 4px rgba(37, 99, 235, 0.75)"
2193
- }
2194
- }, Se = {
2195
- low: {
2196
- value: {
2197
- _light: "{shadows.low-light}",
2198
- _dark: "{shadows.low-dark}"
2199
- }
2200
- },
2201
- mid: {
2202
- value: {
2203
- _light: "{shadows.mid-light}",
2204
- _dark: "{shadows.mid-dark}"
2205
- }
2206
- },
2207
- high: {
2208
- value: {
2209
- _light: "{shadows.high-light}",
2210
- _dark: "{shadows.high-dark}"
2211
- }
2212
- },
2213
- "desktop-icon-label": {
2214
- value: {
2215
- _light: "{shadows.desktop-icon-label-text-light}",
2216
- _dark: "{shadows.desktop-icon-label-text-dark}"
2217
- }
2218
- },
2219
- "desktop-icon-label-selected": {
2220
- value: {
2221
- _light: "{shadows.desktop-icon-label-text-selected-light}",
2222
- _dark: "{shadows.desktop-icon-label-text-selected-dark}"
2194
+ borderColor: "border"
2223
2195
  }
2224
2196
  }
2225
- }, Ce = g({
2197
+ }), we = h({
2226
2198
  brand: {
2227
2199
  value: {
2228
2200
  fontFamily: "brand",
@@ -2455,54 +2427,52 @@ const S = {
2455
2427
  letterSpacing: "0.14px"
2456
2428
  }
2457
2429
  }
2458
- }), Ee = b({
2459
- globalCss: A,
2430
+ }), Be = p({
2431
+ globalCss: z,
2460
2432
  theme: {
2461
2433
  breakpoints: {
2462
2434
  "3xl": "2560px",
2463
2435
  "4xl": "3840px"
2464
2436
  },
2465
- textStyles: Ce,
2466
- layerStyles: xe,
2437
+ textStyles: we,
2438
+ layerStyles: De,
2467
2439
  recipes: {
2468
- button: N,
2469
- divider: Z,
2470
- input: re,
2471
- kbd: ae,
2472
- skeleton: ne,
2473
- textarea: ce
2440
+ button: ee,
2441
+ divider: oe,
2442
+ input: ie,
2443
+ kbd: se,
2444
+ skeleton: ge,
2445
+ textarea: ve
2474
2446
  },
2475
2447
  tokens: {
2476
- colors: $,
2477
- fonts: j,
2478
- fontSizes: Y,
2479
- fontWeights: q,
2480
- radii: J,
2481
- shadows: ye,
2482
- spacing: G
2448
+ colors: q,
2449
+ fonts: G,
2450
+ fontSizes: K,
2451
+ fontWeights: J,
2452
+ radii: Q,
2453
+ spacing: N
2483
2454
  },
2484
2455
  semanticTokens: {
2485
- colors: ke,
2486
- borders: be,
2487
- shadows: Se
2456
+ colors: Ae,
2457
+ borders: _e
2488
2458
  },
2489
2459
  slotRecipes: {
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
2460
+ alert: Z,
2461
+ drawer: re,
2462
+ tooltip: me,
2463
+ popover: ue,
2464
+ menu: ne,
2465
+ editable: te,
2466
+ form: ae,
2467
+ dialog: le,
2468
+ progressCircle: ce,
2469
+ tabs: be
2500
2470
  }
2501
2471
  }
2502
- }), ze = v(m, Ee);
2472
+ }), Le = f(fe, Be);
2503
2473
  export {
2504
- Be as a,
2505
- w as c,
2506
- ze as t
2474
+ He as a,
2475
+ B as c,
2476
+ Le as t
2507
2477
  };
2508
- //# sourceMappingURL=theme-D2LYEa0j.js.map
2478
+ //# sourceMappingURL=theme-25P7ij4C.js.map