Repository navigation
Releases
v0.12.0
v0.11.0
v0.10.0
Minor Changes
-
69f50ea: feat(i18n): format DatePicker, TimePicker, and InputNumber through the config locale
The three formatting components now resolve their
localeas: the
localeprop, then the provided config's locale, then the runtime
locale. SoprovideMyGhfConfig(createConfig({ locale: 'ar' }))
localizes their dates, times, and numbers without per-component props.
Adds a publicbrowserLocale()helper (the runtime-locale fallback) and
an internaluseProvidedLocale()composable. The runtime fallback keeps
the previous auto-detection when there is no provider.
Patch Changes
- 436dd86: fix: flip TransferList move chevrons under RTL; expand the RTL source guard to ban physical left-/right-* utilities
v0.8.1
Patch Changes
- c5566c4: fix(a11y): make the primary action meet WCAG AA. White text on
primary-500(MYGHF Blue) is ≈2.9:1 — below AA and even the 3:1 large-text threshold — and was used on the primary button, the DatePicker/TimePicker apply buttons, the selected date-range endpoints, the completed Stepper step, the TreeSelect checkbox, and the SelectButton highlight. Those surfaces now useprimary-700(≈6.6:1) withprimary-800on hover. The contrast guard asserts the pair meets AA and fails the suite if any component pairsbg-primary-500with white text. Also documents and pins the DataTable selection contract: it is controlled (the parent accumulates the map across pages) andmanual-mode select-all is page-scoped. - 57fc963: chore: replace the deprecated
lucide-vue-nextwith its successor@lucide/vue. Drop-in rename — the same icon components are exported under the same names, so the public API is unchanged.
v0.8.0
Minor Changes
- 4c63e9d: feat: add TimePicker component — a localized time-only picker with 12/24-hour formats, configurable minute steps, and FormField wiring
v0.7.1
Patch Changes
-
78a1873: Fix
addDaysdropping the time of dayaddDaysbuilt its result withnew Date(year, month, day), which
zeroes the time — so anyDatecarrying a time came back at
midnight, contradicting the DST-safety the helper documents. It now
usessetDate, which preserves the wall-clock time and still rolls
month and year boundaries over.
v0.7.0
Minor Changes
-
b2689f3: Add browser-level accessibility tests and make the Accordion heading level configurable
- New Playwright suite (
tests/browser/,npm run test:browser) renders a component harness with
real CSS and runs axe across the light/dark × LTR/RTL matrix, asserts body text meets WCAG AA
against the computed colours, and checks the design tokens resolve. It runs in CI. AccordionItemacceptsheadingLevel(2–6, default 3) so the trigger heading fits the page
outline — the browser run caught that reka's defaulth3tripsheading-orderunder anh1.- Documentation: the accessibility guide now reflects the shipped guards and documents the muted
text contrast limitation (added toDESIGN.md§6).
- New Playwright suite (
-
f25b844: Add controlled sorting to DataTable
DataTablenow accepts asortingprop. Unbound, it sorts itself as before;
bound withv-model:sorting, the component only emitsupdate:sortingand
sorts when the parent writes the prop back — the shape a server-side sort
(manual) needs. Covers controlled and uncontrolled behaviour, plus
combination tests (virtualized expansion, cross-page selection, sorting with
pagination, manual mode with search).
Patch Changes
-
5cc11fa: Ship type declarations that resolve under
node16/nodenextThe build emitted one declaration file per source file, leaving extensionless relative imports
(./lib/date) indist/index.d.ts. Those do not resolve under
moduleResolution: node16/nodenext, so consumers on those settings got broken types (bundler
resolution was unaffected). Declarations are now rolled up into a singleindex.d.ts(and
nuxt.d.ts) per entry, which resolves under every mode.Also adds a
check:packagescript (artifact assertions +publint+attw) and runs it, with the
build, in CI. -
2ec2b7b: Wire the Tailwind preset automatically in Nuxt
The Nuxt module only wired the Tailwind preset and content glob when the
consumer happened to write atailwindcssblock innuxt.config— the
documentedmodules: ['@nuxtjs/tailwindcss', '@myghf/ui/nuxt']setup got
no preset and only a misleading "not detected" warning, because
@nuxtjs/tailwindcssresolves its options at install time.The module now seeds
nuxt.options.tailwindcsswhen the Tailwind module has
not installed yet, so listing@myghf/ui/nuxtbefore@nuxtjs/tailwindcss
wires everything with no extra config. When the Tailwind module has already
installed, the module warns with the exacttailwindcssblock that wires it.
Detection uses Nuxt's installed-modules registry (newhasInstalledTailwindModule
helper, unit-tested) so a merely listed module is not mistaken for an
installed one.
v0.6.0
Minor Changes
-
d42da81: Add the app shell:
AppShell,Sidebar,TopbarAppShellarranges a topbar, sidebar, and main content. On large screens the sidebar is
docked; below thelgbreakpointcollapsible(default) turns it into an off-canvas panel
thatTopbaropens with a menu button. The three share an injection context, so the button
carriesaria-expanded/aria-controlstargeting the sidebar's id, the backdrop and Esc
close it, and the off-canvas offset mirrors under RTL. Exported from@myghf/uiand
auto-imported by the Nuxt module. -
9d6de12: Add chart components:
SparklineandBarChartSparklinedraws a compact line or area trend;BarChartdraws categorical bars and exposes
the same values through a visually-hidden table. Both are accessible by default (Sparklineis
role="img"with alabel, or decorative without one).- Built on the new external dependencies
d3-scaleandd3-shape(externalised in the build, so
a bundler only includes them for the pages that import a chart). Exported from@myghf/uiand
auto-imported by the Nuxt module.
-
23643ae: Add the
ComboboxcomponentA searchable select built on reka-ui's combobox: type to filter, pick one or several. Supports
multiple(selections render as removableTags),clearable, size variants, and an
emptyLabelfor no-match states. The input isrole="combobox"and wiresid,
aria-describedby,aria-invalid, andaria-requiredthrough the shareduseFieldControl
contract. Exported from@myghf/uiand auto-imported by the Nuxt module. -
138529c: Add the CommandPalette component
A keyboard-first command launcher built on the Dialog: type to filter a flat list of commands,
move with the arrow keys, run with Enter, and close with Escape. Items carry an optional
description, group label, keywords, and icon, and the palette matches against all of them.
Exports theCommandItemtype, is exported from@myghf/ui, and is auto-imported by the Nuxt
module. -
1723e2f: Add dashboard primitives: StatCard, StatusBadge, Timeline, Stepper
StatCard: a metric card with a label, headline value, optional hint, and a signedtrend
(announced to screen readers as "up/down N percent").StatusBadge: a toned pill with a decorative dot and an optionalpulse.Timeline+TimelineItem: a labelled activity list with<time>stamps.Stepper: a step indicator that marks the current step witharia-current="step"and shows a
check for completed steps, plus aSteptype.
All are exported from
@myghf/uiand auto-imported by the Nuxt module. -
9eb1946: Add the
FileUploadcomponentA drop zone over a native
<input type="file">: the input stays focusable and is the actual
control, so click, drag-and-drop, and keyboard all work without scripting. Selected files are
listed with name, size, a remove button, and an optional per-fileProgressbar via a
progressForcallback. Supportsmultiple,accept,disabled, and the field contract
(id,aria-describedby,aria-invalid,required) through the shareduseFieldControl
composable. Exported from@myghf/uiand auto-imported by the Nuxt module. -
dfe1094: Add the
FormErrorscomponentA form-level validation summary: a
role="alert"box that lists each error, where every entry
is a button that focuses the field it refers to.focusFirstmoves focus to the first invalid
field on submit. Exports theFormErrortype, is exported from@myghf/ui, and is
auto-imported by the Nuxt module. -
a1d263c: Add layout primitives:
Container,Stack,Inline,GridFour small structural wrappers: a centred page column (
Container, with size/padding), a
vertical stack and a wrapping row with a shared spacing scale and optional alignment
(Stack,Inline), and a grid with fixedcolsor responsive auto-fitminItemWidth
(Grid). Each takes anasprop to choose the element and passes attributes through. Exported
from@myghf/uiand auto-imported by the Nuxt module. -
806b27f: Add Tooltip, Popover, and Accordion
Tooltip: a short hover/focus label for a single trigger, built on reka-ui, withtext/side/
align/sideOffset/delayDurationand acontentslot.Popover: a floating panel anchored to a trigger, withv-model:openand positioning props.Accordion+AccordionItem: collapsible sections withsingle/multipletypes and
v-modelover the open value(s).
All are exported from
@myghf/uiand auto-imported by the Nuxt module. -
986af2d: Add page chrome:
Breadcrumbs,PageHeader,PageContentBreadcrumbs: a labellednavtrail witharia-currenton the last item, anaria-hidden
RTL-aware separator, and anitemslot for router links. Exports theBreadcrumbItemtype.PageHeader: an<h1>title with optional description, plusbreadcrumbsandactions
slots.PageContent: the padded, width-capped page body (wrapsContainer).
Exported from
@myghf/uiand auto-imported by the Nuxt module. -
a69fa8c: Add the
ProgresscomponentA horizontal progress bar built on reka-ui's progress primitive: determinate with
modelValue/max, or indeterminate when the value is omitted. Supportssm/default/lg
sizes, tones, and an accessiblelabel. The fill is width-based so it mirrors correctly under
RTL. Exported from@myghf/uiand auto-imported by the Nuxt module. -
bc37380: Add the
RadioGroupcomponentA single-choice control for a small, always-visible set of options, built on reka-ui's
radio group. Options render a labelledrole="radio"each (named via<label for>), with
vertical/horizontalorientations, per-optiondisabled, and an optionaloptionslot for
custom label content. It wiresid,aria-describedby,aria-invalid, andaria-required
through the shareduseFieldControlcontract, and is exported from@myghf/ui(and
auto-imported by the Nuxt module). -
c63df0f: Add the
SwitchcomponentA boolean on/off toggle built on reka-ui with
sm/defaultsizes,disabled, and
invalid/requiredprops. It wiresid,aria-describedby,aria-invalid, and
aria-requiredthrough the shareduseFieldControlcontract, animates its thumb with logical
translation for RTL, and is exported from@myghf/ui(and auto-imported by the Nuxt module).
Also corrects the staleCheckboxdocs now that it consumes the form-field context. -
4d70147: DataTable: column visibility, order, pinning, and resizing
- Register TanStack's
columnVisibilityFeature,columnOrderingFeature,columnPinningFeature,
columnSizingFeature, andcolumnResizingFeature. - New
v-modelbindings:column-visibility(id → visible),column-order(ids), and
column-pinning({ start, end }). Pinning is logical, so pinned cells stick with
inset-inline-start/inset-inline-endand mirror under RTL. - New
resizableprop renders drag handles on each header (double-click resets a column's size).
- Register TanStack's
-
0bfa4af: DataTable keyboard expansion + CSV export utilities
DataTablenow renders a leading expander button per row whenexpandable, a real
<button>witharia-expandedand anaria-label(expandRowLabel). Row expansion is no
longer pointer-only.- Add
toCsvanddownloadCsv(with theCsvColumn/CsvOptionstypes): RFC 4180 CSV
serialization with a UTF-8 BOM by default, and a browser download helper that is a no-op
outside a DOM. Exported from@myghf/uiand auto-imported by the Nuxt module.
-
76f1220: DataTable: searching and column filters
- Register TanStack's
columnFilteringFeature+globalFilteringFeature(with the filtered row
model andfilterFns) inDataTableFeatures. - New
searchableprop renders a global search input bound withv-model:global-filter. - New
filtersprop (ColumnFiltersState) bound withv-model:filters; active filters render as
removable chips in the toolbar, with a Clear filters button (clearFiltersLabel). - New
noResultsLabeldistinguishes "no rows match your filters" from the empty state, and a
toolbarslot lets consumers add their own controls.
- Register TanStack's
-
50c84ef: DataTable: pagination and server-side mode
- New
paginateprop renders the pagination footer over the client-side rows, bound with
v-model:page-index/v-model:page-sizeand apageSizeOptionslist. - New
manualprop switches to server-side mode: TanStack skips client sorting, filtering, and
pagination;rowCountsupplies the server total, and the component emitsupdate:pageIndex/
update:pageSize(alongside the existingupdate:sorting/update:filters) for you to refetch. - A
paginationslot can replace the default footer. - Fix:
DataTableno longer caps the body at the default page size (10) — TanStack's paginated
row model is now handedpageSize: Infinityunlesspaginate/manualis set.
- New
-
ddd6a13: DataTable: row selection, bulk actions, and an error state
- Register TanStack's
rowSelectionFeature, soDataTableFeaturesnow includes row selection. - New
selectableprop adds a labelled checkbox column (header select-all + per-row), bound
withv-model:selection(a map keyed by row id) and emittingupdate:selection. - New
bulk-actionsslot renders a bar with the selected count while rows are selected,
receiving{ rows, clear }. - New
errorprop/slot replaces the body with an error message (unlessloading).
- Register TanStack's
-
635219b: DataTable: virtual scrolling
Set
maxHeightandvirtualtogether andDataTablerenders only the visible slice of rows
(plus a small overscan), padding the rest with spacer rows so the DOM stays small for very large
datasets. The windowing math lives in a new puresrc/lib/virtual.ts(`virtual...
v0.5.2
Patch Changes
- 7932b4e: fix: stop Dialog and Drawer pointing aria-describedby at a description that was never rendered