@bcgov/design-system-react-components 0.6.1 → 0.7.0-pr653

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
@@ -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, 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 {
@@ -278,6 +288,11 @@ interface SelectProps<T extends object> extends SelectProps$1<T> {
278
288
  /** Select displays a collapsible list of options and allows a user to select one of them. */
279
289
  declare function Select<T extends object>({ items, sections, label, description, placeholder, size, errorMessage, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
280
290
 
291
+ interface SeparatorProps extends SeparatorProps$1 {
292
+ size?: "small" | "medium" | "large";
293
+ }
294
+ declare function Separator({ size, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
295
+
281
296
  declare function SvgBcLogo({ id }: {
282
297
  id?: string | undefined;
283
298
  }): react_jsx_runtime.JSX.Element;
@@ -429,6 +444,14 @@ interface TextFieldProps extends TextFieldProps$1 {
429
444
  }
430
445
  declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
431
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
+
432
455
  interface ToggleButtonProps extends ToggleButtonProps$1 {
433
456
  size?: "small" | "medium";
434
457
  isIconButton?: boolean;
@@ -456,4 +479,4 @@ interface NumberFieldProps extends NumberFieldProps$1 {
456
479
  }
457
480
  declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
458
481
 
459
- 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, 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.7.0-pr653",
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",
@@ -41,7 +43,7 @@
41
43
  ],
42
44
  "dependencies": {
43
45
  "@bcgov/design-tokens": "3.2.0",
44
- "react-aria-components": "1.14.0"
46
+ "react-aria-components": "1.16.0"
45
47
  },
46
48
  "peerDependencies": {
47
49
  "@bcgov/bc-sans": "^2.1.0",
@@ -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.1.10",
58
- "@storybook/addon-docs": "10.1.10",
59
- "@storybook/addon-links": "10.1.10",
60
- "@storybook/addon-vitest": "10.1.10",
61
- "@storybook/react-vite": "10.1.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.1.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",
79
- "rollup": "4.54.0",
80
- "rollup-plugin-dts": "6.3.0",
81
+ "prettier": "3.8.1",
82
+ "rollup": "4.60.1",
83
+ "rollup-plugin-dts": "6.4.1",
81
84
  "rollup-plugin-peer-deps-external": "2.2.4",
82
85
  "rollup-plugin-postcss": "4.0.2",
83
- "storybook": "10.1.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",