@pstdio/ui 0.0.4 → 0.1.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 (47) hide show
  1. package/dist/chat-ui.js +1212 -193
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/chat-ui/index.d.ts +8 -5
  4. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
  5. package/dist/components/documentation/docs-changelog.d.ts +20 -0
  6. package/dist/components/documentation/docs-changelog.stories.d.ts +15 -0
  7. package/dist/components/documentation/docs-outline.d.ts +13 -0
  8. package/dist/components/documentation/docs-outline.stories.d.ts +16 -0
  9. package/dist/components/documentation/docs-pagination.d.ts +10 -0
  10. package/dist/components/documentation/docs-pagination.stories.d.ts +14 -0
  11. package/dist/components/documentation/docs-sidebar.d.ts +14 -0
  12. package/dist/components/documentation/docs-sidebar.stories.d.ts +7 -0
  13. package/dist/components/folder-picker-dialog.d.ts +25 -0
  14. package/dist/components/folder-picker-dialog.stories.d.ts +11 -0
  15. package/dist/components/panel-menu.d.ts +2 -0
  16. package/dist/components/panel-menu.stories.d.ts +1 -0
  17. package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +1 -0
  18. package/dist/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +1 -0
  19. package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
  20. package/dist/components/session-indicator.d.ts +1 -1
  21. package/dist/components/switch.d.ts +15 -0
  22. package/dist/components/switch.stories.d.ts +16 -0
  23. package/dist/components/{ticket-card.d.ts → tickets/ticket-card.d.ts} +2 -1
  24. package/dist/components/tickets/ticket-list.d.ts +23 -0
  25. package/dist/components/tickets/ticket-list.stories.d.ts +10 -0
  26. package/dist/empty-state-Bu1ocnPz.js +70 -0
  27. package/dist/empty-state-Bu1ocnPz.js.map +1 -0
  28. package/dist/index.d.ts +27 -0
  29. package/dist/index.js +1148 -305
  30. package/dist/index.js.map +1 -1
  31. package/dist/{rich-message-CiA3ripk.js → rich-message-CNDoACE7.js} +8 -7
  32. package/dist/{rich-message-CiA3ripk.js.map → rich-message-CNDoACE7.js.map} +1 -1
  33. package/dist/rich-text.js +267 -262
  34. package/dist/rich-text.js.map +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/theme/primitives/colors.d.ts +12 -28
  37. package/dist/theme/recipes/menu.d.ts +1 -1
  38. package/dist/theme/tokens/borders.d.ts +6 -6
  39. package/dist/theme/tokens/colors.d.ts +180 -0
  40. package/dist/{theme-9E0MRtZk.js → theme-C7CIuIPZ.js} +197 -115
  41. package/dist/theme-C7CIuIPZ.js.map +1 -0
  42. package/dist/theme.js +1 -1
  43. package/package.json +6 -8
  44. package/dist/theme-9E0MRtZk.js.map +0 -1
  45. /package/dist/components/{ticket-board.d.ts → tickets/ticket-board.d.ts} +0 -0
  46. /package/dist/components/{ticket-board.stories.d.ts → tickets/ticket-board.stories.d.ts} +0 -0
  47. /package/dist/components/{ticket-card.stories.d.ts → tickets/ticket-card.stories.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { defineSlotRecipe as l, defineRecipe as a, defineLayerStyles as r, defineTextStyles as s, defineConfig as t, createSystem as i, defaultConfig as u } from "@chakra-ui/react";
2
- import { alertAnatomy as d, dialogAnatomy as c, drawerAnatomy as n, fieldsetAnatomy as b, menuAnatomy as v, popoverAnatomy as g, tooltipAnatomy as p } from "@chakra-ui/react/anatomy";
2
+ import { alertAnatomy as d, dialogAnatomy as b, drawerAnatomy as c, fieldsetAnatomy as n, menuAnatomy as v, popoverAnatomy as g, tooltipAnatomy as p } from "@chakra-ui/react/anatomy";
3
3
  import { progressCircleSlotRecipe as o } from "@chakra-ui/react/theme";
4
4
  const m = {
5
5
  "*::selection": {
@@ -53,6 +53,9 @@ const m = {
53
53
  50: {
54
54
  value: "#FFFFFF"
55
55
  },
56
+ 75: {
57
+ value: "#FCFCFC"
58
+ },
56
59
  100: {
57
60
  value: "#F9F9F9"
58
61
  },
@@ -74,6 +77,9 @@ const m = {
74
77
  700: {
75
78
  value: "#444750"
76
79
  },
80
+ 750: {
81
+ value: "#33363E"
82
+ },
77
83
  800: {
78
84
  value: "#22252C"
79
85
  },
@@ -86,7 +92,7 @@ const m = {
86
92
  1e3: {
87
93
  value: "#000000"
88
94
  }
89
- }, F = {
95
+ }, k = {
90
96
  DEFAULT: {
91
97
  value: "#5098FF"
92
98
  },
@@ -120,7 +126,7 @@ const m = {
120
126
  900: {
121
127
  value: "#002862"
122
128
  }
123
- }, k = {
129
+ }, x = {
124
130
  DEFAULT: {
125
131
  value: "#3A4BE4"
126
132
  },
@@ -157,7 +163,7 @@ const m = {
157
163
  900: {
158
164
  value: "#0A125A"
159
165
  }
160
- }, x = {
166
+ }, F = {
161
167
  DEFAULT: {
162
168
  value: "#E054EC"
163
169
  },
@@ -297,19 +303,6 @@ const m = {
297
303
  value: "#52370F"
298
304
  }
299
305
  }, E = {
300
- DEFAULT: {
301
- value: "#FFE2BC"
302
- },
303
- light: {
304
- value: "#FFF1DE"
305
- },
306
- medium: {
307
- value: "#FFE2BC"
308
- },
309
- dark: {
310
- value: "#FFD6A8"
311
- }
312
- }, C = {
313
306
  DEFAULT: {
314
307
  value: "#FFD643"
315
308
  },
@@ -343,7 +336,7 @@ const m = {
343
336
  900: {
344
337
  value: "#644E00"
345
338
  }
346
- }, S = {
339
+ }, C = {
347
340
  DEFAULT: {
348
341
  value: "#2DD665"
349
342
  },
@@ -377,7 +370,7 @@ const m = {
377
370
  900: {
378
371
  value: "#003110"
379
372
  }
380
- }, A = {
373
+ }, S = {
381
374
  DEFAULT: {
382
375
  value: "#3EECC4"
383
376
  },
@@ -411,7 +404,7 @@ const m = {
411
404
  900: {
412
405
  value: "#024F3D"
413
406
  }
414
- }, D = {
407
+ }, A = {
415
408
  DEFAULT: {
416
409
  value: "#5CDCFF"
417
410
  },
@@ -445,7 +438,7 @@ const m = {
445
438
  900: {
446
439
  value: "#005B73"
447
440
  }
448
- }, w = {
441
+ }, D = {
449
442
  DEFAULT: {
450
443
  value: "#8B47FF"
451
444
  },
@@ -479,7 +472,7 @@ const m = {
479
472
  900: {
480
473
  value: "#1E0050"
481
474
  }
482
- }, z = {
475
+ }, w = {
483
476
  DEFAULT: {
484
477
  value: "#F4F2EC"
485
478
  },
@@ -513,22 +506,21 @@ const m = {
513
506
  900: {
514
507
  value: "#E8CECE"
515
508
  }
516
- }, B = {
517
- sand: z,
509
+ }, z = {
510
+ sand: w,
518
511
  blacks: h,
519
- blue: F,
520
- sapphire: k,
521
- pink: x,
512
+ blue: k,
513
+ sapphire: x,
514
+ pink: F,
522
515
  peach: f,
523
516
  red: y,
524
- accentPrimary: E,
525
517
  orange: _,
526
- yellow: C,
527
- green: S,
528
- teal: A,
529
- cyan: D,
530
- purple: w
531
- }, L = {
518
+ yellow: E,
519
+ green: C,
520
+ teal: S,
521
+ cyan: A,
522
+ purple: D
523
+ }, B = {
532
524
  display: {
533
525
  value: "'Playfair Display', serif"
534
526
  },
@@ -544,7 +536,7 @@ const m = {
544
536
  body: {
545
537
  value: "Inter, sans-serif"
546
538
  }
547
- }, R = {
539
+ }, L = {
548
540
  xs: {
549
541
  value: "0.625rem"
550
542
  },
@@ -609,7 +601,7 @@ const m = {
609
601
  value: "1.25rem"
610
602
  }
611
603
  // 20px
612
- }, W = {
604
+ }, R = {
613
605
  regular: {
614
606
  value: 400
615
607
  },
@@ -649,7 +641,7 @@ const m = {
649
641
  900: "4.5rem",
650
642
  // 96px
651
643
  1600: "8rem"
652
- }, H = {
644
+ }, W = {
653
645
  none: {
654
646
  value: "0"
655
647
  },
@@ -689,7 +681,7 @@ const m = {
689
681
  "5xl": {
690
682
  value: e[1600]
691
683
  }
692
- }, T = {
684
+ }, H = {
693
685
  none: {
694
686
  value: "0"
695
687
  },
@@ -714,7 +706,7 @@ const m = {
714
706
  full: {
715
707
  value: "100%"
716
708
  }
717
- }, U = l({
709
+ }, T = l({
718
710
  slots: d.keys(),
719
711
  base: {
720
712
  root: {
@@ -722,7 +714,7 @@ const m = {
722
714
  pb: "xs"
723
715
  }
724
716
  }
725
- }), M = a({
717
+ }), U = a({
726
718
  base: {
727
719
  borderRadius: "sm",
728
720
  transition: "all 0.1s ease-in-out",
@@ -881,8 +873,8 @@ const m = {
881
873
  size: "md",
882
874
  variant: "outline"
883
875
  }
884
- }), P = l({
885
- slots: c.keys(),
876
+ }), M = l({
877
+ slots: b.keys(),
886
878
  base: {
887
879
  content: {
888
880
  bg: "bg"
@@ -893,7 +885,7 @@ const m = {
893
885
  borderColor: "border"
894
886
  }
895
887
  }), X = l({
896
- slots: n.keys(),
888
+ slots: c.keys(),
897
889
  base: {
898
890
  header: {
899
891
  fontWeight: "medium",
@@ -953,14 +945,14 @@ const m = {
953
945
  }
954
946
  }
955
947
  }
956
- }), O = l({
957
- slots: b.keys(),
948
+ }), P = l({
949
+ slots: n.keys(),
958
950
  base: {
959
951
  legend: {
960
952
  mb: "2xs"
961
953
  }
962
954
  }
963
- }), $ = a({
955
+ }), O = a({
964
956
  base: {
965
957
  px: "sm",
966
958
  borderRadius: "sm",
@@ -992,7 +984,7 @@ const m = {
992
984
  }
993
985
  }
994
986
  }
995
- }), q = l({
987
+ }), $ = l({
996
988
  slots: v.keys(),
997
989
  base: {
998
990
  itemGroupLabel: {
@@ -1002,19 +994,19 @@ const m = {
1002
994
  color: "fg.muted"
1003
995
  },
1004
996
  item: {
1005
- bg: "bg",
1006
- color: "fg",
997
+ bg: "bg.menu-item.default",
998
+ color: "fg.menu-item.default",
1007
999
  textStyle: "label/M/regular",
1008
1000
  px: "0.5rem",
1009
1001
  h: "2.25rem",
1010
1002
  _hover: {
1011
- bg: "bg.muted"
1003
+ bg: "bg.menu-item.hover"
1012
1004
  },
1013
1005
  _focus: {
1014
- bg: "bg.muted"
1006
+ bg: "bg.menu-item.focus"
1015
1007
  },
1016
1008
  _active: {
1017
- bg: "bg.emphasized"
1009
+ bg: "bg.menu-item.selected"
1018
1010
  }
1019
1011
  },
1020
1012
  content: {
@@ -1032,7 +1024,7 @@ const m = {
1032
1024
  textStyle: "label/M/regular"
1033
1025
  }
1034
1026
  }
1035
- }), G = l({
1027
+ }), q = l({
1036
1028
  slots: g.keys(),
1037
1029
  base: {
1038
1030
  positioner: {
@@ -1084,12 +1076,12 @@ const m = {
1084
1076
  }
1085
1077
  }
1086
1078
  }
1087
- }), Y = o.variants?.size ?? {}, j = {
1079
+ }), G = o.variants?.size ?? {}, Y = {
1088
1080
  ...o,
1089
1081
  variants: {
1090
1082
  ...o.variants,
1091
1083
  size: {
1092
- ...Y,
1084
+ ...G,
1093
1085
  "2xs": {
1094
1086
  circle: {
1095
1087
  "--size": "14px",
@@ -1101,12 +1093,12 @@ const m = {
1101
1093
  }
1102
1094
  }
1103
1095
  }
1104
- }, J = a({
1096
+ }, j = a({
1105
1097
  base: {
1106
1098
  "--start-color": "fg",
1107
1099
  "--end-color": "fg.muted"
1108
1100
  }
1109
- }), K = a({
1101
+ }), J = a({
1110
1102
  base: {
1111
1103
  paddingX: "sm",
1112
1104
  paddingY: "xs",
@@ -1132,7 +1124,7 @@ const m = {
1132
1124
  color: "fg.subtle"
1133
1125
  }
1134
1126
  }
1135
- }), N = l({
1127
+ }), K = l({
1136
1128
  slots: p.keys(),
1137
1129
  base: {
1138
1130
  content: {
@@ -1143,44 +1135,44 @@ const m = {
1143
1135
  bg: "bg.inverted"
1144
1136
  }
1145
1137
  }
1146
- }), Q = {
1147
- accent: {
1148
- value: {
1149
- base: "1px solid {colors.blue.700}",
1150
- _dark: "1px solid {colors.blue.700}"
1151
- }
1152
- },
1153
- "accent-light": {
1154
- value: {
1155
- base: "1px solid {colors.blue.200}",
1156
- _dark: "1px solid {colors.blue.900}"
1157
- }
1158
- },
1159
- primary: {
1138
+ }), N = {
1139
+ DEFAULT: {
1160
1140
  value: {
1161
1141
  base: "1px solid {colors.blacks.400}",
1162
1142
  _dark: "1px solid {colors.blacks.600}"
1163
1143
  }
1164
1144
  },
1165
- secondary: {
1145
+ muted: {
1166
1146
  value: {
1167
1147
  base: "1px solid {colors.blacks.300}",
1168
- _dark: "1px solid {colors.blacks.800}"
1148
+ _dark: "1px solid {colors.blacks.700}"
1169
1149
  }
1170
1150
  },
1171
- tertiary: {
1151
+ subtle: {
1172
1152
  value: {
1173
1153
  base: "1px solid {colors.blacks.300}",
1174
- _dark: "1px solid {colors.blacks.800}"
1154
+ _dark: "1px solid {colors.blacks.50}"
1175
1155
  }
1176
1156
  },
1177
- inverse: {
1157
+ inverted: {
1178
1158
  value: {
1179
1159
  base: "1px solid {colors.blacks.400}",
1180
1160
  _dark: "1px solid {colors.blacks.600}"
1181
1161
  }
1162
+ },
1163
+ accent: {
1164
+ value: {
1165
+ base: "1px solid {colors.blue.700}",
1166
+ _dark: "1px solid {colors.blue.200}"
1167
+ }
1168
+ },
1169
+ "accent-light": {
1170
+ value: {
1171
+ base: "1px solid {colors.blue.200}",
1172
+ _dark: "1px solid {colors.blue.900}"
1173
+ }
1182
1174
  }
1183
- }, Z = {
1175
+ }, Q = {
1184
1176
  DEFAULT: {
1185
1177
  value: {
1186
1178
  base: "{colors.blacks.800}",
@@ -1242,8 +1234,29 @@ const m = {
1242
1234
  base: "{colors.sapphire.900}",
1243
1235
  _dark: "{colors.sapphire.800}"
1244
1236
  }
1237
+ },
1238
+ button: {
1239
+ primary: {
1240
+ default: {
1241
+ value: {
1242
+ base: "{colors.blacks.200}",
1243
+ _dark: "{colors.blacks.200}"
1244
+ }
1245
+ },
1246
+ disabled: {
1247
+ value: "{colors.fg.subtle}"
1248
+ }
1249
+ }
1250
+ },
1251
+ "menu-item": {
1252
+ default: {
1253
+ value: "{colors.fg}"
1254
+ },
1255
+ secondary: {
1256
+ value: "{colors.fg.muted}"
1257
+ }
1245
1258
  }
1246
- }, ee = {
1259
+ }, Z = {
1247
1260
  DEFAULT: {
1248
1261
  value: {
1249
1262
  base: "{colors.blacks.50}",
@@ -1258,8 +1271,8 @@ const m = {
1258
1271
  },
1259
1272
  subtle: {
1260
1273
  value: {
1261
- base: "{colors.blacks.50}",
1262
- _dark: "{colors.blacks.600}"
1274
+ base: "{colors.blacks.75}",
1275
+ _dark: "{colors.blacks.850}"
1263
1276
  }
1264
1277
  },
1265
1278
  code: {
@@ -1298,6 +1311,36 @@ const m = {
1298
1311
  _dark: "{colors.blacks.50}"
1299
1312
  }
1300
1313
  },
1314
+ button: {
1315
+ primary: {
1316
+ default: {
1317
+ value: "{colors.bg.accent-primary.default}"
1318
+ },
1319
+ hover: {
1320
+ value: "{colors.bg.accent-primary.hover}"
1321
+ },
1322
+ pressed: {
1323
+ value: "{colors.bg.accent-primary.pressed}"
1324
+ },
1325
+ disabled: {
1326
+ value: "{colors.bg.muted}"
1327
+ }
1328
+ }
1329
+ },
1330
+ "menu-item": {
1331
+ default: {
1332
+ value: "{colors.bg}"
1333
+ },
1334
+ hover: {
1335
+ value: "{colors.bg.muted}"
1336
+ },
1337
+ focus: {
1338
+ value: "{colors.bg.muted}"
1339
+ },
1340
+ selected: {
1341
+ value: "{colors.bg.muted}"
1342
+ }
1343
+ },
1301
1344
  display: {
1302
1345
  "very-light": {
1303
1346
  value: {
@@ -1307,28 +1350,46 @@ const m = {
1307
1350
  }
1308
1351
  },
1309
1352
  "accent-primary": {
1353
+ default: {
1354
+ value: {
1355
+ base: "{colors.orange.100}",
1356
+ _dark: "{colors.orange.300}"
1357
+ }
1358
+ },
1359
+ hover: {
1360
+ value: {
1361
+ base: "{colors.orange.200}",
1362
+ _dark: "{colors.orange.200}"
1363
+ }
1364
+ },
1365
+ pressed: {
1366
+ value: {
1367
+ base: "{colors.orange.300}",
1368
+ _dark: "{colors.orange.100}"
1369
+ }
1370
+ },
1310
1371
  "very-light": {
1311
1372
  value: {
1312
- base: "{colors.accentPrimary.light}",
1373
+ base: "{colors.orange.100}",
1313
1374
  _dark: "{colors.blacks.1000}"
1314
1375
  }
1315
1376
  },
1316
1377
  light: {
1317
1378
  value: {
1318
- base: "{colors.accentPrimary.light}",
1319
- _dark: "{colors.accentPrimary.light}"
1379
+ base: "{colors.orange.100}",
1380
+ _dark: "{colors.orange.300}"
1320
1381
  }
1321
1382
  },
1322
1383
  medium: {
1323
1384
  value: {
1324
- base: "{colors.accentPrimary.medium}",
1325
- _dark: "{colors.accentPrimary.medium}"
1385
+ base: "{colors.orange.200}",
1386
+ _dark: "{colors.orange.200}"
1326
1387
  }
1327
1388
  },
1328
1389
  dark: {
1329
1390
  value: {
1330
- base: "{colors.accentPrimary.dark}",
1331
- _dark: "{colors.accentPrimary.dark}"
1391
+ base: "{colors.orange.300}",
1392
+ _dark: "{colors.orange.100}"
1332
1393
  }
1333
1394
  }
1334
1395
  },
@@ -1424,7 +1485,7 @@ const m = {
1424
1485
  }
1425
1486
  }
1426
1487
  }
1427
- }, le = {
1488
+ }, ee = {
1428
1489
  DEFAULT: {
1429
1490
  value: {
1430
1491
  base: "{colors.blacks.400}",
@@ -1454,15 +1515,26 @@ const m = {
1454
1515
  base: "{colors.blue.200}",
1455
1516
  _dark: "{colors.blue.900}"
1456
1517
  }
1518
+ },
1519
+ accent: {
1520
+ value: {
1521
+ base: "{colors.blue.700}",
1522
+ _dark: "{colors.blue.200}"
1523
+ }
1524
+ },
1525
+ button: {
1526
+ primary: {
1527
+ value: "{colors.border.muted}"
1528
+ }
1457
1529
  }
1458
- }, ae = {
1530
+ }, le = {
1459
1531
  border: {
1460
1532
  value: {
1461
1533
  base: "{colors.blue.700}",
1462
1534
  _dark: "{colors.blue.200}"
1463
1535
  }
1464
1536
  }
1465
- }, oe = {
1537
+ }, ae = {
1466
1538
  text: {
1467
1539
  primary: {
1468
1540
  value: {
@@ -1623,12 +1695,22 @@ const m = {
1623
1695
  }
1624
1696
  }
1625
1697
  }
1698
+ }, oe = {
1699
+ selectable: {
1700
+ primary: {
1701
+ value: {
1702
+ base: "{colors.blacks.800}",
1703
+ _dark: "{colors.blacks.800}"
1704
+ }
1705
+ }
1706
+ }
1626
1707
  }, re = {
1627
- fg: Z,
1628
- bg: ee,
1629
- border: le,
1630
- blue: ae,
1631
- vis: oe
1708
+ fg: Q,
1709
+ bg: Z,
1710
+ border: ee,
1711
+ blue: le,
1712
+ vis: ae,
1713
+ text: oe
1632
1714
  }, se = r({
1633
1715
  modal: {
1634
1716
  value: {
@@ -1946,40 +2028,40 @@ const m = {
1946
2028
  textStyles: ue,
1947
2029
  layerStyles: se,
1948
2030
  recipes: {
1949
- button: M,
2031
+ button: U,
1950
2032
  divider: V,
1951
- input: $,
1952
- skeleton: J,
1953
- textarea: K
2033
+ input: O,
2034
+ skeleton: j,
2035
+ textarea: J
1954
2036
  },
1955
2037
  tokens: {
1956
- colors: B,
1957
- fonts: L,
1958
- fontSizes: R,
1959
- fontWeights: W,
1960
- radii: T,
2038
+ colors: z,
2039
+ fonts: B,
2040
+ fontSizes: L,
2041
+ fontWeights: R,
2042
+ radii: H,
1961
2043
  shadows: te,
1962
- spacing: H
2044
+ spacing: W
1963
2045
  },
1964
2046
  semanticTokens: {
1965
2047
  colors: re,
1966
- borders: Q,
2048
+ borders: N,
1967
2049
  shadows: ie
1968
2050
  },
1969
2051
  slotRecipes: {
1970
- alert: U,
2052
+ alert: T,
1971
2053
  drawer: X,
1972
- tooltip: N,
1973
- popover: G,
1974
- menu: q,
2054
+ tooltip: K,
2055
+ popover: q,
2056
+ menu: $,
1975
2057
  editable: I,
1976
- form: O,
1977
- dialog: P,
1978
- progressCircle: j
2058
+ form: P,
2059
+ dialog: M,
2060
+ progressCircle: Y
1979
2061
  }
1980
2062
  }
1981
2063
  }), ve = i(u, de);
1982
2064
  export {
1983
2065
  ve as t
1984
2066
  };
1985
- //# sourceMappingURL=theme-9E0MRtZk.js.map
2067
+ //# sourceMappingURL=theme-C7CIuIPZ.js.map