@neural-ui/native 0.1.0-beta.8 → 0.1.0-beta.9
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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Neural Native brings the Neural visual language to [Angular Native](https://ng-native.com): 64 mobile component entries, Angular signals, typed APIs, shared themes and modular imports.
|
|
6
6
|
|
|
7
|
-
**Public beta: `0.1.0-beta.
|
|
7
|
+
**Public beta: `0.1.0-beta.9`.** APIs and framework compatibility may change before 1.0. Pin the version in your application lockfile and check compatibility before updating Angular Native.
|
|
8
8
|
|
|
9
9
|
## Documentation
|
|
10
10
|
|
|
@@ -18,18 +18,18 @@ Neural Native brings the Neural visual language to [Angular Native](https://ng-n
|
|
|
18
18
|
Start with the compatible Angular Native template:
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
|
-
npx create-expo-app@latest my-neural-app --template @ng-native/template@0.
|
|
21
|
+
npx create-expo-app@latest my-neural-app --template @ng-native/template@0.25.0
|
|
22
22
|
cd my-neural-app
|
|
23
23
|
npm install @neural-ui/native@beta
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
In an existing Angular Native 0.
|
|
26
|
+
In an existing Angular Native 0.25.0 application, run only the last command. The beta is published under the npm `beta` tag; `@beta` is intentional. Applications on Angular Native 0.21.0 should keep Neural Native 0.1.0-beta.6. Applications on Angular Native 0.19.2 should keep Neural Native 0.1.0-beta.5. Applications on Angular Native 0.18.2 should keep Neural Native 0.1.0-beta.2 until they update the framework.
|
|
27
27
|
|
|
28
28
|
### Compatibility
|
|
29
29
|
|
|
30
30
|
| Dependency | This beta |
|
|
31
31
|
| --- | --- |
|
|
32
|
-
| Angular Native packages | 0.
|
|
32
|
+
| Angular Native packages | 0.25.0 |
|
|
33
33
|
| Angular | 22.2.2 tested; peers >=22.2.0 <23 |
|
|
34
34
|
| Expo / React Native | 57.0.27 / 0.86.3 tested application baseline |
|
|
35
35
|
| Current framework template | Expo 58.0.16 / React Native 0.88.0: consumer tests and iOS/Android bundles verified |
|
|
@@ -180,7 +180,7 @@ Neural Native is maintained by Pedro Moreno Trujillo and shares its visual ident
|
|
|
180
180
|
|
|
181
181
|
## Español
|
|
182
182
|
|
|
183
|
-
Neural Native ofrece componentes Angular nativos para iOS y Android. Esta beta.7 se instala con `npm install @neural-ui/native@beta` sobre una aplicación Angular Native 0.
|
|
183
|
+
Neural Native ofrece componentes Angular nativos para iOS y Android. Esta beta.7 se instala con `npm install @neural-ui/native@beta` sobre una aplicación Angular Native 0.25.0. Para Angular Native 0.21.0, conserva beta.6. Si tu aplicación utiliza Angular Native 0.19.2, conserva beta.5; para Angular Native 0.18.2, conserva Neural Native 0.1.0-beta.2 hasta actualizar el framework. Los controles utilizan signals, un tema compartido e imports modulares; tu aplicación conserva el estado y decide cómo guardar los datos. Desde beta.5 puedes activar la respuesta háptica opcional, silenciar controles concretos y cambiar esa preferencia durante la ejecución.
|
|
184
184
|
|
|
185
185
|
## License
|
|
186
186
|
|
|
@@ -67,7 +67,7 @@ export class NeuVirtualListComponent {
|
|
|
67
67
|
@if (!items().length) {
|
|
68
68
|
<text class="muted">{{ emptyLabel() }}</text>
|
|
69
69
|
}
|
|
70
|
-
</view>`, isInline: true, styles: [".neu-unavailable > * {\n /* Fade presentation children without changing the accessible action's own alpha. */\n opacity: 0.45;\n}\n.stack {\n gap: 12px;\n}\n.row {\n flex-direction: row;\n align-items: center;\n gap: 10px;\n}\n.wrap {\n flex-wrap: wrap;\n}\n.grow {\n flex: 1;\n}\n.surface {\n padding: 16px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-surface-radius, 16px);\n gap: 12px;\n}\n.outline {\n border-width: 1px;\n border-color: var(--neu-surface-border, #e1e6ed);\n}\n.title {\n color: var(--neu-text, #172033);\n font-size: var(--neu-heading-size, 18px);\n line-height: 24px;\n font-weight: 600;\n flex-shrink: 1;\n}\n.label {\n color: var(--neu-text, #172033);\n font-size: 16px;\n flex-shrink: 1;\n}\n.muted {\n color: var(--neu-muted, #596477);\n font-size: var(--neu-label-size, 14px);\n line-height: 20px;\n flex-shrink: 1;\n}\n.error {\n color: var(--neu-danger-ink, #b3261e);\n font-size: 14px;\n}\n.action {\n min-height: 48px;\n min-width: 48px;\n padding: 12px;\n justify-content: center;\n align-items: center;\n border-radius: 12px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.selected-text {\n color: var(--neu-on-accent, #ffffff);\n font-size: 16px;\n}\n.control {\n min-height: 48px;\n padding: 12px;\n font-size: 16px;\n color: var(--neu-text, #172033);\n border-width: 1px;\n border-color: var(--neu-border, #a5afbf);\n border-radius: var(--neu-control-radius, 10px);\n background-color: var(--neu-surface, #ffffff);\n}\n.track {\n height: 8px;\n border-radius: 4px;\n overflow: hidden;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.fill {\n height: 8px;\n background-color: var(--neu-accent, #3155d9);\n}\n.dot {\n width: 20px;\n height: 20px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n border-radius: 10px;\n}\n.dot-selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.avatar {\n width: 48px;\n height: 48px;\n border-radius: 24px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-tonal, #e9edfc);\n overflow: hidden;\n}\n.avatar-image {\n width: 48px;\n height: 48px;\n}\n.backdrop {\n flex: 1;\n background-color: rgba(0, 0, 0, 0.4);\n justify-content: center;\n padding: 16px;\n}\n.bottom {\n justify-content: flex-end;\n}\n.modal-layout {\n flex: 1;\n justify-content: center;\n}\n.modal-scroll {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.scroll-content {\n padding-right: 12px;\n}\n.sheet {\n padding: 20px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-dialog-radius, 24px);\n gap: 16px;\n max-height: 90%;\n}\n.full {\n flex: 1;\n}\n.sheet-background {\n background-color: var(--neu-surface, #ffffff);\n}\n.page-sheet {\n max-height: 100%;\n border-radius: 0;\n}\n.thumb {\n width: 72px;\n height: 72px;\n border-radius: 12px;\n}\n.hero {\n height: 240px;\n width: 100%;\n}\n.divider {\n height: 1px;\n background-color: var(--neu-divider, #e7ebf0);\n}\n.skeleton {\n background-color: var(--neu-border, #a5afbf);\n border-radius: 8px;\n}\n.pill {\n padding: 4px 10px;\n border-radius: 16px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.calendar-grid {\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0;\n}\n.calendar-day {\n width: 14.2857%;\n min-width: 0;\n min-height: 48px;\n padding: 4px;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n}\n.speed-dial {\n align-items: flex-end;\n}\n.fab {\n width: 56px;\n height: 56px;\n border-radius: 28px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-accent, #3155d9);\n}\n.fab-label {\n color: var(--neu-on-accent, #ffffff);\n font-size: 28px;\n}\n.slider-track {\n width: 100%;\n height: 24px;\n position: relative;\n}\n.slider-rail {\n position: absolute;\n top: 8px;\n}\n.slider-thumb {\n width: 24px;\n height: 24px;\n border-radius: 12px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n background-color: var(--neu-on-accent, #ffffff);\n position: absolute;\n top: 0;\n}\n", ".virtual-row {\n padding-left: 4px;\n padding-right: 12px;\n padding-bottom: 8px;\n}\n"], dependencies: [{ kind: "directive", type: View, selector: "view" }, { kind: "directive", type: Text, selector: "text", inputs: ["numberOfLines", "ellipsizeMode", "selectable", "selectionColor", "allowFontScaling", "maxFontSizeMultiplier", "dynamicTypeRamp", "adjustsFontSizeToFit", "minimumFontScale", "lineBreakStrategyIOS", "textBreakStrategy", "dataDetectorType", "android_hyphenationFrequency", "pressable", "suppressHighlighting"], exportAs: ["text"] }, { kind: "directive", type: Pressable, selector: "pressable", inputs: ["haptic"], exportAs: ["pressable"] }, { kind: "component", type: VirtualList, selector: "virtual-list", inputs: ["items", "itemHeight", "estimatedItemHeight", "contentPadding", "rowGap", "keyExtractor", "itemType", "maintainVisibleContentPosition", "overscan", "endReachedThreshold", "horizontal", "inverted", "stickyIndices", "stickyHeader", "keyboardShouldPersistTaps", "itemVisiblePercentThreshold"], outputs: ["endReached", "viewableItemsChanged"], exportAs: ["virtualList"] }, { kind: "directive", type: VirtualListRow, selector: "[virtualListRow]", inputs: ["virtualListRow"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
70
|
+
</view>`, isInline: true, styles: [".neu-unavailable > * {\n /* Fade presentation children without changing the accessible action's own alpha. */\n opacity: 0.45;\n}\n.stack {\n gap: 12px;\n}\n.row {\n flex-direction: row;\n align-items: center;\n gap: 10px;\n}\n.wrap {\n flex-wrap: wrap;\n}\n.grow {\n flex: 1;\n}\n.surface {\n padding: 16px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-surface-radius, 16px);\n gap: 12px;\n}\n.outline {\n border-width: 1px;\n border-color: var(--neu-surface-border, #e1e6ed);\n}\n.title {\n color: var(--neu-text, #172033);\n font-size: var(--neu-heading-size, 18px);\n line-height: 24px;\n font-weight: 600;\n flex-shrink: 1;\n}\n.label {\n color: var(--neu-text, #172033);\n font-size: 16px;\n flex-shrink: 1;\n}\n.muted {\n color: var(--neu-muted, #596477);\n font-size: var(--neu-label-size, 14px);\n line-height: 20px;\n flex-shrink: 1;\n}\n.error {\n color: var(--neu-danger-ink, #b3261e);\n font-size: 14px;\n}\n.action {\n min-height: 48px;\n min-width: 48px;\n padding: 12px;\n justify-content: center;\n align-items: center;\n border-radius: 12px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.selected-text {\n color: var(--neu-on-accent, #ffffff);\n font-size: 16px;\n}\n.control {\n min-height: 48px;\n padding: 12px;\n font-size: 16px;\n color: var(--neu-text, #172033);\n border-width: 1px;\n border-color: var(--neu-border, #a5afbf);\n border-radius: var(--neu-control-radius, 10px);\n background-color: var(--neu-surface, #ffffff);\n}\n.track {\n height: 8px;\n border-radius: 4px;\n overflow: hidden;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.fill {\n height: 8px;\n background-color: var(--neu-accent, #3155d9);\n}\n.dot {\n width: 20px;\n height: 20px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n border-radius: 10px;\n}\n.dot-selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.avatar {\n width: 48px;\n height: 48px;\n border-radius: 24px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-tonal, #e9edfc);\n overflow: hidden;\n}\n.avatar-image {\n width: 48px;\n height: 48px;\n}\n.backdrop {\n flex: 1;\n background-color: rgba(0, 0, 0, 0.4);\n justify-content: center;\n padding: 16px;\n}\n.bottom {\n justify-content: flex-end;\n}\n.modal-layout {\n flex: 1;\n justify-content: center;\n}\n.modal-scroll {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.scroll-content {\n padding-right: 12px;\n}\n.sheet {\n padding: 20px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-dialog-radius, 24px);\n gap: 16px;\n max-height: 90%;\n}\n.full {\n flex: 1;\n}\n.sheet-background {\n background-color: var(--neu-surface, #ffffff);\n}\n.page-sheet {\n max-height: 100%;\n border-radius: 0;\n}\n.thumb {\n width: 72px;\n height: 72px;\n border-radius: 12px;\n}\n.hero {\n height: 240px;\n width: 100%;\n}\n.divider {\n height: 1px;\n background-color: var(--neu-divider, #e7ebf0);\n}\n.skeleton {\n background-color: var(--neu-border, #a5afbf);\n border-radius: 8px;\n}\n.pill {\n padding: 4px 10px;\n border-radius: 16px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.calendar-grid {\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0;\n}\n.calendar-day {\n width: 14.2857%;\n min-width: 0;\n min-height: 48px;\n padding: 4px;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n}\n.speed-dial {\n align-items: flex-end;\n}\n.fab {\n width: 56px;\n height: 56px;\n border-radius: 28px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-accent, #3155d9);\n}\n.fab-label {\n color: var(--neu-on-accent, #ffffff);\n font-size: 28px;\n}\n.slider-track {\n width: 100%;\n height: 24px;\n position: relative;\n}\n.slider-rail {\n position: absolute;\n top: 8px;\n}\n.slider-thumb {\n width: 24px;\n height: 24px;\n border-radius: 12px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n background-color: var(--neu-on-accent, #ffffff);\n position: absolute;\n top: 0;\n}\n", ".virtual-row {\n padding-left: 4px;\n padding-right: 12px;\n padding-bottom: 8px;\n}\n"], dependencies: [{ kind: "directive", type: View, selector: "view" }, { kind: "directive", type: Text, selector: "text", inputs: ["numberOfLines", "ellipsizeMode", "selectable", "selectionColor", "allowFontScaling", "maxFontSizeMultiplier", "dynamicTypeRamp", "adjustsFontSizeToFit", "minimumFontScale", "lineBreakStrategyIOS", "textBreakStrategy", "dataDetectorType", "android_hyphenationFrequency", "pressable", "suppressHighlighting"], exportAs: ["text"] }, { kind: "directive", type: Pressable, selector: "pressable", inputs: ["haptic"], exportAs: ["pressable"] }, { kind: "component", type: VirtualList, selector: "virtual-list", inputs: ["items", "itemHeight", "estimatedItemHeight", "contentPadding", "rowGap", "keyExtractor", "itemType", "maintainVisibleContentPosition", "overscan", "windowSize", "endReachedThreshold", "horizontal", "inverted", "stickyIndices", "stickyHeader", "keyboardShouldPersistTaps", "itemVisiblePercentThreshold"], outputs: ["endReached", "viewableItemsChanged"], exportAs: ["virtualList"] }, { kind: "directive", type: VirtualListRow, selector: "[virtualListRow]", inputs: ["virtualListRow"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
71
71
|
}
|
|
72
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: NeuVirtualListComponent, decorators: [{
|
|
73
73
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-list.js","sourceRoot":"","sources":["../../src/virtual-list/virtual-list.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;;AA0C1E,MAAM,OAAO,uBAAuB;IACf,WAAW,GAAG,YAAY,CAAC,2BAA2B;oFAAC,CAAC;IAClE,KAAK,GAAG,KAAK,CAAuB,EAAE;8EAAC,CAAC;IACxC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,GAAG,CAAC;IACzD,mBAAmB,GAAG,KAAK,CAAC,EAAE;4FAAC,CAAC;IAChC,MAAM,GAAG,KAAK,CAAC,GAAG;+EAAC,CAAC;IACpB,UAAU,GAAG,KAAK,CAAC,UAAU;mFAAC,CAAC;IAC/B,QAAQ,GAAG,MAAM,EAAU,CAAC;IAC5B,UAAU,GAAG,MAAM,EAAQ,CAAC;IACpB,IAAI,GAAG,SAAS,CAAC,CAAA,WAAsB,CAAA;6EAAC,CAAC;IACvC,KAAK,GAAG,CAAC,IAAe,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;IACxD,aAAa,CAAC,KAAa;QACzB,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,C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AAkB,WACnB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,YACrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAkCF;gGAIsC,2BAA2B,irBAQvC,WAAsB","sourcesContent":["import {\n booleanAttribute,\n Component,\n contentChild,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n View,\n Text,\n VirtualList,\n VirtualListRow,\n} from '@ng-native/components';\nimport { NeuNativePressable as Pressable } from '../foundation/native-pressable.js';\nimport { NeuOption } from '../foundation/mobile.js';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NeuVirtualListItemDirective } from './virtual-list-templates.js';\n\n@Component({\n selector: 'neu-virtual-list',\n imports: [View, Text, Pressable, VirtualList, VirtualListRow, NgTemplateOutlet],\n template: `<view class=\"stack\"\n ><virtual-list\n #list\n [items]=\"items()\"\n [estimatedItemHeight]=\"estimatedItemHeight()\"\n [keyExtractor]=\"keyOf\"\n [style.height]=\"height()\"\n keyboardShouldPersistTaps=\"handled\"\n (endReached)=\"endReached.emit()\"\n >\n @for (row of list.window(); track row.slot) {\n <view class=\"virtual-row\" [virtualListRow]=\"row\"\n [accessibilityElementsHidden]=\"!!row.parked\"\n [importantForAccessibility]=\"row.parked ? 'no-hide-descendants' : 'auto'\"\n >@for (item of [row.item]; track item.id) {<pressable\n class=\"surface outline\"\n accessibilityRole=\"button\"\n [accessibilityLabel]=\"item.label\"\n [accessible]=\"!row.parked\"\n [disabled]=\"!!row.parked || disabled() || !!item.disabled\"\n (press)=\"choose(item)\"\n >@if (itemContent(); as customItem) {\n <ng-container [ngTemplateOutlet]=\"customItem.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item, index: row.index, disabled: disabled() || !!item.disabled }\" />\n } @else {\n <text class=\"title\">{{ item.label }}</text><text class=\"muted\">{{ item.description }}</text>\n }</pressable\n >}</view\n >\n }\n <ng-content select=\"[listHeader]\" ngProjectAs=\"[listHeader]\" /><ng-content select=\"[listFooter]\" ngProjectAs=\"[listFooter]\"\n /></virtual-list>\n @if (!items().length) {\n <text class=\"muted\">{{ emptyLabel() }}</text>\n }\n </view>`,\n styleUrls: ['../foundation/mobile.css', './virtual-list.css'],\n})\nexport class NeuVirtualListComponent {\n protected readonly itemContent = contentChild(NeuVirtualListItemDirective);\n readonly items = input<readonly NeuOption[]>([]);\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly estimatedItemHeight = input(84);\n readonly height = input(400);\n readonly emptyLabel = input('No items');\n readonly selected = output<string>();\n readonly endReached = output<void>();\n private readonly list = viewChild(VirtualList<NeuOption>);\n protected readonly keyOf = (item: NeuOption) => item.id;\n scrollToIndex(index: number): void {\n if (index >= 0 && index < this.items().length)\n this.list()?.scrollToIndex({ index, animated: true });\n }\n scrollToTop(): void {\n this.list()?.scrollToOffset({ offset: 0, animated: true });\n }\n protected choose(item: NeuOption): void {\n if (!this.disabled() && !item.disabled) this.selected.emit(item.id);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neural-ui/native",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Signals-first native Angular components for iOS and Android.",
|
|
@@ -291,10 +291,10 @@
|
|
|
291
291
|
"peerDependencies": {
|
|
292
292
|
"@angular/common": ">=22.2.0 <23",
|
|
293
293
|
"@angular/core": ">=22.2.0 <23",
|
|
294
|
-
"@ng-native/components": "0.
|
|
295
|
-
"@ng-native/device": "0.
|
|
296
|
-
"@ng-native/fabric": "0.
|
|
297
|
-
"@ng-native/icons": "0.
|
|
294
|
+
"@ng-native/components": "0.25.0",
|
|
295
|
+
"@ng-native/device": "0.25.0",
|
|
296
|
+
"@ng-native/fabric": "0.25.0",
|
|
297
|
+
"@ng-native/icons": "0.25.0",
|
|
298
298
|
"expo-haptics": "^57.0.0 || ^58.0.0",
|
|
299
299
|
"expo-modules-core": "^57.0.0 || ^58.0.0",
|
|
300
300
|
"react-native-svg": "15.15.4"
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"devDependencies": {
|
|
315
315
|
"@angular/compiler-cli": "22.2.2",
|
|
316
316
|
"@babel/core": "7.29.7",
|
|
317
|
-
"@ng-native/testing": "0.
|
|
317
|
+
"@ng-native/testing": "0.25.0",
|
|
318
318
|
"@vitest/coverage-v8": "5.0.3",
|
|
319
319
|
"expo-haptics": "57.0.3",
|
|
320
320
|
"vitest": "5.0.3"
|