@syware/jlib 0.9.0 → 0.10.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/README.md +17 -2
- package/dist/all.js +5 -2
- package/dist/atoms/jl-app-icon.css.js +3 -0
- package/dist/atoms/jl-app-icon.js +1 -1
- package/dist/atoms/jl-avatar.css.js +3 -0
- package/dist/atoms/jl-avatar.js +1 -1
- package/dist/atoms/jl-badge.css.js +3 -0
- package/dist/atoms/jl-badge.js +1 -1
- package/dist/atoms/jl-button.css.js +3 -0
- package/dist/atoms/jl-button.js +1 -1
- package/dist/atoms/jl-checkbox.css.js +3 -0
- package/dist/atoms/jl-checkbox.js +1 -1
- package/dist/atoms/jl-chip.css.js +3 -0
- package/dist/atoms/jl-chip.js +1 -1
- package/dist/atoms/jl-divider.css.js +3 -0
- package/dist/atoms/jl-divider.js +1 -1
- package/dist/atoms/jl-icon.css.js +3 -0
- package/dist/atoms/jl-icon.js +1 -1
- package/dist/atoms/jl-input.css.js +3 -0
- package/dist/atoms/jl-input.js +1 -1
- package/dist/atoms/jl-kbd.css.js +3 -0
- package/dist/atoms/jl-kbd.js +1 -1
- package/dist/atoms/jl-link.css.js +3 -0
- package/dist/atoms/jl-link.js +1 -1
- package/dist/atoms/jl-loading-bar.css.js +3 -0
- package/dist/atoms/jl-loading-bar.d.ts +38 -0
- package/dist/atoms/jl-loading-bar.js +121 -0
- package/dist/atoms/jl-progress-ring.css.js +3 -0
- package/dist/atoms/jl-progress-ring.js +1 -1
- package/dist/atoms/jl-progress.css.js +3 -0
- package/dist/atoms/jl-progress.js +1 -1
- package/dist/atoms/jl-rating.css.js +3 -0
- package/dist/atoms/jl-rating.js +1 -1
- package/dist/atoms/jl-select.css.js +3 -0
- package/dist/atoms/jl-select.js +1 -1
- package/dist/atoms/jl-skeleton.css.js +3 -0
- package/dist/atoms/jl-skeleton.js +1 -1
- package/dist/atoms/jl-slider.css.js +3 -0
- package/dist/atoms/jl-slider.js +1 -1
- package/dist/atoms/jl-spinner.css.js +3 -0
- package/dist/atoms/jl-spinner.js +1 -1
- package/dist/atoms/jl-switch.css.js +3 -0
- package/dist/atoms/jl-switch.js +1 -1
- package/dist/atoms/jl-textarea.css.js +3 -0
- package/dist/atoms/jl-textarea.js +1 -1
- package/dist/base/jl-element.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -1
- package/dist/lib/flow.js +23 -6
- package/dist/lib/texts-de.d.ts +3 -0
- package/dist/lib/texts-de.js +3 -0
- package/dist/lib/texts-fr.d.ts +3 -0
- package/dist/lib/texts-fr.js +3 -0
- package/dist/lib/texts.d.ts +3 -0
- package/dist/lib/texts.js +3 -0
- package/dist/molecules/jl-accordion-item.css.js +3 -0
- package/dist/molecules/jl-accordion-item.js +1 -1
- package/dist/molecules/jl-accordion.css.js +3 -0
- package/dist/molecules/jl-accordion.js +1 -1
- package/dist/molecules/jl-account-button.css.js +3 -0
- package/dist/molecules/jl-account-button.js +1 -1
- package/dist/molecules/jl-alert.css.js +3 -0
- package/dist/molecules/jl-alert.js +1 -1
- package/dist/molecules/jl-avatar-group.css.js +3 -0
- package/dist/molecules/jl-avatar-group.js +1 -1
- package/dist/molecules/jl-breadcrumb.css.js +3 -0
- package/dist/molecules/jl-breadcrumb.js +1 -1
- package/dist/molecules/jl-calendar.css.js +3 -0
- package/dist/molecules/jl-calendar.js +1 -1
- package/dist/molecules/jl-card.css.js +3 -0
- package/dist/molecules/jl-card.js +1 -1
- package/dist/molecules/jl-chip-group.css.js +3 -0
- package/dist/molecules/jl-chip-group.js +1 -1
- package/dist/molecules/jl-code-block.css.js +3 -0
- package/dist/molecules/jl-code-block.js +1 -1
- package/dist/molecules/jl-combobox.css.js +3 -0
- package/dist/molecules/jl-combobox.js +1 -1
- package/dist/molecules/jl-copy-button.css.js +3 -0
- package/dist/molecules/jl-copy-button.js +1 -1
- package/dist/molecules/jl-date-picker.css.js +3 -0
- package/dist/molecules/jl-date-picker.js +1 -1
- package/dist/molecules/jl-empty.css.js +3 -0
- package/dist/molecules/jl-empty.js +1 -1
- package/dist/molecules/jl-facts.css.js +3 -0
- package/dist/molecules/jl-facts.js +1 -1
- package/dist/molecules/jl-field.css.js +3 -0
- package/dist/molecules/jl-field.js +1 -1
- package/dist/molecules/jl-file-drop.css.js +3 -0
- package/dist/molecules/jl-file-drop.js +1 -1
- package/dist/molecules/jl-input-list.css.js +3 -0
- package/dist/molecules/jl-input-list.js +1 -1
- package/dist/molecules/jl-list-item.css.js +3 -0
- package/dist/molecules/jl-list-item.js +1 -1
- package/dist/molecules/jl-load-more.css.js +3 -0
- package/dist/molecules/jl-load-more.js +1 -1
- package/dist/molecules/jl-load-state.css.js +3 -0
- package/dist/molecules/jl-load-state.d.ts +9 -0
- package/dist/molecules/jl-load-state.js +50 -3
- package/dist/molecules/jl-menu.css.js +3 -0
- package/dist/molecules/jl-menu.js +1 -1
- package/dist/molecules/jl-number-input.css.js +3 -0
- package/dist/molecules/jl-number-input.js +1 -1
- package/dist/molecules/jl-pagination.css.js +3 -0
- package/dist/molecules/jl-pagination.js +1 -1
- package/dist/molecules/jl-popover.css.js +3 -0
- package/dist/molecules/jl-popover.js +1 -1
- package/dist/molecules/jl-radio-group.css.js +3 -0
- package/dist/molecules/jl-radio-group.js +1 -1
- package/dist/molecules/jl-search-button.css.js +3 -0
- package/dist/molecules/jl-search-button.js +1 -1
- package/dist/molecules/jl-search.css.js +3 -0
- package/dist/molecules/jl-search.js +1 -1
- package/dist/molecules/jl-segmented.css.js +3 -0
- package/dist/molecules/jl-segmented.js +1 -1
- package/dist/molecules/jl-stat.css.js +3 -0
- package/dist/molecules/jl-stat.js +1 -1
- package/dist/molecules/jl-steps.css.js +3 -0
- package/dist/molecules/jl-steps.js +1 -1
- package/dist/molecules/jl-tab-panel.css.js +3 -0
- package/dist/molecules/jl-tab-panel.js +1 -1
- package/dist/molecules/jl-tabs.css.js +3 -0
- package/dist/molecules/jl-tabs.js +1 -1
- package/dist/molecules/jl-tag-input.css.js +3 -0
- package/dist/molecules/jl-tag-input.js +1 -1
- package/dist/molecules/jl-timeline.css.js +3 -0
- package/dist/molecules/jl-timeline.js +1 -1
- package/dist/molecules/jl-toast.css.js +3 -0
- package/dist/molecules/jl-toast.js +1 -1
- package/dist/molecules/jl-tooltip.css.js +3 -0
- package/dist/molecules/jl-tooltip.js +1 -1
- package/dist/organisms/jl-command-palette.css.js +3 -0
- package/dist/organisms/jl-command-palette.js +10 -4
- package/dist/organisms/jl-confirm.css.js +3 -0
- package/dist/organisms/jl-confirm.js +1 -1
- package/dist/organisms/jl-dialog.css.js +3 -0
- package/dist/organisms/jl-dialog.js +1 -1
- package/dist/organisms/jl-drawer.css.js +3 -0
- package/dist/organisms/jl-drawer.js +1 -1
- package/dist/organisms/jl-flow.css.js +3 -0
- package/dist/organisms/jl-flow.js +1 -1
- package/dist/organisms/jl-navbar.css.js +3 -0
- package/dist/organisms/jl-navbar.js +1 -1
- package/dist/organisms/jl-page-header.css.js +3 -0
- package/dist/organisms/jl-page-header.js +1 -1
- package/dist/organisms/jl-page-outlet.css.js +3 -0
- package/dist/organisms/jl-page-outlet.d.ts +34 -0
- package/dist/organisms/jl-page-outlet.js +107 -0
- package/dist/organisms/jl-side-nav.css.js +3 -0
- package/dist/organisms/jl-side-nav.js +1 -1
- package/dist/organisms/jl-tab-bar.css.js +3 -0
- package/dist/organisms/jl-tab-bar.js +1 -1
- package/dist/organisms/jl-table.css.js +3 -0
- package/dist/organisms/jl-table.js +1 -1
- package/dist/organisms/jl-toaster.css.js +3 -0
- package/dist/organisms/jl-toaster.js +1 -1
- package/dist/organisms/jl-tree.css.js +3 -0
- package/dist/organisms/jl-tree.js +1 -1
- package/dist/styles/base.css.js +3 -0
- package/dist/styles/control.css.js +3 -0
- package/dist/styles/floating.css.js +3 -0
- package/dist/styles/shared.js +4 -4
- package/dist/styles/tokens.css.js +3 -0
- package/dist/templates/jl-app-shell.css.js +3 -0
- package/dist/templates/jl-app-shell.js +1 -1
- package/dist/templates/jl-auth-layout.css.js +3 -0
- package/dist/templates/jl-auth-layout.js +1 -1
- package/dist/templates/jl-page.css.js +3 -0
- package/dist/templates/jl-page.js +1 -1
- package/dist/templates/jl-split-view.css.js +3 -0
- package/dist/templates/jl-split-view.js +1 -1
- package/dist/templates/jl-stack.css.js +3 -0
- package/dist/templates/jl-stack.d.ts +17 -0
- package/dist/templates/jl-stack.js +36 -0
- package/dist/types/jl-stack.types.d.ts +2 -0
- package/package.json +5 -4
- package/dist/atoms/jl-app-icon.css_raw.js +0 -3
- package/dist/atoms/jl-avatar.css_raw.js +0 -3
- package/dist/atoms/jl-badge.css_raw.js +0 -3
- package/dist/atoms/jl-button.css_raw.js +0 -3
- package/dist/atoms/jl-checkbox.css_raw.js +0 -3
- package/dist/atoms/jl-chip.css_raw.js +0 -3
- package/dist/atoms/jl-divider.css_raw.js +0 -3
- package/dist/atoms/jl-icon.css_raw.js +0 -3
- package/dist/atoms/jl-input.css_raw.js +0 -3
- package/dist/atoms/jl-kbd.css_raw.js +0 -3
- package/dist/atoms/jl-link.css_raw.js +0 -3
- package/dist/atoms/jl-progress-ring.css_raw.js +0 -3
- package/dist/atoms/jl-progress.css_raw.js +0 -3
- package/dist/atoms/jl-rating.css_raw.js +0 -3
- package/dist/atoms/jl-select.css_raw.js +0 -3
- package/dist/atoms/jl-skeleton.css_raw.js +0 -3
- package/dist/atoms/jl-slider.css_raw.js +0 -3
- package/dist/atoms/jl-spinner.css_raw.js +0 -3
- package/dist/atoms/jl-switch.css_raw.js +0 -3
- package/dist/atoms/jl-textarea.css_raw.js +0 -3
- package/dist/molecules/jl-accordion-item.css_raw.js +0 -3
- package/dist/molecules/jl-accordion.css_raw.js +0 -3
- package/dist/molecules/jl-account-button.css_raw.js +0 -3
- package/dist/molecules/jl-alert.css_raw.js +0 -3
- package/dist/molecules/jl-avatar-group.css_raw.js +0 -3
- package/dist/molecules/jl-breadcrumb.css_raw.js +0 -3
- package/dist/molecules/jl-calendar.css_raw.js +0 -3
- package/dist/molecules/jl-card.css_raw.js +0 -3
- package/dist/molecules/jl-chip-group.css_raw.js +0 -3
- package/dist/molecules/jl-code-block.css_raw.js +0 -3
- package/dist/molecules/jl-combobox.css_raw.js +0 -3
- package/dist/molecules/jl-copy-button.css_raw.js +0 -3
- package/dist/molecules/jl-date-picker.css_raw.js +0 -3
- package/dist/molecules/jl-empty.css_raw.js +0 -3
- package/dist/molecules/jl-facts.css_raw.js +0 -3
- package/dist/molecules/jl-field.css_raw.js +0 -3
- package/dist/molecules/jl-file-drop.css_raw.js +0 -3
- package/dist/molecules/jl-input-list.css_raw.js +0 -3
- package/dist/molecules/jl-list-item.css_raw.js +0 -3
- package/dist/molecules/jl-load-more.css_raw.js +0 -3
- package/dist/molecules/jl-load-state.css_raw.js +0 -3
- package/dist/molecules/jl-menu.css_raw.js +0 -3
- package/dist/molecules/jl-number-input.css_raw.js +0 -3
- package/dist/molecules/jl-pagination.css_raw.js +0 -3
- package/dist/molecules/jl-popover.css_raw.js +0 -3
- package/dist/molecules/jl-radio-group.css_raw.js +0 -3
- package/dist/molecules/jl-search-button.css_raw.js +0 -3
- package/dist/molecules/jl-search.css_raw.js +0 -3
- package/dist/molecules/jl-segmented.css_raw.js +0 -3
- package/dist/molecules/jl-stat.css_raw.js +0 -3
- package/dist/molecules/jl-steps.css_raw.js +0 -3
- package/dist/molecules/jl-tab-panel.css_raw.js +0 -3
- package/dist/molecules/jl-tabs.css_raw.js +0 -3
- package/dist/molecules/jl-tag-input.css_raw.js +0 -3
- package/dist/molecules/jl-timeline.css_raw.js +0 -3
- package/dist/molecules/jl-toast.css_raw.js +0 -3
- package/dist/molecules/jl-tooltip.css_raw.js +0 -3
- package/dist/organisms/jl-command-palette.css_raw.js +0 -3
- package/dist/organisms/jl-confirm.css_raw.js +0 -3
- package/dist/organisms/jl-dialog.css_raw.js +0 -3
- package/dist/organisms/jl-drawer.css_raw.js +0 -3
- package/dist/organisms/jl-flow.css_raw.js +0 -3
- package/dist/organisms/jl-navbar.css_raw.js +0 -3
- package/dist/organisms/jl-page-header.css_raw.js +0 -3
- package/dist/organisms/jl-side-nav.css_raw.js +0 -3
- package/dist/organisms/jl-tab-bar.css_raw.js +0 -3
- package/dist/organisms/jl-table.css_raw.js +0 -3
- package/dist/organisms/jl-toaster.css_raw.js +0 -3
- package/dist/organisms/jl-tree.css_raw.js +0 -3
- package/dist/styles/base.css_raw.js +0 -3
- package/dist/styles/control.css_raw.js +0 -3
- package/dist/styles/floating.css_raw.js +0 -3
- package/dist/styles/tokens.css_raw.js +0 -3
- package/dist/templates/jl-app-shell.css_raw.js +0 -3
- package/dist/templates/jl-auth-layout.css_raw.js +0 -3
- package/dist/templates/jl-page.css_raw.js +0 -3
- package/dist/templates/jl-split-view.css_raw.js +0 -3
|
@@ -7,7 +7,7 @@ import { registerIcons } from "../lib/icons.js";
|
|
|
7
7
|
import { JlButton } from "../atoms/jl-button.js";
|
|
8
8
|
import { JlSkeleton } from "../atoms/jl-skeleton.js";
|
|
9
9
|
import { JlEmpty } from "./jl-empty.js";
|
|
10
|
-
import jl_load_state_default from "./jl-load-state.
|
|
10
|
+
import jl_load_state_default from "./jl-load-state.css.js";
|
|
11
11
|
import { css } from "@jadis/core";
|
|
12
12
|
import { CircleAlert, RefreshCw } from "lucide";
|
|
13
13
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -38,6 +38,7 @@ var LINE_WIDTHS = [
|
|
|
38
38
|
"96%",
|
|
39
39
|
"70%"
|
|
40
40
|
];
|
|
41
|
+
var STATE_EVENT = "state";
|
|
41
42
|
/** The skeleton of each shape, `count` times. */
|
|
42
43
|
var SKELETONS = {
|
|
43
44
|
cards: (count) => Array.from({ length: count }, () => /* @__PURE__ */ jsxs("div", {
|
|
@@ -64,16 +65,57 @@ var SKELETONS = {
|
|
|
64
65
|
})]
|
|
65
66
|
}))
|
|
66
67
|
};
|
|
68
|
+
/** The load states under a node and in the shadow roots there, its own included: a page draws them in its own. */
|
|
69
|
+
function loadStatesIn(root) {
|
|
70
|
+
const nodes = [root, ...root.querySelectorAll("*")];
|
|
71
|
+
const own = nodes.filter((node) => node instanceof JlLoadState);
|
|
72
|
+
const shadows = nodes.flatMap((node) => node instanceof Element && node.shadowRoot ? [node.shadowRoot] : []);
|
|
73
|
+
return [...own, ...shadows.flatMap(loadStatesIn)];
|
|
74
|
+
}
|
|
75
|
+
/** Whether a load state still waits for its data where it can be seen: one in a hidden tab may never load. */
|
|
76
|
+
var isWaiting = (state) => state.state.get() === "loading" && state.checkVisibility();
|
|
77
|
+
/** Resolves once a load state leaves `loading`, or once the signal aborts. */
|
|
78
|
+
function leftLoading(state, signal) {
|
|
79
|
+
return new Promise((resolve) => {
|
|
80
|
+
const listening = new AbortController();
|
|
81
|
+
const stop = () => {
|
|
82
|
+
listening.abort();
|
|
83
|
+
resolve();
|
|
84
|
+
};
|
|
85
|
+
signal.addEventListener("abort", stop, { signal: listening.signal });
|
|
86
|
+
state.addEventListener(STATE_EVENT, () => {
|
|
87
|
+
if (isWaiting(state)) return;
|
|
88
|
+
stop();
|
|
89
|
+
}, { signal: listening.signal });
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/** Waits for the components connected meanwhile to run their `onConnect`, a task after connecting. */
|
|
93
|
+
var nextTask = () => new Promise((resolve) => setTimeout(resolve));
|
|
67
94
|
/**
|
|
68
95
|
* What a list or a page shows while its data comes: nothing for a moment, then a skeleton shaped like it; then the
|
|
69
96
|
* data (the default slot), what to say when there is none (slot `empty`, a `jl-empty`), or, when it failed, what
|
|
70
97
|
* failed and Try again. `load()` fetches, draws and moves between the states; a later `load()` keeps what is shown
|
|
71
98
|
* until the new data is there, so live updates do not flash. Or set `state` yourself.
|
|
72
99
|
*/
|
|
73
|
-
var JlLoadState = class extends JlElement {
|
|
100
|
+
var JlLoadState = class JlLoadState extends JlElement {
|
|
74
101
|
static selector = "jl-load-state";
|
|
102
|
+
/**
|
|
103
|
+
* Resolves once every load state under `root` that can be seen, in shadow roots too, has left `loading`: those drawn
|
|
104
|
+
* meanwhile included, as a page's data draws more of the page. Or once `signal` aborts. A page that shows only once
|
|
105
|
+
* it has its data waits for it (see `jl-page-outlet`).
|
|
106
|
+
*/
|
|
107
|
+
static async whenSettled(root, signal = new AbortController().signal) {
|
|
108
|
+
await nextTask();
|
|
109
|
+
const waiting = loadStatesIn(root).filter(isWaiting);
|
|
110
|
+
if (waiting.length === 0 || signal.aborted) return;
|
|
111
|
+
await Promise.all(waiting.map((state) => leftLoading(state, signal)));
|
|
112
|
+
return JlLoadState.whenSettled(root, signal);
|
|
113
|
+
}
|
|
75
114
|
events = this.useEvents();
|
|
76
|
-
state = this.useChange("loading", (value) =>
|
|
115
|
+
state = this.useChange("loading", (value, previous) => {
|
|
116
|
+
this.renderState(value);
|
|
117
|
+
this.announceState(value, previous);
|
|
118
|
+
}, {
|
|
77
119
|
attribute: "state",
|
|
78
120
|
parse: oneOf(LOAD_STATES, "loading")
|
|
79
121
|
});
|
|
@@ -130,6 +172,11 @@ var JlLoadState = class extends JlElement {
|
|
|
130
172
|
return false;
|
|
131
173
|
}
|
|
132
174
|
}
|
|
175
|
+
/** Tells the page the state changed: `state`, with the new one. */
|
|
176
|
+
announceState(value, previous) {
|
|
177
|
+
if (value === previous) return;
|
|
178
|
+
this.events.emit(STATE_EVENT, value);
|
|
179
|
+
}
|
|
133
180
|
/** Whether data is shown (the content or the empty state), which a refresh keeps. */
|
|
134
181
|
isShowing() {
|
|
135
182
|
const state = this.state.get();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-menu.css?inline
|
|
2
|
+
var jl_menu_default = ":host{vertical-align:middle;display:inline-flex}.menu{min-width:200px;max-width:min(320px,100vw - 16px);max-height:min(420px,100dvh - 16px);padding:4px;overflow-y:auto}.menu:focus-visible{box-shadow:var(--jl-shadow-lg), var(--jl-focus-ring)}.item{border-radius:var(--jl-radius-xs);min-height:32px;color:var(--jl-text);font-size:var(--jl-font-md);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:flex-start;gap:10px;padding:6px 10px;line-height:20px;display:flex}.item:focus,.item:focus-visible{box-shadow:none;background:var(--jl-surface-3);outline:none}.icon{color:var(--jl-muted);flex:none;margin-top:2px}.text{flex:1;min-width:0;display:grid}.label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.description{color:var(--jl-muted);font-size:var(--jl-font-xs);line-height:1.4}.shortcut{color:var(--jl-muted);font-size:var(--jl-font-xs);letter-spacing:.02em;flex:none;margin-left:12px}.item[data-danger]{color:var(--jl-danger)}.item[data-danger] .icon{color:inherit}.item[data-danger]:focus{background:var(--jl-danger-soft)}.item[aria-disabled]{color:var(--jl-faint);cursor:not-allowed}.item[aria-disabled] .icon,.item[aria-disabled] .description{color:inherit}.heading{color:var(--jl-muted);letter-spacing:.06em;text-transform:uppercase;padding:8px 10px 4px;font-size:11px;font-weight:650}.divider{background:var(--jl-line);border:none;height:1px;margin:4px -4px}";
|
|
3
|
+
export { jl_menu_default as default };
|
|
@@ -6,7 +6,7 @@ import { JlIcon } from "../atoms/jl-icon.js";
|
|
|
6
6
|
import { uniqueId } from "../lib/dom.js";
|
|
7
7
|
import { firstIndex, lastIndex, letterIndex, stepIndex } from "../lib/roving.js";
|
|
8
8
|
import { setTriggerAria } from "../lib/trigger.js";
|
|
9
|
-
import jl_menu_default from "./jl-menu.
|
|
9
|
+
import jl_menu_default from "./jl-menu.css.js";
|
|
10
10
|
import { css } from "@jadis/core";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
12
12
|
// src/molecules/jl-menu.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-number-input.css?inline
|
|
2
|
+
var jl_number_input_default = ":host{display:block}.control{padding:0 8px}.native{text-align:center;font-variant-numeric:tabular-nums}.action{margin-right:0}.action:disabled{color:var(--jl-faint);cursor:not-allowed;opacity:.5;background:0 0}:host([size=sm]) .action{width:22px;height:22px}:host([size=lg]) .action{width:30px;height:30px}";
|
|
3
|
+
export { jl_number_input_default as default };
|
|
@@ -7,7 +7,7 @@ import { CONTROL_SIZES } from "../lib/options.js";
|
|
|
7
7
|
import { JlIcon } from "../atoms/jl-icon.js";
|
|
8
8
|
import { setOrRemove } from "../lib/dom.js";
|
|
9
9
|
import { clamp, parseNumber, stepValue } from "../lib/numeric.js";
|
|
10
|
-
import jl_number_input_default from "./jl-number-input.
|
|
10
|
+
import jl_number_input_default from "./jl-number-input.css.js";
|
|
11
11
|
import { css } from "@jadis/core";
|
|
12
12
|
import { Minus, Plus } from "lucide";
|
|
13
13
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-pagination.css?inline
|
|
2
|
+
var jl_pagination_default = ":host{--height:var(--jl-control-md);--font-size:var(--jl-font-sm);--entry:var(--height);--gap:4px;--min-button:26px;display:block}:host([size=sm]){--height:var(--jl-control-sm);--font-size:var(--jl-font-xs);--min-button:24px}:host([size=lg]){--height:var(--jl-control-lg);--font-size:var(--jl-font-md);--min-button:32px}@media (width<480px){:host{--entry:var(--min-button);--gap:2px}}nav{align-items:center;gap:var(--gap);display:flex}.pages{align-items:center;gap:var(--gap);padding:0;list-style:none;display:flex}.pages li{width:var(--entry);display:flex}.button{width:100%;height:var(--height);border-radius:var(--jl-radius-sm);color:var(--jl-text-2);font-size:var(--font-size);font-variant-numeric:tabular-nums;cursor:pointer;transition:background var(--jl-fast) var(--jl-ease), color var(--jl-fast) var(--jl-ease);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;padding:0 2px;font-weight:600;display:inline-flex}.button:hover:not(:disabled,[aria-current]){background:var(--jl-surface-2);color:var(--jl-text)}.button:active:not(:disabled,[aria-current]){background:var(--jl-surface-3)}.previous,.next{width:calc(var(--entry) + 2px);border-color:var(--jl-line-strong);color:var(--jl-text);flex:none}.button:disabled{cursor:not-allowed;opacity:.4}.page[aria-current]{background:var(--jl-accent);color:var(--jl-on-accent);cursor:default}.pages .gap{width:calc(var(--entry) - 10px);color:var(--jl-faint);font-size:var(--font-size);-webkit-user-select:none;user-select:none;justify-content:center;align-items:flex-end;display:inline-flex}.status{min-width:72px;color:var(--jl-text-2);font-size:var(--font-size);font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;flex:none;padding:0 8px;font-weight:600}";
|
|
3
|
+
export { jl_pagination_default as default };
|
|
@@ -6,7 +6,7 @@ import { registerIcons } from "../lib/icons.js";
|
|
|
6
6
|
import { CONTROL_SIZES } from "../lib/options.js";
|
|
7
7
|
import { JlIcon } from "../atoms/jl-icon.js";
|
|
8
8
|
import { clampPage, pageItems } from "../lib/pagination.js";
|
|
9
|
-
import jl_pagination_default from "./jl-pagination.
|
|
9
|
+
import jl_pagination_default from "./jl-pagination.css.js";
|
|
10
10
|
import { css } from "@jadis/core";
|
|
11
11
|
import { ChevronLeft, ChevronRight } from "lucide";
|
|
12
12
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-popover.css?inline
|
|
2
|
+
var jl_popover_default = ":host{vertical-align:middle;display:inline-flex}.panel{width:max-content;min-width:200px;max-width:min(360px,100vw - 16px);font-size:var(--jl-font-md);padding:14px 16px;line-height:1.5}.panel:focus-visible{box-shadow:var(--jl-shadow-lg), var(--jl-focus-ring)}header{margin-bottom:10px}h2{font-size:var(--jl-font-md);font-weight:700;line-height:1.4}";
|
|
3
|
+
export { jl_popover_default as default };
|
|
@@ -3,7 +3,7 @@ import { JlElement } from "../base/jl-element.js";
|
|
|
3
3
|
import { oneOf } from "../lib/attributes.js";
|
|
4
4
|
import { PLACEMENTS, followAnchor } from "../lib/floating.js";
|
|
5
5
|
import { firstFocusable, setTriggerAria } from "../lib/trigger.js";
|
|
6
|
-
import jl_popover_default from "./jl-popover.
|
|
6
|
+
import jl_popover_default from "./jl-popover.css.js";
|
|
7
7
|
import { css } from "@jadis/core";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
9
9
|
// src/molecules/jl-popover.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-radio-group.css?inline
|
|
2
|
+
var jl_radio_group_default = ":host{--dot:18px;display:block}.group{gap:10px;display:grid}.legend:not(.sr-only){color:var(--jl-text);font-size:var(--jl-font-sm);font-weight:600;line-height:20px}.options{gap:10px;display:grid}:host([orientation=horizontal]) .options{flex-wrap:wrap;gap:10px 24px;display:flex}.option{color:var(--jl-text);font-size:var(--jl-font-md);cursor:pointer;outline:none;align-items:flex-start;gap:10px;line-height:20px;display:flex}.option[aria-disabled=true]{cursor:not-allowed;opacity:.5}.option:focus-visible{box-shadow:none}.dot{width:var(--dot);height:var(--dot);border:1px solid var(--jl-line-strong);background:var(--jl-surface);transition:border-color var(--jl-fast) var(--jl-ease), box-shadow var(--jl-fast) var(--jl-ease);border-radius:50%;flex:none;justify-content:center;align-items:center;margin-top:1px;display:inline-flex}.dot:after{background:var(--jl-accent);content:\"\";width:8px;height:8px;transition:transform var(--jl-fast) var(--jl-ease);border-radius:50%;transform:scale(0)}.option[aria-checked=true] .dot{border-color:var(--jl-accent)}.option[aria-checked=true] .dot:after{transform:scale(1)}.option:focus-visible .dot{box-shadow:var(--jl-focus-ring)}.option:not([aria-disabled=true],[aria-checked=true]):hover .dot{border-color:color-mix(in srgb, var(--jl-line-strong) 60%, var(--jl-text) 18%)}.text{gap:2px;min-width:0;display:grid}.description{color:var(--jl-muted);font-size:var(--jl-font-sm);line-height:18px}:host([variant=cards]) .options{gap:8px}:host([variant=cards][orientation=horizontal]) .options{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));display:grid}:host([variant=cards]) .option{border:1px solid var(--jl-line);border-radius:var(--jl-radius);background:var(--jl-surface);transition:border-color var(--jl-fast) var(--jl-ease), background var(--jl-fast) var(--jl-ease), box-shadow var(--jl-fast) var(--jl-ease);padding:12px 14px}:host([variant=cards]) .option:not([aria-disabled=true]):hover{border-color:var(--jl-line-strong)}:host([variant=cards]) .option[aria-checked=true]{border-color:var(--jl-accent);background:var(--jl-accent-soft)}:host([variant=cards]) .option:focus-visible{box-shadow:var(--jl-focus-ring)}:host([variant=cards]) .option:focus-visible .dot{box-shadow:none}:host([variant=cards]) .label{font-weight:600}";
|
|
3
|
+
export { jl_radio_group_default as default };
|
|
@@ -3,7 +3,7 @@ import { BASE_STYLES } from "../styles/shared.js";
|
|
|
3
3
|
import { JlFormControl } from "../base/jl-form-control.js";
|
|
4
4
|
import { jsonOf, oneOf, textOf } from "../lib/attributes.js";
|
|
5
5
|
import { rovingIndex } from "../lib/roving-index.js";
|
|
6
|
-
import jl_radio_group_default from "./jl-radio-group.
|
|
6
|
+
import jl_radio_group_default from "./jl-radio-group.css.js";
|
|
7
7
|
import { css } from "@jadis/core";
|
|
8
8
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
9
9
|
// src/molecules/jl-radio-group.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-search-button.css?inline
|
|
2
|
+
var jl_search_button_default = ":host{display:block}.search{width:100%;height:var(--jl-control-sm);border:1px solid var(--jl-line);border-radius:var(--jl-radius-sm);background:var(--jl-surface);color:var(--jl-muted);font-size:var(--jl-font-sm);cursor:pointer;transition:border-color var(--jl-fast) var(--jl-ease);align-items:center;gap:8px;padding:0 6px 0 10px;display:flex}.search:hover{border-color:var(--jl-line-strong);color:var(--jl-text-2)}.text{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}:host([compact]){display:inline-block}:host([compact]) .search{width:var(--jl-control-sm);justify-content:center;padding:0}:host([compact]) .text,:host([compact]) jl-kbd{display:none}@media (pointer:coarse){jl-kbd{display:none}}";
|
|
3
|
+
export { jl_search_button_default as default };
|
|
@@ -6,7 +6,7 @@ import { JlIcon } from "../atoms/jl-icon.js";
|
|
|
6
6
|
import { setOrRemove } from "../lib/dom.js";
|
|
7
7
|
import { JlKbd } from "../atoms/jl-kbd.js";
|
|
8
8
|
import { parseShortcut, shortcutAria } from "../lib/key-shortcut.js";
|
|
9
|
-
import jl_search_button_default from "./jl-search-button.
|
|
9
|
+
import jl_search_button_default from "./jl-search-button.css.js";
|
|
10
10
|
import { css } from "@jadis/core";
|
|
11
11
|
import { Search } from "lucide";
|
|
12
12
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-search.css?inline
|
|
2
|
+
var jl_search_default = ":host{display:block}.lead{justify-content:center;width:16px}:host([loading]) .lead{color:var(--jl-muted)}.native::-webkit-search-cancel-button{appearance:none}.native::-webkit-search-decoration{appearance:none}.keys{flex:none;gap:3px;margin-right:-4px;display:inline-flex}.control:focus-within .keys{display:none}.key{border:1px solid var(--jl-line);border-radius:var(--jl-radius-xs);background:var(--jl-surface-2);min-width:20px;height:20px;color:var(--jl-muted);font-size:var(--jl-font-xs);border-bottom-width:2px;justify-content:center;align-items:center;padding:0 5px;font-weight:500;line-height:1;display:inline-flex}:host([size=sm]) .key{min-width:18px;height:18px;padding:0 4px}";
|
|
3
|
+
export { jl_search_default as default };
|
|
@@ -8,7 +8,7 @@ import { JlIcon } from "../atoms/jl-icon.js";
|
|
|
8
8
|
import { setOrRemove } from "../lib/dom.js";
|
|
9
9
|
import { JlSpinner } from "../atoms/jl-spinner.js";
|
|
10
10
|
import { hasCommandModifier, matchesShortcut, parseShortcut, shortcutAria, shortcutLabels } from "../lib/key-shortcut.js";
|
|
11
|
-
import jl_search_default from "./jl-search.
|
|
11
|
+
import jl_search_default from "./jl-search.css.js";
|
|
12
12
|
import { css } from "@jadis/core";
|
|
13
13
|
import { Search, X } from "lucide";
|
|
14
14
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-segmented.css?inline
|
|
2
|
+
var jl_segmented_default = ":host{vertical-align:middle;--height:var(--jl-control-md);--pad:12px;--font-size:var(--jl-font-sm);justify-self:start;max-width:100%;display:inline-flex}:host([size=sm]){--height:var(--jl-control-sm);--pad:10px;--font-size:var(--jl-font-xs)}:host([size=lg]){--height:var(--jl-control-lg);--pad:16px;--font-size:var(--jl-font-md)}:host([block]){justify-self:stretch;display:flex}.group{scrollbar-width:none;min-width:0;height:var(--height);border:1px solid var(--jl-line);border-radius:var(--jl-radius-sm);background:var(--jl-surface-2);flex:1;padding:2px;display:flex;position:relative;overflow-x:auto}.segment{z-index:1;min-width:calc(var(--height) - 6px);padding:0 var(--pad);border-radius:calc(var(--jl-radius-sm) - 3px);color:var(--jl-muted);font-size:var(--font-size);white-space:nowrap;cursor:pointer;transition:color var(--jl-fast) var(--jl-ease);background:0 0;border:none;flex:none;justify-content:center;align-items:center;gap:6px;font-weight:600;display:inline-flex;position:relative}.segment:hover:not(:disabled),.segment[aria-checked=true]{color:var(--jl-text)}.badge{border-radius:var(--jl-radius-pill);background:var(--jl-surface-3);min-width:18px;color:var(--jl-muted);font-size:var(--jl-font-xs);text-align:center;padding:0 6px;font-weight:650;line-height:18px}.segment[aria-checked=true] .badge{background:var(--jl-accent-soft);color:var(--jl-accent)}.segment:disabled{cursor:not-allowed;opacity:.45}:host([block]) .segment{flex:1 1 0}.thumb{width:var(--w);height:var(--h);border:1px solid var(--jl-line-strong);border-radius:calc(var(--jl-radius-sm) - 3px);background:var(--lightningcss-light,var(--jl-surface))var(--lightningcss-dark,var(--jl-surface-3));box-shadow:var(--jl-shadow-sm);transform:translate(var(--x), var(--y));pointer-events:none;position:absolute;top:0;left:0}.thumb[data-placed]{transition:transform var(--jl-slow) var(--jl-ease), width var(--jl-slow) var(--jl-ease)}.group[aria-disabled]{opacity:.55}.group[aria-disabled] .segment{opacity:1}.segment:focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--jl-brand) 60%, transparent)}";
|
|
3
|
+
export { jl_segmented_default as default };
|
|
@@ -7,7 +7,7 @@ import { setOrRemove } from "../lib/dom.js";
|
|
|
7
7
|
import { firstIndex, lastIndex, stepIndex } from "../lib/roving.js";
|
|
8
8
|
import { moveIndicator } from "../lib/indicator.js";
|
|
9
9
|
import { watchSizes } from "../lib/resize.js";
|
|
10
|
-
import jl_segmented_default from "./jl-segmented.
|
|
10
|
+
import jl_segmented_default from "./jl-segmented.css.js";
|
|
11
11
|
import { css } from "@jadis/core";
|
|
12
12
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
13
13
|
// src/molecules/jl-segmented.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-stat.css?inline
|
|
2
|
+
var jl_stat_default = ":host{--mood:var(--jl-muted);display:block}:host([mood=good]){--mood:var(--jl-ok)}:host([mood=bad]){--mood:var(--jl-danger)}.stat{gap:4px;min-width:0;display:grid}.top{align-items:center;gap:8px;display:flex}.label{min-width:0;color:var(--jl-muted);font-size:var(--jl-font-sm);flex:1;font-weight:600;line-height:1.4}.icon{color:var(--jl-faint)}:host([tone=accent]) .icon{color:var(--jl-accent)}:host([tone=ok]) .icon{color:var(--jl-ok)}:host([tone=warn]) .icon{color:var(--jl-warn)}:host([tone=danger]) .icon{color:var(--jl-danger)}:host([tone=info]) .icon{color:var(--jl-info)}.figure{flex-wrap:wrap;align-items:baseline;column-gap:10px;display:flex}.value{color:var(--jl-text);font-size:var(--jl-font-2xl);font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-weight:700;line-height:1.2}.delta{color:var(--mood);font-size:var(--jl-font-sm);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:center;gap:4px;font-weight:650;display:inline-flex}.caption{color:var(--jl-muted);font-size:var(--jl-font-xs);line-height:1.4}.spark{height:36px;margin-top:8px}.spark svg{width:100%;height:100%;display:block;overflow:visible}.line{fill:none;stroke:var(--jl-accent);stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;vector-effect:non-scaling-stroke}.area{fill:color-mix(in srgb, var(--jl-accent) 10%, transparent);stroke:none}";
|
|
3
|
+
export { jl_stat_default as default };
|
|
@@ -6,7 +6,7 @@ import { TONES } from "../lib/options.js";
|
|
|
6
6
|
import { JlIcon } from "../atoms/jl-icon.js";
|
|
7
7
|
import { areaAttribute, pointsAttribute, sparklinePoints } from "../lib/sparkline.js";
|
|
8
8
|
import { trendOfDelta } from "../lib/trend.js";
|
|
9
|
-
import jl_stat_default from "./jl-stat.
|
|
9
|
+
import jl_stat_default from "./jl-stat.css.js";
|
|
10
10
|
import { css } from "@jadis/core";
|
|
11
11
|
import { Minus, TrendingDown, TrendingUp } from "lucide";
|
|
12
12
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-steps.css?inline
|
|
2
|
+
var jl_steps_default = ":host{--marker:28px;display:block;container-type:inline-size}ol{padding:0;list-style:none;display:flex}.step{flex:1;min-width:0;display:flex}.step:last-child{flex:none}.head{border-radius:var(--jl-radius-xs);text-align:start;background:0 0;border:none;align-items:flex-start;gap:10px;min-width:0;padding:0;display:flex}button.head{cursor:pointer}.marker{width:var(--marker);height:var(--marker);border:1px solid var(--jl-line-strong);background:var(--jl-surface);color:var(--jl-muted);font-size:var(--jl-font-sm);font-variant-numeric:tabular-nums;border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:650;display:inline-flex}.text{gap:2px;min-width:0;padding-top:4px;display:grid}.label{color:var(--jl-muted);font-size:var(--jl-font-md);font-weight:600;line-height:20px}.description{color:var(--jl-muted);font-size:var(--jl-font-xs);line-height:1.45}.step[data-status=done] .marker{border-color:var(--jl-accent-line);background:var(--jl-accent-soft);color:var(--jl-accent)}.step[data-status=done] .label{color:var(--jl-text)}.step[data-status=current] .marker{border-color:var(--jl-accent);background:var(--jl-accent);color:var(--jl-on-accent);box-shadow:0 0 0 4px var(--jl-accent-soft)}.step[data-status=current] .label{color:var(--jl-accent);font-weight:700}.step[data-failed] .marker{border-color:color-mix(in srgb, var(--jl-danger) 40%, var(--jl-line));background:var(--jl-danger-soft);color:var(--jl-danger);box-shadow:none}.step[data-failed] .label{color:var(--jl-danger)}button.head:hover .label{text-underline-offset:3px;text-decoration:underline}.line{min-width:24px;height:1px;margin:calc(var(--marker) / 2) 12px 0 20px;background:var(--jl-line-strong);flex:1}.step[data-status=done] .line{background:var(--jl-accent)}.step:last-child .line{display:none}:host([orientation=vertical]) ol{flex-direction:column}:host([orientation=vertical]) .step{flex:none;padding-bottom:24px;position:relative}:host([orientation=vertical]) .step:last-child{padding-bottom:0}:host([orientation=vertical]) .line{top:calc(var(--marker) + 4px);bottom:4px;left:calc(var(--marker) / 2 - .5px);width:1px;min-width:0;height:auto;margin:0;position:absolute}@container (width<560px){:host(:not([orientation=vertical])) .step:not([data-status=current]) .text{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host(:not([orientation=vertical])) .description{display:none}:host(:not([orientation=vertical])) .line{min-width:8px;margin:calc(var(--marker) / 2) 8px 0}:host(:not([orientation=vertical])) .step:not([data-status=current]){min-width:min-content}:host(:not([orientation=vertical])) .step[data-status=current]{flex:3 1 0}:host(:not([orientation=vertical])) .step[data-status=current] .label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(:not([orientation=vertical])) .step[data-status=current] .line{min-width:24px;margin-left:16px}}";
|
|
3
|
+
export { jl_steps_default as default };
|
|
@@ -4,7 +4,7 @@ import { JlElement } from "../base/jl-element.js";
|
|
|
4
4
|
import { clampedNumber, jsonOf, oneOf } from "../lib/attributes.js";
|
|
5
5
|
import { registerIcons } from "../lib/icons.js";
|
|
6
6
|
import { JlIcon } from "../atoms/jl-icon.js";
|
|
7
|
-
import jl_steps_default from "./jl-steps.
|
|
7
|
+
import jl_steps_default from "./jl-steps.css.js";
|
|
8
8
|
import { css } from "@jadis/core";
|
|
9
9
|
import { Check, X } from "lucide";
|
|
10
10
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-tab-panel.css?inline
|
|
2
|
+
var jl_tab_panel_default = ":host{border-radius:var(--jl-radius-xs);display:block}:host(:not([selected])){display:none}:host(:focus-visible){box-shadow:var(--jl-focus-ring);outline:none}";
|
|
3
|
+
export { jl_tab_panel_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BASE_STYLES } from "../styles/shared.js";
|
|
2
2
|
import { JlElement } from "../base/jl-element.js";
|
|
3
|
-
import jl_tab_panel_default from "./jl-tab-panel.
|
|
3
|
+
import jl_tab_panel_default from "./jl-tab-panel.css.js";
|
|
4
4
|
import { css } from "@jadis/core";
|
|
5
5
|
import { jsx } from "@jadis/core/jsx-runtime";
|
|
6
6
|
// src/molecules/jl-tab-panel.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-tabs.css?inline
|
|
2
|
+
var jl_tabs_default = ":host{display:block}.scroller{scrollbar-width:none;contain:inline-size;position:relative;overflow-x:auto}.list{gap:4px;width:max-content;min-width:100%;display:flex}.tab{z-index:1;border-radius:var(--jl-radius-xs);height:40px;color:var(--jl-muted);font-size:var(--jl-font-md);white-space:nowrap;cursor:pointer;transition:color var(--jl-fast) var(--jl-ease);background:0 0;border:none;flex:none;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-weight:600;display:inline-flex;position:relative}.tab:hover,.tab[aria-selected=true]{color:var(--jl-text)}.tab[aria-disabled]{color:var(--jl-faint);cursor:not-allowed;opacity:.6}.badge{border-radius:var(--jl-radius-pill);background:var(--jl-surface-3);min-width:20px;color:var(--jl-text-2);font-variant-numeric:tabular-nums;padding:1px 6px;font-size:11px;font-weight:650;line-height:16px}.tab[aria-selected=true] .badge{background:var(--jl-accent-soft);color:var(--jl-accent)}.indicator{pointer-events:none;position:absolute;top:0;left:0}.indicator[data-placed]{transition:transform var(--jl-slow) var(--jl-ease), width var(--jl-slow) var(--jl-ease)}:host(:not([variant=pill])) .scroller{box-shadow:inset 0 -1px 0 var(--jl-line)}:host(:not([variant=pill])) .indicator{width:var(--w);background:var(--jl-accent);height:2px;transform:translateX(var(--x));border-radius:2px 2px 0 0;top:auto;bottom:0}:host([variant=pill]) .tab{border-radius:var(--jl-radius-pill);height:32px;padding:0 14px}:host([variant=pill]) .tab:hover:not([aria-selected=true]){background:var(--jl-surface-2)}:host([variant=pill]) .tab[aria-selected=true]{color:var(--jl-accent)}:host([variant=pill]) .indicator{width:var(--w);height:var(--h);border-radius:var(--jl-radius-pill);background:var(--jl-accent-soft);transform:translate(var(--x), var(--y))}:host([variant=pill]) .tab[aria-selected=true] .badge{background:var(--jl-surface)}:host([block]) .list{width:100%}:host([block]) .tab{flex:1}.panels{padding-top:16px}.tab:focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--jl-brand) 60%, transparent)}";
|
|
3
|
+
export { jl_tabs_default as default };
|
|
@@ -8,7 +8,7 @@ import { firstIndex, lastIndex, stepIndex } from "../lib/roving.js";
|
|
|
8
8
|
import { moveIndicator } from "../lib/indicator.js";
|
|
9
9
|
import { watchSizes } from "../lib/resize.js";
|
|
10
10
|
import { JlTabPanel } from "./jl-tab-panel.js";
|
|
11
|
-
import jl_tabs_default from "./jl-tabs.
|
|
11
|
+
import jl_tabs_default from "./jl-tabs.css.js";
|
|
12
12
|
import { css } from "@jadis/core";
|
|
13
13
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
14
14
|
// src/molecules/jl-tabs.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-tag-input.css?inline
|
|
2
|
+
var jl_tag_input_default = ":host{--chip-height:calc(var(--height,var(--jl-control-md)) - 12px);min-width:0;display:block}.control{cursor:text;flex-wrap:wrap;gap:4px;padding:4px 6px}.tags{margin:0;padding:0;list-style:none;display:contents}.tag{max-width:100%;height:var(--chip-height);border:1px solid var(--jl-line);border-radius:var(--jl-radius-xs);background:var(--jl-surface-2);color:var(--jl-text);font-size:var(--jl-font-sm);cursor:default;align-items:center;gap:2px;padding:0 3px 0 8px;line-height:1;display:inline-flex}:host([size=sm]) .tag{font-size:var(--jl-font-xs);padding-left:6px}.tag.flash{animation:flash .6s var(--jl-ease)}.tag-text{text-overflow:ellipsis;white-space:nowrap;line-height:1.4;overflow:hidden}.tag-remove{width:18px;height:18px;color:var(--jl-faint);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.tag-remove:hover,.tag-remove:focus-visible{background:var(--jl-surface-3);color:var(--jl-text)}.native{height:calc(var(--height,var(--jl-control-md)) - 10px);flex:1 0 80px;padding-left:6px}:host([disabled]) .tag{color:var(--jl-muted);padding-right:8px}.popup{min-width:180px;padding:4px}.listbox{max-height:240px;margin:0;padding:0;list-style:none;position:relative;overflow-y:auto}.option{border-radius:var(--jl-radius-xs);color:var(--jl-text);font-size:var(--jl-font-md);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;padding:6px 10px;line-height:1.4}.option.active,.option:hover{background:var(--jl-surface-3)}mark{color:var(--jl-accent);background:0 0;font-weight:700}@keyframes flash{30%{border-color:var(--jl-accent-line);background:var(--jl-accent-soft);color:var(--jl-accent-strong)}}";
|
|
3
|
+
export { jl_tag_input_default as default };
|
|
@@ -10,7 +10,7 @@ import { setOrRemove, uniqueId } from "../lib/dom.js";
|
|
|
10
10
|
import { keepInView } from "../lib/keep-in-view.js";
|
|
11
11
|
import { filterOptions, matchParts, nextEnabledIndex } from "../lib/option-filter.js";
|
|
12
12
|
import { addTags, hasTag, hasTagSeparator, splitTags } from "../lib/tags.js";
|
|
13
|
-
import jl_tag_input_default from "./jl-tag-input.
|
|
13
|
+
import jl_tag_input_default from "./jl-tag-input.css.js";
|
|
14
14
|
import { css } from "@jadis/core";
|
|
15
15
|
import { X } from "lucide";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-timeline.css?inline
|
|
2
|
+
var jl_timeline_default = ":host{--marker:22px;--gap:20px;--title-size:var(--jl-font-md);display:block}:host([compact]){--marker:18px;--gap:12px;--title-size:var(--jl-font-sm)}.timeline{grid-template-columns:calc(var(--marker) + 12px) auto minmax(0, 1fr);margin:0;padding:0;list-style:none;display:grid}.event{grid-column:1/-1;grid-template-columns:calc(var(--marker) + 12px) auto minmax(0, 1fr);padding-bottom:var(--gap);--tone:var(--jl-muted);--soft:var(--jl-surface-3);display:grid;position:relative}@supports (grid-template-columns:subgrid){.event{grid-template-columns:subgrid}}.event:last-child{padding-bottom:0}.event[data-tone=accent]{--tone:var(--jl-accent);--soft:var(--jl-accent-soft)}.event[data-tone=ok]{--tone:var(--jl-ok);--soft:var(--jl-ok-soft)}.event[data-tone=warn]{--tone:var(--jl-warn);--soft:var(--jl-warn-soft)}.event[data-tone=danger]{--tone:var(--jl-danger);--soft:var(--jl-danger-soft)}.event[data-tone=info]{--tone:var(--jl-info);--soft:var(--jl-info-soft)}.event:not(:last-child):before{top:10px;bottom:-10px;left:calc(var(--marker) / 2 - .5px);background:var(--jl-line-strong);content:\"\";width:1px;position:absolute}.rail{width:var(--marker);z-index:1;grid-column:1;justify-content:center;align-items:center;height:20px;display:flex;position:relative}.marker{border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex}.dot{background:var(--tone);width:10px;height:10px;box-shadow:0 0 0 3px var(--jl-surface)}:host([compact]) .dot{width:8px;height:8px}.circle{width:var(--marker);height:var(--marker);border:1px solid color-mix(in srgb, var(--tone) 30%, var(--soft));background:var(--soft);color:var(--tone);box-shadow:0 0 0 3px var(--jl-surface)}.content{grid-column:3;gap:2px;display:grid}.title{color:var(--jl-text);font-size:var(--title-size);font-weight:600;line-height:20px}.time{color:var(--jl-muted);font-family:var(--jl-font-mono);font-size:var(--jl-font-xs);white-space:nowrap;grid-column:2;padding-right:12px;line-height:20px}.description{color:var(--jl-muted);font-size:var(--jl-font-sm);line-height:1.5}:host([compact]) .description{font-size:var(--jl-font-xs)}";
|
|
3
|
+
export { jl_timeline_default as default };
|
|
@@ -3,7 +3,7 @@ import { JlElement } from "../base/jl-element.js";
|
|
|
3
3
|
import { jsonOf } from "../lib/attributes.js";
|
|
4
4
|
import { JlIcon } from "../atoms/jl-icon.js";
|
|
5
5
|
import { setOrRemove } from "../lib/dom.js";
|
|
6
|
-
import jl_timeline_default from "./jl-timeline.
|
|
6
|
+
import jl_timeline_default from "./jl-timeline.css.js";
|
|
7
7
|
import { css } from "@jadis/core";
|
|
8
8
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
9
9
|
// src/molecules/jl-timeline.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-toast.css?inline
|
|
2
|
+
var jl_toast_default = ":host{--fg:var(--jl-text-2);--bg:var(--jl-surface);--border:var(--jl-line);--bar:var(--jl-brand);display:block}:host([tone=ok]),:host([tone=warn]),:host([tone=danger]),:host([tone=info]){--border:color-mix(in srgb, var(--fg) 24%, var(--bg));--bar:var(--fg)}:host([tone=ok]){--fg:var(--jl-ok);--bg:var(--jl-ok-soft)}:host([tone=warn]){--fg:var(--jl-warn);--bg:var(--jl-warn-soft)}:host([tone=danger]){--fg:var(--jl-danger);--bg:var(--jl-danger-soft)}:host([tone=info]){--fg:var(--jl-info);--bg:var(--jl-info-soft)}.toast{border:1px solid var(--border);border-radius:var(--jl-radius-lg);background:var(--bg);color:var(--jl-text);font-size:var(--jl-font-md);box-shadow:var(--jl-shadow-lg);align-items:flex-start;gap:12px;padding:14px 12px 14px 16px;line-height:20px;display:flex;position:relative;overflow:hidden}.icon{color:var(--fg);margin-top:1px}.content{overflow-wrap:anywhere;flex:1;gap:2px;min-width:0;display:grid}.heading{font-weight:650}.text{color:var(--jl-muted);font-size:var(--jl-font-sm)}.heading[hidden]+.text{color:var(--jl-text-2);font-size:var(--jl-font-md)}.buttons{flex:none;align-items:center;gap:2px;margin:-5px -4px -5px 0;display:flex}.buttons:not(:has(jl-button:not([hidden]))){display:none}.close{--jl-accent:var(--fg);--jl-accent-soft:color-mix(in srgb, var(--fg) 12%, transparent)}.work{margin-top:8px}.progress{height:2px;position:absolute;bottom:0;left:0;right:0}.bar{background:var(--bar);transform-origin:0;height:100%}:host([paused]) .bar{opacity:.55}@media (prefers-reduced-motion:reduce){.progress{visibility:hidden}}";
|
|
3
|
+
export { jl_toast_default as default };
|
|
@@ -8,7 +8,7 @@ import { JlIcon } from "../atoms/jl-icon.js";
|
|
|
8
8
|
import { JlButton } from "../atoms/jl-button.js";
|
|
9
9
|
import { optionalNumber } from "../lib/progress.js";
|
|
10
10
|
import { JlProgress } from "../atoms/jl-progress.js";
|
|
11
|
-
import jl_toast_default from "./jl-toast.
|
|
11
|
+
import jl_toast_default from "./jl-toast.css.js";
|
|
12
12
|
import { css } from "@jadis/core";
|
|
13
13
|
import { CircleCheck, CircleX, Info, Sparkles, TriangleAlert, X } from "lucide";
|
|
14
14
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/molecules/jl-tooltip.css?inline
|
|
2
|
+
var jl_tooltip_default = ":host{vertical-align:middle;-webkit-touch-callout:none;display:inline-flex}@media (pointer:coarse){::slotted(*){-webkit-user-select:none;user-select:none}}.bubble{border-radius:var(--jl-radius-xs);background:var(--jl-text);max-width:min(260px,100vw - 16px);color:var(--jl-bg);font-size:var(--jl-font-xs);box-shadow:var(--jl-shadow);pointer-events:auto;padding:6px 9px;font-weight:550;line-height:1.4}.arrow{background:inherit;border-radius:1px;width:8px;height:8px;position:absolute;rotate:45deg}.bubble[data-placement^=top] .arrow{top:100%;left:var(--arrow,50%);translate:-50% -50%}.bubble[data-placement^=bottom] .arrow{bottom:100%;left:var(--arrow,50%);translate:-50% 50%}.bubble[data-placement^=left] .arrow{top:var(--arrow,50%);left:100%;translate:-50% -50%}.bubble[data-placement^=right] .arrow{top:var(--arrow,50%);right:100%;translate:50% -50%}";
|
|
3
|
+
export { jl_tooltip_default as default };
|
|
@@ -4,7 +4,7 @@ import { clampedNumber, oneOf } from "../lib/attributes.js";
|
|
|
4
4
|
import { PLACEMENTS, followAnchor, placeFloating } from "../lib/floating.js";
|
|
5
5
|
import { accessibleTarget, deepActiveElement } from "../lib/trigger.js";
|
|
6
6
|
import { arrowOffset } from "../lib/arrow.js";
|
|
7
|
-
import jl_tooltip_default from "./jl-tooltip.
|
|
7
|
+
import jl_tooltip_default from "./jl-tooltip.css.js";
|
|
8
8
|
import { css } from "@jadis/core";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
10
10
|
// src/molecules/jl-tooltip.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/organisms/jl-command-palette.css?inline
|
|
2
|
+
var jl_command_palette_default = ":host{display:contents}dialog{border:1px solid var(--jl-line);border-radius:var(--jl-radius-lg);background:var(--jl-surface);width:min(620px,100vw - 24px);max-width:none;max-height:min(520px,100dvh - 24vh);color:var(--jl-text);font-size:var(--jl-font-md);box-shadow:var(--jl-shadow-lg);flex-direction:column;margin:12vh auto auto;padding:0;overflow:hidden}dialog[open]{animation:drop var(--jl-fast) var(--jl-ease);display:flex}dialog::backdrop{background:var(--jl-scrim);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.search{border-bottom:1px solid var(--jl-line);flex:none;align-items:center;gap:10px;height:52px;padding:0 14px 0 16px;display:flex}.search-icon,.search-spinner{color:var(--jl-faint);flex:none}input{min-width:0;height:100%;font-size:max(15px, var(--jl-control-font));background:0 0;border:none;outline:none;flex:1;padding:0}input::placeholder{color:var(--jl-faint)}input:focus-visible{box-shadow:none}kbd{border:1px solid var(--jl-line-strong);border-radius:var(--jl-radius-xs);background:var(--jl-surface);min-width:20px;height:20px;color:var(--jl-muted);border-bottom-width:2px;justify-content:center;align-items:center;padding:0 5px;font-size:11px;font-weight:500;line-height:1;display:inline-flex}.results{overscroll-behavior:contain;flex:1;min-height:0;padding:6px;scroll-padding:6px;overflow-y:auto}[role=group]+[role=group]{border-top:1px solid var(--jl-line-soft);margin-top:4px;padding-top:4px}.group-label{color:var(--jl-muted);font-size:var(--jl-font-xs);padding:8px 10px 4px;font-weight:600}.option{border-radius:var(--jl-radius-sm);min-height:38px;color:var(--jl-text-2);cursor:pointer;align-items:center;gap:10px;padding:0 10px;display:flex}.option[aria-selected=true]{background:var(--jl-accent-soft);color:var(--jl-text)}.option-icon{width:16px;color:var(--jl-muted);flex:none}.option[aria-selected=true] .option-icon{color:var(--jl-accent)}.option-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.option-description{max-width:40%;color:var(--jl-muted);font-size:var(--jl-font-xs);text-overflow:ellipsis;white-space:nowrap;flex:none;overflow:hidden}mark{color:var(--jl-accent);background:0 0;font-weight:700}.keys{flex:none;gap:3px;display:inline-flex}.empty{color:var(--jl-muted);text-align:center;padding:36px 16px}footer{border-top:1px solid var(--jl-line);background:var(--jl-surface-2);color:var(--jl-muted);font-size:var(--jl-font-xs);flex-wrap:wrap;flex:none;align-items:center;gap:6px 16px;padding:8px 16px;display:flex}.hint,.hotkey-keys{align-items:center;gap:4px;display:inline-flex}.hotkey-hint{margin-left:auto}@media (width<520px){dialog{max-height:calc(100dvh - 24px);margin-top:12px}.hotkey-hint{display:none}}@keyframes drop{0%{opacity:0;transform:translateY(-6px)scale(.98)}}";
|
|
3
|
+
export { jl_command_palette_default as default };
|
|
@@ -9,7 +9,7 @@ import { JlSpinner } from "../atoms/jl-spinner.js";
|
|
|
9
9
|
import { highlightSegments } from "../lib/fuzzy.js";
|
|
10
10
|
import { hotkeyLabels, isApplePlatform, matchesHotkey, parseHotkey } from "../lib/hotkey.js";
|
|
11
11
|
import { groupMatches, matchCommands } from "../lib/palette.js";
|
|
12
|
-
import jl_command_palette_default from "./jl-command-palette.
|
|
12
|
+
import jl_command_palette_default from "./jl-command-palette.css.js";
|
|
13
13
|
import { css } from "@jadis/core";
|
|
14
14
|
import { Search } from "lucide";
|
|
15
15
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -67,12 +67,15 @@ var JlCommandPalette = class extends JlElement {
|
|
|
67
67
|
timer: 0
|
|
68
68
|
};
|
|
69
69
|
_refs = this.useRefs((ref) => ({
|
|
70
|
+
closeText: ref(".close-text"),
|
|
70
71
|
dialog: ref("dialog"),
|
|
71
72
|
empty: ref(".empty"),
|
|
72
73
|
hotkeyHint: ref(".hotkey-hint"),
|
|
73
74
|
hotkeyKeys: ref(".hotkey-keys"),
|
|
74
75
|
input: ref("input"),
|
|
76
|
+
moveText: ref(".move-text"),
|
|
75
77
|
results: ref(".results"),
|
|
78
|
+
runText: ref(".run-text"),
|
|
76
79
|
searchIcon: ref(".search-icon"),
|
|
77
80
|
spinner: ref(JlSpinner)
|
|
78
81
|
}));
|
|
@@ -132,16 +135,16 @@ var JlCommandPalette = class extends JlElement {
|
|
|
132
135
|
children: [
|
|
133
136
|
/* @__PURE__ */ jsx("kbd", { children: "↑" }),
|
|
134
137
|
/* @__PURE__ */ jsx("kbd", { children: "↓" }),
|
|
135
|
-
"
|
|
138
|
+
/* @__PURE__ */ jsx("span", { class: "move-text" })
|
|
136
139
|
]
|
|
137
140
|
}),
|
|
138
141
|
/* @__PURE__ */ jsxs("span", {
|
|
139
142
|
class: "hint",
|
|
140
|
-
children: [/* @__PURE__ */ jsx("kbd", { children: "↵" }), "
|
|
143
|
+
children: [/* @__PURE__ */ jsx("kbd", { children: "↵" }), /* @__PURE__ */ jsx("span", { class: "run-text" })]
|
|
141
144
|
}),
|
|
142
145
|
/* @__PURE__ */ jsxs("span", {
|
|
143
146
|
class: "hint hotkey-hint",
|
|
144
|
-
children: [/* @__PURE__ */ jsx("span", { class: "hotkey-keys" }), "
|
|
147
|
+
children: [/* @__PURE__ */ jsx("span", { class: "hotkey-keys" }), /* @__PURE__ */ jsx("span", { class: "close-text" })]
|
|
145
148
|
})
|
|
146
149
|
]
|
|
147
150
|
})
|
|
@@ -156,6 +159,9 @@ var JlCommandPalette = class extends JlElement {
|
|
|
156
159
|
this._refs.empty.textContent = this.emptyText.get() || jlText("noCommands");
|
|
157
160
|
this._refs.dialog.setAttribute("aria-label", this.label.get() || jlText("commandPalette"));
|
|
158
161
|
this._refs.results.setAttribute("aria-label", jlText("commands"));
|
|
162
|
+
this._refs.moveText.textContent = jlText("commandMove");
|
|
163
|
+
this._refs.runText.textContent = jlText("commandRun");
|
|
164
|
+
this._refs.closeText.textContent = jlText("commandClose");
|
|
159
165
|
}
|
|
160
166
|
onConnect() {
|
|
161
167
|
const dialog = this._refs.dialog;
|
|
@@ -4,7 +4,7 @@ import { JlElement } from "../base/jl-element.js";
|
|
|
4
4
|
import { oneOf } from "../lib/attributes.js";
|
|
5
5
|
import { define } from "../lib/define.js";
|
|
6
6
|
import { JlButton } from "../atoms/jl-button.js";
|
|
7
|
-
import jl_confirm_default from "./jl-confirm.
|
|
7
|
+
import jl_confirm_default from "./jl-confirm.css.js";
|
|
8
8
|
import { JlDialog } from "./jl-dialog.js";
|
|
9
9
|
import { css } from "@jadis/core";
|
|
10
10
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/organisms/jl-dialog.css?inline
|
|
2
|
+
var jl_dialog_default = ":host{--width:520px;display:contents}:host([size=sm]){--width:400px}:host([size=lg]){--width:820px}:host([size=full]){--width:100vw}dialog{width:min(var(--width), calc(100vw - 32px));border:1px solid var(--jl-line);border-radius:var(--jl-radius-lg);background:var(--jl-surface);max-height:min(760px,100dvh - 48px);color:var(--jl-text);font-size:var(--jl-font-md);box-shadow:var(--jl-shadow-lg);flex-direction:column;padding:0;display:flex}dialog:not([open]){display:none}:host([size=full]) dialog{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px)}dialog[open]{animation:rise var(--jl-slow) var(--jl-ease)}dialog::backdrop{background:var(--jl-scrim);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}header{align-items:flex-start;gap:12px;padding:20px 16px 4px 24px;display:flex}.titles{flex:1;gap:4px;padding-top:4px;display:grid}h2{letter-spacing:-.01em;font-size:17px;font-weight:650;line-height:1.3}.description{color:var(--jl-muted);font-size:var(--jl-font-sm);line-height:1.5}.body{flex:1;padding:16px 24px;line-height:1.55;overflow:auto}footer{flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:0 24px 20px;display:flex}@keyframes rise{0%{opacity:0;transform:translateY(8px)scale(.98)}}";
|
|
3
|
+
export { jl_dialog_default as default };
|
|
@@ -4,7 +4,7 @@ import { JlElement } from "../base/jl-element.js";
|
|
|
4
4
|
import { oneOf } from "../lib/attributes.js";
|
|
5
5
|
import { registerIcons } from "../lib/icons.js";
|
|
6
6
|
import { JlButton } from "../atoms/jl-button.js";
|
|
7
|
-
import jl_dialog_default from "./jl-dialog.
|
|
7
|
+
import jl_dialog_default from "./jl-dialog.css.js";
|
|
8
8
|
import { css } from "@jadis/core";
|
|
9
9
|
import { X } from "lucide";
|
|
10
10
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/organisms/jl-drawer.css?inline
|
|
2
|
+
var jl_drawer_default = ":host{--size:420px;--from:translateX(100%);display:contents}:host([size=sm]){--size:320px}:host([size=lg]){--size:640px}:host([placement=left]){--from:translateX(-100%)}:host([placement=bottom]){--size:60dvh;--from:translateY(100%)}:host([placement=bottom][size=sm]){--size:40dvh}:host([placement=bottom][size=lg]){--size:88dvh}dialog{width:min(var(--size), calc(100vw - 24px));border:none;border-left:1px solid var(--jl-line);background:var(--jl-surface);max-width:none;height:100dvh;max-height:none;color:var(--jl-text);font-size:var(--jl-font-md);box-shadow:var(--jl-shadow-lg);transform:var(--from);transition:transform var(--jl-slow) var(--jl-ease), display var(--jl-slow) allow-discrete, overlay var(--jl-slow) allow-discrete;flex-direction:column;margin:0;padding:0;display:none;position:fixed;inset:0 0 0 auto}dialog[open]{display:flex;transform:none}@starting-style{dialog[open]{transform:var(--from)}}:host([placement=left]) dialog{border-right:1px solid var(--jl-line);border-left:none;inset:0 auto 0 0}:host([placement=bottom]) dialog{width:100%;height:auto;max-height:var(--size);border:1px solid var(--jl-line);border-radius:var(--jl-radius-xl) var(--jl-radius-xl) 0 0;border-bottom:none;inset:auto 0 0}dialog::backdrop{transition:background var(--jl-slow) var(--jl-ease), display var(--jl-slow) allow-discrete, overlay var(--jl-slow) allow-discrete;background:0 0}dialog[open]::backdrop{background:var(--jl-scrim)}@starting-style{dialog[open]::backdrop{background:0 0}}.handle{display:none}:host([placement=bottom]) .handle{border-radius:var(--jl-radius-pill);background:var(--jl-line-strong);flex:none;width:40px;height:4px;margin:10px auto 0;display:block}header{border-bottom:1px solid var(--jl-line);flex:none;align-items:flex-start;gap:12px;padding:18px 16px 14px 24px;display:flex}:host([placement=bottom]) header{padding-top:10px}.titles{flex:1;gap:4px;min-width:0;padding-top:4px;display:grid}h2{letter-spacing:-.01em;font-size:17px;font-weight:650;line-height:1.3}.description{color:var(--jl-muted);font-size:var(--jl-font-sm);line-height:1.5}.actions{flex:none;align-items:center;gap:4px;display:flex}.body{overscroll-behavior:contain;flex:1;min-height:0;padding:20px 24px;line-height:1.55;overflow:auto}footer{border-top:1px solid var(--jl-line);background:var(--jl-surface);flex-wrap:wrap;flex:none;justify-content:flex-end;gap:8px;padding:14px 24px;display:flex}:host([placement=bottom]) footer{padding-bottom:max(14px, env(safe-area-inset-bottom))}";
|
|
3
|
+
export { jl_drawer_default as default };
|
|
@@ -4,7 +4,7 @@ import { JlElement } from "../base/jl-element.js";
|
|
|
4
4
|
import { oneOf } from "../lib/attributes.js";
|
|
5
5
|
import { registerIcons } from "../lib/icons.js";
|
|
6
6
|
import { JlButton } from "../atoms/jl-button.js";
|
|
7
|
-
import jl_drawer_default from "./jl-drawer.
|
|
7
|
+
import jl_drawer_default from "./jl-drawer.css.js";
|
|
8
8
|
import { css } from "@jadis/core";
|
|
9
9
|
import { X } from "lucide";
|
|
10
10
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/organisms/jl-flow.css?inline
|
|
2
|
+
var jl_flow_default = ":host{height:420px;min-height:0;display:block}.viewport{border:1px solid var(--jl-line);border-radius:var(--jl-radius-lg);background-color:var(--jl-surface-2);background-image:radial-gradient(circle, var(--jl-line-strong) 1px, transparent 1.2px);touch-action:none;-webkit-user-select:none;user-select:none;outline:none;height:100%;position:relative;overflow:clip}.viewport:focus-visible{box-shadow:var(--jl-focus-ring)}.world,.nodes,.edges{position:absolute;top:0;left:0}.world{transform-origin:0 0}.edges{pointer-events:none;overflow:visible}.edge{fill:none;stroke:color-mix(in srgb, var(--tone,var(--jl-muted)) 60%, var(--jl-line-strong));stroke-width:2px;stroke-linecap:round}.edge[data-tone=danger]{stroke-dasharray:6 5}.edge-hit{fill:none;stroke:#0000;stroke-width:14px;pointer-events:stroke;cursor:pointer}.edge-group:hover .edge{stroke:var(--tone,var(--jl-muted))}.edge-group.taken .edge{stroke:var(--tone,var(--jl-muted));stroke-width:3px}.edge-group.selected .edge{stroke:var(--jl-accent);stroke-width:3px}.draft{stroke:var(--jl-accent);stroke-dasharray:5 5}.node{--tone:var(--jl-accent);width:240px;height:64px;padding:0 var(--jl-space-3) var(--jl-space-1);border:1px solid var(--jl-line);border-radius:var(--jl-radius-lg);background:var(--jl-surface);box-shadow:var(--jl-shadow-sm);cursor:grab;transition:border-color var(--jl-fast) var(--jl-ease), box-shadow var(--jl-fast) var(--jl-ease);flex-direction:column;justify-content:center;display:flex;position:absolute;top:0;left:0}.node:hover{border-color:var(--jl-line-strong)}.node:focus-visible{box-shadow:var(--jl-focus-ring);outline:none}.node[data-status=running]{--state:var(--jl-info);box-shadow:0 0 0 3px color-mix(in srgb, var(--jl-info) 30%, transparent)}.node[data-status=done]{--state:var(--jl-ok);border-color:color-mix(in srgb, var(--jl-ok) 55%, var(--jl-line))}.node[data-status=waiting]{--state:var(--jl-brand);border-color:var(--jl-brand);box-shadow:0 0 0 3px color-mix(in srgb, var(--jl-brand) 30%, transparent)}.node[data-status=failed]{--state:var(--jl-danger);border-color:var(--jl-danger)}.node.selected{border-color:var(--jl-accent);box-shadow:0 0 0 3px var(--jl-accent-soft)}.head{align-items:center;gap:var(--jl-space-3);min-width:0;display:flex}.node:has(.detail){justify-content:flex-start;padding-top:10px}.detail{border-top:1px dashed var(--jl-line);color:var(--jl-muted);line-height:16px;font-size:var(--jl-font-xs);text-overflow:ellipsis;white-space:nowrap;margin-top:6px;padding-top:5px;overflow:hidden}.problem{color:var(--jl-danger);flex:none;display:inline-flex}.status{background:var(--state);width:20px;height:20px;color:var(--jl-on-accent);border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex}.node[data-status=running] .status jl-icon{animation:1s linear infinite spin}@keyframes spin{to{rotate:360deg}}.input{border:2px solid var(--jl-surface);background:var(--jl-line-strong);border-radius:50%;width:10px;height:10px;position:absolute;top:-5px;left:50%;transform:translate(-50%)}.icon{border-radius:var(--jl-radius);background:color-mix(in srgb, var(--tone) 14%, var(--jl-surface));width:32px;height:32px;color:var(--tone);flex:none;justify-content:center;align-items:center;display:inline-flex}.text{flex:1;min-width:0;display:grid}.label,.description{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label{color:var(--jl-text);font-size:var(--jl-font-sm);font-weight:600}.description{color:var(--jl-muted);font-size:var(--jl-font-xs)}.ports{height:22px;position:absolute;bottom:-11px;left:0;right:0}.port{--tone:var(--jl-muted);align-items:center;gap:var(--jl-space-1);border:1px solid color-mix(in srgb, var(--tone) 35%, var(--jl-line));border-radius:var(--jl-radius-pill);background:var(--jl-surface);height:22px;color:color-mix(in srgb, var(--tone) 80%, var(--jl-text));font-size:var(--jl-font-xs);white-space:nowrap;cursor:crosshair;padding:0 7px;font-weight:600;display:inline-flex;position:absolute;top:0;transform:translate(-50%)}.port:has(.add){padding-right:3px}.port[data-taken]{border-color:var(--tone);background:color-mix(in srgb, var(--tone) 14%, var(--jl-surface))}.dot{background:var(--tone);border-radius:50%;flex:none;width:7px;height:7px}.port-label{text-overflow:ellipsis;min-width:0;overflow:hidden}.add,.remove-edge{cursor:pointer;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.add{background:color-mix(in srgb, var(--tone) 16%, var(--jl-surface));width:16px;height:16px;color:var(--tone);border:none}.add:hover{background:var(--tone);color:var(--jl-surface)}.remove-edge{border:1px solid var(--jl-line);background:var(--jl-surface);width:24px;height:24px;color:var(--jl-danger);position:absolute;top:0;left:0}.remove-edge:hover{border-color:var(--jl-danger);background:var(--jl-danger);color:var(--jl-on-danger)}.empty{padding:var(--jl-space-6);color:var(--jl-muted);text-align:center;pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.empty[hidden]{display:none}.empty ::slotted(*){pointer-events:auto}.controls{bottom:var(--jl-space-3);left:var(--jl-space-3);border:1px solid var(--jl-line);border-radius:var(--jl-radius);background:var(--jl-surface);align-items:center;gap:2px;padding:2px;display:flex;position:absolute}.control{width:var(--jl-control-sm);height:var(--jl-control-sm);border-radius:var(--jl-radius-sm);color:var(--jl-accent);cursor:pointer;transition:background var(--jl-fast) var(--jl-ease);background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.control:hover{background:var(--jl-accent-soft)}.zoom-label{min-width:40px;color:var(--jl-muted);font-size:var(--jl-font-xs);font-variant-numeric:tabular-nums;text-align:center}[data-tone=neutral]{--tone:var(--jl-muted)}[data-tone=accent]{--tone:var(--jl-accent)}[data-tone=ok]{--tone:var(--jl-ok)}[data-tone=warn]{--tone:var(--jl-warn)}[data-tone=danger]{--tone:var(--jl-danger)}[data-tone=info]{--tone:var(--jl-info)}:host([readonly]) .node,:host([readonly]) .port{cursor:pointer}:host([readonly]) .tidy{display:none}";
|
|
3
|
+
export { jl_flow_default as default };
|
|
@@ -6,7 +6,7 @@ import { registerIcons } from "../lib/icons.js";
|
|
|
6
6
|
import { JlIcon } from "../atoms/jl-icon.js";
|
|
7
7
|
import { setOrRemove, svgElement } from "../lib/dom.js";
|
|
8
8
|
import { FLOW_NODE, FLOW_ZOOM, centeredAt, connect, edgeEnds, edgeMidpoint, edgePath, fitView, isEdgeTaken, isPortFree, layoutFlow, moveNode, nodeAt, nodeHeight, outputAnchor, portX, portsOf, positionAfter, removeEdge, removeNode, revealIn, snap, toWorld, zoomAt } from "../lib/flow.js";
|
|
9
|
-
import jl_flow_default from "./jl-flow.
|
|
9
|
+
import jl_flow_default from "./jl-flow.css.js";
|
|
10
10
|
import { css } from "@jadis/core";
|
|
11
11
|
import { Check, CircleAlert, Hourglass, LoaderCircle, Maximize, Minus, Plus, WandSparkles, X } from "lucide";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/organisms/jl-navbar.css?inline
|
|
2
|
+
var jl_navbar_default = ":host{--max-width:none;display:block;container-type:inline-size}:host([sticky]){z-index:10;position:sticky;top:0}header{border-bottom:1px solid var(--jl-line);background:var(--jl-surface)}.bar{max-width:var(--max-width);align-items:center;gap:24px;height:60px;margin:0 auto;padding:0 20px;display:flex}.brand{color:var(--jl-text);font-size:var(--jl-font-lg);letter-spacing:-.01em;flex:none;align-items:center;font-weight:700;display:flex}::slotted([slot=brand]){color:inherit;align-items:center;gap:8px;text-decoration:none;display:inline-flex}ul{margin:0;padding:0;list-style:none;display:flex}.links{flex:1;min-width:0}.links ul{align-items:center;gap:2px}.link{border-radius:var(--jl-radius-sm);height:34px;color:var(--jl-text-2);font-size:var(--jl-font-md);white-space:nowrap;transition:background var(--jl-fast) var(--jl-ease), color var(--jl-fast) var(--jl-ease);align-items:center;padding:0 12px;font-weight:600;text-decoration:none;display:inline-flex}.link:hover{background:var(--jl-surface-2);color:var(--jl-text)}.link[aria-current=page]{color:var(--jl-accent)}.actions{flex:none;align-items:center;gap:8px;display:flex}.toggle{width:var(--jl-control-md);height:var(--jl-control-md);border-radius:var(--jl-radius-sm);color:var(--jl-text);cursor:pointer;background:0 0;border:none;flex:none;justify-content:center;align-items:center;margin-right:-6px;padding:0;display:none}.toggle:hover{background:var(--jl-surface-2)}.drawer{display:none}@container (width<720px){.bar{gap:12px;padding:0 16px}.links{display:none}.actions{margin-left:auto}.toggle{display:inline-flex}.drawer:not([hidden]){border-top:1px solid var(--jl-line);animation:drop var(--jl-fast) var(--jl-ease);padding:8px 12px 12px;display:block}.drawer ul{flex-direction:column;gap:2px}.drawer .link{height:40px;display:flex}.drawer .link[aria-current=page]{background:var(--jl-accent-soft)}}@keyframes drop{0%{opacity:0;transform:translateY(-4px)}}";
|
|
3
|
+
export { jl_navbar_default as default };
|
|
@@ -4,7 +4,7 @@ import { JlElement } from "../base/jl-element.js";
|
|
|
4
4
|
import { jsonOf } from "../lib/attributes.js";
|
|
5
5
|
import { registerIcons } from "../lib/icons.js";
|
|
6
6
|
import { JlIcon } from "../atoms/jl-icon.js";
|
|
7
|
-
import jl_navbar_default from "./jl-navbar.
|
|
7
|
+
import jl_navbar_default from "./jl-navbar.css.js";
|
|
8
8
|
import { css } from "@jadis/core";
|
|
9
9
|
import { Menu, X } from "lucide";
|
|
10
10
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/organisms/jl-page-header.css?inline
|
|
2
|
+
var jl_page_header_default = ":host{display:block}.page-header{gap:12px;display:grid}:host([divided]) .page-header{border-bottom:1px solid var(--jl-line);padding-bottom:20px}.breadcrumb{color:var(--jl-muted);font-size:var(--jl-font-sm);line-height:1.4}.main{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px 24px;display:flex}.titles{flex:320px;gap:6px;min-width:0;display:grid}h1{color:var(--jl-text);letter-spacing:-.02em;overflow-wrap:anywhere;font-size:26px;font-weight:700;line-height:1.25}.description{max-width:72ch;color:var(--jl-muted);font-size:var(--jl-font-md);line-height:1.55}.actions{flex-wrap:wrap;align-items:center;gap:8px;padding-top:2px;display:flex}.meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}";
|
|
3
|
+
export { jl_page_header_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BASE_STYLES } from "../styles/shared.js";
|
|
2
2
|
import { JlElement } from "../base/jl-element.js";
|
|
3
3
|
import { hasSlotted } from "../lib/slots.js";
|
|
4
|
-
import jl_page_header_default from "./jl-page-header.
|
|
4
|
+
import jl_page_header_default from "./jl-page-header.css.js";
|
|
5
5
|
import { css } from "@jadis/core";
|
|
6
6
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
7
7
|
// src/organisms/jl-page-header.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/organisms/jl-page-outlet.css?inline
|
|
2
|
+
var jl_page_outlet_default = ":host{grid-template:1fr/minmax(0,1fr);min-height:100%;display:grid;position:relative}::slotted(*){grid-area:1/1}.line{z-index:1;grid-area:1/1;align-self:start;position:sticky;top:0}.next{visibility:hidden;height:0;position:absolute;inset:0 0 auto;overflow:hidden}";
|
|
3
|
+
export { jl_page_outlet_default as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { JlElement } from '../base/jl-element';
|
|
2
|
+
/**
|
|
3
|
+
* Where an app's pages show, one at a time. A new page loads out of sight while the current one stays, usable,
|
|
4
|
+
* under a line that says the next one is on its way; it takes the current one's place once its load states have
|
|
5
|
+
* their data, or after `max-wait`, so a page never shows half drawn. The first page shows at once. It is the router's
|
|
6
|
+
* way to show its pages: `router.mountOn(outlet, { show: (page) => outlet.show(page) })`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class JlPageOutlet extends JlElement {
|
|
9
|
+
static readonly selector = "jl-page-outlet";
|
|
10
|
+
readonly events: Readonly<import("@jadis/core").UseEventsHandler<{
|
|
11
|
+
show: HTMLElement;
|
|
12
|
+
}>>;
|
|
13
|
+
/** The longest the current page stays while the next one loads, in milliseconds. */
|
|
14
|
+
readonly maxWait: Readonly<Readonly<{
|
|
15
|
+
get(): number;
|
|
16
|
+
set(setter: number | ((prevState: number) => number)): void;
|
|
17
|
+
}>>;
|
|
18
|
+
private readonly _swap;
|
|
19
|
+
private readonly _refs;
|
|
20
|
+
/**
|
|
21
|
+
* Shows a page: at once when none shows yet, else once it has its data, the current one staying until then. A page
|
|
22
|
+
* still loading when another comes is dropped.
|
|
23
|
+
*/
|
|
24
|
+
show(page: HTMLElement): void;
|
|
25
|
+
templateHtml(): Node;
|
|
26
|
+
templateCss(): string;
|
|
27
|
+
private showOnceLoaded;
|
|
28
|
+
/** Puts the page in the current one's place. */
|
|
29
|
+
private reveal;
|
|
30
|
+
private pages;
|
|
31
|
+
private drawWaiting;
|
|
32
|
+
/** Brings the top of the new page into view, as a page loaded by the browser starts at its top. */
|
|
33
|
+
private scrollToTop;
|
|
34
|
+
}
|