@k8ordo/ui 2.3.0 → 3.0.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.
- package/README.md +6 -5
- package/dist/components/ai/_internal/attachment-preview.mjs +3 -3
- package/dist/components/ai/_internal/collapsible.mjs +1 -1
- package/dist/components/ai/conversation/conversation.mjs +1 -1
- package/dist/components/ai/message/message.mjs +5 -3
- package/dist/components/ai/prompt-input/prompt-input.mjs +3 -3
- package/dist/components/ai/reasoning/reasoning.mjs +1 -1
- package/dist/components/ai/source/source.mjs +2 -2
- package/dist/components/ai/tool-invocation/tool-invocation.mjs +2 -1
- package/dist/components/buttons/copy-button/copy-button.mjs +3 -1
- package/dist/components/data-display/accordion/accordion-button.mjs +1 -1
- package/dist/components/data-display/carousel/carousel.mjs +1 -1
- package/dist/components/data-display/data-table/data-table.mjs +1 -1
- package/dist/components/data-display/tree/tree.mjs +1 -1
- package/dist/components/feedback/alert/alert.mjs +3 -2
- package/dist/components/feedback/callout/callout.mjs +1 -1
- package/dist/components/form/autocomplete/autocomplete.mjs +3 -3
- package/dist/components/form/calendar/calendar.mjs +1 -1
- package/dist/components/form/checkbox/checkbox.mjs +2 -1
- package/dist/components/form/checkbox-card/checkbox-card.mjs +1 -1
- package/dist/components/form/combobox/combobox.mjs +1 -1
- package/dist/components/form/date-picker/date-picker.mjs +2 -2
- package/dist/components/form/file-field/file-field.mjs +2 -2
- package/dist/components/form/number-field/number-field.mjs +1 -1
- package/dist/components/form/password-input/password-input.mjs +3 -2
- package/dist/components/form/select/select.mjs +1 -1
- package/dist/components/icons/alert.d.mts +6 -0
- package/dist/components/icons/alert.mjs +17 -0
- package/dist/components/icons/{vertical-writing.d.mts → arrow-down.d.mts} +1 -1
- package/dist/components/icons/arrow-down.mjs +8 -0
- package/dist/components/icons/arrow-left.d.mts +3 -0
- package/dist/components/icons/arrow-left.mjs +8 -0
- package/dist/components/icons/arrow-right.d.mts +3 -0
- package/dist/components/icons/arrow-right.mjs +8 -0
- package/dist/components/icons/{twitter.d.mts → arrow-up.d.mts} +1 -1
- package/dist/components/icons/arrow-up.mjs +8 -0
- package/dist/components/icons/{qiita.d.mts → bell.d.mts} +1 -1
- package/dist/components/icons/bell.mjs +8 -0
- package/dist/components/icons/{github-mark.d.mts → blend.d.mts} +1 -1
- package/dist/components/icons/blend.mjs +16 -0
- package/dist/components/icons/book-text.d.mts +3 -0
- package/dist/components/icons/book-text.mjs +8 -0
- package/dist/components/icons/bookmark.d.mts +3 -0
- package/dist/components/icons/bookmark.mjs +8 -0
- package/dist/components/icons/bot-message.d.mts +3 -0
- package/dist/components/icons/bot-message.mjs +8 -0
- package/dist/components/icons/bot.d.mts +3 -0
- package/dist/components/icons/bot.mjs +14 -0
- package/dist/components/icons/calendar.d.mts +3 -0
- package/dist/components/icons/calendar.mjs +14 -0
- package/dist/components/icons/check.d.mts +3 -0
- package/dist/components/icons/check.mjs +8 -0
- package/dist/components/icons/chevron-down.d.mts +3 -0
- package/dist/components/icons/chevron-down.mjs +8 -0
- package/dist/components/icons/chevron-left.d.mts +3 -0
- package/dist/components/icons/chevron-left.mjs +8 -0
- package/dist/components/icons/chevron-right.d.mts +3 -0
- package/dist/components/icons/chevron-right.mjs +8 -0
- package/dist/components/icons/chevron-up.d.mts +3 -0
- package/dist/components/icons/chevron-up.mjs +8 -0
- package/dist/components/icons/chevron.d.mts +6 -0
- package/dist/components/icons/chevron.mjs +17 -0
- package/dist/components/icons/chevrons-up-down.d.mts +3 -0
- package/dist/components/icons/chevrons-up-down.mjs +8 -0
- package/dist/components/icons/circle-alert.d.mts +3 -0
- package/dist/components/icons/circle-alert.mjs +12 -0
- package/dist/components/icons/circle-check.d.mts +3 -0
- package/dist/components/icons/circle-check.mjs +12 -0
- package/dist/components/icons/circle-help.d.mts +3 -0
- package/dist/components/icons/circle-help.mjs +12 -0
- package/dist/components/icons/circle-x.d.mts +3 -0
- package/dist/components/icons/circle-x.mjs +12 -0
- package/dist/components/icons/clock.d.mts +3 -0
- package/dist/components/icons/clock.mjs +12 -0
- package/dist/components/icons/code.d.mts +3 -0
- package/dist/components/icons/code.mjs +8 -0
- package/dist/components/icons/color-scale.mjs +18 -30
- package/dist/components/icons/contrast.d.mts +3 -0
- package/dist/components/icons/contrast.mjs +15 -0
- package/dist/components/icons/copy.d.mts +3 -0
- package/dist/components/icons/copy.mjs +14 -0
- package/dist/components/icons/download.d.mts +3 -0
- package/dist/components/icons/download.mjs +8 -0
- package/dist/components/icons/ellipsis-vertical.d.mts +3 -0
- package/dist/components/icons/ellipsis-vertical.mjs +27 -0
- package/dist/components/icons/ellipsis.d.mts +3 -0
- package/dist/components/icons/ellipsis.mjs +27 -0
- package/dist/components/icons/external-link.d.mts +3 -0
- package/dist/components/icons/external-link.mjs +8 -0
- package/dist/components/icons/eye-closed.d.mts +3 -0
- package/dist/components/icons/eye-closed.mjs +8 -0
- package/dist/components/icons/eye.d.mts +3 -0
- package/dist/components/icons/eye.mjs +12 -0
- package/dist/components/icons/file-text.d.mts +3 -0
- package/dist/components/icons/file-text.mjs +12 -0
- package/dist/components/icons/file.d.mts +3 -0
- package/dist/components/icons/file.mjs +8 -0
- package/dist/components/icons/filter.d.mts +3 -0
- package/dist/components/icons/filter.mjs +8 -0
- package/dist/components/icons/flask.d.mts +3 -0
- package/dist/components/icons/flask.mjs +8 -0
- package/dist/components/icons/folder-open.d.mts +3 -0
- package/dist/components/icons/folder-open.mjs +8 -0
- package/dist/components/icons/folder.d.mts +3 -0
- package/dist/components/icons/folder.mjs +8 -0
- package/dist/components/icons/git-fork.d.mts +3 -0
- package/dist/components/icons/git-fork.mjs +25 -0
- package/dist/components/icons/globe.d.mts +3 -0
- package/dist/components/icons/globe.mjs +12 -0
- package/dist/components/icons/grid.d.mts +3 -0
- package/dist/components/icons/grid.mjs +37 -0
- package/dist/components/icons/grip-vertical.d.mts +3 -0
- package/dist/components/icons/grip-vertical.mjs +45 -0
- package/dist/components/icons/heart.d.mts +3 -0
- package/dist/components/icons/heart.mjs +8 -0
- package/dist/components/icons/history.d.mts +3 -0
- package/dist/components/icons/history.mjs +8 -0
- package/dist/components/icons/home.d.mts +3 -0
- package/dist/components/icons/home.mjs +8 -0
- package/dist/components/icons/image.d.mts +3 -0
- package/dist/components/icons/image.mjs +22 -0
- package/dist/components/icons/index.d.mts +105 -9
- package/dist/components/icons/index.mjs +105 -8
- package/dist/components/icons/info.d.mts +3 -0
- package/dist/components/icons/info.mjs +12 -0
- package/dist/components/icons/lightbulb.d.mts +3 -0
- package/dist/components/icons/lightbulb.mjs +8 -0
- package/dist/components/icons/line-icon.d.mts +3 -0
- package/dist/components/icons/line-icon.mjs +17 -0
- package/dist/components/icons/link.d.mts +3 -0
- package/dist/components/icons/link.mjs +11 -0
- package/dist/components/icons/list.d.mts +3 -0
- package/dist/components/icons/list.mjs +8 -0
- package/dist/components/icons/lock-open.d.mts +3 -0
- package/dist/components/icons/lock-open.mjs +14 -0
- package/dist/components/icons/lock.d.mts +3 -0
- package/dist/components/icons/lock.mjs +14 -0
- package/dist/components/icons/log-in.d.mts +3 -0
- package/dist/components/icons/log-in.mjs +8 -0
- package/dist/components/icons/log-out.d.mts +3 -0
- package/dist/components/icons/log-out.mjs +8 -0
- package/dist/components/icons/mail.d.mts +3 -0
- package/dist/components/icons/mail.mjs +14 -0
- package/dist/components/icons/map-pin.d.mts +3 -0
- package/dist/components/icons/map-pin.mjs +12 -0
- package/dist/components/icons/maximize.d.mts +3 -0
- package/dist/components/icons/maximize.mjs +8 -0
- package/dist/components/icons/menu.d.mts +3 -0
- package/dist/components/icons/menu.mjs +8 -0
- package/dist/components/icons/message-circle.d.mts +3 -0
- package/dist/components/icons/message-circle.mjs +8 -0
- package/dist/components/icons/minimize.d.mts +3 -0
- package/dist/components/icons/minimize.mjs +8 -0
- package/dist/components/icons/minus.d.mts +3 -0
- package/dist/components/icons/minus.mjs +8 -0
- package/dist/components/icons/monitor.d.mts +3 -0
- package/dist/components/icons/monitor.mjs +14 -0
- package/dist/components/icons/moon.d.mts +3 -0
- package/dist/components/icons/moon.mjs +8 -0
- package/dist/components/icons/package.d.mts +3 -0
- package/dist/components/icons/package.mjs +8 -0
- package/dist/components/icons/paint-bucket.d.mts +3 -0
- package/dist/components/icons/paint-bucket.mjs +8 -0
- package/dist/components/icons/palette.d.mts +3 -0
- package/dist/components/icons/palette.mjs +8 -0
- package/dist/components/icons/panel-left.d.mts +3 -0
- package/dist/components/icons/panel-left.mjs +14 -0
- package/dist/components/icons/paperclip.d.mts +3 -0
- package/dist/components/icons/paperclip.mjs +11 -0
- package/dist/components/icons/pause.d.mts +3 -0
- package/dist/components/icons/pause.mjs +20 -0
- package/dist/components/icons/pencil.d.mts +3 -0
- package/dist/components/icons/pencil.mjs +8 -0
- package/dist/components/icons/pin.d.mts +3 -0
- package/dist/components/icons/pin.mjs +11 -0
- package/dist/components/icons/play.d.mts +3 -0
- package/dist/components/icons/play.mjs +8 -0
- package/dist/components/icons/plus.d.mts +3 -0
- package/dist/components/icons/plus.mjs +8 -0
- package/dist/components/icons/presentation.d.mts +3 -0
- package/dist/components/icons/presentation.mjs +8 -0
- package/dist/components/icons/redo.d.mts +3 -0
- package/dist/components/icons/redo.mjs +8 -0
- package/dist/components/icons/refresh.d.mts +3 -0
- package/dist/components/icons/refresh.mjs +8 -0
- package/dist/components/icons/rocket.d.mts +3 -0
- package/dist/components/icons/rocket.mjs +19 -0
- package/dist/components/icons/rss.d.mts +3 -0
- package/dist/components/icons/rss.mjs +13 -0
- package/dist/components/icons/search.d.mts +3 -0
- package/dist/components/icons/search.mjs +12 -0
- package/dist/components/icons/send.d.mts +3 -0
- package/dist/components/icons/send.mjs +8 -0
- package/dist/components/icons/settings.d.mts +3 -0
- package/dist/components/icons/settings.mjs +12 -0
- package/dist/components/icons/share.d.mts +3 -0
- package/dist/components/icons/share.mjs +25 -0
- package/dist/components/icons/shield-check.d.mts +3 -0
- package/dist/components/icons/shield-check.mjs +8 -0
- package/dist/components/icons/smile.d.mts +3 -0
- package/dist/components/icons/smile.mjs +12 -0
- package/dist/components/icons/sparkles.d.mts +3 -0
- package/dist/components/icons/sparkles.mjs +8 -0
- package/dist/components/icons/square.d.mts +3 -0
- package/dist/components/icons/square.mjs +14 -0
- package/dist/components/icons/squircle.d.mts +3 -0
- package/dist/components/icons/squircle.mjs +8 -0
- package/dist/components/icons/star.d.mts +3 -0
- package/dist/components/icons/star.mjs +8 -0
- package/dist/components/icons/sun.d.mts +3 -0
- package/dist/components/icons/sun.mjs +12 -0
- package/dist/components/icons/table.d.mts +3 -0
- package/dist/components/icons/table.mjs +14 -0
- package/dist/components/icons/tag.d.mts +3 -0
- package/dist/components/icons/tag.mjs +8 -0
- package/dist/components/icons/text-horizontal.d.mts +3 -0
- package/dist/components/icons/text-horizontal.mjs +8 -0
- package/dist/components/icons/text-vertical.d.mts +3 -0
- package/dist/components/icons/text-vertical.mjs +8 -0
- package/dist/components/icons/thumbs-down.d.mts +3 -0
- package/dist/components/icons/thumbs-down.mjs +8 -0
- package/dist/components/icons/thumbs-up.d.mts +3 -0
- package/dist/components/icons/thumbs-up.mjs +8 -0
- package/dist/components/icons/trash.d.mts +3 -0
- package/dist/components/icons/trash.mjs +8 -0
- package/dist/components/icons/triangle-alert.d.mts +3 -0
- package/dist/components/icons/triangle-alert.mjs +8 -0
- package/dist/components/icons/undo.d.mts +3 -0
- package/dist/components/icons/undo.mjs +8 -0
- package/dist/components/icons/upload.d.mts +3 -0
- package/dist/components/icons/upload.mjs +8 -0
- package/dist/components/icons/user.d.mts +3 -0
- package/dist/components/icons/user.mjs +12 -0
- package/dist/components/icons/users.d.mts +3 -0
- package/dist/components/icons/users.mjs +12 -0
- package/dist/components/icons/x.d.mts +3 -0
- package/dist/components/icons/x.mjs +8 -0
- package/dist/components/index.d.mts +1 -11
- package/dist/components/index.mjs +1 -9
- package/dist/components/navigation/anchor/anchor.mjs +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +1 -1
- package/dist/components/navigation/pagination/pagination.mjs +1 -1
- package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
- package/dist/components/navigation/stepper/stepper.mjs +1 -1
- package/dist/components/overlays/dialog/dialog.mjs +2 -2
- package/dist/components/overlays/drawer/drawer.mjs +2 -2
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +1 -1
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +1 -1
- package/dist/components/overlays/list-box/list-box.mjs +2 -1
- package/dist/index.d.mts +1 -10
- package/dist/index.mjs +1 -9
- package/dist/integrations/_shared/icon-map.d.mts +106 -0
- package/dist/integrations/_shared/icon-map.mjs +208 -0
- package/dist/integrations/_shared/icon-names.d.mts +1 -0
- package/dist/integrations/_shared/icon-names.mjs +106 -0
- package/dist/integrations/_shared/renderers.mjs +3 -59
- package/dist/integrations/_shared/schemas.d.mts +432 -177
- package/dist/integrations/_shared/schemas.mjs +2 -53
- package/dist/integrations/json-render/catalog.d.mts +344 -140
- package/dist/styles/index.css +0 -6
- package/dist/styles/tailwind.css +0 -3
- package/dist/styles/tokens.d.mts +1 -1
- package/dist/styles/tokens.mjs +1 -1
- package/docs/GUIDE.md +4 -3
- package/docs/props.generated.json +714 -216
- package/docs/references/ai-chat.md +7 -5
- package/docs/references/components.md +91 -28
- package/docs/references/generative-ui.md +6 -3
- package/package.json +29 -26
- package/dist/components/ai/_internal/icons.d.mts +0 -6
- package/dist/components/ai/_internal/icons.mjs +0 -13
- package/dist/components/icons/browsers.d.mts +0 -6
- package/dist/components/icons/browsers.mjs +0 -890
- package/dist/components/icons/github-mark.mjs +0 -18
- package/dist/components/icons/logo.css +0 -17
- package/dist/components/icons/logo.d.mts +0 -4
- package/dist/components/icons/logo.mjs +0 -29
- package/dist/components/icons/logo.module.mjs +0 -8
- package/dist/components/icons/lucide-imports.d.mts +0 -67
- package/dist/components/icons/lucide-imports.mjs +0 -67
- package/dist/components/icons/lucide.d.mts +0 -67
- package/dist/components/icons/lucide.mjs +0 -255
- package/dist/components/icons/qiita.mjs +0 -27
- package/dist/components/icons/twitter.css +0 -9
- package/dist/components/icons/twitter.mjs +0 -20
- package/dist/components/icons/twitter.module.mjs +0 -4
- package/dist/components/icons/vertical-writing.mjs +0 -25
package/README.md
CHANGED
|
@@ -37,13 +37,13 @@ it. Install one when you import the entry it belongs to.
|
|
|
37
37
|
| ----------------------- | --------------- | -------- | ------------------------------------------------- |
|
|
38
38
|
| `react` | ≥19.3.0 | yes | the components and hooks |
|
|
39
39
|
| `react-dom` | ≥19.3.0 | yes | portals and `useFormStatus` |
|
|
40
|
-
| `@k8ordo/i18n` | ^
|
|
40
|
+
| `@k8ordo/i18n` | ^3.0.0 | yes | the locale the components' own wording is read in |
|
|
41
41
|
| `typescript` | ≥7.0.0 | optional | the shipped type declarations |
|
|
42
42
|
| `@types/react` | ≥19.3.0 | optional | the shipped type declarations |
|
|
43
43
|
| `@types/react-dom` | ≥19.3.0 | optional | the shipped type declarations |
|
|
44
44
|
| `zod` | ^4.6.6 | optional | generative-UI schemas |
|
|
45
|
-
| `@json-render/core` | ≥0.
|
|
46
|
-
| `@json-render/react` | ≥0.
|
|
45
|
+
| `@json-render/core` | ≥0.22.0 <0.23.0 | optional | `@k8ordo/ui/json-render` |
|
|
46
|
+
| `@json-render/react` | ≥0.22.0 <0.23.0 | optional | `@k8ordo/ui/json-render` |
|
|
47
47
|
| `@openuidev/lang-core` | ^1.0.0 | optional | `@k8ordo/ui/openui`, `@k8ordo/ui/openui/prompt` |
|
|
48
48
|
| `@openuidev/react-lang` | ^1.0.0 | optional | `@k8ordo/ui/openui` |
|
|
49
49
|
| `ai` | ≥7.0.51 | optional | `@k8ordo/ui/ai-sdk` |
|
|
@@ -283,7 +283,7 @@ entry in [docs/references/components.md](docs/references/components.md).
|
|
|
283
283
|
|
|
284
284
|
### Icons
|
|
285
285
|
|
|
286
|
-
- [Icons](docs/references/components.md#icons) — decorative
|
|
286
|
+
- [Icons](docs/references/components.md#icons) — decorative icons from `@k8ordo/ui/icons` (`XIcon`, `ChevronIcon`, …)
|
|
287
287
|
|
|
288
288
|
### Providers
|
|
289
289
|
|
|
@@ -372,7 +372,7 @@ function MyComponent() {
|
|
|
372
372
|
|
|
373
373
|
## Imports & Bundle Size
|
|
374
374
|
|
|
375
|
-
The core UI components ship from the root entry — there are no per-component subpaths; the AI chat components
|
|
375
|
+
The core UI components ship from the root entry — there are no per-component subpaths; the icons live under `@k8ordo/ui/icons`, the AI chat components under `@k8ordo/ui/ai`, with `Response` under `@k8ordo/ui/ai/response`, and `CodeBlock` under `@k8ordo/ui/code-block` so the highlighter stays out of everything else. The package is tree-shakeable (`sideEffects` is limited to CSS), so bundlers drop everything you don't import — the CSS too, since each component imports its own stylesheet:
|
|
376
376
|
|
|
377
377
|
```tsx
|
|
378
378
|
// Named imports from the root entry — unused exports are tree-shaken away
|
|
@@ -384,6 +384,7 @@ Optional features live behind dedicated subpath exports:
|
|
|
384
384
|
| Subpath | Contents |
|
|
385
385
|
| --------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
386
386
|
| `@k8ordo/ui` | Core UI components, their types, and provider hooks |
|
|
387
|
+
| `@k8ordo/ui/icons` | Line icons, one module each, and `BaseIcon` for drawing your own |
|
|
387
388
|
| `@k8ordo/ui/tokens` | Design tokens as a DTCG resolver document |
|
|
388
389
|
| `@k8ordo/ui/props.json` | Every component's props as JSON, generated from the types |
|
|
389
390
|
| `@k8ordo/ui/i18n` | `ja` / `en`, `registerMessages`, `getMessages`, `messageUsage`, and the `Messages` type |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
-
import { CloseIcon } from "../../icons/lucide.mjs";
|
|
3
2
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
4
|
-
import {
|
|
3
|
+
import { XIcon } from "../../icons/x.mjs";
|
|
4
|
+
import { FileIcon } from "../../icons/file.mjs";
|
|
5
5
|
import attachment_preview_module_default from "./attachment-preview.module.mjs";
|
|
6
6
|
import { useId } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -41,7 +41,7 @@ const AttachmentPreview = ({ mediaType, filename, renderImage, onRemove }) => {
|
|
|
41
41
|
label: messages.attachmentRemove,
|
|
42
42
|
onClick: onRemove,
|
|
43
43
|
size: "sm",
|
|
44
|
-
children: /* @__PURE__ */ jsx(
|
|
44
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: "xs" })
|
|
45
45
|
})
|
|
46
46
|
})]
|
|
47
47
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
4
3
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
4
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
5
5
|
import collapsible_module_default from "./collapsible.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { useId } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
5
4
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
5
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
6
6
|
import { InView } from "../../observers/in-view/in-view.mjs";
|
|
7
7
|
import { Resize } from "../../observers/resize/resize.mjs";
|
|
8
8
|
import conversation_module_default from "./conversation.module.mjs";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
-
import { BadIcon, GoodIcon, RefreshIcon } from "../../icons/lucide.mjs";
|
|
4
3
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
5
4
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
6
5
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
7
6
|
import { CopyButton } from "../../buttons/copy-button/copy-button.mjs";
|
|
8
7
|
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
8
|
+
import { RefreshIcon } from "../../icons/refresh.mjs";
|
|
9
|
+
import { ThumbsDownIcon } from "../../icons/thumbs-down.mjs";
|
|
10
|
+
import { ThumbsUpIcon } from "../../icons/thumbs-up.mjs";
|
|
9
11
|
import { StreamingCursor } from "../_internal/streaming-cursor.mjs";
|
|
10
12
|
import message_module_default from "./message.module.mjs";
|
|
11
13
|
import { clsx } from "clsx";
|
|
@@ -100,7 +102,7 @@ const Feedback = ({ value, defaultValue = null, onChange }) => {
|
|
|
100
102
|
size: "sm",
|
|
101
103
|
children: /* @__PURE__ */ jsx("span", {
|
|
102
104
|
className: clsx(feedback === "positive" && message_module_default.selected),
|
|
103
|
-
children: /* @__PURE__ */ jsx(
|
|
105
|
+
children: /* @__PURE__ */ jsx(ThumbsUpIcon, { size: "sm" })
|
|
104
106
|
})
|
|
105
107
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
106
108
|
"aria-pressed": feedback === "negative",
|
|
@@ -112,7 +114,7 @@ const Feedback = ({ value, defaultValue = null, onChange }) => {
|
|
|
112
114
|
size: "sm",
|
|
113
115
|
children: /* @__PURE__ */ jsx("span", {
|
|
114
116
|
className: clsx(feedback === "negative" && message_module_default.selected),
|
|
115
|
-
children: /* @__PURE__ */ jsx(
|
|
117
|
+
children: /* @__PURE__ */ jsx(ThumbsDownIcon, { size: "sm" })
|
|
116
118
|
})
|
|
117
119
|
})] });
|
|
118
120
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
-
import { SendIcon } from "../../icons/lucide.mjs";
|
|
5
4
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
6
5
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
7
6
|
import { acceptsFile } from "../../../internal/accepts-file.mjs";
|
|
8
7
|
import { carriesFiles } from "../../../internal/carries-files.mjs";
|
|
9
8
|
import { droppedFiles } from "../../../internal/dropped-files.mjs";
|
|
10
|
-
import { AttachIcon } from "../_internal/icons.mjs";
|
|
11
9
|
import { AttachmentPreview, isImageMediaType } from "../_internal/attachment-preview.mjs";
|
|
12
10
|
import { List } from "../attachment/attachment.mjs";
|
|
11
|
+
import { PaperclipIcon } from "../../icons/paperclip.mjs";
|
|
12
|
+
import { SendIcon } from "../../icons/send.mjs";
|
|
13
13
|
import prompt_input_module_default from "./prompt-input.module.mjs";
|
|
14
14
|
import { clsx } from "clsx";
|
|
15
15
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
@@ -190,7 +190,7 @@ const Attach = ({ label }) => {
|
|
|
190
190
|
inputRef.current?.click();
|
|
191
191
|
},
|
|
192
192
|
type: "button",
|
|
193
|
-
children: /* @__PURE__ */ jsx(
|
|
193
|
+
children: /* @__PURE__ */ jsx(PaperclipIcon, { size: "sm" })
|
|
194
194
|
})] });
|
|
195
195
|
};
|
|
196
196
|
const Submit = ({ sendLabel, stopLabel }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
-
import { SparklesIcon } from "../../icons/
|
|
2
|
+
import { SparklesIcon } from "../../icons/sparkles.mjs";
|
|
3
3
|
import { Collapsible } from "../_internal/collapsible.mjs";
|
|
4
4
|
import reasoning_module_default from "./reasoning.module.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
2
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
|
-
import { ExternalLinkIcon } from "../../icons/
|
|
4
|
-
import { FileIcon } from "
|
|
3
|
+
import { ExternalLinkIcon } from "../../icons/external-link.mjs";
|
|
4
|
+
import { FileIcon } from "../../icons/file.mjs";
|
|
5
5
|
import source_module_default from "./source.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
2
|
import { Spinner } from "../../feedback/spinner/spinner.mjs";
|
|
3
|
-
import { AlertIcon
|
|
3
|
+
import { AlertIcon } from "../../icons/alert.mjs";
|
|
4
|
+
import { CheckIcon } from "../../icons/check.mjs";
|
|
4
5
|
import { Collapsible } from "../_internal/collapsible.mjs";
|
|
5
6
|
import { ApprovalBar } from "./approval-bar.mjs";
|
|
6
7
|
import tool_invocation_module_default from "./tool-invocation.module.mjs";
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
4
4
|
import { Button } from "../button/button.mjs";
|
|
5
|
-
import { AlertIcon
|
|
5
|
+
import { AlertIcon } from "../../icons/alert.mjs";
|
|
6
|
+
import { CheckIcon } from "../../icons/check.mjs";
|
|
7
|
+
import { CopyIcon } from "../../icons/copy.mjs";
|
|
6
8
|
import { IconButton } from "../icon-button/icon-button.mjs";
|
|
7
9
|
import copy_button_module_default from "./copy-button.module.mjs";
|
|
8
10
|
import { useEffect, useState } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
|
-
import { ChevronIcon } from "../../icons/
|
|
3
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
4
4
|
import { useItemId, useOpen, useToggleOpen } from "./context.mjs";
|
|
5
5
|
import accordion_button_module_default from "./accordion-button.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
5
4
|
import { readWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
6
5
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
6
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
7
7
|
import carousel_module_default from "./carousel.module.mjs";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
9
|
import { createContext, use, useEffect, useId, useRef, useState } from "react";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
4
|
import { Button } from "../../buttons/button/button.mjs";
|
|
5
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
6
5
|
import { Popover } from "../../overlays/popover/index.mjs";
|
|
6
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
7
7
|
import { Checkbox } from "../../form/checkbox/checkbox.mjs";
|
|
8
8
|
import { CheckboxGroup } from "../../form/checkbox-group/index.mjs";
|
|
9
9
|
import { Table } from "../table/table.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
4
3
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
5
4
|
import { readWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
5
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
6
6
|
import tree_module_default from "./tree.module.mjs";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useRef, useState } from "react";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
2
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
3
|
-
import { AlertIcon
|
|
3
|
+
import { AlertIcon } from "../../icons/alert.mjs";
|
|
4
4
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
5
5
|
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
6
6
|
import { STATUS_ICON, STATUS_MESSAGE_KEY, STATUS_SURFACE } from "../../_internal/status-tone.mjs";
|
|
7
|
+
import { XIcon } from "../../icons/x.mjs";
|
|
7
8
|
import alert_module_default from "./alert.module.mjs";
|
|
8
9
|
import { clsx } from "clsx";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -58,7 +59,7 @@ const Alert = ({ tone, message, action, onClose, closeLabel, ...rest }) => {
|
|
|
58
59
|
onClick: onClose,
|
|
59
60
|
size: "sm",
|
|
60
61
|
tooltipDisabled: true,
|
|
61
|
-
children: /* @__PURE__ */ jsx(
|
|
62
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: "sm" })
|
|
62
63
|
})
|
|
63
64
|
}) : null
|
|
64
65
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
2
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
3
|
-
import { AlertIcon } from "../../icons/
|
|
3
|
+
import { AlertIcon } from "../../icons/alert.mjs";
|
|
4
4
|
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
5
5
|
import { STATUS_ICON, STATUS_MESSAGE_KEY, STATUS_SURFACE } from "../../_internal/status-tone.mjs";
|
|
6
6
|
import callout_module_default from "./callout.module.mjs";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
4
4
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
|
-
import { CloseIcon } from "../../icons/lucide.mjs";
|
|
6
5
|
import { chain } from "../../../helpers/chain.mjs";
|
|
7
6
|
import { useClickAway } from "../../../hooks/click-away/index.mjs";
|
|
8
7
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
9
8
|
import { useWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
10
9
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
10
|
+
import { XIcon } from "../../icons/x.mjs";
|
|
11
11
|
import { FormValue } from "../../_internal/form-value.mjs";
|
|
12
12
|
import autocomplete_module_default from "./autocomplete.module.mjs";
|
|
13
13
|
import { clsx } from "clsx";
|
|
@@ -158,7 +158,7 @@ const Autocomplete = ({ id, name, invalid = false, disabled = false, readOnly =
|
|
|
158
158
|
handleChange(currentValue.filter((v) => v !== selectedValue));
|
|
159
159
|
},
|
|
160
160
|
size: "sm",
|
|
161
|
-
children: /* @__PURE__ */ jsx(
|
|
161
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: "sm" })
|
|
162
162
|
})]
|
|
163
163
|
}, selectedValue);
|
|
164
164
|
}), /* @__PURE__ */ jsx("input", {
|
|
@@ -196,7 +196,7 @@ const Autocomplete = ({ id, name, invalid = false, disabled = false, readOnly =
|
|
|
196
196
|
handleChange([]);
|
|
197
197
|
},
|
|
198
198
|
size: "sm",
|
|
199
|
-
children: /* @__PURE__ */ jsx(
|
|
199
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: "sm" })
|
|
200
200
|
})]
|
|
201
201
|
}),
|
|
202
202
|
expanded && /* @__PURE__ */ jsx("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getLocale, getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
5
4
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
6
5
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
6
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
7
7
|
import { addDays, addMonths, clampDate, endOfMonth, formatDate, isIsoDate, isSameMonth, isWithin, localToday, monthWeeks, startOfMonth, startOfWeek, subscribeToDateChange } from "../../../internal/iso-date.mjs";
|
|
8
8
|
import calendar_module_default from "./calendar.module.mjs";
|
|
9
9
|
import { clsx } from "clsx";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
3
3
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
4
|
-
import { CheckIcon
|
|
4
|
+
import { CheckIcon } from "../../icons/check.mjs";
|
|
5
5
|
import { ignoreClick } from "../../_internal/ignore-changes.mjs";
|
|
6
|
+
import { MinusIcon } from "../../icons/minus.mjs";
|
|
6
7
|
import { useCheckboxGroupContext } from "../checkbox-group/checkbox-group.mjs";
|
|
7
8
|
import checkbox_module_default from "./checkbox.module.mjs";
|
|
8
9
|
import { clsx } from "clsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
3
|
-
import { CheckIcon } from "../../icons/
|
|
3
|
+
import { CheckIcon } from "../../icons/check.mjs";
|
|
4
4
|
import checkbox_card_module_default from "./checkbox-card.module.mjs";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { useId } from "react";
|
|
@@ -3,9 +3,9 @@ import { getMessages } from "../../../i18n/current.mjs";
|
|
|
3
3
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
4
4
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
5
5
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
6
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
7
6
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
8
7
|
import { useWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
8
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
9
9
|
import { FormValue } from "../../_internal/form-value.mjs";
|
|
10
10
|
import combobox_module_default from "./combobox.module.mjs";
|
|
11
11
|
import { clsx } from "clsx";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
4
4
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
|
-
import { PublishDateIcon } from "../../icons/lucide.mjs";
|
|
6
5
|
import { Popover } from "../../overlays/popover/index.mjs";
|
|
7
6
|
import { Calendar } from "../calendar/calendar.mjs";
|
|
8
7
|
import { commitInputValue } from "../../../internal/commit-input-value.mjs";
|
|
8
|
+
import { CalendarIcon } from "../../icons/calendar.mjs";
|
|
9
9
|
import date_picker_module_default from "./date-picker.module.mjs";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { useMemo, useRef, useState } from "react";
|
|
@@ -52,7 +52,7 @@ const DatePicker = ({ invalid = false, value, defaultValue, onChange, disabled =
|
|
|
52
52
|
className: clsx(date_picker_module_default.trigger, focus_ring_module_default.ringNoBorder, locked && date_picker_module_default.locked),
|
|
53
53
|
disabled: locked,
|
|
54
54
|
type: "button",
|
|
55
|
-
children: /* @__PURE__ */ jsx(
|
|
55
|
+
children: /* @__PURE__ */ jsx(CalendarIcon, { size: "sm" })
|
|
56
56
|
}) }), /* @__PURE__ */ jsx(Popover.Content, { renderItem: ({ ref: contentRef, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
57
57
|
...props,
|
|
58
58
|
"aria-label": messages.datePickerDialog,
|
|
@@ -3,9 +3,9 @@ import { getMessages } from "../../../i18n/current.mjs";
|
|
|
3
3
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
4
4
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
5
5
|
import { Button } from "../../buttons/button/button.mjs";
|
|
6
|
-
import { CloseIcon } from "../../icons/lucide.mjs";
|
|
7
6
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
8
7
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
8
|
+
import { XIcon } from "../../icons/x.mjs";
|
|
9
9
|
import { acceptsFile } from "../../../internal/accepts-file.mjs";
|
|
10
10
|
import { carriesFiles } from "../../../internal/carries-files.mjs";
|
|
11
11
|
import { droppedFiles } from "../../../internal/dropped-files.mjs";
|
|
@@ -207,7 +207,7 @@ const ItemList = ({ showWebkitRelativePath, clearable }) => {
|
|
|
207
207
|
}), clearable === true && /* @__PURE__ */ jsx(IconButton, {
|
|
208
208
|
label: messages.fileFieldRemove,
|
|
209
209
|
onClick: onDelete,
|
|
210
|
-
children: /* @__PURE__ */ jsx(
|
|
210
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: "sm" })
|
|
211
211
|
})]
|
|
212
212
|
}, id);
|
|
213
213
|
})
|
|
@@ -3,9 +3,9 @@ import { getMessages } from "../../../i18n/current.mjs";
|
|
|
3
3
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
4
4
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
5
5
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
6
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
7
6
|
import { chain } from "../../../helpers/chain.mjs";
|
|
8
7
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
8
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
9
9
|
import { toPrecision } from "../../../internal/to-precision.mjs";
|
|
10
10
|
import { clamp } from "../../../internal/clamp.mjs";
|
|
11
11
|
import { cast } from "./cast.mjs";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { EyeIcon } from "../../icons/eye.mjs";
|
|
5
|
+
import { EyeClosedIcon } from "../../icons/eye-closed.mjs";
|
|
5
6
|
import password_input_module_default from "./password-input.module.mjs";
|
|
6
7
|
import { clsx } from "clsx";
|
|
7
8
|
import { useState } from "react";
|
|
@@ -31,7 +32,7 @@ const PasswordInput = ({ invalid = false, autoComplete = "current-password", sho
|
|
|
31
32
|
setIsVisible((current) => !current);
|
|
32
33
|
},
|
|
33
34
|
type: "button",
|
|
34
|
-
children: isVisible ? /* @__PURE__ */ jsx(
|
|
35
|
+
children: isVisible ? /* @__PURE__ */ jsx(EyeClosedIcon, { size: "sm" }) : /* @__PURE__ */ jsx(EyeIcon, { size: "sm" })
|
|
35
36
|
})]
|
|
36
37
|
});
|
|
37
38
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
3
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
5
4
|
import { chain } from "../../../helpers/chain.mjs";
|
|
5
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
6
6
|
import { ignoreSelectKeys } from "../../_internal/ignore-changes.mjs";
|
|
7
7
|
import select_module_default from "./select.module.mjs";
|
|
8
8
|
import { clsx } from "clsx";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CircleAlertIcon } from "./circle-alert.mjs";
|
|
2
|
+
import { CircleCheckIcon } from "./circle-check.mjs";
|
|
3
|
+
import { InfoIcon } from "./info.mjs";
|
|
4
|
+
import { TriangleAlertIcon } from "./triangle-alert.mjs";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
// src/components/icons/alert.tsx
|
|
7
|
+
const ALERT_BY_STATUS = {
|
|
8
|
+
success: CircleCheckIcon,
|
|
9
|
+
info: InfoIcon,
|
|
10
|
+
warning: TriangleAlertIcon,
|
|
11
|
+
error: CircleAlertIcon
|
|
12
|
+
};
|
|
13
|
+
const AlertIcon = ({ status, size = "md" }) => {
|
|
14
|
+
const Alert = ALERT_BY_STATUS[status];
|
|
15
|
+
return /* @__PURE__ */ jsx(Alert, { size });
|
|
16
|
+
};
|
|
17
|
+
export { AlertIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/arrow-down.tsx
|
|
4
|
+
const ArrowDownIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: /* @__PURE__ */ jsx("path", { d: "M8 2.75v10.5M3.75 9 8 13.25 12.25 9" })
|
|
7
|
+
});
|
|
8
|
+
export { ArrowDownIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/arrow-left.tsx
|
|
4
|
+
const ArrowLeftIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: /* @__PURE__ */ jsx("path", { d: "M13.25 8H2.75M7 3.75 2.75 8 7 12.25" })
|
|
7
|
+
});
|
|
8
|
+
export { ArrowLeftIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/arrow-right.tsx
|
|
4
|
+
const ArrowRightIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: /* @__PURE__ */ jsx("path", { d: "M2.75 8h10.5M9 3.75 13.25 8 9 12.25" })
|
|
7
|
+
});
|
|
8
|
+
export { ArrowRightIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/arrow-up.tsx
|
|
4
|
+
const ArrowUpIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: /* @__PURE__ */ jsx("path", { d: "M8 13.25V2.75M3.75 7 8 2.75 12.25 7" })
|
|
7
|
+
});
|
|
8
|
+
export { ArrowUpIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/bell.tsx
|
|
4
|
+
const BellIcon = ({ size = "md" }) => /* @__PURE__ */ jsxs(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M3.25 11.5c.9-.9 1.25-2 1.25-3.5V6.25a3.5 3.5 0 0 1 7 0V8c0 1.5.35 2.6 1.25 3.5z" }), /* @__PURE__ */ jsx("path", { d: "M6.75 13.5a1.4 1.4 0 0 0 2.5 0" })]
|
|
7
|
+
});
|
|
8
|
+
export { BellIcon };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/blend.tsx
|
|
4
|
+
const BlendIcon = ({ size = "md" }) => /* @__PURE__ */ jsxs(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
7
|
+
cx: "6.25",
|
|
8
|
+
cy: "6.25",
|
|
9
|
+
r: "4"
|
|
10
|
+
}), /* @__PURE__ */ jsx("circle", {
|
|
11
|
+
cx: "9.75",
|
|
12
|
+
cy: "9.75",
|
|
13
|
+
r: "4"
|
|
14
|
+
})]
|
|
15
|
+
});
|
|
16
|
+
export { BlendIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/book-text.tsx
|
|
4
|
+
const BookTextIcon = ({ size = "md" }) => /* @__PURE__ */ jsxs(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M12.5 10.25H5.25a1.75 1.75 0 0 0 0 3.5h6.5a.75.75 0 0 0 .75-.75V3a.75.75 0 0 0-.75-.75h-6.5A1.75 1.75 0 0 0 3.5 4v8" }), /* @__PURE__ */ jsx("path", { d: "M6.5 5.25H10M6.5 7.5h2" })]
|
|
7
|
+
});
|
|
8
|
+
export { BookTextIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/bookmark.tsx
|
|
4
|
+
const BookmarkIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: /* @__PURE__ */ jsx("path", { d: "M4.25 13.5V4.25a2 2 0 0 1 2-2h3.5a2 2 0 0 1 2 2V13.5L8 10.75z" })
|
|
7
|
+
});
|
|
8
|
+
export { BookmarkIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/bot-message.tsx
|
|
4
|
+
const BotMessageIcon = ({ size = "md" }) => /* @__PURE__ */ jsxs(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M2.25 14V7A2.25 2.25 0 0 1 4.5 4.75h7A2.25 2.25 0 0 1 13.75 7v2.5a2.25 2.25 0 0 1-2.25 2.25H5z" }), /* @__PURE__ */ jsx("path", { d: "M8 4.75V2.5M6.25 7.75v1M9.75 7.75v1" })]
|
|
7
|
+
});
|
|
8
|
+
export { BotMessageIcon };
|