@ndla/preset-panda 0.0.18 → 0.0.19

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
@@ -523,7 +523,8 @@
523
523
  --colors-surface-info-subtle-active: var(--colors-grey-300);
524
524
  --colors-surface-action: var(--colors-primary);
525
525
  --colors-surface-action-hover: var(--colors-purple-900);
526
- --colors-surface-action-active: var(--colors-purple-800);
526
+ --colors-surface-action-active: var(--colors-purple-950);
527
+ --colors-surface-action-selected: var(--colors-purple-800);
527
528
  --colors-surface-action-subtle: var(--colors-purple-50);
528
529
  --colors-surface-action-subtle-hover: var(--colors-purple-100);
529
530
  --colors-surface-action-subtle-hover-strong: var(--colors-purple-400);
@@ -531,7 +532,8 @@
531
532
  --colors-surface-action-subtle-selected: var(--colors-purple-900);
532
533
  --colors-surface-success: var(--colors-green-800);
533
534
  --colors-surface-success-hover: var(--colors-green-900);
534
- --colors-surface-success-active: var(--colors-green-950);
535
+ --colors-surface-success-selected: var(--colors-green-950);
536
+ --colors-surface-success-active: var(--colors-green-800);
535
537
  --colors-surface-success-subtle: var(--colors-green-100);
536
538
  --colors-surface-success-subtle-hover: var(--colors-green-300);
537
539
  --colors-surface-success-subtle-active: var(--colors-green-500);
@@ -541,8 +543,9 @@
541
543
  --colors-surface-warning-subtle: var(--colors-yellow-100);
542
544
  --colors-surface-warning-subtle-hover: var(--colors-yellow-300);
543
545
  --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);
546
+ --colors-surface-danger: var(--colors-pink-700);
547
+ --colors-surface-danger-hover: var(--colors-pink-800);
548
+ --colors-surface-danger-selected: var(--colors-pink-900);
546
549
  --colors-surface-danger-active: var(--colors-pink-950);
547
550
  --colors-surface-danger-subtle: var(--colors-pink-100);
548
551
  --colors-surface-danger-subtle-hover: var(--colors-pink-300);
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";
@@ -312,6 +312,9 @@ export const semanticTokens = defineSemanticTokens({
312
312
  value: "{colors.purple.900}"
313
313
  },
314
314
  active: {
315
+ value: "{colors.purple.950}"
316
+ },
317
+ selected: {
315
318
  value: "{colors.purple.800}"
316
319
  }
317
320
  },
@@ -341,8 +344,11 @@ export const semanticTokens = defineSemanticTokens({
341
344
  hover: {
342
345
  value: "{colors.green.900}"
343
346
  },
344
- active: {
347
+ selected: {
345
348
  value: "{colors.green.950}"
349
+ },
350
+ active: {
351
+ value: "{colors.green.800}"
346
352
  }
347
353
  },
348
354
  successSubtle: {
@@ -380,9 +386,12 @@ export const semanticTokens = defineSemanticTokens({
380
386
  },
381
387
  danger: {
382
388
  DEFAULT: {
383
- value: "{colors.pink.800}"
389
+ value: "{colors.pink.700}"
384
390
  },
385
391
  hover: {
392
+ value: "{colors.pink.800}"
393
+ },
394
+ selected: {
386
395
  value: "{colors.pink.900}"
387
396
  },
388
397
  active: {
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: {
@@ -312,6 +312,9 @@ export declare const semanticTokens: {
312
312
  active: {
313
313
  value: string;
314
314
  };
315
+ selected: {
316
+ value: string;
317
+ };
315
318
  };
316
319
  actionSubtle: {
317
320
  DEFAULT: {
@@ -339,6 +342,9 @@ export declare const semanticTokens: {
339
342
  hover: {
340
343
  value: string;
341
344
  };
345
+ selected: {
346
+ value: string;
347
+ };
342
348
  active: {
343
349
  value: string;
344
350
  };
@@ -383,6 +389,9 @@ export declare const semanticTokens: {
383
389
  hover: {
384
390
  value: string;
385
391
  };
392
+ selected: {
393
+ value: string;
394
+ };
386
395
  active: {
387
396
  value: string;
388
397
  };
@@ -318,6 +318,9 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
318
318
  value: "{colors.purple.900}"
319
319
  },
320
320
  active: {
321
+ value: "{colors.purple.950}"
322
+ },
323
+ selected: {
321
324
  value: "{colors.purple.800}"
322
325
  }
323
326
  },
@@ -347,8 +350,11 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
347
350
  hover: {
348
351
  value: "{colors.green.900}"
349
352
  },
350
- active: {
353
+ selected: {
351
354
  value: "{colors.green.950}"
355
+ },
356
+ active: {
357
+ value: "{colors.green.800}"
352
358
  }
353
359
  },
354
360
  successSubtle: {
@@ -386,9 +392,12 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
386
392
  },
387
393
  danger: {
388
394
  DEFAULT: {
389
- value: "{colors.pink.800}"
395
+ value: "{colors.pink.700}"
390
396
  },
391
397
  hover: {
398
+ value: "{colors.pink.800}"
399
+ },
400
+ selected: {
392
401
  value: "{colors.pink.900}"
393
402
  },
394
403
  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.19",
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": "62f2145f507c5365f8f5ed452de32ac43b11f155"
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
- };