@bcgov/design-system-react-components 0.9.0-pr963 → 0.9.1-pr1000
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/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/cjs/components/Accordion/Accordion2.cjs +30 -0
- package/dist/cjs/components/Accordion/Accordion2.cjs.map +1 -0
- package/dist/cjs/components/Accordion/index.cjs +3 -0
- package/dist/cjs/components/AccordionGroup/AccordionGroup2.cjs +29 -0
- package/dist/cjs/components/AccordionGroup/AccordionGroup2.cjs.map +1 -0
- package/dist/cjs/components/AccordionGroup/index.cjs +3 -0
- package/dist/cjs/components/AlertBanner/AlertBanner2.cjs +62 -0
- package/dist/cjs/components/AlertBanner/AlertBanner2.cjs.map +1 -0
- package/dist/cjs/components/AlertBanner/index.cjs +3 -0
- package/dist/cjs/components/AlertDialog/AlertDialog2.cjs +77 -0
- package/dist/cjs/components/AlertDialog/AlertDialog2.cjs.map +1 -0
- package/dist/cjs/components/AlertDialog/index.cjs +4 -0
- package/dist/cjs/components/Button/Button2.cjs +14 -0
- package/dist/cjs/components/Button/Button2.cjs.map +1 -0
- package/dist/cjs/components/Button/index.cjs +3 -0
- package/dist/cjs/components/ButtonGroup/ButtonGroup2.cjs +16 -0
- package/dist/cjs/components/ButtonGroup/ButtonGroup2.cjs.map +1 -0
- package/dist/cjs/components/ButtonGroup/index.cjs +3 -0
- package/dist/cjs/components/Calendar/Calendar2.cjs +65 -0
- package/dist/cjs/components/Calendar/Calendar2.cjs.map +1 -0
- package/dist/cjs/components/Calendar/index.cjs +3 -0
- package/dist/cjs/components/Callout/Callout2.cjs +37 -0
- package/dist/cjs/components/Callout/Callout2.cjs.map +1 -0
- package/dist/cjs/components/Callout/index.cjs +3 -0
- package/dist/cjs/components/Checkbox/Checkbox2.cjs +47 -0
- package/dist/cjs/components/Checkbox/Checkbox2.cjs.map +1 -0
- package/dist/cjs/components/Checkbox/index.cjs +3 -0
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup2.cjs +39 -0
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup2.cjs.map +1 -0
- package/dist/cjs/components/CheckboxGroup/index.cjs +3 -0
- package/dist/cjs/components/DatePicker/DatePicker2.cjs +78 -0
- package/dist/cjs/components/DatePicker/DatePicker2.cjs.map +1 -0
- package/dist/cjs/components/DatePicker/index.cjs +3 -0
- package/dist/cjs/components/DateSegment/DateSegment.cjs +18 -0
- package/dist/cjs/components/DateSegment/DateSegment.cjs.map +1 -0
- package/dist/cjs/components/DateSegment/index.cjs +3 -0
- package/dist/cjs/components/Dialog/Dialog2.cjs +34 -0
- package/dist/cjs/components/Dialog/Dialog2.cjs.map +1 -0
- package/dist/cjs/components/Dialog/index.cjs +4 -0
- package/dist/cjs/components/Footer/Footer2.cjs +123 -0
- package/dist/cjs/components/Footer/Footer2.cjs.map +1 -0
- package/dist/cjs/components/Footer/index.cjs +4 -0
- package/dist/cjs/components/Form/Form.cjs +10 -0
- package/dist/cjs/components/Form/Form.cjs.map +1 -0
- package/dist/cjs/components/Form/index.cjs +3 -0
- package/dist/cjs/components/Header/Header2.cjs +73 -0
- package/dist/cjs/components/Header/Header2.cjs.map +1 -0
- package/dist/cjs/components/Header/index.cjs +3 -0
- package/dist/cjs/components/Heading/Heading2.cjs +14 -0
- package/dist/cjs/components/Heading/Heading2.cjs.map +1 -0
- package/dist/cjs/components/Heading/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgBcLogo/SvgBcLogo2.cjs +121 -0
- package/dist/cjs/components/Icons/SvgBcLogo/SvgBcLogo2.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgBcLogo/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgBcOutlineIcon/SvgBcOutlineIcon.cjs +36 -0
- package/dist/cjs/components/Icons/SvgBcOutlineIcon/SvgBcOutlineIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgBcOutlineIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgBetaIcon/SvgBetaIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgBetaIcon/SvgBetaIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgBetaIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgCalendarIcon/SvgCalendarIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgCalendarIcon/SvgCalendarIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgCalendarIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgCheckCircleIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgCheckIcon/SvgCheckIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgCheckIcon/SvgCheckIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgCheckIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgChevronDownIcon/SvgChevronDownIcon.cjs +33 -0
- package/dist/cjs/components/Icons/SvgChevronDownIcon/SvgChevronDownIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgChevronDownIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgChevronLeftIcon/SvgChevronLeftIcon.cjs +33 -0
- package/dist/cjs/components/Icons/SvgChevronLeftIcon/SvgChevronLeftIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgChevronLeftIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgChevronRightIcon/SvgChevronRightIcon.cjs +33 -0
- package/dist/cjs/components/Icons/SvgChevronRightIcon/SvgChevronRightIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgChevronRightIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgChevronUpIcon/SvgChevronUpIcon.cjs +33 -0
- package/dist/cjs/components/Icons/SvgChevronUpIcon/SvgChevronUpIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgChevronUpIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgCloseIcon/SvgCloseIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgCloseIcon/SvgCloseIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgCloseIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgDashIcon/SvgDashIcon.cjs +30 -0
- package/dist/cjs/components/Icons/SvgDashIcon/SvgDashIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgDashIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgExclamationCircleIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgExclamationIcon/SvgExclamationIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgExclamationIcon/SvgExclamationIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgExclamationIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgInfoIcon/SvgInfoIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgInfoIcon/SvgInfoIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgInfoIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgMinusIcon/SvgMinusIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgMinusIcon/SvgMinusIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgMinusIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgPlaceholderIcon/SvgPlaceholderIcon.cjs +52 -0
- package/dist/cjs/components/Icons/SvgPlaceholderIcon/SvgPlaceholderIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgPlaceholderIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgPlusIcon/SvgPlusIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgPlusIcon/SvgPlusIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgPlusIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgReactAriaIcon/SvgReactAriaIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgReactAriaIcon/SvgReactAriaIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgReactAriaIcon/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.cjs +30 -0
- package/dist/cjs/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgTooltipArrowUp/index.cjs +3 -0
- package/dist/cjs/components/Icons/SvgUpRightFromSquareIcon/SvgUpRightFromSquareIcon.cjs +32 -0
- package/dist/cjs/components/Icons/SvgUpRightFromSquareIcon/SvgUpRightFromSquareIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/SvgUpRightFromSquareIcon/index.cjs +3 -0
- package/dist/cjs/components/InlineAlert/InlineAlert2.cjs +75 -0
- package/dist/cjs/components/InlineAlert/InlineAlert2.cjs.map +1 -0
- package/dist/cjs/components/InlineAlert/index.cjs +3 -0
- package/dist/cjs/components/Link/Link2.cjs +27 -0
- package/dist/cjs/components/Link/Link2.cjs.map +1 -0
- package/dist/cjs/components/Link/index.cjs +3 -0
- package/dist/cjs/components/Menu/Menu2.cjs +65 -0
- package/dist/cjs/components/Menu/Menu2.cjs.map +1 -0
- package/dist/cjs/components/Menu/index.cjs +4 -0
- package/dist/cjs/components/MenuItem/MenuItem2.cjs +42 -0
- package/dist/cjs/components/MenuItem/MenuItem2.cjs.map +1 -0
- package/dist/cjs/components/MenuItem/index.cjs +3 -0
- package/dist/cjs/components/Modal/Modal2.cjs +15 -0
- package/dist/cjs/components/Modal/Modal2.cjs.map +1 -0
- package/dist/cjs/components/Modal/index.cjs +3 -0
- package/dist/cjs/components/NumberField/NumberField2.cjs +82 -0
- package/dist/cjs/components/NumberField/NumberField2.cjs.map +1 -0
- package/dist/cjs/components/NumberField/index.cjs +3 -0
- package/dist/cjs/components/ProgressBar/ProgressBar2.cjs +27 -0
- package/dist/cjs/components/ProgressBar/ProgressBar2.cjs.map +1 -0
- package/dist/cjs/components/ProgressBar/index.cjs +3 -0
- package/dist/cjs/components/ProgressCircle/ProgressCircle2.cjs +28 -0
- package/dist/cjs/components/ProgressCircle/ProgressCircle2.cjs.map +1 -0
- package/dist/cjs/components/ProgressCircle/index.cjs +3 -0
- package/dist/cjs/components/Radio/Radio2.cjs +27 -0
- package/dist/cjs/components/Radio/Radio2.cjs.map +1 -0
- package/dist/cjs/components/Radio/index.cjs +3 -0
- package/dist/cjs/components/RadioGroup/RadioGroup2.cjs +39 -0
- package/dist/cjs/components/RadioGroup/RadioGroup2.cjs.map +1 -0
- package/dist/cjs/components/RadioGroup/index.cjs +3 -0
- package/dist/cjs/components/Select/Select2.cjs +171 -0
- package/dist/cjs/components/Select/Select2.cjs.map +1 -0
- package/dist/cjs/components/Select/index.cjs +3 -0
- package/dist/cjs/components/Separator/Separator2.cjs +14 -0
- package/dist/cjs/components/Separator/Separator2.cjs.map +1 -0
- package/dist/cjs/components/Separator/index.cjs +3 -0
- package/dist/cjs/components/Subheader/Subheader2.cjs +42 -0
- package/dist/cjs/components/Subheader/Subheader2.cjs.map +1 -0
- package/dist/cjs/components/Subheader/index.cjs +3 -0
- package/dist/cjs/components/Switch/Switch2.cjs +39 -0
- package/dist/cjs/components/Switch/Switch2.cjs.map +1 -0
- package/dist/cjs/components/Switch/index.cjs +3 -0
- package/dist/cjs/components/Tag/Tag2.cjs +42 -0
- package/dist/cjs/components/Tag/Tag2.cjs.map +1 -0
- package/dist/cjs/components/Tag/index.cjs +3 -0
- package/dist/cjs/components/TagGroup/TagGroup2.cjs +33 -0
- package/dist/cjs/components/TagGroup/TagGroup2.cjs.map +1 -0
- package/dist/cjs/components/TagGroup/index.cjs +3 -0
- package/dist/cjs/components/TagList/TagList2.cjs +23 -0
- package/dist/cjs/components/TagList/TagList2.cjs.map +1 -0
- package/dist/cjs/components/TagList/index.cjs +3 -0
- package/dist/cjs/components/Text/Text2.cjs +16 -0
- package/dist/cjs/components/Text/Text2.cjs.map +1 -0
- package/dist/cjs/components/Text/index.cjs +3 -0
- package/dist/cjs/components/TextArea/TextArea2.cjs +56 -0
- package/dist/cjs/components/TextArea/TextArea2.cjs.map +1 -0
- package/dist/cjs/components/TextArea/index.cjs +3 -0
- package/dist/cjs/components/TextField/TextField2.cjs +43 -0
- package/dist/cjs/components/TextField/TextField2.cjs.map +1 -0
- package/dist/cjs/components/TextField/index.cjs +3 -0
- package/dist/cjs/components/TimeField/TimeField2.cjs +51 -0
- package/dist/cjs/components/TimeField/TimeField2.cjs.map +1 -0
- package/dist/cjs/components/TimeField/index.cjs +3 -0
- package/dist/cjs/components/ToggleButton/ToggleButton2.cjs +15 -0
- package/dist/cjs/components/ToggleButton/ToggleButton2.cjs.map +1 -0
- package/dist/cjs/components/ToggleButton/index.cjs +3 -0
- package/dist/cjs/components/ToggleButtonGroup/ToggleButtonGroup2.cjs +18 -0
- package/dist/cjs/components/ToggleButtonGroup/ToggleButtonGroup2.cjs.map +1 -0
- package/dist/cjs/components/ToggleButtonGroup/index.cjs +3 -0
- package/dist/cjs/components/Tooltip/Tooltip2.cjs +20 -0
- package/dist/cjs/components/Tooltip/Tooltip2.cjs.map +1 -0
- package/dist/cjs/components/Tooltip/index.cjs +4 -0
- package/dist/cjs/components/index.cjs +223 -0
- package/dist/cjs/hooks/useDateFormatLabel.cjs +28 -0
- package/dist/cjs/hooks/useDateFormatLabel.cjs.map +1 -0
- package/dist/cjs/hooks/useTimeZoneLabel.cjs +20 -0
- package/dist/cjs/hooks/useTimeZoneLabel.cjs.map +1 -0
- package/dist/cjs/index.cjs +157 -32599
- package/dist/cjs/node_modules/@bcgov/design-tokens/js/index.cjs +14 -0
- package/dist/cjs/node_modules/@bcgov/design-tokens/js/index.cjs.map +1 -0
- package/dist/cjs/utils/getIconSize.cjs +16 -0
- package/dist/cjs/utils/getIconSize.cjs.map +1 -0
- package/dist/esm/components/Accordion/Accordion2.js +30 -0
- package/dist/esm/components/Accordion/Accordion2.js.map +1 -0
- package/dist/esm/components/Accordion/index.js +2 -0
- package/dist/esm/components/AccordionGroup/AccordionGroup2.js +29 -0
- package/dist/esm/components/AccordionGroup/AccordionGroup2.js.map +1 -0
- package/dist/esm/components/AccordionGroup/index.js +2 -0
- package/dist/esm/components/AlertBanner/AlertBanner2.js +62 -0
- package/dist/esm/components/AlertBanner/AlertBanner2.js.map +1 -0
- package/dist/esm/components/AlertBanner/index.js +2 -0
- package/dist/esm/components/AlertDialog/AlertDialog2.js +77 -0
- package/dist/esm/components/AlertDialog/AlertDialog2.js.map +1 -0
- package/dist/esm/components/AlertDialog/index.js +2 -0
- package/dist/esm/components/Button/Button2.js +14 -0
- package/dist/esm/components/Button/Button2.js.map +1 -0
- package/dist/esm/components/Button/index.js +2 -0
- package/dist/esm/components/ButtonGroup/ButtonGroup2.js +16 -0
- package/dist/esm/components/ButtonGroup/ButtonGroup2.js.map +1 -0
- package/dist/esm/components/ButtonGroup/index.js +2 -0
- package/dist/esm/components/Calendar/Calendar2.js +65 -0
- package/dist/esm/components/Calendar/Calendar2.js.map +1 -0
- package/dist/esm/components/Calendar/index.js +2 -0
- package/dist/esm/components/Callout/Callout2.js +37 -0
- package/dist/esm/components/Callout/Callout2.js.map +1 -0
- package/dist/esm/components/Callout/index.js +2 -0
- package/dist/esm/components/Checkbox/Checkbox2.js +47 -0
- package/dist/esm/components/Checkbox/Checkbox2.js.map +1 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/CheckboxGroup/CheckboxGroup2.js +39 -0
- package/dist/esm/components/CheckboxGroup/CheckboxGroup2.js.map +1 -0
- package/dist/esm/components/CheckboxGroup/index.js +2 -0
- package/dist/esm/components/DatePicker/DatePicker2.js +78 -0
- package/dist/esm/components/DatePicker/DatePicker2.js.map +1 -0
- package/dist/esm/components/DatePicker/index.js +2 -0
- package/dist/esm/components/DateSegment/DateSegment.js +18 -0
- package/dist/esm/components/DateSegment/DateSegment.js.map +1 -0
- package/dist/esm/components/DateSegment/index.js +2 -0
- package/dist/esm/components/Dialog/Dialog2.js +34 -0
- package/dist/esm/components/Dialog/Dialog2.js.map +1 -0
- package/dist/esm/components/Dialog/index.js +2 -0
- package/dist/esm/components/Footer/Footer2.js +122 -0
- package/dist/esm/components/Footer/Footer2.js.map +1 -0
- package/dist/esm/components/Footer/index.js +2 -0
- package/dist/esm/components/Form/Form.js +10 -0
- package/dist/esm/components/Form/Form.js.map +1 -0
- package/dist/esm/components/Form/index.js +2 -0
- package/dist/esm/components/Header/Header2.js +73 -0
- package/dist/esm/components/Header/Header2.js.map +1 -0
- package/dist/esm/components/Header/index.js +2 -0
- package/dist/esm/components/Heading/Heading2.js +14 -0
- package/dist/esm/components/Heading/Heading2.js.map +1 -0
- package/dist/esm/components/Heading/index.js +2 -0
- package/dist/esm/components/Icons/SvgBcLogo/SvgBcLogo2.js +121 -0
- package/dist/esm/components/Icons/SvgBcLogo/SvgBcLogo2.js.map +1 -0
- package/dist/esm/components/Icons/SvgBcLogo/index.js +2 -0
- package/dist/esm/components/Icons/SvgBcOutlineIcon/SvgBcOutlineIcon.js +36 -0
- package/dist/esm/components/Icons/SvgBcOutlineIcon/SvgBcOutlineIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgBcOutlineIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgBetaIcon/SvgBetaIcon.js +32 -0
- package/dist/esm/components/Icons/SvgBetaIcon/SvgBetaIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgBetaIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgCalendarIcon/SvgCalendarIcon.js +32 -0
- package/dist/esm/components/Icons/SvgCalendarIcon/SvgCalendarIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgCalendarIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.js +32 -0
- package/dist/esm/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgCheckCircleIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgCheckIcon/SvgCheckIcon.js +32 -0
- package/dist/esm/components/Icons/SvgCheckIcon/SvgCheckIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgCheckIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgChevronDownIcon/SvgChevronDownIcon.js +33 -0
- package/dist/esm/components/Icons/SvgChevronDownIcon/SvgChevronDownIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgChevronDownIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgChevronLeftIcon/SvgChevronLeftIcon.js +33 -0
- package/dist/esm/components/Icons/SvgChevronLeftIcon/SvgChevronLeftIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgChevronLeftIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgChevronRightIcon/SvgChevronRightIcon.js +33 -0
- package/dist/esm/components/Icons/SvgChevronRightIcon/SvgChevronRightIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgChevronRightIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgChevronUpIcon/SvgChevronUpIcon.js +33 -0
- package/dist/esm/components/Icons/SvgChevronUpIcon/SvgChevronUpIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgChevronUpIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgCloseIcon/SvgCloseIcon.js +32 -0
- package/dist/esm/components/Icons/SvgCloseIcon/SvgCloseIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgCloseIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgDashIcon/SvgDashIcon.js +30 -0
- package/dist/esm/components/Icons/SvgDashIcon/SvgDashIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgDashIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.js +32 -0
- package/dist/esm/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgExclamationCircleIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgExclamationIcon/SvgExclamationIcon.js +32 -0
- package/dist/esm/components/Icons/SvgExclamationIcon/SvgExclamationIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgExclamationIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgInfoIcon/SvgInfoIcon.js +32 -0
- package/dist/esm/components/Icons/SvgInfoIcon/SvgInfoIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgInfoIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgMinusIcon/SvgMinusIcon.js +32 -0
- package/dist/esm/components/Icons/SvgMinusIcon/SvgMinusIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgMinusIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgPlaceholderIcon/SvgPlaceholderIcon.js +52 -0
- package/dist/esm/components/Icons/SvgPlaceholderIcon/SvgPlaceholderIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgPlaceholderIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgPlusIcon/SvgPlusIcon.js +32 -0
- package/dist/esm/components/Icons/SvgPlusIcon/SvgPlusIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgPlusIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgReactAriaIcon/SvgReactAriaIcon.js +32 -0
- package/dist/esm/components/Icons/SvgReactAriaIcon/SvgReactAriaIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgReactAriaIcon/index.js +2 -0
- package/dist/esm/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.js +30 -0
- package/dist/esm/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.js.map +1 -0
- package/dist/esm/components/Icons/SvgTooltipArrowUp/index.js +2 -0
- package/dist/esm/components/Icons/SvgUpRightFromSquareIcon/SvgUpRightFromSquareIcon.js +32 -0
- package/dist/esm/components/Icons/SvgUpRightFromSquareIcon/SvgUpRightFromSquareIcon.js.map +1 -0
- package/dist/esm/components/Icons/SvgUpRightFromSquareIcon/index.js +2 -0
- package/dist/esm/components/InlineAlert/InlineAlert2.js +75 -0
- package/dist/esm/components/InlineAlert/InlineAlert2.js.map +1 -0
- package/dist/esm/components/InlineAlert/index.js +2 -0
- package/dist/esm/components/Link/Link2.js +27 -0
- package/dist/esm/components/Link/Link2.js.map +1 -0
- package/dist/esm/components/Link/index.js +2 -0
- package/dist/esm/components/Menu/Menu2.js +53 -0
- package/dist/esm/components/Menu/Menu2.js.map +1 -0
- package/dist/esm/components/Menu/index.js +2 -0
- package/dist/esm/components/MenuItem/MenuItem2.js +42 -0
- package/dist/esm/components/MenuItem/MenuItem2.js.map +1 -0
- package/dist/esm/components/MenuItem/index.js +2 -0
- package/dist/esm/components/Modal/Modal2.js +15 -0
- package/dist/esm/components/Modal/Modal2.js.map +1 -0
- package/dist/esm/components/Modal/index.js +2 -0
- package/dist/esm/components/NumberField/NumberField2.js +82 -0
- package/dist/esm/components/NumberField/NumberField2.js.map +1 -0
- package/dist/esm/components/NumberField/index.js +2 -0
- package/dist/esm/components/ProgressBar/ProgressBar2.js +27 -0
- package/dist/esm/components/ProgressBar/ProgressBar2.js.map +1 -0
- package/dist/esm/components/ProgressBar/index.js +2 -0
- package/dist/esm/components/ProgressCircle/ProgressCircle2.js +28 -0
- package/dist/esm/components/ProgressCircle/ProgressCircle2.js.map +1 -0
- package/dist/esm/components/ProgressCircle/index.js +2 -0
- package/dist/esm/components/Radio/Radio2.js +27 -0
- package/dist/esm/components/Radio/Radio2.js.map +1 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/RadioGroup/RadioGroup2.js +39 -0
- package/dist/esm/components/RadioGroup/RadioGroup2.js.map +1 -0
- package/dist/esm/components/RadioGroup/index.js +2 -0
- package/dist/esm/components/Select/Select2.js +171 -0
- package/dist/esm/components/Select/Select2.js.map +1 -0
- package/dist/esm/components/Select/index.js +2 -0
- package/dist/esm/components/Separator/Separator2.js +14 -0
- package/dist/esm/components/Separator/Separator2.js.map +1 -0
- package/dist/esm/components/Separator/index.js +2 -0
- package/dist/esm/components/Subheader/Subheader2.js +40 -0
- package/dist/esm/components/Subheader/Subheader2.js.map +1 -0
- package/dist/esm/components/Subheader/index.js +2 -0
- package/dist/esm/components/Switch/Switch2.js +39 -0
- package/dist/esm/components/Switch/Switch2.js.map +1 -0
- package/dist/esm/components/Switch/index.js +2 -0
- package/dist/esm/components/Tag/Tag2.js +42 -0
- package/dist/esm/components/Tag/Tag2.js.map +1 -0
- package/dist/esm/components/Tag/index.js +2 -0
- package/dist/esm/components/TagGroup/TagGroup2.js +33 -0
- package/dist/esm/components/TagGroup/TagGroup2.js.map +1 -0
- package/dist/esm/components/TagGroup/index.js +2 -0
- package/dist/esm/components/TagList/TagList2.js +23 -0
- package/dist/esm/components/TagList/TagList2.js.map +1 -0
- package/dist/esm/components/TagList/index.js +2 -0
- package/dist/esm/components/Text/Text2.js +16 -0
- package/dist/esm/components/Text/Text2.js.map +1 -0
- package/dist/esm/components/Text/index.js +2 -0
- package/dist/esm/components/TextArea/TextArea2.js +56 -0
- package/dist/esm/components/TextArea/TextArea2.js.map +1 -0
- package/dist/esm/components/TextArea/index.js +2 -0
- package/dist/esm/components/TextField/TextField2.js +43 -0
- package/dist/esm/components/TextField/TextField2.js.map +1 -0
- package/dist/esm/components/TextField/index.js +2 -0
- package/dist/esm/components/TimeField/TimeField2.js +51 -0
- package/dist/esm/components/TimeField/TimeField2.js.map +1 -0
- package/dist/esm/components/TimeField/index.js +2 -0
- package/dist/esm/components/ToggleButton/ToggleButton2.js +15 -0
- package/dist/esm/components/ToggleButton/ToggleButton2.js.map +1 -0
- package/dist/esm/components/ToggleButton/index.js +2 -0
- package/dist/esm/components/ToggleButtonGroup/ToggleButtonGroup2.js +18 -0
- package/dist/esm/components/ToggleButtonGroup/ToggleButtonGroup2.js.map +1 -0
- package/dist/esm/components/ToggleButtonGroup/index.js +2 -0
- package/dist/esm/components/Tooltip/Tooltip2.js +20 -0
- package/dist/esm/components/Tooltip/Tooltip2.js.map +1 -0
- package/dist/esm/components/Tooltip/index.js +2 -0
- package/dist/esm/components/index.js +125 -0
- package/dist/esm/hooks/useDateFormatLabel.js +28 -0
- package/dist/esm/hooks/useDateFormatLabel.js.map +1 -0
- package/dist/esm/hooks/useTimeZoneLabel.js +20 -0
- package/dist/esm/hooks/useTimeZoneLabel.js.map +1 -0
- package/dist/esm/index.js +66 -32538
- package/dist/esm/node_modules/@bcgov/design-tokens/js/index.js +10 -0
- package/dist/esm/node_modules/@bcgov/design-tokens/js/index.js.map +1 -0
- package/dist/esm/utils/getIconSize.js +16 -0
- package/dist/esm/utils/getIconSize.js.map +1 -0
- package/dist/index.d.ts +411 -478
- package/package.json +41 -46
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/esm/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,123 +1,106 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
export { DialogTrigger, MenuSection, Header as MenuSectionHeader, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
5
|
-
import { CalendarSelectionMode } from 'react-aria-components/Calendar';
|
|
6
|
-
export { CalendarSelectionMode } from 'react-aria-components/Calendar';
|
|
7
|
-
|
|
1
|
+
import React$1, { JSX, PropsWithChildren } from "react";
|
|
2
|
+
import { ButtonProps as ButtonProps$1, CalendarProps, CheckboxFieldProps, CheckboxGroupProps as CheckboxGroupProps$1, DatePickerProps as DatePickerProps$1, DateValue, DateValue as DateValue$1, DialogProps as DialogProps$1, DialogTrigger, DisclosureGroupProps, DisclosureProps, FormProps, Header as MenuSectionHeader, HeadingProps as HeadingProps$1, Key, LinkProps as LinkProps$1, ListBoxItemProps as ListBoxItemProps$1, MenuItemProps as MenuItemProps$1, MenuItemRenderProps, MenuProps as MenuProps$1, MenuSection, MenuTrigger, ModalOverlayProps, NumberFieldProps as NumberFieldProps$1, PopoverProps, ProgressBarProps as ProgressBarProps$1, RadioFieldProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SeparatorProps as SeparatorProps$1, SubmenuTrigger, SwitchFieldProps, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TagProps as TagProps$1, TextFieldProps as TextFieldProps$1, TextProps as TextProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps as ToggleButtonProps$1, TooltipProps, TooltipTrigger, ValidationResult } from "react-aria-components";
|
|
3
|
+
import { CalendarSelectionMode } from "react-aria-components/Calendar";
|
|
8
4
|
interface AccordionProps extends DisclosureProps {
|
|
9
|
-
|
|
5
|
+
label?: string;
|
|
10
6
|
}
|
|
11
|
-
declare function Accordion({ label, children, ...props }: AccordionProps):
|
|
12
|
-
|
|
7
|
+
declare function Accordion({ label, children, ...props }: AccordionProps): JSX.Element;
|
|
13
8
|
interface AccordionGroupProps extends DisclosureGroupProps {
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
title?: string;
|
|
10
|
+
titleElement?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
16
11
|
}
|
|
17
|
-
declare function AccordionGroup({ title, titleElement, children, ...props }: AccordionGroupProps):
|
|
18
|
-
|
|
12
|
+
declare function AccordionGroup({ title, titleElement, children, ...props }: AccordionGroupProps): JSX.Element;
|
|
19
13
|
interface AlertBannerProps extends React.PropsWithChildren {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
declare function AlertBanner({ variant, size, layout, isIconHidden, isCloseable, role, onClose, children, customIcon, ...props }: AlertBannerProps):
|
|
30
|
-
|
|
14
|
+
size?: "small" | "medium";
|
|
15
|
+
layout?: "fixed" | "fluid";
|
|
16
|
+
variant?: "info" | "success" | "warning" | "danger" | "black";
|
|
17
|
+
isIconHidden?: boolean;
|
|
18
|
+
isCloseable?: boolean;
|
|
19
|
+
role?: React.AriaRole | undefined;
|
|
20
|
+
customIcon?: React.ReactNode;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare function AlertBanner({ variant, size, layout, isIconHidden, isCloseable, role, onClose, children, customIcon, ...props }: AlertBannerProps): JSX.Element;
|
|
31
24
|
interface AlertDialogProps extends DialogProps$1 {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
declare function AlertDialog({ children, variant, role, title, isCloseable, isIconHidden, buttons, ...props }: AlertDialogProps):
|
|
39
|
-
|
|
25
|
+
variant?: "info" | "confirmation" | "warning" | "error" | "destructive";
|
|
26
|
+
title?: string;
|
|
27
|
+
isIconHidden?: boolean;
|
|
28
|
+
isCloseable?: boolean;
|
|
29
|
+
buttons?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
declare function AlertDialog({ children, variant, role, title, isCloseable, isIconHidden, buttons, ...props }: AlertDialogProps): JSX.Element;
|
|
40
32
|
interface ButtonProps extends ButtonProps$1 {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
declare function Button({ size, variant, danger, isIconButton, ...props }: ButtonProps):
|
|
59
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Defaults to `medium`. `small` is shorter vertically.
|
|
35
|
+
*/
|
|
36
|
+
size?: "xsmall" | "small" | "medium" | "large";
|
|
37
|
+
/**
|
|
38
|
+
* Defaults to `primary`.
|
|
39
|
+
*/
|
|
40
|
+
variant?: "primary" | "secondary" | "tertiary" | "link";
|
|
41
|
+
/**
|
|
42
|
+
* For destructive/deletion actions.
|
|
43
|
+
*/
|
|
44
|
+
danger?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* If true, renders a square button intended for a single icon.
|
|
47
|
+
*/
|
|
48
|
+
isIconButton?: boolean;
|
|
49
|
+
}
|
|
50
|
+
declare function Button({ size, variant, danger, isIconButton, ...props }: ButtonProps): JSX.Element;
|
|
60
51
|
interface ButtonGroupProps extends React.PropsWithChildren {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
declare function ButtonGroup({ orientation, alignment, ariaLabel, children, ...props }: ButtonGroupProps):
|
|
66
|
-
|
|
67
|
-
declare function Calendar<M extends CalendarSelectionMode = "single">({ visibleDuration, ...props }: CalendarProps<DateValue, M>): react.JSX.Element;
|
|
68
|
-
|
|
52
|
+
orientation?: "horizontal" | "vertical";
|
|
53
|
+
alignment?: "start" | "center" | "end";
|
|
54
|
+
ariaLabel?: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
declare function ButtonGroup({ orientation, alignment, ariaLabel, children, ...props }: ButtonGroupProps): JSX.Element;
|
|
57
|
+
declare function Calendar<M extends CalendarSelectionMode = "single">({ visibleDuration, ...props }: CalendarProps<DateValue$1, M>): JSX.Element;
|
|
69
58
|
interface CalloutProps extends React.PropsWithChildren {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
declare function Callout({ variant, title, description, buttons, role, isLeftBorderDisabled, children, ...props }: CalloutProps):
|
|
78
|
-
|
|
59
|
+
variant?: "lightGrey" | "lightBlue" | "lightGold" | "Blue" | "Grey" | "Black";
|
|
60
|
+
title?: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
buttons?: React.ReactNode;
|
|
63
|
+
role?: React.AriaRole | undefined;
|
|
64
|
+
isLeftBorderDisabled?: boolean;
|
|
65
|
+
}
|
|
66
|
+
declare function Callout({ variant, title, description, buttons, role, isLeftBorderDisabled, children, ...props }: CalloutProps): JSX.Element;
|
|
79
67
|
interface CheckboxProps extends CheckboxFieldProps {
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
description?: string;
|
|
69
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
82
70
|
}
|
|
83
|
-
declare function Checkbox({ value, children, description, errorMessage, ...props }: CheckboxProps):
|
|
84
|
-
|
|
71
|
+
declare function Checkbox({ value, children, description, errorMessage, ...props }: CheckboxProps): JSX.Element;
|
|
85
72
|
interface CheckboxGroupProps extends CheckboxGroupProps$1 {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
declare function CheckboxGroup({ orientation, label, description, errorMessage, flexWrap, children, ...props }: CheckboxGroupProps):
|
|
94
|
-
|
|
73
|
+
orientation?: "horizontal" | "vertical";
|
|
74
|
+
label?: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
77
|
+
/** `flex-wrap` style property, defaults to `nowrap` */
|
|
78
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
79
|
+
}
|
|
80
|
+
declare function CheckboxGroup({ orientation, label, description, errorMessage, flexWrap, children, ...props }: CheckboxGroupProps): JSX.Element;
|
|
95
81
|
interface DatePickerProps<T extends DateValue> extends DatePickerProps$1<T> {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
declare function DatePicker<T extends DateValue>({ size, label, description, errorMessage, showFormatHelpText, isCalendarDisabled, isBrowserLocaleUsed, ...props }: DatePickerProps<T>): react.JSX.Element;
|
|
106
|
-
|
|
82
|
+
size?: "small" | "medium";
|
|
83
|
+
isCalendarDisabled?: boolean;
|
|
84
|
+
label?: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
showFormatHelpText?: boolean;
|
|
87
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
88
|
+
isBrowserLocaleUsed?: boolean;
|
|
89
|
+
}
|
|
90
|
+
declare function DatePicker<T extends DateValue>({ size, label, description, errorMessage, showFormatHelpText, isCalendarDisabled, isBrowserLocaleUsed, ...props }: DatePickerProps<T>): JSX.Element;
|
|
107
91
|
interface DialogProps extends DialogProps$1 {
|
|
108
|
-
|
|
92
|
+
isCloseable?: boolean;
|
|
109
93
|
}
|
|
110
|
-
declare function Dialog({ isCloseable, role, children, ...props }: DialogProps):
|
|
111
|
-
|
|
94
|
+
declare function Dialog({ isCloseable, role, children, ...props }: DialogProps): JSX.Element;
|
|
112
95
|
interface FooterLinksProps {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Title for the list of links - associated to the list of links as a `<figcaption>`
|
|
98
|
+
*/
|
|
99
|
+
title: string;
|
|
100
|
+
/**
|
|
101
|
+
* Array of link elements (`<a>` or `<Link>`)
|
|
102
|
+
*/
|
|
103
|
+
links: React.ReactElement[];
|
|
121
104
|
}
|
|
122
105
|
/**
|
|
123
106
|
* A titled list of links for use in the Footer. Rendered inside a `<figure>`
|
|
@@ -125,42 +108,42 @@ interface FooterLinksProps {
|
|
|
125
108
|
* @param {FooterLinksProps} props
|
|
126
109
|
* @returns {React.ReactElement}
|
|
127
110
|
*/
|
|
128
|
-
declare function FooterLinks({ title, links }: FooterLinksProps):
|
|
111
|
+
export declare function FooterLinks({ title, links }: FooterLinksProps): JSX.Element;
|
|
129
112
|
interface FooterProps {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Land acknowledgement block (defaults to Gov.bc.ca land acknowledgement)
|
|
115
|
+
*/
|
|
116
|
+
acknowledgement?: React.ReactElement;
|
|
117
|
+
/**
|
|
118
|
+
* Logo slot (defaults to BC Gov horizontal logo)
|
|
119
|
+
*/
|
|
120
|
+
logo?: React.ReactElement;
|
|
121
|
+
/**
|
|
122
|
+
* Contact information block (defaults to Gov.bc.ca contact information)
|
|
123
|
+
*/
|
|
124
|
+
contact?: React.ReactElement;
|
|
125
|
+
/**
|
|
126
|
+
* Link list block (defaults to Gov.bc.ca link list).
|
|
127
|
+
*
|
|
128
|
+
* Pass the `<FooterLinks>` component for a styles-included list.
|
|
129
|
+
*/
|
|
130
|
+
links?: React.ReactElement;
|
|
131
|
+
/**
|
|
132
|
+
* Copyright string (defaults to current year)
|
|
133
|
+
*/
|
|
134
|
+
copyright?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Hide the acknowledgement section
|
|
137
|
+
*/
|
|
138
|
+
hideAcknowledgement?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Hide the logo, contact information, and links section
|
|
141
|
+
*/
|
|
142
|
+
hideLogoAndLinks?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Hide the copyright string
|
|
145
|
+
*/
|
|
146
|
+
hideCopyright?: boolean;
|
|
164
147
|
}
|
|
165
148
|
/**
|
|
166
149
|
* A `<footer>` element with default content included.
|
|
@@ -169,426 +152,376 @@ interface FooterProps {
|
|
|
169
152
|
* @param {FooterProps} props
|
|
170
153
|
* @returns {React.ReactElement}
|
|
171
154
|
*/
|
|
172
|
-
declare function Footer({ children, acknowledgement, logo, contact, links, copyright, hideAcknowledgement, hideLogoAndLinks, hideCopyright
|
|
173
|
-
|
|
174
|
-
declare function Form({ ...props }: FormProps): react.JSX.Element;
|
|
175
|
-
|
|
155
|
+
declare function Footer({ children, acknowledgement, logo, contact, links, copyright, hideAcknowledgement, hideLogoAndLinks, hideCopyright }: React.PropsWithChildren<FooterProps>): JSX.Element;
|
|
156
|
+
declare function Form({ ...props }: FormProps): JSX.Element;
|
|
176
157
|
interface HeaderProps {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
declare function Header({ children, logoLinkElement, logoImage, skipLinks, title, titleElement
|
|
203
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Link element that surrounds the logo. Use what's appropriate for your
|
|
160
|
+
* router, like a `<Link>`. Defaults to a generic HTML link element like
|
|
161
|
+
* `<a href="/" title="Government of British Columbia">`
|
|
162
|
+
*/
|
|
163
|
+
logoLinkElement?: React.ReactElement;
|
|
164
|
+
/**
|
|
165
|
+
* Image used for the logo. Defaults to an SVG of the Government of B.C. logo.
|
|
166
|
+
*/
|
|
167
|
+
logoImage?: React.ReactNode;
|
|
168
|
+
/**
|
|
169
|
+
* Array of link elements that are not visible until they are focused. Used
|
|
170
|
+
* for accessibility for keyboard users, to let them easily skip to main
|
|
171
|
+
* content, navigation, etc.
|
|
172
|
+
*/
|
|
173
|
+
skipLinks?: React.ReactElement[];
|
|
174
|
+
/**
|
|
175
|
+
* Header title text that appears to the right of the logo.
|
|
176
|
+
*/
|
|
177
|
+
title?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Desired element that renders the `title` string. Defaults to `<span>`.
|
|
180
|
+
*/
|
|
181
|
+
titleElement?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "p";
|
|
182
|
+
}
|
|
183
|
+
declare function Header({ children, logoLinkElement, logoImage, skipLinks, title, titleElement }: PropsWithChildren<HeaderProps>): JSX.Element;
|
|
204
184
|
interface HeadingProps extends HeadingProps$1 {
|
|
205
|
-
|
|
206
|
-
|
|
185
|
+
color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
|
|
186
|
+
isUnstyled?: boolean;
|
|
207
187
|
}
|
|
208
|
-
declare function Heading({ color, isUnstyled, ...props }: HeadingProps):
|
|
209
|
-
|
|
188
|
+
declare function Heading({ color, isUnstyled, ...props }: HeadingProps): JSX.Element;
|
|
210
189
|
interface InlineAlertProps extends React.PropsWithChildren {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, customIcon, buttons, children, onClose, ...props }: InlineAlertProps):
|
|
222
|
-
|
|
190
|
+
variant?: "info" | "success" | "warning" | "danger";
|
|
191
|
+
title?: string;
|
|
192
|
+
description?: string;
|
|
193
|
+
buttons?: React.ReactNode;
|
|
194
|
+
isCloseable?: boolean;
|
|
195
|
+
isIconHidden?: boolean;
|
|
196
|
+
customIcon?: React.ReactNode;
|
|
197
|
+
role?: React.AriaRole | undefined;
|
|
198
|
+
onClose?: () => void;
|
|
199
|
+
}
|
|
200
|
+
declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, customIcon, buttons, children, onClose, ...props }: InlineAlertProps): JSX.Element;
|
|
223
201
|
interface LinkProps extends LinkProps$1 {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
declare function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps):
|
|
235
|
-
|
|
202
|
+
children?: React.ReactNode;
|
|
203
|
+
size?: "small" | "medium" | "large";
|
|
204
|
+
isButton?: boolean;
|
|
205
|
+
buttonVariant?: "primary" | "secondary" | "tertiary";
|
|
206
|
+
ariaLabel?: string | undefined;
|
|
207
|
+
danger?: boolean;
|
|
208
|
+
isUnstyled?: boolean;
|
|
209
|
+
iconLeft?: React.ReactElement;
|
|
210
|
+
iconRight?: React.ReactElement;
|
|
211
|
+
}
|
|
212
|
+
declare function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): JSX.Element;
|
|
236
213
|
interface MenuItemProps extends MenuItemProps$1 {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
declare function MenuItem({ size, label, description, iconLeft, ...props }: MenuItemProps):
|
|
246
|
-
|
|
214
|
+
label?: string;
|
|
215
|
+
description?: string;
|
|
216
|
+
size?: "small" | "medium";
|
|
217
|
+
iconLeft?: React.ReactElement;
|
|
218
|
+
children?: React.ReactNode | ((props: MenuItemRenderProps & {
|
|
219
|
+
defaultChildren: React.ReactNode;
|
|
220
|
+
}) => React.ReactNode);
|
|
221
|
+
}
|
|
222
|
+
declare function MenuItem({ size, label, description, iconLeft, ...props }: MenuItemProps): JSX.Element;
|
|
247
223
|
interface MenuSectionProps {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
224
|
+
id: Key;
|
|
225
|
+
header?: string;
|
|
226
|
+
items?: MenuItemProps[];
|
|
251
227
|
}
|
|
252
228
|
interface MenuProps extends MenuProps$1<MenuItemProps> {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
declare function Menu({ itemSize, children, items, sections, placement, ...props }: MenuProps):
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
declare function Subheader({ size, ariaLabel, children, ...props }: SubheaderProps): react__default.JSX.Element;
|
|
267
|
-
|
|
229
|
+
itemSize?: "small" | "medium";
|
|
230
|
+
items?: MenuItemProps[];
|
|
231
|
+
sections?: MenuSectionProps[];
|
|
232
|
+
placement?: PopoverProps["placement"];
|
|
233
|
+
}
|
|
234
|
+
declare function Menu({ itemSize, children, items, sections, placement, ...props }: MenuProps): JSX.Element;
|
|
235
|
+
declare function Modal({ children, ...props }: ModalOverlayProps): JSX.Element;
|
|
236
|
+
interface SubheaderProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
237
|
+
size?: "small" | "medium";
|
|
238
|
+
ariaLabel?: string;
|
|
239
|
+
}
|
|
240
|
+
declare function Subheader({ size, ariaLabel, children, ...props }: SubheaderProps): JSX.Element;
|
|
268
241
|
interface ProgressBarProps extends ProgressBarProps$1 {
|
|
269
|
-
|
|
242
|
+
size?: "small" | "medium" | "large";
|
|
270
243
|
}
|
|
271
|
-
declare function ProgressBar({ size, valueLabel, ...props }: ProgressBarProps):
|
|
272
|
-
|
|
244
|
+
declare function ProgressBar({ size, valueLabel, ...props }: ProgressBarProps): JSX.Element;
|
|
273
245
|
interface ProgressCircleProps extends ProgressBarProps$1 {
|
|
274
|
-
|
|
246
|
+
size?: "small" | "medium" | "large";
|
|
275
247
|
}
|
|
276
|
-
declare function ProgressCircle({ size, valueLabel, ...props }: ProgressCircleProps):
|
|
277
|
-
|
|
248
|
+
declare function ProgressCircle({ size, valueLabel, ...props }: ProgressCircleProps): JSX.Element;
|
|
278
249
|
interface RadioProps extends RadioFieldProps {
|
|
279
|
-
|
|
250
|
+
description?: string;
|
|
280
251
|
}
|
|
281
|
-
declare function Radio({ value, children, description, ...props }: RadioProps):
|
|
282
|
-
|
|
252
|
+
declare function Radio({ value, children, description, ...props }: RadioProps): JSX.Element;
|
|
283
253
|
interface RadioGroupProps extends RadioGroupProps$1 {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
declare function RadioGroup({ orientation, label, description, children, errorMessage, flexWrap, ...props }: RadioGroupProps):
|
|
293
|
-
|
|
254
|
+
children?: React.ReactNode;
|
|
255
|
+
orientation?: "vertical" | "horizontal";
|
|
256
|
+
label?: string;
|
|
257
|
+
description?: string;
|
|
258
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
259
|
+
/** `flex-wrap` style property, defaults to `nowrap` */
|
|
260
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
261
|
+
}
|
|
262
|
+
declare function RadioGroup({ orientation, label, description, children, errorMessage, flexWrap, ...props }: RadioGroupProps): JSX.Element;
|
|
294
263
|
interface TagProps extends TagProps$1 {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
declare function Tag({ color, tagStyle, size, icon, id, textValue, ...props }: TagProps):
|
|
313
|
-
|
|
264
|
+
/**
|
|
265
|
+
* Icon that appears to the left of the `textValue` field
|
|
266
|
+
*/
|
|
267
|
+
icon?: React.ReactNode;
|
|
268
|
+
/**
|
|
269
|
+
* Background color
|
|
270
|
+
*/
|
|
271
|
+
color?: "bc-blue" | "bc-gold" | "blue" | "dark" | "gray" | "grey" | "green" | "red" | "yellow";
|
|
272
|
+
/**
|
|
273
|
+
* tagStyle
|
|
274
|
+
*/
|
|
275
|
+
tagStyle?: "rectangular" | "circular";
|
|
276
|
+
/**
|
|
277
|
+
* size
|
|
278
|
+
*/
|
|
279
|
+
size?: "xsmall" | "small" | "medium";
|
|
280
|
+
}
|
|
281
|
+
declare function Tag({ color, tagStyle, size, icon, id, textValue, ...props }: TagProps): JSX.Element;
|
|
314
282
|
interface ListBoxItemProps extends ListBoxItemProps$1 {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
283
|
+
/** Text label for the option. Provide an `id` if this is not unique. */
|
|
284
|
+
label: string;
|
|
285
|
+
/** Descriptive text that appears below the option's label */
|
|
286
|
+
description?: string;
|
|
287
|
+
/** Marks an option visually with red text to indicate a destructive/dangerous option */
|
|
288
|
+
isDestructive?: boolean;
|
|
289
|
+
/** Left icon slot */
|
|
290
|
+
iconLeft?: React.ReactElement;
|
|
291
|
+
/** Right icon slot */
|
|
292
|
+
iconRight?: React.ReactElement;
|
|
293
|
+
/** Optional color token forwarded to selected tags */
|
|
294
|
+
color?: TagProps["color"];
|
|
295
|
+
/** Optional style token forwarded to selected tags */
|
|
296
|
+
tagStyle?: TagProps["tagStyle"];
|
|
329
297
|
}
|
|
330
298
|
interface SelectionSectionProps {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
299
|
+
id: Key;
|
|
300
|
+
/** Label for the section */
|
|
301
|
+
header?: string;
|
|
302
|
+
/** Flat list of options within the section */
|
|
303
|
+
items: ListBoxItemProps[];
|
|
336
304
|
}
|
|
337
305
|
interface SelectProps<T extends object, M extends "single" | "multiple" = "single"> extends SelectProps$1<T, M> {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
306
|
+
/** Use `items` for a flat list of options */
|
|
307
|
+
items?: ListBoxItemProps[];
|
|
308
|
+
/** Use `sections` for a sectioned list with `items` options in each section */
|
|
309
|
+
sections?: SelectionSectionProps[];
|
|
310
|
+
/** Text label for the Select component */
|
|
311
|
+
label?: string;
|
|
312
|
+
/** Temporary text that occupies the select input when no option has been selected. */
|
|
313
|
+
placeholder?: string;
|
|
314
|
+
/** Defaults to `medium` */
|
|
315
|
+
size?: "small" | "medium";
|
|
316
|
+
/** Description or helper text that renders below the select input */
|
|
317
|
+
description?: string;
|
|
318
|
+
/** Used for data validation and error handling */
|
|
319
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
320
|
+
/** Overflow behaviour */
|
|
321
|
+
overflow?: "wrap" | "scroll";
|
|
354
322
|
}
|
|
355
323
|
/** Select displays a collapsible list of options and allows a user to select one or more of them. */
|
|
356
|
-
declare function Select<T extends object, M extends "single" | "multiple" = "single">({ items, sections, label, description, placeholder, size, errorMessage, selectionMode, overflow, ...props }: SelectProps<T, M>):
|
|
357
|
-
|
|
324
|
+
declare function Select<T extends object, M extends "single" | "multiple" = "single">({ items, sections, label, description, placeholder, size, errorMessage, selectionMode, overflow, ...props }: SelectProps<T, M>): JSX.Element;
|
|
358
325
|
interface SeparatorProps extends SeparatorProps$1 {
|
|
359
|
-
|
|
326
|
+
size?: "small" | "medium" | "large";
|
|
360
327
|
}
|
|
361
|
-
declare function Separator({ size, ...props }: SeparatorProps):
|
|
362
|
-
|
|
328
|
+
declare function Separator({ size, ...props }: SeparatorProps): JSX.Element;
|
|
363
329
|
interface SvgBcLogoProps extends React.SVGProps<SVGSVGElement> {
|
|
364
|
-
|
|
365
|
-
|
|
330
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
331
|
+
title?: string;
|
|
366
332
|
}
|
|
367
|
-
declare function SvgBcLogo({ title, id, ...props }: SvgBcLogoProps):
|
|
368
|
-
|
|
333
|
+
declare function SvgBcLogo({ title, id, ...props }: SvgBcLogoProps): JSX.Element;
|
|
369
334
|
type IconSize = "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
370
|
-
|
|
371
335
|
interface SvgBcOutlineIconProps extends React.SVGProps<SVGSVGElement> {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
336
|
+
size?: IconSize;
|
|
337
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
338
|
+
title?: string;
|
|
375
339
|
}
|
|
376
|
-
declare function SvgBcOutlineIcon({ size, title, id, ...props }: SvgBcOutlineIconProps):
|
|
377
|
-
|
|
340
|
+
declare function SvgBcOutlineIcon({ size, title, id, ...props }: SvgBcOutlineIconProps): JSX.Element;
|
|
378
341
|
interface SvgBetaIconProps extends React.SVGProps<SVGSVGElement> {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
342
|
+
size?: IconSize;
|
|
343
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
344
|
+
title?: string;
|
|
382
345
|
}
|
|
383
|
-
declare function SvgBetaIcon({ size, title, id, ...props }: SvgBetaIconProps):
|
|
384
|
-
|
|
346
|
+
declare function SvgBetaIcon({ size, title, id, ...props }: SvgBetaIconProps): JSX.Element;
|
|
385
347
|
interface SvgCalendarIconProps extends React.SVGProps<SVGSVGElement> {
|
|
386
|
-
|
|
387
|
-
|
|
348
|
+
size?: IconSize;
|
|
349
|
+
title?: string;
|
|
388
350
|
}
|
|
389
|
-
declare function SvgCalendarIcon({ size, title, id, ...props }: SvgCalendarIconProps):
|
|
390
|
-
|
|
351
|
+
declare function SvgCalendarIcon({ size, title, id, ...props }: SvgCalendarIconProps): JSX.Element;
|
|
391
352
|
interface SvgCheckIconProps extends React.SVGProps<SVGSVGElement> {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
353
|
+
size?: IconSize;
|
|
354
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
355
|
+
title?: string;
|
|
395
356
|
}
|
|
396
|
-
declare function SvgCheckIcon({ size, title, id, ...props }: SvgCheckIconProps):
|
|
397
|
-
|
|
357
|
+
declare function SvgCheckIcon({ size, title, id, ...props }: SvgCheckIconProps): JSX.Element;
|
|
398
358
|
interface SvgCheckCircleIconProps extends React.SVGProps<SVGSVGElement> {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
359
|
+
size?: IconSize;
|
|
360
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
361
|
+
title?: string;
|
|
402
362
|
}
|
|
403
|
-
declare function SvgCheckCircleIcon({ size, title, id, ...props }: SvgCheckCircleIconProps):
|
|
404
|
-
|
|
363
|
+
declare function SvgCheckCircleIcon({ size, title, id, ...props }: SvgCheckCircleIconProps): JSX.Element;
|
|
405
364
|
interface SvgChevronUpIconProps extends React.SVGProps<SVGSVGElement> {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
365
|
+
size?: IconSize;
|
|
366
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
367
|
+
title?: string;
|
|
409
368
|
}
|
|
410
|
-
declare function SvgChevronUpIcon({ size, title, id, ...props }: SvgChevronUpIconProps):
|
|
411
|
-
|
|
369
|
+
declare function SvgChevronUpIcon({ size, title, id, ...props }: SvgChevronUpIconProps): JSX.Element;
|
|
412
370
|
interface SvgChevronDownIconProps extends React.SVGProps<SVGSVGElement> {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
371
|
+
size?: IconSize;
|
|
372
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
373
|
+
title?: string;
|
|
416
374
|
}
|
|
417
|
-
declare function SvgChevronDownIcon({ size, title, id, ...props }: SvgChevronDownIconProps):
|
|
418
|
-
|
|
375
|
+
declare function SvgChevronDownIcon({ size, title, id, ...props }: SvgChevronDownIconProps): JSX.Element;
|
|
419
376
|
interface SvgChevronLeftIconProps extends React.SVGProps<SVGSVGElement> {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
377
|
+
size?: IconSize;
|
|
378
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
379
|
+
title?: string;
|
|
423
380
|
}
|
|
424
|
-
declare function SvgChevronLeftIcon({ size, title, id, ...props }: SvgChevronLeftIconProps):
|
|
425
|
-
|
|
381
|
+
declare function SvgChevronLeftIcon({ size, title, id, ...props }: SvgChevronLeftIconProps): JSX.Element;
|
|
426
382
|
interface SvgChevronRightIconProps extends React.SVGProps<SVGSVGElement> {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
383
|
+
size?: IconSize;
|
|
384
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
385
|
+
title?: string;
|
|
430
386
|
}
|
|
431
|
-
declare function SvgChevronRightIcon({ size, title, id, ...props }: SvgChevronRightIconProps):
|
|
432
|
-
|
|
387
|
+
declare function SvgChevronRightIcon({ size, title, id, ...props }: SvgChevronRightIconProps): JSX.Element;
|
|
433
388
|
interface SvgDashIconProps extends React.SVGProps<SVGSVGElement> {
|
|
434
|
-
|
|
435
|
-
|
|
389
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
390
|
+
title?: string;
|
|
436
391
|
}
|
|
437
|
-
declare function SvgDashIcon({ title, id, ...props }: SvgDashIconProps):
|
|
438
|
-
|
|
392
|
+
declare function SvgDashIcon({ title, id, ...props }: SvgDashIconProps): JSX.Element;
|
|
439
393
|
interface SvgExclamationIconProps extends React.SVGProps<SVGSVGElement> {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
394
|
+
size?: IconSize;
|
|
395
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
396
|
+
title?: string;
|
|
443
397
|
}
|
|
444
|
-
declare function SvgExclamationIcon({ size, title, id, ...props }: SvgExclamationIconProps):
|
|
445
|
-
|
|
398
|
+
declare function SvgExclamationIcon({ size, title, id, ...props }: SvgExclamationIconProps): JSX.Element;
|
|
446
399
|
interface SvgExclamationCircleIconProps extends React.SVGProps<SVGSVGElement> {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
400
|
+
size?: IconSize;
|
|
401
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
402
|
+
title?: string;
|
|
450
403
|
}
|
|
451
|
-
declare function SvgExclamationCircleIcon({ size, title, id, ...props }: SvgExclamationCircleIconProps):
|
|
452
|
-
|
|
404
|
+
declare function SvgExclamationCircleIcon({ size, title, id, ...props }: SvgExclamationCircleIconProps): JSX.Element;
|
|
453
405
|
interface SvgCloseIconProps extends React.SVGProps<SVGSVGElement> {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
406
|
+
size?: IconSize;
|
|
407
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
408
|
+
title?: string;
|
|
457
409
|
}
|
|
458
|
-
declare function SvgCloseIcon({ size, title, id, ...props }: SvgCloseIconProps):
|
|
459
|
-
|
|
410
|
+
declare function SvgCloseIcon({ size, title, id, ...props }: SvgCloseIconProps): JSX.Element;
|
|
460
411
|
interface SvgInfoIconProps extends React.SVGProps<SVGSVGElement> {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
412
|
+
size?: IconSize;
|
|
413
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
414
|
+
title?: string;
|
|
464
415
|
}
|
|
465
|
-
declare function SvgInfoIcon({ size, title, id, ...props }: SvgInfoIconProps):
|
|
466
|
-
|
|
416
|
+
declare function SvgInfoIcon({ size, title, id, ...props }: SvgInfoIconProps): JSX.Element;
|
|
467
417
|
interface SvgMinusIconProps extends React.SVGProps<SVGSVGElement> {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
418
|
+
size?: IconSize;
|
|
419
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
420
|
+
title?: string;
|
|
471
421
|
}
|
|
472
|
-
declare function SvgMinusIcon({ size, title, id, ...props }: SvgMinusIconProps):
|
|
473
|
-
|
|
422
|
+
declare function SvgMinusIcon({ size, title, id, ...props }: SvgMinusIconProps): JSX.Element;
|
|
474
423
|
interface SvgPlaceholderIconProps extends React.SVGProps<SVGSVGElement> {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
424
|
+
size?: IconSize;
|
|
425
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
426
|
+
title?: string;
|
|
478
427
|
}
|
|
479
|
-
declare function SvgPlaceholderIcon({ size, title, id, ...props }: SvgPlaceholderIconProps):
|
|
480
|
-
|
|
428
|
+
declare function SvgPlaceholderIcon({ size, title, id, ...props }: SvgPlaceholderIconProps): JSX.Element;
|
|
481
429
|
interface SvgPlusIconProps extends React.SVGProps<SVGSVGElement> {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
430
|
+
size?: IconSize;
|
|
431
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
432
|
+
title?: string;
|
|
485
433
|
}
|
|
486
|
-
declare function SvgPlusIcon({ size, title, id, ...props }: SvgPlusIconProps):
|
|
487
|
-
|
|
434
|
+
declare function SvgPlusIcon({ size, title, id, ...props }: SvgPlusIconProps): JSX.Element;
|
|
488
435
|
interface SvgTooltipArrowUpProps extends React.SVGProps<SVGSVGElement> {
|
|
489
|
-
|
|
490
|
-
|
|
436
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
437
|
+
title?: string;
|
|
491
438
|
}
|
|
492
|
-
declare function SvgTooltipArrowUp({ title, id, ...props }: SvgTooltipArrowUpProps):
|
|
493
|
-
|
|
439
|
+
declare function SvgTooltipArrowUp({ title, id, ...props }: SvgTooltipArrowUpProps): JSX.Element;
|
|
494
440
|
interface SvgUpRightFromSquareIconProps extends React.SVGProps<SVGSVGElement> {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
441
|
+
size?: IconSize;
|
|
442
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
443
|
+
title?: string;
|
|
498
444
|
}
|
|
499
|
-
declare function SvgUpRightFromSquareIcon({ size, title, id, ...props }: SvgUpRightFromSquareIconProps):
|
|
500
|
-
|
|
445
|
+
declare function SvgUpRightFromSquareIcon({ size, title, id, ...props }: SvgUpRightFromSquareIconProps): JSX.Element;
|
|
501
446
|
interface SvgReactAriaIconProps extends React.SVGProps<SVGSVGElement> {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
447
|
+
size?: IconSize;
|
|
448
|
+
/** Accessible label for non-decorative usage. When omitted, the icon is hidden from assistive technology. */
|
|
449
|
+
title?: string;
|
|
505
450
|
}
|
|
506
|
-
declare function SvgReactAriaIcon({ size, title, id, ...props }: SvgReactAriaIconProps):
|
|
507
|
-
|
|
451
|
+
declare function SvgReactAriaIcon({ size, title, id, ...props }: SvgReactAriaIconProps): JSX.Element;
|
|
508
452
|
interface TagGroupProps extends TagGroupProps$1 {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
522
|
-
declare function TagGroup({ children, label, description, errorMessage, ...props }: TagGroupProps):
|
|
523
|
-
|
|
453
|
+
/**
|
|
454
|
+
* Labels the TagGroup, appears above the tags.
|
|
455
|
+
*/
|
|
456
|
+
label?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Extended description of the TagGroup, appears below the tags.
|
|
459
|
+
*/
|
|
460
|
+
description?: string;
|
|
461
|
+
/**
|
|
462
|
+
* Error message, appears below the tags and below the optional description.
|
|
463
|
+
*/
|
|
464
|
+
errorMessage?: string;
|
|
465
|
+
}
|
|
466
|
+
declare function TagGroup({ children, label, description, errorMessage, ...props }: TagGroupProps): JSX.Element;
|
|
524
467
|
interface TagListProps<T> extends Pick<TagListProps$1<T>, "children" | "renderEmptyState"> {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
531
|
-
declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>):
|
|
532
|
-
|
|
468
|
+
items: TagProps[];
|
|
469
|
+
/**
|
|
470
|
+
* Used to set the `flex-direction` on the TagList.
|
|
471
|
+
*/
|
|
472
|
+
orientation?: "horizontal" | "vertical";
|
|
473
|
+
}
|
|
474
|
+
declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): JSX.Element;
|
|
533
475
|
interface TextProps extends TextProps$1 {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
476
|
+
size?: "small" | "medium" | "large";
|
|
477
|
+
color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
|
|
478
|
+
isUnstyled?: boolean;
|
|
537
479
|
}
|
|
538
|
-
declare function Text({ elementType, size, color, isUnstyled, ...props }: TextProps):
|
|
539
|
-
|
|
480
|
+
declare function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): JSX.Element;
|
|
540
481
|
interface TextAreaProps extends TextFieldProps$1 {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
482
|
+
label?: string;
|
|
483
|
+
description?: string;
|
|
484
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
544
485
|
}
|
|
545
|
-
declare function TextArea({ label, description, errorMessage, maxLength, onChange, value, ...props }: TextAreaProps):
|
|
546
|
-
|
|
486
|
+
declare function TextArea({ label, description, errorMessage, maxLength, onChange, value, ...props }: TextAreaProps): JSX.Element;
|
|
547
487
|
interface TextFieldProps extends TextFieldProps$1 {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps):
|
|
556
|
-
|
|
488
|
+
size?: "medium" | "small";
|
|
489
|
+
label?: string;
|
|
490
|
+
description?: string;
|
|
491
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
492
|
+
iconLeft?: React.ReactElement;
|
|
493
|
+
iconRight?: React.ReactElement;
|
|
494
|
+
}
|
|
495
|
+
declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): JSX.Element;
|
|
557
496
|
interface TimeFieldProps<T extends TimeValue> extends TimeFieldProps$1<T> {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
497
|
+
size?: "medium" | "small";
|
|
498
|
+
label?: string;
|
|
499
|
+
description?: string;
|
|
500
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
562
501
|
}
|
|
563
|
-
declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage, ...props }: TimeFieldProps<T>):
|
|
564
|
-
|
|
502
|
+
declare function TimeField<T extends TimeValue>({ size, label, description, errorMessage, ...props }: TimeFieldProps<T>): JSX.Element;
|
|
565
503
|
interface ToggleButtonProps extends ToggleButtonProps$1 {
|
|
566
|
-
|
|
567
|
-
|
|
504
|
+
size?: "small" | "medium";
|
|
505
|
+
isIconButton?: boolean;
|
|
568
506
|
}
|
|
569
|
-
declare function ToggleButton({ size, children, isIconButton, ...props }: ToggleButtonProps):
|
|
570
|
-
|
|
507
|
+
declare function ToggleButton({ size, children, isIconButton, ...props }: ToggleButtonProps): JSX.Element;
|
|
571
508
|
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
572
|
-
|
|
573
|
-
|
|
509
|
+
label?: string;
|
|
510
|
+
size?: "small" | "medium";
|
|
574
511
|
}
|
|
575
|
-
declare function ToggleButtonGroup({ label, size, children, ...props }: ToggleButtonGroupProps):
|
|
576
|
-
|
|
512
|
+
declare function ToggleButtonGroup({ label, size, children, ...props }: ToggleButtonGroupProps): JSX.Element;
|
|
577
513
|
interface SwitchProps extends SwitchFieldProps {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}
|
|
582
|
-
declare function Switch({ labelPosition, description, errorMessage, children, ...props }: SwitchProps):
|
|
583
|
-
|
|
584
|
-
declare function Tooltip(props: TooltipProps): react.JSX.Element;
|
|
585
|
-
|
|
514
|
+
labelPosition?: "left" | "right";
|
|
515
|
+
description?: string;
|
|
516
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
517
|
+
}
|
|
518
|
+
declare function Switch({ labelPosition, description, errorMessage, children, ...props }: SwitchProps): JSX.Element;
|
|
519
|
+
declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
586
520
|
interface NumberFieldProps extends NumberFieldProps$1 {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
declare function NumberField({ size, label, description, minValue, errorMessage, ...props }: NumberFieldProps):
|
|
593
|
-
|
|
594
|
-
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, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgMinusIcon, SvgPlaceholderIcon, SvgPlusIcon, SvgReactAriaIcon, SvgTooltipArrowUp, SvgUpRightFromSquareIcon, Switch, Tag, TagGroup, TagList, Text, TextArea, TextField, TimeField, ToggleButton, ToggleButtonGroup, Tooltip };
|
|
521
|
+
size?: "small" | "medium";
|
|
522
|
+
label?: string;
|
|
523
|
+
description?: string;
|
|
524
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
525
|
+
}
|
|
526
|
+
declare function NumberField({ size, label, description, minValue, errorMessage, ...props }: NumberFieldProps): JSX.Element;
|
|
527
|
+
export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Calendar, type CalendarSelectionMode, Callout, Checkbox, CheckboxGroup, DatePicker, Dialog, DialogTrigger, Footer, Form, Header, Heading, InlineAlert, Link, Menu, MenuItem, MenuSection, MenuSectionHeader, MenuTrigger, Modal, NumberField, ProgressBar, ProgressCircle, Radio, RadioGroup, Select, Separator, Subheader, SubmenuTrigger, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCalendarIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronLeftIcon, SvgChevronRightIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgMinusIcon, SvgPlaceholderIcon, SvgPlusIcon, SvgReactAriaIcon, SvgTooltipArrowUp, SvgUpRightFromSquareIcon, Switch, Tag, TagGroup, TagList, Text, TextArea, TextField, TimeField, ToggleButton, ToggleButtonGroup, Tooltip, TooltipTrigger };
|