@neo4j-ndl/base 0.1.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.
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __assign = (this && this.__assign) || function () {
23
+ __assign = Object.assign || function(t) {
24
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
25
+ s = arguments[i];
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
27
+ t[p] = s[p];
28
+ }
29
+ return t;
30
+ };
31
+ return __assign.apply(this, arguments);
32
+ };
33
+ var tokens = require('./tokens/js/tokens');
34
+ module.exports = {
35
+ colors: __assign(__assign({}, tokens.colors), tokens.palette),
36
+ borderRadius: tokens.borderRadius,
37
+ boxShadow: tokens.boxShadow,
38
+ fontFamily: {
39
+ sans: ['"Nunito Sans"'],
40
+ mono: ['"Fira Code"']
41
+ },
42
+ fontSize: {
43
+ h1: [
44
+ tokens.font.size.h1,
45
+ {
46
+ letterSpacing: '-0.25px',
47
+ lineHeight: '60px',
48
+ fontWeight: tokens.font.weight.bold
49
+ },
50
+ ],
51
+ h2: [
52
+ tokens.font.size.h2,
53
+ {
54
+ letterSpacing: '0px',
55
+ lineHeight: '48px',
56
+ fontWeight: tokens.font.weight.bold
57
+ },
58
+ ],
59
+ h3: [
60
+ tokens.font.size.h3,
61
+ {
62
+ letterSpacing: '0.25px',
63
+ lineHeight: '40px',
64
+ fontWeight: tokens.font.weight.bold
65
+ },
66
+ ],
67
+ h4: [
68
+ tokens.font.size.h4,
69
+ {
70
+ letterSpacing: '0.25px',
71
+ lineHeight: '32px',
72
+ fontWeight: tokens.font.weight.bold
73
+ },
74
+ ],
75
+ h5: [
76
+ tokens.font.size.h5,
77
+ {
78
+ letterSpacing: '0.25px',
79
+ lineHeight: '28px',
80
+ fontWeight: tokens.font.weight.bold
81
+ },
82
+ ],
83
+ h6: [
84
+ tokens.font.size.h6,
85
+ {
86
+ letterSpacing: '0.25px',
87
+ lineHeight: '24px',
88
+ fontWeight: tokens.font.weight.bold
89
+ },
90
+ ],
91
+ 'subheading-large': [
92
+ tokens.font.size['subheading-large'],
93
+ {
94
+ letterSpacing: '0.25px',
95
+ lineHeight: '28px',
96
+ fontWeight: tokens.font.weight.semibold
97
+ },
98
+ ],
99
+ 'subheading-medium': [
100
+ tokens.font.size['subheading-medium'],
101
+ {
102
+ letterSpacing: '0.25px',
103
+ lineHeight: '24px',
104
+ fontWeight: tokens.font.weight.semibold
105
+ },
106
+ ],
107
+ 'subheading-small': [
108
+ tokens.font.size['subheading-small'],
109
+ {
110
+ letterSpacing: '0px',
111
+ lineHeight: '20px',
112
+ fontWeight: tokens.font.weight.semibold
113
+ },
114
+ ],
115
+ 'body-large': [
116
+ tokens.font.size['body-large'],
117
+ {
118
+ letterSpacing: '0px',
119
+ lineHeight: '24px',
120
+ fontWeight: tokens.font.weight.normal
121
+ },
122
+ ],
123
+ 'body-medium': [
124
+ tokens.font.size['body-medium'],
125
+ {
126
+ letterSpacing: '0px',
127
+ lineHeight: '20px',
128
+ fontWeight: tokens.font.weight.normal
129
+ },
130
+ ],
131
+ 'body-small': [
132
+ tokens.font.size['body-small'],
133
+ {
134
+ letterSpacing: '0px',
135
+ lineHeight: '20px',
136
+ fontWeight: tokens.font.weight.normal
137
+ },
138
+ ],
139
+ code: [
140
+ tokens.font.size['code'],
141
+ {
142
+ letterSpacing: '0px',
143
+ lineHeight: '20px',
144
+ fontWeight: tokens.font.weight.normal
145
+ },
146
+ ],
147
+ label: [
148
+ tokens.font.size['label'],
149
+ {
150
+ letterSpacing: '0px',
151
+ lineHeight: '20px',
152
+ fontWeight: tokens.font.weight.bold
153
+ },
154
+ ]
155
+ },
156
+ screens: {
157
+ sm: '640px',
158
+ md: '768px',
159
+ lg: '1024px'
160
+ }
161
+ };
162
+ //# sourceMappingURL=tailwindConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwindConfig.js","sourceRoot":"","sources":["../src/tailwindConfig.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,IAAM,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAE7C,MAAM,CAAC,OAAO,GAAG;IACf,MAAM,wBAAO,MAAM,CAAC,MAAM,GAAK,MAAM,CAAC,OAAO,CAAE;IAC/C,YAAY,EAAE,MAAM,CAAC,YAAY;IACjC,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,UAAU,EAAE;QACV,IAAI,EAAE,CAAC,eAAe,CAAC;QACvB,IAAI,EAAE,CAAC,aAAa,CAAC;KACtB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACnB;gBACE,aAAa,EAAE,SAAS;gBACxB,UAAU,EAAE,MAAM;gBAClB,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;aACpC;SACF;QACD,EAAE,EAAE;YACF,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACnB;gBACE,aAAa,EAAE,KAAK;gBACpB,UAAU,EAAE,MAAM;gBAClB,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;aACpC;SACF;QACD,EAA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ACb;CACF,CAAC"}
@@ -0,0 +1,147 @@
1
+ /**
2
+ * Do not edit directly
3
+ * Generated on Tue, 01 Mar 2022 17:09:29 GMT
4
+ */
5
+
6
+ :root {
7
+ --border-radius-sm: 4px;
8
+ --border-radius-md: 6px;
9
+ --border-radius-lg: 8px;
10
+ --border-radius-xl: 10px;
11
+ --border-radius-1xl: 12px;
12
+ --border-radius-2xl: 14px;
13
+ --border-radius-3xl: 16px;
14
+ --border-radius-4xl: 18px;
15
+ --border-radius-5xl: 20px;
16
+ --border-radius-full: 9999px;;
17
+ --colors-primary-10: 230, 248, 255 /* #e6f8ff */; /* lighest shade of brand primary color */
18
+ --colors-primary-20: 163, 226, 255 /* #a3e2ff */;
19
+ --colors-primary-30: 122, 209, 255 /* #7ad1ff */;
20
+ --colors-primary-40: 1, 139, 255 /* #018bff */;
21
+ --colors-primary-50: 0, 111, 214 /* #006FD6 */;
22
+ --colors-primary-60: 0, 86, 179 /* #0056b3 */;
23
+ --colors-primary-70: 0, 64, 146 /* #004092 */;
24
+ --colors-danger-10: 255, 230, 233 /* #ffe6e9 */;
25
+ --colors-danger-20: 255, 184, 196 /* #ffb8c4 */;
26
+ --colors-danger-30: 255, 102, 138 /* #ff668a */;
27
+ --colors-danger-40: 237, 18, 82 /* #ed1252 */;
28
+ --colors-danger-50: 204, 37, 75 /* #cc254b */;
29
+ --colors-danger-60: 161, 0, 59 /* #a1003b */;
30
+ --colors-danger-70: 122, 0, 49 /* #7a0031 */;
31
+ --colors-success-10: 225, 250, 239 /* #E1FAEF */;
32
+ --colors-success-20: 152, 237, 203 /* #98EDCB */;
33
+ --colors-success-30: 68, 212, 164 /* #44D4A4 */;
34
+ --colors-success-40: 0, 186, 136 /* #00BA88 */;
35
+ --colors-success-50: 50, 125, 96 /* #327D60 */;
36
+ --colors-success-60: 0, 110, 88 /* #006E58 */;
37
+ --colors-success-70: 0, 71, 59 /* #00473B */;
38
+ --colors-warning-10: 255, 251, 222 /* #FFFBDE */;
39
+ --colors-warning-20: 255, 244, 181 /* #FFF4B5 */;
40
+ --colors-warning-30: 255, 234, 140 /* #FFEA8C */;
41
+ --colors-warning-40: 255, 222, 99 /* #FFDE63 */;
42
+ --colors-warning-50: 217, 181, 74 /* #D9B54A */;
43
+ --colors-warning-60: 150, 108, 46 /* #966c2e */;
44
+ --colors-warning-70: 102, 72, 23 /* #664817 */;
45
+ --colors-blueberry-10: 232, 235, 246 /* #E8EBF6 */;
46
+ --colors-blueberry-20: 196, 204, 233 /* #C4CCE9 */;
47
+ --colors-blueberry-30: 157, 171, 217 /* #9DABD9 */;
48
+ --colors-blueberry-40: 118, 138, 202 /* #768ACA */;
49
+ --colors-blueberry-50: 53, 87, 180 /* #3557B4 */;
50
+ --colors-blueberry-60: 37, 69, 158 /* #25459E */;
51
+ --colors-blueberry-70: 11, 41, 125 /* #0B297D */;
52
+ --colors-mint-10: 240, 255, 250 /* #F0FFFA */;
53
+ --colors-mint-20: 209, 255, 244 /* #D1FFF4 */;
54
+ --colors-mint-30: 168, 255, 238 /* #A8FFEE */;
55
+ --colors-mint-40: 85, 249, 226 /* #55F9E2 */;
56
+ --colors-mint-50: 61, 212, 197 /* #3DD4C5 */;
57
+ --colors-mint-60: 42, 173, 165 /* #2AADA5 */;
58
+ --colors-mint-70: 17, 97, 97 /* #116161 */;
59
+ --colors-neutral-10: 255, 255, 255 /* #FFFFFF */;
60
+ --colors-neutral-20: 245, 247, 250 /* #F5F7FA */;
61
+ --colors-neutral-30: 238, 241, 246 /* #EEF1F6 */;
62
+ --colors-neutral-40: 230, 233, 238 /* #E6E9EE */;
63
+ --colors-neutral-50: 196, 200, 205 /* #C4C8CD */;
64
+ --colors-neutral-60: 178, 183, 189 /* #B2B7BD */;
65
+ --colors-neutral-70: 113, 119, 128 /* #717780 */;
66
+ --colors-neutral-80: 83, 91, 102 /* #535B66 */;
67
+ --colors-neutral-90: 21, 30, 41 /* #151E29 */;
68
+ --font-size-h1: 48px;
69
+ --font-size-h2: 40px;
70
+ --font-size-h3: 30px;
71
+ --font-size-h4: 24px;
72
+ --font-size-h5: 20px;
73
+ --font-size-h6: 16px;
74
+ --font-size-subheading-large: 20px;
75
+ --font-size-subheading-medium: 16px;
76
+ --font-size-subheading-small: 14px;
77
+ --font-size-body-large: 16px;
78
+ --font-size-body-medium: 14px;
79
+ --font-size-body-small: 12px;
80
+ --font-size-code: 14px;
81
+ --font-size-label: 14px;
82
+ --font-weight-bold: 700;
83
+ --font-weight-semibold: 600;
84
+ --font-weight-normal: 400;
85
+ --font-weight-light: 300;
86
+ --palette-light-neutral-text-weakest: 178, 183, 189 /* #B2B7BD */;
87
+ --palette-light-neutral-text-weaker: 113, 119, 128 /* #717780 */;
88
+ --palette-light-neutral-text-weak: 83, 91, 102 /* #535B66 */;
89
+ --palette-light-neutral-text-default: 21, 30, 41 /* #151E29 */;
90
+ --palette-light-neutral-text-inverse: 255, 255, 255 /* #FFFFFF */;
91
+ --palette-light-neutral-bg-weak: 255, 255, 255 /* #FFFFFF */;
92
+ --palette-light-neutral-bg-default: 245, 247, 250 /* #F5F7FA */;
93
+ --palette-light-neutral-bg-strong: 230, 233, 238 /* #E6E9EE */;
94
+ --palette-light-neutral-bg-strongest: 83, 91, 102 /* #535B66 */;
95
+ --palette-light-neutral-border-weak: 238, 241, 246 /* #EEF1F6 */;
96
+ --palette-light-neutral-border-strong: 178, 183, 189 /* #B2B7BD */;
97
+ --palette-light-neutral-hover: rgba(113,119,128,0.1);
98
+ --palette-light-neutral-pressed: rgba(113,119,128,0.2);
99
+ --palette-light-primary-text: 0, 111, 214 /* #006FD6 */;
100
+ --palette-light-primary-icon: 0, 111, 214 /* #006FD6 */;
101
+ --palette-light-primary-bg-strong: 0, 111, 214 /* #006FD6 */;
102
+ --palette-light-primary-bg-weak: 230, 248, 255 /* #e6f8ff */;
103
+ --palette-light-primary-border-strong: 0, 111, 214 /* #006FD6 */;
104
+ --palette-light-primary-border-weak: 122, 209, 255 /* #7ad1ff */;
105
+ --palette-light-primary-focus: 1, 139, 255 /* #018bff */;
106
+ --palette-light-primary-hover-weak: rgba(1,139,255,0.08);
107
+ --palette-light-primary-hover-strong: 0, 86, 179 /* #0056b3 */;
108
+ --palette-light-primary-pressed-weak: rgba(1,139,255,0.12);
109
+ --palette-light-primary-pressed-strong: 0, 64, 146 /* #004092 */;
110
+ --palette-light-danger-text: 204, 37, 75 /* #cc254b */;
111
+ --palette-light-danger-icon: 204, 37, 75 /* #cc254b */;
112
+ --palette-light-danger-bg-strong: 204, 37, 75 /* #cc254b */;
113
+ --palette-light-danger-bg-weak: 255, 230, 233 /* #ffe6e9 */;
114
+ --palette-light-danger-border-strong: 204, 37, 75 /* #cc254b */;
115
+ --palette-light-danger-border-weak: 255, 184, 196 /* #ffb8c4 */;
116
+ --palette-light-danger-hover-weak: rgba(237,18,82,0.08);
117
+ --palette-light-danger-hover-strong: 161, 0, 59 /* #a1003b */;
118
+ --palette-light-danger-pressed-weak: rgba(237,18,82,0.12);
119
+ --palette-light-danger-pressed-strong: 122, 0, 49 /* #7a0031 */;
120
+ --palette-light-warning-text: 150, 108, 46 /* #966c2e */;
121
+ --palette-light-warning-icon: 150, 108, 46 /* #966c2e */;
122
+ --palette-light-warning-bg-strong: 150, 108, 46 /* #966c2e */;
123
+ --palette-light-warning-bg-weak: 255, 251, 222 /* #FFFBDE */;
124
+ --palette-light-warning-border-strong: 150, 108, 46 /* #966c2e */;
125
+ --palette-light-warning-border-weak: 255, 234, 140 /* #FFEA8C */;
126
+ --palette-light-success-text: 50, 125, 96 /* #327D60 */;
127
+ --palette-light-success-icon: 50, 125, 96 /* #327D60 */;
128
+ --palette-light-success-bg-strong: 50, 125, 96 /* #327D60 */;
129
+ --palette-light-success-bg-weak: 225, 250, 239 /* #E1FAEF */;
130
+ --palette-light-success-border-strong: 50, 125, 96 /* #327D60 */;
131
+ --palette-light-success-border-weak: 152, 237, 203 /* #98EDCB */;
132
+ --box-shadow-l2: 0px 1px 2px 0px rgba(12, 26, 37, 0.18);
133
+ --box-shadow-l3: 0px 4px 8px 0px rgba(12, 26, 37, 0.04);
134
+ --box-shadow-l4: 0px 4px 8px 0px rgba(12, 26, 37, 0.08);
135
+ --box-shadow-l5: 0px 8px 20px 0px rgba(12, 26, 37, 0.12);
136
+ --space-1: 0.25rem;
137
+ --space-2: 0.5rem;
138
+ --space-3: 0.75rem;
139
+ --space-4: 1rem;
140
+ --space-6: 1.5rem;
141
+ --space-8: 2rem;
142
+ --space-12: 3rem;
143
+ --space-16: 4rem;
144
+ --space-20: 5rem;
145
+ --space-24: 6rem;
146
+ --space-32: 8rem;
147
+ }