burne-ui 1.6.5 → 1.6.7
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 +39 -7
- package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/index.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +11 -7
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +5 -14
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +2 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +1 -1
- package/dist/components/composite/Form/formTypes.d.ts +1 -1
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +1 -1
- package/dist/components/core/Alert/alertTypes.d.ts +1 -1
- package/dist/components/core/Alert/useAlertRootState.d.ts +2 -2
- package/dist/components/core/Button/buttonStyles.d.ts +1 -1
- package/dist/components/core/Button/buttonTypes.d.ts +1 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +2 -2
- package/dist/components/core/Calendar/calendarParts.d.ts +2 -2
- package/dist/components/core/Calendar/calendarStyles.d.ts +2 -1
- package/dist/components/core/Calendar/index.d.ts +2 -2
- package/dist/components/core/Card/Card.d.ts +2 -1
- package/dist/components/core/Card/cardContext.d.ts +9 -2
- package/dist/components/core/Card/cardStyles.d.ts +15 -8
- package/dist/components/core/Card/cardTypes.d.ts +7 -2
- package/dist/components/core/Card/index.d.ts +2 -1
- package/dist/components/core/Card/useCardRootState.d.ts +2 -1
- package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +1 -7
- package/dist/components/core/Checkbox/index.d.ts +1 -1
- package/dist/components/core/Checkbox/useCheckboxRootState.d.ts +1 -5
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +1 -1
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +2 -2
- package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +3 -2
- package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +2 -1
- package/dist/components/core/ColorPicker/colorUtils.d.ts +2 -0
- package/dist/components/core/ColorPicker/useColorPickerRootState.d.ts +6 -0
- package/dist/components/core/ComboBox/useComboBoxInputState.d.ts +1 -1
- package/dist/components/core/Dialog/dialogStyles.d.ts +14 -10
- package/dist/components/core/Dialog/dialogTypes.d.ts +4 -15
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.d.ts +2 -2
- package/dist/components/core/Drawer/drawerAPI.d.ts +2 -0
- package/dist/components/core/Drawer/drawerStyles.d.ts +15 -13
- package/dist/components/core/Drawer/drawerTypes.d.ts +12 -1
- package/dist/components/core/Drawer/index.d.ts +1 -1
- package/dist/components/core/Drawer/useDrawerRootState.d.ts +1 -1
- package/dist/components/core/Expandable/expandableTypes.d.ts +1 -1
- package/dist/components/core/Field/fieldContext.d.ts +1 -1
- package/dist/components/core/Field/fieldStyles.d.ts +1 -1
- package/dist/components/core/Field/fieldTypes.d.ts +1 -1
- package/dist/components/core/Input/index.d.ts +1 -1
- package/dist/components/core/Input/inputControlParts.d.ts +1 -1
- package/dist/components/core/Input/inputTypes.d.ts +1 -1
- package/dist/components/core/Input/useInputRootState.d.ts +1 -1
- package/dist/components/core/Kbd/kbdStyles.d.ts +1 -1
- package/dist/components/core/Link/linkTypes.d.ts +1 -1
- package/dist/components/core/Link/useLinkRootState.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxAPI.d.ts +5 -2
- package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxStyles.d.ts +8 -5
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +1 -0
- package/dist/components/core/Loading/loadingTypes.d.ts +1 -1
- package/dist/components/core/Pagination/paginationStyles.d.ts +5 -4
- package/dist/components/core/Popover/popoverStyles.d.ts +21 -14
- package/dist/components/core/Popover/popoverTypes.d.ts +3 -5
- package/dist/components/core/Radio/Radio.d.ts +1 -1
- package/dist/components/core/Radio/index.d.ts +1 -1
- package/dist/components/core/Radio/radioStyles.d.ts +1 -7
- package/dist/components/core/Radio/useRadioRootState.d.ts +1 -5
- package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputStyles.d.ts +2 -2
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +1 -1
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/index.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +9 -6
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +2 -2
- package/dist/components/core/SelectionThumb/selectionThumbStyles.d.ts +5 -11
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +0 -4
- package/dist/components/core/Skeleton/skeletonStyles.d.ts +1 -1
- package/dist/components/core/Slider/sliderStyles.d.ts +7 -5
- package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
- package/dist/components/core/Slider/useSliderTrackState.d.ts +16 -16
- package/dist/components/core/Surface/surfaceStyles.d.ts +1 -1
- package/dist/components/core/Surface/surfaceTypes.d.ts +1 -1
- package/dist/components/core/Switch/Switch.d.ts +1 -1
- package/dist/components/core/Switch/index.d.ts +2 -2
- package/dist/components/core/Switch/switchAnimations.d.ts +1 -1
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchGeometry.d.ts +3 -3
- package/dist/components/core/Switch/switchStyles.d.ts +3 -2
- package/dist/components/core/Switch/switchTypes.d.ts +0 -2
- package/dist/components/core/Switch/useSwitchRootState.d.ts +14 -14
- package/dist/components/core/Table/tableStyles.d.ts +3 -3
- package/dist/components/core/Tabs/tabsTypes.d.ts +1 -1
- package/dist/components/core/Text/textTypes.d.ts +1 -1
- package/dist/components/core/TextArea/textAreaStyles.d.ts +4 -3
- package/dist/components/core/TextArea/textAreaTypes.d.ts +1 -1
- package/dist/components/core/TextArea/useTextAreaResize.d.ts +1 -1
- package/dist/components/core/TextArea/useTextAreaRootState.d.ts +1 -1
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +4 -3
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +1 -1
- package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +1 -1
- package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +1 -1
- package/dist/components/core/Toast/useToastProviderState.d.ts +1 -1
- package/dist/components/core/Toast/useToastRootState.d.ts +1 -1
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/core/ToggleButton/index.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +3 -1
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +1 -3
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -1
- package/dist/components/core/utils/controlHeightMeasure.d.ts +1 -1
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +13 -6
- package/dist/components/core/utils/inputAffixLayout.d.ts +1 -1
- package/dist/components/core/utils/motionConfig.d.ts +41 -5
- package/dist/components/core/utils/optionListItemParts.d.ts +6 -2
- package/dist/components/core/utils/{messageBannerSize.d.ts → sizeLayout/banner.d.ts} +5 -3
- package/dist/components/core/utils/{componentSize.d.ts → sizeLayout/componentSize.d.ts} +1 -0
- package/dist/components/core/utils/{controlSizeLayout.d.ts → sizeLayout/control.d.ts} +3 -1
- package/dist/components/core/utils/sizeLayout/index.d.ts +14 -0
- package/dist/components/core/utils/sizeLayout/option.d.ts +15 -0
- package/dist/components/core/utils/sizeLayout/panel.d.ts +52 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10648 -10390
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +5 -3
- package/dist/internal.js +78 -69
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeConfig.d.ts +1 -1
- package/dist/theme/themeDefaults.d.ts +56 -76
- package/dist/{themeRuntimeContext-DmzqBFsv.js → themeRuntimeContext-CE8HsqSx.js} +1861 -1765
- package/dist/themeRuntimeContext-zhfbKb8L.cjs +50 -0
- package/dist/tokens/breakpoints.d.ts +14 -0
- package/dist/tokens/config.d.ts +47 -13
- package/dist/tokens/index.d.ts +5 -2
- package/dist/tokens/overlayBackdrop.d.ts +17 -0
- package/dist/tokens/shadows.d.ts +21 -0
- package/dist/tokens/textScale.d.ts +36 -0
- package/dist/ui.css +441 -298
- package/package.json +4 -3
- package/dist/themeRuntimeContext-CQapx3IE.cjs +0 -50
package/dist/internal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./themeRuntimeContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./themeRuntimeContext-zhfbKb8L.cjs");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.SCALE_DEFAULTS=e.SCALE_DEFAULTS;exports.SHADOW_LAYER_GEOM=e.SHADOW_LAYER_GEOM;exports.SHADOW_LIFT_MOTION_CLASS=e.SHADOW_LIFT_MOTION_CLASS;exports.SHADOW_OPACITY_BASE=e.SHADOW_OPACITY_BASE;exports.SHADOW_SIZE_CSS_DEFAULT=e.SHADOW_SIZE_CSS_DEFAULT;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.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.gsap=e.gsapWithCSS;exports.initElementShadow=e.initElementShadow;exports.killMotion=e.killMotion;exports.mergeThemeTokenOverrides=e.mergeThemeTokenOverrides;exports.patchThemeColor=e.patchThemeColor;exports.prefersReducedInteractiveHoverLift=e.prefersReducedInteractiveHoverLift;exports.readControlHeightPx=e.readControlHeightPx;exports.readShadowSize=e.readShadowSize;exports.readShadowVar=e.readShadowVar;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.shadowMid=e.shadowMid;exports.shadowNone=e.shadowNone;exports.shouldSkipInteractiveHoverLift=e.shouldSkipInteractiveHoverLift;exports.themeTokenStateToConfig=e.themeTokenStateToConfig;exports.useBurneThemeRuntime=e.useBurneThemeRuntime;exports.useBurneThemeRuntimeOptional=e.useBurneThemeRuntimeOptional;exports.useConvergeRipples=e.useConvergeRipples;exports.useFieldShellHoverLift=e.useFieldShellHoverLift;exports.useGSAP=e.useGSAP;exports.useInteractiveHoverLiftContainerHandlers=e.useInteractiveHoverLiftContainerHandlers;exports.usePersistentElShadow=e.usePersistentElShadow;exports.useSecondLevelShadow=e.useSecondLevelShadow;exports.useSecondLevelShadowContainer=e.useSecondLevelShadowContainer;
|
package/dist/internal.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Escape hatch for burne-ui internals (devtools, theme editors, kit authors).
|
|
3
3
|
* App code should import from `burne-ui`, not `burne-ui/internal`.
|
|
4
4
|
*/
|
|
5
|
-
export { CONTROL_SIZE_LAYOUT, type ControlSizeLayout, } from './components/core/utils/
|
|
5
|
+
export { CONTROL_SIZE_LAYOUT, type ControlSizeLayout, } from './components/core/utils/sizeLayout';
|
|
6
6
|
export { readControlHeightPx } from './components/core/utils/controlHeightMeasure';
|
|
7
7
|
export { affixSlotClass, affixToggleMinWClass, } from './components/core/utils/inputAffixLayout';
|
|
8
8
|
export { buttonRootClass, buttonSpinnerClass, controlShellClass, buttonRippleTone, } from './components/core/Button/buttonStyles';
|
|
@@ -10,8 +10,10 @@ 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, initElementShadow, prefersReducedInteractiveHoverLift, readShadowSize, shadowLarge, shadowMid, shadowNone, shadowBase, shouldSkipInteractiveHoverLift, useInteractiveHoverLiftContainerHandlers, type AnimateInteractivePressSqueezeOptions, type HoverShadowConfig, } from './components/core/utils/hoverInteractiveLift';
|
|
13
|
+
export { animateInteractiveHoverLift, animateInteractivePressSqueeze, initElementShadow, prefersReducedInteractiveHoverLift, readShadowSize, readShadowVar, shadowCssVar, shadowLarge, shadowMid, shadowNone, shadowBase, shouldSkipInteractiveHoverLift, useInteractiveHoverLiftContainerHandlers, type AnimateInteractivePressSqueezeOptions, type HoverShadowConfig, } from './components/core/utils/hoverInteractiveLift';
|
|
14
14
|
export { FIELD_SHELL_FOCUS_CLASS, FIELD_SHELL_TRANSITION_CLASS, fieldShellHoverClass, useFieldShellHoverLift, type FieldShellStatus, } from './components/core/utils/useFieldShellHoverLift';
|
|
15
15
|
export { SHADOW_LIFT_MOTION_CLASS, firstLevelHoverShadow, secondLevelShadow, usePersistentElShadow, useSecondLevelShadow, useSecondLevelShadowContainer, } from './components/core/utils/useShadowMotion';
|
|
16
16
|
export { gsap, useGSAP, killMotion, ensureRippleEase } from './components/core/utils/gsapMotion';
|
|
17
|
-
export {
|
|
17
|
+
export { MOTION_CONFIG_DEFAULTS, MOTION_CSS_VAR, applyMotionCssTokens, } from './components/core/utils/motionConfig';
|
|
18
|
+
export { SHADOW_LAYER_GEOM, SHADOW_OPACITY_BASE, SHADOW_SIZE_CSS_DEFAULT, } from './tokens/shadows';
|
|
19
|
+
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';
|
package/dist/internal.js
CHANGED
|
@@ -1,78 +1,87 @@
|
|
|
1
|
-
import { C as s, a as o, b as t, D as r, c as n, d as
|
|
1
|
+
import { C as s, a as o, b as t, D as r, c as n, d as S, F as l, e as T, f as i, g as u, L as C, M as p, h, i as _, S as L, j as m, k as O, l as d, m as A, T as v, n as f, o as E, p as c, q as I, r as R, s as F, t as g, u as H, v as D, w as N, x as k, y as w, z as M, A as B, B as G, E as x, G as b, H as P, I as U, J as y, K as W, N as V, O as Y, P as q, Q as z, R as Z, U as j, V as K, W as X, 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 Se, a6 as le, a7 as Te, a8 as ie, a9 as ue, aa as Ce, ab as pe, ac as he, ad as _e, ae as Le, af as me, ag as Oe, ah as de, ai as Ae, aj as ve, ak as fe, al as Ee, am as ce, an as Ie, ao as Re, ap as Fe, aq as ge, ar as He, as as De, at as Ne } from "./themeRuntimeContext-CE8HsqSx.js";
|
|
2
2
|
export {
|
|
3
3
|
s as COLOR_CSS_VAR,
|
|
4
4
|
o as CONTROL_SIZE_LAYOUT,
|
|
5
5
|
t as ConvergeRippleLayer,
|
|
6
6
|
r as DARK_COLORS,
|
|
7
7
|
n as DEFAULT_FONT,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
S as DEFAULT_FONT_MONO,
|
|
9
|
+
l as FIELD_SHELL_FOCUS_CLASS,
|
|
10
|
+
T as FIELD_SHELL_TRANSITION_CLASS,
|
|
11
|
+
i as FONT_WEIGHT_CSS_VAR,
|
|
12
12
|
u as FONT_WEIGHT_DEFAULTS,
|
|
13
13
|
C as LIGHT_COLORS,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
L as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
H as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
B as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
P as
|
|
41
|
-
U as
|
|
42
|
-
y as
|
|
43
|
-
W as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
J as
|
|
53
|
-
Q as
|
|
54
|
-
$ as
|
|
55
|
-
ee as
|
|
56
|
-
ae as
|
|
57
|
-
se as
|
|
58
|
-
oe as
|
|
59
|
-
te as
|
|
60
|
-
re as
|
|
61
|
-
ne as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
ue as
|
|
67
|
-
Ce as
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Le as
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
14
|
+
p as MOTION_CONFIG_DEFAULTS,
|
|
15
|
+
h as MOTION_CSS_VAR,
|
|
16
|
+
_ as MOTION_DEFAULTS,
|
|
17
|
+
L as SCALE_DEFAULTS,
|
|
18
|
+
m as SHADOW_LAYER_GEOM,
|
|
19
|
+
O as SHADOW_LIFT_MOTION_CLASS,
|
|
20
|
+
d as SHADOW_OPACITY_BASE,
|
|
21
|
+
A as SHADOW_SIZE_CSS_DEFAULT,
|
|
22
|
+
v as TEXT_SCALE_BASES,
|
|
23
|
+
f as activateThemeModePalette,
|
|
24
|
+
E as affixSlotClass,
|
|
25
|
+
c as affixToggleMinWClass,
|
|
26
|
+
I as animateInteractiveHoverLift,
|
|
27
|
+
R as animateInteractivePressSqueeze,
|
|
28
|
+
F as applyBurneThemeConfig,
|
|
29
|
+
g as applyCustomThemeTokens,
|
|
30
|
+
H as applyMotionCssTokens,
|
|
31
|
+
D as applyThemeMode,
|
|
32
|
+
N as applyThemeTokens,
|
|
33
|
+
k as applyTokens,
|
|
34
|
+
w as buttonGroupOverlapBorderClasses,
|
|
35
|
+
M as buttonGroupRoundingClasses,
|
|
36
|
+
B as buttonGroupSegmentSurfaceClasses,
|
|
37
|
+
G as buttonGroupTextFrameClass,
|
|
38
|
+
x as buttonGroupTextSurfaceClasses,
|
|
39
|
+
b as buttonRippleTone,
|
|
40
|
+
P as buttonRootClass,
|
|
41
|
+
U as buttonSpinnerClass,
|
|
42
|
+
y as clearCustomThemeTokens,
|
|
43
|
+
W as clearThemeInlineTokens,
|
|
44
|
+
V as controlShellClass,
|
|
45
|
+
Y as createConvergeRippleAtPointer,
|
|
46
|
+
q as createConvergeRippleFromPointer,
|
|
47
|
+
z as createDefaultBurneThemeConfig,
|
|
48
|
+
Z as createDefaultThemeState,
|
|
49
|
+
j as ensureModePalettes,
|
|
50
|
+
K as ensureRippleEase,
|
|
51
|
+
X as exportBurneThemeConfigSource,
|
|
52
|
+
J as exportBurneThemeCss,
|
|
53
|
+
Q as exportDefaultBurneThemeConfigSource,
|
|
54
|
+
$ as exportThemeCss,
|
|
55
|
+
ee as fieldShellHoverClass,
|
|
56
|
+
ae as firstLevelHoverShadow,
|
|
57
|
+
se as fluidScaleRem,
|
|
58
|
+
oe as gsap,
|
|
59
|
+
te as initElementShadow,
|
|
60
|
+
re as killMotion,
|
|
61
|
+
ne as mergeThemeTokenOverrides,
|
|
62
|
+
Se as patchThemeColor,
|
|
63
|
+
le as prefersReducedInteractiveHoverLift,
|
|
64
|
+
Te as readControlHeightPx,
|
|
65
|
+
ie as readShadowSize,
|
|
66
|
+
ue as readShadowVar,
|
|
67
|
+
Ce as resolveCustomThemeTokens,
|
|
68
|
+
pe as resolveTheme,
|
|
69
|
+
he as resolveThemeTokenState,
|
|
70
|
+
_e as secondLevelShadow,
|
|
71
|
+
Le as shadowBase,
|
|
72
|
+
me as shadowCssVar,
|
|
73
|
+
Oe as shadowLarge,
|
|
74
|
+
de as shadowMid,
|
|
75
|
+
Ae as shadowNone,
|
|
76
|
+
ve as shouldSkipInteractiveHoverLift,
|
|
77
|
+
fe as themeTokenStateToConfig,
|
|
78
|
+
Ee as useBurneThemeRuntime,
|
|
79
|
+
ce as useBurneThemeRuntimeOptional,
|
|
80
|
+
Ie as useConvergeRipples,
|
|
81
|
+
Re as useFieldShellHoverLift,
|
|
82
|
+
Fe as useGSAP,
|
|
83
|
+
ge as useInteractiveHoverLiftContainerHandlers,
|
|
84
|
+
He as usePersistentElShadow,
|
|
85
|
+
De as useSecondLevelShadow,
|
|
86
|
+
Ne as useSecondLevelShadowContainer
|
|
78
87
|
};
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { applyThemeTokens, clearThemeInlineTokens, createDefaultThemeState, ensureModePalettes, activateThemeModePalette, patchThemeColor, exportThemeCss, 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, 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';
|
|
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';
|
|
@@ -119,4 +119,4 @@ export declare function exportBurneThemeConfigSource(config: BurneThemeConfig, o
|
|
|
119
119
|
exportName?: string;
|
|
120
120
|
}): string;
|
|
121
121
|
/** @internal used by docs — list of motion keys mirrored from ThemeTokenState */
|
|
122
|
-
export declare const BURNE_THEME_MOTION_STATE_KEYS: readonly ["interactiveDuration", "interactiveEase", "hoverLiftEase", "tooltipDuration", "switchThumbDuration", "switchThumbEase", "selectionFillDuration", "selectionFillEase", "hoverLiftScale", "badgeAnchorHoverLiftScale", "rippleDefaultDuration", "rippleDefaultOpacityFrom", "rippleExpandableDuration", "rippleExpandableOpacityFrom", "rippleEaseCss", "feedbackExpandDuration", "expandDuration", "expandOpenEase", "progressFillDuration", "progressFillEase", "loadingDotsDuration", "loadingDotsEaseUp", "loadingDotsEaseDown", "enableHoverLift", "enablePressSqueeze", "enableToggleButtonFill", "enableRipple", "enableExpandable", "enableToastStack", "enableAsyncButtonCrossfade", "enableContentFade", "enableFeedbackExpand", "enableProgressFill", "enableLoadingDots"];
|
|
122
|
+
export declare const BURNE_THEME_MOTION_STATE_KEYS: readonly ["interactiveDuration", "interactiveEase", "hoverLiftEase", "tooltipDuration", "switchThumbDuration", "switchThumbEase", "selectionFillDuration", "selectionFillEase", "hoverLiftScale", "badgeAnchorHoverLiftScale", "rippleDefaultDuration", "rippleDefaultOpacityFrom", "rippleExpandableDuration", "rippleExpandableOpacityFrom", "rippleEaseCss", "feedbackExpandDuration", "expandDuration", "expandOpenEase", "surfaceTransitionDuration", "toastDismissDuration", "toastDismissEase", "progressFillDuration", "progressFillEase", "loadingDotsDuration", "loadingDotsEaseUp", "loadingDotsEaseDown", "enableHoverLift", "enablePressSqueeze", "enableToggleButtonFill", "enableRipple", "enableExpandable", "enableToastStack", "enableAsyncButtonCrossfade", "enableContentFade", "enableFeedbackExpand", "enableProgressFill", "enableLoadingDots"];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { FONT_WEIGHT_CSS_VAR, FONT_WEIGHT_DEFAULTS, FontWeightStep } from '../tokens/fontWeights';
|
|
2
|
+
import { TEXT_SCALE_BASES } from '../tokens/textScale';
|
|
2
3
|
import { DARK_COLORS, LIGHT_COLORS } from './themePalettes';
|
|
3
4
|
export type ThemeMode = "dark" | "light";
|
|
4
5
|
export { FONT_WEIGHT_DEFAULTS, FONT_WEIGHT_CSS_VAR };
|
|
5
6
|
export { DARK_COLORS, LIGHT_COLORS };
|
|
7
|
+
export { TEXT_SCALE_BASES };
|
|
6
8
|
export type ThemeStatusForegroundKey = "dangerForeground" | "successForeground" | "infoForeground" | "warningForeground";
|
|
7
9
|
export type ThemeDerivedColorKey = "primaryHover" | "defaultHover" | "secondaryHover" | "tertiaryHover" | "surfaceTintDanger" | "surfaceTintDangerHover" | "dangerFillHover" | "surfaceTintSuccess" | "surfaceTintSuccessHover" | "successFillHover" | "surfaceTintInfo" | "surfaceTintInfoHover" | "infoFillHover" | "surfaceTintWarning" | "surfaceTintWarningHover" | "warningFillHover" | "convergeRipplePrimaryFill" | "convergeRippleNeutral" | "convergeRippleNeutralMuted" | "convergeRippleDanger" | "convergeRippleSuccess" | "convergeRippleInfo" | "convergeRippleWarning";
|
|
8
10
|
export type ThemeColorKey = "background" | "surface" | "secondary" | "secondaryForeground" | "tertiary" | "tertiaryForeground" | "border" | "foreground" | "muted" | "primary" | "primaryForeground" | "primaryTint" | "primaryTintStrong" | "focusRing" | "indicator" | "indicatorForeground" | "danger" | "success" | "info" | "warning" | ThemeStatusForegroundKey | ThemeDerivedColorKey;
|
|
@@ -56,6 +58,11 @@ export type ThemeTokenState = {
|
|
|
56
58
|
loadingDotsDuration: number;
|
|
57
59
|
loadingDotsEaseUp: string;
|
|
58
60
|
loadingDotsEaseDown: string;
|
|
61
|
+
/** CSS `--motion-surface-duration` (surface / text / shadow transitions), ms. */
|
|
62
|
+
surfaceTransitionDuration: number;
|
|
63
|
+
/** Toast dismiss + last-scrim out, ms. */
|
|
64
|
+
toastDismissDuration: number;
|
|
65
|
+
toastDismissEase: string;
|
|
59
66
|
enableHoverLift: boolean;
|
|
60
67
|
enablePressSqueeze: boolean;
|
|
61
68
|
enableToggleButtonFill: boolean;
|
|
@@ -86,83 +93,49 @@ export declare const SCALE_DEFAULTS: {
|
|
|
86
93
|
readonly toastScrimDensity: 1;
|
|
87
94
|
};
|
|
88
95
|
export declare const MOTION_DEFAULTS: {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/** Basic typography sizes from `src/tokens/styles.css` (rem). */
|
|
128
|
-
export declare const TEXT_SCALE_BASES: {
|
|
129
|
-
readonly tools: {
|
|
130
|
-
readonly size: 0.6875;
|
|
131
|
-
readonly line: 0.875;
|
|
132
|
-
};
|
|
133
|
-
readonly xsmall: {
|
|
134
|
-
readonly size: 0.75;
|
|
135
|
-
readonly line: 1;
|
|
136
|
-
};
|
|
137
|
-
readonly small: {
|
|
138
|
-
readonly size: 0.875;
|
|
139
|
-
readonly line: 1.25;
|
|
140
|
-
};
|
|
141
|
-
readonly base: {
|
|
142
|
-
readonly size: 1;
|
|
143
|
-
readonly line: 1.5;
|
|
144
|
-
};
|
|
145
|
-
readonly mid: {
|
|
146
|
-
readonly size: 1.125;
|
|
147
|
-
readonly line: 1.75;
|
|
148
|
-
};
|
|
149
|
-
readonly large: {
|
|
150
|
-
readonly size: 1.25;
|
|
151
|
-
readonly line: 1.75;
|
|
152
|
-
};
|
|
153
|
-
readonly xlarge: {
|
|
154
|
-
readonly size: 1.5;
|
|
155
|
-
readonly line: 2;
|
|
156
|
-
};
|
|
157
|
-
readonly "2xlarge": {
|
|
158
|
-
readonly size: 1.875;
|
|
159
|
-
readonly line: 2.25;
|
|
160
|
-
};
|
|
161
|
-
readonly "3xlarge": {
|
|
162
|
-
readonly size: 2.25;
|
|
163
|
-
readonly line: 2.5;
|
|
164
|
-
};
|
|
96
|
+
pressSqueezeMid: number;
|
|
97
|
+
interactiveDuration: number;
|
|
98
|
+
interactiveEase: string;
|
|
99
|
+
hoverLiftEase: string;
|
|
100
|
+
tooltipDuration: number;
|
|
101
|
+
switchThumbDuration: number;
|
|
102
|
+
switchThumbEase: string;
|
|
103
|
+
selectionFillEase: string;
|
|
104
|
+
selectionFillDuration: number;
|
|
105
|
+
hoverLiftScale: number;
|
|
106
|
+
badgeAnchorHoverLiftScale: number;
|
|
107
|
+
rippleDefaultDuration: number;
|
|
108
|
+
rippleDefaultOpacityFrom: number;
|
|
109
|
+
rippleExpandableDuration: number;
|
|
110
|
+
rippleExpandableOpacityFrom: number;
|
|
111
|
+
rippleEaseCss: string;
|
|
112
|
+
feedbackExpandDuration: number;
|
|
113
|
+
expandDuration: number;
|
|
114
|
+
expandOpenEase: string;
|
|
115
|
+
surfaceTransitionDuration: number;
|
|
116
|
+
toastDismissDuration: number;
|
|
117
|
+
toastDismissEase: string;
|
|
118
|
+
enableHoverLift: boolean;
|
|
119
|
+
enablePressSqueeze: boolean;
|
|
120
|
+
enableToggleButtonFill: boolean;
|
|
121
|
+
enableRipple: boolean;
|
|
122
|
+
enableExpandable: boolean;
|
|
123
|
+
enableToastStack: boolean;
|
|
124
|
+
enableAsyncButtonCrossfade: boolean;
|
|
125
|
+
enableContentFade: boolean;
|
|
126
|
+
enableFeedbackExpand: boolean;
|
|
127
|
+
progressFillDuration: number;
|
|
128
|
+
progressFillEase: string;
|
|
129
|
+
enableProgressFill: boolean;
|
|
130
|
+
loadingDotsDuration: number;
|
|
131
|
+
loadingDotsEaseUp: string;
|
|
132
|
+
loadingDotsEaseDown: string;
|
|
133
|
+
enableLoadingDots: boolean;
|
|
165
134
|
};
|
|
135
|
+
export declare const DEFAULT_FONT: string;
|
|
136
|
+
export declare const DEFAULT_FONT_MONO: string;
|
|
137
|
+
/** CSS value for a fluid scale knob — matches default tokens when `maxRem` is the CSS max. */
|
|
138
|
+
export declare function fluidScaleRem(maxRem: number): string;
|
|
166
139
|
/** Ensure `modePalettes` exists (migration for older playground state snapshots). */
|
|
167
140
|
export declare function ensureModePalettes(state: ThemeTokenState): ThemeTokenState;
|
|
168
141
|
/** Copy the active mode palette onto top-level `colors`. */
|
|
@@ -171,5 +144,12 @@ export declare function activateThemeModePalette(state: ThemeTokenState, theme:
|
|
|
171
144
|
export declare function patchThemeColor(state: ThemeTokenState, key: ThemeColorKey, value: string): ThemeTokenState;
|
|
172
145
|
export declare function createDefaultThemeState(theme?: ThemeMode): ThemeTokenState;
|
|
173
146
|
export declare function clearThemeInlineTokens(root?: HTMLElement): void;
|
|
147
|
+
/**
|
|
148
|
+
* Apply theme tokens as inline CSS variables.
|
|
149
|
+
* Only values that differ from kit defaults are written — matching values are
|
|
150
|
+
* cleared so `burne-ui/styles.css` and user override sheets can still win
|
|
151
|
+
* (inline styles otherwise block all stylesheet redefinitions).
|
|
152
|
+
*/
|
|
174
153
|
export declare function applyThemeTokens(state: ThemeTokenState, root?: HTMLElement): void;
|
|
154
|
+
/** CSS snapshot of tokens that differ from kit defaults (for override stylesheets). */
|
|
175
155
|
export declare function exportThemeCss(state: ThemeTokenState): string;
|