@pontive/pontkit-core 1.38.0 → 1.39.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.
@@ -28,12 +28,9 @@
28
28
  * < unlayered app CSS
29
29
  */
30
30
  @layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit, pont2.theme.preset, pont2.theme.brand;
31
- @import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap")
32
- layer(pont2.tokens);
33
- @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap")
34
- layer(pont2.tokens);
35
- @import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap")
36
- layer(pont2.tokens);
31
+ @import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap");
32
+ @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
33
+ @import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap");
37
34
 
38
35
  /* ./tokens/index.css */
39
36
  /*
@@ -476,6 +476,48 @@
476
476
  }
477
477
  ]
478
478
  },
479
+ {
480
+ "name": "whitespace: trim() and \\s include NBSP",
481
+ "theme": {
482
+ "version": 1,
483
+ "global": {
484
+ "light": {
485
+ "sem-color-primary": " #2563eb ",
486
+ "sem-shadow-xs": "0 0 0 1px rgb(0 0 0 / 10%)"
487
+ }
488
+ }
489
+ },
490
+ "css": "/* pont2 theme · tokens b4d324e05536c499 */\n@layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit, pont2.theme.preset, pont2.theme.brand;\n@layer pont2.theme.brand {\n @layer global, widget;\n @layer global {\n :root {\n --pont2-sem-color-primary: #2563eb;\n --pont2-sem-shadow-xs: 0 0 0 1px rgb(0 0 0 / 10%);\n }\n :root.dark, :root[data-theme=\"dark\"], .dark, [data-theme=\"dark\"] {\n --pont2-sem-color-primary: var(--pont2-ref-color-brand-200);\n }\n }\n}\n"
491
+ },
492
+ {
493
+ "name": "length: 300 is counted in UTF-16 units (an astral character is two)",
494
+ "theme": {
495
+ "version": 1,
496
+ "global": {
497
+ "light": {
498
+ "sem-font-body": "\"𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸𝔸\", serif"
499
+ }
500
+ }
501
+ },
502
+ "issues": [
503
+ {
504
+ "path": "global.light.sem-font-body",
505
+ "message": "must be at most 300 characters"
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "name": "length: a BMP name of 150 characters is within it",
511
+ "theme": {
512
+ "version": 1,
513
+ "global": {
514
+ "light": {
515
+ "sem-font-body": "\"字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字\", serif"
516
+ }
517
+ }
518
+ },
519
+ "css": "/* pont2 theme · tokens b4d324e05536c499 */\n@layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit, pont2.theme.preset, pont2.theme.brand;\n@layer pont2.theme.brand {\n @layer global, widget;\n @layer global {\n :root {\n --pont2-sem-font-body: \"字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字字\", serif;\n }\n }\n}\n"
520
+ },
479
521
  {
480
522
  "name": "value: color accepts \"#2563eb\"",
481
523
  "theme": {
package/dist/styles.css CHANGED
@@ -13,12 +13,9 @@
13
13
  @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
14
14
  @import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
15
15
  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
16
- @import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap")
17
- layer(pont2.tokens);
18
- @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap")
19
- layer(pont2.tokens);
20
- @import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap")
21
- layer(pont2.tokens);
16
+ @import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap");
17
+ @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
18
+ @import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap");
22
19
  @layer pont-legacy {
23
20
 
24
21
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.38.0",
3
+ "version": "1.39.0",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",
@@ -61,13 +61,14 @@
61
61
  "build:pont2": "node pont2/scripts/build-tokens.ts --check && vite build --config pont2/vite.config.ts && node pont2/scripts/build-css.mjs && node pont2/scripts/build-manifest.mjs",
62
62
  "tokens:pont2": "node pont2/scripts/build-tokens.ts",
63
63
  "typecheck:pont2": "tsc -p pont2/tsconfig.json",
64
- "test:pont2": "vitest run --config pont2/vitest.config.ts",
64
+ "test:pont2": "vitest run --config pont2/vitest.config.ts --project unit",
65
65
  "storybook:pont2": "storybook dev -p 6008 -c pont2/.storybook",
66
66
  "build-storybook:pont2": "storybook build -c pont2/.storybook -o storybook-static-pont2",
67
67
  "build:superset": "vite build --config vite.superset.config.ts && node scripts/build-superset-css.mjs",
68
- "golden:pont2": "UPDATE_GOLDEN=1 vitest run --config pont2/vitest.config.ts src/theme/theme-golden.test.ts",
68
+ "golden:pont2": "UPDATE_GOLDEN=1 vitest run --config pont2/vitest.config.ts --project unit src/theme/theme-golden.test.ts",
69
69
  "manifest:pont2": "node pont2/scripts/build-manifest.mjs",
70
- "lint:pont2": "eslint 'pont2/src/**/*.ts' 'pont2/scripts/**/*.ts'"
70
+ "lint:pont2": "eslint 'pont2/src/**/*.ts' 'pont2/scripts/**/*.ts'",
71
+ "test:pont2:stories": "vitest run --config pont2/vitest.config.ts --project storybook"
71
72
  },
72
73
  "keywords": [
73
74
  "lit",
@@ -79,6 +80,7 @@
79
80
  "devDependencies": {
80
81
  "@custom-elements-manifest/analyzer": "^0.11.0",
81
82
  "@storybook/addon-docs": "^10.3.6",
83
+ "@storybook/addon-vitest": "^10.6.7",
82
84
  "@storybook/web-components": "^10.3.6",
83
85
  "@storybook/web-components-vite": "^10.3.6",
84
86
  "@types/jsoneditor": "^9.9.5",
@@ -89,20 +91,24 @@
89
91
  "@typescript-eslint/eslint-plugin": "^8.46.2",
90
92
  "@typescript-eslint/parser": "^8.46.2",
91
93
  "@vitejs/plugin-react": "^4.6.0",
94
+ "@vitest/browser": "^4.1.12",
95
+ "@vitest/browser-playwright": "^4.1.12",
92
96
  "autoprefixer": "^10.4.20",
93
97
  "eslint": "^9.38.0",
94
98
  "eslint-plugin-storybook": "^10.3.6",
95
99
  "globals": "^16.4.0",
100
+ "playwright": "^1.65.1",
96
101
  "postcss": "^8.4.47",
97
102
  "postcss-cli": "^11.0.1",
98
103
  "postcss-custom-media": "^12.0.1",
99
104
  "postcss-import": "^16.1.1",
100
105
  "react": "^19.1.1",
106
+ "storybook": "^10.6.7",
101
107
  "tailwindcss": "^3.4.1",
102
108
  "typescript": "^5.8.3",
103
109
  "vite": "^6.3.5",
104
110
  "vite-plugin-dts": "^4.5.4",
105
- "vitest": "^3.2.7"
111
+ "vitest": "^4.1.12"
106
112
  },
107
113
  "dependencies": {
108
114
  "@lit/context": "^1.1.0",