burne-ui 0.0.2 → 1.1.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 (153) hide show
  1. package/README.md +46 -3
  2. package/dist/components/composite/Accordion/Accordion.d.ts +77 -14
  3. package/dist/components/composite/Accordion/index.d.ts +1 -1
  4. package/dist/components/composite/AlertDialog/AlertDialog.d.ts +4 -7
  5. package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -21
  6. package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +42 -33
  7. package/dist/components/composite/CheckboxGroup/checkboxGroupContext.d.ts +16 -0
  8. package/dist/components/composite/CheckboxGroup/index.d.ts +2 -1
  9. package/dist/components/composite/RadioGroup/RadioGroup.d.ts +55 -0
  10. package/dist/components/composite/RadioGroup/index.d.ts +2 -0
  11. package/dist/components/composite/RadioGroup/radioGroupContext.d.ts +13 -0
  12. package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +33 -0
  13. package/dist/components/composite/ToggleButtonGroup/index.d.ts +2 -0
  14. package/dist/components/composite/utils/optionGroupFieldset.d.ts +44 -0
  15. package/dist/components/core/Alert/Alert.d.ts +49 -11
  16. package/dist/components/core/Alert/alertContext.d.ts +10 -0
  17. package/dist/components/core/Alert/alertUtils.d.ts +12 -0
  18. package/dist/components/core/Alert/index.d.ts +2 -1
  19. package/dist/components/core/Avatar/Avatar.d.ts +16 -4
  20. package/dist/components/core/Badge/Badge.d.ts +15 -3
  21. package/dist/components/core/Badge/index.d.ts +1 -1
  22. package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +34 -15
  23. package/dist/components/core/Breadcrumbs/index.d.ts +1 -1
  24. package/dist/components/core/Button/Button.d.ts +2 -1
  25. package/dist/components/core/Calendar/Calendar.d.ts +79 -0
  26. package/dist/components/core/Calendar/CalendarInteractiveCell.d.ts +23 -0
  27. package/dist/components/core/Calendar/index.d.ts +1 -0
  28. package/dist/components/core/Checkbox/Checkbox.d.ts +55 -20
  29. package/dist/components/core/Checkbox/checkboxFieldContext.d.ts +41 -0
  30. package/dist/components/core/Checkbox/index.d.ts +24 -1
  31. package/dist/components/core/ColorPicker/ColorPicker.d.ts +51 -0
  32. package/dist/components/core/ColorPicker/ColorSlider.d.ts +73 -0
  33. package/dist/components/core/ColorPicker/ColorSwatch.d.ts +23 -0
  34. package/dist/components/core/ColorPicker/colorUtils.d.ts +27 -0
  35. package/dist/components/core/ColorPicker/index.d.ts +4 -0
  36. package/dist/components/core/ComboBox/ComboBox.d.ts +23 -0
  37. package/dist/components/core/ComboBox/ComboBoxField.d.ts +44 -0
  38. package/dist/components/core/ComboBox/comboBoxContext.d.ts +47 -0
  39. package/dist/components/core/ComboBox/index.d.ts +14 -0
  40. package/dist/components/core/Disclosure/Disclosure.d.ts +61 -0
  41. package/dist/components/core/Disclosure/index.d.ts +1 -0
  42. package/dist/components/core/Drawer/Drawer.d.ts +50 -0
  43. package/dist/components/core/Drawer/drawerTypes.d.ts +1 -0
  44. package/dist/components/core/Drawer/index.d.ts +1 -0
  45. package/dist/components/core/Drawer/useDrawerHandleDrag.d.ts +8 -0
  46. package/dist/components/core/Dropdown/Dropdown.d.ts +82 -31
  47. package/dist/components/core/Dropdown/index.d.ts +1 -1
  48. package/dist/components/core/Expandable/Expandable.d.ts +53 -4
  49. package/dist/components/core/Expandable/index.d.ts +1 -1
  50. package/dist/components/core/Field/Field.d.ts +21 -0
  51. package/dist/components/core/Field/FieldSet.d.ts +57 -0
  52. package/dist/components/core/Field/fieldA11y.d.ts +4 -0
  53. package/dist/components/core/Field/index.d.ts +39 -0
  54. package/dist/components/core/Input/Input.d.ts +8 -17
  55. package/dist/components/core/Input/InputField.d.ts +29 -0
  56. package/dist/components/core/Input/index.d.ts +19 -1
  57. package/dist/components/core/Input/inputFieldContext.d.ts +16 -0
  58. package/dist/components/core/Label/Label.d.ts +15 -0
  59. package/dist/components/core/Label/fieldLabelContext.d.ts +11 -0
  60. package/dist/components/core/Label/index.d.ts +2 -0
  61. package/dist/components/core/Link/Link.d.ts +40 -0
  62. package/dist/components/core/Link/index.d.ts +1 -0
  63. package/dist/components/core/LiquidGlass/LiquidGlass.d.ts +28 -0
  64. package/dist/components/core/LiquidGlass/index.d.ts +2 -0
  65. package/dist/components/core/LiquidGlass/liquidGlassShader.d.ts +2 -0
  66. package/dist/components/core/LiquidGlass/useLiquidGlass.d.ts +49 -0
  67. package/dist/components/core/ListBox/ListBox.d.ts +112 -0
  68. package/dist/components/core/ListBox/index.d.ts +1 -0
  69. package/dist/components/core/Loading/Loading.d.ts +23 -0
  70. package/dist/components/core/Loading/index.d.ts +1 -0
  71. package/dist/components/core/Meter/Meter.d.ts +37 -0
  72. package/dist/components/core/Meter/MeterField.d.ts +35 -0
  73. package/dist/components/core/Meter/index.d.ts +22 -0
  74. package/dist/components/core/Meter/meterFieldContext.d.ts +21 -0
  75. package/dist/components/core/Pagination/Pagination.d.ts +64 -0
  76. package/dist/components/core/Pagination/index.d.ts +1 -0
  77. package/dist/components/core/Popover/Popover.d.ts +92 -0
  78. package/dist/components/core/Popover/index.d.ts +2 -0
  79. package/dist/components/core/ProgressBar/ProgressBar.d.ts +41 -0
  80. package/dist/components/core/ProgressBar/ProgressBarField.d.ts +41 -0
  81. package/dist/components/core/ProgressBar/index.d.ts +23 -0
  82. package/dist/components/core/ProgressBar/progressBarFieldContext.d.ts +22 -0
  83. package/dist/components/core/Radio/Radio.d.ts +54 -0
  84. package/dist/components/core/Radio/index.d.ts +20 -0
  85. package/dist/components/core/Radio/radioFieldContext.d.ts +36 -0
  86. package/dist/components/core/SearchInput/SearchInput.d.ts +16 -7
  87. package/dist/components/core/SelectionIndicator/SelectionIndicator.d.ts +15 -0
  88. package/dist/components/core/SelectionIndicator/index.d.ts +3 -0
  89. package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +14 -0
  90. package/dist/components/core/SelectionIndicator/useSelectionIndicatorAnimation.d.ts +2 -0
  91. package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +27 -0
  92. package/dist/components/core/SelectionThumb/index.d.ts +1 -0
  93. package/dist/components/core/Skeleton/Skeleton.d.ts +51 -0
  94. package/dist/components/core/Skeleton/index.d.ts +1 -0
  95. package/dist/components/core/Slider/Slider.d.ts +46 -0
  96. package/dist/components/core/Slider/SliderField.d.ts +46 -0
  97. package/dist/components/core/Slider/index.d.ts +17 -0
  98. package/dist/components/core/Slider/sliderCompound.d.ts +49 -0
  99. package/dist/components/core/Slider/sliderFieldContext.d.ts +25 -0
  100. package/dist/components/core/Surface/Surface.d.ts +29 -0
  101. package/dist/components/core/Surface/index.d.ts +1 -0
  102. package/dist/components/core/Switch/Switch.d.ts +40 -0
  103. package/dist/components/core/Switch/SwitchField.d.ts +45 -0
  104. package/dist/components/core/Switch/index.d.ts +33 -0
  105. package/dist/components/core/Switch/switchFieldContext.d.ts +23 -0
  106. package/dist/components/core/Switch/switchGeometry.d.ts +12 -0
  107. package/dist/components/core/Switch/switchTrack.d.ts +57 -0
  108. package/dist/components/core/Table/Table.d.ts +85 -0
  109. package/dist/components/core/Table/index.d.ts +1 -0
  110. package/dist/components/core/Tabs/Tabs.d.ts +82 -0
  111. package/dist/components/core/Tabs/index.d.ts +1 -0
  112. package/dist/components/core/Tabs/tabsContext.d.ts +19 -0
  113. package/dist/components/core/Tabs/useSlidingTabIndicator.d.ts +3 -0
  114. package/dist/components/core/TextArea/TextArea.d.ts +30 -0
  115. package/dist/components/core/TextArea/TextAreaField.d.ts +29 -0
  116. package/dist/components/core/TextArea/index.d.ts +18 -0
  117. package/dist/components/core/TextArea/textareaFieldContext.d.ts +16 -0
  118. package/dist/components/core/TextArea/useTextAreaResize.d.ts +5 -0
  119. package/dist/components/core/TimeField/TimeField.d.ts +97 -0
  120. package/dist/components/core/TimeField/index.d.ts +1 -0
  121. package/dist/components/core/Toast/Toast.d.ts +101 -0
  122. package/dist/components/core/Toast/index.d.ts +2 -0
  123. package/dist/components/core/Toast/useToast.d.ts +18 -0
  124. package/dist/components/core/ToggleButton/ToggleButton.d.ts +47 -0
  125. package/dist/components/core/ToggleButton/index.d.ts +2 -0
  126. package/dist/components/core/ToggleButton/toggleButtonGroupContext.d.ts +17 -0
  127. package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +3 -0
  128. package/dist/components/core/Tooltip/Tooltip.d.ts +25 -20
  129. package/dist/components/core/Tooltip/index.d.ts +1 -1
  130. package/dist/components/core/Tooltip/tooltipPosition.d.ts +16 -0
  131. package/dist/components/core/utils/buttonGroupContext.d.ts +9 -0
  132. package/dist/components/core/utils/componentSize.d.ts +3 -0
  133. package/dist/components/core/utils/controlSizeLayout.d.ts +26 -0
  134. package/dist/components/core/utils/dualApiStoryChrome.d.ts +17 -0
  135. package/dist/components/core/utils/hasCompoundChild.d.ts +3 -0
  136. package/dist/components/core/utils/hasCompoundChildren.d.ts +3 -0
  137. package/dist/components/core/utils/hoverInteractiveLift.d.ts +16 -3
  138. package/dist/components/core/utils/motionTokens.d.ts +4 -0
  139. package/dist/components/core/utils/optionControlGridLayout.d.ts +15 -0
  140. package/dist/components/core/utils/optionListItemChildren.d.ts +10 -0
  141. package/dist/components/core/utils/optionListItemContext.d.ts +15 -0
  142. package/dist/components/core/utils/optionListItemParts.d.ts +11 -0
  143. package/dist/components/core/utils/optionListItemStoryLayouts.d.ts +10 -0
  144. package/dist/components/core/utils/scaleFieldParts.d.ts +33 -0
  145. package/dist/index.cjs +286 -28
  146. package/dist/index.d.ts +40 -9
  147. package/dist/index.js +22051 -7221
  148. package/dist/tokens/config.d.ts +15 -0
  149. package/dist/tokens/index.d.ts +1 -1
  150. package/dist/ui.css +1386 -185
  151. package/package.json +2 -1
  152. package/dist/components/core/Selector/Selector.d.ts +0 -48
  153. package/dist/components/core/Selector/index.d.ts +0 -1
@@ -0,0 +1,22 @@
1
+ import { MeterTrackProps, MeterSize, MeterOrientation } from './Meter';
2
+ import { MeterError, MeterHeader, MeterHint, MeterRoot, MeterValue } from './MeterField';
3
+ export declare const Meter: typeof MeterRoot & {
4
+ Header: typeof MeterHeader;
5
+ Label: import('../Label').LabelComponent;
6
+ Value: typeof MeterValue;
7
+ Hint: typeof MeterHint;
8
+ Error: typeof MeterError;
9
+ Track: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & {
10
+ value: number;
11
+ min?: number;
12
+ max?: number;
13
+ size?: MeterSize;
14
+ thickness?: number | string;
15
+ color?: string;
16
+ formatValue?: (value: number) => string;
17
+ orientation?: MeterOrientation;
18
+ className?: string;
19
+ } & import('react').RefAttributes<HTMLDivElement>>;
20
+ };
21
+ export type { MeterTrackProps, MeterSize, MeterOrientation };
22
+ export type { MeterRootProps, MeterHeaderProps, MeterValueProps, MeterHintProps, MeterErrorProps } from './MeterField';
@@ -0,0 +1,21 @@
1
+ import { MeterOrientation } from './Meter';
2
+ export type MeterDisplayState = {
3
+ clampedValue: number;
4
+ statusText: string;
5
+ min: number;
6
+ max: number;
7
+ };
8
+ export type MeterFieldContextValue = {
9
+ meterId: string;
10
+ hintId: string;
11
+ errorId: string;
12
+ hintConnected: boolean;
13
+ errorConnected: boolean;
14
+ orientation: MeterOrientation;
15
+ display: MeterDisplayState | null;
16
+ setDisplay: (next: MeterDisplayState | null) => void;
17
+ };
18
+ declare const MeterFieldContext: import('react').Context<MeterFieldContextValue | null>;
19
+ export declare function useMeterFieldContext(): MeterFieldContextValue;
20
+ export declare function useOptionalMeterFieldContext(): MeterFieldContextValue | null;
21
+ export { MeterFieldContext };
@@ -0,0 +1,64 @@
1
+ import { ButtonHTMLAttributes, HTMLAttributes, LiHTMLAttributes, OlHTMLAttributes, ReactNode } from 'react';
2
+ export type PaginationProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
3
+ children?: ReactNode;
4
+ /** Текущая страница (1-based) для `Pagination.Pages` и навигации по контексту. */
5
+ page?: number;
6
+ totalPages?: number;
7
+ onPageChange?: (page: number) => void;
8
+ /** Соседние страницы вокруг текущей в `Pagination.Pages`. */
9
+ siblingCount?: number;
10
+ };
11
+ export type PaginationSummaryProps = HTMLAttributes<HTMLDivElement>;
12
+ export type PaginationContentProps = OlHTMLAttributes<HTMLOListElement>;
13
+ export type PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;
14
+ export type PaginationNavButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
15
+ declare function PaginationPreviousIcon({ className }: {
16
+ className?: string;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare namespace PaginationPreviousIcon {
19
+ var displayName: string;
20
+ }
21
+ declare function PaginationNextIcon({ className }: {
22
+ className?: string;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare namespace PaginationNextIcon {
25
+ var displayName: string;
26
+ }
27
+ export type PaginationPageProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
28
+ page: number;
29
+ isActive?: boolean;
30
+ children?: ReactNode;
31
+ };
32
+ export type PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;
33
+ /** Без props: диапазон берётся из `page` / `totalPages` / `siblingCount` на корневом `<Pagination>`. */
34
+ export type PaginationPagesProps = Record<string, never>;
35
+ declare function PaginationPages(): import("react/jsx-runtime").JSX.Element;
36
+ declare namespace PaginationPages {
37
+ var displayName: string;
38
+ }
39
+ /** Пагинация: составной API в стиле `Breadcrumbs` — summary, prev/next, номера страниц. */
40
+ export declare const Pagination: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children"> & {
41
+ children?: ReactNode;
42
+ /** Текущая страница (1-based) для `Pagination.Pages` и навигации по контексту. */
43
+ page?: number;
44
+ totalPages?: number;
45
+ onPageChange?: (page: number) => void;
46
+ /** Соседние страницы вокруг текущей в `Pagination.Pages`. */
47
+ siblingCount?: number;
48
+ } & import('react').RefAttributes<HTMLElement>> & {
49
+ Summary: import('react').ForwardRefExoticComponent<PaginationSummaryProps & import('react').RefAttributes<HTMLDivElement>>;
50
+ Content: import('react').ForwardRefExoticComponent<PaginationContentProps & import('react').RefAttributes<HTMLOListElement>>;
51
+ Item: import('react').ForwardRefExoticComponent<PaginationItemProps & import('react').RefAttributes<HTMLLIElement>>;
52
+ Previous: import('react').ForwardRefExoticComponent<PaginationNavButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
53
+ Next: import('react').ForwardRefExoticComponent<PaginationNavButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
54
+ PreviousIcon: typeof PaginationPreviousIcon;
55
+ NextIcon: typeof PaginationNextIcon;
56
+ Page: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
57
+ page: number;
58
+ isActive?: boolean;
59
+ children?: ReactNode;
60
+ } & import('react').RefAttributes<HTMLButtonElement>>;
61
+ Pages: typeof PaginationPages;
62
+ Ellipsis: import('react').ForwardRefExoticComponent<PaginationEllipsisProps & import('react').RefAttributes<HTMLSpanElement>>;
63
+ };
64
+ export {};
@@ -0,0 +1 @@
1
+ export { Pagination, type PaginationProps, type PaginationSummaryProps, type PaginationContentProps, type PaginationItemProps, type PaginationNavButtonProps, type PaginationPageProps, type PaginationEllipsisProps, type PaginationPagesProps, } from './Pagination';
@@ -0,0 +1,92 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { FieldHintProps } from '../Field';
3
+ import { FloatingAlign, TooltipSide } from '../Tooltip/tooltipPosition';
4
+ export type PopoverSide = TooltipSide;
5
+ export type PopoverSize = "small" | "base" | "mid" | "large";
6
+ export type PopoverContentGap = "xsmall" | "small" | "plus" | "mid";
7
+ export type PopoverRootProps = {
8
+ children?: ReactNode;
9
+ size?: PopoverSize;
10
+ /** Предпочтительная сторона. При нехватке места — flip. По умолчанию `bottom`. */
11
+ side?: PopoverSide;
12
+ open?: boolean;
13
+ defaultOpen?: boolean;
14
+ onOpenChange?: (open: boolean) => void;
15
+ /** Внешний якорь позиционирования (если нет `<Popover.Trigger>`). */
16
+ anchorRef?: React.RefObject<HTMLElement | null>;
17
+ /** Дополнительная проверка перед закрытием по клику снаружи. */
18
+ shouldDismiss?: (target: Node) => boolean;
19
+ };
20
+ declare function PopoverRoot({ children, size, side, open: openProp, defaultOpen, onOpenChange, anchorRef, shouldDismiss, }: PopoverRootProps): import("react/jsx-runtime").JSX.Element;
21
+ declare namespace PopoverRoot {
22
+ var displayName: string;
23
+ }
24
+ export type PopoverTriggerProps = HTMLAttributes<HTMLSpanElement>;
25
+ export type PopoverArrowProps = HTMLAttributes<HTMLSpanElement>;
26
+ declare function PopoverArrow({ className, ...rest }: PopoverArrowProps): import("react/jsx-runtime").JSX.Element;
27
+ declare namespace PopoverArrow {
28
+ var displayName: string;
29
+ }
30
+ export type PopoverHeaderProps = HTMLAttributes<HTMLDivElement>;
31
+ declare function PopoverHeader({ className, children, ...rest }: PopoverHeaderProps): import("react/jsx-runtime").JSX.Element;
32
+ declare namespace PopoverHeader {
33
+ var displayName: string;
34
+ }
35
+ export type PopoverLabelProps = HTMLAttributes<HTMLHeadingElement>;
36
+ export type PopoverHintProps = Omit<FieldHintProps, "id" | "as">;
37
+ declare function PopoverHint({ className, children, variant, ...rest }: PopoverHintProps): import("react/jsx-runtime").JSX.Element;
38
+ declare namespace PopoverHint {
39
+ var displayName: string;
40
+ }
41
+ export type PopoverBodyProps = HTMLAttributes<HTMLDivElement>;
42
+ declare function PopoverBody({ className, children, ...rest }: PopoverBodyProps): import("react/jsx-runtime").JSX.Element;
43
+ declare namespace PopoverBody {
44
+ var displayName: string;
45
+ }
46
+ export type PopoverContentProps = HTMLAttributes<HTMLDivElement> & {
47
+ /** Показать стрелку к триггеру. Можно передать свой `<Popover.Arrow />` в children. */
48
+ showArrow?: boolean;
49
+ /** Зазор между триггером и панелью (px). По умолчанию `8`. */
50
+ offset?: number;
51
+ /** Зазор между `<Popover.Header>` и `<Popover.Body>`. По умолчанию зависит от `size`. */
52
+ gap?: PopoverContentGap;
53
+ /** Минимальная ширина панели = ширина якоря. */
54
+ matchAnchorWidth?: boolean;
55
+ /**
56
+ * Выравнивание вдоль якоря: `start` — левый край под левым краем якоря (дефолт при `matchAnchorWidth`).
57
+ * `center` — по центру (дефолт для обычных popover).
58
+ */
59
+ align?: FloatingAlign;
60
+ /** Без дефолтных min/max-width и padding — для меню и listbox. */
61
+ unstyled?: boolean;
62
+ /** ARIA role оболочки. По умолчанию `dialog`; `undefined` — без role. */
63
+ contentRole?: "dialog" | undefined;
64
+ };
65
+ export declare const Popover: typeof PopoverRoot & {
66
+ Trigger: import('react').ForwardRefExoticComponent<PopoverTriggerProps & import('react').RefAttributes<HTMLSpanElement>>;
67
+ Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
68
+ /** Показать стрелку к триггеру. Можно передать свой `<Popover.Arrow />` в children. */
69
+ showArrow?: boolean;
70
+ /** Зазор между триггером и панелью (px). По умолчанию `8`. */
71
+ offset?: number;
72
+ /** Зазор между `<Popover.Header>` и `<Popover.Body>`. По умолчанию зависит от `size`. */
73
+ gap?: PopoverContentGap;
74
+ /** Минимальная ширина панели = ширина якоря. */
75
+ matchAnchorWidth?: boolean;
76
+ /**
77
+ * Выравнивание вдоль якоря: `start` — левый край под левым краем якоря (дефолт при `matchAnchorWidth`).
78
+ * `center` — по центру (дефолт для обычных popover).
79
+ */
80
+ align?: FloatingAlign;
81
+ /** Без дефолтных min/max-width и padding — для меню и listbox. */
82
+ unstyled?: boolean;
83
+ /** ARIA role оболочки. По умолчанию `dialog`; `undefined` — без role. */
84
+ contentRole?: "dialog" | undefined;
85
+ } & import('react').RefAttributes<HTMLDivElement>>;
86
+ Header: typeof PopoverHeader;
87
+ Label: import('react').ForwardRefExoticComponent<PopoverLabelProps & import('react').RefAttributes<HTMLHeadingElement>>;
88
+ Hint: typeof PopoverHint;
89
+ Body: typeof PopoverBody;
90
+ Arrow: typeof PopoverArrow;
91
+ };
92
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Popover, type PopoverRootProps, type PopoverTriggerProps, type PopoverContentProps, type PopoverHeaderProps, type PopoverLabelProps, type PopoverHintProps, type PopoverBodyProps, type PopoverArrowProps, type PopoverSide, type PopoverSize, type PopoverContentGap, } from './Popover';
2
+ export type { FloatingAlign, FloatingAlign as PopoverAlign } from '../Tooltip/tooltipPosition';
@@ -0,0 +1,41 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type ProgressBarSize = "small" | "base" | "mid" | "large";
3
+ export type ProgressBarOrientation = "horizontal" | "vertical";
4
+ export type ProgressBarTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
5
+ /** Текущий прогресс. Не используется при `indeterminate`. */
6
+ value?: number;
7
+ /** Неопределённый прогресс (анимация без конкретного значения). */
8
+ indeterminate?: boolean;
9
+ min?: number;
10
+ max?: number;
11
+ size?: ProgressBarSize;
12
+ /**
13
+ * Толщина линии. Перекрывает cross-axis из `size`.
14
+ * Число — px; строка — любая CSS-длина (`"0.75rem"`, `"12px"`).
15
+ */
16
+ thickness?: number | string;
17
+ /** Цвет заливки: CSS-цвет или `linear-gradient(...)`. По умолчанию accent. */
18
+ color?: string;
19
+ formatValue?: (value: number) => string;
20
+ orientation?: ProgressBarOrientation;
21
+ className?: string;
22
+ };
23
+ export declare const ProgressBarTrack: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
24
+ /** Текущий прогресс. Не используется при `indeterminate`. */
25
+ value?: number;
26
+ /** Неопределённый прогресс (анимация без конкретного значения). */
27
+ indeterminate?: boolean;
28
+ min?: number;
29
+ max?: number;
30
+ size?: ProgressBarSize;
31
+ /**
32
+ * Толщина линии. Перекрывает cross-axis из `size`.
33
+ * Число — px; строка — любая CSS-длина (`"0.75rem"`, `"12px"`).
34
+ */
35
+ thickness?: number | string;
36
+ /** Цвет заливки: CSS-цвет или `linear-gradient(...)`. По умолчанию accent. */
37
+ color?: string;
38
+ formatValue?: (value: number) => string;
39
+ orientation?: ProgressBarOrientation;
40
+ className?: string;
41
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,41 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { ProgressBarTrackProps, ProgressBarOrientation } from './ProgressBar';
3
+ export type ProgressBarRootProps = HTMLAttributes<HTMLDivElement> & Partial<ProgressBarTrackProps> & {
4
+ children?: ReactNode;
5
+ id?: string;
6
+ orientation?: ProgressBarOrientation;
7
+ label?: ReactNode;
8
+ showValue?: boolean;
9
+ valueText?: ReactNode;
10
+ hint?: ReactNode;
11
+ error?: ReactNode;
12
+ };
13
+ export declare function ProgressBarRoot({ children, className, id: idProp, orientation, label, showValue, valueText, hint, error, value, indeterminate, min, max, size, thickness, color, formatValue, ...divRest }: ProgressBarRootProps): import("react/jsx-runtime").JSX.Element;
14
+ export type ProgressBarHeaderProps = HTMLAttributes<HTMLDivElement> & {
15
+ children?: ReactNode;
16
+ };
17
+ export declare function ProgressBarHeader({ children, className, ...rest }: ProgressBarHeaderProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare namespace ProgressBarHeader {
19
+ var displayName: string;
20
+ }
21
+ export type ProgressBarValueProps = HTMLAttributes<HTMLSpanElement> & {
22
+ children?: ReactNode;
23
+ };
24
+ export declare function ProgressBarValue({ children, className, ...rest }: ProgressBarValueProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare namespace ProgressBarValue {
26
+ var displayName: string;
27
+ }
28
+ export type ProgressBarHintProps = HTMLAttributes<HTMLParagraphElement> & {
29
+ children?: ReactNode;
30
+ };
31
+ export declare function ProgressBarHint({ children, className, id: idProp, ...rest }: ProgressBarHintProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare namespace ProgressBarHint {
33
+ var displayName: string;
34
+ }
35
+ export type ProgressBarErrorProps = HTMLAttributes<HTMLParagraphElement> & {
36
+ children?: ReactNode;
37
+ };
38
+ export declare function ProgressBarError({ children, className, id: idProp, ...rest }: ProgressBarErrorProps): import("react/jsx-runtime").JSX.Element;
39
+ export declare namespace ProgressBarError {
40
+ var displayName: string;
41
+ }
@@ -0,0 +1,23 @@
1
+ import { ProgressBarTrackProps, ProgressBarSize, ProgressBarOrientation } from './ProgressBar';
2
+ import { ProgressBarError, ProgressBarHeader, ProgressBarHint, ProgressBarRoot, ProgressBarValue } from './ProgressBarField';
3
+ export declare const ProgressBar: typeof ProgressBarRoot & {
4
+ Header: typeof ProgressBarHeader;
5
+ Label: import('../Label').LabelComponent;
6
+ Value: typeof ProgressBarValue;
7
+ Hint: typeof ProgressBarHint;
8
+ Error: typeof ProgressBarError;
9
+ Track: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & {
10
+ value?: number;
11
+ indeterminate?: boolean;
12
+ min?: number;
13
+ max?: number;
14
+ size?: ProgressBarSize;
15
+ thickness?: number | string;
16
+ color?: string;
17
+ formatValue?: (value: number) => string;
18
+ orientation?: ProgressBarOrientation;
19
+ className?: string;
20
+ } & import('react').RefAttributes<HTMLDivElement>>;
21
+ };
22
+ export type { ProgressBarTrackProps, ProgressBarSize, ProgressBarOrientation };
23
+ export type { ProgressBarRootProps, ProgressBarHeaderProps, ProgressBarValueProps, ProgressBarHintProps, ProgressBarErrorProps, } from './ProgressBarField';
@@ -0,0 +1,22 @@
1
+ import { ProgressBarOrientation } from './ProgressBar';
2
+ export type ProgressBarDisplayState = {
3
+ clampedValue: number;
4
+ statusText: string;
5
+ min: number;
6
+ max: number;
7
+ indeterminate: boolean;
8
+ };
9
+ export type ProgressBarFieldContextValue = {
10
+ progressId: string;
11
+ hintId: string;
12
+ errorId: string;
13
+ hintConnected: boolean;
14
+ errorConnected: boolean;
15
+ orientation: ProgressBarOrientation;
16
+ display: ProgressBarDisplayState | null;
17
+ setDisplay: (next: ProgressBarDisplayState | null) => void;
18
+ };
19
+ declare const ProgressBarFieldContext: import('react').Context<ProgressBarFieldContextValue | null>;
20
+ export declare function useProgressBarFieldContext(): ProgressBarFieldContextValue;
21
+ export declare function useOptionalProgressBarFieldContext(): ProgressBarFieldContextValue | null;
22
+ export { ProgressBarFieldContext };
@@ -0,0 +1,54 @@
1
+ import { HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from 'react';
2
+ import { FieldErrorProps, FieldHintProps } from '../Field';
3
+ import { LabelProps } from '../Label';
4
+ export type RadioSize = "small" | "base" | "mid" | "large";
5
+ export type RadioRootProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
6
+ children?: ReactNode;
7
+ label?: ReactNode;
8
+ hint?: ReactNode;
9
+ error?: ReactNode;
10
+ size?: RadioSize;
11
+ danger?: boolean;
12
+ className?: string;
13
+ };
14
+ export type RadioProps = RadioRootProps;
15
+ export type RadioControlProps = HTMLAttributes<HTMLSpanElement>;
16
+ export declare const RadioControl: import('react').ForwardRefExoticComponent<RadioControlProps & import('react').RefAttributes<HTMLSpanElement>>;
17
+ export type RadioIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
18
+ children?: ReactNode;
19
+ };
20
+ export declare function RadioIndicator({ children, className, ...rest }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare namespace RadioIndicator {
22
+ var displayName: string;
23
+ }
24
+ export type RadioContentProps = HTMLAttributes<HTMLDivElement> & {
25
+ children?: ReactNode;
26
+ };
27
+ export declare const RadioContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
28
+ children?: ReactNode;
29
+ } & import('react').RefAttributes<HTMLDivElement>>;
30
+ export type RadioLabelProps = Omit<LabelProps, "htmlFor">;
31
+ /** Текст опции внутри `<Radio>` — span, без вложенного `<label>`. */
32
+ export declare function RadioLabel({ children, className, isRequired: isRequiredProp, ...rest }: RadioLabelProps): import("react/jsx-runtime").JSX.Element;
33
+ export declare namespace RadioLabel {
34
+ var displayName: string;
35
+ }
36
+ export type RadioHintProps = Omit<FieldHintProps, "id" | "as">;
37
+ export declare function RadioHint({ children, className, variant, ...rest }: RadioHintProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare namespace RadioHint {
39
+ var displayName: string;
40
+ }
41
+ export type RadioErrorProps = Omit<FieldErrorProps, "id" | "as">;
42
+ export declare function RadioError({ children, className, ...rest }: RadioErrorProps): import("react/jsx-runtime").JSX.Element;
43
+ export declare namespace RadioError {
44
+ var displayName: string;
45
+ }
46
+ export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
47
+ children?: ReactNode;
48
+ label?: ReactNode;
49
+ hint?: ReactNode;
50
+ error?: ReactNode;
51
+ size?: RadioSize;
52
+ danger?: boolean;
53
+ className?: string;
54
+ } & import('react').RefAttributes<HTMLLabelElement>>;
@@ -0,0 +1,20 @@
1
+ import { RadioError, RadioHint, RadioIndicator, RadioLabel, RadioContentProps, RadioControlProps, RadioErrorProps, RadioHintProps, RadioIndicatorProps, RadioLabelProps, RadioProps, RadioRootProps, RadioSize } from './Radio';
2
+ export declare const Radio: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
3
+ children?: import('react').ReactNode;
4
+ label?: import('react').ReactNode;
5
+ hint?: import('react').ReactNode;
6
+ error?: import('react').ReactNode;
7
+ size?: RadioSize;
8
+ danger?: boolean;
9
+ className?: string;
10
+ } & import('react').RefAttributes<HTMLLabelElement>> & {
11
+ Control: import('react').ForwardRefExoticComponent<RadioControlProps & import('react').RefAttributes<HTMLSpanElement>>;
12
+ Indicator: typeof RadioIndicator;
13
+ Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
14
+ children?: import('react').ReactNode;
15
+ } & import('react').RefAttributes<HTMLDivElement>>;
16
+ Label: typeof RadioLabel;
17
+ Hint: typeof RadioHint;
18
+ Error: typeof RadioError;
19
+ };
20
+ export type { RadioProps, RadioRootProps, RadioControlProps, RadioIndicatorProps, RadioContentProps, RadioLabelProps, RadioHintProps, RadioErrorProps, RadioSize, };
@@ -0,0 +1,36 @@
1
+ import { ChangeEvent, InputHTMLAttributes, RefObject } from 'react';
2
+ import { RadioSize } from './Radio';
3
+ export type RadioFieldContextValue = {
4
+ inputId: string;
5
+ hintId: string;
6
+ errorId: string;
7
+ size: RadioSize;
8
+ mergedChecked: boolean;
9
+ isDisabled: boolean;
10
+ isControlled: boolean;
11
+ isCompound: boolean;
12
+ hasCompoundHint: boolean;
13
+ hasCompoundError: boolean;
14
+ hintConnected: boolean;
15
+ errorConnected: boolean;
16
+ useInlineCompoundMotion: boolean;
17
+ textMotionRef: RefObject<HTMLElement | null>;
18
+ danger: boolean;
19
+ inputName?: string;
20
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
21
+ inputProps: {
22
+ value?: InputHTMLAttributes<HTMLInputElement>["value"];
23
+ defaultChecked?: boolean;
24
+ required?: boolean;
25
+ form?: string;
26
+ autoFocus?: boolean;
27
+ tabIndex?: number;
28
+ readOnly?: boolean;
29
+ onBlur?: InputHTMLAttributes<HTMLInputElement>["onBlur"];
30
+ onFocus?: InputHTMLAttributes<HTMLInputElement>["onFocus"];
31
+ };
32
+ };
33
+ declare const RadioFieldContext: import('react').Context<RadioFieldContextValue | null>;
34
+ export declare function useRadioFieldContext(): RadioFieldContextValue;
35
+ export declare function useOptionalRadioFieldContext(): RadioFieldContextValue | null;
36
+ export { RadioFieldContext };
@@ -1,10 +1,10 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export type SearchInputSize = "base" | "large";
2
+ import { ComponentSize } from '../utils/componentSize';
3
+ export type SearchInputSize = ComponentSize;
3
4
  export type SearchInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
4
5
  /**
5
- * Высота в свёрнутом виде и габариты иконки / поля.
6
- * Только `base` и `large`: `base` = как `Button size="base"` (32px).
7
- * По умолчанию `base`.
6
+ * Высота в свёрнутом виде и габариты иконки / поля — как у `Input` / `Button`.
7
+ * `small` · `base` · `mid` · `large`. По умолчанию `base`.
8
8
  */
9
9
  size?: SearchInputSize;
10
10
  /** Ширина в развёрнутом виде (px). */
@@ -25,12 +25,16 @@ export type SearchInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size
25
25
  onValueChange?: (value: string) => void;
26
26
  /** Converge-ripple на оболочке (реализация — `<Ripple />` внутри). @default false */
27
27
  ripple?: boolean;
28
+ /**
29
+ * Доступное имя поля и триггера свёрнутого состояния.
30
+ * Рекомендуется задавать явно; без prop свёрнутый триггер — «Открыть поиск», развёрнутый input — placeholder.
31
+ */
32
+ "aria-label"?: string;
28
33
  };
29
34
  export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
30
35
  /**
31
- * Высота в свёрнутом виде и габариты иконки / поля.
32
- * Только `base` и `large`: `base` = как `Button size="base"` (32px).
33
- * По умолчанию `base`.
36
+ * Высота в свёрнутом виде и габариты иконки / поля — как у `Input` / `Button`.
37
+ * `small` · `base` · `mid` · `large`. По умолчанию `base`.
34
38
  */
35
39
  size?: SearchInputSize;
36
40
  /** Ширина в развёрнутом виде (px). */
@@ -51,4 +55,9 @@ export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit
51
55
  onValueChange?: (value: string) => void;
52
56
  /** Converge-ripple на оболочке (реализация — `<Ripple />` внутри). @default false */
53
57
  ripple?: boolean;
58
+ /**
59
+ * Доступное имя поля и триггера свёрнутого состояния.
60
+ * Рекомендуется задавать явно; без prop свёрнутый триггер — «Открыть поиск», развёрнутый input — placeholder.
61
+ */
62
+ "aria-label"?: string;
54
63
  } & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { SelectionIndicatorSize, SelectionIndicatorVariant } from './selectionIndicatorTokens';
3
+ export type SelectionIndicatorProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
4
+ size?: SelectionIndicatorSize;
5
+ variant?: SelectionIndicatorVariant;
6
+ selected: boolean;
7
+ /** Галочка при выборе (Checkbox, multi Dropdown). */
8
+ check?: boolean;
9
+ /** Своя иконка поверх заливки вместо галочки. */
10
+ icon?: ReactNode;
11
+ };
12
+ export declare function SelectionIndicator({ size, variant, selected, check, icon: iconProp, className, ...rest }: SelectionIndicatorProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare namespace SelectionIndicator {
14
+ var displayName: string;
15
+ }
@@ -0,0 +1,3 @@
1
+ export { SelectionIndicator, type SelectionIndicatorProps } from './SelectionIndicator';
2
+ export { SELECTION_INDICATOR_FILL_CLASS, SELECTION_INDICATOR_ICON_CLASS, SELECTION_INDICATOR_SHELL_CLASS, SELECTION_INDICATOR_SIZE_CLASS, selectionIndicatorFallbackPx, selectionIndicatorShellClass, selectionIndicatorVariantClass, type SelectionIndicatorSize, type SelectionIndicatorVariant, } from './selectionIndicatorTokens';
3
+ export { useSelectionIndicatorAnimation } from './useSelectionIndicatorAnimation';
@@ -0,0 +1,14 @@
1
+ /** Размер круглого индикатора — через `--selection-indicator-*` в теме. */
2
+ export type SelectionIndicatorSize = "small" | "base" | "mid" | "large";
3
+ export type SelectionIndicatorVariant = "base" | "secondary" | "outline";
4
+ export declare const SELECTION_INDICATOR_SIZE_CLASS: Record<SelectionIndicatorSize, string>;
5
+ export declare const SELECTION_INDICATOR_ICON_CLASS: Record<SelectionIndicatorSize, string>;
6
+ export declare const SELECTION_INDICATOR_SHELL_CLASS = "relative box-border inline-flex shrink-0 items-center justify-center rounded-full";
7
+ export declare const SELECTION_INDICATOR_FILL_CLASS = "pointer-events-none absolute inset-px z-[0] flex origin-center items-center justify-center rounded-full bg-accent text-accent-foreground";
8
+ /**
9
+ * Диаметр индикатора в px до первого измерения DOM.
10
+ * Нужен Switch/Slider: расчёт travel/thumb до layout (ResizeObserver).
11
+ */
12
+ export declare function selectionIndicatorFallbackPx(size: SelectionIndicatorSize, rootPx?: number): number;
13
+ export declare function selectionIndicatorShellClass(size: SelectionIndicatorSize, className?: string): string;
14
+ export declare function selectionIndicatorVariantClass(variant: SelectionIndicatorVariant, selected: boolean): string;
@@ -0,0 +1,2 @@
1
+ import { RefObject } from 'react';
2
+ export declare function useSelectionIndicatorAnimation(active: boolean, fillRef: RefObject<HTMLElement | null>, iconRef?: RefObject<HTMLElement | null>): void;
@@ -0,0 +1,27 @@
1
+ import { HTMLAttributes, ReactNode, RefObject } from 'react';
2
+ import { SelectionIndicatorSize } from '../SelectionIndicator/selectionIndicatorTokens';
3
+ export type SelectionThumbProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
4
+ /** Заливка кружка (checked / active / drag). */
5
+ active: boolean;
6
+ /** Размер иконки внутри (`icon-xsmall` …). */
7
+ size?: SelectionIndicatorSize;
8
+ shellRef?: RefObject<HTMLSpanElement | null>;
9
+ fillRef?: RefObject<HTMLSpanElement | null>;
10
+ children?: ReactNode;
11
+ };
12
+ /** Кружок-ручка для Slider / Switch: shell + accent-fill; размер от родителя (`size-full`). */
13
+ export declare function SelectionThumb({ active, size, shellRef, fillRef: fillRefProp, className, children, ...rest }: SelectionThumbProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare namespace SelectionThumb {
15
+ var displayName: string;
16
+ }
17
+ export type SelectionThumbIconProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
18
+ size?: SelectionIndicatorSize;
19
+ /** `true` — accent-foreground на заливке; `false` — accent в покое (Slider). */
20
+ highlighted?: boolean;
21
+ iconRef?: RefObject<HTMLSpanElement | null>;
22
+ children?: ReactNode;
23
+ };
24
+ export declare function SelectionThumbIcon({ size, highlighted, iconRef, className, children, style, ...rest }: SelectionThumbIconProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare namespace SelectionThumbIcon {
26
+ var displayName: string;
27
+ }
@@ -0,0 +1 @@
1
+ export { SelectionThumb, SelectionThumbIcon, type SelectionThumbIconProps, type SelectionThumbProps, } from './SelectionThumb';
@@ -0,0 +1,51 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * - `pulse` — мягкое мигание прозрачности.
4
+ * - `wave` — светлая полоса, скользящая справа-налево (эффект «волны»).
5
+ * - `shimmer` — анимированный градиент по всей поверхности.
6
+ * - `none` — без анимации (статичный скелетон).
7
+ */
8
+ export type SkeletonVariant = "pulse" | "wave" | "shimmer" | "none";
9
+ export type SkeletonRadius = "none" | "small" | "mid" | "full";
10
+ export type SkeletonProps = HTMLAttributes<HTMLDivElement> & {
11
+ variant?: SkeletonVariant;
12
+ radius?: SkeletonRadius;
13
+ };
14
+ export type SkeletonCircleProps = HTMLAttributes<HTMLDivElement> & {
15
+ variant?: SkeletonVariant;
16
+ /** Diameter via Tailwind class, e.g. `"w-10 h-10"`. Defaults to control-base size. */
17
+ size?: string;
18
+ };
19
+ export type SkeletonTextProps = HTMLAttributes<HTMLDivElement> & {
20
+ variant?: SkeletonVariant;
21
+ /** Number of lines. */
22
+ lines?: number;
23
+ /** Last line shorter than others (natural paragraph look). */
24
+ lastShort?: boolean;
25
+ };
26
+ /** Generic skeleton block. Control size/shape via `className`. */
27
+ export declare const Skeleton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
28
+ variant?: SkeletonVariant;
29
+ radius?: SkeletonRadius;
30
+ } & import('react').RefAttributes<HTMLDivElement>>;
31
+ export declare const SkeletonCompound: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
32
+ variant?: SkeletonVariant;
33
+ radius?: SkeletonRadius;
34
+ } & import('react').RefAttributes<HTMLDivElement>> & {
35
+ Circle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
36
+ variant?: SkeletonVariant;
37
+ /** Diameter via Tailwind class, e.g. `"w-10 h-10"`. Defaults to control-base size. */
38
+ size?: string;
39
+ } & import('react').RefAttributes<HTMLDivElement>>;
40
+ Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
41
+ variant?: SkeletonVariant;
42
+ /** Number of lines. */
43
+ lines?: number;
44
+ /** Last line shorter than others (natural paragraph look). */
45
+ lastShort?: boolean;
46
+ } & import('react').RefAttributes<HTMLDivElement>>;
47
+ Block: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
48
+ variant?: SkeletonVariant;
49
+ radius?: SkeletonRadius;
50
+ } & import('react').RefAttributes<HTMLDivElement>>;
51
+ };
@@ -0,0 +1 @@
1
+ export { SkeletonCompound as Skeleton, type SkeletonProps, type SkeletonCircleProps, type SkeletonTextProps, type SkeletonVariant, type SkeletonRadius, } from './Skeleton';