@bcgov/design-system-react-components 0.8.0 → 0.8.1-pr761
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 +18 -9
- package/dist/cjs/index.cjs +175 -467
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +175 -467
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +6 -6
- 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
|
|
|
@@ -494,7 +494,7 @@ interface TimeFieldProps<T extends TimeValue> extends TimeFieldProps$1<T> {
|
|
|
494
494
|
description?: string;
|
|
495
495
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
496
496
|
}
|
|
497
|
-
declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage,
|
|
497
|
+
declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage, ...props }: TimeFieldProps<T>): react.JSX.Element;
|
|
498
498
|
|
|
499
499
|
interface ToggleButtonProps extends ToggleButtonProps$1 {
|
|
500
500
|
size?: "small" | "medium";
|
|
@@ -521,6 +521,6 @@ interface NumberFieldProps extends NumberFieldProps$1 {
|
|
|
521
521
|
description?: string;
|
|
522
522
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
523
523
|
}
|
|
524
|
-
declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react.JSX.Element;
|
|
524
|
+
declare function NumberField({ size, label, description, minValue, errorMessage, ...props }: NumberFieldProps): react.JSX.Element;
|
|
525
525
|
|
|
526
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 };
|
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-pr761",
|
|
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": "*"
|