@reopt-ai/opt-ui 1.13.0 → 1.14.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/COMPONENT_CATALOG.md +426 -58
- package/README.md +9 -7
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/docs/02-components/01-core.md +225 -26
- package/dist/docs/02-components/02-visuals.md +1 -1
- package/dist/docs/02-components/03-shells.md +203 -32
- package/dist/docs/02-components/04-surfaces.md +1 -1
- package/dist/docs/02-components/index.md +4 -4
- package/dist/{field-sidebar-Dz7J4ett.d.ts → field-sidebar-CJ4HxP8D.d.cts} +1 -1
- package/dist/{field-sidebar-D-rwuN_w.d.cts → field-sidebar-DnhpcT2A.d.ts} +1 -1
- package/dist/{field-sidebar-CxxSK4JO.cjs → field-sidebar-ePqFX6MN.cjs} +13 -12
- package/dist/{field-sidebar-CRdToHRO.js → field-sidebar-mSVCMAZp.js} +13 -12
- package/dist/id-registry.cjs +8 -0
- package/dist/id-registry.js +8 -0
- package/dist/id-registry.json +17 -0
- package/dist/index.cjs +756 -51
- package/dist/index.d.cts +196 -10
- package/dist/index.d.ts +196 -10
- package/dist/index.js +750 -53
- package/dist/{key-pad-menu-0KWOnELe.cjs → key-pad-menu-BgtSL3xe.cjs} +9 -6
- package/dist/{key-pad-menu-DMmbQ1jF.js → key-pad-menu-CqFI6la9.js} +9 -6
- package/dist/{key-pad-menu-BOVu97bj.d.cts → key-pad-menu-D6pYzaj-.d.cts} +12 -3
- package/dist/{key-pad-menu-NlZ9zNF8.d.ts → key-pad-menu-Yh7Fpb8m.d.ts} +12 -3
- package/dist/meta.cjs +430 -19
- package/dist/meta.js +430 -19
- package/dist/shells/index.cjs +1 -1
- package/dist/shells/index.d.cts +1 -1
- package/dist/shells/index.d.ts +1 -1
- package/dist/shells/index.js +1 -1
- package/dist/{text-truncate-eMzvU_7k.d.cts → text-truncate-Bbul-jMD.d.cts} +1 -30
- package/dist/{text-truncate-eMzvU_7k.d.ts → text-truncate-Bbul-jMD.d.ts} +1 -30
- package/dist/theme/server.d.cts +2 -2
- package/dist/theme/server.d.ts +2 -2
- package/package.json +2 -2
|
@@ -583,7 +583,7 @@ function AvatarGroup(_ref5) {
|
|
|
583
583
|
}
|
|
584
584
|
//#endregion
|
|
585
585
|
//#region src/core/identity.tsx
|
|
586
|
-
const defaultLabels$
|
|
586
|
+
const defaultLabels$3 = {
|
|
587
587
|
identified: "Identified",
|
|
588
588
|
anonymous: "Anonymous"
|
|
589
589
|
};
|
|
@@ -613,7 +613,7 @@ function resolveDisplay(name, secondary, id) {
|
|
|
613
613
|
* lose track of when a table mixes profiles and devices.
|
|
614
614
|
*/
|
|
615
615
|
function Identity({ name, secondary, id, avatarSrc, state, badge, size = "md", hideAvatar = false, labels: customLabels, className }) {
|
|
616
|
-
const labels = require_text_truncate._objectSpread2(require_text_truncate._objectSpread2({}, defaultLabels$
|
|
616
|
+
const labels = require_text_truncate._objectSpread2(require_text_truncate._objectSpread2({}, defaultLabels$3), customLabels);
|
|
617
617
|
const { primary, sub } = resolveDisplay(name, secondary, id);
|
|
618
618
|
const anonymous = state === "anonymous";
|
|
619
619
|
const badgeContent = badge !== null && badge !== void 0 ? badge : state ? anonymous ? labels.anonymous : labels.identified : null;
|
|
@@ -1084,6 +1084,7 @@ function StepBuilder({ steps, onChange, label, addLabel = "Add step", maxSteps,
|
|
|
1084
1084
|
StepBuilder.displayName = "StepBuilder";
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region src/core/condition-builder.tsx
|
|
1087
|
+
const defaultLabels$2 = { previewSuffix: "matches" };
|
|
1087
1088
|
const OPERATOR_LABELS = {
|
|
1088
1089
|
equals: "equals",
|
|
1089
1090
|
not_equals: "does not equal",
|
|
@@ -1142,8 +1143,9 @@ function collectConditionBuilderIds(groups) {
|
|
|
1142
1143
|
};
|
|
1143
1144
|
}
|
|
1144
1145
|
/** Renders the condition builder component. */
|
|
1145
|
-
function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, label, addConditionLabel = "Add condition", addGroupLabel = "Add group", addNestedGroupLabel = "Add nested group", nested = false, maxDepth = 3, conditionTypes, onPreview, previewCount, className, "aria-label": ariaLabel }) {
|
|
1146
|
+
function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, label, addConditionLabel = "Add condition", addGroupLabel = "Add group", addNestedGroupLabel = "Add nested group", nested = false, maxDepth = 3, conditionTypes, onPreview, previewCount, labels: customLabels, className, "aria-label": ariaLabel }) {
|
|
1146
1147
|
var _ref;
|
|
1148
|
+
const labels = require_text_truncate._objectSpread2(require_text_truncate._objectSpread2({}, defaultLabels$2), customLabels);
|
|
1147
1149
|
const inheritedIdScope = react.useContext(ConditionBuilderIdScopeContext);
|
|
1148
1150
|
const nextGroupIdRef = react.useRef(1);
|
|
1149
1151
|
const nextConditionIdRef = react.useRef(1);
|
|
@@ -1360,7 +1362,8 @@ function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, l
|
|
|
1360
1362
|
addNestedGroupLabel,
|
|
1361
1363
|
nested,
|
|
1362
1364
|
maxDepth: maxDepth - 1,
|
|
1363
|
-
conditionTypes
|
|
1365
|
+
conditionTypes,
|
|
1366
|
+
labels: customLabels
|
|
1364
1367
|
})
|
|
1365
1368
|
}),
|
|
1366
1369
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -1403,9 +1406,9 @@ function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, l
|
|
|
1403
1406
|
onClick: addGroup,
|
|
1404
1407
|
className: "self-start",
|
|
1405
1408
|
children: ["+ ", addGroupLabel]
|
|
1406
|
-
}), previewCount != null && /* @__PURE__ */ (0, react_jsx_runtime.
|
|
1409
|
+
}), previewCount != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1407
1410
|
className: require_text_truncate.cn("text-text-secondary", "text-sm"),
|
|
1408
|
-
children:
|
|
1411
|
+
children: labels.formatPreview ? labels.formatPreview(previewCount) : `${require_text_truncate.formatOptNumber(previewCount)} ${labels.previewSuffix}`
|
|
1409
1412
|
})]
|
|
1410
1413
|
})
|
|
1411
1414
|
]
|
|
@@ -583,7 +583,7 @@ function AvatarGroup(_ref5) {
|
|
|
583
583
|
}
|
|
584
584
|
//#endregion
|
|
585
585
|
//#region src/core/identity.tsx
|
|
586
|
-
const defaultLabels$
|
|
586
|
+
const defaultLabels$3 = {
|
|
587
587
|
identified: "Identified",
|
|
588
588
|
anonymous: "Anonymous"
|
|
589
589
|
};
|
|
@@ -613,7 +613,7 @@ function resolveDisplay(name, secondary, id) {
|
|
|
613
613
|
* lose track of when a table mixes profiles and devices.
|
|
614
614
|
*/
|
|
615
615
|
function Identity({ name, secondary, id, avatarSrc, state, badge, size = "md", hideAvatar = false, labels: customLabels, className }) {
|
|
616
|
-
const labels = _objectSpread2(_objectSpread2({}, defaultLabels$
|
|
616
|
+
const labels = _objectSpread2(_objectSpread2({}, defaultLabels$3), customLabels);
|
|
617
617
|
const { primary, sub } = resolveDisplay(name, secondary, id);
|
|
618
618
|
const anonymous = state === "anonymous";
|
|
619
619
|
const badgeContent = badge !== null && badge !== void 0 ? badge : state ? anonymous ? labels.anonymous : labels.identified : null;
|
|
@@ -1084,6 +1084,7 @@ function StepBuilder({ steps, onChange, label, addLabel = "Add step", maxSteps,
|
|
|
1084
1084
|
StepBuilder.displayName = "StepBuilder";
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region src/core/condition-builder.tsx
|
|
1087
|
+
const defaultLabels$2 = { previewSuffix: "matches" };
|
|
1087
1088
|
const OPERATOR_LABELS = {
|
|
1088
1089
|
equals: "equals",
|
|
1089
1090
|
not_equals: "does not equal",
|
|
@@ -1142,8 +1143,9 @@ function collectConditionBuilderIds(groups) {
|
|
|
1142
1143
|
};
|
|
1143
1144
|
}
|
|
1144
1145
|
/** Renders the condition builder component. */
|
|
1145
|
-
function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, label, addConditionLabel = "Add condition", addGroupLabel = "Add group", addNestedGroupLabel = "Add nested group", nested = false, maxDepth = 3, conditionTypes, onPreview, previewCount, className, "aria-label": ariaLabel }) {
|
|
1146
|
+
function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, label, addConditionLabel = "Add condition", addGroupLabel = "Add group", addNestedGroupLabel = "Add nested group", nested = false, maxDepth = 3, conditionTypes, onPreview, previewCount, labels: customLabels, className, "aria-label": ariaLabel }) {
|
|
1146
1147
|
var _ref;
|
|
1148
|
+
const labels = _objectSpread2(_objectSpread2({}, defaultLabels$2), customLabels);
|
|
1147
1149
|
const inheritedIdScope = React.useContext(ConditionBuilderIdScopeContext);
|
|
1148
1150
|
const nextGroupIdRef = React.useRef(1);
|
|
1149
1151
|
const nextConditionIdRef = React.useRef(1);
|
|
@@ -1360,7 +1362,8 @@ function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, l
|
|
|
1360
1362
|
addNestedGroupLabel,
|
|
1361
1363
|
nested,
|
|
1362
1364
|
maxDepth: maxDepth - 1,
|
|
1363
|
-
conditionTypes
|
|
1365
|
+
conditionTypes,
|
|
1366
|
+
labels: customLabels
|
|
1364
1367
|
})
|
|
1365
1368
|
}),
|
|
1366
1369
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -1403,9 +1406,9 @@ function ConditionBuilder({ groups, onChange, properties = DEFAULT_PROPERTIES, l
|
|
|
1403
1406
|
onClick: addGroup,
|
|
1404
1407
|
className: "self-start",
|
|
1405
1408
|
children: ["+ ", addGroupLabel]
|
|
1406
|
-
}), previewCount != null && /* @__PURE__ */
|
|
1409
|
+
}), previewCount != null && /* @__PURE__ */ jsx("span", {
|
|
1407
1410
|
className: cn("text-text-secondary", "text-sm"),
|
|
1408
|
-
children:
|
|
1411
|
+
children: labels.formatPreview ? labels.formatPreview(previewCount) : `${formatOptNumber(previewCount)} ${labels.previewSuffix}`
|
|
1409
1412
|
})]
|
|
1410
1413
|
})
|
|
1411
1414
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { U as StatCard$1, g as DateRangePickerProps } from "./text-truncate-Bbul-jMD.cjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { CSSProperties, ComponentPropsWithoutRef, HTMLAttributes, ImgHTMLAttributes, ReactNode } from "react";
|
|
5
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";
|
|
@@ -1424,6 +1424,13 @@ interface ConditionTypeRenderer {
|
|
|
1424
1424
|
label: string;
|
|
1425
1425
|
render: (condition: ConditionDef, onChange: (updates: Partial<ConditionDef>) => void) => React$1.ReactNode;
|
|
1426
1426
|
}
|
|
1427
|
+
/** Localized labels for the condition builder. */
|
|
1428
|
+
interface ConditionBuilderLabels {
|
|
1429
|
+
/** Word after the formatted preview count — "matches". */
|
|
1430
|
+
previewSuffix?: string;
|
|
1431
|
+
/** Replaces the whole preview text. Wins over `previewSuffix`. */
|
|
1432
|
+
formatPreview?: (count: number) => string;
|
|
1433
|
+
}
|
|
1427
1434
|
/** Props for the condition builder component. */
|
|
1428
1435
|
interface ConditionBuilderProps {
|
|
1429
1436
|
groups: ConditionGroup[];
|
|
@@ -1444,11 +1451,13 @@ interface ConditionBuilderProps {
|
|
|
1444
1451
|
onPreview?: (groups: ConditionGroup[]) => void;
|
|
1445
1452
|
/** Live preview count to display */
|
|
1446
1453
|
previewCount?: number;
|
|
1454
|
+
/** Overrides the preview wording; defaults stay English for existing consumers. */
|
|
1455
|
+
labels?: ConditionBuilderLabels;
|
|
1447
1456
|
className?: string;
|
|
1448
1457
|
"aria-label"?: string;
|
|
1449
1458
|
}
|
|
1450
1459
|
/** Renders the condition builder component. */
|
|
1451
|
-
declare function ConditionBuilder({ groups, onChange, properties, label, addConditionLabel, addGroupLabel, addNestedGroupLabel, nested, maxDepth, conditionTypes, onPreview, previewCount, className, "aria-label": ariaLabel }: ConditionBuilderProps): React$1.JSX.Element;
|
|
1460
|
+
declare function ConditionBuilder({ groups, onChange, properties, label, addConditionLabel, addGroupLabel, addNestedGroupLabel, nested, maxDepth, conditionTypes, onPreview, previewCount, labels: customLabels, className, "aria-label": ariaLabel }: ConditionBuilderProps): React$1.JSX.Element;
|
|
1452
1461
|
declare namespace ConditionBuilder {
|
|
1453
1462
|
var displayName: string;
|
|
1454
1463
|
}
|
|
@@ -2290,4 +2299,4 @@ interface KeyPadMenuProps {
|
|
|
2290
2299
|
*/
|
|
2291
2300
|
declare function KeyPadMenu({ items, label, selection, value, onValueChange, columns, size, hideLabel, className }: KeyPadMenuProps): import("react").JSX.Element;
|
|
2292
2301
|
//#endregion
|
|
2293
|
-
export { DrawerSize as $,
|
|
2302
|
+
export { DrawerSize as $, DescriptionListLabels as $i, ToolbarButton as $n, DisclosureContent as $r, FormColorPicker as $t, ShaderSurfaceHandle as A, TextElement as Aa, AlertProps as Ai, FormSubmit as An, DialogFooter as Ar, CheckboxGroupProps as At, ShaderPresetCategory as B, CardDescription as Bi, TagInput as Bn, SelectPopover as Br, PopoverRoot as Bt, Facet as C, Separator as Ca, SkeletonTable as Ci, FormSelectItem as Cn, AlertDialogPanel as Cr, BlockLayoutProps as Ct, FacetItem as D, HeadingProps as Da, Input as Di, FormSliderProps as Dn, DialogDescription as Dr, RadioProps as Dt, FacetGroupProps as E, HeadingLevel as Ea, SwitchProps as Ei, FormSlider as En, DialogBodyProps as Er, RadioGroupProps as Et, SHADER_PRESETS as F, KbdProps as Fa, Button as Fi, FormTextarea as Fn, DialogPanel as Fr, DropdownSeparator as Ft, VirtualListProps as G, CardHeaderProps as Gi, ColorPicker as Gn, TabListProps$1 as Gr, ConditionDef as Gt, getShaderFragment as H, CardFooter as Hi, IconDef as Hn, SelectTrigger as Hr, ConditionBuilder as Ht, SHADER_PRESET_IDS as I, ButtonProps as Ii, FormTextareaProps as In, DialogRoot as Ir, DropdownTrigger as It, DrawerClose as J, CardTitleProps as Ji, StarRatingProps as Jn, TabProps$1 as Jr, ConditionTypeRenderer as Jt, Pagination as K, CardProps as Ki, ColorPickerProps as Kn, TabPanel as Kr, ConditionGroup as Kt, ShaderParamKey as L, Card as Li, useFieldValue as Ln, DialogSize as Lr, PopoverClose as Lt, SHADER_OVERLAY_PARAM_KEYS as M, TextRole as Ma, SpinnerProps as Mi, FormSwitchProps$1 as Mn, DialogHeader as Mr, DropdownContent as Mt, SHADER_PARAM_FALLBACK as N, TextTone as Na, Badge as Ni, FormTagInput as Nn, DialogHeaderProps as Nr, DropdownItem as Nt, FacetProps as O, HeadingRole as Oa, InputProps as Oi, FormStarRating as On, DialogDisclosure as Or, Checkbox as Ot, SHADER_PARAM_KEYS as P, Kbd as Pa, BadgeProps as Pi, FormTagInputProps as Pn, DialogHeading as Pr, DropdownMenu as Pt, DrawerSide as Q, DescriptionListItem as Qi, NumberInputProps as Qn, TabsVariant as Qr, FormCheckbox as Qt, ShaderParamSpec as R, CardContent as Ri, useFormContext as Rn, SelectItem as Rr, PopoverContent as Rt, ExpressionTone as S, OtpFieldProps as Sa, SkeletonProps as Si, FormSelect as Sn, ComboboxRoot as Sr, BlockLayout as St, FacetGroupLabels as T, Heading as Ta, Switch as Ti, FormSelectProps as Tn, DialogBody as Tr, RadioGroup as Tt, getShaderPreset as U, CardFooterProps as Ui, IconPicker as Un, Tab as Ur, ConditionBuilderLabels as Ut, ShaderPresetId as V, CardDescriptionProps as Vi, TagInputProps as Vn, SelectRoot as Vr, PopoverTrigger as Vt, VirtualList as W, CardHeader as Wi, IconPickerProps as Wn, TabList as Wr, ConditionBuilderProps as Wt, DrawerPanelProps as X, IdentityProps as Xi, SliderProps as Xn, TabsRoot as Xr, StepBuilderProps as Xt, DrawerPanel as Y, Identity as Yi, Slider as Yn, TabStatus as Yr, StepBuilder as Yt, DrawerRoot as Z, DescriptionList as Zi, NumberInput as Zn, TabsRootProps$1 as Zr, StepDef as Zt, HighlightProps as _, Toggle as _a, Textarea as _i, FormRadio as _n, ComboboxGroup as _r, ScrollAreaProps as _t, InlineEditLabels as a, BreadcrumbItem as aa, CompositeRow as ai, FormError as an, TooltipProvider as ar, PanelSize as at, ExpressionGroupProps as b, ToggleProps$1 as ba, SkeletonAvatar as bi, FormReset as bn, ComboboxItem as br, BlockBaseProps as bt, ColorPaletteDisplay as c, StatCardProps as ca, MeterProps as ci, FormGroupLabel as cn, MenuItemCheckbox as cr, ResizablePanel as ct, ColorPalettePickerProps as d, AccordionRoot as da, Progress as di, FormInput as dn, MenuRoot as dr, ResizablePanelProps as dt, DescriptionListProps as ea, DisclosureRoot as ei, FormColorPickerProps as en, ToolbarContainer as er, Logo as et, PaletteKind as f, AccordionRootProps as fa, ProgressProps as fi, FormLabel as fn, MenuSeparator as fr, Section as ft, Highlight as g, PrimAccordionTriggerProps as ga, AvatarProps as gi, FormPush as gn, ComboboxEmpty as gr, ScrollArea as gt, LiveRegionProps as h, PrimAccordionItemProps as ha, AvatarGroupProps as hi, FormProvider$1 as hn, MenubarRoot as hr, ContainerProps as ht, InlineEdit as i, Breadcrumb as ia, CompositeProvider as ii, FormDescription as in, TooltipAnchor as ir, PanelImperativeHandle as it, ShaderSurfaceProps as j, TextProps as ja, Spinner as ji, FormSwitch as jn, DialogFooterProps as jr, CheckboxProps as jt, ShaderSurface as k, Text as ka, Alert as ki, FormStarRatingProps as kn, DialogDismiss as kr, CheckboxGroup as kt, ColorPaletteDisplayProps as l, AccordionContent as la, CircularProgress as li, FormIconPicker as ln, MenuItemRadio as lr, ResizablePanelGroup as lt, LiveRegion as m, PrimAccordionContentProps as ma, AvatarGroup as mi, FormNumberInputProps as mn, MenubarContainer as mr, Container as mt, KeyPadMenu as n, EmptyStateAction as na, Composite as ni, FormDateRangePicker as nn, ToolbarSeparator as nr, GroupImperativeHandle as nt, InlineEditProps as o, BreadcrumbProps as oa, CompositeZone as oi, FormField as on, MenuButtonArrow as or, ResizableHandle as ot, THEME_PALETTES as p, AccordionTrigger as pa, Avatar as pi, FormNumberInput as pn, MenuTrigger as pr, SectionProps as pt, PaginationProps as q, CardTitle as qi, StarRating as qn, TabPanelProps$1 as qr, ConditionOperator as qt, KeyPadMenuProps as r, EmptyStateProps as ra, CompositeItem as ri, FormDateRangePickerProps as rn, Tooltip as rr, Layout as rt, ColorPalette as s, StatCard as sa, Meter as si, FormGroup as sn, MenuItem as sr, ResizableHandleProps as st, KeyPadItem as t, EmptyState as ta, DisclosureTrigger as ti, FormControl as tn, ToolbarRoot as tr, LogoProps as tt, ColorPalettePicker as u, AccordionItem as ua, CircularProgressProps as ui, FormIconPickerProps as un, MenuPopover as ur, ResizablePanelGroupProps as ut, Expression as v, ToggleGroup as va, TextareaProps as vi, FormRadioGroup as vn, ComboboxGroupLabel as vr, PageHeader as vt, FacetGroup as w, SeparatorProps$1 as wa, SkeletonText as wi, FormSelectPopover as wn, AlertDialogPanelProps$1 as wr, Radio as wt, ExpressionProps as x, OtpField as xa, SkeletonCard as xi, FormRoot as xn, ComboboxPopover as xr, createBlock as xt, ExpressionGroup as y, ToggleGroupProps$1 as ya, Skeleton as yi, FormRemove as yn, ComboboxInput as yr, PageHeaderProps as yt, ShaderPreset as z, CardContentProps as zi, useFormStore as zn, SelectLabel as zr, PopoverContentProps$1 as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { U as StatCard$1, g as DateRangePickerProps } from "./text-truncate-Bbul-jMD.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { CSSProperties, ComponentPropsWithoutRef, HTMLAttributes, ImgHTMLAttributes, ReactNode } from "react";
|
|
5
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";
|
|
@@ -1424,6 +1424,13 @@ interface ConditionTypeRenderer {
|
|
|
1424
1424
|
label: string;
|
|
1425
1425
|
render: (condition: ConditionDef, onChange: (updates: Partial<ConditionDef>) => void) => React$1.ReactNode;
|
|
1426
1426
|
}
|
|
1427
|
+
/** Localized labels for the condition builder. */
|
|
1428
|
+
interface ConditionBuilderLabels {
|
|
1429
|
+
/** Word after the formatted preview count — "matches". */
|
|
1430
|
+
previewSuffix?: string;
|
|
1431
|
+
/** Replaces the whole preview text. Wins over `previewSuffix`. */
|
|
1432
|
+
formatPreview?: (count: number) => string;
|
|
1433
|
+
}
|
|
1427
1434
|
/** Props for the condition builder component. */
|
|
1428
1435
|
interface ConditionBuilderProps {
|
|
1429
1436
|
groups: ConditionGroup[];
|
|
@@ -1444,11 +1451,13 @@ interface ConditionBuilderProps {
|
|
|
1444
1451
|
onPreview?: (groups: ConditionGroup[]) => void;
|
|
1445
1452
|
/** Live preview count to display */
|
|
1446
1453
|
previewCount?: number;
|
|
1454
|
+
/** Overrides the preview wording; defaults stay English for existing consumers. */
|
|
1455
|
+
labels?: ConditionBuilderLabels;
|
|
1447
1456
|
className?: string;
|
|
1448
1457
|
"aria-label"?: string;
|
|
1449
1458
|
}
|
|
1450
1459
|
/** Renders the condition builder component. */
|
|
1451
|
-
declare function ConditionBuilder({ groups, onChange, properties, label, addConditionLabel, addGroupLabel, addNestedGroupLabel, nested, maxDepth, conditionTypes, onPreview, previewCount, className, "aria-label": ariaLabel }: ConditionBuilderProps): React$1.JSX.Element;
|
|
1460
|
+
declare function ConditionBuilder({ groups, onChange, properties, label, addConditionLabel, addGroupLabel, addNestedGroupLabel, nested, maxDepth, conditionTypes, onPreview, previewCount, labels: customLabels, className, "aria-label": ariaLabel }: ConditionBuilderProps): React$1.JSX.Element;
|
|
1452
1461
|
declare namespace ConditionBuilder {
|
|
1453
1462
|
var displayName: string;
|
|
1454
1463
|
}
|
|
@@ -2290,4 +2299,4 @@ interface KeyPadMenuProps {
|
|
|
2290
2299
|
*/
|
|
2291
2300
|
declare function KeyPadMenu({ items, label, selection, value, onValueChange, columns, size, hideLabel, className }: KeyPadMenuProps): import("react").JSX.Element;
|
|
2292
2301
|
//#endregion
|
|
2293
|
-
export { DrawerSize as $,
|
|
2302
|
+
export { DrawerSize as $, DescriptionListLabels as $i, ToolbarButton$1 as $n, DisclosureContent$1 as $r, FormColorPicker as $t, ShaderSurfaceHandle as A, TextElement as Aa, AlertProps as Ai, FormSubmit$1 as An, DialogFooter as Ar, CheckboxGroupProps as At, ShaderPresetCategory as B, CardDescription as Bi, TagInput as Bn, SelectPopover$1 as Br, PopoverRoot$1 as Bt, Facet as C, Separator$2 as Ca, SkeletonTable as Ci, FormSelectItem as Cn, AlertDialogPanel$1 as Cr, BlockLayoutProps as Ct, FacetItem as D, HeadingProps as Da, Input as Di, FormSliderProps as Dn, DialogDescription$1 as Dr, RadioProps as Dt, FacetGroupProps as E, HeadingLevel as Ea, SwitchProps as Ei, FormSlider as En, DialogBodyProps as Er, RadioGroupProps as Et, SHADER_PRESETS as F, KbdProps as Fa, Button as Fi, FormTextarea as Fn, DialogPanel$1 as Fr, DropdownSeparator as Ft, VirtualListProps as G, CardHeaderProps as Gi, ColorPicker as Gn, TabListProps$1 as Gr, ConditionDef as Gt, getShaderFragment as H, CardFooter as Hi, IconDef as Hn, SelectTrigger$1 as Hr, ConditionBuilder as Ht, SHADER_PRESET_IDS as I, ButtonProps as Ii, FormTextareaProps as In, DialogRoot$1 as Ir, DropdownTrigger as It, DrawerClose as J, CardTitleProps as Ji, StarRatingProps as Jn, TabProps$1 as Jr, ConditionTypeRenderer as Jt, Pagination as K, CardProps as Ki, ColorPickerProps as Kn, TabPanel$1 as Kr, ConditionGroup as Kt, ShaderParamKey as L, Card as Li, useFieldValue as Ln, DialogSize as Lr, PopoverClose$1 as Lt, SHADER_OVERLAY_PARAM_KEYS as M, TextRole as Ma, SpinnerProps as Mi, FormSwitchProps$1 as Mn, DialogHeader as Mr, DropdownContent as Mt, SHADER_PARAM_FALLBACK as N, TextTone as Na, Badge as Ni, FormTagInput as Nn, DialogHeaderProps as Nr, DropdownItem as Nt, FacetProps as O, HeadingRole as Oa, InputProps as Oi, FormStarRating as On, DialogDisclosure$1 as Or, Checkbox as Ot, SHADER_PARAM_KEYS as P, Kbd as Pa, BadgeProps as Pi, FormTagInputProps as Pn, DialogHeading$1 as Pr, DropdownMenu as Pt, DrawerSide as Q, DescriptionListItem as Qi, NumberInputProps as Qn, TabsVariant as Qr, FormCheckbox$1 as Qt, ShaderParamSpec as R, CardContent as Ri, useFormContext as Rn, SelectItem$1 as Rr, PopoverContent$1 as Rt, ExpressionTone as S, OtpFieldProps as Sa, SkeletonProps as Si, FormSelect as Sn, ComboboxRoot$1 as Sr, BlockLayout as St, FacetGroupLabels as T, Heading as Ta, Switch as Ti, FormSelectProps as Tn, DialogBody as Tr, RadioGroup as Tt, getShaderPreset as U, CardFooterProps as Ui, IconPicker as Un, Tab$1 as Ur, ConditionBuilderLabels as Ut, ShaderPresetId as V, CardDescriptionProps as Vi, TagInputProps as Vn, SelectRoot$1 as Vr, PopoverTrigger$1 as Vt, VirtualList as W, CardHeader as Wi, IconPickerProps as Wn, TabList$1 as Wr, ConditionBuilderProps as Wt, DrawerPanelProps as X, IdentityProps as Xi, SliderProps as Xn, TabsRoot$1 as Xr, StepBuilderProps as Xt, DrawerPanel as Y, Identity as Yi, Slider as Yn, TabStatus as Yr, StepBuilder as Yt, DrawerRoot as Z, DescriptionList as Zi, NumberInput as Zn, TabsRootProps$1 as Zr, StepDef as Zt, HighlightProps as _, Toggle$1 as _a, Textarea as _i, FormRadio$1 as _n, ComboboxGroup$1 as _r, ScrollAreaProps as _t, InlineEditLabels as a, BreadcrumbItem as aa, CompositeRow as ai, FormError$1 as an, TooltipProvider as ar, PanelSize as at, ExpressionGroupProps as b, ToggleProps$1 as ba, SkeletonAvatar as bi, FormReset$1 as bn, ComboboxItem$1 as br, BlockBaseProps as bt, ColorPaletteDisplay as c, StatCardProps as ca, MeterProps as ci, FormGroupLabel$1 as cn, MenuItemCheckbox$1 as cr, ResizablePanel as ct, ColorPalettePickerProps as d, AccordionRoot$1 as da, Progress as di, FormInput$1 as dn, MenuRoot$1 as dr, ResizablePanelProps as dt, DescriptionListProps as ea, DisclosureRoot$1 as ei, FormColorPickerProps as en, ToolbarContainer$1 as er, Logo as et, PaletteKind as f, AccordionRootProps as fa, ProgressProps as fi, FormLabel$1 as fn, MenuSeparator$1 as fr, Section as ft, Highlight as g, PrimAccordionTriggerProps as ga, AvatarProps as gi, FormPush$1 as gn, ComboboxEmpty as gr, ScrollArea as gt, LiveRegionProps as h, PrimAccordionItemProps as ha, AvatarGroupProps as hi, FormProvider$1 as hn, MenubarRoot$1 as hr, ContainerProps as ht, InlineEdit as i, Breadcrumb as ia, CompositeProvider as ii, FormDescription$1 as in, TooltipAnchor$1 as ir, PanelImperativeHandle as it, ShaderSurfaceProps as j, TextProps as ja, Spinner as ji, FormSwitch$1 as jn, DialogFooterProps as jr, CheckboxProps as jt, ShaderSurface as k, Text as ka, Alert as ki, FormStarRatingProps as kn, DialogDismiss$1 as kr, CheckboxGroup as kt, ColorPaletteDisplayProps as l, AccordionContent$1 as la, CircularProgress as li, FormIconPicker as ln, MenuItemRadio$1 as lr, ResizablePanelGroup as lt, LiveRegion as m, PrimAccordionContentProps as ma, AvatarGroup as mi, FormNumberInputProps as mn, MenubarContainer$1 as mr, Container as mt, KeyPadMenu as n, EmptyStateAction as na, Composite as ni, FormDateRangePicker as nn, ToolbarSeparator$1 as nr, GroupImperativeHandle as nt, InlineEditProps as o, BreadcrumbProps as oa, CompositeZone as oi, FormField$1 as on, MenuButtonArrow$1 as or, ResizableHandle as ot, THEME_PALETTES as p, AccordionTrigger$1 as pa, Avatar as pi, FormNumberInput as pn, MenuTrigger$1 as pr, SectionProps as pt, PaginationProps as q, CardTitle as qi, StarRating as qn, TabPanelProps$1 as qr, ConditionOperator as qt, KeyPadMenuProps as r, EmptyStateProps as ra, CompositeItem as ri, FormDateRangePickerProps as rn, Tooltip$1 as rr, Layout as rt, ColorPalette as s, StatCard as sa, Meter$1 as si, FormGroup$1 as sn, MenuItem$1 as sr, ResizableHandleProps as st, KeyPadItem as t, EmptyState as ta, DisclosureTrigger$1 as ti, FormControl$1 as tn, ToolbarRoot$1 as tr, LogoProps as tt, ColorPalettePicker as u, AccordionItem$1 as ua, CircularProgressProps as ui, FormIconPickerProps as un, MenuPopover$1 as ur, ResizablePanelGroupProps as ut, Expression as v, ToggleGroup$1 as va, TextareaProps as vi, FormRadioGroup$1 as vn, ComboboxGroupLabel$1 as vr, PageHeader as vt, FacetGroup as w, SeparatorProps$1 as wa, SkeletonText as wi, FormSelectPopover as wn, AlertDialogPanelProps$1 as wr, Radio$1 as wt, ExpressionProps as x, OtpField as xa, SkeletonCard as xi, FormRoot$1 as xn, ComboboxPopover$1 as xr, createBlock as xt, ExpressionGroup as y, ToggleGroupProps$1 as ya, Skeleton as yi, FormRemove$1 as yn, ComboboxInput$1 as yr, PageHeaderProps as yt, ShaderPreset as z, CardContentProps as zi, useFormStore as zn, SelectLabel$1 as zr, PopoverContentProps$1 as zt };
|