@solidrt/components 0.0.53 → 0.0.55
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/package.json +3 -3
- package/src/theme.ts +2 -1
- package/src/types.ts +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidrt/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"funding": "https://github.com/sponsors/wellawaretech",
|
|
6
6
|
"author": "Antoine van Wel",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"qrcode-generator": "^2.0.4"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@solidjs/signals": "2.0.0-rc.
|
|
24
|
-
"@solidrt/core": "0.0.
|
|
23
|
+
"@solidjs/signals": "2.0.0-rc.4",
|
|
24
|
+
"@solidrt/core": "0.0.55"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/src/theme.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createStore } from "@solidjs/signals"
|
|
2
|
+
import type { FontWeight } from "@solidrt/core"
|
|
2
3
|
import type { StyleProps } from "./types"
|
|
3
4
|
|
|
4
5
|
export type TextStyle = {
|
|
5
6
|
size: number
|
|
6
7
|
lineHeight: number
|
|
7
|
-
weight:
|
|
8
|
+
weight: FontWeight
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
// The type scale's role names. <Text variant> and theme.text are keyed by these.
|
package/src/types.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
Color,
|
|
3
|
+
FontFamily,
|
|
4
|
+
FontStyle,
|
|
5
|
+
FontWeight,
|
|
3
6
|
Gradient,
|
|
4
7
|
LayoutProps,
|
|
8
|
+
TextAlign,
|
|
5
9
|
Transition,
|
|
6
10
|
TransitionEndEvent,
|
|
7
11
|
TransitionPropName,
|
|
@@ -166,11 +170,11 @@ export interface Option {
|
|
|
166
170
|
// than style. These end up on the inner <text> node, while the box layout
|
|
167
171
|
// fields go on the wrapping <view>.
|
|
168
172
|
export interface TextLayoutProps extends LayoutProps {
|
|
169
|
-
fontFamily?:
|
|
173
|
+
fontFamily?: FontFamily
|
|
170
174
|
fontSize?: number
|
|
171
175
|
lineHeight?: number
|
|
172
|
-
fontStyle?:
|
|
173
|
-
fontWeight?:
|
|
174
|
-
textAlign?:
|
|
176
|
+
fontStyle?: FontStyle
|
|
177
|
+
fontWeight?: FontWeight
|
|
178
|
+
textAlign?: TextAlign
|
|
175
179
|
maxLines?: number
|
|
176
180
|
}
|