@mcp-b/react-components 0.12.0 → 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.
Files changed (229) hide show
  1. package/dist/{AgentChat-CRmsKg9B.d.ts → AgentChat-Br6tKEl8.d.ts} +29 -5
  2. package/dist/{Button-Ct5I6aTu.d.ts → Button-FX_hpqxm.d.ts} +8 -11
  3. package/dist/{CodeBlock-XNQOupQ3.js → CodeBlock-BUFXG8HW.js} +22 -12
  4. package/dist/{CodeBlock-CxQXv3C4.d.ts → CodeBlock-DUh9WOGo.d.ts} +13 -7
  5. package/dist/{Combobox-D9anamNr.d.ts → Combobox-B9Fcd6q-.d.ts} +4 -14
  6. package/dist/{FileTree-wMyZhhHO.js → FileTree-mpEIcfzA.js} +1 -1
  7. package/dist/{Menu-BLhnNnRK.d.ts → Menu-Bgu-ufb5.d.ts} +26 -65
  8. package/dist/{ModelSelector-BB-xB-Es.js → ModelSelector-DVgVBdvw.js} +7 -7
  9. package/dist/{PromptInput-IyM6ZETj.d.ts → PromptInput-p5KmOmt1.d.ts} +302 -46
  10. package/dist/Select-Dl_vF_Bt.d.ts +213 -0
  11. package/dist/{Tabs-D9EAq09D.d.ts → Tabs-3Zc4tb9D.d.ts} +9 -6
  12. package/dist/{ThinkChat-B3wYahor.js → ThinkChat-7DQ2CogF.js} +34 -2
  13. package/dist/{ThinkChatActivity-F4KFPcJA.d.ts → ThinkChatActivity-Cuk28Js_.d.ts} +1 -1
  14. package/dist/{attachment-preview-ChtC3HiU.js → attachment-preview-DIs50Q0h.js} +3 -3
  15. package/dist/components/Accordion.d.ts +17 -6
  16. package/dist/components/Accordion.js +23 -36
  17. package/dist/components/Activity.d.ts +5 -5
  18. package/dist/components/Activity.js +9 -9
  19. package/dist/components/AgentChat.d.ts +1 -1
  20. package/dist/components/AgentChat.js +304 -116
  21. package/dist/components/AgentConnection.js +2 -2
  22. package/dist/components/AlertDialog.d.ts +40 -32
  23. package/dist/components/AlertDialog.js +46 -39
  24. package/dist/components/Artifact.d.ts +1 -1
  25. package/dist/components/Artifact.js +5 -5
  26. package/dist/components/Autocomplete.js +10 -2
  27. package/dist/components/Avatar.d.ts +2 -2
  28. package/dist/components/Avatar.js +3 -3
  29. package/dist/components/Badge.d.ts +11 -14
  30. package/dist/components/Badge.js +10 -18
  31. package/dist/components/BrowserLiveView.js +26 -36
  32. package/dist/components/BrowserReplay.js +4 -4
  33. package/dist/components/BrowserRunPanel.js +1 -1
  34. package/dist/components/Button.d.ts +2 -2
  35. package/dist/components/Button.js +7 -30
  36. package/dist/components/ChainOfThought.d.ts +5 -5
  37. package/dist/components/ChainOfThought.js +8 -5
  38. package/dist/components/ChatGptSignInScreen.js +3 -3
  39. package/dist/components/Checkbox.d.ts +10 -2
  40. package/dist/components/Checkbox.js +13 -6
  41. package/dist/components/CheckboxGroup.d.ts +6 -6
  42. package/dist/components/CheckboxGroup.js +6 -6
  43. package/dist/components/CodeBlock.d.ts +1 -1
  44. package/dist/components/CodeBlock.js +1 -1
  45. package/dist/components/CodexModelSelector.d.ts +23 -28
  46. package/dist/components/CodexModelSelector.js +116 -94
  47. package/dist/components/Collapsible.d.ts +2 -4
  48. package/dist/components/Collapsible.js +9 -7
  49. package/dist/components/Combobox.d.ts +2 -2
  50. package/dist/components/Combobox.js +20 -22
  51. package/dist/components/Commit.d.ts +5 -5
  52. package/dist/components/Commit.js +6 -6
  53. package/dist/components/Context.js +5 -1
  54. package/dist/components/ContextMenu.d.ts +20 -72
  55. package/dist/components/ContextMenu.js +46 -56
  56. package/dist/components/Conversation.d.ts +1 -1
  57. package/dist/components/Conversation.js +1 -1
  58. package/dist/components/Dialog.d.ts +38 -30
  59. package/dist/components/Dialog.js +46 -34
  60. package/dist/components/EnvironmentVariables.d.ts +1 -1
  61. package/dist/components/EnvironmentVariables.js +5 -5
  62. package/dist/components/Field.d.ts +3 -3
  63. package/dist/components/Field.js +7 -8
  64. package/dist/components/Fieldset.d.ts +2 -2
  65. package/dist/components/Fieldset.js +2 -2
  66. package/dist/components/FileTree.js +1 -1
  67. package/dist/components/Label.d.ts +1 -1
  68. package/dist/components/Label.js +1 -1
  69. package/dist/components/McpServerPicker.js +21 -19
  70. package/dist/components/Menu.d.ts +2 -2
  71. package/dist/components/Menu.js +39 -49
  72. package/dist/components/Menubar.d.ts +16 -52
  73. package/dist/components/Menubar.js +44 -56
  74. package/dist/components/Message.d.ts +1 -1
  75. package/dist/components/Message.js +6 -6
  76. package/dist/components/MessageScroller.d.ts +1 -1
  77. package/dist/components/MessageScroller.js +1 -1
  78. package/dist/components/Meter.js +5 -0
  79. package/dist/components/ModelSelector.d.ts +1 -1
  80. package/dist/components/ModelSelector.js +1 -1
  81. package/dist/components/NavigationMenu.d.ts +3 -14
  82. package/dist/components/NavigationMenu.js +22 -38
  83. package/dist/components/NumberField.js +6 -0
  84. package/dist/components/Popover.d.ts +21 -44
  85. package/dist/components/Popover.js +33 -23
  86. package/dist/components/PreviewCard.d.ts +20 -18
  87. package/dist/components/PreviewCard.js +30 -20
  88. package/dist/components/PricingPage.js +30 -29
  89. package/dist/components/Progress.d.ts +7 -3
  90. package/dist/components/Progress.js +9 -4
  91. package/dist/components/PromptInput.d.ts +2 -2
  92. package/dist/components/PromptInput.js +139 -54
  93. package/dist/components/Queue.d.ts +7 -7
  94. package/dist/components/Queue.js +6 -6
  95. package/dist/components/RadioGroup.d.ts +10 -9
  96. package/dist/components/RadioGroup.js +8 -9
  97. package/dist/components/Reasoning.d.ts +4 -4
  98. package/dist/components/Reasoning.js +10 -6
  99. package/dist/components/ScrollArea.d.ts +2 -9
  100. package/dist/components/ScrollArea.js +5 -23
  101. package/dist/components/Select.d.ts +2 -2
  102. package/dist/components/Select.js +100 -134
  103. package/dist/components/Slider.d.ts +10 -7
  104. package/dist/components/Slider.js +12 -11
  105. package/dist/components/Sources.d.ts +4 -4
  106. package/dist/components/Sources.js +8 -5
  107. package/dist/components/Stepper.js +1 -1
  108. package/dist/components/Switch.d.ts +6 -3
  109. package/dist/components/Switch.js +7 -4
  110. package/dist/components/Tabs.d.ts +2 -2
  111. package/dist/components/Tabs.js +9 -4
  112. package/dist/components/Task.d.ts +4 -4
  113. package/dist/components/Task.js +10 -6
  114. package/dist/components/Terminal.d.ts +2 -2
  115. package/dist/components/Terminal.js +5 -5
  116. package/dist/components/TestResults.d.ts +4 -4
  117. package/dist/components/TestResults.js +5 -5
  118. package/dist/components/ThinkChat.d.ts +9 -2
  119. package/dist/components/ThinkChat.js +1 -1
  120. package/dist/components/ThinkChatActivity.d.ts +1 -1
  121. package/dist/components/ThinkChatActivity.js +1 -1
  122. package/dist/components/ThinkChatToolPanels.js +8 -8
  123. package/dist/components/ThinkExecutionWorkbench.js +28 -28
  124. package/dist/components/ThinkFullApp.js +8 -8
  125. package/dist/components/ThinkThreadPicker.js +1 -1
  126. package/dist/components/ThinkThreadShell.js +5 -5
  127. package/dist/components/Toast.js +7 -0
  128. package/dist/components/ToggleGroup.d.ts +6 -2
  129. package/dist/components/ToggleGroup.js +6 -2
  130. package/dist/components/Toolbar.js +6 -0
  131. package/dist/components/Tooltip.d.ts +36 -27
  132. package/dist/components/Tooltip.js +45 -29
  133. package/dist/components/WebPreview.d.ts +1 -1
  134. package/dist/components/WebPreview.js +3 -3
  135. package/dist/components/WorkspaceExplorer.d.ts +6 -8
  136. package/dist/components/WorkspaceExplorer.js +6 -6
  137. package/dist/components/icons.d.ts +2 -2
  138. package/dist/components/icons.js +2 -2
  139. package/dist/{copy-button-C6JSKtFE.js → copy-button-DUMLYdsk.js} +7 -6
  140. package/dist/{copy-button-BKXqGiNm.d.ts → copy-button-DtPMgN7e.d.ts} +3 -2
  141. package/dist/icons-Ba9THQKz.js +64 -0
  142. package/dist/icons-CUCz_Sft.d.ts +210 -0
  143. package/dist/styles/accessibility.css +14 -0
  144. package/dist/styles/accordion.css +21 -61
  145. package/dist/styles/activity.css +23 -58
  146. package/dist/styles/agent-chat.css +45 -4
  147. package/dist/styles/agent-connection.css +8 -10
  148. package/dist/styles/alert-dialog.css +20 -26
  149. package/dist/styles/artifact.css +6 -6
  150. package/dist/styles/attachment-preview.css +1 -1
  151. package/dist/styles/autocomplete.css +5 -170
  152. package/dist/styles/avatar.css +8 -8
  153. package/dist/styles/badge.css +8 -10
  154. package/dist/styles/base-ui-motion.css +176 -0
  155. package/dist/styles/base.css +19 -25
  156. package/dist/styles/browser-live-view.css +7 -7
  157. package/dist/styles/browser-replay.css +5 -5
  158. package/dist/styles/browser-run-panel.css +5 -5
  159. package/dist/styles/button.css +48 -43
  160. package/dist/styles/card.css +3 -5
  161. package/dist/styles/chain-of-thought.css +14 -70
  162. package/dist/styles/chatgpt-sign-in-screen.css +3 -3
  163. package/dist/styles/checkbox-group.css +1 -1
  164. package/dist/styles/checkbox.css +3 -7
  165. package/dist/styles/code-block.css +10 -10
  166. package/dist/styles/codex-model-selector.css +33 -44
  167. package/dist/styles/collapsible.css +11 -27
  168. package/dist/styles/combobox.css +3 -149
  169. package/dist/styles/commit.css +19 -35
  170. package/dist/styles/context-menu.css +1 -77
  171. package/dist/styles/context.css +12 -12
  172. package/dist/styles/conversation.css +7 -7
  173. package/dist/styles/dialog.css +34 -55
  174. package/dist/styles/environment-variables.css +10 -10
  175. package/dist/styles/field.css +16 -58
  176. package/dist/styles/fieldset.css +2 -2
  177. package/dist/styles/file-tree.css +7 -9
  178. package/dist/styles/index.css +8 -1
  179. package/dist/styles/input.css +1 -51
  180. package/dist/styles/label.css +2 -2
  181. package/dist/styles/marker.css +2 -4
  182. package/dist/styles/mcp-server-picker.css +5 -5
  183. package/dist/styles/menu.css +6 -153
  184. package/dist/styles/menubar.css +6 -105
  185. package/dist/styles/message-scroller.css +1 -1
  186. package/dist/styles/message.css +86 -8
  187. package/dist/styles/meter.css +4 -20
  188. package/dist/styles/model-selector.css +13 -13
  189. package/dist/styles/navigation-menu.css +14 -54
  190. package/dist/styles/number-field.css +8 -23
  191. package/dist/styles/popover.css +13 -68
  192. package/dist/styles/preview-card.css +5 -46
  193. package/dist/styles/pricing-page.css +43 -43
  194. package/dist/styles/progress.css +7 -16
  195. package/dist/styles/prompt-input.css +95 -44
  196. package/dist/styles/queue.css +12 -28
  197. package/dist/styles/radio.css +4 -8
  198. package/dist/styles/reasoning.css +3 -62
  199. package/dist/styles/recipes.css +475 -0
  200. package/dist/styles/select.css +7 -103
  201. package/dist/styles/shell.css +3 -3
  202. package/dist/styles/slider.css +5 -7
  203. package/dist/styles/sources.css +9 -66
  204. package/dist/styles/stepper.css +16 -14
  205. package/dist/styles/streamdown.css +9 -9
  206. package/dist/styles/switch.css +4 -7
  207. package/dist/styles/tabs.css +7 -8
  208. package/dist/styles/task.css +13 -42
  209. package/dist/styles/terminal.css +7 -7
  210. package/dist/styles/test-results.css +21 -37
  211. package/dist/styles/think-execution-workbench.css +23 -23
  212. package/dist/styles/think-full-app.css +12 -20
  213. package/dist/styles/think-resize-handle.css +2 -2
  214. package/dist/styles/think-thread-picker.css +19 -10
  215. package/dist/styles/think-thread-shell.css +7 -7
  216. package/dist/styles/toast.css +14 -25
  217. package/dist/styles/toggle-group.css +16 -14
  218. package/dist/styles/toggle.css +14 -15
  219. package/dist/styles/toolbar.css +13 -25
  220. package/dist/styles/tooltip.css +6 -16
  221. package/dist/styles/web-preview.css +15 -15
  222. package/dist/styles/workspace-explorer.css +14 -13
  223. package/dist/utils/codex-model-catalog.d.ts +142 -0
  224. package/dist/utils/codex-model-catalog.js +112 -0
  225. package/dist/utils/structured-code.d.ts +1 -1
  226. package/package.json +8 -2
  227. package/dist/Select-CRsKCJ9x.d.ts +0 -200
  228. package/dist/icons-CbjtbIJK.d.ts +0 -51
  229. package/dist/icons-D2Q5n5C1.js +0 -291
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/react-components",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
5
5
  "homepage": "https://design-system.sigvelo.com",
6
6
  "bugs": {
@@ -50,14 +50,16 @@
50
50
  "@streamdown/mermaid": "^1.0.2",
51
51
  "anser": "^2.3.5",
52
52
  "cloudflare": "^6.5.0",
53
+ "lucide-react": "^1.23.0",
53
54
  "shiki": "^3.23.0",
54
55
  "streamdown": "^2.5.0",
55
- "@mcp-b/design-tokens": "0.12.0"
56
+ "@mcp-b/design-tokens": "0.13.0"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@ai-sdk/react": "^3.0.222",
59
60
  "@cloudflare/shell": "^0.4.1",
60
61
  "@cloudflare/think": "^0.12.1",
62
+ "@cloudflare/voice": "^0.3.3",
61
63
  "@storybook/addon-a11y": "^10.4.6",
62
64
  "@storybook/addon-docs": "^10.4.6",
63
65
  "@storybook/addon-vitest": "^10.4.6",
@@ -84,6 +86,7 @@
84
86
  "@ai-sdk/react": "^3.0.194",
85
87
  "@cloudflare/shell": "^0.4.1",
86
88
  "@cloudflare/think": "^0.12.1",
89
+ "@cloudflare/voice": "^0.3.3",
87
90
  "agents": "^0.17.3",
88
91
  "ai": "^6.0.182",
89
92
  "react": "^19.0.0",
@@ -99,6 +102,9 @@
99
102
  "@cloudflare/think": {
100
103
  "optional": true
101
104
  },
105
+ "@cloudflare/voice": {
106
+ "optional": true
107
+ },
102
108
  "agents": {
103
109
  "optional": true
104
110
  },
@@ -1,200 +0,0 @@
1
- import * as React from "react";
2
- import { Select } from "@base-ui/react/select";
3
-
4
- //#region src/components/Select.d.ts
5
- interface SelectProps extends React.ComponentPropsWithRef<typeof Select.Root> {
6
- /**
7
- * Static list of items for label resolution. Needed when options are inside
8
- * a portal (not mounted until opened) so SelectValue can display the correct
9
- * label on initial render.
10
- */
11
- items?: Array<{
12
- label: React.ReactNode;
13
- value: unknown;
14
- }>;
15
- }
16
- interface SelectTriggerProps extends Omit<Select.Trigger.Props, "className"> {
17
- className?: string;
18
- /**
19
- * The size of the select trigger.
20
- * @default 'default'
21
- */
22
- size?: "sm" | "md" | "default";
23
- }
24
- interface SelectValueProps extends Omit<Select.Value.Props, "children"> {
25
- placeholder?: string;
26
- children?: Select.Value.Props["children"];
27
- }
28
- interface SelectPortalProps extends Select.Portal.Props {}
29
- interface SelectPositionerProps extends Select.Positioner.Props {}
30
- interface SelectPopupProps extends Omit<Select.Popup.Props, "className"> {
31
- className?: string;
32
- }
33
- interface SelectListProps extends Omit<Select.List.Props, "className"> {
34
- className?: string;
35
- }
36
- interface SelectOptionProps extends Omit<Select.Item.Props, "className"> {
37
- className?: string;
38
- }
39
- interface SelectOptionGroupProps extends Omit<Select.Group.Props, "className"> {
40
- className?: string;
41
- label?: string;
42
- }
43
- type SelectItemProps = SelectOptionProps;
44
- type SelectGroupProps = SelectOptionGroupProps;
45
- interface SelectLabelProps extends Omit<Select.GroupLabel.Props, "className"> {
46
- className?: string;
47
- }
48
- interface SelectSeparatorProps extends Omit<Select.Separator.Props, "className"> {
49
- className?: string;
50
- }
51
- interface SelectScrollUpButtonProps extends Omit<Select.ScrollUpArrow.Props, "className"> {
52
- className?: string;
53
- }
54
- interface SelectScrollDownButtonProps extends Omit<Select.ScrollDownArrow.Props, "className"> {
55
- className?: string;
56
- }
57
- type SelectPlacementProps = Pick<SelectPositionerProps, "anchor" | "positionMethod" | "side" | "sideOffset" | "align" | "alignOffset" | "collisionBoundary" | "collisionPadding" | "sticky" | "arrowPadding" | "disableAnchorTracking" | "collisionAvoidance"> & {
58
- position?: "popper" | "item-aligned";
59
- };
60
- type SelectContentProps = SelectPopupProps & SelectPlacementProps;
61
- /**
62
- * A select component for choosing from a list of options.
63
- *
64
- * @example
65
- * ```tsx
66
- * <Select defaultValue="option1">
67
- * <SelectTrigger>
68
- * <SelectValue placeholder="Select..." />
69
- * </SelectTrigger>
70
- * <SelectPortal>
71
- * <SelectPositioner>
72
- * <SelectPopup>
73
- * <SelectList>
74
- * <SelectOption value="option1">Option 1</SelectOption>
75
- * <SelectOption value="option2">Option 2</SelectOption>
76
- * </SelectList>
77
- * </SelectPopup>
78
- * </SelectPositioner>
79
- * </SelectPortal>
80
- * </Select>
81
- * ```
82
- *
83
- * @see {@link https://base-ui.com/react/components/select | Base UI Select}
84
- */
85
- declare function Select$1({
86
- items,
87
- ...props
88
- }: SelectProps): React.JSX.Element;
89
- declare function SelectTrigger({
90
- size,
91
- className,
92
- children,
93
- ref,
94
- ...props
95
- }: SelectTriggerProps & {
96
- ref?: React.Ref<HTMLButtonElement>;
97
- }): React.JSX.Element;
98
- declare function SelectValue({
99
- placeholder,
100
- children,
101
- ref,
102
- ...props
103
- }: SelectValueProps & {
104
- ref?: React.Ref<HTMLSpanElement>;
105
- }): React.JSX.Element;
106
- declare const SelectPortal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
107
- declare function SelectPositioner({
108
- className,
109
- ref,
110
- ...props
111
- }: SelectPositionerProps & {
112
- className?: string;
113
- } & {
114
- ref?: React.Ref<HTMLDivElement>;
115
- }): React.JSX.Element;
116
- declare function SelectPopup({
117
- className,
118
- ref,
119
- ...props
120
- }: SelectPopupProps & {
121
- ref?: React.Ref<HTMLDivElement>;
122
- }): React.JSX.Element;
123
- declare function SelectContent({
124
- anchor,
125
- positionMethod,
126
- side,
127
- sideOffset,
128
- align,
129
- alignOffset,
130
- collisionBoundary,
131
- collisionPadding,
132
- sticky,
133
- arrowPadding,
134
- disableAnchorTracking,
135
- collisionAvoidance,
136
- position,
137
- children,
138
- ...props
139
- }: SelectContentProps & {
140
- ref?: React.Ref<HTMLDivElement>;
141
- }): React.JSX.Element;
142
- declare function SelectList({
143
- className,
144
- ref,
145
- ...props
146
- }: SelectListProps & {
147
- ref?: React.Ref<HTMLDivElement>;
148
- }): React.JSX.Element;
149
- declare function SelectOption({
150
- className,
151
- value,
152
- children,
153
- ref,
154
- ...props
155
- }: SelectOptionProps & {
156
- ref?: React.Ref<HTMLDivElement>;
157
- }): React.JSX.Element;
158
- declare const SelectItem: typeof SelectOption;
159
- declare function SelectOptionGroup({
160
- label,
161
- className,
162
- children,
163
- ref,
164
- ...props
165
- }: SelectOptionGroupProps & {
166
- ref?: React.Ref<HTMLDivElement>;
167
- }): React.JSX.Element;
168
- declare const SelectGroup: typeof SelectOptionGroup;
169
- declare function SelectLabel({
170
- className,
171
- ref,
172
- ...props
173
- }: SelectLabelProps & {
174
- ref?: React.Ref<HTMLDivElement>;
175
- }): React.JSX.Element;
176
- declare function SelectSeparator({
177
- className,
178
- ref,
179
- ...props
180
- }: SelectSeparatorProps & {
181
- ref?: React.Ref<HTMLDivElement>;
182
- }): React.JSX.Element;
183
- declare function SelectScrollUpButton({
184
- className,
185
- children,
186
- ref,
187
- ...props
188
- }: SelectScrollUpButtonProps & {
189
- ref?: React.Ref<HTMLDivElement>;
190
- }): React.JSX.Element;
191
- declare function SelectScrollDownButton({
192
- className,
193
- children,
194
- ref,
195
- ...props
196
- }: SelectScrollDownButtonProps & {
197
- ref?: React.Ref<HTMLDivElement>;
198
- }): React.JSX.Element;
199
- //#endregion
200
- export { SelectTriggerProps as A, SelectScrollDownButton as C, SelectSeparator as D, SelectScrollUpButtonProps as E, SelectValueProps as M, SelectSeparatorProps as O, SelectProps as S, SelectScrollUpButton as T, SelectPopupProps as _, SelectGroupProps as a, SelectPositioner as b, SelectLabel as c, SelectListProps as d, SelectOption as f, SelectPopup as g, SelectOptionProps as h, SelectGroup as i, SelectValue as j, SelectTrigger as k, SelectLabelProps as l, SelectOptionGroupProps as m, SelectContent as n, SelectItem as o, SelectOptionGroup as p, SelectContentProps as r, SelectItemProps as s, Select$1 as t, SelectList as u, SelectPortal as v, SelectScrollDownButtonProps as w, SelectPositionerProps as x, SelectPortalProps as y };
@@ -1,51 +0,0 @@
1
- import * as React from "react";
2
-
3
- //#region src/components/_internal/icons.d.ts
4
- /**
5
- * Small inline-SVG icon set used across AI chat and code components.
6
- *
7
- * All icons are 16x16 by default, use `currentColor` for strokes/fills, and
8
- * accept standard SVG props so consumers can override size and aria-hidden.
9
- */
10
- type IconProps = Omit<React.SVGAttributes<SVGSVGElement>, "width" | "height"> & {
11
- size?: number | string;
12
- };
13
- declare const ChevronRightIcon: (props: IconProps) => React.JSX.Element;
14
- declare const ChevronDownIcon: (props: IconProps) => React.JSX.Element;
15
- declare const ChevronLeftIcon: (props: IconProps) => React.JSX.Element;
16
- declare const CheckIcon: (props: IconProps) => React.JSX.Element;
17
- declare const XIcon: (props: IconProps) => React.JSX.Element;
18
- declare const PencilIcon: (props: IconProps) => React.JSX.Element;
19
- declare const CopyIcon: (props: IconProps) => React.JSX.Element;
20
- declare const EyeIcon: (props: IconProps) => React.JSX.Element;
21
- declare const EyeOffIcon: (props: IconProps) => React.JSX.Element;
22
- declare const FolderIcon: (props: IconProps) => React.JSX.Element;
23
- declare const FolderOpenIcon: (props: IconProps) => React.JSX.Element;
24
- declare const FileIcon: (props: IconProps) => React.JSX.Element;
25
- declare const PaperclipIcon: (props: IconProps) => React.JSX.Element;
26
- declare const PlusIcon: (props: IconProps) => React.JSX.Element;
27
- declare const MinusIcon: (props: IconProps) => React.JSX.Element;
28
- declare const PlayIcon: (props: IconProps) => React.JSX.Element;
29
- declare const PauseIcon: (props: IconProps) => React.JSX.Element;
30
- declare const SquareIcon: (props: IconProps) => React.JSX.Element;
31
- declare const ArrowLeftIcon: (props: IconProps) => React.JSX.Element;
32
- declare const ArrowRightIcon: (props: IconProps) => React.JSX.Element;
33
- declare const ArrowDownIcon: (props: IconProps) => React.JSX.Element;
34
- declare const ArrowUpIcon: (props: IconProps) => React.JSX.Element;
35
- declare const DownloadIcon: (props: IconProps) => React.JSX.Element;
36
- declare const RefreshIcon: (props: IconProps) => React.JSX.Element;
37
- declare const DotIcon: (props: IconProps) => React.JSX.Element;
38
- declare const EllipsisIcon: (props: IconProps) => React.JSX.Element;
39
- declare const SpinnerIcon: (props: IconProps) => React.JSX.Element;
40
- declare const SearchIcon: (props: IconProps) => React.JSX.Element;
41
- declare const SidebarIcon: (props: IconProps) => React.JSX.Element;
42
- declare const TerminalIcon: (props: IconProps) => React.JSX.Element;
43
- declare const LinkIcon: (props: IconProps) => React.JSX.Element;
44
- declare const WarningIcon: (props: IconProps) => React.JSX.Element;
45
- declare const WrenchIcon: (props: IconProps) => React.JSX.Element;
46
- declare const InfoIcon: (props: IconProps) => React.JSX.Element;
47
- declare const ImageIcon: (props: IconProps) => React.JSX.Element;
48
- declare const MonitorIcon: (props: IconProps) => React.JSX.Element;
49
- declare const MaximizeIcon: (props: IconProps) => React.JSX.Element;
50
- //#endregion
51
- export { RefreshIcon as A, MinusIcon as C, PencilIcon as D, PauseIcon as E, TerminalIcon as F, WarningIcon as I, WrenchIcon as L, SidebarIcon as M, SpinnerIcon as N, PlayIcon as O, SquareIcon as P, XIcon as R, MaximizeIcon as S, PaperclipIcon as T, FolderOpenIcon as _, CheckIcon as a, InfoIcon as b, ChevronRightIcon as c, DownloadIcon as d, EllipsisIcon as f, FolderIcon as g, FileIcon as h, ArrowUpIcon as i, SearchIcon as j, PlusIcon as k, CopyIcon as l, EyeOffIcon as m, ArrowLeftIcon as n, ChevronDownIcon as o, EyeIcon as p, ArrowRightIcon as r, ChevronLeftIcon as s, ArrowDownIcon as t, DotIcon as u, IconProps as v, MonitorIcon as w, LinkIcon as x, ImageIcon as y };
@@ -1,291 +0,0 @@
1
- import "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- //#region src/components/_internal/icons.tsx
4
- function Icon({ children, size = 16, strokeWidth = 1.75, ...props }) {
5
- return /* @__PURE__ */ jsx("svg", {
6
- width: size,
7
- height: size,
8
- viewBox: "0 0 16 16",
9
- fill: "none",
10
- stroke: "currentColor",
11
- strokeWidth,
12
- strokeLinecap: "round",
13
- strokeLinejoin: "round",
14
- "aria-hidden": "true",
15
- focusable: "false",
16
- ...props,
17
- children
18
- });
19
- }
20
- const ChevronRightIcon = (props) => /* @__PURE__ */ jsx(Icon, {
21
- ...props,
22
- children: /* @__PURE__ */ jsx("path", { d: "M6 3.5L10.5 8L6 12.5" })
23
- });
24
- const ChevronDownIcon = (props) => /* @__PURE__ */ jsx(Icon, {
25
- ...props,
26
- children: /* @__PURE__ */ jsx("path", { d: "M3.5 6L8 10.5L12.5 6" })
27
- });
28
- const ChevronLeftIcon = (props) => /* @__PURE__ */ jsx(Icon, {
29
- ...props,
30
- children: /* @__PURE__ */ jsx("path", { d: "M10 3.5L5.5 8L10 12.5" })
31
- });
32
- const CheckIcon = (props) => /* @__PURE__ */ jsx(Icon, {
33
- ...props,
34
- children: /* @__PURE__ */ jsx("path", { d: "M3 8.5L6.5 12L13 4.5" })
35
- });
36
- const XIcon = (props) => /* @__PURE__ */ jsx(Icon, {
37
- ...props,
38
- children: /* @__PURE__ */ jsx("path", { d: "M4 4L12 12M12 4L4 12" })
39
- });
40
- const PencilIcon = (props) => /* @__PURE__ */ jsx(Icon, {
41
- ...props,
42
- children: /* @__PURE__ */ jsx("path", { d: "M11.1 2.6a1.4 1.4 0 0 1 2 2L5.5 12.2l-2.8.8.8-2.8z" })
43
- });
44
- const CopyIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
45
- ...props,
46
- children: [/* @__PURE__ */ jsx("rect", {
47
- x: "5",
48
- y: "5",
49
- width: "8",
50
- height: "8",
51
- rx: "1.5"
52
- }), /* @__PURE__ */ jsx("path", { d: "M11 5V4a1.5 1.5 0 0 0-1.5-1.5h-5A1.5 1.5 0 0 0 3 4v5A1.5 1.5 0 0 0 4.5 10.5H5" })]
53
- });
54
- const EyeIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
55
- ...props,
56
- children: [/* @__PURE__ */ jsx("path", { d: "M1.5 8S4 3 8 3s6.5 5 6.5 5-2.5 5-6.5 5S1.5 8 1.5 8Z" }), /* @__PURE__ */ jsx("circle", {
57
- cx: "8",
58
- cy: "8",
59
- r: "2"
60
- })]
61
- });
62
- const EyeOffIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
63
- ...props,
64
- children: [
65
- /* @__PURE__ */ jsx("path", { d: "M2 2l12 12" }),
66
- /* @__PURE__ */ jsx("path", { d: "M6.5 4A7.5 7.5 0 0 1 8 3.75c4 0 6.5 5 6.5 5a13 13 0 0 1-1.75 2.5" }),
67
- /* @__PURE__ */ jsx("path", { d: "M9.85 10.08A2 2 0 0 1 6.08 6.15" }),
68
- /* @__PURE__ */ jsx("path", { d: "M4.5 5.5C2.5 7 1.5 8 1.5 8s2.5 5 6.5 5c.8 0 1.55-.15 2.25-.42" })
69
- ]
70
- });
71
- const FolderIcon = (props) => /* @__PURE__ */ jsx(Icon, {
72
- ...props,
73
- children: /* @__PURE__ */ jsx("path", { d: "M1.5 4A1.5 1.5 0 0 1 3 2.5h3l1.5 1.5H13A1.5 1.5 0 0 1 14.5 5.5v6A1.5 1.5 0 0 1 13 13H3a1.5 1.5 0 0 1-1.5-1.5V4Z" })
74
- });
75
- const FolderOpenIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
76
- ...props,
77
- children: [/* @__PURE__ */ jsx("path", { d: "M1.5 11.5v-7A1.5 1.5 0 0 1 3 3h3l1.5 1.5H13A1.5 1.5 0 0 1 14.5 6v1" }), /* @__PURE__ */ jsx("path", { d: "M1.5 11.5 3.5 7H15l-2 4.5H1.5Z" })]
78
- });
79
- const FileIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
80
- ...props,
81
- children: [/* @__PURE__ */ jsx("path", { d: "M9 1.5H4A1.5 1.5 0 0 0 2.5 3v10A1.5 1.5 0 0 0 4 14.5h8A1.5 1.5 0 0 0 13.5 13V6L9 1.5Z" }), /* @__PURE__ */ jsx("path", { d: "M9 1.5V6h4.5" })]
82
- });
83
- const PaperclipIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
84
- ...props,
85
- children: [/* @__PURE__ */ jsx("path", { d: "M5.25 8.25 9.9 3.6a2.45 2.45 0 0 1 3.5 3.45l-5.6 5.6a3.25 3.25 0 0 1-4.6-4.6l5.4-5.4" }), /* @__PURE__ */ jsx("path", { d: "M6.6 9.6 11 5.2" })]
86
- });
87
- const PlusIcon = (props) => /* @__PURE__ */ jsx(Icon, {
88
- ...props,
89
- children: /* @__PURE__ */ jsx("path", { d: "M8 3v10M3 8h10" })
90
- });
91
- const MinusIcon = (props) => /* @__PURE__ */ jsx(Icon, {
92
- ...props,
93
- children: /* @__PURE__ */ jsx("path", { d: "M3 8h10" })
94
- });
95
- const PlayIcon = (props) => /* @__PURE__ */ jsx(Icon, {
96
- ...props,
97
- children: /* @__PURE__ */ jsx("path", {
98
- d: "M4 3l9 5-9 5V3Z",
99
- fill: "currentColor"
100
- })
101
- });
102
- const PauseIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
103
- ...props,
104
- children: [/* @__PURE__ */ jsx("path", { d: "M5.5 3.5v9" }), /* @__PURE__ */ jsx("path", { d: "M10.5 3.5v9" })]
105
- });
106
- const SquareIcon = (props) => /* @__PURE__ */ jsx(Icon, {
107
- ...props,
108
- children: /* @__PURE__ */ jsx("rect", {
109
- x: "3.5",
110
- y: "3.5",
111
- width: "9",
112
- height: "9",
113
- rx: "1"
114
- })
115
- });
116
- const ArrowLeftIcon = (props) => /* @__PURE__ */ jsx(Icon, {
117
- ...props,
118
- children: /* @__PURE__ */ jsx("path", { d: "M13 8H3M7 4L3 8l4 4" })
119
- });
120
- const ArrowRightIcon = (props) => /* @__PURE__ */ jsx(Icon, {
121
- ...props,
122
- children: /* @__PURE__ */ jsx("path", { d: "M3 8h10M9 4l4 4-4 4" })
123
- });
124
- const ArrowDownIcon = (props) => /* @__PURE__ */ jsx(Icon, {
125
- ...props,
126
- children: /* @__PURE__ */ jsx("path", { d: "M8 3v10M4 9l4 4 4-4" })
127
- });
128
- const ArrowUpIcon = (props) => /* @__PURE__ */ jsx(Icon, {
129
- ...props,
130
- children: /* @__PURE__ */ jsx("path", { d: "M8 13V3M4 7l4-4 4 4" })
131
- });
132
- const DownloadIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
133
- ...props,
134
- children: [/* @__PURE__ */ jsx("path", { d: "M8 2v8M4 7l4 4 4-4" }), /* @__PURE__ */ jsx("path", { d: "M2.5 13.5h11" })]
135
- });
136
- const RefreshIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
137
- ...props,
138
- children: [
139
- /* @__PURE__ */ jsx("path", { d: "M13.5 3v3h-3" }),
140
- /* @__PURE__ */ jsx("path", { d: "M2.5 13v-3h3" }),
141
- /* @__PURE__ */ jsx("path", { d: "M3.5 7a5 5 0 0 1 8.5-2L13.5 6" }),
142
- /* @__PURE__ */ jsx("path", { d: "M12.5 9a5 5 0 0 1-8.5 2L2.5 10" })
143
- ]
144
- });
145
- const DotIcon = (props) => /* @__PURE__ */ jsx(Icon, {
146
- ...props,
147
- children: /* @__PURE__ */ jsx("circle", {
148
- cx: "8",
149
- cy: "8",
150
- r: "2.5",
151
- fill: "currentColor",
152
- stroke: "none"
153
- })
154
- });
155
- const EllipsisIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
156
- ...props,
157
- children: [
158
- /* @__PURE__ */ jsx("circle", {
159
- cx: "3.5",
160
- cy: "8",
161
- r: "0.75",
162
- fill: "currentColor",
163
- stroke: "none"
164
- }),
165
- /* @__PURE__ */ jsx("circle", {
166
- cx: "8",
167
- cy: "8",
168
- r: "0.75",
169
- fill: "currentColor",
170
- stroke: "none"
171
- }),
172
- /* @__PURE__ */ jsx("circle", {
173
- cx: "12.5",
174
- cy: "8",
175
- r: "0.75",
176
- fill: "currentColor",
177
- stroke: "none"
178
- })
179
- ]
180
- });
181
- const SpinnerIcon = (props) => /* @__PURE__ */ jsx(Icon, {
182
- ...props,
183
- children: /* @__PURE__ */ jsx("path", { d: "M8 1.5A6.5 6.5 0 1 1 1.5 8" })
184
- });
185
- const SearchIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
186
- ...props,
187
- children: [/* @__PURE__ */ jsx("circle", {
188
- cx: "7",
189
- cy: "7",
190
- r: "4.5"
191
- }), /* @__PURE__ */ jsx("path", { d: "M13.5 13.5 10.5 10.5" })]
192
- });
193
- const SidebarIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
194
- ...props,
195
- children: [/* @__PURE__ */ jsx("rect", {
196
- x: "2.5",
197
- y: "2.5",
198
- width: "11",
199
- height: "11",
200
- rx: "1.5"
201
- }), /* @__PURE__ */ jsx("path", { d: "M6 2.5v11" })]
202
- });
203
- const TerminalIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
204
- ...props,
205
- children: [
206
- /* @__PURE__ */ jsx("rect", {
207
- x: "1.5",
208
- y: "2.5",
209
- width: "13",
210
- height: "11",
211
- rx: "1.5"
212
- }),
213
- /* @__PURE__ */ jsx("path", { d: "M4 6l2 2-2 2" }),
214
- /* @__PURE__ */ jsx("path", { d: "M8.5 10h3" })
215
- ]
216
- });
217
- const LinkIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
218
- ...props,
219
- children: [/* @__PURE__ */ jsx("path", { d: "M7 9a2.5 2.5 0 0 0 3.5 0l2-2a2.5 2.5 0 0 0-3.5-3.5L8 4.5" }), /* @__PURE__ */ jsx("path", { d: "M9 7a2.5 2.5 0 0 0-3.5 0l-2 2a2.5 2.5 0 0 0 3.5 3.5L8 11.5" })]
220
- });
221
- const WarningIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
222
- ...props,
223
- children: [
224
- /* @__PURE__ */ jsx("path", { d: "M7.13 2.4 1.3 12a1 1 0 0 0 .87 1.5h11.66a1 1 0 0 0 .87-1.5L8.87 2.4a1 1 0 0 0-1.74 0Z" }),
225
- /* @__PURE__ */ jsx("path", { d: "M8 6v3.5" }),
226
- /* @__PURE__ */ jsx("path", { d: "M8 11.5v.01" })
227
- ]
228
- });
229
- const WrenchIcon = (props) => /* @__PURE__ */ jsx(Icon, {
230
- viewBox: "0 0 24 24",
231
- ...props,
232
- children: /* @__PURE__ */ jsx("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" })
233
- });
234
- const InfoIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
235
- ...props,
236
- children: [
237
- /* @__PURE__ */ jsx("circle", {
238
- cx: "8",
239
- cy: "8",
240
- r: "6"
241
- }),
242
- /* @__PURE__ */ jsx("path", { d: "M8 7v4" }),
243
- /* @__PURE__ */ jsx("path", { d: "M8 5v.01" })
244
- ]
245
- });
246
- const ImageIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
247
- viewBox: "0 0 24 24",
248
- ...props,
249
- children: [
250
- /* @__PURE__ */ jsx("rect", {
251
- width: "18",
252
- height: "18",
253
- x: "3",
254
- y: "3",
255
- rx: "2",
256
- ry: "2"
257
- }),
258
- /* @__PURE__ */ jsx("circle", {
259
- cx: "9",
260
- cy: "9",
261
- r: "2"
262
- }),
263
- /* @__PURE__ */ jsx("path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" })
264
- ]
265
- });
266
- const MonitorIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
267
- viewBox: "0 0 24 24",
268
- ...props,
269
- children: [
270
- /* @__PURE__ */ jsx("rect", {
271
- width: "20",
272
- height: "14",
273
- x: "2",
274
- y: "3",
275
- rx: "2"
276
- }),
277
- /* @__PURE__ */ jsx("path", { d: "M8 21h8" }),
278
- /* @__PURE__ */ jsx("path", { d: "M12 17v4" })
279
- ]
280
- });
281
- const MaximizeIcon = (props) => /* @__PURE__ */ jsxs(Icon, {
282
- ...props,
283
- children: [
284
- /* @__PURE__ */ jsx("path", { d: "M9.5 3h3.5v3.5" }),
285
- /* @__PURE__ */ jsx("path", { d: "M13 3L9 7" }),
286
- /* @__PURE__ */ jsx("path", { d: "M6.5 13H3V9.5" }),
287
- /* @__PURE__ */ jsx("path", { d: "M3 13l4-4" })
288
- ]
289
- });
290
- //#endregion
291
- export { SearchIcon as A, MonitorIcon as C, PlayIcon as D, PencilIcon as E, WarningIcon as F, WrenchIcon as I, XIcon as L, SpinnerIcon as M, SquareIcon as N, PlusIcon as O, TerminalIcon as P, MinusIcon as S, PauseIcon as T, FolderOpenIcon as _, CheckIcon as a, LinkIcon as b, ChevronRightIcon as c, DownloadIcon as d, EllipsisIcon as f, FolderIcon as g, FileIcon as h, ArrowUpIcon as i, SidebarIcon as j, RefreshIcon as k, CopyIcon as l, EyeOffIcon as m, ArrowLeftIcon as n, ChevronDownIcon as o, EyeIcon as p, ArrowRightIcon as r, ChevronLeftIcon as s, ArrowDownIcon as t, DotIcon as u, ImageIcon as v, PaperclipIcon as w, MaximizeIcon as x, InfoIcon as y };