@tamagui/web 3.0.0-beta.807.1 → 3.0.0-beta.831.1
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/config.cjs +1 -1
- package/dist/cjs/config.native.cjs +1 -1
- package/dist/cjs/config.native.js +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/createComponent.cjs +28 -18
- package/dist/cjs/createComponent.native.cjs +30 -20
- package/dist/cjs/createComponent.native.js +30 -20
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createStyledHOC.cjs +54 -4
- package/dist/cjs/createStyledHOC.native.cjs +55 -4
- package/dist/cjs/createStyledHOC.native.js +55 -4
- package/dist/cjs/createStyledHOC.native.js.map +1 -1
- package/dist/cjs/createTokens.cjs +1 -1
- package/dist/cjs/createTokens.native.cjs +1 -1
- package/dist/cjs/createTokens.native.js +1 -1
- package/dist/cjs/createTokens.native.js.map +1 -1
- package/dist/cjs/dom/html.cjs +147 -99
- package/dist/cjs/dom/htmlRuntime.native.cjs +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/dom/primitives.native.cjs +16 -13
- package/dist/cjs/dom/primitives.native.js +16 -13
- package/dist/cjs/dom/primitives.native.js.map +1 -1
- package/dist/cjs/helpers/componentDisplayName.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/cjs/helpers/directStyleCSS.cjs +101 -104
- package/dist/cjs/helpers/formatDiagnostic.cjs +2 -4
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +2 -4
- package/dist/cjs/helpers/formatDiagnostic.native.js +2 -4
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +10 -10
- package/dist/cjs/helpers/getSplitStyles.cjs +168 -600
- package/dist/cjs/helpers/getSplitStyles.native.cjs +168 -762
- package/dist/cjs/helpers/getSplitStyles.native.js +168 -762
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/splitStyleProps.cjs +46 -0
- package/dist/cjs/helpers/splitStyleProps.native.cjs +49 -0
- package/dist/cjs/helpers/splitStyleProps.native.js +51 -0
- package/dist/cjs/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/cjs/helpers/styleStaticConfig.cjs +76 -0
- package/dist/cjs/helpers/styleStaticConfig.native.cjs +79 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js +81 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/cjs/helpers/tokenCategories.cjs +32 -71
- package/dist/cjs/helpers/tokenCategories.native.cjs +34 -73
- package/dist/cjs/helpers/tokenCategories.native.js +34 -73
- package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
- package/dist/cjs/helpers/variantResolvers.cjs +87 -0
- package/dist/cjs/helpers/variantResolvers.native.cjs +140 -0
- package/dist/cjs/helpers/variantResolvers.native.js +142 -0
- package/dist/cjs/helpers/variantResolvers.native.js.map +1 -0
- package/dist/cjs/hooks/useSplitStyles.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/cjs/index.cjs +3 -9
- package/dist/cjs/index.native.cjs +3 -9
- package/dist/cjs/index.native.js +3 -9
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +8 -7
- package/dist/cjs/internal-runtime.native.cjs +8 -7
- package/dist/cjs/internal-runtime.native.js +8 -7
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/static-resolve.cjs +6 -5
- package/dist/cjs/static-resolve.native.cjs +6 -5
- package/dist/cjs/static-resolve.native.js +6 -5
- package/dist/cjs/static-resolve.native.js.map +1 -1
- package/dist/cjs/styled.cjs +4 -56
- package/dist/cjs/styled.native.cjs +4 -58
- package/dist/cjs/styled.native.js +4 -58
- package/dist/cjs/styled.native.js.map +1 -1
- package/dist/cjs/types.cjs +1 -21
- package/dist/cjs/types.native.cjs +1 -21
- package/dist/cjs/types.native.js +1 -21
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/views/Text.cjs +4 -2
- package/dist/cjs/views/Text.native.cjs +4 -2
- package/dist/cjs/views/Text.native.js +4 -2
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/cjs/views/View.cjs +4 -2
- package/dist/cjs/views/View.native.cjs +4 -2
- package/dist/cjs/views/View.native.js +4 -2
- package/dist/cjs/views/View.native.js.map +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +1 -1
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +29 -19
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +31 -21
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createStyledHOC.mjs +55 -5
- package/dist/esm/createStyledHOC.mjs.map +1 -1
- package/dist/esm/createStyledHOC.native.js +56 -5
- package/dist/esm/createStyledHOC.native.js.map +1 -1
- package/dist/esm/createTokens.mjs +1 -1
- package/dist/esm/createTokens.mjs.map +1 -1
- package/dist/esm/createTokens.native.js +1 -1
- package/dist/esm/createTokens.native.js.map +1 -1
- package/dist/esm/dom/html.mjs +147 -99
- package/dist/esm/dom/html.mjs.map +1 -1
- package/dist/esm/dom/htmlRuntime.native.js +7 -3
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
- package/dist/esm/dom/primitives.native.js +16 -13
- package/dist/esm/dom/primitives.native.js.map +1 -1
- package/dist/esm/helpers/componentDisplayName.mjs +1 -8
- package/dist/esm/helpers/componentDisplayName.mjs.map +1 -1
- package/dist/esm/helpers/componentDisplayName.native.js +1 -8
- package/dist/esm/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/esm/helpers/directStyleCSS.mjs +101 -104
- package/dist/esm/helpers/directStyleCSS.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.mjs +2 -4
- package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js +2 -4
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +10 -10
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +166 -594
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +166 -757
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/splitStyleProps.mjs +27 -0
- package/dist/esm/helpers/splitStyleProps.mjs.map +1 -0
- package/dist/esm/helpers/splitStyleProps.native.js +28 -0
- package/dist/esm/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.mjs +57 -0
- package/dist/esm/helpers/styleStaticConfig.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.native.js +58 -0
- package/dist/esm/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/esm/helpers/tokenCategories.mjs +33 -72
- package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
- package/dist/esm/helpers/tokenCategories.native.js +35 -74
- package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
- package/dist/esm/helpers/variantResolvers.mjs +65 -0
- package/dist/esm/helpers/variantResolvers.mjs.map +1 -0
- package/dist/esm/helpers/variantResolvers.native.js +116 -0
- package/dist/esm/helpers/variantResolvers.native.js.map +1 -0
- package/dist/esm/hooks/useSplitStyles.mjs +2 -2
- package/dist/esm/hooks/useSplitStyles.mjs.map +1 -1
- package/dist/esm/hooks/useSplitStyles.native.js +2 -2
- package/dist/esm/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/esm/index.js +3 -5
- package/dist/esm/index.mjs +3 -5
- package/dist/esm/index.native.js +3 -5
- package/dist/esm/internal-runtime.mjs +8 -7
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +8 -7
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/static-resolve.mjs +8 -6
- package/dist/esm/static-resolve.mjs.map +1 -1
- package/dist/esm/static-resolve.native.js +8 -6
- package/dist/esm/static-resolve.native.js.map +1 -1
- package/dist/esm/styled.mjs +6 -57
- package/dist/esm/styled.mjs.map +1 -1
- package/dist/esm/styled.native.js +6 -59
- package/dist/esm/styled.native.js.map +1 -1
- package/dist/esm/types.mjs +1 -18
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +1 -18
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/views/Text.mjs +4 -2
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Text.native.js +4 -2
- package/dist/esm/views/Text.native.js.map +1 -1
- package/dist/esm/views/View.mjs +4 -2
- package/dist/esm/views/View.mjs.map +1 -1
- package/dist/esm/views/View.native.js +4 -2
- package/dist/esm/views/View.native.js.map +1 -1
- package/package.json +15 -15
- package/src/config.ts +1 -1
- package/src/createComponent.tsx +41 -30
- package/src/createStyledHOC.tsx +56 -9
- package/src/createTokens.ts +1 -1
- package/src/dom/html.tsx +778 -877
- package/src/dom/htmlRuntime.native.tsx +7 -3
- package/src/dom/primitives.native.tsx +30 -39
- package/src/helpers/componentDisplayName.ts +0 -11
- package/src/helpers/directStyleCSS.ts +91 -112
- package/src/helpers/formatDiagnostic.ts +2 -4
- package/src/helpers/getCSSStylesAtomic.ts +32 -26
- package/src/helpers/getSplitStyles.tsx +315 -1119
- package/src/helpers/getVariantExtras.tsx +3 -3
- package/src/helpers/splitStyleProps.ts +166 -0
- package/src/helpers/styleFrontend.ts +8 -4
- package/src/helpers/styleStaticConfig.ts +88 -0
- package/src/helpers/tokenCategories.ts +62 -93
- package/src/helpers/variantResolvers.ts +121 -0
- package/src/hooks/useSplitStyles.tsx +17 -2
- package/src/hooks/useTheme.tsx +1 -1
- package/src/index.ts +8 -4
- package/src/internal-runtime.ts +10 -9
- package/src/static-resolve.ts +18 -14
- package/src/styled.tsx +7 -264
- package/src/types.tsx +19 -40
- package/src/views/Text.tsx +6 -7
- package/src/views/View.tsx +6 -7
- package/types/createComponent.d.ts.map +1 -1
- package/types/createStyledHOC.d.ts.map +1 -1
- package/types/dom/html.d.ts.map +1 -1
- package/types/dom/htmlRuntime.native.d.ts.map +1 -1
- package/types/dom/primitives.native.d.ts.map +1 -1
- package/types/helpers/componentDisplayName.d.ts +0 -3
- package/types/helpers/componentDisplayName.d.ts.map +1 -1
- package/types/helpers/directStyleCSS.d.ts.map +1 -1
- package/types/helpers/formatDiagnostic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.d.ts +17 -15
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +6 -6
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/splitStyleProps.d.ts +44 -0
- package/types/helpers/splitStyleProps.d.ts.map +1 -0
- package/types/helpers/styleFrontend.d.ts +4 -4
- package/types/helpers/styleFrontend.d.ts.map +1 -1
- package/types/helpers/styleStaticConfig.d.ts +19 -0
- package/types/helpers/styleStaticConfig.d.ts.map +1 -0
- package/types/helpers/tokenCategories.d.ts +1 -1
- package/types/helpers/tokenCategories.d.ts.map +1 -1
- package/types/helpers/variantResolvers.d.ts +9 -0
- package/types/helpers/variantResolvers.d.ts.map +1 -0
- package/types/hooks/useSplitStyles.d.ts.map +1 -1
- package/types/index.d.ts +2 -4
- package/types/index.d.ts.map +1 -1
- package/types/internal-runtime.d.ts.map +1 -1
- package/types/static-resolve.d.ts +2 -2
- package/types/static-resolve.d.ts.map +1 -1
- package/types/styled.d.ts +3 -39
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +2 -12
- package/types/types.d.ts.map +1 -1
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/View.d.ts.map +1 -1
- package/dist/cjs/helpers/getDefaultProps.cjs +0 -24
- package/dist/cjs/helpers/getDefaultProps.native.cjs +0 -28
- package/dist/cjs/helpers/getDefaultProps.native.js +0 -30
- package/dist/cjs/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/cjs/helpers/themeable.cjs +0 -92
- package/dist/cjs/helpers/themeable.native.cjs +0 -95
- package/dist/cjs/helpers/themeable.native.js +0 -97
- package/dist/cjs/helpers/themeable.native.js.map +0 -1
- package/dist/cjs/hooks/useProps.cjs +0 -129
- package/dist/cjs/hooks/useProps.native.cjs +0 -135
- package/dist/cjs/hooks/useProps.native.js +0 -137
- package/dist/cjs/hooks/useProps.native.js.map +0 -1
- package/dist/esm/helpers/getDefaultProps.mjs +0 -4
- package/dist/esm/helpers/getDefaultProps.mjs.map +0 -1
- package/dist/esm/helpers/getDefaultProps.native.js +0 -6
- package/dist/esm/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/esm/helpers/themeable.mjs +0 -67
- package/dist/esm/helpers/themeable.mjs.map +0 -1
- package/dist/esm/helpers/themeable.native.js +0 -68
- package/dist/esm/helpers/themeable.native.js.map +0 -1
- package/dist/esm/hooks/useProps.mjs +0 -100
- package/dist/esm/hooks/useProps.mjs.map +0 -1
- package/dist/esm/hooks/useProps.native.js +0 -104
- package/dist/esm/hooks/useProps.native.js.map +0 -1
- package/src/helpers/getDefaultProps.ts +0 -3
- package/src/helpers/themeable.tsx +0 -96
- package/src/hooks/useProps.tsx +0 -186
- package/types/helpers/getDefaultProps.d.ts +0 -3
- package/types/helpers/getDefaultProps.d.ts.map +0 -1
- package/types/helpers/themeable.d.ts +0 -3
- package/types/helpers/themeable.d.ts.map +0 -1
- package/types/hooks/useProps.d.ts +0 -39
- package/types/hooks/useProps.d.ts.map +0 -1
package/dist/esm/dom/html.mjs
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
import { createComponent } from "../createComponent.mjs";
|
|
2
|
-
import { setComponentDisplayName } from "../helpers/componentDisplayName.mjs";
|
|
3
2
|
import { textStaticConfig } from "../views/Text.mjs";
|
|
4
3
|
import { viewStaticConfig } from "../views/View.mjs";
|
|
5
4
|
|
|
6
5
|
const tag = (name) => name;
|
|
7
|
-
const a =
|
|
6
|
+
const a = createComponent({
|
|
8
7
|
...textStaticConfig,
|
|
9
8
|
Component: tag("a"),
|
|
9
|
+
displayName: "a",
|
|
10
10
|
defaultProps: {
|
|
11
11
|
...textStaticConfig.defaultProps,
|
|
12
12
|
margin: 0,
|
|
13
13
|
padding: 0,
|
|
14
14
|
textDecorationLine: "none"
|
|
15
15
|
}
|
|
16
|
-
})
|
|
17
|
-
const article =
|
|
16
|
+
});
|
|
17
|
+
const article = createComponent({
|
|
18
18
|
...viewStaticConfig,
|
|
19
19
|
Component: tag("article"),
|
|
20
|
+
displayName: "article",
|
|
20
21
|
defaultProps: {
|
|
21
22
|
...viewStaticConfig.defaultProps,
|
|
22
23
|
margin: 0,
|
|
23
24
|
padding: 0
|
|
24
25
|
}
|
|
25
|
-
})
|
|
26
|
-
const aside =
|
|
26
|
+
});
|
|
27
|
+
const aside = createComponent({
|
|
27
28
|
...viewStaticConfig,
|
|
28
29
|
Component: tag("aside"),
|
|
30
|
+
displayName: "aside",
|
|
29
31
|
defaultProps: {
|
|
30
32
|
...viewStaticConfig.defaultProps,
|
|
31
33
|
margin: 0,
|
|
32
34
|
padding: 0
|
|
33
35
|
}
|
|
34
|
-
})
|
|
35
|
-
const b =
|
|
36
|
+
});
|
|
37
|
+
const b = createComponent({
|
|
36
38
|
...textStaticConfig,
|
|
37
39
|
Component: tag("b"),
|
|
40
|
+
displayName: "b",
|
|
38
41
|
defaultProps: {
|
|
39
42
|
...textStaticConfig.defaultProps,
|
|
40
43
|
margin: 0,
|
|
@@ -42,49 +45,54 @@ const b = setComponentDisplayName(createComponent({
|
|
|
42
45
|
textDecorationLine: "none",
|
|
43
46
|
fontWeight: "bold"
|
|
44
47
|
}
|
|
45
|
-
})
|
|
46
|
-
const bdi =
|
|
48
|
+
});
|
|
49
|
+
const bdi = createComponent({
|
|
47
50
|
...textStaticConfig,
|
|
48
51
|
Component: tag("bdi"),
|
|
52
|
+
displayName: "bdi",
|
|
49
53
|
defaultProps: {
|
|
50
54
|
...textStaticConfig.defaultProps,
|
|
51
55
|
margin: 0,
|
|
52
56
|
padding: 0,
|
|
53
57
|
textDecorationLine: "none"
|
|
54
58
|
}
|
|
55
|
-
})
|
|
56
|
-
const bdo =
|
|
59
|
+
});
|
|
60
|
+
const bdo = createComponent({
|
|
57
61
|
...textStaticConfig,
|
|
58
62
|
Component: tag("bdo"),
|
|
63
|
+
displayName: "bdo",
|
|
59
64
|
defaultProps: {
|
|
60
65
|
...textStaticConfig.defaultProps,
|
|
61
66
|
margin: 0,
|
|
62
67
|
padding: 0,
|
|
63
68
|
textDecorationLine: "none"
|
|
64
69
|
}
|
|
65
|
-
})
|
|
66
|
-
const blockquote =
|
|
70
|
+
});
|
|
71
|
+
const blockquote = createComponent({
|
|
67
72
|
...viewStaticConfig,
|
|
68
73
|
Component: tag("blockquote"),
|
|
74
|
+
displayName: "blockquote",
|
|
69
75
|
defaultProps: {
|
|
70
76
|
...viewStaticConfig.defaultProps,
|
|
71
77
|
margin: 0,
|
|
72
78
|
padding: 0
|
|
73
79
|
}
|
|
74
|
-
})
|
|
75
|
-
const br =
|
|
80
|
+
});
|
|
81
|
+
const br = createComponent({
|
|
76
82
|
...textStaticConfig,
|
|
77
83
|
Component: tag("br"),
|
|
84
|
+
displayName: "br",
|
|
78
85
|
defaultProps: {
|
|
79
86
|
...textStaticConfig.defaultProps,
|
|
80
87
|
margin: 0,
|
|
81
88
|
padding: 0,
|
|
82
89
|
textDecorationLine: "none"
|
|
83
90
|
}
|
|
84
|
-
})
|
|
85
|
-
const button =
|
|
91
|
+
});
|
|
92
|
+
const button = createComponent({
|
|
86
93
|
...viewStaticConfig,
|
|
87
94
|
Component: tag("button"),
|
|
95
|
+
displayName: "button",
|
|
88
96
|
defaultProps: {
|
|
89
97
|
...viewStaticConfig.defaultProps,
|
|
90
98
|
margin: 0,
|
|
@@ -92,10 +100,11 @@ const button = setComponentDisplayName(createComponent({
|
|
|
92
100
|
borderStyle: "solid",
|
|
93
101
|
borderWidth: 1
|
|
94
102
|
}
|
|
95
|
-
})
|
|
96
|
-
const code =
|
|
103
|
+
});
|
|
104
|
+
const code = createComponent({
|
|
97
105
|
...textStaticConfig,
|
|
98
106
|
Component: tag("code"),
|
|
107
|
+
displayName: "code",
|
|
99
108
|
defaultProps: {
|
|
100
109
|
...textStaticConfig.defaultProps,
|
|
101
110
|
margin: 0,
|
|
@@ -104,29 +113,32 @@ const code = setComponentDisplayName(createComponent({
|
|
|
104
113
|
fontFamily: "monospace",
|
|
105
114
|
fontSize: "1em"
|
|
106
115
|
}
|
|
107
|
-
})
|
|
108
|
-
const del =
|
|
116
|
+
});
|
|
117
|
+
const del = createComponent({
|
|
109
118
|
...textStaticConfig,
|
|
110
119
|
Component: tag("del"),
|
|
120
|
+
displayName: "del",
|
|
111
121
|
defaultProps: {
|
|
112
122
|
...textStaticConfig.defaultProps,
|
|
113
123
|
margin: 0,
|
|
114
124
|
padding: 0,
|
|
115
125
|
textDecorationLine: "line-through"
|
|
116
126
|
}
|
|
117
|
-
})
|
|
118
|
-
const div =
|
|
127
|
+
});
|
|
128
|
+
const div = createComponent({
|
|
119
129
|
...viewStaticConfig,
|
|
120
130
|
Component: tag("div"),
|
|
131
|
+
displayName: "div",
|
|
121
132
|
defaultProps: {
|
|
122
133
|
...viewStaticConfig.defaultProps,
|
|
123
134
|
margin: 0,
|
|
124
135
|
padding: 0
|
|
125
136
|
}
|
|
126
|
-
})
|
|
127
|
-
const em =
|
|
137
|
+
});
|
|
138
|
+
const em = createComponent({
|
|
128
139
|
...textStaticConfig,
|
|
129
140
|
Component: tag("em"),
|
|
141
|
+
displayName: "em",
|
|
130
142
|
defaultProps: {
|
|
131
143
|
...textStaticConfig.defaultProps,
|
|
132
144
|
margin: 0,
|
|
@@ -134,37 +146,41 @@ const em = setComponentDisplayName(createComponent({
|
|
|
134
146
|
textDecorationLine: "none",
|
|
135
147
|
fontStyle: "italic"
|
|
136
148
|
}
|
|
137
|
-
})
|
|
138
|
-
const fieldset =
|
|
149
|
+
});
|
|
150
|
+
const fieldset = createComponent({
|
|
139
151
|
...viewStaticConfig,
|
|
140
152
|
Component: tag("fieldset"),
|
|
153
|
+
displayName: "fieldset",
|
|
141
154
|
defaultProps: {
|
|
142
155
|
...viewStaticConfig.defaultProps,
|
|
143
156
|
margin: 0,
|
|
144
157
|
padding: 0
|
|
145
158
|
}
|
|
146
|
-
})
|
|
147
|
-
const footer =
|
|
159
|
+
});
|
|
160
|
+
const footer = createComponent({
|
|
148
161
|
...viewStaticConfig,
|
|
149
162
|
Component: tag("footer"),
|
|
163
|
+
displayName: "footer",
|
|
150
164
|
defaultProps: {
|
|
151
165
|
...viewStaticConfig.defaultProps,
|
|
152
166
|
margin: 0,
|
|
153
167
|
padding: 0
|
|
154
168
|
}
|
|
155
|
-
})
|
|
156
|
-
const form =
|
|
169
|
+
});
|
|
170
|
+
const form = createComponent({
|
|
157
171
|
...viewStaticConfig,
|
|
158
172
|
Component: tag("form"),
|
|
173
|
+
displayName: "form",
|
|
159
174
|
defaultProps: {
|
|
160
175
|
...viewStaticConfig.defaultProps,
|
|
161
176
|
margin: 0,
|
|
162
177
|
padding: 0
|
|
163
178
|
}
|
|
164
|
-
})
|
|
165
|
-
const h1 =
|
|
179
|
+
});
|
|
180
|
+
const h1 = createComponent({
|
|
166
181
|
...textStaticConfig,
|
|
167
182
|
Component: tag("h1"),
|
|
183
|
+
displayName: "h1",
|
|
168
184
|
defaultProps: {
|
|
169
185
|
...textStaticConfig.defaultProps,
|
|
170
186
|
margin: 0,
|
|
@@ -172,10 +188,11 @@ const h1 = setComponentDisplayName(createComponent({
|
|
|
172
188
|
fontSize: "1.5rem",
|
|
173
189
|
fontWeight: "bold"
|
|
174
190
|
}
|
|
175
|
-
})
|
|
176
|
-
const h2 =
|
|
191
|
+
});
|
|
192
|
+
const h2 = createComponent({
|
|
177
193
|
...textStaticConfig,
|
|
178
194
|
Component: tag("h2"),
|
|
195
|
+
displayName: "h2",
|
|
179
196
|
defaultProps: {
|
|
180
197
|
...textStaticConfig.defaultProps,
|
|
181
198
|
margin: 0,
|
|
@@ -183,10 +200,11 @@ const h2 = setComponentDisplayName(createComponent({
|
|
|
183
200
|
fontSize: "1.5rem",
|
|
184
201
|
fontWeight: "bold"
|
|
185
202
|
}
|
|
186
|
-
})
|
|
187
|
-
const h3 =
|
|
203
|
+
});
|
|
204
|
+
const h3 = createComponent({
|
|
188
205
|
...textStaticConfig,
|
|
189
206
|
Component: tag("h3"),
|
|
207
|
+
displayName: "h3",
|
|
190
208
|
defaultProps: {
|
|
191
209
|
...textStaticConfig.defaultProps,
|
|
192
210
|
margin: 0,
|
|
@@ -194,10 +212,11 @@ const h3 = setComponentDisplayName(createComponent({
|
|
|
194
212
|
fontSize: "1.5rem",
|
|
195
213
|
fontWeight: "bold"
|
|
196
214
|
}
|
|
197
|
-
})
|
|
198
|
-
const h4 =
|
|
215
|
+
});
|
|
216
|
+
const h4 = createComponent({
|
|
199
217
|
...textStaticConfig,
|
|
200
218
|
Component: tag("h4"),
|
|
219
|
+
displayName: "h4",
|
|
201
220
|
defaultProps: {
|
|
202
221
|
...textStaticConfig.defaultProps,
|
|
203
222
|
margin: 0,
|
|
@@ -205,10 +224,11 @@ const h4 = setComponentDisplayName(createComponent({
|
|
|
205
224
|
fontSize: "1.5rem",
|
|
206
225
|
fontWeight: "bold"
|
|
207
226
|
}
|
|
208
|
-
})
|
|
209
|
-
const h5 =
|
|
227
|
+
});
|
|
228
|
+
const h5 = createComponent({
|
|
210
229
|
...textStaticConfig,
|
|
211
230
|
Component: tag("h5"),
|
|
231
|
+
displayName: "h5",
|
|
212
232
|
defaultProps: {
|
|
213
233
|
...textStaticConfig.defaultProps,
|
|
214
234
|
margin: 0,
|
|
@@ -216,10 +236,11 @@ const h5 = setComponentDisplayName(createComponent({
|
|
|
216
236
|
fontSize: "1.5rem",
|
|
217
237
|
fontWeight: "bold"
|
|
218
238
|
}
|
|
219
|
-
})
|
|
220
|
-
const h6 =
|
|
239
|
+
});
|
|
240
|
+
const h6 = createComponent({
|
|
221
241
|
...textStaticConfig,
|
|
222
242
|
Component: tag("h6"),
|
|
243
|
+
displayName: "h6",
|
|
223
244
|
defaultProps: {
|
|
224
245
|
...textStaticConfig.defaultProps,
|
|
225
246
|
margin: 0,
|
|
@@ -227,19 +248,21 @@ const h6 = setComponentDisplayName(createComponent({
|
|
|
227
248
|
fontSize: "1.5rem",
|
|
228
249
|
fontWeight: "bold"
|
|
229
250
|
}
|
|
230
|
-
})
|
|
231
|
-
const header =
|
|
251
|
+
});
|
|
252
|
+
const header = createComponent({
|
|
232
253
|
...viewStaticConfig,
|
|
233
254
|
Component: tag("header"),
|
|
255
|
+
displayName: "header",
|
|
234
256
|
defaultProps: {
|
|
235
257
|
...viewStaticConfig.defaultProps,
|
|
236
258
|
margin: 0,
|
|
237
259
|
padding: 0
|
|
238
260
|
}
|
|
239
|
-
})
|
|
240
|
-
const hr =
|
|
261
|
+
});
|
|
262
|
+
const hr = createComponent({
|
|
241
263
|
...viewStaticConfig,
|
|
242
264
|
Component: tag("hr"),
|
|
265
|
+
displayName: "hr",
|
|
243
266
|
defaultProps: {
|
|
244
267
|
...viewStaticConfig.defaultProps,
|
|
245
268
|
margin: 0,
|
|
@@ -250,10 +273,11 @@ const hr = setComponentDisplayName(createComponent({
|
|
|
250
273
|
borderWidth: 0,
|
|
251
274
|
boxSizing: "border-box"
|
|
252
275
|
}
|
|
253
|
-
})
|
|
254
|
-
const i =
|
|
276
|
+
});
|
|
277
|
+
const i = createComponent({
|
|
255
278
|
...textStaticConfig,
|
|
256
279
|
Component: tag("i"),
|
|
280
|
+
displayName: "i",
|
|
257
281
|
defaultProps: {
|
|
258
282
|
...textStaticConfig.defaultProps,
|
|
259
283
|
margin: 0,
|
|
@@ -261,10 +285,11 @@ const i = setComponentDisplayName(createComponent({
|
|
|
261
285
|
textDecorationLine: "none",
|
|
262
286
|
fontStyle: "italic"
|
|
263
287
|
}
|
|
264
|
-
})
|
|
265
|
-
const img =
|
|
288
|
+
});
|
|
289
|
+
const img = createComponent({
|
|
266
290
|
...viewStaticConfig,
|
|
267
291
|
Component: tag("img"),
|
|
292
|
+
displayName: "img",
|
|
268
293
|
defaultProps: {
|
|
269
294
|
...viewStaticConfig.defaultProps,
|
|
270
295
|
margin: 0,
|
|
@@ -274,10 +299,11 @@ const img = setComponentDisplayName(createComponent({
|
|
|
274
299
|
height: "auto",
|
|
275
300
|
maxWidth: "100%"
|
|
276
301
|
}
|
|
277
|
-
})
|
|
278
|
-
const input =
|
|
302
|
+
});
|
|
303
|
+
const input = createComponent({
|
|
279
304
|
...textStaticConfig,
|
|
280
305
|
Component: tag("input"),
|
|
306
|
+
displayName: "input",
|
|
281
307
|
isInput: true,
|
|
282
308
|
defaultProps: {
|
|
283
309
|
...textStaticConfig.defaultProps,
|
|
@@ -286,20 +312,22 @@ const input = setComponentDisplayName(createComponent({
|
|
|
286
312
|
borderStyle: "solid",
|
|
287
313
|
borderWidth: 1
|
|
288
314
|
}
|
|
289
|
-
})
|
|
290
|
-
const ins =
|
|
315
|
+
});
|
|
316
|
+
const ins = createComponent({
|
|
291
317
|
...textStaticConfig,
|
|
292
318
|
Component: tag("ins"),
|
|
319
|
+
displayName: "ins",
|
|
293
320
|
defaultProps: {
|
|
294
321
|
...textStaticConfig.defaultProps,
|
|
295
322
|
margin: 0,
|
|
296
323
|
padding: 0,
|
|
297
324
|
textDecorationLine: "underline"
|
|
298
325
|
}
|
|
299
|
-
})
|
|
300
|
-
const kbd =
|
|
326
|
+
});
|
|
327
|
+
const kbd = createComponent({
|
|
301
328
|
...textStaticConfig,
|
|
302
329
|
Component: tag("kbd"),
|
|
330
|
+
displayName: "kbd",
|
|
303
331
|
defaultProps: {
|
|
304
332
|
...textStaticConfig.defaultProps,
|
|
305
333
|
margin: 0,
|
|
@@ -308,38 +336,42 @@ const kbd = setComponentDisplayName(createComponent({
|
|
|
308
336
|
fontFamily: "monospace",
|
|
309
337
|
fontSize: "1em"
|
|
310
338
|
}
|
|
311
|
-
})
|
|
312
|
-
const label =
|
|
339
|
+
});
|
|
340
|
+
const label = createComponent({
|
|
313
341
|
...textStaticConfig,
|
|
314
342
|
Component: tag("label"),
|
|
343
|
+
displayName: "label",
|
|
315
344
|
defaultProps: {
|
|
316
345
|
...textStaticConfig.defaultProps,
|
|
317
346
|
margin: 0,
|
|
318
347
|
padding: 0,
|
|
319
348
|
textDecorationLine: "none"
|
|
320
349
|
}
|
|
321
|
-
})
|
|
322
|
-
const li =
|
|
350
|
+
});
|
|
351
|
+
const li = createComponent({
|
|
323
352
|
...viewStaticConfig,
|
|
324
353
|
Component: tag("li"),
|
|
354
|
+
displayName: "li",
|
|
325
355
|
defaultProps: {
|
|
326
356
|
...viewStaticConfig.defaultProps,
|
|
327
357
|
margin: 0,
|
|
328
358
|
padding: 0
|
|
329
359
|
}
|
|
330
|
-
})
|
|
331
|
-
const main =
|
|
360
|
+
});
|
|
361
|
+
const main = createComponent({
|
|
332
362
|
...viewStaticConfig,
|
|
333
363
|
Component: tag("main"),
|
|
364
|
+
displayName: "main",
|
|
334
365
|
defaultProps: {
|
|
335
366
|
...viewStaticConfig.defaultProps,
|
|
336
367
|
margin: 0,
|
|
337
368
|
padding: 0
|
|
338
369
|
}
|
|
339
|
-
})
|
|
340
|
-
const mark =
|
|
370
|
+
});
|
|
371
|
+
const mark = createComponent({
|
|
341
372
|
...textStaticConfig,
|
|
342
373
|
Component: tag("mark"),
|
|
374
|
+
displayName: "mark",
|
|
343
375
|
defaultProps: {
|
|
344
376
|
...textStaticConfig.defaultProps,
|
|
345
377
|
margin: 0,
|
|
@@ -348,55 +380,61 @@ const mark = setComponentDisplayName(createComponent({
|
|
|
348
380
|
backgroundColor: "yellow",
|
|
349
381
|
color: "black"
|
|
350
382
|
}
|
|
351
|
-
})
|
|
352
|
-
const nav =
|
|
383
|
+
});
|
|
384
|
+
const nav = createComponent({
|
|
353
385
|
...viewStaticConfig,
|
|
354
386
|
Component: tag("nav"),
|
|
387
|
+
displayName: "nav",
|
|
355
388
|
defaultProps: {
|
|
356
389
|
...viewStaticConfig.defaultProps,
|
|
357
390
|
margin: 0,
|
|
358
391
|
padding: 0
|
|
359
392
|
}
|
|
360
|
-
})
|
|
361
|
-
const ol =
|
|
393
|
+
});
|
|
394
|
+
const ol = createComponent({
|
|
362
395
|
...viewStaticConfig,
|
|
363
396
|
Component: tag("ol"),
|
|
397
|
+
displayName: "ol",
|
|
364
398
|
defaultProps: {
|
|
365
399
|
...viewStaticConfig.defaultProps,
|
|
366
400
|
margin: 0,
|
|
367
401
|
padding: 0
|
|
368
402
|
}
|
|
369
|
-
})
|
|
370
|
-
const optgroup =
|
|
403
|
+
});
|
|
404
|
+
const optgroup = createComponent({
|
|
371
405
|
...viewStaticConfig,
|
|
372
406
|
Component: tag("optgroup"),
|
|
407
|
+
displayName: "optgroup",
|
|
373
408
|
defaultProps: {
|
|
374
409
|
...viewStaticConfig.defaultProps,
|
|
375
410
|
margin: 0,
|
|
376
411
|
padding: 0
|
|
377
412
|
}
|
|
378
|
-
})
|
|
379
|
-
const option =
|
|
413
|
+
});
|
|
414
|
+
const option = createComponent({
|
|
380
415
|
...textStaticConfig,
|
|
381
416
|
Component: tag("option"),
|
|
417
|
+
displayName: "option",
|
|
382
418
|
defaultProps: {
|
|
383
419
|
...textStaticConfig.defaultProps,
|
|
384
420
|
margin: 0,
|
|
385
421
|
padding: 0
|
|
386
422
|
}
|
|
387
|
-
})
|
|
388
|
-
const p =
|
|
423
|
+
});
|
|
424
|
+
const p = createComponent({
|
|
389
425
|
...textStaticConfig,
|
|
390
426
|
Component: tag("p"),
|
|
427
|
+
displayName: "p",
|
|
391
428
|
defaultProps: {
|
|
392
429
|
...textStaticConfig.defaultProps,
|
|
393
430
|
margin: 0,
|
|
394
431
|
padding: 0
|
|
395
432
|
}
|
|
396
|
-
})
|
|
397
|
-
const pre =
|
|
433
|
+
});
|
|
434
|
+
const pre = createComponent({
|
|
398
435
|
...textStaticConfig,
|
|
399
436
|
Component: tag("pre"),
|
|
437
|
+
displayName: "pre",
|
|
400
438
|
defaultProps: {
|
|
401
439
|
...textStaticConfig.defaultProps,
|
|
402
440
|
margin: 0,
|
|
@@ -405,49 +443,54 @@ const pre = setComponentDisplayName(createComponent({
|
|
|
405
443
|
fontSize: "1em",
|
|
406
444
|
overflow: "auto"
|
|
407
445
|
}
|
|
408
|
-
})
|
|
409
|
-
const s =
|
|
446
|
+
});
|
|
447
|
+
const s = createComponent({
|
|
410
448
|
...textStaticConfig,
|
|
411
449
|
Component: tag("s"),
|
|
450
|
+
displayName: "s",
|
|
412
451
|
defaultProps: {
|
|
413
452
|
...textStaticConfig.defaultProps,
|
|
414
453
|
margin: 0,
|
|
415
454
|
padding: 0,
|
|
416
455
|
textDecorationLine: "line-through"
|
|
417
456
|
}
|
|
418
|
-
})
|
|
419
|
-
const section =
|
|
457
|
+
});
|
|
458
|
+
const section = createComponent({
|
|
420
459
|
...viewStaticConfig,
|
|
421
460
|
Component: tag("section"),
|
|
461
|
+
displayName: "section",
|
|
422
462
|
defaultProps: {
|
|
423
463
|
...viewStaticConfig.defaultProps,
|
|
424
464
|
margin: 0,
|
|
425
465
|
padding: 0
|
|
426
466
|
}
|
|
427
|
-
})
|
|
428
|
-
const select =
|
|
467
|
+
});
|
|
468
|
+
const select = createComponent({
|
|
429
469
|
...viewStaticConfig,
|
|
430
470
|
Component: tag("select"),
|
|
471
|
+
displayName: "select",
|
|
431
472
|
defaultProps: {
|
|
432
473
|
...viewStaticConfig.defaultProps,
|
|
433
474
|
margin: 0,
|
|
434
475
|
padding: 0,
|
|
435
476
|
borderStyle: "solid"
|
|
436
477
|
}
|
|
437
|
-
})
|
|
438
|
-
const span =
|
|
478
|
+
});
|
|
479
|
+
const span = createComponent({
|
|
439
480
|
...textStaticConfig,
|
|
440
481
|
Component: tag("span"),
|
|
482
|
+
displayName: "span",
|
|
441
483
|
defaultProps: {
|
|
442
484
|
...textStaticConfig.defaultProps,
|
|
443
485
|
margin: 0,
|
|
444
486
|
padding: 0,
|
|
445
487
|
textDecorationLine: "none"
|
|
446
488
|
}
|
|
447
|
-
})
|
|
448
|
-
const strong =
|
|
489
|
+
});
|
|
490
|
+
const strong = createComponent({
|
|
449
491
|
...textStaticConfig,
|
|
450
492
|
Component: tag("strong"),
|
|
493
|
+
displayName: "strong",
|
|
451
494
|
defaultProps: {
|
|
452
495
|
...textStaticConfig.defaultProps,
|
|
453
496
|
margin: 0,
|
|
@@ -455,30 +498,33 @@ const strong = setComponentDisplayName(createComponent({
|
|
|
455
498
|
textDecorationLine: "none",
|
|
456
499
|
fontWeight: "bold"
|
|
457
500
|
}
|
|
458
|
-
})
|
|
459
|
-
const sub =
|
|
501
|
+
});
|
|
502
|
+
const sub = createComponent({
|
|
460
503
|
...textStaticConfig,
|
|
461
504
|
Component: tag("sub"),
|
|
505
|
+
displayName: "sub",
|
|
462
506
|
defaultProps: {
|
|
463
507
|
...textStaticConfig.defaultProps,
|
|
464
508
|
margin: 0,
|
|
465
509
|
padding: 0,
|
|
466
510
|
textDecorationLine: "none"
|
|
467
511
|
}
|
|
468
|
-
})
|
|
469
|
-
const sup =
|
|
512
|
+
});
|
|
513
|
+
const sup = createComponent({
|
|
470
514
|
...textStaticConfig,
|
|
471
515
|
Component: tag("sup"),
|
|
516
|
+
displayName: "sup",
|
|
472
517
|
defaultProps: {
|
|
473
518
|
...textStaticConfig.defaultProps,
|
|
474
519
|
margin: 0,
|
|
475
520
|
padding: 0,
|
|
476
521
|
textDecorationLine: "none"
|
|
477
522
|
}
|
|
478
|
-
})
|
|
479
|
-
const textarea =
|
|
523
|
+
});
|
|
524
|
+
const textarea = createComponent({
|
|
480
525
|
...textStaticConfig,
|
|
481
526
|
Component: tag("textarea"),
|
|
527
|
+
displayName: "textarea",
|
|
482
528
|
isInput: true,
|
|
483
529
|
defaultProps: {
|
|
484
530
|
...textStaticConfig.defaultProps,
|
|
@@ -487,26 +533,28 @@ const textarea = setComponentDisplayName(createComponent({
|
|
|
487
533
|
borderStyle: "solid",
|
|
488
534
|
borderWidth: 1
|
|
489
535
|
}
|
|
490
|
-
})
|
|
491
|
-
const u =
|
|
536
|
+
});
|
|
537
|
+
const u = createComponent({
|
|
492
538
|
...textStaticConfig,
|
|
493
539
|
Component: tag("u"),
|
|
540
|
+
displayName: "u",
|
|
494
541
|
defaultProps: {
|
|
495
542
|
...textStaticConfig.defaultProps,
|
|
496
543
|
margin: 0,
|
|
497
544
|
padding: 0,
|
|
498
545
|
textDecorationLine: "underline"
|
|
499
546
|
}
|
|
500
|
-
})
|
|
501
|
-
const ul =
|
|
547
|
+
});
|
|
548
|
+
const ul = createComponent({
|
|
502
549
|
...viewStaticConfig,
|
|
503
550
|
Component: tag("ul"),
|
|
551
|
+
displayName: "ul",
|
|
504
552
|
defaultProps: {
|
|
505
553
|
...viewStaticConfig.defaultProps,
|
|
506
554
|
margin: 0,
|
|
507
555
|
padding: 0
|
|
508
556
|
}
|
|
509
|
-
})
|
|
557
|
+
});
|
|
510
558
|
const html = {
|
|
511
559
|
a,
|
|
512
560
|
article,
|