@stacksjs/components 0.2.63 → 0.2.67

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 (56) hide show
  1. package/dist/Accordion-pt8j917s.stx +146 -0
  2. package/dist/AccordionItem-hbhzx63p.stx +37 -0
  3. package/dist/{Checkbox-zgdmy3p5.stx → Checkbox-aqmq4cqv.stx} +3 -1
  4. package/dist/{Dialog-hczpexs4.stx → Dialog-y5rz2vrq.stx} +5 -1
  5. package/dist/{Drawer-xhevp5cw.stx → Drawer-hrz7qcyp.stx} +4 -1
  6. package/dist/Notification-03vfh3k6.stx +117 -0
  7. package/dist/{NumberInput-drnvtqej.stx → NumberInput-g41gmd2c.stx} +2 -1
  8. package/dist/{Pagination-n3d31cns.stx → Pagination-wtgxmzey.stx} +3 -1
  9. package/dist/{PasswordInput-n02x6053.stx → PasswordInput-4rsq1gwb.stx} +2 -1
  10. package/dist/{Progress-yxcntr4x.stx → Progress-9dhakbh4.stx} +2 -1
  11. package/dist/{Radio-cgjv2hb2.stx → Radio-djtb5dpc.stx} +2 -1
  12. package/dist/{Select-28y0pg83.stx → Select-1vnd0brz.stx} +2 -1
  13. package/dist/{SidebarSection-npt9h265.stx → SidebarSection-g195cb4f.stx} +2 -1
  14. package/dist/{Switch-r5t5w04w.stx → Switch-p1bcr9ks.stx} +3 -1
  15. package/dist/TabPanel-5htevsq6.stx +25 -0
  16. package/dist/Tabs-79brys99.stx +202 -0
  17. package/dist/{TextInput-kf084763.stx → TextInput-g0vaz0pe.stx} +4 -1
  18. package/dist/{Textarea-xg4rr2xz.stx → Textarea-96kawv5c.stx} +2 -1
  19. package/dist/{Tooltip-m0tqd72e.stx → Tooltip-y61h04gp.stx} +2 -1
  20. package/dist/index.js +3909 -15
  21. package/dist/ui/accordion/Accordion.stx +9 -1
  22. package/dist/ui/accordion/AccordionItem.stx +7 -0
  23. package/dist/ui/accordion/index.d.ts +32 -2
  24. package/dist/ui/input/NumberInput.stx +1 -1
  25. package/dist/ui/input/TextInput.stx +1 -1
  26. package/dist/ui/notification/Notification.stx +10 -8
  27. package/dist/ui/select/Select.stx +1 -1
  28. package/dist/ui/tabs/TabPanel.stx +9 -0
  29. package/dist/ui/tabs/Tabs.stx +140 -0
  30. package/dist/ui/tabs/index.d.ts +32 -1
  31. package/dist/ui/textarea/Textarea.stx +1 -1
  32. package/package.json +3 -3
  33. package/src/ui/accordion/Accordion.stx +90 -32
  34. package/src/ui/accordion/AccordionItem.stx +37 -0
  35. package/src/ui/accordion/index.ts +35 -2
  36. package/src/ui/checkbox/Checkbox.stx +3 -1
  37. package/src/ui/dialog/Dialog.stx +5 -1
  38. package/src/ui/drawer/Drawer.stx +4 -1
  39. package/src/ui/input/NumberInput.stx +2 -1
  40. package/src/ui/input/PasswordInput.stx +2 -1
  41. package/src/ui/input/TextInput.stx +4 -1
  42. package/src/ui/notification/Notification.stx +65 -26
  43. package/src/ui/pagination/Pagination.stx +3 -1
  44. package/src/ui/progress/Progress.stx +2 -1
  45. package/src/ui/radio/Radio.stx +2 -1
  46. package/src/ui/select/Select.stx +2 -1
  47. package/src/ui/sidebar/SidebarSection.stx +2 -1
  48. package/src/ui/switch/Switch.stx +3 -1
  49. package/src/ui/tabs/TabPanel.stx +25 -0
  50. package/src/ui/tabs/Tabs.stx +108 -32
  51. package/src/ui/tabs/index.ts +35 -1
  52. package/src/ui/textarea/Textarea.stx +2 -1
  53. package/src/ui/tooltip/Tooltip.stx +2 -1
  54. package/dist/Accordion-19x8q4rj.stx +0 -88
  55. package/dist/Notification-tb9b525s.stx +0 -78
  56. package/dist/Tabs-bzvvn4ke.stx +0 -126
@@ -35,7 +35,8 @@ export const helperClasses = `mt-2 text-sm ${error ? 'text-red-600 dark:text-red
35
35
  const emit = defineEmits()
36
36
  const autoResize = {{ autoResize }}
37
37
  const maxRows = {{ maxRows }}
38
- const inputValue = state({{ value }})
38
+ // Reactive prop binding — parent can drive `value` via signals. See #1704.
39
+ const inputValue = useReactiveProp('value', {{ value }}, { parse: (v) => v == null ? '' : String(v) })
39
40
 
40
41
  function resizeTextarea(el) {
41
42
  if (!autoResize) return
@@ -27,7 +27,8 @@ export const arrowClass = `absolute w-0 h-0 border-4 border-transparent ${arrowC
27
27
  <script client>
28
28
  const delay = {{ delay }}
29
29
  const isDisabled = {{ disabled }}
30
- const isVisible = state({{ show }})
30
+ // Reactive prop binding — parent can drive `show` via signals. See #1704.
31
+ const isVisible = useReactiveProp('show', {{ show }})
31
32
  let timeoutId = null
32
33
 
33
34
  function showTooltip() {