burne-ui 1.8.2 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/core/Badge/badgeAPI.d.ts +2 -0
- package/dist/components/core/Badge/badgeStyles.d.ts +11 -5
- package/dist/components/core/Kbd/kbdStyles.d.ts +3 -1
- package/dist/components/core/utils/fieldShellVariant.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4236 -4230
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +74 -72
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeDefaults.d.ts +17 -2
- package/dist/{themeRuntimeContext-D92UKMXD.js → themeRuntimeContext-CFUwV5z2.js} +776 -733
- package/dist/themeRuntimeContext-POhnqI3h.cjs +14 -0
- package/dist/tokens/config.d.ts +3 -0
- package/dist/tokens/index.d.ts +1 -1
- package/dist/ui.css +623 -61
- package/package.json +1 -1
- package/dist/themeRuntimeContext-BxpBT9_f.cjs +0 -14
package/dist/internal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./themeRuntimeContext-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./themeRuntimeContext-POhnqI3h.cjs"),o=require("gsap");exports.COLOR_CSS_VAR=e.COLOR_CSS_VAR;exports.CONTROL_SIZE_LAYOUT=e.CONTROL_SIZE_LAYOUT;exports.ConvergeRippleLayer=e.ConvergeRippleLayer;exports.DARK_COLORS=e.DARK_COLORS;exports.DEFAULT_FONT=e.DEFAULT_FONT;exports.DEFAULT_FONT_MONO=e.DEFAULT_FONT_MONO;exports.FIELD_SHELL_FOCUS_CLASS=e.FIELD_SHELL_FOCUS_CLASS;exports.FIELD_SHELL_TRANSITION_CLASS=e.FIELD_SHELL_TRANSITION_CLASS;exports.FONT_WEIGHT_CSS_VAR=e.FONT_WEIGHT_CSS_VAR;exports.FONT_WEIGHT_DEFAULTS=e.FONT_WEIGHT_DEFAULTS;exports.LIGHT_COLORS=e.LIGHT_COLORS;exports.MOTION_CONFIG_DEFAULTS=e.MOTION_CONFIG_DEFAULTS;exports.MOTION_CSS_VAR=e.MOTION_CSS_VAR;exports.MOTION_DEFAULTS=e.MOTION_DEFAULTS;exports.OUTLINE_BORDER_WIDTH_MIN_PX=e.OUTLINE_BORDER_WIDTH_MIN_PX;exports.SCALE_DEFAULTS=e.SCALE_DEFAULTS;exports.SHADOW_INTERACTION_GEOM=e.SHADOW_INTERACTION_GEOM;exports.SHADOW_KNOB_CSS_DEFAULTS=e.SHADOW_KNOB_CSS_DEFAULTS;exports.SHADOW_LAYER_GEOM=e.SHADOW_LAYER_GEOM;exports.SHADOW_LIFT_CSS_VAR=e.SHADOW_LIFT_CSS_VAR;exports.SHADOW_LIFT_MOTION_CLASS=e.SHADOW_LIFT_MOTION_CLASS;exports.SHADOW_OPACITY_BASE=e.SHADOW_OPACITY_BASE;exports.TEXT_SCALE_BASES=e.TEXT_SCALE_BASES;exports.activateThemeModePalette=e.activateThemeModePalette;exports.affixSlotClass=e.affixSlotClass;exports.affixToggleMinWClass=e.affixToggleMinWClass;exports.animateInteractiveHoverLift=e.animateInteractiveHoverLift;exports.animateInteractivePressSqueeze=e.animateInteractivePressSqueeze;exports.applyBurneThemeConfig=e.applyBurneThemeConfig;exports.applyCustomThemeTokens=e.applyCustomThemeTokens;exports.applyMotionCssTokens=e.applyMotionCssTokens;exports.applyThemeMode=e.applyThemeMode;exports.applyThemeTokens=e.applyThemeTokens;exports.applyTokens=e.applyTokens;exports.buildTokenBoxShadow=e.buildTokenBoxShadow;exports.buttonGroupOverlapBorderClasses=e.buttonGroupOverlapBorderClasses;exports.buttonGroupRoundingClasses=e.buttonGroupRoundingClasses;exports.buttonGroupSegmentSurfaceClasses=e.buttonGroupSegmentSurfaceClasses;exports.buttonGroupTextFrameClass=e.buttonGroupTextFrameClass;exports.buttonGroupTextSurfaceClasses=e.buttonGroupTextSurfaceClasses;exports.buttonRippleTone=e.buttonRippleTone;exports.buttonRootClass=e.buttonRootClass;exports.buttonSpinnerClass=e.buttonSpinnerClass;exports.clearCustomThemeTokens=e.clearCustomThemeTokens;exports.clearThemeInlineTokens=e.clearThemeInlineTokens;exports.controlShellClass=e.controlShellClass;exports.createConvergeRippleAtPointer=e.createConvergeRippleAtPointer;exports.createConvergeRippleFromPointer=e.createConvergeRippleFromPointer;exports.createDefaultBurneThemeConfig=e.createDefaultBurneThemeConfig;exports.createDefaultThemeState=e.createDefaultThemeState;exports.ensureModePalettes=e.ensureModePalettes;exports.ensureRippleEase=e.ensureRippleEase;exports.exportBurneThemeConfigSource=e.exportBurneThemeConfigSource;exports.exportBurneThemeCss=e.exportBurneThemeCss;exports.exportDefaultBurneThemeConfigSource=e.exportDefaultBurneThemeConfigSource;exports.exportThemeCss=e.exportThemeCss;exports.fieldShellHoverClass=e.fieldShellHoverClass;exports.firstLevelHoverShadow=e.firstLevelHoverShadow;exports.fluidScaleRem=e.fluidScaleRem;exports.initElementShadow=e.initElementShadow;exports.isInteractivePressKey=e.isInteractivePressKey;exports.killMotion=e.killMotion;exports.mergeThemeTokenOverrides=e.mergeThemeTokenOverrides;exports.patchThemeColor=e.patchThemeColor;exports.prefersReducedMotion=e.prefersReducedMotion;exports.readControlHeightPx=e.readControlHeightPx;exports.readShadowSize=e.readShadowSize;exports.readShadowVar=e.readShadowVar;exports.resolveBorderTokenCss=e.resolveBorderTokenCss;exports.resolveConcreteBoxShadow=e.resolveConcreteBoxShadow;exports.resolveCustomThemeTokens=e.resolveCustomThemeTokens;exports.resolveTheme=e.resolveTheme;exports.resolveThemeTokenState=e.resolveThemeTokenState;exports.secondLevelShadow=e.secondLevelShadow;exports.shadowBase=e.shadowBase;exports.shadowCssVar=e.shadowCssVar;exports.shadowLarge=e.shadowLarge;exports.shadowLift=e.shadowLift;exports.shadowMid=e.shadowMid;exports.shadowMotionFor=e.shadowMotionFor;exports.shadowNone=e.shadowNone;exports.shadowSmall=e.shadowSmall;exports.shouldSkipInteractiveHoverLift=e.shouldSkipInteractiveHoverLift;exports.themeTokenStateToConfig=e.themeTokenStateToConfig;exports.useBurneThemeRuntime=e.useBurneThemeRuntime;exports.useBurneThemeRuntimeOptional=e.useBurneThemeRuntimeOptional;exports.useContainerPointerHoverHandlers=e.useContainerPointerHoverHandlers;exports.useConvergeRipples=e.useConvergeRipples;exports.useFieldShellHoverLift=e.useFieldShellHoverLift;exports.useInteractiveHoverLiftContainerHandlers=e.useInteractiveHoverLiftContainerHandlers;exports.usePersistentElShadow=e.usePersistentElShadow;exports.usePrefersReducedMotion=e.usePrefersReducedMotion;exports.useSecondLevelShadow=e.useSecondLevelShadow;exports.useSecondLevelShadowContainer=e.useSecondLevelShadowContainer;exports.gsap=o;
|
package/dist/internal.d.ts
CHANGED
|
@@ -18,4 +18,4 @@ export { SHADOW_LIFT_MOTION_CLASS, firstLevelHoverShadow, secondLevelShadow, sha
|
|
|
18
18
|
export { gsap, killMotion, ensureRippleEase } from './components/core/utils/gsapMotion';
|
|
19
19
|
export { MOTION_CONFIG_DEFAULTS, MOTION_CSS_VAR, applyMotionCssTokens, } from './components/core/utils/motionConfig';
|
|
20
20
|
export { SHADOW_INTERACTION_GEOM, SHADOW_KNOB_CSS_DEFAULTS, SHADOW_LAYER_GEOM, SHADOW_LIFT_CSS_VAR, SHADOW_OPACITY_BASE, } from './tokens/shadows';
|
|
21
|
-
export { applyThemeTokens, clearThemeInlineTokens, createDefaultThemeState, ensureModePalettes, activateThemeModePalette, patchThemeColor, exportThemeCss, fluidScaleRem, COLOR_CSS_VAR, DEFAULT_FONT, DEFAULT_FONT_MONO, FONT_WEIGHT_CSS_VAR, FONT_WEIGHT_DEFAULTS, MOTION_DEFAULTS, SCALE_DEFAULTS, TEXT_SCALE_BASES, type ThemeColorKey, type ThemeColors, type ThemeDerivedColorKey, type ThemeFontWeightKey, type ThemeFontWeights, type ThemeMode, type ThemeStatusForegroundKey, type ThemeStatusForegrounds, type ThemeTokenState, DARK_COLORS, LIGHT_COLORS, applyBurneThemeConfig, applyCustomThemeTokens, applyTokens, clearCustomThemeTokens, exportBurneThemeConfigSource, exportBurneThemeCss, mergeThemeTokenOverrides, resolveTheme, resolveCustomThemeTokens, resolveThemeTokenState, createDefaultBurneThemeConfig, exportDefaultBurneThemeConfigSource, themeTokenStateToConfig, applyThemeMode, useBurneThemeRuntime, useBurneThemeRuntimeOptional, type BurneThemeRuntimeContextValue, type ThemeModeColorOverrides, type ThemeTokenOverrides, type CustomThemeTokenControl, type CustomThemeTokenDefinition, type CustomThemeTokens, type CustomThemeTokenValue, type BurneThemeConfig, type BurneThemeMode, } from './theme';
|
|
21
|
+
export { applyThemeTokens, clearThemeInlineTokens, createDefaultThemeState, ensureModePalettes, activateThemeModePalette, patchThemeColor, exportThemeCss, fluidScaleRem, resolveBorderTokenCss, OUTLINE_BORDER_WIDTH_MIN_PX, COLOR_CSS_VAR, DEFAULT_FONT, DEFAULT_FONT_MONO, FONT_WEIGHT_CSS_VAR, FONT_WEIGHT_DEFAULTS, MOTION_DEFAULTS, SCALE_DEFAULTS, TEXT_SCALE_BASES, type ThemeColorKey, type ThemeColors, type ThemeDerivedColorKey, type ThemeFontWeightKey, type ThemeFontWeights, type ThemeMode, type ThemeStatusForegroundKey, type ThemeStatusForegrounds, type ThemeTokenState, type ResolvedBorderTokenCss, DARK_COLORS, LIGHT_COLORS, applyBurneThemeConfig, applyCustomThemeTokens, applyTokens, clearCustomThemeTokens, exportBurneThemeConfigSource, exportBurneThemeCss, mergeThemeTokenOverrides, resolveTheme, resolveCustomThemeTokens, resolveThemeTokenState, createDefaultBurneThemeConfig, exportDefaultBurneThemeConfigSource, themeTokenStateToConfig, applyThemeMode, useBurneThemeRuntime, useBurneThemeRuntimeOptional, type BurneThemeRuntimeContextValue, type ThemeModeColorOverrides, type ThemeTokenOverrides, type CustomThemeTokenControl, type CustomThemeTokenDefinition, type CustomThemeTokens, type CustomThemeTokenValue, type BurneThemeConfig, type BurneThemeMode, } from './theme';
|
package/dist/internal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as s, a as o, b as t, D as r, c as n, d as l, F as S, e as T, f as i, g as u, L as C, M as
|
|
3
|
-
import { default as
|
|
2
|
+
import { C as s, a as o, b as t, D as r, c as n, d as l, F as S, e as T, f as i, g as u, L as C, M as _, h, i as d, O as p, S as O, j as L, k as m, l as A, m as v, n as f, o as E, T as c, p as I, q as R, r as D, s as H, t as F, u as w, v as N, w as g, x as M, y as B, z as k, A as x, B as P, E as G, G as b, H as U, I as W, J as y, K as V, N as z, P as K, Q as Y, R as q, U as X, V as j, W as Z, X as J, Y as Q, Z as $, _ as ee, $ as ae, a0 as se, a1 as oe, a2 as te, a3 as re, a4 as ne, a5 as le, a6 as Se, a7 as Te, a8 as ie, a9 as ue, aa as Ce, ab as _e, ac as he, ad as de, ae as pe, af as Oe, ag as Le, ah as me, ai as Ae, aj as ve, ak as fe, al as Ee, am as ce, an as Ie, ao as Re, ap as De, aq as He, ar as Fe, as as we, at as Ne, au as ge, av as Me, aw as Be, ax as ke, ay as xe, az as Pe, aA as Ge, aB as be, aC as Ue, aD as We } from "./themeRuntimeContext-CFUwV5z2.js";
|
|
3
|
+
import { default as Ve } from "gsap";
|
|
4
4
|
export {
|
|
5
5
|
s as COLOR_CSS_VAR,
|
|
6
6
|
o as CONTROL_SIZE_LAYOUT,
|
|
@@ -13,86 +13,88 @@ export {
|
|
|
13
13
|
i as FONT_WEIGHT_CSS_VAR,
|
|
14
14
|
u as FONT_WEIGHT_DEFAULTS,
|
|
15
15
|
C as LIGHT_COLORS,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
O as
|
|
16
|
+
_ as MOTION_CONFIG_DEFAULTS,
|
|
17
|
+
h as MOTION_CSS_VAR,
|
|
18
|
+
d as MOTION_DEFAULTS,
|
|
19
|
+
p as OUTLINE_BORDER_WIDTH_MIN_PX,
|
|
20
|
+
O as SCALE_DEFAULTS,
|
|
21
|
+
L as SHADOW_INTERACTION_GEOM,
|
|
21
22
|
m as SHADOW_KNOB_CSS_DEFAULTS,
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
A as SHADOW_LAYER_GEOM,
|
|
24
|
+
v as SHADOW_LIFT_CSS_VAR,
|
|
24
25
|
f as SHADOW_LIFT_MOTION_CLASS,
|
|
25
|
-
|
|
26
|
+
E as SHADOW_OPACITY_BASE,
|
|
26
27
|
c as TEXT_SCALE_BASES,
|
|
27
|
-
|
|
28
|
+
I as activateThemeModePalette,
|
|
28
29
|
R as affixSlotClass,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
D as affixToggleMinWClass,
|
|
31
|
+
H as animateInteractiveHoverLift,
|
|
32
|
+
F as animateInteractivePressSqueeze,
|
|
32
33
|
w as applyBurneThemeConfig,
|
|
33
|
-
|
|
34
|
+
N as applyCustomThemeTokens,
|
|
34
35
|
g as applyMotionCssTokens,
|
|
35
36
|
M as applyThemeMode,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
B as applyThemeTokens,
|
|
38
|
+
k as applyTokens,
|
|
39
|
+
x as buildTokenBoxShadow,
|
|
40
|
+
P as buttonGroupOverlapBorderClasses,
|
|
40
41
|
G as buttonGroupRoundingClasses,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
b as buttonGroupSegmentSurfaceClasses,
|
|
43
|
+
U as buttonGroupTextFrameClass,
|
|
44
|
+
W as buttonGroupTextSurfaceClasses,
|
|
45
|
+
y as buttonRippleTone,
|
|
46
|
+
V as buttonRootClass,
|
|
47
|
+
z as buttonSpinnerClass,
|
|
48
|
+
K as clearCustomThemeTokens,
|
|
49
|
+
Y as clearThemeInlineTokens,
|
|
50
|
+
q as controlShellClass,
|
|
51
|
+
X as createConvergeRippleAtPointer,
|
|
51
52
|
j as createConvergeRippleFromPointer,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
53
|
+
Z as createDefaultBurneThemeConfig,
|
|
54
|
+
J as createDefaultThemeState,
|
|
55
|
+
Q as ensureModePalettes,
|
|
56
|
+
$ as ensureRippleEase,
|
|
57
|
+
ee as exportBurneThemeConfigSource,
|
|
58
|
+
ae as exportBurneThemeCss,
|
|
59
|
+
se as exportDefaultBurneThemeConfigSource,
|
|
60
|
+
oe as exportThemeCss,
|
|
61
|
+
te as fieldShellHoverClass,
|
|
62
|
+
re as firstLevelHoverShadow,
|
|
63
|
+
ne as fluidScaleRem,
|
|
64
|
+
Ve as gsap,
|
|
65
|
+
le as initElementShadow,
|
|
66
|
+
Se as isInteractivePressKey,
|
|
67
|
+
Te as killMotion,
|
|
68
|
+
ie as mergeThemeTokenOverrides,
|
|
69
|
+
ue as patchThemeColor,
|
|
70
|
+
Ce as prefersReducedMotion,
|
|
71
|
+
_e as readControlHeightPx,
|
|
71
72
|
he as readShadowSize,
|
|
72
73
|
de as readShadowVar,
|
|
73
|
-
pe as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
me as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
fe as
|
|
80
|
-
|
|
81
|
-
ce as
|
|
82
|
-
|
|
83
|
-
Re as
|
|
84
|
-
|
|
74
|
+
pe as resolveBorderTokenCss,
|
|
75
|
+
Oe as resolveConcreteBoxShadow,
|
|
76
|
+
Le as resolveCustomThemeTokens,
|
|
77
|
+
me as resolveTheme,
|
|
78
|
+
Ae as resolveThemeTokenState,
|
|
79
|
+
ve as secondLevelShadow,
|
|
80
|
+
fe as shadowBase,
|
|
81
|
+
Ee as shadowCssVar,
|
|
82
|
+
ce as shadowLarge,
|
|
83
|
+
Ie as shadowLift,
|
|
84
|
+
Re as shadowMid,
|
|
85
|
+
De as shadowMotionFor,
|
|
86
|
+
He as shadowNone,
|
|
85
87
|
Fe as shadowSmall,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
88
|
+
we as shouldSkipInteractiveHoverLift,
|
|
89
|
+
Ne as themeTokenStateToConfig,
|
|
90
|
+
ge as useBurneThemeRuntime,
|
|
91
|
+
Me as useBurneThemeRuntimeOptional,
|
|
92
|
+
Be as useContainerPointerHoverHandlers,
|
|
93
|
+
ke as useConvergeRipples,
|
|
94
|
+
xe as useFieldShellHoverLift,
|
|
95
|
+
Pe as useInteractiveHoverLiftContainerHandlers,
|
|
96
|
+
Ge as usePersistentElShadow,
|
|
97
|
+
be as usePrefersReducedMotion,
|
|
98
|
+
Ue as useSecondLevelShadow,
|
|
99
|
+
We as useSecondLevelShadowContainer
|
|
98
100
|
};
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { applyThemeTokens, clearThemeInlineTokens, createDefaultThemeState, ensureModePalettes, activateThemeModePalette, patchThemeColor, exportThemeCss, fluidScaleRem, COLOR_CSS_VAR, DEFAULT_FONT, DEFAULT_FONT_MONO, FONT_WEIGHT_CSS_VAR, FONT_WEIGHT_DEFAULTS, MOTION_DEFAULTS, SCALE_DEFAULTS, TEXT_SCALE_BASES, type ThemeColorKey, type ThemeColors, type ThemeDerivedColorKey, type ThemeFontWeightKey, type ThemeFontWeights, type ThemeMode, type ThemeStatusForegroundKey, type ThemeStatusForegrounds, type ThemeTokenState, } from './themeDefaults';
|
|
1
|
+
export { applyThemeTokens, clearThemeInlineTokens, createDefaultThemeState, ensureModePalettes, activateThemeModePalette, patchThemeColor, exportThemeCss, fluidScaleRem, resolveBorderTokenCss, OUTLINE_BORDER_WIDTH_MIN_PX, COLOR_CSS_VAR, DEFAULT_FONT, DEFAULT_FONT_MONO, FONT_WEIGHT_CSS_VAR, FONT_WEIGHT_DEFAULTS, MOTION_DEFAULTS, SCALE_DEFAULTS, TEXT_SCALE_BASES, type ThemeColorKey, type ThemeColors, type ThemeDerivedColorKey, type ThemeFontWeightKey, type ThemeFontWeights, type ThemeMode, type ThemeStatusForegroundKey, type ThemeStatusForegrounds, type ThemeTokenState, type ResolvedBorderTokenCss, } from './themeDefaults';
|
|
2
2
|
export { DARK_COLORS, LIGHT_COLORS } from './themePalettes';
|
|
3
3
|
export { applyBurneThemeConfig, applyCustomThemeTokens, applyTokens, clearCustomThemeTokens, exportBurneThemeConfigSource, exportBurneThemeCss, mergeThemeTokenOverrides, resolveTheme, resolveCustomThemeTokens, resolveThemeTokenState, createDefaultBurneThemeConfig, exportDefaultBurneThemeConfigSource, themeTokenStateToConfig, DEFAULT_THEME_STORAGE_KEY, type BurneThemeConfig, type BurneThemeMode, type CustomThemeTokenControl, type CustomThemeTokenDefinition, type CustomThemeTokens, type CustomThemeTokenValue, type ThemeModeColorOverrides, type ThemeTokenOverrides, } from './themeConfig';
|
|
4
4
|
export { ThemeProvider, applyThemeMode, useBurneTheme, useBurneThemeOptional, type BurneThemeContextValue, type ThemeProviderProps, } from './ThemeProvider';
|
|
@@ -7,7 +7,7 @@ export { DARK_COLORS, LIGHT_COLORS };
|
|
|
7
7
|
export { TEXT_SCALE_BASES };
|
|
8
8
|
export type ThemeStatusForegroundKey = "dangerForeground" | "successForeground" | "infoForeground" | "warningForeground";
|
|
9
9
|
export type ThemeDerivedColorKey = "primaryHover" | "defaultHover" | "transparentHover" | "secondaryHover" | "tertiaryHover" | "surfaceTintDanger" | "surfaceTintDangerHover" | "dangerFillHover" | "surfaceTintSuccess" | "surfaceTintSuccessHover" | "successFillHover" | "surfaceTintInfo" | "surfaceTintInfoHover" | "infoFillHover" | "surfaceTintWarning" | "surfaceTintWarningHover" | "warningFillHover" | "convergeRipplePrimaryFill" | "convergeRippleNeutral" | "convergeRippleNeutralMuted" | "convergeRippleDanger" | "convergeRippleSuccess" | "convergeRippleInfo" | "convergeRippleWarning";
|
|
10
|
-
export type ThemeColorKey = "background" | "surface" | "secondary" | "secondaryForeground" | "tertiary" | "tertiaryForeground" | "border" | "foreground" | "muted" | "mutedForeground" | "primary" | "primaryForeground" | "primaryTint" | "primaryTintStrong" | "focusRing" | "focusRingDanger" | "focusRingSuccess" | "focusRingInfo" | "focusRingWarning" | "indicator" | "indicatorForeground" | "danger" | "success" | "info" | "warning" | ThemeStatusForegroundKey | ThemeDerivedColorKey;
|
|
10
|
+
export type ThemeColorKey = "background" | "surface" | "secondary" | "secondaryForeground" | "tertiary" | "tertiaryForeground" | "border" | "shadow" | "shadowSecondary" | "foreground" | "muted" | "mutedForeground" | "primary" | "primaryForeground" | "primaryTint" | "primaryTintStrong" | "focusRing" | "focusRingDanger" | "focusRingSuccess" | "focusRingInfo" | "focusRingWarning" | "indicator" | "indicatorForeground" | "danger" | "success" | "info" | "warning" | ThemeStatusForegroundKey | ThemeDerivedColorKey;
|
|
11
11
|
export type ThemeFontWeightKey = FontWeightStep;
|
|
12
12
|
export type ThemeFontWeights = Record<ThemeFontWeightKey, number>;
|
|
13
13
|
export type ThemeColors = Record<ThemeColorKey, string>;
|
|
@@ -173,7 +173,22 @@ export declare const DEFAULT_FONT: string;
|
|
|
173
173
|
export declare const DEFAULT_FONT_MONO: string;
|
|
174
174
|
/** CSS value for a fluid scale knob — matches default tokens when `maxRem` is the CSS max. */
|
|
175
175
|
export declare function fluidScaleRem(maxRem: number): string;
|
|
176
|
-
/**
|
|
176
|
+
/** Outline surfaces keep at least a hairline when the theme knob is 0. */
|
|
177
|
+
export declare const OUTLINE_BORDER_WIDTH_MIN_PX = 0.5;
|
|
178
|
+
export type ResolvedBorderTokenCss = {
|
|
179
|
+
/** `--border-width` — layout width for non-outline borders. */
|
|
180
|
+
borderWidth: string;
|
|
181
|
+
/** `--border-width-outline` — always ≥ {@link OUTLINE_BORDER_WIDTH_MIN_PX}. */
|
|
182
|
+
borderWidthOutline: string;
|
|
183
|
+
/**
|
|
184
|
+
* `--border-color` override. When the knob is 0, non-outline borders stay
|
|
185
|
+
* hairline-wide but transparent so control heights stay aligned with outline.
|
|
186
|
+
*/
|
|
187
|
+
borderColor: string | null;
|
|
188
|
+
};
|
|
189
|
+
/** Map the single `borderWidth` theme knob onto the two CSS border tokens. */
|
|
190
|
+
export declare function resolveBorderTokenCss(borderWidth: number): ResolvedBorderTokenCss;
|
|
191
|
+
/** Ensure `modePalettes` exists and every palette has the full color key set. */
|
|
177
192
|
export declare function ensureModePalettes(state: ThemeTokenState): ThemeTokenState;
|
|
178
193
|
/** Copy the active mode palette onto top-level `colors`. */
|
|
179
194
|
export declare function activateThemeModePalette(state: ThemeTokenState, theme: ThemeMode): ThemeTokenState;
|