@nema-international/ui-core
v0.1.2
Published
Framework-agnostic behavior for Nema UI: color modes, positioning, focus management, dismissable layers, dates, pagination and data-table logic.
Maintainers
Readme
@nema-international/ui-core
Framework-agnostic behavior behind Nema UI, shared by the Angular package and future React/Vue adapters. No framework imports, SSR-safe.
- Color modes:
createColorMode(),colorModeBootScript - Overlays:
floating()(Floating UI with RTL-aware logical placements),createFocusTrap(),lockScroll(),dismissable()(Escape / outside click, stacked) - Motion:
animateCollapse() - Keyboard:
nextIndex()(roving focus, RTL aware),createTypeahead() - Dates: month grids, ranges, disabled dates, locale week start,
parseDate()in locale order (Arabic-Indic digits),parseTime(), Hijri month titles viaIntl - Data:
queryTable()(search, column filters, multi-sort, paging),getPageItems()(smart pagination),toCsv(),normalizeSearch()(Arabic-aware),highlight() - Formatting:
formatCurrency(),formatCompact(),formatRelative(),initials(),passwordStrength() - Stores:
createStore(),createPersistentStore(),createToaster()
import { queryTable, getPageItems } from '@nema-international/ui-core';
const { rows, total, pageCount } = queryTable(customers, columns, { search: 'erbil', sort: { column: 'name', direction: 'asc' }, page: 1, pageSize: 10 });MIT © Nema International
