@reopt-ai/opt-ui 1.12.4 → 1.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.
- package/CHANGELOG.md +236 -0
- package/COMPONENT_CATALOG.md +290 -111
- package/dist/core/index.cjs +13 -13
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/docs/02-components/01-core.md +49 -49
- package/dist/docs/02-components/02-visuals.md +1 -1
- package/dist/docs/02-components/03-shells.md +260 -63
- package/dist/docs/02-components/04-surfaces.md +1 -1
- package/dist/docs/02-components/index.md +4 -4
- package/dist/{field-sidebar-C8bDzGPs.js → field-sidebar-CRdToHRO.js} +3975 -235
- package/dist/{field-sidebar-DX5wP0qn.cjs → field-sidebar-CxxSK4JO.cjs} +4338 -244
- package/dist/{field-sidebar-Ct8c9L4V.d.cts → field-sidebar-D-rwuN_w.d.cts} +824 -2
- package/dist/{field-sidebar-YaWHfLLW.d.ts → field-sidebar-Dz7J4ett.d.ts} +824 -2
- package/dist/id-registry.cjs +72 -0
- package/dist/id-registry.js +72 -0
- package/dist/id-registry.json +153 -0
- package/dist/index.cjs +334 -1419
- package/dist/index.d.cts +51 -86
- package/dist/index.d.ts +51 -86
- package/dist/index.js +248 -1356
- package/dist/{key-pad-menu-1YN221Oi.cjs → key-pad-menu-0KWOnELe.cjs} +53 -483
- package/dist/{key-pad-menu-CwcY_Vps.d.cts → key-pad-menu-BOVu97bj.d.cts} +4 -55
- package/dist/{key-pad-menu-CUiQ-vKw.js → key-pad-menu-DMmbQ1jF.js} +54 -418
- package/dist/{key-pad-menu-WBJShCJn.d.ts → key-pad-menu-NlZ9zNF8.d.ts} +4 -55
- package/dist/meta.cjs +896 -7
- package/dist/meta.js +896 -7
- package/dist/shells/index.cjs +20 -1
- package/dist/shells/index.d.cts +2 -2
- package/dist/shells/index.d.ts +2 -2
- package/dist/shells/index.js +2 -2
- package/dist/{text-truncate-BFWd2cE_.js → text-truncate-Bd-0WkSP.js} +463 -99
- package/dist/{text-truncate-DsG5UAOY.cjs → text-truncate-BeYW6XZu.cjs} +525 -101
- package/dist/{text-truncate-CQyfUZvq.d.cts → text-truncate-eMzvU_7k.d.cts} +52 -1
- package/dist/{text-truncate-CQyfUZvq.d.ts → text-truncate-eMzvU_7k.d.ts} +52 -1
- package/dist/theme/server.cjs +2 -2
- package/dist/theme/server.js +2 -2
- package/package.json +6 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { g as DateRangePickerProps, q as StatCard$1 } from "./text-truncate-eMzvU_7k.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { CSSProperties, ComponentPropsWithoutRef, HTMLAttributes, ImgHTMLAttributes, ReactNode } from "react";
|
|
5
|
-
import { AccordionContentProps as PrimAccordionContentProps, AccordionItemProps as PrimAccordionItemProps, AccordionRootProps, AccordionTriggerProps as PrimAccordionTriggerProps, AlertDialogPanelProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInputProps, ComboboxItemProps, ComboboxPopoverProps, ComboboxRootProps, Composite, CompositeItem, CompositeProvider, CompositeRow, DialogPanelProps, DialogRootProps, DisclosureContentProps as PrimDisclosureContentProps, DisclosureRootProps, DisclosureTriggerProps as PrimDisclosureTriggerProps, FormCheckboxProps, FormDescriptionProps, FormErrorProps, FormFieldProps, FormGroupLabelProps, FormGroupProps, FormInputProps, FormLabelProps, FormProvider, FormPushProps, FormRadioGroupProps, FormRadioProps, FormRemoveProps, FormResetProps, FormRootProps, FormStoreInstance, FormSubmitProps, FormSwitchProps, MenuButtonArrowProps, MenuItemCheckboxProps, MenuItemProps, MenuItemRadioProps, MenuPopoverProps, MenuRootProps, MenuSeparatorProps, MenuTriggerProps, MenubarContainerProps, MenubarRootProps, PopoverCloseProps, PopoverContentProps, PopoverRootProps, PopoverTriggerProps, SelectItemProps, SelectLabelProps, SelectPopoverProps, SelectRootProps, SelectTriggerProps, TabListProps, TabPanelProps, TabProps, TabsRootProps, ToggleGroupProps, ToggleProps, ToolbarButtonProps, ToolbarContainerProps, ToolbarRootProps, ToolbarSeparatorProps, TooltipAnchorProps, TooltipProps,
|
|
5
|
+
import { AccordionContentProps as PrimAccordionContentProps, AccordionItemProps as PrimAccordionItemProps, AccordionRootProps, AccordionTriggerProps as PrimAccordionTriggerProps, AlertDialogPanelProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInputProps, ComboboxItemProps, ComboboxPopoverProps, ComboboxRootProps, Composite, CompositeItem, CompositeProvider, CompositeRow, DialogPanelProps, DialogRootProps, DisclosureContentProps as PrimDisclosureContentProps, DisclosureRootProps, DisclosureTriggerProps as PrimDisclosureTriggerProps, FormCheckboxProps, FormDescriptionProps, FormErrorProps, FormFieldProps, FormGroupLabelProps, FormGroupProps, FormInputProps, FormLabelProps, FormProvider, FormPushProps, FormRadioGroupProps, FormRadioProps, FormRemoveProps, FormResetProps, FormRootProps, FormStoreInstance, FormSubmitProps, FormSwitchProps, MenuButtonArrowProps, MenuItemCheckboxProps, MenuItemProps, MenuItemRadioProps, MenuPopoverProps, MenuRootProps, MenuSeparatorProps, MenuTriggerProps, MenubarContainerProps, MenubarRootProps, PopoverCloseProps, PopoverContentProps, PopoverRootProps, PopoverTriggerProps, SelectItemProps, SelectLabelProps, SelectPopoverProps, SelectRootProps, SelectTriggerProps, TabListProps, TabPanelProps, TabProps, TabsRootProps, ToggleGroupProps, ToggleProps, ToolbarButtonProps, ToolbarContainerProps, ToolbarRootProps, ToolbarSeparatorProps, TooltipAnchorProps, TooltipProps, TooltipRootProps, useFieldValue, useFormContext, useFormStore } from "@reopt-ai/opt-ui-primitives";
|
|
6
6
|
import { GroupImperativeHandle, GroupProps, Layout, PanelImperativeHandle, PanelProps, PanelSize, SeparatorProps } from "react-resizable-panels";
|
|
7
7
|
//#region src/core/kbd.d.ts
|
|
8
8
|
/** Props for the kbd component. */
|
|
@@ -1083,7 +1083,7 @@ declare function ToolbarButton$1({ className, ...props }: ToolbarButtonProps): i
|
|
|
1083
1083
|
/** Renders the toolbar separator component. */
|
|
1084
1084
|
declare function ToolbarSeparator$1({ className, ...props }: ToolbarSeparatorProps): import("react").JSX.Element;
|
|
1085
1085
|
/** Renders the tooltip provider component. */
|
|
1086
|
-
declare function TooltipProvider
|
|
1086
|
+
declare function TooltipProvider(props: TooltipRootProps): import("react").JSX.Element;
|
|
1087
1087
|
/** Renders the tooltip anchor component. */
|
|
1088
1088
|
declare function TooltipAnchor$1({ className, ...props }: TooltipAnchorProps): import("react").JSX.Element;
|
|
1089
1089
|
/** Renders the tooltip component. */
|
|
@@ -1249,57 +1249,6 @@ interface TagInputProps {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
declare const TagInput: import("react").ForwardRefExoticComponent<TagInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1251
1251
|
//#endregion
|
|
1252
|
-
//#region src/core/date-range-picker.d.ts
|
|
1253
|
-
/** Defines the date range shape. */
|
|
1254
|
-
interface DateRange {
|
|
1255
|
-
start: Date | null;
|
|
1256
|
-
end: Date | null;
|
|
1257
|
-
}
|
|
1258
|
-
/** Defines the date range preset shape. */
|
|
1259
|
-
interface DateRangePreset {
|
|
1260
|
-
label: string;
|
|
1261
|
-
range: () => DateRange;
|
|
1262
|
-
}
|
|
1263
|
-
/** Type definition for date granularity. */
|
|
1264
|
-
type DateGranularity = "hour" | "day" | "week" | "month";
|
|
1265
|
-
/** Type definition for comparison mode. */
|
|
1266
|
-
type ComparisonMode = "previous" | "year-over-year";
|
|
1267
|
-
/** Props for the date range picker component. */
|
|
1268
|
-
interface DateRangePickerProps {
|
|
1269
|
-
value?: DateRange;
|
|
1270
|
-
onChange?: (range: DateRange) => void;
|
|
1271
|
-
presets?: DateRangePreset[];
|
|
1272
|
-
placeholder?: string;
|
|
1273
|
-
label?: string;
|
|
1274
|
-
required?: boolean;
|
|
1275
|
-
error?: string;
|
|
1276
|
-
hint?: string;
|
|
1277
|
-
className?: string;
|
|
1278
|
-
id?: string;
|
|
1279
|
-
triggerClassName?: string;
|
|
1280
|
-
"aria-label"?: string;
|
|
1281
|
-
disabled?: boolean;
|
|
1282
|
-
format?: (date: Date) => string;
|
|
1283
|
-
/** Enable comparison mode toggle */
|
|
1284
|
-
comparison?: boolean;
|
|
1285
|
-
/** Current comparison mode */
|
|
1286
|
-
comparisonMode?: ComparisonMode;
|
|
1287
|
-
/** Called when comparison mode changes (null = comparison off) */
|
|
1288
|
-
onComparisonChange?: (mode: ComparisonMode | null) => void;
|
|
1289
|
-
/** Enable time granularity selector */
|
|
1290
|
-
showGranularity?: boolean;
|
|
1291
|
-
/** Current granularity */
|
|
1292
|
-
granularity?: DateGranularity;
|
|
1293
|
-
/** Called when granularity changes */
|
|
1294
|
-
onGranularityChange?: (granularity: DateGranularity) => void;
|
|
1295
|
-
}
|
|
1296
|
-
declare const DEFAULT_PRESETS: DateRangePreset[];
|
|
1297
|
-
/** Renders the date range picker component. */
|
|
1298
|
-
declare function DateRangePicker({ value, onChange, presets, placeholder, label, required, error, hint, className, id, triggerClassName, "aria-label": ariaLabel, disabled, format, comparison, comparisonMode, onComparisonChange, showGranularity, granularity, onGranularityChange }: DateRangePickerProps): import("react").JSX.Element;
|
|
1299
|
-
declare namespace DateRangePicker {
|
|
1300
|
-
var displayName: string;
|
|
1301
|
-
}
|
|
1302
|
-
//#endregion
|
|
1303
1252
|
//#region src/core/form.d.ts
|
|
1304
1253
|
type FormRootProps$1 = FormRootProps & {
|
|
1305
1254
|
/** FormStore instance. When provided, wraps children with FormProvider automatically. */
|
|
@@ -2341,4 +2290,4 @@ interface KeyPadMenuProps {
|
|
|
2341
2290
|
*/
|
|
2342
2291
|
declare function KeyPadMenu({ items, label, selection, value, onValueChange, columns, size, hideLabel, className }: KeyPadMenuProps): import("react").JSX.Element;
|
|
2343
2292
|
//#endregion
|
|
2344
|
-
export { DrawerSize as $,
|
|
2293
|
+
export { DrawerSize as $, DescriptionListProps as $i, ToolbarContainer$1 as $n, DisclosureRoot$1 as $r, FormColorPickerProps as $t, ShaderSurfaceHandle as A, TextProps as Aa, Spinner as Ai, FormSwitch$1 as An, DialogFooterProps as Ar, CheckboxGroupProps as At, ShaderPresetCategory as B, CardDescriptionProps as Bi, TagInputProps as Bn, SelectRoot$1 as Br, PopoverRoot$1 as Bt, Facet as C, SeparatorProps$1 as Ca, SkeletonText as Ci, FormSelectPopover as Cn, AlertDialogPanelProps$1 as Cr, BlockLayoutProps as Ct, FacetItem as D, HeadingRole as Da, InputProps as Di, FormStarRating as Dn, DialogDisclosure$1 as Dr, RadioProps as Dt, FacetGroupProps as E, HeadingProps as Ea, Input as Ei, FormSliderProps as En, DialogDescription$1 as Er, RadioGroupProps as Et, SHADER_PRESETS as F, ButtonProps as Fi, FormTextareaProps as Fn, DialogRoot$1 as Fr, DropdownSeparator as Ft, VirtualListProps as G, CardProps as Gi, ColorPickerProps as Gn, TabPanel$1 as Gr, ConditionGroup as Gt, getShaderFragment as H, CardFooterProps as Hi, IconPicker as Hn, Tab$1 as Hr, ConditionBuilder as Ht, SHADER_PRESET_IDS as I, Card as Ii, useFieldValue as In, DialogSize as Ir, DropdownTrigger as It, DrawerClose as J, Identity as Ji, Slider as Jn, TabStatus as Jr, StepBuilder as Jt, Pagination as K, CardTitle as Ki, StarRating as Kn, TabPanelProps$1 as Kr, ConditionOperator as Kt, ShaderParamKey as L, CardContent as Li, useFormContext as Ln, SelectItem$1 as Lr, PopoverClose$1 as Lt, SHADER_OVERLAY_PARAM_KEYS as M, TextTone as Ma, Badge as Mi, FormTagInput as Mn, DialogHeaderProps as Mr, DropdownContent as Mt, SHADER_PARAM_FALLBACK as N, Kbd as Na, BadgeProps as Ni, FormTagInputProps as Nn, DialogHeading$1 as Nr, DropdownItem as Nt, FacetProps as O, Text as Oa, Alert as Oi, FormStarRatingProps as On, DialogDismiss$1 as Or, Checkbox as Ot, SHADER_PARAM_KEYS as P, KbdProps as Pa, Button as Pi, FormTextarea as Pn, DialogPanel$1 as Pr, DropdownMenu as Pt, DrawerSide as Q, DescriptionListLabels as Qi, ToolbarButton$1 as Qn, DisclosureContent$1 as Qr, FormColorPicker as Qt, ShaderParamSpec as R, CardContentProps as Ri, useFormStore as Rn, SelectLabel$1 as Rr, PopoverContent$1 as Rt, ExpressionTone as S, Separator$2 as Sa, SkeletonTable as Si, FormSelectItem as Sn, AlertDialogPanel$1 as Sr, BlockLayout as St, FacetGroupLabels as T, HeadingLevel as Ta, SwitchProps as Ti, FormSlider as Tn, DialogBodyProps as Tr, RadioGroup as Tt, getShaderPreset as U, CardHeader as Ui, IconPickerProps as Un, TabList$1 as Ur, ConditionBuilderProps as Ut, ShaderPresetId as V, CardFooter as Vi, IconDef as Vn, SelectTrigger$1 as Vr, PopoverTrigger$1 as Vt, VirtualList as W, CardHeaderProps as Wi, ColorPicker as Wn, TabListProps$1 as Wr, ConditionDef as Wt, DrawerPanelProps as X, DescriptionList as Xi, NumberInput as Xn, TabsRootProps$1 as Xr, StepDef as Xt, DrawerPanel as Y, IdentityProps as Yi, SliderProps as Yn, TabsRoot$1 as Yr, StepBuilderProps as Yt, DrawerRoot as Z, DescriptionListItem as Zi, NumberInputProps as Zn, TabsVariant as Zr, FormCheckbox$1 as Zt, HighlightProps as _, ToggleGroup$1 as _a, TextareaProps as _i, FormRadioGroup$1 as _n, ComboboxGroupLabel$1 as _r, ScrollAreaProps as _t, InlineEditLabels as a, BreadcrumbProps as aa, CompositeZone as ai, FormField$1 as an, MenuButtonArrow$1 as ar, PanelSize as at, ExpressionGroupProps as b, OtpField as ba, SkeletonCard as bi, FormRoot$1 as bn, ComboboxPopover$1 as br, BlockBaseProps as bt, ColorPaletteDisplay as c, AccordionContent$1 as ca, CircularProgress as ci, FormIconPicker as cn, MenuItemRadio$1 as cr, ResizablePanel as ct, ColorPalettePickerProps as d, AccordionRootProps as da, ProgressProps as di, FormLabel$1 as dn, MenuSeparator$1 as dr, ResizablePanelProps as dt, EmptyState as ea, DisclosureTrigger$1 as ei, FormControl$1 as en, ToolbarRoot$1 as er, Logo as et, PaletteKind as f, AccordionTrigger$1 as fa, Avatar as fi, FormNumberInput as fn, MenuTrigger$1 as fr, Section as ft, Highlight as g, Toggle$1 as ga, Textarea as gi, FormRadio$1 as gn, ComboboxGroup$1 as gr, ScrollArea as gt, LiveRegionProps as h, PrimAccordionTriggerProps as ha, AvatarProps as hi, FormPush$1 as hn, ComboboxEmpty as hr, ContainerProps as ht, InlineEdit as i, BreadcrumbItem as ia, CompositeRow as ii, FormError$1 as in, TooltipProvider as ir, PanelImperativeHandle as it, ShaderSurfaceProps as j, TextRole as ja, SpinnerProps as ji, FormSwitchProps$1 as jn, DialogHeader as jr, CheckboxProps as jt, ShaderSurface as k, TextElement as ka, AlertProps as ki, FormSubmit$1 as kn, DialogFooter as kr, CheckboxGroup as kt, ColorPaletteDisplayProps as l, AccordionItem$1 as la, CircularProgressProps as li, FormIconPickerProps as ln, MenuPopover$1 as lr, ResizablePanelGroup as lt, LiveRegion as m, PrimAccordionItemProps as ma, AvatarGroupProps as mi, FormProvider$1 as mn, MenubarRoot$1 as mr, Container as mt, KeyPadMenu as n, EmptyStateProps as na, CompositeItem as ni, FormDateRangePickerProps as nn, Tooltip$1 as nr, GroupImperativeHandle as nt, InlineEditProps as o, StatCard as oa, Meter$1 as oi, FormGroup$1 as on, MenuItem$1 as or, ResizableHandle as ot, THEME_PALETTES as p, PrimAccordionContentProps as pa, AvatarGroup as pi, FormNumberInputProps as pn, MenubarContainer$1 as pr, SectionProps as pt, PaginationProps as q, CardTitleProps as qi, StarRatingProps as qn, TabProps$1 as qr, ConditionTypeRenderer as qt, KeyPadMenuProps as r, Breadcrumb as ra, CompositeProvider as ri, FormDescription$1 as rn, TooltipAnchor$1 as rr, Layout as rt, ColorPalette as s, StatCardProps as sa, MeterProps as si, FormGroupLabel$1 as sn, MenuItemCheckbox$1 as sr, ResizableHandleProps as st, KeyPadItem as t, EmptyStateAction as ta, Composite as ti, FormDateRangePicker as tn, ToolbarSeparator$1 as tr, LogoProps as tt, ColorPalettePicker as u, AccordionRoot$1 as ua, Progress as ui, FormInput$1 as un, MenuRoot$1 as ur, ResizablePanelGroupProps as ut, Expression as v, ToggleGroupProps$1 as va, Skeleton as vi, FormRemove$1 as vn, ComboboxInput$1 as vr, PageHeader as vt, FacetGroup as w, Heading as wa, Switch as wi, FormSelectProps as wn, DialogBody as wr, Radio$1 as wt, ExpressionProps as x, OtpFieldProps as xa, SkeletonProps as xi, FormSelect as xn, ComboboxRoot$1 as xr, createBlock as xt, ExpressionGroup as y, ToggleProps$1 as ya, SkeletonAvatar as yi, FormReset$1 as yn, ComboboxItem$1 as yr, PageHeaderProps as yt, ShaderPreset as z, CardDescription as zi, TagInput as zn, SelectPopover$1 as zr, PopoverContentProps$1 as zt };
|