@ndla/preset-panda 0.0.18 → 0.0.20

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/styles.css CHANGED
@@ -439,7 +439,7 @@
439
439
  --spacing-xsmall: var(--spacing-6);
440
440
  --spacing-small: var(--spacing-8);
441
441
  --spacing-medium: var(--spacing-12);
442
- --spacing-large: var(--spacing-15);
442
+ --spacing-large: var(--spacing-16);
443
443
  --spacing-xlarge: var(--spacing-18);
444
444
  --spacing-xxlarge: var(--spacing-24);
445
445
  --spacing-3xlarge: var(--spacing-36);
@@ -461,7 +461,7 @@
461
461
  --sizes-xsmall: var(--spacing-6);
462
462
  --sizes-small: var(--spacing-8);
463
463
  --sizes-medium: var(--spacing-12);
464
- --sizes-large: var(--spacing-15);
464
+ --sizes-large: var(--spacing-16);
465
465
  --sizes-xlarge: var(--spacing-18);
466
466
  --sizes-xxlarge: var(--spacing-24);
467
467
  --sizes-3xlarge: var(--spacing-36);
@@ -498,6 +498,7 @@
498
498
  --colors-surface-brand-2: var(--colors-blue-500);
499
499
  --colors-surface-brand-2-subtle: var(--colors-blue-50);
500
500
  --colors-surface-brand-2-moderate: var(--colors-blue-100);
501
+ --colors-surface-brand-2-bold: var(--colors-blue-800);
501
502
  --colors-surface-brand-2-strong: var(--colors-blue-900);
502
503
  --colors-surface-brand-3: var(--colors-green-500);
503
504
  --colors-surface-brand-3-subtle: var(--colors-green-100);
@@ -523,7 +524,8 @@
523
524
  --colors-surface-info-subtle-active: var(--colors-grey-300);
524
525
  --colors-surface-action: var(--colors-primary);
525
526
  --colors-surface-action-hover: var(--colors-purple-900);
526
- --colors-surface-action-active: var(--colors-purple-800);
527
+ --colors-surface-action-active: var(--colors-purple-950);
528
+ --colors-surface-action-selected: var(--colors-purple-800);
527
529
  --colors-surface-action-subtle: var(--colors-purple-50);
528
530
  --colors-surface-action-subtle-hover: var(--colors-purple-100);
529
531
  --colors-surface-action-subtle-hover-strong: var(--colors-purple-400);
@@ -531,7 +533,8 @@
531
533
  --colors-surface-action-subtle-selected: var(--colors-purple-900);
532
534
  --colors-surface-success: var(--colors-green-800);
533
535
  --colors-surface-success-hover: var(--colors-green-900);
534
- --colors-surface-success-active: var(--colors-green-950);
536
+ --colors-surface-success-selected: var(--colors-green-950);
537
+ --colors-surface-success-active: var(--colors-green-800);
535
538
  --colors-surface-success-subtle: var(--colors-green-100);
536
539
  --colors-surface-success-subtle-hover: var(--colors-green-300);
537
540
  --colors-surface-success-subtle-active: var(--colors-green-500);
@@ -541,8 +544,9 @@
541
544
  --colors-surface-warning-subtle: var(--colors-yellow-100);
542
545
  --colors-surface-warning-subtle-hover: var(--colors-yellow-300);
543
546
  --colors-surface-warning-subtle-active: var(--colors-yellow-400);
544
- --colors-surface-danger: var(--colors-pink-800);
545
- --colors-surface-danger-hover: var(--colors-pink-900);
547
+ --colors-surface-danger: var(--colors-pink-700);
548
+ --colors-surface-danger-hover: var(--colors-pink-800);
549
+ --colors-surface-danger-selected: var(--colors-pink-900);
546
550
  --colors-surface-danger-active: var(--colors-pink-950);
547
551
  --colors-surface-danger-subtle: var(--colors-pink-100);
548
552
  --colors-surface-danger-subtle-hover: var(--colors-pink-300);
package/es/globalCss.js CHANGED
@@ -63,7 +63,6 @@ export const globalCss = defineGlobalStyles({
63
63
  },
64
64
  // Article content is usually wrapped in a section. The rest of the elements in this list contains other elements, and should add margin to them no matter where they are placed in the DOM.
65
65
  '& section:not([class]), section:not([class]) > div:not([class]), [data-embed-type="framed-content"], [data-embed-type="grid"] > div, [data-embed-type="grid-parallax"] > div, [data-embed-type="factbox"] > div, [data-embed-type="copyright"], [data-embed-type="uu-disclaimer"], details, blockquote': {
66
- // TODO: Remove copy-heading if we can merge the new heading links
67
66
  '& > :is(h2, [data-embed-type="copy-heading"])': {
68
67
  marginBlockStart: "xxlarge",
69
68
  marginBlockEnd: "medium"
package/es/index.js CHANGED
@@ -7,9 +7,9 @@
7
7
  */
8
8
 
9
9
  import { definePreset } from "@pandacss/dev";
10
+ import { breakpoints } from "@ndla/core";
10
11
  import { animations, durations, easings, keyframes } from "./animations";
11
12
  import { boxShadows } from "./boxShadows";
12
- import { breakpoints } from "./breakpoints";
13
13
  import { colors } from "./colors";
14
14
  import { conditions } from "./conditions";
15
15
  import { globalCss } from "./globalCss";
@@ -28,7 +28,7 @@ export const semanticTokens = defineSemanticTokens({
28
28
  value: "{spacing.12}"
29
29
  },
30
30
  large: {
31
- value: "{spacing.15}"
31
+ value: "{spacing.16}"
32
32
  },
33
33
  xlarge: {
34
34
  value: "{spacing.18}"
@@ -98,7 +98,7 @@ export const semanticTokens = defineSemanticTokens({
98
98
  value: "{spacing.12}"
99
99
  },
100
100
  large: {
101
- value: "{spacing.15}"
101
+ value: "{spacing.16}"
102
102
  },
103
103
  xlarge: {
104
104
  value: "{spacing.18}"
@@ -223,6 +223,9 @@ export const semanticTokens = defineSemanticTokens({
223
223
  moderate: {
224
224
  value: "{colors.blue.100}"
225
225
  },
226
+ bold: {
227
+ value: "{colors.blue.800}"
228
+ },
226
229
  strong: {
227
230
  value: "{colors.blue.900}"
228
231
  }
@@ -312,6 +315,9 @@ export const semanticTokens = defineSemanticTokens({
312
315
  value: "{colors.purple.900}"
313
316
  },
314
317
  active: {
318
+ value: "{colors.purple.950}"
319
+ },
320
+ selected: {
315
321
  value: "{colors.purple.800}"
316
322
  }
317
323
  },
@@ -341,8 +347,11 @@ export const semanticTokens = defineSemanticTokens({
341
347
  hover: {
342
348
  value: "{colors.green.900}"
343
349
  },
344
- active: {
350
+ selected: {
345
351
  value: "{colors.green.950}"
352
+ },
353
+ active: {
354
+ value: "{colors.green.800}"
346
355
  }
347
356
  },
348
357
  successSubtle: {
@@ -380,9 +389,12 @@ export const semanticTokens = defineSemanticTokens({
380
389
  },
381
390
  danger: {
382
391
  DEFAULT: {
383
- value: "{colors.pink.800}"
392
+ value: "{colors.pink.700}"
384
393
  },
385
394
  hover: {
395
+ value: "{colors.pink.800}"
396
+ },
397
+ selected: {
386
398
  value: "{colors.pink.900}"
387
399
  },
388
400
  active: {
package/lib/globalCss.js CHANGED
@@ -69,7 +69,6 @@ const globalCss = exports.globalCss = (0, _dev.defineGlobalStyles)({
69
69
  },
70
70
  // Article content is usually wrapped in a section. The rest of the elements in this list contains other elements, and should add margin to them no matter where they are placed in the DOM.
71
71
  '& section:not([class]), section:not([class]) > div:not([class]), [data-embed-type="framed-content"], [data-embed-type="grid"] > div, [data-embed-type="grid-parallax"] > div, [data-embed-type="factbox"] > div, [data-embed-type="copyright"], [data-embed-type="uu-disclaimer"], details, blockquote': {
72
- // TODO: Remove copy-heading if we can merge the new heading links
73
72
  '& > :is(h2, [data-embed-type="copy-heading"])': {
74
73
  marginBlockStart: "xxlarge",
75
74
  marginBlockEnd: "medium"
package/lib/index.js CHANGED
@@ -11,9 +11,9 @@ Object.defineProperty(exports, "forwardCssPropPlugin", {
11
11
  }
12
12
  });
13
13
  var _dev = require("@pandacss/dev");
14
+ var _core = require("@ndla/core");
14
15
  var _animations = require("./animations");
15
16
  var _boxShadows = require("./boxShadows");
16
- var _breakpoints = require("./breakpoints");
17
17
  var _colors = require("./colors");
18
18
  var _conditions = require("./conditions");
19
19
  var _globalCss = require("./globalCss");
@@ -36,7 +36,7 @@ const preset = (0, _dev.definePreset)({
36
36
  globalCss: _globalCss.globalCss,
37
37
  conditions: _conditions.conditions,
38
38
  theme: {
39
- breakpoints: _breakpoints.breakpoints,
39
+ breakpoints: _core.breakpoints,
40
40
  textStyles: _typography.textStyles,
41
41
  keyframes: _animations.keyframes,
42
42
  tokens: {
@@ -221,6 +221,9 @@ export declare const semanticTokens: {
221
221
  moderate: {
222
222
  value: string;
223
223
  };
224
+ bold: {
225
+ value: string;
226
+ };
224
227
  strong: {
225
228
  value: string;
226
229
  };
@@ -312,6 +315,9 @@ export declare const semanticTokens: {
312
315
  active: {
313
316
  value: string;
314
317
  };
318
+ selected: {
319
+ value: string;
320
+ };
315
321
  };
316
322
  actionSubtle: {
317
323
  DEFAULT: {
@@ -339,6 +345,9 @@ export declare const semanticTokens: {
339
345
  hover: {
340
346
  value: string;
341
347
  };
348
+ selected: {
349
+ value: string;
350
+ };
342
351
  active: {
343
352
  value: string;
344
353
  };
@@ -383,6 +392,9 @@ export declare const semanticTokens: {
383
392
  hover: {
384
393
  value: string;
385
394
  };
395
+ selected: {
396
+ value: string;
397
+ };
386
398
  active: {
387
399
  value: string;
388
400
  };
@@ -34,7 +34,7 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
34
34
  value: "{spacing.12}"
35
35
  },
36
36
  large: {
37
- value: "{spacing.15}"
37
+ value: "{spacing.16}"
38
38
  },
39
39
  xlarge: {
40
40
  value: "{spacing.18}"
@@ -104,7 +104,7 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
104
104
  value: "{spacing.12}"
105
105
  },
106
106
  large: {
107
- value: "{spacing.15}"
107
+ value: "{spacing.16}"
108
108
  },
109
109
  xlarge: {
110
110
  value: "{spacing.18}"
@@ -229,6 +229,9 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
229
229
  moderate: {
230
230
  value: "{colors.blue.100}"
231
231
  },
232
+ bold: {
233
+ value: "{colors.blue.800}"
234
+ },
232
235
  strong: {
233
236
  value: "{colors.blue.900}"
234
237
  }
@@ -318,6 +321,9 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
318
321
  value: "{colors.purple.900}"
319
322
  },
320
323
  active: {
324
+ value: "{colors.purple.950}"
325
+ },
326
+ selected: {
321
327
  value: "{colors.purple.800}"
322
328
  }
323
329
  },
@@ -347,8 +353,11 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
347
353
  hover: {
348
354
  value: "{colors.green.900}"
349
355
  },
350
- active: {
356
+ selected: {
351
357
  value: "{colors.green.950}"
358
+ },
359
+ active: {
360
+ value: "{colors.green.800}"
352
361
  }
353
362
  },
354
363
  successSubtle: {
@@ -386,9 +395,12 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
386
395
  },
387
396
  danger: {
388
397
  DEFAULT: {
389
- value: "{colors.pink.800}"
398
+ value: "{colors.pink.700}"
390
399
  },
391
400
  hover: {
401
+ value: "{colors.pink.800}"
402
+ },
403
+ selected: {
392
404
  value: "{colors.pink.900}"
393
405
  },
394
406
  active: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/preset-panda",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Panda preset for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -31,10 +31,11 @@
31
31
  "lib"
32
32
  ],
33
33
  "devDependencies": {
34
+ "@ndla/core": "^5.0.2",
34
35
  "@pandacss/dev": "^0.44.0"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"
38
39
  },
39
- "gitHead": "1f5266d080c8cc172af46980cea7a451cfa12b28"
40
+ "gitHead": "4708656585c922a4b2c2e30b095f88097c29436b"
40
41
  }
package/es/breakpoints.js DELETED
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) 2024-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export const breakpoints = {
10
- mobile: "20em",
11
- mobileWide: "29.75em",
12
- tablet: "37.5625em",
13
- tabletWide: "48em",
14
- desktop: "61.3125em",
15
- wide: "81.3125em",
16
- ultraWide: "100.0625em"
17
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright (c) 2024-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- export declare const breakpoints: {
9
- mobile: string;
10
- mobileWide: string;
11
- tablet: string;
12
- tabletWide: string;
13
- desktop: string;
14
- wide: string;
15
- ultraWide: string;
16
- };
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.breakpoints = void 0;
7
- /**
8
- * Copyright (c) 2024-present, NDLA.
9
- *
10
- * This source code is licensed under the GPLv3 license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- *
13
- */
14
-
15
- const breakpoints = exports.breakpoints = {
16
- mobile: "20em",
17
- mobileWide: "29.75em",
18
- tablet: "37.5625em",
19
- tabletWide: "48em",
20
- desktop: "61.3125em",
21
- wide: "81.3125em",
22
- ultraWide: "100.0625em"
23
- };