@bcgov/design-system-react-components 0.7.0-pr689 → 0.7.0-pr693

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,18 +1,18 @@
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, 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
- export { DialogTrigger, TooltipTrigger } from 'react-aria-components';
4
- import { PropsWithChildren } from 'react';
1
+ import * as react from 'react';
2
+ import react__default, { PropsWithChildren } from 'react';
3
+ 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, MenuItemProps as MenuItemProps$1, MenuItemRenderProps, MenuProps as MenuProps$1, Key, PopoverProps, ModalOverlayProps, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, TagProps as TagProps$1, SelectProps as SelectProps$1, ListBoxItemProps as ListBoxItemProps$1, SeparatorProps as SeparatorProps$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';
4
+ export { DialogTrigger, MenuSection, Header as MenuSectionHeader, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
5
5
 
6
6
  interface AccordionProps extends DisclosureProps {
7
7
  label?: string;
8
8
  }
9
- declare function Accordion({ label, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
9
+ declare function Accordion({ label, children, ...props }: AccordionProps): react.JSX.Element;
10
10
 
11
11
  interface AccordionGroupProps extends DisclosureGroupProps {
12
12
  title?: string;
13
13
  titleElement?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
14
14
  }
15
- declare function AccordionGroup({ title, titleElement, children, ...props }: AccordionGroupProps): react_jsx_runtime.JSX.Element;
15
+ declare function AccordionGroup({ title, titleElement, children, ...props }: AccordionGroupProps): react.JSX.Element;
16
16
 
17
17
  interface AlertBannerProps extends React.PropsWithChildren {
18
18
  size?: "small" | "medium";
@@ -24,7 +24,7 @@ interface AlertBannerProps extends React.PropsWithChildren {
24
24
  customIcon?: React.ReactNode;
25
25
  onClose?: () => void;
26
26
  }
27
- declare function AlertBanner({ variant, size, layout, isIconHidden, isCloseable, role, onClose, children, customIcon, ...props }: AlertBannerProps): react_jsx_runtime.JSX.Element;
27
+ declare function AlertBanner({ variant, size, layout, isIconHidden, isCloseable, role, onClose, children, customIcon, ...props }: AlertBannerProps): react.JSX.Element;
28
28
 
29
29
  interface AlertDialogProps extends DialogProps$1 {
30
30
  variant?: "info" | "confirmation" | "warning" | "error" | "destructive";
@@ -33,7 +33,7 @@ interface AlertDialogProps extends DialogProps$1 {
33
33
  isCloseable?: boolean;
34
34
  buttons?: React.ReactNode;
35
35
  }
36
- declare function AlertDialog({ children, variant, role, title, isCloseable, isIconHidden, buttons, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
36
+ declare function AlertDialog({ children, variant, role, title, isCloseable, isIconHidden, buttons, ...props }: AlertDialogProps): react.JSX.Element;
37
37
 
38
38
  interface ButtonProps extends ButtonProps$1 {
39
39
  /**
@@ -53,16 +53,16 @@ interface ButtonProps extends ButtonProps$1 {
53
53
  */
54
54
  isIconButton?: boolean;
55
55
  }
56
- declare function Button({ size, variant, danger, isIconButton, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
56
+ declare function Button({ size, variant, danger, isIconButton, ...props }: ButtonProps): react.JSX.Element;
57
57
 
58
58
  interface ButtonGroupProps extends React.PropsWithChildren {
59
59
  orientation?: "horizontal" | "vertical";
60
60
  alignment?: "start" | "center" | "end";
61
61
  ariaLabel?: string | undefined;
62
62
  }
63
- declare function ButtonGroup({ orientation, alignment, ariaLabel, children, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
63
+ declare function ButtonGroup({ orientation, alignment, ariaLabel, children, ...props }: ButtonGroupProps): react.JSX.Element;
64
64
 
65
- declare function Calendar({ visibleDuration, ...props }: CalendarProps<DateValue>): react_jsx_runtime.JSX.Element;
65
+ declare function Calendar({ visibleDuration, ...props }: CalendarProps<DateValue>): react.JSX.Element;
66
66
 
67
67
  interface CalloutProps extends React.PropsWithChildren {
68
68
  variant?: "lightGrey" | "lightBlue" | "lightGold" | "Blue" | "Grey" | "Black";
@@ -72,9 +72,9 @@ interface CalloutProps extends React.PropsWithChildren {
72
72
  role?: React.AriaRole | undefined;
73
73
  isLeftBorderDisabled?: boolean;
74
74
  }
75
- declare function Callout({ variant, title, description, buttons, role, isLeftBorderDisabled, children, ...props }: CalloutProps): react_jsx_runtime.JSX.Element;
75
+ declare function Callout({ variant, title, description, buttons, role, isLeftBorderDisabled, children, ...props }: CalloutProps): react.JSX.Element;
76
76
 
77
- declare function Checkbox({ value, children, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
77
+ declare function Checkbox({ value, children, ...props }: CheckboxProps): react.JSX.Element;
78
78
 
79
79
  interface CheckboxGroupProps extends CheckboxGroupProps$1 {
80
80
  orientation?: "horizontal" | "vertical";
@@ -84,7 +84,7 @@ interface CheckboxGroupProps extends CheckboxGroupProps$1 {
84
84
  /** `flex-wrap` style property, defaults to `nowrap` */
85
85
  flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
86
86
  }
87
- declare function CheckboxGroup({ orientation, label, description, errorMessage, flexWrap, children, ...props }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
87
+ declare function CheckboxGroup({ orientation, label, description, errorMessage, flexWrap, children, ...props }: CheckboxGroupProps): react.JSX.Element;
88
88
 
89
89
  interface DatePickerProps<T extends DateValue> extends DatePickerProps$1<T> {
90
90
  size?: "small" | "medium";
@@ -96,12 +96,12 @@ interface DatePickerProps<T extends DateValue> extends DatePickerProps$1<T> {
96
96
  isBrowserLocaleUsed?: boolean;
97
97
  }
98
98
 
99
- declare function DatePicker<T extends DateValue>({ size, label, description, errorMessage, showFormatHelpText, isRequired, isCalendarDisabled, isBrowserLocaleUsed, ...props }: DatePickerProps<T>): react_jsx_runtime.JSX.Element;
99
+ declare function DatePicker<T extends DateValue>({ size, label, description, errorMessage, showFormatHelpText, isRequired, isCalendarDisabled, isBrowserLocaleUsed, ...props }: DatePickerProps<T>): react.JSX.Element;
100
100
 
101
101
  interface DialogProps extends DialogProps$1 {
102
102
  isCloseable?: boolean;
103
103
  }
104
- declare function Dialog({ isCloseable, role, children, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
104
+ declare function Dialog({ isCloseable, role, children, ...props }: DialogProps): react.JSX.Element;
105
105
 
106
106
  interface FooterLinksProps {
107
107
  /**
@@ -119,7 +119,7 @@ interface FooterLinksProps {
119
119
  * @param {FooterLinksProps} props
120
120
  * @returns {React.ReactElement}
121
121
  */
122
- declare function FooterLinks({ title, links }: FooterLinksProps): react_jsx_runtime.JSX.Element;
122
+ declare function FooterLinks({ title, links }: FooterLinksProps): react.JSX.Element;
123
123
  interface FooterProps {
124
124
  /**
125
125
  * Land acknowledgement block (defaults to Gov.bc.ca land acknowledgement)
@@ -163,9 +163,9 @@ interface FooterProps {
163
163
  * @param {FooterProps} props
164
164
  * @returns {React.ReactElement}
165
165
  */
166
- declare function Footer({ children, acknowledgement, logo, contact, links, copyright, hideAcknowledgement, hideLogoAndLinks, hideCopyright, }: React.PropsWithChildren<FooterProps>): react_jsx_runtime.JSX.Element;
166
+ declare function Footer({ children, acknowledgement, logo, contact, links, copyright, hideAcknowledgement, hideLogoAndLinks, hideCopyright, }: React.PropsWithChildren<FooterProps>): react.JSX.Element;
167
167
 
168
- declare function Form({ ...props }: FormProps): react_jsx_runtime.JSX.Element;
168
+ declare function Form({ ...props }: FormProps): react.JSX.Element;
169
169
 
170
170
  interface HeaderProps {
171
171
  /**
@@ -193,13 +193,13 @@ interface HeaderProps {
193
193
  */
194
194
  titleElement?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "p";
195
195
  }
196
- declare function Header({ children, logoLinkElement, logoImage, skipLinks, title, titleElement, }: PropsWithChildren<HeaderProps>): react_jsx_runtime.JSX.Element;
196
+ declare function Header({ children, logoLinkElement, logoImage, skipLinks, title, titleElement, }: PropsWithChildren<HeaderProps>): react.JSX.Element;
197
197
 
198
198
  interface HeadingProps extends HeadingProps$1 {
199
199
  color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
200
200
  isUnstyled?: boolean;
201
201
  }
202
- declare function Heading({ color, isUnstyled, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
202
+ declare function Heading({ color, isUnstyled, ...props }: HeadingProps): react.JSX.Element;
203
203
 
204
204
  interface InlineAlertProps extends React.PropsWithChildren {
205
205
  variant?: "info" | "success" | "warning" | "danger";
@@ -212,7 +212,7 @@ interface InlineAlertProps extends React.PropsWithChildren {
212
212
  role?: React.AriaRole | undefined;
213
213
  onClose?: () => void;
214
214
  }
215
- declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, customIcon, buttons, children, onClose, ...props }: InlineAlertProps): react_jsx_runtime.JSX.Element;
215
+ declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, customIcon, buttons, children, onClose, ...props }: InlineAlertProps): react.JSX.Element;
216
216
 
217
217
  interface LinkProps extends LinkProps$1 {
218
218
  children?: React.ReactNode;
@@ -225,21 +225,51 @@ interface LinkProps extends LinkProps$1 {
225
225
  iconLeft?: React.ReactElement;
226
226
  iconRight?: React.ReactElement;
227
227
  }
228
- declare function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
228
+ declare function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): react.JSX.Element;
229
229
 
230
- declare function Modal({ children, ...props }: ModalOverlayProps): react_jsx_runtime.JSX.Element;
230
+ interface MenuItemProps extends MenuItemProps$1 {
231
+ label?: string;
232
+ description?: string;
233
+ size?: "small" | "medium";
234
+ iconLeft?: React.ReactElement;
235
+ children?: React.ReactNode | ((props: MenuItemRenderProps & {
236
+ defaultChildren: React.ReactNode;
237
+ }) => React.ReactNode);
238
+ }
239
+ declare function MenuItem({ size, label, description, iconLeft, ...props }: MenuItemProps): react.JSX.Element;
240
+
241
+ interface MenuSectionProps {
242
+ id: Key;
243
+ header?: string;
244
+ items: MenuItemProps[];
245
+ }
246
+ interface MenuProps<T extends MenuItemProps> extends MenuProps$1<T> {
247
+ itemSize?: "small" | "medium";
248
+ items?: T[];
249
+ sections?: MenuSectionProps[];
250
+ placement?: PopoverProps["placement"];
251
+ }
252
+ declare function Menu<T extends MenuItemProps>({ itemSize, children, items, sections, placement, ...props }: MenuProps<T>): react.JSX.Element;
253
+
254
+ declare function Modal({ children, ...props }: ModalOverlayProps): react.JSX.Element;
255
+
256
+ interface SubheaderProps extends react__default.HTMLAttributes<HTMLElement> {
257
+ size?: "small" | "medium";
258
+ ariaLabel?: string;
259
+ }
260
+ declare function Subheader({ size, ariaLabel, children, ...props }: SubheaderProps): react__default.JSX.Element;
231
261
 
232
262
  interface ProgressBarProps extends ProgressBarProps$1 {
233
263
  size?: "small" | "medium" | "large";
234
264
  }
235
- declare function ProgressBar({ size, valueLabel, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
265
+ declare function ProgressBar({ size, valueLabel, ...props }: ProgressBarProps): react.JSX.Element;
236
266
 
237
267
  interface ProgressCircleProps extends ProgressBarProps$1 {
238
268
  size?: "small" | "medium" | "large";
239
269
  }
240
- declare function ProgressCircle({ size, valueLabel, ...props }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
270
+ declare function ProgressCircle({ size, valueLabel, ...props }: ProgressCircleProps): react.JSX.Element;
241
271
 
242
- declare function Radio({ value, children, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
272
+ declare function Radio({ value, children, ...props }: RadioProps): react.JSX.Element;
243
273
 
244
274
  interface RadioGroupProps extends RadioGroupProps$1 {
245
275
  children?: React.ReactNode;
@@ -250,7 +280,27 @@ interface RadioGroupProps extends RadioGroupProps$1 {
250
280
  /** `flex-wrap` style property, defaults to `nowrap` */
251
281
  flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
252
282
  }
253
- declare function RadioGroup({ orientation, label, description, children, errorMessage, flexWrap, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
283
+ declare function RadioGroup({ orientation, label, description, children, errorMessage, flexWrap, ...props }: RadioGroupProps): react.JSX.Element;
284
+
285
+ interface TagProps extends TagProps$1 {
286
+ /**
287
+ * Icon that appears to the left of the `textValue` field
288
+ */
289
+ icon?: React.ReactNode;
290
+ /**
291
+ * Background color
292
+ */
293
+ color?: "bc-blue" | "bc-gold" | "blue" | "dark" | "gray" | "grey" | "green" | "red" | "yellow";
294
+ /**
295
+ * tagStyle
296
+ */
297
+ tagStyle?: "rectangular" | "circular";
298
+ /**
299
+ * size
300
+ */
301
+ size?: "xsmall" | "small" | "medium";
302
+ }
303
+ declare function Tag({ color, tagStyle, size, icon, id, textValue, ...props }: TagProps): react.JSX.Element;
254
304
 
255
305
  interface ListBoxItemProps extends ListBoxItemProps$1 {
256
306
  /** Text label for the option. Provide an `id` if this is not unique. */
@@ -263,6 +313,10 @@ interface ListBoxItemProps extends ListBoxItemProps$1 {
263
313
  iconLeft?: React.ReactElement;
264
314
  /** Right icon slot */
265
315
  iconRight?: React.ReactElement;
316
+ /** Optional color token forwarded to selected tags */
317
+ color?: TagProps["color"];
318
+ /** Optional style token forwarded to selected tags */
319
+ tagStyle?: TagProps["tagStyle"];
266
320
  }
267
321
  interface SelectionSectionProps {
268
322
  id: Key;
@@ -271,7 +325,7 @@ interface SelectionSectionProps {
271
325
  /** Flat list of options within the section */
272
326
  items: ListBoxItemProps[];
273
327
  }
274
- interface SelectProps<T extends object> extends SelectProps$1<T> {
328
+ interface SelectProps<T extends object, M extends "single" | "multiple" = "single"> extends SelectProps$1<T, M> {
275
329
  /** Use `items` for a flat list of options */
276
330
  items?: ListBoxItemProps[];
277
331
  /** Use `sections` for a sectioned list with `items` options in each section */
@@ -286,116 +340,104 @@ interface SelectProps<T extends object> extends SelectProps$1<T> {
286
340
  description?: string;
287
341
  /** Used for data validation and error handling */
288
342
  errorMessage?: string | ((validation: ValidationResult) => string);
343
+ /** Overflow behaviour */
344
+ overflow?: "wrap" | "scroll";
289
345
  }
290
- /** Select displays a collapsible list of options and allows a user to select one of them. */
291
- declare function Select<T extends object>({ items, sections, label, description, placeholder, size, errorMessage, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
346
+ /** Select displays a collapsible list of options and allows a user to select one or more of them. */
347
+ declare function Select<T extends object, M extends "single" | "multiple" = "single">({ items, sections, label, description, placeholder, size, errorMessage, selectionMode, overflow, ...props }: SelectProps<T, M>): react.JSX.Element;
292
348
 
293
349
  interface SeparatorProps extends SeparatorProps$1 {
294
350
  size?: "small" | "medium" | "large";
295
351
  }
296
- declare function Separator({ size, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
352
+ declare function Separator({ size, ...props }: SeparatorProps): react.JSX.Element;
297
353
 
298
354
  declare function SvgBcLogo({ id }: {
299
355
  id?: string | undefined;
300
- }): react_jsx_runtime.JSX.Element;
356
+ }): react.JSX.Element;
301
357
 
302
358
  declare function SvgBcOutlineIcon({ id }: {
303
359
  id?: string | undefined;
304
- }): react_jsx_runtime.JSX.Element;
360
+ }): react.JSX.Element;
305
361
 
306
362
  declare function SvgBetaIcon({ id }: {
307
363
  id?: string | undefined;
308
- }): react_jsx_runtime.JSX.Element;
364
+ }): react.JSX.Element;
309
365
 
310
366
  declare function SvgCalendarIcon({ ...props }: {
311
367
  [x: string]: any;
312
- }): react_jsx_runtime.JSX.Element;
368
+ }): react.JSX.Element;
313
369
 
314
370
  declare function SvgCheckIcon({ id }: {
315
371
  id?: string | undefined;
316
- }): react_jsx_runtime.JSX.Element;
372
+ }): react.JSX.Element;
317
373
 
318
374
  declare function SvgCheckCircleIcon({ id }: {
319
375
  id?: string | undefined;
320
- }): react_jsx_runtime.JSX.Element;
376
+ }): react.JSX.Element;
321
377
 
322
378
  declare function SvgChevronUpIcon({ id }: {
323
379
  id?: string | undefined;
324
- }): react_jsx_runtime.JSX.Element;
380
+ }): react.JSX.Element;
325
381
 
326
382
  declare function SvgChevronDownIcon({ id }: {
327
383
  id?: string | undefined;
328
- }): react_jsx_runtime.JSX.Element;
384
+ }): react.JSX.Element;
329
385
 
330
386
  declare function SvgChevronLeftIcon({ id }: {
331
387
  id?: string | undefined;
332
- }): react_jsx_runtime.JSX.Element;
388
+ }): react.JSX.Element;
333
389
 
334
390
  declare function SvgChevronRightIcon({ id }: {
335
391
  id?: string | undefined;
336
- }): react_jsx_runtime.JSX.Element;
392
+ }): react.JSX.Element;
337
393
 
338
394
  declare function SvgDashIcon$1({ id }: {
339
395
  id?: string | undefined;
340
- }): react_jsx_runtime.JSX.Element;
396
+ }): react.JSX.Element;
341
397
 
342
398
  declare function SvgExclamationIcon({ id }: {
343
399
  id?: string | undefined;
344
- }): react_jsx_runtime.JSX.Element;
400
+ }): react.JSX.Element;
345
401
 
346
402
  declare function SvgExclamationCircleIcon({ id, }: {
347
403
  id?: string | undefined;
348
- }): react_jsx_runtime.JSX.Element;
404
+ }): react.JSX.Element;
349
405
 
350
406
  declare function SvgCloseIcon({ id }: {
351
407
  id?: string | undefined;
352
- }): react_jsx_runtime.JSX.Element;
408
+ }): react.JSX.Element;
353
409
 
354
410
  declare function SvgInfoIcon({ id }: {
355
411
  id?: string | undefined;
356
- }): react_jsx_runtime.JSX.Element;
412
+ }): react.JSX.Element;
357
413
 
358
414
  declare function SvgDashIcon({ id }: {
359
415
  id?: string | undefined;
360
- }): react_jsx_runtime.JSX.Element;
416
+ }): react.JSX.Element;
417
+
418
+ interface SvgPlaceholderIconProps {
419
+ /** Width and height of the placeholder icon, defaults to 20 */
420
+ size?: number;
421
+ }
422
+ declare function SvgPlaceholderIcon({ size, ...props }: SvgPlaceholderIconProps): react.JSX.Element;
361
423
 
362
424
  declare function SvgPlusIcon({ id }: {
363
425
  id?: string | undefined;
364
- }): react_jsx_runtime.JSX.Element;
426
+ }): react.JSX.Element;
365
427
 
366
428
  declare function SvgTooltipArrowUp({ id }: {
367
429
  id?: string | undefined;
368
- }): react_jsx_runtime.JSX.Element;
430
+ }): react.JSX.Element;
369
431
 
370
432
  interface SvgUpRightFromSquareIconProps {
371
433
  size?: 16 | 20;
372
434
  id?: string;
373
435
  }
374
- declare function SvgUpRightFromSquareIcon({ size, id, }: SvgUpRightFromSquareIconProps): react_jsx_runtime.JSX.Element;
436
+ declare function SvgUpRightFromSquareIcon({ size, id, }: SvgUpRightFromSquareIconProps): react.JSX.Element;
375
437
 
376
438
  declare function SvgReactAriaIcon({ id }: {
377
439
  id?: string | undefined;
378
- }): react_jsx_runtime.JSX.Element;
379
-
380
- interface TagProps extends TagProps$1 {
381
- /**
382
- * Icon that appears to the left of the `textValue` field
383
- */
384
- icon?: React.ReactNode;
385
- /**
386
- * Background color
387
- */
388
- color?: "bc-blue" | "bc-gold" | "blue" | "dark" | "gray" | "grey" | "green" | "red" | "yellow";
389
- /**
390
- * tagStyle
391
- */
392
- tagStyle?: "rectangular" | "circular";
393
- /**
394
- * size
395
- */
396
- size?: "small" | "medium";
397
- }
398
- declare function Tag({ color, tagStyle, size, icon, id, textValue, }: TagProps): react_jsx_runtime.JSX.Element;
440
+ }): react.JSX.Element;
399
441
 
400
442
  interface TagGroupProps extends TagGroupProps$1 {
401
443
  /**
@@ -411,7 +453,7 @@ interface TagGroupProps extends TagGroupProps$1 {
411
453
  */
412
454
  errorMessage?: string;
413
455
  }
414
- declare function TagGroup({ children, label, description, errorMessage, ...props }: TagGroupProps): react_jsx_runtime.JSX.Element;
456
+ declare function TagGroup({ children, label, description, errorMessage, ...props }: TagGroupProps): react.JSX.Element;
415
457
 
416
458
  interface TagListProps<T> extends Pick<TagListProps$1<T>, "children" | "renderEmptyState"> {
417
459
  items: TagProps[];
@@ -420,21 +462,21 @@ interface TagListProps<T> extends Pick<TagListProps$1<T>, "children" | "renderEm
420
462
  */
421
463
  orientation?: "horizontal" | "vertical";
422
464
  }
423
- declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): react_jsx_runtime.JSX.Element;
465
+ declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): react.JSX.Element;
424
466
 
425
467
  interface TextProps extends TextProps$1 {
426
468
  size?: "small" | "medium" | "large";
427
469
  color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
428
470
  isUnstyled?: boolean;
429
471
  }
430
- declare function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): react_jsx_runtime.JSX.Element;
472
+ declare function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): react.JSX.Element;
431
473
 
432
474
  interface TextAreaProps extends TextFieldProps$1 {
433
475
  label?: string;
434
476
  description?: string;
435
477
  errorMessage?: string | ((validation: ValidationResult) => string);
436
478
  }
437
- declare function TextArea({ label, description, errorMessage, maxLength, onChange, value, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
479
+ declare function TextArea({ label, description, errorMessage, maxLength, onChange, value, ...props }: TextAreaProps): react.JSX.Element;
438
480
 
439
481
  interface TextFieldProps extends TextFieldProps$1 {
440
482
  size?: "medium" | "small";
@@ -444,7 +486,7 @@ interface TextFieldProps extends TextFieldProps$1 {
444
486
  iconLeft?: React.ReactElement;
445
487
  iconRight?: React.ReactElement;
446
488
  }
447
- declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
489
+ declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): react.JSX.Element;
448
490
 
449
491
  interface TimeFieldProps<T extends TimeValue> extends TimeFieldProps$1<T> {
450
492
  size?: "medium" | "small";
@@ -452,26 +494,26 @@ interface TimeFieldProps<T extends TimeValue> extends TimeFieldProps$1<T> {
452
494
  description?: string;
453
495
  errorMessage?: string | ((validation: ValidationResult) => string);
454
496
  }
455
- declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage, isRequired, ...props }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
497
+ declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage, isRequired, ...props }: TimeFieldProps<T>): react.JSX.Element;
456
498
 
457
499
  interface ToggleButtonProps extends ToggleButtonProps$1 {
458
500
  size?: "small" | "medium";
459
501
  isIconButton?: boolean;
460
502
  }
461
- declare function ToggleButton({ size, children, isIconButton, ...props }: ToggleButtonProps): react_jsx_runtime.JSX.Element;
503
+ declare function ToggleButton({ size, children, isIconButton, ...props }: ToggleButtonProps): react.JSX.Element;
462
504
 
463
505
  interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
464
506
  label?: string;
465
507
  size?: "small" | "medium";
466
508
  }
467
- declare function ToggleButtonGroup({ label, size, children, ...props }: ToggleButtonGroupProps): react_jsx_runtime.JSX.Element;
509
+ declare function ToggleButtonGroup({ label, size, children, ...props }: ToggleButtonGroupProps): react.JSX.Element;
468
510
 
469
511
  interface SwitchProps extends SwitchProps$1 {
470
512
  labelPosition?: "left" | "right";
471
513
  }
472
- declare function Switch({ labelPosition, children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
514
+ declare function Switch({ labelPosition, children, ...props }: SwitchProps): react.JSX.Element;
473
515
 
474
- declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
516
+ declare function Tooltip(props: TooltipProps): react.JSX.Element;
475
517
 
476
518
  interface NumberFieldProps extends NumberFieldProps$1 {
477
519
  size?: "small" | "medium";
@@ -479,6 +521,6 @@ interface NumberFieldProps extends NumberFieldProps$1 {
479
521
  description?: string;
480
522
  errorMessage?: string | ((validation: ValidationResult) => string);
481
523
  }
482
- declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
524
+ declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react.JSX.Element;
483
525
 
484
- 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 };
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.7.0-pr689",
3
+ "version": "0.7.0-pr693",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/bcgov/design-system.git",
@@ -43,8 +43,8 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@bcgov/design-tokens": "4.0.0",
46
- "@react-aria/datepicker": "3.17.0",
47
- "@react-aria/i18n": "3.13.0",
46
+ "@react-aria/datepicker": "3.17.1",
47
+ "@react-aria/i18n": "3.13.1",
48
48
  "react-aria-components": "1.17.0"
49
49
  },
50
50
  "peerDependencies": {
@@ -54,46 +54,46 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@eslint/js": "10.0.1",
57
- "@figma/code-connect": "1.4.5",
58
- "@react-stately/data": "3.16.0",
59
- "@rollup/plugin-commonjs": "29.0.2",
57
+ "@figma/code-connect": "1.4.8",
58
+ "@react-stately/data": "3.16.1",
59
+ "@rollup/plugin-commonjs": "29.0.3",
60
60
  "@rollup/plugin-json": "6.1.0",
61
61
  "@rollup/plugin-node-resolve": "16.0.3",
62
62
  "@rollup/plugin-typescript": "12.3.0",
63
- "@storybook/addon-a11y": "10.4.0",
64
- "@storybook/addon-docs": "10.4.0",
65
- "@storybook/addon-links": "10.4.0",
66
- "@storybook/addon-vitest": "10.4.0",
67
- "@storybook/react-vite": "10.4.0",
63
+ "@storybook/addon-a11y": "10.4.6",
64
+ "@storybook/addon-docs": "10.4.6",
65
+ "@storybook/addon-links": "10.4.6",
66
+ "@storybook/addon-vitest": "10.4.6",
67
+ "@storybook/react-vite": "10.4.6",
68
68
  "@testing-library/jest-dom": "6.9.1",
69
69
  "@testing-library/react": "16.3.2",
70
- "@types/node": "25.9.1",
71
- "@types/react": "19.2.15",
70
+ "@types/node": "25.9.3",
71
+ "@types/react": "19.2.17",
72
72
  "@types/react-dom": "19.2.3",
73
- "@typescript-eslint/eslint-plugin": "8.59.4",
74
- "@typescript-eslint/parser": "8.59.4",
73
+ "@typescript-eslint/eslint-plugin": "8.61.0",
74
+ "@typescript-eslint/parser": "8.61.0",
75
75
  "@vitejs/plugin-react": "6.0.2",
76
- "@vitest/browser-playwright": "4.1.7",
77
- "@vitest/coverage-v8": "4.1.7",
76
+ "@vitest/browser-playwright": "4.1.9",
77
+ "@vitest/coverage-v8": "4.1.9",
78
78
  "axe-playwright": "2.2.2",
79
- "eslint": "10.4.0",
79
+ "eslint": "10.5.0",
80
80
  "eslint-plugin-react-hooks": "7.1.1",
81
- "eslint-plugin-react-refresh": "0.5.2",
82
- "eslint-plugin-storybook": "10.4.0",
83
- "globals": "17.5.0",
81
+ "eslint-plugin-react-refresh": "0.5.3",
82
+ "eslint-plugin-storybook": "10.4.6",
83
+ "globals": "17.6.0",
84
84
  "jsdom": "29.1.1",
85
- "playwright": "1.60.0",
86
- "prettier": "3.8.3",
87
- "rollup": "4.60.4",
85
+ "playwright": "1.61.0",
86
+ "prettier": "3.8.4",
87
+ "rollup": "4.62.0",
88
88
  "rollup-plugin-dts": "6.4.1",
89
89
  "rollup-plugin-peer-deps-external": "2.2.4",
90
90
  "rollup-plugin-postcss": "4.0.2",
91
- "storybook": "10.4.0",
91
+ "storybook": "10.4.6",
92
92
  "tslib": "2.8.1",
93
93
  "typescript": "6.0.3",
94
- "typescript-eslint": "8.59.4",
95
- "vite": "8.0.13",
96
- "vitest": "4.1.7"
94
+ "typescript-eslint": "8.61.0",
95
+ "vite": "8.0.16",
96
+ "vitest": "4.1.9"
97
97
  },
98
98
  "optionalDependencies": {
99
99
  "@rollup/rollup-linux-x64-gnu": "*"