@opencode-ai/ui 0.0.0-dev-18146 → 0.0.0-dev-202608250334
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/dist/{data-display/accordion → components}/accordion.d.ts +6 -6
- package/dist/components/avatar.d.ts +9 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/card.d.ts +1 -1
- package/dist/{forms/checkbox → components}/checkbox.d.ts +2 -2
- package/dist/components/dialog.d.ts +12 -0
- package/dist/{data-display/diff-changes → components}/diff-changes.d.ts +1 -2
- package/dist/components/dropdown-menu.d.ts +80 -0
- package/dist/components/icon-button.d.ts +10 -0
- package/dist/{icons/icon/additional-icons.d.ts → components/icon.d.ts} +8 -8
- package/dist/components/keybind.d.ts +6 -0
- package/dist/components/list.d.ts +1 -1
- package/dist/{feedback/progress-circle → components}/progress-circle.d.ts +0 -2
- package/dist/components/radio-group.d.ts +16 -0
- package/dist/components/scroll-view.d.ts +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/{forms/switch → components}/switch.d.ts +2 -4
- package/dist/{navigation/tabs → components}/tabs.d.ts +8 -15
- package/dist/components/tag.d.ts +5 -0
- package/dist/{typography/text-shimmer → components}/text-shimmer.d.ts +0 -1
- package/dist/components/toast.d.ts +56 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/context/i18n.d.ts +7 -10
- package/dist/i18n/ar.d.ts +2 -0
- package/dist/i18n/bg.d.ts +2 -0
- package/dist/i18n/br.d.ts +2 -0
- package/dist/i18n/bs.d.ts +2 -0
- package/dist/i18n/da.d.ts +2 -0
- package/dist/i18n/de.d.ts +2 -0
- package/dist/i18n/en.d.ts +1 -223
- package/dist/i18n/es.d.ts +2 -0
- package/dist/i18n/fr.d.ts +2 -0
- package/dist/i18n/ja.d.ts +2 -0
- package/dist/i18n/km.d.ts +2 -0
- package/dist/i18n/ko.d.ts +2 -0
- package/dist/i18n/lo.d.ts +2 -0
- package/dist/i18n/mk.d.ts +2 -0
- package/dist/i18n/mn.d.ts +2 -0
- package/dist/i18n/my.d.ts +2 -0
- package/dist/i18n/pl.d.ts +2 -0
- package/dist/i18n/ru.d.ts +2 -0
- package/dist/i18n/sr.d.ts +2 -0
- package/dist/i18n/tg.d.ts +2 -0
- package/dist/i18n/th.d.ts +2 -0
- package/dist/i18n/tr.d.ts +2 -0
- package/dist/i18n/zh.d.ts +2 -0
- package/dist/i18n/zht.d.ts +2 -0
- package/dist/v2/components/accordion-v2.d.ts +26 -0
- package/dist/{data-display/avatar/avatar.d.ts → v2/components/avatar-v2.d.ts} +1 -1
- package/dist/v2/components/badge-v2.d.ts +6 -0
- package/dist/v2/components/button-v2.d.ts +10 -0
- package/dist/v2/components/checkbox-v2.d.ts +10 -0
- package/dist/{overlays/dialog/dialog.d.ts → v2/components/dialog-v2.d.ts} +2 -1
- package/dist/v2/components/diff-changes-v2.d.ts +11 -0
- package/dist/v2/components/divider-v2.d.ts +5 -0
- package/dist/{forms/field/field.d.ts → v2/components/field-v2.d.ts} +10 -4
- package/dist/v2/components/icon-button-v2.d.ts +11 -0
- package/dist/{icons/icon → v2/components}/icon.d.ts +1 -20
- package/dist/v2/components/inline-input-v2.d.ts +21 -0
- package/dist/v2/components/keybind-v2.d.ts +7 -0
- package/dist/{data-display/line-comment/line-comment.d.ts → v2/components/line-comment-v2.d.ts} +9 -9
- package/dist/v2/components/loader-v2.d.ts +3 -0
- package/dist/v2/components/menu-v2.d.ts +52 -0
- package/dist/v2/components/progress-circle-v2.d.ts +8 -0
- package/dist/{data-display/project-avatar/project-avatar.d.ts → v2/components/project-avatar-v2.d.ts} +1 -1
- package/dist/v2/components/radio-v2.d.ts +16 -0
- package/dist/{navigation/segmented-control/segmented-control.d.ts → v2/components/segmented-control-v2.d.ts} +5 -5
- package/dist/{forms/select/select.d.ts → v2/components/select-v2.d.ts} +6 -4
- package/dist/v2/components/split-button-v2.d.ts +5 -0
- package/dist/v2/components/switch-v2.d.ts +7 -0
- package/dist/v2/components/tabs-v2.d.ts +34 -0
- package/dist/{forms/text-input/text-input.d.ts → v2/components/text-input-v2.d.ts} +3 -3
- package/dist/v2/components/text-shimmer-v2.d.ts +9 -0
- package/dist/v2/components/textarea-v2.d.ts +7 -0
- package/dist/v2/components/toast-v2.d.ts +57 -0
- package/dist/v2/components/tooltip-v2.d.ts +13 -0
- package/dist/v2/components/wordmark-v2.d.ts +2 -0
- package/package.json +13 -131
- package/src/{data-display/accordion → components}/accordion.css +26 -1
- package/src/{data-display/accordion → components}/accordion.tsx +14 -14
- package/src/components/animated-number.css +11 -29
- package/src/components/animated-number.tsx +2 -2
- package/src/components/avatar.css +49 -0
- package/src/components/avatar.tsx +55 -0
- package/src/components/button.css +194 -0
- package/src/{actions/button → components}/button.tsx +11 -10
- package/src/components/card.css +23 -2
- package/src/components/card.tsx +4 -4
- package/src/{forms/checkbox → components}/checkbox.css +7 -1
- package/src/{forms/checkbox → components}/checkbox.tsx +13 -13
- package/src/components/collapsible.tsx +2 -2
- package/src/components/dialog.css +181 -0
- package/src/components/dialog.tsx +72 -0
- package/src/{data-display/diff-changes → components}/diff-changes.css +19 -22
- package/src/components/diff-changes.tsx +115 -0
- package/src/components/dock-surface.css +9 -2
- package/src/components/dropdown-menu.css +135 -0
- package/src/components/dropdown-menu.tsx +308 -0
- package/src/components/icon-button.css +181 -0
- package/src/components/icon-button.tsx +29 -0
- package/src/components/icon.css +39 -0
- package/src/{icons/icon/additional-icons.ts → components/icon.tsx} +74 -8
- package/src/components/image-preview.tsx +2 -3
- package/src/components/keybind.css +18 -0
- package/src/components/keybind.tsx +20 -0
- package/src/components/list.css +5 -5
- package/src/components/list.tsx +5 -7
- package/src/components/popover.tsx +2 -3
- package/src/components/progress-circle.css +16 -0
- package/src/components/progress-circle.tsx +64 -0
- package/src/components/radio-group.css +187 -0
- package/src/components/radio-group.tsx +83 -0
- package/src/components/scroll-view.tsx +20 -5
- package/src/components/select.css +201 -0
- package/src/components/select.tsx +174 -0
- package/src/components/sticky-accordion-header.tsx +1 -1
- package/src/components/switch.css +136 -0
- package/src/components/switch.tsx +29 -0
- package/src/{navigation/tabs → components}/tabs.css +229 -39
- package/src/components/tabs.tsx +126 -0
- package/src/components/tag.css +37 -0
- package/src/components/tag.tsx +22 -0
- package/src/components/text-field.tsx +4 -12
- package/src/{typography/text-shimmer → components}/text-shimmer.css +1 -2
- package/src/{typography/text-shimmer → components}/text-shimmer.tsx +0 -1
- package/src/components/toast.css +236 -0
- package/src/components/toast.tsx +185 -0
- package/src/components/tooltip.css +74 -0
- package/src/components/tooltip.tsx +163 -0
- package/src/context/dialog.tsx +1 -2
- package/src/context/i18n.tsx +14 -17
- package/src/hooks/create-auto-scroll.tsx +0 -20
- package/src/i18n/am.ts +3 -1
- package/src/i18n/ar.ts +3 -1
- package/src/i18n/az.ts +3 -1
- package/src/i18n/bg.ts +3 -1
- package/src/i18n/bn.ts +3 -1
- package/src/i18n/br.ts +3 -1
- package/src/i18n/bs.ts +3 -1
- package/src/i18n/ca.ts +3 -1
- package/src/i18n/cs.ts +3 -1
- package/src/i18n/da.ts +3 -1
- package/src/i18n/de.ts +3 -1
- package/src/i18n/dv.ts +3 -1
- package/src/i18n/dz.ts +3 -1
- package/src/i18n/el.ts +3 -1
- package/src/i18n/en.ts +5 -33
- package/src/i18n/es.ts +3 -1
- package/src/i18n/et.ts +3 -1
- package/src/i18n/fa.ts +3 -1
- package/src/i18n/fi.ts +3 -1
- package/src/i18n/fo.ts +3 -1
- package/src/i18n/fr.ts +3 -1
- package/src/i18n/hi.ts +3 -1
- package/src/i18n/hr.ts +3 -1
- package/src/i18n/hu.ts +3 -1
- package/src/i18n/hy.ts +3 -1
- package/src/i18n/id.ts +3 -1
- package/src/i18n/is.ts +3 -1
- package/src/i18n/it.ts +3 -1
- package/src/i18n/ja.ts +3 -1
- package/src/i18n/ka.ts +3 -1
- package/src/i18n/km.ts +3 -1
- package/src/i18n/ko.ts +3 -1
- package/src/i18n/lo.ts +3 -1
- package/src/i18n/lt.ts +3 -1
- package/src/i18n/lv.ts +3 -1
- package/src/i18n/mk.ts +3 -1
- package/src/i18n/mn.ts +3 -1
- package/src/i18n/ms.ts +3 -1
- package/src/i18n/my.ts +3 -1
- package/src/i18n/ne.ts +3 -1
- package/src/i18n/nl.ts +3 -1
- package/src/i18n/no.ts +3 -1
- package/src/i18n/pa.ts +3 -1
- package/src/i18n/pl.ts +3 -1
- package/src/i18n/ro.ts +3 -1
- package/src/i18n/ru.ts +3 -1
- package/src/i18n/si.ts +3 -1
- package/src/i18n/sk.ts +3 -1
- package/src/i18n/sl.ts +3 -1
- package/src/i18n/sq.ts +3 -1
- package/src/i18n/sr.ts +3 -1
- package/src/i18n/sv.ts +3 -1
- package/src/i18n/tg.ts +3 -1
- package/src/i18n/th.ts +3 -1
- package/src/i18n/tk.ts +3 -1
- package/src/i18n/tr.ts +3 -1
- package/src/i18n/uk.ts +3 -1
- package/src/i18n/ur.ts +3 -1
- package/src/i18n/uz.ts +3 -1
- package/src/i18n/vi.ts +3 -1
- package/src/i18n/zh.ts +3 -1
- package/src/i18n/zht.ts +3 -1
- package/src/styles/index.css +20 -4
- package/src/styles/tailwind/colors.css +0 -1
- package/src/styles/tailwind/index.css +1 -18
- package/src/theme/context.tsx +11 -19
- package/src/theme/themes/oc-2.json +1 -3
- package/src/theme/v2/foreground.ts +0 -1
- package/src/v2/components/accordion-v2.css +139 -0
- package/src/v2/components/accordion-v2.tsx +86 -0
- package/src/{data-display/avatar/avatar.tsx → v2/components/avatar-v2.tsx} +1 -1
- package/src/{data-display/badge/badge.css → v2/components/badge-v2.css} +0 -19
- package/src/{data-display/badge/badge.tsx → v2/components/badge-v2.tsx} +4 -6
- package/src/v2/components/button-v2.tsx +35 -0
- package/src/v2/components/checkbox-v2.css +184 -0
- package/src/v2/components/checkbox-v2.tsx +65 -0
- package/src/{overlays/dialog/dialog.css → v2/components/dialog-v2.css} +0 -3
- package/src/{overlays/dialog/dialog.tsx → v2/components/dialog-v2.tsx} +13 -11
- package/src/v2/components/diff-changes-v2.css +26 -0
- package/src/{data-display/diff-changes/diff-changes.tsx → v2/components/diff-changes-v2.tsx} +2 -7
- package/src/{layout/divider/divider.tsx → v2/components/divider-v2.tsx} +3 -3
- package/src/{forms/field/field.css → v2/components/field-v2.css} +1 -1
- package/src/{forms/field/field.tsx → v2/components/field-v2.tsx} +11 -9
- package/src/v2/components/icon-button-v2.tsx +37 -0
- package/src/{icons/icon → v2/components}/icon.tsx +9 -46
- package/src/v2/components/inline-input-v2.css +225 -0
- package/src/v2/components/inline-input-v2.tsx +107 -0
- package/src/{data-display/keybind/keybind.css → v2/components/keybind-v2.css} +1 -1
- package/src/{data-display/keybind/keybind.tsx → v2/components/keybind-v2.tsx} +3 -3
- package/src/{data-display/line-comment/line-comment.css → v2/components/line-comment-v2.css} +3 -3
- package/src/{data-display/line-comment/line-comment.tsx → v2/components/line-comment-v2.tsx} +15 -17
- package/src/{feedback/loader/loader.tsx → v2/components/loader-v2.tsx} +2 -2
- package/src/{navigation/menu/menu.css → v2/components/menu-v2.css} +1 -122
- package/src/{navigation/menu/menu.tsx → v2/components/menu-v2.tsx} +32 -96
- package/src/v2/components/progress-circle-v2.css +13 -0
- package/src/v2/components/progress-circle-v2.tsx +52 -0
- package/src/{data-display/project-avatar/project-avatar.tsx → v2/components/project-avatar-v2.tsx} +1 -1
- package/src/{forms/radio/radio.tsx → v2/components/radio-v2.tsx} +20 -30
- package/src/{navigation/segmented-control/segmented-control.css → v2/components/segmented-control-v2.css} +1 -1
- package/src/{navigation/segmented-control/segmented-control.tsx → v2/components/segmented-control-v2.tsx} +8 -9
- package/src/{forms/select/select.css → v2/components/select-v2.css} +8 -2
- package/src/{forms/select/select.tsx → v2/components/select-v2.tsx} +32 -38
- package/src/{actions/split-button/split-button.css → v2/components/split-button-v2.css} +6 -1
- package/src/{actions/split-button/split-button.tsx → v2/components/split-button-v2.tsx} +4 -4
- package/src/{forms/switch/switch.css → v2/components/switch-v2.css} +0 -110
- package/src/v2/components/switch-v2.tsx +28 -0
- package/src/{navigation/tabs/tabs-current.css → v2/components/tabs-v2.css} +10 -25
- package/src/v2/components/tabs-v2.tsx +149 -0
- package/src/{forms/text-input/text-input.css → v2/components/text-input-v2.css} +1 -1
- package/src/{forms/text-input/text-input.tsx → v2/components/text-input-v2.tsx} +4 -4
- package/src/v2/components/text-shimmer-v2.css +125 -0
- package/src/v2/components/text-shimmer-v2.tsx +63 -0
- package/src/{forms/textarea/textarea.tsx → v2/components/textarea-v2.tsx} +3 -3
- package/src/{feedback/toast/toast.tsx → v2/components/toast-v2.tsx} +58 -60
- package/src/{overlays/tooltip/tooltip.css → v2/components/tooltip-v2.css} +0 -26
- package/src/{overlays/tooltip/tooltip.tsx → v2/components/tooltip-v2.tsx} +14 -21
- package/src/{typography/wordmark/wordmark.tsx → v2/components/wordmark-v2.tsx} +1 -1
- package/src/{styles/tokens → v2/styles}/theme.css +12 -8
- package/dist/actions/button/button.d.ts +0 -10
- package/dist/actions/icon-button/icon-button.d.ts +0 -11
- package/dist/actions/split-button/split-button.d.ts +0 -5
- package/dist/data-display/badge/badge.d.ts +0 -7
- package/dist/data-display/keybind/keybind.d.ts +0 -7
- package/dist/feedback/loader/loader.d.ts +0 -3
- package/dist/feedback/toast/toast.d.ts +0 -57
- package/dist/forms/radio/radio.d.ts +0 -16
- package/dist/forms/textarea/textarea.d.ts +0 -7
- package/dist/i18n/he.d.ts +0 -197
- package/dist/layout/divider/divider.d.ts +0 -5
- package/dist/navigation/menu/menu.d.ts +0 -59
- package/dist/overlays/tooltip/tooltip.d.ts +0 -15
- package/dist/typography/wordmark/wordmark.d.ts +0 -2
- package/src/actions/icon-button/icon-button.tsx +0 -32
- package/src/feedback/progress-circle/progress-circle.css +0 -28
- package/src/feedback/progress-circle/progress-circle.tsx +0 -64
- package/src/forms/switch/switch.tsx +0 -34
- package/src/i18n/he.ts +0 -199
- package/src/icons/icon/icon.css +0 -3
- package/src/navigation/tabs/tabs.tsx +0 -194
- /package/dist/{forms/inline-input → components}/inline-input.d.ts +0 -0
- /package/dist/{navigation → v2/components}/tab-state-indicator.d.ts +0 -0
- /package/src/{forms/inline-input → components}/inline-input.css +0 -0
- /package/src/{forms/inline-input → components}/inline-input.tsx +0 -0
- /package/src/{data-display/avatar/avatar.css → v2/components/avatar-v2.css} +0 -0
- /package/src/{actions/button/button.css → v2/components/button-v2.css} +0 -0
- /package/src/{layout/divider/divider.css → v2/components/divider-v2.css} +0 -0
- /package/src/{styles/file-tree.css → v2/components/file-tree-v2.css} +0 -0
- /package/src/{actions/icon-button/icon-button.css → v2/components/icon-button-v2.css} +0 -0
- /package/src/{feedback/loader/loader.css → v2/components/loader-v2.css} +0 -0
- /package/src/{data-display/project-avatar/project-avatar.css → v2/components/project-avatar-v2.css} +0 -0
- /package/src/{forms/radio/radio.css → v2/components/radio-v2.css} +0 -0
- /package/src/{navigation → v2/components}/tab-state-indicator.tsx +0 -0
- /package/src/{forms/textarea/textarea.css → v2/components/textarea-v2.css} +0 -0
- /package/src/{feedback/toast/toast.css → v2/components/toast-v2.css} +0 -0
- /package/src/{styles/tokens → v2/styles}/colors.css +0 -0
- /package/src/{styles/tokens/index.css → v2/styles/tailwind.css} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Accordion as Kobalte } from "@kobalte/core/accordion";
|
|
2
2
|
import type { ComponentProps, ParentProps } from "solid-js";
|
|
3
|
-
export interface AccordionProps extends ComponentProps<typeof
|
|
3
|
+
export interface AccordionProps extends ComponentProps<typeof Kobalte> {
|
|
4
4
|
}
|
|
5
|
-
export interface AccordionItemProps extends ComponentProps<typeof Item> {
|
|
5
|
+
export interface AccordionItemProps extends ComponentProps<typeof Kobalte.Item> {
|
|
6
6
|
}
|
|
7
|
-
export interface AccordionHeaderProps extends ComponentProps<typeof Header> {
|
|
7
|
+
export interface AccordionHeaderProps extends ComponentProps<typeof Kobalte.Header> {
|
|
8
8
|
}
|
|
9
|
-
export interface AccordionTriggerProps extends ComponentProps<typeof Trigger> {
|
|
9
|
+
export interface AccordionTriggerProps extends ComponentProps<typeof Kobalte.Trigger> {
|
|
10
10
|
}
|
|
11
|
-
export interface AccordionContentProps extends ComponentProps<typeof Content> {
|
|
11
|
+
export interface AccordionContentProps extends ComponentProps<typeof Kobalte.Content> {
|
|
12
12
|
}
|
|
13
13
|
declare function AccordionRoot(props: AccordionProps): import("solid-js").JSX.Element;
|
|
14
14
|
declare function AccordionItem(props: AccordionItemProps): import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ComponentProps } from "solid-js";
|
|
2
|
+
export interface AvatarProps extends ComponentProps<"div"> {
|
|
3
|
+
fallback: string;
|
|
4
|
+
src?: string;
|
|
5
|
+
background?: string;
|
|
6
|
+
foreground?: string;
|
|
7
|
+
size?: "small" | "normal" | "large";
|
|
8
|
+
}
|
|
9
|
+
export declare function Avatar(props: AvatarProps): import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Button as Kobalte } from "@kobalte/core/button";
|
|
2
|
+
import { type ComponentProps } from "solid-js";
|
|
3
|
+
import { IconProps } from "./icon";
|
|
4
|
+
export interface ButtonProps extends ComponentProps<typeof Kobalte>, Pick<ComponentProps<"button">, "class" | "classList" | "children"> {
|
|
5
|
+
size?: "small" | "normal" | "large";
|
|
6
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
7
|
+
icon?: IconProps["name"];
|
|
8
|
+
}
|
|
9
|
+
export declare function Button(props: ButtonProps): import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from "solid-js";
|
|
2
|
-
import { type IconProps } from "
|
|
2
|
+
import { type IconProps } from "./icon";
|
|
3
3
|
type Variant = "normal" | "error" | "warning" | "success" | "info";
|
|
4
4
|
export interface CardProps extends ComponentProps<"div"> {
|
|
5
5
|
variant?: Variant;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Checkbox as Kobalte } from "@kobalte/core/checkbox";
|
|
2
2
|
import type { ComponentProps, JSX, ParentProps } from "solid-js";
|
|
3
|
-
export interface CheckboxProps extends ParentProps<ComponentProps<typeof
|
|
3
|
+
export interface CheckboxProps extends ParentProps<ComponentProps<typeof Kobalte>> {
|
|
4
4
|
hideLabel?: boolean;
|
|
5
5
|
description?: string;
|
|
6
6
|
icon?: JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, JSXElement, ParentProps } from "solid-js";
|
|
2
|
+
export interface DialogProps extends ParentProps {
|
|
3
|
+
title?: JSXElement;
|
|
4
|
+
description?: JSXElement;
|
|
5
|
+
action?: JSXElement;
|
|
6
|
+
size?: "normal" | "large" | "x-large";
|
|
7
|
+
class?: ComponentProps<"div">["class"];
|
|
8
|
+
classList?: ComponentProps<"div">["classList"];
|
|
9
|
+
fit?: boolean;
|
|
10
|
+
transition?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Dialog(props: DialogProps): import("solid-js").JSX.Element;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import "./diff-changes.css";
|
|
2
1
|
export declare function DiffChanges(props: {
|
|
3
2
|
class?: string;
|
|
4
|
-
appearance?: "standard" | "compact";
|
|
5
3
|
changes: {
|
|
6
4
|
additions: number;
|
|
7
5
|
deletions: number;
|
|
@@ -9,4 +7,5 @@ export declare function DiffChanges(props: {
|
|
|
9
7
|
additions: number;
|
|
10
8
|
deletions: number;
|
|
11
9
|
}[];
|
|
10
|
+
variant?: "default" | "bars";
|
|
12
11
|
}): import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DropdownMenu as Kobalte } from "@kobalte/core/dropdown-menu";
|
|
2
|
+
import type { ComponentProps, ParentProps } from "solid-js";
|
|
3
|
+
export interface DropdownMenuProps extends ComponentProps<typeof Kobalte> {
|
|
4
|
+
}
|
|
5
|
+
export interface DropdownMenuTriggerProps extends ComponentProps<typeof Kobalte.Trigger> {
|
|
6
|
+
}
|
|
7
|
+
export interface DropdownMenuIconProps extends ComponentProps<typeof Kobalte.Icon> {
|
|
8
|
+
}
|
|
9
|
+
export interface DropdownMenuPortalProps extends ComponentProps<typeof Kobalte.Portal> {
|
|
10
|
+
}
|
|
11
|
+
export interface DropdownMenuContentProps extends ComponentProps<typeof Kobalte.Content> {
|
|
12
|
+
}
|
|
13
|
+
export interface DropdownMenuArrowProps extends ComponentProps<typeof Kobalte.Arrow> {
|
|
14
|
+
}
|
|
15
|
+
export interface DropdownMenuSeparatorProps extends ComponentProps<typeof Kobalte.Separator> {
|
|
16
|
+
}
|
|
17
|
+
export interface DropdownMenuGroupProps extends ComponentProps<typeof Kobalte.Group> {
|
|
18
|
+
}
|
|
19
|
+
export interface DropdownMenuGroupLabelProps extends ComponentProps<typeof Kobalte.GroupLabel> {
|
|
20
|
+
}
|
|
21
|
+
export interface DropdownMenuItemProps extends ComponentProps<typeof Kobalte.Item> {
|
|
22
|
+
}
|
|
23
|
+
export interface DropdownMenuItemLabelProps extends ComponentProps<typeof Kobalte.ItemLabel> {
|
|
24
|
+
}
|
|
25
|
+
export interface DropdownMenuItemDescriptionProps extends ComponentProps<typeof Kobalte.ItemDescription> {
|
|
26
|
+
}
|
|
27
|
+
export interface DropdownMenuItemIndicatorProps extends ComponentProps<typeof Kobalte.ItemIndicator> {
|
|
28
|
+
}
|
|
29
|
+
export interface DropdownMenuRadioGroupProps extends ComponentProps<typeof Kobalte.RadioGroup> {
|
|
30
|
+
}
|
|
31
|
+
export interface DropdownMenuRadioItemProps extends ComponentProps<typeof Kobalte.RadioItem> {
|
|
32
|
+
}
|
|
33
|
+
export interface DropdownMenuCheckboxItemProps extends ComponentProps<typeof Kobalte.CheckboxItem> {
|
|
34
|
+
}
|
|
35
|
+
export interface DropdownMenuSubProps extends ComponentProps<typeof Kobalte.Sub> {
|
|
36
|
+
}
|
|
37
|
+
export interface DropdownMenuSubTriggerProps extends ComponentProps<typeof Kobalte.SubTrigger> {
|
|
38
|
+
}
|
|
39
|
+
export interface DropdownMenuSubContentProps extends ComponentProps<typeof Kobalte.SubContent> {
|
|
40
|
+
}
|
|
41
|
+
declare function DropdownMenuRoot(props: DropdownMenuProps): import("solid-js").JSX.Element;
|
|
42
|
+
declare function DropdownMenuTrigger(props: ParentProps<DropdownMenuTriggerProps>): import("solid-js").JSX.Element;
|
|
43
|
+
declare function DropdownMenuIcon(props: ParentProps<DropdownMenuIconProps>): import("solid-js").JSX.Element;
|
|
44
|
+
declare function DropdownMenuPortal(props: DropdownMenuPortalProps): import("solid-js").JSX.Element;
|
|
45
|
+
declare function DropdownMenuContent(props: ParentProps<DropdownMenuContentProps>): import("solid-js").JSX.Element;
|
|
46
|
+
declare function DropdownMenuArrow(props: DropdownMenuArrowProps): import("solid-js").JSX.Element;
|
|
47
|
+
declare function DropdownMenuSeparator(props: DropdownMenuSeparatorProps): import("solid-js").JSX.Element;
|
|
48
|
+
declare function DropdownMenuGroup(props: ParentProps<DropdownMenuGroupProps>): import("solid-js").JSX.Element;
|
|
49
|
+
declare function DropdownMenuGroupLabel(props: ParentProps<DropdownMenuGroupLabelProps>): import("solid-js").JSX.Element;
|
|
50
|
+
declare function DropdownMenuItem(props: ParentProps<DropdownMenuItemProps>): import("solid-js").JSX.Element;
|
|
51
|
+
declare function DropdownMenuItemLabel(props: ParentProps<DropdownMenuItemLabelProps>): import("solid-js").JSX.Element;
|
|
52
|
+
declare function DropdownMenuItemDescription(props: ParentProps<DropdownMenuItemDescriptionProps>): import("solid-js").JSX.Element;
|
|
53
|
+
declare function DropdownMenuItemIndicator(props: ParentProps<DropdownMenuItemIndicatorProps>): import("solid-js").JSX.Element;
|
|
54
|
+
declare function DropdownMenuRadioGroup(props: ParentProps<DropdownMenuRadioGroupProps>): import("solid-js").JSX.Element;
|
|
55
|
+
declare function DropdownMenuRadioItem(props: ParentProps<DropdownMenuRadioItemProps>): import("solid-js").JSX.Element;
|
|
56
|
+
declare function DropdownMenuCheckboxItem(props: ParentProps<DropdownMenuCheckboxItemProps>): import("solid-js").JSX.Element;
|
|
57
|
+
declare function DropdownMenuSub(props: DropdownMenuSubProps): import("solid-js").JSX.Element;
|
|
58
|
+
declare function DropdownMenuSubTrigger(props: ParentProps<DropdownMenuSubTriggerProps>): import("solid-js").JSX.Element;
|
|
59
|
+
declare function DropdownMenuSubContent(props: ParentProps<DropdownMenuSubContentProps>): import("solid-js").JSX.Element;
|
|
60
|
+
export declare const DropdownMenu: typeof DropdownMenuRoot & {
|
|
61
|
+
Trigger: typeof DropdownMenuTrigger;
|
|
62
|
+
Icon: typeof DropdownMenuIcon;
|
|
63
|
+
Portal: typeof DropdownMenuPortal;
|
|
64
|
+
Content: typeof DropdownMenuContent;
|
|
65
|
+
Arrow: typeof DropdownMenuArrow;
|
|
66
|
+
Separator: typeof DropdownMenuSeparator;
|
|
67
|
+
Group: typeof DropdownMenuGroup;
|
|
68
|
+
GroupLabel: typeof DropdownMenuGroupLabel;
|
|
69
|
+
Item: typeof DropdownMenuItem;
|
|
70
|
+
ItemLabel: typeof DropdownMenuItemLabel;
|
|
71
|
+
ItemDescription: typeof DropdownMenuItemDescription;
|
|
72
|
+
ItemIndicator: typeof DropdownMenuItemIndicator;
|
|
73
|
+
RadioGroup: typeof DropdownMenuRadioGroup;
|
|
74
|
+
RadioItem: typeof DropdownMenuRadioItem;
|
|
75
|
+
CheckboxItem: typeof DropdownMenuCheckboxItem;
|
|
76
|
+
Sub: typeof DropdownMenuSub;
|
|
77
|
+
SubTrigger: typeof DropdownMenuSubTrigger;
|
|
78
|
+
SubContent: typeof DropdownMenuSubContent;
|
|
79
|
+
};
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Button as Kobalte } from "@kobalte/core/button";
|
|
2
|
+
import { type ComponentProps } from "solid-js";
|
|
3
|
+
import { IconProps } from "./icon";
|
|
4
|
+
export interface IconButtonProps extends ComponentProps<typeof Kobalte> {
|
|
5
|
+
icon: IconProps["name"];
|
|
6
|
+
size?: "small" | "normal" | "large";
|
|
7
|
+
iconSize?: IconProps["size"];
|
|
8
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
9
|
+
}
|
|
10
|
+
export declare function IconButton(props: ComponentProps<"button"> & IconButtonProps): import("solid-js").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ComponentProps } from "solid-js";
|
|
2
|
+
declare const icons: {
|
|
2
3
|
"align-right": string;
|
|
3
4
|
"arrow-up": string;
|
|
4
5
|
"arrow-left": string;
|
|
@@ -8,7 +9,6 @@ export declare const additionalIcons: {
|
|
|
8
9
|
prompt: string;
|
|
9
10
|
brain: string;
|
|
10
11
|
fork: string;
|
|
11
|
-
"workspace-isolated": string;
|
|
12
12
|
"bullet-list": string;
|
|
13
13
|
"check-small": string;
|
|
14
14
|
"chevron-down": string;
|
|
@@ -95,11 +95,11 @@ export declare const additionalIcons: {
|
|
|
95
95
|
link: string;
|
|
96
96
|
providers: string;
|
|
97
97
|
models: string;
|
|
98
|
-
appearance: string;
|
|
99
|
-
notifications: string;
|
|
100
|
-
extensions: string;
|
|
101
|
-
cube: string;
|
|
102
|
-
"post-skill": string;
|
|
103
98
|
"arrow-undo-down": string;
|
|
104
99
|
};
|
|
105
|
-
export
|
|
100
|
+
export interface IconProps extends ComponentProps<"svg"> {
|
|
101
|
+
name: keyof typeof icons;
|
|
102
|
+
size?: "small" | "normal" | "medium" | "large";
|
|
103
|
+
}
|
|
104
|
+
export declare function Icon(props: IconProps): import("solid-js").JSX.Element;
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentProps, ParentProps } from "solid-js";
|
|
2
|
+
export interface KeybindProps extends ParentProps {
|
|
3
|
+
class?: string;
|
|
4
|
+
classList?: ComponentProps<"span">["classList"];
|
|
5
|
+
}
|
|
6
|
+
export declare function Keybind(props: KeybindProps): import("solid-js").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FilteredListProps } from "@opencode-ai/ui/hooks";
|
|
2
2
|
import { type JSX } from "solid-js";
|
|
3
|
-
import { type IconProps } from "
|
|
3
|
+
import { type IconProps } from "./icon";
|
|
4
4
|
export interface ListSearchProps {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
autofocus?: boolean;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type ComponentProps } from "solid-js";
|
|
2
|
-
import "./progress-circle.css";
|
|
3
2
|
export interface ProgressCircleProps extends Pick<ComponentProps<"svg">, "class" | "classList" | "style"> {
|
|
4
3
|
percentage: number;
|
|
5
|
-
appearance?: "compact" | "indicator";
|
|
6
4
|
size?: number;
|
|
7
5
|
strokeWidth?: number;
|
|
8
6
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SegmentedControl as Kobalte } from "@kobalte/core/segmented-control";
|
|
2
|
+
import type { ComponentProps, JSX } from "solid-js";
|
|
3
|
+
export type RadioGroupProps<T> = Omit<ComponentProps<typeof Kobalte>, "value" | "defaultValue" | "onChange" | "children"> & {
|
|
4
|
+
options: T[];
|
|
5
|
+
current?: T;
|
|
6
|
+
defaultValue?: T;
|
|
7
|
+
value?: (x: T) => string;
|
|
8
|
+
label?: (x: T) => JSX.Element | string;
|
|
9
|
+
onSelect?: (value: T | undefined) => void;
|
|
10
|
+
class?: ComponentProps<"div">["class"];
|
|
11
|
+
classList?: ComponentProps<"div">["classList"];
|
|
12
|
+
size?: "small" | "medium";
|
|
13
|
+
fill?: boolean;
|
|
14
|
+
pad?: "none" | "normal";
|
|
15
|
+
};
|
|
16
|
+
export declare function RadioGroup<T>(props: RadioGroupProps<T>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps } from "solid-js";
|
|
1
|
+
import { type Accessor, type ComponentProps } from "solid-js";
|
|
2
2
|
export type ScrollViewThumbVisibility = "hover" | "scroll";
|
|
3
3
|
export interface ScrollViewProps extends ComponentProps<"div"> {
|
|
4
4
|
viewportRef?: (el: HTMLDivElement) => void;
|
|
@@ -11,9 +11,9 @@ export interface ScrollViewProps extends ComponentProps<"div"> {
|
|
|
11
11
|
* */
|
|
12
12
|
thumbVisibility?: ScrollViewThumbVisibility;
|
|
13
13
|
/** Mount the thumb into an external track. Scroll metrics still come from this ScrollView. */
|
|
14
|
-
thumbContainer?: HTMLElement
|
|
14
|
+
thumbContainer?: HTMLElement | Accessor<HTMLElement | undefined>;
|
|
15
15
|
/** Element whose hover reveals the thumb. Defaults to the ScrollView root when unset. */
|
|
16
|
-
thumbHoverTarget?: HTMLElement
|
|
16
|
+
thumbHoverTarget?: HTMLElement | Accessor<HTMLElement | undefined>;
|
|
17
17
|
}
|
|
18
18
|
export declare const scrollKey: (event: Pick<KeyboardEvent, "key" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey">) => "end" | "home" | "page-down" | "page-up" | "up" | "down" | undefined;
|
|
19
19
|
export declare function canScrollKey(element: HTMLElement, key: NonNullable<ReturnType<typeof scrollKey>>): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Select as Kobalte } from "@kobalte/core/select";
|
|
2
|
+
import { type ComponentProps, type JSX } from "solid-js";
|
|
3
|
+
import { ButtonProps } from "./button";
|
|
4
|
+
export type SelectProps<T> = Omit<ComponentProps<typeof Kobalte<T>>, "value" | "onSelect" | "children"> & {
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
options: T[];
|
|
7
|
+
current?: T;
|
|
8
|
+
value?: (x: T) => string;
|
|
9
|
+
label?: (x: T) => string;
|
|
10
|
+
groupBy?: (x: T) => string;
|
|
11
|
+
valueClass?: ComponentProps<"div">["class"];
|
|
12
|
+
onSelect?: (value: T | undefined) => void;
|
|
13
|
+
onHighlight?: (value: T | undefined) => (() => void) | void;
|
|
14
|
+
class?: ComponentProps<"div">["class"];
|
|
15
|
+
classList?: ComponentProps<"div">["classList"];
|
|
16
|
+
children?: (item: T | undefined) => JSX.Element;
|
|
17
|
+
triggerStyle?: JSX.CSSProperties;
|
|
18
|
+
triggerVariant?: "settings";
|
|
19
|
+
triggerProps?: Record<string, string | number | boolean | undefined>;
|
|
20
|
+
};
|
|
21
|
+
export declare function Select<T>(props: SelectProps<T> & Omit<ButtonProps, "children">): JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Switch as Kobalte } from "@kobalte/core/switch";
|
|
2
2
|
import type { ComponentProps, ParentProps } from "solid-js";
|
|
3
|
-
|
|
4
|
-
export interface SwitchProps extends ParentProps<ComponentProps<typeof Root>> {
|
|
5
|
-
appearance?: "standard" | "compact";
|
|
3
|
+
export interface SwitchProps extends ParentProps<ComponentProps<typeof Kobalte>> {
|
|
6
4
|
hideLabel?: boolean;
|
|
7
5
|
description?: string;
|
|
8
6
|
}
|
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tabs as Kobalte } from "@kobalte/core/tabs";
|
|
2
2
|
import { type JSX } from "solid-js";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface TabsProps extends ComponentProps<typeof Root> {
|
|
7
|
-
variant?: TabsVariant;
|
|
3
|
+
import type { ComponentProps, ParentProps, Component } from "solid-js";
|
|
4
|
+
export interface TabsProps extends ComponentProps<typeof Kobalte> {
|
|
5
|
+
variant?: "normal" | "alt" | "pill" | "settings";
|
|
8
6
|
orientation?: "horizontal" | "vertical";
|
|
9
7
|
}
|
|
10
|
-
export interface TabsListProps extends ComponentProps<typeof List> {
|
|
8
|
+
export interface TabsListProps extends ComponentProps<typeof Kobalte.List> {
|
|
11
9
|
}
|
|
12
|
-
export interface TabsTriggerProps extends ComponentProps<typeof Trigger> {
|
|
10
|
+
export interface TabsTriggerProps extends ComponentProps<typeof Kobalte.Trigger> {
|
|
13
11
|
classes?: {
|
|
14
12
|
button?: string;
|
|
15
13
|
};
|
|
16
|
-
closeButton?: JSX.Element;
|
|
17
14
|
hideCloseButton?: boolean;
|
|
15
|
+
closeButton?: JSX.Element;
|
|
18
16
|
onMiddleClick?: () => void;
|
|
19
|
-
subtext?: JSX.Element | string;
|
|
20
|
-
}
|
|
21
|
-
export interface TabsCloseButtonProps extends ComponentProps<"button"> {
|
|
22
17
|
}
|
|
23
|
-
export interface TabsContentProps extends ComponentProps<typeof Content> {
|
|
18
|
+
export interface TabsContentProps extends ComponentProps<typeof Kobalte.Content> {
|
|
24
19
|
}
|
|
25
20
|
declare function TabsRoot(props: TabsProps): JSX.Element;
|
|
26
21
|
declare function TabsList(props: TabsListProps): JSX.Element;
|
|
27
22
|
declare function TabsTrigger(props: ParentProps<TabsTriggerProps>): JSX.Element;
|
|
28
|
-
declare function TabsCloseButton(props: TabsCloseButtonProps): JSX.Element;
|
|
29
23
|
declare function TabsContent(props: ParentProps<TabsContentProps>): JSX.Element;
|
|
30
24
|
export declare const Tabs: typeof TabsRoot & {
|
|
31
25
|
List: typeof TabsList;
|
|
32
26
|
Trigger: typeof TabsTrigger;
|
|
33
|
-
CloseButton: typeof TabsCloseButton;
|
|
34
27
|
Content: typeof TabsContent;
|
|
35
28
|
SectionTitle: Component<{
|
|
36
29
|
children?: JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Toast as Kobalte, toaster } from "@kobalte/core/toast";
|
|
2
|
+
import type { ToastRootProps, ToastCloseButtonProps, ToastTitleProps, ToastDescriptionProps } from "@kobalte/core/toast";
|
|
3
|
+
import type { ComponentProps, JSX } from "solid-js";
|
|
4
|
+
import { type IconProps } from "./icon";
|
|
5
|
+
export interface ToastRegionProps extends ComponentProps<typeof Kobalte.Region> {
|
|
6
|
+
}
|
|
7
|
+
declare function ToastRegion(props: ToastRegionProps): JSX.Element;
|
|
8
|
+
export interface ToastRootComponentProps extends ToastRootProps {
|
|
9
|
+
class?: string;
|
|
10
|
+
classList?: ComponentProps<"li">["classList"];
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
declare function ToastRoot(props: ToastRootComponentProps): JSX.Element;
|
|
14
|
+
declare function ToastIcon(props: {
|
|
15
|
+
name: IconProps["name"];
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
declare function ToastContent(props: ComponentProps<"div">): JSX.Element;
|
|
18
|
+
declare function ToastTitle(props: ToastTitleProps & ComponentProps<"div">): JSX.Element;
|
|
19
|
+
declare function ToastDescription(props: ToastDescriptionProps & ComponentProps<"div">): JSX.Element;
|
|
20
|
+
declare function ToastActions(props: ComponentProps<"div">): JSX.Element;
|
|
21
|
+
declare function ToastCloseButton(props: ToastCloseButtonProps & ComponentProps<"button">): JSX.Element;
|
|
22
|
+
declare function ToastProgressTrack(props: ComponentProps<typeof Kobalte.ProgressTrack>): JSX.Element;
|
|
23
|
+
declare function ToastProgressFill(props: ComponentProps<typeof Kobalte.ProgressFill>): JSX.Element;
|
|
24
|
+
export declare const Toast: typeof ToastRoot & {
|
|
25
|
+
Region: typeof ToastRegion;
|
|
26
|
+
Icon: typeof ToastIcon;
|
|
27
|
+
Content: typeof ToastContent;
|
|
28
|
+
Title: typeof ToastTitle;
|
|
29
|
+
Description: typeof ToastDescription;
|
|
30
|
+
Actions: typeof ToastActions;
|
|
31
|
+
CloseButton: typeof ToastCloseButton;
|
|
32
|
+
ProgressTrack: typeof ToastProgressTrack;
|
|
33
|
+
ProgressFill: typeof ToastProgressFill;
|
|
34
|
+
};
|
|
35
|
+
export { toaster };
|
|
36
|
+
export type ToastVariant = "default" | "success" | "error" | "loading";
|
|
37
|
+
export interface ToastAction {
|
|
38
|
+
label: string;
|
|
39
|
+
onClick: "dismiss" | (() => void);
|
|
40
|
+
}
|
|
41
|
+
export interface ToastOptions {
|
|
42
|
+
title?: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
icon?: IconProps["name"];
|
|
45
|
+
variant?: ToastVariant;
|
|
46
|
+
duration?: number;
|
|
47
|
+
persistent?: boolean;
|
|
48
|
+
actions?: ToastAction[];
|
|
49
|
+
}
|
|
50
|
+
export declare function showToast(options: ToastOptions | string): number;
|
|
51
|
+
export interface ToastPromiseOptions<T, U = unknown> {
|
|
52
|
+
loading?: JSX.Element;
|
|
53
|
+
success?: (data: T) => JSX.Element;
|
|
54
|
+
error?: (error: U) => JSX.Element;
|
|
55
|
+
}
|
|
56
|
+
export declare function showPromiseToast<T, U = unknown>(promise: Promise<T> | (() => Promise<T>), options: ToastPromiseOptions<T, U>): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tooltip as KobalteTooltip } from "@kobalte/core/tooltip";
|
|
2
|
+
import { type JSX } from "solid-js";
|
|
3
|
+
import type { ComponentProps } from "solid-js";
|
|
4
|
+
export interface TooltipProps extends ComponentProps<typeof KobalteTooltip> {
|
|
5
|
+
value: JSX.Element;
|
|
6
|
+
class?: string;
|
|
7
|
+
contentClass?: string;
|
|
8
|
+
contentStyle?: JSX.CSSProperties;
|
|
9
|
+
inactive?: boolean;
|
|
10
|
+
forceOpen?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface TooltipKeybindProps extends Omit<TooltipProps, "value"> {
|
|
13
|
+
title: string;
|
|
14
|
+
keybind: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function TooltipKeybind(props: TooltipKeybindProps): JSX.Element;
|
|
17
|
+
export declare function Tooltip(props: TooltipProps): JSX.Element;
|
package/dist/context/i18n.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { type Accessor, type ParentProps } from "solid-js";
|
|
2
|
-
import
|
|
3
|
-
export type UiI18nKey =
|
|
4
|
-
export
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
type UiTranslationKey<Value extends string> = Value extends UiI18nPluralLookupKey ? never : Value;
|
|
2
|
+
import { dict as en } from "../i18n/en";
|
|
3
|
+
export type UiI18nKey = keyof typeof en;
|
|
4
|
+
export declare const UI_PLURAL_KEYS: readonly ["ui.sessionTurn.diffs.changed", "ui.messagePart.context.read", "ui.messagePart.context.search", "ui.messagePart.context.list"];
|
|
5
|
+
export type UiI18nPluralKey = (typeof UI_PLURAL_KEYS)[number];
|
|
6
|
+
export type UiPluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
|
|
7
|
+
export type UiI18nPluralLookupKey = `${UiI18nPluralKey}.${UiPluralCategory}`;
|
|
9
8
|
export type UiI18nParams = Record<string, string | number | boolean>;
|
|
10
|
-
export type UiTranslate = <Value extends string>(key: UiTranslationKey<Value>, params?: UiI18nParams) => string;
|
|
11
9
|
export type UiI18n = {
|
|
12
10
|
locale: Accessor<string>;
|
|
13
11
|
layoutLocale?: Accessor<string>;
|
|
14
|
-
t:
|
|
12
|
+
t: (key: UiI18nKey, params?: UiI18nParams) => string;
|
|
15
13
|
plural: (key: UiI18nPluralKey, count: number, params?: UiI18nParams) => string;
|
|
16
|
-
pluralForm?: (key: UiI18nPluralKey, category: UiPluralCategory, params?: UiI18nParams) => string;
|
|
17
14
|
};
|
|
18
15
|
export declare function pluralCategory(locale: string, count: number): UiPluralCategory;
|
|
19
16
|
export declare function pluralKey(key: UiI18nPluralKey, category: UiPluralCategory): UiI18nPluralLookupKey;
|
package/dist/i18n/ar.d.ts
CHANGED
|
@@ -152,6 +152,8 @@ export declare const dict: {
|
|
|
152
152
|
"ui.tool.websearch.provider": string;
|
|
153
153
|
"ui.tool.shell": string;
|
|
154
154
|
"ui.tool.patch": string;
|
|
155
|
+
"ui.tool.todos": string;
|
|
156
|
+
"ui.tool.todos.read": string;
|
|
155
157
|
"ui.tool.questions": string;
|
|
156
158
|
"ui.tool.questions.numbered": string;
|
|
157
159
|
"ui.tool.agent": string;
|
package/dist/i18n/bg.d.ts
CHANGED
|
@@ -141,6 +141,8 @@ export declare const dict: {
|
|
|
141
141
|
"ui.tool.websearch.provider": string;
|
|
142
142
|
"ui.tool.shell": string;
|
|
143
143
|
"ui.tool.patch": string;
|
|
144
|
+
"ui.tool.todos": string;
|
|
145
|
+
"ui.tool.todos.read": string;
|
|
144
146
|
"ui.tool.questions": string;
|
|
145
147
|
"ui.tool.questions.numbered": string;
|
|
146
148
|
"ui.tool.agent": string;
|
package/dist/i18n/br.d.ts
CHANGED
|
@@ -140,6 +140,8 @@ export declare const dict: {
|
|
|
140
140
|
"ui.tool.websearch.provider": string;
|
|
141
141
|
"ui.tool.shell": string;
|
|
142
142
|
"ui.tool.patch": string;
|
|
143
|
+
"ui.tool.todos": string;
|
|
144
|
+
"ui.tool.todos.read": string;
|
|
143
145
|
"ui.tool.questions": string;
|
|
144
146
|
"ui.tool.questions.numbered": string;
|
|
145
147
|
"ui.tool.agent": string;
|
package/dist/i18n/bs.d.ts
CHANGED
|
@@ -140,6 +140,8 @@ export declare const dict: {
|
|
|
140
140
|
"ui.tool.websearch.provider": string;
|
|
141
141
|
"ui.tool.shell": string;
|
|
142
142
|
"ui.tool.patch": string;
|
|
143
|
+
"ui.tool.todos": string;
|
|
144
|
+
"ui.tool.todos.read": string;
|
|
143
145
|
"ui.tool.questions": string;
|
|
144
146
|
"ui.tool.questions.numbered": string;
|
|
145
147
|
"ui.tool.agent": string;
|
package/dist/i18n/da.d.ts
CHANGED
|
@@ -118,6 +118,8 @@ export declare const dict: {
|
|
|
118
118
|
"ui.tool.websearch.provider": string;
|
|
119
119
|
"ui.tool.shell": string;
|
|
120
120
|
"ui.tool.patch": string;
|
|
121
|
+
"ui.tool.todos": string;
|
|
122
|
+
"ui.tool.todos.read": string;
|
|
121
123
|
"ui.tool.questions": string;
|
|
122
124
|
"ui.tool.questions.numbered": string;
|
|
123
125
|
"ui.tool.agent": string;
|
package/dist/i18n/de.d.ts
CHANGED
|
@@ -118,6 +118,8 @@ export declare const dict: {
|
|
|
118
118
|
"ui.tool.websearch.provider": string;
|
|
119
119
|
"ui.tool.shell": string;
|
|
120
120
|
"ui.tool.patch": string;
|
|
121
|
+
"ui.tool.todos": string;
|
|
122
|
+
"ui.tool.todos.read": string;
|
|
121
123
|
"ui.tool.questions": string;
|
|
122
124
|
"ui.tool.questions.numbered": string;
|
|
123
125
|
"ui.tool.agent": string;
|