burne-ui 1.6.7 → 1.6.9
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/composite/AlertDialog/alertDialogTypes.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +2 -1
- package/dist/components/core/Alert/alertStyles.d.ts +3 -1
- package/dist/components/core/Button/buttonStyles.d.ts +1 -0
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +3 -2
- package/dist/components/core/ComboBox/comboBoxStyles.d.ts +2 -2
- package/dist/components/core/Dialog/dialogTypes.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +3 -3
- package/dist/components/core/Drawer/drawerTypes.d.ts +1 -1
- package/dist/components/core/Expandable/expandableStyles.d.ts +3 -7
- package/dist/components/core/Input/inputStyles.d.ts +3 -11
- package/dist/components/core/Popover/popoverContext.d.ts +7 -0
- package/dist/components/core/Popover/popoverStyles.d.ts +8 -7
- package/dist/components/core/Radio/radioStyles.d.ts +3 -2
- package/dist/components/core/Select/selectStyles.d.ts +2 -2
- package/dist/components/core/Slider/sliderStyles.d.ts +6 -2
- package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
- package/dist/components/core/Slider/sliderTypes.d.ts +1 -1
- package/dist/components/core/Switch/switchStyles.d.ts +2 -2
- package/dist/components/core/Text/textStyles.d.ts +7 -1
- package/dist/components/core/TextArea/textAreaStyles.d.ts +2 -4
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +3 -6
- package/dist/components/core/Toast/toastStyles.d.ts +4 -3
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +3 -1
- package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +4 -0
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +0 -1
- package/dist/components/core/Tooltip/tooltipStyles.d.ts +10 -7
- package/dist/components/core/utils/fieldShellVariant.d.ts +7 -3
- package/dist/components/core/utils/hoverVariant.d.ts +1 -1
- package/dist/components/core/utils/sizeLayout/collapsible.d.ts +25 -0
- package/dist/components/core/utils/sizeLayout/index.d.ts +2 -0
- package/dist/components/core/utils/sizeLayout/panel.d.ts +8 -6
- package/dist/components/core/utils/useFieldShellHoverLift.d.ts +20 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +7670 -7654
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/theme/themeDefaults.d.ts +1 -1
- package/dist/{themeRuntimeContext-CE8HsqSx.js → themeRuntimeContext-DPX6IpU8.js} +1965 -1942
- package/dist/themeRuntimeContext-DuLxYkX1.cjs +50 -0
- package/dist/tokens/config.d.ts +4 -0
- package/dist/tokens/index.d.ts +1 -1
- package/dist/ui.css +349 -92
- package/package.json +1 -1
- package/dist/themeRuntimeContext-zhfbKb8L.cjs +0 -50
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
* - `option` — Checkbox, Radio, Switch, ListBox rows
|
|
7
7
|
* - `banner` — Alert, Toast
|
|
8
8
|
* - `panel` — Dialog, AlertDialog, Popover, Card, Drawer
|
|
9
|
+
* - `collapsible` — Disclosure, Expandable (Accordion)
|
|
9
10
|
*/
|
|
10
11
|
export { type ComponentSize, COMPONENT_SIZES, resolveComponentSize, } from './componentSize';
|
|
11
12
|
export { type ControlSizeLayout, CONTROL_SIZE_LAYOUT, } from './control';
|
|
12
13
|
export { type OptionControlSizeLayout, OPTION_CONTROL_SIZE_LAYOUT, } from './option';
|
|
13
14
|
export { type MessageBannerSize, type MessageBannerLoadingSize, type MessageBannerSizePreset, MESSAGE_BANNER_SIZE, resolveMessageBannerSize, messageBannerSizePreset, alertRootShellClass, toastViewportWidthPx, } from './banner';
|
|
14
15
|
export { type PanelSize, type PanelSizeLayout, type CardSize, PANEL_SIZE_LAYOUT, CARD_SIZE_LAYOUT, resolvePanelSize, resolveCardSize, panelSizeLayout, cardSizeLayout, } from './panel';
|
|
16
|
+
export { type CollapsibleSize, type CollapsibleSizeLayout, COLLAPSIBLE_SIZE_LAYOUT, resolveCollapsibleSize, collapsibleSizeLayout, } from './collapsible';
|
|
@@ -16,27 +16,29 @@ export type PanelSizeLayout = {
|
|
|
16
16
|
/** Popover max width */
|
|
17
17
|
popoverMax: string;
|
|
18
18
|
maxHeight: string;
|
|
19
|
-
/** Dialog / AlertDialog / Card / Drawer
|
|
19
|
+
/** Dialog / AlertDialog / Card / Drawer / Popover.Header padding */
|
|
20
20
|
headerPadding: string;
|
|
21
|
-
/** Dialog / AlertDialog / Card / Drawer
|
|
21
|
+
/** Dialog / AlertDialog / Card / Drawer / Popover.Body padding */
|
|
22
22
|
bodyPadding: string;
|
|
23
23
|
/** Dialog / AlertDialog / Card / Drawer footer padding */
|
|
24
24
|
footerPadding: string;
|
|
25
|
-
/** Popover single-block content padding */
|
|
26
|
-
contentPadding: string;
|
|
27
25
|
/** Dialog header row gap (heading block | close) — not for title↔description */
|
|
28
26
|
headerGap: string;
|
|
29
27
|
/** AlertDialog header grid gap (indicator | title) */
|
|
30
28
|
alertHeaderGap: string;
|
|
31
29
|
/** Title + description stack gap */
|
|
32
30
|
headingGap: string;
|
|
33
|
-
/** Popover default content gap class */
|
|
34
|
-
contentGap: string;
|
|
35
31
|
titleVariant: TextVariant;
|
|
36
32
|
/** AlertDialog title (can read larger than panel title) */
|
|
37
33
|
alertTitleVariant: TextVariant;
|
|
38
34
|
descVariant: TextVariant;
|
|
39
35
|
bodyVariant: TextVariant;
|
|
36
|
+
/**
|
|
37
|
+
* Panel title line-box — `leading-none` so glyphs sit at the header top edge
|
|
38
|
+
* (not vertically centered vs Close). Overridable via Title `className`
|
|
39
|
+
* (`leading-relaxed`, …) — Text keeps role leading as a separate `leading-*`.
|
|
40
|
+
*/
|
|
41
|
+
titleClassName: string;
|
|
40
42
|
descClassName: string;
|
|
41
43
|
/** AlertDialog status icon box */
|
|
42
44
|
iconClass: string;
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { FieldShellFilledVariant } from './fieldShellVariant';
|
|
3
|
-
export type FieldShellStatus
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { FieldShellFilledVariant, FieldShellStatus } from './fieldShellVariant';
|
|
3
|
+
export type { FieldShellStatus };
|
|
4
|
+
/**
|
|
5
|
+
* Field shell hover background via `hoverVariant` (variant only — status is ring accent).
|
|
6
|
+
* `focus-within` — focus on inner control.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fieldShellHoverClass(enabled: boolean, _status?: FieldShellStatus, variant?: FieldShellFilledVariant): string;
|
|
9
|
+
/** Shell transition: background, border, shadow, focus-ring (always, including disabled). */
|
|
7
10
|
export declare const FIELD_SHELL_TRANSITION_CLASS = "field-shell-transition motion-reduce:transition-none";
|
|
8
|
-
/** Outer
|
|
11
|
+
/** Outer focus ring on shell `:focus-within` (default status — `--color-focus-ring`). */
|
|
9
12
|
export declare const FIELD_SHELL_FOCUS_CLASS = "focus-within-ring";
|
|
13
|
+
/**
|
|
14
|
+
* Permanent status-colored outer ring (idle + focus). Keeps status focus-ring token on `:focus-within`
|
|
15
|
+
* so `focus-within-ring` is not used for non-default status.
|
|
16
|
+
*/
|
|
17
|
+
export declare const FIELD_SHELL_STATUS_RING: Record<Exclude<FieldShellStatus, "default">, string>;
|
|
18
|
+
/**
|
|
19
|
+
* Focus / status ring for field shells.
|
|
20
|
+
* - `default` → `focus-within-ring` (keyboard / focus only)
|
|
21
|
+
* - status → always-visible status focus-ring token (same width/offset as focus-ring)
|
|
22
|
+
*/
|
|
23
|
+
export declare function fieldShellFocusRingClass(status?: FieldShellStatus): string;
|
|
10
24
|
/**
|
|
11
25
|
* Hover lift and sm → md shadow for input-like field shells (`Input`, `TextArea`, `TimeField`, `ComboBox`).
|
|
12
26
|
*/
|