@bcgov/design-system-react-components 0.5.2-pr605 → 0.5.2-pr618
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/cjs/index.cjs +17328 -6910
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +17316 -6910
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +71 -7
- package/package.json +1 -1
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, CheckboxProps, CheckboxGroupProps as CheckboxGroupProps$1, ValidationResult, 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, SwitchProps as SwitchProps$1, TooltipProps } 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, 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';
|
|
3
3
|
export { DialogTrigger, TooltipTrigger } from 'react-aria-components';
|
|
4
4
|
import { PropsWithChildren } from 'react';
|
|
5
5
|
|
|
@@ -60,6 +60,8 @@ 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;
|
|
64
|
+
|
|
63
65
|
interface CalloutProps extends React.PropsWithChildren {
|
|
64
66
|
variant?: "lightGrey" | "lightBlue" | "lightGold" | "Blue" | "Grey" | "Black";
|
|
65
67
|
title?: string;
|
|
@@ -82,6 +84,18 @@ interface CheckboxGroupProps extends CheckboxGroupProps$1 {
|
|
|
82
84
|
}
|
|
83
85
|
declare function CheckboxGroup({ orientation, label, description, errorMessage, flexWrap, children, ...props }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
84
86
|
|
|
87
|
+
interface DatePickerProps<T extends DateValue> extends DatePickerProps$1<T> {
|
|
88
|
+
size?: "small" | "medium";
|
|
89
|
+
isCalendarDisabled?: boolean;
|
|
90
|
+
label?: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
showFormatHelpText?: boolean;
|
|
93
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
94
|
+
isBrowserLocaleUsed?: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare function DatePicker<T extends DateValue>({ size, label, description, errorMessage, showFormatHelpText, isRequired, isCalendarDisabled, isBrowserLocaleUsed, ...props }: DatePickerProps<T>): react_jsx_runtime.JSX.Element;
|
|
98
|
+
|
|
85
99
|
interface DialogProps extends DialogProps$1 {
|
|
86
100
|
isCloseable?: boolean;
|
|
87
101
|
}
|
|
@@ -276,6 +290,10 @@ declare function SvgBetaIcon({ id }: {
|
|
|
276
290
|
id?: string | undefined;
|
|
277
291
|
}): react_jsx_runtime.JSX.Element;
|
|
278
292
|
|
|
293
|
+
declare function SvgCalendarIcon({ ...props }: {
|
|
294
|
+
[x: string]: any;
|
|
295
|
+
}): react_jsx_runtime.JSX.Element;
|
|
296
|
+
|
|
279
297
|
declare function SvgCheckIcon({ id }: {
|
|
280
298
|
id?: string | undefined;
|
|
281
299
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -284,23 +302,31 @@ declare function SvgCheckCircleIcon({ id }: {
|
|
|
284
302
|
id?: string | undefined;
|
|
285
303
|
}): react_jsx_runtime.JSX.Element;
|
|
286
304
|
|
|
287
|
-
declare function
|
|
305
|
+
declare function SvgChevronUpIcon({ id }: {
|
|
288
306
|
id?: string | undefined;
|
|
289
307
|
}): react_jsx_runtime.JSX.Element;
|
|
290
308
|
|
|
291
|
-
declare function
|
|
309
|
+
declare function SvgChevronDownIcon({ id }: {
|
|
292
310
|
id?: string | undefined;
|
|
293
311
|
}): react_jsx_runtime.JSX.Element;
|
|
294
312
|
|
|
295
|
-
declare function
|
|
313
|
+
declare function SvgChevronLeftIcon({ id }: {
|
|
296
314
|
id?: string | undefined;
|
|
297
315
|
}): react_jsx_runtime.JSX.Element;
|
|
298
316
|
|
|
299
|
-
declare function
|
|
317
|
+
declare function SvgChevronRightIcon({ id }: {
|
|
300
318
|
id?: string | undefined;
|
|
301
319
|
}): react_jsx_runtime.JSX.Element;
|
|
302
320
|
|
|
303
|
-
declare function
|
|
321
|
+
declare function SvgDashIcon$1({ id }: {
|
|
322
|
+
id?: string | undefined;
|
|
323
|
+
}): react_jsx_runtime.JSX.Element;
|
|
324
|
+
|
|
325
|
+
declare function SvgExclamationIcon({ id }: {
|
|
326
|
+
id?: string | undefined;
|
|
327
|
+
}): react_jsx_runtime.JSX.Element;
|
|
328
|
+
|
|
329
|
+
declare function SvgExclamationCircleIcon({ id, }: {
|
|
304
330
|
id?: string | undefined;
|
|
305
331
|
}): react_jsx_runtime.JSX.Element;
|
|
306
332
|
|
|
@@ -312,10 +338,28 @@ declare function SvgInfoIcon({ id }: {
|
|
|
312
338
|
id?: string | undefined;
|
|
313
339
|
}): react_jsx_runtime.JSX.Element;
|
|
314
340
|
|
|
341
|
+
declare function SvgDashIcon({ id }: {
|
|
342
|
+
id?: string | undefined;
|
|
343
|
+
}): react_jsx_runtime.JSX.Element;
|
|
344
|
+
|
|
345
|
+
declare function SvgPlusIcon({ id }: {
|
|
346
|
+
id?: string | undefined;
|
|
347
|
+
}): react_jsx_runtime.JSX.Element;
|
|
348
|
+
|
|
315
349
|
declare function SvgTooltipArrowUp({ id }: {
|
|
316
350
|
id?: string | undefined;
|
|
317
351
|
}): react_jsx_runtime.JSX.Element;
|
|
318
352
|
|
|
353
|
+
interface SvgUpRightFromSquareIconProps {
|
|
354
|
+
size?: 16 | 20;
|
|
355
|
+
id?: string;
|
|
356
|
+
}
|
|
357
|
+
declare function SvgUpRightFromSquareIcon({ size, id, }: SvgUpRightFromSquareIconProps): react_jsx_runtime.JSX.Element;
|
|
358
|
+
|
|
359
|
+
declare function SvgReactAriaIcon({ id }: {
|
|
360
|
+
id?: string | undefined;
|
|
361
|
+
}): react_jsx_runtime.JSX.Element;
|
|
362
|
+
|
|
319
363
|
interface TagProps extends TagProps$1 {
|
|
320
364
|
/**
|
|
321
365
|
* Icon that appears to the left of the `textValue` field
|
|
@@ -385,6 +429,18 @@ interface TextFieldProps extends TextFieldProps$1 {
|
|
|
385
429
|
}
|
|
386
430
|
declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
387
431
|
|
|
432
|
+
interface ToggleButtonProps extends ToggleButtonProps$1 {
|
|
433
|
+
size?: "small" | "medium";
|
|
434
|
+
isIconButton?: boolean;
|
|
435
|
+
}
|
|
436
|
+
declare function ToggleButton({ size, children, isIconButton, ...props }: ToggleButtonProps): react_jsx_runtime.JSX.Element;
|
|
437
|
+
|
|
438
|
+
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
439
|
+
label?: string;
|
|
440
|
+
size?: "small" | "medium";
|
|
441
|
+
}
|
|
442
|
+
declare function ToggleButtonGroup({ label, size, children, ...props }: ToggleButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
443
|
+
|
|
388
444
|
interface SwitchProps extends SwitchProps$1 {
|
|
389
445
|
labelPosition?: "left" | "right";
|
|
390
446
|
}
|
|
@@ -392,4 +448,12 @@ declare function Switch({ labelPosition, children, ...props }: SwitchProps): rea
|
|
|
392
448
|
|
|
393
449
|
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
394
450
|
|
|
395
|
-
|
|
451
|
+
interface NumberFieldProps extends NumberFieldProps$1 {
|
|
452
|
+
size?: "small" | "medium";
|
|
453
|
+
label?: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
456
|
+
}
|
|
457
|
+
declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
|
|
458
|
+
|
|
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 };
|