@mechane-ai/elements 0.30.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/ai.js +43 -43
  2. package/dist/{categorical-values-Dfe3nkBV.js → categorical-values-BXPE0Cjs.js} +2 -2
  3. package/dist/{chart-frame-rL7_RAIc.js → chart-frame-Degqwy_z.js} +94 -64
  4. package/dist/{chart-input-JIyGPusK.js → chart-input-B12En69_.js} +2 -2
  5. package/dist/charts/cartesian.js +8 -8
  6. package/dist/charts/distribution.js +2 -2
  7. package/dist/charts/graph.js +2 -2
  8. package/dist/charts/hierarchy.js +3 -3
  9. package/dist/charts/matrix.js +3 -3
  10. package/dist/charts/timeline.js +3 -3
  11. package/dist/charts.js +1 -1
  12. package/dist/{code-block-BX51BVe1.js → code-block-B_qJ1JJ3.js} +3 -3
  13. package/dist/collections.js +224 -211
  14. package/dist/content/code.js +1 -1
  15. package/dist/content/diff.js +3 -3
  16. package/dist/content/link.js +1 -1
  17. package/dist/content/markdown.js +2 -2
  18. package/dist/content/tree.js +2 -2
  19. package/dist/{content-link-5oRGjDHa.js → content-link-BtaiSKk8.js} +1 -1
  20. package/dist/content.js +1 -1
  21. package/dist/elements.css +89 -23
  22. package/dist/feedback.js +1 -1
  23. package/dist/forms/dates.js +1 -1
  24. package/dist/forms.js +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/layout.js +391 -317
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/charts/src/chart-frame.d.ts +6 -4
  29. package/dist/packages/charts/src/chart-heading.d.ts +9 -0
  30. package/dist/packages/core/src/actions.d.ts +6 -2
  31. package/dist/packages/core/src/index.d.ts +1 -0
  32. package/dist/packages/feedback/src/control-placeholders.d.ts +11 -4
  33. package/dist/packages/forms/src/combobox.d.ts +5 -2
  34. package/dist/packages/forms/src/form-controls.d.ts +9 -4
  35. package/dist/packages/forms/src/forms.d.ts +3 -1
  36. package/dist/packages/forms/src/select.d.ts +3 -1
  37. package/dist/packages/foundations/src/control-density.d.ts +1 -0
  38. package/dist/packages/foundations/src/control-styles.d.ts +36 -1
  39. package/dist/packages/foundations/src/header-styles.d.ts +85 -0
  40. package/dist/packages/foundations/src/tokens.d.ts +1 -1
  41. package/dist/packages/foundations/src/tokens.stylex.d.ts +7 -0
  42. package/dist/packages/layout/src/frame.stylex.d.ts +0 -2
  43. package/dist/{pierre-diff-DOkqEUqx.js → pierre-diff-CaPsfQRo.js} +1 -1
  44. package/dist/{pierre-theme-DsrSwl5m.js → pierre-theme-BpNaWn1x.js} +30 -30
  45. package/dist/{pierre-tree-D2kRr4h4.js → pierre-tree-CPhT5CUP.js} +4 -4
  46. package/dist/src-BPIIuMeE.js +1291 -0
  47. package/dist/{src-eWcNz_oB.js → src-BjmKVOb2.js} +309 -309
  48. package/dist/{src-E3Or8tkO.js → src-CALHXF-U.js} +574 -415
  49. package/dist/{src-DlNMCgVy.js → src-DfPfFOu1.js} +17 -17
  50. package/dist/tokens.js +1 -1
  51. package/dist/{tokens.stylex-BoRZ3D8s.js → tokens.stylex-CJbIDPB9.js} +10 -3
  52. package/package.json +1 -1
  53. package/packages/foundations/src/tokens.stylex.ts +6 -0
  54. package/dist/src-BfPaaDxg.js +0 -1193
@@ -1,4 +1,4 @@
1
- import { l as e } from "../src-BfPaaDxg.js";
1
+ import { l as e } from "../src-BPIIuMeE.js";
2
2
  import { s as t } from "../src-d7EAi61b.js";
3
3
  import { n } from "../navigation-D2_sGy3C.js";
4
4
  import "@stylexjs/stylex";
@@ -1,15 +1,17 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { ChartLegendItem } from './chart-theme.ts';
3
- export type ChartReport = {
3
+ type ChartReportHeading = {
4
4
  readonly meta?: ReactNode;
5
+ readonly actions?: ReactNode;
6
+ };
7
+ export type ChartReport = ChartReportHeading & {
5
8
  readonly summary?: ReactNode;
6
9
  readonly seriesValues?: never;
7
10
  };
8
- export type ChartSeriesReport = ChartReport | {
9
- readonly meta?: ReactNode;
11
+ export type ChartSeriesReport = ChartReport | (ChartReportHeading & {
10
12
  readonly summary?: never;
11
13
  readonly seriesValues: Readonly<Record<string, string | undefined>>;
12
- };
14
+ });
13
15
  export type ChartSelection = {
14
16
  readonly selectedId: string | undefined;
15
17
  readonly onSelect: (id: string) => void;
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from 'react';
2
+ type ChartHeadingProps = {
3
+ readonly title: ReactNode;
4
+ readonly id: string;
5
+ readonly meta?: ReactNode;
6
+ readonly actions?: ReactNode;
7
+ };
8
+ export declare function ChartHeading({ title, id, meta, actions }: ChartHeadingProps): ReactNode;
9
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { Button as BaseButton } from '@base-ui/react/button';
2
2
  import { useRender } from '@base-ui/react/use-render';
3
3
  import type { ComponentProps, ReactNode } from 'react';
4
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
4
5
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
5
6
  type ButtonVariant = 'solid' | 'outline' | 'ghost';
6
7
  type ButtonTone = 'neutral' | 'danger';
@@ -11,6 +12,7 @@ type PendingProps = {
11
12
  type ButtonProps = ComponentProps<typeof BaseButton> & PendingProps & {
12
13
  readonly variant?: ButtonVariant;
13
14
  readonly tone?: ButtonTone;
15
+ readonly density?: ControlDensity;
14
16
  readonly xstyle?: PlacementStyle;
15
17
  };
16
18
  type IconButtonProps = Omit<ButtonProps, 'aria-label' | 'pendingLabel'> & {
@@ -18,10 +20,12 @@ type IconButtonProps = Omit<ButtonProps, 'aria-label' | 'pendingLabel'> & {
18
20
  };
19
21
  type IconLinkProps = Omit<useRender.ComponentProps<'a'>, 'aria-label'> & {
20
22
  readonly 'aria-label': string;
23
+ readonly 'density'?: ControlDensity;
21
24
  readonly 'xstyle'?: PlacementStyle;
22
25
  };
23
26
  type TextButtonProps = ComponentProps<typeof BaseButton> & PendingProps & {
24
27
  readonly tone?: ButtonTone;
28
+ readonly density?: ControlDensity;
25
29
  readonly xstyle?: PlacementStyle;
26
30
  };
27
31
  type TextLinkProps = ComponentProps<'a'> & {
@@ -29,7 +33,7 @@ type TextLinkProps = ComponentProps<'a'> & {
29
33
  };
30
34
  export declare function Button(props: ButtonProps): ReactNode;
31
35
  export declare function IconButton({ children, ...props }: IconButtonProps): ReactNode;
32
- export declare function TextButton({ tone, isPending, pendingLabel, children, className, style, xstyle, disabled, ...props }: TextButtonProps): ReactNode;
36
+ export declare function TextButton({ tone, density, isPending, pendingLabel, children, className, style, xstyle, disabled, ...props }: TextButtonProps): ReactNode;
33
37
  export declare function TextLink({ xstyle, ...props }: TextLinkProps): ReactNode;
34
- export declare function IconLink({ children, xstyle, render, ref, ...props }: IconLinkProps): ReactNode;
38
+ export declare function IconLink({ children, density, xstyle, render, ref, ...props }: IconLinkProps): ReactNode;
35
39
  export {};
@@ -1,3 +1,4 @@
1
+ export type { ControlDensity } from '../../foundations/src/control-density.ts';
1
2
  export { Button, IconButton, IconLink, TextButton, TextLink } from './actions.tsx';
2
3
  export type { AvatarProps } from './avatar.tsx';
3
4
  export { Avatar } from './avatar.tsx';
@@ -1,6 +1,8 @@
1
1
  import type { ReactNode } from 'react';
2
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
2
3
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
3
4
  export type ButtonPlaceholderProps = {
5
+ readonly density?: ControlDensity;
4
6
  readonly xstyle?: PlacementStyle;
5
7
  } & ({
6
8
  readonly isIconOnly: true;
@@ -12,10 +14,15 @@ export type ButtonPlaceholderProps = {
12
14
  export type FieldPlaceholderProps = {
13
15
  readonly label?: string;
14
16
  readonly hint?: string;
15
- readonly isMultiline?: boolean;
16
17
  readonly rows?: number;
17
18
  readonly width?: number | string;
18
19
  readonly xstyle?: PlacementStyle;
19
- };
20
- export declare function ButtonPlaceholder({ width, isIconOnly, xstyle }: ButtonPlaceholderProps): ReactNode;
21
- export declare function FieldPlaceholder({ label, hint, isMultiline, rows, width, xstyle, }: FieldPlaceholderProps): ReactNode;
20
+ } & ({
21
+ readonly isMultiline?: false;
22
+ readonly density?: ControlDensity;
23
+ } | {
24
+ readonly isMultiline: true;
25
+ readonly density?: never;
26
+ });
27
+ export declare function ButtonPlaceholder({ width, isIconOnly, density, xstyle, }: ButtonPlaceholderProps): ReactNode;
28
+ export declare function FieldPlaceholder({ label, hint, isMultiline, density, rows, width, xstyle, }: FieldPlaceholderProps): ReactNode;
@@ -1,5 +1,6 @@
1
1
  import { Combobox as BaseCombobox } from '@base-ui/react/combobox';
2
2
  import type { ComponentProps, ReactNode } from 'react';
3
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
3
4
  import type { OpenStateProperties, ReadOnlyValueProperties, ValueStateProperties } from '../../foundations/src/control-state.ts';
4
5
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
5
6
  type InputQueryProperties<Change> = {
@@ -11,7 +12,9 @@ type InputQueryProperties<Change> = {
11
12
  readonly defaultInputValue?: string;
12
13
  readonly onInputValueChange?: Change;
13
14
  };
14
- type ComboboxRootProps<Value, Multiple extends boolean | undefined, Item> = Omit<BaseCombobox.Root.Props<Value, Multiple, Item>, 'value' | 'defaultValue' | 'onValueChange' | 'open' | 'defaultOpen' | 'onOpenChange' | 'inputValue' | 'defaultInputValue' | 'onInputValueChange'> & OpenStateProperties<NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onOpenChange']>> & InputQueryProperties<NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onInputValueChange']>> & (ValueStateProperties<Exclude<BaseCombobox.Root.Props<Value, Multiple, Item>['value'], undefined>, NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onValueChange']>> | ReadOnlyValueProperties<Exclude<BaseCombobox.Root.Props<Value, Multiple, Item>['value'], undefined>, NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onValueChange']>>);
15
+ type ComboboxRootProps<Value, Multiple extends boolean | undefined, Item> = Omit<BaseCombobox.Root.Props<Value, Multiple, Item>, 'value' | 'defaultValue' | 'onValueChange' | 'open' | 'defaultOpen' | 'onOpenChange' | 'inputValue' | 'defaultInputValue' | 'onInputValueChange'> & OpenStateProperties<NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onOpenChange']>> & InputQueryProperties<NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onInputValueChange']>> & (ValueStateProperties<Exclude<BaseCombobox.Root.Props<Value, Multiple, Item>['value'], undefined>, NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onValueChange']>> | ReadOnlyValueProperties<Exclude<BaseCombobox.Root.Props<Value, Multiple, Item>['value'], undefined>, NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onValueChange']>>) & {
16
+ readonly density?: ControlDensity;
17
+ };
15
18
  type ComboboxInputGroupProps = ComponentProps<typeof BaseCombobox.InputGroup> & {
16
19
  readonly xstyle?: PlacementStyle;
17
20
  };
@@ -37,7 +40,7 @@ type ComboboxGroupLabelProps = ComponentProps<typeof BaseCombobox.GroupLabel>;
37
40
  type ComboboxChipsProps = ComponentProps<typeof BaseCombobox.Chips>;
38
41
  type ComboboxChipProps = ComponentProps<typeof BaseCombobox.Chip>;
39
42
  type ComboboxChipRemoveProps = ComponentProps<typeof BaseCombobox.ChipRemove>;
40
- declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false, Item = Value>(props: ComboboxRootProps<Value, Multiple, Item>): ReactNode;
43
+ declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false, Item = Value>({ density, ...props }: ComboboxRootProps<Value, Multiple, Item>): ReactNode;
41
44
  declare function ComboboxInputGroup({ className, style, xstyle, ...props }: ComboboxInputGroupProps): ReactNode;
42
45
  declare function ComboboxLabel({ className, style, ...props }: ComboboxLabelProps): ReactNode;
43
46
  declare function ComboboxValue<Value>(props: ComboboxValueProps<Value>): ReactNode;
@@ -3,6 +3,7 @@ import { Input as BaseInput } from '@base-ui/react/input';
3
3
  import { NumberField as BaseNumberField } from '@base-ui/react/number-field';
4
4
  import { Slider as BaseSlider } from '@base-ui/react/slider';
5
5
  import type { ComponentProps, ReactNode } from 'react';
6
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
6
7
  import type { ReadOnlyValueProperties, ValueStateProperties } from '../../foundations/src/control-state.ts';
7
8
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
8
9
  import type { InputProps } from './forms.tsx';
@@ -11,11 +12,14 @@ type FieldsetRootProps = ComponentProps<typeof BaseFieldset.Root> & {
11
12
  };
12
13
  type FieldsetLegendProps = ComponentProps<typeof BaseFieldset.Legend>;
13
14
  type InputGroupRootProps = ComponentProps<'div'> & {
15
+ readonly density?: ControlDensity;
14
16
  readonly xstyle?: PlacementStyle;
15
17
  };
16
18
  type InputGroupAddonProps = ComponentProps<'span'>;
19
+ type InputGroupInputProps = Omit<InputProps, 'density'>;
17
20
  type NumberFieldRootProps = Omit<ComponentProps<typeof BaseNumberField.Root>, 'value' | 'defaultValue' | 'onValueChange' | 'locale'> & (ValueStateProperties<number | null, NonNullable<BaseNumberField.Root.Props['onValueChange']>, number> | ReadOnlyValueProperties<number | null, NonNullable<BaseNumberField.Root.Props['onValueChange']>>) & {
18
21
  readonly locale: string;
22
+ readonly density?: ControlDensity;
19
23
  readonly xstyle?: PlacementStyle;
20
24
  };
21
25
  type NumberFieldGroupProps = ComponentProps<typeof BaseNumberField.Group>;
@@ -33,14 +37,15 @@ type SliderThumbProps = ComponentProps<typeof BaseSlider.Thumb>;
33
37
  type SliderLabelProps = ComponentProps<typeof BaseSlider.Label>;
34
38
  type SliderValueProps = ComponentProps<typeof BaseSlider.Value>;
35
39
  type FilePickerProps = Omit<ComponentProps<typeof BaseInput>, 'type' | 'value' | 'defaultValue' | 'onValueChange'> & {
40
+ readonly density?: ControlDensity;
36
41
  readonly xstyle?: PlacementStyle;
37
42
  };
38
43
  declare function FieldsetRoot({ className, style, xstyle, ...props }: FieldsetRootProps): ReactNode;
39
44
  declare function FieldsetLegend({ className, style, ...props }: FieldsetLegendProps): ReactNode;
40
- declare function InputGroupRoot({ xstyle, ...props }: InputGroupRootProps): ReactNode;
45
+ declare function InputGroupRoot({ density, xstyle, ...props }: InputGroupRootProps): ReactNode;
41
46
  declare function InputGroupAddon(props: InputGroupAddonProps): ReactNode;
42
- declare function InputGroupInput({ className, style, xstyle, ...props }: InputProps): ReactNode;
43
- declare function NumberFieldRoot({ className, style, xstyle, ...props }: NumberFieldRootProps): ReactNode;
47
+ declare function InputGroupInput({ className, style, xstyle, ...props }: InputGroupInputProps): ReactNode;
48
+ declare function NumberFieldRoot({ density, className, style, xstyle, ...props }: NumberFieldRootProps): ReactNode;
44
49
  declare function NumberFieldGroup({ className, style, ...props }: NumberFieldGroupProps): ReactNode;
45
50
  declare function NumberFieldInput({ className, style, ...props }: NumberFieldInputProps): ReactNode;
46
51
  declare function NumberFieldIncrement({ children, 'aria-label': label, className, style, ...props }: NumberFieldIncrementProps): ReactNode;
@@ -52,7 +57,7 @@ declare function SliderIndicator({ className, style, ...props }: SliderIndicator
52
57
  declare function SliderThumb({ className, style, ...props }: SliderThumbProps): ReactNode;
53
58
  declare function SliderLabel({ className, style, ...props }: SliderLabelProps): ReactNode;
54
59
  declare function SliderValue({ className, style, ...props }: SliderValueProps): ReactNode;
55
- export declare function FilePicker({ className, style, xstyle, ...props }: FilePickerProps): ReactNode;
60
+ export declare function FilePicker({ density, className, style, xstyle, ...props }: FilePickerProps): ReactNode;
56
61
  export declare const Fieldset: {
57
62
  Root: typeof FieldsetRoot;
58
63
  Legend: typeof FieldsetLegend;
@@ -1,6 +1,7 @@
1
1
  import { Field as BaseField } from '@base-ui/react/field';
2
2
  import { Input as BaseInput } from '@base-ui/react/input';
3
3
  import type { ComponentProps, ReactNode } from 'react';
4
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
4
5
  import type { TextValueProperties } from '../../foundations/src/control-state.ts';
5
6
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
6
7
  import type { TextareaAppearance } from './field-styles.ts';
@@ -12,6 +13,7 @@ type FieldDescriptionProps = ComponentProps<typeof BaseField.Description>;
12
13
  type FieldErrorProps = ComponentProps<typeof BaseField.Error>;
13
14
  type BaseInputProps = ComponentProps<typeof BaseInput>;
14
15
  export type InputProps = Omit<BaseInputProps, 'value' | 'defaultValue' | 'onChange' | 'onValueChange' | 'readOnly' | 'size'> & TextValueProperties<NonNullable<BaseInputProps['value']>, NonNullable<BaseInputProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
16
+ readonly density?: ControlDensity;
15
17
  readonly xstyle?: PlacementStyle;
16
18
  };
17
19
  type NativeTextareaProps = ComponentProps<'textarea'>;
@@ -31,6 +33,6 @@ export declare const Field: {
31
33
  Description: typeof FieldDescription;
32
34
  Error: typeof FieldError;
33
35
  };
34
- export declare function Input({ className, style, xstyle, ...props }: InputProps): ReactNode;
36
+ export declare function Input({ density, className, style, xstyle, ...props }: InputProps): ReactNode;
35
37
  export declare function Textarea({ isCompact, shouldGrow, appearance, value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
36
38
  export {};
@@ -1,11 +1,13 @@
1
1
  import { Select as BaseSelect } from '@base-ui/react/select';
2
2
  import type { ComponentProps, ReactNode } from 'react';
3
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
3
4
  import type { OpenStateProperties, ReadOnlyValueProperties, ValueStateProperties } from '../../foundations/src/control-state.ts';
4
5
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
5
6
  type SelectVariant = 'outline' | 'ghost';
6
7
  type SelectRootProps<Value, Multiple extends boolean | undefined> = Omit<BaseSelect.Root.Props<Value, Multiple>, 'value' | 'defaultValue' | 'onValueChange' | 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BaseSelect.Root.Props<Value, Multiple>['onOpenChange']>> & (ValueStateProperties<Exclude<BaseSelect.Root.Props<Value, Multiple>['value'], undefined>, NonNullable<BaseSelect.Root.Props<Value, Multiple>['onValueChange']>> | ReadOnlyValueProperties<Exclude<BaseSelect.Root.Props<Value, Multiple>['value'], undefined>, NonNullable<BaseSelect.Root.Props<Value, Multiple>['onValueChange']>>);
7
8
  type SelectTriggerProps = ComponentProps<typeof BaseSelect.Trigger> & {
8
9
  readonly variant?: SelectVariant;
10
+ readonly density?: ControlDensity;
9
11
  readonly xstyle?: PlacementStyle;
10
12
  };
11
13
  type SelectValueProps = ComponentProps<typeof BaseSelect.Value> & {
@@ -20,7 +22,7 @@ type SelectItemProps = ComponentProps<typeof BaseSelect.Item>;
20
22
  type SelectItemTextProps = ComponentProps<typeof BaseSelect.ItemText>;
21
23
  type SelectItemIndicatorProps = ComponentProps<typeof BaseSelect.ItemIndicator>;
22
24
  declare function SelectRoot<Value, Multiple extends boolean | undefined = false>(props: SelectRootProps<Value, Multiple>): ReactNode;
23
- declare function SelectTrigger({ variant, className, style, xstyle, ...props }: SelectTriggerProps): ReactNode;
25
+ declare function SelectTrigger({ variant, density, className, style, xstyle, ...props }: SelectTriggerProps): ReactNode;
24
26
  declare function SelectValue({ className, style, xstyle, ...props }: SelectValueProps): ReactNode;
25
27
  declare function SelectIcon({ className, style, ...props }: SelectIconProps): ReactNode;
26
28
  declare function SelectPositioner({ className, style, xstyle, sideOffset, alignItemWithTrigger, ...props }: SelectPositionerProps): ReactNode;
@@ -0,0 +1 @@
1
+ export type ControlDensity = 'standard' | 'compact';
@@ -26,7 +26,6 @@ export declare const controlStyles: Readonly<{
26
26
  readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
27
27
  }>;
28
28
  readonly iconButton: Readonly<{
29
- readonly minWidth: stylex.StyleXClassNameFor<"minWidth", string>;
30
29
  readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
31
30
  }>;
32
31
  readonly field: Readonly<{
@@ -37,6 +36,9 @@ export declare const controlStyles: Readonly<{
37
36
  readonly color: stylex.StyleXClassNameFor<"color", string>;
38
37
  readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
39
38
  }>;
39
+ readonly singleLineField: Readonly<{
40
+ readonly height: stylex.StyleXClassNameFor<"height", string>;
41
+ }>;
40
42
  readonly fieldRoot: Readonly<{
41
43
  readonly display: stylex.StyleXClassNameFor<"display", "flex">;
42
44
  readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
@@ -120,3 +122,36 @@ export declare const controlStyles: Readonly<{
120
122
  }>;
121
123
  }>;
122
124
  }>;
125
+ export declare const controlDensityStyles: {
126
+ readonly standard: Readonly<{}>;
127
+ readonly compact: Readonly<{
128
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
129
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
130
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
131
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
132
+ }>;
133
+ };
134
+ export declare const singleLineControlDensityStyles: {
135
+ readonly standard: Readonly<{}>;
136
+ readonly compact: Readonly<{
137
+ readonly height: stylex.StyleXClassNameFor<"height", string>;
138
+ }>;
139
+ };
140
+ export declare const actionTargetDensityStyles: {
141
+ readonly standard: Readonly<{
142
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", string>;
143
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
144
+ }>;
145
+ readonly compact: Readonly<{
146
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", string>;
147
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
148
+ }>;
149
+ };
150
+ export declare const controlTargetDensityStyles: {
151
+ readonly standard: Readonly<{
152
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
153
+ }>;
154
+ readonly compact: Readonly<{
155
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
156
+ }>;
157
+ };
@@ -0,0 +1,85 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ export declare const headerStyles: Readonly<{
3
+ readonly row: Readonly<{
4
+ readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
5
+ readonly position: stylex.StyleXClassNameFor<"position", "relative">;
6
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
7
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
8
+ readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
9
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
10
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
11
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
12
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", `calc((${stylex.StyleXVar<string>} - ${stylex.StyleXVar<string>}) / 2)`>;
13
+ }>;
14
+ readonly reportRow: Readonly<{
15
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
16
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", `calc((${stylex.StyleXVar<string>} - ${stylex.StyleXVar<string>}) / 2)`>;
17
+ }>;
18
+ readonly title: Readonly<{
19
+ readonly flex: stylex.StyleXClassNameFor<"flex", "1 1 auto">;
20
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
21
+ readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
22
+ readonly overflowWrap: stylex.StyleXClassNameFor<"overflowWrap", "anywhere">;
23
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
24
+ readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
25
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
26
+ }>;
27
+ readonly trailing: Readonly<{
28
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
29
+ readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
30
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
31
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
32
+ readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "auto">;
33
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
34
+ readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "100%">;
35
+ }>;
36
+ readonly meta: Readonly<{
37
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
38
+ readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "auto">;
39
+ readonly overflowWrap: stylex.StyleXClassNameFor<"overflowWrap", "anywhere">;
40
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
41
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
42
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
43
+ }>;
44
+ readonly actions: Readonly<{
45
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
46
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
47
+ readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
48
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
49
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
50
+ readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "100%">;
51
+ }>;
52
+ readonly blockEnd: Readonly<{
53
+ readonly '::after': stylex.StyleXClassNameFor<"::after", {
54
+ readonly content: "\"\"";
55
+ readonly position: "absolute";
56
+ readonly insetInline: 0;
57
+ readonly insetBlockEnd: 0;
58
+ readonly height: 1;
59
+ readonly backgroundColor: stylex.StyleXVar<string>;
60
+ readonly pointerEvents: "none";
61
+ }>;
62
+ }>;
63
+ readonly blockStart: Readonly<{
64
+ readonly '::after': stylex.StyleXClassNameFor<"::after", {
65
+ readonly content: "\"\"";
66
+ readonly position: "absolute";
67
+ readonly insetInline: 0;
68
+ readonly insetBlockStart: 0;
69
+ readonly height: 1;
70
+ readonly backgroundColor: stylex.StyleXVar<string>;
71
+ readonly pointerEvents: "none";
72
+ }>;
73
+ }>;
74
+ readonly inlineEnd: Readonly<{
75
+ readonly '::after': stylex.StyleXClassNameFor<"::after", {
76
+ readonly content: "\"\"";
77
+ readonly position: "absolute";
78
+ readonly insetBlock: 0;
79
+ readonly insetInlineEnd: 0;
80
+ readonly width: 1;
81
+ readonly backgroundColor: stylex.StyleXVar<string>;
82
+ readonly pointerEvents: "none";
83
+ }>;
84
+ }>;
85
+ }>;
@@ -1,2 +1,2 @@
1
1
  export { conditions, darkAvatarColors, darkChartColors, darkColors, darkShadows, darkSyntaxColors, layers, loading, tableGeometry, } from './constants.stylex.ts';
2
- export { avatarColors, chartColors, colors, controls, motion, pageGeometry, radii, shadows, spacing, syntaxColors, typography, } from './tokens.stylex.ts';
2
+ export { avatarColors, chartColors, colors, controls, motion, pageGeometry, radii, reportGeometry, shadows, spacing, syntaxColors, typography, } from './tokens.stylex.ts';
@@ -96,11 +96,15 @@ export declare const typography: stylex.VarGroup<Readonly<{
96
96
  }>, symbol>;
97
97
  export declare const controls: stylex.VarGroup<Readonly<{
98
98
  height: string;
99
+ compactHeight: string;
99
100
  coarseTarget: string;
100
101
  iconSize: string;
101
102
  paddingInline: string;
103
+ compactPaddingInline: string;
102
104
  paddingBlock: string;
105
+ compactPaddingBlock: string;
103
106
  gap: string;
107
+ compactGap: string;
104
108
  focusWidth: string;
105
109
  disabledOpacity: string;
106
110
  }>, symbol>;
@@ -109,6 +113,9 @@ export declare const pageGeometry: stylex.VarGroup<Readonly<{
109
113
  toolbarHeight: string;
110
114
  sectionGap: string;
111
115
  }>, symbol>;
116
+ export declare const reportGeometry: stylex.VarGroup<Readonly<{
117
+ headerHeight: string;
118
+ }>, symbol>;
112
119
  export declare const radii: stylex.VarGroup<Readonly<{
113
120
  sm: string;
114
121
  md: string;
@@ -1,11 +1,9 @@
1
1
  import * as stylex from '@stylexjs/stylex';
2
2
  export declare const frame: stylex.VarGroup<Readonly<{
3
3
  sidebarWidth: string;
4
- navigationHeight: string;
5
4
  navigationInset: string;
6
5
  navigationPadding: string;
7
6
  footerHeight: string;
8
- footerPadding: string;
9
7
  detailWidth: string;
10
8
  detailMaxWidth: string;
11
9
  detailTop: string;
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./use-scroll-tab-index-Dxpdh4W7.js";
2
- import { n as t, t as n } from "./pierre-theme-DsrSwl5m.js";
2
+ import { n as t, t as n } from "./pierre-theme-BpNaWn1x.js";
3
3
  import { t as r } from "./viewer-styles-DsFYri4K.js";
4
4
  import * as i from "@stylexjs/stylex";
5
5
  import { useCallback as a, useState as o } from "react";
@@ -1,4 +1,4 @@
1
- import { d as e, f as t, i as n, l as r, r as i, u as a } from "./tokens.stylex-BoRZ3D8s.js";
1
+ import { d as e, f as t, i as n, p as r, r as i, u as a } from "./tokens.stylex-CJbIDPB9.js";
2
2
  // packages/content/src/pierre-theme.ts
3
3
  var o = {
4
4
  name: "Elements",
@@ -8,11 +8,11 @@ var o = {
8
8
  defaults: {
9
9
  foreground: i.ink,
10
10
  background: i.surface,
11
- keyword: a.keyword,
12
- string: a.string,
13
- comment: a.comment,
14
- number: a.number,
15
- type: a.type,
11
+ keyword: e.keyword,
12
+ string: e.string,
13
+ comment: e.comment,
14
+ number: e.number,
15
+ type: e.type,
16
16
  punctuation: i.muted
17
17
  }
18
18
  },
@@ -36,12 +36,12 @@ var o = {
36
36
  }, s = `
37
37
  :host {
38
38
  color-scheme: inherit;
39
- --diffs-font-family: ${e.monoFamily};
40
- --diffs-header-font-family: ${e.fontFamily};
41
- --diffs-font-size: ${e.captionSize};
42
- --diffs-line-height: ${e.bodyLineHeight};
43
- --diffs-gap-inline: ${r.sm};
44
- --diffs-gap-block: ${r.sm};
39
+ --diffs-font-family: ${t.monoFamily};
40
+ --diffs-header-font-family: ${t.fontFamily};
41
+ --diffs-font-size: ${t.captionSize};
42
+ --diffs-line-height: ${t.bodyLineHeight};
43
+ --diffs-gap-inline: ${a.sm};
44
+ --diffs-gap-block: ${a.sm};
45
45
  --diffs-bg: ${i.surface};
46
46
  --diffs-fg: ${i.ink};
47
47
  --diffs-fg-number: ${i.muted};
@@ -54,21 +54,21 @@ var o = {
54
54
  --diffs-bg-context-gutter-override: ${i.canvas};
55
55
  --diffs-bg-separator-override: ${i.canvas};
56
56
  --diffs-selection-background: ${i.accentSoft};
57
- font-family: ${e.monoFamily};
58
- font-size: ${e.captionSize};
57
+ font-family: ${t.monoFamily};
58
+ font-size: ${t.captionSize};
59
59
  color: ${i.ink};
60
60
  background: ${i.surface};
61
61
  }
62
- pre { font-family: ${e.monoFamily}; font-size: ${e.captionSize}; line-height: ${e.bodyLineHeight}; }
62
+ pre { font-family: ${t.monoFamily}; font-size: ${t.captionSize}; line-height: ${t.bodyLineHeight}; }
63
63
  [data-line-number] { color: ${i.muted}; }
64
64
  [data-diffs-header] {
65
65
  min-height: ${n.height};
66
- padding-block: ${r.sm};
67
- padding-inline: ${r.md};
66
+ padding-block: ${a.sm};
67
+ padding-inline: ${a.md};
68
68
  border-bottom: 1px solid ${i.line};
69
- font-size: ${e.captionSize};
70
- line-height: ${e.captionLineHeight};
71
- font-weight: ${e.mediumWeight};
69
+ font-size: ${t.captionSize};
70
+ line-height: ${t.captionLineHeight};
71
+ font-weight: ${t.mediumWeight};
72
72
  flex-wrap: wrap;
73
73
  }
74
74
  [data-header-content] { flex: 1 1 12ch; }
@@ -77,15 +77,15 @@ pre { font-family: ${e.monoFamily}; font-size: ${e.captionSize}; line-height: ${
77
77
  color-scheme: inherit;
78
78
  color: ${i.ink};
79
79
  background: ${i.surface};
80
- font-family: ${e.fontFamily};
81
- font-size: ${e.bodySize};
82
- --trees-font-family-override: ${e.fontFamily};
83
- --trees-font-size-override: ${e.bodySize};
84
- --trees-font-weight-regular-override: ${e.regularWeight};
85
- --trees-font-weight-semibold-override: ${e.strongWeight};
86
- --trees-search-font-weight-override: ${e.strongWeight};
87
- --trees-padding-inline-override: ${r.md};
88
- --trees-item-padding-x-override: ${r.sm};
80
+ font-family: ${t.fontFamily};
81
+ font-size: ${t.bodySize};
82
+ --trees-font-family-override: ${t.fontFamily};
83
+ --trees-font-size-override: ${t.bodySize};
84
+ --trees-font-weight-regular-override: ${t.regularWeight};
85
+ --trees-font-weight-semibold-override: ${t.strongWeight};
86
+ --trees-search-font-weight-override: ${t.strongWeight};
87
+ --trees-padding-inline-override: ${a.md};
88
+ --trees-item-padding-x-override: ${a.sm};
89
89
  --trees-item-row-gap-override: ${n.gap};
90
90
  --trees-bg-override: ${i.surface};
91
91
  --trees-fg-override: ${i.ink};
@@ -112,7 +112,7 @@ pre { font-family: ${e.monoFamily}; font-size: ${e.captionSize}; line-height: ${
112
112
  background-color: ${i.surface};
113
113
  --truncate-marker-background-overlay-color: transparent;
114
114
  }
115
- ${t.hoverPointer} {
115
+ ${r.hoverPointer} {
116
116
  [data-type="item"]:hover:not([data-item-selected="true"]):not([data-item-context-hover="true"]) {
117
117
  background-color: ${i.canvas};
118
118
  --truncate-marker-background-overlay-color: ${i.canvas};
@@ -1,7 +1,7 @@
1
- import { c as e } from "./src-E3Or8tkO.js";
2
- import { l as t } from "./src-BfPaaDxg.js";
3
- import { f as n } from "./tokens.stylex-BoRZ3D8s.js";
4
- import { r } from "./pierre-theme-DsrSwl5m.js";
1
+ import { c as e } from "./src-CALHXF-U.js";
2
+ import { l as t } from "./src-BPIIuMeE.js";
3
+ import { p as n } from "./tokens.stylex-CJbIDPB9.js";
4
+ import { r } from "./pierre-theme-BpNaWn1x.js";
5
5
  import * as i from "@stylexjs/stylex";
6
6
  import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";