burne-ui 1.8.2 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/core/Badge/badgeAPI.d.ts +2 -0
- package/dist/components/core/Badge/badgeStyles.d.ts +11 -5
- package/dist/components/core/Kbd/kbdStyles.d.ts +3 -1
- package/dist/components/core/utils/fieldShellVariant.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4236 -4230
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +74 -72
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeDefaults.d.ts +17 -2
- package/dist/{themeRuntimeContext-D92UKMXD.js → themeRuntimeContext-CFUwV5z2.js} +776 -733
- package/dist/themeRuntimeContext-POhnqI3h.cjs +14 -0
- package/dist/tokens/config.d.ts +3 -0
- package/dist/tokens/index.d.ts +1 -1
- package/dist/ui.css +623 -61
- package/package.json +1 -1
- package/dist/themeRuntimeContext-BxpBT9_f.cjs +0 -14
|
@@ -4,6 +4,8 @@ export { isInlineIconChild, readBadgeInlineIconPosition } from './badgeInlineIco
|
|
|
4
4
|
export declare function hasInlineIconChildren(children: ReactNode): boolean;
|
|
5
5
|
export declare function hasBadgeTextContent(children: ReactNode): boolean;
|
|
6
6
|
export declare function hasMeaningfulContent(node: ReactNode): boolean;
|
|
7
|
+
/** Single digit `0`–`9` → circular badge (same layout as icon-only). */
|
|
8
|
+
export declare function isBadgeSingleDigitContent(children: ReactNode): boolean;
|
|
7
9
|
export declare function renderBadgeInlineChildren(children: ReactNode, size: BadgeSize): ReactNode;
|
|
8
10
|
export declare function isBadgeElement(child: ReactElement): boolean;
|
|
9
11
|
export declare function resolveBadgeBody({ size, children, icon, iconOnly, iconPosition, inlineIconMode, meaningChild, dot, }: ResolveBadgeBodyProps): ResolvedBadgeBody;
|
|
@@ -4,17 +4,23 @@ export type { BadgePlacement, BadgeSize, BadgeStatus, BadgeVariant } from './bad
|
|
|
4
4
|
export declare const BADGE_VARIANT_SURFACE: Record<Exclude<BadgeVariant, "gloss">, string>;
|
|
5
5
|
export declare const BADGE_ANCHOR_PLACEMENT: Record<BadgePlacement, string>;
|
|
6
6
|
export declare const BADGE_TEXT_ROW: Record<BadgeSize, string>;
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const BADGE_ICON_ONLY: Record<BadgeSize, string>;
|
|
7
|
+
/** Equal box for icon-only / single-digit — fixed square → circle with `rounded-full`. */
|
|
8
|
+
export declare const BADGE_CIRCLE: Record<BadgeSize, string>;
|
|
10
9
|
export declare const BADGE_DOT_DIM: Record<BadgeSize, string>;
|
|
10
|
+
export declare const BADGE_TEXT_VARIANT: Record<BadgeSize, TextVariant>;
|
|
11
|
+
/** Same tight line-box as panel titles (`Card.Title` → `leading-none`). */
|
|
12
|
+
export declare const BADGE_TEXT_CLASS = "leading-none";
|
|
11
13
|
export declare const BADGE_INLINE_SVG_SIZE: Record<BadgeSize, string>;
|
|
12
14
|
export declare const BADGE_TEXT_ROW_BASE = "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";
|
|
13
15
|
export declare const BADGE_ICON_ONLY_BASE = "box-border isolate inline-flex items-center justify-center rounded-full whitespace-nowrap";
|
|
14
16
|
export declare const BADGE_DOT_RING = "box-border isolate inline-flex shrink-0 rounded-full ring-2 ring-background motion-reduce:ring-1";
|
|
15
17
|
export declare function dotFillClass(variant: BadgeVariant, status: BadgeStatus): string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Panel surface follows `variant` only (Alert pattern).
|
|
20
|
+
* `status` tints text/icons via `SEMANTIC_STATUS_TEXT` — not the shell fill.
|
|
21
|
+
*/
|
|
22
|
+
export declare function badgeSurfaceClass(variant: BadgeVariant, status?: BadgeStatus): string;
|
|
23
|
+
export declare function badgeStatusTextClass(status: BadgeStatus): string;
|
|
18
24
|
export declare function badgeDotSurfaceClass(variant: BadgeVariant, status: BadgeStatus, isGloss: boolean): string;
|
|
19
25
|
/** Icon wrapper in simple/inline API (`icon` prop or `data-icon` on child). */
|
|
20
26
|
export declare const BADGE_ICON_SLOT_BASE = "inline-flex shrink-0 [&_svg]:shrink-0";
|
|
@@ -2,10 +2,12 @@ import { TextVariant } from '../Text';
|
|
|
2
2
|
import { KbdSize, KbdVariant } from './kbdTypes';
|
|
3
3
|
export declare const KBD_VARIANT_SURFACE: Record<Exclude<KbdVariant, "gloss">, string>;
|
|
4
4
|
export declare const KBD_TEXT_VARIANT: Record<KbdSize, TextVariant>;
|
|
5
|
+
/** Same tight line-box as Badge / panel titles (`leading-none`). */
|
|
6
|
+
export declare const KBD_TEXT_CLASS = "leading-none";
|
|
5
7
|
export declare const KBD_LAYOUT: Record<KbdSize, string>;
|
|
6
8
|
export declare const KBD_ROOT_BASE_CLASS = "box-border isolate inline-flex max-w-full shrink-0 select-none items-center justify-center whitespace-nowrap rounded-small font-mono motion-reduce:transition-none";
|
|
7
9
|
export declare const KBD_GROUP_BASE_CLASS = "inline-flex items-center gap-xsmall";
|
|
8
|
-
export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-xsmall";
|
|
10
|
+
export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-xsmall leading-none";
|
|
9
11
|
export declare function kbdSurfaceClass(variant: KbdVariant): string;
|
|
10
12
|
export declare function kbdRootClass({ variant, size, motionClass, slotRoot, className, }: {
|
|
11
13
|
variant: KbdVariant;
|
|
@@ -8,7 +8,8 @@ export declare const FIELD_SHELL_VARIANT_BG_CLASS: Record<FieldShellFilledVarian
|
|
|
8
8
|
export declare function fieldShellHoverVariantForShell(variant: FieldShellFilledVariant): "default" | "secondary";
|
|
9
9
|
export declare function fieldShellVariantFromButtonGroup(groupVariant?: ButtonVariant): FieldShellFilledVariant | "gloss";
|
|
10
10
|
/**
|
|
11
|
-
* Neutral variant surface +
|
|
11
|
+
* Neutral variant surface + border token.
|
|
12
|
+
* Outline shells use `border-token-outline` (hairline floor when theme border is 0).
|
|
12
13
|
* Status accents live on the permanent status ring (`fieldShellFocusRingClass`), not the border.
|
|
13
14
|
*/
|
|
14
15
|
export declare function resolveFieldShellSurfaceClass({ variant, }: {
|