@bcgov/design-system-react-components 0.6.0 → 0.6.1-pr631

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/esm/index.js CHANGED
@@ -28280,7 +28280,9 @@ function useFormatHelpText(props) {
28280
28280
  }
28281
28281
  function DatePicker({ size = "medium", label, description, errorMessage, showFormatHelpText = true, isRequired = false, isCalendarDisabled = false, isBrowserLocaleUsed = false, ...props }) {
28282
28282
  const formatHelpText = useFormatHelpText({ showFormatHelpText });
28283
- const datePicker = (jsx($06d5b8ec9ee5d538$export$5109c6dd95d8fb00, { className: `bcds-react-aria-DatePicker ${size}`, ...props, children: ({ isInvalid }) => (jsxs(Fragment$1, { children: [label && (jsxs($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: "bcds-react-aria-DatePicker--Label", children: [label, isRequired && (jsx("span", { className: "bcds-react-aria-DatePicker--Label required", children: "(required)" }))] })), jsxs($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { className: "bcds-react-aria-DatePicker--Group", children: [jsx($40825cdb76e74f70$export$7edc06cf1783b30f, { className: "bcds-react-aria-DatePicker--Input", children: (segment) => (jsx($40825cdb76e74f70$export$336ab7fa954c4b5f, { className: "bcds-react-aria-DatePicker--Segment", segment: segment })) }), isInvalid && jsx(SvgExclamationIcon, {}), !isCalendarDisabled && (jsxs(Fragment$1, { children: [jsx(Button, { size: "xsmall", variant: "secondary", isIconButton: true, children: jsx(SvgCalendarIcon, {}) }), jsx($07b14b47974efb58$export$5b6b19405a83ff9d, { children: jsx(Dialog, { isCloseable: false, children: jsx(Calendar, {}) }) })] }))] }), (description || showFormatHelpText) && (jsxs($514c0188e459b4c0$export$5f1af8db9871e1d6, { slot: "description", className: `bcds-react-aria-DatePicker--Description`, children: [showFormatHelpText && (jsxs(Fragment$1, { children: [formatHelpText, jsx($431f98aba6844401$export$1ff3c3f08ae963c0, { className: "bcds-react-aria-DatePicker--Separator" })] })), jsx("div", { children: description && description })] })), jsx($ee014567cb39d3f0$export$f551688fc98f2e09, { className: "bcds-react-aria-DatePicker--Error", children: errorMessage })] })) }));
28283
+ const datePicker = (jsx($06d5b8ec9ee5d538$export$5109c6dd95d8fb00, { className: `bcds-react-aria-DatePicker ${size}`, ...props, children: ({ isInvalid }) => (jsxs(Fragment$1, { children: [label && (jsxs($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: "bcds-react-aria-DatePicker--Label", children: [label, isRequired && (jsx("span", { className: "bcds-react-aria-DatePicker--Label required", children: "(required)" }))] })), jsxs($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { className: "bcds-react-aria-DatePicker--Group", children: [jsx($40825cdb76e74f70$export$7edc06cf1783b30f, { className: "bcds-react-aria-DatePicker--Input", children: (segment) => (jsx($40825cdb76e74f70$export$336ab7fa954c4b5f, { className: "bcds-react-aria-DatePicker--Segment", segment: segment })) }), isInvalid && jsx(SvgExclamationIcon, {}), !isCalendarDisabled && (jsxs(Fragment$1, { children: [jsx(Button, { size: "xsmall", variant: "secondary", isIconButton: true, children: jsx(SvgCalendarIcon, {}) }), jsx($07b14b47974efb58$export$5b6b19405a83ff9d, { children: jsx(Dialog, { isCloseable: false, children: jsx(Calendar, {}) }) })] }))] }), (description || showFormatHelpText) && (jsxs($514c0188e459b4c0$export$5f1af8db9871e1d6, { slot: "description", className: `bcds-react-aria-DatePicker--Description`, children: [showFormatHelpText && (jsxs(Fragment$1, { children: [isBrowserLocaleUsed
28284
+ ? formatHelpText
28285
+ : "Format: year - month - day", jsx($431f98aba6844401$export$1ff3c3f08ae963c0, { className: "bcds-react-aria-DatePicker--Separator" })] })), description && jsx("div", { children: description })] })), jsx($ee014567cb39d3f0$export$f551688fc98f2e09, { className: "bcds-react-aria-DatePicker--Error", children: errorMessage })] })) }));
28284
28286
  return isBrowserLocaleUsed ? (datePicker) : (jsx($18f2051aff69b9bf$export$a54013f0d02a8f82, { locale: "en-CA", children: datePicker }));
28285
28287
  }
28286
28288