burne-ui 1.3.3 → 1.3.5

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.
@@ -1,6 +1,6 @@
1
1
  import { CheckboxControlProps, CheckboxErrorProps, CheckboxHintProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxSize } from './checkboxTypes';
2
2
  export declare const CheckboxControl: import('react').ForwardRefExoticComponent<CheckboxControlProps & import('react').RefAttributes<HTMLSpanElement>>;
3
- export declare function CheckboxIndicator({ children, className, classNames: classNamesProp, ...rest }: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function CheckboxIndicator({ children, className, classNames: classNamesProp, size: sizeProp, ...rest }: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare namespace CheckboxIndicator {
5
5
  var displayName: string;
6
6
  }
@@ -39,6 +39,7 @@ export type CheckboxControlProps = HTMLAttributes<HTMLSpanElement>;
39
39
  export type CheckboxIndicatorClassNames = SelectionIndicatorClassNames & Partial<Pick<CheckboxClassNames, "indicator" | "indicatorFill" | "indicatorMark">>;
40
40
  export type CheckboxIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
41
41
  children?: ReactNode;
42
+ size?: CheckboxSize;
42
43
  classNames?: CheckboxIndicatorClassNames;
43
44
  };
44
45
  export type CheckboxContentProps = HTMLAttributes<HTMLDivElement> & {
@@ -1,6 +1,6 @@
1
1
  import { RadioControlProps, RadioErrorProps, RadioHintProps, RadioIndicatorProps, RadioLabelProps, RadioSize } from './radioTypes';
2
2
  export declare const RadioControl: import('react').ForwardRefExoticComponent<RadioControlProps & import('react').RefAttributes<HTMLSpanElement>>;
3
- export declare function RadioIndicator({ children, className, classNames: classNamesProp, ...rest }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function RadioIndicator({ children, className, classNames: classNamesProp, size: sizeProp, ...rest }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare namespace RadioIndicator {
5
5
  var displayName: string;
6
6
  }
@@ -38,6 +38,7 @@ export type RadioControlProps = HTMLAttributes<HTMLSpanElement>;
38
38
  export type RadioIndicatorClassNames = SelectionIndicatorClassNames & Partial<Pick<RadioClassNames, "indicator" | "indicatorFill" | "indicatorMark">>;
39
39
  export type RadioIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
40
40
  children?: ReactNode;
41
+ size?: RadioSize;
41
42
  classNames?: RadioIndicatorClassNames;
42
43
  };
43
44
  export type RadioContentProps = HTMLAttributes<HTMLDivElement> & {
@@ -3,7 +3,9 @@ export type SelectionIndicatorVariant = "base" | "secondary" | "outline" | "glos
3
3
  export declare const SELECTION_INDICATOR_SIZE_CLASS: Record<SelectionIndicatorSize, string>;
4
4
  export declare const SELECTION_INDICATOR_ICON_CLASS: Record<SelectionIndicatorSize, string>;
5
5
  export declare const SELECTION_INDICATOR_MARK_CLASS = "pointer-events-none relative z-[2] inline-flex items-center justify-center";
6
- export declare function selectionIndicatorMarkIconClass(size: SelectionIndicatorSize): string;
6
+ export declare function selectionIndicatorMarkCheckIconClass(size: SelectionIndicatorSize): string;
7
+ /** Custom mark icons: no `[&_svg]:size-full` — `icon-*` on the icon itself controls size. */
8
+ export declare function selectionIndicatorMarkCustomIconClass(size: SelectionIndicatorSize): string;
7
9
  export declare const SELECTION_INDICATOR_DOT_CLASS: Record<SelectionIndicatorSize, string>;
8
10
  export declare const SELECTION_INDICATOR_DOT_INNER_CLASS = "shrink-0 rounded-full bg-indicator-foreground";
9
11
  export declare const SELECTION_INDICATOR_DOT_INNER_GLOSS_CLASS = "shrink-0 rounded-full bg-foreground";
@@ -8,6 +8,8 @@
8
8
  *
9
9
  * configureMotion({
10
10
  * interactiveDuration: 350,
11
+ * selectionFillDuration: 400,
12
+ * selectionFillEase: "back.out(1.25)",
11
13
  * switchThumbEase: "back.out(1.6)",
12
14
  * });
13
15
  */
@@ -47,6 +49,12 @@ export interface MotionConfig {
47
49
  * @default "back.out(1.25)"
48
50
  */
49
51
  selectionFillEase: string;
52
+ /**
53
+ * Duration (ms) for selection fill scale animations:
54
+ * ToggleButton, Calendar cell, Checkbox/Radio/ListBox indicator fill, Switch thumb fill.
55
+ * @default 280
56
+ */
57
+ selectionFillDuration: number;
50
58
  /** Scale applied when a hoverable element lifts. @default 1.015 */
51
59
  hoverLiftScale: number;
52
60
  /** Stronger lift scale for `Badge.Anchor` children. @default 1.052 */
@@ -143,7 +151,7 @@ export declare function motionHoverLift(): {
143
151
  readonly duration: number;
144
152
  readonly ease: string;
145
153
  };
146
- /** Selection fill (ToggleButton, calendar) — in/out are symmetric. */
154
+ /** Selection fill (ToggleButton, Calendar, Checkbox/Radio indicator fill). */
147
155
  export declare function motionSelectionFill(): {
148
156
  readonly duration: number;
149
157
  readonly ease: string;