@tujyane/alf 1.2.1 → 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 +1 -1
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../src/atoms/index.native.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ER,CAAC"}
|
|
@@ -1,119 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../src/atoms/index.native.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,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/semantic.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type ScaleSteps = {
|
|
2
|
-
100: string;
|
|
3
|
-
200: string;
|
|
4
|
-
300: string;
|
|
5
|
-
400: string;
|
|
6
|
-
500: string;
|
|
7
|
-
600: string;
|
|
8
|
-
700: string;
|
|
9
|
-
800: string;
|
|
10
|
-
900: string;
|
|
11
|
-
};
|
|
12
|
-
export type SemanticColors = {
|
|
13
|
-
primary: ScaleSteps;
|
|
14
|
-
success: ScaleSteps;
|
|
15
|
-
error: ScaleSteps;
|
|
16
|
-
warning: ScaleSteps;
|
|
17
|
-
info: ScaleSteps;
|
|
18
|
-
secondary: ScaleSteps;
|
|
19
|
-
};
|
|
20
|
-
export declare const semantic: SemanticColors;
|
|
21
|
-
//# sourceMappingURL=semantic.d.ts.map
|
package/dist/semantic.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,cAmEtB,CAAC"}
|
package/dist/semantic.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.semantic = void 0;
|
|
4
|
-
const palette_1 = require("./palette");
|
|
5
|
-
exports.semantic = {
|
|
6
|
-
primary: {
|
|
7
|
-
100: palette_1.palette.primary_100,
|
|
8
|
-
200: palette_1.palette.primary_200,
|
|
9
|
-
300: palette_1.palette.primary_300,
|
|
10
|
-
400: palette_1.palette.primary_400,
|
|
11
|
-
500: palette_1.palette.primary_500,
|
|
12
|
-
600: palette_1.palette.primary_600,
|
|
13
|
-
700: palette_1.palette.primary_700,
|
|
14
|
-
800: palette_1.palette.primary_800,
|
|
15
|
-
900: palette_1.palette.primary_900,
|
|
16
|
-
},
|
|
17
|
-
success: {
|
|
18
|
-
100: palette_1.palette.positive_100,
|
|
19
|
-
200: palette_1.palette.positive_200,
|
|
20
|
-
300: palette_1.palette.positive_300,
|
|
21
|
-
400: palette_1.palette.positive_400,
|
|
22
|
-
500: palette_1.palette.positive_500,
|
|
23
|
-
600: palette_1.palette.positive_600,
|
|
24
|
-
700: palette_1.palette.positive_700,
|
|
25
|
-
800: palette_1.palette.positive_800,
|
|
26
|
-
900: palette_1.palette.positive_900,
|
|
27
|
-
},
|
|
28
|
-
error: {
|
|
29
|
-
100: palette_1.palette.negative_100,
|
|
30
|
-
200: palette_1.palette.negative_200,
|
|
31
|
-
300: palette_1.palette.negative_300,
|
|
32
|
-
400: palette_1.palette.negative_400,
|
|
33
|
-
500: palette_1.palette.negative_500,
|
|
34
|
-
600: palette_1.palette.negative_600,
|
|
35
|
-
700: palette_1.palette.negative_700,
|
|
36
|
-
800: palette_1.palette.negative_800,
|
|
37
|
-
900: palette_1.palette.negative_900,
|
|
38
|
-
},
|
|
39
|
-
warning: {
|
|
40
|
-
100: palette_1.palette.warning_100,
|
|
41
|
-
200: palette_1.palette.warning_200,
|
|
42
|
-
300: palette_1.palette.warning_300,
|
|
43
|
-
400: palette_1.palette.warning_400,
|
|
44
|
-
500: palette_1.palette.warning_500,
|
|
45
|
-
600: palette_1.palette.warning_600,
|
|
46
|
-
700: palette_1.palette.warning_700,
|
|
47
|
-
800: palette_1.palette.warning_800,
|
|
48
|
-
900: palette_1.palette.warning_900,
|
|
49
|
-
},
|
|
50
|
-
info: {
|
|
51
|
-
100: palette_1.palette.info_100,
|
|
52
|
-
200: palette_1.palette.info_200,
|
|
53
|
-
300: palette_1.palette.info_300,
|
|
54
|
-
400: palette_1.palette.info_400,
|
|
55
|
-
500: palette_1.palette.info_500,
|
|
56
|
-
600: palette_1.palette.info_600,
|
|
57
|
-
700: palette_1.palette.info_700,
|
|
58
|
-
800: palette_1.palette.info_800,
|
|
59
|
-
900: palette_1.palette.info_900,
|
|
60
|
-
},
|
|
61
|
-
secondary: {
|
|
62
|
-
100: palette_1.palette.secondary_100,
|
|
63
|
-
200: palette_1.palette.secondary_200,
|
|
64
|
-
300: palette_1.palette.secondary_300,
|
|
65
|
-
400: palette_1.palette.secondary_400,
|
|
66
|
-
500: palette_1.palette.secondary_500,
|
|
67
|
-
600: palette_1.palette.secondary_600,
|
|
68
|
-
700: palette_1.palette.secondary_700,
|
|
69
|
-
800: palette_1.palette.secondary_800,
|
|
70
|
-
900: palette_1.palette.secondary_900,
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=semantic.js.map
|
package/dist/semantic.js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,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,OAAO,GAAI,CAAC,EACvB,OAAO,SAAS,CAAC,CAAC,CAAC,KAClB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAG9B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.flatten = void 0;
|
|
4
|
-
const flatten = (style) => {
|
|
5
|
-
const defs = [].concat(style);
|
|
6
|
-
return Object.assign({}, ...defs.filter(Boolean).flat());
|
|
7
|
-
};
|
|
8
|
-
exports.flatten = flatten;
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/flatten/index.ts"],"names":[],"mappings":";;;AAEO,MAAM,OAAO,GAAG,CACrB,KAAmB,EACY,EAAE;IACjC,MAAM,IAAI,GAAI,EAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/utils/flatten/index.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,OAAO,2BAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../src/utils/flatten/index.native.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAE7B,QAAA,OAAO,GAAG,yBAAU,CAAC,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/utils/flatten/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,OAAO,2BAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../src/utils/flatten/index.web.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAE7B,QAAA,OAAO,GAAG,yBAAU,CAAC,OAAO,CAAC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
|
|
3
|
-
import * as common from "./common";
|
|
4
|
-
import { ios, isFabric } from "../platform";
|
|
5
|
-
|
|
6
|
-
export const atoms = {
|
|
7
|
-
...common.atoms,
|
|
8
|
-
fixed: {
|
|
9
|
-
position: "absolute",
|
|
10
|
-
},
|
|
11
|
-
sticky: {},
|
|
12
|
-
overflow_auto: {},
|
|
13
|
-
flex_0: {
|
|
14
|
-
flex: 0,
|
|
15
|
-
},
|
|
16
|
-
border: {
|
|
17
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
18
|
-
},
|
|
19
|
-
border_t: {
|
|
20
|
-
borderTopWidth: StyleSheet.hairlineWidth,
|
|
21
|
-
},
|
|
22
|
-
border_b: {
|
|
23
|
-
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
24
|
-
},
|
|
25
|
-
border_l: {
|
|
26
|
-
borderLeftWidth: StyleSheet.hairlineWidth,
|
|
27
|
-
},
|
|
28
|
-
border_r: {
|
|
29
|
-
borderRightWidth: StyleSheet.hairlineWidth,
|
|
30
|
-
},
|
|
31
|
-
border_x: {
|
|
32
|
-
borderLeftWidth: StyleSheet.hairlineWidth,
|
|
33
|
-
borderRightWidth: StyleSheet.hairlineWidth,
|
|
34
|
-
},
|
|
35
|
-
border_y: {
|
|
36
|
-
borderTopWidth: StyleSheet.hairlineWidth,
|
|
37
|
-
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
38
|
-
},
|
|
39
|
-
border_transparent: {
|
|
40
|
-
borderColor: "transparent",
|
|
41
|
-
},
|
|
42
|
-
curve_circular: ios({
|
|
43
|
-
borderCurve: "circular",
|
|
44
|
-
}),
|
|
45
|
-
curve_continuous: ios({
|
|
46
|
-
borderCurve: "continuous",
|
|
47
|
-
}),
|
|
48
|
-
shadow_sm: isFabric
|
|
49
|
-
? {}
|
|
50
|
-
: {
|
|
51
|
-
shadowRadius: 4,
|
|
52
|
-
shadowOpacity: 0.1,
|
|
53
|
-
elevation: 8,
|
|
54
|
-
shadowOffset: {
|
|
55
|
-
width: 0,
|
|
56
|
-
height: 4,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
shadow_md: isFabric
|
|
60
|
-
? {}
|
|
61
|
-
: {
|
|
62
|
-
shadowRadius: 8,
|
|
63
|
-
shadowOpacity: 0.1,
|
|
64
|
-
elevation: 16,
|
|
65
|
-
shadowOffset: {
|
|
66
|
-
width: 0,
|
|
67
|
-
height: 8,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
shadow_lg: isFabric
|
|
71
|
-
? {}
|
|
72
|
-
: {
|
|
73
|
-
shadowRadius: 16,
|
|
74
|
-
shadowOpacity: 0.1,
|
|
75
|
-
elevation: 32,
|
|
76
|
-
shadowOffset: {
|
|
77
|
-
width: 0,
|
|
78
|
-
height: 16,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
inline: {},
|
|
82
|
-
block: {},
|
|
83
|
-
pointer: {},
|
|
84
|
-
} as const;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Platform } from "react-native";
|
|
2
|
-
|
|
3
|
-
export const isIOS = Platform.OS === "ios";
|
|
4
|
-
export const isAndroid = Platform.OS === "android";
|
|
5
|
-
export const isNative = true;
|
|
6
|
-
export const isWeb = false;
|
|
7
|
-
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
export const isFabric = Boolean(global?.nativeFabricUIManager);
|
|
10
|
-
|
|
11
|
-
export const web = (value: any) => (isWeb ? value : undefined);
|
|
12
|
-
export const ios = (value: any) => (isIOS ? value : undefined);
|
|
13
|
-
export const android = (value: any) => (isAndroid ? value : undefined);
|
|
14
|
-
export const native = (value: any) => (isNative ? value : undefined);
|
|
15
|
-
|
|
16
|
-
export const platform = Platform.select;
|
package/src/semantic.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { palette } from "./palette";
|
|
2
|
-
|
|
3
|
-
export type ScaleSteps = {
|
|
4
|
-
100: string;
|
|
5
|
-
200: string;
|
|
6
|
-
300: string;
|
|
7
|
-
400: string;
|
|
8
|
-
500: string;
|
|
9
|
-
600: string;
|
|
10
|
-
700: string;
|
|
11
|
-
800: string;
|
|
12
|
-
900: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type SemanticColors = {
|
|
16
|
-
primary: ScaleSteps;
|
|
17
|
-
success: ScaleSteps;
|
|
18
|
-
error: ScaleSteps;
|
|
19
|
-
warning: ScaleSteps;
|
|
20
|
-
info: ScaleSteps;
|
|
21
|
-
secondary: ScaleSteps;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const semantic: SemanticColors = {
|
|
25
|
-
primary: {
|
|
26
|
-
100: palette.primary_100,
|
|
27
|
-
200: palette.primary_200,
|
|
28
|
-
300: palette.primary_300,
|
|
29
|
-
400: palette.primary_400,
|
|
30
|
-
500: palette.primary_500,
|
|
31
|
-
600: palette.primary_600,
|
|
32
|
-
700: palette.primary_700,
|
|
33
|
-
800: palette.primary_800,
|
|
34
|
-
900: palette.primary_900,
|
|
35
|
-
},
|
|
36
|
-
success: {
|
|
37
|
-
100: palette.positive_100,
|
|
38
|
-
200: palette.positive_200,
|
|
39
|
-
300: palette.positive_300,
|
|
40
|
-
400: palette.positive_400,
|
|
41
|
-
500: palette.positive_500,
|
|
42
|
-
600: palette.positive_600,
|
|
43
|
-
700: palette.positive_700,
|
|
44
|
-
800: palette.positive_800,
|
|
45
|
-
900: palette.positive_900,
|
|
46
|
-
},
|
|
47
|
-
error: {
|
|
48
|
-
100: palette.negative_100,
|
|
49
|
-
200: palette.negative_200,
|
|
50
|
-
300: palette.negative_300,
|
|
51
|
-
400: palette.negative_400,
|
|
52
|
-
500: palette.negative_500,
|
|
53
|
-
600: palette.negative_600,
|
|
54
|
-
700: palette.negative_700,
|
|
55
|
-
800: palette.negative_800,
|
|
56
|
-
900: palette.negative_900,
|
|
57
|
-
},
|
|
58
|
-
warning: {
|
|
59
|
-
100: palette.warning_100,
|
|
60
|
-
200: palette.warning_200,
|
|
61
|
-
300: palette.warning_300,
|
|
62
|
-
400: palette.warning_400,
|
|
63
|
-
500: palette.warning_500,
|
|
64
|
-
600: palette.warning_600,
|
|
65
|
-
700: palette.warning_700,
|
|
66
|
-
800: palette.warning_800,
|
|
67
|
-
900: palette.warning_900,
|
|
68
|
-
},
|
|
69
|
-
info: {
|
|
70
|
-
100: palette.info_100,
|
|
71
|
-
200: palette.info_200,
|
|
72
|
-
300: palette.info_300,
|
|
73
|
-
400: palette.info_400,
|
|
74
|
-
500: palette.info_500,
|
|
75
|
-
600: palette.info_600,
|
|
76
|
-
700: palette.info_700,
|
|
77
|
-
800: palette.info_800,
|
|
78
|
-
900: palette.info_900,
|
|
79
|
-
},
|
|
80
|
-
secondary: {
|
|
81
|
-
100: palette.secondary_100,
|
|
82
|
-
200: palette.secondary_200,
|
|
83
|
-
300: palette.secondary_300,
|
|
84
|
-
400: palette.secondary_400,
|
|
85
|
-
500: palette.secondary_500,
|
|
86
|
-
600: palette.secondary_600,
|
|
87
|
-
700: palette.secondary_700,
|
|
88
|
-
800: palette.secondary_800,
|
|
89
|
-
900: palette.secondary_900,
|
|
90
|
-
},
|
|
91
|
-
};
|