@tujyane/alf 1.0.0

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 (87) hide show
  1. package/README.md +226 -0
  2. package/dist/atoms/common.d.ts +992 -0
  3. package/dist/atoms/common.d.ts.map +1 -0
  4. package/dist/atoms/common.js +1067 -0
  5. package/dist/atoms/common.js.map +1 -0
  6. package/dist/atoms/index.d.ts +2 -0
  7. package/dist/atoms/index.d.ts.map +1 -0
  8. package/dist/atoms/index.js +18 -0
  9. package/dist/atoms/index.js.map +1 -0
  10. package/dist/atoms/index.native.d.ts +1020 -0
  11. package/dist/atoms/index.native.d.ts.map +1 -0
  12. package/dist/atoms/index.native.js +119 -0
  13. package/dist/atoms/index.native.js.map +1 -0
  14. package/dist/atoms/types.d.ts +3 -0
  15. package/dist/atoms/types.d.ts.map +1 -0
  16. package/dist/atoms/types.js +3 -0
  17. package/dist/atoms/types.js.map +1 -0
  18. package/dist/index.d.ts +23 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +64 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/palette.d.ts +72 -0
  23. package/dist/palette.d.ts.map +1 -0
  24. package/dist/palette.js +152 -0
  25. package/dist/palette.js.map +1 -0
  26. package/dist/platform/index.d.ts +45 -0
  27. package/dist/platform/index.d.ts.map +1 -0
  28. package/dist/platform/index.js +55 -0
  29. package/dist/platform/index.js.map +1 -0
  30. package/dist/platform/index.native.d.ts +16 -0
  31. package/dist/platform/index.native.d.ts.map +1 -0
  32. package/dist/platform/index.native.js +20 -0
  33. package/dist/platform/index.native.js.map +1 -0
  34. package/dist/themes.d.ts +151 -0
  35. package/dist/themes.d.ts.map +1 -0
  36. package/dist/themes.js +191 -0
  37. package/dist/themes.js.map +1 -0
  38. package/dist/tokens.d.ts +49 -0
  39. package/dist/tokens.d.ts.map +1 -0
  40. package/dist/tokens.js +52 -0
  41. package/dist/tokens.js.map +1 -0
  42. package/dist/utils/alpha.d.ts +2 -0
  43. package/dist/utils/alpha.d.ts.map +1 -0
  44. package/dist/utils/alpha.js +30 -0
  45. package/dist/utils/alpha.js.map +1 -0
  46. package/dist/utils/flatten/index.d.ts +3 -0
  47. package/dist/utils/flatten/index.d.ts.map +1 -0
  48. package/dist/utils/flatten/index.js +9 -0
  49. package/dist/utils/flatten/index.js.map +1 -0
  50. package/dist/utils/flatten/index.native.d.ts +3 -0
  51. package/dist/utils/flatten/index.native.d.ts.map +1 -0
  52. package/dist/utils/flatten/index.native.js +6 -0
  53. package/dist/utils/flatten/index.native.js.map +1 -0
  54. package/dist/utils/flatten/index.web.d.ts +3 -0
  55. package/dist/utils/flatten/index.web.d.ts.map +1 -0
  56. package/dist/utils/flatten/index.web.js +6 -0
  57. package/dist/utils/flatten/index.web.js.map +1 -0
  58. package/dist/utils/index.d.ts +5 -0
  59. package/dist/utils/index.d.ts.map +1 -0
  60. package/dist/utils/index.js +21 -0
  61. package/dist/utils/index.js.map +1 -0
  62. package/dist/utils/leading.d.ts +14 -0
  63. package/dist/utils/leading.d.ts.map +1 -0
  64. package/dist/utils/leading.js +64 -0
  65. package/dist/utils/leading.js.map +1 -0
  66. package/dist/utils/select.d.ts +7 -0
  67. package/dist/utils/select.d.ts.map +1 -0
  68. package/dist/utils/select.js +16 -0
  69. package/dist/utils/select.js.map +1 -0
  70. package/package.json +45 -0
  71. package/src/atoms/common.ts +1049 -0
  72. package/src/atoms/index.native.ts +84 -0
  73. package/src/atoms/index.ts +1 -0
  74. package/src/atoms/types.ts +11 -0
  75. package/src/index.tsx +46 -0
  76. package/src/palette.ts +237 -0
  77. package/src/platform/index.native.ts +16 -0
  78. package/src/platform/index.ts +54 -0
  79. package/src/themes.ts +332 -0
  80. package/src/tokens.ts +54 -0
  81. package/src/utils/alpha.ts +25 -0
  82. package/src/utils/flatten/index.native.ts +3 -0
  83. package/src/utils/flatten/index.ts +8 -0
  84. package/src/utils/flatten/index.web.ts +3 -0
  85. package/src/utils/index.ts +4 -0
  86. package/src/utils/leading.ts +30 -0
  87. package/src/utils/select.ts +19 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../src/atoms/index.native.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ER,CAAC"}
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.atoms = void 0;
37
+ const react_native_1 = require("react-native");
38
+ const common = __importStar(require("./common"));
39
+ const platform_1 = require("../platform");
40
+ exports.atoms = {
41
+ ...common.atoms,
42
+ fixed: {
43
+ position: "absolute",
44
+ },
45
+ sticky: {},
46
+ overflow_auto: {},
47
+ flex_0: {
48
+ flex: 0,
49
+ },
50
+ border: {
51
+ borderWidth: react_native_1.StyleSheet.hairlineWidth,
52
+ },
53
+ border_t: {
54
+ borderTopWidth: react_native_1.StyleSheet.hairlineWidth,
55
+ },
56
+ border_b: {
57
+ borderBottomWidth: react_native_1.StyleSheet.hairlineWidth,
58
+ },
59
+ border_l: {
60
+ borderLeftWidth: react_native_1.StyleSheet.hairlineWidth,
61
+ },
62
+ border_r: {
63
+ borderRightWidth: react_native_1.StyleSheet.hairlineWidth,
64
+ },
65
+ border_x: {
66
+ borderLeftWidth: react_native_1.StyleSheet.hairlineWidth,
67
+ borderRightWidth: react_native_1.StyleSheet.hairlineWidth,
68
+ },
69
+ border_y: {
70
+ borderTopWidth: react_native_1.StyleSheet.hairlineWidth,
71
+ borderBottomWidth: react_native_1.StyleSheet.hairlineWidth,
72
+ },
73
+ border_transparent: {
74
+ borderColor: "transparent",
75
+ },
76
+ curve_circular: (0, platform_1.ios)({
77
+ borderCurve: "circular",
78
+ }),
79
+ curve_continuous: (0, platform_1.ios)({
80
+ borderCurve: "continuous",
81
+ }),
82
+ shadow_sm: platform_1.isFabric
83
+ ? {}
84
+ : {
85
+ shadowRadius: 4,
86
+ shadowOpacity: 0.1,
87
+ elevation: 8,
88
+ shadowOffset: {
89
+ width: 0,
90
+ height: 4,
91
+ },
92
+ },
93
+ shadow_md: platform_1.isFabric
94
+ ? {}
95
+ : {
96
+ shadowRadius: 8,
97
+ shadowOpacity: 0.1,
98
+ elevation: 16,
99
+ shadowOffset: {
100
+ width: 0,
101
+ height: 8,
102
+ },
103
+ },
104
+ shadow_lg: platform_1.isFabric
105
+ ? {}
106
+ : {
107
+ shadowRadius: 16,
108
+ shadowOpacity: 0.1,
109
+ elevation: 32,
110
+ shadowOffset: {
111
+ width: 0,
112
+ height: 16,
113
+ },
114
+ },
115
+ inline: {},
116
+ block: {},
117
+ pointer: {},
118
+ };
119
+ //# sourceMappingURL=index.native.js.map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gBACZ,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,CAAC;aACV;SACF;IACL,SAAS,EAAE,mBAAQ;QACjB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACE,YAAY,EAAE,CAAC;YACf,aAAa,EAAE,GAAG;YAClB,SAAS,EAAE,EAAE;YACb,YAAY,EAAE;gBACZ,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,CAAC;aACV;SACF;IACL,SAAS,EAAE,mBAAQ;QACjB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACE,YAAY,EAAE,EAAE;YAChB,aAAa,EAAE,GAAG;YAClB,SAAS,EAAE,EAAE;YACb,YAAY,EAAE;gBACZ,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,EAAE;aACX;SACF;IACL,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ViewStyle } from "react-native";
2
+ export type ShadowStyle = Pick<ViewStyle, "shadowColor" | "shadowOpacity" | "shadowRadius" | "elevation" | "shadowOffset" | "boxShadow">;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/atoms/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,SAAS,EACP,aAAa,GACb,eAAe,GACf,cAAc,GACd,WAAW,GACX,cAAc,GACd,WAAW,CACd,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/atoms/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { type StyleProp, type TextStyle, type ViewStyle } from "react-native";
2
+ import { type Theme } from "./themes";
3
+ export * from "./atoms";
4
+ export * from "./palette";
5
+ export * from "./themes";
6
+ export * from "./platform";
7
+ export * as tokens from "./tokens";
8
+ export * as utils from "./utils";
9
+ export type TextStyleProp = {
10
+ style?: StyleProp<TextStyle>;
11
+ };
12
+ export type ViewStyleProp = {
13
+ style?: StyleProp<ViewStyle>;
14
+ };
15
+ export declare const Context: import("react").Context<{
16
+ theme: Theme;
17
+ }>;
18
+ export declare function Provider<T extends string, A extends Record<T, Theme>>({ children, activeTheme, themes, }: React.PropsWithChildren<{
19
+ activeTheme: T;
20
+ themes: A;
21
+ }>): import("react/jsx-runtime").JSX.Element;
22
+ export declare function useTheme(): Theme;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9E,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAE9C,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,OAAO;;EAElB,CAAC;AAGH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EACrE,QAAQ,EACR,WAAW,EACX,MAAM,GACP,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACzB,WAAW,EAAE,CAAC,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;CACX,CAAC,2CASD;AAED,wBAAgB,QAAQ,UAEvB"}
package/dist/index.js ADDED
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Context = exports.utils = exports.tokens = void 0;
40
+ exports.Provider = Provider;
41
+ exports.useTheme = useTheme;
42
+ const jsx_runtime_1 = require("react/jsx-runtime");
43
+ const react_1 = require("react");
44
+ const themes_1 = require("./themes");
45
+ __exportStar(require("./atoms"), exports);
46
+ __exportStar(require("./palette"), exports);
47
+ __exportStar(require("./themes"), exports);
48
+ __exportStar(require("./platform"), exports);
49
+ exports.tokens = __importStar(require("./tokens"));
50
+ exports.utils = __importStar(require("./utils"));
51
+ exports.Context = (0, react_1.createContext)({
52
+ theme: themes_1.themes.light,
53
+ });
54
+ exports.Context.displayName = "AlfContext";
55
+ function Provider({ children, activeTheme, themes, }) {
56
+ const value = (0, react_1.useMemo)(() => ({
57
+ theme: themes[activeTheme],
58
+ }), [activeTheme, themes]);
59
+ return (0, jsx_runtime_1.jsx)(exports.Context.Provider, { value: value, children: children });
60
+ }
61
+ function useTheme() {
62
+ return (0, react_1.useContext)(exports.Context).theme;
63
+ }
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,4BAgBC;AAED,4BAEC;;AA5CD,iCAA2D;AAE3D,qCAA8C;AAE9C,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B;AAC3B,mDAAmC;AACnC,iDAAiC;AAUpB,QAAA,OAAO,GAAG,IAAA,qBAAa,EAAC;IACnC,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC,CAAC;AACH,eAAO,CAAC,WAAW,GAAG,YAAY,CAAC;AAEnC,SAAgB,QAAQ,CAA+C,EACrE,QAAQ,EACR,WAAW,EACX,MAAM,GAIN;IACA,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE,CAAC,CAAC;QACL,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;KAC3B,CAAC,EACF,CAAC,WAAW,EAAE,MAAM,CAAC,CACtB,CAAC;IAEF,OAAO,uBAAC,eAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAoB,CAAC;AACvE,CAAC;AAED,SAAgB,QAAQ;IACtB,OAAO,IAAA,kBAAU,EAAC,eAAO,CAAC,CAAC,KAAK,CAAC;AACnC,CAAC"}
@@ -0,0 +1,72 @@
1
+ export type Palette = {
2
+ white: string;
3
+ black: string;
4
+ like: string;
5
+ primary_25: string;
6
+ primary_50: string;
7
+ primary_100: string;
8
+ primary_200: string;
9
+ primary_300: string;
10
+ primary_400: string;
11
+ primary_500: string;
12
+ primary_600: string;
13
+ primary_700: string;
14
+ primary_800: string;
15
+ primary_900: string;
16
+ positive_25: string;
17
+ positive_50: string;
18
+ positive_100: string;
19
+ positive_200: string;
20
+ positive_300: string;
21
+ positive_400: string;
22
+ positive_500: string;
23
+ positive_600: string;
24
+ positive_700: string;
25
+ positive_800: string;
26
+ positive_900: string;
27
+ positive_950: string;
28
+ positive_975: string;
29
+ negative_25: string;
30
+ negative_50: string;
31
+ negative_100: string;
32
+ negative_200: string;
33
+ negative_300: string;
34
+ negative_400: string;
35
+ negative_500: string;
36
+ negative_600: string;
37
+ negative_700: string;
38
+ negative_800: string;
39
+ negative_900: string;
40
+ negative_950: string;
41
+ negative_975: string;
42
+ warning_100: string;
43
+ warning_200: string;
44
+ warning_300: string;
45
+ warning_400: string;
46
+ warning_500: string;
47
+ warning_600: string;
48
+ warning_700: string;
49
+ warning_800: string;
50
+ warning_900: string;
51
+ info_100: string;
52
+ info_200: string;
53
+ info_300: string;
54
+ info_400: string;
55
+ info_500: string;
56
+ info_600: string;
57
+ info_700: string;
58
+ info_800: string;
59
+ info_900: string;
60
+ secondary_100: string;
61
+ secondary_200: string;
62
+ secondary_300: string;
63
+ secondary_400: string;
64
+ secondary_500: string;
65
+ secondary_600: string;
66
+ secondary_700: string;
67
+ secondary_800: string;
68
+ secondary_900: string;
69
+ };
70
+ export declare const DEFAULT_PALETTE: Palette;
71
+ export declare function invertPalette(palette: Palette): Palette;
72
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../src/palette.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAgF7B,CAAC;AAEF,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CA6EvD"}
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_PALETTE = void 0;
4
+ exports.invertPalette = invertPalette;
5
+ exports.DEFAULT_PALETTE = {
6
+ white: "#FFFFFF",
7
+ black: "#000000",
8
+ like: "#EC4899",
9
+ // Primary
10
+ primary_25: "#F9FAFB",
11
+ primary_50: "#EFF2F6",
12
+ primary_100: "#0E64FD",
13
+ primary_200: "#AC58FC",
14
+ primary_300: "#834875",
15
+ primary_400: "#853671",
16
+ primary_500: "#356353",
17
+ primary_600: "#264626",
18
+ primary_700: "#143747",
19
+ primary_800: "#102537",
20
+ primary_900: "#04060F",
21
+ // Success
22
+ positive_25: "#ECFEF5",
23
+ positive_50: "#D3FDE8",
24
+ positive_100: "#F9FC02",
25
+ positive_200: "#EBAA6",
26
+ positive_300: "#03F179",
27
+ positive_400: "#1C1445",
28
+ positive_500: "#2C0323",
29
+ positive_600: "#778519",
30
+ positive_700: "#858711",
31
+ positive_800: "#407008",
32
+ positive_900: "#886506",
33
+ positive_950: "#032A17",
34
+ positive_975: "#021D0F",
35
+ // Error
36
+ negative_25: "#FFF5F7",
37
+ negative_50: "#FEE7EC",
38
+ negative_100: "#FFD73",
39
+ negative_200: "#FC646",
40
+ negative_300: "#F74274",
41
+ negative_400: "#FF7559",
42
+ negative_500: "#F74423",
43
+ negative_600: "#0B2799",
44
+ negative_700: "#871112",
45
+ negative_800: "#930118",
46
+ negative_900: "#7A0619",
47
+ negative_950: "#430413",
48
+ negative_975: "#30030D",
49
+ // Warning
50
+ warning_100: "#FFE207",
51
+ warning_200: "#7FEF80",
52
+ warning_300: "#F16486",
53
+ warning_400: "#F03688",
54
+ warning_500: "#FFC72A",
55
+ warning_600: "#0F432A",
56
+ warning_700: "#973210",
57
+ warning_800: "#953213",
58
+ warning_900: "#7A0108",
59
+ // Info
60
+ info_100: "#0C53FF",
61
+ info_200: "#BA85FF",
62
+ info_300: "#9603FF",
63
+ info_400: "#7EC2FF",
64
+ info_500: "#5448FF",
65
+ info_600: "#258058",
66
+ info_700: "#2A4669",
67
+ info_800: "#144393",
68
+ info_900: "#1032FA",
69
+ // Secondary
70
+ secondary_100: "#EC6744",
71
+ secondary_200: "#C52463",
72
+ secondary_300: "#00438F",
73
+ secondary_400: "#569750",
74
+ secondary_500: "#F450CC",
75
+ secondary_600: "#131835",
76
+ secondary_700: "#DD171F",
77
+ secondary_800: "#05CC19",
78
+ secondary_900: "#640815",
79
+ };
80
+ function invertPalette(palette) {
81
+ return {
82
+ white: palette.white,
83
+ black: palette.black,
84
+ like: palette.like,
85
+ primary_25: palette.primary_50,
86
+ primary_50: palette.primary_25,
87
+ primary_100: palette.primary_900,
88
+ primary_200: palette.primary_800,
89
+ primary_300: palette.primary_700,
90
+ primary_400: palette.primary_600,
91
+ primary_500: palette.primary_500,
92
+ primary_600: palette.primary_400,
93
+ primary_700: palette.primary_300,
94
+ primary_800: palette.primary_200,
95
+ primary_900: palette.primary_100,
96
+ positive_25: palette.positive_975,
97
+ positive_50: palette.positive_950,
98
+ positive_100: palette.positive_900,
99
+ positive_200: palette.positive_800,
100
+ positive_300: palette.positive_700,
101
+ positive_400: palette.positive_600,
102
+ positive_500: palette.positive_500,
103
+ positive_600: palette.positive_400,
104
+ positive_700: palette.positive_300,
105
+ positive_800: palette.positive_200,
106
+ positive_900: palette.positive_100,
107
+ positive_950: palette.positive_50,
108
+ positive_975: palette.positive_25,
109
+ negative_25: palette.negative_975,
110
+ negative_50: palette.negative_950,
111
+ negative_100: palette.negative_900,
112
+ negative_200: palette.negative_800,
113
+ negative_300: palette.negative_700,
114
+ negative_400: palette.negative_600,
115
+ negative_500: palette.negative_500,
116
+ negative_600: palette.negative_400,
117
+ negative_700: palette.negative_300,
118
+ negative_800: palette.negative_200,
119
+ negative_900: palette.negative_100,
120
+ negative_950: palette.negative_50,
121
+ negative_975: palette.negative_25,
122
+ // New scales invert
123
+ warning_100: palette.warning_900,
124
+ warning_200: palette.warning_800,
125
+ warning_300: palette.warning_700,
126
+ warning_400: palette.warning_600,
127
+ warning_500: palette.warning_500,
128
+ warning_600: palette.warning_400,
129
+ warning_700: palette.warning_300,
130
+ warning_800: palette.warning_200,
131
+ warning_900: palette.warning_100,
132
+ info_100: palette.info_900,
133
+ info_200: palette.info_800,
134
+ info_300: palette.info_700,
135
+ info_400: palette.info_600,
136
+ info_500: palette.info_500,
137
+ info_600: palette.info_400,
138
+ info_700: palette.info_300,
139
+ info_800: palette.info_200,
140
+ info_900: palette.info_100,
141
+ secondary_100: palette.secondary_900,
142
+ secondary_200: palette.secondary_800,
143
+ secondary_300: palette.secondary_700,
144
+ secondary_400: palette.secondary_600,
145
+ secondary_500: palette.secondary_500,
146
+ secondary_600: palette.secondary_400,
147
+ secondary_700: palette.secondary_300,
148
+ secondary_800: palette.secondary_200,
149
+ secondary_900: palette.secondary_100,
150
+ };
151
+ }
152
+ //# sourceMappingURL=palette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.js","sourceRoot":"","sources":["../src/palette.ts"],"names":[],"mappings":";;;AA+JA,sCA6EC;AA/JY,QAAA,eAAe,GAAY;IACtC,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;IAEf,UAAU;IACV,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IAEtB,UAAU;IACV,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,QAAQ;IACtB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS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const isNative = false;
5
+ export declare const isWeb = true;
6
+ export declare const isFabric: boolean;
7
+ /**
8
+ * Identity function on web. Returns nothing on other platforms.
9
+ *
10
+ * Note: Platform splitting does not tree-shake away the other platforms,
11
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
12
+ * platform-split files instead.
13
+ */
14
+ export declare const web: (value: any) => any;
15
+ /**
16
+ * Identity function on iOS. Returns nothing on other platforms.
17
+ *
18
+ * Note: Platform splitting does not tree-shake away the other platforms,
19
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
20
+ * platform-split files instead.
21
+ */
22
+ export declare const ios: (value: any) => any;
23
+ /**
24
+ * Identity function on Android. Returns nothing on other platforms..
25
+ *
26
+ * Note: Platform splitting does not tree-shake away the other platforms,
27
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
28
+ * platform-split files instead.
29
+ */
30
+ export declare const android: (value: any) => any;
31
+ /**
32
+ * Identity function on iOS and Android. Returns nothing on web.
33
+ *
34
+ * Note: Platform splitting does not tree-shake away the other platforms,
35
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
36
+ * platform-split files instead.
37
+ */
38
+ export declare const native: (value: any) => any;
39
+ /**
40
+ * Note: Platform splitting does not tree-shake away the other platforms,
41
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
42
+ * platform-split files instead.
43
+ */
44
+ export declare const platform: Platform["select"];
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,KAAK,QAAQ,CAAC;AAC3B,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAC9B,eAAO,MAAM,KAAK,OAAO,CAAC;AAE1B,eAAO,MAAM,QAAQ,SAAyC,CAAC;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,GAAI,OAAO,GAAG,QAAgC,CAAC;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,GAAI,OAAO,GAAG,QAAgC,CAAC;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,GAAG,QAAoC,CAAC;AAEvE;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,GAAG,QAAmC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAGf,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.platform = exports.native = exports.android = exports.ios = exports.web = exports.isFabric = exports.isWeb = exports.isNative = exports.isAndroid = exports.isIOS = void 0;
4
+ exports.isIOS = false;
5
+ exports.isAndroid = false;
6
+ exports.isNative = false;
7
+ exports.isWeb = true;
8
+ // @ts-ignore
9
+ exports.isFabric = Boolean(global?.nativeFabricUIManager);
10
+ /**
11
+ * Identity function on web. Returns nothing on other platforms.
12
+ *
13
+ * Note: Platform splitting does not tree-shake away the other platforms,
14
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
15
+ * platform-split files instead.
16
+ */
17
+ const web = (value) => (exports.isWeb ? value : undefined);
18
+ exports.web = web;
19
+ /**
20
+ * Identity function on iOS. Returns nothing on other platforms.
21
+ *
22
+ * Note: Platform splitting does not tree-shake away the other platforms,
23
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
24
+ * platform-split files instead.
25
+ */
26
+ const ios = (value) => (exports.isIOS ? value : undefined);
27
+ exports.ios = ios;
28
+ /**
29
+ * Identity function on Android. Returns nothing on other platforms..
30
+ *
31
+ * Note: Platform splitting does not tree-shake away the other platforms,
32
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
33
+ * platform-split files instead.
34
+ */
35
+ const android = (value) => (exports.isAndroid ? value : undefined);
36
+ exports.android = android;
37
+ /**
38
+ * Identity function on iOS and Android. Returns nothing on web.
39
+ *
40
+ * Note: Platform splitting does not tree-shake away the other platforms,
41
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
42
+ * platform-split files instead.
43
+ */
44
+ const native = (value) => (exports.isNative ? value : undefined);
45
+ exports.native = native;
46
+ /**
47
+ * Note: Platform splitting does not tree-shake away the other platforms,
48
+ * so don't do stuff like e.g. rely on platform-specific imports. Use
49
+ * platform-split files instead.
50
+ */
51
+ exports.platform = ((specifics) => {
52
+ // @ts-ignore
53
+ return specifics.web || specifics.default;
54
+ });
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,KAAK,GAAG,KAAK,CAAC;AACd,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,QAAQ,GAAG,KAAK,CAAC;AACjB,QAAA,KAAK,GAAG,IAAI,CAAC;AAC1B,aAAa;AACA,QAAA,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AAE/D;;;;;;GAMG;AACI,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,aAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAAlD,QAAA,GAAG,OAA+C;AAE/D;;;;;;GAMG;AACI,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,aAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAAlD,QAAA,GAAG,OAA+C;AAE/D;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,iBAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAA1D,QAAA,OAAO,WAAmD;AAEvE;;;;;;GAMG;AACI,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,gBAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAAxD,QAAA,MAAM,UAAkD;AAErE;;;;GAIG;AACU,QAAA,QAAQ,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;IACrC,aAAa;IACb,OAAO,SAAS,CAAC,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC;AAC5C,CAAC,CAAuB,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const isIOS: boolean;
2
+ export declare const isAndroid: boolean;
3
+ export declare const isNative = true;
4
+ export declare const isWeb = false;
5
+ export declare const isFabric: boolean;
6
+ export declare const web: (value: any) => any;
7
+ export declare const ios: (value: any) => any;
8
+ export declare const android: (value: any) => any;
9
+ export declare const native: (value: any) => any;
10
+ export declare const platform: {
11
+ <T>(specifics: ({ [platform in import("react-native").PlatformOSType]?: T; } & {
12
+ default: T;
13
+ }) | { [platform in import("react-native").PlatformOSType]: T; }): T;
14
+ <T>(specifics: { [platform in import("react-native").PlatformOSType]?: T; }): T | undefined;
15
+ };
16
+ //# sourceMappingURL=index.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../src/platform/index.native.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,SAAwB,CAAC;AAC3C,eAAO,MAAM,SAAS,SAA4B,CAAC;AACnD,eAAO,MAAM,QAAQ,OAAO,CAAC;AAC7B,eAAO,MAAM,KAAK,QAAQ,CAAC;AAG3B,eAAO,MAAM,QAAQ,SAAyC,CAAC;AAE/D,eAAO,MAAM,GAAG,GAAI,OAAO,GAAG,QAAgC,CAAC;AAC/D,eAAO,MAAM,GAAG,GAAI,OAAO,GAAG,QAAgC,CAAC;AAC/D,eAAO,MAAM,OAAO,GAAI,OAAO,GAAG,QAAoC,CAAC;AACvE,eAAO,MAAM,MAAM,GAAI,OAAO,GAAG,QAAmC,CAAC;AAErE,eAAO,MAAM,QAAQ;yEACsR,CAAC;;;wEAA4H,CAAC;CADlY,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.platform = exports.native = exports.android = exports.ios = exports.web = exports.isFabric = exports.isWeb = exports.isNative = exports.isAndroid = exports.isIOS = void 0;
4
+ const react_native_1 = require("react-native");
5
+ exports.isIOS = react_native_1.Platform.OS === "ios";
6
+ exports.isAndroid = react_native_1.Platform.OS === "android";
7
+ exports.isNative = true;
8
+ exports.isWeb = false;
9
+ // @ts-ignore
10
+ exports.isFabric = Boolean(global?.nativeFabricUIManager);
11
+ const web = (value) => (exports.isWeb ? value : undefined);
12
+ exports.web = web;
13
+ const ios = (value) => (exports.isIOS ? value : undefined);
14
+ exports.ios = ios;
15
+ const android = (value) => (exports.isAndroid ? value : undefined);
16
+ exports.android = android;
17
+ const native = (value) => (exports.isNative ? value : undefined);
18
+ exports.native = native;
19
+ exports.platform = react_native_1.Platform.select;
20
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../src/platform/index.native.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AAE3B,QAAA,KAAK,GAAG,uBAAQ,CAAC,EAAE,KAAK,KAAK,CAAC;AAC9B,QAAA,SAAS,GAAG,uBAAQ,CAAC,EAAE,KAAK,SAAS,CAAC;AACtC,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,KAAK,GAAG,KAAK,CAAC;AAE3B,aAAa;AACA,QAAA,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AAExD,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,aAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAAlD,QAAA,GAAG,OAA+C;AACxD,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,aAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAAlD,QAAA,GAAG,OAA+C;AACxD,MAAM,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,iBAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAA1D,QAAA,OAAO,WAAmD;AAChE,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,gBAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAAxD,QAAA,MAAM,UAAkD;AAExD,QAAA,QAAQ,GAAG,uBAAQ,CAAC,MAAM,CAAC"}