tamagui 1.13.2 → 1.13.4
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/cjs/createTamagui.js +9 -66
- package/dist/cjs/createTamagui.js.map +2 -2
- package/dist/cjs/helpers/inputHelpers.js +1 -64
- package/dist/cjs/helpers/inputHelpers.js.map +2 -2
- package/dist/cjs/index.js +1 -194
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/lib/linear-gradient.native.js +1 -18
- package/dist/cjs/lib/linear-gradient.native.js.map +2 -2
- package/dist/cjs/linear-gradient.js +1 -18
- package/dist/cjs/linear-gradient.js.map +2 -2
- package/dist/cjs/setup.js +1 -57
- package/dist/cjs/setup.js.map +2 -2
- package/dist/cjs/viewTypes.js +1 -16
- package/dist/cjs/viewTypes.js.map +2 -2
- package/dist/cjs/views/Anchor.js +1 -60
- package/dist/cjs/views/Anchor.js.map +2 -2
- package/dist/cjs/views/EnsureFlexed.js +1 -41
- package/dist/cjs/views/EnsureFlexed.js.map +2 -2
- package/dist/cjs/views/Fieldset.js +1 -41
- package/dist/cjs/views/Fieldset.js.map +2 -2
- package/dist/cjs/views/Grid.js +1 -76
- package/dist/cjs/views/Grid.js.map +2 -2
- package/dist/cjs/views/Input.js +1 -81
- package/dist/cjs/views/Input.js.map +2 -2
- package/dist/cjs/views/Layouts.js +1 -80
- package/dist/cjs/views/Layouts.js.map +2 -2
- package/dist/cjs/views/Skeleton.js +1 -64
- package/dist/cjs/views/Skeleton.js.map +2 -2
- package/dist/cjs/views/Spinner.js +1 -58
- package/dist/cjs/views/Spinner.js.map +2 -2
- package/dist/cjs/views/TamaguiProvider.js +1 -33
- package/dist/cjs/views/TamaguiProvider.js.map +2 -2
- package/dist/cjs/views/TamaguiProvider.server.js +1 -29
- package/dist/cjs/views/TamaguiProvider.server.js.map +2 -2
- package/dist/cjs/views/TextArea.js +1 -53
- package/dist/cjs/views/TextArea.js.map +2 -2
- package/dist/cjs/views/VisuallyHidden.js +1 -60
- package/dist/cjs/views/VisuallyHidden.js.map +2 -2
- package/dist/esm/createTamagui.js +14 -47
- package/dist/esm/createTamagui.js.map +2 -2
- package/dist/esm/createTamagui.mjs +14 -47
- package/dist/esm/createTamagui.mjs.map +2 -2
- package/dist/esm/helpers/inputHelpers.js +1 -39
- package/dist/esm/helpers/inputHelpers.js.map +2 -2
- package/dist/esm/helpers/inputHelpers.mjs +1 -39
- package/dist/esm/helpers/inputHelpers.mjs.map +2 -2
- package/dist/esm/index.js +1 -170
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/index.mjs +1 -170
- package/dist/esm/index.mjs.map +2 -2
- package/dist/esm/lib/linear-gradient.native.js +1 -1
- package/dist/esm/lib/linear-gradient.native.js.map +1 -1
- package/dist/esm/lib/linear-gradient.native.mjs +1 -1
- package/dist/esm/lib/linear-gradient.native.mjs.map +1 -1
- package/dist/esm/linear-gradient.js +1 -1
- package/dist/esm/linear-gradient.js.map +1 -1
- package/dist/esm/linear-gradient.mjs +1 -1
- package/dist/esm/linear-gradient.mjs.map +1 -1
- package/dist/esm/setup.js +1 -23
- package/dist/esm/setup.js.map +2 -2
- package/dist/esm/setup.mjs +1 -23
- package/dist/esm/setup.mjs.map +2 -2
- package/dist/esm/views/Anchor.js +1 -36
- package/dist/esm/views/Anchor.js.map +2 -2
- package/dist/esm/views/Anchor.mjs +1 -36
- package/dist/esm/views/Anchor.mjs.map +2 -2
- package/dist/esm/views/EnsureFlexed.js +1 -17
- package/dist/esm/views/EnsureFlexed.js.map +2 -2
- package/dist/esm/views/EnsureFlexed.mjs +1 -17
- package/dist/esm/views/EnsureFlexed.mjs.map +2 -2
- package/dist/esm/views/Fieldset.js +1 -17
- package/dist/esm/views/Fieldset.js.map +2 -2
- package/dist/esm/views/Fieldset.mjs +1 -17
- package/dist/esm/views/Fieldset.mjs.map +2 -2
- package/dist/esm/views/Grid.js +1 -42
- package/dist/esm/views/Grid.js.map +2 -2
- package/dist/esm/views/Grid.mjs +1 -42
- package/dist/esm/views/Grid.mjs.map +2 -2
- package/dist/esm/views/Input.js +1 -55
- package/dist/esm/views/Input.js.map +2 -2
- package/dist/esm/views/Input.mjs +1 -55
- package/dist/esm/views/Input.mjs.map +2 -2
- package/dist/esm/views/Layouts.js +1 -50
- package/dist/esm/views/Layouts.js.map +2 -2
- package/dist/esm/views/Layouts.mjs +1 -50
- package/dist/esm/views/Layouts.mjs.map +2 -2
- package/dist/esm/views/Skeleton.js +1 -38
- package/dist/esm/views/Skeleton.js.map +2 -2
- package/dist/esm/views/Skeleton.mjs +1 -38
- package/dist/esm/views/Skeleton.mjs.map +2 -2
- package/dist/esm/views/Spinner.js +1 -28
- package/dist/esm/views/Spinner.js.map +2 -2
- package/dist/esm/views/Spinner.mjs +1 -28
- package/dist/esm/views/Spinner.mjs.map +2 -2
- package/dist/esm/views/TamaguiProvider.js +1 -9
- package/dist/esm/views/TamaguiProvider.js.map +2 -2
- package/dist/esm/views/TamaguiProvider.mjs +1 -9
- package/dist/esm/views/TamaguiProvider.mjs.map +2 -2
- package/dist/esm/views/TamaguiProvider.server.js +1 -5
- package/dist/esm/views/TamaguiProvider.server.js.map +2 -2
- package/dist/esm/views/TamaguiProvider.server.mjs +1 -5
- package/dist/esm/views/TamaguiProvider.server.mjs.map +2 -2
- package/dist/esm/views/TextArea.js +1 -28
- package/dist/esm/views/TextArea.js.map +2 -2
- package/dist/esm/views/TextArea.mjs +1 -28
- package/dist/esm/views/TextArea.mjs.map +2 -2
- package/dist/esm/views/VisuallyHidden.js +1 -36
- package/dist/esm/views/VisuallyHidden.js.map +2 -2
- package/dist/esm/views/VisuallyHidden.mjs +1 -36
- package/dist/esm/views/VisuallyHidden.mjs.map +2 -2
- package/dist/jsx/createTamagui.js +14 -47
- package/dist/jsx/createTamagui.js.map +2 -2
- package/dist/jsx/createTamagui.mjs +14 -47
- package/dist/jsx/createTamagui.mjs.map +2 -2
- package/dist/jsx/helpers/inputHelpers.js +1 -39
- package/dist/jsx/helpers/inputHelpers.js.map +2 -2
- package/dist/jsx/helpers/inputHelpers.mjs +1 -39
- package/dist/jsx/helpers/inputHelpers.mjs.map +2 -2
- package/dist/jsx/index.js +1 -170
- package/dist/jsx/index.js.map +2 -2
- package/dist/jsx/index.mjs +1 -170
- package/dist/jsx/index.mjs.map +2 -2
- package/dist/jsx/lib/linear-gradient.native.js +1 -1
- package/dist/jsx/lib/linear-gradient.native.js.map +1 -1
- package/dist/jsx/lib/linear-gradient.native.mjs +1 -1
- package/dist/jsx/lib/linear-gradient.native.mjs.map +1 -1
- package/dist/jsx/linear-gradient.js +1 -1
- package/dist/jsx/linear-gradient.js.map +1 -1
- package/dist/jsx/linear-gradient.mjs +1 -1
- package/dist/jsx/linear-gradient.mjs.map +1 -1
- package/dist/jsx/setup.js +1 -23
- package/dist/jsx/setup.js.map +2 -2
- package/dist/jsx/setup.mjs +1 -23
- package/dist/jsx/setup.mjs.map +2 -2
- package/dist/jsx/views/Anchor.js +1 -31
- package/dist/jsx/views/Anchor.js.map +2 -2
- package/dist/jsx/views/Anchor.mjs +1 -31
- package/dist/jsx/views/Anchor.mjs.map +2 -2
- package/dist/jsx/views/EnsureFlexed.js +1 -17
- package/dist/jsx/views/EnsureFlexed.js.map +2 -2
- package/dist/jsx/views/EnsureFlexed.mjs +1 -17
- package/dist/jsx/views/EnsureFlexed.mjs.map +2 -2
- package/dist/jsx/views/Fieldset.js +1 -17
- package/dist/jsx/views/Fieldset.js.map +2 -2
- package/dist/jsx/views/Fieldset.mjs +1 -17
- package/dist/jsx/views/Fieldset.mjs.map +2 -2
- package/dist/jsx/views/Grid.js +1 -33
- package/dist/jsx/views/Grid.js.map +2 -2
- package/dist/jsx/views/Grid.mjs +1 -33
- package/dist/jsx/views/Grid.mjs.map +2 -2
- package/dist/jsx/views/Input.js +1 -55
- package/dist/jsx/views/Input.js.map +2 -2
- package/dist/jsx/views/Input.mjs +1 -55
- package/dist/jsx/views/Input.mjs.map +2 -2
- package/dist/jsx/views/Layouts.js +1 -50
- package/dist/jsx/views/Layouts.js.map +2 -2
- package/dist/jsx/views/Layouts.mjs +1 -50
- package/dist/jsx/views/Layouts.mjs.map +2 -2
- package/dist/jsx/views/Skeleton.js +1 -34
- package/dist/jsx/views/Skeleton.js.map +2 -2
- package/dist/jsx/views/Skeleton.mjs +1 -34
- package/dist/jsx/views/Skeleton.mjs.map +2 -2
- package/dist/jsx/views/Spinner.js +1 -27
- package/dist/jsx/views/Spinner.js.map +2 -2
- package/dist/jsx/views/Spinner.mjs +1 -27
- package/dist/jsx/views/Spinner.mjs.map +2 -2
- package/dist/jsx/views/TamaguiProvider.js +1 -8
- package/dist/jsx/views/TamaguiProvider.js.map +2 -2
- package/dist/jsx/views/TamaguiProvider.mjs +1 -8
- package/dist/jsx/views/TamaguiProvider.mjs.map +2 -2
- package/dist/jsx/views/TamaguiProvider.server.js +1 -5
- package/dist/jsx/views/TamaguiProvider.server.js.map +2 -2
- package/dist/jsx/views/TamaguiProvider.server.mjs +1 -5
- package/dist/jsx/views/TamaguiProvider.server.mjs.map +2 -2
- package/dist/jsx/views/TextArea.js +1 -28
- package/dist/jsx/views/TextArea.js.map +2 -2
- package/dist/jsx/views/TextArea.mjs +1 -28
- package/dist/jsx/views/TextArea.mjs.map +2 -2
- package/dist/jsx/views/VisuallyHidden.js +1 -36
- package/dist/jsx/views/VisuallyHidden.js.map +2 -2
- package/dist/jsx/views/VisuallyHidden.mjs +1 -36
- package/dist/jsx/views/VisuallyHidden.mjs.map +2 -2
- package/package.json +50 -50
package/dist/cjs/views/Anchor.js
CHANGED
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Anchor_exports = {};
|
|
20
|
-
__export(Anchor_exports, {
|
|
21
|
-
Anchor: () => Anchor
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(Anchor_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_core = require("@tamagui/core");
|
|
26
|
-
var import_text = require("@tamagui/text");
|
|
27
|
-
var import_react = require("react");
|
|
28
|
-
var import_react_native = require("react-native");
|
|
29
|
-
const AnchorFrame = (0, import_core.styled)(import_text.SizableText, {
|
|
30
|
-
name: "Anchor",
|
|
31
|
-
tag: "a",
|
|
32
|
-
accessibilityRole: "link"
|
|
33
|
-
});
|
|
34
|
-
const Anchor = AnchorFrame.extractable(
|
|
35
|
-
(0, import_react.forwardRef)(({ href, target, ...props }, ref) => {
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
37
|
-
AnchorFrame,
|
|
38
|
-
{
|
|
39
|
-
...props,
|
|
40
|
-
...import_core.isWeb ? {
|
|
41
|
-
href,
|
|
42
|
-
target
|
|
43
|
-
} : {
|
|
44
|
-
onPress: (event) => {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = props.onPress) == null ? void 0 : _a.call(props, event);
|
|
47
|
-
if (href !== void 0) {
|
|
48
|
-
import_react_native.Linking.openURL(href);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
ref
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
})
|
|
56
|
-
);
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
59
|
-
Anchor
|
|
60
|
-
});
|
|
1
|
+
"use strict";var a=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var P=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of b(t))!h.call(e,o)&&o!==n&&a(e,o,{get:()=>t[o],enumerable:!(r=R(t,o))||r.enumerable});return e};var A=e=>x(a({},"__esModule",{value:!0}),e);var d={};P(d,{Anchor:()=>T});module.exports=A(d);var g=require("react/jsx-runtime"),i=require("@tamagui/core"),s=require("@tamagui/text"),l=require("react"),f=require("react-native");const c=(0,i.styled)(s.SizableText,{name:"Anchor",tag:"a",accessibilityRole:"link"}),T=c.extractable((0,l.forwardRef)(({href:e,target:t,...n},r)=>(0,g.jsx)(c,{...n,...i.isWeb?{href:e,target:t}:{onPress:o=>{var m;(m=n.onPress)==null||m.call(n,o),e!==void 0&&f.Linking.openURL(e)}},ref:r})));0&&(module.exports={Anchor});
|
|
61
2
|
//# sourceMappingURL=Anchor.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Anchor.tsx"],
|
|
4
4
|
"sourcesContent": ["import { ReactComponentWithRef, TamaguiElement, isWeb, styled } from '@tamagui/core'\nimport { SizableText, SizableTextProps } from '@tamagui/text'\nimport React, { forwardRef } from 'react'\nimport { Linking } from 'react-native'\n\nexport type AnchorProps = SizableTextProps & {\n href?: string\n target?: string\n rel?: string\n}\n\nconst AnchorFrame = styled(SizableText, {\n name: 'Anchor',\n tag: 'a',\n accessibilityRole: 'link',\n})\n\nexport const Anchor: ReactComponentWithRef<AnchorProps, TamaguiElement> =\n AnchorFrame.extractable(\n forwardRef(({ href, target, ...props }, ref) => {\n return (\n <AnchorFrame\n {...props}\n {...(isWeb\n ? {\n href,\n target,\n }\n : {\n onPress: (event) => {\n props.onPress?.(event)\n if (href !== undefined) {\n Linking.openURL(href)\n }\n },\n })}\n ref={ref as any}\n />\n )\n })\n )\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,IAAA,eAAAC,EAAAH,GAqBQ,IAAAI,EAAA,6BArBRC,EAAqE,yBACrEC,EAA8C,yBAC9CC,EAAkC,iBAClCC,EAAwB,wBAQxB,MAAMC,KAAc,UAAO,cAAa,CACtC,KAAM,SACN,IAAK,IACL,kBAAmB,MACrB,CAAC,EAEYP,EACXO,EAAY,eACV,cAAW,CAAC,CAAE,KAAAC,EAAM,OAAAC,EAAQ,GAAGC,CAAM,EAAGC,OAEpC,OAACJ,EAAA,CACE,GAAGG,EACH,GAAI,QACD,CACE,KAAAF,EACA,OAAAC,CACF,EACA,CACE,QAAUG,GAAU,CA7BpC,IAAAC,GA8BkBA,EAAAH,EAAM,UAAN,MAAAG,EAAA,KAAAH,EAAgBE,GACZJ,IAAS,QACX,UAAQ,QAAQA,CAAI,CAExB,CACF,EACJ,IAAKG,EACP,CAEH,CACH",
|
|
6
|
+
"names": ["Anchor_exports", "__export", "Anchor", "__toCommonJS", "import_jsx_runtime", "import_core", "import_text", "import_react", "import_react_native", "AnchorFrame", "href", "target", "props", "ref", "event", "_a"]
|
|
7
7
|
}
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var EnsureFlexed_exports = {};
|
|
20
|
-
__export(EnsureFlexed_exports, {
|
|
21
|
-
EnsureFlexed: () => EnsureFlexed
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(EnsureFlexed_exports);
|
|
24
|
-
var import_core = require("@tamagui/core");
|
|
25
|
-
const EnsureFlexed = (0, import_core.styled)(import_core.Text, {
|
|
26
|
-
opacity: 0,
|
|
27
|
-
lineHeight: 0,
|
|
28
|
-
height: 0,
|
|
29
|
-
display: "flex",
|
|
30
|
-
fontSize: 200,
|
|
31
|
-
children: "wwwwwwwwwwwwwwwwwww",
|
|
32
|
-
hoverStyle: {
|
|
33
|
-
backgroundColor: "red"
|
|
34
|
-
},
|
|
35
|
-
pointerEvents: "none"
|
|
36
|
-
});
|
|
37
|
-
EnsureFlexed["isVisuallyHidden"] = true;
|
|
38
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
-
0 && (module.exports = {
|
|
40
|
-
EnsureFlexed
|
|
41
|
-
});
|
|
1
|
+
"use strict";var n=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var p=(w,e)=>{for(var i in e)n(w,i,{get:e[i],enumerable:!0})},y=(w,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!h.call(w,t)&&t!==i&&n(w,t,{get:()=>e[t],enumerable:!(r=d(e,t))||r.enumerable});return w};var a=w=>y(n({},"__esModule",{value:!0}),w);var c={};p(c,{EnsureFlexed:()=>l});module.exports=a(c);var o=require("@tamagui/core");const l=(0,o.styled)(o.Text,{opacity:0,lineHeight:0,height:0,display:"flex",fontSize:200,children:"wwwwwwwwwwwwwwwwwww",hoverStyle:{backgroundColor:"red"},pointerEvents:"none"});l.isVisuallyHidden=!0;0&&(module.exports={EnsureFlexed});
|
|
42
2
|
//# sourceMappingURL=EnsureFlexed.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/EnsureFlexed.tsx"],
|
|
4
4
|
"sourcesContent": ["import { Text, styled } from '@tamagui/core'\n\n// expands flex elements when they should push a far as they \"want\" naturally\n\nexport const EnsureFlexed = styled(Text, {\n opacity: 0,\n lineHeight: 0,\n height: 0,\n display: 'flex',\n fontSize: 200,\n children: 'wwwwwwwwwwwwwwwwwww',\n\n hoverStyle: {\n backgroundColor: 'red',\n },\n\n pointerEvents: 'none',\n})\n\n// @tamgui/core checks for this in spacing\nEnsureFlexed['isVisuallyHidden'] = true\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA6B,yBAItB,MAAMF,KAAe,UAAO,OAAM,CACvC,QAAS,EACT,WAAY,EACZ,OAAQ,EACR,QAAS,OACT,SAAU,IACV,SAAU,sBAEV,WAAY,CACV,gBAAiB,KACnB,EAEA,cAAe,MACjB,CAAC,EAGDA,EAAa,iBAAsB",
|
|
6
|
+
"names": ["EnsureFlexed_exports", "__export", "EnsureFlexed", "__toCommonJS", "import_core"]
|
|
7
7
|
}
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Fieldset_exports = {};
|
|
20
|
-
__export(Fieldset_exports, {
|
|
21
|
-
Fieldset: () => Fieldset
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(Fieldset_exports);
|
|
24
|
-
var import_core = require("@tamagui/core");
|
|
25
|
-
var import_stacks = require("@tamagui/stacks");
|
|
26
|
-
const Fieldset = (0, import_core.styled)(import_stacks.YStack, {
|
|
27
|
-
name: "Fieldset",
|
|
28
|
-
tag: "fieldset",
|
|
29
|
-
variants: {
|
|
30
|
-
horizontal: {
|
|
31
|
-
true: {
|
|
32
|
-
flexDirection: "row",
|
|
33
|
-
alignItems: "center"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
-
0 && (module.exports = {
|
|
40
|
-
Fieldset
|
|
41
|
-
});
|
|
1
|
+
"use strict";var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of n(e))!d.call(t,o)&&o!==r&&s(t,o,{get:()=>e[o],enumerable:!(i=a(e,o))||i.enumerable});return t};var f=t=>c(s({},"__esModule",{value:!0}),t);var x={};m(x,{Fieldset:()=>F});module.exports=f(x);var l=require("@tamagui/core"),p=require("@tamagui/stacks");const F=(0,l.styled)(p.YStack,{name:"Fieldset",tag:"fieldset",variants:{horizontal:{true:{flexDirection:"row",alignItems:"center"}}}});0&&(module.exports={Fieldset});
|
|
42
2
|
//# sourceMappingURL=Fieldset.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Fieldset.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\nimport { YStack } from '@tamagui/stacks'\n\nexport const Fieldset = styled(YStack, {\n name: 'Fieldset',\n tag: 'fieldset',\n\n variants: {\n horizontal: {\n true: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n },\n } as const,\n})\n\nexport type FieldsetProps = GetProps<typeof Fieldset>\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAiC,yBACjCC,EAAuB,2BAEhB,MAAMH,KAAW,UAAO,SAAQ,CACrC,KAAM,WACN,IAAK,WAEL,SAAU,CACR,WAAY,CACV,KAAM,CACJ,cAAe,MACf,WAAY,QACd,CACF,CACF,CACF,CAAC",
|
|
6
|
+
"names": ["Fieldset_exports", "__export", "Fieldset", "__toCommonJS", "import_core", "import_stacks"]
|
|
7
7
|
}
|
package/dist/cjs/views/Grid.js
CHANGED
|
@@ -1,77 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Grid_exports = {};
|
|
30
|
-
__export(Grid_exports, {
|
|
31
|
-
Grid: () => Grid
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(Grid_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_core = require("@tamagui/core");
|
|
36
|
-
var import_stacks = require("@tamagui/stacks");
|
|
37
|
-
var import_react = __toESM(require("react"));
|
|
38
|
-
function Grid({ children, columns, itemMinWidth = 200, gap }) {
|
|
39
|
-
if (import_core.isWeb) {
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
-
"div",
|
|
42
|
-
{
|
|
43
|
-
style: {
|
|
44
|
-
gap,
|
|
45
|
-
display: "grid",
|
|
46
|
-
justifyContent: "stretch",
|
|
47
|
-
// gridTemplateRows: 'repeat(4, 1fr)',
|
|
48
|
-
gridTemplateColumns: `repeat( auto-fit, minmax(${itemMinWidth}px, 1fr) )`
|
|
49
|
-
// gridTemplateColumns: '1fr 1fr',
|
|
50
|
-
},
|
|
51
|
-
children
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
const childrenList = import_react.default.Children.toArray(children);
|
|
56
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.XStack, { alignItems: "center", justifyContent: "center", flexWrap: "wrap", children: childrenList.map((child, i) => {
|
|
57
|
-
if (!child) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
-
import_stacks.XStack,
|
|
62
|
-
{
|
|
63
|
-
flex: 1,
|
|
64
|
-
minWidth: itemMinWidth,
|
|
65
|
-
marginRight: gap,
|
|
66
|
-
marginBottom: gap,
|
|
67
|
-
children: child
|
|
68
|
-
},
|
|
69
|
-
i
|
|
70
|
-
);
|
|
71
|
-
}) });
|
|
72
|
-
}
|
|
73
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
-
0 && (module.exports = {
|
|
75
|
-
Grid
|
|
76
|
-
});
|
|
1
|
+
"use strict";var c=Object.create;var o=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var h=(r,t)=>{for(var e in t)o(r,e,{get:t[e],enumerable:!0})},s=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of y(t))!x.call(r,n)&&n!==e&&o(r,n,{get:()=>t[n],enumerable:!(i=d(t,n))||i.enumerable});return r};var k=(r,t,e)=>(e=r!=null?c(g(r)):{},s(t||!r||!r.__esModule?o(e,"default",{value:r,enumerable:!0}):e,r)),C=r=>s(o({},"__esModule",{value:!0}),r);var G={};h(G,{Grid:()=>b});module.exports=C(G);var m=require("react/jsx-runtime"),u=require("@tamagui/core"),a=require("@tamagui/stacks"),f=k(require("react"));function b({children:r,columns:t,itemMinWidth:e=200,gap:i}){if(u.isWeb)return(0,m.jsx)("div",{style:{gap:i,display:"grid",justifyContent:"stretch",gridTemplateColumns:`repeat( auto-fit, minmax(${e}px, 1fr) )`},children:r});const n=f.default.Children.toArray(r);return(0,m.jsx)(a.XStack,{alignItems:"center",justifyContent:"center",flexWrap:"wrap",children:n.map((p,l)=>p?(0,m.jsx)(a.XStack,{flex:1,minWidth:e,marginRight:i,marginBottom:i,children:p},l):null)})}0&&(module.exports={Grid});
|
|
77
2
|
//# sourceMappingURL=Grid.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Grid.tsx"],
|
|
4
4
|
"sourcesContent": ["import { isWeb } from '@tamagui/core'\nimport { XStack } from '@tamagui/stacks'\nimport React from 'react'\n\nexport type GridProps = {\n children?: any\n itemMinWidth?: number\n gap?: any\n columns?: number\n}\n\nexport function Grid({ children, columns, itemMinWidth = 200, gap }: GridProps) {\n if (isWeb) {\n return (\n <div\n style={{\n gap,\n display: 'grid',\n justifyContent: 'stretch',\n // gridTemplateRows: 'repeat(4, 1fr)',\n gridTemplateColumns: `repeat( auto-fit, minmax(${itemMinWidth}px, 1fr) )`,\n // gridTemplateColumns: '1fr 1fr',\n }}\n >\n {children}\n </div>\n )\n }\n\n const childrenList = React.Children.toArray(children)\n\n return (\n <XStack alignItems=\"center\" justifyContent=\"center\" flexWrap=\"wrap\">\n {childrenList.map((child, i) => {\n if (!child) {\n return null\n }\n\n // index key bad\n return (\n <XStack\n key={i}\n flex={1}\n minWidth={itemMinWidth}\n marginRight={gap}\n marginBottom={gap}\n >\n {child}\n </XStack>\n )\n })}\n </XStack>\n )\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["React"]
|
|
5
|
+
"mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,IAAA,eAAAC,EAAAH,GAcM,IAAAI,EAAA,6BAdNC,EAAsB,yBACtBC,EAAuB,2BACvBC,EAAkB,oBASX,SAASL,EAAK,CAAE,SAAAM,EAAU,QAAAC,EAAS,aAAAC,EAAe,IAAK,IAAAC,CAAI,EAAc,CAC9E,GAAI,QACF,SACE,OAAC,OACC,MAAO,CACL,IAAAA,EACA,QAAS,OACT,eAAgB,UAEhB,oBAAqB,4BAA4BD,aAEnD,EAEC,SAAAF,EACH,EAIJ,MAAMI,EAAe,EAAAC,QAAM,SAAS,QAAQL,CAAQ,EAEpD,SACE,OAAC,UAAO,WAAW,SAAS,eAAe,SAAS,SAAS,OAC1D,SAAAI,EAAa,IAAI,CAACE,EAAOC,IACnBD,KAMH,OAAC,UAEC,KAAM,EACN,SAAUJ,EACV,YAAaC,EACb,aAAcA,EAEb,SAAAG,GANIC,CAOP,EAbO,IAeV,EACH,CAEJ",
|
|
6
|
+
"names": ["Grid_exports", "__export", "Grid", "__toCommonJS", "import_jsx_runtime", "import_core", "import_stacks", "import_react", "children", "columns", "itemMinWidth", "gap", "childrenList", "React", "child", "i"]
|
|
7
7
|
}
|
package/dist/cjs/views/Input.js
CHANGED
|
@@ -1,82 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Input_exports = {};
|
|
20
|
-
__export(Input_exports, {
|
|
21
|
-
Input: () => Input,
|
|
22
|
-
InputFrame: () => InputFrame,
|
|
23
|
-
defaultStyles: () => defaultStyles
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Input_exports);
|
|
26
|
-
var import_core = require("@tamagui/core");
|
|
27
|
-
var import_focusable = require("@tamagui/focusable");
|
|
28
|
-
var import_react_native = require("react-native");
|
|
29
|
-
var import_inputHelpers = require("../helpers/inputHelpers");
|
|
30
|
-
(0, import_core.setupReactNative)({
|
|
31
|
-
TextInput: import_react_native.TextInput
|
|
32
|
-
});
|
|
33
|
-
const defaultStyles = {
|
|
34
|
-
size: "$true",
|
|
35
|
-
fontFamily: "$body",
|
|
36
|
-
borderWidth: 1,
|
|
37
|
-
outlineWidth: 0,
|
|
38
|
-
color: "$color",
|
|
39
|
-
focusable: true,
|
|
40
|
-
borderColor: "$borderColor",
|
|
41
|
-
backgroundColor: "$background",
|
|
42
|
-
placeholderTextColor: "$placeholderColor",
|
|
43
|
-
// this fixes a flex bug where it overflows container
|
|
44
|
-
minWidth: 0,
|
|
45
|
-
hoverStyle: {
|
|
46
|
-
borderColor: "$borderColorHover"
|
|
47
|
-
},
|
|
48
|
-
focusStyle: {
|
|
49
|
-
outlineColor: "$borderColorFocus",
|
|
50
|
-
outlineWidth: 2,
|
|
51
|
-
outlineStyle: "solid",
|
|
52
|
-
borderColor: "$borderColorFocus"
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const InputFrame = (0, import_core.styled)(
|
|
56
|
-
import_react_native.TextInput,
|
|
57
|
-
{
|
|
58
|
-
name: "Input",
|
|
59
|
-
variants: {
|
|
60
|
-
unstyled: {
|
|
61
|
-
false: defaultStyles
|
|
62
|
-
},
|
|
63
|
-
size: {
|
|
64
|
-
"...size": import_inputHelpers.inputSizeVariant
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
defaultVariants: {
|
|
68
|
-
unstyled: false
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
isInput: true
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
const Input = (0, import_focusable.focusableInputHOC)(InputFrame);
|
|
76
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
-
0 && (module.exports = {
|
|
78
|
-
Input,
|
|
79
|
-
InputFrame,
|
|
80
|
-
defaultStyles
|
|
81
|
-
});
|
|
1
|
+
"use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=(r,o)=>{for(var e in o)s(r,e,{get:o[e],enumerable:!0})},C=(r,o,e,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of b(o))!f.call(r,t)&&t!==e&&s(r,t,{get:()=>o[t],enumerable:!(u=c(o,t))||u.enumerable});return r};var y=r=>C(s({},"__esModule",{value:!0}),r);var I={};m(I,{Input:()=>$,InputFrame:()=>d,defaultStyles:()=>a});module.exports=y(I);var l=require("@tamagui/core"),i=require("@tamagui/focusable"),n=require("react-native"),p=require("../helpers/inputHelpers");(0,l.setupReactNative)({TextInput:n.TextInput});const a={size:"$true",fontFamily:"$body",borderWidth:1,outlineWidth:0,color:"$color",focusable:!0,borderColor:"$borderColor",backgroundColor:"$background",placeholderTextColor:"$placeholderColor",minWidth:0,hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{outlineColor:"$borderColorFocus",outlineWidth:2,outlineStyle:"solid",borderColor:"$borderColorFocus"}},d=(0,l.styled)(n.TextInput,{name:"Input",variants:{unstyled:{false:a},size:{"...size":p.inputSizeVariant}},defaultVariants:{unstyled:!1}},{isInput:!0}),$=(0,i.focusableInputHOC)(d);0&&(module.exports={Input,InputFrame,defaultStyles});
|
|
82
2
|
//# sourceMappingURL=Input.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Input.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, setupReactNative, styled } from '@tamagui/core'\nimport { focusableInputHOC } from '@tamagui/focusable'\nimport { TextInput } from 'react-native'\n\nimport { inputSizeVariant } from '../helpers/inputHelpers'\n\nsetupReactNative({\n TextInput,\n})\n\nexport const defaultStyles = {\n size: '$true',\n fontFamily: '$body',\n borderWidth: 1,\n outlineWidth: 0,\n color: '$color',\n focusable: true,\n borderColor: '$borderColor',\n backgroundColor: '$background',\n placeholderTextColor: '$placeholderColor',\n\n // this fixes a flex bug where it overflows container\n minWidth: 0,\n\n hoverStyle: {\n borderColor: '$borderColorHover',\n },\n\n focusStyle: {\n outlineColor: '$borderColorFocus',\n outlineWidth: 2,\n outlineStyle: 'solid',\n borderColor: '$borderColorFocus',\n },\n} as const\n\nexport const InputFrame = styled(\n TextInput,\n {\n name: 'Input',\n\n variants: {\n unstyled: {\n false: defaultStyles,\n },\n\n size: {\n '...size': inputSizeVariant,\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n },\n {\n isInput: true,\n }\n)\n\nexport type InputProps = GetProps<typeof InputFrame>\n\nexport const Input = focusableInputHOC(InputFrame)\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,eAAAC,EAAA,kBAAAC,IAAA,eAAAC,EAAAL,GAAA,IAAAM,EAAmD,yBACnDC,EAAkC,8BAClCC,EAA0B,wBAE1BC,EAAiC,sCAEjC,oBAAiB,CACf,qBACF,CAAC,EAEM,MAAML,EAAgB,CAC3B,KAAM,QACN,WAAY,QACZ,YAAa,EACb,aAAc,EACd,MAAO,SACP,UAAW,GACX,YAAa,eACb,gBAAiB,cACjB,qBAAsB,oBAGtB,SAAU,EAEV,WAAY,CACV,YAAa,mBACf,EAEA,WAAY,CACV,aAAc,oBACd,aAAc,EACd,aAAc,QACd,YAAa,mBACf,CACF,EAEaD,KAAa,UACxB,YACA,CACE,KAAM,QAEN,SAAU,CACR,SAAU,CACR,MAAOC,CACT,EAEA,KAAM,CACJ,UAAW,kBACb,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,EACA,CACE,QAAS,EACX,CACF,EAIaF,KAAQ,qBAAkBC,CAAU",
|
|
6
|
+
"names": ["Input_exports", "__export", "Input", "InputFrame", "defaultStyles", "__toCommonJS", "import_core", "import_focusable", "import_react_native", "import_inputHelpers"]
|
|
7
7
|
}
|
|
@@ -1,81 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Layouts_exports = {};
|
|
20
|
-
__export(Layouts_exports, {
|
|
21
|
-
Article: () => Article,
|
|
22
|
-
Aside: () => Aside,
|
|
23
|
-
Footer: () => Footer,
|
|
24
|
-
Header: () => Header,
|
|
25
|
-
Main: () => Main,
|
|
26
|
-
Nav: () => Nav,
|
|
27
|
-
Section: () => Section
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(Layouts_exports);
|
|
30
|
-
var import_core = require("@tamagui/core");
|
|
31
|
-
const Section = (0, import_core.styled)(import_core.Stack, {
|
|
32
|
-
name: "Section",
|
|
33
|
-
tag: "section",
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
accessibilityRole: "summary"
|
|
36
|
-
});
|
|
37
|
-
const Article = (0, import_core.styled)(import_core.Stack, {
|
|
38
|
-
name: "Article",
|
|
39
|
-
tag: "article",
|
|
40
|
-
flexDirection: "column"
|
|
41
|
-
});
|
|
42
|
-
const Main = (0, import_core.styled)(import_core.Stack, {
|
|
43
|
-
name: "Main",
|
|
44
|
-
tag: "main",
|
|
45
|
-
flexDirection: "column"
|
|
46
|
-
});
|
|
47
|
-
const Header = (0, import_core.styled)(import_core.Stack, {
|
|
48
|
-
name: "Header",
|
|
49
|
-
tag: "header",
|
|
50
|
-
accessibilityRole: "header",
|
|
51
|
-
flexDirection: "column"
|
|
52
|
-
});
|
|
53
|
-
const Aside = (0, import_core.styled)(import_core.Stack, {
|
|
54
|
-
name: "Aside",
|
|
55
|
-
tag: "aside",
|
|
56
|
-
flexDirection: "column"
|
|
57
|
-
// accessibilityRole: 'complementary',
|
|
58
|
-
});
|
|
59
|
-
const Footer = (0, import_core.styled)(import_core.Stack, {
|
|
60
|
-
name: "Footer",
|
|
61
|
-
tag: "footer",
|
|
62
|
-
flexDirection: "column"
|
|
63
|
-
// accessibilityRole: 'contentinfo',
|
|
64
|
-
});
|
|
65
|
-
const Nav = (0, import_core.styled)(import_core.Stack, {
|
|
66
|
-
name: "Nav",
|
|
67
|
-
tag: "nav",
|
|
68
|
-
flexDirection: "column"
|
|
69
|
-
// accessibilityRole: 'navigation',
|
|
70
|
-
});
|
|
71
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
-
0 && (module.exports = {
|
|
73
|
-
Article,
|
|
74
|
-
Aside,
|
|
75
|
-
Footer,
|
|
76
|
-
Header,
|
|
77
|
-
Main,
|
|
78
|
-
Nav,
|
|
79
|
-
Section
|
|
80
|
-
});
|
|
1
|
+
"use strict";var c=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var s=(o,t)=>{for(var i in t)c(o,i,{get:t[i],enumerable:!0})},x=(o,t,i,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of l(t))!m.call(o,n)&&n!==i&&c(o,n,{get:()=>t[n],enumerable:!(a=r(t,n))||a.enumerable});return o};var f=o=>x(c({},"__esModule",{value:!0}),o);var v={};s(v,{Article:()=>p,Aside:()=>D,Footer:()=>y,Header:()=>g,Main:()=>u,Nav:()=>A,Section:()=>d});module.exports=f(v);var e=require("@tamagui/core");const d=(0,e.styled)(e.Stack,{name:"Section",tag:"section",flexDirection:"column",accessibilityRole:"summary"}),p=(0,e.styled)(e.Stack,{name:"Article",tag:"article",flexDirection:"column"}),u=(0,e.styled)(e.Stack,{name:"Main",tag:"main",flexDirection:"column"}),g=(0,e.styled)(e.Stack,{name:"Header",tag:"header",accessibilityRole:"header",flexDirection:"column"}),D=(0,e.styled)(e.Stack,{name:"Aside",tag:"aside",flexDirection:"column"}),y=(0,e.styled)(e.Stack,{name:"Footer",tag:"footer",flexDirection:"column"}),A=(0,e.styled)(e.Stack,{name:"Nav",tag:"nav",flexDirection:"column"});0&&(module.exports={Article,Aside,Footer,Header,Main,Nav,Section});
|
|
81
2
|
//# sourceMappingURL=Layouts.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Layouts.tsx"],
|
|
4
4
|
"sourcesContent": ["import { Stack, styled } from '@tamagui/core'\n\nexport const Section = styled(Stack, {\n name: 'Section',\n tag: 'section',\n flexDirection: 'column',\n accessibilityRole: 'summary',\n})\n\nexport const Article = styled(Stack, {\n name: 'Article',\n tag: 'article',\n flexDirection: 'column',\n})\n\nexport const Main = styled(Stack, {\n name: 'Main',\n tag: 'main',\n flexDirection: 'column',\n})\n\nexport const Header = styled(Stack, {\n name: 'Header',\n tag: 'header',\n accessibilityRole: 'header',\n flexDirection: 'column',\n})\n\nexport const Aside = styled(Stack, {\n name: 'Aside',\n tag: 'aside',\n flexDirection: 'column',\n // accessibilityRole: 'complementary',\n})\n\nexport const Footer = styled(Stack, {\n name: 'Footer',\n tag: 'footer',\n flexDirection: 'column',\n // accessibilityRole: 'contentinfo',\n})\n\nexport const Nav = styled(Stack, {\n name: 'Nav',\n tag: 'nav',\n flexDirection: 'column',\n // accessibilityRole: 'navigation',\n})\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,EAAA,UAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,SAAAC,EAAA,QAAAC,EAAA,YAAAC,IAAA,eAAAC,EAAAT,GAAA,IAAAU,EAA8B,yBAEvB,MAAMF,KAAU,UAAO,QAAO,CACnC,KAAM,UACN,IAAK,UACL,cAAe,SACf,kBAAmB,SACrB,CAAC,EAEYN,KAAU,UAAO,QAAO,CACnC,KAAM,UACN,IAAK,UACL,cAAe,QACjB,CAAC,EAEYI,KAAO,UAAO,QAAO,CAChC,KAAM,OACN,IAAK,OACL,cAAe,QACjB,CAAC,EAEYD,KAAS,UAAO,QAAO,CAClC,KAAM,SACN,IAAK,SACL,kBAAmB,SACnB,cAAe,QACjB,CAAC,EAEYF,KAAQ,UAAO,QAAO,CACjC,KAAM,QACN,IAAK,QACL,cAAe,QAEjB,CAAC,EAEYC,KAAS,UAAO,QAAO,CAClC,KAAM,SACN,IAAK,SACL,cAAe,QAEjB,CAAC,EAEYG,KAAM,UAAO,QAAO,CAC/B,KAAM,MACN,IAAK,MACL,cAAe,QAEjB,CAAC",
|
|
6
|
+
"names": ["Layouts_exports", "__export", "Article", "Aside", "Footer", "Header", "Main", "Nav", "Section", "__toCommonJS", "import_core"]
|
|
7
7
|
}
|
|
@@ -1,65 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Skeleton_exports = {};
|
|
20
|
-
__export(Skeleton_exports, {
|
|
21
|
-
Skeleton: () => Skeleton,
|
|
22
|
-
SkeletonFrame: () => SkeletonFrame,
|
|
23
|
-
SkeletonShine: () => SkeletonShine
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Skeleton_exports);
|
|
26
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
var import_core = require("@tamagui/core");
|
|
28
|
-
var import_linear_gradient = require("@tamagui/linear-gradient");
|
|
29
|
-
var import_stacks = require("@tamagui/stacks");
|
|
30
|
-
var import_react = require("react");
|
|
31
|
-
var import_VisuallyHidden = require("./VisuallyHidden");
|
|
32
|
-
const SkeletonFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
33
|
-
name: "Skeleton",
|
|
34
|
-
backgroundColor: "$backgroundHover",
|
|
35
|
-
overflow: "hidden",
|
|
36
|
-
position: "relative"
|
|
37
|
-
});
|
|
38
|
-
const Skeleton = SkeletonFrame.extractable(
|
|
39
|
-
(0, import_react.forwardRef)(({ children, ...props }, ref) => {
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SkeletonFrame, { ref, ...props, children: [
|
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SkeletonShine, {}),
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_VisuallyHidden.VisuallyHidden, { preserveDimensions: true, children })
|
|
43
|
-
] });
|
|
44
|
-
})
|
|
45
|
-
);
|
|
46
|
-
const SkeletonShine = (props) => {
|
|
47
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
48
|
-
import_linear_gradient.LinearGradient,
|
|
49
|
-
{
|
|
50
|
-
position: "absolute",
|
|
51
|
-
top: 0,
|
|
52
|
-
bottom: 0,
|
|
53
|
-
width: "25%",
|
|
54
|
-
colors: ["$background", "$color"],
|
|
55
|
-
...props
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
-
0 && (module.exports = {
|
|
61
|
-
Skeleton,
|
|
62
|
-
SkeletonFrame,
|
|
63
|
-
SkeletonShine
|
|
64
|
-
});
|
|
1
|
+
"use strict";var i=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var b=(e,o)=>{for(var r in o)i(e,r,{get:o[r],enumerable:!0})},P=(e,o,r,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of c(o))!u.call(e,n)&&n!==r&&i(e,n,{get:()=>o[n],enumerable:!(l=S(o,n))||l.enumerable});return e};var g=e=>P(i({},"__esModule",{value:!0}),e);var G={};b(G,{Skeleton:()=>y,SkeletonFrame:()=>a,SkeletonShine:()=>f});module.exports=g(G);var t=require("react/jsx-runtime"),p=require("@tamagui/core"),m=require("@tamagui/linear-gradient"),s=require("@tamagui/stacks"),d=require("react"),k=require("./VisuallyHidden");const a=(0,p.styled)(s.YStack,{name:"Skeleton",backgroundColor:"$backgroundHover",overflow:"hidden",position:"relative"}),y=a.extractable((0,d.forwardRef)(({children:e,...o},r)=>(0,t.jsxs)(a,{ref:r,...o,children:[(0,t.jsx)(f,{}),(0,t.jsx)(k.VisuallyHidden,{preserveDimensions:!0,children:e})]}))),f=e=>(0,t.jsx)(m.LinearGradient,{position:"absolute",top:0,bottom:0,width:"25%",colors:["$background","$color"],...e});0&&(module.exports={Skeleton,SkeletonFrame,SkeletonShine});
|
|
65
2
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Skeleton.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, TamaguiElement, styled } from '@tamagui/core'\nimport { LinearGradient, LinearGradientProps } from '@tamagui/linear-gradient'\nimport { YStack } from '@tamagui/stacks'\nimport { forwardRef } from 'react'\n\nimport { VisuallyHidden } from './VisuallyHidden'\n\nexport const SkeletonFrame = styled(YStack, {\n name: 'Skeleton',\n backgroundColor: '$backgroundHover',\n overflow: 'hidden',\n position: 'relative',\n})\n\nexport type SkeletonProps = GetProps<typeof SkeletonFrame>\n\nexport const Skeleton = SkeletonFrame.extractable(\n forwardRef<TamaguiElement>(({ children, ...props }: SkeletonProps, ref) => {\n return (\n <SkeletonFrame ref={ref} {...props}>\n <SkeletonShine />\n <VisuallyHidden preserveDimensions>{children}</VisuallyHidden>\n </SkeletonFrame>\n )\n })\n)\n\nexport const SkeletonShine = (props: LinearGradientProps) => {\n return (\n <LinearGradient\n position=\"absolute\"\n top={0}\n bottom={0}\n width=\"25%\"\n colors={['$background', '$color']}\n {...props}\n />\n )\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,EAAA,kBAAAC,EAAA,kBAAAC,IAAA,eAAAC,EAAAL,GAmBM,IAAAM,EAAA,6BAnBNC,EAAiD,yBACjDC,EAAoD,oCACpDC,EAAuB,2BACvBC,EAA2B,iBAE3BC,EAA+B,4BAExB,MAAMR,KAAgB,UAAO,SAAQ,CAC1C,KAAM,WACN,gBAAiB,mBACjB,SAAU,SACV,SAAU,UACZ,CAAC,EAIYD,EAAWC,EAAc,eACpC,cAA2B,CAAC,CAAE,SAAAS,EAAU,GAAGC,CAAM,EAAkBC,OAE/D,QAACX,EAAA,CAAc,IAAKW,EAAM,GAAGD,EAC3B,oBAACT,EAAA,EAAc,KACf,OAAC,kBAAe,mBAAkB,GAAE,SAAAQ,EAAS,GAC/C,CAEH,CACH,EAEaR,EAAiBS,MAE1B,OAAC,kBACC,SAAS,WACT,IAAK,EACL,OAAQ,EACR,MAAM,MACN,OAAQ,CAAC,cAAe,QAAQ,EAC/B,GAAGA,EACN",
|
|
6
|
+
"names": ["Skeleton_exports", "__export", "Skeleton", "SkeletonFrame", "SkeletonShine", "__toCommonJS", "import_jsx_runtime", "import_core", "import_linear_gradient", "import_stacks", "import_react", "import_VisuallyHidden", "children", "props", "ref"]
|
|
7
7
|
}
|