moduix 0.8.4 → 0.9.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 (118) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +7 -40
  2. package/dist/components/Accordion/index.d.ts +0 -1
  3. package/dist/components/Alert/Alert.d.ts +10 -0
  4. package/dist/components/Alert/index.d.ts +1 -0
  5. package/dist/components/AlertDialog/AlertDialog.d.ts +6 -37
  6. package/dist/components/AlertDialog/index.d.ts +1 -2
  7. package/dist/components/Autocomplete/Autocomplete.d.ts +32 -70
  8. package/dist/components/Autocomplete/index.d.ts +1 -2
  9. package/dist/components/Avatar/Avatar.d.ts +1 -8
  10. package/dist/components/Avatar/index.d.ts +0 -1
  11. package/dist/components/Badge/Badge.d.ts +6 -0
  12. package/dist/components/Badge/index.d.ts +1 -0
  13. package/dist/components/Bleed/Bleed.d.ts +6 -13
  14. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -43
  15. package/dist/components/Breadcrumbs/index.d.ts +1 -2
  16. package/dist/components/Button/Button.d.ts +4 -19
  17. package/dist/components/Button/index.d.ts +0 -1
  18. package/dist/components/Card/Card.d.ts +13 -0
  19. package/dist/components/Card/index.d.ts +1 -0
  20. package/dist/components/Checkbox/Checkbox.d.ts +7 -42
  21. package/dist/components/Checkbox/index.d.ts +0 -1
  22. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +7 -17
  23. package/dist/components/CheckboxGroup/index.d.ts +0 -1
  24. package/dist/components/CloseButton/CloseButton.d.ts +1 -3
  25. package/dist/components/Collapsible/Collapsible.d.ts +5 -34
  26. package/dist/components/Collapsible/index.d.ts +0 -1
  27. package/dist/components/Combobox/Combobox.d.ts +36 -82
  28. package/dist/components/Combobox/index.d.ts +1 -2
  29. package/dist/components/CommandPalette/CommandPalette.d.ts +48 -0
  30. package/dist/components/CommandPalette/index.d.ts +1 -0
  31. package/dist/components/Container/Container.d.ts +8 -0
  32. package/dist/components/Container/index.d.ts +1 -0
  33. package/dist/components/ContextMenu/ContextMenu.d.ts +23 -50
  34. package/dist/components/ContextMenu/index.d.ts +1 -2
  35. package/dist/components/Dialog/Dialog.d.ts +12 -36
  36. package/dist/components/Dialog/index.d.ts +1 -2
  37. package/dist/components/Drawer/Drawer.d.ts +16 -51
  38. package/dist/components/Drawer/index.d.ts +1 -2
  39. package/dist/components/Field/Field.d.ts +0 -18
  40. package/dist/components/Field/index.d.ts +0 -1
  41. package/dist/components/Fieldset/Fieldset.d.ts +1 -6
  42. package/dist/components/Fieldset/index.d.ts +0 -1
  43. package/dist/components/Form/Form.d.ts +1 -10
  44. package/dist/components/Form/index.d.ts +0 -1
  45. package/dist/components/Heading/Heading.d.ts +16 -12
  46. package/dist/components/Input/Input.d.ts +6 -12
  47. package/dist/components/Input/index.d.ts +0 -1
  48. package/dist/components/InputGroup/InputGroup.d.ts +16 -0
  49. package/dist/components/InputGroup/index.d.ts +1 -0
  50. package/dist/components/Kbd/Kbd.d.ts +4 -0
  51. package/dist/components/Kbd/index.d.ts +1 -0
  52. package/dist/components/Lightbox/Lightbox.d.ts +23 -51
  53. package/dist/components/List/List.d.ts +13 -21
  54. package/dist/components/Menu/Menu.d.ts +25 -51
  55. package/dist/components/Menu/index.d.ts +1 -2
  56. package/dist/components/Menubar/Menubar.d.ts +24 -61
  57. package/dist/components/Menubar/index.d.ts +1 -2
  58. package/dist/components/Meter/Meter.d.ts +3 -15
  59. package/dist/components/Meter/index.d.ts +1 -2
  60. package/dist/components/NavigationMenu/NavigationMenu.d.ts +16 -84
  61. package/dist/components/NavigationMenu/index.d.ts +1 -2
  62. package/dist/components/NumberField/NumberField.d.ts +8 -29
  63. package/dist/components/NumberField/index.d.ts +1 -2
  64. package/dist/components/OTPField/OTPField.d.ts +1 -26
  65. package/dist/components/OTPField/index.d.ts +0 -1
  66. package/dist/components/Pagination/Pagination.d.ts +23 -21
  67. package/dist/components/Pagination/index.d.ts +1 -2
  68. package/dist/components/Popover/Popover.d.ts +15 -38
  69. package/dist/components/Popover/index.d.ts +1 -2
  70. package/dist/components/PreviewCard/PreviewCard.d.ts +12 -29
  71. package/dist/components/PreviewCard/index.d.ts +1 -2
  72. package/dist/components/Progress/Progress.d.ts +7 -15
  73. package/dist/components/Progress/index.d.ts +1 -2
  74. package/dist/components/Radio/Radio.d.ts +10 -29
  75. package/dist/components/Radio/index.d.ts +1 -2
  76. package/dist/components/ScrollArea/ScrollArea.d.ts +15 -38
  77. package/dist/components/ScrollArea/index.d.ts +1 -2
  78. package/dist/components/Select/Select.d.ts +15 -50
  79. package/dist/components/Select/index.d.ts +1 -2
  80. package/dist/components/Separator/Separator.d.ts +2 -3
  81. package/dist/components/Separator/index.d.ts +0 -1
  82. package/dist/components/Skeleton/Skeleton.d.ts +9 -33
  83. package/dist/components/Slider/Slider.d.ts +6 -18
  84. package/dist/components/Slider/index.d.ts +1 -2
  85. package/dist/components/Spinner/Spinner.d.ts +7 -0
  86. package/dist/components/Spinner/index.d.ts +1 -0
  87. package/dist/components/Stack/Stack.d.ts +15 -0
  88. package/dist/components/Stack/index.d.ts +1 -0
  89. package/dist/components/Switch/Switch.d.ts +7 -15
  90. package/dist/components/Switch/index.d.ts +1 -2
  91. package/dist/components/Tabs/Tabs.d.ts +8 -32
  92. package/dist/components/Tabs/index.d.ts +1 -2
  93. package/dist/components/Text/Text.d.ts +9 -17
  94. package/dist/components/Text/index.d.ts +1 -1
  95. package/dist/components/Textarea/Textarea.d.ts +4 -0
  96. package/dist/components/Textarea/index.d.ts +1 -0
  97. package/dist/components/Toast/Toast.d.ts +37 -66
  98. package/dist/components/Toast/index.d.ts +1 -2
  99. package/dist/components/Toggle/Toggle.d.ts +5 -11
  100. package/dist/components/Toggle/index.d.ts +0 -1
  101. package/dist/components/ToggleGroup/ToggleGroup.d.ts +7 -13
  102. package/dist/components/ToggleGroup/index.d.ts +0 -1
  103. package/dist/components/Toolbar/Toolbar.d.ts +7 -19
  104. package/dist/components/Toolbar/index.d.ts +0 -1
  105. package/dist/components/Tooltip/Tooltip.d.ts +10 -28
  106. package/dist/components/Tooltip/index.d.ts +1 -2
  107. package/dist/icons/demo/Icons.d.ts +13 -0
  108. package/dist/icons/demo/index.d.ts +1 -0
  109. package/dist/icons/ui/Icons.d.ts +21 -0
  110. package/dist/icons/ui/index.d.ts +1 -0
  111. package/dist/index.cjs +1 -1
  112. package/dist/index.css +1 -1
  113. package/dist/index.d.ts +12 -1
  114. package/dist/index.js +3449 -3710
  115. package/package.json +8 -8
  116. package/dist/primitives/Icons/Icons.d.ts +0 -36
  117. package/dist/primitives/Icons/index.d.ts +0 -1
  118. package/dist/primitives/index.d.ts +0 -1
@@ -1,89 +1,43 @@
1
+ import { ComponentProps } from 'react';
1
2
  import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';
2
- import * as React from 'react';
3
- type ComboboxContentClassNames = {
4
- portal?: ComboboxPrimitive.Portal.Props['className'];
5
- backdrop?: ComboboxPrimitive.Backdrop.Props['className'];
6
- positioner?: ComboboxPrimitive.Positioner.Props['className'];
7
- arrow?: ComboboxPrimitive.Arrow.Props['className'];
8
- };
9
- type ComboboxContentProps = ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'arrowPadding' | 'anchor' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding' | 'sticky' | 'positionMethod'> & {
10
- classNames?: ComboboxContentClassNames;
11
- container?: ComboboxPrimitive.Portal.Props['container'];
12
- withBackdrop?: boolean;
13
- withArrow?: boolean;
14
- arrow?: boolean | React.ReactNode;
15
- portalProps?: Omit<ComboboxPrimitive.Portal.Props, 'className' | 'children'>;
16
- backdropProps?: Omit<ComboboxPrimitive.Backdrop.Props, 'className'>;
17
- positionerProps?: Omit<ComboboxPrimitive.Positioner.Props, 'className' | 'children'>;
18
- arrowProps?: Omit<ComboboxPrimitive.Arrow.Props, 'className' | 'children'>;
19
- };
20
3
  type IndicatorPosition = 'start' | 'end';
21
- type ComboboxItemProps = ComboboxPrimitive.Item.Props & {
22
- indicator?: IndicatorPosition;
23
- };
24
- type ComboboxFieldLabelProps = ComboboxPrimitive.Label.Props & Pick<React.ComponentProps<'label'>, 'htmlFor'>;
25
4
  declare const Combobox: typeof ComboboxPrimitive.Root;
26
- declare function ComboboxField({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
27
- declare function ComboboxFieldLabel({ className, ...props }: ComboboxFieldLabelProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function ComboboxField({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
6
+ declare const ComboboxFieldLabel: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxLabelProps & Pick<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "htmlFor">, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
28
7
  declare function ComboboxValue(props: ComboboxPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
29
- declare function ComboboxInputGroup({ className, ...props }: ComboboxPrimitive.InputGroup.Props): import("react/jsx-runtime").JSX.Element;
30
- declare function ComboboxInput({ className, ...props }: ComboboxPrimitive.Input.Props): import("react/jsx-runtime").JSX.Element;
31
- declare function ComboboxControlActions({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
32
- declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
33
- declare function ComboboxIcon({ className, children, ...props }: ComboboxPrimitive.Icon.Props): import("react/jsx-runtime").JSX.Element;
34
- declare function ComboboxClear({ className, children, ...props }: ComboboxPrimitive.Clear.Props): import("react/jsx-runtime").JSX.Element;
35
- declare function ComboboxInlineInputContainer({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
36
- declare function ComboboxContent({ className, classNames, container, withBackdrop, withArrow, arrow, portalProps, backdropProps, positionerProps, arrowProps, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, ...props }: ComboboxContentProps): import("react/jsx-runtime").JSX.Element;
37
- declare function ComboboxStatus({ className, ...props }: ComboboxPrimitive.Status.Props): import("react/jsx-runtime").JSX.Element;
38
- declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): import("react/jsx-runtime").JSX.Element;
39
- declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): import("react/jsx-runtime").JSX.Element;
40
- declare function ComboboxRow({ className, ...props }: ComboboxPrimitive.Row.Props): import("react/jsx-runtime").JSX.Element;
41
- declare function ComboboxItem({ className, indicator, ...props }: ComboboxItemProps): import("react/jsx-runtime").JSX.Element;
42
- declare function ComboboxItemIndicator({ className, children, ...props }: ComboboxPrimitive.ItemIndicator.Props): import("react/jsx-runtime").JSX.Element;
43
- declare function ComboboxItemText({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
44
- declare function ComboboxItemTextContent({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
45
- declare function ComboboxItemTextIcon({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
46
- declare function ComboboxItemTextLabel({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
47
- declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
48
- declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
49
- declare function ComboboxGroupLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
8
+ declare const ComboboxInputGroup: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxInputGroupProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
9
+ declare const ComboboxInput: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
10
+ declare function ComboboxControlActions({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
11
+ declare const ComboboxTrigger: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
12
+ declare const ComboboxFieldTrigger: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
13
+ declare const ComboboxIcon: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteIconProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
14
+ declare const ComboboxClear: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteClearProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
15
+ declare const ComboboxPortal: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompletePortalProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
16
+ declare const ComboboxBackdrop: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteBackdropProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
17
+ declare const ComboboxPositioner: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompletePositionerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
18
+ declare const ComboboxPopup: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompletePopupProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
19
+ declare const ComboboxArrow: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteArrowProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
20
+ declare function ComboboxContent({ className, showArrow, children, side, sideOffset, align, alignOffset, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'arrowPadding' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding'> & {
21
+ showArrow?: boolean;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare const ComboboxStatus: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteStatusProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
24
+ declare const ComboboxEmpty: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteEmptyProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
25
+ declare const ComboboxList: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteListProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
26
+ declare const ComboboxRow: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteRowProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
27
+ declare const ComboboxItem: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxItemProps & {
28
+ indicator?: IndicatorPosition;
29
+ }, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
30
+ declare const ComboboxItemIndicator: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxItemIndicatorProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
31
+ declare function ComboboxItemText({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
32
+ declare const ComboboxSeparator: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').SeparatorProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
33
+ declare const ComboboxGroup: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteGroupProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
34
+ declare const ComboboxGroupLabel: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteGroupLabelProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
50
35
  declare function ComboboxCollection(props: ComboboxPrimitive.Collection.Props): import("react/jsx-runtime").JSX.Element;
51
- declare function ComboboxChips({ className, ...props }: ComboboxPrimitive.Chips.Props): import("react/jsx-runtime").JSX.Element;
52
- declare function ComboboxChip({ className, ...props }: ComboboxPrimitive.Chip.Props): import("react/jsx-runtime").JSX.Element;
53
- declare function ComboboxChipRemove({ className, children, ...props }: ComboboxPrimitive.ChipRemove.Props): import("react/jsx-runtime").JSX.Element;
54
- declare function ComboboxChipText({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
55
- declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): import("react/jsx-runtime").JSX.Element;
56
- declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
36
+ declare const ComboboxChips: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxChipsProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
37
+ declare const ComboboxChip: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxChipProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
38
+ declare const ComboboxChipRemove: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ComboboxChipRemoveProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
39
+ declare function ComboboxChipText({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
40
+ declare const ComboboxChipsInput: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AutocompleteInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
57
41
  declare const useComboboxFilter: typeof ComboboxPrimitive.useFilter;
58
42
  declare const useComboboxFilteredItems: typeof ComboboxPrimitive.useFilteredItems;
59
- type ComboboxProps<Value = unknown, Multiple extends boolean | undefined = false> = ComboboxPrimitive.Root.Props<Value, Multiple>;
60
- type ComboboxValueType<Value = unknown, Multiple extends boolean | undefined = false> = ComboboxProps<Value, Multiple>['value'];
61
- type ComboboxFieldProps = React.ComponentProps<'div'>;
62
- type ComboboxValueProps = ComboboxPrimitive.Value.Props;
63
- type ComboboxInputGroupProps = ComboboxPrimitive.InputGroup.Props;
64
- type ComboboxInputProps = ComboboxPrimitive.Input.Props;
65
- type ComboboxControlActionsProps = React.ComponentProps<'div'>;
66
- type ComboboxTriggerProps = ComboboxPrimitive.Trigger.Props;
67
- type ComboboxIconProps = ComboboxPrimitive.Icon.Props;
68
- type ComboboxClearProps = ComboboxPrimitive.Clear.Props;
69
- type ComboboxStatusProps = ComboboxPrimitive.Status.Props;
70
- type ComboboxEmptyProps = ComboboxPrimitive.Empty.Props;
71
- type ComboboxListProps = ComboboxPrimitive.List.Props;
72
- type ComboboxRowProps = ComboboxPrimitive.Row.Props;
73
- type ComboboxItemIndicatorProps = ComboboxPrimitive.ItemIndicator.Props;
74
- type ComboboxItemTextProps = React.ComponentProps<'span'>;
75
- type ComboboxItemTextContentProps = React.ComponentProps<'span'>;
76
- type ComboboxItemTextIconProps = React.ComponentProps<'span'>;
77
- type ComboboxItemTextLabelProps = React.ComponentProps<'span'>;
78
- type ComboboxSeparatorProps = ComboboxPrimitive.Separator.Props;
79
- type ComboboxGroupProps = ComboboxPrimitive.Group.Props;
80
- type ComboboxGroupLabelProps = ComboboxPrimitive.GroupLabel.Props;
81
- type ComboboxCollectionProps = ComboboxPrimitive.Collection.Props;
82
- type ComboboxInlineInputContainerProps = React.ComponentProps<'div'>;
83
- type ComboboxChipsProps = ComboboxPrimitive.Chips.Props;
84
- type ComboboxChipProps = ComboboxPrimitive.Chip.Props;
85
- type ComboboxChipRemoveProps = ComboboxPrimitive.ChipRemove.Props;
86
- type ComboboxChipTextProps = React.ComponentProps<'span'>;
87
- type ComboboxChipsInputProps = ComboboxPrimitive.Input.Props;
88
- export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxIcon, ComboboxClear, ComboboxContent, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxItemTextContent, ComboboxItemTextIcon, ComboboxItemTextLabel, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxInlineInputContainer, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxAnchor, useComboboxFilter, useComboboxFilteredItems, };
89
- export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldProps, ComboboxFieldLabelProps, ComboboxValueProps, ComboboxInputGroupProps, ComboboxInputProps, ComboboxControlActionsProps, ComboboxTriggerProps, ComboboxIconProps, ComboboxClearProps, ComboboxStatusProps, ComboboxEmptyProps, ComboboxListProps, ComboboxRowProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxItemTextContentProps, ComboboxItemTextIconProps, ComboboxItemTextLabelProps, ComboboxSeparatorProps, ComboboxGroupProps, ComboboxGroupLabelProps, ComboboxCollectionProps, ComboboxInlineInputContainerProps, ComboboxChipsProps, ComboboxChipProps, ComboboxChipRemoveProps, ComboboxChipTextProps, ComboboxChipsInputProps, };
43
+ export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxFieldTrigger, ComboboxIcon, ComboboxClear, ComboboxPortal, ComboboxBackdrop, ComboboxPositioner, ComboboxPopup, ComboboxContent, ComboboxArrow, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxFilter, useComboboxFilteredItems, };
@@ -1,2 +1 @@
1
- export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxIcon, ComboboxClear, ComboboxContent, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxItemTextContent, ComboboxItemTextIcon, ComboboxItemTextLabel, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxInlineInputContainer, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxAnchor, useComboboxFilter, useComboboxFilteredItems, } from './Combobox';
2
- export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldProps, ComboboxFieldLabelProps, ComboboxValueProps, ComboboxInputGroupProps, ComboboxInputProps, ComboboxControlActionsProps, ComboboxTriggerProps, ComboboxIconProps, ComboboxClearProps, ComboboxStatusProps, ComboboxEmptyProps, ComboboxListProps, ComboboxRowProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxItemTextContentProps, ComboboxItemTextIconProps, ComboboxItemTextLabelProps, ComboboxSeparatorProps, ComboboxGroupProps, ComboboxGroupLabelProps, ComboboxCollectionProps, ComboboxInlineInputContainerProps, ComboboxChipsProps, ComboboxChipProps, ComboboxChipRemoveProps, ComboboxChipTextProps, ComboboxChipsInputProps, } from './Combobox';
1
+ export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxFieldTrigger, ComboboxIcon, ComboboxClear, ComboboxPortal, ComboboxBackdrop, ComboboxPositioner, ComboboxPopup, ComboboxContent, ComboboxArrow, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxFilter, useComboboxFilteredItems, } from './Combobox';
@@ -0,0 +1,48 @@
1
+ import { ComponentProps } from 'react';
2
+ import { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
3
+ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
4
+ declare const createCommandPaletteHandle: typeof DialogPrimitive.createHandle;
5
+ type CommandPaletteGroup<ItemValue> = Record<string, unknown> & {
6
+ items: readonly ItemValue[];
7
+ };
8
+ declare function CommandPalette<Payload = unknown>({ modal, shortcut, shortcutTarget, handle, children, ...props }: DialogPrimitive.Root.Props<Payload> & {
9
+ shortcut?: false | string;
10
+ shortcutTarget?: Document | HTMLElement | null;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function CommandPaletteTrigger({ className, render, ...props }: DialogPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
13
+ declare function CommandPalettePortal(props: DialogPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
14
+ declare function CommandPaletteBackdrop({ className, ...props }: DialogPrimitive.Backdrop.Props): import("react/jsx-runtime").JSX.Element;
15
+ declare function CommandPaletteViewport({ className, ...props }: DialogPrimitive.Viewport.Props): import("react/jsx-runtime").JSX.Element;
16
+ declare function CommandPalettePopup({ className, ...props }: DialogPrimitive.Popup.Props): import("react/jsx-runtime").JSX.Element;
17
+ declare function CommandPaletteClose({ className, ...props }: DialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
18
+ declare function CommandPaletteContent<ItemValue = unknown>({ className, children, items, itemToStringValue, value, defaultValue, onValueChange, filter, filteredItems, limit, ...props }: DialogPrimitive.Popup.Props & {
19
+ items?: AutocompletePrimitive.Root.Props<ItemValue>['items'];
20
+ itemToStringValue?: AutocompletePrimitive.Root.Props<ItemValue>['itemToStringValue'];
21
+ value?: AutocompletePrimitive.Root.Props<ItemValue>['value'];
22
+ defaultValue?: AutocompletePrimitive.Root.Props<ItemValue>['defaultValue'];
23
+ onValueChange?: AutocompletePrimitive.Root.Props<ItemValue>['onValueChange'];
24
+ filter?: AutocompletePrimitive.Root.Props<ItemValue>['filter'];
25
+ filteredItems?: AutocompletePrimitive.Root.Props<ItemValue>['filteredItems'];
26
+ limit?: AutocompletePrimitive.Root.Props<ItemValue>['limit'];
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ declare function CommandPaletteInputWrap({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
29
+ declare function CommandPaletteInput({ className, ...props }: AutocompletePrimitive.Input.Props): import("react/jsx-runtime").JSX.Element;
30
+ declare function CommandPaletteClear({ className, children, ...props }: AutocompletePrimitive.Clear.Props): import("react/jsx-runtime").JSX.Element;
31
+ declare function CommandPaletteStatus({ className, ...props }: AutocompletePrimitive.Status.Props): import("react/jsx-runtime").JSX.Element;
32
+ declare function CommandPaletteEmpty({ className, ...props }: AutocompletePrimitive.Empty.Props): import("react/jsx-runtime").JSX.Element;
33
+ declare function CommandPaletteList({ className, ...props }: AutocompletePrimitive.List.Props): import("react/jsx-runtime").JSX.Element;
34
+ declare function CommandPaletteGroup({ className, ...props }: AutocompletePrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
35
+ declare function CommandPaletteGroupLabel({ className, ...props }: AutocompletePrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
36
+ declare function CommandPaletteCollection(props: AutocompletePrimitive.Collection.Props): import("react/jsx-runtime").JSX.Element;
37
+ declare function CommandPaletteItem({ className, closeOnSelect, onClick, ...props }: AutocompletePrimitive.Item.Props & {
38
+ closeOnSelect?: boolean;
39
+ }): import("react/jsx-runtime").JSX.Element;
40
+ declare function CommandPaletteItemIcon({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
41
+ declare function CommandPaletteItemText({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
42
+ declare function CommandPaletteItemLabel({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
43
+ declare function CommandPaletteItemDescription({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
44
+ declare function CommandPaletteItemMeta({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
45
+ declare function CommandPaletteSeparator({ className, ...props }: AutocompletePrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
46
+ declare function CommandPaletteFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
47
+ declare function CommandPaletteKbd({ className, ...props }: ComponentProps<'kbd'>): import("react/jsx-runtime").JSX.Element;
48
+ export { CommandPalette, createCommandPaletteHandle, CommandPaletteTrigger, CommandPalettePortal, CommandPaletteBackdrop, CommandPaletteViewport, CommandPalettePopup, CommandPaletteClose, CommandPaletteContent, CommandPaletteInputWrap, CommandPaletteInput, CommandPaletteClear, CommandPaletteStatus, CommandPaletteEmpty, CommandPaletteList, CommandPaletteGroup, CommandPaletteGroupLabel, CommandPaletteCollection, CommandPaletteItem, CommandPaletteItemIcon, CommandPaletteItemText, CommandPaletteItemLabel, CommandPaletteItemDescription, CommandPaletteItemMeta, CommandPaletteSeparator, CommandPaletteFooter, CommandPaletteKbd, };
@@ -0,0 +1 @@
1
+ export { CommandPalette, createCommandPaletteHandle, CommandPaletteTrigger, CommandPalettePortal, CommandPaletteBackdrop, CommandPaletteViewport, CommandPalettePopup, CommandPaletteClose, CommandPaletteContent, CommandPaletteInputWrap, CommandPaletteInput, CommandPaletteClear, CommandPaletteStatus, CommandPaletteEmpty, CommandPaletteList, CommandPaletteGroup, CommandPaletteGroupLabel, CommandPaletteCollection, CommandPaletteItem, CommandPaletteItemIcon, CommandPaletteItemText, CommandPaletteItemLabel, CommandPaletteItemDescription, CommandPaletteItemMeta, CommandPaletteSeparator, CommandPaletteFooter, CommandPaletteKbd, } from './CommandPalette';
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ type ContainerElement = 'article' | 'aside' | 'div' | 'footer' | 'header' | 'main' | 'nav' | 'section';
3
+ declare function Container({ as: Root, size, gutter, className, ...props }: ComponentPropsWithoutRef<'div'> & {
4
+ as?: ContainerElement;
5
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
6
+ gutter?: 'none' | 'sm' | 'md' | 'lg';
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export { Container };
@@ -0,0 +1 @@
1
+ export * from './Container';
@@ -1,30 +1,19 @@
1
+ import { ComponentProps } from 'react';
1
2
  import { ContextMenu as ContextMenuPrimitive } from '@base-ui/react/context-menu';
2
- import * as React from 'react';
3
- type ContextMenuContentClassNames = {
4
- portal?: ContextMenuPrimitive.Portal.Props['className'];
5
- backdrop?: ContextMenuPrimitive.Backdrop.Props['className'];
6
- positioner?: ContextMenuPrimitive.Positioner.Props['className'];
7
- };
8
- type ContextMenuContentProps = ContextMenuPrimitive.Popup.Props & Pick<ContextMenuPrimitive.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'arrowPadding' | 'anchor' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding' | 'sticky' | 'positionMethod' | 'disableAnchorTracking'> & {
9
- classNames?: ContextMenuContentClassNames;
10
- container?: ContextMenuPrimitive.Portal.Props['container'];
11
- withBackdrop?: boolean;
12
- portalProps?: Omit<ContextMenuPrimitive.Portal.Props, 'className' | 'children'>;
13
- backdropProps?: Omit<ContextMenuPrimitive.Backdrop.Props, 'className'>;
14
- positionerProps?: Omit<ContextMenuPrimitive.Positioner.Props, 'className' | 'children'>;
15
- };
16
- type IndicatorPosition = 'start' | 'end';
17
- type ContextMenuRadioItemProps = ContextMenuPrimitive.RadioItem.Props & {
18
- indicator?: IndicatorPosition;
19
- };
20
- type ContextMenuCheckboxItemProps = ContextMenuPrimitive.CheckboxItem.Props & {
21
- indicator?: IndicatorPosition;
3
+ type ContextMenuPositionerProps = Pick<ContextMenuPrimitive.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'arrowPadding' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding'>;
4
+ type ContextMenuContentProps = ContextMenuPrimitive.Popup.Props & ContextMenuPositionerProps & {
5
+ showArrow?: boolean;
22
6
  };
23
7
  declare const ContextMenu: typeof ContextMenuPrimitive.Root;
24
8
  declare const ContextMenuSubmenu: typeof ContextMenuPrimitive.SubmenuRoot;
9
+ type IndicatorPosition = 'start' | 'end';
25
10
  declare function ContextMenuTrigger({ className, render, ...props }: ContextMenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
11
+ declare function ContextMenuPortal(props: ContextMenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
12
+ declare function ContextMenuBackdrop({ className, ...props }: ContextMenuPrimitive.Backdrop.Props): import("react/jsx-runtime").JSX.Element;
13
+ declare function ContextMenuPositioner({ className, ...props }: ContextMenuPrimitive.Positioner.Props): import("react/jsx-runtime").JSX.Element;
14
+ declare function ContextMenuPopup({ className, ...props }: ContextMenuPrimitive.Popup.Props): import("react/jsx-runtime").JSX.Element;
26
15
  declare function ContextMenuArrow({ className, children, ...props }: ContextMenuPrimitive.Arrow.Props): import("react/jsx-runtime").JSX.Element;
27
- declare function ContextMenuContent({ className, classNames, container, withBackdrop, portalProps, backdropProps, positionerProps, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, disableAnchorTracking, ...props }: ContextMenuContentProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function ContextMenuContent({ className, showArrow, children, sideOffset, side, align, alignOffset, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, ...props }: ContextMenuContentProps): import("react/jsx-runtime").JSX.Element;
28
17
  declare function ContextMenuSubmenuContent({ sideOffset, alignOffset, ...props }: ContextMenuContentProps): import("react/jsx-runtime").JSX.Element;
29
18
  declare function ContextMenuItem({ className, ...props }: ContextMenuPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
30
19
  declare function ContextMenuLinkItem({ className, ...props }: ContextMenuPrimitive.LinkItem.Props): import("react/jsx-runtime").JSX.Element;
@@ -32,35 +21,19 @@ declare function ContextMenuSeparator({ className, ...props }: ContextMenuPrimit
32
21
  declare function ContextMenuGroup({ className, ...props }: ContextMenuPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
33
22
  declare function ContextMenuGroupLabel({ className, ...props }: ContextMenuPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
34
23
  declare function ContextMenuSubmenuTrigger({ className, ...props }: ContextMenuPrimitive.SubmenuTrigger.Props): import("react/jsx-runtime").JSX.Element;
35
- declare function ContextMenuSubmenuTriggerIcon({ className, children, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
24
+ declare function ContextMenuSubmenuTriggerIcon({ className, children, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
36
25
  declare function ContextMenuRadioGroup({ className, ...props }: ContextMenuPrimitive.RadioGroup.Props): import("react/jsx-runtime").JSX.Element;
37
- declare function ContextMenuRadioItem({ className, indicator, ...props }: ContextMenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
26
+ declare function ContextMenuRadioItem({ className, indicator, ...props }: ContextMenuPrimitive.RadioItem.Props & {
27
+ indicator?: IndicatorPosition;
28
+ }): import("react/jsx-runtime").JSX.Element;
38
29
  declare function ContextMenuRadioItemIndicator({ className, children, ...props }: ContextMenuPrimitive.RadioItemIndicator.Props): import("react/jsx-runtime").JSX.Element;
39
- declare function ContextMenuCheckboxItem({ className, indicator, ...props }: ContextMenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
30
+ declare function ContextMenuCheckboxItem({ className, indicator, ...props }: ContextMenuPrimitive.CheckboxItem.Props & {
31
+ indicator?: IndicatorPosition;
32
+ }): import("react/jsx-runtime").JSX.Element;
40
33
  declare function ContextMenuCheckboxItemIndicator({ className, children, ...props }: ContextMenuPrimitive.CheckboxItemIndicator.Props): import("react/jsx-runtime").JSX.Element;
41
- declare function ContextMenuItemText({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
42
- declare function ContextMenuItemTextContent({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
43
- declare function ContextMenuItemTextIcon({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
44
- declare function ContextMenuItemTextLabel({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
45
- declare function ContextMenuItemShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
46
- type ContextMenuProps = ContextMenuPrimitive.Root.Props;
47
- type ContextMenuSubmenuProps = ContextMenuPrimitive.SubmenuRoot.Props;
48
- type ContextMenuTriggerProps = ContextMenuPrimitive.Trigger.Props;
49
- type ContextMenuArrowProps = ContextMenuPrimitive.Arrow.Props;
50
- type ContextMenuItemProps = ContextMenuPrimitive.Item.Props;
51
- type ContextMenuLinkItemProps = ContextMenuPrimitive.LinkItem.Props;
52
- type ContextMenuSeparatorProps = ContextMenuPrimitive.Separator.Props;
53
- type ContextMenuGroupProps = ContextMenuPrimitive.Group.Props;
54
- type ContextMenuGroupLabelProps = ContextMenuPrimitive.GroupLabel.Props;
55
- type ContextMenuSubmenuTriggerProps = ContextMenuPrimitive.SubmenuTrigger.Props;
56
- type ContextMenuSubmenuTriggerIconProps = React.ComponentProps<'span'>;
57
- type ContextMenuRadioGroupProps = ContextMenuPrimitive.RadioGroup.Props;
58
- type ContextMenuRadioItemIndicatorProps = ContextMenuPrimitive.RadioItemIndicator.Props;
59
- type ContextMenuCheckboxItemIndicatorProps = ContextMenuPrimitive.CheckboxItemIndicator.Props;
60
- type ContextMenuItemTextProps = React.ComponentProps<'span'>;
61
- type ContextMenuItemTextContentProps = React.ComponentProps<'span'>;
62
- type ContextMenuItemTextIconProps = React.ComponentProps<'span'>;
63
- type ContextMenuItemTextLabelProps = React.ComponentProps<'span'>;
64
- type ContextMenuItemShortcutProps = React.ComponentProps<'span'>;
65
- export { ContextMenu, ContextMenuSubmenu, ContextMenuTrigger, ContextMenuArrow, ContextMenuContent, ContextMenuSubmenuContent, ContextMenuItem, ContextMenuLinkItem, ContextMenuSeparator, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuSubmenuTrigger, ContextMenuSubmenuTriggerIcon, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuRadioItemIndicator, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, ContextMenuItemText, ContextMenuItemTextContent, ContextMenuItemTextIcon, ContextMenuItemTextLabel, ContextMenuItemShortcut, };
66
- export type { ContextMenuProps, ContextMenuSubmenuProps, ContextMenuTriggerProps, ContextMenuArrowProps, ContextMenuContentClassNames, ContextMenuContentProps, ContextMenuItemProps, ContextMenuLinkItemProps, ContextMenuSeparatorProps, ContextMenuGroupProps, ContextMenuGroupLabelProps, ContextMenuSubmenuTriggerProps, ContextMenuSubmenuTriggerIconProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuRadioItemIndicatorProps, ContextMenuCheckboxItemProps, ContextMenuCheckboxItemIndicatorProps, ContextMenuItemTextProps, ContextMenuItemTextContentProps, ContextMenuItemTextIconProps, ContextMenuItemTextLabelProps, ContextMenuItemShortcutProps, };
34
+ declare function ContextMenuItemText({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
35
+ declare function ContextMenuItemTextContent({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
36
+ declare function ContextMenuItemTextIcon({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
37
+ declare function ContextMenuItemTextLabel({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
38
+ declare function ContextMenuItemShortcut({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
39
+ export { ContextMenu, ContextMenuSubmenu, ContextMenuTrigger, ContextMenuPortal, ContextMenuBackdrop, ContextMenuPositioner, ContextMenuPopup, ContextMenuArrow, ContextMenuContent, ContextMenuSubmenuContent, ContextMenuItem, ContextMenuLinkItem, ContextMenuSeparator, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuSubmenuTrigger, ContextMenuSubmenuTriggerIcon, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuRadioItemIndicator, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, ContextMenuItemText, ContextMenuItemTextContent, ContextMenuItemTextIcon, ContextMenuItemTextLabel, ContextMenuItemShortcut, };
@@ -1,2 +1 @@
1
- export { ContextMenu, ContextMenuSubmenu, ContextMenuTrigger, ContextMenuArrow, ContextMenuContent, ContextMenuSubmenuContent, ContextMenuItem, ContextMenuLinkItem, ContextMenuSeparator, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuSubmenuTrigger, ContextMenuSubmenuTriggerIcon, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuRadioItemIndicator, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, ContextMenuItemText, ContextMenuItemTextContent, ContextMenuItemTextIcon, ContextMenuItemTextLabel, ContextMenuItemShortcut, } from './ContextMenu';
2
- export type { ContextMenuProps, ContextMenuSubmenuProps, ContextMenuTriggerProps, ContextMenuArrowProps, ContextMenuContentClassNames, ContextMenuContentProps, ContextMenuItemProps, ContextMenuLinkItemProps, ContextMenuSeparatorProps, ContextMenuGroupProps, ContextMenuGroupLabelProps, ContextMenuSubmenuTriggerProps, ContextMenuSubmenuTriggerIconProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuRadioItemIndicatorProps, ContextMenuCheckboxItemProps, ContextMenuCheckboxItemIndicatorProps, ContextMenuItemTextProps, ContextMenuItemTextContentProps, ContextMenuItemTextIconProps, ContextMenuItemTextLabelProps, ContextMenuItemShortcutProps, } from './ContextMenu';
1
+ export { ContextMenu, ContextMenuSubmenu, ContextMenuTrigger, ContextMenuPortal, ContextMenuBackdrop, ContextMenuPositioner, ContextMenuPopup, ContextMenuArrow, ContextMenuContent, ContextMenuSubmenuContent, ContextMenuItem, ContextMenuLinkItem, ContextMenuSeparator, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuSubmenuTrigger, ContextMenuSubmenuTriggerIcon, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuRadioItemIndicator, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, ContextMenuItemText, ContextMenuItemTextContent, ContextMenuItemTextIcon, ContextMenuItemTextLabel, ContextMenuItemShortcut, } from './ContextMenu';
@@ -1,42 +1,18 @@
1
1
  import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
2
- import * as React from 'react';
3
- type DialogContentClassNames = {
4
- portal?: DialogPrimitive.Portal.Props['className'];
5
- backdrop?: DialogPrimitive.Backdrop.Props['className'];
6
- viewport?: DialogPrimitive.Viewport.Props['className'];
7
- };
8
- type DialogContentSlotProps = {
9
- portal?: Omit<DialogPrimitive.Portal.Props, 'className' | 'children'>;
10
- backdrop?: Omit<DialogPrimitive.Backdrop.Props, 'className'>;
11
- viewport?: Omit<DialogPrimitive.Viewport.Props, 'className'>;
12
- };
13
- type DialogContentProps = Omit<DialogPrimitive.Popup.Props, 'className'> & {
14
- className?: DialogPrimitive.Popup.Props['className'];
15
- classNames?: DialogContentClassNames;
16
- slotProps?: DialogContentSlotProps;
17
- container?: DialogPrimitive.Portal.Props['container'];
18
- withBackdrop?: boolean;
19
- };
20
- declare const Dialog: typeof DialogPrimitive.Root;
2
+ import { ComponentProps } from 'react';
21
3
  declare const createDialogHandle: typeof DialogPrimitive.createHandle;
4
+ declare function Dialog<Payload = unknown>({ modal, ...props }: DialogPrimitive.Root.Props<Payload>): import("react/jsx-runtime").JSX.Element;
22
5
  declare function DialogTrigger({ className, render, ...props }: DialogPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
6
+ declare function DialogPortal({ className, ...props }: DialogPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
7
+ declare function DialogBackdrop({ className, ...props }: DialogPrimitive.Backdrop.Props): import("react/jsx-runtime").JSX.Element;
8
+ declare function DialogViewport({ className, ...props }: DialogPrimitive.Viewport.Props): import("react/jsx-runtime").JSX.Element;
9
+ declare function DialogPopup({ className, ...props }: DialogPrimitive.Popup.Props): import("react/jsx-runtime").JSX.Element;
23
10
  declare function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props): import("react/jsx-runtime").JSX.Element;
24
11
  declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
25
12
  declare function DialogClose({ className, ...props }: DialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
26
- declare function DialogCloseIcon({ className, children, ...props }: DialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
27
- declare function DialogContent({ className, classNames, slotProps, container, withBackdrop, children, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
28
- declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
29
- declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
30
- declare function DialogBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
31
- type DialogProps<Payload = unknown> = DialogPrimitive.Root.Props<Payload>;
32
- type DialogHandle<Payload = unknown> = DialogPrimitive.Handle<Payload>;
33
- type DialogTriggerProps = DialogPrimitive.Trigger.Props;
34
- type DialogTitleProps = DialogPrimitive.Title.Props;
35
- type DialogDescriptionProps = DialogPrimitive.Description.Props;
36
- type DialogCloseProps = DialogPrimitive.Close.Props;
37
- type DialogCloseIconProps = DialogPrimitive.Close.Props;
38
- type DialogHeaderProps = React.ComponentProps<'div'>;
39
- type DialogBodyProps = React.ComponentProps<'div'>;
40
- type DialogFooterProps = React.ComponentProps<'div'>;
41
- export { Dialog, createDialogHandle, DialogTrigger, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, };
42
- export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogContentSlotProps, DialogHeaderProps, DialogBodyProps, DialogFooterProps, };
13
+ declare function DialogCloseIcon({ className, children, 'aria-label': ariaLabel, render, ...props }: DialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
14
+ declare function DialogContent({ className, children, ...props }: DialogPrimitive.Popup.Props): import("react/jsx-runtime").JSX.Element;
15
+ declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
16
+ declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
17
+ declare function DialogBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
18
+ export { Dialog, createDialogHandle, DialogTrigger, DialogPortal, DialogBackdrop, DialogViewport, DialogPopup, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, };
@@ -1,2 +1 @@
1
- export { Dialog, createDialogHandle, DialogTrigger, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, } from './Dialog';
2
- export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogContentSlotProps, DialogHeaderProps, DialogBodyProps, DialogFooterProps, } from './Dialog';
1
+ export { Dialog, createDialogHandle, DialogTrigger, DialogPortal, DialogBackdrop, DialogViewport, DialogPopup, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, } from './Dialog';
@@ -1,61 +1,26 @@
1
1
  import { Drawer as DrawerPrimitive } from '@base-ui/react/drawer';
2
- import * as React from 'react';
3
- type DrawerContentClassNames = {
4
- portal?: DrawerPrimitive.Portal.Props['className'];
5
- backdrop?: DrawerPrimitive.Backdrop.Props['className'];
6
- viewport?: DrawerPrimitive.Viewport.Props['className'];
7
- content?: DrawerPrimitive.Content.Props['className'];
8
- handle?: React.ComponentProps<'div'>['className'];
9
- };
10
- type DrawerContentSlotProps = {
11
- portal?: Omit<DrawerPrimitive.Portal.Props, 'className' | 'children'>;
12
- backdrop?: Omit<DrawerPrimitive.Backdrop.Props, 'className'>;
13
- viewport?: Omit<DrawerPrimitive.Viewport.Props, 'className' | 'children'>;
14
- content?: Omit<DrawerPrimitive.Content.Props, 'className' | 'children'>;
15
- handle?: Omit<React.ComponentProps<'div'>, 'className'>;
16
- };
17
- type DrawerContentProps = Omit<DrawerPrimitive.Popup.Props, 'className'> & {
18
- className?: DrawerPrimitive.Popup.Props['className'];
19
- classNames?: DrawerContentClassNames;
20
- slotProps?: DrawerContentSlotProps;
21
- container?: DrawerPrimitive.Portal.Props['container'];
22
- withBackdrop?: boolean;
23
- withHandle?: boolean;
24
- snapLayout?: boolean;
25
- variant?: 'bleed' | 'island';
26
- disableInitialAnimation?: boolean;
27
- };
28
- type DrawerProps<Payload = unknown> = DrawerPrimitive.Root.Props<Payload> & {
29
- persistent?: boolean;
30
- };
31
- declare function Drawer<Payload = unknown>({ persistent, onOpenChange, onSnapPointChange, ...props }: DrawerProps<Payload>): import("react/jsx-runtime").JSX.Element;
2
+ import { ComponentProps } from 'react';
3
+ declare function Drawer<Payload = unknown>({ modal, ...props }: DrawerPrimitive.Root.Props<Payload>): import("react/jsx-runtime").JSX.Element;
32
4
  declare const DrawerProvider: typeof DrawerPrimitive.Provider;
33
5
  declare const createDrawerHandle: typeof DrawerPrimitive.createHandle;
34
6
  declare function DrawerIndent({ className, ...props }: DrawerPrimitive.Indent.Props): import("react/jsx-runtime").JSX.Element;
35
7
  declare function DrawerIndentBackground({ className, ...props }: DrawerPrimitive.IndentBackground.Props): import("react/jsx-runtime").JSX.Element;
36
8
  declare function DrawerTrigger({ className, render, ...props }: DrawerPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
37
9
  declare function DrawerSwipeArea({ className, ...props }: DrawerPrimitive.SwipeArea.Props): import("react/jsx-runtime").JSX.Element;
10
+ declare function DrawerPortal({ className, ...props }: DrawerPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
11
+ declare function DrawerBackdrop({ className, ...props }: DrawerPrimitive.Backdrop.Props): import("react/jsx-runtime").JSX.Element;
12
+ declare function DrawerViewport({ className, ...props }: DrawerPrimitive.Viewport.Props): import("react/jsx-runtime").JSX.Element;
13
+ declare function DrawerPopup({ className, ...props }: DrawerPrimitive.Popup.Props): import("react/jsx-runtime").JSX.Element;
14
+ declare function DrawerHandle({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
15
+ declare function DrawerContentInner({ className, ...props }: DrawerPrimitive.Content.Props): import("react/jsx-runtime").JSX.Element;
38
16
  declare function DrawerTitle({ className, ...props }: DrawerPrimitive.Title.Props): import("react/jsx-runtime").JSX.Element;
39
17
  declare function DrawerDescription({ className, ...props }: DrawerPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
40
18
  declare function DrawerClose({ className, ...props }: DrawerPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
41
- type DrawerSnapToggleProps = React.ComponentProps<'button'> & {
42
- expanded: boolean;
43
- };
44
- declare function DrawerSnapToggle({ expanded, className, children, type, ...props }: DrawerSnapToggleProps): import("react/jsx-runtime").JSX.Element;
45
- declare function DrawerHandle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
46
- declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
47
- declare function DrawerBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
48
- declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
49
- declare function DrawerContent({ withBackdrop, withHandle, snapLayout, variant, disableInitialAnimation, className, classNames, slotProps, container, children, ...props }: DrawerContentProps): import("react/jsx-runtime").JSX.Element;
50
- type DrawerHandle<Payload = unknown> = DrawerPrimitive.Handle<Payload>;
51
- type DrawerTriggerProps = DrawerPrimitive.Trigger.Props;
52
- type DrawerSwipeAreaProps = DrawerPrimitive.SwipeArea.Props;
53
- type DrawerTitleProps = DrawerPrimitive.Title.Props;
54
- type DrawerDescriptionProps = DrawerPrimitive.Description.Props;
55
- type DrawerCloseProps = DrawerPrimitive.Close.Props;
56
- type DrawerHeaderProps = React.ComponentProps<'div'>;
57
- type DrawerBodyProps = React.ComponentProps<'div'>;
58
- type DrawerFooterProps = React.ComponentProps<'div'>;
59
- type DrawerSnapPoint = NonNullable<DrawerProps['snapPoints']>[number];
60
- export { Drawer, DrawerProvider, createDrawerHandle, DrawerIndent, DrawerIndentBackground, DrawerTrigger, DrawerSwipeArea, DrawerTitle, DrawerDescription, DrawerClose, DrawerSnapToggle, DrawerHeader, DrawerBody, DrawerFooter, DrawerContent, };
61
- export type { DrawerProps, DrawerHandle, DrawerTriggerProps, DrawerSwipeAreaProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerBodyProps, DrawerFooterProps, DrawerContentProps, DrawerContentClassNames, DrawerContentSlotProps, DrawerSnapToggleProps, DrawerSnapPoint, };
19
+ declare function DrawerHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
20
+ declare function DrawerBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
21
+ declare function DrawerFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
22
+ declare function DrawerContent({ snapLayout, disableInitialAnimation, className, children, ...props }: DrawerPrimitive.Popup.Props & {
23
+ snapLayout?: boolean;
24
+ disableInitialAnimation?: boolean;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ export { Drawer, DrawerProvider, createDrawerHandle, DrawerIndent, DrawerIndentBackground, DrawerTrigger, DrawerSwipeArea, DrawerPortal, DrawerBackdrop, DrawerViewport, DrawerPopup, DrawerHandle, DrawerContentInner, DrawerTitle, DrawerDescription, DrawerClose, DrawerHeader, DrawerBody, DrawerFooter, DrawerContent, };
@@ -1,2 +1 @@
1
- export { Drawer, DrawerProvider, createDrawerHandle, DrawerIndent, DrawerIndentBackground, DrawerTrigger, DrawerSwipeArea, DrawerTitle, DrawerDescription, DrawerClose, DrawerSnapToggle, DrawerHeader, DrawerBody, DrawerFooter, DrawerContent, } from './Drawer';
2
- export type { DrawerProps, DrawerHandle, DrawerTriggerProps, DrawerSwipeAreaProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerBodyProps, DrawerFooterProps, DrawerContentProps, DrawerContentClassNames, DrawerContentSlotProps, DrawerSnapToggleProps, DrawerSnapPoint, } from './Drawer';
1
+ export { Drawer, DrawerProvider, createDrawerHandle, DrawerIndent, DrawerIndentBackground, DrawerTrigger, DrawerSwipeArea, DrawerPortal, DrawerBackdrop, DrawerViewport, DrawerPopup, DrawerHandle, DrawerContentInner, DrawerTitle, DrawerDescription, DrawerClose, DrawerHeader, DrawerBody, DrawerFooter, DrawerContent, } from './Drawer';
@@ -6,22 +6,4 @@ declare function FieldControl({ className, ...props }: FieldPrimitive.Control.Pr
6
6
  declare function FieldDescription({ className, ...props }: FieldPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
7
7
  declare function FieldError({ className, ...props }: FieldPrimitive.Error.Props): import("react/jsx-runtime").JSX.Element;
8
8
  declare const FieldValidity: import('react').FC<import('@base-ui/react').FieldValidityProps>;
9
- type FieldProps = FieldPrimitive.Root.Props;
10
- type FieldState = FieldPrimitive.Root.State;
11
- type FieldActions = FieldPrimitive.Root.Actions;
12
- type FieldItemProps = FieldPrimitive.Item.Props;
13
- type FieldItemState = FieldPrimitive.Item.State;
14
- type FieldLabelProps = FieldPrimitive.Label.Props;
15
- type FieldLabelState = FieldPrimitive.Label.State;
16
- type FieldControlProps = FieldPrimitive.Control.Props;
17
- type FieldControlState = FieldPrimitive.Control.State;
18
- type FieldControlChangeEventReason = FieldPrimitive.Control.ChangeEventReason;
19
- type FieldControlChangeEventDetails = FieldPrimitive.Control.ChangeEventDetails;
20
- type FieldDescriptionProps = FieldPrimitive.Description.Props;
21
- type FieldDescriptionState = FieldPrimitive.Description.State;
22
- type FieldErrorProps = FieldPrimitive.Error.Props;
23
- type FieldErrorState = FieldPrimitive.Error.State;
24
- type FieldValidityProps = FieldPrimitive.Validity.Props;
25
- type FieldValidityState = FieldPrimitive.Validity.State;
26
9
  export { Field, FieldItem, FieldLabel, FieldControl, FieldDescription, FieldError, FieldValidity };
27
- export type { FieldProps, FieldState, FieldActions, FieldItemProps, FieldItemState, FieldLabelProps, FieldLabelState, FieldControlProps, FieldControlState, FieldControlChangeEventReason, FieldControlChangeEventDetails, FieldDescriptionProps, FieldDescriptionState, FieldErrorProps, FieldErrorState, FieldValidityProps, FieldValidityState, };
@@ -1,2 +1 @@
1
1
  export { Field, FieldItem, FieldLabel, FieldControl, FieldDescription, FieldError, FieldValidity, } from './Field';
2
- export type { FieldProps, FieldState, FieldActions, FieldItemProps, FieldItemState, FieldLabelProps, FieldLabelState, FieldControlProps, FieldControlState, FieldControlChangeEventReason, FieldControlChangeEventDetails, FieldDescriptionProps, FieldDescriptionState, FieldErrorProps, FieldErrorState, FieldValidityProps, FieldValidityState, } from './Field';
@@ -1,9 +1,4 @@
1
1
  import { Fieldset as FieldsetPrimitive } from '@base-ui/react/fieldset';
2
- declare function Fieldset({ className, disabled, render, ...props }: FieldsetPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
2
+ declare function Fieldset({ className, ...props }: FieldsetPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
3
3
  declare function FieldsetLegend({ className, ...props }: FieldsetPrimitive.Legend.Props): import("react/jsx-runtime").JSX.Element;
4
- type FieldsetProps = FieldsetPrimitive.Root.Props;
5
- type FieldsetState = FieldsetPrimitive.Root.State;
6
- type FieldsetLegendProps = FieldsetPrimitive.Legend.Props;
7
- type FieldsetLegendState = FieldsetPrimitive.Legend.State;
8
4
  export { Fieldset, FieldsetLegend };
9
- export type { FieldsetProps, FieldsetState, FieldsetLegendProps, FieldsetLegendState };
@@ -1,2 +1 @@
1
1
  export { Fieldset, FieldsetLegend } from './Fieldset';
2
- export type { FieldsetProps, FieldsetState, FieldsetLegendProps, FieldsetLegendState, } from './Fieldset';
@@ -1,12 +1,3 @@
1
1
  import { Form as FormPrimitive } from '@base-ui/react/form';
2
- declare function Form<FormValues extends Record<string, any> = Record<string, any>>({ className, ...props }: FormProps<FormValues>): import("react/jsx-runtime").JSX.Element;
3
- type FormProps<FormValues extends Record<string, any> = Record<string, any>> = FormPrimitive.Props<FormValues>;
4
- type FormState = FormPrimitive.State;
5
- type FormActions = FormPrimitive.Actions;
6
- type FormValidationMode = FormPrimitive.ValidationMode;
7
- type FormSubmitEventReason = FormPrimitive.SubmitEventReason;
8
- type FormSubmitEventDetails = FormPrimitive.SubmitEventDetails;
9
- type FormValues<FormValues extends Record<string, any> = Record<string, any>> = FormPrimitive.Values<FormValues>;
10
- type FormErrors = NonNullable<FormProps['errors']>;
2
+ declare function Form({ className, ...props }: FormPrimitive.Props): import("react/jsx-runtime").JSX.Element;
11
3
  export { Form };
12
- export type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails, FormValues, FormErrors, };
@@ -1,2 +1 @@
1
1
  export { Form } from './Form';
2
- export type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails, FormValues, FormErrors, } from './Form';
@@ -1,13 +1,17 @@
1
- import * as React from 'react';
2
- type HeadingAs = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
- type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
4
- type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';
5
- type HeadingAlign = 'left' | 'center' | 'right';
6
- type HeadingProps = React.ComponentPropsWithoutRef<HeadingAs> & {
7
- as?: HeadingAs;
8
- size?: HeadingSize;
9
- weight?: HeadingWeight;
10
- align?: HeadingAlign;
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ declare const defaultSizeByElement: {
3
+ readonly h1: "2xl";
4
+ readonly h2: "xl";
5
+ readonly h3: "lg";
6
+ readonly h4: "md";
7
+ readonly h5: "sm";
8
+ readonly h6: "xs";
11
9
  };
12
- export declare function Heading({ as, size, weight, align, className, children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
13
- export { type HeadingProps, type HeadingAs, type HeadingSize, type HeadingWeight, type HeadingAlign, };
10
+ type HeadingLevel = keyof typeof defaultSizeByElement;
11
+ type HeadingSize = (typeof defaultSizeByElement)[HeadingLevel];
12
+ declare function Heading({ as, size, weight, className, ...props }: ComponentPropsWithoutRef<'h1'> & {
13
+ as?: HeadingLevel;
14
+ size?: HeadingSize;
15
+ weight?: 'regular' | 'medium' | 'semibold' | 'bold';
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export { Heading };