burne-ui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +117 -0
  2. package/dist/components/composite/Accordion/Accordion.d.ts +20 -0
  3. package/dist/components/composite/Accordion/index.d.ts +1 -0
  4. package/dist/components/composite/AlertDialog/AlertDialog.d.ts +83 -0
  5. package/dist/components/composite/AlertDialog/index.d.ts +1 -0
  6. package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +42 -0
  7. package/dist/components/composite/ButtonGroup/index.d.ts +2 -0
  8. package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +49 -0
  9. package/dist/components/composite/CheckboxGroup/index.d.ts +1 -0
  10. package/dist/components/composite/Form/Form.d.ts +4 -0
  11. package/dist/components/composite/Form/index.d.ts +1 -0
  12. package/dist/components/core/Alert/Alert.d.ts +34 -0
  13. package/dist/components/core/Alert/index.d.ts +1 -0
  14. package/dist/components/core/Avatar/Avatar.d.ts +40 -0
  15. package/dist/components/core/Avatar/index.d.ts +1 -0
  16. package/dist/components/core/Badge/Badge.d.ts +77 -0
  17. package/dist/components/core/Badge/index.d.ts +1 -0
  18. package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +19 -0
  19. package/dist/components/core/Breadcrumbs/index.d.ts +2 -0
  20. package/dist/components/core/Button/Button.d.ts +86 -0
  21. package/dist/components/core/Button/index.d.ts +1 -0
  22. package/dist/components/core/Card/Card.d.ts +49 -0
  23. package/dist/components/core/Card/index.d.ts +1 -0
  24. package/dist/components/core/Checkbox/Checkbox.d.ts +32 -0
  25. package/dist/components/core/Checkbox/index.d.ts +1 -0
  26. package/dist/components/core/CloseButton/CloseButton.d.ts +10 -0
  27. package/dist/components/core/CloseButton/index.d.ts +1 -0
  28. package/dist/components/core/Dialog/Dialog.d.ts +39 -0
  29. package/dist/components/core/Dialog/index.d.ts +1 -0
  30. package/dist/components/core/Dropdown/Dropdown.d.ts +147 -0
  31. package/dist/components/core/Dropdown/index.d.ts +1 -0
  32. package/dist/components/core/Expandable/Expandable.d.ts +44 -0
  33. package/dist/components/core/Expandable/index.d.ts +1 -0
  34. package/dist/components/core/GlassSurface/GlassBackdrop.d.ts +7 -0
  35. package/dist/components/core/GlassSurface/GlassShaderLayer.d.ts +14 -0
  36. package/dist/components/core/GlassSurface/GlassSurface.d.ts +16 -0
  37. package/dist/components/core/GlassSurface/glassLensOgl.d.ts +11 -0
  38. package/dist/components/core/GlassSurface/index.d.ts +3 -0
  39. package/dist/components/core/Input/Input.d.ts +71 -0
  40. package/dist/components/core/Input/index.d.ts +1 -0
  41. package/dist/components/core/Ripple/Ripple.d.ts +40 -0
  42. package/dist/components/core/Ripple/index.d.ts +1 -0
  43. package/dist/components/core/SearchInput/SearchInput.d.ts +54 -0
  44. package/dist/components/core/SearchInput/index.d.ts +1 -0
  45. package/dist/components/core/Selector/Selector.d.ts +48 -0
  46. package/dist/components/core/Selector/index.d.ts +1 -0
  47. package/dist/components/core/Separator/Separator.d.ts +13 -0
  48. package/dist/components/core/Separator/index.d.ts +1 -0
  49. package/dist/components/core/Text/Text.d.ts +19 -0
  50. package/dist/components/core/Text/index.d.ts +1 -0
  51. package/dist/components/core/Tooltip/Tooltip.d.ts +38 -0
  52. package/dist/components/core/Tooltip/index.d.ts +1 -0
  53. package/dist/components/core/utils/buttonGroupSegment.d.ts +10 -0
  54. package/dist/components/core/utils/hoverInteractiveLift.d.ts +60 -0
  55. package/dist/components/core/utils/motionTokens.d.ts +24 -0
  56. package/dist/components/core/utils/pressRipple.d.ts +19 -0
  57. package/dist/components/core/utils/semanticStatusIcons.d.ts +5 -0
  58. package/dist/components/core/utils/useConvergeRipples.d.ts +13 -0
  59. package/dist/index.cjs +169 -0
  60. package/dist/index.d.ts +31 -0
  61. package/dist/index.js +11863 -0
  62. package/dist/tokens/config.d.ts +70 -0
  63. package/dist/tokens/index.d.ts +12 -0
  64. package/dist/ui.css +3724 -0
  65. package/dist/utils/cn.d.ts +2 -0
  66. package/dist/utils/mockImages.d.ts +5 -0
  67. package/package.json +58 -0
@@ -0,0 +1,49 @@
1
+ import { HTMLAttributes, KeyboardEvent, MouseEvent } from 'react';
2
+ export type CardVariant = "default" | "outline" | "secondary";
3
+ /** Событие активации нажимаемой карточки (`pressable`): клик или клавиши Enter / Space. */
4
+ export type CardPressEvent = MouseEvent<HTMLDivElement> | KeyboardEvent<HTMLDivElement>;
5
+ export type CardProps = Omit<HTMLAttributes<HTMLDivElement>, "onClick" | "onKeyDown"> & {
6
+ /** Поверхность и обводка. По умолчанию `default`. */
7
+ variant?: CardVariant;
8
+ /**
9
+ * Интерактивная карточка: hover-lift, тень и squeeze при нажатии (как у кнопки).
10
+ * Риппл не встроен — при необходимости передайте `<Ripple />` первым ребёнком и оберните остальной контент в слой с `relative z-[1]`.
11
+ * Не помещайте внутрь другие кнопки/ссылки без `stopPropagation` на их клик — иначе сработает и `onPress` карточки.
12
+ */
13
+ pressable?: boolean;
14
+ /** Вызывается при активации (`click` или Enter / Space на корне). Имеет смысл только при `pressable`. */
15
+ onPress?: (event: CardPressEvent) => void;
16
+ onClick?: HTMLAttributes<HTMLDivElement>["onClick"];
17
+ onKeyDown?: HTMLAttributes<HTMLDivElement>["onKeyDown"];
18
+ };
19
+ export type CardContentProps = HTMLAttributes<HTMLDivElement>;
20
+ export type CardTitleProps = HTMLAttributes<HTMLHeadingElement>;
21
+ export type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
22
+ export type CardBodyProps = HTMLAttributes<HTMLDivElement>;
23
+ export type CardFooterProps = HTMLAttributes<HTMLDivElement>;
24
+ declare function CardContent({ className, ...rest }: CardContentProps): import("react/jsx-runtime").JSX.Element;
25
+ declare function CardBody({ className, children, ...rest }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
26
+ /** Нижняя зона действий / мета с разделителем. */
27
+ declare function CardFooter({ className, ...rest }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
28
+ /** Карточка: корневой блок с токенами темы; при `pressable` — hover-lift, тень и squeeze (риппл — снаружи через `<Ripple />`). */
29
+ export declare const Card: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "onKeyDown" | "onClick"> & {
30
+ /** Поверхность и обводка. По умолчанию `default`. */
31
+ variant?: CardVariant;
32
+ /**
33
+ * Интерактивная карточка: hover-lift, тень и squeeze при нажатии (как у кнопки).
34
+ * Риппл не встроен — при необходимости передайте `<Ripple />` первым ребёнком и оберните остальной контент в слой с `relative z-[1]`.
35
+ * Не помещайте внутрь другие кнопки/ссылки без `stopPropagation` на их клик — иначе сработает и `onPress` карточки.
36
+ */
37
+ pressable?: boolean;
38
+ /** Вызывается при активации (`click` или Enter / Space на корне). Имеет смысл только при `pressable`. */
39
+ onPress?: (event: CardPressEvent) => void;
40
+ onClick?: HTMLAttributes<HTMLDivElement>["onClick"];
41
+ onKeyDown?: HTMLAttributes<HTMLDivElement>["onKeyDown"];
42
+ } & import('react').RefAttributes<HTMLDivElement>> & {
43
+ Content: typeof CardContent;
44
+ Title: import('react').ForwardRefExoticComponent<CardTitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
45
+ Description: import('react').ForwardRefExoticComponent<CardDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>>;
46
+ Body: typeof CardBody;
47
+ Footer: typeof CardFooter;
48
+ };
49
+ export {};
@@ -0,0 +1 @@
1
+ export { Card, type CardPressEvent, type CardProps, type CardVariant, type CardContentProps, type CardTitleProps, type CardDescriptionProps, type CardBodyProps, type CardFooterProps, } from './Card';
@@ -0,0 +1,32 @@
1
+ import { InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from 'react';
2
+ /** Внешний вид обода кружка в состоянии «не отмечено». `outline` — «o», акцентная обводка. */
3
+ export type CheckboxVariant = "default" | "secondary" | "outline";
4
+ export type CheckboxSize = "small" | "base" | "medium" | "large";
5
+ export type CheckboxProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
6
+ /** Подпись справа от индикатора. */
7
+ label: ReactNode;
8
+ /** Дополнительная строка под заголовком; цвет всегда приглушённый. */
9
+ description?: ReactNode;
10
+ size?: CheckboxSize;
11
+ variant?: CheckboxVariant;
12
+ /** Иконка внутри залитого кружка. По умолчанию галочка `IoCheckmark`. */
13
+ checkIcon?: ReactNode;
14
+ /** Заголовок в цвете danger (подзаголовок остаётся muted). */
15
+ danger?: boolean;
16
+ /** className на корневой `<label>`. */
17
+ className?: string;
18
+ };
19
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
20
+ /** Подпись справа от индикатора. */
21
+ label: ReactNode;
22
+ /** Дополнительная строка под заголовком; цвет всегда приглушённый. */
23
+ description?: ReactNode;
24
+ size?: CheckboxSize;
25
+ variant?: CheckboxVariant;
26
+ /** Иконка внутри залитого кружка. По умолчанию галочка `IoCheckmark`. */
27
+ checkIcon?: ReactNode;
28
+ /** Заголовок в цвете danger (подзаголовок остаётся muted). */
29
+ danger?: boolean;
30
+ /** className на корневой `<label>`. */
31
+ className?: string;
32
+ } & import('react').RefAttributes<HTMLLabelElement>>;
@@ -0,0 +1 @@
1
+ export { Checkbox, type CheckboxProps, type CheckboxVariant, type CheckboxSize, } from './Checkbox';
@@ -0,0 +1,10 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export type CloseButtonVariant = "default" | "outline";
3
+ export type CloseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
4
+ /** Поверхность: серая заливка или outline как у `Button`. По умолчанию `default`. */
5
+ variant?: CloseButtonVariant;
6
+ };
7
+ export declare const CloseButton: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
8
+ /** Поверхность: серая заливка или outline как у `Button`. По умолчанию `default`. */
9
+ variant?: CloseButtonVariant;
10
+ } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export { CloseButton, type CloseButtonProps, type CloseButtonVariant, } from './CloseButton';
@@ -0,0 +1,39 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { CloseButtonProps } from '../CloseButton';
3
+ export type DialogProps = {
4
+ /** Управляемое открытие. */
5
+ open: boolean;
6
+ /** Изменение открытия. */
7
+ onOpenChange: (open: boolean) => void;
8
+ /** Контент модалки. */
9
+ children?: ReactNode;
10
+ /** Доп. класс на панель (контент модалки). */
11
+ className?: string;
12
+ /** Закрытие по клику на подложку (вне панели). Для `AlertDialog` обычно `false`. */
13
+ dismissOnBackdrop?: boolean;
14
+ };
15
+ type DialogHeaderProps = HTMLAttributes<HTMLDivElement>;
16
+ type DialogTitleProps = HTMLAttributes<HTMLHeadingElement>;
17
+ type DialogDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
18
+ type DialogBodyProps = HTMLAttributes<HTMLDivElement>;
19
+ type DialogFooterProps = HTMLAttributes<HTMLDivElement>;
20
+ type DialogCloseProps = CloseButtonProps;
21
+ declare function DialogHeader({ className, ...rest }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
22
+ declare function DialogDescription({ className, id, ...rest }: DialogDescriptionProps): import("react/jsx-runtime").JSX.Element;
23
+ /** Заголовок и подзаголовок: колонка с токенным зазором (`gap-base`). */
24
+ declare function DialogHeadingBlock({ className, ...rest }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
25
+ /** Область контента между шапкой и футером: вертикальный скролл здесь; хедер и футер остаются на месте (`shrink-0` + `min-h-0` у панели). */
26
+ declare function DialogBody({ className, ...rest }: DialogBodyProps): import("react/jsx-runtime").JSX.Element;
27
+ declare function DialogFooter({ className, ...rest }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare const Dialog: (({ open, onOpenChange, children, className, dismissOnBackdrop, }: DialogProps) => import('react').ReactPortal | null) & {
29
+ Header: typeof DialogHeader;
30
+ HeadingBlock: typeof DialogHeadingBlock;
31
+ Title: import('react').ForwardRefExoticComponent<DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
32
+ Description: typeof DialogDescription;
33
+ Close: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
34
+ variant?: import('../CloseButton').CloseButtonVariant;
35
+ } & import('react').RefAttributes<HTMLButtonElement>>;
36
+ Body: typeof DialogBody;
37
+ Footer: typeof DialogFooter;
38
+ };
39
+ export type { DialogHeaderProps, DialogTitleProps, DialogDescriptionProps, DialogBodyProps, DialogFooterProps, DialogCloseProps, };
@@ -0,0 +1 @@
1
+ export { Dialog, type DialogProps, type DialogHeaderProps, type DialogTitleProps, type DialogDescriptionProps, type DialogBodyProps, type DialogFooterProps, type DialogCloseProps, } from './Dialog';
@@ -0,0 +1,147 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type DropdownProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
3
+ children: ReactNode;
4
+ /** Управляемое открытие. */
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ /** Несколько значений `value`. */
9
+ multiple?: boolean;
10
+ /** Выбранное значение или значения (`Dropdown.Item` → `value`). */
11
+ value?: string | string[];
12
+ defaultValue?: string | string[];
13
+ onValueChange?: (value: string | string[]) => void;
14
+ /**
15
+ * Индикатор слева для одиночного выбора: радио слева у пунктов с `selection`.
16
+ * По умолчанию выключен. У `DropdownGroup` можно задать свой `selectionIndicator` — он действует на эту группу и вложенные (пока не переопределят).
17
+ * В режиме `multiple` индикаторы у выбираемых пунктов всегда включены.
18
+ */
19
+ selectionIndicator?: boolean;
20
+ /**
21
+ * Закрыть после выбора пункта. По умолчанию `true` при `multiple === false`, иначе `false`.
22
+ */
23
+ closeOnSelect?: boolean;
24
+ };
25
+ declare function DropdownRoot({ children, className, open: openProp, defaultOpen, onOpenChange, multiple, value: valueProp, defaultValue, onValueChange, selectionIndicator, closeOnSelect: closeOnSelectProp, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element;
26
+ declare namespace DropdownRoot {
27
+ var displayName: string;
28
+ }
29
+ export type DropdownTriggerProps = HTMLAttributes<HTMLElement> & {
30
+ /** Пробросить пропы на единственного ребёнка (например `<Button />`). */
31
+ asChild?: boolean;
32
+ };
33
+ export declare const DropdownTrigger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
34
+ /** Пробросить пропы на единственного ребёнка (например `<Button />`). */
35
+ asChild?: boolean;
36
+ } & import('react').RefAttributes<HTMLElement>>;
37
+ export type DropdownContentProps = HTMLAttributes<HTMLDivElement>;
38
+ export declare const DropdownContent: import('react').ForwardRefExoticComponent<DropdownContentProps & import('react').RefAttributes<HTMLDivElement>>;
39
+ export type DropdownGroupProps = HTMLAttributes<HTMLDivElement> & {
40
+ /**
41
+ * Переопределить показ индикатора выбора слева для этой группы и вложенных групп (только при одиночном выборе).
42
+ * Не задано — наследовать от родителя (`Dropdown` или внешней `DropdownGroup`).
43
+ */
44
+ selectionIndicator?: boolean;
45
+ };
46
+ /**
47
+ * Логическая группа пунктов (как `DropdownMenuGroup`): внутри — `Dropdown.Label`, `Dropdown.Item`, без лишнего отступа между соседними группами кроме `gap` у контента и `Dropdown.Separator`.
48
+ */
49
+ export declare function DropdownGroup({ className, children, selectionIndicator, ...rest }: DropdownGroupProps): import("react/jsx-runtime").JSX.Element;
50
+ export declare namespace DropdownGroup {
51
+ var displayName: string;
52
+ }
53
+ export type DropdownLabelProps = HTMLAttributes<HTMLDivElement>;
54
+ export declare function DropdownLabel({ className, children, ...rest }: DropdownLabelProps): import("react/jsx-runtime").JSX.Element;
55
+ export declare namespace DropdownLabel {
56
+ var displayName: string;
57
+ }
58
+ export type DropdownSeparatorProps = HTMLAttributes<HTMLDivElement>;
59
+ export declare function DropdownSeparator({ className, ...rest }: DropdownSeparatorProps): import("react/jsx-runtime").JSX.Element;
60
+ export declare namespace DropdownSeparator {
61
+ var displayName: string;
62
+ }
63
+ export type DropdownSubProps = HTMLAttributes<HTMLDivElement>;
64
+ /**
65
+ * Вложенное меню по hover (и по клику для тач): `DropdownSubTrigger` + `DropdownSubContent`.
66
+ */
67
+ export declare function DropdownSub({ className, children, ...rest }: DropdownSubProps): import("react/jsx-runtime").JSX.Element;
68
+ export declare namespace DropdownSub {
69
+ var displayName: string;
70
+ }
71
+ export type DropdownSubTriggerProps = HTMLAttributes<HTMLDivElement> & {
72
+ /** Пробросить пропы на единственного ребёнка (обёртка вокруг текста). */
73
+ asChild?: boolean;
74
+ };
75
+ export declare const DropdownSubTrigger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
76
+ /** Пробросить пропы на единственного ребёнка (обёртка вокруг текста). */
77
+ asChild?: boolean;
78
+ } & import('react').RefAttributes<HTMLDivElement>>;
79
+ export type DropdownSubContentProps = HTMLAttributes<HTMLDivElement>;
80
+ export declare const DropdownSubContent: import('react').ForwardRefExoticComponent<DropdownSubContentProps & import('react').RefAttributes<HTMLDivElement>>;
81
+ export type DropdownItemVariant = "default" | "danger" | "warning" | "info" | "success";
82
+ export type DropdownItemProps = Omit<HTMLAttributes<HTMLButtonElement>, "type" | "value"> & {
83
+ /** Уникальный ключ пункта; для режима выбора участвует в `value` / `onValueChange`. */
84
+ value: string;
85
+ disabled?: boolean;
86
+ /**
87
+ * Пункт участвует в выборе значения; при `multiple` или при включённом `selectionIndicator` у `Dropdown` / `Dropdown.Group` слева показывается индикатор.
88
+ * `false` — действие: без выбора значения; клик закрывает меню.
89
+ */
90
+ selection?: boolean;
91
+ /** Семантический цвет подписи и строки (описание и подсказка наследуют тон с прозрачностью). */
92
+ variant?: DropdownItemVariant;
93
+ /** Второстепенная строка под заголовком. */
94
+ description?: ReactNode;
95
+ /** Справа: подсказка или иконка (`text-muted` у варианта `default`). */
96
+ hint?: ReactNode;
97
+ };
98
+ export declare const DropdownItem: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement>, "type" | "value"> & {
99
+ /** Уникальный ключ пункта; для режима выбора участвует в `value` / `onValueChange`. */
100
+ value: string;
101
+ disabled?: boolean;
102
+ /**
103
+ * Пункт участвует в выборе значения; при `multiple` или при включённом `selectionIndicator` у `Dropdown` / `Dropdown.Group` слева показывается индикатор.
104
+ * `false` — действие: без выбора значения; клик закрывает меню.
105
+ */
106
+ selection?: boolean;
107
+ /** Семантический цвет подписи и строки (описание и подсказка наследуют тон с прозрачностью). */
108
+ variant?: DropdownItemVariant;
109
+ /** Второстепенная строка под заголовком. */
110
+ description?: ReactNode;
111
+ /** Справа: подсказка или иконка (`text-muted` у варианта `default`). */
112
+ hint?: ReactNode;
113
+ } & import('react').RefAttributes<HTMLButtonElement>>;
114
+ /** Составной API: `Dropdown.Trigger`, `Dropdown.Content`, `Dropdown.Item`, … — как у `Expandable.Panel`. */
115
+ export declare const Dropdown: typeof DropdownRoot & {
116
+ Trigger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
117
+ /** Пробросить пропы на единственного ребёнка (например `<Button />`). */
118
+ asChild?: boolean;
119
+ } & import('react').RefAttributes<HTMLElement>>;
120
+ Content: import('react').ForwardRefExoticComponent<DropdownContentProps & import('react').RefAttributes<HTMLDivElement>>;
121
+ Group: typeof DropdownGroup;
122
+ Label: typeof DropdownLabel;
123
+ Separator: typeof DropdownSeparator;
124
+ Item: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement>, "type" | "value"> & {
125
+ /** Уникальный ключ пункта; для режима выбора участвует в `value` / `onValueChange`. */
126
+ value: string;
127
+ disabled?: boolean;
128
+ /**
129
+ * Пункт участвует в выборе значения; при `multiple` или при включённом `selectionIndicator` у `Dropdown` / `Dropdown.Group` слева показывается индикатор.
130
+ * `false` — действие: без выбора значения; клик закрывает меню.
131
+ */
132
+ selection?: boolean;
133
+ /** Семантический цвет подписи и строки (описание и подсказка наследуют тон с прозрачностью). */
134
+ variant?: DropdownItemVariant;
135
+ /** Второстепенная строка под заголовком. */
136
+ description?: ReactNode;
137
+ /** Справа: подсказка или иконка (`text-muted` у варианта `default`). */
138
+ hint?: ReactNode;
139
+ } & import('react').RefAttributes<HTMLButtonElement>>;
140
+ Sub: typeof DropdownSub;
141
+ SubTrigger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
142
+ /** Пробросить пропы на единственного ребёнка (обёртка вокруг текста). */
143
+ asChild?: boolean;
144
+ } & import('react').RefAttributes<HTMLDivElement>>;
145
+ SubContent: import('react').ForwardRefExoticComponent<DropdownSubContentProps & import('react').RefAttributes<HTMLDivElement>>;
146
+ };
147
+ export {};
@@ -0,0 +1 @@
1
+ export { Dropdown, DropdownTrigger, DropdownContent, DropdownGroup, DropdownLabel, DropdownSeparator, DropdownItem, DropdownSub, DropdownSubTrigger, DropdownSubContent, type DropdownProps, type DropdownTriggerProps, type DropdownContentProps, type DropdownGroupProps, type DropdownLabelProps, type DropdownSeparatorProps, type DropdownItemProps, type DropdownItemVariant, type DropdownSubProps, type DropdownSubTriggerProps, type DropdownSubContentProps, } from './Dropdown';
@@ -0,0 +1,44 @@
1
+ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
+ export type ExpandableRootProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
3
+ children?: ReactNode;
4
+ defaultOpen?: boolean;
5
+ open?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ disabled?: boolean;
8
+ };
9
+ export type ExpandableTriggerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
10
+ /** Если `true`, автоматический шеврон справа не показывается — используйте `<Expandable.Chevron />` внутри. */
11
+ hideChevron?: boolean;
12
+ };
13
+ export type ExpandableIconProps = HTMLAttributes<HTMLSpanElement>;
14
+ export type ExpandableContentProps = HTMLAttributes<HTMLDivElement>;
15
+ export type ExpandableTitleProps = HTMLAttributes<HTMLSpanElement>;
16
+ export type ExpandableDescriptionProps = HTMLAttributes<HTMLSpanElement>;
17
+ export type ExpandableChevronProps = HTMLAttributes<HTMLSpanElement>;
18
+ export type ExpandablePanelProps = HTMLAttributes<HTMLDivElement>;
19
+ declare function ExpandableIcon({ className, ...props }: ExpandableIconProps): import("react/jsx-runtime").JSX.Element;
20
+ declare function ExpandableContent({ className, ...props }: ExpandableContentProps): import("react/jsx-runtime").JSX.Element;
21
+ declare function ExpandableTitle({ className, ...props }: ExpandableTitleProps): import("react/jsx-runtime").JSX.Element;
22
+ declare function ExpandableDescription({ className, ...props }: ExpandableDescriptionProps): import("react/jsx-runtime").JSX.Element;
23
+ declare function ExpandableChevron({ className, ...props }: ExpandableChevronProps): import("react/jsx-runtime").JSX.Element | null;
24
+ export type ExpandableProps = ExpandableRootProps;
25
+ /** Раскрывающийся блок: составной API — `Expandable` (корень), `Trigger`, `Panel`, опционально `Icon`, `Content`, `Title`, `Description`, `Chevron`. Лёгкое сжатие строки тригера при нажатии (anime.js). */
26
+ export declare const Expandable: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
27
+ children?: ReactNode;
28
+ defaultOpen?: boolean;
29
+ open?: boolean;
30
+ onOpenChange?: (open: boolean) => void;
31
+ disabled?: boolean;
32
+ } & import('react').RefAttributes<HTMLDivElement>> & {
33
+ Trigger: import('react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
34
+ /** Если `true`, автоматический шеврон справа не показывается — используйте `<Expandable.Chevron />` внутри. */
35
+ hideChevron?: boolean;
36
+ } & import('react').RefAttributes<HTMLButtonElement>>;
37
+ Icon: typeof ExpandableIcon;
38
+ Content: typeof ExpandableContent;
39
+ Title: typeof ExpandableTitle;
40
+ Description: typeof ExpandableDescription;
41
+ Chevron: typeof ExpandableChevron;
42
+ Panel: import('react').ForwardRefExoticComponent<ExpandablePanelProps & import('react').RefAttributes<HTMLDivElement>>;
43
+ };
44
+ export {};
@@ -0,0 +1 @@
1
+ export { Expandable, type ExpandableProps, type ExpandableRootProps, type ExpandableTriggerProps, type ExpandableIconProps, type ExpandableContentProps, type ExpandableTitleProps, type ExpandableDescriptionProps, type ExpandableChevronProps, type ExpandablePanelProps, } from './Expandable';
@@ -0,0 +1,7 @@
1
+ import { RefObject } from 'react';
2
+ export type GlassBackdropProps = {
3
+ containerRef: RefObject<HTMLElement | null>;
4
+ refractionIntensity?: number;
5
+ };
6
+ /** Слои 1–2 стекла: линза + WebGL (контент добавляет обёртка). */
7
+ export declare function GlassBackdrop({ containerRef, refractionIntensity, }: GlassBackdropProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { RefObject } from 'react';
2
+ export type GlassShaderLayerProps = {
3
+ /** 0 — слой скрыт; иначе сила блика по краю (0…1+) */
4
+ intensity: number;
5
+ /**
6
+ * Раньше включало анимацию шейдера; сейчас слой статичный, проп игнорируется
7
+ * (оставлен для совместимости API).
8
+ */
9
+ animated?: boolean;
10
+ containerRef: RefObject<HTMLElement | null>;
11
+ className?: string;
12
+ };
13
+ /** Слой 2: OGL — нейтральный fresnel-подобный блик только у границ блока. */
14
+ export declare function GlassShaderLayer({ intensity, containerRef, className, }: GlassShaderLayerProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,16 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type GlassSurfaceProps = HTMLAttributes<HTMLDivElement> & {
3
+ /** Классы для внутреннего блока с контентом (слой 3) */
4
+ contentClassName?: string;
5
+ /** Интенсивность OGL-блика по границам блока, 0 = только CSS-стекло */
6
+ refractionIntensity?: number;
7
+ /** Устарело: слой OGL статичный, значение не используется */
8
+ refractionAnimated?: boolean;
9
+ };
10
+ /**
11
+ * Стекло из трёх слоёв:
12
+ * 1. Линза — tint + backdrop blur + усиление по краю (CSS);
13
+ * 2. OGL — нейтральный fresnel-блик только по контуру блока;
14
+ * 3. Контент.
15
+ */
16
+ export declare function GlassSurface({ className, contentClassName, children, refractionIntensity, refractionAnimated: _refractionAnimated, style, ...rest }: GlassSurfaceProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Mesh, Program, Renderer, Triangle } from 'ogl';
2
+ export type GlassLensRuntime = {
3
+ renderer: Renderer;
4
+ mesh: Mesh;
5
+ program: Program;
6
+ geometry: Triangle;
7
+ resize: (cssW: number, cssH: number) => void;
8
+ render: (intensity: number) => void;
9
+ dispose: () => void;
10
+ };
11
+ export declare function createGlassLensRuntime(canvas: HTMLCanvasElement): GlassLensRuntime | null;
@@ -0,0 +1,3 @@
1
+ export { GlassBackdrop, type GlassBackdropProps } from './GlassBackdrop';
2
+ export { GlassShaderLayer, type GlassShaderLayerProps, } from './GlassShaderLayer';
3
+ export { GlassSurface, type GlassSurfaceProps } from './GlassSurface';
@@ -0,0 +1,71 @@
1
+ import { InputHTMLAttributes, PointerEventHandler, ReactNode } from 'react';
2
+ import { ButtonGroupSegment } from '../utils/buttonGroupSegment';
3
+ export type InputVariant = "default" | "outline";
4
+ /** Валидация / обратная связь: бордер оболочки и цвет примечания. */
5
+ export type InputStatus = "default" | "danger" | "success" | "warning";
6
+ /** Совпадает с размерами `Button` по высоте (`base`, `large`, `xlarge`). Без `small`. */
7
+ export type InputSize = "base" | "large" | "xlarge";
8
+ export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "prefix" | "onPointerDown"> & {
9
+ /** Визуал заливки. */
10
+ variant?: InputVariant;
11
+ /**
12
+ * Высота и отступы поля — как у `Button` того же размера. По умолчанию `base` (`min-h-8`, `px-plus py-small`).
13
+ */
14
+ size?: InputSize;
15
+ /**
16
+ * Склейка в `ButtonGroup`: без скруглений на общей стороне с соседом.
17
+ * Задаётся из `<ButtonGroup>`.
18
+ */
19
+ groupSegment?: ButtonGroupSegment;
20
+ /** Состояние поля */
21
+ status?: InputStatus;
22
+ /** Подпись над полем. */
23
+ label?: string;
24
+ /** Красная звездочка справа от подписи. */
25
+ isRequired?: boolean;
26
+ /** Примечание под полем (опционально). */
27
+ hint?: string;
28
+ /** Тип значения: текст, число, пароль или файл (с превью для изображений). */
29
+ inputType?: "text" | "number" | "password" | "file";
30
+ /** Слот слева внутри оболочки, отделён вертикальной чертой. */
31
+ prefix?: ReactNode;
32
+ /** Слот справа внутри оболочки, отделён вертикальной чертой. */
33
+ suffix?: ReactNode;
34
+ /**
35
+ * Нажатие на оболочку поля (включая область префикса/суффикса).
36
+ * Вызывается до анимации сжатия; предотвратите по умолчанию, чтобы отменить squeeze.
37
+ */
38
+ onPointerDown?: PointerEventHandler<HTMLDivElement>;
39
+ };
40
+ export declare const Input: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "onPointerDown" | "type"> & {
41
+ /** Визуал заливки. */
42
+ variant?: InputVariant;
43
+ /**
44
+ * Высота и отступы поля — как у `Button` того же размера. По умолчанию `base` (`min-h-8`, `px-plus py-small`).
45
+ */
46
+ size?: InputSize;
47
+ /**
48
+ * Склейка в `ButtonGroup`: без скруглений на общей стороне с соседом.
49
+ * Задаётся из `<ButtonGroup>`.
50
+ */
51
+ groupSegment?: ButtonGroupSegment;
52
+ /** Состояние поля */
53
+ status?: InputStatus;
54
+ /** Подпись над полем. */
55
+ label?: string;
56
+ /** Красная звездочка справа от подписи. */
57
+ isRequired?: boolean;
58
+ /** Примечание под полем (опционально). */
59
+ hint?: string;
60
+ /** Тип значения: текст, число, пароль или файл (с превью для изображений). */
61
+ inputType?: "text" | "number" | "password" | "file";
62
+ /** Слот слева внутри оболочки, отделён вертикальной чертой. */
63
+ prefix?: ReactNode;
64
+ /** Слот справа внутри оболочки, отделён вертикальной чертой. */
65
+ suffix?: ReactNode;
66
+ /**
67
+ * Нажатие на оболочку поля (включая область префикса/суффикса).
68
+ * Вызывается до анимации сжатия; предотвратите по умолчанию, чтобы отменить squeeze.
69
+ */
70
+ onPointerDown?: PointerEventHandler<HTMLDivElement>;
71
+ } & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export { Input, type InputProps, type InputSize, type InputVariant, type InputStatus, } from './Input';
@@ -0,0 +1,40 @@
1
+ import { RippleDirection } from '../utils/pressRipple';
2
+ /**
3
+ * Именованные заливки converge-ripple (токены темы; `accentMuted` — широкие триггеры).
4
+ * В сторибуке и приложении можно передать ключ в `color` или любую произвольную CSS-строку.
5
+ */
6
+ export declare const RIPPLE_COLOR: {
7
+ readonly accentSolid: "var(--color-converge-ripple-accent-fill)";
8
+ readonly accentSoft: "var(--color-converge-ripple-accent-soft)";
9
+ readonly secondary: "var(--color-converge-ripple-secondary)";
10
+ readonly danger: "var(--color-converge-ripple-danger)";
11
+ readonly success: "var(--color-converge-ripple-success)";
12
+ readonly info: "var(--color-converge-ripple-info)";
13
+ readonly warning: "var(--color-converge-ripple-warning)";
14
+ readonly accentMuted: "var(--color-converge-ripple-accent-muted)";
15
+ };
16
+ export type RippleColor = keyof typeof RIPPLE_COLOR;
17
+ export type RippleProps = {
18
+ /**
19
+ * Ключ из `RIPPLE_COLOR` или любая строка цвета для фона круга
20
+ * (`"#fff"`, `rgb()`, `color-mix`, `var(...)`).
21
+ */
22
+ color?: RippleColor | string;
23
+ /** @deprecated Используйте `color`. */
24
+ tone?: string;
25
+ /** Не создавать волны и не вешать слушатель. */
26
+ disabled?: boolean;
27
+ /** Длительность анимации точки сходимости, мс. */
28
+ duration?: number;
29
+ /** Направление: сжатие к центру (`in`) или расход от точки (`out`). */
30
+ direction?: RippleDirection;
31
+ className?: string;
32
+ };
33
+ /** Начальная непрозрачность точки задаётся в motion-токенах (не часть публичного API). */
34
+ /**
35
+ * Сходящийся или расходящийся риппл от точки нажатия (anime.js). Слушатель вешается на ближайший
36
+ * интерактивный корень (`button`, ссылка, `[role='button']`) или на родителя слоя. У
37
+ * `Expandable.Trigger` узлы `<Ripple />` выносятся на полный размер кнопки.
38
+ */
39
+ export declare function Ripple({ color, tone, disabled, duration, direction, className, }: RippleProps): import("react/jsx-runtime").JSX.Element;
40
+ export type { RippleDirection };
@@ -0,0 +1 @@
1
+ export { Ripple, RIPPLE_COLOR, type RippleProps, type RippleColor, type RippleDirection, } from './Ripple';
@@ -0,0 +1,54 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export type SearchInputSize = "base" | "large";
3
+ export type SearchInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
4
+ /**
5
+ * Высота в свёрнутом виде и габариты иконки / поля.
6
+ * Только `base` и `large`: `base` = как `Button size="base"` (32px).
7
+ * По умолчанию `base`.
8
+ */
9
+ size?: SearchInputSize;
10
+ /** Ширина в развёрнутом виде (px). */
11
+ expandedWidth?: number;
12
+ /** Начать развёрнутым. */
13
+ defaultExpanded?: boolean;
14
+ /** Контролируемое раскрытие. */
15
+ expanded?: boolean;
16
+ onExpandedChange?: (expanded: boolean) => void;
17
+ /**
18
+ * Свернуть при потере фокуса, если значение пустое.
19
+ * По умолчанию true.
20
+ */
21
+ collapseOnBlur?: boolean;
22
+ /**
23
+ * Текущая строка после ввода (удобно для поиска; дублирует `onChange`).
24
+ */
25
+ onValueChange?: (value: string) => void;
26
+ /** Converge-ripple на оболочке (реализация — `<Ripple />` внутри). @default false */
27
+ ripple?: boolean;
28
+ };
29
+ export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
30
+ /**
31
+ * Высота в свёрнутом виде и габариты иконки / поля.
32
+ * Только `base` и `large`: `base` = как `Button size="base"` (32px).
33
+ * По умолчанию `base`.
34
+ */
35
+ size?: SearchInputSize;
36
+ /** Ширина в развёрнутом виде (px). */
37
+ expandedWidth?: number;
38
+ /** Начать развёрнутым. */
39
+ defaultExpanded?: boolean;
40
+ /** Контролируемое раскрытие. */
41
+ expanded?: boolean;
42
+ onExpandedChange?: (expanded: boolean) => void;
43
+ /**
44
+ * Свернуть при потере фокуса, если значение пустое.
45
+ * По умолчанию true.
46
+ */
47
+ collapseOnBlur?: boolean;
48
+ /**
49
+ * Текущая строка после ввода (удобно для поиска; дублирует `onChange`).
50
+ */
51
+ onValueChange?: (value: string) => void;
52
+ /** Converge-ripple на оболочке (реализация — `<Ripple />` внутри). @default false */
53
+ ripple?: boolean;
54
+ } & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export { SearchInput, type SearchInputProps, type SearchInputSize, } from './SearchInput';