@viasat/beam-react 2.73.0 → 2.74.0
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/CHANGELOG.md +10 -0
- package/assets/calendar.css +1 -0
- package/chunks/{ActionList.Group.D0MSmqq0.js → ActionList.Group.D37JNSWi.js} +1 -1
- package/chunks/{ActionList.Group.CA-8_zU-.js → ActionList.Group.Dl36hQN9.js} +2 -2
- package/chunks/{ActionList.Item.B-dMxb-4.js → ActionList.Item.BS_rGXCZ.js} +1 -1
- package/chunks/{ActionList.Item.Sz5laTOG.js → ActionList.Item.BvTyJCdF.js} +2 -2
- package/chunks/{Avatar.BP34c6vv.js → Avatar.DFVs4x7C.js} +1 -1
- package/chunks/{Avatar.B8uE9nm6.js → Avatar.JUkpZkUb.js} +1 -1
- package/chunks/{BreadcrumbsItem.Lfi8BNU0.js → BreadcrumbsItem.CD0iKhXI.js} +1 -1
- package/chunks/{BreadcrumbsItem.Dt3qy9Qk.js → BreadcrumbsItem.Du61ZLG8.js} +1 -1
- package/chunks/{DateField.Segment.BIX1PPHS.js → DateField.Segment.CM_C5M-a.js} +1 -1
- package/chunks/{DateField.Segment.CcTNVHpE.js → DateField.Segment.CbBsfqKp.js} +1 -1
- package/chunks/{FloatingUI.arrow.CwdN0s4u.js → FloatingUI.arrow.Ck2qlI0p.js} +1 -1
- package/chunks/{FloatingUI.arrow.ggrpXRvv.js → FloatingUI.arrow.Dbr9nQGp.js} +1 -1
- package/chunks/{Search.Results.CiIvUkvw.js → Search.Results.CYxeJOvm.js} +1 -1
- package/chunks/{Search.Results.4PnEkDwT.js → Search.Results.ekH7zcfE.js} +1 -1
- package/chunks/{SpinnerWrap.D8G39RbY.js → SpinnerWrap.BdmqBWk2.js} +1 -1
- package/chunks/{SpinnerWrap.DKrZFNDB.js → SpinnerWrap.DmSwpTbV.js} +1 -1
- package/chunks/calendar.module.CKxTOiJx.js +23 -0
- package/chunks/calendar.module.D09fpoRh.js +1 -0
- package/chunks/{classNames.W_JcbBab.js → classNames.CEoAKlth.js} +1 -1
- package/chunks/{classNames.CECTlnmT.js → classNames.koX0H7D0.js} +1 -1
- package/chunks/{dataTable.BRFJoM34.js → dataTable.B6rVRfre.js} +1 -1
- package/chunks/{dataTable.BZYgKeZp.js → dataTable.Dttffzch.js} +1 -1
- package/chunks/dates.CVW08OQ2.js +1 -0
- package/chunks/dates.NqdbQ2fR.js +38 -0
- package/chunks/{form.context.DZSt9YJH.js → form.context.CW5SOzlz.js} +1 -1
- package/chunks/{form.context.D3cMAhns.js → form.context.DySHLxlJ.js} +1 -1
- package/chunks/{helpers.DWdxSU31.js → helpers.BUsAyYMh.js} +23 -25
- package/chunks/{helpers.CugcWtbW.js → helpers.DHCqqM5J.js} +1 -1
- package/chunks/{useFormValidator.hook.C2-tO58p.js → useFormValidator.hook.DHuxr0nO.js} +1 -1
- package/chunks/useFormValidator.hook.PxGCY15D.js +1 -0
- package/index.cjs.js +1 -1
- package/index.es.js +3 -3
- package/lib/Accordion/Accordion.cjs.js +1 -1
- package/lib/Accordion/Accordion.es.js +1 -1
- package/lib/Accordion/AccordionGroup.cjs.js +1 -1
- package/lib/Accordion/AccordionGroup.es.js +1 -1
- package/lib/ActionList/ActionList.Group.cjs.js +1 -1
- package/lib/ActionList/ActionList.Group.es.js +3 -3
- package/lib/ActionList/ActionList.IconButton.cjs.js +1 -1
- package/lib/ActionList/ActionList.IconButton.es.js +2 -2
- package/lib/ActionList/ActionList.Item.cjs.js +1 -1
- package/lib/ActionList/ActionList.Item.es.js +3 -3
- package/lib/ActionList/ActionList.cjs.js +1 -1
- package/lib/ActionList/ActionList.es.js +4 -4
- package/lib/ActionList/useActionListChildren.cjs.js +1 -1
- package/lib/ActionList/useActionListChildren.es.js +2 -2
- package/lib/Alert/Alert.cjs.js +1 -1
- package/lib/Alert/Alert.es.js +2 -2
- package/lib/Autocomplete/Autocomplete.cjs.js +1 -1
- package/lib/Autocomplete/Autocomplete.es.js +2 -2
- package/lib/Autocomplete/AutocompleteDropdown.cjs.js +1 -1
- package/lib/Autocomplete/AutocompleteDropdown.es.js +3 -3
- package/lib/Autocomplete/AutocompleteField.cjs.js +1 -1
- package/lib/Autocomplete/AutocompleteField.es.js +1 -1
- package/lib/Autocomplete/useAutocompleteA11y.cjs.js +1 -1
- package/lib/Autocomplete/useAutocompleteA11y.es.js +15 -16
- package/lib/Avatar/Avatar.cjs.js +1 -1
- package/lib/Avatar/Avatar.es.js +1 -1
- package/lib/Avatar/AvatarGroup.cjs.js +1 -1
- package/lib/Avatar/AvatarGroup.es.js +1 -1
- package/lib/Avatar/index.cjs.js +1 -1
- package/lib/Avatar/index.es.js +1 -1
- package/lib/Badge/Badge.cjs.js +1 -1
- package/lib/Badge/Badge.es.js +1 -1
- package/lib/BadgeDot/BadgeDot.cjs.js +1 -1
- package/lib/BadgeDot/BadgeDot.es.js +1 -1
- package/lib/Box/Box.cjs.js +1 -1
- package/lib/Box/Box.es.js +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs.js +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.es.js +2 -2
- package/lib/Breadcrumbs/BreadcrumbsItem.cjs.js +1 -1
- package/lib/Breadcrumbs/BreadcrumbsItem.es.js +2 -2
- package/lib/Breadcrumbs/index.cjs.js +1 -1
- package/lib/Breadcrumbs/index.es.js +1 -1
- package/lib/Button/Button.cjs.js +1 -1
- package/lib/Button/Button.es.js +2 -2
- package/lib/Card/AspectRatio.cjs.js +1 -1
- package/lib/Card/AspectRatio.es.js +1 -1
- package/lib/Card/Card.Body.cjs.js +1 -1
- package/lib/Card/Card.Body.es.js +1 -1
- package/lib/Card/Card.Content.cjs.js +1 -1
- package/lib/Card/Card.Content.es.js +1 -1
- package/lib/Card/Card.Footer.cjs.js +1 -1
- package/lib/Card/Card.Footer.es.js +1 -1
- package/lib/Card/Card.Header.cjs.js +1 -1
- package/lib/Card/Card.Header.es.js +1 -1
- package/lib/Card/Card.Media.cjs.js +1 -1
- package/lib/Card/Card.Media.es.js +1 -1
- package/lib/Card/Card.cjs.js +1 -1
- package/lib/Card/Card.es.js +2 -2
- package/lib/Card/CardGroup.cjs.js +1 -1
- package/lib/Card/CardGroup.es.js +2 -2
- package/lib/Checkbox/Checkbox.cjs.js +1 -1
- package/lib/Checkbox/Checkbox.es.js +2 -2
- package/lib/Chips/Chip.cjs.js +1 -1
- package/lib/Chips/Chip.es.js +1 -1
- package/lib/Chips/ChipGroup.cjs.js +1 -1
- package/lib/Chips/ChipGroup.es.js +1 -1
- package/lib/CloseButton/CloseButton.cjs.js +1 -1
- package/lib/CloseButton/CloseButton.es.js +1 -1
- package/lib/DateField/DateField.Segment.cjs.js +1 -1
- package/lib/DateField/DateField.Segment.es.js +1 -1
- package/lib/DateField/DateField.Segments.cjs.js +1 -1
- package/lib/DateField/DateField.Segments.d.ts +6 -1
- package/lib/DateField/DateField.Segments.es.js +44 -43
- package/lib/DateField/DateField.cjs.js +1 -1
- package/lib/DateField/DateField.devWarnings.cjs.js +1 -1
- package/lib/DateField/DateField.devWarnings.es.js +9 -8
- package/lib/DateField/DateField.es.js +157 -155
- package/lib/DateField/DateField.types.d.ts +2 -1
- package/lib/DateField/DateField.utils.cjs.js +1 -1
- package/lib/DateField/DateField.utils.d.ts +13 -6
- package/lib/DateField/DateField.utils.es.js +107 -109
- package/lib/DateField/useDateFieldForm.cjs.js +1 -1
- package/lib/DateField/useDateFieldForm.es.js +3 -4
- package/lib/Dialog/Dialog.Body.cjs.js +1 -1
- package/lib/Dialog/Dialog.Body.es.js +1 -1
- package/lib/Dialog/Dialog.Content.cjs.js +1 -1
- package/lib/Dialog/Dialog.Content.es.js +1 -1
- package/lib/Dialog/Dialog.Footer.cjs.js +1 -1
- package/lib/Dialog/Dialog.Footer.es.js +1 -1
- package/lib/Dialog/Dialog.Header.cjs.js +1 -1
- package/lib/Dialog/Dialog.Header.es.js +1 -1
- package/lib/Divider/Divider.cjs.js +1 -1
- package/lib/Divider/Divider.es.js +1 -1
- package/lib/EmptyState/EmptyState.cjs.js +1 -1
- package/lib/EmptyState/EmptyState.es.js +2 -2
- package/lib/FileUpload/FileUpload.Button.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.Button.es.js +1 -1
- package/lib/FileUpload/FileUpload.Dropzone.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.Dropzone.es.js +1 -1
- package/lib/FileUpload/FileUpload.List.Item.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.List.Item.es.js +2 -2
- package/lib/FileUpload/FileUpload.List.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.List.es.js +1 -1
- package/lib/FileUpload/FileUpload.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.es.js +2 -2
- package/lib/Flag/Flag.cjs.js +1 -1
- package/lib/Flag/Flag.es.js +1 -1
- package/lib/FloatingUI/FloatingUI.arrow.cjs.js +1 -1
- package/lib/FloatingUI/FloatingUI.arrow.es.js +2 -2
- package/lib/FloatingUI/FloatingUI.content.cjs.js +1 -1
- package/lib/FloatingUI/FloatingUI.content.es.js +2 -2
- package/lib/Form/Form.cjs.js +1 -1
- package/lib/Form/Form.es.js +3 -3
- package/lib/Form/contexts/form.context.cjs.js +1 -1
- package/lib/Form/contexts/form.context.es.js +1 -1
- package/lib/Form/contexts/index.cjs.js +1 -1
- package/lib/Form/contexts/index.es.js +1 -1
- package/lib/Form/hooks/index.cjs.js +1 -1
- package/lib/Form/hooks/index.es.js +2 -2
- package/lib/Form/hooks/useFieldValidator.hook.cjs.js +1 -1
- package/lib/Form/hooks/useFieldValidator.hook.es.js +1 -1
- package/lib/Form/hooks/useFormValidator.hook.cjs.js +1 -1
- package/lib/Form/hooks/useFormValidator.hook.es.js +1 -1
- package/lib/Form/index.cjs.js +1 -1
- package/lib/Form/index.es.js +1 -1
- package/lib/Header/Header.cjs.js +1 -1
- package/lib/Header/Header.es.js +1 -1
- package/lib/Header/HeaderActionGroup.cjs.js +1 -1
- package/lib/Header/HeaderActionGroup.es.js +1 -1
- package/lib/Header/HeaderMasthead.cjs.js +1 -1
- package/lib/Header/HeaderMasthead.es.js +1 -1
- package/lib/Header/HeaderSideNavTrigger.cjs.js +1 -1
- package/lib/Header/HeaderSideNavTrigger.es.js +1 -1
- package/lib/HelperText/HelperText.cjs.js +1 -1
- package/lib/HelperText/HelperText.es.js +2 -2
- package/lib/HelperText/index.cjs.js +1 -1
- package/lib/HelperText/index.es.js +1 -1
- package/lib/Icon/Icon.cjs.js +1 -1
- package/lib/Icon/Icon.es.js +1 -1
- package/lib/InputChoiceGroup/InputChoiceGroup.cjs.js +1 -1
- package/lib/InputChoiceGroup/InputChoiceGroup.es.js +10 -10
- package/lib/Label/Label.cjs.js +1 -1
- package/lib/Label/Label.es.js +2 -2
- package/lib/Link/Link.cjs.js +1 -1
- package/lib/Link/Link.es.js +1 -1
- package/lib/List/List.Item.cjs.js +1 -1
- package/lib/List/List.Item.es.js +1 -1
- package/lib/List/List.cjs.js +1 -1
- package/lib/List/List.es.js +1 -1
- package/lib/Logo/Logo.cjs.js +1 -1
- package/lib/Logo/Logo.es.js +1 -1
- package/lib/Menu/Menu.PopoverContent.cjs.js +1 -1
- package/lib/Menu/Menu.PopoverContent.es.js +1 -1
- package/lib/NativeSelect/NativeSelect.cjs.js +1 -1
- package/lib/NativeSelect/NativeSelect.es.js +18 -18
- package/lib/PageHeader/PageHeader.cjs.js +1 -1
- package/lib/PageHeader/PageHeader.es.js +1 -1
- package/lib/PageLayout/PageLayout.cjs.js +1 -1
- package/lib/PageLayout/PageLayout.es.js +1 -1
- package/lib/PageLayout/PageLayoutAside.cjs.js +1 -1
- package/lib/PageLayout/PageLayoutAside.es.js +1 -1
- package/lib/PageLayout/PageLayoutHeader.cjs.js +1 -1
- package/lib/PageLayout/PageLayoutHeader.es.js +1 -1
- package/lib/PageLayout/PageLayoutMain.cjs.js +1 -1
- package/lib/PageLayout/PageLayoutMain.es.js +1 -1
- package/lib/Pagination/PageButton.cjs.js +1 -1
- package/lib/Pagination/PageButton.es.js +1 -1
- package/lib/Pagination/Pagination.cjs.js +1 -1
- package/lib/Pagination/Pagination.es.js +1 -1
- package/lib/Pagination/PaginationControls.cjs.js +1 -1
- package/lib/Pagination/PaginationControls.es.js +1 -1
- package/lib/Pagination/Truncation.cjs.js +1 -1
- package/lib/Pagination/Truncation.es.js +1 -1
- package/lib/Panel/Footer/Panel.Footer.Actions.cjs.js +1 -1
- package/lib/Panel/Footer/Panel.Footer.Actions.es.js +1 -1
- package/lib/Panel/Footer/Panel.Footer.cjs.js +1 -1
- package/lib/Panel/Footer/Panel.Footer.es.js +1 -1
- package/lib/Panel/Header/Panel.Header.ContentAfter.cjs.js +1 -1
- package/lib/Panel/Header/Panel.Header.ContentAfter.es.js +1 -1
- package/lib/Panel/Header/Panel.Header.ContentBefore.cjs.js +1 -1
- package/lib/Panel/Header/Panel.Header.ContentBefore.es.js +1 -1
- package/lib/Panel/Header/Panel.Header.Description.cjs.js +1 -1
- package/lib/Panel/Header/Panel.Header.Description.es.js +1 -1
- package/lib/Panel/Header/Panel.Header.Heading.cjs.js +1 -1
- package/lib/Panel/Header/Panel.Header.Heading.es.js +1 -1
- package/lib/Panel/Header/Panel.Header.Row.cjs.js +1 -1
- package/lib/Panel/Header/Panel.Header.Row.es.js +1 -1
- package/lib/Panel/Header/Panel.Header.Subheader.cjs.js +1 -1
- package/lib/Panel/Header/Panel.Header.Subheader.es.js +1 -1
- package/lib/Panel/Header/Panel.Header.cjs.js +1 -1
- package/lib/Panel/Header/Panel.Header.es.js +1 -1
- package/lib/Panel/Panel.Body.cjs.js +1 -1
- package/lib/Panel/Panel.Body.es.js +1 -1
- package/lib/Panel/Panel.Inline.cjs.js +1 -1
- package/lib/Panel/Panel.Inline.es.js +1 -1
- package/lib/Panel/Panel.Overlay.cjs.js +1 -1
- package/lib/Panel/Panel.Overlay.es.js +1 -1
- package/lib/Panel/Panel.ResizeHandle.cjs.js +1 -1
- package/lib/Panel/Panel.ResizeHandle.es.js +1 -1
- package/lib/Panel/Panel.cjs.js +1 -1
- package/lib/Panel/Panel.es.js +1 -1
- package/lib/Popover/Popover.cjs.js +1 -1
- package/lib/Popover/Popover.content.cjs.js +1 -1
- package/lib/Popover/Popover.content.es.js +1 -1
- package/lib/Popover/Popover.es.js +1 -1
- package/lib/ProgressBar/ProgressBar.cjs.js +1 -1
- package/lib/ProgressBar/ProgressBar.es.js +2 -2
- package/lib/RadioButton/RadioButton.cjs.js +1 -1
- package/lib/RadioButton/RadioButton.es.js +2 -2
- package/lib/Search/Search.Results.ViewAll.cjs.js +1 -1
- package/lib/Search/Search.Results.ViewAll.es.js +2 -2
- package/lib/Search/Search.Results.cjs.js +1 -1
- package/lib/Search/Search.Results.es.js +2 -2
- package/lib/Search/Search.cjs.js +1 -1
- package/lib/Search/Search.es.js +3 -3
- package/lib/Search/SearchDropdown.cjs.js +1 -1
- package/lib/Search/SearchDropdown.es.js +3 -3
- package/lib/SegmentedControl/SegmentedControl.Item.cjs.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.Item.es.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.List.cjs.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.List.es.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.Panel.cjs.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.Panel.es.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.cjs.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.es.js +1 -1
- package/lib/Select/Select.cjs.js +1 -1
- package/lib/Select/Select.es.js +2 -2
- package/lib/Select/SelectDropdown.cjs.js +1 -1
- package/lib/Select/SelectDropdown.es.js +3 -3
- package/lib/Select/SelectField.cjs.js +1 -1
- package/lib/Select/SelectField.es.js +1 -1
- package/lib/Select/useSelectA11y.cjs.js +1 -1
- package/lib/Select/useSelectA11y.es.js +12 -13
- package/lib/SideNav/SideNav.cjs.js +1 -1
- package/lib/SideNav/SideNav.es.js +1 -1
- package/lib/SideNav/SideNavActionListGroup.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListGroup.es.js +2 -2
- package/lib/SideNav/SideNavActionListGroupHeading.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListGroupHeading.es.js +1 -1
- package/lib/SideNav/SideNavActionListItem.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItem.es.js +2 -2
- package/lib/SideNav/SideNavActionListItemExpandable.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItemExpandable.es.js +2 -2
- package/lib/SideNav/SideNavActionListItemFlyout.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItemFlyout.es.js +1 -1
- package/lib/SideNav/SideNavBody.cjs.js +1 -1
- package/lib/SideNav/SideNavBody.es.js +2 -2
- package/lib/SideNav/SideNavContext.cjs.js +1 -1
- package/lib/SideNav/SideNavContext.es.js +1 -1
- package/lib/SideNav/SideNavFooter.cjs.js +1 -1
- package/lib/SideNav/SideNavFooter.es.js +1 -1
- package/lib/SideNav/SideNavHeader.cjs.js +1 -1
- package/lib/SideNav/SideNavHeader.es.js +1 -1
- package/lib/Slider/DualSlider.cjs.js +1 -1
- package/lib/Slider/DualSlider.es.js +1 -1
- package/lib/Slider/SingleSlider.cjs.js +1 -1
- package/lib/Slider/SingleSlider.es.js +1 -1
- package/lib/Slider/Slider.Error.cjs.js +1 -1
- package/lib/Slider/Slider.Error.es.js +2 -2
- package/lib/Slider/Slider.TextField.cjs.js +1 -1
- package/lib/Slider/Slider.TextField.es.js +1 -1
- package/lib/Slider/Slider.Thumb.cjs.js +1 -1
- package/lib/Slider/Slider.Thumb.es.js +2 -2
- package/lib/Slider/Slider.TickMarks.cjs.js +1 -1
- package/lib/Slider/Slider.TickMarks.es.js +1 -1
- package/lib/Slider/Slider.ValueAxisLabels.cjs.js +1 -1
- package/lib/Slider/Slider.ValueAxisLabels.es.js +1 -1
- package/lib/Slider/hooks/useSliderBase.cjs.js +1 -1
- package/lib/Slider/hooks/useSliderBase.es.js +4 -5
- package/lib/Spinner/Spinner.cjs.js +1 -1
- package/lib/Spinner/Spinner.es.js +1 -1
- package/lib/Spinner/SpinnerWrap.cjs.js +1 -1
- package/lib/Spinner/SpinnerWrap.es.js +1 -1
- package/lib/StateLayer/StateLayer.cjs.js +1 -1
- package/lib/StateLayer/StateLayer.es.js +1 -1
- package/lib/Stepper/Stepper.Body.cjs.js +1 -1
- package/lib/Stepper/Stepper.Body.es.js +1 -1
- package/lib/Stepper/Stepper.Heading.cjs.js +1 -1
- package/lib/Stepper/Stepper.Heading.es.js +1 -1
- package/lib/Stepper/Stepper.Marker.cjs.js +1 -1
- package/lib/Stepper/Stepper.Marker.es.js +1 -1
- package/lib/Stepper/Stepper.Step.cjs.js +1 -1
- package/lib/Stepper/Stepper.Step.es.js +1 -1
- package/lib/Stepper/Stepper.cjs.js +1 -1
- package/lib/Stepper/Stepper.es.js +1 -1
- package/lib/Switch/Switch.cjs.js +1 -1
- package/lib/Switch/Switch.es.js +2 -2
- package/lib/Tabs/Tabs.Group.cjs.js +1 -1
- package/lib/Tabs/Tabs.Group.es.js +2 -2
- package/lib/Tabs/Tabs.Item.cjs.js +1 -1
- package/lib/Tabs/Tabs.Item.es.js +1 -1
- package/lib/Tabs/Tabs.Panel.cjs.js +1 -1
- package/lib/Tabs/Tabs.Panel.es.js +1 -1
- package/lib/Tabs/Tabs.cjs.js +1 -1
- package/lib/Tabs/Tabs.es.js +1 -1
- package/lib/Text/Text.cjs.js +1 -1
- package/lib/Text/Text.es.js +1 -1
- package/lib/TextArea/TextArea.cjs.js +1 -1
- package/lib/TextArea/TextArea.es.js +2 -2
- package/lib/TextField/TextField.cjs.js +1 -1
- package/lib/TextField/TextField.es.js +2 -2
- package/lib/Toasts/Toast.cjs.js +1 -1
- package/lib/Toasts/Toast.es.js +2 -2
- package/lib/Toasts/ToastContainer.cjs.js +1 -1
- package/lib/Toasts/ToastContainer.es.js +2 -2
- package/lib/Tooltip/Tooltip.cjs.js +1 -1
- package/lib/Tooltip/Tooltip.es.js +1 -1
- package/lib/_Navigation/classes.cjs.js +1 -1
- package/lib/_Navigation/classes.es.js +1 -1
- package/lib/_Options/OptionChips.cjs.js +1 -1
- package/lib/_Options/OptionChips.es.js +1 -1
- package/lib/_Options/useSelectValue.cjs.js +1 -1
- package/lib/_Options/useSelectValue.es.js +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +3 -3
- package/lib/wip/BadgeIndicator/BadgeIndicator.cjs.js +1 -1
- package/lib/wip/BadgeIndicator/BadgeIndicator.es.js +1 -1
- package/lib/wip/Calendar/Calendar.Date.cjs.js +1 -0
- package/lib/wip/Calendar/Calendar.Date.d.ts +11 -0
- package/lib/wip/Calendar/Calendar.Date.es.js +29 -0
- package/lib/wip/Calendar/Calendar.Dates.cjs.js +1 -0
- package/lib/wip/Calendar/Calendar.Dates.d.ts +12 -0
- package/lib/wip/Calendar/Calendar.Dates.es.js +22 -0
- package/lib/wip/Calendar/Calendar.Days.cjs.js +1 -0
- package/lib/wip/Calendar/Calendar.Days.d.ts +5 -0
- package/lib/wip/Calendar/Calendar.Days.es.js +30 -0
- package/lib/wip/Calendar/Calendar.cjs.js +1 -0
- package/lib/wip/Calendar/Calendar.context.cjs.js +1 -0
- package/lib/wip/Calendar/Calendar.context.d.ts +8 -0
- package/lib/wip/Calendar/Calendar.context.es.js +11 -0
- package/lib/wip/Calendar/Calendar.d.ts +21 -0
- package/lib/wip/Calendar/Calendar.es.js +63 -0
- package/lib/wip/Calendar/Calendar.types.cjs.js +1 -0
- package/lib/wip/Calendar/Calendar.types.d.ts +53 -0
- package/lib/wip/Calendar/Calendar.types.es.js +1 -0
- package/lib/wip/Calendar/Calendar.utils.cjs.js +1 -0
- package/lib/wip/Calendar/Calendar.utils.d.ts +74 -0
- package/lib/wip/Calendar/Calendar.utils.es.js +153 -0
- package/lib/wip/Calendar/index.cjs.js +1 -0
- package/lib/wip/Calendar/index.d.ts +2 -0
- package/lib/wip/Calendar/index.es.js +4 -0
- package/lib/wip/DataTable/DataTable.Body.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.Body.es.js +1 -1
- package/lib/wip/DataTable/DataTable.Cell.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.Cell.es.js +1 -1
- package/lib/wip/DataTable/DataTable.ColumnHeader.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.ColumnHeader.es.js +1 -1
- package/lib/wip/DataTable/DataTable.Footer.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.Footer.es.js +1 -1
- package/lib/wip/DataTable/DataTable.Head.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.Head.es.js +1 -1
- package/lib/wip/DataTable/DataTable.Header.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.Header.es.js +1 -1
- package/lib/wip/DataTable/DataTable.Row.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.Row.es.js +1 -1
- package/lib/wip/DataTable/DataTable.Toolbar.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.Toolbar.es.js +1 -1
- package/lib/wip/DataTable/DataTable.cjs.js +1 -1
- package/lib/wip/DataTable/DataTable.es.js +1 -1
- package/lib/wip/index.cjs.js +1 -1
- package/lib/wip/index.d.ts +1 -0
- package/lib/wip/index.es.js +27 -25
- package/package.json +7 -7
- package/utils/hooks/index.cjs.js +1 -1
- package/utils/hooks/index.es.js +1 -1
- package/utils/hooks/useLocalStorage.cjs.js +1 -1
- package/utils/hooks/useLocalStorage.es.js +1 -1
- package/utils/spacing.cjs.js +1 -1
- package/utils/spacing.es.js +1 -1
- package/chunks/useFormValidator.hook.BGM2gifb.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CalendarDatesProps } from './Calendar.types';
|
|
2
|
+
/**
|
|
3
|
+
* The date grid — owns the whole `<table>`, weekday header included.
|
|
4
|
+
*
|
|
5
|
+
* `Calendar.Days` renders `<thead>` and the rows render `<tbody>`, so neither
|
|
6
|
+
* is valid as a standalone sibling; keeping both under one owner means the
|
|
7
|
+
* markup is well-formed however the calendar is composed. They stay exported
|
|
8
|
+
* for Storybook `subcomponents` autodocs and the future `renderDay` hook, not
|
|
9
|
+
* as composition points — see the ADR's note that `Calendar.Date` is "exported
|
|
10
|
+
* but typically rendered by `Calendar.Dates`".
|
|
11
|
+
*/
|
|
12
|
+
export declare const Dates: import('react').ForwardRefExoticComponent<CalendarDatesProps & import('react').RefAttributes<HTMLTableElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import d from "clsx";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { s as e, a as o } from "../../../chunks/calendar.module.CKxTOiJx.js";
|
|
5
|
+
import "../../../chunks/constants.XFX4nOSf.js";
|
|
6
|
+
import { d as t } from "../../../chunks/dates.NqdbQ2fR.js";
|
|
7
|
+
import { CalendarDate as c } from "./Calendar.Date.es.js";
|
|
8
|
+
import { Days as y } from "./Calendar.Days.es.js";
|
|
9
|
+
import { useCalendar as D } from "./Calendar.context.es.js";
|
|
10
|
+
const x = n(
|
|
11
|
+
function({ className: m, ...i }, l) {
|
|
12
|
+
const { weeks: p } = D();
|
|
13
|
+
return /* @__PURE__ */ f("table", { ...i, ref: l, className: d(e[o.grid], m), children: [
|
|
14
|
+
/* @__PURE__ */ r(y, {}),
|
|
15
|
+
/* @__PURE__ */ r("tbody", { children: p.map((a) => /* @__PURE__ */ r("tr", { className: e[o.week], children: a.map((s) => /* @__PURE__ */ r(c, { date: s }, t(s))) }, t(a[0]))) })
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
x.displayName = "Dates";
|
|
20
|
+
export {
|
|
21
|
+
x as Dates
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),a=require("../../../chunks/calendar.module.D09fpoRh.js"),p=require("./Calendar.context.cjs.js"),r=require("./Calendar.utils.cjs.js"),t=m.forwardRef(function({className:n,...c},d){const{weekdayLabels:i,weekStart:s,locale:o}=p.useCalendar(),u=r.getWeekdayFullLabels(o,s);return e.jsx("thead",{...c,ref:d,className:n,children:e.jsx("tr",{children:i.map((y,l)=>e.jsxs("th",{scope:"col",className:a.styles[a.staticCalendarClassNames.day],children:[e.jsx("span",{"aria-hidden":"true",children:y}),e.jsx("span",{className:a.styles[a.staticCalendarClassNames.visuallyHidden],children:u[l]})]},r.wrapWeekday(s+l)))})})});t.displayName="Days";exports.Days=t;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The weekday header row. Native `<th scope="col">` is the C-1 baseline;
|
|
3
|
+
* explicit `role="columnheader"` arrives with the rest of the grid ARIA in C-11.
|
|
4
|
+
*/
|
|
5
|
+
export declare const Days: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { s as r, a as l } from "../../../chunks/calendar.module.CKxTOiJx.js";
|
|
4
|
+
import { useCalendar as y } from "./Calendar.context.es.js";
|
|
5
|
+
import { getWeekdayFullLabels as h, wrapWeekday as u } from "./Calendar.utils.es.js";
|
|
6
|
+
const k = f(
|
|
7
|
+
function({ className: t, ...o }, d) {
|
|
8
|
+
const { weekdayLabels: i, weekStart: e, locale: n } = y(), c = h(n, e);
|
|
9
|
+
return /* @__PURE__ */ a("thead", { ...o, ref: d, className: t, children: /* @__PURE__ */ a("tr", { children: i.map((m, s) => (
|
|
10
|
+
// Keyed by weekday number rather than the label: `short` names are
|
|
11
|
+
// not guaranteed unique across every locale.
|
|
12
|
+
/* @__PURE__ */ p(
|
|
13
|
+
"th",
|
|
14
|
+
{
|
|
15
|
+
scope: "col",
|
|
16
|
+
className: r[l.day],
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ a("span", { "aria-hidden": "true", children: m }),
|
|
19
|
+
/* @__PURE__ */ a("span", { className: r[l.visuallyHidden], children: c[s] })
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
u(e + s)
|
|
23
|
+
)
|
|
24
|
+
)) }) });
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
k.displayName = "Days";
|
|
28
|
+
export {
|
|
29
|
+
k as Days
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),S=require("clsx"),s=require("react"),D=require("../../../chunks/calendar.module.D09fpoRh.js"),k=require("../../../chunks/classNames.CEoAKlth.js");require("../../../chunks/constants.DLsDVPyH.js");const _=require("../../../chunks/dates.CVW08OQ2.js"),O=require("../../../utils/spacing.cjs.js"),j=require("./Calendar.context.cjs.js"),v=require("./Calendar.Date.cjs.js"),y=require("./Calendar.Dates.cjs.js"),L=require("./Calendar.Days.cjs.js"),a=require("./Calendar.utils.cjs.js"),e=s.forwardRef(function({today:c,locale:m,role:p="group","aria-label":b="Calendar",className:q,...g},w){const[f,x]=O.partitionSpacingProps(g),r=m??_.DEFAULT_LOCALE,[d]=s.useState(()=>a.startOfDay(new Date)),i=_.isValidDate(c)?a.startOfDay(c).getTime():null,n=s.useMemo(()=>i===null?d:a.startOfDay(new Date(i)),[i,d]),l=s.useMemo(()=>a.startOfMonth(n),[n]),t=a.getWeekStart(r),u=a.getWeekdayLabels(r,t),C=s.useMemo(()=>a.getCalendarWeeks(l,t),[l,t]),N=s.useMemo(()=>({locale:r,today:n,visibleMonth:l,weekStart:t,weeks:C,weekdayLabels:u}),[r,n,l,t,C,u]),M=S(D.styles[D.baseClassNamePrefix],...k.generateSpacingClasses(f),q);return o.jsx(j.CalendarContext.Provider,{value:N,children:o.jsx("div",{...x,ref:w,role:p,"aria-label":b,className:M,children:o.jsx(y.Dates,{})})})});e.displayName="Calendar";e.Days=L.Days;e.Dates=y.Dates;e.Date=v.CalendarDate;e.Days.displayName="Calendar.Days";e.Dates.displayName="Calendar.Dates";e.Date.displayName="Calendar.Date";exports.Calendar=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),n=t.createContext(null),r=()=>{const e=t.useContext(n);if(!e)throw new Error("Calendar sub-components must be used within a Calendar");return e};exports.CalendarContext=n;exports.useCalendar=r;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CalendarContextValue } from './Calendar.types';
|
|
2
|
+
export declare const CalendarContext: import('react').Context<CalendarContextValue | null>;
|
|
3
|
+
/**
|
|
4
|
+
* Reads the grid state published by the `Calendar` root. Throws outside a
|
|
5
|
+
* `Calendar`, matching the throwing contract Accordion and Tabs use — the
|
|
6
|
+
* sub-components are meaningless without a root to derive the month.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useCalendar: () => CalendarContextValue;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext as e, useContext as n } from "react";
|
|
2
|
+
const o = e(null), a = () => {
|
|
3
|
+
const t = n(o);
|
|
4
|
+
if (!t)
|
|
5
|
+
throw new Error("Calendar sub-components must be used within a Calendar");
|
|
6
|
+
return t;
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
o as CalendarContext,
|
|
10
|
+
a as useCalendar
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
import { CalendarDate } from './Calendar.Date';
|
|
3
|
+
import { Dates } from './Calendar.Dates';
|
|
4
|
+
import { Days } from './Calendar.Days';
|
|
5
|
+
import { CalendarProps } from './Calendar.types';
|
|
6
|
+
interface CalendarComponent extends ForwardRefExoticComponent<CalendarProps & RefAttributes<HTMLDivElement>> {
|
|
7
|
+
Days: typeof Days;
|
|
8
|
+
Dates: typeof Dates;
|
|
9
|
+
Date: typeof CalendarDate;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A static grid of a single month, with a weekday header.
|
|
13
|
+
*
|
|
14
|
+
* The root owns the layout rather than exposing the grid as composable
|
|
15
|
+
* children: the weekday row and the date rows can't be reordered or used
|
|
16
|
+
* apart, and Figma models the calendar's optional parts (footer, presets) as
|
|
17
|
+
* variants rather than slots. Month navigation lands in C-2, selection in C-3,
|
|
18
|
+
* keyboard support in C-7.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Calendar: CalendarComponent;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import L from "clsx";
|
|
3
|
+
import { forwardRef as S, useState as h, useMemo as r } from "react";
|
|
4
|
+
import { s as v, b as P } from "../../../chunks/calendar.module.CKxTOiJx.js";
|
|
5
|
+
import { a as T } from "../../../chunks/classNames.koX0H7D0.js";
|
|
6
|
+
import "../../../chunks/constants.XFX4nOSf.js";
|
|
7
|
+
import { i as M, D as O } from "../../../chunks/dates.NqdbQ2fR.js";
|
|
8
|
+
import { partitionSpacingProps as W } from "../../../utils/spacing.es.js";
|
|
9
|
+
import { CalendarContext as A } from "./Calendar.context.es.js";
|
|
10
|
+
import { CalendarDate as E } from "./Calendar.Date.es.js";
|
|
11
|
+
import { Dates as f } from "./Calendar.Dates.es.js";
|
|
12
|
+
import { Days as V } from "./Calendar.Days.es.js";
|
|
13
|
+
import { startOfDay as i, startOfMonth as j, getWeekStart as F, getWeekdayLabels as R, getCalendarWeeks as U } from "./Calendar.utils.es.js";
|
|
14
|
+
const a = S(
|
|
15
|
+
function({
|
|
16
|
+
today: m,
|
|
17
|
+
locale: D,
|
|
18
|
+
// Destructured with defaults rather than written after the prop spread:
|
|
19
|
+
// spreading first would silently drop a caller's own `role` or
|
|
20
|
+
// `aria-label`, and spreading last would let an unrelated pass-through
|
|
21
|
+
// erase the group semantics. This way the caller wins explicitly.
|
|
22
|
+
role: y = "group",
|
|
23
|
+
"aria-label": C = "Calendar",
|
|
24
|
+
className: g,
|
|
25
|
+
...u
|
|
26
|
+
}, b) {
|
|
27
|
+
const [N, k] = W(u), t = D ?? O, [p] = h(() => i(/* @__PURE__ */ new Date())), n = M(m) ? i(m).getTime() : null, s = r(
|
|
28
|
+
() => n === null ? p : i(new Date(n)),
|
|
29
|
+
[n, p]
|
|
30
|
+
), o = r(() => j(s), [s]), e = F(t), c = R(t, e), d = r(
|
|
31
|
+
() => U(o, e),
|
|
32
|
+
[o, e]
|
|
33
|
+
), w = r(
|
|
34
|
+
() => ({ locale: t, today: s, visibleMonth: o, weekStart: e, weeks: d, weekdayLabels: c }),
|
|
35
|
+
[t, s, o, e, d, c]
|
|
36
|
+
), x = L(
|
|
37
|
+
v[P],
|
|
38
|
+
...T(N),
|
|
39
|
+
g
|
|
40
|
+
);
|
|
41
|
+
return /* @__PURE__ */ l(A.Provider, { value: w, children: /* @__PURE__ */ l(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
...k,
|
|
45
|
+
ref: b,
|
|
46
|
+
role: y,
|
|
47
|
+
"aria-label": C,
|
|
48
|
+
className: x,
|
|
49
|
+
children: /* @__PURE__ */ l(f, {})
|
|
50
|
+
}
|
|
51
|
+
) });
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
a.displayName = "Calendar";
|
|
55
|
+
a.Days = V;
|
|
56
|
+
a.Dates = f;
|
|
57
|
+
a.Date = E;
|
|
58
|
+
a.Days.displayName = "Calendar.Days";
|
|
59
|
+
a.Dates.displayName = "Calendar.Dates";
|
|
60
|
+
a.Date.displayName = "Calendar.Date";
|
|
61
|
+
export {
|
|
62
|
+
a as Calendar
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { MarginSpacingProps, PaddingSpacingProps } from '../../../utils/spacing';
|
|
3
|
+
export interface CalendarProps extends MarginSpacingProps, PaddingSpacingProps, Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Override the current date. Seeds the visible month, and keeps tests and
|
|
6
|
+
* server-rendered output deterministic — the Calendar otherwise reads the
|
|
7
|
+
* system clock, which can differ between server and browser across a
|
|
8
|
+
* timezone or midnight boundary. Pass a timezone-stable value.
|
|
9
|
+
*
|
|
10
|
+
* Ignored when it isn't a valid `Date`.
|
|
11
|
+
*
|
|
12
|
+
* @default new Date()
|
|
13
|
+
*/
|
|
14
|
+
today?: Date;
|
|
15
|
+
/**
|
|
16
|
+
* Specify the BCP-47 locale tag driving weekday and month names, the spoken
|
|
17
|
+
* date labels, and which day the week starts on (e.g. `de-DE` → Montag first,
|
|
18
|
+
* `en-US` → Sunday first). An unsupported tag falls back to the default.
|
|
19
|
+
*
|
|
20
|
+
* @default 'en-US'
|
|
21
|
+
*/
|
|
22
|
+
locale?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Accessible name for the calendar group.
|
|
25
|
+
*
|
|
26
|
+
* @default 'Calendar'
|
|
27
|
+
*/
|
|
28
|
+
'aria-label'?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Everything the sub-components need, derived once by the `Calendar` root.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export interface CalendarContextValue {
|
|
35
|
+
/** BCP-47 tag driving weekday names, week start, and day numerals. */
|
|
36
|
+
locale: string;
|
|
37
|
+
/** The current date, at local midnight. */
|
|
38
|
+
today: Date;
|
|
39
|
+
/** First day of the rendered month, at local midnight. */
|
|
40
|
+
visibleMonth: Date;
|
|
41
|
+
/** First day of the week, in `Date.getDay()` numbering (0 = Sunday). */
|
|
42
|
+
weekStart: number;
|
|
43
|
+
/** Whole weeks covering `visibleMonth`, padded with adjacent-month days. */
|
|
44
|
+
weeks: Date[][];
|
|
45
|
+
/** Abbreviated weekday names, ordered from `weekStart`. */
|
|
46
|
+
weekdayLabels: ReadonlyArray<string>;
|
|
47
|
+
}
|
|
48
|
+
export type CalendarDaysProps = ComponentPropsWithoutRef<'thead'>;
|
|
49
|
+
export type CalendarDatesProps = Omit<ComponentPropsWithoutRef<'table'>, 'children'>;
|
|
50
|
+
export interface CalendarDateProps extends Omit<ComponentPropsWithoutRef<'td'>, 'children'> {
|
|
51
|
+
/** The day this cell renders. Outside-month styling is derived from it. */
|
|
52
|
+
date: Date;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../chunks/constants.DLsDVPyH.js");const o=require("../../../chunks/dates.CVW08OQ2.js"),r=7,y=0,i=1,E=6,c=e=>(e%r+r)%r,g=(e,t,a)=>{const n=new Date;return n.setFullYear(e,t,a),n.setHours(0,0,0,0),n},Y=e=>g(e.getFullYear(),e.getMonth(),e.getDate()),m=e=>g(e.getFullYear(),e.getMonth(),1),d=e=>g(e.getFullYear(),e.getMonth()+1,0),h=e=>d(e).getDate(),u=(e,t)=>g(e.getFullYear(),e.getMonth(),e.getDate()+t),_=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),F=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth(),S=[],l=(e,t)=>{const a=o.createBoundedMemo(e,t);return S.push(a),a},I=e=>{var t,a;try{const n=new Intl.Locale(e),s=((t=n.getWeekInfo)==null?void 0:t.call(n).firstDay)??((a=n.weekInfo)==null?void 0:a.firstDay);return typeof s=="number"?c(s):null}catch{return null}},k=new Set(["BD","BR","CA","CO","ET","HK","ID","IL","IN","JP","KE","KR","MO","MX","NP","PE","PH","PK","PT","SA","SG","TH","TW","US","VE","YE","ZA"]),T=new Set(["AF","BH","DZ","EG","IQ","IR","JO","KW","LY","OM","QA","SD","SY"]),C=e=>{try{const t=new Intl.Locale(e).maximize().region;return t?k.has(t)?y:T.has(t)?E:null:null}catch{return null}},N=l(o.canonicalLocaleKey,e=>{const t=o.resolveLocale(e);return I(t)??C(t)??i}),O=864e5,W=e=>{const t=new Date(0);return t.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},w=Date.UTC(2024,8,1),L=(e,t,a)=>{const n=new Intl.DateTimeFormat(o.resolveLocale(e),{weekday:a,timeZone:"UTC"});return Array.from({length:r},(s,D)=>n.format(w+c(t+D)*O))},A=(e,t)=>`${o.canonicalLocaleKey(e)}|${t}`,R=l(A,(e,t)=>L(e,t,"short")),b=l(A,(e,t)=>L(e,t,"long")),U=(e,t)=>R(e,t),K=(e,t)=>{const a=m(e),n=c(a.getDay()-t),s=u(a,-n),D=Math.ceil((n+h(e))/r);return Array.from({length:D},(V,f)=>Array.from({length:r},(j,M)=>u(s,f*r+M)))},P=(e,t)=>b(e,t),p=new Set(["gregory","buddhist","japanese","roc"]),G=l(o.canonicalLocaleKey,e=>{const t=o.resolveLocale(e),{calendar:a}=new Intl.DateTimeFormat(t).resolvedOptions();return new Intl.DateTimeFormat(t,{weekday:"long",year:"numeric",month:"long",day:"numeric",timeZone:"UTC",...p.has(a)?{}:{calendar:"gregory"}})}),v=(e,t)=>G(t).format(W(e)),H=l(o.canonicalLocaleKey,e=>new Intl.NumberFormat(o.resolveLocale(e))),B=(e,t)=>H(t).format(e.getDate()),Z=()=>{o.__clearLocaleKeyCache(),S.forEach(e=>e.clear())};exports.DEFAULT_LOCALE=o.DEFAULT_LOCALE;exports.isValidDate=o.isValidDate;exports.DAYS_IN_WEEK=r;exports.MONDAY=i;exports.SUNDAY=y;exports.__clearCalendarCaches=Z;exports.addDays=u;exports.endOfMonth=d;exports.formatDayNumber=B;exports.getCalendarWeeks=K;exports.getDateLabel=v;exports.getDaysInMonth=h;exports.getWeekStart=N;exports.getWeekdayFullLabels=P;exports.getWeekdayLabels=U;exports.isSameDay=_;exports.isSameMonth=F;exports.startOfDay=Y;exports.startOfMonth=m;exports.wrapWeekday=c;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { DEFAULT_LOCALE, isValidDate, BoundedMemo } from '@viasat/beam-shared/utils';
|
|
2
|
+
export { DEFAULT_LOCALE, isValidDate };
|
|
3
|
+
export declare const DAYS_IN_WEEK = 7;
|
|
4
|
+
/** Sunday, in `Date.getDay()` numbering. */
|
|
5
|
+
export declare const SUNDAY = 0;
|
|
6
|
+
/** Monday, in `Date.getDay()` numbering. */
|
|
7
|
+
export declare const MONDAY = 1;
|
|
8
|
+
/**
|
|
9
|
+
* Normalizes any day number — including a negative one — into `Date.getDay()`
|
|
10
|
+
* range. Plain `%` keeps the sign in JavaScript, so `-1 % 7` is `-1`, not `6`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const wrapWeekday: (day: number) => number;
|
|
13
|
+
/** Strips time-of-day, returning local midnight on the same calendar day. */
|
|
14
|
+
export declare const startOfDay: (date: Date) => Date;
|
|
15
|
+
/** Local midnight on the first day of `date`'s month. */
|
|
16
|
+
export declare const startOfMonth: (date: Date) => Date;
|
|
17
|
+
/** Local midnight on the last day of `date`'s month. */
|
|
18
|
+
export declare const endOfMonth: (date: Date) => Date;
|
|
19
|
+
export declare const getDaysInMonth: (date: Date) => number;
|
|
20
|
+
/** Shifts by whole calendar days. Negative amounts move backwards. */
|
|
21
|
+
export declare const addDays: (date: Date, amount: number) => Date;
|
|
22
|
+
export declare const isSameDay: (a: Date, b: Date) => boolean;
|
|
23
|
+
export declare const isSameMonth: (a: Date, b: Date) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* First day of the week for a locale, as `Date.getDay()` numbering (0 =
|
|
26
|
+
* Sunday). This is the ADR's `weekStart: 'auto'` default — the locale decides,
|
|
27
|
+
* not the design system. Falls back to the region table, then to Monday (ISO
|
|
28
|
+
* 8601, and the ADR's stated final fallback).
|
|
29
|
+
*
|
|
30
|
+
* Resolves the tag through {@link resolveLocale} first, the same as every other
|
|
31
|
+
* helper here. Without that an unsupported tag would take its week start from
|
|
32
|
+
* itself while its labels fell back to English — a grid starting on the wrong
|
|
33
|
+
* day with English headers. The fallback is silent for now; the dev-only
|
|
34
|
+
* warning for an unsupported locale belongs to C-15.
|
|
35
|
+
*/
|
|
36
|
+
export declare const getWeekStart: BoundedMemo<[locale: string], number>;
|
|
37
|
+
/**
|
|
38
|
+
* Abbreviated weekday names for the column headers. Figma's `weekStart=sunday`
|
|
39
|
+
* variant is drawn with inconsistent abbreviations ("Tues", "Thurs"); `Intl`
|
|
40
|
+
* yields the consistent set that the `weekStart=monday` variant uses.
|
|
41
|
+
*/
|
|
42
|
+
export declare const getWeekdayLabels: (locale: string, weekStart: number) => ReadonlyArray<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The rendered grid: whole weeks covering `visibleMonth`, padded at both ends
|
|
45
|
+
* with the adjacent months' days so every row holds {@link DAYS_IN_WEEK} dates.
|
|
46
|
+
*
|
|
47
|
+
* Returns 4, 5, or 6 rows depending on how the month falls — never a fixed 6.
|
|
48
|
+
* (A 28-day February starting on `weekStart` needs exactly 4; a 29-day one
|
|
49
|
+
* needs 5. Forcing
|
|
50
|
+
* a constant 6 is C-6's `consistentWeeks`.)
|
|
51
|
+
*/
|
|
52
|
+
export declare const getCalendarWeeks: (visibleMonth: Date, weekStart: number) => Date[][];
|
|
53
|
+
/**
|
|
54
|
+
* Full weekday names for the column headers' spoken text. The visible label is
|
|
55
|
+
* an abbreviation, and screen readers read those inconsistently — "Mon" as a
|
|
56
|
+
* word or spelled out, and worse where the abbreviation is clipped ("Mi.",
|
|
57
|
+
* "mer."). The header shows the short form and announces this one.
|
|
58
|
+
*/
|
|
59
|
+
export declare const getWeekdayFullLabels: (locale: string, weekStart: number) => ReadonlyArray<string>;
|
|
60
|
+
export declare const getDateLabel: (date: Date, locale: string) => string;
|
|
61
|
+
/**
|
|
62
|
+
* The day-of-month number as displayed. Routed through `Intl.NumberFormat` so
|
|
63
|
+
* locales with non-Latin default digits render correctly, and so the
|
|
64
|
+
* `numerals` prop (I-9) has a single place to override the numbering system.
|
|
65
|
+
*
|
|
66
|
+
* No timezone to pin — it's handed a number, not a date.
|
|
67
|
+
*/
|
|
68
|
+
export declare const formatDayNumber: (date: Date, locale: string) => string;
|
|
69
|
+
/**
|
|
70
|
+
* @internal — test-only. Clears Calendar's per-locale caches plus the shared
|
|
71
|
+
* canonical-key cache they all index by, so one suite can't leak a resolved
|
|
72
|
+
* locale into the next.
|
|
73
|
+
*/
|
|
74
|
+
export declare const __clearCalendarCaches: () => void;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import "../../../chunks/constants.XFX4nOSf.js";
|
|
2
|
+
import { c as f, r as c, b as l, _ as d } from "../../../chunks/dates.NqdbQ2fR.js";
|
|
3
|
+
import { D as ee, i as te } from "../../../chunks/dates.NqdbQ2fR.js";
|
|
4
|
+
const a = 7, Y = 0, E = 1, F = 6, D = (e) => (e % a + a) % a, g = (e, t, n) => {
|
|
5
|
+
const o = /* @__PURE__ */ new Date();
|
|
6
|
+
return o.setFullYear(e, t, n), o.setHours(0, 0, 0, 0), o;
|
|
7
|
+
}, B = (e) => g(e.getFullYear(), e.getMonth(), e.getDate()), M = (e) => g(e.getFullYear(), e.getMonth(), 1), _ = (e) => g(e.getFullYear(), e.getMonth() + 1, 0), I = (e) => _(e).getDate(), m = (e, t) => g(e.getFullYear(), e.getMonth(), e.getDate() + t), Z = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), x = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), y = [], s = (e, t) => {
|
|
8
|
+
const n = f(e, t);
|
|
9
|
+
return y.push(n), n;
|
|
10
|
+
}, L = (e) => {
|
|
11
|
+
var t, n;
|
|
12
|
+
try {
|
|
13
|
+
const o = new Intl.Locale(e), r = ((t = o.getWeekInfo) == null ? void 0 : t.call(o).firstDay) ?? ((n = o.weekInfo) == null ? void 0 : n.firstDay);
|
|
14
|
+
return typeof r == "number" ? D(r) : null;
|
|
15
|
+
} catch {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
}, T = /* @__PURE__ */ new Set([
|
|
19
|
+
"BD",
|
|
20
|
+
"BR",
|
|
21
|
+
"CA",
|
|
22
|
+
"CO",
|
|
23
|
+
"ET",
|
|
24
|
+
"HK",
|
|
25
|
+
"ID",
|
|
26
|
+
"IL",
|
|
27
|
+
"IN",
|
|
28
|
+
"JP",
|
|
29
|
+
"KE",
|
|
30
|
+
"KR",
|
|
31
|
+
"MO",
|
|
32
|
+
"MX",
|
|
33
|
+
"NP",
|
|
34
|
+
"PE",
|
|
35
|
+
"PH",
|
|
36
|
+
"PK",
|
|
37
|
+
"PT",
|
|
38
|
+
"SA",
|
|
39
|
+
"SG",
|
|
40
|
+
"TH",
|
|
41
|
+
"TW",
|
|
42
|
+
"US",
|
|
43
|
+
"VE",
|
|
44
|
+
"YE",
|
|
45
|
+
"ZA"
|
|
46
|
+
]), w = /* @__PURE__ */ new Set([
|
|
47
|
+
"AF",
|
|
48
|
+
"BH",
|
|
49
|
+
"DZ",
|
|
50
|
+
"EG",
|
|
51
|
+
"IQ",
|
|
52
|
+
"IR",
|
|
53
|
+
"JO",
|
|
54
|
+
"KW",
|
|
55
|
+
"LY",
|
|
56
|
+
"OM",
|
|
57
|
+
"QA",
|
|
58
|
+
"SD",
|
|
59
|
+
"SY"
|
|
60
|
+
]), k = (e) => {
|
|
61
|
+
try {
|
|
62
|
+
const t = new Intl.Locale(e).maximize().region;
|
|
63
|
+
return t ? T.has(t) ? Y : w.has(t) ? F : null : null;
|
|
64
|
+
} catch {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
}, v = s(
|
|
68
|
+
l,
|
|
69
|
+
(e) => {
|
|
70
|
+
const t = c(e);
|
|
71
|
+
return L(t) ?? k(t) ?? E;
|
|
72
|
+
}
|
|
73
|
+
), C = 864e5, N = (e) => {
|
|
74
|
+
const t = /* @__PURE__ */ new Date(0);
|
|
75
|
+
return t.setUTCFullYear(e.getFullYear(), e.getMonth(), e.getDate()), t;
|
|
76
|
+
}, R = Date.UTC(2024, 8, 1), i = (e, t, n) => {
|
|
77
|
+
const o = new Intl.DateTimeFormat(c(e), {
|
|
78
|
+
weekday: n,
|
|
79
|
+
timeZone: "UTC"
|
|
80
|
+
});
|
|
81
|
+
return Array.from(
|
|
82
|
+
{ length: a },
|
|
83
|
+
(r, u) => o.format(
|
|
84
|
+
R + D(t + u) * C
|
|
85
|
+
)
|
|
86
|
+
);
|
|
87
|
+
}, h = (e, t) => `${l(e)}|${t}`, O = s(
|
|
88
|
+
h,
|
|
89
|
+
(e, t) => i(e, t, "short")
|
|
90
|
+
), W = s(
|
|
91
|
+
h,
|
|
92
|
+
(e, t) => i(e, t, "long")
|
|
93
|
+
), J = (e, t) => O(e, t), Q = (e, t) => {
|
|
94
|
+
const n = M(e), o = D(n.getDay() - t), r = m(n, -o), u = Math.ceil(
|
|
95
|
+
(o + I(e)) / a
|
|
96
|
+
);
|
|
97
|
+
return Array.from(
|
|
98
|
+
{ length: u },
|
|
99
|
+
(K, A) => Array.from(
|
|
100
|
+
{ length: a },
|
|
101
|
+
(G, S) => m(r, A * a + S)
|
|
102
|
+
)
|
|
103
|
+
);
|
|
104
|
+
}, V = (e, t) => W(e, t), U = /* @__PURE__ */ new Set([
|
|
105
|
+
"gregory",
|
|
106
|
+
"buddhist",
|
|
107
|
+
"japanese",
|
|
108
|
+
"roc"
|
|
109
|
+
]), b = s(l, (e) => {
|
|
110
|
+
const t = c(e), { calendar: n } = new Intl.DateTimeFormat(t).resolvedOptions();
|
|
111
|
+
return new Intl.DateTimeFormat(t, {
|
|
112
|
+
weekday: "long",
|
|
113
|
+
year: "numeric",
|
|
114
|
+
month: "long",
|
|
115
|
+
day: "numeric",
|
|
116
|
+
timeZone: "UTC",
|
|
117
|
+
// The grid is laid out from Gregorian `Date` arithmetic, so a label that
|
|
118
|
+
// names a different day describes a month we never drew: unpinned, `fa-IR`
|
|
119
|
+
// renders "۸" and announces "۱۴۰۴ تیر ۱۷" — different day, month and year,
|
|
120
|
+
// on all 35 cells. Forced only for the calendars that actually diverge, so
|
|
121
|
+
// a Thai user keeps 2568 and a Japanese user keeps the era; both name the
|
|
122
|
+
// same day the grid drew. A grid that follows the locale's own calendar is
|
|
123
|
+
// A-3, still deferred.
|
|
124
|
+
...U.has(n) ? {} : { calendar: "gregory" }
|
|
125
|
+
});
|
|
126
|
+
}), $ = (e, t) => b(t).format(N(e)), p = s(
|
|
127
|
+
l,
|
|
128
|
+
(e) => new Intl.NumberFormat(c(e))
|
|
129
|
+
), j = (e, t) => p(t).format(e.getDate()), z = () => {
|
|
130
|
+
d(), y.forEach((e) => e.clear());
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
a as DAYS_IN_WEEK,
|
|
134
|
+
ee as DEFAULT_LOCALE,
|
|
135
|
+
E as MONDAY,
|
|
136
|
+
Y as SUNDAY,
|
|
137
|
+
z as __clearCalendarCaches,
|
|
138
|
+
m as addDays,
|
|
139
|
+
_ as endOfMonth,
|
|
140
|
+
j as formatDayNumber,
|
|
141
|
+
Q as getCalendarWeeks,
|
|
142
|
+
$ as getDateLabel,
|
|
143
|
+
I as getDaysInMonth,
|
|
144
|
+
v as getWeekStart,
|
|
145
|
+
V as getWeekdayFullLabels,
|
|
146
|
+
J as getWeekdayLabels,
|
|
147
|
+
Z as isSameDay,
|
|
148
|
+
x as isSameMonth,
|
|
149
|
+
te as isValidDate,
|
|
150
|
+
B as startOfDay,
|
|
151
|
+
M as startOfMonth,
|
|
152
|
+
D as wrapWeekday
|
|
153
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Calendar.cjs.js");exports.Calendar=e.Calendar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),u=require("clsx"),t=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),u=require("clsx"),t=require("../../../chunks/dataTable.B6rVRfre.js"),T=require("./DataTable.context.cjs.js"),D=require("./DataTable.Row.cjs.js"),s=n.forwardRef(({className:l,...o},r)=>{const{table:i,striped:b}=T.useDataTable(),c=u(t.styles[t.staticDataTableClassNames.body],l);return e.jsx("tbody",{ref:r,className:c,...o,children:i.getRowModel().rows.map((a,d)=>e.jsx(D.DataTableRow,{row:a,striped:b&&d%2===1},a.id))})});s.displayName="DataTable.Body";exports.DataTableBody=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
3
|
import p from "clsx";
|
|
4
|
-
import { s as b, a as c } from "../../../chunks/dataTable.
|
|
4
|
+
import { s as b, a as c } from "../../../chunks/dataTable.Dttffzch.js";
|
|
5
5
|
import { useDataTable as f } from "./DataTable.context.es.js";
|
|
6
6
|
import { DataTableRow as y } from "./DataTable.Row.es.js";
|
|
7
7
|
const n = d(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),n=require("clsx"),e=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),n=require("clsx"),e=require("../../../chunks/dataTable.B6rVRfre.js"),a=i.forwardRef(({className:t,children:l,...s},r)=>{const c=n(e.styles[e.staticDataTableClassNames.cell],t);return o.jsx("td",{ref:r,className:c,...s,children:l})});a.displayName="DataTable.Cell";exports.DataTableCell=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
3
|
import o from "clsx";
|
|
4
|
-
import { s as c, a as f } from "../../../chunks/dataTable.
|
|
4
|
+
import { s as c, a as f } from "../../../chunks/dataTable.Dttffzch.js";
|
|
5
5
|
const i = m(
|
|
6
6
|
({ className: a, children: s, ...l }, t) => {
|
|
7
7
|
const e = o(c[f.cell], a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),n=require("react"),u=require("clsx"),e=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),n=require("react"),u=require("clsx"),e=require("../../../chunks/dataTable.B6rVRfre.js"),a=n.forwardRef(({className:t,children:s,...r},l)=>{const o=u(e.styles[e.staticDataTableClassNames.columnHeader],t);return c.jsx("th",{ref:l,scope:"col",className:o,...r,children:s})});a.displayName="DataTable.ColumnHeader";exports.DataTableColumnHeader=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
3
|
import l from "clsx";
|
|
4
|
-
import { s as c, a as p } from "../../../chunks/dataTable.
|
|
4
|
+
import { s as c, a as p } from "../../../chunks/dataTable.Dttffzch.js";
|
|
5
5
|
const f = t(({ className: a, children: s, ...e }, o) => {
|
|
6
6
|
const r = l(c[p.columnHeader], a);
|
|
7
7
|
return /* @__PURE__ */ m("th", { ref: o, scope: "col", className: r, ...e, children: s });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),i=require("react"),n=require("clsx"),e=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),i=require("react"),n=require("clsx"),e=require("../../../chunks/dataTable.B6rVRfre.js"),t=i.forwardRef(({className:a,children:s,...o},r)=>{const l=n(e.styles[e.staticDataTableClassNames.footer],a);return c.jsx("tfoot",{ref:r,className:l,...o,children:s})});t.displayName="DataTable.Footer";exports.DataTableFooter=t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
3
|
import l from "clsx";
|
|
4
|
-
import { s as f, a as c } from "../../../chunks/dataTable.
|
|
4
|
+
import { s as f, a as c } from "../../../chunks/dataTable.Dttffzch.js";
|
|
5
5
|
const i = m(
|
|
6
6
|
({ className: a, children: o, ...t }, s) => {
|
|
7
7
|
const r = l(f[c.footer], a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),m=require("react"),D=require("@tanstack/react-table"),c=require("clsx"),e=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),m=require("react"),D=require("@tanstack/react-table"),c=require("clsx"),e=require("../../../chunks/dataTable.B6rVRfre.js"),p=require("./DataTable.context.cjs.js"),_=require("./DataTable.ColumnHeader.cjs.js"),g=require("./DataTable.Row.cjs.js"),o=m.forwardRef(({className:r,...i},b)=>{const{table:u}=p.useDataTable(),d=c(e.styles[e.staticDataTableClassNames.head],r);return l.jsx("thead",{ref:b,className:d,...i,children:u.getHeaderGroups().map(t=>l.jsx(g.DataTableRow,{children:t.headers.map(a=>{var n;const{columnDef:s}=a.column,T=((n=s.meta)==null?void 0:n.align)==="end";return l.jsx(_.DataTableColumnHeader,{colSpan:a.colSpan,scope:a.isPlaceholder?void 0:a.colSpan>1?"colgroup":"col",className:c(T&&e.styles[e.staticDataTableClassNames.columnHeaderAlignEnd]),children:a.isPlaceholder?null:D.flexRender(s.header,a.getContext())},a.id)})},t.id))})});o.displayName="DataTable.Head";exports.DataTableHead=o;
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as u } from "react";
|
|
3
3
|
import { flexRender as b } from "@tanstack/react-table";
|
|
4
4
|
import s from "clsx";
|
|
5
|
-
import { s as m, a as r } from "../../../chunks/dataTable.
|
|
5
|
+
import { s as m, a as r } from "../../../chunks/dataTable.Dttffzch.js";
|
|
6
6
|
import { useDataTable as D } from "./DataTable.context.es.js";
|
|
7
7
|
import { DataTableColumnHeader as g } from "./DataTable.ColumnHeader.es.js";
|
|
8
8
|
import { DataTableRow as T } from "./DataTable.Row.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),n=require("clsx"),e=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),n=require("clsx"),e=require("../../../chunks/dataTable.B6rVRfre.js"),a=i.forwardRef(({className:t,children:s,...r},c)=>{const l=n(e.styles[e.staticDataTableClassNames.header],t);return o.jsx("caption",{ref:c,className:l,...r,children:s})});a.displayName="DataTable.Header";exports.DataTableHeader=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
3
|
import l from "clsx";
|
|
4
|
-
import { s as c, a as i } from "../../../chunks/dataTable.
|
|
4
|
+
import { s as c, a as i } from "../../../chunks/dataTable.Dttffzch.js";
|
|
5
5
|
const p = m(
|
|
6
6
|
({ className: a, children: s, ...e }, r) => {
|
|
7
7
|
const t = l(c[i.header], a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),D=require("react"),C=require("@tanstack/react-table"),n=require("clsx"),e=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),D=require("react"),C=require("@tanstack/react-table"),n=require("clsx"),e=require("../../../chunks/dataTable.B6rVRfre.js"),f=require("./DataTable.Cell.cjs.js"),r=D.forwardRef(({className:c,row:t,children:i,striped:o=!1,...u},b)=>{const m=n(e.styles[e.staticDataTableClassNames.row],o&&e.styles[e.staticDataTableClassNames.rowStriped],c),d=()=>t==null?void 0:t.getVisibleCells().map(a=>{var s;const T=((s=a.column.columnDef.meta)==null?void 0:s.align)==="end";return l.jsx(f.DataTableCell,{className:n(T&&e.styles[e.staticDataTableClassNames.cellAlignEnd]),children:C.flexRender(a.column.columnDef.cell,a.getContext())},a.id)});return l.jsx("tr",{ref:b,className:m,...u,children:i??d()})});r.displayName="DataTable.Row";exports.DataTableRow=r;
|
|
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as u } from "react";
|
|
3
3
|
import { flexRender as C } from "@tanstack/react-table";
|
|
4
4
|
import m from "clsx";
|
|
5
|
-
import { s as l, a as s } from "../../../chunks/dataTable.
|
|
5
|
+
import { s as l, a as s } from "../../../chunks/dataTable.Dttffzch.js";
|
|
6
6
|
import { DataTableCell as D } from "./DataTable.Cell.es.js";
|
|
7
7
|
const b = u(
|
|
8
8
|
({ className: o, row: a, children: n, striped: i = !1, ...c }, d) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("react"),i=require("clsx"),a=require("../../../chunks/dataTable.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("react"),i=require("clsx"),a=require("../../../chunks/dataTable.B6rVRfre.js"),e=b.forwardRef(({className:t,children:s,...r},o)=>{const l=i(a.styles[a.staticDataTableClassNames.toolbar],t);return c.jsx("div",{ref:o,className:l,...r,children:s})});e.displayName="DataTable.Toolbar";exports.DataTableToolbar=e;
|