@stacksjs/components 0.2.342 → 0.2.344

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 (167) hide show
  1. package/dist/{Accordion-8tv78bh9.stx → Accordion-ccye7erw.stx} +23 -3
  2. package/dist/{Audio-y0sgq50z.stx → Audio-tnjd6anm.stx} +7 -7
  3. package/dist/{Avatar-e43x17z1.stx → Avatar-7vegrsg6.stx} +3 -3
  4. package/dist/Badge-439n5p0a.stx +74 -0
  5. package/dist/{Breadcrumb-csf164sd.stx → Breadcrumb-7hwnfyyw.stx} +21 -6
  6. package/dist/Button-y8fnx29x.stx +193 -0
  7. package/dist/{Calendar-gjjhhfnt.stx → Calendar-8q76ees6.stx} +6 -6
  8. package/dist/{Card-7byck6ep.stx → Card-r55zpjqh.stx} +6 -6
  9. package/dist/{Checkbox-2s2a7n4h.stx → Checkbox-xnm8ax5q.stx} +9 -9
  10. package/dist/{ComboboxInput-z1293bbh.stx → ComboboxInput-9q87fb22.stx} +2 -2
  11. package/dist/{ComboboxOption-6yh7xk7q.stx → ComboboxOption-qm38e8e9.stx} +2 -2
  12. package/dist/{ComboboxOptions-sq5360ae.stx → ComboboxOptions-nbndbrxz.stx} +1 -1
  13. package/dist/{CommandPalette-fzfv1pme.stx → CommandPalette-mkqqep2s.stx} +4 -4
  14. package/dist/{DefaultPaymentMethod-6qrem3sg.stx → DefaultPaymentMethod-v11254p4.stx} +8 -8
  15. package/dist/Dialog-d1020hj6.stx +268 -0
  16. package/dist/DialogBackdrop-de5m5m4w.stx +12 -0
  17. package/dist/DialogPanel-vhdqymc2.stx +19 -0
  18. package/dist/{DialogTitle-x0r6k8x9.stx → DialogTitle-0jjdk5ra.stx} +1 -1
  19. package/dist/{Drawer-9jx39xef.stx → Drawer-rymajw9v.stx} +86 -21
  20. package/dist/{DropdownButton-wcz67dxy.stx → DropdownButton-n6gsmcte.stx} +2 -2
  21. package/dist/{DropdownItem-d8ht2bp5.stx → DropdownItem-qs772agw.stx} +1 -1
  22. package/dist/{DropdownItems-1sxnd5qn.stx → DropdownItems-yf25hdh1.stx} +1 -1
  23. package/dist/{EmailInput-vak3kkmk.stx → EmailInput-agb8kqae.stx} +4 -4
  24. package/dist/{FilterChip-h896vrxm.stx → FilterChip-ww5nkepm.stx} +26 -2
  25. package/dist/{Image-4ezne2xj.stx → Image-79xyzb5j.stx} +3 -3
  26. package/dist/{ListRow-v45ymhcn.stx → ListRow-8d3e1yxh.stx} +2 -2
  27. package/dist/{Listbox-0cyysv0f.stx → Listbox-e5jreb0a.stx} +1 -1
  28. package/dist/{ListboxButton-keb8gm0q.stx → ListboxButton-w3vfvte7.stx} +2 -2
  29. package/dist/{RadioGroupLabel-7mymt1b8.stx → ListboxLabel-ka0hfm7b.stx} +1 -1
  30. package/dist/{ListboxOption-4j070101.stx → ListboxOption-ea0j02a8.stx} +2 -2
  31. package/dist/{ListboxOptions-ejkatcfg.stx → ListboxOptions-qxrkrb8z.stx} +1 -1
  32. package/dist/{Login-2cp65d41.stx → Login-hh53d6tw.stx} +14 -14
  33. package/dist/{NavBar-wcb6f2d3.stx → NavBar-qqrrhdnk.stx} +24 -0
  34. package/dist/{Navigator-smpa7my4.stx → Navigator-55wpcpx1.stx} +2 -2
  35. package/dist/{Notification-03vfh3k6.stx → Notification-7wgk0sw6.stx} +6 -6
  36. package/dist/{NumberInput-j9p5bm5y.stx → NumberInput-54d23rq0.stx} +21 -11
  37. package/dist/{Pagination-ff7nzp7d.stx → Pagination-0ra20dja.stx} +4 -4
  38. package/dist/{PasswordInput-4qykq1dz.stx → PasswordInput-3snyppj4.stx} +24 -14
  39. package/dist/{PaymentMethods-2xy66bwk.stx → PaymentMethods-zwa7c6kh.stx} +10 -10
  40. package/dist/{PopoverButton-mffzc9pr.stx → PopoverButton-panmcysh.stx} +2 -2
  41. package/dist/{PopoverPanel-054yh38h.stx → PopoverPanel-7771yf35.stx} +2 -2
  42. package/dist/{Portal-yghnqdj8.stx → Portal-m73vz879.stx} +1 -1
  43. package/dist/{Progress-twhhzsd9.stx → Progress-cj0z83rx.stx} +47 -18
  44. package/dist/{Radio-ccm07b2m.stx → Radio-m2wz5ny6.stx} +8 -8
  45. package/dist/{RadioGroup-82ytfqdb.stx → RadioGroup-jg9s4ttg.stx} +1 -1
  46. package/dist/{ListboxLabel-7mymt1b8.stx → RadioGroupLabel-ka0hfm7b.stx} +1 -1
  47. package/dist/{RadioGroupOption-7pq7rw84.stx → RadioGroupOption-zvp0y9sn.stx} +2 -2
  48. package/dist/{SearchInput-pdx7agn0.stx → SearchInput-psbjk2ye.stx} +3 -3
  49. package/dist/{SectionCard-r73hvvbc.stx → SectionCard-8ctdacjr.stx} +28 -1
  50. package/dist/{Select-zt72gg1e.stx → Select-pj584jza.stx} +19 -9
  51. package/dist/{Sidebar-f1tff5p3.stx → Sidebar-ve2asgf3.stx} +6 -6
  52. package/dist/{SidebarHeader-3dppxxjh.stx → SidebarHeader-esvby82n.stx} +3 -3
  53. package/dist/{SidebarItem-5v8atp7p.stx → SidebarItem-r4f2pref.stx} +4 -4
  54. package/dist/{SidebarSection-sqz49ary.stx → SidebarSection-5sqza2j6.stx} +2 -2
  55. package/dist/{SidebarSpace-nmbvgrky.stx → SidebarSpace-bwv98azf.stx} +3 -3
  56. package/dist/{SidebarSpaceSwitcher-v5e472j0.stx → SidebarSpaceSwitcher-1mycft2g.stx} +1 -1
  57. package/dist/{SidebarSpaces-6v3p9htw.stx → SidebarSpaces-mdtrynr2.stx} +2 -2
  58. package/dist/{Signup-cbncrtvd.stx → Signup-egdrk3rh.stx} +11 -11
  59. package/dist/{Skeleton-y9tycz2h.stx → Skeleton-me2hwqrc.stx} +4 -4
  60. package/dist/{Spinner-reb6rse4.stx → Spinner-grahbp9a.stx} +9 -9
  61. package/dist/{StepperStep-3ahq4d9m.stx → StepperStep-xw55xjh0.stx} +9 -4
  62. package/dist/{SubscriptionCheckout-7fdkwf04.stx → SubscriptionCheckout-wj4s182k.stx} +13 -13
  63. package/dist/{Switch-cgy7hy0s.stx → Switch-fxbw7s16.stx} +7 -4
  64. package/dist/{TabBarItem-hd2r2ayy.stx → TabBarItem-cnxhgy92.stx} +25 -1
  65. package/dist/{Table-0mc3fdek.stx → Table-akbk3t5q.stx} +1 -1
  66. package/dist/{TableHeader-sxc77b4d.stx → TableHeader-qsc3e208.stx} +1 -1
  67. package/dist/{Tabs-b4xsba1w.stx → Tabs-2cjt68my.stx} +28 -8
  68. package/dist/{Teleport-3gnjtsjf.stx → Teleport-c8nn3757.stx} +2 -2
  69. package/dist/{TextInput-hbe2ynzj.stx → TextInput-9wqzeeg1.stx} +23 -13
  70. package/dist/{Textarea-xcdym703.stx → Textarea-xwkdg8se.stx} +11 -11
  71. package/dist/{Tooltip-y0kzkwh4.stx → Tooltip-14gt4f1w.stx} +9 -6
  72. package/dist/{Transition-7smenaz8.stx → Transition-yrvqbhjy.stx} +1 -1
  73. package/dist/{TwoFactorChallenge-y7n4yrk9.stx → TwoFactorChallenge-0200pjc0.stx} +5 -5
  74. package/dist/{Video-a0aeyexv.stx → Video-rhy7dskw.stx} +6 -6
  75. package/dist/{VirtualTable-jvm1784g.stx → VirtualTable-jvje0ybn.stx} +4 -4
  76. package/dist/composables/index.js +2 -2
  77. package/dist/index.js +13 -13
  78. package/dist/utils/highlighter.d.ts +1 -0
  79. package/dist/utils/highlighter.js +1 -1
  80. package/package.json +3 -3
  81. package/src/components/CodeBlock.stx +7 -1
  82. package/src/components/Footer.stx +1 -1
  83. package/src/components/Hero.stx +2 -2
  84. package/src/components/Installation.stx +4 -4
  85. package/src/ui/accordion/Accordion.stx +23 -3
  86. package/src/ui/audio/Audio.stx +7 -7
  87. package/src/ui/auth/Login.stx +14 -14
  88. package/src/ui/auth/Signup.stx +11 -11
  89. package/src/ui/auth/TwoFactorChallenge.stx +5 -5
  90. package/src/ui/avatar/Avatar.stx +3 -3
  91. package/src/ui/badge/Badge.stx +31 -19
  92. package/src/ui/breadcrumb/Breadcrumb.stx +21 -6
  93. package/src/ui/button/Button.stx +148 -29
  94. package/src/ui/calendar/Calendar.stx +6 -6
  95. package/src/ui/card/Card.stx +6 -6
  96. package/src/ui/checkbox/Checkbox.stx +9 -9
  97. package/src/ui/combobox/ComboboxInput.stx +2 -2
  98. package/src/ui/combobox/ComboboxOption.stx +2 -2
  99. package/src/ui/combobox/ComboboxOptions.stx +1 -1
  100. package/src/ui/command-palette/CommandPalette.stx +4 -4
  101. package/src/ui/dialog/Dialog.stx +231 -4
  102. package/src/ui/dialog/DialogBackdrop.stx +5 -2
  103. package/src/ui/dialog/DialogPanel.stx +5 -2
  104. package/src/ui/dialog/DialogTitle.stx +1 -1
  105. package/src/ui/dialog/README.md +15 -4
  106. package/src/ui/drawer/Drawer.stx +86 -21
  107. package/src/ui/dropdown/DropdownButton.stx +2 -2
  108. package/src/ui/dropdown/DropdownItem.stx +1 -1
  109. package/src/ui/dropdown/DropdownItems.stx +1 -1
  110. package/src/ui/heatmap/Heatmap.stx +1 -1
  111. package/src/ui/image/Image.stx +3 -3
  112. package/src/ui/input/EmailInput.stx +4 -4
  113. package/src/ui/input/NumberInput.stx +21 -11
  114. package/src/ui/input/PasswordInput.stx +24 -14
  115. package/src/ui/input/SearchInput.stx +3 -3
  116. package/src/ui/input/TextInput.stx +23 -13
  117. package/src/ui/listbox/Listbox.stx +1 -1
  118. package/src/ui/listbox/ListboxButton.stx +2 -2
  119. package/src/ui/listbox/ListboxLabel.stx +1 -1
  120. package/src/ui/listbox/ListboxOption.stx +2 -2
  121. package/src/ui/listbox/ListboxOptions.stx +1 -1
  122. package/src/ui/mobile/FilterChip.stx +26 -2
  123. package/src/ui/mobile/ListRow.stx +2 -2
  124. package/src/ui/mobile/NavBar.stx +24 -0
  125. package/src/ui/mobile/SectionCard.stx +28 -1
  126. package/src/ui/mobile/TabBarItem.stx +25 -1
  127. package/src/ui/navigator/Navigator.stx +2 -2
  128. package/src/ui/notification/Notification.stx +6 -6
  129. package/src/ui/pagination/Pagination.stx +4 -4
  130. package/src/ui/payment/DefaultPaymentMethod.stx +8 -8
  131. package/src/ui/payment/PaymentMethods.stx +10 -10
  132. package/src/ui/payment/SubscriptionCheckout.stx +13 -13
  133. package/src/ui/popover/PopoverButton.stx +2 -2
  134. package/src/ui/popover/PopoverPanel.stx +2 -2
  135. package/src/ui/portal/Portal.stx +1 -1
  136. package/src/ui/progress/Progress.stx +47 -18
  137. package/src/ui/radio/Radio.stx +8 -8
  138. package/src/ui/radio-group/RadioGroup.stx +1 -1
  139. package/src/ui/radio-group/RadioGroupLabel.stx +1 -1
  140. package/src/ui/radio-group/RadioGroupOption.stx +2 -2
  141. package/src/ui/select/Select.stx +19 -9
  142. package/src/ui/sidebar/Sidebar.stx +6 -6
  143. package/src/ui/sidebar/SidebarHeader.stx +3 -3
  144. package/src/ui/sidebar/SidebarItem.stx +4 -4
  145. package/src/ui/sidebar/SidebarSection.stx +2 -2
  146. package/src/ui/sidebar/SidebarSpace.stx +3 -3
  147. package/src/ui/sidebar/SidebarSpaceSwitcher.stx +1 -1
  148. package/src/ui/sidebar/SidebarSpaces.stx +2 -2
  149. package/src/ui/skeleton/Skeleton.stx +4 -4
  150. package/src/ui/spinner/Spinner.stx +9 -9
  151. package/src/ui/stepper/StepperStep.stx +9 -4
  152. package/src/ui/switch/Switch.stx +7 -4
  153. package/src/ui/table/Table.stx +1 -1
  154. package/src/ui/table/TableHeader.stx +1 -1
  155. package/src/ui/tabs/Tabs.stx +28 -8
  156. package/src/ui/teleport/Teleport.stx +2 -2
  157. package/src/ui/textarea/Textarea.stx +11 -11
  158. package/src/ui/tooltip/Tooltip.stx +9 -6
  159. package/src/ui/transition/Transition.stx +1 -1
  160. package/src/ui/video/Video.stx +6 -6
  161. package/src/ui/virtual-table/VirtualTable.stx +4 -4
  162. package/src/utils/highlighter.ts +65 -4
  163. package/dist/Badge-xwjeq24d.stx +0 -62
  164. package/dist/Button-h2mk4wfw.stx +0 -74
  165. package/dist/Dialog-y5rz2vrq.stx +0 -41
  166. package/dist/DialogBackdrop-rxax3sec.stx +0 -9
  167. package/dist/DialogPanel-44d8jeqy.stx +0 -16
@@ -7,11 +7,11 @@
7
7
  // content. Each AccordionItem renders its own header + content panel;
8
8
  // this parent attaches click handlers and toggles content visibility.
9
9
  export const items = $props.items || []
10
- export const allowMultiple = $props.allowMultiple || false
10
+ export const allowMultiple = $bool($props.allowMultiple)
11
11
  export const defaultOpen = $props.defaultOpen || []
12
12
  export const className = $props.className || ''
13
13
 
14
- export const accordionClasses = `divide-y divide-line border border-line rounded-lg ${className}`.trim()
14
+ export const accordionClasses = `divide-y divide-line border border-line rounded-panel ${className}`.trim()
15
15
  export const headerClasses = `w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900`.trim()
16
16
  export const iconClasses = `w-5 h-5 text-fg-soft transition-transform duration-200`.trim()
17
17
  export const contentClasses = `px-4 py-3 text-fg-strong`.trim()
@@ -22,8 +22,26 @@ export const hasPropItems = Array.isArray(items) && items.length > 0
22
22
  const emit = defineEmits()
23
23
  const allowMultiple = {{ allowMultiple }}
24
24
  const hasPropItems = {{ hasPropItems }}
25
- const containerRef = useRef()
25
+ // useRef takes the NAME the x-ref attribute uses. Called with no
26
+ // argument it read $refs[undefined], which nothing ever fills, so
27
+ // containerRef.value was null forever - the mount hook found no panels,
28
+ // the list stayed empty, and the component rendered nothing.
29
+ // stacksjs/stx#1979
30
+ const containerRef = useRef('containerRef')
26
31
  const openItems = state({{ defaultOpen }})
32
+ /*
33
+ * Whether the mount hook has run.
34
+ *
35
+ * The effect below reaches into the DOM through containerRef, and an effect's
36
+ * first run happens while the setup function is still executing - before
37
+ * hydration has wired x-ref, so containerRef.value is null and the query can
38
+ * only come back empty. Nothing else it reads ever changed afterwards, so it
39
+ * never ran again and the DOM was never touched: every panel kept the hidden
40
+ * attribute it was served with, forever. Reading this makes the effect re-run
41
+ * once the DOM is actually reachable. stacksjs/stx#1979
42
+ */
43
+ const mounted = state(false)
44
+
27
45
 
28
46
  function findOwnItems() {
29
47
  const root = containerRef.value
@@ -43,12 +61,14 @@ onMount(() => {
43
61
  header.addEventListener('keydown', (e) => onHeaderKey(e, idx))
44
62
  }
45
63
  })
64
+ mounted.set(true)
46
65
  })
47
66
 
48
67
  // Sync the open state into the DOM: show/hide content panels, update
49
68
  // aria-expanded on headers, rotate chevrons.
50
69
  effect(() => {
51
70
  if (hasPropItems) return
71
+ if (!mounted()) return
52
72
  const items = findOwnItems()
53
73
  const open = openItems()
54
74
  items.forEach((item, idx) => {
@@ -1,16 +1,16 @@
1
1
  <script server>
2
2
  export const src = $props.src || ''
3
- export const autoplay = $props.autoplay || false
4
- export const loop = $props.loop || false
5
- export const muted = $props.muted || false
6
- export const controls = $props.controls ?? true
3
+ export const autoplay = $bool($props.autoplay)
4
+ export const loop = $bool($props.loop)
5
+ export const muted = $bool($props.muted)
6
+ export const controls = $bool($props.controls, true)
7
7
  export const preload = $props.preload || 'metadata'
8
8
  export const className = $props.className || ''
9
- export const showWaveform = $props.showWaveform || false
9
+ export const showWaveform = $bool($props.showWaveform)
10
10
  export const title = $props.title || ''
11
11
 
12
12
  export const containerClasses = `relative w-full ${className}`.trim()
13
- export const audioClasses = 'w-full rounded-md bg-surface-raised'
13
+ export const audioClasses = 'w-full rounded-control bg-surface-raised'
14
14
  </script>
15
15
 
16
16
  <div class="{{ containerClasses }}">
@@ -35,7 +35,7 @@ export const audioClasses = 'w-full rounded-md bg-surface-raised'
35
35
  </audio>
36
36
 
37
37
  @if(showWaveform)
38
- <div class="mt-2 h-16 bg-surface-raised rounded-md flex items-center justify-center">
38
+ <div class="mt-2 h-16 bg-surface-raised rounded-control flex items-center justify-center">
39
39
  <svg class="w-full h-full px-4" viewBox="0 0 100 40" preserveAspectRatio="none">
40
40
  <path
41
41
  d="M 0,20 L 10,15 L 20,10 L 30,5 L 40,15 L 50,20 L 60,25 L 70,30 L 80,20 L 90,15 L 100,20"
@@ -1,10 +1,10 @@
1
1
  <script server>
2
- export const showLogo = $props.showLogo ?? true
2
+ export const showLogo = $bool($props.showLogo, true)
3
3
  export const headingText = $props.headingText || 'Sign in to your account'
4
- export const showSocialLogin = $props.showSocialLogin ?? true
5
- export const showRememberMe = $props.showRememberMe ?? true
6
- export const showForgotPassword = $props.showForgotPassword ?? true
7
- export const showSignup = $props.showSignup ?? true
4
+ export const showSocialLogin = $bool($props.showSocialLogin, true)
5
+ export const showRememberMe = $bool($props.showRememberMe, true)
6
+ export const showForgotPassword = $bool($props.showForgotPassword, true)
7
+ export const showSignup = $bool($props.showSignup, true)
8
8
  export const signupText = $props.signupText || 'Start a 14 day free trial'
9
9
  export const className = $props.className || ''
10
10
 
@@ -16,7 +16,7 @@ export const className = $props.className || ''
16
16
  export const forgotPasswordHref = $props.forgotPasswordHref || '/forgot-password'
17
17
  export const signupHref = $props.signupHref || '/register'
18
18
 
19
- export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6 dark:bg-blue-gray-900 ${className}`.trim()
19
+ export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6 dark:bg-neutral-900 ${className}`.trim()
20
20
  </script>
21
21
 
22
22
  <script client>
@@ -55,7 +55,7 @@ function onSubmit(event) {
55
55
 
56
56
  <form @submit="onSubmit($event)">
57
57
  <div class="mt-10 sm:mx-auto sm:max-w-[480px] sm:w-full">
58
- <div class="bg-white dark:bg-blue-gray-800 px-6 py-12 shadow sm:rounded-lg sm:px-12">
58
+ <div class="bg-panel px-6 py-12 shadow sm:rounded-panel sm:px-12">
59
59
  <div class="space-y-6">
60
60
  <div>
61
61
  <label for="email" class="block text-sm text-fg font-medium leading-6">
@@ -68,7 +68,7 @@ function onSubmit(event) {
68
68
  type="email"
69
69
  autocomplete="email"
70
70
  required
71
- class="block w-full border-0 rounded-md py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-indigo-600 focus:ring-inset dark:bg-blue-gray-700"
71
+ class="block w-full border-0 rounded-control py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-indigo-600 focus:ring-inset dark:bg-neutral-700"
72
72
  />
73
73
  </div>
74
74
  </div>
@@ -84,7 +84,7 @@ function onSubmit(event) {
84
84
  type="password"
85
85
  autocomplete="current-password"
86
86
  required
87
- class="block w-full border-0 rounded-md py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-indigo-600 focus:ring-inset dark:bg-blue-gray-700"
87
+ class="block w-full border-0 rounded-control py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-indigo-600 focus:ring-inset dark:bg-neutral-700"
88
88
  />
89
89
  </div>
90
90
  </div>
@@ -96,7 +96,7 @@ function onSubmit(event) {
96
96
  id="remember-me"
97
97
  name="remember-me"
98
98
  type="checkbox"
99
- class="h-4 w-4 border-line-strong rounded text-indigo-600 focus:ring-indigo-600 dark:bg-blue-gray-700"
99
+ class="h-4 w-4 border-line-strong rounded text-indigo-600 focus:ring-indigo-600 dark:bg-neutral-700"
100
100
  />
101
101
  <label for="remember-me" class="ml-3 block text-sm text-fg leading-6">
102
102
  Remember me
@@ -116,7 +116,7 @@ function onSubmit(event) {
116
116
  <div>
117
117
  <button
118
118
  type="submit"
119
- class="w-full flex justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm text-white font-semibold leading-6 shadow-sm hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-indigo-600 focus-visible:outline-offset-2 focus-visible:outline"
119
+ class="w-full flex justify-center rounded-control bg-indigo-600 px-3 py-1.5 text-sm text-white font-semibold leading-6 shadow-sm hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-indigo-600 focus-visible:outline-offset-2 focus-visible:outline"
120
120
  >
121
121
  Sign in
122
122
  </button>
@@ -130,7 +130,7 @@ function onSubmit(event) {
130
130
  <div class="w-full border-t border-line"></div>
131
131
  </div>
132
132
  <div class="relative flex justify-center text-sm font-medium leading-6">
133
- <span class="bg-white dark:bg-blue-gray-800 px-6 text-fg">
133
+ <span class="bg-panel px-6 text-fg">
134
134
  Or continue with
135
135
  </span>
136
136
  </div>
@@ -140,7 +140,7 @@ function onSubmit(event) {
140
140
  <button
141
141
  type="button"
142
142
  @click="onSocial('google')"
143
- class="w-full flex items-center justify-center gap-3 rounded-md bg-white dark:bg-blue-gray-700 px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-gray-50 dark:hover:bg-blue-gray-600 focus-visible:ring-transparent"
143
+ class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-neutral-50 dark:hover:bg-neutral-600 focus-visible:ring-transparent"
144
144
  >
145
145
  <svg class="h-5 w-5" viewBox="0 0 24 24" aria-hidden="true">
146
146
  <path d="M12.0003 4.75C13.7703 4.75 15.3553 5.36002 16.6053 6.54998L20.0303 3.125C17.9502 1.19 15.2353 0 12.0003 0C7.31028 0 3.25527 2.69 1.28027 6.60998L5.27028 9.70498C6.21525 6.86002 8.87028 4.75 12.0003 4.75Z" fill="#EA4335" />
@@ -154,7 +154,7 @@ function onSubmit(event) {
154
154
  <button
155
155
  type="button"
156
156
  @click="onSocial('github')"
157
- class="w-full flex items-center justify-center gap-3 rounded-md bg-white dark:bg-blue-gray-700 px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-gray-50 dark:hover:bg-blue-gray-600 focus-visible:ring-transparent"
157
+ class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-neutral-50 dark:hover:bg-neutral-600 focus-visible:ring-transparent"
158
158
  >
159
159
  <svg class="h-5 w-5 fill-[#24292F]" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
160
160
  <path fill-rule="evenodd" d="M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z" clip-rule="evenodd" />
@@ -1,9 +1,9 @@
1
1
  <script server>
2
2
  export const headingText = $props.headingText || 'Sign up for Stacks'
3
- export const showSocialSignup = $props.showSocialSignup ?? true
3
+ export const showSocialSignup = $bool($props.showSocialSignup, true)
4
4
  export const className = $props.className || ''
5
5
 
6
- export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6 dark:bg-blue-gray-900 ${className}`.trim()
6
+ export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6 dark:bg-neutral-900 ${className}`.trim()
7
7
  </script>
8
8
 
9
9
  <script client>
@@ -47,7 +47,7 @@ function onSubmit(event) {
47
47
  </div>
48
48
 
49
49
  <div class="mt-10 sm:mx-auto sm:max-w-[480px] sm:w-full">
50
- <div class="bg-white dark:bg-blue-gray-800 px-6 py-12 shadow sm:rounded-lg sm:px-12">
50
+ <div class="bg-panel px-6 py-12 shadow sm:rounded-panel sm:px-12">
51
51
  <form class="space-y-6" @submit="onSubmit($event)">
52
52
  <div>
53
53
  <label for="name" class="block text-sm text-fg font-medium leading-6">
@@ -60,7 +60,7 @@ function onSubmit(event) {
60
60
  type="text"
61
61
  autocomplete="name"
62
62
  required
63
- class="block w-full border-0 rounded-md p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-blue-gray-700"
63
+ class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-neutral-700"
64
64
  />
65
65
  </div>
66
66
  </div>
@@ -76,7 +76,7 @@ function onSubmit(event) {
76
76
  type="email"
77
77
  autocomplete="email"
78
78
  required
79
- class="block w-full border-0 rounded-md p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-blue-gray-700"
79
+ class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-neutral-700"
80
80
  />
81
81
  </div>
82
82
  </div>
@@ -92,7 +92,7 @@ function onSubmit(event) {
92
92
  type="email"
93
93
  autocomplete="email"
94
94
  required
95
- class="block w-full border-0 rounded-md p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-blue-gray-700"
95
+ class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-neutral-700"
96
96
  />
97
97
  </div>
98
98
  </div>
@@ -108,7 +108,7 @@ function onSubmit(event) {
108
108
  type="password"
109
109
  autocomplete="new-password"
110
110
  required
111
- class="block w-full border-0 rounded-md p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-blue-gray-700"
111
+ class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-teal-600 focus:ring-inset dark:bg-neutral-700"
112
112
  />
113
113
  </div>
114
114
  </div>
@@ -116,7 +116,7 @@ function onSubmit(event) {
116
116
  <div>
117
117
  <button
118
118
  type="submit"
119
- class="w-full flex justify-center rounded-md bg-teal-600 px-3 py-1.5 text-sm text-white font-semibold leading-6 shadow-sm hover:bg-teal-500 focus-visible:outline-2 focus-visible:outline-teal-600 focus-visible:outline-offset-2 focus-visible:outline"
119
+ class="w-full flex justify-center rounded-control bg-teal-600 px-3 py-1.5 text-sm text-white font-semibold leading-6 shadow-sm hover:bg-teal-500 focus-visible:outline-2 focus-visible:outline-teal-600 focus-visible:outline-offset-2 focus-visible:outline"
120
120
  >
121
121
  Sign up
122
122
  </button>
@@ -130,7 +130,7 @@ function onSubmit(event) {
130
130
  <div class="w-full border-t border-line"></div>
131
131
  </div>
132
132
  <div class="relative flex justify-center text-sm font-medium leading-6">
133
- <span class="bg-white dark:bg-blue-gray-800 px-6 text-fg">
133
+ <span class="bg-panel px-6 text-fg">
134
134
  Or signup with
135
135
  </span>
136
136
  </div>
@@ -140,7 +140,7 @@ function onSubmit(event) {
140
140
  <button
141
141
  type="button"
142
142
  @click="onSocial('google')"
143
- class="w-full flex items-center justify-center gap-3 rounded-md bg-white dark:bg-blue-gray-700 px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-gray-50 dark:hover:bg-blue-gray-600 focus-visible:ring-transparent"
143
+ class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-neutral-50 dark:hover:bg-neutral-600 focus-visible:ring-transparent"
144
144
  >
145
145
  <svg class="h-5 w-5" viewBox="0 0 24 24" aria-hidden="true">
146
146
  <path d="M12.0003 4.75C13.7703 4.75 15.3553 5.36002 16.6053 6.54998L20.0303 3.125C17.9502 1.19 15.2353 0 12.0003 0C7.31028 0 3.25527 2.69 1.28027 6.60998L5.27028 9.70498C6.21525 6.86002 8.87028 4.75 12.0003 4.75Z" fill="#EA4335" />
@@ -154,7 +154,7 @@ function onSubmit(event) {
154
154
  <button
155
155
  type="button"
156
156
  @click="onSocial('github')"
157
- class="w-full flex items-center justify-center gap-3 rounded-md bg-white dark:bg-blue-gray-700 px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-gray-50 dark:hover:bg-blue-gray-600 focus-visible:ring-transparent"
157
+ class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-neutral-50 dark:hover:bg-neutral-600 focus-visible:ring-transparent"
158
158
  >
159
159
  <svg class="h-5 w-5 fill-[#24292F] dark:fill-white" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
160
160
  <path fill-rule="evenodd" d="M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z" clip-rule="evenodd" />
@@ -3,10 +3,10 @@ export const headingText = $props.headingText || 'Two Factor Authentication'
3
3
  export const labelText = $props.labelText || 'Authentication code'
4
4
  export const instructionText = $props.instructionText || 'Open your Symantec 2FA app to view your authentication code.'
5
5
  export const codeLength = $props.codeLength || 6
6
- export const showRecoveryCode = $props.showRecoveryCode ?? true
6
+ export const showRecoveryCode = $bool($props.showRecoveryCode, true)
7
7
  export const className = $props.className || ''
8
8
 
9
- export const containerClasses = `py-32 dark:bg-blue-gray-900 ${className}`.trim()
9
+ export const containerClasses = `py-32 dark:bg-neutral-900 ${className}`.trim()
10
10
  </script>
11
11
 
12
12
  <script client>
@@ -53,7 +53,7 @@ function onRecoveryCode(event) {
53
53
  </script>
54
54
 
55
55
  <div class="{{ containerClasses }}">
56
- <div class="mx-auto max-w-sm rounded-md px-8 py-4 shadow-md bg-white dark:bg-blue-gray-800">
56
+ <div class="mx-auto max-w-sm rounded-control px-8 py-4 shadow-md bg-panel">
57
57
  <div class="card-body">
58
58
  <div>
59
59
  <h3 class="text-center text-sm text-fg font-semibold">
@@ -63,7 +63,7 @@ function onRecoveryCode(event) {
63
63
  {{ labelText }}
64
64
  </label>
65
65
  <form @submit="onSubmit($event)">
66
- <div class="mt-2 flex rounded-md shadow-sm space-x-2">
66
+ <div class="mt-2 flex rounded-control shadow-sm space-x-2">
67
67
  @for(i in Array(codeLength).keys())
68
68
  <input
69
69
  id="code-{{ i }}"
@@ -71,7 +71,7 @@ function onRecoveryCode(event) {
71
71
  maxlength="1"
72
72
  name="code-{{ i }}"
73
73
  placeholder="-"
74
- class="block w-full border-0 rounded-md px-2 py-2 text-center text-fg ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-indigo-600 focus:ring-inset dark:bg-blue-gray-700"
74
+ class="block w-full border-0 rounded-control px-2 py-2 text-center text-fg ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-subtle sm:leading-6 focus:ring-2 focus:ring-indigo-600 focus:ring-inset dark:bg-neutral-700"
75
75
  @input="onCodeInput($event, {{ i }})"
76
76
  @keydown="onKeyDown($event, {{ i }})"
77
77
  />
@@ -29,16 +29,16 @@ const statusSizeClasses = {
29
29
 
30
30
  const statusColorClasses = {
31
31
  online: 'bg-green-500 dark:bg-green-400',
32
- offline: 'bg-gray-400 dark:bg-gray-600',
32
+ offline: 'bg-neutral-400 dark:bg-neutral-600',
33
33
  away: 'bg-yellow-500 dark:bg-yellow-400',
34
34
  busy: 'bg-red-500 dark:bg-red-400',
35
35
  }
36
36
 
37
37
  export const containerClasses = `relative inline-block ${className}`.trim()
38
- export const avatarClasses = `flex items-center justify-center overflow-hidden bg-surface-sunken ${sizeClasses[size]} ${shapeClasses[shape]}`.trim()
38
+ export const avatarClasses = `flex items-center justify-center overflow-hidden bg-surface-sunken ${sizeClasses[size] || sizeClasses.md} ${shapeClasses[shape] || shapeClasses.circle}`.trim()
39
39
  export const imageClasses = `w-full h-full object-cover`.trim()
40
40
  export const initialsClasses = `font-medium text-fg-muted uppercase select-none`.trim()
41
- export const statusClasses = status ? `absolute bottom-0 right-0 ${statusSizeClasses[size]} ${statusColorClasses[status]} ${shapeClasses[shape]} border-white dark:border-gray-900`.trim() : ''
41
+ export const statusClasses = status ? `absolute bottom-0 right-0 ${statusSizeClasses[size] || statusSizeClasses.md} ${statusColorClasses[status] || statusColorClasses.offline} ${shapeClasses[shape] || shapeClasses.circle} border-white dark:border-neutral-900`.trim() : ''
42
42
  export const displayInitials = initials || (alt ? alt.split(' ').map(n => n[0]).join('').substring(0, 2) : '?')
43
43
  </script>
44
44
 
@@ -1,35 +1,47 @@
1
1
  <script server cache>
2
2
  export const variant = $props.variant || 'default'
3
3
  export const size = $props.size || 'md'
4
- export const dot = $props.dot || false
5
- export const removable = $props.removable || false
4
+ export const dot = $bool($props.dot)
5
+ export const removable = $bool($props.removable)
6
6
  export const className = $props.className || ''
7
7
 
8
+ /*
9
+ * Role tokens for the status variants, so an app re-themes a badge by setting
10
+ * --stx-accent-soft rather than by cancelling a class (stacksjs/stx#1993).
11
+ * The 100/800 light and 900/200 dark pairing these used IS the soft-fill
12
+ * token's definition, so primary, success, warning and danger are unchanged.
13
+ *
14
+ * `secondary` (purple) and `info` (cyan) stay literal. The role vocabulary has
15
+ * five status hues and neither of those is one of them: mapping info onto the
16
+ * `info` role would paint it blue, which is what `primary` already is, so a
17
+ * badge whose whole job is to distinguish would render two of its variants
18
+ * identically. A wrong colour is worse than an unthemeable one.
19
+ */
8
20
  const variantClasses = {
9
- default: 'bg-surface-raised text-gray-800 dark:text-gray-300',
10
- primary: 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200',
11
- secondary: 'bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200',
12
- success: 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200',
13
- warning: 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200',
14
- danger: 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200',
15
- info: 'bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-200',
21
+ default: 'bg-surface-raised text-neutral-800 dark:text-neutral-300',
22
+ primary: 'bg-accent-soft text-accent-soft-ink',
23
+ secondary: 'bg-secondary-soft text-secondary-soft-ink',
24
+ success: 'bg-success-soft text-success-soft-ink',
25
+ warning: 'bg-warning-soft text-warning-soft-ink',
26
+ danger: 'bg-danger-soft text-danger-soft-ink',
27
+ info: 'bg-info-soft text-info-soft-ink',
16
28
  }
17
29
 
18
30
  const sizeClasses = { sm: 'px-2 py-0.5 text-xs', md: 'px-2.5 py-0.5 text-sm', lg: 'px-3 py-1 text-base' }
19
31
 
20
32
  const dotColorClasses = {
21
- default: 'bg-gray-500 dark:bg-gray-400',
22
- primary: 'bg-blue-500 dark:bg-blue-400',
23
- secondary: 'bg-purple-500 dark:bg-purple-400',
24
- success: 'bg-green-500 dark:bg-green-400',
25
- warning: 'bg-yellow-500 dark:bg-yellow-400',
26
- danger: 'bg-red-500 dark:bg-red-400',
27
- info: 'bg-cyan-500 dark:bg-cyan-400',
33
+ default: 'bg-fg-soft',
34
+ primary: 'bg-accent',
35
+ secondary: 'bg-secondary',
36
+ success: 'bg-success',
37
+ warning: 'bg-warning',
38
+ danger: 'bg-danger',
39
+ info: 'bg-info',
28
40
  }
29
41
 
30
- export const badgeClasses = `inline-flex items-center gap-1.5 font-medium rounded-full ${variantClasses[variant]} ${sizeClasses[size]} ${className}`.trim()
31
- export const dotClasses = `w-2 h-2 rounded-full ${dotColorClasses[variant]}`.trim()
32
- export const removeButtonClasses = `ml-0.5 -mr-1 text-current hover:bg-black hover:bg-opacity-10 dark:hover:bg-white dark:hover:bg-opacity-10 rounded-full p-0.5 transition-colors duration-150`.trim()
42
+ export const badgeClasses = `inline-flex items-center gap-1.5 font-medium rounded-pill ${variantClasses[variant] || variantClasses.default} ${sizeClasses[size] || sizeClasses.md} ${className}`.trim()
43
+ export const dotClasses = `w-2 h-2 rounded-full ${dotColorClasses[variant] || dotColorClasses.default}`.trim()
44
+ export const removeButtonClasses = `ml-0.5 -mr-1 text-current hover:bg-black/10 dark:hover:bg-white/10 rounded-full p-0.5 transition-colors duration-150`.trim()
33
45
  </script>
34
46
 
35
47
  <script client>
@@ -4,12 +4,27 @@ export const separator = $props.separator || '/'
4
4
  export const maxItems = $props.maxItems || 0
5
5
  export const className = $props.className || ''
6
6
 
7
- // Handle collapse if maxItems is set
7
+ /*
8
+ * Collapse to exactly maxItems crumbs: first + ellipsis + tail.
9
+ *
10
+ * The ellipsis was not counted against the budget - the tail was
11
+ * `items.slice(-(maxItems - 1))` taken AFTER the first item - so the result
12
+ * was maxItems + 1 crumbs at every setting. maxItems: 2 was the only value
13
+ * that kept its promise, and it did so by coincidence.
14
+ *
15
+ * maxItems: 1 was the sharp edge: `-(1 - 1)` is `-0`, and `slice(-0)` is
16
+ * `slice(0)`, so the tail was the WHOLE array. Asking for one crumb rendered
17
+ * a five-item trail as seven, with the first crumb appearing both before and
18
+ * after the ellipsis. stacksjs/stx#1999
19
+ *
20
+ * At maxItems: 1 there is no room for a tail, so it renders `first …` - the
21
+ * most honest thing a one-slot breadcrumb can show.
22
+ */
8
23
  let displayItems = items
9
24
  if (maxItems > 0 && items.length > maxItems) {
10
- const firstItems = items.slice(0, 1)
11
- const lastItems = items.slice(-(maxItems - 1))
12
- displayItems = [...firstItems, { label: '...', href: '#', collapsed: true }, ...lastItems]
25
+ const tailCount = Math.max(0, maxItems - 2)
26
+ const tail = tailCount > 0 ? items.slice(-tailCount) : []
27
+ displayItems = [items[0], { label: '...', href: '#', collapsed: true }, ...tail]
13
28
  }
14
29
 
15
30
  // Separator element
@@ -38,7 +53,7 @@ export const collapsedClasses = `text-fg-subtle cursor-default`.trim()
38
53
  <span class="{{ activeItemClasses }}" aria-current="page">
39
54
  @if(item.icon)
40
55
  <span class="inline-flex items-center gap-1.5">
41
- <span innerHTML="{!! item.icon !!}"></span>
56
+ <span>{!! item.icon !!}</span>
42
57
  <span>{{ item.label }}</span>
43
58
  </span>
44
59
  @else
@@ -53,7 +68,7 @@ export const collapsedClasses = `text-fg-subtle cursor-default`.trim()
53
68
  >
54
69
  @if(item.icon)
55
70
  <span class="inline-flex items-center gap-1.5">
56
- <span innerHTML="{!! item.icon !!}"></span>
71
+ <span>{!! item.icon !!}</span>
57
72
  <span>{{ item.label }}</span>
58
73
  </span>
59
74
  @else