@dryui/ui 0.5.1 → 0.5.2

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.
@@ -14,34 +14,42 @@
14
14
  const ctx = getSelectCtx();
15
15
  </script>
16
16
 
17
- <Button
18
- variant="outline"
19
- {size}
20
- type="button"
21
- id={ctx.triggerId}
22
- popovertarget={ctx.contentId}
23
- aria-haspopup="listbox"
24
- aria-expanded={ctx.open}
25
- aria-controls={ctx.open ? ctx.contentId : undefined}
26
- data-state={ctx.open ? 'open' : 'closed'}
27
- data-select-trigger
28
- disabled={ctx.disabled}
29
- ref={(el) => (ctx.triggerEl = el)}
30
- {...rest}
31
- >
32
- {@render children()}
33
- <svg
34
- data-indicator
35
- xmlns="http://www.w3.org/2000/svg"
36
- viewBox="0 0 24 24"
37
- fill="none"
38
- stroke="currentColor"
39
- stroke-width="2"
40
- aria-hidden="true"><path d="m6 9 6 6 6-6" /></svg
17
+ <span class="root">
18
+ <Button
19
+ variant="outline"
20
+ {size}
21
+ type="button"
22
+ id={ctx.triggerId}
23
+ popovertarget={ctx.contentId}
24
+ aria-haspopup="listbox"
25
+ aria-expanded={ctx.open}
26
+ aria-controls={ctx.open ? ctx.contentId : undefined}
27
+ data-state={ctx.open ? 'open' : 'closed'}
28
+ data-select-trigger
29
+ disabled={ctx.disabled}
30
+ ref={(el) => (ctx.triggerEl = el)}
31
+ {...rest}
41
32
  >
42
- </Button>
33
+ {@render children()}
34
+ <svg
35
+ data-indicator
36
+ xmlns="http://www.w3.org/2000/svg"
37
+ viewBox="0 0 24 24"
38
+ fill="none"
39
+ stroke="currentColor"
40
+ stroke-width="2"
41
+ aria-hidden="true"><path d="m6 9 6 6 6-6" /></svg
42
+ >
43
+ </Button>
44
+ </span>
43
45
 
44
46
  <style>
47
+ .root {
48
+ display: grid;
49
+ --dry-btn-justify: space-between;
50
+ --dry-btn-align: center;
51
+ }
52
+
45
53
  svg[data-indicator] {
46
54
  height: 1em;
47
55
  aspect-ratio: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dryui/ui",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "author": "Rob Balfre",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1509,7 +1509,7 @@
1509
1509
  "postpack": "bun ../../scripts/postpack-exports.ts"
1510
1510
  },
1511
1511
  "dependencies": {
1512
- "@dryui/primitives": "^0.5.1"
1512
+ "@dryui/primitives": "^0.5.2"
1513
1513
  },
1514
1514
  "peerDependencies": {
1515
1515
  "svelte": "^5.55.1"