@bcgov/design-system-react-components 0.8.1-pr839 → 0.8.1-pr849

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/index.d.ts CHANGED
@@ -351,93 +351,150 @@ interface SeparatorProps extends SeparatorProps$1 {
351
351
  }
352
352
  declare function Separator({ size, ...props }: SeparatorProps): react.JSX.Element;
353
353
 
354
- declare function SvgBcLogo({ id }: {
355
- id?: string | undefined;
356
- }): react.JSX.Element;
354
+ interface SvgBcLogoProps extends React.SVGProps<SVGSVGElement> {
355
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
356
+ title?: string;
357
+ }
358
+ declare function SvgBcLogo({ title, id, ...props }: SvgBcLogoProps): react.JSX.Element;
357
359
 
358
- declare function SvgBcOutlineIcon({ id }: {
359
- id?: string | undefined;
360
- }): react.JSX.Element;
360
+ type IconSize = "xsmall" | "small" | "medium" | "large" | "xlarge";
361
361
 
362
- declare function SvgBetaIcon({ id }: {
363
- id?: string | undefined;
364
- }): react.JSX.Element;
362
+ interface SvgBcOutlineIconProps extends React.SVGProps<SVGSVGElement> {
363
+ size?: IconSize;
364
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
365
+ title?: string;
366
+ }
367
+ declare function SvgBcOutlineIcon({ size, title, id, ...props }: SvgBcOutlineIconProps): react.JSX.Element;
365
368
 
366
- declare function SvgCalendarIcon({ ...props }: {
367
- [x: string]: any;
368
- }): react.JSX.Element;
369
+ interface SvgBetaIconProps extends React.SVGProps<SVGSVGElement> {
370
+ size?: IconSize;
371
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
372
+ title?: string;
373
+ }
374
+ declare function SvgBetaIcon({ size, title, id, ...props }: SvgBetaIconProps): react.JSX.Element;
369
375
 
370
- declare function SvgCheckIcon({ id }: {
371
- id?: string | undefined;
372
- }): react.JSX.Element;
376
+ interface SvgCalendarIconProps extends React.SVGProps<SVGSVGElement> {
377
+ size?: IconSize;
378
+ title?: string;
379
+ }
380
+ declare function SvgCalendarIcon({ size, title, id, ...props }: SvgCalendarIconProps): react.JSX.Element;
373
381
 
374
- declare function SvgCheckCircleIcon({ id }: {
375
- id?: string | undefined;
376
- }): react.JSX.Element;
382
+ interface SvgCheckIconProps extends React.SVGProps<SVGSVGElement> {
383
+ size?: IconSize;
384
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
385
+ title?: string;
386
+ }
387
+ declare function SvgCheckIcon({ size, title, id, ...props }: SvgCheckIconProps): react.JSX.Element;
377
388
 
378
- declare function SvgChevronUpIcon({ id }: {
379
- id?: string | undefined;
380
- }): react.JSX.Element;
389
+ interface SvgCheckCircleIconProps extends React.SVGProps<SVGSVGElement> {
390
+ size?: IconSize;
391
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
392
+ title?: string;
393
+ }
394
+ declare function SvgCheckCircleIcon({ size, title, id, ...props }: SvgCheckCircleIconProps): react.JSX.Element;
381
395
 
382
- declare function SvgChevronDownIcon({ id }: {
383
- id?: string | undefined;
384
- }): react.JSX.Element;
396
+ interface SvgChevronUpIconProps extends React.SVGProps<SVGSVGElement> {
397
+ size?: IconSize;
398
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
399
+ title?: string;
400
+ }
401
+ declare function SvgChevronUpIcon({ size, title, id, ...props }: SvgChevronUpIconProps): react.JSX.Element;
385
402
 
386
- declare function SvgChevronLeftIcon({ id }: {
387
- id?: string | undefined;
388
- }): react.JSX.Element;
403
+ interface SvgChevronDownIconProps extends React.SVGProps<SVGSVGElement> {
404
+ size?: IconSize;
405
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
406
+ title?: string;
407
+ }
408
+ declare function SvgChevronDownIcon({ size, title, id, ...props }: SvgChevronDownIconProps): react.JSX.Element;
389
409
 
390
- declare function SvgChevronRightIcon({ id }: {
391
- id?: string | undefined;
392
- }): react.JSX.Element;
410
+ interface SvgChevronLeftIconProps extends React.SVGProps<SVGSVGElement> {
411
+ size?: IconSize;
412
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
413
+ title?: string;
414
+ }
415
+ declare function SvgChevronLeftIcon({ size, title, id, ...props }: SvgChevronLeftIconProps): react.JSX.Element;
393
416
 
394
- declare function SvgDashIcon$1({ id }: {
395
- id?: string | undefined;
396
- }): react.JSX.Element;
417
+ interface SvgChevronRightIconProps extends React.SVGProps<SVGSVGElement> {
418
+ size?: IconSize;
419
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
420
+ title?: string;
421
+ }
422
+ declare function SvgChevronRightIcon({ size, title, id, ...props }: SvgChevronRightIconProps): react.JSX.Element;
397
423
 
398
- declare function SvgExclamationIcon({ id }: {
399
- id?: string | undefined;
400
- }): react.JSX.Element;
424
+ interface SvgDashIconProps extends React.SVGProps<SVGSVGElement> {
425
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
426
+ title?: string;
427
+ }
428
+ declare function SvgDashIcon({ title, id, ...props }: SvgDashIconProps): react.JSX.Element;
401
429
 
402
- declare function SvgExclamationCircleIcon({ id, }: {
403
- id?: string | undefined;
404
- }): react.JSX.Element;
430
+ interface SvgExclamationIconProps extends React.SVGProps<SVGSVGElement> {
431
+ size?: IconSize;
432
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
433
+ title?: string;
434
+ }
435
+ declare function SvgExclamationIcon({ size, title, id, ...props }: SvgExclamationIconProps): react.JSX.Element;
436
+
437
+ interface SvgExclamationCircleIconProps extends React.SVGProps<SVGSVGElement> {
438
+ size?: IconSize;
439
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
440
+ title?: string;
441
+ }
442
+ declare function SvgExclamationCircleIcon({ size, title, id, ...props }: SvgExclamationCircleIconProps): react.JSX.Element;
405
443
 
406
- declare function SvgCloseIcon({ id }: {
407
- id?: string | undefined;
408
- }): react.JSX.Element;
444
+ interface SvgCloseIconProps extends React.SVGProps<SVGSVGElement> {
445
+ size?: IconSize;
446
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
447
+ title?: string;
448
+ }
449
+ declare function SvgCloseIcon({ size, title, id, ...props }: SvgCloseIconProps): react.JSX.Element;
409
450
 
410
- declare function SvgInfoIcon({ id }: {
411
- id?: string | undefined;
412
- }): react.JSX.Element;
451
+ interface SvgInfoIconProps extends React.SVGProps<SVGSVGElement> {
452
+ size?: IconSize;
453
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
454
+ title?: string;
455
+ }
456
+ declare function SvgInfoIcon({ size, title, id, ...props }: SvgInfoIconProps): react.JSX.Element;
413
457
 
414
- declare function SvgDashIcon({ id }: {
415
- id?: string | undefined;
416
- }): react.JSX.Element;
458
+ interface SvgMinusIconProps extends React.SVGProps<SVGSVGElement> {
459
+ size?: IconSize;
460
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
461
+ title?: string;
462
+ }
463
+ declare function SvgMinusIcon({ size, title, id, ...props }: SvgMinusIconProps): react.JSX.Element;
417
464
 
418
- interface SvgPlaceholderIconProps {
419
- /** Width and height of the placeholder icon, defaults to 20 */
420
- size?: number;
465
+ interface SvgPlaceholderIconProps extends React.SVGProps<SVGSVGElement> {
466
+ size?: IconSize;
467
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
468
+ title?: string;
421
469
  }
422
- declare function SvgPlaceholderIcon({ size, ...props }: SvgPlaceholderIconProps): react.JSX.Element;
470
+ declare function SvgPlaceholderIcon({ size, title, id, ...props }: SvgPlaceholderIconProps): react.JSX.Element;
423
471
 
424
- declare function SvgPlusIcon({ id }: {
425
- id?: string | undefined;
426
- }): react.JSX.Element;
472
+ interface SvgPlusIconProps extends React.SVGProps<SVGSVGElement> {
473
+ size?: IconSize;
474
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
475
+ title?: string;
476
+ }
477
+ declare function SvgPlusIcon({ size, title, id, ...props }: SvgPlusIconProps): react.JSX.Element;
427
478
 
428
- declare function SvgTooltipArrowUp({ id }: {
429
- id?: string | undefined;
430
- }): react.JSX.Element;
479
+ interface SvgTooltipArrowUpProps extends React.SVGProps<SVGSVGElement> {
480
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
481
+ title?: string;
482
+ }
483
+ declare function SvgTooltipArrowUp({ title, id, ...props }: SvgTooltipArrowUpProps): react.JSX.Element;
431
484
 
432
- interface SvgUpRightFromSquareIconProps {
433
- size?: 16 | 20;
434
- id?: string;
485
+ interface SvgUpRightFromSquareIconProps extends React.SVGProps<SVGSVGElement> {
486
+ size?: IconSize;
487
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
488
+ title?: string;
435
489
  }
436
- declare function SvgUpRightFromSquareIcon({ size, id, }: SvgUpRightFromSquareIconProps): react.JSX.Element;
490
+ declare function SvgUpRightFromSquareIcon({ size, title, id, ...props }: SvgUpRightFromSquareIconProps): react.JSX.Element;
437
491
 
438
- declare function SvgReactAriaIcon({ id }: {
439
- id?: string | undefined;
440
- }): react.JSX.Element;
492
+ interface SvgReactAriaIconProps extends React.SVGProps<SVGSVGElement> {
493
+ size?: IconSize;
494
+ /** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
495
+ title?: string;
496
+ }
497
+ declare function SvgReactAriaIcon({ size, title, id, ...props }: SvgReactAriaIconProps): react.JSX.Element;
441
498
 
442
499
  interface TagGroupProps extends TagGroupProps$1 {
443
500
  /**
@@ -523,4 +580,4 @@ interface NumberFieldProps extends NumberFieldProps$1 {
523
580
  }
524
581
  declare function NumberField({ size, label, description, minValue, errorMessage, ...props }: NumberFieldProps): react.JSX.Element;
525
582
 
526
- export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Calendar, Callout, Checkbox, CheckboxGroup, DatePicker, Dialog, Footer, FooterLinks, Form, Header, Heading, InlineAlert, Link, Menu, MenuItem, Modal, NumberField, ProgressBar, ProgressCircle, Radio, RadioGroup, Select, Separator, Subheader, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCalendarIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronLeftIcon, SvgChevronRightIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon$1 as SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgDashIcon as SvgMinusIcon, SvgPlaceholderIcon, SvgPlusIcon, SvgReactAriaIcon, SvgTooltipArrowUp, SvgUpRightFromSquareIcon, Switch, Tag, TagGroup, TagList, Text, TextArea, TextField, TimeField, ToggleButton, ToggleButtonGroup, Tooltip };
583
+ export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Calendar, Callout, Checkbox, CheckboxGroup, DatePicker, Dialog, Footer, FooterLinks, Form, Header, Heading, InlineAlert, Link, Menu, MenuItem, Modal, NumberField, ProgressBar, ProgressCircle, Radio, RadioGroup, Select, Separator, Subheader, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCalendarIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronLeftIcon, SvgChevronRightIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgMinusIcon, SvgPlaceholderIcon, SvgPlusIcon, SvgReactAriaIcon, SvgTooltipArrowUp, SvgUpRightFromSquareIcon, Switch, Tag, TagGroup, TagList, Text, TextArea, TextField, TimeField, ToggleButton, ToggleButtonGroup, Tooltip };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcgov/design-system-react-components",
3
- "version": "0.8.1-pr839",
3
+ "version": "0.8.1-pr849",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/bcgov/design-system.git",
@@ -65,7 +65,9 @@
65
65
  "@storybook/addon-a11y": "10.5.7",
66
66
  "@storybook/addon-docs": "10.5.7",
67
67
  "@storybook/addon-links": "10.5.7",
68
+ "@storybook/addon-mcp": "0.7.0",
68
69
  "@storybook/addon-vitest": "10.5.7",
70
+ "@storybook/mcp": "0.8.0",
69
71
  "@storybook/react-vite": "10.5.7",
70
72
  "@testing-library/jest-dom": "6.9.1",
71
73
  "@testing-library/react": "16.3.2",
@@ -80,9 +82,9 @@
80
82
  "axe-playwright": "2.2.2",
81
83
  "eslint": "10.8.1",
82
84
  "eslint-plugin-react-hooks": "7.1.1",
83
- "eslint-plugin-react-refresh": "0.5.3",
85
+ "eslint-plugin-react-refresh": "0.5.4",
84
86
  "eslint-plugin-storybook": "10.5.7",
85
- "globals": "17.9.0",
87
+ "globals": "17.11.0",
86
88
  "jsdom": "29.1.1",
87
89
  "playwright": "1.62.1",
88
90
  "prettier": "3.9.6",