@astryx-vue/core 0.46.0 → 0.46.2
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/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-DAcMcVfv.js → Theme-CcGxrb5E.js} +149 -16
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/colorDefaults-COH0QXXC.js +118 -0
- package/dist/{index-DTbKTkNU.d.ts → index-BXr7LtAh.d.ts} +1 -1
- package/dist/{index-C5HUsKnf.d.ts → index-B_XTzQhm.d.ts} +2 -2
- package/dist/{index-BZ_lQz43.d.ts → index-BbHuan0g.d.ts} +1 -1
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-Otl047R1.d.ts → index-BtqvPjAf.d.ts} +2 -2
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-BPnP3Abd.d.ts → index-C9iidKbL.d.ts} +2 -2
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
- package/dist/{index-CD1-Hqm0.d.ts → index-CmqD5Ya9.d.ts} +2 -2
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-CI-FbXLB.d.ts → index-DGVOnHpo.d.ts} +3 -3
- package/dist/{index-B8NGDyIe.d.ts → index-DSAtZP4A.d.ts} +1 -1
- package/dist/{index-0rops6Vo.d.ts → index-DYU4kE-q.d.ts} +3 -3
- package/dist/{index-BMoR8Uoh.d.ts → index-DZMs9KqG.d.ts} +1 -1
- package/dist/{index-teM3gflK.d.ts → index-Df0FiiEH.d.ts} +60 -60
- package/dist/{index-YpwwNU0k.d.ts → index-Dmr81uHZ.d.ts} +2 -2
- package/dist/{index-ClDCbp82.d.ts → index-Dx8mIZvF.d.ts} +3 -3
- package/dist/{index-c3cw4SAm.d.ts → index-N9KLj1lB.d.ts} +5 -5
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-Ak1b0V24.d.ts → index-a6o69uPN.d.ts} +1 -1
- package/dist/{index-CCa_dvoF.d.ts → index-m-fFGq2e.d.ts} +2 -2
- package/dist/index.d.ts +24 -24
- package/dist/index.js +2 -2
- package/dist/palette/index.js +1 -1
- package/dist/{palette-DlNBLR8U.js → palette-DWpsKA5X.js} +3 -116
- package/package.json +1 -1
- package/styles/bordered-control.css +2 -2
- package/styles/checkbox-indicator.css +2 -2
- package/styles/complex-selector.css +1 -1
- package/styles/date-input.css +3 -3
- package/styles/dropdown-menu.css +1 -1
- package/styles/input-group.css +3 -3
- package/styles/multi-selector.css +2 -2
- package/styles/number-input.css +1 -1
- package/styles/power-search.css +2 -2
- package/styles/radio-indicator.css +2 -2
- package/styles/selector.css +2 -2
- package/styles/text-area.css +2 -2
- package/styles/text-input.css +2 -2
- package/styles/tokenizer.css +2 -2
- package/styles/typeahead.css +2 -2
|
@@ -8,10 +8,11 @@ import { n as splitTopLevelWhitespace } from "./tokenReferences-CdmofltU.js";
|
|
|
8
8
|
import { n as observeResize } from "./sharedResizeObserver-BnRTJaNh.js";
|
|
9
9
|
import { n as WIDTH_BREAKPOINT_NAMES, t as DEFAULT_WIDTH_BREAKPOINTS } from "./adaptationTypes-Beao49TN.js";
|
|
10
10
|
import { r as staticComponentIcons, t as mergeComponentIcons } from "./componentIcons-BBJqmilP.js";
|
|
11
|
-
import { a as syntaxThemeStyle } from "./syntaxTheme-R7xnu5x5.js";
|
|
11
|
+
import { a as syntaxThemeStyle, n as SYNTAX_TOKEN_KEYS, t as DIFF_SYNTAX_TOKEN_KEYS } from "./syntaxTheme-R7xnu5x5.js";
|
|
12
12
|
import { t as syntaxThemeKey } from "./syntaxContext-DmIfNNtb.js";
|
|
13
13
|
import { r as useRootScheme } from "./useResolvedColorMode-CyZjLvfj.js";
|
|
14
14
|
import { a as relativeLuminance, n as contrastRatio, r as parseColor, t as compositeOver } from "./contrast-B0fsdq4U.js";
|
|
15
|
+
import { t as colorDefaults } from "./colorDefaults-COH0QXXC.js";
|
|
15
16
|
import { r as bridgeComponentTokens } from "./MediaTheme-BavxpAJt.js";
|
|
16
17
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, h, inject, markRaw, mergeProps, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, unref, useAttrs, useTemplateRef, watch } from "vue";
|
|
17
18
|
import "../styles/theme.css";
|
|
@@ -481,6 +482,7 @@ function expandColorScale(config = {}) {
|
|
|
481
482
|
const textSecondaryDark = high ? 80 : 70;
|
|
482
483
|
const borderAlpha = high ? .2 : .1;
|
|
483
484
|
const borderEmphasized = lightDark(ensureContrastTone(lightSeed.hue, neutralVariantChroma, high ? 50 : 70, -1, neutralLight[99] ?? "#FFFFFF", NON_TEXT_MIN_CONTRAST), ensureContrastTone(darkSeed.hue, neutralVariantChroma, high ? 50 : 30, 1, neutralDark[10] ?? "#000000", NON_TEXT_MIN_CONTRAST));
|
|
485
|
+
const borderControl = lightDark(ensureContrastTone(lightSeed.hue, neutralVariantChroma, high ? 50 : 70, -1, neutralLight[95] ?? "#FFFFFF", NON_TEXT_MIN_CONTRAST), ensureContrastTone(darkSeed.hue, neutralVariantChroma, high ? 50 : 30, 1, neutralDark[10] ?? "#000000", NON_TEXT_MIN_CONTRAST));
|
|
484
486
|
return {
|
|
485
487
|
...accent != null ? {
|
|
486
488
|
"--color-accent": lightDark(accentLight[40] ?? "#000000", accentDark[80] ?? "#FFFFFF"),
|
|
@@ -507,6 +509,7 @@ function expandColorScale(config = {}) {
|
|
|
507
509
|
"--color-background-inverted": lightDark(neutralLight[10] ?? "#000000", neutralDark[99] ?? "#FFFFFF"),
|
|
508
510
|
"--color-border": lightDark(hexWithAlpha(neutralLight[10] ?? "#000000", borderAlpha), hexWithAlpha(neutralDark[95] ?? "#FFFFFF", borderAlpha)),
|
|
509
511
|
"--color-border-emphasized": borderEmphasized,
|
|
512
|
+
"--color-border-control": borderControl,
|
|
510
513
|
"--color-skeleton": lightDark(neutralVariantLight[70] ?? "#000000", neutralVariantDark[30] ?? "#FFFFFF"),
|
|
511
514
|
"--color-track": lightDark(neutralVariantLight[70] ?? "#000000", neutralVariantDark[30] ?? "#FFFFFF"),
|
|
512
515
|
"--color-shadow": lightDark(hexWithAlpha(neutralLight[0] ?? "#000000", .1), hexWithAlpha(neutralDark[0] ?? "#000000", .3)),
|
|
@@ -3028,6 +3031,35 @@ function lengthInPx(value) {
|
|
|
3028
3031
|
return Number(match[1]) * (match[2] === "rem" ? 16 : 1);
|
|
3029
3032
|
}
|
|
3030
3033
|
//#endregion
|
|
3034
|
+
//#region src/Theme/ownColors.ts
|
|
3035
|
+
/** Core's color tokens with their own values, written as CSS. */
|
|
3036
|
+
const CORE_COLORS = Object.fromEntries(Object.entries(colorDefaults).filter(([name]) => name.startsWith("--color-")).map(([name, value]) => [normalizeTokenName(name), prefixTokenReferences(value)]));
|
|
3037
|
+
/** The code block tokens a theme's syntax palette writes. Every reader has a fallback. */
|
|
3038
|
+
const SYNTAX_TOKENS = [
|
|
3039
|
+
"--astryx-code-block-background",
|
|
3040
|
+
"--astryx-code-block-border",
|
|
3041
|
+
...[...SYNTAX_TOKEN_KEYS, ...DIFF_SYNTAX_TOKEN_KEYS].filter((key) => key !== "background").map((key) => `--astryx-code-syntax-${key}`)
|
|
3042
|
+
];
|
|
3043
|
+
function setsCoreColor(tokens) {
|
|
3044
|
+
return Object.keys(tokens ?? {}).some((name) => name in CORE_COLORS);
|
|
3045
|
+
}
|
|
3046
|
+
/** Whether a theme sets a Core color token, at its root or in an adaptation rule. */
|
|
3047
|
+
function setsCoreColors(tokens, adaptationRules) {
|
|
3048
|
+
return setsCoreColor(tokens) || (adaptationRules ?? []).some((rule) => setsCoreColor(rule.tokens));
|
|
3049
|
+
}
|
|
3050
|
+
/**
|
|
3051
|
+
* Rules that declare Core's own color values on the token scope, plus
|
|
3052
|
+
* `initial` for the syntax tokens when the theme has no syntax palette of its
|
|
3053
|
+
* own, so code falls back to Core's syntax colors. Empty for a theme that
|
|
3054
|
+
* sets no Core color token.
|
|
3055
|
+
*/
|
|
3056
|
+
function ownColorRules(scope, tokens, adaptationRules, hasSyntax) {
|
|
3057
|
+
if (!setsCoreColors(tokens, adaptationRules)) return [];
|
|
3058
|
+
const declarations = { ...CORE_COLORS };
|
|
3059
|
+
if (!hasSyntax) for (const name of SYNTAX_TOKENS) declarations[name] = "initial";
|
|
3060
|
+
return tokenRule(scope, declarations, "");
|
|
3061
|
+
}
|
|
3062
|
+
//#endregion
|
|
3031
3063
|
//#region src/Theme/propGuards.ts
|
|
3032
3064
|
/** An authored value as CSS, or undefined when it cannot stay one declaration. */
|
|
3033
3065
|
function safeValue(value) {
|
|
@@ -3082,14 +3114,68 @@ const PROPERTY_CSS = {
|
|
|
3082
3114
|
fontSize: "font-size",
|
|
3083
3115
|
color: "color"
|
|
3084
3116
|
};
|
|
3117
|
+
const MODE_KEYS = ["@light", "@dark"];
|
|
3118
|
+
/** The guarded properties `block` sets with a value that can stay one declaration. */
|
|
3119
|
+
function guardedDeclarations(block, properties) {
|
|
3120
|
+
const declarations = {};
|
|
3121
|
+
if (block === null || typeof block !== "object" || Array.isArray(block)) return declarations;
|
|
3122
|
+
for (const property of properties) {
|
|
3123
|
+
const value = block[property];
|
|
3124
|
+
if (safeValue(value) !== void 0) declarations[property] = value;
|
|
3125
|
+
}
|
|
3126
|
+
return declarations;
|
|
3127
|
+
}
|
|
3128
|
+
/**
|
|
3129
|
+
* The guarded values one authored prop block writes, in its base and in its
|
|
3130
|
+
* `@light` and `@dark` blocks. Other declarations stay out: a `font`
|
|
3131
|
+
* shorthand, say, would reset the type rule's line height and family, which
|
|
3132
|
+
* the prop keeps. A value that cannot stay one declaration counts as unset.
|
|
3133
|
+
*/
|
|
3134
|
+
function authoredGuard(block, properties) {
|
|
3135
|
+
if (block === null || typeof block !== "object") return null;
|
|
3136
|
+
const guard = guardedDeclarations(block, properties);
|
|
3137
|
+
for (const mode of MODE_KEYS) {
|
|
3138
|
+
const declarations = guardedDeclarations(block[mode], properties);
|
|
3139
|
+
if (Object.keys(declarations).length > 0) guard[mode] = declarations;
|
|
3140
|
+
}
|
|
3141
|
+
return Object.keys(guard).length > 0 ? guard : null;
|
|
3142
|
+
}
|
|
3143
|
+
/**
|
|
3144
|
+
* A layer's own guard values over the root theme's. A base value of the
|
|
3145
|
+
* layer's own covers both modes, as its rule does in the cascade, so the
|
|
3146
|
+
* root's mode values fill in only where the layer sets no base value.
|
|
3147
|
+
*/
|
|
3148
|
+
function mergeGuard(own, root, properties) {
|
|
3149
|
+
if (root === null) return own;
|
|
3150
|
+
const merged = {};
|
|
3151
|
+
for (const property of properties) {
|
|
3152
|
+
const base = own?.[property] ?? root[property];
|
|
3153
|
+
if (typeof base === "string") merged[property] = base;
|
|
3154
|
+
for (const mode of MODE_KEYS) {
|
|
3155
|
+
const value = (own?.[mode])?.[property] ?? (own?.[property] === void 0 ? root[mode]?.[property] : void 0);
|
|
3156
|
+
if (value !== void 0) merged[mode] = {
|
|
3157
|
+
...merged[mode],
|
|
3158
|
+
[property]: value
|
|
3159
|
+
};
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
return Object.keys(merged).length > 0 ? merged : null;
|
|
3163
|
+
}
|
|
3164
|
+
/** Rule text for one guard block: its base and color-mode values, through the component rule compiler. */
|
|
3165
|
+
function guardBlockRules(target, key, block, surface) {
|
|
3166
|
+
return compileComponentRules({ [target]: { [key]: block } }, "", surface);
|
|
3167
|
+
}
|
|
3085
3168
|
/**
|
|
3086
3169
|
* Prop rules for every guarded target this component map touches.
|
|
3087
3170
|
*
|
|
3088
|
-
*
|
|
3089
|
-
*
|
|
3090
|
-
*
|
|
3091
|
-
*
|
|
3092
|
-
*
|
|
3171
|
+
* Core's value comes first, then the values a theme writes for the prop key
|
|
3172
|
+
* itself, base and color-mode blocks alike, for example
|
|
3173
|
+
* `heading: { 'weight:medium': { fontWeight: '450' } }` or
|
|
3174
|
+
* `text: { 'size:sm': { '@dark': { fontSize: '13px' } } }`. Both follow the
|
|
3175
|
+
* type rules, so the prop wins over a themed type in any authored order, and
|
|
3176
|
+
* the theme's own prop value wins over Core's. A value that cannot stay one
|
|
3177
|
+
* declaration was already reported where the component rule was compiled, so
|
|
3178
|
+
* it counts as unset and Core's value applies.
|
|
3093
3179
|
*/
|
|
3094
3180
|
function propGuardRules(components, options = {}) {
|
|
3095
3181
|
const rules = [];
|
|
@@ -3097,17 +3183,19 @@ function propGuardRules(components, options = {}) {
|
|
|
3097
3183
|
const own = components?.[target];
|
|
3098
3184
|
if (own === void 0 && !options.force) continue;
|
|
3099
3185
|
for (const [key, declarations] of Object.entries(keys)) {
|
|
3100
|
-
const
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3186
|
+
const properties = Object.keys(declarations);
|
|
3187
|
+
const authored = authoredGuard(own?.[key], properties);
|
|
3188
|
+
if (options.authoredOnly) {
|
|
3189
|
+
if (authored !== null) rules.push(...guardBlockRules(target, key, authored, options.surface));
|
|
3190
|
+
continue;
|
|
3191
|
+
}
|
|
3192
|
+
const block = mergeGuard(authored, authoredGuard(options.inherited?.[target]?.[key], properties), properties);
|
|
3193
|
+
const body = Object.entries(declarations).map(([property, value]) => `${PROPERTY_CSS[property]}: ${value};`).join(" ");
|
|
3107
3194
|
const selectors = targetSelectors(target, key, options.surface);
|
|
3108
3195
|
rules.push(`${selectors.join(", ")} { ${body} }`);
|
|
3196
|
+
if (block !== null) rules.push(...guardBlockRules(target, key, block, options.surface));
|
|
3109
3197
|
if (target === "link" && key === "color:accent") {
|
|
3110
|
-
const rest = safeValue(
|
|
3198
|
+
const rest = safeValue(block?.color) ?? "var(--astryx-link-accent-foreground, #0074e2)";
|
|
3111
3199
|
const hover = selectors.map((selector) => `${selector}:where(:hover):where(:not(:disabled, [aria-disabled="true"]))`).join(", ");
|
|
3112
3200
|
rules.push(`${hover} { color: var(--astryx-link-hover-color, ${rest}); }`);
|
|
3113
3201
|
}
|
|
@@ -3115,6 +3203,31 @@ function propGuardRules(components, options = {}) {
|
|
|
3115
3203
|
}
|
|
3116
3204
|
return rules;
|
|
3117
3205
|
}
|
|
3206
|
+
/**
|
|
3207
|
+
* An adaptation rule's own prop values again, on a media surface.
|
|
3208
|
+
*
|
|
3209
|
+
* A surface that restyles a guarded target writes its prop guard after every
|
|
3210
|
+
* adaptation block, carrying the root theme's value where the surface sets
|
|
3211
|
+
* none. The adaptation's own value is the later write in the theme, and only
|
|
3212
|
+
* the surface's own value for the key outranks it. So, after the surfaces,
|
|
3213
|
+
* each rule writes its values again on the surface, for every key where the
|
|
3214
|
+
* surface sets no base value and none in its own mode (a surface fixes the
|
|
3215
|
+
* mode, so its other mode's block never applies there).
|
|
3216
|
+
*/
|
|
3217
|
+
function surfaceReplayRules(ruleComponents, surfaceComponents, surface) {
|
|
3218
|
+
const rules = [];
|
|
3219
|
+
for (const [target, keys] of Object.entries(GUARDS)) {
|
|
3220
|
+
if (surfaceComponents?.[target] === void 0) continue;
|
|
3221
|
+
for (const [key, declarations] of Object.entries(keys)) {
|
|
3222
|
+
const properties = Object.keys(declarations);
|
|
3223
|
+
const own = authoredGuard(ruleComponents?.[target]?.[key], properties);
|
|
3224
|
+
if (own === null) continue;
|
|
3225
|
+
const surfaceOwn = authoredGuard(surfaceComponents[target]?.[key], properties);
|
|
3226
|
+
if (!(surfaceOwn !== null && (properties.some((property) => surfaceOwn[property] !== void 0) || surfaceOwn[`@${surface}`] !== void 0))) rules.push(...guardBlockRules(target, key, own, surface));
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
3229
|
+
return rules;
|
|
3230
|
+
}
|
|
3118
3231
|
/** Whether a component map touches any guarded target. */
|
|
3119
3232
|
function touchesGuardedTargets(components) {
|
|
3120
3233
|
return Object.keys(GUARDS).some((target) => components?.[target] !== void 0);
|
|
@@ -3197,6 +3310,19 @@ function surfaceRules(source, surface) {
|
|
|
3197
3310
|
})];
|
|
3198
3311
|
}
|
|
3199
3312
|
/**
|
|
3313
|
+
* After the surfaces, each adaptation rule's own prop values again on the
|
|
3314
|
+
* surfaces that restyle the same targets, in rule order (see
|
|
3315
|
+
* surfaceReplayRules).
|
|
3316
|
+
*/
|
|
3317
|
+
function adaptationSurfaceReplay(source) {
|
|
3318
|
+
const blocks = [];
|
|
3319
|
+
for (const rule of source.adaptationRules ?? []) {
|
|
3320
|
+
const replay = [...surfaceReplayRules(rule.components, source.onDarkComponents, "dark"), ...surfaceReplayRules(rule.components, source.onLightComponents, "light")];
|
|
3321
|
+
if (replay.length > 0) blocks.push(`@media ${rule.query} {\n${scoped(source.name, replay)}\n}`);
|
|
3322
|
+
}
|
|
3323
|
+
return blocks;
|
|
3324
|
+
}
|
|
3325
|
+
/**
|
|
3200
3326
|
* Compile one theme's stylesheet into the `astryx.overrides` layer.
|
|
3201
3327
|
*
|
|
3202
3328
|
* Order is the cascade order: root rules, then each adaptation in authored
|
|
@@ -3217,8 +3343,10 @@ function compileThemeCss(source) {
|
|
|
3217
3343
|
blocks.push(...adaptationBlocks(source));
|
|
3218
3344
|
const surfaces = [...surfaceRules(source, "dark"), ...surfaceRules(source, "light")];
|
|
3219
3345
|
if (surfaces.length > 0) blocks.push(scoped(source.name, surfaces));
|
|
3346
|
+
blocks.push(...adaptationSurfaceReplay(source));
|
|
3220
3347
|
if (blocks.length === 0) return void 0;
|
|
3221
|
-
|
|
3348
|
+
const ownColors = ownColorRules(TOKEN_SCOPE, source.tokens, source.adaptationRules, source.syntax !== void 0);
|
|
3349
|
+
return `${ownColors.length > 0 ? `@layer astryx.reset {\n${scoped(source.name, ownColors)}\n}\n` : ""}@layer astryx.overrides {\n${blocks.join("\n")}\n}\n`.replace(/<\/(style)/gi, "<\\/$1");
|
|
3222
3350
|
}
|
|
3223
3351
|
//#endregion
|
|
3224
3352
|
//#region src/Theme/defineTheme.ts
|
|
@@ -3604,7 +3732,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
3604
3732
|
theme: applied.value ?? neutralTheme,
|
|
3605
3733
|
mode: props.mode
|
|
3606
3734
|
})));
|
|
3607
|
-
const syntax = computed(() =>
|
|
3735
|
+
const syntax = computed(() => {
|
|
3736
|
+
const theme = ownTheme.value;
|
|
3737
|
+
if (theme?.syntax) return theme.syntax;
|
|
3738
|
+
if (theme && setsCoreColors(theme.tokens, theme.adaptationRules)) return null;
|
|
3739
|
+
return parentSyntax?.value ?? null;
|
|
3740
|
+
});
|
|
3608
3741
|
if (parentSyntax || ownTheme.value?.syntax) provide(syntaxThemeKey, syntax);
|
|
3609
3742
|
const reducesMotion = computed(() => resolveKnobs(applied.value?.axes?.motion).reducedMotion === "always");
|
|
3610
3743
|
const inheritsReducedMotion = inject(themeReducesMotionKey, null);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as TimeInputSize, it as TimeInputProps, nt as _default, ot as TimeInputEntryError, rt as TimeInputEmits } from "../index-
|
|
1
|
+
import { at as TimeInputSize, it as TimeInputProps, nt as _default, ot as TimeInputEntryError, rt as TimeInputEmits } from "../index-Df0FiiEH.js";
|
|
2
2
|
export { _default as TimeInput, type TimeInputEmits, type TimeInputEntryError, type TimeInputProps, type TimeInputSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-Df0FiiEH.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-Df0FiiEH.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenizerPresentation, c as TokenizerSlots, i as TokenizerOverflow, l as TokenizerStatus, n as TokenizerChange, o as TokenizerProps, r as TokenizerEmits, s as TokenizerSize, t as _default } from "../index-
|
|
1
|
+
import { a as TokenizerPresentation, c as TokenizerSlots, i as TokenizerOverflow, l as TokenizerStatus, n as TokenizerChange, o as TokenizerProps, r as TokenizerEmits, s as TokenizerSize, t as _default } from "../index-DYU4kE-q.js";
|
|
2
2
|
export { _default as Tokenizer, type TokenizerChange, type TokenizerEmits, type TokenizerOverflow, type TokenizerPresentation, type TokenizerProps, type TokenizerSize, type TokenizerSlots, type TokenizerStatus };
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-Df0FiiEH.js";
|
|
2
2
|
import { et as ToolbarOrientation, nt as ToolbarSize, tt as ToolbarProps } from "../useResizable-if_cP4fs.js";
|
|
3
3
|
export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipOptions, o as TooltipFocusTrigger, r as UseTooltipReturn, s as TooltipPlacement, t as useTooltip } from "../index-
|
|
1
|
+
import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipOptions, o as TooltipFocusTrigger, r as UseTooltipReturn, s as TooltipPlacement, t as useTooltip } from "../index-Dmr81uHZ.js";
|
|
2
2
|
export { _default as Tooltip, type TooltipAlignment, type TooltipFocusTrigger, type TooltipPlacement, type TooltipProps, type TooltipTouchTrigger, type UseTooltipOptions, type UseTooltipReturn, useTooltip };
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-
|
|
1
|
+
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-Df0FiiEH.js";
|
|
2
2
|
export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
|
package/dist/TreeList/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TreeListItemData, c as TreeListVariant, i as TreeListDensity, n as useTreeFocus, o as TreeListProps, r as _default, s as TreeListSlots, t as UseTreeFocusOptions } from "../index-
|
|
1
|
+
import { a as TreeListItemData, c as TreeListVariant, i as TreeListDensity, n as useTreeFocus, o as TreeListProps, r as _default, s as TreeListSlots, t as UseTreeFocusOptions } from "../index-BbHuan0g.js";
|
|
2
2
|
export { _default as TreeList, type TreeListDensity, type TreeListItemData, type TreeListProps, type TreeListSlots, type TreeListVariant, type UseTreeFocusOptions, useTreeFocus };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { t as resolveTokenReferences } from "./tokenReferences-CdmofltU.js";
|
|
2
|
+
import { n as resolveLightDark } from "./colorMode-DVs86FF2.js";
|
|
3
|
+
//#region src/palette/colorDefaults.ts
|
|
4
|
+
/**
|
|
5
|
+
* 调色板按它来量的那套默认颜色:没有主题时 Astryx 的颜色令牌,写成 `light-dark()`
|
|
6
|
+
* 和 `var()` 引用,名字用不带前缀的写法。`themePalette()` 拿它当底,
|
|
7
|
+
* 选出来的灰阶、状态色文字都以它为准。
|
|
8
|
+
*/
|
|
9
|
+
const colorDefaults = {
|
|
10
|
+
"--color-accent": "light-dark(#0064E0, #0171E3)",
|
|
11
|
+
"--color-accent-muted": "light-dark(#0082FB33, #0082FB3F)",
|
|
12
|
+
"--color-on-accent": "light-dark(#FFFFFF, #FFFFFF)",
|
|
13
|
+
"--color-neutral": "light-dark(rgba(5, 54, 89, 0.1), rgba(223, 226, 229, 0.2))",
|
|
14
|
+
"--color-background-surface": "light-dark(#FFFFFF, #1F1F22)",
|
|
15
|
+
"--color-background-body": "light-dark(#F1F4F7, #111112)",
|
|
16
|
+
"--color-overlay": "light-dark(#01122866, #11111299)",
|
|
17
|
+
"--color-overlay-hover": "light-dark(#0536590C, #FFFFFF0C)",
|
|
18
|
+
"--color-overlay-pressed": "light-dark(#05365919, #FFFFFF19)",
|
|
19
|
+
"--color-background-muted": "light-dark(#0536590C, #1111127F)",
|
|
20
|
+
"--color-text-primary": "light-dark(#0A1317, #DFE2E5)",
|
|
21
|
+
"--color-text-secondary": "light-dark(#445564, #B0B5BB)",
|
|
22
|
+
"--color-text-disabled": "light-dark(#A4B0BC, #6F747C)",
|
|
23
|
+
"--color-text-accent": "light-dark(#0064E0, #3E9EFB)",
|
|
24
|
+
"--color-on-dark": "light-dark(#FFFFFF, #FFFFFF)",
|
|
25
|
+
"--color-on-light": "light-dark(#000000, #000000)",
|
|
26
|
+
"--color-icon-accent": "light-dark(#0064E0, #2694FE)",
|
|
27
|
+
"--color-icon-primary": "light-dark(#0A1317, #DFE2E5)",
|
|
28
|
+
"--color-icon-secondary": "light-dark(#4E606F, #AAAFB5)",
|
|
29
|
+
"--color-icon-disabled": "light-dark(#A4B0BC, #6F747C)",
|
|
30
|
+
"--color-background-card": "light-dark(#FFFFFF, #1F1F22)",
|
|
31
|
+
"--color-background-popover": "light-dark(#FFFFFF, #28292C)",
|
|
32
|
+
"--color-background-inverted": "light-dark(#0A1317, #FFFFFF)",
|
|
33
|
+
"--color-background-error-inverted": "light-dark(#AA071E, #E3193B)",
|
|
34
|
+
"--color-info": "light-dark(#0064E0, #0064E0)",
|
|
35
|
+
"--color-info-muted": "light-dark(#0082FB33, #0082FB3F)",
|
|
36
|
+
"--color-on-info": "light-dark(#FFFFFF, #FFFFFF)",
|
|
37
|
+
"--color-success": "light-dark(#0D8626, #0D8626)",
|
|
38
|
+
"--color-success-muted": "light-dark(#0B991F33, #0B991F3F)",
|
|
39
|
+
"--color-on-success": "light-dark(#FFFFFF, #FFFFFF)",
|
|
40
|
+
"--color-error": "light-dark(#E3193B, #F5394F)",
|
|
41
|
+
"--color-error-muted": "light-dark(#E3193B33, #F5394F3F)",
|
|
42
|
+
"--color-on-error": "light-dark(#FFFFFF, #0A1317)",
|
|
43
|
+
"--color-warning": "light-dark(#E9AF08, #F2C00B)",
|
|
44
|
+
"--color-warning-muted": "light-dark(#E2A40033, #E2A4003F)",
|
|
45
|
+
"--color-on-warning": "light-dark(#0A1317, #0A1317)",
|
|
46
|
+
"--color-text-info": "var(--color-text-blue)",
|
|
47
|
+
"--color-text-success": "var(--color-text-green)",
|
|
48
|
+
"--color-text-warning": "var(--color-text-yellow)",
|
|
49
|
+
"--color-text-error": "var(--color-text-red)",
|
|
50
|
+
"--color-icon-info": "var(--color-text-info)",
|
|
51
|
+
"--color-icon-success": "var(--color-text-success)",
|
|
52
|
+
"--color-icon-warning": "var(--color-text-warning)",
|
|
53
|
+
"--color-icon-error": "var(--color-text-error)",
|
|
54
|
+
"--color-border-info": "var(--color-text-info)",
|
|
55
|
+
"--color-border-success": "var(--color-text-success)",
|
|
56
|
+
"--color-border-warning": "var(--color-text-warning)",
|
|
57
|
+
"--color-border-error": "var(--color-text-error)",
|
|
58
|
+
"--color-on-info-muted": "var(--color-text-blue)",
|
|
59
|
+
"--color-on-success-muted": "var(--color-text-green)",
|
|
60
|
+
"--color-on-warning-muted": "var(--color-text-yellow)",
|
|
61
|
+
"--color-on-error-muted": "var(--color-text-red)",
|
|
62
|
+
"--color-border": "light-dark(#05365919, #F2F4F619)",
|
|
63
|
+
"--color-border-emphasized": "light-dark(#CCD3DB, #494D53)",
|
|
64
|
+
"--color-border-control": "light-dark(#878D95, #666A70)",
|
|
65
|
+
"--color-skeleton": "light-dark(#CCD3DB, #5A5E66)",
|
|
66
|
+
"--color-track": "light-dark(#CCD3DB, #5A5E66)",
|
|
67
|
+
"--color-shadow": "light-dark(rgba(5, 54, 89, 0.1), rgba(0, 0, 0, 0.3))",
|
|
68
|
+
"--color-tint-hover": "light-dark(black, white)",
|
|
69
|
+
"--color-background-blue": "light-dark(#0171E333, #0171E333)",
|
|
70
|
+
"--color-border-blue": "light-dark(#0064E0, #2694FE)",
|
|
71
|
+
"--color-icon-blue": "light-dark(#0064E0, #2694FE)",
|
|
72
|
+
"--color-text-blue": "light-dark(#042F97, #AFD7FF)",
|
|
73
|
+
"--color-background-cyan": "light-dark(#03A7D733, #03A7D733)",
|
|
74
|
+
"--color-border-cyan": "light-dark(#089DD0, #0171A4)",
|
|
75
|
+
"--color-icon-cyan": "light-dark(#00ACC1, #26C6DA)",
|
|
76
|
+
"--color-text-cyan": "light-dark(#014975, #A1EEF9)",
|
|
77
|
+
"--color-background-gray": "light-dark(#0A131733, #666A724C)",
|
|
78
|
+
"--color-border-gray": "light-dark(#647685, #748695)",
|
|
79
|
+
"--color-icon-gray": "light-dark(#4E606F, #AAAFB5)",
|
|
80
|
+
"--color-text-gray": "light-dark(#0A1317, #E7EAED)",
|
|
81
|
+
"--color-background-green": "light-dark(#24BB5E33, #24BB5E33)",
|
|
82
|
+
"--color-border-green": "light-dark(#0D8626, #0B991F)",
|
|
83
|
+
"--color-icon-green": "light-dark(#0D8626, #26A756)",
|
|
84
|
+
"--color-text-green": "light-dark(#09441F, #A5F690)",
|
|
85
|
+
"--color-background-orange": "light-dark(#F2790233, #F2790233)",
|
|
86
|
+
"--color-border-orange": "light-dark(#EB6E00, #B34A01)",
|
|
87
|
+
"--color-icon-orange": "light-dark(#E9690B, #FB8C00)",
|
|
88
|
+
"--color-text-orange": "light-dark(#6B2203, #FDB876)",
|
|
89
|
+
"--color-background-pink": "light-dark(#E638B333, #E638B333)",
|
|
90
|
+
"--color-border-pink": "light-dark(#F351C0, #C02294)",
|
|
91
|
+
"--color-icon-pink": "light-dark(#C2185B, #EC407A)",
|
|
92
|
+
"--color-text-pink": "light-dark(#650053, #FEADE3)",
|
|
93
|
+
"--color-background-purple": "light-dark(#7952FF33, #7952FF33)",
|
|
94
|
+
"--color-border-purple": "light-dark(#9081FF, #7340FE)",
|
|
95
|
+
"--color-icon-purple": "light-dark(#5B08D8, #7952FF)",
|
|
96
|
+
"--color-text-purple": "light-dark(#3E0697, #B3B0FE)",
|
|
97
|
+
"--color-background-red": "light-dark(#E3193B33, #E3193B33)",
|
|
98
|
+
"--color-border-red": "light-dark(#E3193B, #F5394F)",
|
|
99
|
+
"--color-icon-red": "light-dark(#D31130, #E3193B)",
|
|
100
|
+
"--color-text-red": "light-dark(#7B0210, #FFB2B8)",
|
|
101
|
+
"--color-background-teal": "light-dark(#0DB7AF33, #0DB7AF33)",
|
|
102
|
+
"--color-border-teal": "light-dark(#08A3A3, #08767D)",
|
|
103
|
+
"--color-icon-teal": "light-dark(#009688, #26A69A)",
|
|
104
|
+
"--color-text-teal": "light-dark(#083943, #40DCCD)",
|
|
105
|
+
"--color-background-yellow": "light-dark(#E2A40033, #E2A40033)",
|
|
106
|
+
"--color-border-yellow": "light-dark(#C58600, #B47700)",
|
|
107
|
+
"--color-icon-yellow": "light-dark(#FBC02D, #FFEE58)",
|
|
108
|
+
"--color-text-yellow": "light-dark(#753F07, #FBCE03)",
|
|
109
|
+
"--focus-outline-color": "var(--color-accent)"
|
|
110
|
+
};
|
|
111
|
+
/** 某个模式下每个默认颜色的具体值,`light-dark()` 和 `var()` 都已展开。 */
|
|
112
|
+
function resolveDefaultColors(mode) {
|
|
113
|
+
const picked = {};
|
|
114
|
+
for (const [token, value] of Object.entries(colorDefaults)) picked[token] = resolveLightDark(value, mode);
|
|
115
|
+
return resolveTokenReferences(picked);
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { resolveDefaultColors as n, colorDefaults as t };
|
|
@@ -20,10 +20,10 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
|
|
|
20
20
|
label: string;
|
|
21
21
|
anchor: HTMLElement | null;
|
|
22
22
|
width: string | number;
|
|
23
|
-
padding: PopoverPadding;
|
|
24
23
|
isOpen: boolean;
|
|
25
24
|
placement: LayerPlacement;
|
|
26
25
|
alignment: LayerAlignment;
|
|
26
|
+
padding: PopoverPadding;
|
|
27
27
|
hasAutoFocus: boolean;
|
|
28
28
|
presentation: AdaptivePresentation;
|
|
29
29
|
role: PopoverRole;
|
|
@@ -121,10 +121,10 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
|
|
|
121
121
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
122
122
|
onPageSizeChange?: ((pageSize: number) => any) | undefined;
|
|
123
123
|
}>, {
|
|
124
|
-
|
|
124
|
+
step: number;
|
|
125
125
|
isDisabled: boolean;
|
|
126
|
+
size: PaginationSize;
|
|
126
127
|
variant: PaginationVariant;
|
|
127
|
-
step: number;
|
|
128
128
|
disabled: boolean;
|
|
129
129
|
page: number;
|
|
130
130
|
pageSize: number;
|
|
@@ -63,8 +63,8 @@ interface TreeListSlots {
|
|
|
63
63
|
//#region src/TreeList/TreeList.vue.d.ts
|
|
64
64
|
type __VLS_Slots = TreeListSlots;
|
|
65
65
|
declare const __VLS_base: import("vue").DefineComponent<TreeListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TreeListProps> & Readonly<{}>, {
|
|
66
|
-
variant: TreeListVariant;
|
|
67
66
|
density: TreeListDensity;
|
|
67
|
+
variant: TreeListVariant;
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
69
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
70
70
|
declare const _default: typeof __VLS_export;
|
|
@@ -28,8 +28,8 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
28
28
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
block: boolean;
|
|
31
|
-
size: NavItemSize;
|
|
32
31
|
isDisabled: boolean;
|
|
32
|
+
size: NavItemSize;
|
|
33
33
|
isIconOnly: boolean;
|
|
34
34
|
isSelected: boolean;
|
|
35
35
|
isFocusableWhenDisabled: boolean;
|
|
@@ -84,16 +84,16 @@ declare const __VLS_base: import("vue").DefineComponent<HoverCardProps, {
|
|
|
84
84
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
85
85
|
}>, {
|
|
86
86
|
label: string;
|
|
87
|
+
content: string;
|
|
87
88
|
isOpen: boolean;
|
|
88
89
|
placement: HoverCardPlacement;
|
|
89
90
|
alignment: HoverCardAlignment;
|
|
90
|
-
content: string;
|
|
91
91
|
isDefaultOpen: boolean;
|
|
92
|
+
isEnabled: boolean;
|
|
92
93
|
delay: number;
|
|
93
94
|
hideDelay: number;
|
|
94
95
|
focusTrigger: HoverCardFocusTrigger;
|
|
95
96
|
touchTrigger: HoverCardTouchTrigger;
|
|
96
|
-
isEnabled: boolean;
|
|
97
97
|
hasHoverIndication: HoverCardHoverIndication;
|
|
98
98
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
99
99
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
175
175
|
}>, {
|
|
176
176
|
position: OverlayPosition;
|
|
177
177
|
align: OverlayAlign;
|
|
178
|
-
showOn: OverlayShowOn;
|
|
179
178
|
scrim: OverlayScrimMode;
|
|
179
|
+
showOn: OverlayShowOn;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
181
181
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
182
182
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
|
|
|
192
192
|
isOpen: boolean;
|
|
193
193
|
position: OverlayPosition;
|
|
194
194
|
align: OverlayAlign;
|
|
195
|
-
showOn: OverlayShowOn;
|
|
196
195
|
scrim: OverlayScrimMode;
|
|
196
|
+
showOn: OverlayShowOn;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
198
198
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
199
199
|
declare const _default: typeof __VLS_export;
|
|
@@ -80,10 +80,10 @@ type __VLS_Slots = {} & {
|
|
|
80
80
|
};
|
|
81
81
|
declare const __VLS_base: import("vue").DefineComponent<HeadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeadingProps> & Readonly<{}>, {
|
|
82
82
|
color: HeadingColor;
|
|
83
|
+
maxLines: number;
|
|
83
84
|
display: HeadingDisplay;
|
|
84
85
|
justify: HeadingJustify;
|
|
85
86
|
hasCapsize: boolean;
|
|
86
|
-
maxLines: number;
|
|
87
87
|
hasTruncateTooltip: HeadingTruncateTooltip;
|
|
88
88
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
89
89
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -21,8 +21,8 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
label?: (props: typeof __VLS_1) => any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_base: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
24
|
-
variant: DividerVariant;
|
|
25
24
|
orientation: DividerOrientation;
|
|
25
|
+
variant: DividerVariant;
|
|
26
26
|
isFullBleed: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -96,10 +96,10 @@ declare const __VLS_base$2: import("vue").DefineComponent<ItemProps, {
|
|
|
96
96
|
focus: typeof focus;
|
|
97
97
|
blur: typeof blur;
|
|
98
98
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ItemProps> & Readonly<{}>, {
|
|
99
|
-
isDisabled: boolean;
|
|
100
|
-
as: ItemElement;
|
|
101
99
|
density: ListDensity;
|
|
100
|
+
isDisabled: boolean;
|
|
102
101
|
layout: ItemLayout;
|
|
102
|
+
as: ItemElement;
|
|
103
103
|
isSelected: boolean;
|
|
104
104
|
align: ItemAlign;
|
|
105
105
|
isHighlighted: boolean;
|
|
@@ -43,8 +43,8 @@ interface ProgressBarProps {
|
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/ProgressBar/ProgressBar.vue.d.ts
|
|
45
45
|
declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
46
|
-
size: ProgressBarSize;
|
|
47
46
|
isDisabled: boolean;
|
|
47
|
+
size: ProgressBarSize;
|
|
48
48
|
value: number;
|
|
49
49
|
variant: ProgressBarVariant;
|
|
50
50
|
isLabelHidden: boolean;
|
|
@@ -154,11 +154,11 @@ type __VLS_Slots = {
|
|
|
154
154
|
default: () => unknown;
|
|
155
155
|
};
|
|
156
156
|
declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
157
|
-
"update:value": (value: string) => any;
|
|
158
157
|
change: (value: string) => any;
|
|
158
|
+
"update:value": (value: string) => any;
|
|
159
159
|
}, string, import("vue").PublicProps, Readonly<TabListProps> & Readonly<{
|
|
160
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
161
160
|
onChange?: ((value: string) => any) | undefined;
|
|
161
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
163
|
layout: TabListLayout;
|
|
164
164
|
isFullBleed: boolean;
|
|
@@ -161,11 +161,11 @@ type __VLS_ModelProps = {
|
|
|
161
161
|
};
|
|
162
162
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
163
163
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
164
|
-
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
165
164
|
change: (value: CollapsibleGroupValue) => any;
|
|
165
|
+
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
166
166
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
167
|
-
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
168
167
|
onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
|
|
168
|
+
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
169
169
|
}>, {
|
|
170
170
|
type: CollapsibleGroupType;
|
|
171
171
|
hasDividers: boolean;
|
|
@@ -9,10 +9,10 @@ declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {
|
|
|
9
9
|
type: TextType;
|
|
10
10
|
as: TextAs;
|
|
11
11
|
color: TextColor;
|
|
12
|
+
maxLines: number;
|
|
12
13
|
display: TextDisplay;
|
|
13
14
|
justify: TextJustify;
|
|
14
15
|
hasCapsize: boolean;
|
|
15
|
-
maxLines: number;
|
|
16
16
|
hasTruncateTooltip: TextTruncateTooltip;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -8,12 +8,12 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
type: "button" | "
|
|
12
|
-
elevation: ButtonElevation;
|
|
11
|
+
type: "button" | "submit" | "reset";
|
|
13
12
|
isDisabled: boolean;
|
|
14
|
-
isLoading: boolean;
|
|
15
13
|
isIconOnly: boolean;
|
|
14
|
+
elevation: ButtonElevation;
|
|
16
15
|
isInterruptible: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
17
17
|
loadingLabel: string;
|
|
18
18
|
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -92,8 +92,8 @@ declare const __VLS_export$6: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
92
92
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(CommandPaletteProps<T> & {
|
|
93
93
|
value?: string | undefined;
|
|
94
94
|
}) & {
|
|
95
|
-
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
96
95
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
96
|
+
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
97
97
|
onValueChange?: ((value: string) => any) | undefined;
|
|
98
98
|
}> & (typeof globalThis extends {
|
|
99
99
|
__VLS_PROPS_FALLBACK: infer P;
|