@neo4j-ndl/base 1.10.2 → 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.
Files changed (33) hide show
  1. package/lib/LICENSES.txt +2131 -67
  2. package/lib/NOTICE.txt +34 -31
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/tailwind-preset.config.js +8 -8
  5. package/lib/cjs/tailwindTheme.js +77 -34
  6. package/lib/cjs/tailwindTheme.js.map +1 -1
  7. package/lib/cjs/tokens/js/storybook-design-token.js +1972 -882
  8. package/lib/cjs/tokens/js/storybook-design-token.js.map +1 -1
  9. package/lib/cjs/tokens/js/tokens-esm.js +374 -238
  10. package/lib/cjs/tokens/js/tokens-esm.js.map +1 -1
  11. package/lib/cjs/tokens/js/tokens.js +373 -237
  12. package/lib/cjs/tokens/js/tokens.js.map +1 -1
  13. package/lib/cjs/typescale.js +16 -16
  14. package/lib/cjs/typings.js +1 -1
  15. package/lib/esm/tailwindTheme.js +66 -26
  16. package/lib/esm/tailwindTheme.js.map +1 -1
  17. package/lib/esm/tokens/js/storybook-design-token.js +1971 -881
  18. package/lib/esm/tokens/js/storybook-design-token.js.map +1 -1
  19. package/lib/esm/tokens/js/tokens-esm.js +373 -237
  20. package/lib/esm/tokens/js/tokens-esm.js.map +1 -1
  21. package/lib/esm/tokens/js/tokens.js +373 -237
  22. package/lib/esm/tokens/js/tokens.js.map +1 -1
  23. package/lib/neo4j-ds-styles.css +41086 -31403
  24. package/lib/tokens/css/tokens.css +260 -150
  25. package/lib/tokens/js/tokens-raw.js +5445 -3032
  26. package/lib/tokens/js/tokens.js +373 -237
  27. package/lib/tokens/scss/tokens.scss +260 -150
  28. package/lib/types/tokens/js/storybook-design-token.d.ts +22 -9
  29. package/lib/types/tokens/js/tokens-esm.d.ts +486 -328
  30. package/lib/types/tokens/js/tokens.d.ts +486 -328
  31. package/lib/types/typings.d.ts +1 -1
  32. package/package.json +8 -9
  33. package/CHANGELOG.md +0 -801
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
- │ ├─ @babel/preset-env@npm:7.21.5 [a2e03] (via npm:^7.16.4 [a2e03])
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
- │ ├─ @babel/preset-react@npm:7.18.6 [a2e03] (via npm:^7.16.0 [a2e03])
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
  │ ├─ @changesets/cli@npm:2.26.1 (via npm:^2.22.0)
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
- │ ├─ @floating-ui/react@npm:0.24.2 [a2e03] (via npm:^0.24.2 [a2e03])
45
+ │ ├─ @floating-ui/react@npm:0.25.1 [a2e03] (via npm:0.25.1 [a2e03])
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
+ │ ├─ @testing-library/jest-dom@npm:5.17.0 (via npm:5.17.0)
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
  │ ├─ @testing-library/jest-dom@npm:5.16.5 (via npm:^5.15.1)
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
- │ ├─ @testing-library/react@npm:12.1.5 [a2e03] (via npm:^12.1.2 [a2e03])
94
+ │ ├─ @testing-library/react@npm:14.0.0 [a2e03] (via npm:14.0.0 [a2e03])
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
- │ ├─ @testing-library/user-event@npm:14.4.3 [a2e03] (via npm:^14.4.3 [a2e03])
98
+ │ ├─ @testing-library/user-event@npm:14.4.3 [a2e03] (via npm:14.4.3 [a2e03])
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
  │ ├─ @types/node@npm:16.18.27 (via npm:^16.11.7)
115
111
  │ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
116
112
  │ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
117
- │ ├─ @types/react@npm:17.0.62 (via npm:^17.0.62)
113
+ │ ├─ @types/react@npm:18.2.18 (via npm:18.2.18)
118
114
  │ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
119
115
  │ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react
120
116
  │ ├─ @types/react-datepicker@npm:4.11.2 (via npm:^4.11.2)
121
117
  │ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
122
118
  │ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-datepicker
123
- │ ├─ @types/react-dom@npm:17.0.18 (via npm:17.0.18)
119
+ │ ├─ @types/react-dom@npm:18.2.7 (via npm:18.2.7)
124
120
  │ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
125
121
  │ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom
126
122
  │ ├─ @types/react-resizable@npm:3.0.4 (via npm:^3.0.4)
@@ -146,8 +142,6 @@ Third-party licenses
146
142
  │ ├─ autoprefixer@npm:10.4.14 [708d2] (via npm:^10.4.0 [708d2])
147
143
  │ │ ├─ URL: git+https://github.com/postcss/autoprefixer.git
148
144
  │ │ └─ VendorName: Andrey Sitnik
149
- │ ├─ babel-jest@npm:27.5.1 [a2e03] (via npm:^27.3.1 [a2e03])
150
- │ │ └─ URL: https://github.com/facebook/jest.git
151
145
  │ ├─ chalk@npm:5.2.0 (via npm:^5.1.0)
152
146
  │ │ └─ URL: git+https://github.com/chalk/chalk.git
153
147
  │ ├─ chromatic@npm:6.17.4 (via npm:^6.5.1)
@@ -180,6 +174,10 @@ Third-party licenses
180
174
  │ ├─ eslint-config-prettier@npm:8.8.0 [a2e03] (via npm:^8.3.0 [a2e03])
181
175
  │ │ ├─ URL: git+https://github.com/prettier/eslint-config-prettier.git
182
176
  │ │ └─ VendorName: Simon Lydell
177
+ │ ├─ eslint-plugin-import@npm:2.28.1 [a2e03] (via npm:2.28.1 [a2e03])
178
+ │ │ ├─ URL: https://github.com/import-js/eslint-plugin-import
179
+ │ │ ├─ VendorName: Ben Mosher
180
+ │ │ └─ VendorUrl: https://github.com/import-js/eslint-plugin-import
183
181
  │ ├─ eslint-plugin-jsx-a11y@npm:6.7.1 [a2e03] (via npm:^6.5.1 [a2e03])
184
182
  │ │ ├─ URL: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y
185
183
  │ │ └─ VendorName: Ethan Cohen
@@ -198,12 +196,11 @@ Third-party licenses
198
196
  │ │ ├─ URL: git+https://github.com/typicode/husky.git
199
197
  │ │ ├─ VendorName: Typicode
200
198
  │ │ └─ VendorUrl: https://typicode.github.io/husky
201
- │ ├─ jest@npm:27.5.1 [708d2] (via npm:^27.3.1 [708d2])
202
- │ │ ├─ URL: https://github.com/facebook/jest
203
- │ │ └─ VendorUrl: https://jestjs.io/
204
199
  │ ├─ jest-axe@npm:5.0.1 (via npm:^5.0.1)
205
200
  │ │ ├─ URL: git+https://github.com/nickcolley/jest-axe.git
206
201
  │ │ └─ VendorName: Nick Colley
202
+ │ ├─ jsdom@npm:22.1.0 [a2e03] (via npm:22.1.0 [a2e03])
203
+ │ │ └─ URL: git+https://github.com/jsdom/jsdom.git
207
204
  │ ├─ postcss@npm:8.4.23 (via npm:^8.4.18)
208
205
  │ │ ├─ URL: git+https://github.com/postcss/postcss.git
209
206
  │ │ ├─ VendorName: Andrey Sitnik
@@ -229,14 +226,14 @@ Third-party licenses
229
226
  │ │ ├─ URL: https://github.com/bokuweb/react-resizable-box.git
230
227
  │ │ ├─ VendorName: bokuweb
231
228
  │ │ └─ VendorUrl: https://github.com/bokuweb/react-resizable-box
232
- │ ├─ react@npm:17.0.2 (via npm:^17.0.2)
229
+ │ ├─ react@npm:18.2.0 (via npm:18.2.0)
233
230
  │ │ ├─ URL: https://github.com/facebook/react.git
234
231
  │ │ └─ VendorUrl: https://reactjs.org/
235
232
  │ ├─ react-datepicker@npm:4.14.1 [a2e03] (via npm:^4.14.1 [a2e03])
236
233
  │ │ ├─ URL: git://github.com/Hacker0x01/react-datepicker.git
237
234
  │ │ ├─ VendorName: HackerOne
238
235
  │ │ └─ VendorUrl: https://github.com/Hacker0x01/react-datepicker
239
- │ ├─ react-dom@npm:17.0.2 [d75d7] (via npm:^17.0.2 [d75d7])
236
+ │ ├─ react-dom@npm:18.2.0 [d75d7] (via npm:18.2.0 [d75d7])
240
237
  │ │ ├─ URL: https://github.com/facebook/react.git
241
238
  │ │ └─ VendorUrl: https://reactjs.org/
242
239
  │ ├─ react-dropzone@npm:14.2.3 [a2e03] (via npm:^14.0.0 [a2e03])
@@ -292,10 +289,6 @@ Third-party licenses
292
289
  │ │ ├─ URL: https://github.com/bgrins/TinyColor.git
293
290
  │ │ ├─ VendorName: Brian Grinstead
294
291
  │ │ └─ VendorUrl: http://briangrinstead.com
295
- │ ├─ ts-jest@npm:27.1.5 [a2e03] (via npm:^27.0.7 [a2e03])
296
- │ │ ├─ URL: git+https://github.com/kulshekhar/ts-jest.git
297
- │ │ ├─ VendorName: Kulshekhar Kabra
298
- │ │ └─ VendorUrl: https://kulshekhar.github.io/ts-jest
299
292
  │ ├─ ts-node@npm:10.9.1 [708d2] (via npm:^10.4.0 [708d2])
300
293
  │ │ ├─ URL: git://github.com/TypeStrong/ts-node.git
301
294
  │ │ ├─ VendorName: Blake Embrey
@@ -308,9 +301,13 @@ Third-party licenses
308
301
  │ │ ├─ URL: https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking
309
302
  │ │ ├─ VendorName: Charles Gruenais
310
303
  │ │ └─ VendorUrl: https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking/tree/main/#readme
311
- └─ vite-tsconfig-paths@npm:3.6.0 [d75d7] (via npm:^3.5.2 [d75d7])
312
- ├─ URL: git+https://github.com/aleclarson/vite-tsconfig-paths.git
313
- └─ VendorName: aleclarson
304
+ ├─ vite-tsconfig-paths@npm:3.6.0 [d75d7] (via npm:^3.5.2 [d75d7])
305
+ ├─ URL: git+https://github.com/aleclarson/vite-tsconfig-paths.git
306
+ └─ VendorName: aleclarson
307
+ │ └─ vitest@npm:0.34.1 [a2e03] (via npm:0.34.1 [a2e03])
308
+ │ ├─ URL: git+https://github.com/vitest-dev/vitest.git
309
+ │ ├─ VendorName: Anthony Fu
310
+ │ └─ VendorUrl: https://github.com/vitest-dev/vitest#readme
314
311
 
315
312
  ├─ Apache-2.0
316
313
  │ ├─ @neo4j-cypher/react-codemirror@npm:1.0.2 [a2e03] (via npm:^1.0.1 [a2e03])
@@ -326,18 +323,24 @@ Third-party licenses
326
323
  │ │ ├─ URL: git://github.com/amzn/style-dictionary.git
327
324
  │ │ ├─ VendorName: Amazon
328
325
  │ │ └─ VendorUrl: https://github.com/amzn/style-dictionary
329
- │ └─ typescript@patch:typescript@npm%3A4.8.4#~builtin<compat/typescript>::version=4.8.4&hash=bda367 (via patch:typescript@npm%3A4.8.4#~builtin<compat/typescript>)
326
+ │ └─ typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=bda367 (via patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>)
330
327
  │ ├─ URL: https://github.com/Microsoft/TypeScript.git
331
328
  │ ├─ VendorName: Microsoft Corp.
332
329
  │ └─ VendorUrl: https://www.typescriptlang.org/
333
330
 
334
331
  ├─ GPL-3.0
335
332
  │ ├─ @neo4j-ndl/base@workspace:packages/base (via workspace:packages/base)
336
- │ │ └─ VendorName: Neo4j Inc.
333
+ │ │ ├─ URL: https://www.neo4j.design
334
+ │ │ ├─ VendorName: Neo4j Inc.
335
+ │ │ └─ VendorUrl: https://www.neo4j.design
337
336
  │ ├─ @neo4j-ndl/react@workspace:packages/react [d75d7] (via workspace:^ [d75d7])
338
- │ │ └─ VendorName: Neo4j Inc.
337
+ │ │ ├─ URL: https://www.neo4j.design
338
+ │ │ ├─ VendorName: Neo4j Inc.
339
+ │ │ └─ VendorUrl: https://www.neo4j.design
339
340
  │ ├─ @neo4j-ndl/react@workspace:packages/react (via workspace:packages/react)
340
- │ │ └─ VendorName: Neo4j Inc.
341
+ │ │ ├─ URL: https://www.neo4j.design
342
+ │ │ ├─ VendorName: Neo4j Inc.
343
+ │ │ └─ VendorUrl: https://www.neo4j.design
341
344
  │ ├─ @neo4j-ndl/storybook@workspace:packages/storybook (via workspace:packages/storybook)
342
345
  │ └─ root@workspace:. (via workspace:.)
343
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.__esModule = true;
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.__esModule = true;
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
@@ -30,16 +30,28 @@ var __assign = (this && this.__assign) || function () {
30
30
  };
31
31
  return __assign.apply(this, arguments);
32
32
  };
33
- exports.__esModule = true;
33
+ var __rest = (this && this.__rest) || function (s, e) {
34
+ var t = {};
35
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
36
+ t[p] = s[p];
37
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
38
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
39
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
40
+ t[p[i]] = s[p[i]];
41
+ }
42
+ return t;
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
34
45
  exports.tailwindTheme = void 0;
35
46
  var tokens_esm_1 = require("./tokens/js/tokens-esm");
36
- var lodash_1 = require("lodash");
37
47
  /**
38
- * Create an agnostic palette for tailwind
39
- * TODO: v2
40
- * The custom logic for color conversion can be fixed
41
- * when we are consistent with our tokens in v2:
42
- * https://github.com/neo4j/neo4j-design/pull/316
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`
43
55
  */
44
56
  var themedPalette = function () {
45
57
  var result = {};
@@ -52,49 +64,80 @@ var themedPalette = function () {
52
64
  }
53
65
  if (typeof input === 'string') {
54
66
  /**
55
- * Values can be in the form of:
56
- * - 255, 255, 255
57
- * - rgba(255, 255, 255, 0.5)
58
- * - #ffffff
59
- * Regardless of the values, we transform the CSS to RGB always,
60
- * except the case with alpha channel that we use `rgba(...)`
61
- * in tokens.css, so the values can only be:
62
- * - 255, 255, 255
63
- * - 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
64
70
  */
65
- if (input.startsWith('rgba')) {
66
- result[flatkey] = "var(--".concat(flatkey, ")");
67
- }
68
- else {
69
- result[flatkey] = "rgb(var(--".concat(flatkey, "))");
70
- }
71
+ flatkey = flatkey.replace('light-', '');
72
+ result[flatkey] = "rgb(var(--theme-".concat(flatkey, "))");
71
73
  }
72
74
  };
73
- extractValue(tokens_esm_1.tokens.palette.dark, 'palette');
75
+ extractValue(tokens_esm_1.tokens.theme.light.palette, 'palette');
74
76
  return result;
75
77
  };
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
+ };
76
114
  /** @type {import('tailwindcss').Config['theme']} */
77
115
  exports.tailwindTheme = {
78
- 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()),
79
117
  borderRadius: tokens_esm_1.tokens.borderRadius,
80
- boxShadow: tokens_esm_1.tokens.boxShadow,
81
- zIndex: __assign(__assign({}, (0, lodash_1.omit)(tokens_esm_1.tokens.zIndex, 'alias')), tokens_esm_1.tokens.zIndex.alias),
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: {},
124
+ zIndex: __assign(__assign({}, zIndexAlias), zIndexWithoutAlias),
82
125
  fontFamily: {
83
- sans: ['"Nunito Sans"'],
84
- mono: ['"Fira Code"']
126
+ sans: ['"Public Sans"'],
127
+ mono: ['"Fira Code"'],
85
128
  },
86
129
  screens: __assign({}, tokens_esm_1.tokens.breakpoints),
87
130
  /** Use our custom animation tokens */
88
131
  transitionTimingFunction: {
89
- all: tokens_esm_1.tokens.transitions.values['timing-function']["default"],
90
- DEFAULT: tokens_esm_1.tokens.transitions.values['timing-function']["default"]
132
+ all: tokens_esm_1.tokens.transitions.values['timing-function'].default,
133
+ DEFAULT: tokens_esm_1.tokens.transitions.values['timing-function'].default,
91
134
  },
92
135
  transitionDuration: {
93
- all: tokens_esm_1.tokens.transitions.values.duration["default"],
94
- DEFAULT: tokens_esm_1.tokens.transitions.values.duration["default"]
136
+ all: tokens_esm_1.tokens.transitions.values.duration.default,
137
+ DEFAULT: tokens_esm_1.tokens.transitions.values.duration.default,
95
138
  },
96
139
  transitionProperty: {
97
- all: tokens_esm_1.tokens.transitions.values.properties["default"]
98
- }
140
+ all: tokens_esm_1.tokens.transitions.values.properties.default,
141
+ },
99
142
  };
100
143
  //# sourceMappingURL=tailwindTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tailwindTheme.js","sourceRoot":"","sources":["../../src/tailwindTheme.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;AAEH,qDAAgD;AAChD,iCAA8B;AAE9B;;;;;;GAMG;AACH,IAAM,aAAa,GAAG;IACpB,IAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAM,YAAY,GAAG,UAAC,KAAK,EAAE,OAAY;QAAZ,wBAAA,EAAA,YAAY;QACvC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,GAAG;gBAC7B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,UAAG,OAAO,cAAI,GAAG,CAAE,CAAC,CAAC;YAChD,CAAC,CAAC,CAAC;SACJ;QACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B;;;;;;;;;;eAUG;YACH,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;gBAC5B,MAAM,CAAC,OAAO,CAAC,GAAG,gBAAS,OAAO,MAAG,CAAC;aACvC;iBAAM;gBACL,MAAM,CAAC,OAAO,CAAC,GAAG,oBAAa,OAAO,OAAI,CAAC;aAC5C;SACF;IACH,CAAC,CAAC;IACF,YAAY,CAAC,m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