@latty-ds/react 0.2.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 (98) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +115 -0
  3. package/dist/components/Accordion/Accordion.d.ts +20 -0
  4. package/dist/components/Accordion/index.d.ts +1 -0
  5. package/dist/components/Alert/Alert.d.ts +22 -0
  6. package/dist/components/Alert/index.d.ts +1 -0
  7. package/dist/components/Avatar/Avatar.d.ts +18 -0
  8. package/dist/components/Avatar/index.d.ts +1 -0
  9. package/dist/components/Badge/Badge.d.ts +16 -0
  10. package/dist/components/Badge/index.d.ts +1 -0
  11. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  12. package/dist/components/Breadcrumb/index.d.ts +1 -0
  13. package/dist/components/BreadcrumbItem/BreadcrumbItem.d.ts +12 -0
  14. package/dist/components/BreadcrumbItem/index.d.ts +1 -0
  15. package/dist/components/Button/Button.d.ts +34 -0
  16. package/dist/components/Button/index.d.ts +1 -0
  17. package/dist/components/Calendar/Calendar.d.ts +34 -0
  18. package/dist/components/Calendar/index.d.ts +1 -0
  19. package/dist/components/Checkbox/Checkbox.d.ts +28 -0
  20. package/dist/components/Checkbox/index.d.ts +1 -0
  21. package/dist/components/Chip/Chip.d.ts +20 -0
  22. package/dist/components/Chip/index.d.ts +1 -0
  23. package/dist/components/ColorInput/ColorInput.d.ts +20 -0
  24. package/dist/components/ColorInput/index.d.ts +1 -0
  25. package/dist/components/Combobox/Combobox.d.ts +28 -0
  26. package/dist/components/Combobox/index.d.ts +1 -0
  27. package/dist/components/DateInput/DateInput.d.ts +38 -0
  28. package/dist/components/DateInput/index.d.ts +1 -0
  29. package/dist/components/Datepicker/Datepicker.d.ts +34 -0
  30. package/dist/components/Datepicker/index.d.ts +1 -0
  31. package/dist/components/Dialog/Dialog.d.ts +26 -0
  32. package/dist/components/Dialog/index.d.ts +1 -0
  33. package/dist/components/Divider/Divider.d.ts +12 -0
  34. package/dist/components/Divider/index.d.ts +1 -0
  35. package/dist/components/Dropdown/Dropdown.d.ts +14 -0
  36. package/dist/components/Dropdown/index.d.ts +1 -0
  37. package/dist/components/DropdownItem/DropdownItem.d.ts +14 -0
  38. package/dist/components/DropdownItem/index.d.ts +1 -0
  39. package/dist/components/Header/Header.d.ts +14 -0
  40. package/dist/components/Header/index.d.ts +1 -0
  41. package/dist/components/Icon/Icon.d.ts +11 -0
  42. package/dist/components/Icon/index.d.ts +1 -0
  43. package/dist/components/IconButton/IconButton.d.ts +26 -0
  44. package/dist/components/IconButton/index.d.ts +1 -0
  45. package/dist/components/Image/Image.d.ts +14 -0
  46. package/dist/components/Image/index.d.ts +1 -0
  47. package/dist/components/Link/Link.d.ts +10 -0
  48. package/dist/components/Link/index.d.ts +1 -0
  49. package/dist/components/List/List.d.ts +16 -0
  50. package/dist/components/List/index.d.ts +1 -0
  51. package/dist/components/ListItem/ListItem.d.ts +10 -0
  52. package/dist/components/ListItem/index.d.ts +1 -0
  53. package/dist/components/Nav/Nav.d.ts +10 -0
  54. package/dist/components/Nav/index.d.ts +1 -0
  55. package/dist/components/NavItem/NavItem.d.ts +24 -0
  56. package/dist/components/NavItem/index.d.ts +1 -0
  57. package/dist/components/Pagination/Pagination.d.ts +16 -0
  58. package/dist/components/Pagination/index.d.ts +1 -0
  59. package/dist/components/Progress/Progress.d.ts +16 -0
  60. package/dist/components/Progress/index.d.ts +1 -0
  61. package/dist/components/Radio/Radio.d.ts +26 -0
  62. package/dist/components/Radio/index.d.ts +1 -0
  63. package/dist/components/RadioGroup/RadioGroup.d.ts +22 -0
  64. package/dist/components/RadioGroup/index.d.ts +1 -0
  65. package/dist/components/Select/Select.d.ts +26 -0
  66. package/dist/components/Select/index.d.ts +1 -0
  67. package/dist/components/SidePanel/SidePanel.d.ts +22 -0
  68. package/dist/components/SidePanel/index.d.ts +1 -0
  69. package/dist/components/Skeleton/Skeleton.d.ts +14 -0
  70. package/dist/components/Skeleton/index.d.ts +1 -0
  71. package/dist/components/Slider/Slider.d.ts +28 -0
  72. package/dist/components/Slider/index.d.ts +1 -0
  73. package/dist/components/Snackbar/Snackbar.d.ts +24 -0
  74. package/dist/components/Snackbar/index.d.ts +1 -0
  75. package/dist/components/Spinner/Spinner.d.ts +10 -0
  76. package/dist/components/Spinner/index.d.ts +1 -0
  77. package/dist/components/Surface/Surface.d.ts +12 -0
  78. package/dist/components/Surface/index.d.ts +1 -0
  79. package/dist/components/Switch/Switch.d.ts +26 -0
  80. package/dist/components/Switch/index.d.ts +1 -0
  81. package/dist/components/Tab/Tab.d.ts +20 -0
  82. package/dist/components/Tab/index.d.ts +1 -0
  83. package/dist/components/TabGroup/TabGroup.d.ts +14 -0
  84. package/dist/components/TabGroup/index.d.ts +1 -0
  85. package/dist/components/TabPanel/TabPanel.d.ts +10 -0
  86. package/dist/components/TabPanel/index.d.ts +1 -0
  87. package/dist/components/Table/Table.d.ts +30 -0
  88. package/dist/components/Table/index.d.ts +1 -0
  89. package/dist/components/Text/Text.d.ts +10 -0
  90. package/dist/components/Text/index.d.ts +1 -0
  91. package/dist/components/Textfield/Textfield.d.ts +40 -0
  92. package/dist/components/Textfield/index.d.ts +1 -0
  93. package/dist/components/Tooltip/Tooltip.d.ts +16 -0
  94. package/dist/components/Tooltip/index.d.ts +1 -0
  95. package/dist/index.cjs +823 -0
  96. package/dist/index.d.ts +46 -0
  97. package/dist/index.js +754 -0
  98. package/package.json +63 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Latty Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # @latty-ds/react
2
+
3
+ React wrappers for the Latty design system — typed React components backed by `@latty-ds/web`.
4
+
5
+ Each component is a thin wrapper that forwards props to the underlying Web Component, handles React's synthetic event system, and provides full TypeScript types.
6
+
7
+ ## Requirements
8
+
9
+ - React 18 or 19
10
+ - `@latty-ds/tokens` and `@latty-ds/web` must be installed and their CSS imported
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ pnpm add @latty-ds/tokens @latty-ds/web @latty-ds/react
16
+ ```
17
+
18
+ ## Setup
19
+
20
+ Import the CSS tokens once in your app entry point:
21
+
22
+ ```css
23
+ /* your global stylesheet */
24
+ @import '@latty-ds/tokens/tokens.css';
25
+ @import '@latty-ds/tokens/semantic.css';
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```tsx
31
+ import { Button, Textfield, Badge, Spinner } from '@latty-ds/react';
32
+
33
+ function App() {
34
+ return (
35
+ <form>
36
+ <Textfield label="Email" type="email" required />
37
+ <Button variant="primary" onClick={() => console.log('saved')}>
38
+ Save changes
39
+ </Button>
40
+ <Badge variant="success">Active</Badge>
41
+ </form>
42
+ );
43
+ }
44
+ ```
45
+
46
+ ### Events
47
+
48
+ React wrappers map custom events to `onEventName` props:
49
+
50
+ ```tsx
51
+ <Button onClick={handleClick}>Click me</Button>
52
+ <Switch onChange={handleChange} />
53
+ <Textfield onInput={handleInput} />
54
+ ```
55
+
56
+ ### All components
57
+
58
+ All components from `@latty-ds/web` are available as named exports:
59
+
60
+ ```ts
61
+ import {
62
+ Accordion,
63
+ Alert,
64
+ Avatar,
65
+ Badge,
66
+ Breadcrumb,
67
+ BreadcrumbItem,
68
+ Button,
69
+ Checkbox,
70
+ Chip,
71
+ Dialog,
72
+ Divider,
73
+ Dropdown,
74
+ Header,
75
+ Link,
76
+ List,
77
+ Nav,
78
+ Progress,
79
+ Radio,
80
+ RadioGroup,
81
+ Select,
82
+ Skeleton,
83
+ Slider,
84
+ Snackbar,
85
+ Spinner,
86
+ Surface,
87
+ Switch,
88
+ Tab,
89
+ TabGroup,
90
+ Table,
91
+ Text,
92
+ Textfield,
93
+ Tooltip
94
+ } from '@latty-ds/react';
95
+ ```
96
+
97
+ ### TypeScript
98
+
99
+ All components are fully typed. Props mirror the Web Component's properties:
100
+
101
+ ```tsx
102
+ import type { ButtonProps } from '@latty-ds/react';
103
+
104
+ function MyButton(props: ButtonProps) {
105
+ return <Button {...props} />;
106
+ }
107
+ ```
108
+
109
+ ## How it works
110
+
111
+ The wrappers are auto-generated from `custom-elements.json` (the Custom Elements Manifest produced by `@latty-ds/web`). Run `pnpm codegen:wrappers` in the repo root after modifying web components to regenerate them.
112
+
113
+ ## License
114
+
115
+ MIT
@@ -0,0 +1,20 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Accordion as AccordionEl, LattyIconName } from '@latty-ds/web';
3
+ export type AccordionProps = Omit<HTMLAttributes<AccordionEl>, 'onToggle'> & {
4
+ label?: string;
5
+ iconStart?: LattyIconName;
6
+ appearance?: AccordionEl['appearance'];
7
+ open?: boolean;
8
+ disabled?: boolean;
9
+ uppercase?: boolean;
10
+ onToggle?: (event: CustomEvent) => void;
11
+ };
12
+ export declare const Accordion: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<AccordionEl>, "onToggle"> & {
13
+ label?: string;
14
+ iconStart?: LattyIconName;
15
+ appearance?: AccordionEl["appearance"];
16
+ open?: boolean;
17
+ disabled?: boolean;
18
+ uppercase?: boolean;
19
+ onToggle?: (event: CustomEvent) => void;
20
+ } & import("react").RefAttributes<AccordionEl>>;
@@ -0,0 +1 @@
1
+ export { Accordion, type AccordionProps } from './Accordion';
@@ -0,0 +1,22 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Alert as AlertEl, LattyIconName } from '@latty-ds/web';
3
+ export type AlertProps = HTMLAttributes<AlertEl> & {
4
+ variant?: AlertEl['variant'];
5
+ appearance?: AlertEl['appearance'];
6
+ title?: string;
7
+ icon?: LattyIconName;
8
+ closable?: boolean;
9
+ background?: string;
10
+ uppercase?: boolean;
11
+ onClose?: (event: CustomEvent) => void;
12
+ };
13
+ export declare const Alert: import("react").ForwardRefExoticComponent<HTMLAttributes<AlertEl> & {
14
+ variant?: AlertEl["variant"];
15
+ appearance?: AlertEl["appearance"];
16
+ title?: string;
17
+ icon?: LattyIconName;
18
+ closable?: boolean;
19
+ background?: string;
20
+ uppercase?: boolean;
21
+ onClose?: (event: CustomEvent) => void;
22
+ } & import("react").RefAttributes<AlertEl>>;
@@ -0,0 +1 @@
1
+ export { Alert, type AlertProps } from './Alert';
@@ -0,0 +1,18 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Avatar as AvatarEl } from '@latty-ds/web';
3
+ export type AvatarProps = HTMLAttributes<AvatarEl> & {
4
+ src?: string;
5
+ name?: string;
6
+ alt?: string;
7
+ size?: AvatarEl['size'];
8
+ shape?: AvatarEl['shape'];
9
+ color?: AvatarEl['color'];
10
+ };
11
+ export declare const Avatar: import("react").ForwardRefExoticComponent<HTMLAttributes<AvatarEl> & {
12
+ src?: string;
13
+ name?: string;
14
+ alt?: string;
15
+ size?: AvatarEl["size"];
16
+ shape?: AvatarEl["shape"];
17
+ color?: AvatarEl["color"];
18
+ } & import("react").RefAttributes<AvatarEl>>;
@@ -0,0 +1 @@
1
+ export { Avatar, type AvatarProps } from './Avatar';
@@ -0,0 +1,16 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Badge as BadgeEl } from '@latty-ds/web';
3
+ export type BadgeProps = HTMLAttributes<BadgeEl> & {
4
+ appearance?: BadgeEl['appearance'];
5
+ variant?: BadgeEl['variant'];
6
+ size?: BadgeEl['size'];
7
+ content?: string;
8
+ dot?: boolean;
9
+ };
10
+ export declare const Badge: import("react").ForwardRefExoticComponent<HTMLAttributes<BadgeEl> & {
11
+ appearance?: BadgeEl["appearance"];
12
+ variant?: BadgeEl["variant"];
13
+ size?: BadgeEl["size"];
14
+ content?: string;
15
+ dot?: boolean;
16
+ } & import("react").RefAttributes<BadgeEl>>;
@@ -0,0 +1 @@
1
+ export { Badge, type BadgeProps } from './Badge';
@@ -0,0 +1,8 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Breadcrumb as BreadcrumbEl } from '@latty-ds/web';
3
+ export type BreadcrumbProps = HTMLAttributes<BreadcrumbEl> & {
4
+ separator?: string;
5
+ };
6
+ export declare const Breadcrumb: import("react").ForwardRefExoticComponent<HTMLAttributes<BreadcrumbEl> & {
7
+ separator?: string;
8
+ } & import("react").RefAttributes<BreadcrumbEl>>;
@@ -0,0 +1 @@
1
+ export { Breadcrumb, type BreadcrumbProps } from './Breadcrumb';
@@ -0,0 +1,12 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { BreadcrumbItem as BreadcrumbItemEl } from '@latty-ds/web';
3
+ export type BreadcrumbItemProps = HTMLAttributes<BreadcrumbItemEl> & {
4
+ href?: string;
5
+ current?: boolean;
6
+ separator?: string;
7
+ };
8
+ export declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<HTMLAttributes<BreadcrumbItemEl> & {
9
+ href?: string;
10
+ current?: boolean;
11
+ separator?: string;
12
+ } & import("react").RefAttributes<BreadcrumbItemEl>>;
@@ -0,0 +1 @@
1
+ export { BreadcrumbItem, type BreadcrumbItemProps } from './BreadcrumbItem';
@@ -0,0 +1,34 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Button as ButtonEl, LattyIconName } from '@latty-ds/web';
3
+ export type ButtonProps = HTMLAttributes<ButtonEl> & {
4
+ formAssociated?: boolean;
5
+ variant?: ButtonEl['variant'];
6
+ appearance?: ButtonEl['appearance'];
7
+ size?: ButtonEl['size'];
8
+ disabled?: boolean;
9
+ loading?: boolean;
10
+ iconStart?: LattyIconName;
11
+ iconEnd?: LattyIconName;
12
+ fullWidth?: boolean;
13
+ uppercase?: boolean;
14
+ href?: string;
15
+ target?: string;
16
+ rel?: string;
17
+ type?: ButtonEl['type'];
18
+ };
19
+ export declare const Button: import("react").ForwardRefExoticComponent<HTMLAttributes<ButtonEl> & {
20
+ formAssociated?: boolean;
21
+ variant?: ButtonEl["variant"];
22
+ appearance?: ButtonEl["appearance"];
23
+ size?: ButtonEl["size"];
24
+ disabled?: boolean;
25
+ loading?: boolean;
26
+ iconStart?: LattyIconName;
27
+ iconEnd?: LattyIconName;
28
+ fullWidth?: boolean;
29
+ uppercase?: boolean;
30
+ href?: string;
31
+ target?: string;
32
+ rel?: string;
33
+ type?: ButtonEl["type"];
34
+ } & import("react").RefAttributes<ButtonEl>>;
@@ -0,0 +1 @@
1
+ export { Button, type ButtonProps } from './Button';
@@ -0,0 +1,34 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Calendar as CalendarEl } from '@latty-ds/web';
3
+ export type CalendarProps = Omit<HTMLAttributes<CalendarEl>, 'onChange'> & {
4
+ mode?: CalendarEl['mode'];
5
+ value?: string;
6
+ valueStart?: string;
7
+ valueEnd?: string;
8
+ min?: string;
9
+ max?: string;
10
+ locale?: string;
11
+ weekStart?: CalendarEl['weekStart'];
12
+ showOutsideDays?: boolean;
13
+ disabled?: boolean;
14
+ months?: number;
15
+ disabledDates?: CalendarEl['disabledDates'];
16
+ onChange?: (event: CustomEvent) => void;
17
+ onMonthChange?: (event: CustomEvent) => void;
18
+ };
19
+ export declare const Calendar: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<CalendarEl>, "onChange"> & {
20
+ mode?: CalendarEl["mode"];
21
+ value?: string;
22
+ valueStart?: string;
23
+ valueEnd?: string;
24
+ min?: string;
25
+ max?: string;
26
+ locale?: string;
27
+ weekStart?: CalendarEl["weekStart"];
28
+ showOutsideDays?: boolean;
29
+ disabled?: boolean;
30
+ months?: number;
31
+ disabledDates?: CalendarEl["disabledDates"];
32
+ onChange?: (event: CustomEvent) => void;
33
+ onMonthChange?: (event: CustomEvent) => void;
34
+ } & import("react").RefAttributes<CalendarEl>>;
@@ -0,0 +1 @@
1
+ export { Calendar, type CalendarProps } from './Calendar';
@@ -0,0 +1,28 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Checkbox as CheckboxEl } from '@latty-ds/web';
3
+ export type CheckboxProps = Omit<HTMLAttributes<CheckboxEl>, 'onChange'> & {
4
+ variant?: CheckboxEl['variant'];
5
+ size?: CheckboxEl['size'];
6
+ checked?: boolean;
7
+ indeterminate?: boolean;
8
+ disabled?: boolean;
9
+ required?: boolean;
10
+ label?: string;
11
+ labelPosition?: CheckboxEl['labelPosition'];
12
+ name?: string;
13
+ value?: string;
14
+ onChange?: (event: CustomEvent) => void;
15
+ };
16
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<CheckboxEl>, "onChange"> & {
17
+ variant?: CheckboxEl["variant"];
18
+ size?: CheckboxEl["size"];
19
+ checked?: boolean;
20
+ indeterminate?: boolean;
21
+ disabled?: boolean;
22
+ required?: boolean;
23
+ label?: string;
24
+ labelPosition?: CheckboxEl["labelPosition"];
25
+ name?: string;
26
+ value?: string;
27
+ onChange?: (event: CustomEvent) => void;
28
+ } & import("react").RefAttributes<CheckboxEl>>;
@@ -0,0 +1 @@
1
+ export { Checkbox, type CheckboxProps } from './Checkbox';
@@ -0,0 +1,20 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Chip as ChipEl } from '@latty-ds/web';
3
+ export type ChipProps = HTMLAttributes<ChipEl> & {
4
+ appearance?: ChipEl['appearance'];
5
+ variant?: ChipEl['variant'];
6
+ size?: ChipEl['size'];
7
+ disabled?: boolean;
8
+ deletable?: boolean;
9
+ background?: string;
10
+ onDelete?: (event: CustomEvent) => void;
11
+ };
12
+ export declare const Chip: import("react").ForwardRefExoticComponent<HTMLAttributes<ChipEl> & {
13
+ appearance?: ChipEl["appearance"];
14
+ variant?: ChipEl["variant"];
15
+ size?: ChipEl["size"];
16
+ disabled?: boolean;
17
+ deletable?: boolean;
18
+ background?: string;
19
+ onDelete?: (event: CustomEvent) => void;
20
+ } & import("react").RefAttributes<ChipEl>>;
@@ -0,0 +1 @@
1
+ export { Chip, type ChipProps } from './Chip';
@@ -0,0 +1,20 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { ColorInput as ColorInputEl } from '@latty-ds/web';
3
+ export type ColorInputProps = Omit<HTMLAttributes<ColorInputEl>, 'onChange'> & {
4
+ value?: string;
5
+ format?: ColorInputEl['format'];
6
+ label?: string;
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ size?: ColorInputEl['size'];
10
+ onChange?: (event: CustomEvent) => void;
11
+ };
12
+ export declare const ColorInput: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<ColorInputEl>, "onChange"> & {
13
+ value?: string;
14
+ format?: ColorInputEl["format"];
15
+ label?: string;
16
+ placeholder?: string;
17
+ disabled?: boolean;
18
+ size?: ColorInputEl["size"];
19
+ onChange?: (event: CustomEvent) => void;
20
+ } & import("react").RefAttributes<ColorInputEl>>;
@@ -0,0 +1 @@
1
+ export { ColorInput, type ColorInputProps } from './ColorInput';
@@ -0,0 +1,28 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Combobox as ComboboxEl } from '@latty-ds/web';
3
+ export type ComboboxProps = Omit<HTMLAttributes<ComboboxEl>, 'onChange'> & {
4
+ options?: ComboboxEl['options'];
5
+ value?: string;
6
+ label?: string;
7
+ placeholder?: string;
8
+ helperText?: string;
9
+ variant?: ComboboxEl['variant'];
10
+ size?: ComboboxEl['size'];
11
+ disabled?: boolean;
12
+ required?: boolean;
13
+ name?: string;
14
+ onChange?: (event: CustomEvent) => void;
15
+ };
16
+ export declare const Combobox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<ComboboxEl>, "onChange"> & {
17
+ options?: ComboboxEl["options"];
18
+ value?: string;
19
+ label?: string;
20
+ placeholder?: string;
21
+ helperText?: string;
22
+ variant?: ComboboxEl["variant"];
23
+ size?: ComboboxEl["size"];
24
+ disabled?: boolean;
25
+ required?: boolean;
26
+ name?: string;
27
+ onChange?: (event: CustomEvent) => void;
28
+ } & import("react").RefAttributes<ComboboxEl>>;
@@ -0,0 +1 @@
1
+ export { Combobox, type ComboboxProps } from './Combobox';
@@ -0,0 +1,38 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { DateInput as DateInputEl } from '@latty-ds/web';
3
+ export type DateInputProps = Omit<HTMLAttributes<DateInputEl>, 'onChange'> & {
4
+ value?: string;
5
+ min?: string;
6
+ max?: string;
7
+ locale?: string;
8
+ format?: DateInputEl['format'];
9
+ weekStart?: DateInputEl['weekStart'];
10
+ label?: string;
11
+ placeholder?: string;
12
+ helperText?: string;
13
+ variant?: DateInputEl['variant'];
14
+ size?: DateInputEl['size'];
15
+ disabled?: boolean;
16
+ required?: boolean;
17
+ name?: string;
18
+ disabledDates?: DateInputEl['disabledDates'];
19
+ onChange?: (event: CustomEvent) => void;
20
+ };
21
+ export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<DateInputEl>, "onChange"> & {
22
+ value?: string;
23
+ min?: string;
24
+ max?: string;
25
+ locale?: string;
26
+ format?: DateInputEl["format"];
27
+ weekStart?: DateInputEl["weekStart"];
28
+ label?: string;
29
+ placeholder?: string;
30
+ helperText?: string;
31
+ variant?: DateInputEl["variant"];
32
+ size?: DateInputEl["size"];
33
+ disabled?: boolean;
34
+ required?: boolean;
35
+ name?: string;
36
+ disabledDates?: DateInputEl["disabledDates"];
37
+ onChange?: (event: CustomEvent) => void;
38
+ } & import("react").RefAttributes<DateInputEl>>;
@@ -0,0 +1 @@
1
+ export { DateInput, type DateInputProps } from './DateInput';
@@ -0,0 +1,34 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Datepicker as DatepickerEl } from '@latty-ds/web';
3
+ export type DatepickerProps = Omit<HTMLAttributes<DatepickerEl>, 'onChange' | 'onInput'> & {
4
+ type?: DatepickerEl['type'];
5
+ value?: string;
6
+ min?: string;
7
+ max?: string;
8
+ label?: string;
9
+ helperText?: string;
10
+ variant?: DatepickerEl['variant'];
11
+ size?: DatepickerEl['size'];
12
+ disabled?: boolean;
13
+ required?: boolean;
14
+ readonly?: boolean;
15
+ name?: string;
16
+ onChange?: (event: CustomEvent) => void;
17
+ onInput?: (event: CustomEvent) => void;
18
+ };
19
+ export declare const Datepicker: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<DatepickerEl>, "onChange" | "onInput"> & {
20
+ type?: DatepickerEl["type"];
21
+ value?: string;
22
+ min?: string;
23
+ max?: string;
24
+ label?: string;
25
+ helperText?: string;
26
+ variant?: DatepickerEl["variant"];
27
+ size?: DatepickerEl["size"];
28
+ disabled?: boolean;
29
+ required?: boolean;
30
+ readonly?: boolean;
31
+ name?: string;
32
+ onChange?: (event: CustomEvent) => void;
33
+ onInput?: (event: CustomEvent) => void;
34
+ } & import("react").RefAttributes<DatepickerEl>>;
@@ -0,0 +1 @@
1
+ export { Datepicker, type DatepickerProps } from './Datepicker';
@@ -0,0 +1,26 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Dialog as DialogEl } from '@latty-ds/web';
3
+ export type DialogProps = HTMLAttributes<DialogEl> & {
4
+ size?: DialogEl['size'];
5
+ open?: boolean;
6
+ title?: string;
7
+ noCloseButton?: boolean;
8
+ closeOnBackdropClick?: boolean;
9
+ closeOnEscape?: boolean;
10
+ uppercase?: boolean;
11
+ backdropBlur?: boolean;
12
+ onDialogOpen?: (event: CustomEvent) => void;
13
+ onDialogClose?: (event: CustomEvent) => void;
14
+ };
15
+ export declare const Dialog: import("react").ForwardRefExoticComponent<HTMLAttributes<DialogEl> & {
16
+ size?: DialogEl["size"];
17
+ open?: boolean;
18
+ title?: string;
19
+ noCloseButton?: boolean;
20
+ closeOnBackdropClick?: boolean;
21
+ closeOnEscape?: boolean;
22
+ uppercase?: boolean;
23
+ backdropBlur?: boolean;
24
+ onDialogOpen?: (event: CustomEvent) => void;
25
+ onDialogClose?: (event: CustomEvent) => void;
26
+ } & import("react").RefAttributes<DialogEl>>;
@@ -0,0 +1 @@
1
+ export { Dialog, type DialogProps } from './Dialog';
@@ -0,0 +1,12 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Divider as DividerEl } from '@latty-ds/web';
3
+ export type DividerProps = HTMLAttributes<DividerEl> & {
4
+ orientation?: DividerEl['orientation'];
5
+ appearance?: DividerEl['appearance'];
6
+ label?: string;
7
+ };
8
+ export declare const Divider: import("react").ForwardRefExoticComponent<HTMLAttributes<DividerEl> & {
9
+ orientation?: DividerEl["orientation"];
10
+ appearance?: DividerEl["appearance"];
11
+ label?: string;
12
+ } & import("react").RefAttributes<DividerEl>>;
@@ -0,0 +1 @@
1
+ export { Divider, type DividerProps } from './Divider';
@@ -0,0 +1,14 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Dropdown as DropdownEl } from '@latty-ds/web';
3
+ export type DropdownProps = HTMLAttributes<DropdownEl> & {
4
+ open?: boolean;
5
+ placement?: DropdownEl['placement'];
6
+ onOpen?: (event: CustomEvent) => void;
7
+ onClose?: (event: CustomEvent) => void;
8
+ };
9
+ export declare const Dropdown: import("react").ForwardRefExoticComponent<HTMLAttributes<DropdownEl> & {
10
+ open?: boolean;
11
+ placement?: DropdownEl["placement"];
12
+ onOpen?: (event: CustomEvent) => void;
13
+ onClose?: (event: CustomEvent) => void;
14
+ } & import("react").RefAttributes<DropdownEl>>;
@@ -0,0 +1 @@
1
+ export { Dropdown, type DropdownProps } from './Dropdown';
@@ -0,0 +1,14 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { DropdownItem as DropdownItemEl } from '@latty-ds/web';
3
+ export type DropdownItemProps = HTMLAttributes<DropdownItemEl> & {
4
+ disabled?: boolean;
5
+ selected?: boolean;
6
+ href?: string;
7
+ onSelect?: (event: CustomEvent) => void;
8
+ };
9
+ export declare const DropdownItem: import("react").ForwardRefExoticComponent<HTMLAttributes<DropdownItemEl> & {
10
+ disabled?: boolean;
11
+ selected?: boolean;
12
+ href?: string;
13
+ onSelect?: (event: CustomEvent) => void;
14
+ } & import("react").RefAttributes<DropdownItemEl>>;
@@ -0,0 +1 @@
1
+ export { DropdownItem, type DropdownItemProps } from './DropdownItem';
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Header as HeaderEl } from '@latty-ds/web';
3
+ export type HeaderProps = {
4
+ background?: HeaderEl['background'];
5
+ /** Far-left area — hamburger menu, back button, etc. */
6
+ before?: ReactNode;
7
+ /** Logo or brand mark, placed to the right of `before`. */
8
+ logo?: ReactNode;
9
+ /** Far-right area — user avatar, action icons, etc. */
10
+ after?: ReactNode;
11
+ /** Main content area (nav links, search…); stretches to fill available space. */
12
+ children?: ReactNode;
13
+ };
14
+ export declare const Header: import("react").ForwardRefExoticComponent<HeaderProps & import("react").RefAttributes<HeaderEl>>;
@@ -0,0 +1 @@
1
+ export { Header, type HeaderProps } from './Header';
@@ -0,0 +1,11 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { Icon as IconEl, LattyIconName, IconSize } from '@latty-ds/icons';
3
+ import '@latty-ds/icons';
4
+ export type IconProps = HTMLAttributes<IconEl> & {
5
+ name: LattyIconName;
6
+ size?: IconSize;
7
+ };
8
+ export declare const Icon: import("react").ForwardRefExoticComponent<HTMLAttributes<IconEl> & {
9
+ name: LattyIconName;
10
+ size?: IconSize;
11
+ } & import("react").RefAttributes<IconEl>>;
@@ -0,0 +1 @@
1
+ export { Icon, type IconProps } from './Icon';