@pstdio/ui 0.24.2 → 0.26.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 (109) hide show
  1. package/README.md +8 -1
  2. package/dist/{MermaidComponent-DSvPk-J8.js → MermaidComponent-X__B6qib.js} +3 -3
  3. package/dist/{MermaidComponent-DSvPk-J8.js.map → MermaidComponent-X__B6qib.js.map} +1 -1
  4. package/dist/activity-timeline-BynMjXSB.js +283 -0
  5. package/dist/activity-timeline-BynMjXSB.js.map +1 -0
  6. package/dist/alert-ubcrW24X.js +33 -0
  7. package/dist/alert-ubcrW24X.js.map +1 -0
  8. package/dist/browser-storage-BinyFNJX.js +40 -0
  9. package/dist/browser-storage-BinyFNJX.js.map +1 -0
  10. package/dist/chat-ui.js +1515 -1428
  11. package/dist/chat-ui.js.map +1 -1
  12. package/dist/components/activity/activity-comment.d.ts +10 -2
  13. package/dist/components/chat-ui/components/chat-history-story.d.ts +14 -0
  14. package/dist/components/chat-ui/components/chat-input-history.d.ts +6 -0
  15. package/dist/components/chat-ui/components/chat-input.d.ts +2 -0
  16. package/dist/components/chat-ui/components/chat-panel-composer.d.ts +49 -0
  17. package/dist/components/chat-ui/components/use-chat-input-history.d.ts +16 -0
  18. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  19. package/dist/components/rich-text/index.d.ts +2 -0
  20. package/dist/components/rich-text/markdown-editor/markdown-editor-scrolling.play.d.ts +4 -0
  21. package/dist/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +3 -1
  22. package/dist/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +2 -0
  23. package/dist/components/rich-text/prompt-input/prompt-input.d.ts +2 -0
  24. package/dist/components/rich-text/resource-activity-feed/resource-activity-feed.d.ts +58 -0
  25. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +1 -0
  26. package/dist/data-table.js +6 -6
  27. package/dist/diff.js +524 -522
  28. package/dist/diff.js.map +1 -1
  29. package/dist/{edit-mode-data-table-2E4GSOou.js → edit-mode-data-table-Nfmfi7bz.js} +23 -22
  30. package/dist/{edit-mode-data-table-2E4GSOou.js.map → edit-mode-data-table-Nfmfi7bz.js.map} +1 -1
  31. package/dist/index.d.ts +0 -1
  32. package/dist/index.js +1619 -1852
  33. package/dist/index.js.map +1 -1
  34. package/dist/{kanban-renderer-toolbar-Dcbxujbk.js → kanban-renderer-toolbar-Buek4icz.js} +34 -33
  35. package/dist/{kanban-renderer-toolbar-Dcbxujbk.js.map → kanban-renderer-toolbar-Buek4icz.js.map} +1 -1
  36. package/dist/kanban-renderer.js +31 -30
  37. package/dist/kanban-renderer.js.map +1 -1
  38. package/dist/lazy-markdown-editor-PzIBc9-l.js +42 -0
  39. package/dist/lazy-markdown-editor-PzIBc9-l.js.map +1 -0
  40. package/dist/{list-row-BDoV_iMV.js → list-row-DHzRa9-O.js} +2 -2
  41. package/dist/{list-row-BDoV_iMV.js.map → list-row-DHzRa9-O.js.map} +1 -1
  42. package/dist/{markdown-Cli3KGu9.js → markdown-BCfPxNpb.js} +322 -302
  43. package/dist/markdown-BCfPxNpb.js.map +1 -0
  44. package/dist/markdown-editor-CsJ4KNGu.js +1034 -0
  45. package/dist/markdown-editor-CsJ4KNGu.js.map +1 -0
  46. package/dist/{mermaid-renderer-CVnuKs-A.js → mermaid-renderer-D0YP0FmJ.js} +3 -3
  47. package/dist/{mermaid-renderer-CVnuKs-A.js.map → mermaid-renderer-D0YP0FmJ.js.map} +1 -1
  48. package/dist/mermaid.js +1 -1
  49. package/dist/{param-editor-CaRflJ3e.js → param-editor-CFM2Nf3l.js} +2 -2
  50. package/dist/{param-editor-CaRflJ3e.js.map → param-editor-CFM2Nf3l.js.map} +1 -1
  51. package/dist/param-editor-field-Bj-AGUY6.js +1728 -0
  52. package/dist/param-editor-field-Bj-AGUY6.js.map +1 -0
  53. package/dist/param-editor.d.ts +2 -0
  54. package/dist/param-editor.js +47 -0
  55. package/dist/param-editor.js.map +1 -0
  56. package/dist/prism-n5gcERyD.js +202 -0
  57. package/dist/prism-n5gcERyD.js.map +1 -0
  58. package/dist/radio-BfjibByI.js +51 -0
  59. package/dist/radio-BfjibByI.js.map +1 -0
  60. package/dist/rich-message-q6Y6QJOq.js +633 -0
  61. package/dist/rich-message-q6Y6QJOq.js.map +1 -0
  62. package/dist/rich-text.js +342 -177
  63. package/dist/rich-text.js.map +1 -1
  64. package/dist/scroll-area-BMbg1WcD.js +91 -0
  65. package/dist/scroll-area-BMbg1WcD.js.map +1 -0
  66. package/dist/slider-DBHjdxsU.js +1092 -0
  67. package/dist/slider-DBHjdxsU.js.map +1 -0
  68. package/dist/style.css +1 -1
  69. package/dist/terminal.js +96 -93
  70. package/dist/terminal.js.map +1 -1
  71. package/dist/theme/primitives/colors.d.ts +0 -23
  72. package/dist/theme/recipes/activity-comment.d.ts +36 -0
  73. package/dist/theme/recipes/alert.d.ts +1 -1
  74. package/dist/theme/recipes/dialog.d.ts +1 -1
  75. package/dist/theme/recipes/drawer.d.ts +1 -1
  76. package/dist/theme/recipes/menu.d.ts +1 -1
  77. package/dist/theme/recipes/popover.d.ts +1 -1
  78. package/dist/theme/recipes/progress-circle.d.ts +3 -3
  79. package/dist/theme/recipes/switch.d.ts +1 -1
  80. package/dist/theme/recipes/timeline.d.ts +10 -1
  81. package/dist/theme/recipes/tooltip.d.ts +1 -1
  82. package/dist/theme/recipes/window-title-bar.d.ts +1 -1
  83. package/dist/{theme-B5OVwYEU.js → theme-AzJH4Om3.js} +127 -808
  84. package/dist/theme-AzJH4Om3.js.map +1 -0
  85. package/dist/{theme-preference-Bpobguh4.js → theme-preference-DxGW1qg-.js} +2 -2
  86. package/dist/{theme-preference-Bpobguh4.js.map → theme-preference-DxGW1qg-.js.map} +1 -1
  87. package/dist/theme.js +1 -1
  88. package/dist/{tree-list-CZvcg3_6.js → tree-list-CPjbGTvs.js} +2 -2
  89. package/dist/{tree-list-CZvcg3_6.js.map → tree-list-CPjbGTvs.js.map} +1 -1
  90. package/dist/{workspace-badge-BR_GgsAG.js → workspace-badge-CuOcmnZc.js} +2 -2
  91. package/dist/{workspace-badge-BR_GgsAG.js.map → workspace-badge-CuOcmnZc.js.map} +1 -1
  92. package/package.json +7 -2
  93. package/dist/browser-storage-DPtOQJx0.js +0 -127
  94. package/dist/browser-storage-DPtOQJx0.js.map +0 -1
  95. package/dist/lazy-markdown-editor-DSlelhHV.js +0 -235
  96. package/dist/lazy-markdown-editor-DSlelhHV.js.map +0 -1
  97. package/dist/markdown-Cli3KGu9.js.map +0 -1
  98. package/dist/markdown-editor-BHoRATej.js +0 -1019
  99. package/dist/markdown-editor-BHoRATej.js.map +0 -1
  100. package/dist/param-editor-field-DVQlXbid.js +0 -2810
  101. package/dist/param-editor-field-DVQlXbid.js.map +0 -1
  102. package/dist/radio-cLMEBBZk.js +0 -76
  103. package/dist/radio-cLMEBBZk.js.map +0 -1
  104. package/dist/rich-message-gWYlm8Ji.js +0 -628
  105. package/dist/rich-message-gWYlm8Ji.js.map +0 -1
  106. package/dist/theme/recipes/landing-story.d.ts +0 -10
  107. package/dist/theme/recipes/landing-tool-demo.d.ts +0 -1
  108. package/dist/theme/recipes/landing.d.ts +0 -23
  109. package/dist/theme-B5OVwYEU.js.map +0 -1
@@ -0,0 +1,1092 @@
1
+ import { jsx as a, jsxs as S } from "react/jsx-runtime";
2
+ import { c as z } from "react/compiler-runtime";
3
+ import { Text as $, Popover as y, chakra as L, Image as _, IconButton as B, Badge as R, Slider as h } from "@chakra-ui/react";
4
+ import { X as T, Ban as I, Flag as A, Bug as G, Sparkles as F, BookOpen as H, Wrench as P, Zap as U, Feather as W, Scale as E, Layers as j, Star as O, Flame as M, Lightbulb as Y, Shield as Z, Eye as K, Timer as N, Tag as X, Code as V, Rocket as D, Heart as J, Bookmark as Q, Target as nn, Bell as en, Hash as on, Ticket as tn, GitBranch as cn, Bot as rn, Puzzle as an, Workflow as ln, Kanban as bn, MessageSquare as fn, Folder as sn, FileText as dn, History as un, Play as mn, Terminal as hn, Cpu as gn, Users as pn, Component as vn, SquareKanban as kn, GitCommitHorizontal as xn, Inbox as yn, ListChecks as wn, Archive as Sn, Link as zn, Settings as Cn, Circle as $n } from "lucide-react";
5
+ import * as Ln from "react";
6
+ import { useState as Rn, useEffect as qn } from "react";
7
+ const _n = (e) => e.type.startsWith("image/"), Bn = (e) => e < 1024 ? `${e.toString()} B` : e < 1024 * 1024 ? `${Math.round(e / 1024).toString()} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`, Yn = (e) => {
8
+ const n = z(22), {
9
+ file: t,
10
+ removeLabel: o,
11
+ disabled: c,
12
+ onRemove: r
13
+ } = e, [i, b] = Rn(null);
14
+ let l, g;
15
+ n[0] !== t ? (l = () => {
16
+ if (!_n(t))
17
+ return;
18
+ const C = URL.createObjectURL(t);
19
+ return b(C), () => URL.revokeObjectURL(C);
20
+ }, g = [t], n[0] = t, n[1] = l, n[2] = g) : (l = n[1], g = n[2]), qn(l, g);
21
+ let p;
22
+ n[3] !== t.name ? (p = /* @__PURE__ */ a($, { as: "span", textStyle: "label/XS/medium", lineClamp: 1, maxW: "180px", children: t.name }), n[3] = t.name, n[4] = p) : p = n[4];
23
+ const v = p;
24
+ let f;
25
+ n[5] !== t.name || n[6] !== v || n[7] !== i ? (f = i ? /* @__PURE__ */ S(y.Root, { positioning: {
26
+ placement: "top"
27
+ }, children: [
28
+ /* @__PURE__ */ a(y.Trigger, { asChild: !0, children: /* @__PURE__ */ a(L.button, { type: "button", cursor: "pointer", minW: "0", display: "inline-flex", children: v }) }),
29
+ /* @__PURE__ */ a(y.Positioner, { children: /* @__PURE__ */ a(y.Content, { w: "auto", p: "2xs", bg: "bg", children: /* @__PURE__ */ a(_, { src: i, alt: t.name, maxW: "240px", maxH: "240px", borderRadius: "sm" }) }) })
30
+ ] }) : v, n[5] = t.name, n[6] = v, n[7] = i, n[8] = f) : f = n[8];
31
+ let s;
32
+ n[9] !== t.size ? (s = Bn(t.size), n[9] = t.size, n[10] = s) : s = n[10];
33
+ let d;
34
+ n[11] !== s ? (d = /* @__PURE__ */ a($, { as: "span", textStyle: "label/XS/regular", color: "fg.subtle", children: s }), n[11] = s, n[12] = d) : d = n[12];
35
+ let k;
36
+ n[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(T, { size: 12 }), n[13] = k) : k = n[13];
37
+ let u;
38
+ n[14] !== c || n[15] !== r || n[16] !== o ? (u = /* @__PURE__ */ a(B, { size: "2xs", variant: "ghost", "aria-label": o, disabled: c, onClick: r, children: k }), n[14] = c, n[15] = r, n[16] = o, n[17] = u) : u = n[17];
39
+ let x;
40
+ return n[18] !== f || n[19] !== d || n[20] !== u ? (x = /* @__PURE__ */ S(R, { variant: "chip", gap: "2xs", pr: "2xs", children: [
41
+ f,
42
+ d,
43
+ u
44
+ ] }), n[18] = f, n[19] = d, n[20] = u, n[21] = x) : x = n[21], x;
45
+ }, Zn = (e) => {
46
+ const n = z(2);
47
+ let t;
48
+ return n[0] !== e ? (t = /* @__PURE__ */ a(R, { size: "sm", variant: "chip", ...e }), n[0] = e, n[1] = t) : t = n[1], t;
49
+ }, Tn = `@font-face {
50
+ font-family: "prompt-studio-icons";
51
+ src: url("$fonts/prompt-studio-icons.eot?959122fb");
52
+ src:
53
+ url("$fonts/prompt-studio-icons.eot?959122fb#iefix") format("embedded-opentype"),
54
+ url("$fonts/prompt-studio-icons.woff2?959122fb") format("woff2"),
55
+ url("$fonts/prompt-studio-icons.woff?959122fb") format("woff"),
56
+ url("$fonts/prompt-studio-icons.ttf?959122fb") format("truetype"),
57
+ url("$fonts/prompt-studio-icons.svg?959122fb#prompt-studio-icons") format("svg");
58
+ font-weight: normal;
59
+ font-style: normal;
60
+ font-display: block;
61
+ }
62
+
63
+ [class^="icon-"]::before,
64
+ [class*=" icon-"]::before {
65
+ font-family: "prompt-studio-icons", sans-serif;
66
+ font-style: normal;
67
+ font-weight: normal;
68
+ speak: never;
69
+ display: inline-block;
70
+ text-decoration: inherit;
71
+ width: 1em;
72
+ margin-right: 0.2em;
73
+ text-align: center;
74
+ font-variant: normal;
75
+ text-transform: none;
76
+ line-height: 1em;
77
+ margin-left: 0.2em;
78
+ -webkit-font-smoothing: antialiased;
79
+ -moz-osx-font-smoothing: grayscale;
80
+ }
81
+
82
+ .icon-cloud-add::before {
83
+ content: "\\e800";
84
+ }
85
+ .icon-credit-usage-50::before {
86
+ content: "\\e801";
87
+ }
88
+ .icon-history::before {
89
+ content: "\\e802";
90
+ }
91
+ .icon-data-string::before {
92
+ content: "\\e803";
93
+ }
94
+ .icon-data-object::before {
95
+ content: "\\e804";
96
+ }
97
+ .icon-data-integer::before {
98
+ content: "\\e805";
99
+ }
100
+ .icon-data-double::before {
101
+ content: "\\e806";
102
+ }
103
+ .icon-add::before {
104
+ content: "\\e807";
105
+ }
106
+ .icon-add-circle::before {
107
+ content: "\\e808";
108
+ }
109
+ .icon-data-boolean::before {
110
+ content: "\\e809";
111
+ }
112
+ .icon-add-square::before {
113
+ content: "\\e80a";
114
+ }
115
+ .icon-data-array::before {
116
+ content: "\\e80b";
117
+ }
118
+ .icon-status-backlog::before {
119
+ content: "\\e80c";
120
+ }
121
+ .icon-metrics::before {
122
+ content: "\\e80d";
123
+ }
124
+ .icon-pie-donut::before {
125
+ content: "\\e80e";
126
+ }
127
+ .icon-area-plot::before {
128
+ content: "\\e80f";
129
+ }
130
+ .icon-treemap::before {
131
+ content: "\\e810";
132
+ }
133
+ .icon-align-bottom::before {
134
+ content: "\\e811";
135
+ }
136
+ .icon-align-horizontally::before {
137
+ content: "\\e812";
138
+ }
139
+ .icon-align-left::before {
140
+ content: "\\e813";
141
+ }
142
+ .icon-align-right::before {
143
+ content: "\\e814";
144
+ }
145
+ .icon-align-vertically::before {
146
+ content: "\\e815";
147
+ }
148
+ .icon-radar-column-chart::before {
149
+ content: "\\e816";
150
+ }
151
+ .icon-pie-full::before {
152
+ content: "\\e817";
153
+ }
154
+ .icon-archive-1::before {
155
+ content: "\\e818";
156
+ }
157
+ .icon-archive-2::before {
158
+ content: "\\e819";
159
+ }
160
+ .icon-archive-add::before {
161
+ content: "\\e81a";
162
+ }
163
+ .icon-ct::before {
164
+ content: "\\e81b";
165
+ }
166
+ .icon-archive-minus::before {
167
+ content: "\\e81c";
168
+ }
169
+ .icon-archive-slash::before {
170
+ content: "\\e81d";
171
+ }
172
+ .icon-archive-tick::before {
173
+ content: "\\e81e";
174
+ }
175
+ .icon-min::before {
176
+ content: "\\e81f";
177
+ }
178
+ .icon-ctd::before {
179
+ content: "\\e820";
180
+ }
181
+ .icon-std::before {
182
+ content: "\\e821";
183
+ }
184
+ .icon-var::before {
185
+ content: "\\e822";
186
+ }
187
+ .icon-max::before {
188
+ content: "\\e823";
189
+ }
190
+ .icon-sum::before {
191
+ content: "\\e824";
192
+ }
193
+ .icon-status-todo::before {
194
+ content: "\\e825";
195
+ }
196
+ .icon-status-progress::before {
197
+ content: "\\e826";
198
+ }
199
+ .icon-status-review::before {
200
+ content: "\\e827";
201
+ }
202
+ .icon-status-done::before {
203
+ content: "\\e828";
204
+ }
205
+ .icon-status-canceled::before {
206
+ content: "\\e829";
207
+ }
208
+ .icon-level-low::before {
209
+ content: "\\e82a";
210
+ }
211
+ .icon-arrow-down::before {
212
+ content: "\\e82b";
213
+ }
214
+ .icon-arrow-down-1::before {
215
+ content: "\\e82c";
216
+ }
217
+ .icon-level-mid::before {
218
+ content: "\\e82d";
219
+ }
220
+ .icon-arrow-left::before {
221
+ content: "\\e82e";
222
+ }
223
+ .icon-level-high::before {
224
+ content: "\\e82f";
225
+ }
226
+ .icon-arrow-left-2::before {
227
+ content: "\\e830";
228
+ }
229
+ .icon-level-xhigh::before {
230
+ content: "\\e831";
231
+ }
232
+ .icon-arrow-right::before {
233
+ content: "\\e832";
234
+ }
235
+ .icon-arrow-right-1::before {
236
+ content: "\\e833";
237
+ }
238
+ .icon-arrow-right-3::before {
239
+ content: "\\e835";
240
+ }
241
+ .icon-arrow-right-4::before {
242
+ content: "\\e836";
243
+ }
244
+ .icon-arrow-square-down::before {
245
+ content: "\\e838";
246
+ }
247
+ .icon-arrow-square-left::before {
248
+ content: "\\e839";
249
+ }
250
+ .icon-arrow-square-up::before {
251
+ content: "\\e83a";
252
+ }
253
+ .icon-arrow-up-2::before {
254
+ content: "\\e83f";
255
+ }
256
+ .icon-arrow-up-3::before {
257
+ content: "\\e840";
258
+ }
259
+ .icon-book::before {
260
+ content: "\\e868";
261
+ }
262
+ .icon-book-1::before {
263
+ content: "\\e869";
264
+ }
265
+ .icon-box::before {
266
+ content: "\\e86e";
267
+ }
268
+ .icon-pointing-arrow::before {
269
+ content: "\\e87d";
270
+ }
271
+ .icon-data-structure::before {
272
+ content: "\\e87e";
273
+ }
274
+ .icon-brush-4::before {
275
+ content: "\\e87f";
276
+ }
277
+ .icon-folder::before {
278
+ content: "\\e880";
279
+ }
280
+ .icon-import-2::before {
281
+ content: "\\e881";
282
+ }
283
+ .icon-refresh::before {
284
+ content: "\\e882";
285
+ }
286
+ .icon-message-text-1::before {
287
+ content: "\\e883";
288
+ }
289
+ .icon-messages-2::before {
290
+ content: "\\e884";
291
+ }
292
+ .icon-global::before {
293
+ content: "\\e885";
294
+ }
295
+ .icon-briefcase::before {
296
+ content: "\\e886";
297
+ }
298
+ .icon-row-vertical::before {
299
+ content: "\\e887";
300
+ }
301
+ .icon-format-square::before {
302
+ content: "\\e888";
303
+ }
304
+ .icon-document-copy::before {
305
+ content: "\\e889";
306
+ }
307
+ .icon-document-forward::before {
308
+ content: "\\e88a";
309
+ }
310
+ .icon-tick-circle-1::before {
311
+ content: "\\e88b";
312
+ }
313
+ .icon-data-timestamp::before {
314
+ content: "\\e88c";
315
+ }
316
+ .icon-more-2::before {
317
+ content: "\\e88d";
318
+ }
319
+ .icon-notification::before {
320
+ content: "\\e88e";
321
+ }
322
+ .icon-search-normal-1::before {
323
+ content: "\\e890";
324
+ }
325
+ .icon-home-1::before {
326
+ content: "\\e891";
327
+ }
328
+ .icon-brush-1::before {
329
+ content: "\\e892";
330
+ }
331
+ .icon-paperclip-2::before {
332
+ content: "\\e893";
333
+ }
334
+ .icon-grid-4::before {
335
+ content: "\\e894";
336
+ }
337
+ .icon-mouse-circle::before {
338
+ content: "\\e895";
339
+ }
340
+ .icon-message-question::before {
341
+ content: "\\e896";
342
+ }
343
+ .icon-saving::before {
344
+ content: "\\e898";
345
+ }
346
+ .icon-chevron-double::before {
347
+ content: "\\e899";
348
+ }
349
+ .icon-close::before {
350
+ content: "\\e89a";
351
+ }
352
+ .icon-more-info::before {
353
+ content: "\\e89b";
354
+ }
355
+ .icon-arrow-up::before {
356
+ content: "\\e89c";
357
+ }
358
+ .icon-reorder::before {
359
+ content: "\\e89d";
360
+ }
361
+ .icon-refresh-1::before {
362
+ content: "\\e89e";
363
+ }
364
+ .icon-text-variable::before {
365
+ content: "\\e89f";
366
+ }
367
+ .icon-header-horizontal::before {
368
+ content: "\\e8a0";
369
+ }
370
+ .icon-edit-1::before {
371
+ content: "\\e8a1";
372
+ }
373
+ .icon-credit-usage-0::before {
374
+ content: "\\e8a2";
375
+ }
376
+ .icon-credit-usage-25::before {
377
+ content: "\\e8a3";
378
+ }
379
+ .icon-credit-usage-75::before {
380
+ content: "\\e8a4";
381
+ }
382
+ .icon-card::before {
383
+ content: "\\e8a5";
384
+ }
385
+ .icon-credit-usage-100::before {
386
+ content: "\\e8a6";
387
+ }
388
+ .icon-coding-language::before {
389
+ content: "\\e8ab";
390
+ }
391
+ .icon-table::before {
392
+ content: "\\e8ad";
393
+ }
394
+ .icon-check::before {
395
+ content: "\\e8ae";
396
+ }
397
+ .icon-logo-google::before {
398
+ content: "\\e8af";
399
+ }
400
+ .icon-data-date::before {
401
+ content: "\\e8b0";
402
+ }
403
+ .icon-llms::before {
404
+ content: "\\e8b1";
405
+ }
406
+ .icon-logo-openai::before {
407
+ content: "\\e8b2";
408
+ }
409
+ .icon-logo-anthropic::before {
410
+ content: "\\e8b3";
411
+ }
412
+ .icon-logo-meta::before {
413
+ content: "\\e8b4";
414
+ }
415
+ .icon-data-variant::before {
416
+ content: "\\e8b5";
417
+ }
418
+ .icon-chart-1::before {
419
+ content: "\\e8b6";
420
+ }
421
+ .icon-schema::before {
422
+ content: "\\e8b7";
423
+ }
424
+ .icon-ascending::before {
425
+ content: "\\e8b8";
426
+ }
427
+ .icon-bar-chart-100stacked::before {
428
+ content: "\\e8ba";
429
+ }
430
+ .icon-results::before {
431
+ content: "\\e8bc";
432
+ }
433
+ .icon-bar-chart::before {
434
+ content: "\\e8be";
435
+ }
436
+ .icon-descending::before {
437
+ content: "\\e8bf";
438
+ }
439
+ .icon-bar-chart-vertical::before {
440
+ content: "\\e8c0";
441
+ }
442
+ .icon-step-before-points::before {
443
+ content: "\\e8c4";
444
+ }
445
+ .icon-step-after-points::before {
446
+ content: "\\e8c6";
447
+ }
448
+ .icon-line-rounded::before {
449
+ content: "\\e8c9";
450
+ }
451
+ .icon-line-sharp::before {
452
+ content: "\\e8cb";
453
+ }
454
+ .icon-bar-chart-simple::before {
455
+ content: "\\e8cc";
456
+ }
457
+ .icon-pie-chart::before {
458
+ content: "\\e8cd";
459
+ }
460
+ .icon-bar-chart-stacked::before {
461
+ content: "\\e8ce";
462
+ }
463
+ .icon-map::before {
464
+ content: "\\e8cf";
465
+ }
466
+ .icon-radar-bar-chart::before {
467
+ content: "\\e8d0";
468
+ }
469
+ .icon-radar-chart::before {
470
+ content: "\\e8d1";
471
+ }
472
+ .icon-metric::before {
473
+ content: "\\e8d2";
474
+ }
475
+ .icon-area-plot-1::before {
476
+ content: "\\e8d3";
477
+ }
478
+ .icon-avg::before {
479
+ content: "\\e8d4";
480
+ }
481
+ .icon-area-plot-stacked100::before {
482
+ content: "\\e8d5";
483
+ }
484
+ .icon-scatter-bubbles::before {
485
+ content: "\\e8d6";
486
+ }
487
+ .icon-code::before {
488
+ content: "\\e8d7";
489
+ }
490
+ .icon-code-1::before {
491
+ content: "\\e8d8";
492
+ }
493
+ .icon-code-circle::before {
494
+ content: "\\e8d9";
495
+ }
496
+ .icon-scatter-plot::before {
497
+ content: "\\e8db";
498
+ }
499
+ .icon-scatter-dots::before {
500
+ content: "\\e8dc";
501
+ }
502
+ .icon-med::before {
503
+ content: "\\e8dd";
504
+ }
505
+ .icon-command-square::before {
506
+ content: "\\e8e1";
507
+ }
508
+ .icon-component::before {
509
+ content: "\\e8e2";
510
+ }
511
+ .icon-copy::before {
512
+ content: "\\e8e9";
513
+ }
514
+ .icon-danger::before {
515
+ content: "\\e8f5";
516
+ }
517
+ .icon-visualization::before {
518
+ content: "\\e8fc";
519
+ }
520
+ .icon-document-1::before {
521
+ content: "\\e911";
522
+ }
523
+ .icon-document-code::before {
524
+ content: "\\e913";
525
+ }
526
+ .icon-document-download::before {
527
+ content: "\\e916";
528
+ }
529
+ .icon-document-text-1::before {
530
+ content: "\\e91f";
531
+ }
532
+ .icon-document-upload::before {
533
+ content: "\\e920";
534
+ }
535
+ .icon-edit::before {
536
+ content: "\\e927";
537
+ }
538
+ .icon-edit-2::before {
539
+ content: "\\e928";
540
+ }
541
+ .icon-eraser-1::before {
542
+ content: "\\e939";
543
+ }
544
+ .icon-export-1::before {
545
+ content: "\\e93b";
546
+ }
547
+ .icon-export-3::before {
548
+ content: "\\e93d";
549
+ }
550
+ .icon-eye::before {
551
+ content: "\\e93f";
552
+ }
553
+ .icon-eye-slash::before {
554
+ content: "\\e940";
555
+ }
556
+ .icon-flash-1::before {
557
+ content: "\\e950";
558
+ }
559
+ .icon-folder-2::before {
560
+ content: "\\e955";
561
+ }
562
+ .icon-glass::before {
563
+ content: "\\e97c";
564
+ }
565
+ .icon-home-2::before {
566
+ content: "\\e9aa";
567
+ }
568
+ .icon-import-1::before {
569
+ content: "\\e9b5";
570
+ }
571
+ .icon-info-circle::before {
572
+ content: "\\e9b7";
573
+ }
574
+ .icon-key::before {
575
+ content: "\\e9bc";
576
+ }
577
+ .icon-data::before {
578
+ content: "\\e9c7";
579
+ }
580
+ .icon-link-2::before {
581
+ content: "\\e9d1";
582
+ }
583
+ .icon-location::before {
584
+ content: "\\e9d5";
585
+ }
586
+ .icon-location-slash::before {
587
+ content: "\\e9d9";
588
+ }
589
+ .icon-login-1::before {
590
+ content: "\\e9e0";
591
+ }
592
+ .icon-logout-1::before {
593
+ content: "\\e9e2";
594
+ }
595
+ .icon-magicpen::before {
596
+ content: "\\e9e4";
597
+ }
598
+ .icon-maximize-2::before {
599
+ content: "\\e9f0";
600
+ }
601
+ .icon-maximize-4::before {
602
+ content: "\\e9f2";
603
+ }
604
+ .icon-maximize-21::before {
605
+ content: "\\e9f3";
606
+ }
607
+ .icon-menu-1::before {
608
+ content: "\\e9f8";
609
+ }
610
+ .icon-message::before {
611
+ content: "\\e9fa";
612
+ }
613
+ .icon-messages::before {
614
+ content: "\\ea06";
615
+ }
616
+ .icon-microphone-2::before {
617
+ content: "\\ea11";
618
+ }
619
+ .icon-minus-cirlce::before {
620
+ content: "\\ea18";
621
+ }
622
+ .icon-moon::before {
623
+ content: "\\ea2e";
624
+ }
625
+ .icon-more::before {
626
+ content: "\\ea2f";
627
+ }
628
+ .icon-note::before {
629
+ content: "\\ea44";
630
+ }
631
+ .icon-paperclip::before {
632
+ content: "\\ea56";
633
+ }
634
+ .icon-play::before {
635
+ content: "\\ea6a";
636
+ }
637
+ .icon-presention-chart::before {
638
+ content: "\\ea6f";
639
+ }
640
+ .icon-redo::before {
641
+ content: "\\ea9c";
642
+ }
643
+ .icon-rotate-left::before {
644
+ content: "\\eaa8";
645
+ }
646
+ .icon-rotate-right::before {
647
+ content: "\\eaaa";
648
+ }
649
+ .icon-search-zoom-in-1::before {
650
+ content: "\\eac8";
651
+ }
652
+ .icon-search-zoom-out::before {
653
+ content: "\\eac9";
654
+ }
655
+ .icon-send-1::before {
656
+ content: "\\ead1";
657
+ }
658
+ .icon-setting-2::before {
659
+ content: "\\ead6";
660
+ }
661
+ .icon-setting-4::before {
662
+ content: "\\ead8";
663
+ }
664
+ .icon-setting-5::before {
665
+ content: "\\ead9";
666
+ }
667
+ .icon-shuffle::before {
668
+ content: "\\eae9";
669
+ }
670
+ .icon-sidebar-bottom::before {
671
+ content: "\\eaea";
672
+ }
673
+ .icon-sidebar-left::before {
674
+ content: "\\eaeb";
675
+ }
676
+ .icon-sidebar-right::before {
677
+ content: "\\eaec";
678
+ }
679
+ .icon-sidebar-top::before {
680
+ content: "\\eaed";
681
+ }
682
+ .icon-slash::before {
683
+ content: "\\eaf3";
684
+ }
685
+ .icon-smallcaps::before {
686
+ content: "\\eaf9";
687
+ }
688
+ .icon-sms::before {
689
+ content: "\\eafd";
690
+ }
691
+ .icon-star::before {
692
+ content: "\\eb07";
693
+ }
694
+ .icon-stop::before {
695
+ content: "\\eb0e";
696
+ }
697
+ .icon-sun-1::before {
698
+ content: "\\eb15";
699
+ }
700
+ .icon-tag-cross::before {
701
+ content: "\\eb19";
702
+ }
703
+ .icon-task::before {
704
+ content: "\\eb1c";
705
+ }
706
+ .icon-task-square::before {
707
+ content: "\\eb1d";
708
+ }
709
+ .icon-teacher::before {
710
+ content: "\\eb1e";
711
+ }
712
+ .icon-text::before {
713
+ content: "\\eb1f";
714
+ }
715
+ .icon-textalign-center::before {
716
+ content: "\\eb20";
717
+ }
718
+ .icon-textalign-justifycenter::before {
719
+ content: "\\eb21";
720
+ }
721
+ .icon-textalign-left::before {
722
+ content: "\\eb24";
723
+ }
724
+ .icon-textalign-right::before {
725
+ content: "\\eb25";
726
+ }
727
+ .icon-text-block::before {
728
+ content: "\\eb26";
729
+ }
730
+ .icon-text-bold::before {
731
+ content: "\\eb27";
732
+ }
733
+ .icon-text-italic::before {
734
+ content: "\\eb28";
735
+ }
736
+ .icon-text-underline::before {
737
+ content: "\\eb29";
738
+ }
739
+ .icon-tick-circle::before {
740
+ content: "\\eb2a";
741
+ }
742
+ .icon-timer-1::before {
743
+ content: "\\eb32";
744
+ }
745
+ .icon-trash::before {
746
+ content: "\\eb3c";
747
+ }
748
+ .icon-undo::before {
749
+ content: "\\eb47";
750
+ }
751
+ .icon-user::before {
752
+ content: "\\eb4a";
753
+ }
754
+ .icon-video-vertical::before {
755
+ content: "\\eb61";
756
+ }
757
+ .icon-wallet-2::before {
758
+ content: "\\eb6d";
759
+ }
760
+ .icon-wifi::before {
761
+ content: "\\eb7b";
762
+ }
763
+ .icon-stockholm::before {
764
+ content: "\\eb81";
765
+ }
766
+ .icon-perplexity-ai::before {
767
+ content: "\\eb82";
768
+ }
769
+ `, In = /\.icon-([\w-]+)::before\s*\{\s*content:\s*"(\\[0-9a-f]+)"/g, An = new Map(Array.from(Tn.matchAll(In), ([, e, n]) => [e, n])), Gn = 89.5, Fn = "0.209em", Hn = L("span"), Pn = (e, n) => ({
770
+ position: "relative",
771
+ display: "inline-block",
772
+ verticalAlign: "middle",
773
+ flexShrink: 0,
774
+ boxSize: "1em",
775
+ lineHeight: 1,
776
+ containerType: "size",
777
+ "&::before": {
778
+ content: e,
779
+ fontSize: n,
780
+ position: "absolute",
781
+ inset: 0,
782
+ fontFamily: '"prompt-studio-icons", sans-serif',
783
+ fontStyle: "normal",
784
+ fontWeight: "normal",
785
+ lineHeight: "100cqmin",
786
+ textAlign: "center",
787
+ transform: `translateY(${Fn})`
788
+ }
789
+ }), q = (e, n = {}) => {
790
+ const t = Pn(`"${An.get(e) ?? ""}"`, `${(Gn * (n.scale ?? 1)).toFixed(1)}cqmin`), o = (c) => {
791
+ const r = z(2);
792
+ let i;
793
+ return r[0] !== c ? (i = /* @__PURE__ */ a(Hn, { "aria-hidden": !0, ...c, css: t }), r[0] = c, r[1] = i) : i = r[1], i;
794
+ };
795
+ return o.displayName = `GlyphIcon(${e})`, o;
796
+ }, Kn = ["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"], m = (e, n) => ({
797
+ value: e,
798
+ label: n,
799
+ icon: q(e)
800
+ }), w = (e, n) => ({
801
+ value: e,
802
+ label: n,
803
+ icon: q(e, {
804
+ scale: 0.82
805
+ })
806
+ }), Un = [
807
+ {
808
+ value: null,
809
+ label: "none",
810
+ icon: I
811
+ },
812
+ {
813
+ value: "flag",
814
+ label: "flag",
815
+ icon: A
816
+ },
817
+ {
818
+ value: "bug",
819
+ label: "bug",
820
+ icon: G
821
+ },
822
+ {
823
+ value: "sparkles",
824
+ label: "sparkles",
825
+ icon: F
826
+ },
827
+ {
828
+ value: "book-open",
829
+ label: "book open",
830
+ icon: H
831
+ },
832
+ {
833
+ value: "wrench",
834
+ label: "wrench",
835
+ icon: P
836
+ },
837
+ {
838
+ value: "zap",
839
+ label: "zap",
840
+ icon: U
841
+ },
842
+ {
843
+ value: "feather",
844
+ label: "feather",
845
+ icon: W
846
+ },
847
+ {
848
+ value: "scale",
849
+ label: "scale",
850
+ icon: E
851
+ },
852
+ {
853
+ value: "layers",
854
+ label: "layers",
855
+ icon: j
856
+ },
857
+ {
858
+ value: "star",
859
+ label: "star",
860
+ icon: O
861
+ },
862
+ {
863
+ value: "flame",
864
+ label: "flame",
865
+ icon: M
866
+ },
867
+ {
868
+ value: "lightbulb",
869
+ label: "lightbulb",
870
+ icon: Y
871
+ },
872
+ {
873
+ value: "shield",
874
+ label: "shield",
875
+ icon: Z
876
+ },
877
+ {
878
+ value: "eye",
879
+ label: "eye",
880
+ icon: K
881
+ },
882
+ // The design draws the clock cell with lucide's timer.
883
+ {
884
+ value: "clock",
885
+ label: "clock",
886
+ icon: N
887
+ },
888
+ {
889
+ value: "tag",
890
+ label: "tag",
891
+ icon: X
892
+ },
893
+ {
894
+ value: "code",
895
+ label: "code",
896
+ icon: V
897
+ },
898
+ {
899
+ value: "rocket",
900
+ label: "rocket",
901
+ icon: D
902
+ },
903
+ {
904
+ value: "heart",
905
+ label: "heart",
906
+ icon: J
907
+ },
908
+ {
909
+ value: "bookmark",
910
+ label: "bookmark",
911
+ icon: Q
912
+ },
913
+ {
914
+ value: "target",
915
+ label: "target",
916
+ icon: nn
917
+ },
918
+ {
919
+ value: "bell",
920
+ label: "bell",
921
+ icon: en
922
+ },
923
+ {
924
+ value: "hash",
925
+ label: "hash",
926
+ icon: on
927
+ },
928
+ m("status-backlog", "status backlog"),
929
+ m("status-todo", "status todo"),
930
+ m("status-progress", "status in progress"),
931
+ m("status-review", "status in review"),
932
+ m("status-done", "status done"),
933
+ m("status-canceled", "status canceled"),
934
+ {
935
+ value: "ticket",
936
+ label: "ticket",
937
+ icon: tn
938
+ },
939
+ {
940
+ value: "git-branch",
941
+ label: "git branch",
942
+ icon: cn
943
+ },
944
+ w("level-low", "level low"),
945
+ w("level-mid", "level medium"),
946
+ w("level-high", "level high"),
947
+ w("level-xhigh", "level very high"),
948
+ {
949
+ value: "bot",
950
+ label: "bot",
951
+ icon: rn
952
+ },
953
+ {
954
+ value: "puzzle",
955
+ label: "puzzle",
956
+ icon: an
957
+ },
958
+ {
959
+ value: "workflow",
960
+ label: "workflow",
961
+ icon: ln
962
+ },
963
+ {
964
+ value: "kanban",
965
+ label: "kanban",
966
+ icon: bn
967
+ },
968
+ {
969
+ value: "message-square",
970
+ label: "message square",
971
+ icon: fn
972
+ },
973
+ {
974
+ value: "folder",
975
+ label: "folder",
976
+ icon: sn
977
+ },
978
+ {
979
+ value: "file-text",
980
+ label: "file text",
981
+ icon: dn
982
+ },
983
+ {
984
+ value: "history",
985
+ label: "history",
986
+ icon: un
987
+ },
988
+ {
989
+ value: "play",
990
+ label: "play",
991
+ icon: mn
992
+ },
993
+ {
994
+ value: "terminal",
995
+ label: "terminal",
996
+ icon: hn
997
+ },
998
+ {
999
+ value: "cpu",
1000
+ label: "CPU",
1001
+ icon: gn
1002
+ },
1003
+ {
1004
+ value: "users",
1005
+ label: "users",
1006
+ icon: pn
1007
+ },
1008
+ // Prompt Studio concepts: the icons its own tickets, boards, workspaces and
1009
+ // notifications are drawn with.
1010
+ {
1011
+ value: "component",
1012
+ label: "ticket",
1013
+ icon: vn
1014
+ },
1015
+ {
1016
+ value: "square-kanban",
1017
+ label: "board",
1018
+ icon: kn
1019
+ },
1020
+ {
1021
+ value: "git-commit-horizontal",
1022
+ label: "workspace",
1023
+ icon: xn
1024
+ },
1025
+ {
1026
+ value: "inbox",
1027
+ label: "notifications",
1028
+ icon: yn
1029
+ },
1030
+ {
1031
+ value: "list-checks",
1032
+ label: "checklist",
1033
+ icon: wn
1034
+ },
1035
+ {
1036
+ value: "archive",
1037
+ label: "archive",
1038
+ icon: Sn
1039
+ },
1040
+ {
1041
+ value: "link",
1042
+ label: "link",
1043
+ icon: zn
1044
+ },
1045
+ {
1046
+ value: "settings",
1047
+ label: "settings",
1048
+ icon: Cn
1049
+ }
1050
+ ], Nn = (e, n = Un) => {
1051
+ const t = (e ?? "circle").replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([a-zA-Z])([0-9])/g, "$1-$2").toLowerCase();
1052
+ return n.find((c) => c.value === t)?.icon ?? $n;
1053
+ }, Xn = Ln.forwardRef(function(n, t) {
1054
+ const o = z(9);
1055
+ let c, r;
1056
+ o[0] !== n ? ({
1057
+ children: c,
1058
+ ...r
1059
+ } = n, o[0] = n, o[1] = c, o[2] = r) : (c = o[1], r = o[2]);
1060
+ let i;
1061
+ o[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(h.Track, { height: "2px", borderRadius: "0", bg: "bg.muted", children: /* @__PURE__ */ a(h.Range, { bg: "fg" }) }), o[3] = i) : i = o[3];
1062
+ let b;
1063
+ o[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ S(h.Control, { children: [
1064
+ i,
1065
+ /* @__PURE__ */ a(h.Thumbs, { boxSize: "0.5rem", bg: "fg", borderWidth: "1px", borderColor: "bg", borderRadius: "none", boxShadow: "none", transition: "width 0.12s ease, height 0.12s ease, border-color 0.2s ease-in-out", _hover: {
1066
+ boxSize: "0.75rem",
1067
+ borderColor: "border.accent-light"
1068
+ }, _active: {
1069
+ boxSize: "0.875rem",
1070
+ borderColor: "border.accent-light"
1071
+ }, _focusVisible: {
1072
+ borderColor: "border.accent-light",
1073
+ outline: "none",
1074
+ boxShadow: "none"
1075
+ } })
1076
+ ] }), o[4] = b) : b = o[4];
1077
+ let l;
1078
+ return o[5] !== c || o[6] !== t || o[7] !== r ? (l = /* @__PURE__ */ S(h.Root, { ref: t, variant: "solid", ...r, children: [
1079
+ b,
1080
+ c
1081
+ ] }), o[5] = c, o[6] = t, o[7] = r, o[8] = l) : l = o[8], l;
1082
+ });
1083
+ export {
1084
+ Yn as A,
1085
+ Zn as C,
1086
+ Xn as S,
1087
+ Kn as a,
1088
+ q as c,
1089
+ Nn as g,
1090
+ Un as o
1091
+ };
1092
+ //# sourceMappingURL=slider-DBHjdxsU.js.map