burne-ui 1.7.6 → 1.7.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/README.md +3 -3
- package/cli/init.js +16 -16
- package/cli/theme-bridge.css +107 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +1 -1
- package/dist/components/core/Disclosure/Disclosure.d.ts +4 -4
- package/dist/components/core/Disclosure/disclosureAPI.d.ts +8 -0
- package/dist/components/core/Disclosure/disclosureParts.d.ts +11 -1
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +7 -0
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +13 -7
- package/dist/components/core/Disclosure/index.d.ts +7 -4
- package/dist/components/core/Disclosure/useDisclosureRootState.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +4 -4
- package/dist/components/core/Field/Field.d.ts +1 -1
- package/dist/components/core/Field/fieldContext.d.ts +4 -4
- package/dist/components/core/Field/fieldParts.d.ts +7 -4
- package/dist/components/core/Field/fieldStyles.d.ts +31 -8
- package/dist/components/core/Field/fieldTypes.d.ts +12 -1
- package/dist/components/core/Field/index.d.ts +3 -3
- package/dist/components/core/Label/Label.d.ts +1 -1
- package/dist/components/core/Label/labelParts.d.ts +1 -1
- package/dist/components/core/Label/labelTypes.d.ts +4 -0
- package/dist/components/core/Link/Link.d.ts +1 -1
- package/dist/components/core/Link/index.d.ts +1 -1
- package/dist/components/core/Link/linkStyles.d.ts +3 -3
- package/dist/components/core/Link/linkTypes.d.ts +5 -7
- package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +1 -1
- package/dist/components/core/Table/tableTypes.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8435 -8281
- package/dist/tokens/config.d.ts +6 -5
- package/dist/ui.css +18 -18
- package/package.json +2 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TextVariant } from '../Text';
|
|
2
2
|
import { LinkSize } from './linkTypes';
|
|
3
|
-
export declare const LINK_ANCHOR_CLASS = "group/link inline-flex max-w-full min-w-0 items-center gap-xsmall rounded-mid no-underline outline-none w-fit text-
|
|
3
|
+
export declare const LINK_ANCHOR_CLASS = "group/link inline-flex max-w-full min-w-0 items-center gap-xsmall rounded-mid no-underline outline-none w-fit text-foreground focus-ring";
|
|
4
4
|
export declare const LINK_TEXT_BASE_CLASS = "min-w-0 truncate font-w-mid";
|
|
5
5
|
export declare const LINK_TEXT_UNDERLINE_CLASS = "underline decoration-current/70 underline-offset-[0.2em]";
|
|
6
|
-
export declare const LINK_ICON_MUTED_CLASS = "text-muted group-hover/link:text-
|
|
7
|
-
export declare const
|
|
6
|
+
export declare const LINK_ICON_MUTED_CLASS = "text-muted group-hover/link:text-foreground group-focus-visible/link:text-foreground";
|
|
7
|
+
export declare const LINK_ICON_FOREGROUND_CLASS = "text-foreground";
|
|
8
8
|
export declare const LINK_DEFAULT_ICON_ROTATE_CLASS = "rotate-[-45deg]";
|
|
9
9
|
export declare const LINK_TEXT_VARIANT: Record<LinkSize, TextVariant>;
|
|
10
10
|
export declare const LINK_ICON_SIZE_CLASS: Record<LinkSize, string>;
|
|
@@ -3,16 +3,14 @@ import { Prettify } from '../../../utils/prettify';
|
|
|
3
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
4
|
import { IconPosition } from '../utils/iconPosition';
|
|
5
5
|
export type LinkSize = ComponentSize;
|
|
6
|
-
export type
|
|
6
|
+
export type LinkIconPos = IconPosition;
|
|
7
7
|
export type LinkClassNames = {
|
|
8
8
|
/** Root `<a>`. */
|
|
9
9
|
root?: string;
|
|
10
10
|
/** Link text (`Text`). */
|
|
11
11
|
text?: string;
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
/** End icon wrapper. */
|
|
15
|
-
iconEnd?: string;
|
|
12
|
+
/** Icon wrapper (both start and end positions). */
|
|
13
|
+
icon?: string;
|
|
16
14
|
};
|
|
17
15
|
type LinkSharedProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "href"> & {
|
|
18
16
|
children?: ReactNode;
|
|
@@ -22,7 +20,7 @@ type LinkSharedProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"
|
|
|
22
20
|
/** @default "start" */
|
|
23
21
|
iconPosition?: IconPosition;
|
|
24
22
|
showDefaultIcon?: boolean;
|
|
25
|
-
defaultIconPosition?:
|
|
23
|
+
defaultIconPosition?: LinkIconPos;
|
|
26
24
|
classNames?: Prettify<LinkClassNames>;
|
|
27
25
|
};
|
|
28
26
|
export type LinkProps = (LinkSharedProps & {
|
|
@@ -34,7 +32,7 @@ export type LinkProps = (LinkSharedProps & {
|
|
|
34
32
|
href: string;
|
|
35
33
|
});
|
|
36
34
|
export type LinkIconProps = {
|
|
37
|
-
|
|
35
|
+
iconPosition?: LinkIconPos;
|
|
38
36
|
children?: ReactNode;
|
|
39
37
|
};
|
|
40
38
|
export type ResolvedLinkIconSlot = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type SelectionIndicatorSize = "xsmall" | "small" | "base" | "mid" | "large";
|
|
2
2
|
export type SelectionIndicatorVariant = "default" | "secondary" | "outline" | "gloss";
|
|
3
3
|
export declare const SELECTION_INDICATOR_SIZE_CLASS: Record<SelectionIndicatorSize, string>;
|
|
4
|
-
/** Corner radius from `--selection-indicator-radius-*` (`--radius-*` × 0.
|
|
4
|
+
/** Corner radius from `--selection-indicator-radius-*` (`--radius-*` × 0.618). */
|
|
5
5
|
export declare const SELECTION_INDICATOR_RADIUS_CLASS: Record<SelectionIndicatorSize, string>;
|
|
6
6
|
/** Mark icon box — `--icon-size-*` × 0.75 so marks fit inside the indicator ring. */
|
|
7
7
|
export declare const SELECTION_INDICATOR_ICON_CLASS: Record<SelectionIndicatorSize, string>;
|