@auriel/peppertino 0.5.0 → 0.6.1

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 (134) hide show
  1. package/CHANGELOG.txt +249 -224
  2. package/LICENSE +21 -21
  3. package/MIGRATION.md +52 -52
  4. package/README.md +811 -764
  5. package/agents/peppertino/SKILL.md +84 -0
  6. package/agents/peppertino/accordion.md +134 -0
  7. package/agents/peppertino/alert.md +116 -0
  8. package/agents/peppertino/badge.md +74 -0
  9. package/agents/peppertino/base.md +252 -0
  10. package/agents/peppertino/button.md +65 -0
  11. package/agents/peppertino/card.md +82 -0
  12. package/agents/peppertino/carousel.md +147 -0
  13. package/agents/peppertino/catalog.md +83 -0
  14. package/agents/peppertino/components-ai-search.md +10 -0
  15. package/agents/peppertino/components-display.md +19 -0
  16. package/agents/peppertino/components-inputs.md +15 -0
  17. package/agents/peppertino/components-navigation.md +12 -0
  18. package/agents/peppertino/dark-mode.md +152 -0
  19. package/agents/peppertino/footer.md +109 -0
  20. package/agents/peppertino/forms-fieldset.md +85 -0
  21. package/agents/peppertino/forms-form-instructions.md +94 -0
  22. package/agents/peppertino/forms-label.md +110 -0
  23. package/agents/peppertino/forms-text-field.md +134 -0
  24. package/agents/peppertino/forms-validation.md +153 -0
  25. package/agents/peppertino/gradient.md +41 -0
  26. package/agents/peppertino/header.md +105 -0
  27. package/agents/peppertino/modal.md +123 -0
  28. package/agents/peppertino/section.md +56 -0
  29. package/agents/peppertino/select.md +110 -0
  30. package/agents/peppertino/switch.md +72 -0
  31. package/agents/peppertino/table.md +69 -0
  32. package/agents/peppertino/tabs.md +115 -0
  33. package/agents/peppertino/toast.md +96 -0
  34. package/agents/peppertino/tooltip.md +111 -0
  35. package/agents/peppertino/typography.md +118 -0
  36. package/agents/peppertino/utilities.md +194 -0
  37. package/agents/skill.md +65 -0
  38. package/build.js +53 -53
  39. package/dist/accordion.js +1 -1
  40. package/dist/accordion.js.map +2 -2
  41. package/dist/alert.js.map +1 -1
  42. package/dist/carousel.js.map +1 -1
  43. package/dist/header.js.map +1 -1
  44. package/dist/main.css +2566 -1008
  45. package/dist/main.css.map +1 -1
  46. package/dist/main.min.css +1 -0
  47. package/dist/modal.js.map +1 -1
  48. package/dist/peppertino.js +1 -1
  49. package/dist/peppertino.js.map +2 -2
  50. package/dist/select.js.map +1 -1
  51. package/dist/switch.js.map +1 -1
  52. package/dist/tabs.js.map +1 -1
  53. package/dist/theme.js.map +1 -1
  54. package/dist/toast.js.map +1 -1
  55. package/dist/validation.js.map +1 -1
  56. package/icon.svg +4 -0
  57. package/index.html +2177 -2098
  58. package/package.json +28 -28
  59. package/scripts/hex-to-hsl.mjs +75 -75
  60. package/scripts/lint-bem.mjs +53 -53
  61. package/scripts/lint-colors.mjs +87 -87
  62. package/site.webmanifest +18 -0
  63. package/src/js/accordion.js +105 -103
  64. package/src/js/alert.js +28 -28
  65. package/src/js/carousel.js +153 -153
  66. package/src/js/header.js +85 -85
  67. package/src/js/modal.js +138 -138
  68. package/src/js/peppertino.js +15 -15
  69. package/src/js/select.js +101 -101
  70. package/src/js/switch.js +28 -28
  71. package/src/js/tabs.js +104 -104
  72. package/src/js/theme.js +47 -47
  73. package/src/js/toast.js +79 -79
  74. package/src/js/validation.js +132 -132
  75. package/src/scss/accordion.scss +190 -156
  76. package/src/scss/activity.scss +17 -0
  77. package/src/scss/alert.scss +203 -203
  78. package/src/scss/badge.scss +90 -90
  79. package/src/scss/base.scss +511 -506
  80. package/src/scss/button.scss +119 -119
  81. package/src/scss/card.scss +121 -121
  82. package/src/scss/carousel.scss +303 -303
  83. package/src/scss/code-block.scss +22 -0
  84. package/src/scss/counter.scss +5 -0
  85. package/src/scss/dark-mode.scss +514 -514
  86. package/src/scss/duration.scss +26 -0
  87. package/src/scss/folder.scss +27 -0
  88. package/src/scss/footer.scss +224 -224
  89. package/src/scss/forms/fieldset.scss +127 -127
  90. package/src/scss/forms/form-instructions.scss +133 -133
  91. package/src/scss/forms/label.scss +115 -115
  92. package/src/scss/forms/text-field.scss +240 -240
  93. package/src/scss/forms/validation.scss +215 -215
  94. package/src/scss/forms.scss +8 -8
  95. package/src/scss/gradient.scss +11 -11
  96. package/src/scss/gravity-letters.scss +7 -0
  97. package/src/scss/header.scss +257 -238
  98. package/src/scss/helpers/color.scss +9 -0
  99. package/src/scss/helpers/flex.scss +14 -0
  100. package/src/scss/helpers/index.scss +6 -0
  101. package/src/scss/helpers/layout.scss +14 -0
  102. package/src/scss/helpers/spacing.scss +14 -0
  103. package/src/scss/helpers/typography.scss +11 -0
  104. package/src/scss/helpers/visibility.scss +9 -0
  105. package/src/scss/main.scss +49 -24
  106. package/src/scss/modal.scss +188 -188
  107. package/src/scss/model-picker.scss +5 -0
  108. package/src/scss/notification.scss +5 -0
  109. package/src/scss/orb.scss +7 -0
  110. package/src/scss/otp.scss +5 -0
  111. package/src/scss/pill-nav.scss +10 -0
  112. package/src/scss/prompt.scss +28 -0
  113. package/src/scss/rail.scss +7 -0
  114. package/src/scss/reactions.scss +5 -0
  115. package/src/scss/reset.scss +84 -84
  116. package/src/scss/response.scss +11 -0
  117. package/src/scss/reveal.scss +5 -0
  118. package/src/scss/scroll-progress.scss +4 -0
  119. package/src/scss/search-results.scss +13 -0
  120. package/src/scss/section.scss +87 -79
  121. package/src/scss/select.scss +210 -210
  122. package/src/scss/sidebar.scss +8 -0
  123. package/src/scss/status.scss +5 -0
  124. package/src/scss/step-list.scss +13 -0
  125. package/src/scss/switch.scss +121 -121
  126. package/src/scss/table.scss +89 -89
  127. package/src/scss/tabs.scss +156 -156
  128. package/src/scss/task-list.scss +18 -0
  129. package/src/scss/theme-picker.scss +5 -0
  130. package/src/scss/toast.scss +170 -170
  131. package/src/scss/tooltip.scss +126 -126
  132. package/src/scss/typography.scss +58 -58
  133. package/src/scss/utilities.scss +243 -243
  134. package/src/scss/voice-note.scss +5 -0
package/MIGRATION.md CHANGED
@@ -1,52 +1,52 @@
1
- # PeppertinoCSS — Migration Guide
2
-
3
- ## v0.4.x → v0.5.0
4
-
5
- ### Class renames (breaking)
6
-
7
- All class names now follow strict BEM: `.pp-<component>` / `.pp-<component>--<modifier>`.
8
-
9
- #### Button
10
-
11
- | v0.4.x | v0.5.0 |
12
- |---|---|
13
- | `.button` | `.pp-button` |
14
- | `.button-outline` | `.pp-button--outline` |
15
- | `.button-success` | `.pp-button--success` |
16
- | `.button-warning` | `.pp-button--warning` |
17
- | `.button-error` | `.pp-button--error` |
18
- | `.button-dark` | `.pp-button--dark` |
19
- | `.button-gradient` | `.pp-button--gradient` |
20
- | `.button-ghost` | `.pp-button--ghost` |
21
- | `.button-outline-success` | `.pp-button--outline .pp-button--success` |
22
- | `.button-outline-warning` | `.pp-button--outline .pp-button--warning` |
23
- | `.button-outline-error` | `.pp-button--outline .pp-button--error` |
24
- | `.button-outline-dark` | `.pp-button--outline .pp-button--dark` |
25
-
26
- Note: outline+color variants changed from a single class to two combinable modifier classes. Both classes must be present on the element.
27
-
28
- #### Gradient text
29
-
30
- | v0.4.x | v0.5.0 |
31
- |---|---|
32
- | `.gradient-txt` | `.pp-gradient-text` |
33
-
34
- ### Color tokens — hex → HSL (breaking for CSS var consumers)
35
-
36
- All `--pp-*` custom properties that were previously flat hex values are now composed from H/S/L triplet properties. Consumers who read `--pp-primary` will still receive a valid color, but consumers who manually reference `--pp-primary-h`, `--pp-primary-s`, or `--pp-primary-l` for tint math are now supported.
37
-
38
- ### New components
39
-
40
- Switch, Tooltip, Badge, Toast — no existing classes affected.
41
-
42
- ### New JS APIs
43
-
44
- | Module | New methods |
45
- |---|---|
46
- | `ppAccordion` | `.get(id).open(index)` · `.close(index)` · `.toggleAll()` |
47
- | `ppTabs` | `.get(id).activate(index)` |
48
- | `ppAlert` | `.dismiss(id)` · `[data-alert-dismiss]` attribute wiring |
49
- | `ppTheme` | `.set('light'\|'dark')` · `.get()` · `.toggle()` |
50
- | `ppToast` | `.show({ message, variant, duration })` |
51
-
52
- All shims now dispatch `pp:<component>:<event>` CustomEvents on the root element.
1
+ # PeppertinoCSS — Migration Guide
2
+
3
+ ## v0.4.x → v0.5.0
4
+
5
+ ### Class renames (breaking)
6
+
7
+ All class names now follow strict BEM: `.pp-<component>` / `.pp-<component>--<modifier>`.
8
+
9
+ #### Button
10
+
11
+ | v0.4.x | v0.5.0 |
12
+ |---|---|
13
+ | `.button` | `.pp-button` |
14
+ | `.button-outline` | `.pp-button--outline` |
15
+ | `.button-success` | `.pp-button--success` |
16
+ | `.button-warning` | `.pp-button--warning` |
17
+ | `.button-error` | `.pp-button--error` |
18
+ | `.button-dark` | `.pp-button--dark` |
19
+ | `.button-gradient` | `.pp-button--gradient` |
20
+ | `.button-ghost` | `.pp-button--ghost` |
21
+ | `.button-outline-success` | `.pp-button--outline .pp-button--success` |
22
+ | `.button-outline-warning` | `.pp-button--outline .pp-button--warning` |
23
+ | `.button-outline-error` | `.pp-button--outline .pp-button--error` |
24
+ | `.button-outline-dark` | `.pp-button--outline .pp-button--dark` |
25
+
26
+ Note: outline+color variants changed from a single class to two combinable modifier classes. Both classes must be present on the element.
27
+
28
+ #### Gradient text
29
+
30
+ | v0.4.x | v0.5.0 |
31
+ |---|---|
32
+ | `.gradient-txt` | `.pp-gradient-text` |
33
+
34
+ ### Color tokens — hex → HSL (breaking for CSS var consumers)
35
+
36
+ All `--pp-*` custom properties that were previously flat hex values are now composed from H/S/L triplet properties. Consumers who read `--pp-primary` will still receive a valid color, but consumers who manually reference `--pp-primary-h`, `--pp-primary-s`, or `--pp-primary-l` for tint math are now supported.
37
+
38
+ ### New components
39
+
40
+ Switch, Tooltip, Badge, Toast — no existing classes affected.
41
+
42
+ ### New JS APIs
43
+
44
+ | Module | New methods |
45
+ |---|---|
46
+ | `ppAccordion` | `.get(id).open(index)` · `.close(index)` · `.toggleAll()` |
47
+ | `ppTabs` | `.get(id).activate(index)` |
48
+ | `ppAlert` | `.dismiss(id)` · `[data-alert-dismiss]` attribute wiring |
49
+ | `ppTheme` | `.set('light'\|'dark')` · `.get()` · `.toggle()` |
50
+ | `ppToast` | `.show({ message, variant, duration })` |
51
+
52
+ All shims now dispatch `pp:<component>:<event>` CustomEvents on the root element.