burne-ui 1.8.1 → 1.8.3
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/README.md +1 -1
- package/dist/components/core/Alert/Alert.d.ts +1 -0
- package/dist/components/core/Alert/alertAnimations.d.ts +3 -1
- package/dist/components/core/Alert/alertTypes.d.ts +8 -1
- package/dist/components/core/Alert/index.d.ts +1 -0
- package/dist/components/core/Badge/badgeAnimations.d.ts +1 -1
- package/dist/components/core/Badge/badgeTypes.d.ts +1 -1
- package/dist/components/core/Card/Card.d.ts +1 -0
- package/dist/components/core/Card/cardAnimations.d.ts +1 -1
- package/dist/components/core/Card/cardStyles.d.ts +4 -3
- package/dist/components/core/Card/cardTypes.d.ts +7 -0
- package/dist/components/core/Card/index.d.ts +1 -0
- package/dist/components/core/Kbd/kbdTypes.d.ts +1 -1
- package/dist/components/core/Surface/surfaceStyles.d.ts +1 -0
- package/dist/components/core/utils/fieldShellVariant.d.ts +2 -1
- package/dist/components/core/utils/glossInteractiveMotion.d.ts +1 -1
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +50 -39
- package/dist/components/core/utils/useFieldShellHoverLift.d.ts +3 -2
- package/dist/components/core/utils/useFirstLevelInteractiveMotion.d.ts +1 -1
- package/dist/components/core/utils/useShadowMotion.d.ts +31 -10
- package/dist/index.cjs +1 -1
- package/dist/index.js +5111 -5091
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +83 -74
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeConfig.d.ts +6 -2
- package/dist/theme/themeDefaults.d.ts +35 -7
- package/dist/themeRuntimeContext-BHMufYQ1.cjs +14 -0
- package/dist/{themeRuntimeContext-Ba-UDP4h.js → themeRuntimeContext-Bw0KCdrV.js} +1566 -1382
- package/dist/tokens/config.d.ts +7 -1
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/shadows.d.ts +91 -12
- package/dist/ui.css +591 -32
- package/package.json +1 -1
- package/dist/themeRuntimeContext-kHgoMsjE.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-BHMufYQ1.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
|
@@ -10,12 +10,12 @@ export { buttonGroupRoundingClasses, buttonGroupOverlapBorderClasses, buttonGrou
|
|
|
10
10
|
export { useConvergeRipples } from './components/core/utils/useConvergeRipples';
|
|
11
11
|
export { ConvergeRippleLayer } from './components/core/utils/pressRipple';
|
|
12
12
|
export { createConvergeRippleAtPointer, createConvergeRippleFromPointer, type ConvergeRipple, } from './components/core/utils/convergeRippleGeometry';
|
|
13
|
-
export { animateInteractiveHoverLift, animateInteractivePressSqueeze, isInteractivePressKey, initElementShadow, readShadowSize, readShadowVar, shadowCssVar, shadowLarge, shadowMid, shadowNone, shadowBase, shouldSkipInteractiveHoverLift, useInteractiveHoverLiftContainerHandlers, type AnimateInteractivePressSqueezeOptions, type HoverShadowConfig, } from './components/core/utils/hoverInteractiveLift';
|
|
13
|
+
export { animateInteractiveHoverLift, animateInteractivePressSqueeze, buildTokenBoxShadow, isInteractivePressKey, initElementShadow, readShadowSize, readShadowVar, resolveConcreteBoxShadow, shadowCssVar, shadowLarge, shadowLift, shadowMid, shadowNone, shadowSmall, shadowBase, shouldSkipInteractiveHoverLift, useInteractiveHoverLiftContainerHandlers, type AnimateInteractivePressSqueezeOptions, type HoverShadowConfig, } from './components/core/utils/hoverInteractiveLift';
|
|
14
14
|
export { useContainerPointerHoverHandlers, type UseContainerPointerHoverHandlersOptions, } from './components/core/utils/useContainerPointerHoverHandlers';
|
|
15
15
|
export { prefersReducedMotion, usePrefersReducedMotion, } from './components/core/utils/reducedMotion';
|
|
16
16
|
export { FIELD_SHELL_FOCUS_CLASS, FIELD_SHELL_TRANSITION_CLASS, fieldShellHoverClass, useFieldShellHoverLift, type FieldShellStatus, } from './components/core/utils/useFieldShellHoverLift';
|
|
17
|
-
export { SHADOW_LIFT_MOTION_CLASS, firstLevelHoverShadow, secondLevelShadow, usePersistentElShadow, useSecondLevelShadow, useSecondLevelShadowContainer, } from './components/core/utils/useShadowMotion';
|
|
17
|
+
export { SHADOW_LIFT_MOTION_CLASS, firstLevelHoverShadow, secondLevelShadow, shadowMotionFor, usePersistentElShadow, useSecondLevelShadow, useSecondLevelShadowContainer, } from './components/core/utils/useShadowMotion';
|
|
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
|
-
export { SHADOW_LAYER_GEOM,
|
|
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';
|
|
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, 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-Bw0KCdrV.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,79 +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
|
-
|
|
16
|
+
_ as MOTION_CONFIG_DEFAULTS,
|
|
17
17
|
h as MOTION_CSS_VAR,
|
|
18
18
|
d as MOTION_DEFAULTS,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
L as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
H as
|
|
19
|
+
p as OUTLINE_BORDER_WIDTH_MIN_PX,
|
|
20
|
+
O as SCALE_DEFAULTS,
|
|
21
|
+
L as SHADOW_INTERACTION_GEOM,
|
|
22
|
+
m as SHADOW_KNOB_CSS_DEFAULTS,
|
|
23
|
+
A as SHADOW_LAYER_GEOM,
|
|
24
|
+
v as SHADOW_LIFT_CSS_VAR,
|
|
25
|
+
f as SHADOW_LIFT_MOTION_CLASS,
|
|
26
|
+
E as SHADOW_OPACITY_BASE,
|
|
27
|
+
c as TEXT_SCALE_BASES,
|
|
28
|
+
I as activateThemeModePalette,
|
|
29
|
+
R as affixSlotClass,
|
|
30
|
+
D as affixToggleMinWClass,
|
|
31
|
+
H as animateInteractiveHoverLift,
|
|
32
|
+
F as animateInteractivePressSqueeze,
|
|
33
|
+
w as applyBurneThemeConfig,
|
|
34
|
+
N as applyCustomThemeTokens,
|
|
32
35
|
g as applyMotionCssTokens,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
pe as
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
ge as
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
36
|
+
M as applyThemeMode,
|
|
37
|
+
B as applyThemeTokens,
|
|
38
|
+
k as applyTokens,
|
|
39
|
+
x as buildTokenBoxShadow,
|
|
40
|
+
P as buttonGroupOverlapBorderClasses,
|
|
41
|
+
G as buttonGroupRoundingClasses,
|
|
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,
|
|
52
|
+
j as createConvergeRippleFromPointer,
|
|
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,
|
|
72
|
+
he as readShadowSize,
|
|
73
|
+
de as readShadowVar,
|
|
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,
|
|
87
|
+
Fe as shadowSmall,
|
|
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
|
|
91
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';
|
|
@@ -18,11 +18,15 @@ export type ThemeTokenOverrides = {
|
|
|
18
18
|
focusRingWidth?: number;
|
|
19
19
|
focusRingOffset?: number;
|
|
20
20
|
textScale?: number;
|
|
21
|
+
letterSpacing?: number;
|
|
21
22
|
fontFamily?: string;
|
|
22
23
|
fontFamilyMono?: string;
|
|
23
24
|
fontWeights?: ThemeFontWeights;
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
shadowOpacity?: number;
|
|
26
|
+
shadowBlur?: number;
|
|
27
|
+
shadowSpread?: number;
|
|
28
|
+
shadowOffsetX?: number;
|
|
29
|
+
shadowOffsetY?: number;
|
|
26
30
|
toastScrimSize?: number;
|
|
27
31
|
toastScrimDensity?: number;
|
|
28
32
|
};
|
|
@@ -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>;
|
|
@@ -23,12 +23,21 @@ export type ThemeTokenState = {
|
|
|
23
23
|
/** Keyboard focus ring outline offset (`--focus-ring-offset`), px. */
|
|
24
24
|
focusRingOffset: number;
|
|
25
25
|
textScale: number;
|
|
26
|
+
/** Global letter-spacing in em (`--letter-spacing`). @default 0 */
|
|
27
|
+
letterSpacing: number;
|
|
26
28
|
fontFamily: string;
|
|
27
29
|
fontFamilyMono: string;
|
|
28
30
|
fontWeights: ThemeFontWeights;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
/** Opacity multiplier for `--shadow-small|base|mid|large` (`--shadow-opacity`). */
|
|
32
|
+
shadowOpacity: number;
|
|
33
|
+
/** Blur multiplier (`--shadow-blur`). */
|
|
34
|
+
shadowBlur: number;
|
|
35
|
+
/** Spread multiplier (`--shadow-spread`). */
|
|
36
|
+
shadowSpread: number;
|
|
37
|
+
/** Horizontal shadow nudge in px (`--shadow-offset-x`). */
|
|
38
|
+
shadowOffsetX: number;
|
|
39
|
+
/** Vertical shadow nudge in px (`--shadow-offset-y`). */
|
|
40
|
+
shadowOffsetY: number;
|
|
32
41
|
/** Substrate size multiplier Toast (`--toast-scrim-size`). */
|
|
33
42
|
toastScrimSize: number;
|
|
34
43
|
/** Substrate Density Multiplier Toast (`--toast-scrim-density`). */
|
|
@@ -101,8 +110,12 @@ export declare const SCALE_DEFAULTS: {
|
|
|
101
110
|
readonly focusRingWidth: 2;
|
|
102
111
|
readonly focusRingOffset: 0;
|
|
103
112
|
readonly textScale: 1;
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
113
|
+
readonly letterSpacing: 0;
|
|
114
|
+
readonly shadowOpacity: 1;
|
|
115
|
+
readonly shadowBlur: 1;
|
|
116
|
+
readonly shadowSpread: 1;
|
|
117
|
+
readonly shadowOffsetX: 0;
|
|
118
|
+
readonly shadowOffsetY: 0;
|
|
106
119
|
readonly toastScrimSize: 1;
|
|
107
120
|
readonly toastScrimDensity: 1;
|
|
108
121
|
};
|
|
@@ -160,7 +173,22 @@ export declare const DEFAULT_FONT: string;
|
|
|
160
173
|
export declare const DEFAULT_FONT_MONO: string;
|
|
161
174
|
/** CSS value for a fluid scale knob — matches default tokens when `maxRem` is the CSS max. */
|
|
162
175
|
export declare function fluidScaleRem(maxRem: number): string;
|
|
163
|
-
/**
|
|
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. */
|
|
164
192
|
export declare function ensureModePalettes(state: ThemeTokenState): ThemeTokenState;
|
|
165
193
|
/** Copy the active mode palette onto top-level `colors`. */
|
|
166
194
|
export declare function activateThemeModePalette(state: ThemeTokenState, theme: ThemeMode): ThemeTokenState;
|