@ng-native/components 0.17.0 → 0.18.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/dist/gestures.js +9 -1
- package/dist/gestures.js.map +1 -1
- package/dist/keyboard-avoiding-view.d.ts +7 -3
- package/dist/keyboard-avoiding-view.js +9 -4
- package/dist/keyboard-avoiding-view.js.map +1 -1
- package/dist/keyboard-dock.js +2 -1
- package/dist/keyboard-dock.js.map +1 -1
- package/dist/keyboard-taps.d.ts +5 -3
- package/dist/keyboard-taps.js +21 -16
- package/dist/keyboard-taps.js.map +1 -1
- package/dist/safe-area-provider.js +12 -3
- package/dist/safe-area-provider.js.map +1 -1
- package/dist/scroll-view-props.d.ts +1 -1
- package/dist/stand-ins/animations.d.ts +20 -0
- package/dist/stand-ins/animations.js +36 -0
- package/dist/stand-ins/animations.js.map +1 -0
- package/dist/text-input.d.ts +31 -4
- package/dist/text-input.js +86 -26
- package/dist/text-input.js.map +1 -1
- package/dist/touchable-opacity.d.ts +11 -19
- package/dist/touchable-opacity.js +17 -50
- package/dist/touchable-opacity.js.map +1 -1
- package/package.json +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"touchable-opacity.js","sourceRoot":"","sources":["../src/touchable-opacity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"touchable-opacity.js","sourceRoot":"","sources":["../src/touchable-opacity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAE3C;;;;;;;;;;;;;;;GAeG;AAmBH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,gGAAgG;IAC7E,mBAAmB;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IAEkB,kBAAkB;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAEkB,wBAAwB;QACzC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAEkB,aAAa;QAC9B,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACnC,CAAC;IAED,iCAAiC;IACxB,aAAa,GAAG,KAAK,CAAC,GAAG,qFAAI,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC;uGAnBvD,gBAAgB;2FAAhB,gBAAgB,+YAhBjB,gBAAgB;;2FAgBf,gBAAgB;kBAlB5B,SAAS;+BACE,mBAAmB,YACnB,gBAAgB,YAChB,kBAAkB,QAUtB;wBACJ,oCAAoC,EAAE,iBAAiB;wBACvD,iBAAiB,EAAE,WAAW;qBAC/B","sourcesContent":["import { Component, input } from '@angular/core';\nimport { ControlBase } from './pressable.ts';\nimport { numberOr } from './transforms.ts';\n\n/**\n * A pressable that dims while pressed, as RN's `TouchableOpacity` does.\n *\n * The fade is a CSS transition rather than a JavaScript tween: a rule sets the pressed opacity and\n * the engine eases to it. React Native's own timings are asymmetric - 150ms in, 250ms out - which\n * is a thing CSS expresses exactly, because the duration in force is the one on the state being\n * entered. That is what the two rules below are.\n *\n * Nothing here states the resting opacity, so whatever the cascade gives the host is what a press\n * eases back to: a class, Tailwind's, an inline `[style]` or a bound `[style.opacity]`, read when\n * the press ends as `TouchableOpacity.js` reads its style, and followed as it changes. An opacity\n * nothing sets is still 1 to ease from and to. The pressed rule is `!important` because a\n * caller's inline opacity outranks this component's host bindings and plain rules alike, and\n * would otherwise keep it from dimming at all; `activeOpacity` reaches it as a custom property,\n * which no caller's style sets.\n */\n@Component({\n selector: 'touchable-opacity',\n template: `<ng-content />`,\n exportAs: 'touchableOpacity',\n styles: `\n :host {\n transition: opacity 250ms ease-in-out;\n }\n :host(.pressed) {\n opacity: var(--touchable-active-opacity, 0.2) !important;\n transition: opacity 150ms ease-in-out;\n }\n `,\n host: {\n '[style.--touchable-active-opacity]': 'activeOpacity()',\n '[class.pressed]': 'pressed()',\n },\n})\nexport class TouchableOpacity extends ControlBase {\n /** `TouchableOpacity.js`: `accessible={this.props.accessible !== false}`, and focusable too. */\n protected override accessibleByDefault(): boolean {\n return true;\n }\n\n protected override focusableByDefault(): boolean {\n return true;\n }\n\n protected override disabledForAccessibility(): boolean | undefined {\n return this.disabled();\n }\n\n protected override pressDisabled(): boolean {\n return this.disabledByAnyState();\n }\n\n /** The opacity while pressed. */\n readonly activeOpacity = input(0.2, { transform: numberOr(0.2) });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-native/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Angular Native's core components: view, text, image, pressable, scroll-view, virtual-list, text-input and the rest of React Native's set.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
"browser": "./dist/reanimated-web.js",
|
|
40
40
|
"default": "./dist/reanimated.js"
|
|
41
41
|
},
|
|
42
|
+
"./stand-ins/animations": {
|
|
43
|
+
"types": "./dist/stand-ins/animations.d.ts",
|
|
44
|
+
"default": "./dist/stand-ins/animations.js"
|
|
45
|
+
},
|
|
42
46
|
"./stand-ins/reanimated": {
|
|
43
47
|
"types": "./dist/stand-ins/reanimated.d.ts",
|
|
44
48
|
"default": "./dist/stand-ins/reanimated.js"
|
|
@@ -57,13 +61,13 @@
|
|
|
57
61
|
"access": "public"
|
|
58
62
|
},
|
|
59
63
|
"dependencies": {
|
|
60
|
-
"@ng-native/device": "0.
|
|
61
|
-
"@ng-native/fabric": "0.
|
|
64
|
+
"@ng-native/device": "0.18.0",
|
|
65
|
+
"@ng-native/fabric": "0.18.0"
|
|
62
66
|
},
|
|
63
67
|
"peerDependencies": {
|
|
64
68
|
"@angular/core": "^22.0.0",
|
|
65
69
|
"react-native": ">=0.86.0",
|
|
66
|
-
"react-native-gesture-handler": "^2.32.0",
|
|
70
|
+
"react-native-gesture-handler": "^2.32.0 || ^3.3.0",
|
|
67
71
|
"react-native-reanimated": "^4.5.1",
|
|
68
72
|
"react-native-safe-area-context": "^5.7.0",
|
|
69
73
|
"react-native-keyboard-controller": "^1.21.9",
|