@tujyane/alf 1.2.0 → 2.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.
- package/dist/atoms/common.d.ts +3 -33
- package/dist/atoms/common.d.ts.map +1 -1
- package/dist/atoms/common.js +3 -36
- package/dist/atoms/common.js.map +1 -1
- package/dist/atoms/index.d.ts +999 -1
- package/dist/atoms/index.d.ts.map +1 -1
- package/dist/atoms/index.js +103 -4
- package/dist/atoms/index.js.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/palette.d.ts +76 -33
- package/dist/palette.d.ts.map +1 -1
- package/dist/palette.js +119 -75
- package/dist/palette.js.map +1 -1
- package/dist/platform/index.d.ts +9 -40
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js +6 -44
- package/dist/platform/index.js.map +1 -1
- package/dist/themes.d.ts +109 -0
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +123 -0
- package/dist/themes.js.map +1 -0
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -0
- package/dist/tokens.js.map +1 -1
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/leading.d.ts +1 -2
- package/dist/utils/leading.d.ts.map +1 -1
- package/dist/utils/leading.js +5 -14
- package/dist/utils/leading.js.map +1 -1
- package/dist/utils/select.d.ts +7 -0
- package/dist/utils/select.d.ts.map +1 -0
- package/dist/utils/select.js +14 -0
- package/dist/utils/select.js.map +1 -0
- package/package.json +3 -3
- package/src/atoms/common.ts +3 -38
- package/src/atoms/index.ts +82 -1
- package/src/index.tsx +31 -1
- package/src/palette.ts +140 -111
- package/src/platform/index.ts +6 -46
- package/src/themes.ts +231 -0
- package/src/tokens.ts +1 -0
- package/src/utils/index.ts +5 -1
- package/src/utils/leading.ts +5 -13
- package/src/utils/select.ts +17 -0
- package/dist/atoms/index.native.d.ts +0 -1020
- package/dist/atoms/index.native.d.ts.map +0 -1
- package/dist/atoms/index.native.js +0 -119
- package/dist/atoms/index.native.js.map +0 -1
- package/dist/platform/index.native.d.ts +0 -16
- package/dist/platform/index.native.d.ts.map +0 -1
- package/dist/platform/index.native.js +0 -20
- package/dist/platform/index.native.js.map +0 -1
- package/dist/semantic.d.ts +0 -21
- package/dist/semantic.d.ts.map +0 -1
- package/dist/semantic.js +0 -73
- package/dist/semantic.js.map +0 -1
- package/dist/utils/flatten/index.d.ts +0 -3
- package/dist/utils/flatten/index.d.ts.map +0 -1
- package/dist/utils/flatten/index.js +0 -9
- package/dist/utils/flatten/index.js.map +0 -1
- package/dist/utils/flatten/index.native.d.ts +0 -3
- package/dist/utils/flatten/index.native.d.ts.map +0 -1
- package/dist/utils/flatten/index.native.js +0 -6
- package/dist/utils/flatten/index.native.js.map +0 -1
- package/dist/utils/flatten/index.web.d.ts +0 -3
- package/dist/utils/flatten/index.web.d.ts.map +0 -1
- package/dist/utils/flatten/index.web.js +0 -6
- package/dist/utils/flatten/index.web.js.map +0 -1
- package/src/atoms/index.native.ts +0 -84
- package/src/platform/index.native.ts +0 -16
- package/src/semantic.ts +0 -91
- package/src/utils/flatten/index.native.ts +0 -3
- package/src/utils/flatten/index.ts +0 -8
- package/src/utils/flatten/index.web.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/atoms/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/atoms/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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m[k];
|
|
12
12
|
}));
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
}
|
|
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
|
+
})();
|
|
16
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
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
|
+
flex_0: {
|
|
46
|
+
flex: 0,
|
|
47
|
+
},
|
|
48
|
+
border: {
|
|
49
|
+
borderWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
50
|
+
},
|
|
51
|
+
border_t: {
|
|
52
|
+
borderTopWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
53
|
+
},
|
|
54
|
+
border_b: {
|
|
55
|
+
borderBottomWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
56
|
+
},
|
|
57
|
+
border_l: {
|
|
58
|
+
borderLeftWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
59
|
+
},
|
|
60
|
+
border_r: {
|
|
61
|
+
borderRightWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
62
|
+
},
|
|
63
|
+
border_x: {
|
|
64
|
+
borderLeftWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
65
|
+
borderRightWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
66
|
+
},
|
|
67
|
+
border_y: {
|
|
68
|
+
borderTopWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
69
|
+
borderBottomWidth: react_native_1.StyleSheet.hairlineWidth,
|
|
70
|
+
},
|
|
71
|
+
border_transparent: {
|
|
72
|
+
borderColor: "transparent",
|
|
73
|
+
},
|
|
74
|
+
curve_circular: (0, platform_1.ios)({
|
|
75
|
+
borderCurve: "circular",
|
|
76
|
+
}),
|
|
77
|
+
curve_continuous: (0, platform_1.ios)({
|
|
78
|
+
borderCurve: "continuous",
|
|
79
|
+
}),
|
|
80
|
+
shadow_sm: platform_1.isFabric
|
|
81
|
+
? {}
|
|
82
|
+
: {
|
|
83
|
+
shadowRadius: 4,
|
|
84
|
+
shadowOpacity: 0.1,
|
|
85
|
+
elevation: 8,
|
|
86
|
+
shadowOffset: {
|
|
87
|
+
width: 0,
|
|
88
|
+
height: 4,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
shadow_md: platform_1.isFabric
|
|
92
|
+
? {}
|
|
93
|
+
: {
|
|
94
|
+
shadowRadius: 8,
|
|
95
|
+
shadowOpacity: 0.1,
|
|
96
|
+
elevation: 16,
|
|
97
|
+
shadowOffset: {
|
|
98
|
+
width: 0,
|
|
99
|
+
height: 8,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
shadow_lg: platform_1.isFabric
|
|
103
|
+
? {}
|
|
104
|
+
: {
|
|
105
|
+
shadowRadius: 16,
|
|
106
|
+
shadowOpacity: 0.1,
|
|
107
|
+
elevation: 32,
|
|
108
|
+
shadowOffset: {
|
|
109
|
+
width: 0,
|
|
110
|
+
height: 16,
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
inline: {},
|
|
114
|
+
block: {},
|
|
115
|
+
pointer: {},
|
|
116
|
+
};
|
|
18
117
|
//# sourceMappingURL=index.js.map
|
package/dist/atoms/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/atoms/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/atoms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,iDAAmC;AACnC,0CAA4C;AAE/B,QAAA,KAAK,GAAG;IACnB,GAAG,MAAM,CAAC,KAAK;IACf,KAAK,EAAE;QACL,QAAQ,EAAE,UAAU;KACrB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC;KACR;IACD,MAAM,EAAE;QACN,WAAW,EAAE,yBAAU,CAAC,aAAa;KACtC;IACD,QAAQ,EAAE;QACR,cAAc,EAAE,yBAAU,CAAC,aAAa;KACzC;IACD,QAAQ,EAAE;QACR,iBAAiB,EAAE,yBAAU,CAAC,aAAa;KAC5C;IACD,QAAQ,EAAE;QACR,eAAe,EAAE,yBAAU,CAAC,aAAa;KAC1C;IACD,QAAQ,EAAE;QACR,gBAAgB,EAAE,yBAAU,CAAC,aAAa;KAC3C;IACD,QAAQ,EAAE;QACR,eAAe,EAAE,yBAAU,CAAC,aAAa;QACzC,gBAAgB,EAAE,yBAAU,CAAC,aAAa;KAC3C;IACD,QAAQ,EAAE;QACR,cAAc,EAAE,yBAAU,CAAC,aAAa;QACxC,iBAAiB,EAAE,yBAAU,CAAC,aAAa;KAC5C;IACD,kBAAkB,EAAE;QAClB,WAAW,EAAE,aAAa;KAC3B;IACD,cAAc,EAAE,IAAA,cAAG,EAAC;QAClB,WAAW,EAAE,UAAU;KACxB,CAAC;IACF,gBAAgB,EAAE,IAAA,cAAG,EAAC;QACpB,WAAW,EAAE,YAAY;KAC1B,CAAC;IACF,SAAS,EAAE,mBAAQ;QACjB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACE,YAAY,EAAE,CAAC;YACf,aAAa,EAAE,GAAG;YAClB,SAAS,EAAE,CAAC;YACZ,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,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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type StyleProp, type TextStyle, type ViewStyle } from "react-native";
|
|
2
|
+
import { type Theme } from "./themes";
|
|
2
3
|
export * from "./atoms";
|
|
3
4
|
export * from "./palette";
|
|
4
|
-
export * from "./
|
|
5
|
+
export * from "./themes";
|
|
5
6
|
export * from "./platform";
|
|
6
7
|
export * as tokens from "./tokens";
|
|
7
8
|
export * as utils from "./utils";
|
|
@@ -11,4 +12,12 @@ export type TextStyleProp = {
|
|
|
11
12
|
export type ViewStyleProp = {
|
|
12
13
|
style?: StyleProp<ViewStyle>;
|
|
13
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;
|
|
14
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +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;
|
|
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
CHANGED
|
@@ -36,11 +36,29 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.utils = exports.tokens = void 0;
|
|
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");
|
|
40
45
|
__exportStar(require("./atoms"), exports);
|
|
41
46
|
__exportStar(require("./palette"), exports);
|
|
42
|
-
__exportStar(require("./
|
|
47
|
+
__exportStar(require("./themes"), exports);
|
|
43
48
|
__exportStar(require("./platform"), exports);
|
|
44
49
|
exports.tokens = __importStar(require("./tokens"));
|
|
45
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
|
+
}
|
|
46
64
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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"}
|
package/dist/palette.d.ts
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
export type Palette = {
|
|
2
2
|
white: string;
|
|
3
3
|
black: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
contrast_0: string;
|
|
5
|
+
contrast_25: string;
|
|
6
|
+
contrast_50: string;
|
|
7
|
+
contrast_100: string;
|
|
8
|
+
contrast_200: string;
|
|
9
|
+
contrast_300: string;
|
|
10
|
+
contrast_400: string;
|
|
11
|
+
contrast_500: string;
|
|
12
|
+
contrast_600: string;
|
|
13
|
+
contrast_700: string;
|
|
14
|
+
contrast_800: string;
|
|
15
|
+
contrast_900: string;
|
|
16
|
+
contrast_950: string;
|
|
17
|
+
contrast_975: string;
|
|
18
|
+
contrast_1000: string;
|
|
9
19
|
primary_25: string;
|
|
10
20
|
primary_50: string;
|
|
11
21
|
primary_100: string;
|
|
@@ -17,6 +27,67 @@ export type Palette = {
|
|
|
17
27
|
primary_700: string;
|
|
18
28
|
primary_800: string;
|
|
19
29
|
primary_900: string;
|
|
30
|
+
primary_950: string;
|
|
31
|
+
primary_975: string;
|
|
32
|
+
positive_25: string;
|
|
33
|
+
positive_50: string;
|
|
34
|
+
positive_100: string;
|
|
35
|
+
positive_200: string;
|
|
36
|
+
positive_300: string;
|
|
37
|
+
positive_400: string;
|
|
38
|
+
positive_500: string;
|
|
39
|
+
positive_600: string;
|
|
40
|
+
positive_700: string;
|
|
41
|
+
positive_800: string;
|
|
42
|
+
positive_900: string;
|
|
43
|
+
positive_950: string;
|
|
44
|
+
positive_975: string;
|
|
45
|
+
negative_25: string;
|
|
46
|
+
negative_50: string;
|
|
47
|
+
negative_100: string;
|
|
48
|
+
negative_200: string;
|
|
49
|
+
negative_300: string;
|
|
50
|
+
negative_400: string;
|
|
51
|
+
negative_500: string;
|
|
52
|
+
negative_600: string;
|
|
53
|
+
negative_700: string;
|
|
54
|
+
negative_800: string;
|
|
55
|
+
negative_900: string;
|
|
56
|
+
negative_950: string;
|
|
57
|
+
negative_975: string;
|
|
58
|
+
};
|
|
59
|
+
export declare const DEFAULT_PALETTE: Palette;
|
|
60
|
+
export declare function invertPalette(palette: Palette): {
|
|
61
|
+
white: string;
|
|
62
|
+
black: string;
|
|
63
|
+
contrast_0: string;
|
|
64
|
+
contrast_25: string;
|
|
65
|
+
contrast_50: string;
|
|
66
|
+
contrast_100: string;
|
|
67
|
+
contrast_200: string;
|
|
68
|
+
contrast_300: string;
|
|
69
|
+
contrast_400: string;
|
|
70
|
+
contrast_500: string;
|
|
71
|
+
contrast_600: string;
|
|
72
|
+
contrast_700: string;
|
|
73
|
+
contrast_800: string;
|
|
74
|
+
contrast_900: string;
|
|
75
|
+
contrast_950: string;
|
|
76
|
+
contrast_975: string;
|
|
77
|
+
contrast_1000: string;
|
|
78
|
+
primary_25: string;
|
|
79
|
+
primary_50: string;
|
|
80
|
+
primary_100: string;
|
|
81
|
+
primary_200: string;
|
|
82
|
+
primary_300: string;
|
|
83
|
+
primary_400: string;
|
|
84
|
+
primary_500: string;
|
|
85
|
+
primary_600: string;
|
|
86
|
+
primary_700: string;
|
|
87
|
+
primary_800: string;
|
|
88
|
+
primary_900: string;
|
|
89
|
+
primary_950: string;
|
|
90
|
+
primary_975: string;
|
|
20
91
|
positive_25: string;
|
|
21
92
|
positive_50: string;
|
|
22
93
|
positive_100: string;
|
|
@@ -43,33 +114,5 @@ export type Palette = {
|
|
|
43
114
|
negative_900: string;
|
|
44
115
|
negative_950: string;
|
|
45
116
|
negative_975: string;
|
|
46
|
-
warning_100: string;
|
|
47
|
-
warning_200: string;
|
|
48
|
-
warning_300: string;
|
|
49
|
-
warning_400: string;
|
|
50
|
-
warning_500: string;
|
|
51
|
-
warning_600: string;
|
|
52
|
-
warning_700: string;
|
|
53
|
-
warning_800: string;
|
|
54
|
-
warning_900: string;
|
|
55
|
-
info_100: string;
|
|
56
|
-
info_200: string;
|
|
57
|
-
info_300: string;
|
|
58
|
-
info_400: string;
|
|
59
|
-
info_500: string;
|
|
60
|
-
info_600: string;
|
|
61
|
-
info_700: string;
|
|
62
|
-
info_800: string;
|
|
63
|
-
info_900: string;
|
|
64
|
-
secondary_100: string;
|
|
65
|
-
secondary_200: string;
|
|
66
|
-
secondary_300: string;
|
|
67
|
-
secondary_400: string;
|
|
68
|
-
secondary_500: string;
|
|
69
|
-
secondary_600: string;
|
|
70
|
-
secondary_700: string;
|
|
71
|
-
secondary_800: string;
|
|
72
|
-
secondary_900: string;
|
|
73
117
|
};
|
|
74
|
-
export declare const palette: Palette;
|
|
75
118
|
//# sourceMappingURL=palette.d.ts.map
|
package/dist/palette.d.ts.map
CHANGED
|
@@ -1 +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;
|
|
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;IAEd,UAAU,EAAE,MAAM,CAAC;IACnB,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;IACrB,aAAa,EAAE,MAAM,CAAC;IAEtB,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,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1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.DEFAULT_PALETTE = void 0;
|
|
4
|
+
exports.invertPalette = invertPalette;
|
|
5
|
+
const STATIC_VALUES = {
|
|
5
6
|
white: "#FFFFFF",
|
|
6
7
|
black: "#000000",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
8
|
+
};
|
|
9
|
+
exports.DEFAULT_PALETTE = {
|
|
10
|
+
white: STATIC_VALUES.white,
|
|
11
|
+
black: STATIC_VALUES.black,
|
|
12
|
+
contrast_0: "#FFFFFF",
|
|
13
|
+
contrast_25: "#F9FAFB",
|
|
14
|
+
contrast_50: "#EFF2F6",
|
|
15
|
+
contrast_100: "#DCE2EA",
|
|
16
|
+
contrast_200: "#C0CAD8",
|
|
17
|
+
contrast_300: "#A5B2C5",
|
|
18
|
+
contrast_400: "#8798B0",
|
|
19
|
+
contrast_500: "#667B99",
|
|
20
|
+
contrast_600: "#526580",
|
|
21
|
+
contrast_700: "#405168",
|
|
22
|
+
contrast_800: "#313F54",
|
|
23
|
+
contrast_900: "#232E3E",
|
|
24
|
+
contrast_950: "#19222E",
|
|
25
|
+
contrast_975: "#111822",
|
|
26
|
+
contrast_1000: "#000000",
|
|
27
|
+
primary_25: "#F5F9FF",
|
|
28
|
+
primary_50: "#edf1fb",
|
|
29
|
+
primary_100: "#dae2f8",
|
|
30
|
+
primary_200: "#b5c6f1",
|
|
31
|
+
primary_300: "#8dabeb",
|
|
32
|
+
primary_400: "#5f91e4",
|
|
33
|
+
primary_500: "#4577c4",
|
|
34
|
+
primary_600: "#365e9d",
|
|
35
|
+
primary_700: "#274778",
|
|
36
|
+
primary_800: "#193054",
|
|
37
|
+
primary_900: "#0c1b34",
|
|
38
|
+
primary_950: "#061123",
|
|
39
|
+
primary_975: "#061123",
|
|
40
|
+
positive_25: "#ECFEF5",
|
|
41
|
+
positive_50: "#D3FDE8",
|
|
42
|
+
positive_100: "#A3FACF",
|
|
43
|
+
positive_200: "#6AF6B0",
|
|
44
|
+
positive_300: "#2CF28F",
|
|
45
|
+
positive_400: "#0DD370",
|
|
46
|
+
positive_500: "#09B35E",
|
|
47
|
+
positive_600: "#04904A",
|
|
48
|
+
positive_700: "#036D38",
|
|
49
|
+
positive_800: "#04522B",
|
|
50
|
+
positive_900: "#033F21",
|
|
51
|
+
positive_950: "#032A17",
|
|
52
|
+
positive_975: "#021D0F",
|
|
39
53
|
negative_25: "#FFF5F7",
|
|
40
|
-
negative_50: "#
|
|
41
|
-
negative_100: "#
|
|
42
|
-
negative_200: "#
|
|
43
|
-
negative_300: "#
|
|
44
|
-
negative_400: "#
|
|
45
|
-
negative_500: "#
|
|
46
|
-
negative_600: "#
|
|
47
|
-
negative_700: "#
|
|
48
|
-
negative_800: "#
|
|
49
|
-
negative_900: "#
|
|
50
|
-
negative_950: "#
|
|
54
|
+
negative_50: "#FEE7EC",
|
|
55
|
+
negative_100: "#FDD3DD",
|
|
56
|
+
negative_200: "#FBBBCA",
|
|
57
|
+
negative_300: "#F891A9",
|
|
58
|
+
negative_400: "#F65A7F",
|
|
59
|
+
negative_500: "#E91646",
|
|
60
|
+
negative_600: "#CA123D",
|
|
61
|
+
negative_700: "#A71134",
|
|
62
|
+
negative_800: "#7F0B26",
|
|
63
|
+
negative_900: "#5F071C",
|
|
64
|
+
negative_950: "#430413",
|
|
51
65
|
negative_975: "#30030D",
|
|
52
|
-
// Warning
|
|
53
|
-
warning_100: "#FFF8D7",
|
|
54
|
-
warning_200: "#FFEFB0",
|
|
55
|
-
warning_300: "#FFE488",
|
|
56
|
-
warning_400: "#FFD96B",
|
|
57
|
-
warning_500: "#FFC73A",
|
|
58
|
-
warning_600: "#DBA32A",
|
|
59
|
-
warning_700: "#B7821D",
|
|
60
|
-
warning_800: "#936312",
|
|
61
|
-
warning_900: "#7A4D0B",
|
|
62
|
-
// Info
|
|
63
|
-
info_100: "#DCF3FF",
|
|
64
|
-
info_200: "#BAE5FF",
|
|
65
|
-
info_300: "#98D3FF",
|
|
66
|
-
info_400: "#7EC2FF",
|
|
67
|
-
info_500: "#54A6FF",
|
|
68
|
-
info_600: "#3D81DB",
|
|
69
|
-
info_700: "#2A60B7",
|
|
70
|
-
info_800: "#1A4393",
|
|
71
|
-
info_900: "#102E7A",
|
|
72
|
-
// Secondary
|
|
73
|
-
secondary_100: "#E0E9F4",
|
|
74
|
-
secondary_200: "#C3D4E9",
|
|
75
|
-
secondary_300: "#90A3BF",
|
|
76
|
-
secondary_400: "#596780",
|
|
77
|
-
secondary_500: "#1A202C",
|
|
78
|
-
secondary_600: "#131825",
|
|
79
|
-
secondary_700: "#0D121F",
|
|
80
|
-
secondary_800: "#080C19",
|
|
81
|
-
secondary_900: "#040815",
|
|
82
66
|
};
|
|
67
|
+
function invertPalette(palette) {
|
|
68
|
+
return {
|
|
69
|
+
white: palette.white,
|
|
70
|
+
black: palette.black,
|
|
71
|
+
contrast_0: palette.contrast_1000,
|
|
72
|
+
contrast_25: palette.contrast_975,
|
|
73
|
+
contrast_50: palette.contrast_950,
|
|
74
|
+
contrast_100: palette.contrast_900,
|
|
75
|
+
contrast_200: palette.contrast_800,
|
|
76
|
+
contrast_300: palette.contrast_700,
|
|
77
|
+
contrast_400: palette.contrast_600,
|
|
78
|
+
contrast_500: palette.contrast_500,
|
|
79
|
+
contrast_600: palette.contrast_400,
|
|
80
|
+
contrast_700: palette.contrast_300,
|
|
81
|
+
contrast_800: palette.contrast_200,
|
|
82
|
+
contrast_900: palette.contrast_100,
|
|
83
|
+
contrast_950: palette.contrast_50,
|
|
84
|
+
contrast_975: palette.contrast_25,
|
|
85
|
+
contrast_1000: palette.contrast_0,
|
|
86
|
+
primary_25: palette.primary_975,
|
|
87
|
+
primary_50: palette.primary_950,
|
|
88
|
+
primary_100: palette.primary_900,
|
|
89
|
+
primary_200: palette.primary_800,
|
|
90
|
+
primary_300: palette.primary_700,
|
|
91
|
+
primary_400: palette.primary_600,
|
|
92
|
+
primary_500: palette.primary_500,
|
|
93
|
+
primary_600: palette.primary_400,
|
|
94
|
+
primary_700: palette.primary_300,
|
|
95
|
+
primary_800: palette.primary_200,
|
|
96
|
+
primary_900: palette.primary_100,
|
|
97
|
+
primary_950: palette.primary_50,
|
|
98
|
+
primary_975: palette.primary_25,
|
|
99
|
+
positive_25: palette.positive_975,
|
|
100
|
+
positive_50: palette.positive_950,
|
|
101
|
+
positive_100: palette.positive_900,
|
|
102
|
+
positive_200: palette.positive_800,
|
|
103
|
+
positive_300: palette.positive_700,
|
|
104
|
+
positive_400: palette.positive_600,
|
|
105
|
+
positive_500: palette.positive_500,
|
|
106
|
+
positive_600: palette.positive_400,
|
|
107
|
+
positive_700: palette.positive_300,
|
|
108
|
+
positive_800: palette.positive_200,
|
|
109
|
+
positive_900: palette.positive_100,
|
|
110
|
+
positive_950: palette.positive_50,
|
|
111
|
+
positive_975: palette.positive_25,
|
|
112
|
+
negative_25: palette.negative_975,
|
|
113
|
+
negative_50: palette.negative_950,
|
|
114
|
+
negative_100: palette.negative_900,
|
|
115
|
+
negative_200: palette.negative_800,
|
|
116
|
+
negative_300: palette.negative_700,
|
|
117
|
+
negative_400: palette.negative_600,
|
|
118
|
+
negative_500: palette.negative_500,
|
|
119
|
+
negative_600: palette.negative_400,
|
|
120
|
+
negative_700: palette.negative_300,
|
|
121
|
+
negative_800: palette.negative_200,
|
|
122
|
+
negative_900: palette.negative_100,
|
|
123
|
+
negative_950: palette.negative_50,
|
|
124
|
+
negative_975: palette.negative_25,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
83
127
|
//# sourceMappingURL=palette.js.map
|
package/dist/palette.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.js","sourceRoot":"","sources":["../src/palette.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"palette.js","sourceRoot":"","sources":["../src/palette.ts"],"names":[],"mappings":";;;AAmIA,sCA+DC;AAnID,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEW,QAAA,eAAe,GAAY;IACtC,KAAK,EAAE,aAAa,CAAC,KAAK;IAC1B,KAAK,EAAE,aAAa,CAAC,KAAK;IAE1B,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;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;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,aAAa,EAAE,SAAS;IAExB,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;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IAEtB,WAAW,EAAE,SAAS;IACt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AAY;QAClC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,YAAY,EAAE,OAAO,CAAC,WAAW;QACjC,YAAY,EAAE,OAAO,CAAC,WAAW;KAClC,CAAC;AACJ,CAAC"}
|
package/dist/platform/index.d.ts
CHANGED
|
@@ -1,45 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const isNative = false;
|
|
5
|
-
export declare const isWeb = true;
|
|
1
|
+
export declare const isIOS: boolean;
|
|
2
|
+
export declare const isAndroid: boolean;
|
|
3
|
+
export declare const isNative = true;
|
|
6
4
|
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
5
|
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
6
|
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
7
|
export declare const native: (value: any) => any;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
8
|
+
export declare const platform: {
|
|
9
|
+
<T>(specifics: ({ [platform in import("react-native").PlatformOSType]?: T; } & {
|
|
10
|
+
default: T;
|
|
11
|
+
}) | { [platform in import("react-native").PlatformOSType]: T; }): T;
|
|
12
|
+
<T>(specifics: { [platform in import("react-native").PlatformOSType]?: T; }): T | undefined;
|
|
13
|
+
};
|
|
45
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,SAAwB,CAAC;AAC3C,eAAO,MAAM,SAAS,SAA4B,CAAC;AACnD,eAAO,MAAM,QAAQ,OAAO,CAAC;AAG7B,eAAO,MAAM,QAAQ,SAAyC,CAAC;AAE/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;yEACkX,CAAC;;;wEAA4H,CAAC;CAD9d,CAAC"}
|