Releases: POLPROG-TECH/Native-UI
@polprog/native-ui@1.5.0
Minor Changes
-
cfe95b8: Code-quality audit fixes across the component library.
Accessibility
Input/TextAreanow append their error message to the accessible label andTextAreaexposes adisabledaccessibility state.Switchmakes the entire label/subtitle row tappable and exposes the subtitle in the accessible name; the inner native switch is hidden from assistive tech when wrapped.ModalandBottomSheetbackdrops are now exposed as a dismiss button (or hidden when non-dismissable), and decorative handles/glyphs inBottomSheet,Select,ListItemandCheckboxare hidden from screen readers.
API
InputandTextAreanow forward refs to the underlyingTextInput.Radioaccepts astyleprop and triggers light haptics on press, matchingCheckbox/Switch.Boxnow extendsViewProps, fixing the previously mistypedaccessibilityRoleand untyped passthrough props.- The
selectedValue/onValueChangealiases onSelectare marked@deprecated.
Performance
Button,IconButton,Switch,CheckboxandRadioare wrapped inReact.memo, with memoized styles and a shareduseDebouncedPresshook for press handling.SelectusesuseWindowDimensionsand memoized callbacks instead of inline closures.
Types
elevationtokens are now strongly typed via the exportedElevationtype, removingas ViewStylecasts throughout the library.
A new public
useDebouncedPresshook is exported for consumers.Docs
- The Storybook dashboard now documents PhotoToPuzzle, the first production app built on Native-UI, with a production-usage card linking to https://polprog.pl/apps/PhotoToPuzzle/.
@polprog/native-ui@1.4.0
Minor Changes
-
6ebdff9: feat(DatePickerInput): Full-featured cross-platform date/time picker
- Added
modeprop supportingdate,time, anddatetimemodes - Added
disabled,placeholder,testID,iconprops - Implemented controlled open/close via
isOpen/onOpen/onClose - Added
clearable/onClearprops for clearing selected value - Android datetime mode: two-step picker flow (date → time)
- iOS: compact native picker with placeholder-first flow support
- DEV-only console warning when peer dependency is missing
- Created
DateRangePickerInputcomposite component for date range selection - Storybook story with playground and multiple variants
- Added
@polprog/native-ui@1.3.1
Patch Changes
-
223a23c: Code quality sweep: performance, accessibility, and DRY improvements across 10 components.
Performance
ListItem- wrapped inReact.memoChip-handlePressstabilised withuseCallback.SettingsRow/SettingsSwitchRow- mergediconColorMapmemoised withuseMemo.Select-SelectRow.onPressclosure replaced with stablevalue+onSelectprops, eliminating per-option re-renders.Countdown-onExpiremoved to a ref to avoid unnecessary effect re-runs.
Accessibility
Modal- replaced incorrectaccessibilityRole="alert"withaccessibilityViewIsModal.BottomSheet/Selectsheet - replaced hardcodedpaddingBottom: 34withuseSafeAreaInsets().bottom.Select- replaced hardcodedmaxHeight: 320with40%of window height for better scaling with large text sizes.
DRY / Maintainability
- Extracted shared
FieldLabelandFieldErrorcomponents; refactoredInput,TextArea, andSelectto use them.
@polprog/native-ui@1.3.0
Minor Changes
-
58820f9: Component bug fixes, single-responsibility refactors, and a test-coverage push past 90%.
Fixes
SearchBar- honour parent-driven resets even when the debounce timer is in flight.BottomTabBar- hide the badge for0, negative, and empty-string counts.Countdown- clear the interval the moment the counter expires instead of leaking timers.BottomSheet- respecttheme.reduceAnimationson exit, not only on enter.Toast- treatduration: 0as sticky rather than collapsing to the default 3 s timeout.ErrorBoundary- treatresetKeystransitioning between defined andundefined(and back) as a reset trigger.
Refactor
- Extracted helpers, hooks, and subcomponents across
SearchBar,BottomTabBar,Countdown,BottomSheet,Toast, andErrorBoundaryfor clearer single-responsibility boundaries.
Tests & infrastructure
- Added suites for
Avatar,Skeleton,ScreenContainer,Modal,BottomSheet,ConfettiOverlay,Select,InputPrompt,Divider,Heading,SectionLabel,PaginationDots,MarqueeText,PressableScale, responsive tokens,useResponsiveSpacing, andThemeProvider. - Centralised React Native and Reanimated jest mocks, injected
__DEV__globally.
@polprog/native-ui@1.2.0
@polprog/native-ui@1.2.0
Minor Changes
- ec695b5: Add new BottomTabBar, Countdown, and StatTile components with Storybook docs and MSW support.
- c7ac7bb: Add 22 component test suites (351 tests) covering BottomTabBar, Card, Checkbox, Chip, Countdown, EmptyState, ErrorBoundary, IconButton, Input, ListHeader, ListItem, ListSection, ListSwitchItem, ProgressBar, Radio, SearchBar, Section, SettingsRow, Spinner, StatTile, Switch, and TextArea. Raise coverage thresholds to 50%.
- c7ac7bb: Improve react-native mock with aria-label, aria-selected, and disabled guard on Switch for accessible testing under jsdom.
Patch Changes
- d9fb8fa: Fix Storybook play-test queries: use
role="tab"for BottomTabBar items, add debounce wait for IconButton, andpointerEventsCheck: 0for disabled buttons. - de7a826: Remove changeset check from pre-push hook that was blocking the changesets release bot.
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Releases are managed via Changesets.
To add a changelog entry, run npx changeset from the monorepo root.
@polprog/native-ui@1.1.0
Minor Changes
- 1dc6ab5: Added semantic tokens layer, strict TypeScript, ESLint a11y rules, and changesets for automated versioning.
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Releases are managed via Changesets.
To add a changelog entry, run npx changeset from the monorepo root.