@boostdev/design-system-components 1.2.1 → 1.2.3

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.
Files changed (74) hide show
  1. package/AGENTS.md +26 -0
  2. package/README.md +36 -19
  3. package/dist/client.cjs +141 -120
  4. package/dist/client.css +506 -503
  5. package/dist/client.d.cts +71 -96
  6. package/dist/client.d.ts +71 -96
  7. package/dist/client.js +141 -120
  8. package/dist/index.cjs +141 -120
  9. package/dist/index.css +506 -503
  10. package/dist/index.d.cts +71 -96
  11. package/dist/index.d.ts +71 -96
  12. package/dist/index.js +141 -120
  13. package/package.json +3 -3
  14. package/src/components/interaction/Button/Button.module.css +1 -4
  15. package/src/components/interaction/Command/Command.tsx +4 -3
  16. package/src/components/interaction/Dialog/Dialog.module.css +1 -1
  17. package/src/components/interaction/Dialog/Dialog.tsx +4 -5
  18. package/src/components/interaction/Drawer/Drawer.module.css +1 -1
  19. package/src/components/interaction/Drawer/Drawer.spec.tsx +3 -3
  20. package/src/components/interaction/Drawer/Drawer.tsx +4 -7
  21. package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +4 -0
  22. package/src/components/interaction/DropdownMenu/DropdownMenu.stories.tsx +4 -4
  23. package/src/components/interaction/DropdownMenu/DropdownMenu.tsx +4 -2
  24. package/src/components/interaction/Popover/Popover.tsx +4 -3
  25. package/src/components/interaction/Rating/Rating.tsx +4 -2
  26. package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx +4 -6
  27. package/src/components/interaction/form/Combobox/Combobox.module.css +1 -1
  28. package/src/components/interaction/form/Combobox/Combobox.tsx +4 -2
  29. package/src/components/interaction/form/FileInput/FileInput.tsx +4 -3
  30. package/src/components/interaction/form/FormInput/FormInput.module.css +1 -1
  31. package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -1
  32. package/src/components/interaction/form/NumberInput/NumberInput.tsx +4 -3
  33. package/src/components/interaction/form/RadioGroup/RadioGroup.tsx +4 -6
  34. package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +5 -5
  35. package/src/components/interaction/form/SegmentedControl/SegmentedControl.tsx +4 -6
  36. package/src/components/interaction/form/Select/Select.module.css +1 -1
  37. package/src/components/interaction/form/Slider/Slider.module.css +4 -4
  38. package/src/components/interaction/form/Switch/Switch.module.css +3 -3
  39. package/src/components/interaction/form/atoms/InputContainer.tsx +2 -2
  40. package/src/components/layout/ButtonGroup/ButtonGroup.tsx +4 -6
  41. package/src/components/layout/Card/Card.tsx +4 -10
  42. package/src/components/layout/IconWrapper/IconWrapper.module.css +1 -1
  43. package/src/components/layout/IconWrapper/IconWrapper.tsx +4 -5
  44. package/src/components/layout/SectionHeader/SectionHeader.tsx +5 -4
  45. package/src/components/ui/Accordion/Accordion.tsx +4 -3
  46. package/src/components/ui/Alert/Alert.module.css +1 -1
  47. package/src/components/ui/Alert/Alert.tsx +4 -3
  48. package/src/components/ui/Avatar/Avatar.module.css +1 -1
  49. package/src/components/ui/Avatar/Avatar.tsx +5 -3
  50. package/src/components/ui/Badge/Badge.module.css +1 -1
  51. package/src/components/ui/Badge/Badge.tsx +4 -5
  52. package/src/components/ui/Breadcrumb/Breadcrumb.tsx +4 -3
  53. package/src/components/ui/Calendar/Calendar.module.css +2 -2
  54. package/src/components/ui/Calendar/Calendar.tsx +4 -4
  55. package/src/components/ui/Carousel/Carousel.module.css +1 -1
  56. package/src/components/ui/Carousel/Carousel.tsx +4 -4
  57. package/src/components/ui/DescriptionList/DescriptionList.tsx +4 -4
  58. package/src/components/ui/Loading/Loading.module.css +1 -1
  59. package/src/components/ui/Loading/Loading.tsx +4 -3
  60. package/src/components/ui/NotificationBanner/NotificationBanner.module.css +1 -1
  61. package/src/components/ui/NotificationBanner/NotificationBanner.tsx +4 -2
  62. package/src/components/ui/Pagination/Pagination.module.css +5 -1
  63. package/src/components/ui/Pagination/Pagination.tsx +4 -2
  64. package/src/components/ui/Progress/Progress.module.css +2 -2
  65. package/src/components/ui/Progress/Progress.tsx +4 -2
  66. package/src/components/ui/ProgressCircle/ProgressCircle.tsx +4 -1
  67. package/src/components/ui/Separator/Separator.tsx +5 -3
  68. package/src/components/ui/Skeleton/Skeleton.tsx +4 -3
  69. package/src/components/ui/SkipLink/SkipLink.tsx +4 -5
  70. package/src/components/ui/Tabs/Tabs.tsx +4 -4
  71. package/src/components/ui/Tooltip/Tooltip.module.css +1 -1
  72. package/src/components/ui/Tooltip/Tooltip.tsx +4 -2
  73. package/src/components/ui/Typography/Typography.tsx +4 -5
  74. package/src/stories/DesignSystem/Grid.mdx +2 -0
@@ -26,7 +26,7 @@
26
26
  appearance: none;
27
27
  inline-size: 100%;
28
28
  block-size: var(--slider_track-height);
29
- border-radius: 999px;
29
+ border-radius: var(--slider_track-radius, var(--bds-border_radius--full));
30
30
  background: linear-gradient(
31
31
  to right,
32
32
  var(--slider_color-active, var(--bdc-color_active)) 0%,
@@ -41,7 +41,7 @@
41
41
  .slider:focus-visible {
42
42
  outline: var(--bds-outline_default);
43
43
  outline-offset: var(--bds-outline_offset);
44
- border-radius: 999px;
44
+ border-radius: var(--slider_track-radius, var(--bds-border_radius--full));
45
45
  }
46
46
 
47
47
  .slider:disabled {
@@ -54,7 +54,7 @@
54
54
  appearance: none;
55
55
  inline-size: var(--slider_thumb-size);
56
56
  block-size: var(--slider_thumb-size);
57
- border-radius: 50%;
57
+ border-radius: var(--slider_thumb-radius, var(--bds-border_radius--circle));
58
58
  background-color: var(--slider_color-active, var(--bdc-color_active));
59
59
  box-shadow: var(--bds-shadow_s);
60
60
  transition: var(--bds-animation_transition);
@@ -66,7 +66,7 @@
66
66
  inline-size: var(--slider_thumb-size);
67
67
  block-size: var(--slider_thumb-size);
68
68
  border: none;
69
- border-radius: 50%;
69
+ border-radius: var(--slider_thumb-radius, var(--bds-border_radius--circle));
70
70
  background-color: var(--slider_color-active, var(--bdc-color_active));
71
71
  box-shadow: var(--bds-shadow_s);
72
72
  cursor: pointer;
@@ -52,7 +52,7 @@
52
52
  align-items: center;
53
53
  inline-size: var(--switch_track-width);
54
54
  block-size: var(--switch_track-height);
55
- border-radius: 999px;
55
+ border-radius: var(--switch_track-radius, var(--bds-border_radius--full));
56
56
  background-color: var(--switch_track-bg, var(--bds-color_grey--subtle));
57
57
  padding-inline: var(--switch_track-pad);
58
58
  pointer-events: none;
@@ -69,7 +69,7 @@
69
69
  display: block;
70
70
  inline-size: var(--switch_thumb-size);
71
71
  block-size: var(--switch_thumb-size);
72
- border-radius: 50%;
72
+ border-radius: var(--switch_thumb-radius, var(--bds-border_radius--circle));
73
73
  background-color: var(--switch_thumb-bg, var(--bds-color_interactive));
74
74
  box-shadow: var(--bds-shadow_s);
75
75
  transition: var(--bds-animation_transition);
@@ -97,7 +97,7 @@
97
97
  .switch:focus-visible + .track {
98
98
  outline: var(--bds-outline_default);
99
99
  outline-offset: var(--bds-outline_offset);
100
- border-radius: 999px;
100
+ border-radius: var(--switch_track-radius, var(--bds-border_radius--full));
101
101
  }
102
102
 
103
103
  /* Disabled state */
@@ -5,6 +5,6 @@ import type { WithClassName } from '../../../../types';
5
5
 
6
6
  type ContainerProps = WithClassName & HTMLAttributes<HTMLDivElement>;
7
7
 
8
- export const InputContainer = ({ children, className }: ContainerProps) => {
9
- return <div className={cn(css.container, className)}>{children}</div>;
8
+ export const InputContainer = ({ children, className, ...rest }: ContainerProps) => {
9
+ return <div {...rest} className={cn(css.container, className)}>{children}</div>;
10
10
  };
@@ -1,19 +1,17 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  import css from './ButtonGroup.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
- export interface ButtonGroupProps extends WithClassName {
7
- children: ReactNode;
6
+ export interface ButtonGroupProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
8
7
  variant?: 'flow' | 'card' | 'modal' | 'content';
9
- 'aria-label'?: string;
10
8
  }
11
9
 
12
- export function ButtonGroup({ children, className, variant, 'aria-label': ariaLabel }: ButtonGroupProps) {
10
+ export function ButtonGroup({ children, className, variant, ...rest }: ButtonGroupProps) {
13
11
  return (
14
12
  <div
13
+ {...rest}
15
14
  role="group"
16
- aria-label={ariaLabel}
17
15
  className={cn(css.buttonGroup, className, variant && css[`--variant_${variant}`])}
18
16
  >
19
17
  <div className={css.container}>{children}</div>
@@ -1,16 +1,12 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  import css from './Card.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
- interface CardProps extends WithClassName {
7
- children: ReactNode;
6
+ interface CardProps extends WithClassName, HTMLAttributes<HTMLElement> {
8
7
  variant?: 'default' | 'elevated' | 'outlined';
9
8
  padding?: 'none' | 'small' | 'medium' | 'large';
10
9
  textAlign?: 'start' | 'center' | 'end';
11
- style?: CSSProperties;
12
- onClick?: () => void;
13
- 'aria-label'?: string;
14
10
  }
15
11
 
16
12
  export function Card({
@@ -19,9 +15,8 @@ export function Card({
19
15
  variant = 'default',
20
16
  padding = 'medium',
21
17
  textAlign = 'start',
22
- style,
23
18
  onClick,
24
- 'aria-label': ariaLabel,
19
+ ...rest
25
20
  }: CardProps) {
26
21
  const classNames = cn(
27
22
  css.card,
@@ -36,10 +31,9 @@ export function Card({
36
31
 
37
32
  return (
38
33
  <Component
34
+ {...rest}
39
35
  className={classNames}
40
36
  onClick={onClick}
41
- style={style}
42
- aria-label={ariaLabel}
43
37
  {...(onClick && { type: 'button' as const })}
44
38
  >
45
39
  {children}
@@ -3,7 +3,7 @@
3
3
  inline-size: 2em;
4
4
  block-size: 2em;
5
5
  font-size: 3em;
6
- border-radius: 50%;
6
+ border-radius: var(--icon-wrapper-radius, var(--bds-border_radius--circle));
7
7
  display: flex;
8
8
  align-items: center;
9
9
  justify-content: center;
@@ -1,15 +1,14 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import css from './IconWrapper.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
- export interface IconWrapperProps extends WithClassName {
6
+ export interface IconWrapperProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
7
7
  children: ReactNode;
8
- 'aria-hidden'?: boolean | 'true' | 'false';
9
8
  }
10
9
 
11
- export function IconWrapper({ children, className, 'aria-hidden': ariaHidden }: IconWrapperProps) {
10
+ export function IconWrapper({ children, className, ...rest }: IconWrapperProps) {
12
11
  return (
13
- <div className={cn(className, css.wrapper)} aria-hidden={ariaHidden}>{children}</div>
12
+ <div {...rest} className={cn(className, css.wrapper)}>{children}</div>
14
13
  );
15
14
  }
@@ -1,11 +1,11 @@
1
- import type { JSX } from 'react';
1
+ import type { HTMLAttributes, JSX } from 'react';
2
2
  import css from './SectionHeader.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
6
  type IntrinsicElement = keyof JSX.IntrinsicElements;
7
7
 
8
- type SectionHeaderProps = WithClassName & {
8
+ type SectionHeaderProps = WithClassName & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
9
9
  title: string;
10
10
  subtitle?: string;
11
11
  alignment?: 'start' | 'center' | 'end';
@@ -19,11 +19,12 @@ export function SectionHeader({
19
19
  className,
20
20
  alignment = 'start',
21
21
  size = 'medium',
22
- titleAs = 'h2'
22
+ titleAs = 'h2',
23
+ ...rest
23
24
  }: Readonly<SectionHeaderProps>) {
24
25
  const Title = titleAs;
25
26
  return (
26
- <div className={cn(css.sectionHeader, css[`--${alignment}`], css[`--${size}`], className)}>
27
+ <div {...rest} className={cn(css.sectionHeader, css[`--${alignment}`], css[`--${size}`], className)}>
27
28
  <Title className={css.title}>{title}</Title>
28
29
  {subtitle && <p className={css.subtitle}>{subtitle}</p>}
29
30
  </div>
@@ -1,4 +1,4 @@
1
- import { ReactNode, useId, useState } from 'react';
1
+ import { HTMLAttributes, ReactNode, useId, useState } from 'react';
2
2
  import css from './Accordion.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
@@ -10,7 +10,7 @@ export interface AccordionItem {
10
10
  disabled?: boolean;
11
11
  }
12
12
 
13
- interface AccordionProps extends WithClassName {
13
+ interface AccordionProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
14
14
  items: AccordionItem[];
15
15
  allowMultiple?: boolean;
16
16
  defaultOpen?: string[];
@@ -21,6 +21,7 @@ export function Accordion({
21
21
  allowMultiple = false,
22
22
  defaultOpen = [],
23
23
  className,
24
+ ...rest
24
25
  }: Readonly<AccordionProps>) {
25
26
  const baseId = useId();
26
27
  const [openIds, setOpenIds] = useState<string[]>(defaultOpen);
@@ -34,7 +35,7 @@ export function Accordion({
34
35
  };
35
36
 
36
37
  return (
37
- <div className={cn(css.accordion, className)}>
38
+ <div {...rest} className={cn(css.accordion, className)}>
38
39
  {items.map(item => {
39
40
  const isOpen = openIds.includes(item.id);
40
41
  const triggerId = `${baseId}-trigger-${item.id}`;
@@ -65,7 +65,7 @@
65
65
  color: currentcolor;
66
66
  transition: var(--bds-animation_transition);
67
67
  border: var(--alert_dismiss-border, none);
68
- border-radius: 50%;
68
+ border-radius: var(--alert_dismiss-radius, var(--bds-border_radius--circle));
69
69
  --bdc_color: currentcolor;
70
70
 
71
71
  box-shadow: inset 0 0 0 var(--bdc-outline_width) var(--bdc_color);
@@ -1,13 +1,12 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import css from './Alert.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
- interface AlertProps extends WithClassName {
6
+ interface AlertProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
7
7
  variant?: 'info' | 'success' | 'warning' | 'error';
8
8
  icon?: ReactNode;
9
9
  title?: string;
10
- children: ReactNode;
11
10
  onDismiss?: () => void;
12
11
  }
13
12
 
@@ -18,11 +17,13 @@ export function Alert({
18
17
  children,
19
18
  onDismiss,
20
19
  className,
20
+ ...rest
21
21
  }: Readonly<AlertProps>) {
22
22
  const isUrgent = variant === 'error' || variant === 'warning';
23
23
 
24
24
  return (
25
25
  <div
26
+ {...rest}
26
27
  role={isUrgent ? 'alert' : 'status'}
27
28
  aria-live={isUrgent ? 'assertive' : 'polite'}
28
29
  aria-atomic="true"
@@ -5,7 +5,7 @@
5
5
  justify-content: center;
6
6
  width: var(--avatar_size, 3em);
7
7
  height: var(--avatar_size, 3em);
8
- border-radius: 50%;
8
+ border-radius: var(--avatar_radius, var(--bds-border_radius--circle));
9
9
  overflow: hidden;
10
10
  flex-shrink: 0;
11
11
  }
@@ -1,8 +1,9 @@
1
+ import { HTMLAttributes } from 'react';
1
2
  import css from './Avatar.module.css';
2
3
  import { cn } from '@boostdev/design-system-foundation';
3
4
  import type { WithClassName } from '../../../types';
4
5
 
5
- interface AvatarProps extends WithClassName {
6
+ interface AvatarProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
6
7
  src?: string;
7
8
  alt?: string;
8
9
  name?: string;
@@ -18,12 +19,12 @@ function getInitials(name: string): string {
18
19
  .join('');
19
20
  }
20
21
 
21
- export function Avatar({ src, alt, name, size = 'medium', className }: Readonly<AvatarProps>) {
22
+ export function Avatar({ src, alt, name, size = 'medium', className, ...rest }: Readonly<AvatarProps>) {
22
23
  const sizeClass = css[`--size_${size}`];
23
24
 
24
25
  if (src) {
25
26
  return (
26
- <span className={cn(css.avatar, sizeClass, className)}>
27
+ <span {...rest} className={cn(css.avatar, sizeClass, className)}>
27
28
  <img src={src} alt={alt ?? name ?? 'User avatar'} className={css.image} />
28
29
  </span>
29
30
  );
@@ -33,6 +34,7 @@ export function Avatar({ src, alt, name, size = 'medium', className }: Readonly<
33
34
 
34
35
  return (
35
36
  <span
37
+ {...rest}
36
38
  role="img"
37
39
  aria-label={name ?? 'User avatar'}
38
40
  className={cn(css.avatar, css['--fallback'], sizeClass, className)}
@@ -4,7 +4,7 @@
4
4
  align-items: center;
5
5
  justify-content: center;
6
6
  padding: var(--bds-space_xxs) var(--bds-space_xs);
7
- border-radius: var(--badge_radius, 2em);
7
+ border-radius: var(--badge_radius, var(--bds-border_radius--full));
8
8
  font-size: var(--badge_font-size, var(--bds-font_size--body--s));
9
9
  font-weight: var(--bds-font_weight--semibold);
10
10
  line-height: 1;
@@ -1,13 +1,12 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  import css from './Badge.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
- interface BadgeProps extends WithClassName {
7
- children: ReactNode;
6
+ interface BadgeProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
8
7
  variant?: 'primary' | 'secondary' | 'success' | 'error' | 'warning';
9
8
  }
10
9
 
11
- export function Badge({ children, variant = 'primary', className }: BadgeProps) {
12
- return <span className={cn(css.badge, css[`--variant_${variant}`], className)}>{children}</span>;
10
+ export function Badge({ children, variant = 'primary', className, ...rest }: BadgeProps) {
11
+ return <span {...rest} className={cn(css.badge, css[`--variant_${variant}`], className)}>{children}</span>;
13
12
  }
@@ -1,3 +1,4 @@
1
+ import { HTMLAttributes } from 'react';
1
2
  import css from './Breadcrumb.module.css';
2
3
  import { cn } from '@boostdev/design-system-foundation';
3
4
  import type { WithClassName } from '../../../types';
@@ -7,13 +8,13 @@ export interface BreadcrumbItem {
7
8
  href?: string;
8
9
  }
9
10
 
10
- interface BreadcrumbProps extends WithClassName {
11
+ interface BreadcrumbProps extends WithClassName, HTMLAttributes<HTMLElement> {
11
12
  items: BreadcrumbItem[];
12
13
  }
13
14
 
14
- export function Breadcrumb({ items, className }: Readonly<BreadcrumbProps>) {
15
+ export function Breadcrumb({ items, className, ...rest }: Readonly<BreadcrumbProps>) {
15
16
  return (
16
- <nav aria-label="Breadcrumb" className={cn(css.breadcrumb, className)}>
17
+ <nav {...rest} aria-label="Breadcrumb" className={cn(css.breadcrumb, className)}>
17
18
  <ol className={css.list}>
18
19
  {items.map((item, index) => {
19
20
  const isLast = index === items.length - 1;
@@ -33,7 +33,7 @@
33
33
  justify-content: center;
34
34
  inline-size: 2rem;
35
35
  block-size: 2rem;
36
- border-radius: 50%;
36
+ border-radius: var(--calendar_button-radius, var(--bds-border_radius--circle));
37
37
  cursor: pointer;
38
38
  color: var(--bds-color_on-bg);
39
39
  transition: var(--bds-animation_transition);
@@ -80,7 +80,7 @@
80
80
  justify-content: center;
81
81
  inline-size: 100%;
82
82
  aspect-ratio: 1;
83
- border-radius: 50%;
83
+ border-radius: var(--calendar_button-radius, var(--bds-border_radius--circle));
84
84
  font-size: var(--bds-font_size--body--s);
85
85
  color: var(--bds-color_on-bg);
86
86
  cursor: pointer;
@@ -1,4 +1,4 @@
1
- import { useState, useId, KeyboardEvent } from 'react';
1
+ import { HTMLAttributes, useState, useId, KeyboardEvent } from 'react';
2
2
  import css from './Calendar.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
@@ -13,7 +13,7 @@ const MONTHS = [
13
13
  'July', 'August', 'September', 'October', 'November', 'December',
14
14
  ];
15
15
 
16
- interface CalendarProps extends WithClassName {
16
+ interface CalendarProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
17
17
  value?: Date;
18
18
  defaultValue?: Date;
19
19
  min?: Date;
@@ -46,7 +46,7 @@ function getFirstDayOfMonth(year: number, month: number): number {
46
46
  return new Date(year, month, 1).getDay();
47
47
  }
48
48
 
49
- export function Calendar({ value, defaultValue, min, max, onChange, className }: Readonly<CalendarProps>) {
49
+ export function Calendar({ value, defaultValue, min, max, onChange, className, ...rest }: Readonly<CalendarProps>) {
50
50
  const today = new Date();
51
51
  const controlled = value !== undefined;
52
52
  const [internal, setInternal] = useState<Date | undefined>(defaultValue);
@@ -107,7 +107,7 @@ export function Calendar({ value, defaultValue, min, max, onChange, className }:
107
107
  while (cells.length % 7 !== 0) cells.push(null);
108
108
 
109
109
  return (
110
- <div className={cn(css.calendar, className)} role="group" aria-labelledby={titleId}>
110
+ <div {...rest} className={cn(css.calendar, className)} role="group" aria-labelledby={titleId}>
111
111
  <div className={css.header}>
112
112
  <button
113
113
  type="button"
@@ -32,7 +32,7 @@
32
32
  justify-content: center;
33
33
  inline-size: 2.5rem;
34
34
  block-size: 2.5rem;
35
- border-radius: 50%;
35
+ border-radius: var(--carousel_indicator-radius, var(--bds-border_radius--circle));
36
36
  background-color: var(--bds-color_bg);
37
37
  color: var(--bds-color_on-bg);
38
38
 
@@ -1,14 +1,14 @@
1
- import { ReactNode, useRef, useId } from 'react';
1
+ import { HTMLAttributes, ReactNode, useRef, useId } from 'react';
2
2
  import css from './Carousel.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
- interface CarouselProps extends WithClassName {
6
+ interface CarouselProps extends WithClassName, HTMLAttributes<HTMLElement> {
7
7
  items: ReactNode[];
8
8
  label: string;
9
9
  }
10
10
 
11
- export function Carousel({ items, label, className }: Readonly<CarouselProps>) {
11
+ export function Carousel({ items, label, className, ...rest }: Readonly<CarouselProps>) {
12
12
  const trackRef = useRef<HTMLDivElement>(null);
13
13
  const listId = useId();
14
14
 
@@ -22,7 +22,7 @@ export function Carousel({ items, label, className }: Readonly<CarouselProps>) {
22
22
  };
23
23
 
24
24
  return (
25
- <section aria-label={label} className={cn(css.carousel, className)}>
25
+ <section {...rest} aria-label={label} className={cn(css.carousel, className)}>
26
26
  <button
27
27
  type="button"
28
28
  className={cn(css.navBtn, css['--prev'])}
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import css from './DescriptionList.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
@@ -8,14 +8,14 @@ export interface DescriptionItem {
8
8
  details: ReactNode | ReactNode[];
9
9
  }
10
10
 
11
- interface DescriptionListProps extends WithClassName {
11
+ interface DescriptionListProps extends WithClassName, HTMLAttributes<HTMLDListElement> {
12
12
  items: DescriptionItem[];
13
13
  layout?: 'stacked' | 'inline';
14
14
  }
15
15
 
16
- export function DescriptionList({ items, layout = 'stacked', className }: Readonly<DescriptionListProps>) {
16
+ export function DescriptionList({ items, layout = 'stacked', className, ...rest }: Readonly<DescriptionListProps>) {
17
17
  return (
18
- <dl className={cn(css.list, css[`--layout_${layout}`], className)}>
18
+ <dl {...rest} className={cn(css.list, css[`--layout_${layout}`], className)}>
19
19
  {items.map((item, i) => (
20
20
  <div key={i} className={css.group}>
21
21
  <dt className={css.term}>{item.term}</dt>
@@ -10,7 +10,7 @@
10
10
  block-size: 2.5em;
11
11
  border: 4px solid var(--bds-color_bg);
12
12
  border-block-start: 4px solid var(--bds-color_interactive);
13
- border-radius: 50%;
13
+ border-radius: var(--loading_radius, var(--bds-border_radius--circle));
14
14
  animation: spin 1s linear infinite;
15
15
  }
16
16
 
@@ -1,14 +1,15 @@
1
+ import { HTMLAttributes } from 'react';
1
2
  import css from './Loading.module.css';
2
3
  import { cn } from '@boostdev/design-system-foundation';
3
4
  import type { WithClassName } from '../../../types';
4
5
 
5
- interface LoadingProps extends WithClassName {
6
+ interface LoadingProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
6
7
  size?: 'small' | 'medium' | 'large';
7
8
  }
8
9
 
9
- export function Loading({ size = 'medium', className }: LoadingProps) {
10
+ export function Loading({ size = 'medium', className, ...rest }: LoadingProps) {
10
11
  return (
11
- <div className={cn(css.loading, css[`--size_${size}`], className)}>
12
+ <div {...rest} className={cn(css.loading, css[`--size_${size}`], className)}>
12
13
  <div className={css.spinner} role="status" aria-label="Loading" />
13
14
  </div>
14
15
  );
@@ -52,7 +52,7 @@
52
52
  flex-shrink: 0;
53
53
  cursor: pointer;
54
54
  color: currentcolor;
55
- border-radius: 50%;
55
+ border-radius: var(--banner_dismiss-radius, var(--bds-border_radius--circle));
56
56
  border: var(--banner_dismiss-border, none);
57
57
  transition: var(--bds-animation_transition);
58
58
  --bdc_color: currentcolor;
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import css from './NotificationBanner.module.css';
3
3
  import { cn } from '@boostdev/design-system-foundation';
4
4
  import type { WithClassName } from '../../../types';
5
5
 
6
- interface NotificationBannerProps extends WithClassName {
6
+ interface NotificationBannerProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
7
7
  variant?: 'info' | 'success' | 'warning' | 'error';
8
8
  children: ReactNode;
9
9
  action?: ReactNode;
@@ -16,11 +16,13 @@ export function NotificationBanner({
16
16
  action,
17
17
  onDismiss,
18
18
  className,
19
+ ...rest
19
20
  }: Readonly<NotificationBannerProps>) {
20
21
  const isUrgent = variant === 'error' || variant === 'warning';
21
22
 
22
23
  return (
23
24
  <div
25
+ {...rest}
24
26
  role={isUrgent ? 'alert' : 'status'}
25
27
  aria-live={isUrgent ? 'assertive' : 'polite'}
26
28
  aria-atomic="true"
@@ -13,6 +13,10 @@
13
13
  padding: 0;
14
14
  }
15
15
 
16
+ .list li {
17
+ list-style: none;
18
+ }
19
+
16
20
  .button {
17
21
  all: unset;
18
22
  display: inline-flex;
@@ -21,7 +25,7 @@
21
25
  min-inline-size: 2.25rem;
22
26
  block-size: 2.25rem;
23
27
  padding-inline: var(--bds-space_xs);
24
- border-radius: var(--bds-border_radius--xs);
28
+ border-radius: var(--pagination_radius, var(--bds-border_radius--full));
25
29
  background-color: var(--btn_bg, transparent);
26
30
 
27
31
  --bdc_color: var(--btn_border, var(--bds-color_bg--subtle));
@@ -1,8 +1,9 @@
1
+ import { HTMLAttributes } from 'react';
1
2
  import css from './Pagination.module.css';
2
3
  import { cn } from '@boostdev/design-system-foundation';
3
4
  import type { WithClassName } from '../../../types';
4
5
 
5
- interface PaginationProps extends WithClassName {
6
+ interface PaginationProps extends WithClassName, HTMLAttributes<HTMLElement> {
6
7
  currentPage: number;
7
8
  totalPages: number;
8
9
  onPageChange: (page: number) => void;
@@ -28,11 +29,12 @@ export function Pagination({
28
29
  totalPages,
29
30
  onPageChange,
30
31
  className,
32
+ ...rest
31
33
  }: Readonly<PaginationProps>) {
32
34
  const pages = getPageRange(currentPage, totalPages);
33
35
 
34
36
  return (
35
- <nav aria-label="Pagination" className={cn(css.pagination, className)}>
37
+ <nav {...rest} aria-label="Pagination" className={cn(css.pagination, className)}>
36
38
  <ul className={css.list}>
37
39
  <li>
38
40
  <button
@@ -22,7 +22,7 @@
22
22
  inline-size: 100%;
23
23
  block-size: var(--progress_height, var(--bds-space_xs));
24
24
  background-color: var(--bds-color_bg--subtle);
25
- border-radius: 999px;
25
+ border-radius: var(--progress_radius, var(--bds-border_radius--full));
26
26
  overflow: hidden;
27
27
  }
28
28
 
@@ -33,7 +33,7 @@
33
33
  .fill {
34
34
  block-size: 100%;
35
35
  background-color: var(--progress_color-active, var(--bdc-color_active));
36
- border-radius: 999px;
36
+ border-radius: var(--progress_radius, var(--bds-border_radius--full));
37
37
  transition: inline-size var(--bds-animation_transition-duration) var(--bds-animation_easing);
38
38
  }
39
39
 
@@ -1,8 +1,9 @@
1
+ import { HTMLAttributes } from 'react';
1
2
  import css from './Progress.module.css';
2
3
  import { cn } from '@boostdev/design-system-foundation';
3
4
  import type { WithClassName } from '../../../types';
4
5
 
5
- interface ProgressProps extends WithClassName {
6
+ interface ProgressProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
6
7
  value: number;
7
8
  max?: number;
8
9
  label: string;
@@ -17,11 +18,12 @@ export function Progress({
17
18
  showLabel = false,
18
19
  size = 'medium',
19
20
  className,
21
+ ...rest
20
22
  }: Readonly<ProgressProps>) {
21
23
  const percentage = Math.min(100, Math.max(0, (value / max) * 100));
22
24
 
23
25
  return (
24
- <div className={cn(css.container, className)}>
26
+ <div {...rest} className={cn(css.container, className)}>
25
27
  {showLabel && (
26
28
  <div className={css.labelRow}>
27
29
  <span className={css.label}>{label}</span>