@bcgov/design-system-react-components 0.8.0 → 0.8.1-pr760
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 +20 -9
- package/dist/cjs/index.cjs +557 -709
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +556 -708
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +129 -72
- package/package.json +31 -27
package/dist/index.d.ts
CHANGED
|
@@ -241,15 +241,15 @@ declare function MenuItem({ size, label, description, iconLeft, ...props }: Menu
|
|
|
241
241
|
interface MenuSectionProps {
|
|
242
242
|
id: Key;
|
|
243
243
|
header?: string;
|
|
244
|
-
items
|
|
244
|
+
items?: MenuItemProps[];
|
|
245
245
|
}
|
|
246
|
-
interface MenuProps
|
|
246
|
+
interface MenuProps extends MenuProps$1<MenuItemProps> {
|
|
247
247
|
itemSize?: "small" | "medium";
|
|
248
|
-
items?:
|
|
248
|
+
items?: MenuItemProps[];
|
|
249
249
|
sections?: MenuSectionProps[];
|
|
250
250
|
placement?: PopoverProps["placement"];
|
|
251
251
|
}
|
|
252
|
-
declare function Menu
|
|
252
|
+
declare function Menu({ itemSize, children, items, sections, placement, ...props }: MenuProps): react.JSX.Element;
|
|
253
253
|
|
|
254
254
|
declare function Modal({ children, ...props }: ModalOverlayProps): react.JSX.Element;
|
|
255
255
|
|
|
@@ -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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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
|
-
|
|
359
|
-
id?: string | undefined;
|
|
360
|
-
}): react.JSX.Element;
|
|
360
|
+
type IconSize = "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
361
361
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|
-
|
|
383
|
-
|
|
384
|
-
|
|
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
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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
|
-
|
|
403
|
-
|
|
404
|
-
|
|
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
|
-
|
|
407
|
-
|
|
408
|
-
|
|
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
|
-
|
|
411
|
-
|
|
412
|
-
|
|
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
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
420
|
-
|
|
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
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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?:
|
|
434
|
-
|
|
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
|
-
|
|
439
|
-
|
|
440
|
-
|
|
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
|
/**
|
|
@@ -494,7 +551,7 @@ interface TimeFieldProps<T extends TimeValue> extends TimeFieldProps$1<T> {
|
|
|
494
551
|
description?: string;
|
|
495
552
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
496
553
|
}
|
|
497
|
-
declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage,
|
|
554
|
+
declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage, ...props }: TimeFieldProps<T>): react.JSX.Element;
|
|
498
555
|
|
|
499
556
|
interface ToggleButtonProps extends ToggleButtonProps$1 {
|
|
500
557
|
size?: "small" | "medium";
|
|
@@ -521,6 +578,6 @@ interface NumberFieldProps extends NumberFieldProps$1 {
|
|
|
521
578
|
description?: string;
|
|
522
579
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
523
580
|
}
|
|
524
|
-
declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react.JSX.Element;
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.8.1-pr760",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/bcgov/design-system.git",
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"build": "npm run clean && npm run build:js && npm run build:types && npm run build:dts",
|
|
16
16
|
"format:check": "npx prettier . --check",
|
|
17
17
|
"format": "npx prettier . --write",
|
|
18
|
-
"lint": "
|
|
18
|
+
"lint": "npm run lint:ts && npm run lint:css",
|
|
19
|
+
"lint:ts": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
20
|
+
"lint:css": "stylelint \"src/**/*.css\"",
|
|
19
21
|
"storybook-dev": "storybook dev -p 6006",
|
|
20
22
|
"storybook-build": "storybook build",
|
|
21
23
|
"test": "npx vitest --project=unit --watch=false",
|
|
@@ -54,46 +56,48 @@
|
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"@eslint/js": "10.0.1",
|
|
57
|
-
"@figma/code-connect": "1.
|
|
59
|
+
"@figma/code-connect": "1.5.2",
|
|
58
60
|
"@react-stately/data": "3.16.1",
|
|
59
61
|
"@rollup/plugin-commonjs": "29.0.3",
|
|
60
62
|
"@rollup/plugin-json": "6.1.0",
|
|
61
63
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
62
64
|
"@rollup/plugin-typescript": "12.3.0",
|
|
63
|
-
"@storybook/addon-a11y": "10.
|
|
64
|
-
"@storybook/addon-docs": "10.
|
|
65
|
-
"@storybook/addon-links": "10.
|
|
66
|
-
"@storybook/addon-vitest": "10.
|
|
67
|
-
"@storybook/react-vite": "10.
|
|
65
|
+
"@storybook/addon-a11y": "10.5.7",
|
|
66
|
+
"@storybook/addon-docs": "10.5.7",
|
|
67
|
+
"@storybook/addon-links": "10.5.7",
|
|
68
|
+
"@storybook/addon-vitest": "10.5.7",
|
|
69
|
+
"@storybook/react-vite": "10.5.7",
|
|
68
70
|
"@testing-library/jest-dom": "6.9.1",
|
|
69
71
|
"@testing-library/react": "16.3.2",
|
|
70
|
-
"@types/node": "25.9.
|
|
71
|
-
"@types/react": "19.2.
|
|
72
|
-
"@types/react-dom": "19.2.
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
74
|
-
"@typescript-eslint/parser": "8.
|
|
75
|
-
"@vitejs/plugin-react": "6.0.
|
|
76
|
-
"@vitest/browser-playwright": "4.1.
|
|
77
|
-
"@vitest/coverage-v8": "4.1.
|
|
72
|
+
"@types/node": "25.9.5",
|
|
73
|
+
"@types/react": "19.2.18",
|
|
74
|
+
"@types/react-dom": "19.2.4",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "8.67.0",
|
|
76
|
+
"@typescript-eslint/parser": "8.67.0",
|
|
77
|
+
"@vitejs/plugin-react": "6.0.5",
|
|
78
|
+
"@vitest/browser-playwright": "4.1.10",
|
|
79
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
78
80
|
"axe-playwright": "2.2.2",
|
|
79
|
-
"eslint": "10.
|
|
81
|
+
"eslint": "10.8.1",
|
|
80
82
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
81
83
|
"eslint-plugin-react-refresh": "0.5.3",
|
|
82
|
-
"eslint-plugin-storybook": "10.
|
|
83
|
-
"globals": "17.
|
|
84
|
+
"eslint-plugin-storybook": "10.5.7",
|
|
85
|
+
"globals": "17.9.0",
|
|
84
86
|
"jsdom": "29.1.1",
|
|
85
|
-
"playwright": "1.
|
|
86
|
-
"prettier": "3.
|
|
87
|
-
"rollup": "4.62.
|
|
88
|
-
"rollup-plugin-dts": "6.
|
|
87
|
+
"playwright": "1.62.1",
|
|
88
|
+
"prettier": "3.9.6",
|
|
89
|
+
"rollup": "4.62.4",
|
|
90
|
+
"rollup-plugin-dts": "6.5.1",
|
|
89
91
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
90
92
|
"rollup-plugin-postcss": "4.0.2",
|
|
91
|
-
"storybook": "10.
|
|
93
|
+
"storybook": "10.5.7",
|
|
94
|
+
"stylelint": "17.14.1",
|
|
95
|
+
"stylelint-config-standard": "40.0.0",
|
|
92
96
|
"tslib": "2.8.1",
|
|
93
97
|
"typescript": "6.0.3",
|
|
94
|
-
"typescript-eslint": "8.
|
|
95
|
-
"vite": "8.
|
|
96
|
-
"vitest": "4.1.
|
|
98
|
+
"typescript-eslint": "8.67.0",
|
|
99
|
+
"vite": "8.2.1",
|
|
100
|
+
"vitest": "4.1.10"
|
|
97
101
|
},
|
|
98
102
|
"optionalDependencies": {
|
|
99
103
|
"@rollup/rollup-linux-x64-gnu": "*"
|