burne-ui 1.8.2 → 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/dist/components/core/utils/fieldShellVariant.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +13 -13
- 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-BHMufYQ1.cjs +14 -0
- package/dist/{themeRuntimeContext-D92UKMXD.js → themeRuntimeContext-Bw0KCdrV.js} +779 -733
- package/dist/tokens/config.d.ts +3 -0
- package/dist/tokens/index.d.ts +1 -1
- package/dist/ui.css +516 -37
- package/package.json +1 -1
- package/dist/themeRuntimeContext-BxpBT9_f.cjs +0 -14
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as ie,
|
|
3
|
-
import { f as t5, g as n5, M as o5,
|
|
2
|
+
import { a as ie, aE as ot, aF as m, aG as Kn, aa as Be, aH as He, ax as Nb, b as wb, aI as zt, ap as Db, a5 as cd, a7 as j, aJ as Xa, t as ze, as as $n, aK as Qc, s as Wn, a6 as eo, aq as Pb, aL as Ob, aM as Oe, aN as Bb, aO as kb, N as Fb, aP as Mb, aQ as Hb, aR as Gb, aS as Vb, aT as zb, aU as Ub, aV as ud, aW as Kb, aX as $b, aY as Ye, aZ as at, Z as Wb, a_ as Xb, a$ as Yb, b0 as jb, E as tn, G as to, b1 as qb, b2 as Zb, b3 as Qb, K as dd, b4 as Jb, b5 as ev, b6 as tv, b7 as nv, b8 as ov, b9 as Ze, n as Hr, ba as Ut, aB as Ue, bb as Jc, bc as no, bd as St, be as yo, aC as Gr, bf as Us, bg as oo, aA as fd, bh as Xn, ak as Ya, a2 as ro, bi as Eo, e as so, bj as xo, ay as Ro, bk as ao, bl as ja, bm as qa, bn as mt, r as rv, q as Jt, F as sv, bo as av, ab as mr, bp as md, bq as pd, br as lv, bs as iv, bt as cv, bu as eu, bv as uv, bw as tu, bx as dv, by as gd, bz as fv, bA as mv, bB as pv, aD as Cd, bC as hd, bD as gv, bE as Cv, bF as hv, bG as Za, bH as Sv, bI as bv, y as nu, X as ou, Q as ru, P as su, x as vv, u as Av, bJ as _v } from "./themeRuntimeContext-Bw0KCdrV.js";
|
|
3
|
+
import { f as t5, g as n5, M as o5, bK as r5, bL as s5, bM as a5, bN as l5, bO as i5, bP as c5, J as u5, bQ as d5, bR as f5, bS as m5, bT as p5, bU as g5, bV as C5, bW as h5 } from "./themeRuntimeContext-Bw0KCdrV.js";
|
|
4
4
|
import { jsx as i, jsxs as X, Fragment as Ae } from "react/jsx-runtime";
|
|
5
5
|
import { useRef as B, useLayoutEffect as ae, memo as vn, forwardRef as k, useImperativeHandle as Sd, useMemo as O, useCallback as x, useEffect as Le, Children as fe, isValidElement as re, useState as J, useContext as F, createContext as W, createElement as Yn, cloneElement as Ge, useId as Te, useSyncExternalStore as Vr, Fragment as st } from "react";
|
|
6
6
|
import Q from "gsap";
|
|
@@ -2670,7 +2670,7 @@ function U_(e, t, n, o, r) {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
const K_ = {
|
|
2672
2672
|
default: "bg-surface border-token text-foreground",
|
|
2673
|
-
outline: "bg-transparent border-token text-foreground",
|
|
2673
|
+
outline: "bg-transparent border-token-outline text-foreground",
|
|
2674
2674
|
secondary: "bg-secondary border-token text-secondary-foreground"
|
|
2675
2675
|
};
|
|
2676
2676
|
function Qd(e, t = "default") {
|
|
@@ -12199,7 +12199,7 @@ function Vw(e) {
|
|
|
12199
12199
|
}
|
|
12200
12200
|
const zw = {
|
|
12201
12201
|
default: "border-token bg-surface text-foreground",
|
|
12202
|
-
outline: "bg-transparent border-token text-foreground",
|
|
12202
|
+
outline: "bg-transparent border-token-outline text-foreground",
|
|
12203
12203
|
ghost: "bg-transparent border-token border-transparent text-foreground",
|
|
12204
12204
|
gloss: "border-0 bg-transparent text-foreground"
|
|
12205
12205
|
};
|
|
@@ -21021,7 +21021,7 @@ function cH(e, t) {
|
|
|
21021
21021
|
}
|
|
21022
21022
|
const uH = {
|
|
21023
21023
|
default: "",
|
|
21024
|
-
outline: "bg-transparent border-token rounded-mid p-xsmall",
|
|
21024
|
+
outline: "bg-transparent border-token-outline rounded-mid p-xsmall",
|
|
21025
21025
|
secondary: "bg-secondary border-token rounded-mid p-xsmall",
|
|
21026
21026
|
gloss: "border-0 p-small"
|
|
21027
21027
|
}, dH = {
|
|
@@ -22848,7 +22848,7 @@ function qG() {
|
|
|
22848
22848
|
}
|
|
22849
22849
|
const ZG = {
|
|
22850
22850
|
default: "bg-surface border-token",
|
|
22851
|
-
outline: "bg-transparent border-token",
|
|
22851
|
+
outline: "bg-transparent border-token-outline",
|
|
22852
22852
|
secondary: "bg-secondary border-token"
|
|
22853
22853
|
}, QG = {
|
|
22854
22854
|
small: "shadow-token-small",
|
|
@@ -23398,7 +23398,7 @@ function M1({
|
|
|
23398
23398
|
}
|
|
23399
23399
|
const H1 = 8, G1 = {
|
|
23400
23400
|
default: "border-token bg-surface text-foreground",
|
|
23401
|
-
outline: "bg-transparent border-token text-foreground",
|
|
23401
|
+
outline: "bg-transparent border-token-outline text-foreground",
|
|
23402
23402
|
secondary: "bg-secondary border-token text-secondary-foreground",
|
|
23403
23403
|
gloss: ""
|
|
23404
23404
|
}, Dh = {
|
|
@@ -25726,7 +25726,7 @@ function v2(e) {
|
|
|
25726
25726
|
const A2 = {
|
|
25727
25727
|
default: "bg-surface border-token text-foreground",
|
|
25728
25728
|
primary: "bg-primary border-token text-primary-foreground",
|
|
25729
|
-
outline: "bg-transparent border-token text-foreground",
|
|
25729
|
+
outline: "bg-transparent border-token-outline text-foreground",
|
|
25730
25730
|
secondary: "bg-secondary border-token text-secondary-foreground"
|
|
25731
25731
|
}, _2 = {
|
|
25732
25732
|
"top-right": "absolute right-0 top-0 z-10 translate-x-[38%] -translate-y-[38%]",
|
|
@@ -25766,7 +25766,7 @@ const A2 = {
|
|
|
25766
25766
|
}, E2 = "box-border isolate inline-flex max-w-full shrink-0 select-none items-center justify-center truncate rounded-full whitespace-nowrap motion-reduce:transition-none", x2 = "box-border isolate inline-flex items-center justify-center rounded-full whitespace-nowrap", R2 = "box-border isolate inline-flex shrink-0 rounded-full ring-2 ring-background motion-reduce:ring-1", fr = {
|
|
25767
25767
|
default: "bg-foreground",
|
|
25768
25768
|
primary: "bg-primary",
|
|
25769
|
-
outline: "bg-transparent border-token",
|
|
25769
|
+
outline: "bg-transparent border-token-outline",
|
|
25770
25770
|
secondary: "bg-secondary",
|
|
25771
25771
|
danger: "bg-danger",
|
|
25772
25772
|
success: "bg-success",
|
|
@@ -26232,7 +26232,7 @@ function IS() {
|
|
|
26232
26232
|
const tU = {
|
|
26233
26233
|
default: "bg-surface border-token text-foreground",
|
|
26234
26234
|
primary: "bg-primary border border-transparent text-primary-foreground",
|
|
26235
|
-
outline: "bg-transparent border-token text-foreground",
|
|
26235
|
+
outline: "bg-transparent border-token-outline text-foreground",
|
|
26236
26236
|
secondary: "bg-secondary border-token text-secondary-foreground"
|
|
26237
26237
|
}, nU = {
|
|
26238
26238
|
small: "xsmall",
|
|
@@ -26615,7 +26615,7 @@ const MU = "w-full", HU = {
|
|
|
26615
26615
|
gloss: "px-large py-mid"
|
|
26616
26616
|
}, uK = "ring-2 ring-inset ring-primary", dK = "hover:brightness-[0.97] motion-reduce:hover:brightness-100", fK = "flex flex-wrap items-center justify-between gap-base border-t-token px-large py-mid", mK = {
|
|
26617
26617
|
default: "bg-surface text-foreground",
|
|
26618
|
-
outline: "bg-transparent border-token text-foreground",
|
|
26618
|
+
outline: "bg-transparent border-token-outline text-foreground",
|
|
26619
26619
|
secondary: "bg-secondary text-secondary-foreground",
|
|
26620
26620
|
danger: "bg-surface-tint-danger text-foreground",
|
|
26621
26621
|
success: "bg-surface-tint-success text-foreground",
|
|
@@ -27546,7 +27546,7 @@ const qK = {
|
|
|
27546
27546
|
}, t$ = {
|
|
27547
27547
|
default: "rounded-large border-token bg-surface shadow-token-base",
|
|
27548
27548
|
secondary: "rounded-large border-token bg-secondary shadow-token-base",
|
|
27549
|
-
outline: "rounded-large bg-transparent border-token shadow-token-base",
|
|
27549
|
+
outline: "rounded-large bg-transparent border-token-outline shadow-token-base",
|
|
27550
27550
|
gloss: "rounded-large border-0"
|
|
27551
27551
|
}, YS = {
|
|
27552
27552
|
small: "gap-xsmall",
|
|
@@ -30662,7 +30662,7 @@ const hY = {
|
|
|
30662
30662
|
ghost: "flex flex-col",
|
|
30663
30663
|
gloss: "flex flex-col"
|
|
30664
30664
|
}, ld = {
|
|
30665
|
-
outline: "bg-transparent border-token rounded-mid text-foreground",
|
|
30665
|
+
outline: "bg-transparent border-token-outline rounded-mid text-foreground",
|
|
30666
30666
|
secondary: "bg-secondary border-token rounded-mid text-secondary-foreground"
|
|
30667
30667
|
}, Gn = m("bg-transparent text-foreground", Ze()), SY = {
|
|
30668
30668
|
default: m("rounded-mid", Gn),
|
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
|
@@ -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-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,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;
|