@bcgov/design-system-react-components 0.5.2-pr604 → 0.5.2-pr611
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 +2157 -134
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +2152 -134
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +31 -4
- 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, 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, 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
|
|
|
@@ -192,10 +192,11 @@ interface InlineAlertProps extends React.PropsWithChildren {
|
|
|
192
192
|
buttons?: React.ReactNode;
|
|
193
193
|
isCloseable?: boolean;
|
|
194
194
|
isIconHidden?: boolean;
|
|
195
|
+
customIcon?: React.ReactNode;
|
|
195
196
|
role?: React.AriaRole | undefined;
|
|
196
197
|
onClose?: () => void;
|
|
197
198
|
}
|
|
198
|
-
declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, buttons, children, onClose, ...props }: InlineAlertProps): react_jsx_runtime.JSX.Element;
|
|
199
|
+
declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, customIcon, buttons, children, onClose, ...props }: InlineAlertProps): react_jsx_runtime.JSX.Element;
|
|
199
200
|
|
|
200
201
|
interface LinkProps extends LinkProps$1 {
|
|
201
202
|
children?: React.ReactNode;
|
|
@@ -283,7 +284,7 @@ declare function SvgCheckCircleIcon({ id }: {
|
|
|
283
284
|
id?: string | undefined;
|
|
284
285
|
}): react_jsx_runtime.JSX.Element;
|
|
285
286
|
|
|
286
|
-
declare function SvgDashIcon({ id }: {
|
|
287
|
+
declare function SvgDashIcon$1({ id }: {
|
|
287
288
|
id?: string | undefined;
|
|
288
289
|
}): react_jsx_runtime.JSX.Element;
|
|
289
290
|
|
|
@@ -311,10 +312,28 @@ declare function SvgInfoIcon({ id }: {
|
|
|
311
312
|
id?: string | undefined;
|
|
312
313
|
}): react_jsx_runtime.JSX.Element;
|
|
313
314
|
|
|
315
|
+
declare function SvgDashIcon({ id }: {
|
|
316
|
+
id?: string | undefined;
|
|
317
|
+
}): react_jsx_runtime.JSX.Element;
|
|
318
|
+
|
|
319
|
+
declare function SvgPlusIcon({ id }: {
|
|
320
|
+
id?: string | undefined;
|
|
321
|
+
}): react_jsx_runtime.JSX.Element;
|
|
322
|
+
|
|
314
323
|
declare function SvgTooltipArrowUp({ id }: {
|
|
315
324
|
id?: string | undefined;
|
|
316
325
|
}): react_jsx_runtime.JSX.Element;
|
|
317
326
|
|
|
327
|
+
interface SvgUpRightFromSquareIconProps {
|
|
328
|
+
size?: 16 | 20;
|
|
329
|
+
id?: string;
|
|
330
|
+
}
|
|
331
|
+
declare function SvgUpRightFromSquareIcon({ size, id, }: SvgUpRightFromSquareIconProps): react_jsx_runtime.JSX.Element;
|
|
332
|
+
|
|
333
|
+
declare function SvgReactAriaIcon({ id }: {
|
|
334
|
+
id?: string | undefined;
|
|
335
|
+
}): react_jsx_runtime.JSX.Element;
|
|
336
|
+
|
|
318
337
|
interface TagProps extends TagProps$1 {
|
|
319
338
|
/**
|
|
320
339
|
* Icon that appears to the left of the `textValue` field
|
|
@@ -391,4 +410,12 @@ declare function Switch({ labelPosition, children, ...props }: SwitchProps): rea
|
|
|
391
410
|
|
|
392
411
|
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
393
412
|
|
|
394
|
-
|
|
413
|
+
interface NumberFieldProps extends NumberFieldProps$1 {
|
|
414
|
+
size?: "small" | "medium";
|
|
415
|
+
label?: string;
|
|
416
|
+
description?: string;
|
|
417
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
418
|
+
}
|
|
419
|
+
declare function NumberField({ size, label, description, errorMessage, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
|
|
420
|
+
|
|
421
|
+
export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Callout, Checkbox, CheckboxGroup, Dialog, Footer, FooterLinks, Form, Header, Heading, InlineAlert, Link, Modal, NumberField, Radio, RadioGroup, Select, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon$1 as SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgDashIcon as SvgMinusIcon, SvgPlusIcon, SvgReactAriaIcon, SvgTooltipArrowUp, SvgUpRightFromSquareIcon, Switch, Tag, TagGroup, TagList, Text, TextArea, TextField, Tooltip };
|