@react-native-styled-system/core 0.0.5

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.
Files changed (152) hide show
  1. package/bin/theme-gen.js +149 -0
  2. package/lib/commonjs/@types/SxProps.js +12 -0
  3. package/lib/commonjs/@types/SxProps.js.map +1 -0
  4. package/lib/commonjs/@types/ThemedDict.js +14 -0
  5. package/lib/commonjs/@types/ThemedDict.js.map +1 -0
  6. package/lib/commonjs/@types/ThemedTypings.js +6 -0
  7. package/lib/commonjs/@types/ThemedTypings.js.map +1 -0
  8. package/lib/commonjs/@types/Token.js +6 -0
  9. package/lib/commonjs/@types/Token.js.map +1 -0
  10. package/lib/commonjs/hook/useSx.js +82 -0
  11. package/lib/commonjs/hook/useSx.js.map +1 -0
  12. package/lib/commonjs/hook/useSxStyle.js +29 -0
  13. package/lib/commonjs/hook/useSxStyle.js.map +1 -0
  14. package/lib/commonjs/hook/useSxTokens.js +33 -0
  15. package/lib/commonjs/hook/useSxTokens.js.map +1 -0
  16. package/lib/commonjs/index.js +72 -0
  17. package/lib/commonjs/index.js.map +1 -0
  18. package/lib/commonjs/internal/TokenParser/ColorsParser.js +21 -0
  19. package/lib/commonjs/internal/TokenParser/ColorsParser.js.map +1 -0
  20. package/lib/commonjs/internal/TokenParser/RadiiParser.js +41 -0
  21. package/lib/commonjs/internal/TokenParser/RadiiParser.js.map +1 -0
  22. package/lib/commonjs/internal/TokenParser/SizesParser.js +41 -0
  23. package/lib/commonjs/internal/TokenParser/SizesParser.js.map +1 -0
  24. package/lib/commonjs/internal/TokenParser/SpaceParser.js +90 -0
  25. package/lib/commonjs/internal/TokenParser/SpaceParser.js.map +1 -0
  26. package/lib/commonjs/internal/TokenParser/TokenParser.js +23 -0
  27. package/lib/commonjs/internal/TokenParser/TokenParser.js.map +1 -0
  28. package/lib/commonjs/internal/TokenParser/TypographyParser.js +23 -0
  29. package/lib/commonjs/internal/TokenParser/TypographyParser.js.map +1 -0
  30. package/lib/commonjs/internal/useStableCallback.js +34 -0
  31. package/lib/commonjs/internal/useStableCallback.js.map +1 -0
  32. package/lib/commonjs/internal/util/fillNullishThemeKey.js +18 -0
  33. package/lib/commonjs/internal/util/fillNullishThemeKey.js.map +1 -0
  34. package/lib/commonjs/internal/util/fillStyleIfNotNullish.js +21 -0
  35. package/lib/commonjs/internal/util/fillStyleIfNotNullish.js.map +1 -0
  36. package/lib/commonjs/internal/util/parsePxSuffixNumber.js +16 -0
  37. package/lib/commonjs/internal/util/parsePxSuffixNumber.js.map +1 -0
  38. package/lib/commonjs/internal/util/printWarning.js +18 -0
  39. package/lib/commonjs/internal/util/printWarning.js.map +1 -0
  40. package/lib/commonjs/provider/StyledSystemProvider.js +25 -0
  41. package/lib/commonjs/provider/StyledSystemProvider.js.map +1 -0
  42. package/lib/commonjs/util/propsToThemedStyle.js +138 -0
  43. package/lib/commonjs/util/propsToThemedStyle.js.map +1 -0
  44. package/lib/module/@types/SxProps.js +6 -0
  45. package/lib/module/@types/SxProps.js.map +1 -0
  46. package/lib/module/@types/ThemedDict.js +8 -0
  47. package/lib/module/@types/ThemedDict.js.map +1 -0
  48. package/lib/module/@types/ThemedTypings.js +2 -0
  49. package/lib/module/@types/ThemedTypings.js.map +1 -0
  50. package/lib/module/@types/Token.js +2 -0
  51. package/lib/module/@types/Token.js.map +1 -0
  52. package/lib/module/hook/useSx.js +75 -0
  53. package/lib/module/hook/useSx.js.map +1 -0
  54. package/lib/module/hook/useSxStyle.js +22 -0
  55. package/lib/module/hook/useSxStyle.js.map +1 -0
  56. package/lib/module/hook/useSxTokens.js +26 -0
  57. package/lib/module/hook/useSxTokens.js.map +1 -0
  58. package/lib/module/index.js +7 -0
  59. package/lib/module/index.js.map +1 -0
  60. package/lib/module/internal/TokenParser/ColorsParser.js +14 -0
  61. package/lib/module/internal/TokenParser/ColorsParser.js.map +1 -0
  62. package/lib/module/internal/TokenParser/RadiiParser.js +34 -0
  63. package/lib/module/internal/TokenParser/RadiiParser.js.map +1 -0
  64. package/lib/module/internal/TokenParser/SizesParser.js +34 -0
  65. package/lib/module/internal/TokenParser/SizesParser.js.map +1 -0
  66. package/lib/module/internal/TokenParser/SpaceParser.js +82 -0
  67. package/lib/module/internal/TokenParser/SpaceParser.js.map +1 -0
  68. package/lib/module/internal/TokenParser/TokenParser.js +16 -0
  69. package/lib/module/internal/TokenParser/TokenParser.js.map +1 -0
  70. package/lib/module/internal/TokenParser/TypographyParser.js +15 -0
  71. package/lib/module/internal/TokenParser/TypographyParser.js.map +1 -0
  72. package/lib/module/internal/useStableCallback.js +27 -0
  73. package/lib/module/internal/useStableCallback.js.map +1 -0
  74. package/lib/module/internal/util/fillNullishThemeKey.js +11 -0
  75. package/lib/module/internal/util/fillNullishThemeKey.js.map +1 -0
  76. package/lib/module/internal/util/fillStyleIfNotNullish.js +14 -0
  77. package/lib/module/internal/util/fillStyleIfNotNullish.js.map +1 -0
  78. package/lib/module/internal/util/parsePxSuffixNumber.js +10 -0
  79. package/lib/module/internal/util/parsePxSuffixNumber.js.map +1 -0
  80. package/lib/module/internal/util/printWarning.js +11 -0
  81. package/lib/module/internal/util/printWarning.js.map +1 -0
  82. package/lib/module/provider/StyledSystemProvider.js +17 -0
  83. package/lib/module/provider/StyledSystemProvider.js.map +1 -0
  84. package/lib/module/util/propsToThemedStyle.js +131 -0
  85. package/lib/module/util/propsToThemedStyle.js.map +1 -0
  86. package/lib/typescript/@types/SxProps.d.ts +140 -0
  87. package/lib/typescript/@types/SxProps.d.ts.map +1 -0
  88. package/lib/typescript/@types/ThemedDict.d.ts +16 -0
  89. package/lib/typescript/@types/ThemedDict.d.ts.map +1 -0
  90. package/lib/typescript/@types/ThemedTypings.d.ts +9 -0
  91. package/lib/typescript/@types/ThemedTypings.d.ts.map +1 -0
  92. package/lib/typescript/@types/Token.d.ts +17 -0
  93. package/lib/typescript/@types/Token.d.ts.map +1 -0
  94. package/lib/typescript/hook/useSx.d.ts +307 -0
  95. package/lib/typescript/hook/useSx.d.ts.map +1 -0
  96. package/lib/typescript/hook/useSxStyle.d.ts +8 -0
  97. package/lib/typescript/hook/useSxStyle.d.ts.map +1 -0
  98. package/lib/typescript/hook/useSxTokens.d.ts +7 -0
  99. package/lib/typescript/hook/useSxTokens.d.ts.map +1 -0
  100. package/lib/typescript/index.d.ts +7 -0
  101. package/lib/typescript/index.d.ts.map +1 -0
  102. package/lib/typescript/internal/TokenParser/ColorsParser.d.ts +4 -0
  103. package/lib/typescript/internal/TokenParser/ColorsParser.d.ts.map +1 -0
  104. package/lib/typescript/internal/TokenParser/RadiiParser.d.ts +4 -0
  105. package/lib/typescript/internal/TokenParser/RadiiParser.d.ts.map +1 -0
  106. package/lib/typescript/internal/TokenParser/SizesParser.d.ts +4 -0
  107. package/lib/typescript/internal/TokenParser/SizesParser.d.ts.map +1 -0
  108. package/lib/typescript/internal/TokenParser/SpaceParser.d.ts +5 -0
  109. package/lib/typescript/internal/TokenParser/SpaceParser.d.ts.map +1 -0
  110. package/lib/typescript/internal/TokenParser/TokenParser.d.ts +10 -0
  111. package/lib/typescript/internal/TokenParser/TokenParser.d.ts.map +1 -0
  112. package/lib/typescript/internal/TokenParser/TypographyParser.d.ts +4 -0
  113. package/lib/typescript/internal/TokenParser/TypographyParser.d.ts.map +1 -0
  114. package/lib/typescript/internal/useStableCallback.d.ts +2 -0
  115. package/lib/typescript/internal/useStableCallback.d.ts.map +1 -0
  116. package/lib/typescript/internal/util/fillNullishThemeKey.d.ts +3 -0
  117. package/lib/typescript/internal/util/fillNullishThemeKey.d.ts.map +1 -0
  118. package/lib/typescript/internal/util/fillStyleIfNotNullish.d.ts +4 -0
  119. package/lib/typescript/internal/util/fillStyleIfNotNullish.d.ts.map +1 -0
  120. package/lib/typescript/internal/util/parsePxSuffixNumber.d.ts +2 -0
  121. package/lib/typescript/internal/util/parsePxSuffixNumber.d.ts.map +1 -0
  122. package/lib/typescript/internal/util/printWarning.d.ts +2 -0
  123. package/lib/typescript/internal/util/printWarning.d.ts.map +1 -0
  124. package/lib/typescript/provider/StyledSystemProvider.d.ts +13 -0
  125. package/lib/typescript/provider/StyledSystemProvider.d.ts.map +1 -0
  126. package/lib/typescript/util/propsToThemedStyle.d.ts +10 -0
  127. package/lib/typescript/util/propsToThemedStyle.d.ts.map +1 -0
  128. package/package.json +78 -0
  129. package/src/@types/SxProps.ts +255 -0
  130. package/src/@types/ThemedDict.ts +16 -0
  131. package/src/@types/ThemedTypings.ts +9 -0
  132. package/src/@types/Token.ts +21 -0
  133. package/src/hook/useSx.test.ts +348 -0
  134. package/src/hook/useSx.ts +94 -0
  135. package/src/hook/useSxStyle.test.ts +57 -0
  136. package/src/hook/useSxStyle.ts +32 -0
  137. package/src/hook/useSxTokens.test.ts +59 -0
  138. package/src/hook/useSxTokens.ts +42 -0
  139. package/src/index.ts +6 -0
  140. package/src/internal/TokenParser/ColorsParser.ts +18 -0
  141. package/src/internal/TokenParser/RadiiParser.ts +44 -0
  142. package/src/internal/TokenParser/SizesParser.ts +44 -0
  143. package/src/internal/TokenParser/SpaceParser.ts +95 -0
  144. package/src/internal/TokenParser/TokenParser.ts +18 -0
  145. package/src/internal/TokenParser/TypographyParser.ts +24 -0
  146. package/src/internal/useStableCallback.ts +29 -0
  147. package/src/internal/util/fillNullishThemeKey.ts +12 -0
  148. package/src/internal/util/fillStyleIfNotNullish.ts +26 -0
  149. package/src/internal/util/parsePxSuffixNumber.ts +10 -0
  150. package/src/internal/util/printWarning.ts +11 -0
  151. package/src/provider/StyledSystemProvider.tsx +23 -0
  152. package/src/util/propsToThemedStyle.ts +168 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SxProps.d.ts","sourceRoot":"","sources":["../../../src/@types/SxProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,O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CAAC,YAAY,CAAC,CAAC;IACpC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAChC,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC1C,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACpC,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IAClC,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,kBAAkB,EAAE,SAAS,CAAC,oBAAoB,CAAC,CAAC;IACpD,mBAAmB,EAAE,SAAS,CAAC,qBAAqB,CAAC,CAAC;IACtD,gBAAgB,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAChD,gBAAgB,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAChD,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC1C,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACpC,kBAAkB,EAAE,SAAS,CAAC,oBAAoB,CAAC,CAAC;IACpD,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAChC,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACxB,CAAC;AAEF,KAAK,WAAW,GAAG,OAAO,CACxB,oBAAoB,GAClB,qBAAqB,GACrB,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,CACxB,CAAC;AAEF,KAAK,eAAe,GAAG,WAAW,GAAG,OAAO,CAAC,yBAAyB,GAAG,oBAAoB,CAAC,CAAC;AAE/F,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG;IAAE,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AACzD,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAAE,EAAE,CAAC,EAAE,eAAe,CAAA;CAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ColorsValue, RadiiValue, SizesValue, SpaceValue, TypographyValue } from './Token';
2
+ export interface ThemedDict {
3
+ space: Record<string | number, SpaceValue>;
4
+ sizes: Record<string | number, SizesValue>;
5
+ colors: Record<string | number, ColorsValue>;
6
+ radii: Record<string | number, RadiiValue>;
7
+ typography: Record<string | number, TypographyValue>;
8
+ }
9
+ export declare const emptyThemedDict: {
10
+ space: {};
11
+ colors: {};
12
+ sizes: {};
13
+ radii: {};
14
+ typography: {};
15
+ };
16
+ //# sourceMappingURL=ThemedDict.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemedDict.d.ts","sourceRoot":"","sources":["../../../src/@types/ThemedDict.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEhG,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,UAAU,CAAC,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,UAAU,CAAC,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,WAAW,CAAC,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,UAAU,CAAC,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,eAAe,CAAC,CAAC;CACtD;AACD,eAAO,MAAM,eAAe;;;;;;CAMN,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ColorsValue, RadiiValue, SizesValue, SpaceValue } from './Token';
2
+ export interface ThemedTypings {
3
+ space: SpaceValue | `${number}` | `${number}px` | `${any}px`;
4
+ sizes: SizesValue | `${number}` | `${number}px` | `${any}px`;
5
+ colors: ColorsValue;
6
+ radii: RadiiValue | `${number}` | `${number}px` | `${any}px`;
7
+ typography: string;
8
+ }
9
+ //# sourceMappingURL=ThemedTypings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemedTypings.d.ts","sourceRoot":"","sources":["../../../src/@types/ThemedTypings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,UAAU,GAAG,GAAG,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;IAC7D,KAAK,EAAE,UAAU,GAAG,GAAG,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;IAC7D,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,UAAU,GAAG,GAAG,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;IAC7D,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,17 @@
1
+ import type { TextStyle } from 'react-native';
2
+ import type { ThemedTypings } from './ThemedTypings';
3
+ export type Token<ThemeKey extends keyof ThemedTypings> = ThemeKey extends keyof ThemedTypings ? ThemedTypings[ThemeKey] : never;
4
+ export type SpaceValue = number | 'auto' | `${number}%` | null;
5
+ export type SizesValue = number | 'auto' | `${number}%` | null;
6
+ export type ColorsValue = string;
7
+ export type RadiiValue = number;
8
+ export type TypographyValue = {
9
+ fontFamily?: TextStyle['fontFamily'];
10
+ fontSize?: TextStyle['fontSize'];
11
+ fontWeight?: TextStyle['fontWeight'];
12
+ lineHeight?: TextStyle['lineHeight'];
13
+ letterSpacing?: TextStyle['letterSpacing'];
14
+ textAlign?: TextStyle['textAlign'];
15
+ fontStyle?: TextStyle['fontStyle'];
16
+ };
17
+ //# sourceMappingURL=Token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../src/@types/Token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,KAAK,CAAC,QAAQ,SAAS,MAAM,aAAa,IAAI,QAAQ,SAAS,MAAM,aAAa,GAC1F,aAAa,CAAC,QAAQ,CAAC,GACvB,KAAK,CAAC;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,IAAI,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,IAAI,CAAC;AAC/D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AACjC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACrC,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC"}
@@ -0,0 +1,307 @@
1
+ import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
2
+ import type { TextSxProps } from '../@types/SxProps';
3
+ import type { ThemedDict } from '../@types/ThemedDict';
4
+ import type { ThemedStyleType } from '../util/propsToThemedStyle';
5
+ type Props = {
6
+ style?: StyleProp<any>;
7
+ } & TextSxProps;
8
+ export type StyleTransform = (style: TextStyle) => TextSxProps;
9
+ export type StyleFallback = Omit<TextSxProps, 'sx'>;
10
+ export type UseSxOptions = {
11
+ theme?: ThemedDict;
12
+ styleType?: ThemedStyleType;
13
+ transform?: StyleTransform;
14
+ fallback?: StyleFallback;
15
+ };
16
+ export declare const useSx: <S extends ViewStyle = ViewStyle, P extends Props = Props>(props?: P | null, { theme: optionTheme, styleType, transform, fallback, }?: UseSxOptions) => {
17
+ getStyle: () => StyleProp<S> | undefined;
18
+ filteredProps: Omit<P, "style" | keyof {
19
+ flex: number | undefined;
20
+ alignItems: import("react-native").FlexAlignType | undefined;
21
+ alignContent: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
22
+ justifyContent: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
23
+ flexWrap: "wrap" | "nowrap" | "wrap-reverse" | undefined;
24
+ flexDirection: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
25
+ flexGrow: number | undefined;
26
+ flexShrink: number | undefined;
27
+ flexBasis: import("react-native").DimensionValue | undefined;
28
+ alignSelf: "auto" | import("react-native").FlexAlignType | undefined;
29
+ position: "absolute" | "relative" | undefined;
30
+ pos: "absolute" | "relative" | undefined;
31
+ borderWidth: number | undefined;
32
+ borderTopWidth: number | undefined;
33
+ borderRightWidth: number | undefined;
34
+ borderBottomWidth: number | undefined;
35
+ borderLeftWidth: number | undefined;
36
+ opacity: import("react-native").AnimatableNumericValue | undefined;
37
+ overflow: "visible" | "hidden" | "scroll" | undefined;
38
+ transform: string | (({
39
+ perspective: import("react-native").AnimatableNumericValue;
40
+ } & {
41
+ rotate?: undefined;
42
+ rotateX?: undefined;
43
+ rotateY?: undefined;
44
+ rotateZ?: undefined;
45
+ scale?: undefined;
46
+ scaleX?: undefined;
47
+ scaleY?: undefined;
48
+ translateX?: undefined;
49
+ translateY?: undefined;
50
+ skewX?: undefined;
51
+ skewY?: undefined;
52
+ matrix?: undefined;
53
+ }) | ({
54
+ rotate: import("react-native").AnimatableStringValue;
55
+ } & {
56
+ perspective?: undefined;
57
+ rotateX?: undefined;
58
+ rotateY?: undefined;
59
+ rotateZ?: undefined;
60
+ scale?: undefined;
61
+ scaleX?: undefined;
62
+ scaleY?: undefined;
63
+ translateX?: undefined;
64
+ translateY?: undefined;
65
+ skewX?: undefined;
66
+ skewY?: undefined;
67
+ matrix?: undefined;
68
+ }) | ({
69
+ rotateX: import("react-native").AnimatableStringValue;
70
+ } & {
71
+ perspective?: undefined;
72
+ rotate?: undefined;
73
+ rotateY?: undefined;
74
+ rotateZ?: undefined;
75
+ scale?: undefined;
76
+ scaleX?: undefined;
77
+ scaleY?: undefined;
78
+ translateX?: undefined;
79
+ translateY?: undefined;
80
+ skewX?: undefined;
81
+ skewY?: undefined;
82
+ matrix?: undefined;
83
+ }) | ({
84
+ rotateY: import("react-native").AnimatableStringValue;
85
+ } & {
86
+ perspective?: undefined;
87
+ rotate?: undefined;
88
+ rotateX?: undefined;
89
+ rotateZ?: undefined;
90
+ scale?: undefined;
91
+ scaleX?: undefined;
92
+ scaleY?: undefined;
93
+ translateX?: undefined;
94
+ translateY?: undefined;
95
+ skewX?: undefined;
96
+ skewY?: undefined;
97
+ matrix?: undefined;
98
+ }) | ({
99
+ rotateZ: import("react-native").AnimatableStringValue;
100
+ } & {
101
+ perspective?: undefined;
102
+ rotate?: undefined;
103
+ rotateX?: undefined;
104
+ rotateY?: undefined;
105
+ scale?: undefined;
106
+ scaleX?: undefined;
107
+ scaleY?: undefined;
108
+ translateX?: undefined;
109
+ translateY?: undefined;
110
+ skewX?: undefined;
111
+ skewY?: undefined;
112
+ matrix?: undefined;
113
+ }) | ({
114
+ scale: import("react-native").AnimatableNumericValue;
115
+ } & {
116
+ perspective?: undefined;
117
+ rotate?: undefined;
118
+ rotateX?: undefined;
119
+ rotateY?: undefined;
120
+ rotateZ?: undefined;
121
+ scaleX?: undefined;
122
+ scaleY?: undefined;
123
+ translateX?: undefined;
124
+ translateY?: undefined;
125
+ skewX?: undefined;
126
+ skewY?: undefined;
127
+ matrix?: undefined;
128
+ }) | ({
129
+ scaleX: import("react-native").AnimatableNumericValue;
130
+ } & {
131
+ perspective?: undefined;
132
+ rotate?: undefined;
133
+ rotateX?: undefined;
134
+ rotateY?: undefined;
135
+ rotateZ?: undefined;
136
+ scale?: undefined;
137
+ scaleY?: undefined;
138
+ translateX?: undefined;
139
+ translateY?: undefined;
140
+ skewX?: undefined;
141
+ skewY?: undefined;
142
+ matrix?: undefined;
143
+ }) | ({
144
+ scaleY: import("react-native").AnimatableNumericValue;
145
+ } & {
146
+ perspective?: undefined;
147
+ rotate?: undefined;
148
+ rotateX?: undefined;
149
+ rotateY?: undefined;
150
+ rotateZ?: undefined;
151
+ scale?: undefined;
152
+ scaleX?: undefined;
153
+ translateX?: undefined;
154
+ translateY?: undefined;
155
+ skewX?: undefined;
156
+ skewY?: undefined;
157
+ matrix?: undefined;
158
+ }) | ({
159
+ translateX: import("react-native").AnimatableNumericValue;
160
+ } & {
161
+ perspective?: undefined;
162
+ rotate?: undefined;
163
+ rotateX?: undefined;
164
+ rotateY?: undefined;
165
+ rotateZ?: undefined;
166
+ scale?: undefined;
167
+ scaleX?: undefined;
168
+ scaleY?: undefined;
169
+ translateY?: undefined;
170
+ skewX?: undefined;
171
+ skewY?: undefined;
172
+ matrix?: undefined;
173
+ }) | ({
174
+ translateY: import("react-native").AnimatableNumericValue;
175
+ } & {
176
+ perspective?: undefined;
177
+ rotate?: undefined;
178
+ rotateX?: undefined;
179
+ rotateY?: undefined;
180
+ rotateZ?: undefined;
181
+ scale?: undefined;
182
+ scaleX?: undefined;
183
+ scaleY?: undefined;
184
+ translateX?: undefined;
185
+ skewX?: undefined;
186
+ skewY?: undefined;
187
+ matrix?: undefined;
188
+ }) | ({
189
+ skewX: import("react-native").AnimatableStringValue;
190
+ } & {
191
+ perspective?: undefined;
192
+ rotate?: undefined;
193
+ rotateX?: undefined;
194
+ rotateY?: undefined;
195
+ rotateZ?: undefined;
196
+ scale?: undefined;
197
+ scaleX?: undefined;
198
+ scaleY?: undefined;
199
+ translateX?: undefined;
200
+ translateY?: undefined;
201
+ skewY?: undefined;
202
+ matrix?: undefined;
203
+ }) | ({
204
+ skewY: import("react-native").AnimatableStringValue;
205
+ } & {
206
+ perspective?: undefined;
207
+ rotate?: undefined;
208
+ rotateX?: undefined;
209
+ rotateY?: undefined;
210
+ rotateZ?: undefined;
211
+ scale?: undefined;
212
+ scaleX?: undefined;
213
+ scaleY?: undefined;
214
+ translateX?: undefined;
215
+ translateY?: undefined;
216
+ skewX?: undefined;
217
+ matrix?: undefined;
218
+ }) | ({
219
+ matrix: import("react-native").AnimatableNumericValue[];
220
+ } & {
221
+ perspective?: undefined;
222
+ rotate?: undefined;
223
+ rotateX?: undefined;
224
+ rotateY?: undefined;
225
+ rotateZ?: undefined;
226
+ scale?: undefined;
227
+ scaleX?: undefined;
228
+ scaleY?: undefined;
229
+ translateX?: undefined;
230
+ translateY?: undefined;
231
+ skewX?: undefined;
232
+ skewY?: undefined;
233
+ }))[] | undefined;
234
+ aspectRatio: string | number | undefined;
235
+ display: "flex" | "none" | undefined;
236
+ elevation: number | undefined;
237
+ zIndex: number | undefined;
238
+ absoluteFill?: boolean | undefined;
239
+ center?: boolean | undefined;
240
+ } | keyof {
241
+ margin: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
242
+ m: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
243
+ marginTop: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
244
+ mt: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
245
+ marginRight: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
246
+ mr: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
247
+ marginBottom: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
248
+ mb: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
249
+ marginLeft: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
250
+ ml: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
251
+ marginX: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
252
+ mx: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
253
+ marginY: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
254
+ my: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
255
+ padding: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
256
+ p: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
257
+ paddingTop: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
258
+ pt: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
259
+ paddingRight: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
260
+ pr: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
261
+ paddingBottom: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
262
+ pb: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
263
+ paddingLeft: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
264
+ pl: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
265
+ paddingX: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
266
+ px: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
267
+ paddingY: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
268
+ py: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
269
+ top: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
270
+ right: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
271
+ bottom: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
272
+ left: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
273
+ gap: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
274
+ gapX: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
275
+ gapY: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
276
+ } | keyof {
277
+ width: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
278
+ w: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
279
+ minWidth: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
280
+ minW: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
281
+ maxWidth: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
282
+ maxW: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
283
+ height: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
284
+ h: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
285
+ minHeight: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
286
+ minH: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
287
+ maxHeight: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
288
+ maxH: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
289
+ } | keyof {
290
+ backgroundColor: string;
291
+ bg: string;
292
+ borderColor: string;
293
+ } | keyof {
294
+ borderRadius: number | `${number}` | `${number}px` | `${any}px`;
295
+ radius: number | `${number}` | `${number}px` | `${any}px`;
296
+ borderTopLeftRadius: number | `${number}` | `${number}px` | `${any}px`;
297
+ topLeftRadius: number | `${number}` | `${number}px` | `${any}px`;
298
+ borderTopRightRadius: number | `${number}` | `${number}px` | `${any}px`;
299
+ topRightRadius: number | `${number}` | `${number}px` | `${any}px`;
300
+ borderBottomLeftRadius: number | `${number}` | `${number}px` | `${any}px`;
301
+ bottomLeftRadius: number | `${number}` | `${number}px` | `${any}px`;
302
+ borderBottomRightRadius: number | `${number}` | `${number}px` | `${any}px`;
303
+ bottomRightRadius: number | `${number}` | `${number}px` | `${any}px`;
304
+ } | "sx">;
305
+ };
306
+ export {};
307
+ //# sourceMappingURL=useSx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSx.d.ts","sourceRoot":"","sources":["../../../src/hook/useSx.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpE,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGlE,KAAK,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAA;CAAE,GAAG,WAAW,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,WAAW,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,KAAK,qEACR,CAAC,GAAG,IAAI,4DAMb,YAAY;oBAIwB,UAAU,CAAC,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDhE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StyleProp, TextStyle } from 'react-native';
2
+ import type { TextSxProps } from '../@types/SxProps';
3
+ import type { ThemedDict } from '../@types/ThemedDict';
4
+ export type UseSxStyleOptions = {
5
+ theme?: ThemedDict;
6
+ };
7
+ export declare const useSxStyle: ({ theme: optionTheme }?: UseSxStyleOptions) => (sx: TextSxProps) => StyleProp<TextStyle>;
8
+ //# sourceMappingURL=useSxStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSxStyle.d.ts","sourceRoot":"","sources":["../../../src/hook/useSxStyle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AAGF,eAAO,MAAM,UAAU,4BAA4B,iBAAiB,UAGtD,WAAW,KAAG,UAAU,SAAS,CAc9C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ThemedDict } from '../@types/ThemedDict';
2
+ import type { ThemedTypings } from '../@types/ThemedTypings';
3
+ export type UseSxTokensOptions = {
4
+ theme?: ThemedDict;
5
+ };
6
+ export declare const useSxTokens: <T extends keyof ThemedTypings, V extends ThemedTypings[T]>(tokenType: T, tokenValues: Array<Exclude<V, null | undefined>>, { theme: optionTheme }?: UseSxTokensOptions) => Array<ThemedDict[T][keyof ThemedDict[T]]>;
7
+ //# sourceMappingURL=useSxTokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSxTokens.d.ts","sourceRoot":"","sources":["../../../src/hook/useSxTokens.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,WAAW,yEACX,CAAC,eACC,MAAM,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAAC,2BACxB,kBAAkB,KACzC,MAAM,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,UAAU,CAAC,CAAC,CAAC,CAAC,CA0B1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './provider/StyledSystemProvider';
2
+ export * from './hook/useSx';
3
+ export * from './@types/ThemedDict';
4
+ export * from './@types/SxProps';
5
+ export * from './@types/ThemedTypings';
6
+ export * from './util/propsToThemedStyle';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ThemedDict } from '../../@types/ThemedDict';
2
+ import type { Token } from '../../@types/Token';
3
+ export declare const createColorsParser: (theme: ThemedDict) => (token?: Token<'colors'>) => string | undefined;
4
+ //# sourceMappingURL=ColorsParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorsParser.d.ts","sourceRoot":"","sources":["../../../../src/internal/TokenParser/ColorsParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE7D,eAAO,MAAM,kBAAkB,UAAW,UAAU,cAClC,MAAM,QAAQ,CAAC,uBAChC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ThemedDict } from '../../@types/ThemedDict';
2
+ import type { Token } from '../../@types/Token';
3
+ export declare const createRadiiParser: (theme: ThemedDict) => (token?: Token<'radii'>) => number | undefined;
4
+ //# sourceMappingURL=RadiiParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadiiParser.d.ts","sourceRoot":"","sources":["../../../../src/internal/TokenParser/RadiiParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG5D,eAAO,MAAM,iBAAiB,UAAW,UAAU,cACjC,MAAM,OAAO,CAAC,uBAC/B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ThemedDict } from '../../@types/ThemedDict';
2
+ import type { SizesValue, Token } from '../../@types/Token';
3
+ export declare const createSizesParser: (theme: ThemedDict) => (token?: Token<'sizes'>) => SizesValue | undefined;
4
+ //# sourceMappingURL=SizesParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SizesParser.d.ts","sourceRoot":"","sources":["../../../../src/internal/TokenParser/SizesParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG5D,eAAO,MAAM,iBAAiB,UAAW,UAAU,cACjC,MAAM,OAAO,CAAC,2BAC/B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ThemedDict } from '../../@types/ThemedDict';
2
+ import type { SpaceValue, Token } from '../../@types/Token';
3
+ export declare const createSpaceParser: (theme: ThemedDict) => (token?: Token<'space'>) => SpaceValue | undefined;
4
+ export declare const createSpaceAsNumberOnlyParser: (theme: ThemedDict) => (token?: Token<'space'>) => number | undefined;
5
+ //# sourceMappingURL=SpaceParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpaceParser.d.ts","sourceRoot":"","sources":["../../../../src/internal/TokenParser/SpaceParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG5D,eAAO,MAAM,iBAAiB,UAAW,UAAU,cACjC,MAAM,OAAO,CAAC,2BAC/B,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAW,UAAU,cAC7C,MAAM,OAAO,CAAC,uBAC/B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ThemedDict } from '../../@types/ThemedDict';
2
+ export declare const createTokenParsers: (theme: ThemedDict) => {
3
+ colors: (token?: string | undefined) => string | undefined;
4
+ space: (token?: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px` | undefined) => import("packages/core/src/@types/Token").SpaceValue | undefined;
5
+ spaceAsNumberOnly: (token?: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px` | undefined) => number | undefined;
6
+ sizes: (token?: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue | undefined) => import("packages/core/src/@types/Token").SizesValue | undefined;
7
+ radii: (token?: number | `${number}` | `${number}px` | `${any}px` | undefined) => number | undefined;
8
+ typography: (token?: string | undefined) => import("packages/core/src/@types/Token").TypographyValue | undefined;
9
+ };
10
+ //# sourceMappingURL=TokenParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokenParser.d.ts","sourceRoot":"","sources":["../../../../src/internal/TokenParser/TokenParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQ1D,eAAO,MAAM,kBAAkB,UAAW,UAAU;;;;;;;CASnD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ThemedDict } from '../../@types/ThemedDict';
2
+ import type { Token, TypographyValue } from '../../@types/Token';
3
+ export declare const createTypographyParser: (theme: ThemedDict) => (token?: Token<'typography'>) => TypographyValue | undefined;
4
+ //# sourceMappingURL=TypographyParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypographyParser.d.ts","sourceRoot":"","sources":["../../../../src/internal/TokenParser/TypographyParser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,eAAO,MAAM,sBAAsB,UAAW,UAAU,cACtC,MAAM,YAAY,CAAC,gCACpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useStableCallback<T extends Function>(unstableCallback: T): T;
2
+ //# sourceMappingURL=useStableCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStableCallback.d.ts","sourceRoot":"","sources":["../../../src/internal/useStableCallback.ts"],"names":[],"mappings":"AAkBA,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,QAAQ,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,CAU5E"}
@@ -0,0 +1,3 @@
1
+ import type { ThemedDict } from '../../@types/ThemedDict';
2
+ export declare const fillNullishThemeKey: (theme: Partial<ThemedDict>) => ThemedDict;
3
+ //# sourceMappingURL=fillNullishThemeKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fillNullishThemeKey.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/fillNullishThemeKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,eAAO,MAAM,mBAAmB,UAAW,QAAQ,UAAU,CAAC,KAAG,UAShE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TextStyle, ViewStyle } from 'react-native';
2
+ export declare function fillViewStyleIfNotNullish<K extends keyof ViewStyle>(into: ViewStyle, key: K, value?: ViewStyle[K] | null): void;
3
+ export declare function fillTextStyleIfNotNullish<K extends Exclude<keyof TextStyle, keyof ViewStyle>>(into: TextStyle, key: K, value?: TextStyle[K] | null): void;
4
+ //# sourceMappingURL=fillStyleIfNotNullish.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fillStyleIfNotNullish.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/fillStyleIfNotNullish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,MAAM,SAAS,EACjE,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,CAAC,EACN,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,QAO5B;AAED,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,SAAS,EAAE,MAAM,SAAS,CAAC,EAC3F,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,CAAC,EACN,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,QAO5B"}
@@ -0,0 +1,2 @@
1
+ export declare function parsePxSuffixNumber(value: any): number | undefined;
2
+ //# sourceMappingURL=parsePxSuffixNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsePxSuffixNumber.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/parsePxSuffixNumber.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAOlE"}
@@ -0,0 +1,2 @@
1
+ export declare const printWarning: (msg: string) => void;
2
+ //# sourceMappingURL=printWarning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"printWarning.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/printWarning.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,QAAS,MAAM,SAIvC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import React from 'react';
3
+ import type { ThemedDict } from '../@types/ThemedDict';
4
+ export type StyledSystemContextValue = {
5
+ theme: ThemedDict;
6
+ };
7
+ export declare const StyledSystemContext: React.Context<StyledSystemContextValue>;
8
+ type Props = PropsWithChildren<{
9
+ theme: Partial<ThemedDict>;
10
+ }>;
11
+ export declare const StyledSystemProvider: ({ children, theme }: Props) => React.JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=StyledSystemProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledSystemProvider.d.ts","sourceRoot":"","sources":["../../../src/provider/StyledSystemProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,yCAE9B,CAAC;AACH,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAAE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;CAAE,CAAC,CAAC;AAE/D,eAAO,MAAM,oBAAoB,wBAAyB,KAAK,sBAM9D,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { TextStyle } from 'react-native';
2
+ import type { TextSxProps } from '../@types/SxProps';
3
+ import type { ThemedDict } from '../@types/ThemedDict';
4
+ export type ThemedStyleType = 'ViewStyle' | 'TextStyle';
5
+ export declare const propsToThemedStyle: ({ theme, sx, styleType, }: {
6
+ theme?: ThemedDict | undefined;
7
+ sx?: TextSxProps | undefined;
8
+ styleType?: ThemedStyleType | undefined;
9
+ }) => TextStyle | undefined;
10
+ //# sourceMappingURL=propsToThemedStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propsToThemedStyle.d.ts","sourceRoot":"","sources":["../../../src/util/propsToThemedStyle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQvD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,WAAW,CAAC;AACxD,eAAO,MAAM,kBAAkB;;;;MAQ3B,SAAS,GAAG,SAkJf,CAAC"}