jsl-ui 10.4.3 → 10.4.5
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/docs/AutoSuggestComponent.md +17 -17
- package/docs/ButtonComponent.md +22 -22
- package/docs/CheckBoxComponent.md +12 -12
- package/docs/DataBinding.md +19 -19
- package/docs/DateComponent.md +12 -12
- package/docs/DateRangeComponent.md +13 -13
- package/docs/DateTimeComponent.md +14 -14
- package/docs/DialogComponent.md +15 -15
- package/docs/DropdownMenuComponent.md +22 -22
- package/docs/ExpanderComponent.md +13 -13
- package/docs/FormComponent.md +15 -15
- package/docs/FormFieldComponent.md +15 -15
- package/docs/GridComponent.md +39 -39
- package/docs/InputComponent.md +15 -15
- package/docs/IntervalComponent.md +13 -13
- package/docs/LoadingComponent.md +12 -12
- package/docs/NavigationComponent.md +17 -17
- package/docs/Notification.md +14 -14
- package/docs/NotificationComponent.md +13 -13
- package/docs/NumberComponent.md +12 -12
- package/docs/OverlayComponent.md +13 -13
- package/docs/ProgressComponent.md +12 -12
- package/docs/README.md +27 -27
- package/docs/RibbonMenuComponent.md +14 -14
- package/docs/SelectComponent.md +36 -36
- package/docs/SliderComponent.md +20 -20
- package/docs/SplitterComponent.md +14 -14
- package/docs/StackPanelComponent.md +13 -13
- package/docs/TabsComponent.md +16 -16
- package/docs/TimeComponent.md +13 -13
- package/docs/TreeViewComponent.md +16 -16
- package/examples/showcase/checks-and-expanders.ts +148 -148
- package/examples/showcase/cultures.ts +39 -39
- package/examples/showcase/data-binding.ts +138 -138
- package/examples/showcase/dates.ts +168 -168
- package/examples/showcase/dialogs.ts +184 -184
- package/examples/showcase/dropdown-menus.ts +99 -99
- package/examples/showcase/feedback-and-navigation.ts +173 -173
- package/examples/showcase/fields.ts +166 -166
- package/examples/showcase/fonts/OFL-BricolageGrotesque.txt +93 -93
- package/examples/showcase/fonts/OFL-Figtree.txt +93 -93
- package/examples/showcase/fonts/OFL-Jost.txt +93 -93
- package/examples/showcase/generate-sources.cjs +104 -104
- package/examples/showcase/grids.ts +484 -484
- package/examples/showcase/index.html +71 -71
- package/examples/showcase/layout-and-navigation.ts +46 -46
- package/examples/showcase/nivona.css +98 -98
- package/examples/showcase/package.json +10 -10
- package/examples/showcase/selects.ts +184 -184
- package/examples/showcase/showcase-sources.ts +94 -94
- package/examples/showcase/showcase.css +281 -281
- package/examples/showcase/showcase.ts +244 -244
- package/examples/showcase/tabs.ts +161 -161
- package/examples/showcase/themes.css +83 -83
- package/examples/showcase/themes.ts +56 -56
- package/examples/showcase/wirtshans.css +65 -65
- package/lib/components/checkbox/CheckBoxStyle.scss +73 -73
- package/lib/components/date-range/DateRangeStyle.scss +35 -35
- package/lib/components/date-time/DateTimeStyle.scss +9 -9
- package/lib/components/dialog/DialogComponent.d.ts +9 -2
- package/lib/components/dialog/DialogComponent.js +17 -51
- package/lib/components/dropdown-menu/DropdownMenuStyle.scss +48 -48
- package/lib/components/expander/ExpanderStyle.scss +61 -61
- package/lib/components/form-field/FormFieldStyle.scss +36 -36
- package/lib/components/host/RenderHost.d.ts +25 -0
- package/lib/components/host/RenderHost.js +63 -0
- package/lib/components/loading/LoadingStyle.css +18 -18
- package/lib/components/navigation/NavigationStyle.scss +61 -61
- package/lib/components/notification/Notification.scss +102 -102
- package/lib/components/overlay/OverlayComponent.d.ts +9 -1
- package/lib/components/overlay/OverlayComponent.js +22 -13
- package/lib/components/overlay/overlay.css +15 -15
- package/lib/components/progress/ProgressStyle.scss +4 -4
- package/lib/components/ribbon-menu/RibbonMenuStyle.scss +5 -5
- package/lib/components/select/SelectStyle.scss +207 -207
- package/lib/components/slider/SliderStyle.scss +21 -21
- package/lib/components/slider/nouislider.css +15 -15
- package/lib/components/stack-panel/SplitterStyle.scss +8 -8
- package/lib/components/stack-panel/StackPanelStyle.scss +10 -10
- package/lib/components/tabs/TabsStyle.scss +139 -139
- package/lib/components/time/TimeComponent.scss +3 -3
- package/lib/components/tree-view/TreeViewStyle.scss +14 -14
- package/lib/core/helper.js +11 -6
- package/lib/grid/plugins/slick.headermenu.css +98 -98
- package/lib/grid.css +840 -3532
- package/lib/index.css.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/ui/auto.suggest.css +30 -30
- package/lib/ui/button.css +147 -147
- package/lib/ui/date-input.css +10 -10
- package/lib/ui/date.picker/css/tiny-date-picker.css +124 -124
- package/lib/ui/dialog.css +144 -144
- package/lib/ui/input.css +35 -35
- package/lib/ui/theme.css +28 -28
- package/package.json +1 -1
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
@import "../../ui/theme.css";
|
|
2
|
-
|
|
3
|
-
.jsl-notification-container {
|
|
4
|
-
position: fixed;
|
|
5
|
-
top: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
width: 25rem;
|
|
8
|
-
max-width: 100vw;
|
|
9
|
-
max-height: 100dvh;
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
z-index: 3020;
|
|
12
|
-
// Leave space for individual shadows so scrolling doesn't crop them into a rectangle.
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
padding: 1rem;
|
|
15
|
-
background: transparent;
|
|
16
|
-
border: 0;
|
|
17
|
-
border-radius: 1.75rem;
|
|
18
|
-
box-shadow: none;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
scrollbar-width: thin;
|
|
21
|
-
}
|
|
22
|
-
.jsl-notification-container > div { display: flex; flex-direction: column; gap: .75rem; }
|
|
23
|
-
.jsl-notification {
|
|
24
|
-
position: relative;
|
|
25
|
-
--jsl-notification-tone: var(--jsl-color-text-secondary);
|
|
26
|
-
display: grid;
|
|
27
|
-
grid-template-columns: 1.25rem minmax(0, 1fr) auto;
|
|
28
|
-
align-items: start;
|
|
29
|
-
gap: .75rem;
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
width: 100%;
|
|
32
|
-
padding: 1rem;
|
|
33
|
-
border: 1px solid var(--jsl-color-border);
|
|
34
|
-
border-radius: .75rem;
|
|
35
|
-
background: var(--jsl-color-surface);
|
|
36
|
-
color: var(--jsl-color-text);
|
|
37
|
-
font: inherit;
|
|
38
|
-
font-size: .8125rem;
|
|
39
|
-
line-height: 1.5;
|
|
40
|
-
box-shadow: 0 8px 24px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.04);
|
|
41
|
-
pointer-events: auto;
|
|
42
|
-
animation: jsl-notification-appear .16s ease-out;
|
|
43
|
-
}
|
|
44
|
-
.jsl-notification[hidden] { display: none; }
|
|
45
|
-
.jsl-notification--info { --jsl-notification-tone: var(--jsl-color-info); }
|
|
46
|
-
.jsl-notification--success { --jsl-notification-tone: var(--jsl-color-success); }
|
|
47
|
-
.jsl-notification--warning { --jsl-notification-tone: var(--jsl-color-warning); }
|
|
48
|
-
.jsl-notification--error { --jsl-notification-tone: var(--jsl-color-danger); }
|
|
49
|
-
.jsl-notification-icon {
|
|
50
|
-
display: grid;
|
|
51
|
-
place-items: center;
|
|
52
|
-
box-sizing: border-box;
|
|
53
|
-
width: 1.125rem;
|
|
54
|
-
height: 1.125rem;
|
|
55
|
-
margin-top: .125rem;
|
|
56
|
-
border: 1.5px solid currentColor;
|
|
57
|
-
border-radius: 50%;
|
|
58
|
-
color: var(--jsl-notification-tone);
|
|
59
|
-
font-size: .6875rem;
|
|
60
|
-
font-weight: 700;
|
|
61
|
-
line-height: 1;
|
|
62
|
-
}
|
|
63
|
-
.jsl-notification--success .jsl-notification-icon { font-size: .75rem; }
|
|
64
|
-
.jsl-notification-copy { min-width: 0; overflow-wrap: anywhere; }
|
|
65
|
-
.jsl-notification-title { margin-bottom: .25rem; font-weight: 600; color: var(--jsl-color-text); }
|
|
66
|
-
.jsl-notification-title[hidden] { display: none; }
|
|
67
|
-
.jsl-notification-close {
|
|
68
|
-
appearance: none;
|
|
69
|
-
display: grid;
|
|
70
|
-
place-items: center;
|
|
71
|
-
width: 1.5rem;
|
|
72
|
-
height: 1.5rem;
|
|
73
|
-
margin: -.125rem -.25rem 0 0;
|
|
74
|
-
padding: 0;
|
|
75
|
-
border: 0;
|
|
76
|
-
border-radius: .25rem;
|
|
77
|
-
background: transparent;
|
|
78
|
-
color: var(--jsl-color-text-muted);
|
|
79
|
-
font: inherit;
|
|
80
|
-
font-size: 1.125rem;
|
|
81
|
-
line-height: 1;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
}
|
|
84
|
-
.jsl-notification-close[hidden] { display: none; }
|
|
85
|
-
.jsl-notification-progress {
|
|
86
|
-
position: absolute;
|
|
87
|
-
inset: auto 1rem .375rem;
|
|
88
|
-
height: 3px;
|
|
89
|
-
border-radius: 999px;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
background: var(--jsl-color-border-subtle);
|
|
92
|
-
pointer-events: none;
|
|
93
|
-
}
|
|
94
|
-
.jsl-notification-progress-fill {
|
|
95
|
-
display: block;
|
|
96
|
-
height: 100%;
|
|
97
|
-
background: var(--jsl-color-accent);
|
|
98
|
-
transform-origin: left;
|
|
99
|
-
}
|
|
100
|
-
.jsl-notification-close:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
101
|
-
.jsl-notification-close:focus-visible, .jsl-notification:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
102
|
-
@keyframes jsl-notification-appear { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
|
|
1
|
+
@import "../../ui/theme.css";
|
|
2
|
+
|
|
3
|
+
.jsl-notification-container {
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
width: 25rem;
|
|
8
|
+
max-width: 100vw;
|
|
9
|
+
max-height: 100dvh;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
z-index: 3020;
|
|
12
|
+
// Leave space for individual shadows so scrolling doesn't crop them into a rectangle.
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
padding: 1rem;
|
|
15
|
+
background: transparent;
|
|
16
|
+
border: 0;
|
|
17
|
+
border-radius: 1.75rem;
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
scrollbar-width: thin;
|
|
21
|
+
}
|
|
22
|
+
.jsl-notification-container > div { display: flex; flex-direction: column; gap: .75rem; }
|
|
23
|
+
.jsl-notification {
|
|
24
|
+
position: relative;
|
|
25
|
+
--jsl-notification-tone: var(--jsl-color-text-secondary);
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: 1.25rem minmax(0, 1fr) auto;
|
|
28
|
+
align-items: start;
|
|
29
|
+
gap: .75rem;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
width: 100%;
|
|
32
|
+
padding: 1rem;
|
|
33
|
+
border: 1px solid var(--jsl-color-border);
|
|
34
|
+
border-radius: .75rem;
|
|
35
|
+
background: var(--jsl-color-surface);
|
|
36
|
+
color: var(--jsl-color-text);
|
|
37
|
+
font: inherit;
|
|
38
|
+
font-size: .8125rem;
|
|
39
|
+
line-height: 1.5;
|
|
40
|
+
box-shadow: 0 8px 24px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.04);
|
|
41
|
+
pointer-events: auto;
|
|
42
|
+
animation: jsl-notification-appear .16s ease-out;
|
|
43
|
+
}
|
|
44
|
+
.jsl-notification[hidden] { display: none; }
|
|
45
|
+
.jsl-notification--info { --jsl-notification-tone: var(--jsl-color-info); }
|
|
46
|
+
.jsl-notification--success { --jsl-notification-tone: var(--jsl-color-success); }
|
|
47
|
+
.jsl-notification--warning { --jsl-notification-tone: var(--jsl-color-warning); }
|
|
48
|
+
.jsl-notification--error { --jsl-notification-tone: var(--jsl-color-danger); }
|
|
49
|
+
.jsl-notification-icon {
|
|
50
|
+
display: grid;
|
|
51
|
+
place-items: center;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
width: 1.125rem;
|
|
54
|
+
height: 1.125rem;
|
|
55
|
+
margin-top: .125rem;
|
|
56
|
+
border: 1.5px solid currentColor;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
color: var(--jsl-notification-tone);
|
|
59
|
+
font-size: .6875rem;
|
|
60
|
+
font-weight: 700;
|
|
61
|
+
line-height: 1;
|
|
62
|
+
}
|
|
63
|
+
.jsl-notification--success .jsl-notification-icon { font-size: .75rem; }
|
|
64
|
+
.jsl-notification-copy { min-width: 0; overflow-wrap: anywhere; }
|
|
65
|
+
.jsl-notification-title { margin-bottom: .25rem; font-weight: 600; color: var(--jsl-color-text); }
|
|
66
|
+
.jsl-notification-title[hidden] { display: none; }
|
|
67
|
+
.jsl-notification-close {
|
|
68
|
+
appearance: none;
|
|
69
|
+
display: grid;
|
|
70
|
+
place-items: center;
|
|
71
|
+
width: 1.5rem;
|
|
72
|
+
height: 1.5rem;
|
|
73
|
+
margin: -.125rem -.25rem 0 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
border: 0;
|
|
76
|
+
border-radius: .25rem;
|
|
77
|
+
background: transparent;
|
|
78
|
+
color: var(--jsl-color-text-muted);
|
|
79
|
+
font: inherit;
|
|
80
|
+
font-size: 1.125rem;
|
|
81
|
+
line-height: 1;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
.jsl-notification-close[hidden] { display: none; }
|
|
85
|
+
.jsl-notification-progress {
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: auto 1rem .375rem;
|
|
88
|
+
height: 3px;
|
|
89
|
+
border-radius: 999px;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
background: var(--jsl-color-border-subtle);
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
}
|
|
94
|
+
.jsl-notification-progress-fill {
|
|
95
|
+
display: block;
|
|
96
|
+
height: 100%;
|
|
97
|
+
background: var(--jsl-color-accent);
|
|
98
|
+
transform-origin: left;
|
|
99
|
+
}
|
|
100
|
+
.jsl-notification-close:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
101
|
+
.jsl-notification-close:focus-visible, .jsl-notification:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
102
|
+
@keyframes jsl-notification-appear { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
|
|
103
103
|
@media (prefers-reduced-motion: reduce) { .jsl-notification { animation: none; } }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./overlay.css";
|
|
2
2
|
import { IJSLComponent, IJSLVNode, JSLRender } from "jsl-render";
|
|
3
|
+
import { JSLDialog } from "../../ui/dialog";
|
|
3
4
|
export interface IOverlayComponentOptions {
|
|
4
5
|
content: IJSLVNode | string | IJSLComponent;
|
|
5
6
|
showCloseButton?: boolean;
|
|
@@ -26,13 +27,20 @@ export declare class OverlayComponent implements IJSLComponent {
|
|
|
26
27
|
};
|
|
27
28
|
private ref;
|
|
28
29
|
private renderer;
|
|
29
|
-
private
|
|
30
|
+
private host?;
|
|
30
31
|
private options;
|
|
32
|
+
/**
|
|
33
|
+
* Render the overlay into its own container on document.body. Like DialogComponent.show, its renderer is the
|
|
34
|
+
* global JSLRender.lastCreatedRenderer while it is open, so refresh() calls re-render the overlay content.
|
|
35
|
+
*/
|
|
31
36
|
static show(options: IOverlayComponentOptions): OverlayComponent;
|
|
32
37
|
constructor(options: IOverlayComponentOptions);
|
|
33
38
|
onInit(renderer: JSLRender): void;
|
|
34
39
|
onCreate(node: IJSLVNode): void;
|
|
35
40
|
onRemove(): void;
|
|
41
|
+
getRef(): JSLDialog;
|
|
42
|
+
/** Re-render the overlay and its content. */
|
|
43
|
+
refresh(): void;
|
|
36
44
|
close(): void;
|
|
37
45
|
private handleClose;
|
|
38
46
|
render(): IJSLVNode;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import "./overlay.css";
|
|
2
|
-
import { JSLRender } from "jsl-render";
|
|
3
2
|
import { Dialog } from "../../ui/dialog";
|
|
3
|
+
import { RenderHost } from "../host/RenderHost";
|
|
4
4
|
/**
|
|
5
5
|
* Side/top panel. Uses the same technique as DialogComponent: a fixed-position div with a z-index
|
|
6
6
|
* (managed by JSLDialog) instead of a native <dialog>/showModal(), so it does not enter the browser's
|
|
7
7
|
* top layer and popups that are appended to document.body (date picker, select, ...) render above it.
|
|
8
8
|
*/
|
|
9
9
|
export class OverlayComponent {
|
|
10
|
+
/**
|
|
11
|
+
* Render the overlay into its own container on document.body. Like DialogComponent.show, its renderer is the
|
|
12
|
+
* global JSLRender.lastCreatedRenderer while it is open, so refresh() calls re-render the overlay content.
|
|
13
|
+
*/
|
|
10
14
|
static show(options) {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
overlay.disposeHost = () => { renderer.render({ tag: "div" }); container.remove(); };
|
|
15
|
-
renderer.render(overlay);
|
|
16
|
-
return overlay;
|
|
15
|
+
const host = new RenderHost(), overlay = new OverlayComponent(options);
|
|
16
|
+
overlay.host = host;
|
|
17
|
+
return host.render(overlay);
|
|
17
18
|
}
|
|
18
19
|
constructor(options) {
|
|
19
20
|
this.State = { closed: false };
|
|
@@ -33,7 +34,10 @@ export class OverlayComponent {
|
|
|
33
34
|
this.ref.open();
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
onRemove() { var _a; (_a = this.ref) === null || _a === void 0 ? void 0 : _a.destroy(); this.ref = undefined; }
|
|
37
|
+
onRemove() { var _a, _b; (_a = this.ref) === null || _a === void 0 ? void 0 : _a.destroy(); this.ref = undefined; (_b = this.host) === null || _b === void 0 ? void 0 : _b.dispose(false); }
|
|
38
|
+
getRef() { return this.ref; }
|
|
39
|
+
/** Re-render the overlay and its content. */
|
|
40
|
+
refresh() { var _a; (_a = this.renderer) === null || _a === void 0 ? void 0 : _a.refresh(); }
|
|
37
41
|
close() {
|
|
38
42
|
if (this.State.closed) {
|
|
39
43
|
return;
|
|
@@ -46,16 +50,21 @@ export class OverlayComponent {
|
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
handleClose() {
|
|
49
|
-
var _a, _b
|
|
50
|
-
if (this.State.closed
|
|
53
|
+
var _a, _b;
|
|
54
|
+
if (this.State.closed) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
// The close guard may have changed state the content shows.
|
|
58
|
+
if (((_b = (_a = this.options).onClose) === null || _b === void 0 ? void 0 : _b.call(_a)) === false) {
|
|
59
|
+
this.refresh();
|
|
51
60
|
return false;
|
|
52
61
|
}
|
|
53
62
|
this.State.closed = true;
|
|
54
|
-
if (this.
|
|
55
|
-
this.
|
|
63
|
+
if (this.host) {
|
|
64
|
+
this.host.dispose();
|
|
56
65
|
}
|
|
57
66
|
else {
|
|
58
|
-
|
|
67
|
+
this.refresh();
|
|
59
68
|
}
|
|
60
69
|
}
|
|
61
70
|
render() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@import "../../ui/theme.css";
|
|
2
|
-
.jsl-overlay-overlay { position: fixed; inset: 0; z-index: var(--jsl-dialog-z-index, 2001); background: var(--jsl-dialog-backdrop, var(--jsl-color-overlay)); color: var(--jsl-color-text); font: inherit; }
|
|
3
|
-
.overl-body { box-sizing: border-box; display: flex; flex-direction: column; overflow: auto; background: var(--jsl-color-surface); box-shadow: var(--jsl-shadow-dialog); }
|
|
4
|
-
.overl-body-left { width: var(--jsl-overlay-size); max-width: 100vw; height: 100dvh; border-radius: 0 .75rem .75rem 0; }
|
|
5
|
-
.overl-body-top { height: var(--jsl-overlay-size); max-height: 100dvh; width: 100vw; border-radius: 0 0 .75rem .75rem; }
|
|
6
|
-
.overl-header { display: flex; justify-content: flex-end; padding: .75rem .75rem 0; }
|
|
7
|
-
.overl-content { padding: 1.25rem; overflow: auto; }
|
|
8
|
-
.overl-close-btn { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .375rem; background: transparent; color: var(--jsl-color-text-muted); font: inherit; font-size: 1.5rem; cursor: pointer; }
|
|
9
|
-
.overl-close-btn:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
10
|
-
.overl-close-btn:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
11
|
-
.overl-body-left.overl-animate { animation: jsl-panel-left .18s ease-out; }
|
|
12
|
-
.overl-body-top.overl-animate { animation: jsl-panel-top .18s ease-out; }
|
|
13
|
-
@keyframes jsl-panel-left { from { transform: translateX(-100%); } }
|
|
14
|
-
@keyframes jsl-panel-top { from { transform: translateY(-100%); } }
|
|
15
|
-
@media (prefers-reduced-motion: reduce) { .overl-animate { animation: none !important; } }
|
|
1
|
+
@import "../../ui/theme.css";
|
|
2
|
+
.jsl-overlay-overlay { position: fixed; inset: 0; z-index: var(--jsl-dialog-z-index, 2001); background: var(--jsl-dialog-backdrop, var(--jsl-color-overlay)); color: var(--jsl-color-text); font: inherit; }
|
|
3
|
+
.overl-body { box-sizing: border-box; display: flex; flex-direction: column; overflow: auto; background: var(--jsl-color-surface); box-shadow: var(--jsl-shadow-dialog); }
|
|
4
|
+
.overl-body-left { width: var(--jsl-overlay-size); max-width: 100vw; height: 100dvh; border-radius: 0 .75rem .75rem 0; }
|
|
5
|
+
.overl-body-top { height: var(--jsl-overlay-size); max-height: 100dvh; width: 100vw; border-radius: 0 0 .75rem .75rem; }
|
|
6
|
+
.overl-header { display: flex; justify-content: flex-end; padding: .75rem .75rem 0; }
|
|
7
|
+
.overl-content { padding: 1.25rem; overflow: auto; }
|
|
8
|
+
.overl-close-btn { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .375rem; background: transparent; color: var(--jsl-color-text-muted); font: inherit; font-size: 1.5rem; cursor: pointer; }
|
|
9
|
+
.overl-close-btn:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
10
|
+
.overl-close-btn:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
11
|
+
.overl-body-left.overl-animate { animation: jsl-panel-left .18s ease-out; }
|
|
12
|
+
.overl-body-top.overl-animate { animation: jsl-panel-top .18s ease-out; }
|
|
13
|
+
@keyframes jsl-panel-left { from { transform: translateX(-100%); } }
|
|
14
|
+
@keyframes jsl-panel-top { from { transform: translateY(-100%); } }
|
|
15
|
+
@media (prefers-reduced-motion: reduce) { .overl-animate { animation: none !important; } }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import "../../ui/theme.css";
|
|
2
|
-
.progress-comp { position: relative; background: var(--jsl-color-border-subtle); height: .5rem; border-radius: 999px; overflow: hidden; }
|
|
3
|
-
.progress-comp.has-label { height: 1.25rem; }
|
|
4
|
-
.progress-comp .bar { background: var(--jsl-color-accent); height: 100%; border-radius: inherit; }
|
|
1
|
+
@import "../../ui/theme.css";
|
|
2
|
+
.progress-comp { position: relative; background: var(--jsl-color-border-subtle); height: .5rem; border-radius: 999px; overflow: hidden; }
|
|
3
|
+
.progress-comp.has-label { height: 1.25rem; }
|
|
4
|
+
.progress-comp .bar { background: var(--jsl-color-accent); height: 100%; border-radius: inherit; }
|
|
5
5
|
.progress-comp .progress-label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--jsl-color-text); font: 600 .75rem/1.25rem sans-serif; text-shadow: 0 0 3px var(--jsl-color-surface); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import "../../ui/theme.css";
|
|
2
|
-
.ribbon-menu-comp { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin: 0; padding: .75rem; background: var(--jsl-color-surface-subtle); color: var(--jsl-color-text); border: 1px solid var(--jsl-color-border-subtle); border-radius: 0; box-sizing: border-box; }
|
|
3
|
-
.ribbon-menu-comp .ribbon-group { display: flex; flex-direction: column; gap: .5rem; padding-inline-end: .75rem; border-inline-end: 1px solid var(--jsl-color-border-subtle); min-width: 0; }
|
|
4
|
-
.ribbon-menu-comp .ribbon-group:last-child { border-inline-end: 0; padding-inline-end: 0; }
|
|
5
|
-
.ribbon-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem; flex: 1; }
|
|
1
|
+
@import "../../ui/theme.css";
|
|
2
|
+
.ribbon-menu-comp { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin: 0; padding: .75rem; background: var(--jsl-color-surface-subtle); color: var(--jsl-color-text); border: 1px solid var(--jsl-color-border-subtle); border-radius: 0; box-sizing: border-box; }
|
|
3
|
+
.ribbon-menu-comp .ribbon-group { display: flex; flex-direction: column; gap: .5rem; padding-inline-end: .75rem; border-inline-end: 1px solid var(--jsl-color-border-subtle); min-width: 0; }
|
|
4
|
+
.ribbon-menu-comp .ribbon-group:last-child { border-inline-end: 0; padding-inline-end: 0; }
|
|
5
|
+
.ribbon-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem; flex: 1; }
|
|
6
6
|
.ribbon-menu-comp .ribbon-legend { font-size: .6875rem; color: var(--jsl-color-text-muted); text-align: center; }
|