vunor 0.5.0 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Changed (visual)
6
+
7
+ - **Popups sit one layer above the panels.** `popup-card` (and with it `<VuSelect>`'s dropdown, `select-content`) paints `layer-1` instead of `surface-0`, and so does `<VuDatePicker>`'s popup (`date-picker-root`, `layer-0` before). `surface-0` has the `layer-0` background, which is what an app normally gives its panels (cards, side sheets), so a menu over a panel had exactly the panel's colour. The popup's text is `layer-1`'s (`scope-dark-0` on light, `scope-light-0` in dark mode, one step stronger than before) and its border is `grey-400` at 20% in both modes (dark mode drew `scope-color-800` at 20%, which hardly showed). With `layers.reverseDark` / `reverseLight` it follows the orientation, as `layer-1` does.
8
+ - **`shadow-popup` can be seen in dark mode.** Dark mode draws `0 2px 8px rgba(0,0,0,0.5), 0 12px 36px rgba(0,0,0,0.7)`; the light shadow (black at 10–15%) was invisible on a dark layer. Everything that uses it gets the dark shadow: `popup-card`, `dialog-card` and `date-picker-root`. Light mode is unchanged.
9
+
10
+ To get the 0.5.0 look back, replace the three shortcuts:
11
+
12
+ ```ts
13
+ vunorShortcuts(
14
+ defineShortcuts({
15
+ 'popup-card': replaceShortcut(
16
+ 'surface-0 bg-current rounded-r2 overflow-hidden shadow-popup z-[100] border current-border-grey-400 border-current/20'
17
+ ),
18
+ 'date-picker-root': replaceShortcut('inline-block layer-0 shadow-popup animate-easy-zoom-in'),
19
+ 'shadow-popup': replaceShortcut(
20
+ 'shadow-[0_0_10px_rgba(0,0,0,0.1),0_4px_20px_rgba(0,0,0,0.15)]'
21
+ ),
22
+ })
23
+ )
24
+ ```
25
+
3
26
  ## 0.5.0
4
27
 
5
28
  A minor release: the first three items below change how every app looks, with no code change on its side. Each says how to get the 0.4.x look back.
package/dist/theme.mjs CHANGED
@@ -73,7 +73,7 @@ const calendarShortcuts = defineShortcuts({
73
73
  },
74
74
  "data-[selected]:": "c8-filled!"
75
75
  },
76
- "date-picker-root": "inline-block layer-0 shadow-popup animate-easy-zoom-in",
76
+ "date-picker-root": "inline-block layer-1 shadow-popup animate-easy-zoom-in",
77
77
  "date-picker-literal": "opacity-75 cursor-text",
78
78
  "date-picker-input": {
79
79
  "": "cursor-text rounded-r1 p-0.5 text-current",
@@ -376,8 +376,11 @@ const c8 = defineShortcuts({
376
376
  //#endregion
377
377
  //#region src/theme/shortcuts/extras.ts
378
378
  const popupCard = defineShortcuts({
379
- "shadow-popup": "shadow-[0_0_10px_rgba(0,0,0,0.1),0_4px_20px_rgba(0,0,0,0.15)]",
380
- "popup-card": { "": "surface-0 bg-current rounded-r2 overflow-hidden shadow-popup z-[100] border current-border-grey-400 border-current/20" }
379
+ "shadow-popup": {
380
+ "": "shadow-[0_0_10px_rgba(0,0,0,0.1),0_4px_20px_rgba(0,0,0,0.15)]",
381
+ "dark:": "shadow-[0_2px_8px_rgba(0,0,0,0.5),0_12px_36px_rgba(0,0,0,0.7)]"
382
+ },
383
+ "popup-card": { "": "layer-1 rounded-r2 overflow-hidden shadow-popup z-[100] border current-border-grey-400 border-current/20" }
381
384
  });
382
385
  const disabledSoft = defineShortcuts({ "disabled-soft": { [whenDisabled]: "opacity-40 cursor-not-allowed" } });
383
386
  const press = defineShortcuts({ press: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vunor",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "CHANGELOG.md"