@svadmin/ui 0.127.0 → 0.129.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/dist/app.css +210 -64
- package/dist/app.theme.css +210 -64
- package/dist/components/AboutSettings.svelte +1 -1
- package/dist/components/AppFooter.svelte +1 -1
- package/dist/components/BoundRecordDetailDrawer.svelte +1 -1
- package/dist/components/CodeEditor.svelte +1 -1
- package/dist/components/ColorPicker.svelte +2 -2
- package/dist/components/ComboboxField.svelte +15 -8
- package/dist/components/CommandPalette.svelte +16 -5
- package/dist/components/FieldRenderer.svelte +2 -2
- package/dist/components/FileUpload.svelte +11 -2
- package/dist/components/FileUpload.svelte.d.ts +2 -0
- package/dist/components/FloatButton.svelte +1 -1
- package/dist/components/JsonEditor.svelte +1 -1
- package/dist/components/ListPagination.svelte +19 -12
- package/dist/components/Menu.svelte +6 -6
- package/dist/components/NotificationHost.svelte +1 -1
- package/dist/components/PhoneInput.svelte +1 -1
- package/dist/components/RadioGroup.svelte +9 -1
- package/dist/components/Rate.svelte +2 -2
- package/dist/components/RelationPicker.svelte +2 -2
- package/dist/components/ResizableGrid.svelte +1 -1
- package/dist/components/ResizeBox.svelte +1 -1
- package/dist/components/SegmentedControl.svelte +2 -2
- package/dist/components/Space.svelte +19 -3
- package/dist/components/Space.svelte.d.ts +6 -1
- package/dist/components/Steps.svelte +12 -11
- package/dist/components/SvarDataGrid.svelte +1 -1
- package/dist/components/SvarResourceTableView.svelte +3 -3
- package/dist/components/Tag.svelte +5 -4
- package/dist/components/TagsInput.svelte +2 -2
- package/dist/components/Tour.svelte +1 -1
- package/dist/components/Tree.svelte +1 -1
- package/dist/components/TreeSelect.svelte +2 -2
- package/dist/components/TypographyEllipsis.svelte +1 -1
- package/dist/components/TypographyText.svelte +2 -2
- package/dist/components/ViewModeToggle.svelte +1 -1
- package/dist/components/ui/alert/alert.svelte +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte +10 -2
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +1 -0
- package/dist/components/ui/select/select.svelte +6 -1
- package/dist/components/ui/select/select.svelte.d.ts +4 -1
- package/dist/components/ui/switch/switch.svelte +11 -2
- package/dist/components/ui/switch/switch.svelte.d.ts +2 -0
- package/dist/components/ui/textarea/textarea.svelte +61 -1
- package/dist/components/ui/textarea/textarea.svelte.d.ts +7 -1
- package/dist/components/ui/tooltip/tooltip-content.svelte +5 -1
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +1 -0
- package/dist/components/ui/tooltip/tooltip-context.svelte.js +1 -1
- package/dist/copy-format.d.ts +1 -1
- package/dist/copy-format.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications.svelte.js +1 -1
- package/dist/styles/recipes.css +4 -4
- package/package.json +4 -4
|
@@ -4,19 +4,27 @@
|
|
|
4
4
|
import type { HTMLLiAttributes } from 'svelte/elements';
|
|
5
5
|
import { ChevronRight } from '@lucide/svelte';
|
|
6
6
|
|
|
7
|
-
let {
|
|
7
|
+
let {
|
|
8
|
+
class: className,
|
|
9
|
+
children,
|
|
10
|
+
separator = 'slash',
|
|
11
|
+
...restProps
|
|
12
|
+
}: HTMLLiAttributes & { children?: Snippet; separator?: 'slash' | 'arrow' } = $props();
|
|
8
13
|
</script>
|
|
9
14
|
|
|
10
15
|
<li
|
|
11
16
|
role="presentation"
|
|
12
17
|
aria-hidden="true"
|
|
13
18
|
data-slot="breadcrumb-separator"
|
|
19
|
+
data-separator={separator}
|
|
14
20
|
class={cn("svadmin-breadcrumb-separator", className)}
|
|
15
21
|
{...restProps}
|
|
16
22
|
>
|
|
17
23
|
{#if children}
|
|
18
24
|
{@render children()}
|
|
19
|
-
{:else}
|
|
25
|
+
{:else if separator === 'arrow'}
|
|
20
26
|
<ChevronRight class="svadmin-breadcrumb-icon" />
|
|
27
|
+
{:else}
|
|
28
|
+
<span class="svadmin-breadcrumb-slash">/</span>
|
|
21
29
|
{/if}
|
|
22
30
|
</li>
|
|
@@ -2,6 +2,7 @@ import type { Snippet } from 'svelte';
|
|
|
2
2
|
import type { HTMLLiAttributes } from 'svelte/elements';
|
|
3
3
|
type $$ComponentProps = HTMLLiAttributes & {
|
|
4
4
|
children?: Snippet;
|
|
5
|
+
separator?: 'slash' | 'arrow';
|
|
5
6
|
};
|
|
6
7
|
declare const BreadcrumbSeparator: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
7
8
|
type BreadcrumbSeparator = ReturnType<typeof BreadcrumbSeparator>;
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
// Use HTMLElement instead of HTMLSelectElement to avoid TS error:
|
|
7
7
|
// HTMLSelectElement.remove() returns void, incompatible with HTMLElement's Element return
|
|
8
|
+
type SelectSize = "mini" | "small" | "default" | "large" | "compact";
|
|
8
9
|
type Props = Omit<WithElementRef<HTMLSelectAttributes, HTMLElement>, "size"> & {
|
|
9
10
|
placeholder?: string;
|
|
10
|
-
size?:
|
|
11
|
+
size?: SelectSize;
|
|
12
|
+
/** 无边框选择。和高度尺寸分开。 */
|
|
13
|
+
borderless?: boolean;
|
|
11
14
|
};
|
|
12
15
|
|
|
13
16
|
let {
|
|
@@ -16,6 +19,7 @@
|
|
|
16
19
|
class: className,
|
|
17
20
|
placeholder,
|
|
18
21
|
size: sizeProp,
|
|
22
|
+
borderless = false,
|
|
19
23
|
children,
|
|
20
24
|
...restProps
|
|
21
25
|
}: Props = $props();
|
|
@@ -28,6 +32,7 @@
|
|
|
28
32
|
bind:this={ref}
|
|
29
33
|
data-slot="select"
|
|
30
34
|
data-size={size}
|
|
35
|
+
data-select-type={borderless ? "borderless" : "default"}
|
|
31
36
|
class={cn(
|
|
32
37
|
"svadmin-select",
|
|
33
38
|
className
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type WithElementRef } from "../../../utils.js";
|
|
2
2
|
import type { HTMLSelectAttributes } from "svelte/elements";
|
|
3
|
+
type SelectSize = "mini" | "small" | "default" | "large" | "compact";
|
|
3
4
|
type Props = Omit<WithElementRef<HTMLSelectAttributes, HTMLElement>, "size"> & {
|
|
4
5
|
placeholder?: string;
|
|
5
|
-
size?:
|
|
6
|
+
size?: SelectSize;
|
|
7
|
+
/** 无边框选择。和高度尺寸分开。 */
|
|
8
|
+
borderless?: boolean;
|
|
6
9
|
};
|
|
7
10
|
declare const Select: import("svelte").Component<Props, {}, "value" | "ref">;
|
|
8
11
|
type Select = ReturnType<typeof Select>;
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
type Props = WithElementRef<HTMLButtonAttributes, HTMLButtonElement> & {
|
|
6
6
|
checked?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
size?: "default" | "small";
|
|
8
10
|
onCheckedChange?: (checked: boolean) => void;
|
|
9
11
|
};
|
|
10
12
|
|
|
@@ -12,13 +14,17 @@
|
|
|
12
14
|
ref = $bindable(null),
|
|
13
15
|
checked = $bindable(false),
|
|
14
16
|
disabled = false,
|
|
17
|
+
loading = false,
|
|
18
|
+
size = "default",
|
|
15
19
|
onCheckedChange,
|
|
16
20
|
class: className,
|
|
17
21
|
...restProps
|
|
18
22
|
}: Props = $props();
|
|
19
23
|
|
|
24
|
+
const inactive = $derived(disabled || loading);
|
|
25
|
+
|
|
20
26
|
function toggle() {
|
|
21
|
-
if (
|
|
27
|
+
if (inactive) return;
|
|
22
28
|
checked = !checked;
|
|
23
29
|
onCheckedChange?.(checked);
|
|
24
30
|
}
|
|
@@ -29,9 +35,12 @@
|
|
|
29
35
|
type="button"
|
|
30
36
|
role="switch"
|
|
31
37
|
aria-checked={checked}
|
|
38
|
+
aria-busy={loading ? "true" : undefined}
|
|
32
39
|
data-state={checked ? "checked" : "unchecked"}
|
|
33
40
|
data-slot="switch"
|
|
34
|
-
{
|
|
41
|
+
data-size={size}
|
|
42
|
+
data-loading={loading ? "true" : undefined}
|
|
43
|
+
disabled={inactive}
|
|
35
44
|
class={cn("svadmin-switch", className)}
|
|
36
45
|
onclick={toggle}
|
|
37
46
|
{...restProps}
|
|
@@ -3,6 +3,8 @@ import type { HTMLButtonAttributes } from "svelte/elements";
|
|
|
3
3
|
type Props = WithElementRef<HTMLButtonAttributes, HTMLButtonElement> & {
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
size?: "default" | "small";
|
|
6
8
|
onCheckedChange?: (checked: boolean) => void;
|
|
7
9
|
};
|
|
8
10
|
declare const Switch: import("svelte").Component<Props, {}, "ref" | "checked">;
|
|
@@ -3,20 +3,80 @@
|
|
|
3
3
|
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
4
|
import { textareaRecipe as uiTextarea } from "../../../recipes.js";
|
|
5
5
|
|
|
6
|
-
type
|
|
6
|
+
type TextareaStatus = "success" | "error" | "loading";
|
|
7
|
+
type TextareaState = "default" | "focus" | "selected" | "complete" | "disabled" | "loading" | "success" | "error";
|
|
8
|
+
|
|
9
|
+
type Props = WithElementRef<Omit<HTMLTextareaAttributes, "onfocus" | "onblur" | "onselect">> & {
|
|
10
|
+
status?: TextareaStatus | undefined;
|
|
11
|
+
onfocus?: HTMLTextareaAttributes["onfocus"];
|
|
12
|
+
onblur?: HTMLTextareaAttributes["onblur"];
|
|
13
|
+
onselect?: HTMLTextareaAttributes["onselect"];
|
|
14
|
+
};
|
|
7
15
|
|
|
8
16
|
let {
|
|
9
17
|
ref = $bindable(null),
|
|
10
18
|
value = $bindable(),
|
|
19
|
+
disabled,
|
|
20
|
+
status,
|
|
11
21
|
class: className,
|
|
22
|
+
"aria-invalid": ariaInvalid,
|
|
23
|
+
onfocus,
|
|
24
|
+
onblur,
|
|
25
|
+
onselect,
|
|
12
26
|
...restProps
|
|
13
27
|
}: Props = $props();
|
|
28
|
+
|
|
29
|
+
let focused = $state(false);
|
|
30
|
+
let textSelected = $state(false);
|
|
31
|
+
|
|
32
|
+
function readSelected(node: EventTarget | null): boolean {
|
|
33
|
+
if (!(node instanceof HTMLTextAreaElement)) return false;
|
|
34
|
+
if (node.selectionStart == null || node.selectionEnd == null) return false;
|
|
35
|
+
return node.selectionStart !== node.selectionEnd;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const filled = $derived(value != null && String(value).length > 0);
|
|
39
|
+
|
|
40
|
+
const inputState = $derived.by((): TextareaState => {
|
|
41
|
+
if (disabled) return "disabled";
|
|
42
|
+
if (status === "loading") return "loading";
|
|
43
|
+
if (status === "error" || ariaInvalid === true || ariaInvalid === "true") return "error";
|
|
44
|
+
if (status === "success") return "success";
|
|
45
|
+
if (focused && textSelected) return "selected";
|
|
46
|
+
if (focused) return "focus";
|
|
47
|
+
if (filled) return "complete";
|
|
48
|
+
return "default";
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
function handleFocus(event: FocusEvent & { currentTarget: EventTarget & HTMLTextAreaElement }) {
|
|
52
|
+
focused = true;
|
|
53
|
+
textSelected = readSelected(event.currentTarget);
|
|
54
|
+
onfocus?.(event);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function handleBlur(event: FocusEvent & { currentTarget: EventTarget & HTMLTextAreaElement }) {
|
|
58
|
+
focused = false;
|
|
59
|
+
textSelected = false;
|
|
60
|
+
onblur?.(event);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function handleSelect(event: Event & { currentTarget: EventTarget & HTMLTextAreaElement }) {
|
|
64
|
+
textSelected = readSelected(event.currentTarget);
|
|
65
|
+
onselect?.(event);
|
|
66
|
+
}
|
|
14
67
|
</script>
|
|
15
68
|
|
|
16
69
|
<textarea
|
|
17
70
|
bind:this={ref}
|
|
18
71
|
data-slot="textarea"
|
|
72
|
+
data-input-state={inputState}
|
|
73
|
+
aria-invalid={ariaInvalid}
|
|
74
|
+
aria-busy={inputState === "loading" ? "true" : undefined}
|
|
19
75
|
class={cn(uiTextarea().root, className)}
|
|
76
|
+
{disabled}
|
|
20
77
|
bind:value
|
|
21
78
|
{...restProps}
|
|
79
|
+
onfocus={handleFocus}
|
|
80
|
+
onblur={handleBlur}
|
|
81
|
+
onselect={handleSelect}
|
|
22
82
|
></textarea>
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { HTMLTextareaAttributes } from "svelte/elements";
|
|
2
2
|
import { type WithElementRef } from "../../../utils.js";
|
|
3
|
-
type
|
|
3
|
+
type TextareaStatus = "success" | "error" | "loading";
|
|
4
|
+
type Props = WithElementRef<Omit<HTMLTextareaAttributes, "onfocus" | "onblur" | "onselect">> & {
|
|
5
|
+
status?: TextareaStatus | undefined;
|
|
6
|
+
onfocus?: HTMLTextareaAttributes["onfocus"];
|
|
7
|
+
onblur?: HTMLTextareaAttributes["onblur"];
|
|
8
|
+
onselect?: HTMLTextareaAttributes["onselect"];
|
|
9
|
+
};
|
|
4
10
|
declare const Textarea: import("svelte").Component<Props, {}, "value" | "ref">;
|
|
5
11
|
type Textarea = ReturnType<typeof Textarea>;
|
|
6
12
|
export default Textarea;
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
child?: Snippet<[TooltipContentChildProps]>;
|
|
72
72
|
arrowClasses?: string;
|
|
73
73
|
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof TooltipPortal>>;
|
|
74
|
+
size?: "default" | "mini";
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
let {
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
child,
|
|
106
107
|
arrowClasses,
|
|
107
108
|
portalProps,
|
|
109
|
+
size = "default",
|
|
108
110
|
...domProps
|
|
109
111
|
}: TooltipContentProps = $props();
|
|
110
112
|
|
|
@@ -136,7 +138,8 @@
|
|
|
136
138
|
);
|
|
137
139
|
const contentClass = $derived(
|
|
138
140
|
cn(
|
|
139
|
-
"animate-in fade-in-0 zoom-in-95 inline-flex items-center gap-1.5 rounded-
|
|
141
|
+
"animate-in fade-in-0 zoom-in-95 inline-flex items-center gap-1.5 rounded-sm px-3 text-sm leading-[1.5715] has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm bg-foreground text-background shadow-md dark:bg-card dark:text-foreground dark:border dark:border-border z-50 w-fit max-w-xs",
|
|
142
|
+
size === "mini" ? "min-h-[30px] py-1" : "min-h-[38px] py-2",
|
|
140
143
|
className
|
|
141
144
|
)
|
|
142
145
|
);
|
|
@@ -183,6 +186,7 @@
|
|
|
183
186
|
id: contentId,
|
|
184
187
|
role: "tooltip",
|
|
185
188
|
"data-slot": "tooltip-content",
|
|
189
|
+
"data-size": size,
|
|
186
190
|
"data-state": tooltip.open ? "instant-open" : "closed",
|
|
187
191
|
"data-starting-style": tooltip.presenceStatus === "starting" ? "" : undefined,
|
|
188
192
|
"data-ending-style": tooltip.presenceStatus === "ending" ? "" : undefined,
|
|
@@ -44,6 +44,7 @@ type TooltipContentProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "cl
|
|
|
44
44
|
child?: Snippet<[TooltipContentChildProps]>;
|
|
45
45
|
arrowClasses?: string;
|
|
46
46
|
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof TooltipPortal>>;
|
|
47
|
+
size?: "default" | "mini";
|
|
47
48
|
};
|
|
48
49
|
declare const TooltipContent: import("svelte").Component<TooltipContentProps, {}, "ref">;
|
|
49
50
|
type TooltipContent = ReturnType<typeof TooltipContent>;
|
package/dist/copy-format.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminNumber, formatAdminPercent, formatAdminTime, spaceCjkLatin, } from '@svadmin/core/copy-format';
|
|
1
|
+
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminEmDash, formatAdminEnglishPunctuation, formatAdminLessThanOrEqual, formatAdminNumber, formatAdminNumericRange, formatAdminPercent, formatAdminTime, spaceCjkLatin, } from '@svadmin/core/copy-format';
|
|
2
2
|
export type { AdminCurrencyOptions, AdminDateOptions, AdminNumberOptions, AdminPercentOptions, AdminTimeOptions, } from '@svadmin/core/copy-format';
|
package/dist/copy-format.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminNumber, formatAdminPercent, formatAdminTime, spaceCjkLatin, } from '@svadmin/core/copy-format';
|
|
1
|
+
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminEmDash, formatAdminEnglishPunctuation, formatAdminLessThanOrEqual, formatAdminNumber, formatAdminNumericRange, formatAdminPercent, formatAdminTime, spaceCjkLatin, } from '@svadmin/core/copy-format';
|
package/dist/index.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ export { default as NumberInput } from './components/NumberInput.svelte';
|
|
|
191
191
|
export { default as InputNumber } from './components/NumberInput.svelte';
|
|
192
192
|
export { NUMERIC_INPUT_LOCALES, isNumericInputLocale } from './components/numeric-format.js';
|
|
193
193
|
export type { NumericInputLocale, NumericParseResult } from './components/numeric-format.js';
|
|
194
|
-
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminNumber, formatAdminPercent, formatAdminTime, spaceCjkLatin } from './copy-format.js';
|
|
194
|
+
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminEmDash, formatAdminEnglishPunctuation, formatAdminLessThanOrEqual, formatAdminNumber, formatAdminNumericRange, formatAdminPercent, formatAdminTime, spaceCjkLatin } from './copy-format.js';
|
|
195
195
|
export type { AdminCurrencyOptions, AdminDateOptions, AdminNumberOptions, AdminPercentOptions, AdminTimeOptions } from './copy-format.js';
|
|
196
196
|
export { default as MoneyInput } from './components/MoneyInput.svelte';
|
|
197
197
|
export { default as PercentInput } from './components/PercentInput.svelte';
|
package/dist/index.js
CHANGED
|
@@ -141,7 +141,7 @@ export { default as NumericInput } from './components/NumericInput.svelte';
|
|
|
141
141
|
export { default as NumberInput } from './components/NumberInput.svelte';
|
|
142
142
|
export { default as InputNumber } from './components/NumberInput.svelte';
|
|
143
143
|
export { NUMERIC_INPUT_LOCALES, isNumericInputLocale } from './components/numeric-format.js';
|
|
144
|
-
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminNumber, formatAdminPercent, formatAdminTime, spaceCjkLatin } from './copy-format.js';
|
|
144
|
+
export { formatAdminCopy, formatAdminCurrency, formatAdminDate, formatAdminEllipsis, formatAdminEmDash, formatAdminEnglishPunctuation, formatAdminLessThanOrEqual, formatAdminNumber, formatAdminNumericRange, formatAdminPercent, formatAdminTime, spaceCjkLatin } from './copy-format.js';
|
|
145
145
|
export { default as MoneyInput } from './components/MoneyInput.svelte';
|
|
146
146
|
export { default as PercentInput } from './components/PercentInput.svelte';
|
|
147
147
|
export { default as DateTimeInput } from './components/DateTimeInput.svelte';
|
|
@@ -28,7 +28,7 @@ export function createNotificationController() {
|
|
|
28
28
|
id: nextId++,
|
|
29
29
|
tone: options.tone ?? 'info',
|
|
30
30
|
placement: options.placement ?? 'top-right',
|
|
31
|
-
duration: options.duration ??
|
|
31
|
+
duration: options.duration ?? 3000,
|
|
32
32
|
};
|
|
33
33
|
items = [...items, item];
|
|
34
34
|
if (item.duration > 0) {
|
package/dist/styles/recipes.css
CHANGED
|
@@ -968,8 +968,8 @@
|
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
.svadmin-product-list__filter:focus-visible {
|
|
971
|
-
outline:
|
|
972
|
-
outline-offset:
|
|
971
|
+
outline: var(--svadmin-focus-width) solid var(--ring);
|
|
972
|
+
outline-offset: var(--svadmin-focus-offset);
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
.svadmin-product-list__filter:hover {
|
|
@@ -1033,8 +1033,8 @@
|
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
1035
|
.svadmin-product-list__table:focus-visible {
|
|
1036
|
-
outline:
|
|
1037
|
-
outline-offset:
|
|
1036
|
+
outline: var(--svadmin-focus-width) solid var(--ring);
|
|
1037
|
+
outline-offset: var(--svadmin-focus-offset);
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
.svadmin-product-list__table tbody [data-slot=table-row]:hover {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@svadmin/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.129.0",
|
|
4
4
|
"description": "Pre-built admin UI components — AdminApp, AutoTable, AutoForm, Sidebar, Layout",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@codemirror/lang-json": "^6.0.0",
|
|
89
89
|
"@codemirror/lang-markdown": "^6.0.0",
|
|
90
90
|
"@codemirror/lang-sql": "^6.0.0",
|
|
91
|
-
"@svadmin/core": "^0.
|
|
91
|
+
"@svadmin/core": "^0.83.0",
|
|
92
92
|
"@tanstack/svelte-query": "^6.1.48",
|
|
93
93
|
"codemirror": "^6.0.0",
|
|
94
94
|
"dashjs": "^5.3.0",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
"dependencies": {
|
|
154
|
-
"@svadmin/devtools": "^0.6.
|
|
154
|
+
"@svadmin/devtools": "^0.6.13",
|
|
155
155
|
"@svadmin/devtools-contract": "^0.3.3",
|
|
156
156
|
"@vibeunion/devtools-devframe": "^0.1.2",
|
|
157
157
|
"typebox": "^1.4.6",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"@codemirror/lang-markdown": "^6.5.2",
|
|
190
190
|
"@codemirror/lang-sql": "^6.10.0",
|
|
191
191
|
"@happy-dom/global-registrator": "^21.0.4",
|
|
192
|
-
"@svadmin/ai-elements": "^0.15.
|
|
192
|
+
"@svadmin/ai-elements": "^0.15.1",
|
|
193
193
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
194
194
|
"@tailwindcss/cli": "4.3.5",
|
|
195
195
|
"@testing-library/dom": "^10.4.2",
|