@bcgov/design-system-react-components 0.6.1-pr642 → 0.6.1-pr644
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 +5 -1
- package/dist/cjs/index.cjs +349 -62
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +347 -63
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +21 -3
- package/package.json +11 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { DisclosureProps, DisclosureGroupProps, DialogProps as DialogProps$1, ButtonProps as ButtonProps$1, CalendarProps, DateValue, CheckboxProps, CheckboxGroupProps as CheckboxGroupProps$1, ValidationResult, DatePickerProps as DatePickerProps$1, FormProps, HeadingProps as HeadingProps$1, LinkProps as LinkProps$1, ModalOverlayProps, RadioProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, ListBoxItemProps as ListBoxItemProps$1, Key, SeparatorProps as SeparatorProps$1, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextProps as TextProps$1, TextFieldProps as TextFieldProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, SwitchProps as SwitchProps$1, TooltipProps, NumberFieldProps as NumberFieldProps$1 } from 'react-aria-components';
|
|
2
|
+
import { DisclosureProps, DisclosureGroupProps, DialogProps as DialogProps$1, ButtonProps as ButtonProps$1, CalendarProps, DateValue, CheckboxProps, CheckboxGroupProps as CheckboxGroupProps$1, ValidationResult, DatePickerProps as DatePickerProps$1, FormProps, HeadingProps as HeadingProps$1, LinkProps as LinkProps$1, ModalOverlayProps, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, ListBoxItemProps as ListBoxItemProps$1, Key, SeparatorProps as SeparatorProps$1, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextProps as TextProps$1, TextFieldProps as TextFieldProps$1, TimeValue, TimeFieldProps as TimeFieldProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, SwitchProps as SwitchProps$1, TooltipProps, NumberFieldProps as NumberFieldProps$1 } from 'react-aria-components';
|
|
3
3
|
export { DialogTrigger, TooltipTrigger } from 'react-aria-components';
|
|
4
4
|
import { PropsWithChildren } from 'react';
|
|
5
5
|
|
|
@@ -60,7 +60,7 @@ interface ButtonGroupProps extends React.PropsWithChildren {
|
|
|
60
60
|
}
|
|
61
61
|
declare function ButtonGroup({ orientation, alignment, ariaLabel, children, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
62
62
|
|
|
63
|
-
declare function Calendar({ ...props }: CalendarProps<DateValue>): react_jsx_runtime.JSX.Element;
|
|
63
|
+
declare function Calendar({ visibleDuration, ...props }: CalendarProps<DateValue>): react_jsx_runtime.JSX.Element;
|
|
64
64
|
|
|
65
65
|
interface CalloutProps extends React.PropsWithChildren {
|
|
66
66
|
variant?: "lightGrey" | "lightBlue" | "lightGold" | "Blue" | "Grey" | "Black";
|
|
@@ -227,6 +227,16 @@ declare function Link({ children, size, danger, isButton, buttonVariant, isUnsty
|
|
|
227
227
|
|
|
228
228
|
declare function Modal({ children, ...props }: ModalOverlayProps): react_jsx_runtime.JSX.Element;
|
|
229
229
|
|
|
230
|
+
interface ProgressBarProps extends ProgressBarProps$1 {
|
|
231
|
+
size?: "small" | "medium" | "large";
|
|
232
|
+
}
|
|
233
|
+
declare function ProgressBar({ size, valueLabel, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
234
|
+
|
|
235
|
+
interface ProgressCircleProps extends ProgressBarProps$1 {
|
|
236
|
+
size?: "small" | "medium" | "large";
|
|
237
|
+
}
|
|
238
|
+
declare function ProgressCircle({ size, valueLabel, ...props }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
|
|
239
|
+
|
|
230
240
|
declare function Radio({ value, children, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
231
241
|
|
|
232
242
|
interface RadioGroupProps extends RadioGroupProps$1 {
|
|
@@ -434,6 +444,14 @@ interface TextFieldProps extends TextFieldProps$1 {
|
|
|
434
444
|
}
|
|
435
445
|
declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
436
446
|
|
|
447
|
+
interface TimeFieldProps<T extends TimeValue> extends TimeFieldProps$1<T> {
|
|
448
|
+
size?: "medium" | "small";
|
|
449
|
+
label?: string;
|
|
450
|
+
description?: string;
|
|
451
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
452
|
+
}
|
|
453
|
+
declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage, isRequired, ...props }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
|
|
454
|
+
|
|
437
455
|
interface ToggleButtonProps extends ToggleButtonProps$1 {
|
|
438
456
|
size?: "small" | "medium";
|
|
439
457
|
isIconButton?: boolean;
|
|
@@ -461,4 +479,4 @@ interface NumberFieldProps extends NumberFieldProps$1 {
|
|
|
461
479
|
}
|
|
462
480
|
declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
|
|
463
481
|
|
|
464
|
-
export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Calendar, Callout, Checkbox, CheckboxGroup, DatePicker, Dialog, Footer, FooterLinks, Form, Header, Heading, InlineAlert, Link, Modal, NumberField, Radio, RadioGroup, Select, Separator, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCalendarIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronLeftIcon, SvgChevronRightIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon$1 as SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgDashIcon as SvgMinusIcon, SvgPlusIcon, SvgReactAriaIcon, SvgTooltipArrowUp, SvgUpRightFromSquareIcon, Switch, Tag, TagGroup, TagList, Text, TextArea, TextField, ToggleButton, ToggleButtonGroup, Tooltip };
|
|
482
|
+
export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Calendar, Callout, Checkbox, CheckboxGroup, DatePicker, Dialog, Footer, FooterLinks, Form, Header, Heading, InlineAlert, Link, Modal, NumberField, ProgressBar, ProgressCircle, Radio, RadioGroup, Select, Separator, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCalendarIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronLeftIcon, SvgChevronRightIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon$1 as SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgDashIcon as SvgMinusIcon, 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.6.1-
|
|
3
|
+
"version": "0.6.1-pr644",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/bcgov/design-system.git",
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
"build:types": "tsc -p tsconfig.types.json",
|
|
14
14
|
"build:dts": "rollup -c rollup.dts.config.js",
|
|
15
15
|
"build": "npm run clean && npm run build:js && npm run build:types && npm run build:dts",
|
|
16
|
+
"format:check": "npx prettier . --check",
|
|
17
|
+
"format": "npx prettier . --write",
|
|
16
18
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
17
19
|
"storybook-dev": "storybook dev -p 6006",
|
|
18
20
|
"storybook-build": "storybook build",
|
|
@@ -54,11 +56,11 @@
|
|
|
54
56
|
"@rollup/plugin-json": "6.1.0",
|
|
55
57
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
56
58
|
"@rollup/plugin-typescript": "12.3.0",
|
|
57
|
-
"@storybook/addon-a11y": "10.
|
|
58
|
-
"@storybook/addon-docs": "10.
|
|
59
|
-
"@storybook/addon-links": "10.
|
|
60
|
-
"@storybook/addon-vitest": "10.
|
|
61
|
-
"@storybook/react-vite": "10.
|
|
59
|
+
"@storybook/addon-a11y": "10.3.3",
|
|
60
|
+
"@storybook/addon-docs": "10.3.3",
|
|
61
|
+
"@storybook/addon-links": "10.3.3",
|
|
62
|
+
"@storybook/addon-vitest": "10.3.3",
|
|
63
|
+
"@storybook/react-vite": "10.3.3",
|
|
62
64
|
"@testing-library/jest-dom": "6.9.1",
|
|
63
65
|
"@testing-library/react": "16.3.1",
|
|
64
66
|
"@types/react": "19.2.7",
|
|
@@ -72,15 +74,16 @@
|
|
|
72
74
|
"eslint": "9.39.2",
|
|
73
75
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
74
76
|
"eslint-plugin-react-refresh": "0.4.26",
|
|
75
|
-
"eslint-plugin-storybook": "10.
|
|
77
|
+
"eslint-plugin-storybook": "10.3.3",
|
|
76
78
|
"globals": "16.5.0",
|
|
77
79
|
"jsdom": "27.4.0",
|
|
78
80
|
"playwright": "1.57.0",
|
|
81
|
+
"prettier": "3.8.1",
|
|
79
82
|
"rollup": "4.54.0",
|
|
80
83
|
"rollup-plugin-dts": "6.3.0",
|
|
81
84
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
82
85
|
"rollup-plugin-postcss": "4.0.2",
|
|
83
|
-
"storybook": "10.
|
|
86
|
+
"storybook": "10.3.3",
|
|
84
87
|
"tslib": "2.8.1",
|
|
85
88
|
"typescript": "5.9.3",
|
|
86
89
|
"typescript-eslint": "8.50.1",
|