tamagui 1.74.7 → 1.74.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/dist/native.js +10 -13
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +10 -13
- package/dist/test.native.js.map +1 -1
- package/package.json +52 -52
- package/types/views/Anchor.d.ts +2 -2
- package/types/views/Input.d.ts +1 -1
- package/types/views/TextArea.d.ts +1 -1
- package/dist/cjs/native.js +0 -20
- package/dist/cjs/native.js.map +0 -6
- package/dist/cjs/views/Grid.js +0 -62
- package/dist/cjs/views/Grid.js.map +0 -6
- package/dist/cjs/views/Grid.native.js +0 -63
- package/dist/cjs/views/Grid.native.js.map +0 -6
- package/dist/esm/views/Grid.js +0 -37
- package/dist/esm/views/Grid.js.map +0 -6
- package/dist/jsx/native.js +0 -2
- package/dist/jsx/native.js.map +0 -6
- package/dist/jsx/views/Grid.js +0 -28
- package/dist/jsx/views/Grid.js.map +0 -6
- package/dist/jsx/views/Grid.native.js +0 -28
- package/dist/jsx/views/Grid.native.js.map +0 -6
package/dist/native.js
CHANGED
|
@@ -5735,7 +5735,6 @@ var require_Text_native = __commonJS({
|
|
|
5735
5735
|
acceptsClassName: !0,
|
|
5736
5736
|
isText: !0,
|
|
5737
5737
|
defaultProps: {
|
|
5738
|
-
display: "flex",
|
|
5739
5738
|
suppressHighlighting: !0
|
|
5740
5739
|
},
|
|
5741
5740
|
inlineWhenUnflattened: /* @__PURE__ */ new Set(["fontFamily"]),
|
|
@@ -11811,8 +11810,7 @@ var require_Button_native = __commonJS({
|
|
|
11811
11810
|
Icon: ButtonIcon
|
|
11812
11811
|
}), ButtonNestingContext = (0, import_react2.createContext)(!1);
|
|
11813
11812
|
function useButton(propsIn, { Text: Text3 = Button2.Text } = { Text: Button2.Text }) {
|
|
11814
|
-
let isNested = (0, import_react2.useContext)(ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn), {
|
|
11815
|
-
children,
|
|
11813
|
+
let isNested = (0, import_react2.useContext)(ButtonNestingContext), didFinishSSR = (0, import_web.useDidFinishSSR)(), propsActive = (0, import_web.useProps)(propsIn), {
|
|
11816
11814
|
icon,
|
|
11817
11815
|
iconAfter,
|
|
11818
11816
|
space,
|
|
@@ -11822,15 +11820,14 @@ var require_Button_native = __commonJS({
|
|
|
11822
11820
|
separator,
|
|
11823
11821
|
noTextWrap,
|
|
11824
11822
|
fontFamily,
|
|
11825
|
-
fontSize
|
|
11826
|
-
...rest
|
|
11823
|
+
fontSize
|
|
11827
11824
|
} = propsActive, size2 = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
11828
11825
|
size: iconSize,
|
|
11829
11826
|
color: propsActive.color
|
|
11830
|
-
}), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize =
|
|
11827
|
+
}), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = noTextWrap ? [propsIn.children] : (0, import_text2.wrapChildrenInText)(
|
|
11831
11828
|
Text3,
|
|
11832
|
-
{ children, fontFamily, fontSize },
|
|
11833
|
-
Text3 === ButtonText &&
|
|
11829
|
+
{ children: propsIn.children, fontFamily, fontSize },
|
|
11830
|
+
Text3 === ButtonText && propsActive.unstyled !== !0 ? {
|
|
11834
11831
|
unstyled: !1,
|
|
11835
11832
|
size: size2
|
|
11836
11833
|
} : void 0
|
|
@@ -11844,10 +11841,10 @@ var require_Button_native = __commonJS({
|
|
|
11844
11841
|
}), tag = isNested ? "span" : (
|
|
11845
11842
|
// defaults to <a /> when accessibilityRole = link
|
|
11846
11843
|
// see https://github.com/tamagui/tamagui/issues/505
|
|
11847
|
-
|
|
11848
|
-
), props = {
|
|
11844
|
+
propsActive.accessibilityRole === "link" ? "a" : void 0
|
|
11845
|
+
), { iconAfter: _1, icon: _2, noTextWrap: _3, ...restProps } = propsIn, props = {
|
|
11849
11846
|
size: size2,
|
|
11850
|
-
...
|
|
11847
|
+
...propsIn.disabled && {
|
|
11851
11848
|
// in rnw - false still has keyboard tabIndex, undefined = not actually focusable
|
|
11852
11849
|
focusable: void 0,
|
|
11853
11850
|
// even with tabIndex unset, it will keep focusStyle on web so disable it here
|
|
@@ -11858,10 +11855,10 @@ var require_Button_native = __commonJS({
|
|
|
11858
11855
|
...tag && {
|
|
11859
11856
|
tag
|
|
11860
11857
|
},
|
|
11861
|
-
...
|
|
11858
|
+
...restProps,
|
|
11862
11859
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ButtonNestingContext.Provider, { value: !0, children: inner }),
|
|
11863
11860
|
// forces it to be a runtime pressStyle so it passes through context text colors
|
|
11864
|
-
disableClassName:
|
|
11861
|
+
disableClassName: didFinishSSR
|
|
11865
11862
|
};
|
|
11866
11863
|
return {
|
|
11867
11864
|
spaceSize,
|