@tamagui/elements 2.0.0-rc.3 → 2.0.0-rc.30
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/index.js +54 -43
- package/dist/esm/index.js +40 -42
- package/dist/esm/index.js.map +1 -6
- package/dist/jsx/index.js +40 -42
- package/dist/jsx/index.js.map +1 -6
- package/package.json +6 -9
package/dist/cjs/index.js
CHANGED
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var index_exports = {};
|
|
16
22
|
__export(index_exports, {
|
|
17
23
|
Article: () => Article,
|
|
@@ -25,37 +31,42 @@ __export(index_exports, {
|
|
|
25
31
|
module.exports = __toCommonJS(index_exports);
|
|
26
32
|
var import_core = require("@tamagui/core");
|
|
27
33
|
const Section = (0, import_core.styled)(import_core.View, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
})
|
|
61
|
-
|
|
34
|
+
name: "Section",
|
|
35
|
+
render: "section",
|
|
36
|
+
flexDirection: "column",
|
|
37
|
+
role: "region"
|
|
38
|
+
}),
|
|
39
|
+
Article = (0, import_core.styled)(import_core.View, {
|
|
40
|
+
name: "Article",
|
|
41
|
+
render: "article",
|
|
42
|
+
flexDirection: "column"
|
|
43
|
+
}),
|
|
44
|
+
Main = (0, import_core.styled)(import_core.View, {
|
|
45
|
+
name: "Main",
|
|
46
|
+
render: "main",
|
|
47
|
+
flexDirection: "column"
|
|
48
|
+
}),
|
|
49
|
+
Header = (0, import_core.styled)(import_core.View, {
|
|
50
|
+
name: "Header",
|
|
51
|
+
render: "header",
|
|
52
|
+
role: "banner",
|
|
53
|
+
flexDirection: "column"
|
|
54
|
+
}),
|
|
55
|
+
Aside = (0, import_core.styled)(import_core.View, {
|
|
56
|
+
name: "Aside",
|
|
57
|
+
render: "aside",
|
|
58
|
+
flexDirection: "column"
|
|
59
|
+
// accessibilityRole: 'complementary',
|
|
60
|
+
}),
|
|
61
|
+
Footer = (0, import_core.styled)(import_core.View, {
|
|
62
|
+
name: "Footer",
|
|
63
|
+
render: "footer",
|
|
64
|
+
flexDirection: "column"
|
|
65
|
+
// accessibilityRole: 'contentinfo',
|
|
66
|
+
}),
|
|
67
|
+
Nav = (0, import_core.styled)(import_core.View, {
|
|
68
|
+
name: "Nav",
|
|
69
|
+
render: "nav",
|
|
70
|
+
flexDirection: "column"
|
|
71
|
+
// accessibilityRole: 'navigation',
|
|
72
|
+
});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import { View, styled } from "@tamagui/core";
|
|
2
2
|
const Section = styled(View, {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Section
|
|
44
|
-
};
|
|
3
|
+
name: "Section",
|
|
4
|
+
render: "section",
|
|
5
|
+
flexDirection: "column",
|
|
6
|
+
role: "region"
|
|
7
|
+
}),
|
|
8
|
+
Article = styled(View, {
|
|
9
|
+
name: "Article",
|
|
10
|
+
render: "article",
|
|
11
|
+
flexDirection: "column"
|
|
12
|
+
}),
|
|
13
|
+
Main = styled(View, {
|
|
14
|
+
name: "Main",
|
|
15
|
+
render: "main",
|
|
16
|
+
flexDirection: "column"
|
|
17
|
+
}),
|
|
18
|
+
Header = styled(View, {
|
|
19
|
+
name: "Header",
|
|
20
|
+
render: "header",
|
|
21
|
+
role: "banner",
|
|
22
|
+
flexDirection: "column"
|
|
23
|
+
}),
|
|
24
|
+
Aside = styled(View, {
|
|
25
|
+
name: "Aside",
|
|
26
|
+
render: "aside",
|
|
27
|
+
flexDirection: "column"
|
|
28
|
+
// accessibilityRole: 'complementary',
|
|
29
|
+
}),
|
|
30
|
+
Footer = styled(View, {
|
|
31
|
+
name: "Footer",
|
|
32
|
+
render: "footer",
|
|
33
|
+
flexDirection: "column"
|
|
34
|
+
// accessibilityRole: 'contentinfo',
|
|
35
|
+
}),
|
|
36
|
+
Nav = styled(View, {
|
|
37
|
+
name: "Nav",
|
|
38
|
+
render: "nav",
|
|
39
|
+
flexDirection: "column"
|
|
40
|
+
// accessibilityRole: 'navigation',
|
|
41
|
+
});
|
|
42
|
+
export { Article, Aside, Footer, Header, Main, Nav, Section };
|
|
45
43
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,MAAM,cAAc;AAEtB,MAAM,UAAU,OAAO,MAAM;AAAA,EAClC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,MAAM;AACR,CAAC,GAEY,UAAU,OAAO,MAAM;AAAA,EAClC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AACjB,CAAC,GAEY,OAAO,OAAO,MAAM;AAAA,EAC/B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AACjB,CAAC,GAEY,SAAS,OAAO,MAAM;AAAA,EACjC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,eAAe;AACjB,CAAC,GAEY,QAAQ,OAAO,MAAM;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA;AAEjB,CAAC,GAEY,SAAS,OAAO,MAAM;AAAA,EACjC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA;AAEjB,CAAC,GAEY,MAAM,OAAO,MAAM;AAAA,EAC9B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA;AAEjB,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["View","styled","Section","name","render","flexDirection","role","Article","Main","Header","Aside","Footer","Nav"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAEtB,MAAMC,OAAA,GAAUD,MAAA,CAAOD,IAAA,EAAM;IAClCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IACfC,IAAA,EAAM;EACR,CAAC;EAEYC,OAAA,GAAUN,MAAA,CAAOD,IAAA,EAAM;IAClCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;EACjB,CAAC;EAEYG,IAAA,GAAOP,MAAA,CAAOD,IAAA,EAAM;IAC/BG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;EACjB,CAAC;EAEYI,MAAA,GAASR,MAAA,CAAOD,IAAA,EAAM;IACjCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRE,IAAA,EAAM;IACND,aAAA,EAAe;EACjB,CAAC;EAEYK,KAAA,GAAQT,MAAA,CAAOD,IAAA,EAAM;IAChCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IAAA;EAEjB,CAAC;EAEYM,MAAA,GAASV,MAAA,CAAOD,IAAA,EAAM;IACjCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IAAA;EAEjB,CAAC;EAEYO,GAAA,GAAMX,MAAA,CAAOD,IAAA,EAAM;IAC9BG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IAAA;EAEjB,CAAC","ignoreList":[]}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import { View, styled } from "@tamagui/core";
|
|
2
2
|
const Section = styled(View, {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Section
|
|
44
|
-
};
|
|
3
|
+
name: "Section",
|
|
4
|
+
render: "section",
|
|
5
|
+
flexDirection: "column",
|
|
6
|
+
role: "region"
|
|
7
|
+
}),
|
|
8
|
+
Article = styled(View, {
|
|
9
|
+
name: "Article",
|
|
10
|
+
render: "article",
|
|
11
|
+
flexDirection: "column"
|
|
12
|
+
}),
|
|
13
|
+
Main = styled(View, {
|
|
14
|
+
name: "Main",
|
|
15
|
+
render: "main",
|
|
16
|
+
flexDirection: "column"
|
|
17
|
+
}),
|
|
18
|
+
Header = styled(View, {
|
|
19
|
+
name: "Header",
|
|
20
|
+
render: "header",
|
|
21
|
+
role: "banner",
|
|
22
|
+
flexDirection: "column"
|
|
23
|
+
}),
|
|
24
|
+
Aside = styled(View, {
|
|
25
|
+
name: "Aside",
|
|
26
|
+
render: "aside",
|
|
27
|
+
flexDirection: "column"
|
|
28
|
+
// accessibilityRole: 'complementary',
|
|
29
|
+
}),
|
|
30
|
+
Footer = styled(View, {
|
|
31
|
+
name: "Footer",
|
|
32
|
+
render: "footer",
|
|
33
|
+
flexDirection: "column"
|
|
34
|
+
// accessibilityRole: 'contentinfo',
|
|
35
|
+
}),
|
|
36
|
+
Nav = styled(View, {
|
|
37
|
+
name: "Nav",
|
|
38
|
+
render: "nav",
|
|
39
|
+
flexDirection: "column"
|
|
40
|
+
// accessibilityRole: 'navigation',
|
|
41
|
+
});
|
|
42
|
+
export { Article, Aside, Footer, Header, Main, Nav, Section };
|
|
45
43
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,MAAM,cAAc;AAEtB,MAAM,UAAU,OAAO,MAAM;AAAA,EAClC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,MAAM;AACR,CAAC,GAEY,UAAU,OAAO,MAAM;AAAA,EAClC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AACjB,CAAC,GAEY,OAAO,OAAO,MAAM;AAAA,EAC/B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AACjB,CAAC,GAEY,SAAS,OAAO,MAAM;AAAA,EACjC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,eAAe;AACjB,CAAC,GAEY,QAAQ,OAAO,MAAM;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA;AAEjB,CAAC,GAEY,SAAS,OAAO,MAAM;AAAA,EACjC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA;AAEjB,CAAC,GAEY,MAAM,OAAO,MAAM;AAAA,EAC9B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,eAAe;AAAA;AAEjB,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["View","styled","Section","name","render","flexDirection","role","Article","Main","Header","Aside","Footer","Nav"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAEtB,MAAMC,OAAA,GAAUD,MAAA,CAAOD,IAAA,EAAM;IAClCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IACfC,IAAA,EAAM;EACR,CAAC;EAEYC,OAAA,GAAUN,MAAA,CAAOD,IAAA,EAAM;IAClCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;EACjB,CAAC;EAEYG,IAAA,GAAOP,MAAA,CAAOD,IAAA,EAAM;IAC/BG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;EACjB,CAAC;EAEYI,MAAA,GAASR,MAAA,CAAOD,IAAA,EAAM;IACjCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRE,IAAA,EAAM;IACND,aAAA,EAAe;EACjB,CAAC;EAEYK,KAAA,GAAQT,MAAA,CAAOD,IAAA,EAAM;IAChCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IAAA;EAEjB,CAAC;EAEYM,MAAA,GAASV,MAAA,CAAOD,IAAA,EAAM;IACjCG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IAAA;EAEjB,CAAC;EAEYO,GAAA,GAAMX,MAAA,CAAOD,IAAA,EAAM;IAC9BG,IAAA,EAAM;IACNC,MAAA,EAAQ;IACRC,aAAA,EAAe;IAAA;EAEjB,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/elements",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.30",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -18,15 +18,12 @@
|
|
|
18
18
|
"./package.json": "./package.json",
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./types/index.d.ts",
|
|
21
|
-
"react-native":
|
|
22
|
-
|
|
23
|
-
"import": "./dist/esm/index.native.js",
|
|
24
|
-
"require": "./dist/cjs/index.native.js"
|
|
25
|
-
},
|
|
21
|
+
"react-native": "./dist/esm/index.native.js",
|
|
22
|
+
"browser": "./dist/esm/index.mjs",
|
|
26
23
|
"module": "./dist/esm/index.mjs",
|
|
27
24
|
"import": "./dist/esm/index.mjs",
|
|
28
25
|
"require": "./dist/cjs/index.cjs",
|
|
29
|
-
"default": "./dist/
|
|
26
|
+
"default": "./dist/esm/index.mjs"
|
|
30
27
|
}
|
|
31
28
|
},
|
|
32
29
|
"publishConfig": {
|
|
@@ -39,10 +36,10 @@
|
|
|
39
36
|
"clean:build": "tamagui-build clean:build"
|
|
40
37
|
},
|
|
41
38
|
"dependencies": {
|
|
42
|
-
"@tamagui/core": "2.0.0-rc.
|
|
39
|
+
"@tamagui/core": "2.0.0-rc.30"
|
|
43
40
|
},
|
|
44
41
|
"devDependencies": {
|
|
45
|
-
"@tamagui/build": "2.0.0-rc.
|
|
42
|
+
"@tamagui/build": "2.0.0-rc.30",
|
|
46
43
|
"react": ">=19"
|
|
47
44
|
},
|
|
48
45
|
"peerDependencies": {
|