@eagami/ui 2.2.0 → 2.4.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 CHANGED
@@ -42,10 +42,11 @@ See the [Setup](https://eagami.com/ui/setup) page for fonts and your first compo
42
42
 
43
43
  ## What's included
44
44
 
45
- - **Form controls**: Input, Textarea, Checkbox, Switch, Radio, Dropdown, Autocomplete, Date picker, Slider, Code input, Segmented, Avatar editor
46
- - **Overlays**: Dialog, Drawer, Tooltip, Menu, Toast
47
- - **Navigation**: Tabs, Breadcrumbs, Paginator, Accordion
48
- - **Display**: Card, Badge, Tag, Alert, Avatar, Skeleton, Spinner, Progress bar, Empty state, Divider, Eagami wordmark, Data table
45
+ - **Actions**: Button, Command Palette
46
+ - **Form controls**: Autocomplete, Avatar Editor, Checkbox, Code Input, Color Picker, Date Picker, Dropdown, File Uploader, Input, Multi-Select, Radio, Range Slider, Rating, Segmented, Slider, Switch, Textarea, Time Picker, Transfer List
47
+ - **Overlays**: Dialog, Drawer, Menu, Popover, Toast, Tooltip
48
+ - **Navigation**: Breadcrumbs, Paginator, Stepper, Tabs
49
+ - **Display**: Accordion, Alert, Avatar, Badge, Card, Data Table, Divider, Eagami Wordmark, Empty State, Progress Bar, Skeleton, Spinner, Tag, Tree, Virtual List
49
50
 
50
51
  Full API and live demos at [eagami.com/ui/components](https://eagami.com/ui/components).
51
52
 
@@ -74,6 +75,23 @@ See [icons](https://eagami.com/ui/icons) for the full set, per-brand guideline l
74
75
 
75
76
  Every visual property is a CSS custom property on `:root`, so overriding any token retunes the whole library. See [design tokens](https://eagami.com/ui/design-tokens) for the full reference and theming examples.
76
77
 
78
+ For the brand colour specifically, pass a single hex to `provideEagamiUi` and the library derives a full ten-shade scale (50 through 900) in [OKLCH](https://www.w3.org/TR/css-color-4/#ok-lab) space:
79
+
80
+ ```ts
81
+ bootstrapApplication(AppComponent, {
82
+ providers: [
83
+ provideEagamiUi({
84
+ palette: {
85
+ primary: { base: '#2563eb' },
86
+ secondary: { base: '#f97316' },
87
+ },
88
+ }),
89
+ ],
90
+ });
91
+ ```
92
+
93
+ Every brand-role pairing is checked against WCAG 2.1 AA at bootstrap; a contrast violation throws before the app loads. Pin specific shades with `overrides` or remap which derived shade backs each role with `roles`. See [design tokens](https://eagami.com/ui/design-tokens) for the full API.
94
+
77
95
  ## Internationalization
78
96
 
79
97
  Built-in strings ship in English, French (France), Greek, Polish, and Spanish (Spain), with runtime switching via `EagamiI18nService`. See [internationalization](https://eagami.com/ui/i18n) for setup and per-string overrides.