@epilot/volt-ui-experimental-griffel 0.2.0 → 0.2.1

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 (82) hide show
  1. package/README.md +5 -0
  2. package/dist/index.d.ts +8766 -65
  3. package/dist/tokens/index.d.ts +1057 -1053
  4. package/dist/tokens.json +1 -1
  5. package/package.json +6 -4
  6. package/dist/components/accordion/accordion.d.ts +0 -14
  7. package/dist/components/alert-dialog/alert-dialog.d.ts +0 -36
  8. package/dist/components/avatar/avatar-group.d.ts +0 -7
  9. package/dist/components/avatar/avatar.d.ts +0 -17
  10. package/dist/components/badge/badge.d.ts +0 -41
  11. package/dist/components/breadcrumb/breadcrumb.d.ts +0 -37
  12. package/dist/components/button/button.d.ts +0 -18
  13. package/dist/components/button-group/button-group.d.ts +0 -30
  14. package/dist/components/callout/callout.d.ts +0 -23
  15. package/dist/components/card/card.d.ts +0 -9
  16. package/dist/components/checkbox/checkbox.d.ts +0 -4
  17. package/dist/components/collapsible-sidebar/collapsible-sidebar.d.ts +0 -33
  18. package/dist/components/command/command.d.ts +0 -85
  19. package/dist/components/data-table/data-table-body.d.ts +0 -21
  20. package/dist/components/data-table/data-table-column-header.d.ts +0 -13
  21. package/dist/components/data-table/data-table-column-visibility.d.ts +0 -21
  22. package/dist/components/data-table/data-table-content.d.ts +0 -13
  23. package/dist/components/data-table/data-table-context.d.ts +0 -66
  24. package/dist/components/data-table/data-table-error.d.ts +0 -21
  25. package/dist/components/data-table/data-table-header.d.ts +0 -14
  26. package/dist/components/data-table/data-table-loading.d.ts +0 -13
  27. package/dist/components/data-table/data-table-pagination.d.ts +0 -17
  28. package/dist/components/data-table/data-table-pinning-utils.d.ts +0 -17
  29. package/dist/components/data-table/data-table-row.d.ts +0 -14
  30. package/dist/components/data-table/data-table-toolbar.d.ts +0 -7
  31. package/dist/components/data-table/data-table.d.ts +0 -92
  32. package/dist/components/data-table/get-selected-row-data.d.ts +0 -18
  33. package/dist/components/data-table/hooks/index.d.ts +0 -2
  34. package/dist/components/data-table/hooks/use-data-table-content.d.ts +0 -1
  35. package/dist/components/data-table/hooks/use-data-table.d.ts +0 -2
  36. package/dist/components/date-range-picker/date-range-picker-utils.d.ts +0 -2
  37. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -34
  38. package/dist/components/date-range-picker/range-calendar.d.ts +0 -15
  39. package/dist/components/date-time-picker/calendar.d.ts +0 -28
  40. package/dist/components/date-time-picker/date-time-picker-context.d.ts +0 -39
  41. package/dist/components/date-time-picker/date-time-picker-input.d.ts +0 -13
  42. package/dist/components/date-time-picker/date-time-picker-panel.d.ts +0 -15
  43. package/dist/components/date-time-picker/date-time-picker-popover.d.ts +0 -6
  44. package/dist/components/date-time-picker/date-time-picker-utils.d.ts +0 -37
  45. package/dist/components/date-time-picker/date-time-picker.d.ts +0 -47
  46. package/dist/components/date-time-picker/time-picker.d.ts +0 -12
  47. package/dist/components/dialog/dialog.d.ts +0 -27
  48. package/dist/components/drawer/drawer.d.ts +0 -27
  49. package/dist/components/dropdown-menu/dropdown-menu.d.ts +0 -41
  50. package/dist/components/field/field-combobox.d.ts +0 -90
  51. package/dist/components/field/field-select.d.ts +0 -4
  52. package/dist/components/field/field.d.ts +0 -76
  53. package/dist/components/label/label.d.ts +0 -21
  54. package/dist/components/list/list.d.ts +0 -46
  55. package/dist/components/option-card/option-card.d.ts +0 -39
  56. package/dist/components/pill/pill.d.ts +0 -27
  57. package/dist/components/popover/popover.d.ts +0 -14
  58. package/dist/components/radio/radio.d.ts +0 -6
  59. package/dist/components/scroll-overflow/scroll-overflow.d.ts +0 -38
  60. package/dist/components/segmented-control/segmented-control.d.ts +0 -11
  61. package/dist/components/select/select.d.ts +0 -26
  62. package/dist/components/separator/separator.d.ts +0 -30
  63. package/dist/components/skeleton/skeleton.d.ts +0 -24
  64. package/dist/components/spinner/spinner.d.ts +0 -25
  65. package/dist/components/switch/switch.d.ts +0 -17
  66. package/dist/components/table/table-pagination.d.ts +0 -45
  67. package/dist/components/table/table.d.ts +0 -50
  68. package/dist/components/tabs/tabs.d.ts +0 -18
  69. package/dist/components/text/text.d.ts +0 -22
  70. package/dist/components/toast/toast.d.ts +0 -10
  71. package/dist/components/toggle/toggle-group.d.ts +0 -10
  72. package/dist/components/toggle/toggle.d.ts +0 -10
  73. package/dist/components/tooltip/tooltip.d.ts +0 -15
  74. package/dist/lib/clear-button.d.ts +0 -5
  75. package/dist/lib/icons.d.ts +0 -3
  76. package/dist/lib/pagination.d.ts +0 -71
  77. package/dist/renderer/contract.d.ts +0 -12
  78. package/dist/renderer/index.d.ts +0 -10
  79. package/dist/styles/make-styles.d.ts +0 -37
  80. package/dist/tokens/core.generated.d.ts +0 -3
  81. package/dist/tokens/install.d.ts +0 -38
  82. package/dist/tokens/palette.generated.d.ts +0 -3
@@ -1,90 +0,0 @@
1
- import * as React from "react";
2
- import { type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandLoadingProps, type CommandSeparatorProps } from "../command/command";
3
- import { type LabelProps } from "../label/label";
4
- import { type PopoverContentProps, type PopoverPortalProps, type PopoverProps, type PopoverTriggerProps } from "../popover/popover";
5
- export type FieldComboboxProps = PopoverProps;
6
- export declare const FieldCombobox: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverProps & React.RefAttributes<HTMLElement>>;
7
- export type FieldComboboxTriggerProps = PopoverTriggerProps;
8
- export declare const FieldComboboxTrigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-popover").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
- export type FieldComboboxContentProps = PopoverContentProps & {
10
- container?: PopoverPortalProps["container"];
11
- };
12
- export declare const FieldComboboxContent: React.ForwardRefExoticComponent<Omit<FieldComboboxContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- export type FieldComboboxValueProps = React.ComponentProps<"div">;
14
- export declare const FieldComboboxValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
- export type FieldComboboxInputProps = CommandInputProps;
16
- export declare const FieldComboboxInput: React.ForwardRefExoticComponent<Omit<CommandInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
17
- export type FieldComboboxListProps = CommandListProps;
18
- export declare const FieldComboboxList: React.ForwardRefExoticComponent<Omit<{
19
- children?: React.ReactNode;
20
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
21
- ref?: React.Ref<HTMLDivElement>;
22
- } & {
23
- asChild?: boolean;
24
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
25
- label?: string;
26
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
27
- export type FieldComboboxItemProps = CommandItemProps;
28
- export declare const FieldComboboxItem: React.ForwardRefExoticComponent<Omit<{
29
- children?: React.ReactNode;
30
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
31
- ref?: React.Ref<HTMLDivElement>;
32
- } & {
33
- asChild?: boolean;
34
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
35
- disabled?: boolean;
36
- onSelect?: (value: string) => void;
37
- value?: string;
38
- keywords?: string[];
39
- forceMount?: boolean;
40
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
- export type FieldComboboxItemCheckIconProps = React.ComponentProps<"span">;
42
- export declare const FieldComboboxItemCheckIcon: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
43
- export type FieldComboboxEmptyProps = CommandEmptyProps;
44
- export declare const FieldComboboxEmpty: React.ForwardRefExoticComponent<Omit<{
45
- children?: React.ReactNode;
46
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
47
- ref?: React.Ref<HTMLDivElement>;
48
- } & {
49
- asChild?: boolean;
50
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
51
- export type FieldComboboxGroupProps = CommandGroupProps;
52
- export declare const FieldComboboxGroup: React.ForwardRefExoticComponent<Omit<{
53
- children?: React.ReactNode;
54
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
55
- ref?: React.Ref<HTMLDivElement>;
56
- } & {
57
- asChild?: boolean;
58
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
59
- heading?: React.ReactNode;
60
- value?: string;
61
- forceMount?: boolean;
62
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
63
- export type FieldComboboxGroupLabelProps = LabelProps;
64
- export declare const FieldComboboxGroupLabel: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
65
- export type FieldComboboxSeparatorProps = CommandSeparatorProps;
66
- export declare const FieldComboboxSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
67
- ref?: React.Ref<HTMLDivElement>;
68
- } & {
69
- asChild?: boolean;
70
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
71
- alwaysRender?: boolean;
72
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
73
- export type FieldComboboxLoadingProps = CommandLoadingProps;
74
- export declare const FieldComboboxLoading: React.ForwardRefExoticComponent<Omit<{
75
- children?: React.ReactNode;
76
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
77
- ref?: React.Ref<HTMLDivElement>;
78
- } & {
79
- asChild?: boolean;
80
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
81
- progress?: number;
82
- label?: string;
83
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
84
- export type FieldComboboxClearProps = React.ComponentProps<"span">;
85
- export declare const FieldComboboxClear: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
86
- export type FieldComboboxPlaceholderProps = React.ComponentProps<"span">;
87
- export declare const FieldComboboxPlaceholder: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
88
- export type FieldComboboxClearValueProps = React.ComponentProps<"span">;
89
- export declare const FieldComboboxClearValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
90
- export { FieldCombobox as Combobox, FieldComboboxGroup as ComboboxGroup, FieldComboboxGroupLabel as ComboboxGroupLabel, FieldComboboxValue as ComboboxValue, FieldComboboxTrigger as ComboboxTrigger, FieldComboboxContent as ComboboxContent, FieldComboboxItem as ComboboxItem, FieldComboboxItemCheckIcon as ComboboxItemCheckIcon, FieldComboboxEmpty as ComboboxEmpty, FieldComboboxSeparator as ComboboxSeparator, FieldComboboxInput as ComboboxInput, FieldComboboxList as ComboboxList, FieldComboboxLoading as ComboboxLoading, FieldComboboxClear as ComboboxClear, FieldComboboxClearValue as ComboboxClearValue, FieldComboboxPlaceholder as ComboboxPlaceholder, };
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTriggerClear, SelectValue, type SelectContentProps, type SelectGroupProps, type SelectItemProps, type SelectLabelProps, type SelectProps, type SelectScrollDownButtonProps, type SelectScrollUpButtonProps, type SelectSeparatorProps, type SelectTriggerClearProps, type SelectTriggerProps, type SelectValueProps } from "../select/select";
3
- export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-select").SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTriggerClear, SelectValue, type SelectContentProps, type SelectGroupProps, type SelectItemProps, type SelectLabelProps, type SelectProps, type SelectScrollDownButtonProps, type SelectScrollUpButtonProps, type SelectSeparatorProps, type SelectTriggerClearProps, type SelectTriggerProps, type SelectValueProps, };
@@ -1,76 +0,0 @@
1
- import * as React from "react";
2
- export type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement | null;
3
- export interface FieldContextValue {
4
- inputRef: React.RefObject<FieldInputRef>;
5
- }
6
- export declare const useFieldContext: () => FieldContextValue;
7
- /**
8
- * Field context when there is one, `null` otherwise — for parts that work both inside and outside a
9
- * Field.
10
- *
11
- * `useFieldContext` throws by design, which is right for FieldInput (it is meaningless on its own)
12
- * and wrong for SelectTrigger and the combobox trigger, which are legitimate standalone components
13
- * that merely pick up field wiring when nested. Those were calling the throwing hook inside a
14
- * try/catch, i.e. using an exception for control flow on every render of a perfectly valid tree.
15
- */
16
- export declare const useOptionalFieldContext: () => FieldContextValue | null;
17
- export type FieldVariant = "default" | "highlight" | "readonly" | "destructive";
18
- export declare const fieldVariants: ({ variant, }?: {
19
- variant?: FieldVariant;
20
- }) => FieldVariant;
21
- export type FieldProps = Omit<React.ComponentProps<"div">, "className"> & {
22
- className?: string;
23
- variant?: FieldVariant;
24
- };
25
- export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
- export type FieldSetProps = React.ComponentProps<"fieldset">;
27
- export declare const FieldSet: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
28
- export type FieldGroupProps = React.ComponentProps<"div"> & {
29
- direction?: "column" | "row";
30
- };
31
- export declare const FieldGroup: React.ForwardRefExoticComponent<Omit<FieldGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
- export type FieldContentProps = React.ComponentProps<"div">;
33
- export declare const FieldContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
- export type FieldLabelProps = Omit<React.ComponentProps<"label">, "className"> & {
35
- className?: string;
36
- };
37
- export declare const FieldLabel: React.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
38
- export type FieldLabelContentProps = React.ComponentProps<"div"> & {
39
- showOnHover?: boolean;
40
- };
41
- export declare const FieldLabelContent: React.ForwardRefExoticComponent<Omit<FieldLabelContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
- export type FieldDescriptionVariant = "default" | "helper";
43
- export declare const fieldDescriptionVariants: ({ variant, }?: {
44
- variant?: FieldDescriptionVariant;
45
- }) => FieldDescriptionVariant;
46
- export type FieldDescriptionProps = Omit<React.ComponentProps<"p">, "className"> & {
47
- className?: string;
48
- variant?: FieldDescriptionVariant;
49
- };
50
- export declare const FieldDescription: React.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
51
- export type FieldErrorProps = Omit<React.ComponentProps<"div">, "className"> & {
52
- className?: string;
53
- errors?: Array<{
54
- message?: string;
55
- } | undefined>;
56
- };
57
- export declare const FieldError: React.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
58
- export type FieldInputProps = Omit<React.ComponentProps<"input">, "className"> & {
59
- className?: string;
60
- };
61
- export declare const FieldInput: React.ForwardRefExoticComponent<Omit<FieldInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
62
- export type FieldInputGroupProps = React.ComponentProps<"div">;
63
- export declare const FieldInputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
64
- export type FieldTextareaResize = "none" | "vertical" | "horizontal";
65
- export type FieldTextareaProps = React.ComponentProps<"textarea"> & {
66
- resize?: FieldTextareaResize;
67
- };
68
- export declare const FieldTextarea: React.ForwardRefExoticComponent<Omit<FieldTextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
69
- export type FieldGroupAddonAlign = "start" | "end";
70
- export declare const inputGroupAddonVariants: ({ align, }?: {
71
- align?: FieldGroupAddonAlign;
72
- }) => FieldGroupAddonAlign;
73
- export type FieldGroupAddonProps = React.ComponentProps<"div"> & {
74
- align?: FieldGroupAddonAlign;
75
- };
76
- export declare const FieldGroupAddon: React.ForwardRefExoticComponent<Omit<FieldGroupAddonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,21 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Label — a native `<label>` element styled with Griffel atoms.
4
- *
5
- * Base UI has no Label primitive; v1 wrapped `@radix-ui/react-label`, which only added an
6
- * `onMouseDown` handler preventing text selection on double click while wrapping a `<label>`
7
- * to wire `htmlFor`. A native `<label>` natively associates with form controls via `htmlFor` or
8
- * nesting, so we render a native `<label>` directly with no Base UI or Radix dependency.
9
- *
10
- * Variants: `primary` (`gray-a12`) and `destructive` (`error-a12`), both from the core token
11
- * sheet so no palette install is required.
12
- *
13
- * Sizes: `sm` (`text-xs`), `base` (`text-sm`), and `lg` (`text-base`).
14
- */
15
- export type LabelVariant = "primary" | "destructive";
16
- export type LabelSize = "sm" | "base" | "lg";
17
- export type LabelProps = React.ComponentProps<"label"> & {
18
- variant?: LabelVariant;
19
- size?: LabelSize;
20
- };
21
- export declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
@@ -1,46 +0,0 @@
1
- import * as React from "react";
2
- export type ListDensity = "compact" | "relaxed";
3
- export type ListItemStatus = "default" | "error" | "warning" | "success";
4
- export type ListProps = Omit<React.ComponentProps<"ol">, "onReorder"> & {
5
- /** Row density. Default: "relaxed" */
6
- density?: ListDensity;
7
- /** Alternating background on neutral rows. Default: false */
8
- striped?: boolean;
9
- /** Show a 1-based position number on each item. Default: false */
10
- showIndex?: boolean;
11
- /** Enable drag-and-drop reordering. Each `ListItem` must have a `value`. */
12
- sortable?: boolean;
13
- /** Called with the new order of `ListItem` values after a drag. */
14
- onReorder?: (values: string[]) => void;
15
- };
16
- export declare const List: React.ForwardRefExoticComponent<Omit<ListProps, "ref"> & React.RefAttributes<HTMLOListElement>>;
17
- export type ListItemActionsProps = React.ComponentProps<"span">;
18
- export declare const ListItemActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
19
- export type ListItemTextProps = React.ComponentProps<"span">;
20
- export declare const ListItemText: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
21
- export type ListItemDescriptionProps = React.ComponentProps<"span">;
22
- export declare const ListItemDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
23
- export type ListItemProps = React.ComponentProps<"li"> & {
24
- /** Stable id used for drag-and-drop. Required when the `List` is `sortable`. */
25
- value?: string;
26
- /** System status. Tints the row and shows a trailing status icon. */
27
- status?: ListItemStatus;
28
- /** Injected by `List` — the 0-based position. */
29
- index?: number;
30
- };
31
- export declare const ListItem: React.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
32
- export type ListGroupProps = Omit<React.ComponentProps<"li">, "onChange"> & {
33
- /** Controlled open state of the collapsible group. */
34
- open?: boolean;
35
- /** Initial open state when uncontrolled. Default: false */
36
- defaultOpen?: boolean;
37
- /** Called when the group is expanded or collapsed. */
38
- onOpenChange?: (open: boolean) => void;
39
- };
40
- export declare const ListGroup: React.ForwardRefExoticComponent<Omit<ListGroupProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
41
- export type ListGroupLabelProps = React.ComponentProps<"button"> & {
42
- asListItem?: boolean;
43
- };
44
- export declare const ListGroupLabel: React.ForwardRefExoticComponent<Omit<ListGroupLabelProps, "ref"> & React.RefAttributes<HTMLElement>>;
45
- export type ListGroupContentProps = React.ComponentProps<"ul">;
46
- export declare const ListGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
@@ -1,39 +0,0 @@
1
- import * as React from "react";
2
- import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
3
- /** The trailing control glyph an {@link OptionCard} shows for its selected state. */
4
- export type OptionCardControlType = "radio" | "checkbox" | "switch" | "none";
5
- export type OptionCardLayout = "grid" | "row" | "column";
6
- export type OptionCardGroupProps = React.ComponentProps<typeof ToggleGroupPrimitive.Root> & {
7
- layout?: OptionCardLayout;
8
- };
9
- export declare const OptionCardGroup: React.ForwardRefExoticComponent<(Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement> & {
10
- layout?: OptionCardLayout;
11
- }, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement> & {
12
- layout?: OptionCardLayout;
13
- }, "ref">) & React.RefAttributes<HTMLDivElement>>;
14
- export type OptionCardControlProps = React.ComponentProps<"span"> & {
15
- type?: OptionCardControlType;
16
- };
17
- export declare const OptionCardControl: React.ForwardRefExoticComponent<Omit<OptionCardControlProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
18
- export type OptionCardMediaVariant = "icon" | "illustration";
19
- export type OptionCardMediaProps = React.ComponentProps<"span"> & {
20
- variant?: OptionCardMediaVariant;
21
- };
22
- export declare const OptionCardMedia: React.ForwardRefExoticComponent<Omit<OptionCardMediaProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
23
- export type OptionCardTitleProps = React.ComponentProps<"span">;
24
- export declare const OptionCardTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
25
- export type OptionCardDescriptionProps = React.ComponentProps<"span">;
26
- export declare const OptionCardDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
27
- export type OptionCardContentProps = React.ComponentProps<"span">;
28
- export declare const OptionCardContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
29
- export type OptionCardProps = Omit<React.ComponentProps<"button">, "onChange" | "title"> & {
30
- /** Value of this option. Required inside an {@link OptionCardGroup}. */
31
- value?: string;
32
- /** Controlled selected state for a standalone (group-less) card. */
33
- pressed?: boolean;
34
- /** Uncontrolled default selected state for a standalone card. */
35
- defaultPressed?: boolean;
36
- /** Fired when a standalone card is toggled. */
37
- onPressedChange?: (pressed: boolean) => void;
38
- };
39
- export declare const OptionCard: React.ForwardRefExoticComponent<Omit<OptionCardProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,27 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Pill — same colour-matrix collapse as Badge, plus a hover background.
4
- *
5
- * v1 enumerates 19 colours x 3 styles as 57 `compoundVariants`, each a distinct class string
6
- * built by interpolation (`volt-bg-${color}-soft`), which Tailwind's scanner cannot see and
7
- * `safelist.css` exists to force into existence. The hover state made that 57 more per-colour
8
- * rules. Here the colour is a VALUE, not part of a class name: the four atoms below read four
9
- * custom properties, the component sets those inline from the `color` prop, and a single `:hover`
10
- * atom reads the hover background. Total rules: one small set per style variant — 9 colours' worth
11
- * of rules cover all 19 x 3 combinations.
12
- */
13
- declare const COLORS: readonly ["blue", "sky", "mint", "lime", "green", "teal", "cyan", "indigo", "purple", "pink", "red", "orange", "yellow", "bronze", "gray", "accent", "warning", "success", "error"];
14
- export type PillColor = (typeof COLORS)[number];
15
- export type PillVariant = "soft" | "solid" | "surface";
16
- export type PillProps = Omit<React.ComponentProps<"span">, "color"> & {
17
- color?: PillColor;
18
- /**
19
- * Named `variant`, not `style`. v1 called this `style`, which shadows the HTML `style` attribute.
20
- * Retrocompat is not a requirement here, so the collision is fixed rather than inherited.
21
- */
22
- variant?: PillVariant;
23
- disabled?: boolean;
24
- onRemove?: (e: React.MouseEvent<HTMLButtonElement>) => void;
25
- };
26
- export declare const Pill: React.ForwardRefExoticComponent<Omit<PillProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
27
- export { COLORS as PILL_COLORS };
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- export type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;
4
- export declare const Popover: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverProps & React.RefAttributes<HTMLElement>>;
5
- export type PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger>;
6
- export declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
- export type PopoverPortalProps = React.ComponentProps<typeof PopoverPrimitive.Portal>;
8
- export declare const PopoverPortal: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverPortalProps & React.RefAttributes<HTMLElement>>;
9
- export type PopoverAnchorProps = React.ComponentProps<typeof PopoverPrimitive.Anchor>;
10
- export declare const PopoverAnchor: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- export type PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Content> & {
12
- flush?: boolean;
13
- };
14
- export declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
- export type RadioGroupProps = React.ComponentProps<typeof RadioGroupPrimitive.Root>;
4
- export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- export type RadioGroupItemProps = React.ComponentProps<typeof RadioGroupPrimitive.Item>;
6
- export declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,38 +0,0 @@
1
- import * as React from "react";
2
- import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
- export type UseScrollOverflowOptions = {
4
- /** Scroll distance per step in pixels. Default: 200 */
5
- scrollStep?: number;
6
- /** Scroll orientation. Default: "horizontal" */
7
- orientation?: "horizontal" | "vertical";
8
- };
9
- export type UseScrollOverflowReturn = {
10
- /** Ref to attach to the scroll container (Base UI Viewport) */
11
- scrollRef: React.RefObject<HTMLDivElement | null>;
12
- /** Whether the content overflows the container */
13
- hasOverflow: boolean;
14
- /** Whether there is hidden content before the visible area (left or top) */
15
- canScrollStart: boolean;
16
- /** Whether there is hidden content after the visible area (right or bottom) */
17
- canScrollEnd: boolean;
18
- /** Scroll toward the start (left or up) by scrollStep */
19
- scrollToStart: () => void;
20
- /** Scroll toward the end (right or down) by scrollStep */
21
- scrollToEnd: () => void;
22
- };
23
- export declare function useScrollOverflow(options?: UseScrollOverflowOptions): UseScrollOverflowReturn;
24
- export type ScrollOverflowProps = React.ComponentProps<typeof ScrollAreaPrimitive.Root> & UseScrollOverflowOptions & {
25
- /** Show navigation arrow buttons on edges. Default: false */
26
- arrows?: boolean;
27
- /** Show gradient fade indicators on edges. Default: true */
28
- gradients?: boolean;
29
- /** Gradient width in pixels. Default: 40 */
30
- gradientWidth?: number;
31
- /** Gradient base color (CSS value). Should match the parent background. Default: "var(--volt-body)" */
32
- gradientColor?: string;
33
- /** Show inset shadow on overflow edges. Default: true */
34
- shadow?: boolean;
35
- /** Show a styled scrollbar track. Default: false */
36
- scrollbar?: boolean;
37
- };
38
- export declare const ScrollOverflow: React.ForwardRefExoticComponent<Omit<ScrollOverflowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
- export type SegmentedControlLayout = "hug" | "equal" | "stretch";
4
- export type SegmentedControlProps = React.ComponentProps<typeof RadioGroupPrimitive.Root> & {
5
- layout?: SegmentedControlLayout;
6
- };
7
- export type SegmentedControlItemProps = React.ComponentProps<typeof RadioGroupPrimitive.Item> & {
8
- icon?: React.ReactNode;
9
- };
10
- export declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<SegmentedControlProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- export declare const SegmentedControlItem: React.ForwardRefExoticComponent<Omit<SegmentedControlItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,26 +0,0 @@
1
- import * as React from "react";
2
- import * as SelectPrimitive from "@radix-ui/react-select";
3
- export type SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;
4
- export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLElement>>;
5
- export type SelectGroupProps = React.ComponentProps<typeof SelectPrimitive.Group>;
6
- export declare const SelectGroup: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- export type SelectValueProps = React.ComponentProps<typeof SelectPrimitive.Value>;
8
- export declare const SelectValue: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
9
- export type SelectTriggerProps = React.ComponentProps<typeof SelectPrimitive.Trigger>;
10
- export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
- export type SelectTriggerClearProps = React.ComponentProps<"span">;
12
- export declare const SelectTriggerClear: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
13
- export type SelectContentProps = React.ComponentProps<typeof SelectPrimitive.Content> & {
14
- container?: React.ComponentProps<typeof SelectPrimitive.Portal>["container"];
15
- };
16
- export declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
- export type SelectLabelProps = React.ComponentProps<typeof SelectPrimitive.Label>;
18
- export declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- export type SelectItemProps = React.ComponentProps<typeof SelectPrimitive.Item>;
20
- export declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
- export type SelectSeparatorProps = React.ComponentProps<typeof SelectPrimitive.Separator>;
22
- export declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
- export type SelectScrollUpButtonProps = React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>;
24
- export declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
- export type SelectScrollDownButtonProps = React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>;
26
- export declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,30 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Separator — v1's `@radix-ui/react-separator` ported to Griffel atoms with no Radix dependency.
4
- *
5
- * A separator needs no behaviour beyond correct semantics, so it is a plain `<div>`. The two
6
- * orientation variants are separate style slots selected in JS from the `orientation` prop — we
7
- * deliberately do NOT style off a `data-[orientation=...]` attribute, like v1 does. v1 keyed its
8
- * sizing on `data-[orientation=horizontal]`; doing that here would either key on `data-slot`-style
9
- * selectors (whose values are shared with v1, so the rule also matches v1-rendered DOM) or on the
10
- * custom-property slot marker. Two slots in the style object is simpler and cheaper. We still emit
11
- * `data-orientation` as a plain attribute — for diagnostics and for consumers — we just never style
12
- * off it.
13
- *
14
- * The accessibility surface is the whole point of the component, so it gets the full treatment:
15
- * - `decorative` (default `true`): the divider is purely presentational, so it is hidden from
16
- * assistive technology with `aria-hidden="true"` and carries no `role`.
17
- * - `decorative={false}`: a meaningful separator, so it gets `role="separator"` and
18
- * `aria-orientation` matching the `orientation` prop.
19
- */
20
- export type SeparatorOrientation = "horizontal" | "vertical";
21
- export type SeparatorProps = React.ComponentProps<"div"> & {
22
- orientation?: SeparatorOrientation;
23
- /**
24
- * When `true` the separator is purely decorative and is hidden from assistive technology
25
- * (`aria-hidden="true"`, no `role`). When `false` it is a meaningful separator and gets
26
- * `role="separator"` plus `aria-orientation`.
27
- */
28
- decorative?: boolean;
29
- };
30
- export declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,24 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Skeleton — v1's loading placeholder ported to Griffel atoms.
4
- *
5
- * Two variants, `default` and `ai`. `default` is a gray block that pulses; `ai` is a gray field
6
- * that renders three decorative colour spots drifting behind the content. The spots are ported from
7
- * v1's global `skeleton-ai-spot-*` classes in `styles/utilities.css`, including their exact
8
- * gradients, durations (10s / 12s / 14s) and easing.
9
- *
10
- * The keyframes are the object form, so Griffel hashes each one from its content — a hand-authored
11
- * global `@keyframes` would collide across two co-resident copies of this package. The pulse is a
12
- * single three-stop animation; each spot carries its own.
13
- *
14
- * The spots are `purple-a4`, `pink-a4` and `indigo-a4`, none of which is a core token family
15
- * (accent / gray / error / warning / success / info ship in the core sheet; everything else lives
16
- * in the palette sheet, which is not loaded by default). `ai` therefore calls
17
- * `ensurePaletteTokens()` — CONVENTIONS rule 3. There is no `color` prop, so no inline custom
18
- * properties: the spot colours are constant and live inside the style objects.
19
- */
20
- export type SkeletonVariant = "default" | "ai";
21
- export type SkeletonProps = React.ComponentProps<"div"> & {
22
- variant?: SkeletonVariant;
23
- };
24
- export declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Spinner — v1's SVG spinner ported to a size-driven style object.
4
- *
5
- * v1 sizes this with Tailwind `size-*` utilities and deprecated the `size` prop in favour of a
6
- * `className` like `size-4`. There is no Tailwind here, so that escape hatch does not exist: `size`
7
- * is the supported API and the `@deprecated` tag is dropped (CONVENTIONS rule 9).
8
- *
9
- * The SVG markup, `viewBox` and stroke attributes are copied exactly from v1. Both animations are
10
- * the object form per CONVENTIONS rule 8: the outer `<g>` spins from a single `100%` stop, and the
11
- * dash sweep carries all three of v1's keyframe stops (`0%`, `47.5%`, `95%,100%`) from
12
- * `styles/animations.css`. The only mechanical changes are stylistic: sizes become width/height
13
- * atoms and the two `animate-*` classes become `animationName` + duration + timing + iteration.
14
- *
15
- * The five dimensions (1rem / 1.5rem / 2.5rem / 4rem / 6rem) are v1's Tailwind `size-N` values;
16
- * the v2 token set has no size or width/height family, so they are literals (CONVENTIONS rule 1).
17
- *
18
- * v1 also exposes a `variant` prop (`circle` | `line`) whose branches are both empty strings — it
19
- * produces no styles at all, so it is omitted here.
20
- */
21
- export type SpinnerSize = "sm" | "base" | "lg" | "xl" | "2xl";
22
- export type SpinnerProps = React.ComponentProps<"svg"> & {
23
- size?: SpinnerSize;
24
- };
25
- export declare const Spinner: React.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
@@ -1,17 +0,0 @@
1
- import * as React from "react";
2
- import * as SwitchPrimitive from "@radix-ui/react-switch";
3
- /**
4
- * `primary` is a deprecated alias of `default`, carried because v1 has it and real consumers still
5
- * pass it — entity-sidepanel's SettingsControls does. v1's own comment marks it deprecated and its
6
- * styles are byte-identical to `default`, so it is mapped rather than duplicated.
7
- *
8
- * @remarks `primary` is deprecated; use `default`.
9
- */
10
- export type SwitchVariant = "default" | "destructive" | "primary";
11
- export type SwitchSize = "sm" | "base" | "lg";
12
- export type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root> & {
13
- variant?: SwitchVariant;
14
- size?: SwitchSize;
15
- showThumbIcon?: boolean;
16
- };
17
- export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,45 +0,0 @@
1
- import * as React from "react";
2
- import type { ComponentProps } from "react";
3
- export type TablePaginationLabels = {
4
- /** Label for the pagination navigation region. */
5
- navigation?: string;
6
- /** Label for first page button. */
7
- firstPage?: string;
8
- /** Label for previous page button. */
9
- previousPage?: string;
10
- /** Label for next page button. */
11
- nextPage?: string;
12
- /** Label for last page button. */
13
- lastPage?: string;
14
- /** Label generator for page number buttons. Receives 1-indexed page number. */
15
- goToPage?: (page: number) => string;
16
- /** Label generator for ellipsis jump buttons. Receives target page number. */
17
- jumpToPage?: (page: number) => string;
18
- /** Label generator for page size selector. Receives current page size. */
19
- pageSizeSelector?: (pageSize: number) => string;
20
- /** Label for page size dropdown header. */
21
- resultsPerPage?: string;
22
- /** Label generator for the range display. Receives start, end, and total. */
23
- rangeDisplay?: (start: number, end: number, total: number) => string;
24
- };
25
- export type TablePaginationProps = Omit<ComponentProps<"div">, "onChange"> & {
26
- /** Current page number (1-indexed) */
27
- page: number;
28
- /** Total number of items across all pages */
29
- totalItems: number;
30
- /** Current page size (items per page) */
31
- pageSize: number;
32
- /** Callback fired when the page changes */
33
- onPageChange: (page: number) => void;
34
- /** Callback fired when the page size changes */
35
- onPageSizeChange: (pageSize: number) => void;
36
- /** Available page size options for the dropdown */
37
- pageSizeOptions?: number[];
38
- /** Number of sibling pages to show on each side of current page */
39
- siblingCount?: number;
40
- /** Whether the pagination controls are disabled */
41
- disabled?: boolean;
42
- /** Labels for i18n. All labels are optional for backwards compatibility but recommended. */
43
- labels?: TablePaginationLabels;
44
- };
45
- export declare const TablePagination: React.ForwardRefExoticComponent<Omit<TablePaginationProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,50 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Table — the primitive set (Table, TableHeader, TableBody, TableFooter, TableRow, TableHead,
4
- * TableCell, TableCaption) in Card's compound pattern: one `makeVoltStyles` call, one slot per
5
- * sub-component, each reading its own slot.
6
- *
7
- * v1 ships a density dimension through React context, defaulting to `normal`; TableHead and
8
- * TableCell each resolve `effectiveDensity = density ?? contextDensity`, and that drives a height
9
- * (head) or a vertical padding (cell) slot. Selectors carry over untouched where they do not
10
- * involve `data-slot`: `[&_tr]:border-b`, `[&_tr:last-child]:border-0`,
11
- * `data-[state=selected]:bg-accent-a3` (Radix selection state) and the `role="checkbox"`
12
- * column-reflow rules all obey the original attribute.
13
- *
14
- * Values explicit where no token exists: `px-3` (0.75rem) on head/cell, the `h-9` / `h-10`
15
- * heights (2.25rem / 2.5rem), `py-1.5` (0.375rem) and `py-3` (0.75rem) cell paddings. The row's
16
- * `transition-colors` expands to Tailwind v4's default property list plus the 150ms
17
- * `cubic-bezier(0.4, 0, 0.2, 1)` easing — visible motion from the framework's default theme,
18
- * which the v1 file does not state (Rule 0: flagged, not approximated away). The checkbox
19
- * `translate-y-[2px]` maps to the modern `translate` property, which is what Tailwind v4 emits.
20
- */
21
- export type TableDensity = "compact" | "normal" | "comfortable";
22
- declare const TableDensityContext: React.Context<TableDensity>;
23
- export type TableProps = React.ComponentProps<"table"> & {
24
- density?: TableDensity;
25
- };
26
- export declare const Table: React.ForwardRefExoticComponent<Omit<TableProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
27
- export declare const TableHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
28
- export declare const TableBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
29
- export declare const TableFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
30
- export type TableRowProps = React.ComponentProps<"tr"> & {
31
- /** Disable hover background effect */
32
- noHover?: boolean;
33
- };
34
- export declare const TableRow: React.ForwardRefExoticComponent<Omit<TableRowProps, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
35
- export type TableHeadProps = React.ComponentProps<"th"> & {
36
- align?: "left" | "center" | "right";
37
- density?: TableDensity;
38
- };
39
- export declare const TableHead: React.ForwardRefExoticComponent<Omit<TableHeadProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
40
- export type TableCellProps = React.ComponentProps<"td"> & {
41
- align?: "left" | "center" | "right";
42
- numeric?: boolean;
43
- density?: TableDensity;
44
- };
45
- export declare const TableCell: React.ForwardRefExoticComponent<Omit<TableCellProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
46
- export type TableCaptionProps = React.ComponentProps<"caption"> & {
47
- position?: "top" | "bottom";
48
- };
49
- export declare const TableCaption: React.ForwardRefExoticComponent<Omit<TableCaptionProps, "ref"> & React.RefAttributes<HTMLTableCaptionElement>>;
50
- export { TableDensityContext };