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.
- package/css/asta.css +1 -1
- package/css/asta.js +9 -9
- package/css/components.css +88 -88
- package/css/runtime/blocks.css +101 -0
- package/css/runtime/blocks.js +511 -0
- package/css/runtime/core.css +120 -0
- package/css/runtime/core.js +441 -0
- package/css/runtime/data.css +156 -0
- package/css/runtime/data.js +1017 -0
- package/css/runtime/forms.css +116 -0
- package/css/runtime/forms.js +1459 -0
- package/css/runtime/overlays.css +124 -0
- package/css/runtime/overlays.js +1310 -0
- package/css/src/blocks.css +9 -9
- package/css/src/core.css +15 -15
- package/css/src/data.css +12 -12
- package/css/src/display.css +16 -16
- package/css/src/forms.css +16 -16
- package/css/src/overlays.css +15 -15
- package/package.json +1 -1
package/css/asta.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* Astabyte UI runtime. Generated by scripts/gen-css.ts from
|
|
2
|
-
/* ----
|
|
3
|
-
/* Astabyte UI for
|
|
1
|
+
/* Astabyte UI runtime. Generated by scripts/gen-css.ts from packages/asta-ui/css/runtime. Do not edit. */
|
|
2
|
+
/* ---- runtime/core.js ---- */
|
|
3
|
+
/* Astabyte UI runtime for the HTML + CSS layer. One small script, no dependencies.
|
|
4
4
|
* Everything is wired with event delegation on document, so markup swapped in by htmx works without re-init.
|
|
5
5
|
* Dialog <dialog class="asta-dialog">, opened by [data-asta-open="id"], closed by [data-asta-close]
|
|
6
6
|
* Toast asta.toast({ title, description, tone, duration, action: { label, href | event, detail } }),
|
|
@@ -439,10 +439,10 @@
|
|
|
439
439
|
else boot();
|
|
440
440
|
document.addEventListener("htmx:afterSettle", (e) => scan(e.detail?.elt?.parentElement || document));
|
|
441
441
|
|
|
442
|
-
window.asta = { toast, open: (id) => open(byId(id)), close: (id) => close(byId(id)), version: "0.
|
|
442
|
+
window.asta = { toast, open: (id) => open(byId(id)), close: (id) => close(byId(id)), version: "0.9.0" };
|
|
443
443
|
})();
|
|
444
444
|
|
|
445
|
-
/* ----
|
|
445
|
+
/* ---- runtime/blocks.js ---- */
|
|
446
446
|
/* Blocks: sign-in, onboarding, AI chat, checkout, properties and settings panels, team members.
|
|
447
447
|
* Event delegation on document, so blocks swapped in by htmx work without re-init.
|
|
448
448
|
* Sign-in [data-asta-reveal] shows and hides the password next to it
|
|
@@ -955,8 +955,8 @@
|
|
|
955
955
|
document.addEventListener("htmx:afterSettle", (e) => scan(e.detail?.elt?.parentElement || document));
|
|
956
956
|
})();
|
|
957
957
|
|
|
958
|
-
/* ----
|
|
959
|
-
/* Data components for Astabyte UI
|
|
958
|
+
/* ---- runtime/data.js ---- */
|
|
959
|
+
/* Data components for Astabyte UI. Event delegation on document, so htmx swaps need no re-init.
|
|
960
960
|
* DataTable [data-asta-dt] with [data-asta-dt-all], [data-asta-dt-row], [data-asta-dt-clear]
|
|
961
961
|
* TreeView [data-asta-tree] with [role=treeitem] and [data-asta-tree-row]; fires asta:select, asta:expand
|
|
962
962
|
* Timeline [data-asta-timeline][data-inview]
|
|
@@ -1974,7 +1974,7 @@
|
|
|
1974
1974
|
else scan(document);
|
|
1975
1975
|
})();
|
|
1976
1976
|
|
|
1977
|
-
/* ----
|
|
1977
|
+
/* ---- runtime/forms.js ---- */
|
|
1978
1978
|
/* Forms group: the behaviour behind the form controls. Event delegation on document, so markup swapped in by
|
|
1979
1979
|
* htmx works without re-init. Every control keeps a real form field (native input or hidden input) up to date.
|
|
1980
1980
|
* CopyButton [data-asta-copy]
|
|
@@ -3435,7 +3435,7 @@
|
|
|
3435
3435
|
document.addEventListener("htmx:afterSettle", (e) => scan(e.detail?.elt?.parentElement || document));
|
|
3436
3436
|
})();
|
|
3437
3437
|
|
|
3438
|
-
/* ----
|
|
3438
|
+
/* ---- runtime/overlays.js ---- */
|
|
3439
3439
|
/* Overlays: popover, hover card, dropdown and context menus, drawer drag, command palette, navbar, sidebar,
|
|
3440
3440
|
* workspace switcher, footer newsletter and wordmark, announcement bar, stepper, tool dock.
|
|
3441
3441
|
* Event delegation on document, so markup swapped in by htmx works. Dialog open/close comes from core (window.asta).
|