@human-synthesis/norns-ui 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@human-synthesis/norns-ui",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "UI library for the Norns ecosystem — Pug + Civet components on Tailwind v4.",
5
5
  "license": "MIT",
6
6
  "author": "Daniel Teodoroiu (https://humansynthesis.ai)",
@@ -32,7 +32,7 @@
32
32
  | {@render actions()}
33
33
  +if('!hideClose')
34
34
  button.dialog-close(type="button" aria-label="Close" onclick!="{onClose}")
35
- |
35
+ Icon(name="lucide:x" size="size-3.5")
36
36
 
37
37
  <script>
38
38
  import { cn } from '@human-synthesis/norns-ui/cn'
@@ -40,6 +40,7 @@
40
40
  import { scrollLock } from '@human-synthesis/norns-ui/behaviors/scrollLock.svelte.js'
41
41
  import { focusTrap } from '@human-synthesis/norns-ui/behaviors/focusTrap.svelte.js'
42
42
  import { escape } from '@human-synthesis/norns-ui/behaviors/escape.svelte.js'
43
+ import Icon from './Icon.n'
43
44
 
44
45
  {
45
46
  open = $bindable(false)
@@ -7,12 +7,13 @@
7
7
  | {@render actions()}
8
8
  +if('onClose')
9
9
  button.norns-window-close(type="button" aria-label="Close" onclick!="{onClose}")
10
- |
10
+ Icon(name="lucide:x" size="size-3.5")
11
11
  section.norns-window-body(class!="{bodyClasses}")
12
12
  | {@render children?.()}
13
13
 
14
14
  <script>
15
15
  import { cn } from '@human-synthesis/norns-ui/cn'
16
+ import Icon from './Icon.n'
16
17
 
17
18
  // Layout-only window: chrome (header + close + custom actions) wrapping
18
19
  // a body slot. Sizing is the caller's responsibility — pass dimensions
@@ -22,9 +23,9 @@
22
23
  //
23
24
  // Header layout: title on the left (truncated), then a flex row of
24
25
  // caller-provided action elements (via the `actions` snippet), then an
25
- // optional `✕` close button when `onClose` is supplied. The close button
26
- // is rendered after the snippet so the snippet can position icons / chips
27
- // alongside it.
26
+ // optional `lucide:x` close button when `onClose` is supplied. The
27
+ // close button is rendered after the snippet so the snippet can
28
+ // position icons / chips alongside it.
28
29
  //
29
30
  // `hideHeader` removes the entire header bar (useful for windows that
30
31
  // already have their own custom chrome but still want the rounded shell).