docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
shadow = computeShadowWithCSMPCSS64(float(index{X}), vPositionFromLight{X}[index{X}], vDepthMetric{X}[index{X}], depthSampler{X}, shadowSampler{X}, light{X}.shadowsInfo.y, light{X}.shadowsInfo.z, light{X}.shadowsInfo.x, light{X}.shadowsInfo.w, lightSizeUVCorrection{X}[index{X}], depthCorrection{...
<mask> nextShadow = computeShadowWithCSMPCSS16(float(index{X}), vPositionFromLight{X}[index{X}], vDepthMetric{X}[index{X}], depthSampler{X}, shadowSampler{X}, light{X}.shadowsInfo.y, light{X}.shadowsInfo.z, light{X}.shadowsInfo.x, light{X}.shadowsInfo.w); <mask> #elif defin...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightFragment.fx
shadow = computeShadowCSM(float(index{X}), vPositionFromLight{X}[index{X}], vDepthMetric{X}[index{X}], shadowSampler{X}, light{X}.shadowsInfo.x, light{X}.shadowsInfo.w);
<mask> #else <mask> nextShadow = computeShadowWithCSMPCSS64(float(index{X}), vPositionFromLight{X}[index{X}], vDepthMetric{X}[index{X}], depthSampler{X}, shadowSampler{X}, light{X}.shadowsInfo.y, light{X}.shadowsInfo.z, light{X}.shadowsInfo.x, light{X}.shadowsInfo.w); <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightFragment.fx
<mask> #else <mask> nextShadow = computeShadowCSM(float(index{X}), vPositionFromLight{X}[index{X}], vDepthMetric{X}[index{X}], shadowSampler{X}, light{X}.shadowsInfo.x, light{X}.shadowsInfo.w); <mask> #endif <mask> <mask> shadow = mix(nextShadow,...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightFragment.fx
shadowDebug{X} = vec3(shadow) * vCascadeColorsMultiplier{X}[index{X}];
<mask> #endif <mask> <mask> shadow = mix(nextShadow, shadow, diffRatio{X}); <mask> #ifdef SHADOWCSMDEBUG{X} <mask> shadowDebug{X} = mix(vec3(nextShadow) * vCascadeColorsMultiplier{X}[index{X}], shadowDebug{X}, diffRatio{X}); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightFragment.fx
uniform float cascadeBlendFactor{X};
<mask> #ifdef SHADOWCSM{X} <mask> uniform mat4 lightMatrix{X}[SHADOWCSMNUM_CASCADES{X}]; <mask> uniform mat4 camViewMatCSM{X}; <mask> uniform float viewFrustumZ{X}[SHADOWCSMNUM_CASCADES{X}]; <mask> uniform float splitBlendFactor{X}; <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightFragmentDeclaration.fx
uniform vec2 lightSizeUVCorrection{X}[SHADOWCSMNUM_CASCADES{X}]; uniform float depthCorrection{X}[SHADOWCSMNUM_CASCADES{X}]; uniform float penumbraDarkness{X};
<mask> #if defined(SHADOWPCSS{X}) <mask> uniform highp sampler2DArrayShadow shadowSampler{X}; <mask> uniform highp sampler2DArray depthSampler{X}; <mask> #elif defined(SHADOWPCF{X}) <mask> uniform highp sampler2DArrayShadow shadowSampler{X}; ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightFragmentDeclaration.fx
uniform float cascadeBlendFactor{X};
<mask> #ifdef SHADOW{X} <mask> #ifdef SHADOWCSM{X} <mask> uniform mat4 lightMatrix{X}[SHADOWCSMNUM_CASCADES{X}]; <mask> uniform float viewFrustumZ{X}[SHADOWCSMNUM_CASCADES{X}]; <mask> uniform float splitBlendFactor{X}; <mask> <mask> varying vec4 vPositionFromLight{X}[SHADOWCSMNUM_CASCADES{X}]; <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightUboDeclaration.fx
uniform vec2 lightSizeUVCorrection{X}[SHADOWCSMNUM_CASCADES{X}]; uniform float depthCorrection{X}[SHADOWCSMNUM_CASCADES{X}]; uniform float penumbraDarkness{X};
<mask> #if defined(SHADOWPCSS{X}) <mask> uniform highp sampler2DArrayShadow shadowSampler{X}; <mask> uniform highp sampler2DArray depthSampler{X}; <mask> #elif defined(SHADOWPCF{X}) <mask> uniform highp sampler2DArrayShadow shadowSampler{X}; <mask> #else <mask> uniform highp sampler2DArray shad...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/lightUboDeclaration.fx
float computeShadowWithCSMPCSS(float layer, vec4 vPositionFromLight, float depthMetric, highp sampler2DArray depthSampler, highp sampler2DArrayShadow shadowSampler, float shadowMapSizeInverse, float lightSizeUV, float darkness, float frustumEdgeFalloff, int searchTapCount, int pcfTapCount, vec3[64] poissonSampl...
<mask> // This helps to achieve a contact hardening effect on the shadow <mask> // It uses 16 Taps for search and a 32 PCF taps in a randomly rotating poisson sampling disc. <mask> // This is heavily inspired from http://developer.download.nvidia.com/shaderlibrary/docs/shadow_PCSS.pdf <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/shadowsFragmentFunctions.fx
blockerDepth = texture(depthSampler, vec3(uvDepth.xy + (lightSizeUV * lightSizeUVCorrection * shadowMapSizeInverse * PoissonSamplers32[i].xy), layer)).r;
<mask> float blockerDepth = 0.0; <mask> float sumBlockerDepth = 0.0; <mask> float numBlocker = 0.0; <mask> for (int i = 0; i < searchTapCount; i ++) { <mask> blockerDepth = texture(depthSampler, vec3(uvDepth.xy + (lightSizeUV * shadowMapSizeInverse * ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/shadowsFragmentFunctions.fx
float penumbraRatio = ((depthMetric - avgBlockerDepth) * depthCorrection + AAOffset); vec4 filterRadius = vec4(penumbraRatio * lightSizeUV * lightSizeUVCorrection * shadowMapSizeInverse, 0., 0.);
<mask> // Offset preventing aliasing on contact. <mask> float AAOffset = shadowMapSizeInverse * 10.; <mask> // Do not dividing by z despite being physically incorrect looks better due to the limited kernel size. <mask> // float penumbraRatio = (depthMetric - avgBlocke...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/shadowsFragmentFunctions.fx
shadow = mix(shadow, 1., min((depthMetric - avgBlockerDepth) * depthCorrection * penumbraDarkness, 1.));
<mask> } <mask> shadow /= float(pcfTapCount); <mask> <mask> // Blocker distance falloff <mask> shadow = mix(shadow, 1., depthMetric - avgBlockerDepth); <mask> <mask> // Apply darkness <mask> shadow = mix(darkness, 1., shadow); <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe07b3491c0c7572d0b6df03541de8bc026cf59c
src/Shaders/ShadersInclude/shadowsFragmentFunctions.fx
var hash = location.hash.substr(1); currentSnippetToken = hash.split("#")[0]; showEditor();
<mask> if (previousHash != location.hash) { <mask> cleanHash(); <mask> <mask> previousHash = location.hash; <mask> <mask> try { <mask> var xmlHttp = new XMLHttpRequest(); <mask> xmlHttp.onreadystatechange = function () { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep"...
https://github.com/BabylonJS/Babylon.js/commit/fe3ad21b18c2c760aaf8159654964a5e0d12eed2
guiEditor/public/index.js
currentSnippetToken: currentSnippetToken,
<mask> hostElement: hostElement, <mask> customLoadObservable: customLoadObservable, <mask> customSave: { <mask> label: "Save as unique URL", <mask> action: (data) => { <mask> return new Promise((resolve, reject) => { </s> adding snippet server loadi...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe3ad21b18c2c760aaf8159654964a5e0d12eed2
guiEditor/public/index.js
this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(`Please note: This editor is still a work in progress. You may submit feedback to msDestiny14 on GitHub.`);
<mask> // Watch for browser/canvas resize events <mask> window.addEventListener("resize", function () { <mask> engine.resize(); <mask> }); <mask> <mask> engine.runRenderLoop(() => {this.updateGUIs(); scene.render()}); <mask> } <mask> <mask> updateGUIs() <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe3ad21b18c2c760aaf8159654964a5e0d12eed2
guiEditor/src/diagram/workbench.tsx
import { WorkbenchComponent } from "./diagram/workbench";
<mask> import { WorkbenchEditor } from "./workbenchEditor"; <mask> import { Popup } from "./sharedUiComponents/lines/popup"; <mask> import { Observable } from "babylonjs/Misc/observable"; <mask> /** <mask> * Interface used to specify creation options for the gui editor <mask> */ <mask> export interface IGUIEdi...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe3ad21b18c2c760aaf8159654964a5e0d12eed2
guiEditor/src/guiEditor.ts
currentSnippetToken?: string;
<mask> */ <mask> export interface IGUIEditorOptions { <mask> hostElement?: HTMLElement; <mask> customSave?: { label: string; action: (data: string) => Promise<void> }; <mask> customLoadObservable?: Observable<any>; <mask> } <mask> <mask> /** <mask> * Class used to create a gui editor </s> addin...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe3ad21b18c2c760aaf8159654964a5e0d12eed2
guiEditor/src/guiEditor.ts
try { if(options.currentSnippetToken) { globalState.workbench.loadFromSnippet(options.currentSnippetToken); } } catch (error) { console.log(error); }
<mask> ReactDOM.render(graphEditor, hostElement); <mask> // create the middle workbench canvas <mask> if (!globalState.guiTexture) { <mask> globalState.workbench.createGUICanvas(); <mask> } <mask> <mask> if (options.customLoadObservable) { <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fe3ad21b18c2c760aaf8159654964a5e0d12eed2
guiEditor/src/guiEditor.ts
babylonTexture.updateURL(dataUrl, data);
<mask> if (!url) { <mask> promises.push(this.loadImageAsync(`/images/${image.index}`, image).then((data) => { <mask> const name = image.uri || `${this._fileName}#image${image.index}`; <mask> const dataUrl = `data:${this._uniqueRootUrl}${name}`; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
loaders/src/glTF/2.0/glTFLoader.ts
buffer: Nullable<string | ArrayBuffer | ArrayBufferView | HTMLImageElement | Blob> = null, fallback: Nullable<InternalTexture> = null, format: Nullable<number> = null,
<mask> * @returns a InternalTexture for assignment back into BABYLON.Texture <mask> */ <mask> public createTexture(urlArg: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<Scene>, samplingMode: number = Engine.TEXTURE_TRILINEAR_SAMPLINGMODE, <mask> onLoad: Nullable<() => ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Engines/engine.ts
else if (typeof buffer === "string" || buffer instanceof ArrayBuffer || ArrayBuffer.isView(buffer) || buffer instanceof Blob) {
<mask> } else { <mask> FileTools.LoadImage(url, onload, onInternalError, scene ? scene.offlineProvider : null); <mask> } <mask> } <mask> else if (typeof buffer === "string" || buffer instanceof ArrayBuffer || buffer instanceof Blob) { <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Engines/engine.ts
public _buffer: Nullable<string | ArrayBuffer | ArrayBufferView | HTMLImageElement | Blob> = null;
<mask> public _associatedChannel = -1; <mask> /** @hidden */ <mask> public _dataSource = InternalTexture.DATASOURCE_UNKNOWN; <mask> /** @hidden */ <mask> public _buffer: Nullable<string | ArrayBuffer | HTMLImageElement | Blob> = null; <mask> /** @hidden */ <mask> public _bufferView: N...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Materials/Textures/internalTexture.ts
public _buffer: Nullable<string | ArrayBuffer | ArrayBufferView | HTMLImageElement | Blob> = null;
<mask> /** @hidden */ <mask> protected _initialSamplingMode = Texture.BILINEAR_SAMPLINGMODE; <mask> <mask> /** @hidden */ <mask> public _buffer: Nullable<string | ArrayBuffer | HTMLImageElement | Blob> = null; <mask> private _deleteBuffer: boolean = false; <mask> protected _format: Nulla...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Materials/Textures/texture.ts
constructor(url: Nullable<string>, sceneOrEngine: Nullable<Scene | Engine>, noMipmap: boolean = false, invertY: boolean = true, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE, onLoad: Nullable<() => void> = null, onError: Nullable<(message?: string, exception?: any) => void> = null, buffer: Nullable<string |...
<mask> * @param buffer define the buffer to load the texture from in case the texture is loaded from a buffer representation <mask> * @param deleteBuffer define if the buffer we are loading the texture from should be deleted after load <mask> * @param format define the format of the texture we are try...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Materials/Textures/texture.ts
public updateURL(url: string, buffer: Nullable<string | ArrayBuffer | ArrayBufferView | HTMLImageElement | Blob> = null, onLoad?: () => void): void {
<mask> * @param url the url of the texture <mask> * @param buffer the buffer of the texture (defaults to null) <mask> * @param onLoad callback called when the texture is loaded (defaults to null) <mask> */ <mask> public updateURL(url: string, buffer: Nullable<string | ArrayBuffer | HTMLIma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Materials/Textures/texture.ts
public static LoadImage(input: string | ArrayBuffer | ArrayBufferView | Blob, onLoad: (img: HTMLImageElement) => void, onError: (message?: string, exception?: any) => void, offlineProvider: Nullable<IOfflineProvider>): HTMLImageElement {
<mask> * @param onError callback called when the image fails to load <mask> * @param offlineProvider offline provider for caching <mask> * @returns the HTMLImageElement of the loaded image <mask> */ <mask> public static LoadImage(input: string | ArrayBuffer | Blob, onLoad: (img: HTMLImageEl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Misc/fileTools.ts
if (input instanceof ArrayBuffer || ArrayBuffer.isView(input)) {
<mask> public static LoadImage(input: string | ArrayBuffer | Blob, onLoad: (img: HTMLImageElement) => void, onError: (message?: string, exception?: any) => void, offlineProvider: Nullable<IOfflineProvider>): HTMLImageElement { <mask> let url: string; <mask> let usingObjectURL = false; <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/fee23471614ab013b89e5af0933255f3207e413b
src/Misc/fileTools.ts
- gulp tests-whatsnew
<mask> - "sh -e /etc/init.d/xvfb start" <mask> - sleep 3 # give xvfb some time to start <mask> script: <mask> - set -e <mask> - gulp typescript-all <mask> - gulp typedoc-all <mask> - gulp tests-unit <mask> - travis_retry gulp tests-validation-virtualscreen </s> Add what's new check in the build Fixed #3592 ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/ffbb574ac7736d4c7141d91bf0b661b856102bca
.travis.yml
var request = require('request'); var fs = require("fs"); var karmaServer = require('karma').Server;
<mask> var typedoc = require("gulp-typedoc"); <mask> var validateTypedoc = require("./gulp-validateTypedoc"); <mask> <mask> var config = require("./config.json"); <mask> <mask> var del = require("del"); </s> Add what's new check in the build Fixed #3592 Former-commit-id: 55f085ea0f6fb646b7a2df77f78d937e20f15...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/ffbb574ac7736d4c7141d91bf0b661b856102bca
Tools/Gulp/gulpfile.js
<mask> var config = require("./config.json"); <mask> <mask> var del = require("del"); <mask> <mask> var karmaServer = require('karma').Server; <mask> <mask> var debug = require("gulp-debug"); <mask> var includeShadersStream; <mask> var shadersStream; <mask> var workersStream; <mask> </s> Add what's new ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/ffbb574ac7736d4c7141d91bf0b661b856102bca
Tools/Gulp/gulpfile.js
import variable from "../theme/variables/platform";
<mask> import React, { Component } from "react"; <mask> import PropTypes from "prop-types"; <mask> import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; <mask> import { connectStyle } from "native-base-shoutem-theme"; <mask> import mapPropsToStyleNames from "../Utils/mapPropsToStyleNam...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Content.js
static contextTypes = { theme: PropTypes.object }; constructor(props) { super(props); this.state = { orientation: "portrait" }; } layoutChange(val) { let maxComp = Math.max(variable.deviceWidth, variable.deviceHeight); if (val.width >= maxComp) this.setState({ orientation: "lands...
<mask> import { connectStyle } from "native-base-shoutem-theme"; <mask> import mapPropsToStyleNames from "../Utils/mapPropsToStyleNames"; <mask> <mask> class Content extends Component { <mask> render() { <mask> return ( <mask> <KeyboardAwareScrollView <mask> automaticallyAdjustContentInsets={false} ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Content.js
style: PropTypes.oneOfType([ PropTypes.object, PropTypes.number, PropTypes.array ]), padder: PropTypes.bool, disableKBDismissScroll: PropTypes.bool, enableResetScrollToCoords: PropTypes.bool, keyboardShouldPersistTaps: PropTypes.string
<mask> } <mask> } <mask> <mask> Content.propTypes = { <mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]), <mask> padder: PropTypes.bool, <mask> disableKBDismissScroll: PropTypes.bool, <mask> enableResetScrollToCoords: PropTypes.bool, <mask> keyboardShouldPersistTaps...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Content.js
const StyledContent = connectStyle( "NativeBase.Content", {}, mapPropsToStyleNames )(Content);
<mask> enableResetScrollToCoords: PropTypes.bool, <mask> keyboardShouldPersistTaps: PropTypes.string <mask> }; <mask> <mask> const StyledContent = connectStyle("NativeBase.Content", {}, mapPropsToStyleNames)(Content); <mask> <mask> export { StyledContent as Content }; </s> Safearea implementation for Header...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Content.js
import variable from "../theme/variables/platform";
<mask> import PropTypes from "prop-types"; <mask> import { View, ViewPropTypes } from "react-native"; <mask> import _ from "lodash"; <mask> import { connectStyle } from "native-base-shoutem-theme"; <mask> import mapPropsToStyleNames from "../Utils/mapPropsToStyleNames"; <mask> <mask> class Footer extends Compon...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Footer.js
const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable; return variable.isIphoneX ? ( <View ref={c => (this._root = c)} {...this.props} onLayout={e => this.layoutChange(e.nativeEvent.layout)} style={[ ...
<mask> import mapPropsToStyleNames from "../Utils/mapPropsToStyleNames"; <mask> <mask> class Footer extends Component { <mask> render() { <mask> return <View ref={c => (this._root = c)} {...this.props} />; <mask> } <mask> } <mask> <mask> Footer.propTypes = { <mask> ...ViewPropTypes, </s> Safearea...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Footer.js
constructor(props) { super(props); this.state = { orientation: "portrait" }; } layoutChange(val) { let maxComp = Math.max(variable.deviceWidth, variable.deviceHeight); if (val.width >= maxComp) this.setState({ orientation: "landscape" }); else { this.setState({ orientation: "po...
<mask> class Header extends Component { <mask> static contextTypes = { <mask> theme: PropTypes.object <mask> }; <mask> <mask> render() { <mask> const variables = this.context.theme <mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variables <mask> : variable; <mask> cons...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Header.js
<View onLayout={e => this.layoutChange(e.nativeEvent.layout)}>
<mask> : variable; <mask> const platformStyle = variables.platformStyle; <mask> <mask> return ( <mask> <View> <mask> <StatusBar <mask> backgroundColor={ <mask> this.props.androidStatusBarColor <mask> ? this.props.androidStatusBarColor <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Header.js
{variable.isIphoneX ? ( <View ref={c => (this._root = c)} {...this.props} style={[ this.props.style, { height: this.calculateHeight( this.state.orientation, variables.Inset ...
<mask> ? "light-content" <mask> : variables.iosStatusbar <mask> } <mask> /> <mask> <View ref={c => (this._root = c)} {...this.props} /> <mask> </View> <mask> ); <mask> } <mask> } <mask> </s> Safearea implementation for Header, footer and ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/basic/Header.js
height: variables.footerHeight,
<mask> shadowRadius: null, <mask> shadowOpacity: null, <mask> alignSelf: "center", <mask> flex: 1, <mask> height: (variables.footerHeight - (variables.isIphoneX ? 34 : 0)), <mask> justifyContent: "center", <mask> ".badge": { <mask> "NativeBase.Badge": { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/FooterTab.js
backgroundColor: Platform.OS === "android" ? variables.tabActiveBgColor : undefined,
<mask> fontSize: variables.tabBarTextSize, <mask> lineHeight: 16 <mask> } <mask> }, <mask> backgroundColor: Platform.OS === "android" <mask> ? variables.tabActiveBgColor <mask> : undefined, <mask> flexDirection: "row", <mask> justifyContent: "space-between", <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/FooterTab.js
alignSelf: "flex-start"
<mask> const headerTheme = { <mask> ".span": { <mask> height: 128, <mask> "NativeBase.Left": { <mask> alignSelf: "flex-start", <mask> }, <mask> "NativeBase.Body": { <mask> alignSelf: "flex-end", <mask> alignItems: "flex-start", <mask> justifyConten...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
paddingBottom: 26
<mask> "NativeBase.Body": { <mask> alignSelf: "flex-end", <mask> alignItems: "flex-start", <mask> justifyContent: "center", <mask> paddingBottom: 26, <mask> }, <mask> "NativeBase.Right": { <mask> alignSelf: "flex-start", <mask> }, <mask> }, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
alignSelf: "flex-start" }
<mask> justifyContent: "center", <mask> paddingBottom: 26, <mask> }, <mask> "NativeBase.Right": { <mask> alignSelf: "flex-start", <mask> }, <mask> }, <mask> ".hasSubtitle": { <mask> "NativeBase.Body": { <mask> "NativeBase.Title": { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
textAlign: "center"
<mask> "NativeBase.Body": { <mask> "NativeBase.Title": { <mask> fontSize: variables.titleFontSize - 2, <mask> fontFamily: variables.titleFontfamily, <mask> textAlign: "center", <mask> }, <mask> "NativeBase.Subtitle": { <mask> fontSize: variab...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
textAlign: "center" } }
<mask> "NativeBase.Subtitle": { <mask> fontSize: variables.subTitleFontSize, <mask> fontFamily: variables.titleFontfamily, <mask> color: variables.subtitleColor, <mask> textAlign: "center", <mask> }, <mask> }, <mask> }, <mask> ".noShadow": {...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
shadowOpacity: null
<mask> elevation: 0, <mask> shadowColor: null, <mask> shadowOffset: null, <mask> shadowRadius: null, <mask> shadowOpacity: null, <mask> }, <mask> ".hasTabs": { <mask> elevation: 0, <mask> shadowColor: null, <mask> shadowOffset: null, </s> Safearea imple...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
borderBottomWidth: null
<mask> shadowColor: null, <mask> shadowOffset: null, <mask> shadowRadius: null, <mask> shadowOpacity: null, <mask> borderBottomWidth: null, <mask> }, <mask> ".hasSegment": { <mask> elevation: 0, <mask> shadowColor: null, <mask> shadowOffset: null, </s> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
flex: 0.3
<mask> shadowRadius: null, <mask> shadowOpacity: null, <mask> borderBottomWidth: null, <mask> "NativeBase.Left": { <mask> flex: 0.3, <mask> }, <mask> "NativeBase.Right": { <mask> flex: 0.3, <mask> }, <mask> "NativeBase.Body": { </s> Safearea imp...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
flex: 0.3
<mask> "NativeBase.Left": { <mask> flex: 0.3, <mask> }, <mask> "NativeBase.Right": { <mask> flex: 0.3, <mask> }, <mask> "NativeBase.Body": { <mask> flex: 1, <mask> "NativeBase.Segment": { <mask> marginRight: 0, </s> Safearea implementati...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
alignSelf: "center",
<mask> "NativeBase.Body": { <mask> flex: 1, <mask> "NativeBase.Segment": { <mask> marginRight: 0, <mask> alignSelf: 'center', <mask> "NativeBase.Button": { <mask> paddingLeft: 0, <mask> paddingRight: 0 <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
} }
<mask> "NativeBase.Button": { <mask> paddingLeft: 0, <mask> paddingRight: 0 <mask> } <mask> }, <mask> }, <mask> }, <mask> "NativeBase.Button": { <mask> justifyContent: "center", <mask> alignSelf: "center", <mask> alignItems: ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
fontWeight: "600"
<mask> alignItems: "center", <mask> ".transparent": { <mask> "NativeBase.Text": { <mask> color: variables.toolbarBtnTextColor, <mask> fontWeight: "600", <mask> }, <mask> "NativeBase.Icon": { <mask> color: variables.toolbarBtnColor, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
color: variables.toolbarBtnColor
<mask> color: variables.toolbarBtnTextColor, <mask> fontWeight: "600", <mask> }, <mask> "NativeBase.Icon": { <mask> color: variables.toolbarBtnColor, <mask> }, <mask> "NativeBase.IconNB": { <mask> color: variables.toolbarBtnColor, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
color: variables.toolbarBtnColor
<mask> "NativeBase.Icon": { <mask> color: variables.toolbarBtnColor, <mask> }, <mask> "NativeBase.IconNB": { <mask> color: variables.toolbarBtnColor, <mask> }, <mask> paddingHorizontal: variables.buttonPadding, <mask> }, <mask> paddingHori...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
paddingHorizontal: variables.buttonPadding
<mask> }, <mask> "NativeBase.IconNB": { <mask> color: variables.toolbarBtnColor, <mask> }, <mask> paddingHorizontal: variables.buttonPadding, <mask> }, <mask> paddingHorizontal: 15, <mask> }, <mask> ".searchBar": { <mask> "NativeBase.Item": {...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
paddingHorizontal: 15
<mask> color: variables.toolbarBtnColor, <mask> }, <mask> paddingHorizontal: variables.buttonPadding, <mask> }, <mask> paddingHorizontal: 15, <mask> }, <mask> ".searchBar": { <mask> "NativeBase.Item": { <mask> "NativeBase.Icon": { <mask> ba...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
paddingLeft: 10
<mask> fontSize: variables.toolbarSearchIconSize, <mask> alignItems: "center", <mask> marginTop: 2, <mask> paddingRight: 10, <mask> paddingLeft: 10, <mask> }, <mask> "NativeBase.IconNB": { <mask> backgroundColor: "transparent", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
alignSelf: "center"
<mask> }, <mask> "NativeBase.IconNB": { <mask> backgroundColor: "transparent", <mask> color: null, <mask> alignSelf: "center", <mask> }, <mask> "NativeBase.Input": { <mask> alignSelf: "center", <mask> lineHeight: 24, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
height: variables.searchBarInputHeight
<mask> }, <mask> "NativeBase.Input": { <mask> alignSelf: "center", <mask> lineHeight: 24, <mask> height: variables.searchBarInputHeight, <mask> }, <mask> alignSelf: "center", <mask> alignItems: "center", <mask> justifyContent: "flex-...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
alignItems: platform === "ios" && platformStyle !== "material" ? "center" : "flex-start",
<mask> alignItems: "flex-start", <mask> }, <mask> "NativeBase.Body": { <mask> flex: 1, <mask> alignItems: platform === "ios" && platformStyle !== "material" ? "center" : "flex-start", <mask> alignSelf: "center", <mask> "NativeBase.Segment": { <mask> borderWidth: 0, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
marginLeft: 5
<mask> color: variables.toolbarBtnColor, <mask> fontSize: variables.iconHeaderSize - 2, <mask> marginTop: 2, <mask> marginRight: 2, <mask> marginLeft: 5, <mask> }, <mask> "NativeBase.Text": { <mask> color: variables.tool...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
marginLeft: 5 }
<mask> color: variables.toolbarBtnColor, <mask> fontSize: variables.iconHeaderSize - 2, <mask> marginTop: 2, <mask> marginRight: 2, <mask> marginLeft: 5, <mask> }, <mask> }, <mask> ".transparent": { <mask> marginRig...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
justifyContent: "flex-end"
<mask> flex: 1, <mask> alignSelf: "center", <mask> alignItems: "flex-end", <mask> flexDirection: "row", <mask> justifyContent: "flex-end", <mask> }, <mask> backgroundColor: variables.toolbarDefaultBg, <mask> flexDirection: "row", <mask> paddingHorizontal: 10, <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
paddingTop: platform === "ios" ? 15 : 0, borderBottomWidth: platform === "ios" ? 1 / PixelRatio.getPixelSizeForLayoutSize(1) : 0,
<mask> backgroundColor: variables.toolbarDefaultBg, <mask> flexDirection: "row", <mask> paddingHorizontal: 10, <mask> justifyContent: "center", <mask> paddingTop: platform === "ios" ? (variables.isIphoneX ? 39 : 15) : 0, <mask> borderBottomWidth: platform === "ios" ? 1 / PixelRatio.getPixe...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/components/Header.js
footerPaddingBottom: 0,
<mask> <mask> // Footer <mask> footerHeight: isIphoneX ? 89 : 55, <mask> footerDefaultBg: "#3F51B5", <mask> footerPaddingBottom: isIphoneX ? 34 : 0, <mask> <mask> // FooterTab <mask> tabBarTextColor: "#fff", <mask> tabBarTextSize: 11, <mask> activeTab: "#fff", </s> Safearea implementation f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/02488686876423d0d490d73e89587fac846ddfe3
src/theme/variables/material.js
"@react-native-aria/interactions": "0.2.1",
<mask> }, <mask> "dependencies": { <mask> "babel-eslint": "^10.1.0", <mask> "deepmerge": "^4.2.2", <mask> "expo-constants": "^9.3.5", <mask> "expo-font": "^8.3.0", <mask> "hoist-non-react-statics": "^3.3.2", <mask> "lodash": "^4.17.20", </s> feat: replace Hoverable with useHover fro...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
package.json
import { mergeRefs } from './../../../utils'; import { useHover } from '@react-native-aria/interactions';
<mask> IAccordionItemContextProps, <mask> } from './types'; <mask> import { AccordionItemContext } from './Context'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import { Hoverable } from './../../../utils'; <mask> <mask> const AccordionButton = ( <mask> { children, ...props }: IAccordionB...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/composites/Accordion/AccordionButton.tsx
const _ref = React.useRef(null); const { isHovered } = useHover({}, _ref);
<mask> const pressHandler = () => { <mask> isOpen ? onClose && onClose() : onOpen && onOpen(); <mask> }; <mask> <mask> return ( <mask> <TouchableOpacity <mask> activeOpacity={1} <mask> disabled={isDisabled} </s> feat: replace Hoverable with useHover from rn-aria </s> remove <Touc...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/composites/Accordion/AccordionButton.tsx
ref={mergeRefs([ref, _ref])}
<mask> disabled={isDisabled} <mask> onPress={pressHandler} <mask> accessible <mask> accessibilityRole="checkbox" <mask> ref={ref} <mask> > <mask> <Hoverable> <mask> {(isHovered: boolean) => { <mask> return ( <mask> <Box </s> feat: replace ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/composites/Accordion/AccordionButton.tsx
<Box display="flex" flexDirection="row" justifyContent="space-between" alignItems="center" {...newProps} {...(isHovered && _hover)} {...(isOpen && _expanded)} {...(isDisabled && _disabled)} {...(!index && { borderTopColor: 'transparent' })} ...
<mask> accessible <mask> accessibilityRole="checkbox" <mask> ref={ref} <mask> > <mask> <Hoverable> <mask> {(isHovered: boolean) => { <mask> return ( <mask> <Box <mask> display="flex" <mask> flexDirection="row" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/composites/Accordion/AccordionButton.tsx
import { mergeRefs } from './../../../utils';
<mask> import React from 'react'; <mask> import { TouchableOpacity, Platform } from 'react-native'; <mask> import { Hoverable } from './../../../utils'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import { Center } from '../../composites/Center'; <mask> import { <mask> FormControlContext, <m...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Checkbox/Checkbox.tsx
import { useHover } from '@react-native-aria/interactions';
<mask> import Icon from '../Icon'; <mask> import { CheckboxContext } from './CheckboxGroup'; <mask> import type { ICheckboxContext, ICheckboxProps } from './types'; <mask> import { useCheckbox } from './useCheckbox'; <mask> <mask> const Checkbox = ({ icon, ...props }: ICheckboxProps, ref: any) => { <mask> con...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Checkbox/Checkbox.tsx
const _ref = React.useRef(null); const { isHovered } = useHover({}, _ref); const outlineColor = isHovered && !isDisabled ? activeColor : isChecked ? isDisabled ? borderColor : activeColor : borderColor;
<mask> ) <mask> : null; <mask> <mask> return ( <mask> <TouchableOpacity <mask> activeOpacity={1} <mask> ref={mergeRefs([ref, _ref])} <mask> {...inputProps} <mask> > </s> feat: replace Hoverable with useHover from rn-aria </s> remove <TouchableOpacity activeOpacity=...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Checkbox/Checkbox.tsx
<TouchableOpacity activeOpacity={1} ref={mergeRefs([ref, _ref])} {...inputProps} > <Box flexDirection="row" alignItems="center" {...newProps} opacity={isDisabled ? 0.4 : 1} {...(Platform.OS === 'web' ? { disabled: isDisabled...
<mask> ) <mask> : null; <mask> <mask> return ( <mask> <TouchableOpacity activeOpacity={1} ref={ref} {...inputProps}> <mask> <Hoverable> <mask> {(isHovered: boolean) => { <mask> const outlineColor = <mask> isHovered && !isDisabled <mask> ? ac...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Checkbox/Checkbox.tsx
<mask> import React, { forwardRef, useState } from 'react'; <mask> import { TextInput, Animated, Platform } from 'react-native'; <mask> import { Hoverable } from './../../../utils'; <mask> import styled from 'styled-components/native'; <mask> import { <mask> border, <mask> flex, <mask> space, </s> feat: ...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Input/index.tsx
import { useHover } from '@react-native-aria/interactions';
<mask> import type { IInputProps } from './types'; <mask> import { InputRightAddon, InputGroup, InputLeftAddon } from './InputGroup'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import { themeTools } from '../../../theme'; <mask> <mask> const StyledInput = styled(TextInput)<IInputProps>( <mask...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Input/index.tsx
const _ref = React.useRef(null); const { isHovered } = useHover({}, _ref); let updatedBorderColor = borderColorFromProps; if (isHovered) updatedBorderColor = hoverBorderColor; else if (isFocused) updatedBorderColor = focusBorderColor; else if (isInvalid) updatedBorderColor = errorBorderColor; const focus...
<mask> }).start(); <mask> }; <mask> <mask> return ( <mask> <Box w={isFullWidth ? '100%' : 'auto'} {...layoutProps}> <mask> <Box <mask> ref={_ref} </s> feat: replace Hoverable with useHover from rn-aria </s> remove <Hoverable> {(isHovered: boolean) => { let upda...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Input/index.tsx
<Box ref={_ref} borderColor={updatedBorderColor} borderWidth={borderWidth} borderBottomWidth={borderBottomWidth} {...rem} {...(isDisabled && newProps._isDisabledProps)} {...computedProps} {...(isFocused && Platform.OS === 'web' && focusStyle)} ...
<mask> }; <mask> <mask> return ( <mask> <Box w={isFullWidth ? '100%' : 'auto'} {...layoutProps}> <mask> <Hoverable> <mask> {(isHovered: boolean) => { <mask> let updatedBorderColor = borderColorFromProps; <mask> if (isHovered) updatedBorderColor = hoverBorderColor; <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "ke...
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Input/index.tsx
<Flex {...newProps} bg="transparent"> <Box bg="transparent" color={updatedBorderColor} fontSize={fontSize} > {label} <Box w="120%" p="1px" ...
<mask> {...computedProps} <mask> {...(isFocused && Platform.OS === 'web' && focusStyle)} <mask> style={style} <mask> > <mask> {InputLeftElement ? ( <mask> <Flex justify="center" align="center" left={0}> <mask> {...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Input/index.tsx
import { mergeRefs } from './../../../utils'; import { useHover } from '@react-native-aria/interactions';
<mask> import { useThemeProps } from '../../../hooks'; <mask> import { RadioContext } from './RadioGroup'; <mask> import type { IRadioProps } from './types'; <mask> import { useRadio } from './useRadio'; <mask> import { Hoverable } from './../../../utils'; <mask> <mask> const Radio = ({ icon, children, ...props...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Radio/Radio.tsx
const _ref = React.useRef(null); const { isHovered } = useHover({}, _ref); const outlineColor = isHovered && !isDisabled ? activeColor : checked ? isDisabled ? borderColor : activeColor : borderColor;
<mask> <mask> const { inputProps } = useRadio(props, contextState, null); <mask> const { checked, disabled: isDisabled } = inputProps; <mask> return ( <mask> <TouchableOpacity <mask> activeOpacity={1} <mask> ref={mergeRefs([ref, _ref])} <mask> {...inputProps} </s> feat: replace Hov...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Radio/Radio.tsx
<TouchableOpacity activeOpacity={1} ref={mergeRefs([ref, _ref])} {...inputProps} > <Box flexDirection="row" justifyContent="center" alignItems="center" {...newProps} opacity={isDisabled ? 0.4 : 1} {...(Platform.OS === 'web' ? { ...
<mask> <mask> const { inputProps } = useRadio(props, contextState, null); <mask> const { checked, disabled: isDisabled } = inputProps; <mask> return ( <mask> <TouchableOpacity activeOpacity={1} ref={ref} {...inputProps}> <mask> <Hoverable> <mask> {(isHovered: boolean) => { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/components/primitives/Radio/Radio.tsx
export { mergeRefs } from './mergeRefs';
<mask> }; <mask> <mask> export type { IAccessibilityProps } from './accessibilityTypes'; <mask> <mask> export { default as Hoverable } from './Hoverable'; <mask> export type { HoverableProps } from './Hoverable'; </s> feat: replace Hoverable with useHover from rn-aria </s> remove import { Hoverable } from './....
[ "keep", "keep", "keep", "keep", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/025f339d611ae3d72b4f00018d7cbd5c6761b593
src/utils/index.ts
import { useResolvedFontFamily } from '../../../hooks/useResolvedFontFamily';
<mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { mergeRefs } from '../../../utils'; <mask> <mask> const StyledInput = styled(TextInput)<IInputProps>( <mask> flex, <mask> color, <mask> space, <mask> layout, </s> fix: add tokenised font family support in input component...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Input/InputBase.tsx
fontFamily, fontWeight, fontStyle,
<mask> _disabled, <mask> _invalid, <mask> ...themedProps <mask> } = usePropsResolution('Input', { <mask> ...inputThemeProps, <mask> ...props, <mask> }); </s> fix: add tokenised font family support in input component </s> remove if (resolvedFontFamily) { fontFamily = resolvedFontFam...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Input/InputBase.tsx
const resolvedFontFamily = useResolvedFontFamily({ fontFamily, fontWeight, fontStyle, });
<mask> const { isHovered } = useHover({}, _ref); <mask> <mask> return ( <mask> <StyledInput <mask> {...inputProps} <mask> fontFamily={resolvedFontFamily} </s> fix: add tokenised font family support in input component </s> remove type IUseResolvedFontFamily = { fontFamily: string; fontSt...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Input/InputBase.tsx
fontFamily={resolvedFontFamily} fontWeight={fontWeight} fontStyle={fontStyle}
<mask> <mask> return ( <mask> <StyledInput <mask> {...inputProps} <mask> secureTextEntry={type === 'password'} <mask> accessible <mask> accessibilityLabel={ariaLabel || accessibilityLabel} <mask> editable={isDisabled || isReadOnly ? false : true} <mask> w={isFullWidth...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Input/InputBase.tsx
<mask> import React, { memo, forwardRef, useRef } from 'react'; <mask> import { Text as NativeText } from 'react-native'; <mask> import { useTheme } from '../../../hooks'; <mask> import styled from 'styled-components/native'; <mask> import { <mask> color, <mask> position, <mask> space, </s> fix: add toke...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Text/index.tsx
import { useResolvedFontFamily } from '../../../hooks/useResolvedFontFamily';
<mask> } from '../../../utils/customProps'; <mask> import type { ITextProps } from './types'; <mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { mergeRefs } from '../../../utils/mergeRefs'; <mask> <mask> type IUseResolvedFontFamily = { <mask> fontFamily: string; <mask> fontS...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Text/index.tsx
<mask> fontWeight, <mask> fontStyle, <mask> }); <mask> <mask> if (resolvedFontFamily) { <mask> fontFamily = resolvedFontFamily; <mask> } <mask> <mask> return ( <mask> <StyledText <mask> {...reslovedProps} <mask> numberOfLines={noOfLines ? noOfLines : isTruncated ? 1 : u...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Text/index.tsx
fontFamily={resolvedFontFamily}
<mask> : reslovedProps.textDecorationLine <mask> } <mask> fontSize={sub ? 10 : fontSize} <mask> ref={mergeRefs([ref, _ref])} <mask> fontFamily={fontFamily} <mask> {...(isHovered && _hover)} <mask> > <mask> {children} <mask> </StyledText> <mask> ); </s> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/components/primitives/Text/index.tsx
heading: undefined, body: undefined, mono: undefined,
<mask> extrabold: 800, <mask> black: 900, <mask> }, <mask> fonts: { <mask> heading: '', <mask> body: '', <mask> mono: '', <mask> }, <mask> fontSizes: { <mask> 'xxs': 10, <mask> 'xs': 12, <mask> 'sm': 14, </s> fix: add tokenised font family support in input component ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/theme/base/typography.ts
fontFamily: 'body',
<mask> // boxShadow: `${useToken('colors', ['primary.400'])} 0px 0px 0px 1px`, <mask> }; <mask> <mask> return { <mask> px: 4, <mask> py: 2, <mask> borderRadius: 'lg', <mask> color: mode('black', 'white')(props), <mask> placeholderTextColor: mode('muted.400', 'muted.500'...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/029e7757b700811533e67346f29809aeab5fa52f
src/theme/components/input.ts
<mask> import HStack from '../Stack/HStack'; <mask> import Pressable from '../Pressable'; <mask> import type { IButtonGroupProps, IButtonProps } from './types'; <mask> import { composeEventHandlers } from '../../../utils'; <mask> import { useTheme } from '../../../hooks'; <mask> <mask> const useHover = () => { ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/030729978c5227a90a2fb702defa52dab8e4f6b7
src/components/primitives/Button/index.tsx
<mask> ...(isHovered && _hover), <mask> ...(isPressed && _pressed), <mask> }; <mask> <mask> // const shadowProps = useToken('shadows', themeProps.shadow); <mask> const theme = useTheme(); <mask> const shadowProps = theme.shadows()[themeProps.shadow]; <mask> themeProps.shadow = undefined; <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/030729978c5227a90a2fb702defa52dab8e4f6b7
src/components/primitives/Button/index.tsx
<mask> onHoverIn={composeEventHandlers(onHoverIn, pressableProps.onHoverIn)} <mask> // @ts-ignore - web only <mask> onHoverOut={composeEventHandlers(onHoverOut, pressableProps.onHoverOut)} <mask> {...themeProps} <mask> style={{ ...shadowProps }} <mask> > <mask> <HStack opa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/030729978c5227a90a2fb702defa52dab8e4f6b7
src/components/primitives/Button/index.tsx
variantProps = extractProps( variantProps, theme, colorModeProps, componentTheme, currentBreakpoint );
<mask> theme, <mask> ...colorModeProps, <mask> }); <mask> // added this to handle order of props <mask> newProps = mergeWith( <mask> newProps, <mask> variantProps, <mask> // @ts-ignore <mask> (objValue, srcValue, key) => { </s> fix: use theme p...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/030729978c5227a90a2fb702defa52dab8e4f6b7
src/hooks/useThemeProps/utils.ts
alignSelf: 'stretch'
<mask> footerTab: { <mask> flexDirection: 'row', <mask> justifyContent: 'space-between', <mask> flex: 1, <mask> alignSelf: 'stretch', <mask> paddingHorizontal: 15 <mask> }, <mask> btnTextStyle: { ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/031bde76daaa8424134030ea31ab33497fe494d9
Components/Widgets/FooterTab.js
lineHeight: 13
<mask> }, <mask> btnTextStyle: { <mask> color: this.getTheme().tabBarTextColor, <mask> fontSize: (Platform.OS=='ios') ? 12.5 : 10, <mask> lineHeight: 15 <mask> }, <mask> btnActiveTextStyle: { <mask> c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/031bde76daaa8424134030ea31ab33497fe494d9
Components/Widgets/FooterTab.js