@sondor-technology/sondor-components 1.0.5 → 1.0.6
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/dist/components/alert/alert.constants.d.ts +3 -0
- package/dist/components/alert/alert.constants.d.ts.map +1 -0
- package/dist/components/alert/alert.constants.js +2 -0
- package/dist/components/alert/alert.constants.js.map +1 -0
- package/dist/components/alert/alert.d.ts +4 -3
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +21 -11
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/badge/badge.constants.d.ts +3 -0
- package/dist/components/badge/badge.constants.d.ts.map +1 -0
- package/dist/components/badge/badge.constants.js +2 -0
- package/dist/components/badge/badge.constants.js.map +1 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +3 -2
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +2 -1
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/button/button.constants.d.ts +7 -0
- package/dist/components/button/button.constants.d.ts.map +1 -0
- package/dist/components/button/button.constants.js +4 -0
- package/dist/components/button/button.constants.js.map +1 -0
- package/dist/components/button/button.d.ts +8 -4
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +181 -137
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +1 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -1
- package/dist/components/button-group/button-group.js +17 -21
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/checkbox/checkbox.constants.d.ts +3 -0
- package/dist/components/checkbox/checkbox.constants.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.constants.js +2 -0
- package/dist/components/checkbox/checkbox.constants.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +5 -1
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.js +21 -5
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +7 -7
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/code-block.js +130 -66
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/content-card/content-card.d.ts.map +1 -1
- package/dist/components/content-card/content-card.js +10 -15
- package/dist/components/content-card/content-card.js.map +1 -0
- package/dist/components/divider/divider.constants.d.ts +5 -0
- package/dist/components/divider/divider.constants.d.ts.map +1 -0
- package/dist/components/divider/divider.constants.js +3 -0
- package/dist/components/divider/divider.constants.js.map +1 -0
- package/dist/components/divider/divider.d.ts +4 -2
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/divider/divider.js +18 -9
- package/dist/components/divider/divider.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +7 -4
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/drawer.js +73 -30
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/field/field.d.ts +2 -2
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/field.js +8 -9
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/footer/footer.d.ts +8 -1
- package/dist/components/footer/footer.d.ts.map +1 -1
- package/dist/components/footer/footer.js +42 -12
- package/dist/components/footer/footer.js.map +1 -0
- package/dist/components/form/form-step.js +1 -0
- package/dist/components/form/form-step.js.map +1 -0
- package/dist/components/form/form.d.ts +3 -0
- package/dist/components/form/form.d.ts.map +1 -1
- package/dist/components/form/form.js +107 -67
- package/dist/components/form/form.js.map +1 -0
- package/dist/components/grid/grid-row.d.ts +3 -3
- package/dist/components/grid/grid-row.d.ts.map +1 -1
- package/dist/components/grid/grid-row.js +36 -22
- package/dist/components/grid/grid-row.js.map +1 -0
- package/dist/components/grid/grid.d.ts +2 -2
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +5 -2
- package/dist/components/grid/grid.js.map +1 -0
- package/dist/components/icon/icon-paths.js +1 -0
- package/dist/components/icon/icon-paths.js.map +1 -0
- package/dist/components/icon/icon.js +1 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/input/input.d.ts +9 -0
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +30 -37
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/link/link.d.ts +6 -6
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/link.js +42 -19
- package/dist/components/link/link.js.map +1 -0
- package/dist/components/metadata/metadata.d.ts +3 -3
- package/dist/components/metadata/metadata.d.ts.map +1 -1
- package/dist/components/metadata/metadata.js +23 -20
- package/dist/components/metadata/metadata.js.map +1 -0
- package/dist/components/modal/modal.d.ts +4 -16
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +99 -62
- package/dist/components/modal/modal.js.map +1 -0
- package/dist/components/page-layout/page-layout.d.ts +4 -3
- package/dist/components/page-layout/page-layout.d.ts.map +1 -1
- package/dist/components/page-layout/page-layout.js +95 -68
- package/dist/components/page-layout/page-layout.js.map +1 -0
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +8 -12
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +6 -1
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.js +44 -18
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/router/router.d.ts +5 -7
- package/dist/components/router/router.d.ts.map +1 -1
- package/dist/components/router/router.js +54 -38
- package/dist/components/router/router.js.map +1 -0
- package/dist/components/select/select.d.ts +1 -3
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +14 -5
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +3 -2
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +10 -13
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/switch/switch.d.ts +12 -0
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +28 -22
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/table/data-table.d.ts +3 -25
- package/dist/components/table/data-table.d.ts.map +1 -1
- package/dist/components/table/data-table.js +211 -146
- package/dist/components/table/data-table.js.map +1 -0
- package/dist/components/table/table.d.ts +3 -3
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +39 -20
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/tab-panel.d.ts +3 -1
- package/dist/components/tabs/tab-panel.d.ts.map +1 -1
- package/dist/components/tabs/tab-panel.js +21 -11
- package/dist/components/tabs/tab-panel.js.map +1 -0
- package/dist/components/tabs/tab.d.ts +5 -1
- package/dist/components/tabs/tab.d.ts.map +1 -1
- package/dist/components/tabs/tab.js +46 -28
- package/dist/components/tabs/tab.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +4 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.js +76 -13
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +13 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/textarea/textarea.js +59 -13
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/theme-toggle/theme-toggle.constants.d.ts +3 -0
- package/dist/components/theme-toggle/theme-toggle.constants.d.ts.map +1 -0
- package/dist/components/theme-toggle/theme-toggle.constants.js +2 -0
- package/dist/components/theme-toggle/theme-toggle.constants.js.map +1 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +3 -2
- package/dist/components/theme-toggle/theme-toggle.d.ts.map +1 -1
- package/dist/components/theme-toggle/theme-toggle.js +46 -19
- package/dist/components/theme-toggle/theme-toggle.js.map +1 -0
- package/dist/components/vertical-nav/vertical-nav-group.d.ts +5 -2
- package/dist/components/vertical-nav/vertical-nav-group.d.ts.map +1 -1
- package/dist/components/vertical-nav/vertical-nav-group.js +50 -14
- package/dist/components/vertical-nav/vertical-nav-group.js.map +1 -0
- package/dist/components/vertical-nav/vertical-nav-item.d.ts +3 -2
- package/dist/components/vertical-nav/vertical-nav-item.d.ts.map +1 -1
- package/dist/components/vertical-nav/vertical-nav-item.js +30 -8
- package/dist/components/vertical-nav/vertical-nav-item.js.map +1 -0
- package/dist/styles/index.css +48 -17
- package/dist/styles/reset.js +1 -0
- package/dist/styles/reset.js.map +1 -0
- package/package.json +2 -1
- package/src/components/alert/alert.constants.ts +2 -0
- package/src/components/alert/alert.ts +24 -15
- package/src/components/badge/badge.constants.ts +2 -0
- package/src/components/badge/badge.ts +3 -4
- package/src/components/breadcrumb/breadcrumb.ts +2 -2
- package/src/components/button/button.constants.ts +8 -0
- package/src/components/button/button.ts +184 -144
- package/src/components/button-group/button-group.ts +18 -22
- package/src/components/checkbox/checkbox.constants.ts +2 -0
- package/src/components/checkbox/checkbox.ts +33 -18
- package/src/components/code-block/code-block.ts +151 -84
- package/src/components/content-card/content-card.ts +10 -16
- package/src/components/divider/divider.constants.ts +5 -0
- package/src/components/divider/divider.ts +22 -11
- package/src/components/drawer/drawer.ts +79 -34
- package/src/components/field/field.ts +9 -11
- package/src/components/footer/footer.ts +43 -12
- package/src/components/form/form.ts +120 -83
- package/src/components/grid/grid-row.ts +45 -32
- package/src/components/grid/grid.ts +7 -4
- package/src/components/input/input.ts +32 -42
- package/src/components/link/link.ts +45 -21
- package/src/components/metadata/metadata.ts +26 -24
- package/src/components/modal/modal.ts +108 -74
- package/src/components/page-layout/page-layout.ts +97 -72
- package/src/components/radio/radio.ts +8 -13
- package/src/components/radio-group/radio-group.ts +45 -21
- package/src/components/router/router.ts +73 -50
- package/src/components/select/select.ts +18 -19
- package/src/components/skeleton/skeleton.ts +14 -14
- package/src/components/switch/switch.ts +31 -25
- package/src/components/table/data-table.ts +248 -177
- package/src/components/table/table.ts +52 -29
- package/src/components/tabs/tab-panel.ts +25 -13
- package/src/components/tabs/tab.ts +58 -33
- package/src/components/tabs/tabs.ts +77 -15
- package/src/components/textarea/textarea.ts +63 -15
- package/src/components/theme-toggle/theme-toggle.constants.ts +2 -0
- package/src/components/theme-toggle/theme-toggle.ts +47 -22
- package/src/components/vertical-nav/vertical-nav-group.ts +57 -18
- package/src/components/vertical-nav/vertical-nav-item.ts +35 -12
- package/src/styles/globals.css +27 -4
- package/src/styles/theme.css +38 -32
- package/tsconfig.json +2 -1
- package/dist/components/card/card.d.ts +0 -11
- package/dist/components/card/card.d.ts.map +0 -1
- package/dist/components/card/card.js +0 -54
- package/src/components/card/card.ts +0 -53
|
@@ -4,34 +4,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { LitElement, html, css, nothing } from
|
|
8
|
-
import { customElement, property, query } from
|
|
9
|
-
import { resetStyles } from
|
|
7
|
+
import { LitElement, html, css, nothing } from "lit";
|
|
8
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
10
|
let StModal = class StModal extends LitElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
|
-
/**
|
|
14
|
-
* Controls whether the modal is open.
|
|
15
|
-
*/
|
|
16
13
|
this.open = false;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
this.heading = '';
|
|
21
|
-
/**
|
|
22
|
-
* Size of the modal (sm, md, lg, xl, xxl).
|
|
23
|
-
*/
|
|
24
|
-
this.size = 'md';
|
|
25
|
-
/**
|
|
26
|
-
* If true, the modal cannot be closed by clicking the backdrop or pressing Esc.
|
|
27
|
-
*/
|
|
14
|
+
this.heading = "";
|
|
15
|
+
this.size = "md";
|
|
28
16
|
this.static = false;
|
|
29
17
|
this.isClosing = false;
|
|
30
18
|
}
|
|
19
|
+
// 🚀 FIX: Typed strictly and calls super
|
|
31
20
|
updated(changedProperties) {
|
|
32
|
-
|
|
21
|
+
super.updated(changedProperties);
|
|
22
|
+
if (changedProperties.has("open")) {
|
|
33
23
|
if (this.open) {
|
|
34
|
-
this.dialogEl.classList.remove(
|
|
24
|
+
this.dialogEl.classList.remove("closing");
|
|
35
25
|
this.isClosing = false;
|
|
36
26
|
if (!this.dialogEl.open) {
|
|
37
27
|
this.dialogEl.showModal();
|
|
@@ -46,20 +36,20 @@ let StModal = class StModal extends LitElement {
|
|
|
46
36
|
if (this.isClosing)
|
|
47
37
|
return;
|
|
48
38
|
this.isClosing = true;
|
|
49
|
-
this.dialogEl.classList.add(
|
|
39
|
+
this.dialogEl.classList.add("closing");
|
|
50
40
|
const onAnimationEnd = () => {
|
|
51
|
-
this.dialogEl.
|
|
52
|
-
this.dialogEl.classList.remove('closing');
|
|
41
|
+
this.dialogEl.classList.remove("closing");
|
|
53
42
|
this.isClosing = false;
|
|
54
43
|
if (!this.open) {
|
|
55
44
|
this.dialogEl.close();
|
|
56
45
|
}
|
|
57
46
|
};
|
|
58
|
-
|
|
47
|
+
// 🚀 FIX: Prevent listener stacking on rapid toggles
|
|
48
|
+
this.dialogEl.addEventListener("animationend", onAnimationEnd, { once: true });
|
|
59
49
|
}
|
|
60
50
|
handleClose() {
|
|
61
51
|
this.open = false;
|
|
62
|
-
this.dispatchEvent(new CustomEvent(
|
|
52
|
+
this.dispatchEvent(new CustomEvent("st-close", { bubbles: true, composed: true }));
|
|
63
53
|
}
|
|
64
54
|
handleCancel(e) {
|
|
65
55
|
e.preventDefault();
|
|
@@ -70,7 +60,7 @@ let StModal = class StModal extends LitElement {
|
|
|
70
60
|
onDialogClose() {
|
|
71
61
|
if (this.open) {
|
|
72
62
|
this.open = false;
|
|
73
|
-
this.dispatchEvent(new CustomEvent(
|
|
63
|
+
this.dispatchEvent(new CustomEvent("st-close", { bubbles: true, composed: true }));
|
|
74
64
|
}
|
|
75
65
|
}
|
|
76
66
|
handleBackdropClick(e) {
|
|
@@ -87,28 +77,43 @@ let StModal = class StModal extends LitElement {
|
|
|
87
77
|
}
|
|
88
78
|
render() {
|
|
89
79
|
return html `
|
|
90
|
-
<dialog
|
|
80
|
+
<dialog
|
|
91
81
|
class="size-${this.size}"
|
|
92
|
-
aria-labelledby=${this.heading ?
|
|
93
|
-
@cancel=${this.handleCancel}
|
|
94
|
-
@click=${this.handleBackdropClick}
|
|
82
|
+
aria-labelledby=${this.heading ? "modal-heading" : nothing}
|
|
83
|
+
@cancel=${this.handleCancel}
|
|
84
|
+
@click=${this.handleBackdropClick}
|
|
95
85
|
@close=${this.onDialogClose}
|
|
96
86
|
>
|
|
97
|
-
|
|
87
|
+
<!-- 🚀 FIX: Removed @click=stopPropagation from all inner wrappers -->
|
|
88
|
+
<div class="modal-header">
|
|
98
89
|
<slot name="header">
|
|
99
90
|
<h3 class="modal-title" id="modal-heading">${this.heading}</h3>
|
|
100
91
|
</slot>
|
|
101
|
-
|
|
102
|
-
${!this.static
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
92
|
+
|
|
93
|
+
${!this.static
|
|
94
|
+
? html `
|
|
95
|
+
<button class="close-btn" @click=${this.handleClose} aria-label="Close modal">
|
|
96
|
+
<svg
|
|
97
|
+
width="18"
|
|
98
|
+
height="18"
|
|
99
|
+
viewBox="0 0 24 24"
|
|
100
|
+
fill="none"
|
|
101
|
+
stroke="currentColor"
|
|
102
|
+
stroke-width="2"
|
|
103
|
+
stroke-linecap="round"
|
|
104
|
+
stroke-linejoin="round"
|
|
105
|
+
>
|
|
106
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
107
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
108
|
+
</svg>
|
|
109
|
+
</button>
|
|
110
|
+
`
|
|
111
|
+
: nothing}
|
|
107
112
|
</div>
|
|
108
|
-
<div class="modal-body"
|
|
113
|
+
<div class="modal-body">
|
|
109
114
|
<slot></slot>
|
|
110
115
|
</div>
|
|
111
|
-
<div class="modal-footer"
|
|
116
|
+
<div class="modal-footer">
|
|
112
117
|
<slot name="footer"></slot>
|
|
113
118
|
</div>
|
|
114
119
|
</dialog>
|
|
@@ -128,43 +133,72 @@ StModal.styles = [
|
|
|
128
133
|
border-radius: var(--st-radius-lg, 0.5rem);
|
|
129
134
|
background-color: var(--st-color-surface);
|
|
130
135
|
color: var(--st-color-text);
|
|
131
|
-
|
|
132
|
-
/* Responsive width calculation */
|
|
136
|
+
|
|
133
137
|
width: calc(100% - 2rem);
|
|
134
138
|
margin: auto;
|
|
135
|
-
|
|
136
|
-
box-shadow:
|
|
139
|
+
|
|
140
|
+
box-shadow:
|
|
141
|
+
0 20px 25px -5px rgb(0 0 0 / 0.1),
|
|
142
|
+
0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
137
143
|
font-family: var(--st-font-family, inherit);
|
|
138
144
|
}
|
|
139
145
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
dialog.size-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
dialog.size-sm {
|
|
147
|
+
max-width: 400px;
|
|
148
|
+
}
|
|
149
|
+
dialog.size-md {
|
|
150
|
+
max-width: 500px;
|
|
151
|
+
}
|
|
152
|
+
dialog.size-lg {
|
|
153
|
+
max-width: 800px;
|
|
154
|
+
}
|
|
155
|
+
dialog.size-xl {
|
|
156
|
+
max-width: 1024px;
|
|
157
|
+
}
|
|
158
|
+
dialog.size-xxl {
|
|
159
|
+
max-width: 1280px;
|
|
160
|
+
}
|
|
146
161
|
|
|
147
162
|
dialog::backdrop {
|
|
148
163
|
background-color: rgba(0, 0, 0, 0.5);
|
|
149
164
|
backdrop-filter: blur(2px);
|
|
150
165
|
}
|
|
151
166
|
|
|
152
|
-
/* Animations */
|
|
153
167
|
@keyframes fade-in {
|
|
154
|
-
from {
|
|
155
|
-
|
|
168
|
+
from {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
171
|
+
to {
|
|
172
|
+
opacity: 1;
|
|
173
|
+
}
|
|
156
174
|
}
|
|
157
175
|
@keyframes fade-out {
|
|
158
|
-
from {
|
|
159
|
-
|
|
176
|
+
from {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
}
|
|
179
|
+
to {
|
|
180
|
+
opacity: 0;
|
|
181
|
+
}
|
|
160
182
|
}
|
|
161
183
|
@keyframes slide-up {
|
|
162
|
-
from {
|
|
163
|
-
|
|
184
|
+
from {
|
|
185
|
+
opacity: 0;
|
|
186
|
+
transform: translateY(20px) scale(0.95);
|
|
187
|
+
}
|
|
188
|
+
to {
|
|
189
|
+
opacity: 1;
|
|
190
|
+
transform: translateY(0) scale(1);
|
|
191
|
+
}
|
|
164
192
|
}
|
|
165
193
|
@keyframes slide-down {
|
|
166
|
-
from {
|
|
167
|
-
|
|
194
|
+
from {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
transform: translateY(0) scale(1);
|
|
197
|
+
}
|
|
198
|
+
to {
|
|
199
|
+
opacity: 0;
|
|
200
|
+
transform: translateY(20px) scale(0.95);
|
|
201
|
+
}
|
|
168
202
|
}
|
|
169
203
|
|
|
170
204
|
dialog[open] {
|
|
@@ -173,7 +207,7 @@ StModal.styles = [
|
|
|
173
207
|
dialog[open]::backdrop {
|
|
174
208
|
animation: fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
175
209
|
}
|
|
176
|
-
|
|
210
|
+
|
|
177
211
|
dialog.closing {
|
|
178
212
|
animation: slide-down 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
179
213
|
}
|
|
@@ -205,7 +239,9 @@ StModal.styles = [
|
|
|
205
239
|
align-items: center;
|
|
206
240
|
justify-content: center;
|
|
207
241
|
border-radius: var(--st-radius-sm);
|
|
208
|
-
transition:
|
|
242
|
+
transition:
|
|
243
|
+
color 0.2s,
|
|
244
|
+
background-color 0.2s;
|
|
209
245
|
}
|
|
210
246
|
|
|
211
247
|
.close-btn:hover {
|
|
@@ -228,7 +264,7 @@ StModal.styles = [
|
|
|
228
264
|
border-top: 1px solid var(--st-color-border);
|
|
229
265
|
background-color: var(--st-color-surface-muted, #f8fafc);
|
|
230
266
|
}
|
|
231
|
-
|
|
267
|
+
`,
|
|
232
268
|
];
|
|
233
269
|
__decorate([
|
|
234
270
|
property({ type: Boolean, reflect: true })
|
|
@@ -243,9 +279,10 @@ __decorate([
|
|
|
243
279
|
property({ type: Boolean })
|
|
244
280
|
], StModal.prototype, "static", void 0);
|
|
245
281
|
__decorate([
|
|
246
|
-
query(
|
|
282
|
+
query("dialog")
|
|
247
283
|
], StModal.prototype, "dialogEl", void 0);
|
|
248
284
|
StModal = __decorate([
|
|
249
|
-
customElement(
|
|
285
|
+
customElement("st-modal")
|
|
250
286
|
], StModal);
|
|
251
287
|
export { StModal };
|
|
288
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/components/modal/modal.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,OAAO,EAAC,MAAM,KAAK,CAAC;AACnE,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAG3C,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAAhC;;QACqC,SAAI,GAAG,KAAK,CAAC;QAC7B,YAAO,GAAG,EAAE,CAAC;QACb,SAAI,GAAsC,IAAI,CAAC;QAC9C,WAAM,GAAG,KAAK,CAAC;Q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AAI,CAAC,YAAY;iBAClB,IAAI,CAAC,mBAAmB;iBACxB,IAAI,CAAC,aAAa;;;;;yDAKsB,IAAI,CAAC,OAAO;;;YAGzD,CAAC,IAAI,CAAC,MAAM;YACZ,CAAC,CAAC,IAAI,CAAA;mDACiC,IAAI,CAAC,WAAW;;;;;;;;;;;;;;;eAepD;YACH,CAAC,CAAC,OAAO;;;;;;;;;KAShB,CAAC;IACJ,CAAC;CACF,CAAA;AAnQQ,cAAM,GAAG;IACd,WAAW;IACX,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8IF;CACF,AAjJY,CAiJX;AA1JwC;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;qCAAc;AAC7B;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;wCAAc;AACb;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;qCAAgD;AAC9C;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;uCAAgB;AAEjB;IAAxB,KAAK,CAAC,QAAQ,CAAC;yCAAsC;AAN3C,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CA6QnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from
|
|
2
|
-
export type LayoutVariant =
|
|
1
|
+
import { LitElement, PropertyValues } from "lit";
|
|
2
|
+
export type LayoutVariant = "app-shell" | "content-sidebar" | "single-column" | "three-column";
|
|
3
3
|
export declare class StPageLayout extends LitElement {
|
|
4
4
|
/**
|
|
5
5
|
* Defines the structural layout variant to render.
|
|
@@ -21,6 +21,7 @@ export declare class StPageLayout extends LitElement {
|
|
|
21
21
|
* When true, expands the main content area to fill 100% of the available width between sidebars.
|
|
22
22
|
*/
|
|
23
23
|
fillMain: boolean;
|
|
24
|
+
clearFooterPadding: boolean;
|
|
24
25
|
private _mobileMenuOpen;
|
|
25
26
|
private _touchStartX;
|
|
26
27
|
private _currentTranslateX;
|
|
@@ -40,7 +41,7 @@ export declare class StPageLayout extends LitElement {
|
|
|
40
41
|
}
|
|
41
42
|
declare global {
|
|
42
43
|
interface HTMLElementTagNameMap {
|
|
43
|
-
|
|
44
|
+
"st-page-layout": StPageLayout;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
//# sourceMappingURL=page-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout.d.ts","sourceRoot":"","sources":["../../../src/components/page-layout/page-layout.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"page-layout.d.ts","sourceRoot":"","sources":["../../../src/components/page-layout/page-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAa,cAAc,EAAC,MAAM,KAAK,CAAC;AAI1D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,iBAAiB,GAAG,eAAe,GAAG,cAAc,CAAC;AAE/F,qBACa,YAAa,SAAQ,UAAU;IAC1C;;OAEG;IAEH,OAAO,EAAE,aAAa,CAAmB;IAEzC;;OAEG;IAEH,YAAY,SAAM;IAElB;;OAEG;IAEH,iBAAiB,SAAM;IAEvB;;OAEG;IAEH,YAAY,SAAM;IAElB;;OAEG;IAEH,QAAQ,UAAS;IAGjB,kBAAkB,UAAS;IAG3B,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,kBAAkB,CAAK;IAC/B,OAAO,CAAC,WAAW,CAAS;IAEnB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,QA0BvD;IAED,OAAO,CAAC,iBAAiB,CAEvB;IAEF,OAAO,CAAC,gBAAgB,CAEtB;IAGF,OAAO,CAAC,eAAe,CAUrB;IAEF,OAAO,CAAC,iBAAiB,CAMvB;IAEF,OAAO,CAAC,gBAAgB,CAUtB;IAEF,OAAO,CAAC,eAAe,CAarB;IAEF,OAAO,CAAC,eAAe,CAIrB;IAEF,iBAAiB,SAGhB;IAED,oBAAoB,SAGnB;IAED,MAAM,CAAC,MAAM,4BA4ZX;IAEF,MAAM,yCAgKL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|