@thekestongroup/ui 0.16.0 → 0.18.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 (33) hide show
  1. package/dist/components/ActionList/ActionList.vue.d.ts +13 -2
  2. package/dist/components/AsyncState/AsyncState.vue.d.ts +53 -0
  3. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +62 -0
  4. package/dist/components/InputRichText/InputRichText.vue.d.ts +12 -6
  5. package/dist/components/Prose/Prose.vue.d.ts +36 -0
  6. package/dist/components/ResultState/ResultState.vue.d.ts +48 -0
  7. package/dist/components/Steps/Steps.vue.d.ts +16 -5
  8. package/dist/i18n/en.d.ts +16 -0
  9. package/dist/index.d.ts +8 -0
  10. package/dist/keston-ui.js +2149 -1749
  11. package/dist/lib/initials.d.ts +6 -1
  12. package/package.json +3 -1
  13. package/src/components/ActionList/ActionList.stories.ts +34 -1
  14. package/src/components/ActionList/ActionList.vue +27 -5
  15. package/src/components/AsyncState/AsyncState.stories.ts +46 -0
  16. package/src/components/AsyncState/AsyncState.vue +78 -0
  17. package/src/components/Button/Button.vue +4 -4
  18. package/src/components/ConfirmDialog/ConfirmDialog.stories.ts +54 -0
  19. package/src/components/ConfirmDialog/ConfirmDialog.vue +119 -0
  20. package/src/components/InputRichText/InputRichText.stories.ts +19 -0
  21. package/src/components/InputRichText/InputRichText.vue +129 -13
  22. package/src/components/Notification/Toaster.vue +3 -1
  23. package/src/components/Prose/Prose.stories.ts +46 -0
  24. package/src/components/Prose/Prose.vue +54 -0
  25. package/src/components/ResultState/ResultState.stories.ts +44 -0
  26. package/src/components/ResultState/ResultState.vue +76 -0
  27. package/src/components/Steps/Steps.stories.ts +18 -0
  28. package/src/components/Steps/Steps.vue +28 -8
  29. package/src/i18n/en.ts +12 -2
  30. package/src/index.ts +8 -0
  31. package/src/lib/initials.test.ts +19 -0
  32. package/src/lib/initials.ts +12 -3
  33. package/src/styles/theme.css +11 -2
@@ -82,8 +82,9 @@
82
82
  * - hover / pressed / selected: see-through tints for things with no fill
83
83
  * of their own (ghost buttons, menu items, table rows, sidebar items).
84
84
  * - surface-hover / surface-pressed: solid, for things filled with surface
85
- * (basic buttons, the buttons inside fields), so they lighten in dark
86
- * mode rather than darken.
85
+ * (the buttons inside fields, cards you can press), so they lighten in
86
+ * dark mode rather than darken.
87
+ * - control / control-hover / control-pressed: basic buttons (see above).
87
88
  * Coloured fills (primary, danger) darken instead: brightness-90 / 80.
88
89
  * Disabled is opacity-40. Focus is a 2px outline-focus ring, keyboard only.
89
90
  */
@@ -93,6 +94,14 @@
93
94
  --color-surface-hover: color-mix(in oklab, var(--color-surface) 95%, var(--color-ink));
94
95
  --color-surface-pressed: color-mix(in oklab, var(--color-surface) 90%, var(--color-ink));
95
96
 
97
+ /* Controls with a fill of their own (basic buttons): always a step above
98
+ whatever they sit on. Light: white, darkening on hover / press. Dark: a
99
+ see-through white, so a button is lighter than a card, a menu or the page
100
+ alike (a solid colour would be darker than a lighter panel). */
101
+ --color-control: light-dark(#ffffff, oklch(98.5% 0 0 / 0.06));
102
+ --color-control-hover: light-dark(color-mix(in oklab, #ffffff 95%, #050505), oklch(98.5% 0 0 / 0.1));
103
+ --color-control-pressed: light-dark(color-mix(in oklab, #ffffff 90%, #050505), oklch(98.5% 0 0 / 0.14));
104
+
96
105
  /* Radius e.g. --radius-control: …; */
97
106
 
98
107
  /* Typography e.g. --font-sans: …; */