@pontive/pontkit-core 1.28.0 → 1.29.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.
Files changed (40) hide show
  1. package/catalog.json +1 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/components/renderers/auth/scope-list/_scope-list.d.ts +1 -1
  4. package/dist/components/renderers/auth/scope-list/scope-list.types.d.ts +1 -1
  5. package/dist/components/widgets/pont-consent/consent-api.d.ts +1 -1
  6. package/dist/components/widgets/pont-consent/pont-consent.d.ts +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/pont2/core/names.d.ts +1 -1
  10. package/dist/pont2/globals.css +19 -7
  11. package/dist/pont2/index.mjs.map +1 -1
  12. package/dist/pont2/kit/alert/alert.d.ts +2 -1
  13. package/dist/pont2/kit/block/block.d.ts +3 -1
  14. package/dist/pont2/kit/link/link.d.ts +2 -0
  15. package/dist/pont2/kit/otp-field/otp-resend.d.ts +2 -0
  16. package/dist/pont2/kit/qr-code/qr-code.d.ts +1 -0
  17. package/dist/pont2/kit/recovery-codes/recovery-codes.d.ts +1 -0
  18. package/dist/pont2/kit/typography/typography.d.ts +4 -0
  19. package/dist/pont2/kit/watermark/watermark.d.ts +2 -0
  20. package/dist/pont2/primitives/card/card.d.ts +3 -1
  21. package/dist/pont2/primitives/dropdown-menu/dropdown-menu.d.ts +5 -0
  22. package/dist/pont2/primitives/popover/popover.d.ts +2 -0
  23. package/dist/pont2/primitives/tooltip/tooltip.d.ts +2 -0
  24. package/dist/pont2/styles.css +2431 -1026
  25. package/dist/pont2/theme/apply.d.ts +29 -0
  26. package/dist/pont2/theme/compile.d.ts +23 -0
  27. package/dist/pont2/theme/index.d.ts +23 -0
  28. package/dist/pont2/theme/manifest.d.ts +2 -0
  29. package/dist/pont2/theme/scopes.d.ts +13 -0
  30. package/dist/pont2/theme/shadcn.d.ts +7 -0
  31. package/dist/pont2/theme/tokens.json.d.ts +7009 -0
  32. package/dist/pont2/theme/types.d.ts +92 -0
  33. package/dist/pont2/theme/validate.d.ts +11 -0
  34. package/dist/pont2/theme/value.d.ts +10 -0
  35. package/dist/pont2/theme/vocabulary.d.ts +32 -0
  36. package/dist/pont2/theme.mjs +337 -0
  37. package/dist/pont2/theme.mjs.map +1 -0
  38. package/dist/pont2/tokens.json +7006 -0
  39. package/dist/pont2/with-legacy.css +1 -1
  40. package/package.json +8 -2
@@ -8,7 +8,7 @@
8
8
  * | identity attr | `data-pont2-<identity>` | `data-pont2-alert` (tier-neutral: "this is an alert") |
9
9
  * | slot attr | `data-slot="<name>"` | `data-slot="item-separator"` (shadcn's own, unprefixed) |
10
10
  * | state attrs | `data-<state>` | `data-checked`, `data-open` (Base UI's own, unprefixed) |
11
- * | CSS custom prop | `--pont2-<name>` | `--pont2-primary` |
11
+ * | CSS custom prop | `--pont2-sem-<role>` … | `--pont2-sem-color-primary` (docs/11-tokens.md) |
12
12
  * | cascade layer | `pont2.<layer>` | `pont2.primitives`, `pont2.kit` |
13
13
  * | custom event | `pont2-<name>` | `pont2-open-change` |
14
14
  *
@@ -11,7 +11,19 @@
11
11
  * itself to look like a shadcn app. It is global by nature (it styles
12
12
  * `body` and `*`), which is why it is not part of styles.css.
13
13
  */
14
- @layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit;
14
+ /* ./layers.css */
15
+ /*
16
+ * The pont2 cascade-layer order: the ONE statement, shared by every pont2
17
+ * stylesheet (styles.css, globals.css, with-legacy.css and compiled themes).
18
+ *
19
+ * The first @layer statement a browser meets fixes the order, so every entry
20
+ * starts with this one; a theme loaded before styles.css can then never land
21
+ * below the recipes (docs/11-tokens.md §7).
22
+ *
23
+ * reset < tokens < base < primitives < kit < theme.preset < theme.brand
24
+ * < unlayered app CSS
25
+ */
26
+ @layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit, pont2.theme.preset, pont2.theme.brand;
15
27
 
16
28
  @layer pont2.reset {
17
29
  *,
@@ -22,7 +34,7 @@
22
34
  box-sizing: border-box;
23
35
  margin: 0;
24
36
  padding: 0;
25
- border: 0 solid var(--pont2-border);
37
+ border: 0 solid var(--pont2-sem-color-border);
26
38
  }
27
39
 
28
40
  html,
@@ -30,18 +42,18 @@
30
42
  line-height: 1.5;
31
43
  -webkit-text-size-adjust: 100%;
32
44
  tab-size: 4;
33
- font-family: var(--pont2-font-sans);
45
+ font-family: var(--pont2-sem-font-sans);
34
46
  -webkit-tap-highlight-color: transparent;
35
47
  }
36
48
 
37
49
  * {
38
- outline-color: color-mix(in oklab, var(--pont2-ring) 50%, transparent);
50
+ outline-color: color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
39
51
  }
40
52
 
41
53
  body {
42
54
  line-height: inherit;
43
- background-color: var(--pont2-background);
44
- color: var(--pont2-foreground);
55
+ background-color: var(--pont2-sem-color-background);
56
+ color: var(--pont2-sem-color-foreground);
45
57
  }
46
58
 
47
59
  h1, h2, h3, h4, h5, h6 {
@@ -59,7 +71,7 @@
59
71
  }
60
72
 
61
73
  code, kbd, samp, pre {
62
- font-family: var(--pont2-font-mono);
74
+ font-family: var(--pont2-sem-font-mono);
63
75
  font-size: 1em;
64
76
  }
65
77