@xleddyl/443-components-vue 0.16.96 → 0.16.98
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/CATALOG.md +48 -39
- package/README.md +127 -38
- package/dist/components/core/FormField.vue +46 -2
- package/dist/components/core/FormField.vue.d.ts +2 -0
- package/dist/components/core/Root.vue +2 -0
- package/dist/components/core/Root.vue.d.ts +2 -0
- package/dist/components/core/types.d.ts +1 -0
- package/dist/components/data/FilterPills.vue +2 -1
- package/dist/components/data/Table.vue +3 -1
- package/dist/components/data/Table.vue.d.ts +1 -0
- package/dist/components/data/TileGrid.vue +1 -0
- package/dist/components/data/types.d.ts +1 -0
- package/dist/components/feedback/Alert.vue +13 -3
- package/dist/components/feedback/Alert.vue.d.ts +4 -4
- package/dist/components/forms/FileDropOverlay.vue +28 -0
- package/dist/components/forms/FileDropOverlay.vue.d.ts +410 -0
- package/dist/components/forms/PaletteSelect.vue.d.ts +2 -2
- package/dist/components/forms/SegmentedControl.vue +20 -1
- package/dist/components/forms/index.d.ts +1 -0
- package/dist/components/forms/index.mjs +1 -0
- package/dist/components/forms/types.d.ts +4 -1
- package/dist/components/layout/Accordion.vue +7 -2
- package/dist/components/layout/Accordion.vue.d.ts +2 -0
- package/dist/components/layout/Card.vue +47 -6
- package/dist/components/layout/Card.vue.d.ts +4 -0
- package/dist/components/layout/PageHeader.vue +5 -2
- package/dist/components/layout/PageHeader.vue.d.ts +4 -1
- package/dist/components/layout/ResizeHandle.vue +94 -0
- package/dist/components/layout/ResizeHandle.vue.d.ts +418 -0
- package/dist/components/layout/Stack.vue +3 -2
- package/dist/components/layout/Stack.vue.d.ts +2 -0
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.mjs +1 -0
- package/dist/components/layout/types.d.ts +4 -1
- package/dist/components/overlays/CommandList.vue +22 -4
- package/dist/components/overlays/ConfirmDialog.vue.d.ts +8 -8
- package/dist/components/overlays/ConfirmHost.vue.d.ts +8 -8
- package/dist/components/overlays/Popover.vue +64 -24
- package/dist/components/overlays/Popover.vue.d.ts +13 -4
- package/dist/components/overlays/types.d.ts +7 -1
- package/dist/components/templates/ListPage.vue +3 -2
- package/dist/components/templates/SettingsModal.vue.d.ts +2 -2
- package/dist/components/templates/SettingsSection.vue.d.ts +4 -0
- package/dist/components/templates/WorkspaceLayout.vue +296 -0
- package/dist/components/templates/WorkspaceLayout.vue.d.ts +455 -0
- package/dist/components/templates/index.d.ts +1 -0
- package/dist/components/templates/index.mjs +1 -0
- package/dist/components/templates/types.d.ts +32 -0
- package/dist/composables/core.d.ts +1 -0
- package/dist/composables/core.mjs +1 -0
- package/dist/composables/forms.d.ts +1 -0
- package/dist/composables/forms.mjs +1 -0
- package/dist/composables/useFieldHighlight.d.ts +8 -0
- package/dist/composables/useFieldHighlight.mjs +19 -0
- package/dist/composables/useFileDialog.d.ts +17 -0
- package/dist/composables/useFileDialog.mjs +40 -0
- package/dist/composables/usePreferences.d.ts +1 -0
- package/dist/composables/usePreferences.mjs +2 -1
- package/dist/internal/core/HighlightText.d.ts +12 -0
- package/dist/internal/core/HighlightText.mjs +30 -0
- package/dist/internal/core/env.d.ts +2 -0
- package/dist/internal/core/env.mjs +20 -1
- package/dist/internal/overlays/OverlayView.vue.d.ts +8 -8
- package/dist/locale/de.mjs +10 -0
- package/dist/locale/en.mjs +10 -0
- package/dist/locale/it.mjs +10 -0
- package/dist/locale/types.d.ts +10 -0
- package/dist/nuxt/runtime/layouts/auth.vue.d.ts +2 -0
- package/dist/nuxt/runtime/layouts/dashboard.vue.d.ts +2 -0
- package/dist/styles/base.css +13 -0
- package/dist/styles/core/form-field.css +13 -0
- package/dist/styles/core/root.css +23 -0
- package/dist/styles/data/table.css +17 -0
- package/dist/styles/data/thumbnail.css +5 -2
- package/dist/styles/data/tile-grid.css +2 -1
- package/dist/styles/design-tokens.css +4 -0
- package/dist/styles/feedback/alert.css +13 -0
- package/dist/styles/forced-colors.css +22 -1
- package/dist/styles/forms/file-drop-overlay.css +48 -0
- package/dist/styles/forms/segmented.css +36 -0
- package/dist/styles/forms.css +1 -0
- package/dist/styles/layout/accordion.css +8 -0
- package/dist/styles/layout/breadcrumbs.css +23 -0
- package/dist/styles/layout/card.css +19 -7
- package/dist/styles/layout/page-header.css +58 -0
- package/dist/styles/layout/resize-handle.css +52 -0
- package/dist/styles/layout/stack.css +5 -0
- package/dist/styles/layout.css +1 -0
- package/dist/styles/overlays/command.css +17 -0
- package/dist/styles/shared.css +8 -0
- package/dist/styles/templates/list-page.css +1 -21
- package/dist/styles/templates/workspace-layout.css +143 -0
- package/dist/styles/templates.css +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, h } from "vue";
|
|
2
|
+
export function highlightSegments(text, ranges = []) {
|
|
3
|
+
const sorted = ranges.map(([start, end]) => [Math.max(0, start), Math.min(text.length, end)]).filter(([start, end]) => end > start).sort((a, b) => a[0] - b[0]);
|
|
4
|
+
const segments = [];
|
|
5
|
+
let cursor = 0;
|
|
6
|
+
for (const [start, end] of sorted) {
|
|
7
|
+
if (end <= cursor) continue;
|
|
8
|
+
const from = Math.max(start, cursor);
|
|
9
|
+
if (from > cursor) segments.push({ text: text.slice(cursor, from), match: false });
|
|
10
|
+
segments.push({ text: text.slice(from, end), match: true });
|
|
11
|
+
cursor = end;
|
|
12
|
+
}
|
|
13
|
+
if (cursor < text.length) segments.push({ text: text.slice(cursor), match: false });
|
|
14
|
+
return segments;
|
|
15
|
+
}
|
|
16
|
+
export const HighlightText = defineComponent({
|
|
17
|
+
name: "KHighlightText",
|
|
18
|
+
props: {
|
|
19
|
+
text: { type: String, required: true },
|
|
20
|
+
ranges: { type: Array, default: void 0 }
|
|
21
|
+
},
|
|
22
|
+
setup(props) {
|
|
23
|
+
return () => {
|
|
24
|
+
if (!props.ranges?.length) return props.text;
|
|
25
|
+
return highlightSegments(props.text, props.ranges).map(
|
|
26
|
+
(segment) => segment.match ? h("mark", { class: "k-mark" }, segment.text) : segment.text
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
2
2
|
export declare const DARK_SCHEME_QUERY = "(prefers-color-scheme: dark)";
|
|
3
|
+
export declare const SHEET_QUERY = "(max-width: 640px)";
|
|
3
4
|
export declare function isClient(): boolean;
|
|
4
5
|
export declare function prefersReducedMotion(): boolean;
|
|
5
6
|
export declare function isApplePlatform(): boolean;
|
|
6
7
|
export declare function useApplePlatform(): import("vue").Ref<boolean, boolean>;
|
|
8
|
+
export declare function useMediaQuery(query: () => string | null | undefined): import("vue").Ref<boolean, boolean>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { onMounted, ref } from "vue";
|
|
1
|
+
import { onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
2
2
|
export const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
3
3
|
export const DARK_SCHEME_QUERY = "(prefers-color-scheme: dark)";
|
|
4
|
+
export const SHEET_QUERY = "(max-width: 640px)";
|
|
4
5
|
export function isClient() {
|
|
5
6
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
6
7
|
}
|
|
@@ -23,3 +24,21 @@ export function useApplePlatform() {
|
|
|
23
24
|
});
|
|
24
25
|
return apple;
|
|
25
26
|
}
|
|
27
|
+
export function useMediaQuery(query) {
|
|
28
|
+
const matches = ref(false);
|
|
29
|
+
let list = null;
|
|
30
|
+
function update() {
|
|
31
|
+
matches.value = Boolean(list?.matches);
|
|
32
|
+
}
|
|
33
|
+
function connect(value) {
|
|
34
|
+
list?.removeEventListener("change", update);
|
|
35
|
+
list = value && typeof window.matchMedia === "function" ? window.matchMedia(value) : null;
|
|
36
|
+
list?.addEventListener("change", update);
|
|
37
|
+
update();
|
|
38
|
+
}
|
|
39
|
+
onMounted(() => {
|
|
40
|
+
watch(query, connect, { immediate: true });
|
|
41
|
+
});
|
|
42
|
+
onBeforeUnmount(() => list?.removeEventListener("change", update));
|
|
43
|
+
return matches;
|
|
44
|
+
}
|
|
@@ -216,16 +216,16 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
216
216
|
sheet?: boolean;
|
|
217
217
|
tab?: import("../../index.ts").TabItem["value"];
|
|
218
218
|
onCancel?: ((payload: Event) => void) | undefined;
|
|
219
|
-
onOpen?: ((() => any) & (() => any)) | undefined;
|
|
220
|
-
backLabel?: string;
|
|
221
|
-
closeLabel?: string;
|
|
222
|
-
trail?: string[];
|
|
223
219
|
onNavigate?: (((index: number) => any) & ((index: number) => any)) | undefined;
|
|
220
|
+
trail?: string[];
|
|
224
221
|
rootClass?: unknown;
|
|
225
222
|
hideClose?: boolean;
|
|
223
|
+
closeLabel?: string;
|
|
226
224
|
beforeClose?: import("../../index.ts").DialogBeforeClose;
|
|
225
|
+
backLabel?: string;
|
|
227
226
|
guardTitle?: string;
|
|
228
227
|
guardMessage?: string;
|
|
228
|
+
onOpen?: ((() => any) & (() => any)) | undefined;
|
|
229
229
|
"onUpdate:tab"?: (((value: string | number | undefined) => any) & ((value: string | number | undefined) => any)) | undefined;
|
|
230
230
|
closedby?: import("../../index.ts").DialogClosedBy;
|
|
231
231
|
minHeight?: string;
|
|
@@ -450,16 +450,16 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
450
450
|
sheet?: boolean;
|
|
451
451
|
tab?: import("../../index.ts").TabItem["value"];
|
|
452
452
|
onCancel?: ((payload: Event) => void) | undefined;
|
|
453
|
-
onOpen?: ((() => any) & (() => any)) | undefined;
|
|
454
|
-
backLabel?: string;
|
|
455
|
-
closeLabel?: string;
|
|
456
|
-
trail?: string[];
|
|
457
453
|
onNavigate?: (((index: number) => any) & ((index: number) => any)) | undefined;
|
|
454
|
+
trail?: string[];
|
|
458
455
|
rootClass?: unknown;
|
|
459
456
|
hideClose?: boolean;
|
|
457
|
+
closeLabel?: string;
|
|
460
458
|
beforeClose?: import("../../index.ts").DialogBeforeClose;
|
|
459
|
+
backLabel?: string;
|
|
461
460
|
guardTitle?: string;
|
|
462
461
|
guardMessage?: string;
|
|
462
|
+
onOpen?: ((() => any) & (() => any)) | undefined;
|
|
463
463
|
"onUpdate:tab"?: (((value: string | number | undefined) => any) & ((value: string | number | undefined) => any)) | undefined;
|
|
464
464
|
closedby?: import("../../index.ts").DialogClosedBy;
|
|
465
465
|
minHeight?: string;
|
package/dist/locale/de.mjs
CHANGED
|
@@ -312,6 +312,9 @@ export const de = {
|
|
|
312
312
|
tabs: {
|
|
313
313
|
dot: "Erfordert Aufmerksamkeit"
|
|
314
314
|
},
|
|
315
|
+
segmentedControl: {
|
|
316
|
+
dot: "Erfordert Aufmerksamkeit"
|
|
317
|
+
},
|
|
315
318
|
sortable: {
|
|
316
319
|
moved: "{label} an Position {position} von {count} verschoben"
|
|
317
320
|
},
|
|
@@ -469,6 +472,13 @@ export const de = {
|
|
|
469
472
|
list: "Optionen",
|
|
470
473
|
results: "{count} Ergebnis verf\xFCgbar | {count} Ergebnisse verf\xFCgbar"
|
|
471
474
|
},
|
|
475
|
+
workspace: {
|
|
476
|
+
panes: "Bereiche",
|
|
477
|
+
left: "Linker Bereich",
|
|
478
|
+
main: "Inhalt",
|
|
479
|
+
right: "Rechter Bereich",
|
|
480
|
+
resize: "Gr\xF6\xDFe von {pane} \xE4ndern"
|
|
481
|
+
},
|
|
472
482
|
meter: {
|
|
473
483
|
label: "Messanzeige",
|
|
474
484
|
valueText: "{value}, {state}",
|
package/dist/locale/en.mjs
CHANGED
|
@@ -312,6 +312,9 @@ export const en = {
|
|
|
312
312
|
tabs: {
|
|
313
313
|
dot: "Needs attention"
|
|
314
314
|
},
|
|
315
|
+
segmentedControl: {
|
|
316
|
+
dot: "Needs attention"
|
|
317
|
+
},
|
|
315
318
|
sortable: {
|
|
316
319
|
moved: "{label} moved to position {position} of {count}"
|
|
317
320
|
},
|
|
@@ -469,6 +472,13 @@ export const en = {
|
|
|
469
472
|
list: "Options",
|
|
470
473
|
results: "{count} result available | {count} results available"
|
|
471
474
|
},
|
|
475
|
+
workspace: {
|
|
476
|
+
panes: "Panels",
|
|
477
|
+
left: "Left panel",
|
|
478
|
+
main: "Content",
|
|
479
|
+
right: "Right panel",
|
|
480
|
+
resize: "Resize {pane}"
|
|
481
|
+
},
|
|
472
482
|
meter: {
|
|
473
483
|
label: "Meter",
|
|
474
484
|
valueText: "{value}, {state}",
|
package/dist/locale/it.mjs
CHANGED
|
@@ -312,6 +312,9 @@ export const it = {
|
|
|
312
312
|
tabs: {
|
|
313
313
|
dot: "Richiede attenzione"
|
|
314
314
|
},
|
|
315
|
+
segmentedControl: {
|
|
316
|
+
dot: "Richiede attenzione"
|
|
317
|
+
},
|
|
315
318
|
sortable: {
|
|
316
319
|
moved: "{label} spostato in posizione {position} di {count}"
|
|
317
320
|
},
|
|
@@ -469,6 +472,13 @@ export const it = {
|
|
|
469
472
|
list: "Opzioni",
|
|
470
473
|
results: "{count} risultato disponibile | {count} risultati disponibili"
|
|
471
474
|
},
|
|
475
|
+
workspace: {
|
|
476
|
+
panes: "Pannelli",
|
|
477
|
+
left: "Pannello sinistro",
|
|
478
|
+
main: "Contenuto",
|
|
479
|
+
right: "Pannello destro",
|
|
480
|
+
resize: "Ridimensiona {pane}"
|
|
481
|
+
},
|
|
472
482
|
meter: {
|
|
473
483
|
label: "Indicatore",
|
|
474
484
|
valueText: "{value}, {state}",
|
package/dist/locale/types.d.ts
CHANGED
|
@@ -299,6 +299,9 @@ export interface KMessages {
|
|
|
299
299
|
tabs: {
|
|
300
300
|
dot: string;
|
|
301
301
|
};
|
|
302
|
+
segmentedControl: {
|
|
303
|
+
dot: string;
|
|
304
|
+
};
|
|
302
305
|
sortable: {
|
|
303
306
|
moved: string;
|
|
304
307
|
};
|
|
@@ -456,6 +459,13 @@ export interface KMessages {
|
|
|
456
459
|
list: string;
|
|
457
460
|
results: string;
|
|
458
461
|
};
|
|
462
|
+
workspace: {
|
|
463
|
+
panes: string;
|
|
464
|
+
left: string;
|
|
465
|
+
main: string;
|
|
466
|
+
right: string;
|
|
467
|
+
resize: string;
|
|
468
|
+
};
|
|
459
469
|
meter: {
|
|
460
470
|
label: string;
|
|
461
471
|
valueText: string;
|
|
@@ -11,6 +11,7 @@ declare const __VLS_base: import("vue").DefineComponent<Partial<NonNullable<{
|
|
|
11
11
|
readonly fontMono?: string | undefined;
|
|
12
12
|
readonly fontDisplay?: string | undefined;
|
|
13
13
|
readonly radiusScale?: number | undefined;
|
|
14
|
+
readonly document?: boolean | undefined;
|
|
14
15
|
readonly as?: (string | import("vue").Component) | undefined;
|
|
15
16
|
readonly inlist?: any;
|
|
16
17
|
readonly download?: any;
|
|
@@ -229,6 +230,7 @@ declare const __VLS_base: import("vue").DefineComponent<Partial<NonNullable<{
|
|
|
229
230
|
readonly fontMono?: string | undefined;
|
|
230
231
|
readonly fontDisplay?: string | undefined;
|
|
231
232
|
readonly radiusScale?: number | undefined;
|
|
233
|
+
readonly document?: boolean | undefined;
|
|
232
234
|
readonly as?: (string | import("vue").Component) | undefined;
|
|
233
235
|
readonly inlist?: any;
|
|
234
236
|
readonly download?: any;
|
|
@@ -11,6 +11,7 @@ declare const __VLS_base: import("vue").DefineComponent<Partial<NonNullable<{
|
|
|
11
11
|
readonly fontMono?: string | undefined;
|
|
12
12
|
readonly fontDisplay?: string | undefined;
|
|
13
13
|
readonly radiusScale?: number | undefined;
|
|
14
|
+
readonly document?: boolean | undefined;
|
|
14
15
|
readonly as?: (string | import("vue").Component) | undefined;
|
|
15
16
|
readonly inlist?: any;
|
|
16
17
|
readonly download?: any;
|
|
@@ -229,6 +230,7 @@ declare const __VLS_base: import("vue").DefineComponent<Partial<NonNullable<{
|
|
|
229
230
|
readonly fontMono?: string | undefined;
|
|
230
231
|
readonly fontDisplay?: string | undefined;
|
|
231
232
|
readonly radiusScale?: number | undefined;
|
|
233
|
+
readonly document?: boolean | undefined;
|
|
232
234
|
readonly as?: (string | import("vue").Component) | undefined;
|
|
233
235
|
readonly inlist?: any;
|
|
234
236
|
readonly download?: any;
|
package/dist/styles/base.css
CHANGED
|
@@ -172,6 +172,19 @@ html.k-root > body {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
@keyframes k-field-highlight {
|
|
176
|
+
0%,
|
|
177
|
+
60% {
|
|
178
|
+
background: var(--k-accent-soft);
|
|
179
|
+
box-shadow: 0 0 0 0.375rem var(--k-accent-soft);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
100% {
|
|
183
|
+
background: transparent;
|
|
184
|
+
box-shadow: 0 0 0 0.375rem transparent;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
175
188
|
@media (prefers-reduced-motion: reduce) {
|
|
176
189
|
:where(.k-root, .k-root *, .k-root *::before, .k-root *::after) {
|
|
177
190
|
animation-duration: 0.01ms !important;
|
|
@@ -62,6 +62,19 @@
|
|
|
62
62
|
animation: k-shake 320ms var(--k-ease);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
.k-form-field.is-highlighted {
|
|
66
|
+
border-radius: var(--k-radius-md);
|
|
67
|
+
animation: k-field-highlight 2400ms var(--k-ease) both;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (prefers-reduced-motion: reduce) {
|
|
71
|
+
.k-form-field.is-highlighted {
|
|
72
|
+
background: var(--k-accent-soft);
|
|
73
|
+
box-shadow: 0 0 0 0.375rem var(--k-accent-soft);
|
|
74
|
+
animation-name: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
65
78
|
.k-form-field-help {
|
|
66
79
|
--k-icon-size: 0.875rem;
|
|
67
80
|
display: inline-flex;
|
|
@@ -2,3 +2,26 @@
|
|
|
2
2
|
min-height: 100%;
|
|
3
3
|
background: var(--k-canvas);
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
.k-root.is-document {
|
|
7
|
+
min-height: 100dvh;
|
|
8
|
+
background: var(--k-canvas);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root:has(.k-root.is-document) {
|
|
12
|
+
color-scheme: light dark;
|
|
13
|
+
overscroll-behavior-y: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:root:has(.k-root.is-document[data-theme='light']) {
|
|
17
|
+
color-scheme: light;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:root:has(.k-root.is-document[data-theme='dark']) {
|
|
21
|
+
color-scheme: dark;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:root:has(.k-root.is-document) > body {
|
|
25
|
+
margin: 0;
|
|
26
|
+
overscroll-behavior-y: none;
|
|
27
|
+
}
|
|
@@ -31,6 +31,23 @@
|
|
|
31
31
|
overscroll-behavior-x: contain;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.k-table.is-fill {
|
|
35
|
+
flex: 1 1 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.k-table.is-fill > .k-table-scroll {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.k-table.is-fill .k-table-el {
|
|
44
|
+
flex: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.k-table.is-fill .k-table-el:has(> .k-table-body > .k-table-empty-row) {
|
|
48
|
+
flex: 1 0 auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
34
51
|
.k-table-scroll:focus-visible {
|
|
35
52
|
outline-offset: -2px;
|
|
36
53
|
}
|
|
@@ -196,8 +196,11 @@
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.k-thumbnail:is(:hover, :focus-within) .k-thumbnail-overlay.is-reveal,
|
|
199
|
-
.k-
|
|
200
|
-
|
|
199
|
+
:is(a[href], button, label, .k-tile-grid-item, .k-card.is-interactive, .k-thumbnail-anchor):is(
|
|
200
|
+
:hover,
|
|
201
|
+
:focus-visible,
|
|
202
|
+
:has(:focus-visible)
|
|
203
|
+
)
|
|
201
204
|
.k-thumbnail-overlay.is-reveal {
|
|
202
205
|
opacity: 1;
|
|
203
206
|
}
|
|
@@ -93,6 +93,19 @@
|
|
|
93
93
|
color: var(--k-text-toned);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
.k-alert-list {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 0.125rem;
|
|
100
|
+
margin: 0;
|
|
101
|
+
padding-inline-start: 1.125rem;
|
|
102
|
+
list-style: disc;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.k-alert-list > li::marker {
|
|
106
|
+
color: var(--k-text-dimmed);
|
|
107
|
+
}
|
|
108
|
+
|
|
96
109
|
.k-alert-description :where(a) {
|
|
97
110
|
color: inherit;
|
|
98
111
|
text-decoration: underline;
|
|
@@ -192,6 +192,16 @@
|
|
|
192
192
|
background: none;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
.k-resize-handle {
|
|
196
|
+
forced-color-adjust: none;
|
|
197
|
+
background: CanvasText;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.k-resize-handle:is(:hover, .is-dragging, :focus-visible) {
|
|
201
|
+
background: Highlight;
|
|
202
|
+
box-shadow: 0 0 0 1px Highlight;
|
|
203
|
+
}
|
|
204
|
+
|
|
195
205
|
.k-checkbox-group-filled > .k-choice-group-items {
|
|
196
206
|
border: 1px solid CanvasText;
|
|
197
207
|
}
|
|
@@ -217,7 +227,18 @@
|
|
|
217
227
|
background: Highlight;
|
|
218
228
|
}
|
|
219
229
|
|
|
220
|
-
|
|
230
|
+
.k-form-field.is-highlighted {
|
|
231
|
+
outline: 2px solid Highlight;
|
|
232
|
+
outline-offset: 0.375rem;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.k-mark {
|
|
236
|
+
forced-color-adjust: none;
|
|
237
|
+
background: Mark;
|
|
238
|
+
color: MarkText;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
:is(.k-tab-dot, .k-segmented-dot, .k-tree-invalid) {
|
|
221
242
|
forced-color-adjust: none;
|
|
222
243
|
background: CanvasText;
|
|
223
244
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.k-file-drop-overlay {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: var(--k-file-drop-overlay-inset, 0);
|
|
4
|
+
z-index: 10;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: 0.375rem;
|
|
10
|
+
padding: 1.5rem;
|
|
11
|
+
border: 1px dashed var(--k-ring);
|
|
12
|
+
border-radius: var(--k-file-drop-overlay-radius, var(--k-radius-lg));
|
|
13
|
+
background: color-mix(in oklab, var(--k-surface) 86%, transparent);
|
|
14
|
+
backdrop-filter: blur(var(--k-scrim-blur, 3px));
|
|
15
|
+
color: var(--k-text-muted);
|
|
16
|
+
text-align: center;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
animation: k-fade var(--k-duration) var(--k-ease-out) both;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.k-file-drop-overlay-icon {
|
|
22
|
+
--k-icon-size: 1.5rem;
|
|
23
|
+
display: grid;
|
|
24
|
+
place-items: center;
|
|
25
|
+
width: 3rem;
|
|
26
|
+
height: 3rem;
|
|
27
|
+
margin-bottom: 0.375rem;
|
|
28
|
+
border-radius: var(--k-radius-md);
|
|
29
|
+
background: var(--k-surface);
|
|
30
|
+
box-shadow: var(--k-shadow-raised);
|
|
31
|
+
color: var(--k-accent-text);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.k-file-drop-overlay-title {
|
|
35
|
+
max-width: 32rem;
|
|
36
|
+
font-size: 0.9375rem;
|
|
37
|
+
font-weight: var(--k-font-weight-strong, 600);
|
|
38
|
+
line-height: 1.3;
|
|
39
|
+
color: var(--k-text);
|
|
40
|
+
overflow-wrap: anywhere;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.k-file-drop-overlay-description {
|
|
44
|
+
max-width: 32rem;
|
|
45
|
+
font-size: 0.8125rem;
|
|
46
|
+
line-height: 1.4;
|
|
47
|
+
overflow-wrap: anywhere;
|
|
48
|
+
}
|
|
@@ -148,6 +148,42 @@
|
|
|
148
148
|
opacity: 0.7;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
.k-segmented-dot {
|
|
152
|
+
--k-segmented-dot-tone: var(--k-danger);
|
|
153
|
+
width: 0.4375rem;
|
|
154
|
+
height: 0.4375rem;
|
|
155
|
+
flex: none;
|
|
156
|
+
border-radius: var(--k-radius-full);
|
|
157
|
+
background: var(--k-segmented-dot-tone);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.k-segmented-item.is-icon > .k-segmented-dot {
|
|
161
|
+
position: absolute;
|
|
162
|
+
top: 0.25rem;
|
|
163
|
+
inset-inline-end: 0.25rem;
|
|
164
|
+
box-shadow: 0 0 0 2px var(--k-surface);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.k-segmented-dot-neutral {
|
|
168
|
+
--k-segmented-dot-tone: var(--k-text-dimmed);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.k-segmented-dot-accent {
|
|
172
|
+
--k-segmented-dot-tone: var(--k-accent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.k-segmented-dot-info {
|
|
176
|
+
--k-segmented-dot-tone: var(--k-info);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.k-segmented-dot-success {
|
|
180
|
+
--k-segmented-dot-tone: var(--k-success);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.k-segmented-dot-warning {
|
|
184
|
+
--k-segmented-dot-tone: var(--k-warning);
|
|
185
|
+
}
|
|
186
|
+
|
|
151
187
|
.k-form-field > .k-segmented:not(.is-block) {
|
|
152
188
|
align-self: flex-start;
|
|
153
189
|
}
|
package/dist/styles/forms.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@import './forms/date-picker.css';
|
|
12
12
|
@import './forms/calendar.css';
|
|
13
13
|
@import './forms/file-input.css';
|
|
14
|
+
@import './forms/file-drop-overlay.css';
|
|
14
15
|
@import './forms/focal-point-input.css';
|
|
15
16
|
@import './forms/color-input.css';
|
|
16
17
|
@import './forms/palette-select.css';
|
|
@@ -165,6 +165,14 @@
|
|
|
165
165
|
padding: 0;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
.k-accordion.is-divided .k-accordion-content {
|
|
169
|
+
border-top: 1px solid var(--k-line);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.k-accordion.is-divided:not(.is-flush) .k-accordion-content {
|
|
173
|
+
padding-top: 1rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
168
176
|
.k-accordion-item.is-open .k-accordion-content {
|
|
169
177
|
opacity: 1;
|
|
170
178
|
transform: none;
|
|
@@ -98,3 +98,26 @@
|
|
|
98
98
|
font-weight: inherit;
|
|
99
99
|
overflow-wrap: anywhere;
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
.k-breadcrumbs-sm .k-breadcrumbs-list {
|
|
103
|
+
gap: 0.125rem;
|
|
104
|
+
font-size: 0.75rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.k-breadcrumbs-sm .k-breadcrumbs-item {
|
|
108
|
+
--k-icon-size: 0.75rem;
|
|
109
|
+
gap: 0.125rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.k-breadcrumbs-sm :is(.k-breadcrumbs-link, .k-breadcrumbs-current) {
|
|
113
|
+
gap: 0.25rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.k-breadcrumbs-sm .k-breadcrumbs-link {
|
|
117
|
+
margin-left: -0.1875rem;
|
|
118
|
+
padding: 0 0.1875rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.k-breadcrumbs-sm .k-breadcrumbs-separator {
|
|
122
|
+
--k-icon-size: 0.625rem;
|
|
123
|
+
}
|
|
@@ -203,12 +203,12 @@
|
|
|
203
203
|
cursor: pointer;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
.k-card.is-interactive:hover {
|
|
206
|
+
.k-card.is-interactive:not(.is-disabled):hover {
|
|
207
207
|
border-color: var(--k-line-strong);
|
|
208
208
|
box-shadow: var(--k-shadow-sm);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
.k-card.is-interactive:active {
|
|
211
|
+
.k-card.is-interactive:not(.is-disabled):active {
|
|
212
212
|
scale: 0.99;
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -216,6 +216,10 @@
|
|
|
216
216
|
opacity: 0.6;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
.k-card.is-interactive.is-disabled {
|
|
220
|
+
cursor: not-allowed;
|
|
221
|
+
}
|
|
222
|
+
|
|
219
223
|
.k-card.is-selected {
|
|
220
224
|
border-color: var(--k-accent);
|
|
221
225
|
box-shadow:
|
|
@@ -230,6 +234,19 @@
|
|
|
230
234
|
var(--k-shadow-sm);
|
|
231
235
|
}
|
|
232
236
|
|
|
237
|
+
.k-card.is-fill {
|
|
238
|
+
flex: 1 1 0;
|
|
239
|
+
min-height: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.k-card.is-fill > .k-card-body {
|
|
243
|
+
display: flex;
|
|
244
|
+
flex-direction: column;
|
|
245
|
+
min-height: 0;
|
|
246
|
+
overflow: auto;
|
|
247
|
+
overscroll-behavior: contain;
|
|
248
|
+
}
|
|
249
|
+
|
|
233
250
|
.k-card.is-static {
|
|
234
251
|
animation: none;
|
|
235
252
|
}
|
|
@@ -260,11 +277,6 @@
|
|
|
260
277
|
cursor: not-allowed;
|
|
261
278
|
}
|
|
262
279
|
|
|
263
|
-
.k-card-dashed.is-disabled.is-interactive:hover {
|
|
264
|
-
border-color: var(--k-line-strong);
|
|
265
|
-
box-shadow: none;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
280
|
.k-card-dashed.is-selected,
|
|
269
281
|
.k-card-dashed.is-selected.is-interactive:hover {
|
|
270
282
|
border-style: solid;
|