nuxt-ui-tools 1.10.1 → 1.11.1
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/module.json +1 -1
- package/dist/runtime/form/components/renderer/form-field-shell.vue +6 -5
- package/dist/runtime/form/fields/text/component.vue +17 -1
- package/dist/runtime/form/types/field-base.d.ts +6 -6
- package/dist/runtime/form/utils/text.d.ts +4 -2
- package/dist/runtime/form/utils/text.js +14 -11
- package/dist/runtime/shared/styles/scrollbars.css +1 -1
- package/dist/runtime/shared/styles/tokens.css +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -14,7 +14,7 @@ import { getSchemaDirtyCheck } from "../../utils/controls";
|
|
|
14
14
|
import { createFormFieldInstance } from "../../utils/field-instance";
|
|
15
15
|
import { isFunction, isNumber, isString } from "../../utils/predicate";
|
|
16
16
|
import { resolveRequired } from "../../utils/state";
|
|
17
|
-
import { resolveFieldDescription, resolveFormText } from "../../utils/text";
|
|
17
|
+
import { resolveFieldDescription, resolveFieldText, resolveFormText } from "../../utils/text";
|
|
18
18
|
import { mergeFormUiClass } from "../../utils/ui";
|
|
19
19
|
const props = defineProps({
|
|
20
20
|
field: { type: null, required: true },
|
|
@@ -25,12 +25,13 @@ const form = useFormRuntimeContext();
|
|
|
25
25
|
const formUi = useFormUi();
|
|
26
26
|
const bare = useFormFieldBare();
|
|
27
27
|
const field = computed(() => createFormFieldInstance(props.field));
|
|
28
|
+
const params = computed(() => form.getFieldCallbackParams(props.path, props.field));
|
|
28
29
|
const label = computed(
|
|
29
30
|
() => field.value.capability.has("label") && "label" in props.field ? resolveFormText(props.field.label) : void 0
|
|
30
31
|
);
|
|
31
32
|
const { t } = useUiToolsLocale();
|
|
32
33
|
const descriptionConfig = computed(
|
|
33
|
-
() => field.value.capability.has("description") && "description" in props.field ? resolveFieldDescription(props.field.description) : void 0
|
|
34
|
+
() => field.value.capability.has("description") && "description" in props.field ? resolveFieldDescription(props.field.description, params.value) : void 0
|
|
34
35
|
);
|
|
35
36
|
const description = computed(
|
|
36
37
|
() => descriptionConfig.value?.display === "inline" ? descriptionConfig.value.text : void 0
|
|
@@ -59,7 +60,7 @@ const shellStyle = computed(
|
|
|
59
60
|
() => orientation.value === "horizontal" && labelWidth.value ? { "--nut-form-label-width": labelWidth.value } : void 0
|
|
60
61
|
);
|
|
61
62
|
const hint = computed(
|
|
62
|
-
() => field.value.capability.has("hint") && "hint" in props.field ?
|
|
63
|
+
() => field.value.capability.has("hint") && "hint" in props.field ? resolveFieldText(props.field.hint, params.value) : void 0
|
|
63
64
|
);
|
|
64
65
|
const labelExtra = computed(() => {
|
|
65
66
|
if (!field.value.capability.has("hint") || !("labelExtra" in props.field)) {
|
|
@@ -78,10 +79,10 @@ const required = computed(() => {
|
|
|
78
79
|
if (!field.value.capability.has("validation")) {
|
|
79
80
|
return false;
|
|
80
81
|
}
|
|
81
|
-
return resolveRequired(props.field,
|
|
82
|
+
return resolveRequired(props.field, params.value);
|
|
82
83
|
});
|
|
83
84
|
const help = computed(
|
|
84
|
-
() => field.value.capability.has("hint") && "help" in props.field ?
|
|
85
|
+
() => field.value.capability.has("hint") && "help" in props.field ? resolveFieldText(props.field.help, params.value) : void 0
|
|
85
86
|
);
|
|
86
87
|
const shellHelp = computed(() => props.inlineLabel ? void 0 : help.value);
|
|
87
88
|
const dirty = computed(
|
|
@@ -27,8 +27,24 @@ const model = computed({
|
|
|
27
27
|
});
|
|
28
28
|
const maskOptions = computed(() => maskDirectiveOptions(fieldProps.value.mask));
|
|
29
29
|
const vOptionalMaska = (element, binding, vnode, previousVnode) => {
|
|
30
|
-
if (
|
|
30
|
+
if (typeof vMaska !== "function") {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (binding.value !== void 0) {
|
|
31
34
|
vMaska(element, binding, vnode, previousVnode);
|
|
35
|
+
} else if (binding.oldValue !== void 0) {
|
|
36
|
+
vMaska(
|
|
37
|
+
element,
|
|
38
|
+
{
|
|
39
|
+
dir: {},
|
|
40
|
+
instance: binding.instance,
|
|
41
|
+
modifiers: {},
|
|
42
|
+
oldValue: binding.oldValue,
|
|
43
|
+
value: { mask: null }
|
|
44
|
+
},
|
|
45
|
+
vnode,
|
|
46
|
+
previousVnode
|
|
47
|
+
);
|
|
32
48
|
}
|
|
33
49
|
};
|
|
34
50
|
const prefix = computed(() => resolveFormText(fieldProps.value.prefix));
|
|
@@ -35,12 +35,12 @@ export interface FormStatefulFieldBase<TType extends FormFieldType, TValue, TCon
|
|
|
35
35
|
}>;
|
|
36
36
|
/** Label rendered by the field wrapper. */
|
|
37
37
|
label?: FormText;
|
|
38
|
-
/** Optional supporting copy rendered near the control, or a tooltip/modal variant. */
|
|
39
|
-
description?: FormText | FormFieldDescription
|
|
40
|
-
/** Optional right-side hint rendered by the field wrapper. */
|
|
41
|
-
hint?: FormText
|
|
42
|
-
/** Optional help text rendered under the control. */
|
|
43
|
-
help?: FormText
|
|
38
|
+
/** Optional supporting copy rendered near the control, or a tooltip/modal variant. Callbacks receive `{ ctx, deps, api }`. */
|
|
39
|
+
description?: FormText | FormFieldDescription | FormFieldCallback<FormText | FormFieldDescription, TContext, TDeps, TValue>;
|
|
40
|
+
/** Optional right-side hint rendered by the field wrapper. Callbacks receive `{ ctx, deps, api }`. */
|
|
41
|
+
hint?: FormText | FormFieldCallback<FormText, TContext, TDeps, TValue>;
|
|
42
|
+
/** Optional help text rendered under the control. Callbacks receive `{ ctx, deps, api }`. */
|
|
43
|
+
help?: FormText | FormFieldCallback<FormText, TContext, TDeps, TValue>;
|
|
44
44
|
/** Optional rich content rendered beside the label. Takes precedence over `hint`. */
|
|
45
45
|
labelExtra?: FormRenderable;
|
|
46
46
|
/** Placeholder forwarded to controls that support placeholders. Callbacks receive `{ ctx, deps, api }`. */
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FormText, FormValue } from '../types/index.js';
|
|
2
2
|
export declare function resolveFormText(text: FormText | undefined): string | undefined;
|
|
3
|
+
/** Resolves field copy that is static, lazy, or computed from the field callback parameters. */
|
|
4
|
+
export declare function resolveFieldText(text: FormValue, params: FormValue): string | undefined;
|
|
3
5
|
export declare function resolveFormBoundaryText(value: FormValue): string | undefined;
|
|
4
6
|
export interface ResolvedFieldDescription {
|
|
5
7
|
text: string;
|
|
6
8
|
display: 'inline' | 'tooltip' | 'modal';
|
|
7
9
|
title?: string;
|
|
8
10
|
}
|
|
9
|
-
export declare function resolveFieldDescription(
|
|
11
|
+
export declare function resolveFieldDescription(description: FormValue, params: FormValue): ResolvedFieldDescription | undefined;
|
|
@@ -9,6 +9,9 @@ export function resolveFormText(text) {
|
|
|
9
9
|
}
|
|
10
10
|
return text;
|
|
11
11
|
}
|
|
12
|
+
export function resolveFieldText(text, params) {
|
|
13
|
+
return resolveFormBoundaryText(isFunction(text) ? invokeFormFunction(text, [params]) : text);
|
|
14
|
+
}
|
|
12
15
|
export function resolveFormBoundaryText(value) {
|
|
13
16
|
if (isString(value)) {
|
|
14
17
|
return value;
|
|
@@ -21,20 +24,20 @@ export function resolveFormBoundaryText(value) {
|
|
|
21
24
|
return isString(resolved) || isNumber(resolved) ? String(resolved) : void 0;
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const text2 = resolveFormText(value.text);
|
|
27
|
+
const DESCRIPTION_DISPLAYS = ["inline", "tooltip", "modal"];
|
|
28
|
+
export function resolveFieldDescription(description, params) {
|
|
29
|
+
const value = isFunction(description) ? invokeFormFunction(description, [params]) : description;
|
|
30
|
+
if (isRecord(value) && "text" in value) {
|
|
31
|
+
const text2 = resolveFormBoundaryText(value.text);
|
|
30
32
|
if (!text2) {
|
|
31
33
|
return void 0;
|
|
32
34
|
}
|
|
33
|
-
return {
|
|
35
|
+
return {
|
|
36
|
+
display: DESCRIPTION_DISPLAYS.find((display) => display === value.display) ?? "inline",
|
|
37
|
+
text: text2,
|
|
38
|
+
title: resolveFormBoundaryText(value.title)
|
|
39
|
+
};
|
|
34
40
|
}
|
|
35
|
-
const text =
|
|
41
|
+
const text = resolveFormBoundaryText(value);
|
|
36
42
|
return text ? { display: "inline", text } : void 0;
|
|
37
43
|
}
|
|
38
|
-
function isDescriptionConfig(value) {
|
|
39
|
-
return isRecord(value) && "text" in value;
|
|
40
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nut-scrollbar-size:11px;--nut-scrollbar-gap:3px;--nut-scrollbar-thumb:color-mix(in srgb,var(--ui-text,#1f1d1a) 18%,transparent);--nut-scrollbar-thumb-hover:color-mix(in srgb,var(--ui-text,#1f1d1a) 32%,transparent);--nut-scrollbar-thumb-active:color-mix(in srgb,var(--ui-text,#1f1d1a) 44%,transparent)}@supports (scrollbar-width:thin){*{scrollbar-color:transparent transparent;scrollbar-width:thin;transition:scrollbar-color .2s ease}:hover{scrollbar-color:var(--nut-scrollbar-thumb) transparent}}@supports not (scrollbar-width:thin){::-webkit-scrollbar{background:transparent;height:var(--nut-scrollbar-size);width:var(--nut-scrollbar-size)}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:var(--nut-scrollbar-gap) solid transparent;border-radius:999px}:hover::-webkit-scrollbar-thumb{background-color:var(--nut-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--nut-scrollbar-thumb-hover)}::-webkit-scrollbar-thumb:active{background-color:var(--nut-scrollbar-thumb-active)}}
|
|
1
|
+
@layer theme, base, components, utilities;@layer base{:root{--nut-scrollbar-size:11px;--nut-scrollbar-gap:3px;--nut-scrollbar-thumb:color-mix(in srgb,var(--ui-text,#1f1d1a) 18%,transparent);--nut-scrollbar-thumb-hover:color-mix(in srgb,var(--ui-text,#1f1d1a) 32%,transparent);--nut-scrollbar-thumb-active:color-mix(in srgb,var(--ui-text,#1f1d1a) 44%,transparent)}@supports (scrollbar-width:thin){*{scrollbar-color:transparent transparent;scrollbar-width:thin;transition:scrollbar-color .2s ease}:hover{scrollbar-color:var(--nut-scrollbar-thumb) transparent}}@supports not (scrollbar-width:thin){::-webkit-scrollbar{background:transparent;height:var(--nut-scrollbar-size);width:var(--nut-scrollbar-size)}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:var(--nut-scrollbar-gap) solid transparent;border-radius:999px}:hover::-webkit-scrollbar-thumb{background-color:var(--nut-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--nut-scrollbar-thumb-hover)}::-webkit-scrollbar-thumb:active{background-color:var(--nut-scrollbar-thumb-active)}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nut-form-veil:rgba(31,29,26,.18)}.dark{--nut-form-veil:rgba(0,0,0,.45)}:where(:root){--nut-dash-s1:var(--ui-primary);--nut-dash-s2:var(--ui-color-neutral-400);--nut-dash-s3:var(--ui-secondary);--nut-dash-s4:color-mix(in oklab,var(--ui-primary) 20%,var(--ui-bg));--nut-dash-s5:var(--ui-warning);--nut-dash-s6:color-mix(in oklab,var(--ui-secondary) 35%,var(--ui-bg));--nut-dash-up:var(--ui-success);--nut-dash-up-mark:var(--nut-dash-up);--nut-dash-down:var(--ui-error);--nut-dash-muted:var(--ui-border-accented);--nut-dash-track:var(--ui-bg-elevated);--nut-dash-grid:var(--ui-border-muted);--nut-dash-axis:var(--ui-text-dimmed);--nut-dash-ref:var(--ui-text-dimmed);--nut-dash-ref-label:var(--ui-text-muted);--nut-dash-ghost:var(--ui-bg-accented);--nut-dash-ghost-shine:color-mix(in oklab,var(--ui-bg) 70%,transparent);--nut-dash-filter-active:color-mix(in oklab,var(--ui-primary) 9%,var(--ui-bg));--nut-dash-filter-active-line:color-mix(in oklab,var(--ui-primary) 35%,var(--ui-border));--nut-dash-filter-ink:var(--nut-dl-accent-ink,var(--ui-primary));--nut-dash-row-hover:var(--ui-bg-elevated)}:where(.dark){--nut-dash-s2:var(--ui-color-neutral-500);--nut-dash-s4:color-mix(in oklab,var(--ui-primary) 30%,var(--ui-bg));--nut-dash-s6:color-mix(in oklab,var(--ui-secondary) 40%,var(--ui-bg))}@supports (color:oklch(from red l c h)){:where(:root){--nut-dash-s4:oklch(from var(--ui-primary) 0.88 calc(c * 0.45) h);--nut-dash-s6:oklch(from var(--ui-secondary) 0.8 calc(c * 0.55) h)}:where(.dark){--nut-dash-s4:oklch(from var(--ui-primary) 0.42 calc(c * 0.6) h);--nut-dash-s6:oklch(from var(--ui-secondary) 0.45 calc(c * 0.65) h)}}.nut-dash-chart{--vis-font-family:inherit;--vis-axis-tick-label-color:var(--nut-dash-axis);--vis-axis-tick-label-font-size:10px;--vis-axis-grid-color:var(--nut-dash-grid);--vis-axis-domain-color:var(--nut-dash-grid);--vis-crosshair-line-stroke-color:var(--ui-border-accented);--vis-crosshair-circle-stroke-color:var(--ui-bg);--vis-tooltip-background-color:var(--ui-bg);--vis-tooltip-border-color:var(--ui-border);--vis-tooltip-text-color:var(--ui-text);--vis-tooltip-padding:8px 10px;--vis-tooltip-border-radius:calc(var(--ui-radius)*1.5);--vis-tooltip-shadow-color:rgb(0 0 0/8%);--vis-plotline-label-font-size:10px}.nut-dash-chart--bars [data-vis-component] rect:hover{opacity:.8}.nut-dash-tip{display:flex;flex-direction:column;font-size:12px;gap:4px;min-width:9rem}.nut-dash-tip-title{color:var(--ui-text-muted);font-weight:500}.nut-dash-tip-row{align-items:center;display:flex;gap:6px}.nut-dash-tip-row i{border-radius:2px;height:8px;width:8px}.nut-dash-tip-row span{color:var(--ui-text-muted);flex:1}.nut-dash-tip-row b{font-variant-numeric:tabular-nums;font-weight:600}.nut-dash-ghost{background:var(--nut-dash-ghost)}.nut-dash-shimmer{overflow:hidden;position:relative}.nut-dash-shimmer:after{animation:nut-dash-shimmer 1.6s ease-in-out infinite;background:linear-gradient(100deg,transparent 25%,var(--nut-dash-ghost-shine) 50%,transparent 75%);content:"";inset:0;pointer-events:none;position:absolute;transform:translateX(-100%);will-change:transform}@keyframes nut-dash-shimmer{to{transform:translateX(100%)}}.nut-dash-enter{animation:nut-dash-enter .28s ease-out}@keyframes nut-dash-enter{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}.nut-dash-progress{animation:nut-dash-progress 1.1s ease-in-out infinite}@keyframes nut-dash-progress{0%{transform:translateX(-100%)}to{transform:translateX(300%)}}@media (prefers-reduced-motion:reduce){.nut-dash-shimmer:after{display:none}.nut-dash-enter{animation:none}.nut-dash-progress{animation-duration:3s}}
|
|
1
|
+
@layer theme, base, components, utilities;@layer base{:root{--nut-form-veil:rgba(31,29,26,.18)}.dark{--nut-form-veil:rgba(0,0,0,.45)}:where(:root){--nut-dash-s1:var(--ui-primary);--nut-dash-s2:var(--ui-color-neutral-400);--nut-dash-s3:var(--ui-secondary);--nut-dash-s4:color-mix(in oklab,var(--ui-primary) 20%,var(--ui-bg));--nut-dash-s5:var(--ui-warning);--nut-dash-s6:color-mix(in oklab,var(--ui-secondary) 35%,var(--ui-bg));--nut-dash-up:var(--ui-success);--nut-dash-up-mark:var(--nut-dash-up);--nut-dash-down:var(--ui-error);--nut-dash-muted:var(--ui-border-accented);--nut-dash-track:var(--ui-bg-elevated);--nut-dash-grid:var(--ui-border-muted);--nut-dash-axis:var(--ui-text-dimmed);--nut-dash-ref:var(--ui-text-dimmed);--nut-dash-ref-label:var(--ui-text-muted);--nut-dash-ghost:var(--ui-bg-accented);--nut-dash-ghost-shine:color-mix(in oklab,var(--ui-bg) 70%,transparent);--nut-dash-filter-active:color-mix(in oklab,var(--ui-primary) 9%,var(--ui-bg));--nut-dash-filter-active-line:color-mix(in oklab,var(--ui-primary) 35%,var(--ui-border));--nut-dash-filter-ink:var(--nut-dl-accent-ink,var(--ui-primary));--nut-dash-row-hover:var(--ui-bg-elevated)}:where(.dark){--nut-dash-s2:var(--ui-color-neutral-500);--nut-dash-s4:color-mix(in oklab,var(--ui-primary) 30%,var(--ui-bg));--nut-dash-s6:color-mix(in oklab,var(--ui-secondary) 40%,var(--ui-bg))}@supports (color:oklch(from red l c h)){:where(:root){--nut-dash-s4:oklch(from var(--ui-primary) 0.88 calc(c * 0.45) h);--nut-dash-s6:oklch(from var(--ui-secondary) 0.8 calc(c * 0.55) h)}:where(.dark){--nut-dash-s4:oklch(from var(--ui-primary) 0.42 calc(c * 0.6) h);--nut-dash-s6:oklch(from var(--ui-secondary) 0.45 calc(c * 0.65) h)}}:where(:root){--nut-fp-veil:rgba(31,29,26,.4);--nut-fp-stage:var(--ui-bg-muted);--nut-fp-document:#525659;--nut-fp-checker-a:#fff;--nut-fp-checker-b:#ebe7e2;--nut-fp-token-key:var(--ui-primary);--nut-fp-token-string:var(--ui-success);--nut-fp-token-number:var(--ui-info);--nut-fp-token-literal:var(--ui-error)}:where(.dark){--nut-fp-veil:rgba(0,0,0,.62);--nut-fp-stage:var(--ui-bg);--nut-fp-checker-a:#e9e4dd;--nut-fp-checker-b:#d8d1c7}}@layer components{.nut-dash-chart{--vis-font-family:inherit;--vis-axis-tick-label-color:var(--nut-dash-axis);--vis-axis-tick-label-font-size:10px;--vis-axis-grid-color:var(--nut-dash-grid);--vis-axis-domain-color:var(--nut-dash-grid);--vis-crosshair-line-stroke-color:var(--ui-border-accented);--vis-crosshair-circle-stroke-color:var(--ui-bg);--vis-tooltip-background-color:var(--ui-bg);--vis-tooltip-border-color:var(--ui-border);--vis-tooltip-text-color:var(--ui-text);--vis-tooltip-padding:8px 10px;--vis-tooltip-border-radius:calc(var(--ui-radius)*1.5);--vis-tooltip-shadow-color:rgb(0 0 0/8%);--vis-plotline-label-font-size:10px}.nut-dash-chart--bars [data-vis-component] rect:hover{opacity:.8}.nut-dash-tip{display:flex;flex-direction:column;font-size:12px;gap:4px;min-width:9rem}.nut-dash-tip-title{color:var(--ui-text-muted);font-weight:500}.nut-dash-tip-row{align-items:center;display:flex;gap:6px}.nut-dash-tip-row i{border-radius:2px;height:8px;width:8px}.nut-dash-tip-row span{color:var(--ui-text-muted);flex:1}.nut-dash-tip-row b{font-variant-numeric:tabular-nums;font-weight:600}.nut-dash-ghost{background:var(--nut-dash-ghost)}.nut-dash-shimmer{overflow:hidden;position:relative}.nut-dash-shimmer:after{animation:nut-dash-shimmer 1.6s ease-in-out infinite;background:linear-gradient(100deg,transparent 25%,var(--nut-dash-ghost-shine) 50%,transparent 75%);content:"";inset:0;pointer-events:none;position:absolute;transform:translateX(-100%);will-change:transform}@keyframes nut-dash-shimmer{to{transform:translateX(100%)}}.nut-dash-enter{animation:nut-dash-enter .28s ease-out}@keyframes nut-dash-enter{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}.nut-dash-progress{animation:nut-dash-progress 1.1s ease-in-out infinite}@keyframes nut-dash-progress{0%{transform:translateX(-100%)}to{transform:translateX(300%)}}@media (prefers-reduced-motion:reduce){.nut-dash-shimmer:after{display:none}.nut-dash-enter{animation:none}.nut-dash-progress{animation-duration:3s}}.nut-fp-checker{background-color:var(--nut-fp-checker-a);background-image:conic-gradient(var(--nut-fp-checker-b) 25%,transparent 0 50%,var(--nut-fp-checker-b) 0 75%,transparent 0);background-size:18px 18px}.nut-fp-code [data-token=key]{color:var(--nut-fp-token-key)}.nut-fp-code [data-token=string]{color:var(--nut-fp-token-string)}.nut-fp-code [data-token=number]{color:var(--nut-fp-token-number)}.nut-fp-code [data-token=literal]{color:var(--nut-fp-token-literal)}[data-file-preview-bottom][data-single]:has([data-file-preview-tools]:empty){display:none}@keyframes nut-fp-progress{0%{transform:translateX(-100%)}to{transform:translateX(300%)}}.nut-fp-progress{animation:nut-fp-progress 1s ease-in-out infinite}@keyframes nut-fp-equalizer{to{transform:scaleY(.45)}}.nut-fp-equalizer{animation:nut-fp-equalizer .9s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.nut-fp-progress{animation-duration:2.4s}.nut-fp-equalizer{animation:none}}.nut-fp-prose{color:var(--ui-text);font-size:.925rem;line-height:1.7}.nut-fp-prose>:first-child{margin-top:0}.nut-fp-prose :where(h1,h2,h3,h4){color:var(--ui-text-highlighted);font-weight:650;letter-spacing:-.01em;line-height:1.25;margin:1.75em 0 .6em}.nut-fp-prose h1{font-size:1.6em}.nut-fp-prose h2{font-size:1.25em}.nut-fp-prose h3{font-size:1.05em}.nut-fp-prose :where(p,ul,ol,pre,table,blockquote){margin:0 0 1em}.nut-fp-prose :where(ul,ol){padding-inline-start:1.4em}.nut-fp-prose ul{list-style:disc}.nut-fp-prose ol{list-style:decimal}.nut-fp-prose a{color:var(--ui-primary);text-decoration:underline;text-underline-offset:2px}.nut-fp-prose :not(pre)>code{background:var(--ui-bg-elevated);border:1px solid var(--ui-border-muted);border-radius:4px;font-size:.86em;padding:.1em .35em}.nut-fp-prose pre{background:var(--ui-bg-elevated);border:1px solid var(--ui-border);border-radius:8px;font-size:.85em;overflow-x:auto;padding:.9em 1.1em}.nut-fp-prose table{border-collapse:collapse;display:block;font-size:.9em;overflow-x:auto}.nut-fp-prose :where(th,td){border:1px solid var(--ui-border);padding:.4em .75em;text-align:start}.nut-fp-prose th{background:var(--ui-bg-elevated);font-weight:600}.nut-fp-prose blockquote{border-inline-start:3px solid var(--ui-primary);color:var(--ui-text-toned);padding-inline-start:1em}.nut-fp-prose img{border-radius:6px;max-width:100%}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
|
|
5
5
|
"homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
|
|
6
6
|
"bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",
|