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/test.native.js
CHANGED
|
@@ -5359,7 +5359,6 @@ var require_Text_native = __commonJS({
|
|
|
5359
5359
|
acceptsClassName: !0,
|
|
5360
5360
|
isText: !0,
|
|
5361
5361
|
defaultProps: {
|
|
5362
|
-
display: "flex",
|
|
5363
5362
|
suppressHighlighting: !0
|
|
5364
5363
|
},
|
|
5365
5364
|
inlineWhenUnflattened: /* @__PURE__ */ new Set(["fontFamily"]),
|
|
@@ -11342,8 +11341,7 @@ var require_Button_native = __commonJS({
|
|
|
11342
11341
|
Icon: ButtonIcon
|
|
11343
11342
|
}), ButtonNestingContext = (0, import_react2.createContext)(!1);
|
|
11344
11343
|
function useButton(propsIn, { Text: Text3 = Button2.Text } = { Text: Button2.Text }) {
|
|
11345
|
-
let isNested = (0, import_react2.useContext)(ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn), {
|
|
11346
|
-
children,
|
|
11344
|
+
let isNested = (0, import_react2.useContext)(ButtonNestingContext), didFinishSSR = (0, import_web.useDidFinishSSR)(), propsActive = (0, import_web.useProps)(propsIn), {
|
|
11347
11345
|
icon,
|
|
11348
11346
|
iconAfter,
|
|
11349
11347
|
space,
|
|
@@ -11353,15 +11351,14 @@ var require_Button_native = __commonJS({
|
|
|
11353
11351
|
separator,
|
|
11354
11352
|
noTextWrap,
|
|
11355
11353
|
fontFamily,
|
|
11356
|
-
fontSize
|
|
11357
|
-
...rest
|
|
11354
|
+
fontSize
|
|
11358
11355
|
} = 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)({
|
|
11359
11356
|
size: iconSize,
|
|
11360
11357
|
color: propsActive.color
|
|
11361
|
-
}), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize =
|
|
11358
|
+
}), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = noTextWrap ? [propsIn.children] : (0, import_text2.wrapChildrenInText)(
|
|
11362
11359
|
Text3,
|
|
11363
|
-
{ children, fontFamily, fontSize },
|
|
11364
|
-
Text3 === ButtonText &&
|
|
11360
|
+
{ children: propsIn.children, fontFamily, fontSize },
|
|
11361
|
+
Text3 === ButtonText && propsActive.unstyled !== !0 ? {
|
|
11365
11362
|
unstyled: !1,
|
|
11366
11363
|
size: size2
|
|
11367
11364
|
} : void 0
|
|
@@ -11375,10 +11372,10 @@ var require_Button_native = __commonJS({
|
|
|
11375
11372
|
}), tag = isNested ? "span" : (
|
|
11376
11373
|
// defaults to <a /> when accessibilityRole = link
|
|
11377
11374
|
// see https://github.com/tamagui/tamagui/issues/505
|
|
11378
|
-
|
|
11379
|
-
), props = {
|
|
11375
|
+
propsActive.accessibilityRole === "link" ? "a" : void 0
|
|
11376
|
+
), { iconAfter: _1, icon: _2, noTextWrap: _3, ...restProps } = propsIn, props = {
|
|
11380
11377
|
size: size2,
|
|
11381
|
-
...
|
|
11378
|
+
...propsIn.disabled && {
|
|
11382
11379
|
// in rnw - false still has keyboard tabIndex, undefined = not actually focusable
|
|
11383
11380
|
focusable: void 0,
|
|
11384
11381
|
// even with tabIndex unset, it will keep focusStyle on web so disable it here
|
|
@@ -11389,10 +11386,10 @@ var require_Button_native = __commonJS({
|
|
|
11389
11386
|
...tag && {
|
|
11390
11387
|
tag
|
|
11391
11388
|
},
|
|
11392
|
-
...
|
|
11389
|
+
...restProps,
|
|
11393
11390
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ButtonNestingContext.Provider, { value: !0, children: inner }),
|
|
11394
11391
|
// forces it to be a runtime pressStyle so it passes through context text colors
|
|
11395
|
-
disableClassName:
|
|
11392
|
+
disableClassName: didFinishSSR
|
|
11396
11393
|
};
|
|
11397
11394
|
return {
|
|
11398
11395
|
spaceSize,
|