@aurora-ds/components 1.4.1 → 1.5.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/README.md +73 -1
- package/dist/cjs/index.js +4850 -1561
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4742 -1478
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1336 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,79 @@ See the source under `src/theme/` for the exact values.
|
|
|
65
65
|
|
|
66
66
|
## 🧩 Available Components
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
### Actions
|
|
69
|
+
|
|
70
|
+
| Component | Description |
|
|
71
|
+
|-----------|-------------|
|
|
72
|
+
| `Button` | Clickable button with variants (`contained`, `outlined`, `text`, …), semantic colors, sizes, loading state and optional start/end icons |
|
|
73
|
+
| `IconButton` | Square icon-only button — requires `ariaLabel` since there is no visible text |
|
|
74
|
+
| `Link` | Accessible anchor with underline control, `external` (new tab) and `disabled` modes, and optional start/end icons |
|
|
75
|
+
|
|
76
|
+
### Data Display
|
|
77
|
+
|
|
78
|
+
| Component | Description |
|
|
79
|
+
|-----------|-------------|
|
|
80
|
+
| `Badge` | Compact label/indicator with filled, outlined, subtle variants, semantic colors, sizes, icons and a dot mode |
|
|
81
|
+
| `InfoBubble` | Read-only info icon that reveals a tooltip on hover/focus |
|
|
82
|
+
| `Table` | Accessible compound data table (`Table.Head`, `Table.Body`, `Table.Row`, `Table.HeaderCell`, `Table.Cell`) with `<colgroup>`-driven column widths, striping, hover, sticky header, loading skeletons and empty state |
|
|
83
|
+
|
|
84
|
+
### Forms
|
|
85
|
+
|
|
86
|
+
| Component | Description |
|
|
87
|
+
|-----------|-------------|
|
|
88
|
+
| `Form` | Thin `<form>` wrapper with accessible `aria-label` / `aria-labelledby` support |
|
|
89
|
+
| `TextField` | Text input with label, helper text, status (`default` / `error` / `success`), size, start icon and end action slot |
|
|
90
|
+
| `Select` | Accessible combobox (controlled & uncontrolled) with label, helper text, status and size |
|
|
91
|
+
| `DatePicker` | Accessible date field with a text input trigger and a focus-trapped calendar popover (WAI-ARIA date grid) — `minDate`/`maxDate`, locale, controlled & uncontrolled |
|
|
92
|
+
| `Checkbox` | Checkbox input with label, helper text, status and indeterminate state |
|
|
93
|
+
| `Switch` | Toggle switch input with label, size and color |
|
|
94
|
+
|
|
95
|
+
### Foundation
|
|
96
|
+
|
|
97
|
+
| Component | Description |
|
|
98
|
+
|-----------|-------------|
|
|
99
|
+
| `Text` | Polymorphic text element — renders `h1`–`h6`, `p`, `span`, `label`, etc. with full theme token support (color, size, weight, truncation, …) |
|
|
100
|
+
| `Icon` | Renders any SVG component at a theme `fontSize` size with optional stroke color, fill and background |
|
|
101
|
+
| `Skeleton` | Block-level loading placeholder — four shapes (`text`, `circular`, `rectangular`, `rounded`) with shimmer animation |
|
|
102
|
+
| `SvgImage` | Renders an SVG image component with accessible `aria-label` / `aria-labelledby` / `aria-describedby` |
|
|
103
|
+
| `LoaderScreen` | Full-screen centered loading indicator with an accessible `label` |
|
|
104
|
+
| `ErrorBoundary` | React error boundary with a customisable fallback render prop and an `onError` monitoring hook |
|
|
105
|
+
|
|
106
|
+
### Layout
|
|
107
|
+
|
|
108
|
+
| Component | Description |
|
|
109
|
+
|-----------|-------------|
|
|
110
|
+
| `Box` | General-purpose `<div>` with a comprehensive set of style props (spacing, flexbox, grid, color, radius, shadow, …) |
|
|
111
|
+
| `Stack` | Alias of `Box` pre-set for flex column/row stacking — all `Box` props apply |
|
|
112
|
+
| `Grid` | CSS Grid container extending `Box` with `columns`, `rows`, `autoFlow`, `placeItems` and related shorthand props |
|
|
113
|
+
| `Card` | Elevated or outlined surface extending `Box` with `variant` (`elevated` / `outlined`) and default `padding` |
|
|
114
|
+
| `Separator` | Horizontal or vertical divider with optional centered label, color, thickness and spacing |
|
|
115
|
+
| `Article` | Semantic `<article>` with all `Box` style props |
|
|
116
|
+
| `Aside` | Semantic `<aside>` with all `Box` style props |
|
|
117
|
+
| `Footer` | Semantic `<footer>` with all `Box` style props |
|
|
118
|
+
| `Header` | Semantic `<header>` with all `Box` style props |
|
|
119
|
+
| `Main` | Semantic `<main>` with all `Box` style props |
|
|
120
|
+
| `Nav` | Semantic `<nav>` with all `Box` style props |
|
|
121
|
+
| `Section` | Semantic `<section>` with all `Box` style props |
|
|
122
|
+
|
|
123
|
+
### Navigation
|
|
124
|
+
|
|
125
|
+
| Component | Description |
|
|
126
|
+
|-----------|-------------|
|
|
127
|
+
| `Breadcrumb` | WAI-ARIA breadcrumb (`Breadcrumb.Item`) with configurable separator and `ariaLabel` |
|
|
128
|
+
| `Tabs` | WAI-ARIA tab interface (`Tabs.List`, `Tabs.Tab`, `Tabs.Panel`) — controlled & uncontrolled, full keyboard navigation |
|
|
129
|
+
| `Drawer` | Collapsible side-navigation panel — `permanent` (inline, pushes content) or `temporary` (portal overlay with backdrop) |
|
|
130
|
+
| `Pagination` | Accessible controlled pagination — collapses long ranges with ellipses (`siblingCount`, `boundaryCount`), optional prev/next & first/last controls, `aria-current` on the active page |
|
|
131
|
+
|
|
132
|
+
### Overlay
|
|
133
|
+
|
|
134
|
+
| Component | Description |
|
|
135
|
+
|-----------|-------------|
|
|
136
|
+
| `Alert` | Feedback banner with semantic variants (`default`, `info`, `success`, `warning`, `error`) and live-region ARIA roles |
|
|
137
|
+
| `Dialog` | Modal dialog (`Dialog.Header`, `Dialog.Body`, `Dialog.Footer`) with focus trap, Escape-to-close and optional backdrop click |
|
|
138
|
+
| `Menu` | Floating `role="menu"` (`Menu.Group`, `Menu.Item`) anchored to a reference element — supports checkbox (`menuitemcheckbox`) & radio (`menuitemradio`) items, nested submenus (hover/click/ArrowRight), optional group titles, configurable `closeOnClick`, and a background scroll lock that keeps it anchored while open |
|
|
139
|
+
| `Tooltip` | Hover/focus tooltip with placement, arrow and mobile-aware behaviour |
|
|
140
|
+
| `Backdrop` | Semi-transparent overlay used internally by `Dialog` and `Drawer` — can also be used standalone |
|
|
69
141
|
|
|
70
142
|
## 📁 Component Self-Contained Structure (target)
|
|
71
143
|
|