fluent-styles 1.62.11 → 1.62.13
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/lib/commonjs/page/index.js +1 -1
- package/lib/commonjs/page/index.js.map +1 -1
- package/lib/commonjs/utiles/viewStyleVariants.js +139 -80
- package/lib/commonjs/utiles/viewStyleVariants.js.map +1 -1
- package/lib/module/page/index.js +1 -1
- package/lib/module/page/index.js.map +1 -1
- package/lib/module/utiles/viewStyleVariants.js +139 -80
- package/lib/module/utiles/viewStyleVariants.js.map +1 -1
- package/lib/typescript/divider/index.d.ts +0 -1
- package/lib/typescript/divider/index.d.ts.map +1 -1
- package/lib/typescript/portal/PortalContext.d.ts +0 -1
- package/lib/typescript/portal/PortalContext.d.ts.map +1 -1
- package/lib/typescript/pressable/index.d.ts +0 -1
- package/lib/typescript/pressable/index.d.ts.map +1 -1
- package/lib/typescript/safeAreaProvider/index.d.ts +0 -1
- package/lib/typescript/safeAreaProvider/index.d.ts.map +1 -1
- package/lib/typescript/safeAreaView/index.d.ts +0 -1
- package/lib/typescript/safeAreaView/index.d.ts.map +1 -1
- package/lib/typescript/scrollView/index.d.ts +0 -1
- package/lib/typescript/scrollView/index.d.ts.map +1 -1
- package/lib/typescript/shape/index.d.ts +0 -1
- package/lib/typescript/shape/index.d.ts.map +1 -1
- package/lib/typescript/spacer/index.d.ts +0 -1
- package/lib/typescript/spacer/index.d.ts.map +1 -1
- package/lib/typescript/stack/index.d.ts +0 -1
- package/lib/typescript/stack/index.d.ts.map +1 -1
- package/lib/typescript/text/index.d.ts +0 -1
- package/lib/typescript/text/index.d.ts.map +1 -1
- package/lib/typescript/utiles/viewStyleVariants.d.ts +61 -55
- package/lib/typescript/utiles/viewStyleVariants.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/page/index.tsx +1 -1
- package/src/utiles/viewStyleVariants.ts +225 -186
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scrollView/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scrollView/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAErE,KAAK,qBAAqB,GAAG,eAAe,GAAG,cAAc,CAAC;AAE9D,QAAA,MAAM,gBAAgB;;;;;CAIpB,CAAC;AAEH,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shape/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shape/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1D,KAAK,aAAa,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,SAAS,CAAC,CAAC;CACzD,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,QAAA,MAAM,WAAW;;;;;CAyBf,CAAC;AAGH,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ViewProps } from 'react-native';
|
|
3
2
|
import { ViewStyleProps } from '../utiles/viewStyleProps';
|
|
4
3
|
type SpacerProps = ViewProps & (Pick<ViewStyleProps, 'margin' | 'marginTop' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginHorizontal' | 'marginVertical' | 'backgroundColor' | 'borderRadius' | 'borderWidth' | 'borderColor' | 'flex' | 'width' | 'height'>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/spacer/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/spacer/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAErE,KAAK,WAAW,GAAI,SAAS,GAAG,CAAC,IAAI,CAAC,cAAc,EAChD,QAAQ,GACR,WAAW,GACX,cAAc,GACd,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,GACN,OAAO,GACP,QAAQ,CAAC,CAAC,CAAC;AAEf,QAAA,MAAM,YAAY;;;;;CAIhB,CAAC;AAEH,OAAO,EAAG,YAAY,EAAE,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stack/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stack/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1D;;;;;GAKG;AACH,KAAK,aAAa,GAAG;IACjB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;CAC7C,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD;;;;GAIG;AACH,QAAA,MAAM,KAAK;;;;;CAoBT,CAAC;AAEH,QAAA,MAAM,MAAM;;;;;CASV,CAAC;AAEH,QAAA,MAAM,MAAM;;;;;CASV,CAAC;AAEH,OAAO,EAAG,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/text/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/text/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,SAAS,EACT,SAAS,EACZ,MAAM,cAAc,CAAC;AAItB,KAAK,YAAY,GAAG;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAE;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D,QAAA,MAAM,UAAU;;;;;CAgDd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,53 +1,58 @@
|
|
|
1
1
|
import { ViewStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* A raw variant value as it arrives from a prop. Numeric props (e.g. `width={100}`)
|
|
4
|
+
* come through as `number`, string props (e.g. `width="100%"`) come through as `string`.
|
|
5
|
+
*/
|
|
6
|
+
type RawValue = string | number | null | undefined;
|
|
2
7
|
export declare const viewStyleVariants: {
|
|
3
|
-
width: (selected:
|
|
4
|
-
height: (selected:
|
|
5
|
-
minWidth: (selected:
|
|
6
|
-
maxWidth: (selected:
|
|
7
|
-
minHeight: (selected:
|
|
8
|
-
maxHeight: (selected:
|
|
9
|
-
top: (selected:
|
|
10
|
-
bottom: (selected:
|
|
11
|
-
left: (selected:
|
|
12
|
-
right: (selected:
|
|
13
|
-
margin: (selected:
|
|
14
|
-
marginTop: (selected:
|
|
15
|
-
marginBottom: (selected:
|
|
16
|
-
marginLeft: (selected:
|
|
17
|
-
marginRight: (selected:
|
|
18
|
-
marginHorizontal: (selected:
|
|
19
|
-
marginVertical: (selected:
|
|
20
|
-
padding: (selected:
|
|
21
|
-
paddingTop: (selected:
|
|
22
|
-
paddingBottom: (selected:
|
|
23
|
-
paddingLeft: (selected:
|
|
24
|
-
paddingRight: (selected:
|
|
25
|
-
paddingHorizontal: (selected:
|
|
26
|
-
paddingVertical: (selected:
|
|
27
|
-
borderWidth: (selected:
|
|
28
|
-
borderTopWidth: (selected:
|
|
29
|
-
borderBottomWidth: (selected:
|
|
30
|
-
borderLeftWidth: (selected:
|
|
31
|
-
borderRightWidth: (selected:
|
|
32
|
-
borderRadius: (selected:
|
|
33
|
-
borderTopLeftRadius: (selected:
|
|
34
|
-
borderTopRightRadius: (selected:
|
|
35
|
-
borderBottomLeftRadius: (selected:
|
|
36
|
-
borderBottomRightRadius: (selected:
|
|
37
|
-
borderColor: (selected:
|
|
38
|
-
borderTopColor: (selected:
|
|
39
|
-
borderBottomColor: (selected:
|
|
40
|
-
borderLeftColor: (selected:
|
|
41
|
-
borderRightColor: (selected:
|
|
42
|
-
backgroundColor: (selected:
|
|
43
|
-
opacity: (selected:
|
|
44
|
-
rotation: (selected:
|
|
45
|
-
scale: (selected:
|
|
46
|
-
shadowOpacity: (selected:
|
|
47
|
-
shadowRadius: (selected:
|
|
48
|
-
shadowColor: (selected:
|
|
49
|
-
elevation: (selected:
|
|
50
|
-
zIndex: (selected:
|
|
8
|
+
width: (selected: RawValue) => ViewStyle;
|
|
9
|
+
height: (selected: RawValue) => ViewStyle;
|
|
10
|
+
minWidth: (selected: RawValue) => ViewStyle;
|
|
11
|
+
maxWidth: (selected: RawValue) => ViewStyle;
|
|
12
|
+
minHeight: (selected: RawValue) => ViewStyle;
|
|
13
|
+
maxHeight: (selected: RawValue) => ViewStyle;
|
|
14
|
+
top: (selected: RawValue) => ViewStyle;
|
|
15
|
+
bottom: (selected: RawValue) => ViewStyle;
|
|
16
|
+
left: (selected: RawValue) => ViewStyle;
|
|
17
|
+
right: (selected: RawValue) => ViewStyle;
|
|
18
|
+
margin: (selected: RawValue) => ViewStyle;
|
|
19
|
+
marginTop: (selected: RawValue) => ViewStyle;
|
|
20
|
+
marginBottom: (selected: RawValue) => ViewStyle;
|
|
21
|
+
marginLeft: (selected: RawValue) => ViewStyle;
|
|
22
|
+
marginRight: (selected: RawValue) => ViewStyle;
|
|
23
|
+
marginHorizontal: (selected: RawValue) => ViewStyle;
|
|
24
|
+
marginVertical: (selected: RawValue) => ViewStyle;
|
|
25
|
+
padding: (selected: RawValue) => ViewStyle;
|
|
26
|
+
paddingTop: (selected: RawValue) => ViewStyle;
|
|
27
|
+
paddingBottom: (selected: RawValue) => ViewStyle;
|
|
28
|
+
paddingLeft: (selected: RawValue) => ViewStyle;
|
|
29
|
+
paddingRight: (selected: RawValue) => ViewStyle;
|
|
30
|
+
paddingHorizontal: (selected: RawValue) => ViewStyle;
|
|
31
|
+
paddingVertical: (selected: RawValue) => ViewStyle;
|
|
32
|
+
borderWidth: (selected: RawValue) => ViewStyle;
|
|
33
|
+
borderTopWidth: (selected: RawValue) => ViewStyle;
|
|
34
|
+
borderBottomWidth: (selected: RawValue) => ViewStyle;
|
|
35
|
+
borderLeftWidth: (selected: RawValue) => ViewStyle;
|
|
36
|
+
borderRightWidth: (selected: RawValue) => ViewStyle;
|
|
37
|
+
borderRadius: (selected: RawValue) => ViewStyle;
|
|
38
|
+
borderTopLeftRadius: (selected: RawValue) => ViewStyle;
|
|
39
|
+
borderTopRightRadius: (selected: RawValue) => ViewStyle;
|
|
40
|
+
borderBottomLeftRadius: (selected: RawValue) => ViewStyle;
|
|
41
|
+
borderBottomRightRadius: (selected: RawValue) => ViewStyle;
|
|
42
|
+
borderColor: (selected: RawValue) => ViewStyle;
|
|
43
|
+
borderTopColor: (selected: RawValue) => ViewStyle;
|
|
44
|
+
borderBottomColor: (selected: RawValue) => ViewStyle;
|
|
45
|
+
borderLeftColor: (selected: RawValue) => ViewStyle;
|
|
46
|
+
borderRightColor: (selected: RawValue) => ViewStyle;
|
|
47
|
+
backgroundColor: (selected: RawValue) => ViewStyle;
|
|
48
|
+
opacity: (selected: RawValue) => ViewStyle;
|
|
49
|
+
rotation: (selected: RawValue) => ViewStyle;
|
|
50
|
+
scale: (selected: RawValue) => ViewStyle;
|
|
51
|
+
shadowOpacity: (selected: RawValue) => ViewStyle;
|
|
52
|
+
shadowRadius: (selected: RawValue) => ViewStyle;
|
|
53
|
+
shadowColor: (selected: RawValue) => ViewStyle;
|
|
54
|
+
elevation: (selected: RawValue) => ViewStyle;
|
|
55
|
+
zIndex: (selected: RawValue) => ViewStyle;
|
|
51
56
|
};
|
|
52
57
|
export declare const viewStyleStringVariants: {
|
|
53
58
|
position: {
|
|
@@ -110,12 +115,13 @@ export declare const viewStyleStringVariants: {
|
|
|
110
115
|
dotted: ViewStyle;
|
|
111
116
|
dashed: ViewStyle;
|
|
112
117
|
};
|
|
113
|
-
flex: (selected:
|
|
114
|
-
flexBasis: (selected:
|
|
115
|
-
flexGrow: (selected:
|
|
116
|
-
flexShrink: (selected:
|
|
117
|
-
gap: (selected:
|
|
118
|
-
columnGap: (selected:
|
|
119
|
-
rowGap: (selected:
|
|
118
|
+
flex: (selected: RawValue) => ViewStyle;
|
|
119
|
+
flexBasis: (selected: RawValue) => ViewStyle;
|
|
120
|
+
flexGrow: (selected: RawValue) => ViewStyle;
|
|
121
|
+
flexShrink: (selected: RawValue) => ViewStyle;
|
|
122
|
+
gap: (selected: RawValue) => ViewStyle;
|
|
123
|
+
columnGap: (selected: RawValue) => ViewStyle;
|
|
124
|
+
rowGap: (selected: RawValue) => ViewStyle;
|
|
120
125
|
};
|
|
126
|
+
export {};
|
|
121
127
|
//# sourceMappingURL=viewStyleVariants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewStyleVariants.d.ts","sourceRoot":"","sources":["../../../src/utiles/viewStyleVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAO,MAAM,iBAAiB;sBAEV,
|
|
1
|
+
{"version":3,"file":"viewStyleVariants.d.ts","sourceRoot":"","sources":["../../../src/utiles/viewStyleVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;GAGG;AACH,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAmCnD,eAAO,MAAM,iBAAiB;sBAEV,QAAQ;uBAMP,QAAQ;yBAMN,QAAQ;yBAMR,QAAQ;0BAMP,QAAQ;0BAMR,QAAQ;oBAOd,QAAQ;uBAML,QAAQ;qBAMV,QAAQ;sBAMP,QAAQ;uBAOP,QAAQ;0BAML,QAAQ;6BAML,QAAQ;2BAMV,QAAQ;4BAMP,QAAQ;iCAMH,QAAQ;+BAMV,QAAQ;wBAOf,QAAQ;2BAML,QAAQ;8BAML,QAAQ;4BAMV,QAAQ;6BAMP,QAAQ;kCAMH,QAAQ;gCAMV,QAAQ;4BAOZ,QAAQ;+BAML,QAAQ;kCAML,QAAQ;gCAMV,QAAQ;iCAMP,QAAQ;6BAOZ,QAAQ;oCAMD,QAAQ;qCAMP,QAAQ;uCAMN,QAAQ;wCAMP,QAAQ;4BAOpB,QAAQ;+BAKL,QAAQ;kCAKL,QAAQ;gCAKV,QAAQ;iCAKP,QAAQ;gCAMT,QAAQ;wBAKhB,QAAQ;yBAOP,QAAQ;sBAMX,QAAQ;8BAOA,QAAQ;6BAMT,QAAQ;4BAMT,QAAQ;0BAMV,QAAQ;uBAOX,QAAQ;CAK5B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAuEjB,QAAQ;0BAMH,QAAQ;yBAMT,QAAQ;2BAMN,QAAQ;oBAOf,QAAQ;0BAMF,QAAQ;uBAMX,QAAQ;CAK5B,CAAC"}
|
package/package.json
CHANGED
package/src/page/index.tsx
CHANGED
|
@@ -19,7 +19,7 @@ interface StyledPageType {
|
|
|
19
19
|
displayName?: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const Page = ({ children, statusBarProps, showStatusBar = true, statusBarStyle, statusBarBackgroundColor, hideStatusBarOnAndroid, hideStatusBarOnIOS, translucentStatusBar, ...props }: React.PropsWithChildren<StyledPageProps>) => {
|
|
22
|
+
const Page = ({ children, statusBarProps, showStatusBar = true, statusBarStyle = 'dark-content', statusBarBackgroundColor, hideStatusBarOnAndroid, hideStatusBarOnIOS, translucentStatusBar, ...props }: React.PropsWithChildren<StyledPageProps>) => {
|
|
23
23
|
return (
|
|
24
24
|
<StyledSafeAreaView {...props}>
|
|
25
25
|
{showStatusBar && <StatusBar hidden={hideStatusBarOnAndroid || hideStatusBarOnIOS} barStyle={statusBarStyle} backgroundColor={statusBarBackgroundColor} translucent={translucentStatusBar} {...statusBarProps} />}
|