@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.
- package/dist/components/ActionList/ActionList.vue.d.ts +13 -2
- package/dist/components/AsyncState/AsyncState.vue.d.ts +53 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +62 -0
- package/dist/components/InputRichText/InputRichText.vue.d.ts +12 -6
- package/dist/components/Prose/Prose.vue.d.ts +36 -0
- package/dist/components/ResultState/ResultState.vue.d.ts +48 -0
- package/dist/components/Steps/Steps.vue.d.ts +16 -5
- package/dist/i18n/en.d.ts +16 -0
- package/dist/index.d.ts +8 -0
- package/dist/keston-ui.js +2149 -1749
- package/dist/lib/initials.d.ts +6 -1
- package/package.json +3 -1
- package/src/components/ActionList/ActionList.stories.ts +34 -1
- package/src/components/ActionList/ActionList.vue +27 -5
- package/src/components/AsyncState/AsyncState.stories.ts +46 -0
- package/src/components/AsyncState/AsyncState.vue +78 -0
- package/src/components/Button/Button.vue +4 -4
- package/src/components/ConfirmDialog/ConfirmDialog.stories.ts +54 -0
- package/src/components/ConfirmDialog/ConfirmDialog.vue +119 -0
- package/src/components/InputRichText/InputRichText.stories.ts +19 -0
- package/src/components/InputRichText/InputRichText.vue +129 -13
- package/src/components/Notification/Toaster.vue +3 -1
- package/src/components/Prose/Prose.stories.ts +46 -0
- package/src/components/Prose/Prose.vue +54 -0
- package/src/components/ResultState/ResultState.stories.ts +44 -0
- package/src/components/ResultState/ResultState.vue +76 -0
- package/src/components/Steps/Steps.stories.ts +18 -0
- package/src/components/Steps/Steps.vue +28 -8
- package/src/i18n/en.ts +12 -2
- package/src/index.ts +8 -0
- package/src/lib/initials.test.ts +19 -0
- package/src/lib/initials.ts +12 -3
- package/src/styles/theme.css +11 -2
package/src/styles/theme.css
CHANGED
|
@@ -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
|
-
* (
|
|
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: …; */
|