@tamagui/core 1.102.1 → 1.102.2
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/native.js +3 -1
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +3 -1
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -12447,7 +12447,9 @@ var require_useProps_native = __commonJS({
|
|
|
12447
12447
|
}
|
|
12448
12448
|
function usePropsAndStyle(props, opts) {
|
|
12449
12449
|
var _opts_forComponent, _themeState_state, _opts_forComponent_staticConfig, staticConfig = (_opts_forComponent_staticConfig = opts == null || (_opts_forComponent = opts.forComponent) === null || _opts_forComponent === void 0 ? void 0 : _opts_forComponent.staticConfig) !== null && _opts_forComponent_staticConfig !== void 0 ? _opts_forComponent_staticConfig : import_Stack.Stack.staticConfig, _useThemeWithState = _sliced_to_array((0, import_useTheme.useThemeWithState)({
|
|
12450
|
-
componentName: staticConfig.componentName
|
|
12450
|
+
componentName: staticConfig.componentName,
|
|
12451
|
+
name: "theme" in props ? props.theme : void 0,
|
|
12452
|
+
inverse: "themeInverse" in props ? props.themeInverse : void 0
|
|
12451
12453
|
}), 2), themeState = _useThemeWithState[0], theme = _useThemeWithState[1], componentContext = (0, import_react3.useContext)(import_ComponentContext.ComponentContext), _useComponentState = (0, import_createComponent.useComponentState)(props, componentContext, staticConfig, (0, import_config.getConfig)()), state = _useComponentState.state, disabled = _useComponentState.disabled, setStateShallow = _useComponentState.setStateShallow, media = (0, import_useMedia.useMedia)(), splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, ((_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "", state, _object_spread2({
|
|
12452
12454
|
isAnimated: !1,
|
|
12453
12455
|
mediaState: media,
|