@neo4j-ndl/base 1.10.3 → 2.0.0-alpha-e609471
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/lib/LICENSES.txt +2105 -67
- package/lib/NOTICE.txt +30 -31
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/tailwind-preset.config.js +8 -8
- package/lib/cjs/tailwindTheme.js +64 -32
- package/lib/cjs/tailwindTheme.js.map +1 -1
- package/lib/cjs/tokens/js/storybook-design-token.js +1972 -882
- package/lib/cjs/tokens/js/storybook-design-token.js.map +1 -1
- package/lib/cjs/tokens/js/tokens-esm.js +374 -238
- package/lib/cjs/tokens/js/tokens-esm.js.map +1 -1
- package/lib/cjs/tokens/js/tokens.js +373 -237
- package/lib/cjs/tokens/js/tokens.js.map +1 -1
- package/lib/cjs/typescale.js +16 -16
- package/lib/cjs/typings.js +1 -1
- package/lib/esm/tailwindTheme.js +53 -24
- package/lib/esm/tailwindTheme.js.map +1 -1
- package/lib/esm/tokens/js/storybook-design-token.js +1971 -881
- package/lib/esm/tokens/js/storybook-design-token.js.map +1 -1
- package/lib/esm/tokens/js/tokens-esm.js +373 -237
- package/lib/esm/tokens/js/tokens-esm.js.map +1 -1
- package/lib/esm/tokens/js/tokens.js +373 -237
- package/lib/esm/tokens/js/tokens.js.map +1 -1
- package/lib/neo4j-ds-styles.css +41086 -31403
- package/lib/tokens/css/tokens.css +260 -150
- package/lib/tokens/js/tokens-raw.js +5445 -3032
- package/lib/tokens/js/tokens.js +373 -237
- package/lib/tokens/scss/tokens.scss +260 -150
- package/lib/types/tokens/js/storybook-design-token.d.ts +22 -9
- package/lib/types/tokens/js/tokens-esm.d.ts +486 -328
- package/lib/types/tokens/js/tokens.d.ts +486 -328
- package/lib/types/typings.d.ts +1 -1
- package/package.json +8 -9
- package/CHANGELOG.md +0 -807
package/lib/NOTICE.txt
CHANGED
|
@@ -27,14 +27,6 @@ Third-party licenses
|
|
|
27
27
|
│ │ ├─ URL: https://github.com/babel/babel.git
|
|
28
28
|
│ │ ├─ VendorName: The Babel Team
|
|
29
29
|
│ │ └─ VendorUrl: https://babel.dev/docs/en/next/babel-core
|
|
30
|
-
│ ├─ [38;5;166m@babel/[39m[38;5;173mpreset-env[39m[38;5;111m@[39m[38;5;111mnpm:7.21.5 [a2e03][39m (via [38;5;37mnpm:^7.16.4 [a2e03][39m)
|
|
31
|
-
│ │ ├─ URL: https://github.com/babel/babel.git
|
|
32
|
-
│ │ ├─ VendorName: The Babel Team
|
|
33
|
-
│ │ └─ VendorUrl: https://babel.dev/docs/en/next/babel-preset-env
|
|
34
|
-
│ ├─ [38;5;166m@babel/[39m[38;5;173mpreset-react[39m[38;5;111m@[39m[38;5;111mnpm:7.18.6 [a2e03][39m (via [38;5;37mnpm:^7.16.0 [a2e03][39m)
|
|
35
|
-
│ │ ├─ URL: https://github.com/babel/babel.git
|
|
36
|
-
│ │ ├─ VendorName: The Babel Team
|
|
37
|
-
│ │ └─ VendorUrl: https://babel.dev/docs/en/next/babel-preset-react
|
|
38
30
|
│ ├─ [38;5;166m@changesets/[39m[38;5;173mcli[39m[38;5;111m@[39m[38;5;111mnpm:2.26.1[39m (via [38;5;37mnpm:^2.22.0[39m)
|
|
39
31
|
│ │ ├─ URL: https://github.com/changesets/changesets/tree/main/packages/cli
|
|
40
32
|
│ │ └─ VendorName: Changesets Contributors
|
|
@@ -50,7 +42,7 @@ Third-party licenses
|
|
|
50
42
|
│ │ ├─ URL: https://github.com/conventional-changelog/commitlint.git
|
|
51
43
|
│ │ ├─ VendorName: Mario Nebl
|
|
52
44
|
│ │ └─ VendorUrl: https://commitlint.js.org/
|
|
53
|
-
│ ├─ [38;5;166m@floating-ui/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:0.
|
|
45
|
+
│ ├─ [38;5;166m@floating-ui/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:0.25.1 [a2e03][39m (via [38;5;37mnpm:0.25.1 [a2e03][39m)
|
|
54
46
|
│ │ ├─ URL: https://github.com/floating-ui/floating-ui.git
|
|
55
47
|
│ │ ├─ VendorName: atomiks
|
|
56
48
|
│ │ └─ VendorUrl: https://floating-ui.com/docs/react
|
|
@@ -91,15 +83,19 @@ Third-party licenses
|
|
|
91
83
|
│ │ ├─ URL: git+https://github.com/tanstack/table.git
|
|
92
84
|
│ │ ├─ VendorName: Tanner Linsley
|
|
93
85
|
│ │ └─ VendorUrl: https://github.com/tanstack/table#readme
|
|
86
|
+
│ ├─ [38;5;166m@testing-library/[39m[38;5;173mjest-dom[39m[38;5;111m@[39m[38;5;111mnpm:5.17.0[39m (via [38;5;37mnpm:5.17.0[39m)
|
|
87
|
+
│ │ ├─ URL: https://github.com/testing-library/jest-dom
|
|
88
|
+
│ │ ├─ VendorName: Ernesto Garcia
|
|
89
|
+
│ │ └─ VendorUrl: https://github.com/testing-library/jest-dom#readme
|
|
94
90
|
│ ├─ [38;5;166m@testing-library/[39m[38;5;173mjest-dom[39m[38;5;111m@[39m[38;5;111mnpm:5.16.5[39m (via [38;5;37mnpm:^5.15.1[39m)
|
|
95
91
|
│ │ ├─ URL: https://github.com/testing-library/jest-dom
|
|
96
92
|
│ │ ├─ VendorName: Ernesto Garcia
|
|
97
93
|
│ │ └─ VendorUrl: https://github.com/testing-library/jest-dom#readme
|
|
98
|
-
│ ├─ [38;5;166m@testing-library/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:
|
|
94
|
+
│ ├─ [38;5;166m@testing-library/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:14.0.0 [a2e03][39m (via [38;5;37mnpm:14.0.0 [a2e03][39m)
|
|
99
95
|
│ │ ├─ URL: https://github.com/testing-library/react-testing-library
|
|
100
96
|
│ │ ├─ VendorName: Kent C. Dodds
|
|
101
97
|
│ │ └─ VendorUrl: https://github.com/testing-library/react-testing-library#readme
|
|
102
|
-
│ ├─ [38;5;166m@testing-library/[39m[38;5;173muser-event[39m[38;5;111m@[39m[38;5;111mnpm:14.4.3 [a2e03][39m (via [38;5;37mnpm
|
|
98
|
+
│ ├─ [38;5;166m@testing-library/[39m[38;5;173muser-event[39m[38;5;111m@[39m[38;5;111mnpm:14.4.3 [a2e03][39m (via [38;5;37mnpm:14.4.3 [a2e03][39m)
|
|
103
99
|
│ │ ├─ URL: https://github.com/testing-library/user-event
|
|
104
100
|
│ │ ├─ VendorName: Giorgio Polvara
|
|
105
101
|
│ │ └─ VendorUrl: https://github.com/testing-library/user-event#readme
|
|
@@ -114,13 +110,13 @@ Third-party licenses
|
|
|
114
110
|
│ ├─ [38;5;166m@types/[39m[38;5;173mnode[39m[38;5;111m@[39m[38;5;111mnpm:16.18.27[39m (via [38;5;37mnpm:^16.11.7[39m)
|
|
115
111
|
│ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
116
112
|
│ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
117
|
-
│ ├─ [38;5;166m@types/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:
|
|
113
|
+
│ ├─ [38;5;166m@types/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:18.2.18[39m (via [38;5;37mnpm:18.2.18[39m)
|
|
118
114
|
│ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
119
115
|
│ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react
|
|
120
116
|
│ ├─ [38;5;166m@types/[39m[38;5;173mreact-datepicker[39m[38;5;111m@[39m[38;5;111mnpm:4.11.2[39m (via [38;5;37mnpm:^4.11.2[39m)
|
|
121
117
|
│ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
122
118
|
│ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-datepicker
|
|
123
|
-
│ ├─ [38;5;166m@types/[39m[38;5;173mreact-dom[39m[38;5;111m@[39m[38;5;111mnpm:
|
|
119
|
+
│ ├─ [38;5;166m@types/[39m[38;5;173mreact-dom[39m[38;5;111m@[39m[38;5;111mnpm:18.2.7[39m (via [38;5;37mnpm:18.2.7[39m)
|
|
124
120
|
│ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
125
121
|
│ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom
|
|
126
122
|
│ ├─ [38;5;166m@types/[39m[38;5;173mreact-resizable[39m[38;5;111m@[39m[38;5;111mnpm:3.0.4[39m (via [38;5;37mnpm:^3.0.4[39m)
|
|
@@ -146,8 +142,6 @@ Third-party licenses
|
|
|
146
142
|
│ ├─ [38;5;173mautoprefixer[39m[38;5;111m@[39m[38;5;111mnpm:10.4.14 [708d2][39m (via [38;5;37mnpm:^10.4.0 [708d2][39m)
|
|
147
143
|
│ │ ├─ URL: git+https://github.com/postcss/autoprefixer.git
|
|
148
144
|
│ │ └─ VendorName: Andrey Sitnik
|
|
149
|
-
│ ├─ [38;5;173mbabel-jest[39m[38;5;111m@[39m[38;5;111mnpm:27.5.1 [a2e03][39m (via [38;5;37mnpm:^27.3.1 [a2e03][39m)
|
|
150
|
-
│ │ └─ URL: https://github.com/facebook/jest.git
|
|
151
145
|
│ ├─ [38;5;173mchalk[39m[38;5;111m@[39m[38;5;111mnpm:5.2.0[39m (via [38;5;37mnpm:^5.1.0[39m)
|
|
152
146
|
│ │ └─ URL: git+https://github.com/chalk/chalk.git
|
|
153
147
|
│ ├─ [38;5;173mchromatic[39m[38;5;111m@[39m[38;5;111mnpm:6.17.4[39m (via [38;5;37mnpm:^6.5.1[39m)
|
|
@@ -202,12 +196,11 @@ Third-party licenses
|
|
|
202
196
|
│ │ ├─ URL: git+https://github.com/typicode/husky.git
|
|
203
197
|
│ │ ├─ VendorName: Typicode
|
|
204
198
|
│ │ └─ VendorUrl: https://typicode.github.io/husky
|
|
205
|
-
│ ├─ [38;5;173mjest[39m[38;5;111m@[39m[38;5;111mnpm:27.5.1 [708d2][39m (via [38;5;37mnpm:^27.3.1 [708d2][39m)
|
|
206
|
-
│ │ ├─ URL: https://github.com/facebook/jest
|
|
207
|
-
│ │ └─ VendorUrl: https://jestjs.io/
|
|
208
199
|
│ ├─ [38;5;173mjest-axe[39m[38;5;111m@[39m[38;5;111mnpm:5.0.1[39m (via [38;5;37mnpm:^5.0.1[39m)
|
|
209
200
|
│ │ ├─ URL: git+https://github.com/nickcolley/jest-axe.git
|
|
210
201
|
│ │ └─ VendorName: Nick Colley
|
|
202
|
+
│ ├─ [38;5;173mjsdom[39m[38;5;111m@[39m[38;5;111mnpm:22.1.0 [a2e03][39m (via [38;5;37mnpm:22.1.0 [a2e03][39m)
|
|
203
|
+
│ │ └─ URL: git+https://github.com/jsdom/jsdom.git
|
|
211
204
|
│ ├─ [38;5;173mpostcss[39m[38;5;111m@[39m[38;5;111mnpm:8.4.23[39m (via [38;5;37mnpm:^8.4.18[39m)
|
|
212
205
|
│ │ ├─ URL: git+https://github.com/postcss/postcss.git
|
|
213
206
|
│ │ ├─ VendorName: Andrey Sitnik
|
|
@@ -233,14 +226,14 @@ Third-party licenses
|
|
|
233
226
|
│ │ ├─ URL: https://github.com/bokuweb/react-resizable-box.git
|
|
234
227
|
│ │ ├─ VendorName: bokuweb
|
|
235
228
|
│ │ └─ VendorUrl: https://github.com/bokuweb/react-resizable-box
|
|
236
|
-
│ ├─ [38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:
|
|
229
|
+
│ ├─ [38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:18.2.0[39m (via [38;5;37mnpm:18.2.0[39m)
|
|
237
230
|
│ │ ├─ URL: https://github.com/facebook/react.git
|
|
238
231
|
│ │ └─ VendorUrl: https://reactjs.org/
|
|
239
232
|
│ ├─ [38;5;173mreact-datepicker[39m[38;5;111m@[39m[38;5;111mnpm:4.14.1 [a2e03][39m (via [38;5;37mnpm:^4.14.1 [a2e03][39m)
|
|
240
233
|
│ │ ├─ URL: git://github.com/Hacker0x01/react-datepicker.git
|
|
241
234
|
│ │ ├─ VendorName: HackerOne
|
|
242
235
|
│ │ └─ VendorUrl: https://github.com/Hacker0x01/react-datepicker
|
|
243
|
-
│ ├─ [38;5;173mreact-dom[39m[38;5;111m@[39m[38;5;111mnpm:
|
|
236
|
+
│ ├─ [38;5;173mreact-dom[39m[38;5;111m@[39m[38;5;111mnpm:18.2.0 [d75d7][39m (via [38;5;37mnpm:18.2.0 [d75d7][39m)
|
|
244
237
|
│ │ ├─ URL: https://github.com/facebook/react.git
|
|
245
238
|
│ │ └─ VendorUrl: https://reactjs.org/
|
|
246
239
|
│ ├─ [38;5;173mreact-dropzone[39m[38;5;111m@[39m[38;5;111mnpm:14.2.3 [a2e03][39m (via [38;5;37mnpm:^14.0.0 [a2e03][39m)
|
|
@@ -296,10 +289,6 @@ Third-party licenses
|
|
|
296
289
|
│ │ ├─ URL: https://github.com/bgrins/TinyColor.git
|
|
297
290
|
│ │ ├─ VendorName: Brian Grinstead
|
|
298
291
|
│ │ └─ VendorUrl: http://briangrinstead.com
|
|
299
|
-
│ ├─ [38;5;173mts-jest[39m[38;5;111m@[39m[38;5;111mnpm:27.1.5 [a2e03][39m (via [38;5;37mnpm:^27.0.7 [a2e03][39m)
|
|
300
|
-
│ │ ├─ URL: git+https://github.com/kulshekhar/ts-jest.git
|
|
301
|
-
│ │ ├─ VendorName: Kulshekhar Kabra
|
|
302
|
-
│ │ └─ VendorUrl: https://kulshekhar.github.io/ts-jest
|
|
303
292
|
│ ├─ [38;5;173mts-node[39m[38;5;111m@[39m[38;5;111mnpm:10.9.1 [708d2][39m (via [38;5;37mnpm:^10.4.0 [708d2][39m)
|
|
304
293
|
│ │ ├─ URL: git://github.com/TypeStrong/ts-node.git
|
|
305
294
|
│ │ ├─ VendorName: Blake Embrey
|
|
@@ -312,9 +301,13 @@ Third-party licenses
|
|
|
312
301
|
│ │ ├─ URL: https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking
|
|
313
302
|
│ │ ├─ VendorName: Charles Gruenais
|
|
314
303
|
│ │ └─ VendorUrl: https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking/tree/main/#readme
|
|
315
|
-
│
|
|
316
|
-
│
|
|
317
|
-
│
|
|
304
|
+
│ ├─ [38;5;173mvite-tsconfig-paths[39m[38;5;111m@[39m[38;5;111mnpm:3.6.0 [d75d7][39m (via [38;5;37mnpm:^3.5.2 [d75d7][39m)
|
|
305
|
+
│ │ ├─ URL: git+https://github.com/aleclarson/vite-tsconfig-paths.git
|
|
306
|
+
│ │ └─ VendorName: aleclarson
|
|
307
|
+
│ └─ [38;5;173mvitest[39m[38;5;111m@[39m[38;5;111mnpm:0.34.1 [a2e03][39m (via [38;5;37mnpm:0.34.1 [a2e03][39m)
|
|
308
|
+
│ ├─ URL: git+https://github.com/vitest-dev/vitest.git
|
|
309
|
+
│ ├─ VendorName: Anthony Fu
|
|
310
|
+
│ └─ VendorUrl: https://github.com/vitest-dev/vitest#readme
|
|
318
311
|
│
|
|
319
312
|
├─ Apache-2.0
|
|
320
313
|
│ ├─ [38;5;166m@neo4j-cypher/[39m[38;5;173mreact-codemirror[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2 [a2e03][39m (via [38;5;37mnpm:^1.0.1 [a2e03][39m)
|
|
@@ -330,18 +323,24 @@ Third-party licenses
|
|
|
330
323
|
│ │ ├─ URL: git://github.com/amzn/style-dictionary.git
|
|
331
324
|
│ │ ├─ VendorName: Amazon
|
|
332
325
|
│ │ └─ VendorUrl: https://github.com/amzn/style-dictionary
|
|
333
|
-
│ └─ [38;5;173mtypescript[39m[38;5;111m@[39m[38;5;111mpatch:typescript@npm%
|
|
326
|
+
│ └─ [38;5;173mtypescript[39m[38;5;111m@[39m[38;5;111mpatch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=bda367[39m (via [38;5;37mpatch:typescript@npm%3A5.1.6#~builtin<compat/typescript>[39m)
|
|
334
327
|
│ ├─ URL: https://github.com/Microsoft/TypeScript.git
|
|
335
328
|
│ ├─ VendorName: Microsoft Corp.
|
|
336
329
|
│ └─ VendorUrl: https://www.typescriptlang.org/
|
|
337
330
|
│
|
|
338
331
|
├─ GPL-3.0
|
|
339
332
|
│ ├─ [38;5;166m@neo4j-ndl/[39m[38;5;173mbase[39m[38;5;111m@[39m[38;5;111mworkspace:packages/base[39m (via [38;5;37mworkspace:packages/base[39m)
|
|
340
|
-
│ │
|
|
333
|
+
│ │ ├─ URL: https://www.neo4j.design
|
|
334
|
+
│ │ ├─ VendorName: Neo4j Inc.
|
|
335
|
+
│ │ └─ VendorUrl: https://www.neo4j.design
|
|
341
336
|
│ ├─ [38;5;166m@neo4j-ndl/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mworkspace:packages/react [d75d7][39m (via [38;5;37mworkspace:^ [d75d7][39m)
|
|
342
|
-
│ │
|
|
337
|
+
│ │ ├─ URL: https://www.neo4j.design
|
|
338
|
+
│ │ ├─ VendorName: Neo4j Inc.
|
|
339
|
+
│ │ └─ VendorUrl: https://www.neo4j.design
|
|
343
340
|
│ ├─ [38;5;166m@neo4j-ndl/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mworkspace:packages/react[39m (via [38;5;37mworkspace:packages/react[39m)
|
|
344
|
-
│ │
|
|
341
|
+
│ │ ├─ URL: https://www.neo4j.design
|
|
342
|
+
│ │ ├─ VendorName: Neo4j Inc.
|
|
343
|
+
│ │ └─ VendorUrl: https://www.neo4j.design
|
|
345
344
|
│ ├─ [38;5;166m@neo4j-ndl/[39m[38;5;173mstorybook[39m[38;5;111m@[39m[38;5;111mworkspace:packages/storybook[39m (via [38;5;37mworkspace:packages/storybook[39m)
|
|
346
345
|
│ └─ [38;5;173mroot[39m[38;5;111m@[39m[38;5;111mworkspace:.[39m (via [38;5;37mworkspace:.[39m)
|
|
347
346
|
│
|
package/lib/cjs/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
33
33
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
34
34
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
35
35
|
};
|
|
36
|
-
exports
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
__exportStar(require("./typings"), exports);
|
|
38
38
|
__exportStar(require("./tokens/js/tokens-esm"), exports);
|
|
39
39
|
__exportStar(require("./typescale"), exports);
|
|
@@ -30,7 +30,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
30
30
|
};
|
|
31
31
|
return __assign.apply(this, arguments);
|
|
32
32
|
};
|
|
33
|
-
exports
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.tailwindConfig = void 0;
|
|
35
35
|
var tailwindTheme_js_1 = require("./tailwindTheme.js");
|
|
36
36
|
var tokens_esm_1 = require("./tokens/js/tokens-esm");
|
|
@@ -53,34 +53,34 @@ exports.tailwindConfig = {
|
|
|
53
53
|
safelist: [
|
|
54
54
|
{
|
|
55
55
|
pattern: /^(hover:)?n-text-(palette|dark|light|primary|danger|warning|success|blueberry|mint|neutral)-/,
|
|
56
|
-
variants: ['hover']
|
|
56
|
+
variants: ['hover'],
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
pattern: /^(hover:)?n-bg-(palette|dark|light|primary|danger|warning|success|blueberry|mint|neutral)-/,
|
|
60
|
-
variants: ['hover']
|
|
60
|
+
variants: ['hover'],
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
// For clicked classes
|
|
64
64
|
pattern: /^(active:)?n-bg-(palette|dark|light|primary|danger|warning|success|blueberry|mint|neutral)-/,
|
|
65
|
-
variants: ['active']
|
|
65
|
+
variants: ['active'],
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
pattern: /^(hover:)?n-border-(palette|dark|light|primary|danger|warning|success|blueberry|mint|neutral)-/,
|
|
69
|
-
variants: ['hover']
|
|
69
|
+
variants: ['hover'],
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
72
|
theme: __assign(__assign({}, tailwindTheme_js_1.tailwindTheme), { extend: {
|
|
73
73
|
colors: {
|
|
74
74
|
transparent: 'transparent',
|
|
75
|
-
current: 'currentColor'
|
|
75
|
+
current: 'currentColor',
|
|
76
76
|
},
|
|
77
77
|
spacing: __assign({}, Object.keys(tokens_esm_1.tokens.space).reduce(function (accumulator, currentValue) {
|
|
78
78
|
var _a;
|
|
79
79
|
return (__assign(__assign({}, accumulator), (_a = {}, _a["token-".concat(currentValue)] = tokens_esm_1.tokens.space[currentValue], _a)));
|
|
80
|
-
}, {}))
|
|
80
|
+
}, {})),
|
|
81
81
|
} }),
|
|
82
82
|
// Enable only necessary plugins
|
|
83
83
|
// https://tailwindcss.com/docs/configuration#core-plugins
|
|
84
|
-
plugins: []
|
|
84
|
+
plugins: [],
|
|
85
85
|
};
|
|
86
86
|
//# sourceMappingURL=tailwind-preset.config.js.map
|
package/lib/cjs/tailwindTheme.js
CHANGED
|
@@ -41,15 +41,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
41
41
|
}
|
|
42
42
|
return t;
|
|
43
43
|
};
|
|
44
|
-
exports
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.tailwindTheme = void 0;
|
|
46
46
|
var tokens_esm_1 = require("./tokens/js/tokens-esm");
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
48
|
+
* This function is adding agnostic
|
|
49
|
+
* palette classes to the tailwind config.
|
|
50
|
+
*
|
|
51
|
+
* Example class:
|
|
52
|
+
* `.n-palette-light-primary-text-default`
|
|
53
|
+
* will point to the scoped CSS variable:
|
|
54
|
+
* `--theme-palette-primary-text-default`
|
|
53
55
|
*/
|
|
54
56
|
var themedPalette = function () {
|
|
55
57
|
var result = {};
|
|
@@ -62,50 +64,80 @@ var themedPalette = function () {
|
|
|
62
64
|
}
|
|
63
65
|
if (typeof input === 'string') {
|
|
64
66
|
/**
|
|
65
|
-
* Values
|
|
66
|
-
* - 255, 255, 255
|
|
67
|
-
*
|
|
68
|
-
* - #ffffff
|
|
69
|
-
* Regardless of the values, we transform the CSS to RGB always,
|
|
70
|
-
* except the case with alpha channel that we use `rgba(...)`
|
|
71
|
-
* in tokens.css, so the values can only be:
|
|
72
|
-
* - 255, 255, 255
|
|
73
|
-
* - rgba(255, 255, 255, 0.5)
|
|
67
|
+
* Values will always be in the RGBA form:
|
|
68
|
+
* - 255, 255, 255 / 0.5
|
|
69
|
+
* And we wrap them to rgb() CSS function
|
|
74
70
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
result[flatkey] = "rgb(var(--".concat(flatkey, "))");
|
|
80
|
-
}
|
|
71
|
+
flatkey = flatkey.replace('light-', '');
|
|
72
|
+
result[flatkey] = "rgb(var(--theme-".concat(flatkey, "))");
|
|
81
73
|
}
|
|
82
74
|
};
|
|
83
|
-
extractValue(tokens_esm_1.tokens.palette
|
|
75
|
+
extractValue(tokens_esm_1.tokens.theme.light.palette, 'palette');
|
|
84
76
|
return result;
|
|
85
77
|
};
|
|
86
78
|
var _a = tokens_esm_1.tokens.zIndex, zIndexAlias = _a.alias, zIndexWithoutAlias = __rest(_a, ["alias"]);
|
|
79
|
+
/**
|
|
80
|
+
* This function is adding agnostic
|
|
81
|
+
* shadow classes to the tailwind config.
|
|
82
|
+
*
|
|
83
|
+
* Example class:
|
|
84
|
+
* `.n-shadow-overlay`
|
|
85
|
+
* will point to the scoped CSS variable:
|
|
86
|
+
* `--theme-shadow-overlay`
|
|
87
|
+
*/
|
|
88
|
+
var themedShadows = function () {
|
|
89
|
+
var result = {};
|
|
90
|
+
var extractValue = function (input, flatkey) {
|
|
91
|
+
if (flatkey === void 0) { flatkey = ''; }
|
|
92
|
+
if (typeof input === 'object') {
|
|
93
|
+
Object.keys(input).forEach(function (key) {
|
|
94
|
+
extractValue(input[key], "".concat(flatkey, "-").concat(key));
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (typeof input === 'string') {
|
|
98
|
+
flatkey = flatkey.replace('light-', '');
|
|
99
|
+
// Remove "shadow-" prefix as tailwind appends it automatically
|
|
100
|
+
var key = flatkey.replace('shadow-', '');
|
|
101
|
+
result[key] = "var(--theme-".concat(flatkey, ")");
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
extractValue(tokens_esm_1.tokens.theme.light.boxShadow, 'shadow');
|
|
105
|
+
return result;
|
|
106
|
+
};
|
|
107
|
+
/** Prefixes all keys of an object with a given string, used for flat objects only */
|
|
108
|
+
var prefixProperties = function (obj, prefix) {
|
|
109
|
+
return Object.keys(obj).reduce(function (acc, curr) {
|
|
110
|
+
acc["".concat(prefix, "-").concat(curr)] = obj[curr];
|
|
111
|
+
return acc;
|
|
112
|
+
}, {});
|
|
113
|
+
};
|
|
87
114
|
/** @type {import('tailwindcss').Config['theme']} */
|
|
88
115
|
exports.tailwindTheme = {
|
|
89
|
-
colors: __assign(__assign(__assign({}, tokens_esm_1.tokens.colors), tokens_esm_1.tokens.palette), themedPalette()),
|
|
116
|
+
colors: __assign(__assign(__assign({}, tokens_esm_1.tokens.colors), { dark: __assign({}, tokens_esm_1.tokens.theme.dark.palette), light: __assign({}, tokens_esm_1.tokens.theme.light.palette) }), themedPalette()),
|
|
90
117
|
borderRadius: tokens_esm_1.tokens.borderRadius,
|
|
91
|
-
boxShadow: tokens_esm_1.tokens.boxShadow,
|
|
118
|
+
boxShadow: __assign(__assign(__assign({}, prefixProperties(tokens_esm_1.tokens.theme.dark.boxShadow, 'dark')), prefixProperties(tokens_esm_1.tokens.theme.light.boxShadow, 'light')), themedShadows()),
|
|
119
|
+
/**
|
|
120
|
+
* Avoid colors being generated as shadow color classes
|
|
121
|
+
* Source: https://github.com/tailwindlabs/tailwindcss/discussions/11933
|
|
122
|
+
*/
|
|
123
|
+
boxShadowColor: {},
|
|
92
124
|
zIndex: __assign(__assign({}, zIndexAlias), zIndexWithoutAlias),
|
|
93
125
|
fontFamily: {
|
|
94
|
-
sans: ['"
|
|
95
|
-
mono: ['"Fira Code"']
|
|
126
|
+
sans: ['"Public Sans"'],
|
|
127
|
+
mono: ['"Fira Code"'],
|
|
96
128
|
},
|
|
97
129
|
screens: __assign({}, tokens_esm_1.tokens.breakpoints),
|
|
98
130
|
/** Use our custom animation tokens */
|
|
99
131
|
transitionTimingFunction: {
|
|
100
|
-
all: tokens_esm_1.tokens.transitions.values['timing-function']
|
|
101
|
-
DEFAULT: tokens_esm_1.tokens.transitions.values['timing-function']
|
|
132
|
+
all: tokens_esm_1.tokens.transitions.values['timing-function'].default,
|
|
133
|
+
DEFAULT: tokens_esm_1.tokens.transitions.values['timing-function'].default,
|
|
102
134
|
},
|
|
103
135
|
transitionDuration: {
|
|
104
|
-
all: tokens_esm_1.tokens.transitions.values.duration
|
|
105
|
-
DEFAULT: tokens_esm_1.tokens.transitions.values.duration
|
|
136
|
+
all: tokens_esm_1.tokens.transitions.values.duration.default,
|
|
137
|
+
DEFAULT: tokens_esm_1.tokens.transitions.values.duration.default,
|
|
106
138
|
},
|
|
107
139
|
transitionProperty: {
|
|
108
|
-
all: tokens_esm_1.tokens.transitions.values.properties
|
|
109
|
-
}
|
|
140
|
+
all: tokens_esm_1.tokens.transitions.values.properties.default,
|
|
141
|
+
},
|
|
110
142
|
};
|
|
111
143
|
//# sourceMappingURL=tailwindTheme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindTheme.js","sourceRoot":"","sources":["../../src/tailwindTheme.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"tailwind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