@harismawan/stamp-ui 0.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.
- package/LICENSE +21 -0
- package/README.md +83 -0
- package/dist/GlobalStyles.d.ts +1 -0
- package/dist/GlobalStyles.js +96 -0
- package/dist/components/Accordion.d.ts +12 -0
- package/dist/components/Accordion.js +85 -0
- package/dist/components/Alert.d.ts +9 -0
- package/dist/components/Alert.js +88 -0
- package/dist/components/Avatar.d.ts +12 -0
- package/dist/components/Avatar.js +67 -0
- package/dist/components/Badge.d.ts +7 -0
- package/dist/components/Badge.js +40 -0
- package/dist/components/Breadcrumb.d.ts +10 -0
- package/dist/components/Breadcrumb.js +50 -0
- package/dist/components/Button.d.ts +6 -0
- package/dist/components/Button.js +95 -0
- package/dist/components/Card.d.ts +8 -0
- package/dist/components/Card.js +55 -0
- package/dist/components/Checkbox.d.ts +8 -0
- package/dist/components/Checkbox.js +49 -0
- package/dist/components/ColorPicker.d.ts +7 -0
- package/dist/components/ColorPicker.js +61 -0
- package/dist/components/ConfirmDialog.d.ts +9 -0
- package/dist/components/ConfirmDialog.js +58 -0
- package/dist/components/Divider.d.ts +6 -0
- package/dist/components/Divider.js +45 -0
- package/dist/components/Drawer.d.ts +10 -0
- package/dist/components/Drawer.js +92 -0
- package/dist/components/DropdownMenu.d.ts +20 -0
- package/dist/components/DropdownMenu.js +139 -0
- package/dist/components/EmptyState.d.ts +8 -0
- package/dist/components/EmptyState.js +43 -0
- package/dist/components/IconPicker.d.ts +7 -0
- package/dist/components/IconPicker.js +45 -0
- package/dist/components/Input.d.ts +6 -0
- package/dist/components/Input.js +63 -0
- package/dist/components/Modal.d.ts +8 -0
- package/dist/components/Modal.js +104 -0
- package/dist/components/NumberInput.d.ts +23 -0
- package/dist/components/NumberInput.js +83 -0
- package/dist/components/Pagination.d.ts +7 -0
- package/dist/components/Pagination.js +81 -0
- package/dist/components/Popover.d.ts +8 -0
- package/dist/components/Popover.js +39 -0
- package/dist/components/Progress.d.ts +9 -0
- package/dist/components/Progress.js +41 -0
- package/dist/components/Radio.d.ts +14 -0
- package/dist/components/Radio.js +72 -0
- package/dist/components/Skeleton.d.ts +34 -0
- package/dist/components/Skeleton.js +39 -0
- package/dist/components/Slider.d.ts +10 -0
- package/dist/components/Slider.js +47 -0
- package/dist/components/Spinner.d.ts +6 -0
- package/dist/components/Spinner.js +52 -0
- package/dist/components/Stat.d.ts +9 -0
- package/dist/components/Stat.js +44 -0
- package/dist/components/Stepper.d.ts +11 -0
- package/dist/components/Stepper.js +97 -0
- package/dist/components/Switch.d.ts +8 -0
- package/dist/components/Switch.js +58 -0
- package/dist/components/Table.d.ts +6 -0
- package/dist/components/Table.js +41 -0
- package/dist/components/Tabs.d.ts +21 -0
- package/dist/components/Tabs.js +174 -0
- package/dist/components/Tag.d.ts +6 -0
- package/dist/components/Tag.js +47 -0
- package/dist/components/Toast.d.ts +26 -0
- package/dist/components/Toast.js +74 -0
- package/dist/components/Tooltip.d.ts +8 -0
- package/dist/components/Tooltip.js +43 -0
- package/dist/components/layout/index.d.ts +56 -0
- package/dist/components/layout/index.js +72 -0
- package/dist/hooks/useClickOutside.d.ts +2 -0
- package/dist/hooks/useClickOutside.js +25 -0
- package/dist/hooks/useDisclosure.d.ts +8 -0
- package/dist/hooks/useDisclosure.js +9 -0
- package/dist/hooks/useThemeStore.d.ts +20 -0
- package/dist/hooks/useThemeStore.js +7 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +43 -0
- package/dist/provider.d.ts +14 -0
- package/dist/provider.js +14 -0
- package/dist/theme.d.ts +193 -0
- package/dist/theme.js +156 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Harismawan
|
|
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,83 @@
|
|
|
1
|
+
# @harismawan/stamp-ui
|
|
2
|
+
|
|
3
|
+
A brand-agnostic React component library in the **"stamp" aesthetic** — chunky 2px
|
|
4
|
+
borders, hard offset shadows, flat fills, no gradients. Built with TypeScript +
|
|
5
|
+
styled-components.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bun add @harismawan/stamp-ui
|
|
11
|
+
# peers (provide your own):
|
|
12
|
+
bun add react react-dom styled-components
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`react`, `react-dom`, and `styled-components` are **peer dependencies** — the
|
|
16
|
+
library expects a single shared instance of each (the theme is delivered through
|
|
17
|
+
styled-components' `ThemeProvider`).
|
|
18
|
+
|
|
19
|
+
## Quick start
|
|
20
|
+
|
|
21
|
+
Wrap your app in `StampProvider` (it sets up the theme + global styles), then use
|
|
22
|
+
components anywhere:
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import { StampProvider, Button, Card, CardTitle, CardValue } from '@harismawan/stamp-ui';
|
|
26
|
+
|
|
27
|
+
export function App() {
|
|
28
|
+
return (
|
|
29
|
+
<StampProvider mode="light">
|
|
30
|
+
<Card>
|
|
31
|
+
<CardTitle>Hello</CardTitle>
|
|
32
|
+
<CardValue>stamp-ui</CardValue>
|
|
33
|
+
</Card>
|
|
34
|
+
<Button $variant="primary">Click me</Button>
|
|
35
|
+
</StampProvider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Theming
|
|
41
|
+
|
|
42
|
+
The library ships a default palette. Rebrand by passing your own theme (it must
|
|
43
|
+
satisfy the exported `Theme` type) to `StampProvider`:
|
|
44
|
+
|
|
45
|
+
```tsx
|
|
46
|
+
import { StampProvider, lightTheme, type Theme } from '@harismawan/stamp-ui';
|
|
47
|
+
|
|
48
|
+
const myTheme: Theme = { ...lightTheme, colors: { ...lightTheme.colors, primary: '#3B82F6' } };
|
|
49
|
+
|
|
50
|
+
<StampProvider theme={myTheme}>{/* ... */}</StampProvider>;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Light/dark mode is managed by the built-in `useThemeStore` (persisted). Omit
|
|
54
|
+
`mode` on `StampProvider` to let the store drive it.
|
|
55
|
+
|
|
56
|
+
## Components
|
|
57
|
+
|
|
58
|
+
- **Form:** `Button`, `Input`/`Select`/`Textarea`/`FieldWrap`/`FieldLabel`/`FieldError`, `NumberInput`, `Checkbox`, `Radio`/`RadioGroup`, `Switch`, `Slider`, `ColorPicker`, `IconPicker`
|
|
59
|
+
- **Display:** `Card`, `Badge`, `Tag`, `Avatar`/`AvatarGroup`, `Stat`, `EmptyState`, `Divider`, `Progress`, `Spinner`, `Skeleton`/`SkeletonText`/`SkeletonCircle`/`SkeletonGroup`, `Table` primitives
|
|
60
|
+
- **Overlays:** `Modal`, `Drawer`, `ConfirmDialog` (`confirmDialog`/`ConfirmViewport`), `Toast` (`toast`/`ToastViewport`), `Tooltip`, `Popover`, `Menu`/`MenuButton`/`MenuList`/`MenuItem`, `Alert`
|
|
61
|
+
- **Disclosure & nav:** `Tabs`, `Accordion`, `Breadcrumb`, `Pagination`, `Stepper`
|
|
62
|
+
- **Layout:** `Box`, `Stack`/`HStack`/`VStack`, `Grid`, `Container`
|
|
63
|
+
- **Hooks:** `useThemeStore`, `useDisclosure`, `useClickOutside`
|
|
64
|
+
|
|
65
|
+
## Development
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
bun install
|
|
69
|
+
bun test # unit + a11y tests (happy-dom + @testing-library/react)
|
|
70
|
+
bun run typecheck # tsc --noEmit
|
|
71
|
+
bun run build # tsc -> dist/ (ESM + .d.ts)
|
|
72
|
+
bunx vite --config example/vite.config.ts example # visual gallery of every component
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Publishing
|
|
76
|
+
|
|
77
|
+
Releases publish on a `v*` git tag via `.github/workflows/release.yml`. The repo
|
|
78
|
+
needs an `NPM_TOKEN` secret (an npm automation token with publish rights to the
|
|
79
|
+
`@harismawan` scope).
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { createGlobalStyle } from 'styled-components';
|
|
2
|
+
export const GlobalStyles = createGlobalStyle `
|
|
3
|
+
*, *::before, *::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html, body, #root {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
min-height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
body {
|
|
14
|
+
font-family: ${(p) => p.theme.font.body};
|
|
15
|
+
background: ${(p) => p.theme.colors.bg};
|
|
16
|
+
color: ${(p) => p.theme.colors.text};
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
transition: background 200ms ${(p) => p.theme.easing.out},
|
|
21
|
+
color 200ms ${(p) => p.theme.easing.out};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a {
|
|
25
|
+
color: ${(p) => p.theme.colors.accentDark};
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
transition: color 120ms ${(p) => p.theme.easing.out};
|
|
28
|
+
/*
|
|
29
|
+
* Hover uses the body text color (theme-aware: ink on cream ~18:1,
|
|
30
|
+
* cream-white on dark ~17:1), so links stay highly readable on interaction.
|
|
31
|
+
* The previous primaryHover (bright yellow #FFCB05) dropped to ~1.5:1 on the
|
|
32
|
+
* cream bg — illegible. An underline provides a non-color affordance too.
|
|
33
|
+
*/
|
|
34
|
+
&:hover {
|
|
35
|
+
color: ${(p) => p.theme.colors.text};
|
|
36
|
+
text-decoration: underline;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
button {
|
|
41
|
+
font-family: inherit;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
border: none;
|
|
44
|
+
background: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
button:focus-visible, a:focus-visible, input:focus-visible,
|
|
48
|
+
select:focus-visible, textarea:focus-visible {
|
|
49
|
+
outline: 2px solid ${(p) => p.theme.colors.border};
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
h1, h2, h3, h4 {
|
|
54
|
+
margin: 0;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
line-height: 1.2;
|
|
57
|
+
letter-spacing: -0.01em;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h1 { font-size: 2rem; }
|
|
61
|
+
h2 { font-size: 1.5rem; }
|
|
62
|
+
h3 { font-size: 1.125rem; }
|
|
63
|
+
|
|
64
|
+
p { margin: 0; }
|
|
65
|
+
|
|
66
|
+
::selection {
|
|
67
|
+
background: ${(p) => p.theme.colors.primary};
|
|
68
|
+
color: ${(p) => p.theme.colors.primaryInk};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Saweria-flavored cream "tape" dot pattern under hero sections. */
|
|
72
|
+
.stamp-noise {
|
|
73
|
+
position: relative;
|
|
74
|
+
isolation: isolate;
|
|
75
|
+
&::before {
|
|
76
|
+
content: '';
|
|
77
|
+
position: absolute;
|
|
78
|
+
inset: 0;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
background-image: radial-gradient(
|
|
81
|
+
circle at 1px 1px,
|
|
82
|
+
${(p) => p.theme.colors.borderStrong} 1px,
|
|
83
|
+
transparent 0
|
|
84
|
+
);
|
|
85
|
+
background-size: 18px 18px;
|
|
86
|
+
opacity: 0.5;
|
|
87
|
+
z-index: -1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.money {
|
|
92
|
+
font-family: ${(p) => p.theme.font.mono};
|
|
93
|
+
font-variant-numeric: tabular-nums;
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AccordionProps {
|
|
3
|
+
type?: 'single' | 'multiple';
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function Accordion({ type, children }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface AccordionItemProps {
|
|
8
|
+
value: string;
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function AccordionItem({ value, title, children }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useCallback, useMemo, useRef, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { ChevronDown } from 'lucide-react';
|
|
5
|
+
const AccordionContext = createContext(null);
|
|
6
|
+
function useAccordionContext(component) {
|
|
7
|
+
const ctx = useContext(AccordionContext);
|
|
8
|
+
if (!ctx) {
|
|
9
|
+
throw new Error(`<${component}> must be used within <Accordion>`);
|
|
10
|
+
}
|
|
11
|
+
return ctx;
|
|
12
|
+
}
|
|
13
|
+
let accordionIdCounter = 0;
|
|
14
|
+
const StyledAccordion = styled.div `
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: ${(p) => p.theme.space[2]};
|
|
18
|
+
`;
|
|
19
|
+
export function Accordion({ type = 'single', children }) {
|
|
20
|
+
const baseIdRef = useRef('');
|
|
21
|
+
if (!baseIdRef.current) {
|
|
22
|
+
accordionIdCounter += 1;
|
|
23
|
+
baseIdRef.current = `stamp-accordion-${accordionIdCounter}`;
|
|
24
|
+
}
|
|
25
|
+
const [openValues, setOpenValues] = useState([]);
|
|
26
|
+
const isOpen = useCallback((value) => openValues.includes(value), [openValues]);
|
|
27
|
+
const toggle = useCallback((value) => {
|
|
28
|
+
setOpenValues((prev) => {
|
|
29
|
+
const currentlyOpen = prev.includes(value);
|
|
30
|
+
if (type === 'single') {
|
|
31
|
+
return currentlyOpen ? [] : [value];
|
|
32
|
+
}
|
|
33
|
+
return currentlyOpen ? prev.filter((v) => v !== value) : [...prev, value];
|
|
34
|
+
});
|
|
35
|
+
}, [type]);
|
|
36
|
+
const ctx = useMemo(() => ({ isOpen, toggle, baseId: baseIdRef.current }), [isOpen, toggle]);
|
|
37
|
+
return (_jsx(AccordionContext.Provider, { value: ctx, children: _jsx(StyledAccordion, { children: children }) }));
|
|
38
|
+
}
|
|
39
|
+
const Item = styled.div `
|
|
40
|
+
border: 2px solid ${(p) => p.theme.colors.border};
|
|
41
|
+
border-radius: ${(p) => p.theme.radii.md};
|
|
42
|
+
background: ${(p) => p.theme.colors.surface};
|
|
43
|
+
box-shadow: ${(p) => p.theme.shadow.stampSm};
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
`;
|
|
46
|
+
const Header = styled.button `
|
|
47
|
+
appearance: none;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
width: 100%;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
gap: ${(p) => p.theme.space[3]};
|
|
54
|
+
font-family: ${(p) => p.theme.font.body};
|
|
55
|
+
font-weight: 800;
|
|
56
|
+
font-size: 1rem;
|
|
57
|
+
text-align: left;
|
|
58
|
+
padding: ${(p) => p.theme.space[3]} ${(p) => p.theme.space[4]};
|
|
59
|
+
border: none;
|
|
60
|
+
background: ${(p) => (p.$open ? p.theme.colors.surfaceMuted : p.theme.colors.surface)};
|
|
61
|
+
color: ${(p) => p.theme.colors.text};
|
|
62
|
+
transition: background 80ms ${(p) => p.theme.easing.out};
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
background: ${(p) => p.theme.colors.surfaceMuted};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
& svg {
|
|
69
|
+
flex: none;
|
|
70
|
+
transition: transform 80ms ${(p) => p.theme.easing.out};
|
|
71
|
+
transform: rotate(${(p) => (p.$open ? '180deg' : '0deg')});
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
const Region = styled.div `
|
|
75
|
+
padding: ${(p) => p.theme.space[4]};
|
|
76
|
+
border-top: 2px solid ${(p) => p.theme.colors.border};
|
|
77
|
+
color: ${(p) => p.theme.colors.text};
|
|
78
|
+
`;
|
|
79
|
+
export function AccordionItem({ value, title, children }) {
|
|
80
|
+
const ctx = useAccordionContext('AccordionItem');
|
|
81
|
+
const open = ctx.isOpen(value);
|
|
82
|
+
const headerId = `${ctx.baseId}-header-${value}`;
|
|
83
|
+
const regionId = `${ctx.baseId}-region-${value}`;
|
|
84
|
+
return (_jsxs(Item, { children: [_jsxs(Header, { type: "button", id: headerId, "$open": open, "aria-expanded": open, "aria-controls": regionId, onClick: () => ctx.toggle(value), children: [_jsx("span", { children: title }), _jsx(ChevronDown, { size: 18, "aria-hidden": "true" })] }), _jsx(Region, { role: "region", id: regionId, "aria-labelledby": headerId, hidden: !open, children: children })] }));
|
|
85
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type AlertVariant = 'info' | 'success' | 'warn' | 'danger';
|
|
3
|
+
export interface AlertProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
$variant?: AlertVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Info, CheckCircle2, AlertTriangle, XCircle, X } from 'lucide-react';
|
|
5
|
+
const variantColor = (theme, variant) => {
|
|
6
|
+
switch (variant) {
|
|
7
|
+
case 'success':
|
|
8
|
+
return theme.colors.success;
|
|
9
|
+
case 'warn':
|
|
10
|
+
return theme.colors.warning;
|
|
11
|
+
case 'danger':
|
|
12
|
+
return theme.colors.danger;
|
|
13
|
+
case 'info':
|
|
14
|
+
default:
|
|
15
|
+
return theme.colors.primary;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const variantBg = (theme, variant) => {
|
|
19
|
+
switch (variant) {
|
|
20
|
+
case 'success':
|
|
21
|
+
return theme.colors.incomeSoft;
|
|
22
|
+
case 'danger':
|
|
23
|
+
return theme.colors.expenseSoft;
|
|
24
|
+
case 'warn':
|
|
25
|
+
return theme.colors.surfaceMuted;
|
|
26
|
+
case 'info':
|
|
27
|
+
default:
|
|
28
|
+
return theme.colors.primarySoft;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const Root = styled.div `
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: flex-start;
|
|
34
|
+
gap: ${(p) => p.theme.space[3]};
|
|
35
|
+
font-family: ${(p) => p.theme.font.body};
|
|
36
|
+
color: ${(p) => p.theme.colors.text};
|
|
37
|
+
background: ${(p) => variantBg(p.theme, p.$variant)};
|
|
38
|
+
border: 2px solid ${(p) => p.theme.colors.border};
|
|
39
|
+
border-radius: ${(p) => p.theme.radii.md};
|
|
40
|
+
box-shadow: ${(p) => p.theme.shadow.stampSm};
|
|
41
|
+
padding: ${(p) => p.theme.space[3]} ${(p) => p.theme.space[4]};
|
|
42
|
+
`;
|
|
43
|
+
const IconWrap = styled.span `
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
color: ${(p) => variantColor(p.theme, p.$variant)};
|
|
47
|
+
margin-top: 2px;
|
|
48
|
+
`;
|
|
49
|
+
const Content = styled.div `
|
|
50
|
+
flex: 1;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
`;
|
|
53
|
+
const Title = styled.div `
|
|
54
|
+
font-weight: 800;
|
|
55
|
+
font-size: 15px;
|
|
56
|
+
margin-bottom: ${(p) => p.theme.space[1]};
|
|
57
|
+
`;
|
|
58
|
+
const Message = styled.div `
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
color: ${(p) => p.theme.colors.textMuted};
|
|
62
|
+
`;
|
|
63
|
+
const CloseButton = styled.button `
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
background: transparent;
|
|
69
|
+
border: none;
|
|
70
|
+
color: ${(p) => p.theme.colors.textMuted};
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
padding: 2px;
|
|
73
|
+
border-radius: ${(p) => p.theme.radii.xs};
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
color: ${(p) => p.theme.colors.text};
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
const ICONS = {
|
|
80
|
+
info: Info,
|
|
81
|
+
success: CheckCircle2,
|
|
82
|
+
warn: AlertTriangle,
|
|
83
|
+
danger: XCircle,
|
|
84
|
+
};
|
|
85
|
+
export const Alert = React.forwardRef(function Alert({ $variant = 'info', title, onClose, children, ...rest }, ref) {
|
|
86
|
+
const Icon = ICONS[$variant];
|
|
87
|
+
return (_jsxs(Root, { ref: ref, role: "alert", "$variant": $variant, ...rest, children: [_jsx(IconWrap, { "$variant": $variant, "aria-hidden": "true", children: _jsx(Icon, { size: 20 }) }), _jsxs(Content, { children: [title && _jsx(Title, { children: title }), children && _jsx(Message, { children: children })] }), onClose && (_jsx(CloseButton, { type: "button", "aria-label": "Close", onClick: onClose, children: _jsx(X, { size: 18 }) }))] }));
|
|
88
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AvatarProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3
|
+
src?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export interface AvatarGroupProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
9
|
+
max?: number;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
function initials(name) {
|
|
5
|
+
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
6
|
+
if (parts.length === 0)
|
|
7
|
+
return '?';
|
|
8
|
+
if (parts.length === 1)
|
|
9
|
+
return parts[0].charAt(0).toUpperCase();
|
|
10
|
+
return (parts[0].charAt(0) + parts[parts.length - 1].charAt(0)).toUpperCase();
|
|
11
|
+
}
|
|
12
|
+
const Root = styled.div `
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
width: ${(p) => p.$size}px;
|
|
17
|
+
height: ${(p) => p.$size}px;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
font-family: ${(p) => p.theme.font.body};
|
|
21
|
+
font-size: ${(p) => Math.round(p.$size * 0.38)}px;
|
|
22
|
+
font-weight: 800;
|
|
23
|
+
color: ${(p) => p.theme.colors.primaryInk};
|
|
24
|
+
background: ${(p) => p.theme.colors.primarySoft};
|
|
25
|
+
border: 2px solid ${(p) => p.theme.colors.border};
|
|
26
|
+
border-radius: ${(p) => p.theme.radii.pill};
|
|
27
|
+
box-shadow: ${(p) => p.theme.shadow.stampSm};
|
|
28
|
+
`;
|
|
29
|
+
const Img = styled.img `
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
object-fit: cover;
|
|
33
|
+
`;
|
|
34
|
+
export const Avatar = React.forwardRef(({ src, name, size = 40, ...rest }, ref) => {
|
|
35
|
+
return (_jsx(Root, { ref: ref, "$size": size, ...rest, children: src != null ? _jsx(Img, { src: src, alt: name }) : _jsx("span", { "aria-hidden": "true", children: initials(name) }) }));
|
|
36
|
+
});
|
|
37
|
+
Avatar.displayName = 'Avatar';
|
|
38
|
+
const GroupRoot = styled.div `
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
|
|
42
|
+
& > * + * {
|
|
43
|
+
margin-left: -12px;
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
const Overflow = styled.div `
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
width: 40px;
|
|
51
|
+
height: 40px;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
font-family: ${(p) => p.theme.font.body};
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
font-weight: 800;
|
|
56
|
+
color: ${(p) => p.theme.colors.text};
|
|
57
|
+
background: ${(p) => p.theme.colors.surfaceMuted};
|
|
58
|
+
border: 2px solid ${(p) => p.theme.colors.border};
|
|
59
|
+
border-radius: ${(p) => p.theme.radii.pill};
|
|
60
|
+
box-shadow: ${(p) => p.theme.shadow.stampSm};
|
|
61
|
+
`;
|
|
62
|
+
export const AvatarGroup = ({ max = 3, children, ...rest }) => {
|
|
63
|
+
const items = React.Children.toArray(children);
|
|
64
|
+
const visible = items.slice(0, max);
|
|
65
|
+
const overflow = items.length - visible.length;
|
|
66
|
+
return (_jsxs(GroupRoot, { ...rest, children: [visible, overflow > 0 ? _jsx(Overflow, { "aria-hidden": "false", children: `+${overflow}` }) : null] }));
|
|
67
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type BadgeVariant = 'primary' | 'neutral' | 'success' | 'danger' | 'warning';
|
|
3
|
+
export interface BadgeProps extends React.ComponentPropsWithoutRef<'span'> {
|
|
4
|
+
$variant?: BadgeVariant;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Badge: React.FC<BadgeProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
const variantStyles = {
|
|
4
|
+
primary: css `
|
|
5
|
+
background: ${(p) => p.theme.colors.primary};
|
|
6
|
+
color: ${(p) => p.theme.colors.primaryInk};
|
|
7
|
+
`,
|
|
8
|
+
neutral: css `
|
|
9
|
+
background: ${(p) => p.theme.colors.surfaceMuted};
|
|
10
|
+
color: ${(p) => p.theme.colors.text};
|
|
11
|
+
`,
|
|
12
|
+
success: css `
|
|
13
|
+
background: ${(p) => p.theme.colors.incomeSoft};
|
|
14
|
+
color: ${(p) => p.theme.colors.income};
|
|
15
|
+
`,
|
|
16
|
+
danger: css `
|
|
17
|
+
background: ${(p) => p.theme.colors.expenseSoft};
|
|
18
|
+
color: ${(p) => p.theme.colors.expense};
|
|
19
|
+
`,
|
|
20
|
+
warning: css `
|
|
21
|
+
background: ${(p) => p.theme.colors.warning};
|
|
22
|
+
color: ${(p) => p.theme.colors.primaryInk};
|
|
23
|
+
`,
|
|
24
|
+
};
|
|
25
|
+
const Root = styled.span `
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: ${(p) => p.theme.space[1]};
|
|
29
|
+
padding: 2px ${(p) => p.theme.space[2]};
|
|
30
|
+
font-family: ${(p) => p.theme.font.body};
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
font-weight: 800;
|
|
33
|
+
line-height: 1.4;
|
|
34
|
+
border: 2px solid ${(p) => p.theme.colors.border};
|
|
35
|
+
border-radius: ${(p) => p.theme.radii.pill};
|
|
36
|
+
${(p) => variantStyles[p.$variant]}
|
|
37
|
+
`;
|
|
38
|
+
export const Badge = ({ $variant = 'neutral', children, ...rest }) => {
|
|
39
|
+
return (_jsx(Root, { "$variant": $variant, ...rest, children: children }));
|
|
40
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BreadcrumbItemProps {
|
|
3
|
+
href?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function BreadcrumbItem({ href, children }: BreadcrumbItemProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface BreadcrumbProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function Breadcrumb({ children }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { ChevronRight } from 'lucide-react';
|
|
5
|
+
const Nav = styled.nav `
|
|
6
|
+
font-family: ${(p) => p.theme.font.body};
|
|
7
|
+
`;
|
|
8
|
+
const List = styled.ol `
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
gap: ${(p) => p.theme.space[1]};
|
|
13
|
+
list-style: none;
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
`;
|
|
17
|
+
const ItemWrap = styled.li `
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: ${(p) => p.theme.space[1]};
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
`;
|
|
24
|
+
const Separator = styled.span `
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
color: ${(p) => p.theme.colors.textSubtle};
|
|
28
|
+
`;
|
|
29
|
+
const Link = styled.a `
|
|
30
|
+
color: ${(p) => p.theme.colors.textMuted};
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
color: ${(p) => p.theme.colors.primary};
|
|
35
|
+
text-decoration: underline;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const Current = styled.span `
|
|
39
|
+
color: ${(p) => p.theme.colors.text};
|
|
40
|
+
`;
|
|
41
|
+
export function BreadcrumbItem({ href, children }) {
|
|
42
|
+
if (href) {
|
|
43
|
+
return _jsx(Link, { href: href, children: children });
|
|
44
|
+
}
|
|
45
|
+
return _jsx(Current, { "aria-current": "page", children: children });
|
|
46
|
+
}
|
|
47
|
+
export function Breadcrumb({ children }) {
|
|
48
|
+
const items = React.Children.toArray(children).filter(React.isValidElement);
|
|
49
|
+
return (_jsx(Nav, { "aria-label": "Breadcrumb", children: _jsx(List, { children: items.map((item, index) => (_jsxs(ItemWrap, { children: [item, index < items.length - 1 && (_jsx(Separator, { "aria-hidden": "true", children: _jsx(ChevronRight, { size: 16 }) }))] }, index))) }) }));
|
|
50
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface ButtonProps {
|
|
2
|
+
$variant?: 'primary' | 'ghost' | 'outline' | 'danger';
|
|
3
|
+
$size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
$full?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("react").ClassAttributes<HTMLButtonElement> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonProps> & ButtonProps, keyof ButtonProps> & ButtonProps, "children" | "ref" | "form" | "slot" | "$variant" | "$size" | "$full" | "key" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture"> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("react").ClassAttributes<HTMLButtonElement> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonProps> & ButtonProps, keyof ButtonProps> & ButtonProps, "children" | "ref" | "form" | "slot" | "$variant" | "$size" | "$full" | "key" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture">>> & string;
|