asta-ui 0.8.0 → 0.9.0

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.
@@ -1,10 +1,10 @@
1
1
  /* Overlays: drawer, popover, hover card, dropdown and context menus, command palette, navbar, sidebar,
2
2
  * workspace switcher, footer, announcement bar, stepper and tool dock.
3
- * Class lists mirror go/ui/<name>.templ. asta.js drives them through data-* and aria-* attributes, and the
3
+ * Class lists mirror the React kit. asta.js drives them through data-* and aria-* attributes, and the
4
4
  * runtime classes (asta-dialog, asta-drawer, asta-cmd, asta-float, asta-lift, asta-nav-sec) carry the motion,
5
5
  * so keep those in the markup. */
6
6
 
7
- /* ---- Drawer (drawer.templ) ----
7
+ /* ---- Drawer ----
8
8
  * <dialog id="filters" class="asta-dialog asta-drawer" data-side="right"> <div class="asta-drawer-inner">…</div>
9
9
  * <button class="asta-drawer-close" data-asta-close aria-label="Close">…</button></dialog>
10
10
  * Open it with <button data-asta-open="filters">. data-side: right (default) left bottom. */
@@ -62,7 +62,7 @@
62
62
  }
63
63
  }
64
64
 
65
- /* ---- Popover (popover.templ) ----
65
+ /* ---- Popover ----
66
66
  * <button popovertarget="share" aria-haspopup="dialog">Share</button>
67
67
  * <div id="share" popover="auto" role="dialog" data-asta-popover data-side="bottom" data-align="center"
68
68
  * class="asta-float asta-popover"><svg class="asta-popover-arrow" data-asta-arrow>…</svg>…</div> */
@@ -80,7 +80,7 @@
80
80
  }
81
81
  }
82
82
 
83
- /* ---- Hover card (hover_card.templ) ----
83
+ /* ---- Hover card ----
84
84
  * <a href="/sam" data-asta-hovercard-for="sam">Sam</a>
85
85
  * <div id="sam" popover="manual" role="dialog" aria-modal="false" data-asta-hovercard data-side="bottom"
86
86
  * data-align="center" class="asta-float asta-lift asta-hover-card">…</div> */
@@ -90,7 +90,7 @@
90
90
  @apply before:absolute before:inset-x-0 before:h-[var(--asta-gap,10px)] before:content-[''] data-[placed=bottom]:before:bottom-full data-[placed=top]:before:top-full;
91
91
  }
92
92
 
93
- /* ---- Top-layer menu panel (dropdown_menu.templ floatPanel) ----
93
+ /* ---- Top-layer menu panel ----
94
94
  * Shared by dropdowns, submenus, context menus and the workspace switchers. Items are core's .asta-menu-item.
95
95
  * <div role="menu" popover="manual" tabindex="-1" data-asta-mpanel class="asta-float asta-dropdown-panel">…</div> */
96
96
  .asta-dropdown-panel {
@@ -98,7 +98,7 @@
98
98
  @apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_12px_32px_-12px_rgb(0_0_0/0.28),0_4px_10px_-6px_rgb(0_0_0/0.12)];
99
99
  }
100
100
 
101
- /* ---- Dropdown menu (dropdown_menu.templ) ----
101
+ /* ---- Dropdown menu ----
102
102
  * <div class="asta-dropdown" data-asta-dropdown>
103
103
  * <button class="asta-btn asta-btn-outline asta-dropdown-trigger" data-asta-dropdown-trigger aria-haspopup="menu"
104
104
  * aria-expanded="false" aria-controls="view">View <svg class="asta-dropdown-chevron">…</svg></button>
@@ -172,7 +172,7 @@
172
172
  }
173
173
  }
174
174
  }
175
- /* ---- Context menu (context_menu.templ) ----
175
+ /* ---- Context menu ----
176
176
  * <div class="asta-context-menu" data-asta-context-menu tabindex="0">Right-click here
177
177
  * <div role="menu" popover="manual" tabindex="-1" data-asta-mpanel aria-orientation="vertical"
178
178
  * class="asta-float asta-dropdown-panel asta-context-menu-panel">…</div></div> */
@@ -184,7 +184,7 @@
184
184
  @apply [&_[role^=menuitem]]:h-8 [&_[role^=menuitem]]:rounded-lg [&_[role^=menuitem]]:text-[13px];
185
185
  }
186
186
 
187
- /* ---- Command palette (command_palette.templ) ----
187
+ /* ---- Command palette ----
188
188
  * <dialog id="cmd" class="asta-dialog asta-cmd" data-asta-command data-hotkey="k" aria-label="Command palette">
189
189
  * <div class="asta-cmd-inner"><div class="asta-cmd-search">… <input data-asta-command-input class="asta-cmd-input"></div>
190
190
  * <div class="asta-cmd-scroll" data-asta-command-scroll><div role="listbox" data-asta-command-list>
@@ -266,7 +266,7 @@
266
266
  }
267
267
  }
268
268
 
269
- /* ---- Navbar (navbar.templ) ----
269
+ /* ---- Navbar ----
270
270
  * <header class="asta-navbar" data-asta-navbar><div class="asta-navbar-bar">brand · nav · actions · surface</div>
271
271
  * <div id="nav-sheet" data-asta-nav-sheet hidden class="asta-navbar-sheet">…</div></header>
272
272
  * asta.js sets data-open (a mega panel is open), data-scrolled and data-sheet (phone menu) on the header. */
@@ -533,7 +533,7 @@
533
533
  @apply mt-4 flex flex-col gap-2 px-1 [&>*]:w-full;
534
534
  }
535
535
 
536
- /* ---- Sidebar (sidebar.templ) ----
536
+ /* ---- Sidebar ----
537
537
  * <aside class="asta-sidebar" data-asta-sidebar data-auto-rail aria-label="Sidebar">
538
538
  * <nav class="asta-sidebar-nav" data-asta-sidebar-nav>…<button class="asta-sidebar-link" data-asta-sidebar-item="inbox"
539
539
  * aria-current="page"><span class="asta-sidebar-icon">…</span><span class="asta-sidebar-label">Inbox</span>
@@ -703,7 +703,7 @@
703
703
  }
704
704
  }
705
705
 
706
- /* ---- Workspace switcher (workspace_switcher.templ) ----
706
+ /* ---- Workspace switcher ----
707
707
  * <div class="asta-ws" data-asta-dropdown data-asta-ws data-match><button class="asta-ws-trigger"
708
708
  * data-asta-dropdown-trigger aria-haspopup="menu" aria-expanded="false">…</button>
709
709
  * <div role="menu" popover="manual" data-asta-mpanel class="asta-float asta-dropdown-panel asta-ws-panel">
@@ -787,7 +787,7 @@
787
787
  @apply mt-1 pt-1;
788
788
  }
789
789
 
790
- /* ---- Footer (footer.templ) ----
790
+ /* ---- Footer ----
791
791
  * <footer class="asta-footer"><div class="asta-footer-grid"><div class="asta-footer-intro">…newsletter…</div>
792
792
  * <nav class="asta-footer-nav" aria-label="Footer"><div><p class="asta-footer-heading">Product</p><ul class="asta-footer-links">
793
793
  * <li><a class="asta-footer-link" href="/docs">Docs <span aria-hidden="true">↗</span></a></li></ul></div></nav></div>
@@ -891,7 +891,7 @@
891
891
  }
892
892
  }
893
893
 
894
- /* ---- Announcement bar (announcement_bar.templ) ----
894
+ /* ---- Announcement bar ----
895
895
  * <div class="asta-announcement" role="region" aria-label="Announcement" data-asta-announce data-interval="5000">
896
896
  * <span class="asta-announcement-spacer" aria-hidden="true"></span><div class="asta-announcement-track"
897
897
  * data-asta-announce-track><div class="asta-announcement-slide" data-asta-announce-msg data-state="cur">
@@ -959,7 +959,7 @@
959
959
  }
960
960
  }
961
961
 
962
- /* ---- Stepper (stepper.templ) ----
962
+ /* ---- Stepper ----
963
963
  * <div class="asta-stepper" data-asta-stepper data-step="0" data-count="3" data-first>
964
964
  * <ol class="asta-stepper-steps" aria-label="Progress"><li class="asta-stepper-step" data-asta-step="0"
965
965
  * data-state="current" aria-current="step"><button class="asta-stepper-goto" data-asta-step-goto="0" disabled>
@@ -1073,7 +1073,7 @@
1073
1073
  }
1074
1074
  }
1075
1075
 
1076
- /* ---- Tool dock (tool_dock.templ) ----
1076
+ /* ---- Tool dock ----
1077
1077
  * <div class="asta-tool-dock" role="toolbar" aria-label="Tools" data-asta-tooldock data-hotkeys>
1078
1078
  * <span class="asta-tool-dock-pill" data-asta-tooldock-pill aria-hidden="true"></span>
1079
1079
  * <span class="asta-tool-dock-tool"><button class="asta-tool-dock-btn" data-tool="move" aria-label="Move"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asta-ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Astabyte UI: motion-first React + Tailwind v4 components (Radix or Base UI). Install as a package, or copy the source with the CLI.",
5
5
  "keywords": [
6
6
  "astabyte",