@viasat/beam-react 2.48.2 → 2.49.1
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 +20 -0
- package/assets/dataTable.css +1 -0
- package/chunks/{ActionList.Group.BspPxBRT.js → ActionList.Group.BJLwm1y8.js} +1 -1
- package/chunks/{ActionList.Group.Crwr7tjD.js → ActionList.Group.CsXcqrHE.js} +2 -2
- package/chunks/{ActionList.Item.BAc--NcK.js → ActionList.Item.CuSuiBb9.js} +1 -1
- package/chunks/{ActionList.Item.pfN-89OV.js → ActionList.Item.SCmR5B7U.js} +2 -2
- package/chunks/{Avatar.Bmy3T_0v.js → Avatar.aPIu1j1C.js} +1 -1
- package/chunks/{Avatar.BM7xmbj_.js → Avatar.vskLO63E.js} +1 -1
- package/chunks/{BreadcrumbsItem.Bv-RHLE5.js → BreadcrumbsItem.BnAUmm-M.js} +1 -1
- package/chunks/{BreadcrumbsItem.CJ2P5JCD.js → BreadcrumbsItem.DX3YrRLr.js} +1 -1
- package/chunks/DateField.Segment.CtHATxv0.js +109 -0
- package/chunks/DateField.Segment.ZcYoijpc.js +1 -0
- package/chunks/{FloatingUI.arrow.DGlk005P.js → FloatingUI.arrow.BVP4jp8w.js} +1 -1
- package/chunks/{FloatingUI.arrow.DDrTOpE-.js → FloatingUI.arrow.D94RYHjd.js} +1 -1
- package/chunks/{Search.Results.NCxpem4D.js → Search.Results.Bnw2OhV0.js} +1 -1
- package/chunks/{Search.Results.xnCZAijW.js → Search.Results.Cgaa0bVk.js} +1 -1
- package/chunks/{SpinnerWrap.Db8bcf6Z.js → SpinnerWrap.D1la2z5e.js} +1 -1
- package/chunks/{SpinnerWrap.RW7jgvpb.js → SpinnerWrap.ildr7CH1.js} +1 -1
- package/chunks/{classNames.DC8Ra4sw.js → classNames.B-9Vv1IR.js} +1 -1
- package/chunks/{classNames.ZWNk1hey.js → classNames.DDPjBhjA.js} +1 -1
- package/chunks/dataTable.CrCD_4ro.js +1 -0
- package/chunks/dataTable.Dkn26NSq.js +40 -0
- package/chunks/{form.context.cEuTL68U.js → form.context.B3XMEqme.js} +1 -1
- package/chunks/{form.context.D5XrYvpI.js → form.context.BfZzYt36.js} +1 -1
- package/chunks/helpers.B4xpu88P.js +1 -0
- package/chunks/{helpers.DLd_EQjR.js → helpers.DnurYbTL.js} +4 -3
- package/index.cjs.js +1 -1
- package/index.es.js +2 -2
- 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 +1 -1
- 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/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 +1 -1
- 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 +1 -1
- package/lib/Form/hooks/useFieldValidator.hook.cjs.js +1 -1
- package/lib/Form/hooks/useFieldValidator.hook.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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/lib/wip/DataTable/DataTable.Body.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.Body.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.Body.es.js +14 -0
- package/lib/wip/DataTable/DataTable.Cell.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.Cell.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.Cell.es.js +14 -0
- package/lib/wip/DataTable/DataTable.ColumnHeader.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.ColumnHeader.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.ColumnHeader.es.js +12 -0
- package/lib/wip/DataTable/DataTable.Footer.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.Footer.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.Footer.es.js +14 -0
- package/lib/wip/DataTable/DataTable.Head.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.Head.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.Head.es.js +14 -0
- package/lib/wip/DataTable/DataTable.Header.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.Header.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.Header.es.js +14 -0
- package/lib/wip/DataTable/DataTable.Row.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.Row.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.Row.es.js +14 -0
- package/lib/wip/DataTable/DataTable.Toolbar.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.Toolbar.d.ts +2 -0
- package/lib/wip/DataTable/DataTable.Toolbar.es.js +14 -0
- package/lib/wip/DataTable/DataTable.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.context.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.context.d.ts +10 -0
- package/lib/wip/DataTable/DataTable.context.es.js +17 -0
- package/lib/wip/DataTable/DataTable.d.ts +13 -0
- package/lib/wip/DataTable/DataTable.es.js +59 -0
- package/lib/wip/DataTable/DataTable.types.cjs.js +1 -0
- package/lib/wip/DataTable/DataTable.types.d.ts +61 -0
- package/lib/wip/DataTable/DataTable.types.es.js +1 -0
- package/lib/wip/DataTable/index.cjs.js +1 -0
- package/lib/wip/DataTable/index.d.ts +11 -0
- package/lib/wip/DataTable/index.es.js +23 -0
- package/lib/wip/DateField/DateField.Segment.cjs.js +1 -1
- package/lib/wip/DateField/DateField.Segment.d.ts +1 -1
- package/lib/wip/DateField/DateField.Segment.es.js +1 -1
- package/lib/wip/DateField/DateField.Segments.cjs.js +1 -1
- package/lib/wip/DateField/DateField.Segments.d.ts +6 -2
- package/lib/wip/DateField/DateField.Segments.es.js +44 -39
- package/lib/wip/DateField/DateField.cjs.js +1 -1
- package/lib/wip/DateField/DateField.es.js +100 -96
- package/lib/wip/DateField/DateField.types.d.ts +8 -0
- package/lib/wip/DateField/DateField.utils.cjs.js +1 -1
- package/lib/wip/DateField/DateField.utils.d.ts +2 -0
- package/lib/wip/DateField/DateField.utils.es.js +38 -37
- package/lib/wip/DateField/useDateFieldForm.cjs.js +1 -1
- package/lib/wip/DateField/useDateFieldForm.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 +23 -2
- package/package.json +8 -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/DateField.Segment.BVe6TzWY.js +0 -101
- package/chunks/DateField.Segment.CnDrSK1L.js +0 -1
- package/chunks/helpers.CGgi4mVC.js +0 -1
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
import { jsxs as N, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { s as a, b as we, c as
|
|
2
|
+
import Ie from "clsx";
|
|
3
|
+
import { forwardRef as Ne, useEffect as Me } from "react";
|
|
4
|
+
import { s as a, b as we, c as l, a as M } from "../../../chunks/DateField.Segment.CtHATxv0.js";
|
|
5
5
|
import { t as Re } from "../../../chunks/constants.Cruz2A1w.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
6
|
+
import { i as Oe } from "../../../chunks/helpers.DnurYbTL.js";
|
|
7
|
+
import { H as Ve } from "../../../chunks/form.context.B3XMEqme.js";
|
|
8
|
+
import { LabelProvider as Be } from "../../Form/contexts/label.context.es.js";
|
|
9
|
+
import { HelperTextProvider as Ce } from "../../Form/contexts/helperText.context.es.js";
|
|
10
|
+
import { useUniversalRef as Ee } from "../../Form/hooks/useUniversalRef.hook.es.js";
|
|
11
|
+
import { useIsMounted as Pe } from "../../../utils/hooks/useIsMounted.es.js";
|
|
12
|
+
import { DateFieldSegments as Te, PARTS_ORDER as w } from "./DateField.Segments.es.js";
|
|
13
|
+
import { isMinMaxMisconfigured as qe, dateKeyOrNull as R, toISODateString as He } from "./DateField.utils.es.js";
|
|
14
|
+
import { useDateFieldFocus as Ke } from "./useDateFieldFocus.es.js";
|
|
15
|
+
import { useDateFieldForm as Le } from "./useDateFieldForm.es.js";
|
|
16
|
+
import { useDateFieldKeyboard as $e } from "./useDateFieldKeyboard.es.js";
|
|
17
|
+
import { useDateFieldSegments as je } from "./useDateFieldSegments.es.js";
|
|
18
|
+
import { useDateFieldValidity as Ae } from "./useDateFieldValidity.es.js";
|
|
19
|
+
import { useDateFieldValue as We } from "./useDateFieldValue.es.js";
|
|
20
|
+
import { useInvalidState as _e } from "./useInvalidState.es.js";
|
|
21
|
+
const fa = Ne(
|
|
20
22
|
function({
|
|
21
|
-
value:
|
|
22
|
-
defaultValue:
|
|
23
|
+
value: O,
|
|
24
|
+
defaultValue: V,
|
|
23
25
|
onChange: B,
|
|
24
26
|
minDate: t,
|
|
25
|
-
maxDate:
|
|
27
|
+
maxDate: o,
|
|
26
28
|
getClampAnnouncement: C,
|
|
27
|
-
label:
|
|
28
|
-
helperText:
|
|
29
|
-
error:
|
|
29
|
+
label: u = null,
|
|
30
|
+
helperText: m = null,
|
|
31
|
+
error: c,
|
|
30
32
|
hideRequiredMarker: E = !1,
|
|
31
33
|
validationRules: P,
|
|
32
34
|
width: T,
|
|
33
|
-
theme:
|
|
35
|
+
theme: f,
|
|
34
36
|
fluid: q = !1,
|
|
35
37
|
disabled: H = !1,
|
|
36
38
|
readOnly: K = !1,
|
|
37
39
|
required: L = !1,
|
|
38
|
-
name:
|
|
40
|
+
name: p,
|
|
39
41
|
id: $,
|
|
40
42
|
className: j,
|
|
41
43
|
style: A,
|
|
@@ -46,53 +48,53 @@ const da = Ie(
|
|
|
46
48
|
}, z) {
|
|
47
49
|
const {
|
|
48
50
|
disabled: e,
|
|
49
|
-
readOnly:
|
|
50
|
-
required:
|
|
51
|
+
readOnly: d,
|
|
52
|
+
required: b,
|
|
51
53
|
invalid: G,
|
|
52
|
-
errorMessageProvided:
|
|
54
|
+
errorMessageProvided: g,
|
|
53
55
|
defaultValue: J,
|
|
54
|
-
errorId:
|
|
56
|
+
errorId: v,
|
|
55
57
|
helperTextId: Q,
|
|
56
58
|
validationErrorsId: X,
|
|
57
|
-
labelId:
|
|
59
|
+
labelId: F,
|
|
58
60
|
ariaDescribedBy: Y,
|
|
59
61
|
ariaLabelledBy: Z,
|
|
60
62
|
showErrors: ee
|
|
61
|
-
} =
|
|
62
|
-
name:
|
|
63
|
+
} = Le({
|
|
64
|
+
name: p,
|
|
63
65
|
disabled: H,
|
|
64
66
|
readOnly: K,
|
|
65
67
|
required: L,
|
|
66
|
-
defaultValue:
|
|
67
|
-
error:
|
|
68
|
-
hasHelperText: !!
|
|
69
|
-
hasLabel: !!
|
|
68
|
+
defaultValue: V,
|
|
69
|
+
error: c,
|
|
70
|
+
hasHelperText: !!m,
|
|
71
|
+
hasLabel: !!u,
|
|
70
72
|
validationRules: P,
|
|
71
73
|
ariaDescribedBy: _,
|
|
72
74
|
ariaLabelledBy: U
|
|
73
75
|
});
|
|
74
|
-
|
|
75
|
-
process.env.NODE_ENV !== "production" &&
|
|
76
|
+
Me(() => {
|
|
77
|
+
process.env.NODE_ENV !== "production" && qe(t, o) && console.warn(
|
|
76
78
|
"DateField: `minDate` is after `maxDate` — no date satisfies both, so the blur clamp is disabled and values are left as typed."
|
|
77
79
|
);
|
|
78
|
-
}, [
|
|
79
|
-
const { refFn: ae, ref:
|
|
80
|
-
segmentText:
|
|
81
|
-
segmentValues:
|
|
82
|
-
currentValue:
|
|
83
|
-
wasTouched:
|
|
80
|
+
}, [R(t), R(o)]);
|
|
81
|
+
const { refFn: ae, ref: D } = Ee(z), { segmentRefs: re, registerSegmentRef: ie } = je(), {
|
|
82
|
+
segmentText: se,
|
|
83
|
+
segmentValues: h,
|
|
84
|
+
currentValue: x,
|
|
85
|
+
wasTouched: le,
|
|
84
86
|
appendDigit: te,
|
|
85
|
-
adjustSegment:
|
|
86
|
-
clearSegment:
|
|
87
|
+
adjustSegment: oe,
|
|
88
|
+
clearSegment: de,
|
|
87
89
|
beginSegmentEdit: ne,
|
|
88
90
|
commitOnBlur: ue,
|
|
89
91
|
clampAnnouncement: me
|
|
90
|
-
} =
|
|
91
|
-
value:
|
|
92
|
+
} = We({
|
|
93
|
+
value: O,
|
|
92
94
|
defaultValue: J,
|
|
93
95
|
onChange: B,
|
|
94
96
|
minDate: t,
|
|
95
|
-
maxDate:
|
|
97
|
+
maxDate: o,
|
|
96
98
|
getClampAnnouncement: C
|
|
97
99
|
}), {
|
|
98
100
|
focusedSegment: y,
|
|
@@ -101,45 +103,45 @@ const da = Ie(
|
|
|
101
103
|
handleFieldFocus: fe,
|
|
102
104
|
handleFieldBlur: pe,
|
|
103
105
|
handleFieldMouseDown: be,
|
|
104
|
-
focusNext:
|
|
106
|
+
focusNext: I,
|
|
105
107
|
focusPrevious: ge
|
|
106
|
-
} =
|
|
108
|
+
} = Ke({
|
|
107
109
|
disabled: e,
|
|
108
|
-
fieldRef:
|
|
110
|
+
fieldRef: D,
|
|
109
111
|
segmentRefs: re,
|
|
110
|
-
partsOrder:
|
|
112
|
+
partsOrder: w,
|
|
111
113
|
onSegmentFocusChange: ne,
|
|
112
114
|
onFieldBlur: ue
|
|
113
|
-
}), ve =
|
|
115
|
+
}), ve = $e({
|
|
114
116
|
disabled: e,
|
|
115
|
-
readOnly:
|
|
116
|
-
fieldRef:
|
|
117
|
-
focusNext:
|
|
117
|
+
readOnly: d,
|
|
118
|
+
fieldRef: D,
|
|
119
|
+
focusNext: I,
|
|
118
120
|
focusPrevious: ge,
|
|
119
|
-
adjustSegment:
|
|
120
|
-
clearSegment:
|
|
121
|
-
}), { isInvalid: Fe } =
|
|
122
|
-
segments:
|
|
123
|
-
currentValue:
|
|
124
|
-
wasTouched:
|
|
121
|
+
adjustSegment: oe,
|
|
122
|
+
clearSegment: de
|
|
123
|
+
}), { isInvalid: Fe } = Ae({
|
|
124
|
+
segments: h,
|
|
125
|
+
currentValue: x,
|
|
126
|
+
wasTouched: le,
|
|
125
127
|
isFocused: y !== null
|
|
126
|
-
}), De = (i,
|
|
127
|
-
const { advanced: Se } = te(i,
|
|
128
|
-
Se &&
|
|
129
|
-
},
|
|
128
|
+
}), De = (i, s) => {
|
|
129
|
+
const { advanced: Se } = te(i, s);
|
|
130
|
+
Se && I(i);
|
|
131
|
+
}, n = _e({
|
|
130
132
|
formInvalid: G,
|
|
131
133
|
valueInvalid: Fe
|
|
132
|
-
}), he = (i) => {
|
|
134
|
+
}), he = Pe() && Oe() ? "textbox" : "spinbutton", xe = (i) => {
|
|
133
135
|
if (e) return;
|
|
134
|
-
const
|
|
135
|
-
!
|
|
136
|
-
}, ye =
|
|
136
|
+
const s = i.target.closest("label");
|
|
137
|
+
!s || s.id !== F || (i.preventDefault(), S(w[0]));
|
|
138
|
+
}, ye = Ie(
|
|
137
139
|
a[we],
|
|
138
|
-
|
|
139
|
-
q && a[`${
|
|
140
|
-
|
|
141
|
-
e && a[`${
|
|
142
|
-
|
|
140
|
+
f && Re(f),
|
|
141
|
+
q && a[`${l}fluid`],
|
|
142
|
+
n && a[`${l}error`],
|
|
143
|
+
e && a[`${l}disabled`],
|
|
144
|
+
d && a[`${l}read-only`],
|
|
143
145
|
j
|
|
144
146
|
);
|
|
145
147
|
return /* @__PURE__ */ N(
|
|
@@ -147,15 +149,15 @@ const da = Ie(
|
|
|
147
149
|
{
|
|
148
150
|
className: ye,
|
|
149
151
|
style: { ...A, maxWidth: T },
|
|
150
|
-
onMouseDownCapture:
|
|
152
|
+
onMouseDownCapture: xe,
|
|
151
153
|
children: [
|
|
152
154
|
/* @__PURE__ */ r(
|
|
153
|
-
|
|
155
|
+
Be,
|
|
154
156
|
{
|
|
155
|
-
ctxId:
|
|
157
|
+
ctxId: F,
|
|
156
158
|
ctxDisabled: e,
|
|
157
|
-
ctxRequired:
|
|
158
|
-
children:
|
|
159
|
+
ctxRequired: b && !E,
|
|
160
|
+
children: u
|
|
159
161
|
}
|
|
160
162
|
),
|
|
161
163
|
/* @__PURE__ */ r(
|
|
@@ -168,22 +170,24 @@ const da = Ie(
|
|
|
168
170
|
"aria-label": W,
|
|
169
171
|
"aria-labelledby": Z,
|
|
170
172
|
"aria-disabled": e || void 0,
|
|
171
|
-
"aria-required":
|
|
172
|
-
"aria-invalid":
|
|
173
|
+
"aria-required": b || void 0,
|
|
174
|
+
"aria-invalid": n || void 0,
|
|
173
175
|
"aria-describedby": Y,
|
|
174
|
-
"aria-errormessage":
|
|
176
|
+
"aria-errormessage": g ? v : void 0,
|
|
175
177
|
tabIndex: ce,
|
|
176
|
-
className: a[
|
|
178
|
+
className: a[M.field],
|
|
177
179
|
onMouseDown: be,
|
|
178
180
|
onFocus: fe,
|
|
179
181
|
children: /* @__PURE__ */ r(
|
|
180
|
-
|
|
182
|
+
Te,
|
|
181
183
|
{
|
|
182
|
-
segmentText:
|
|
183
|
-
segmentValues:
|
|
184
|
+
segmentText: se,
|
|
185
|
+
segmentValues: h,
|
|
184
186
|
focusedSegment: y,
|
|
185
187
|
disabled: e,
|
|
186
|
-
readOnly:
|
|
188
|
+
readOnly: d,
|
|
189
|
+
invalid: n,
|
|
190
|
+
role: he,
|
|
187
191
|
onSegmentFocus: S,
|
|
188
192
|
onSegmentBlur: pe,
|
|
189
193
|
onSegmentInput: De,
|
|
@@ -199,7 +203,7 @@ const da = Ie(
|
|
|
199
203
|
role: "status",
|
|
200
204
|
"aria-live": "polite",
|
|
201
205
|
"aria-atomic": "true",
|
|
202
|
-
className: a[
|
|
206
|
+
className: a[M.srStatus],
|
|
203
207
|
children: me
|
|
204
208
|
}
|
|
205
209
|
),
|
|
@@ -207,14 +211,14 @@ const da = Ie(
|
|
|
207
211
|
"input",
|
|
208
212
|
{
|
|
209
213
|
type: "hidden",
|
|
210
|
-
name:
|
|
211
|
-
value:
|
|
214
|
+
name: p,
|
|
215
|
+
value: He(x),
|
|
212
216
|
disabled: e
|
|
213
217
|
}
|
|
214
218
|
),
|
|
215
|
-
/* @__PURE__ */ N(
|
|
216
|
-
|
|
217
|
-
|
|
219
|
+
/* @__PURE__ */ N(Ce, { ctxId: Q, ctxDisabled: e, children: [
|
|
220
|
+
m,
|
|
221
|
+
g && /* @__PURE__ */ r(Ve, { id: v, appearance: "negative", children: c })
|
|
218
222
|
] }),
|
|
219
223
|
ee(X)
|
|
220
224
|
]
|
|
@@ -223,5 +227,5 @@ const da = Ie(
|
|
|
223
227
|
}
|
|
224
228
|
);
|
|
225
229
|
export {
|
|
226
|
-
|
|
230
|
+
fa as DateField
|
|
227
231
|
};
|
|
@@ -10,6 +10,8 @@ export type SegmentType = 'day' | 'month' | 'year';
|
|
|
10
10
|
*/
|
|
11
11
|
export type SegmentAdjustment = number | 'min' | 'max';
|
|
12
12
|
export type FocusTarget = SegmentType | 'all' | null;
|
|
13
|
+
/** ARIA role for a segment: `spinbutton` (default) or `textbox` (iOS VoiceOver fallback post-mount). */
|
|
14
|
+
export type SegmentRole = 'spinbutton' | 'textbox';
|
|
13
15
|
/** Per-segment values. Month is 1-12 (NOT 0-11). */
|
|
14
16
|
export interface SegmentValues {
|
|
15
17
|
day: number | null;
|
|
@@ -131,6 +133,12 @@ export interface DateFieldSegmentProps {
|
|
|
131
133
|
displayValue: string;
|
|
132
134
|
/** True when `displayValue` IS the placeholder (drives `data-placeholder` CSS hook). */
|
|
133
135
|
isPlaceholder: boolean;
|
|
136
|
+
/** Pre-computed `aria-valuetext`; month = locale name, day/year = displayValue (leading-zero mirror). */
|
|
137
|
+
valueText: string;
|
|
138
|
+
/** Drives `aria-invalid` on the segment when the field is in an error/invalid state. */
|
|
139
|
+
invalid: boolean;
|
|
140
|
+
/** Role for the segment: 'spinbutton' (default) or 'textbox' (iOS VoiceOver fallback post-mount). */
|
|
141
|
+
role: SegmentRole;
|
|
134
142
|
isActive: boolean;
|
|
135
143
|
disabled: boolean;
|
|
136
144
|
readOnly: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./DateField.validation.cjs.js"),N=new Intl.DateTimeFormat("en-US",{month:"long"}),T=e=>N.format(new Date(2e3,e-1,1)),g=31,s=12,c=1,d=9999,y=(e,t,n)=>Math.min(n,Math.max(t,e)),m=(e,t)=>((e-1)%t+t)%t+1,h=2024,_=(e,t)=>t==null?31:new Date(e??h,t,0).getDate(),A=()=>{const e=new Date;return{day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear()}},l=e=>e instanceof Date&&!Number.isNaN(e.getTime()),E=(e,t,n,r)=>{if(n==="min")return e==="year"?null:1;if(n==="max")return e==="year"?null:e==="day"?r.daysInMonth:s;if(t==null){if(e==="year")return r.today.year;const f=e==="day"?g:s;return n>0?1:f}if(e==="year")return y(t+n,c,d);const o=e==="day"?g:s;return m(t+n,o)},D={day:"",month:"",year:""},M=e=>{const{day:t,month:n,year:r}=e;if(t==null||n==null||r==null)return null;const o=new Date(r,n-1,t);return o.setFullYear(r),Number.isNaN(o.getTime())||o.getFullYear()!==r||o.getMonth()!==n-1||o.getDate()!==t?null:o},p=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.getTime()===t.getTime(),a=e=>e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate(),F=e=>l(e)?a(e):null,R=(e,t,n)=>{const r=a(e);return!(l(t)&&r<a(t)||l(n)&&r>a(n))},S=(e,t)=>l(e)&&l(t)&&a(e)>a(t),Y=(e,t,n)=>{if(S(t,n))return e;const r=a(e);return l(t)&&r<a(t)?new Date(t.getFullYear(),t.getMonth(),t.getDate()):l(n)&&r>a(n)?new Date(n.getFullYear(),n.getMonth(),n.getDate()):e},I=e=>{if(!l(e))return"";const t=String(e.getFullYear()).padStart(4,"0"),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${r}`},w=e=>e.filter(t=>t.type!=="literal").map(t=>t.type),V=e=>l(e)?{day:String(e.getDate()).padStart(2,"0"),month:String(e.getMonth()+1).padStart(2,"0"),year:String(e.getFullYear()).padStart(4,"0")}:D,i=(e,t)=>{if(t===""||e==="year"&&t.length<u.SEGMENT_MAX_LENGTH.year)return null;const n=parseInt(t,10);return Number.isNaN(n)||n===0?null:n},O=e=>M({day:i("day",e.day),month:i("month",e.month),year:i("year",e.year)}),X=(e,t)=>t===""?"":t.padStart(u.SEGMENT_MAX_LENGTH[e],"0"),P=(e,t,n)=>t===""?{displayValue:n,isPlaceholder:!0}:{displayValue:t.padStart(u.SEGMENT_MAX_LENGTH[e],"0"),isPlaceholder:!1},b=e=>{const t=window.getSelection();if(!t)return;const n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)},G=e=>{var n;if(!e)return;const t=(n=window.getSelection)==null?void 0:n.call(window);t&&t.rangeCount>0&&e.contains(t.anchorNode)&&t.removeAllRanges()};exports.DAY_SPIN_MAX=g;exports.MONTH_MAX=s;exports.YEAR_MAX=d;exports.YEAR_MIN=c;exports.adjustSegmentValue=E;exports.clamp=y;exports.clampDateToRange=Y;exports.clearSelectionWithin=G;exports.dateKeyOrNull=F;exports.deriveValue=M;exports.deriveValueFromText=O;exports.getDaysInMonth=_;exports.getMonthName=T;exports.getSegmentDisplay=P;exports.getSegmentOrder=w;exports.isDateInRange=R;exports.isMinMaxMisconfigured=S;exports.isSameDateValue=p;exports.normalizeSegmentText=X;exports.segmentNumber=i;exports.segmentTextFromValue=V;exports.selectElementContents=b;exports.toISODateString=I;exports.todayParts=A;exports.wrapInRange=m;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Nullable } from '@viasat/beam-shared/utils/types';
|
|
2
2
|
import { DateFieldPart, SegmentAdjustment, SegmentText, SegmentType, SegmentValues } from './DateField.types';
|
|
3
|
+
/** Returns the locale month name for a 1-based month (1 = January). */
|
|
4
|
+
export declare const getMonthName: (month: number) => string;
|
|
3
5
|
/**
|
|
4
6
|
* Absolute spin ceiling for day — independent of the current month.
|
|
5
7
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SEGMENT_MAX_LENGTH as u } from "./DateField.validation.es.js";
|
|
2
|
-
const c = 31, s = 12,
|
|
2
|
+
const d = new Intl.DateTimeFormat("en-US", { month: "long" }), A = (e) => d.format(new Date(2e3, e - 1, 1)), c = 31, s = 12, y = 1, f = 9999, S = (e, t, n) => Math.min(n, Math.max(t, e)), m = (e, t) => ((e - 1) % t + t) % t + 1, M = 2024, F = (e, t) => t == null ? 31 : new Date(e ?? M, t, 0).getDate(), Y = () => {
|
|
3
3
|
const e = /* @__PURE__ */ new Date();
|
|
4
4
|
return { day: e.getDate(), month: e.getMonth() + 1, year: e.getFullYear() };
|
|
5
|
-
}, o = (e) => e instanceof Date && !Number.isNaN(e.getTime()),
|
|
5
|
+
}, o = (e) => e instanceof Date && !Number.isNaN(e.getTime()), w = (e, t, n, r) => {
|
|
6
6
|
if (n === "min") return e === "year" ? null : 1;
|
|
7
7
|
if (n === "max")
|
|
8
8
|
return e === "year" ? null : e === "day" ? r.daysInMonth : s;
|
|
@@ -11,48 +11,48 @@ const c = 31, s = 12, d = 1, y = 9999, f = (e, t, n) => Math.min(n, Math.max(t,
|
|
|
11
11
|
const g = e === "day" ? c : s;
|
|
12
12
|
return n > 0 ? 1 : g;
|
|
13
13
|
}
|
|
14
|
-
if (e === "year") return
|
|
14
|
+
if (e === "year") return S(t + n, y, f);
|
|
15
15
|
const l = e === "day" ? c : s;
|
|
16
|
-
return
|
|
17
|
-
},
|
|
16
|
+
return m(t + n, l);
|
|
17
|
+
}, h = { day: "", month: "", year: "" }, N = (e) => {
|
|
18
18
|
const { day: t, month: n, year: r } = e;
|
|
19
19
|
if (t == null || n == null || r == null) return null;
|
|
20
20
|
const l = new Date(r, n - 1, t);
|
|
21
21
|
return l.setFullYear(r), Number.isNaN(l.getTime()) || l.getFullYear() !== r || l.getMonth() !== n - 1 || l.getDate() !== t ? null : l;
|
|
22
|
-
},
|
|
22
|
+
}, R = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 : e.getTime() === t.getTime(), a = (e) => e.getFullYear() * 1e4 + (e.getMonth() + 1) * 100 + e.getDate(), E = (e) => o(e) ? a(e) : null, _ = (e, t, n) => {
|
|
23
23
|
const r = a(e);
|
|
24
24
|
return !(o(t) && r < a(t) || o(n) && r > a(n));
|
|
25
|
-
},
|
|
26
|
-
if (
|
|
25
|
+
}, T = (e, t) => o(e) && o(t) && a(e) > a(t), D = (e, t, n) => {
|
|
26
|
+
if (T(t, n)) return e;
|
|
27
27
|
const r = a(e);
|
|
28
28
|
return o(t) && r < a(t) ? new Date(t.getFullYear(), t.getMonth(), t.getDate()) : o(n) && r > a(n) ? new Date(n.getFullYear(), n.getMonth(), n.getDate()) : e;
|
|
29
|
-
},
|
|
29
|
+
}, I = (e) => {
|
|
30
30
|
if (!o(e)) return "";
|
|
31
31
|
const t = String(e.getFullYear()).padStart(4, "0"), n = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getDate()).padStart(2, "0");
|
|
32
32
|
return `${t}-${n}-${r}`;
|
|
33
|
-
},
|
|
33
|
+
}, V = (e) => e.filter(
|
|
34
34
|
(t) => t.type !== "literal"
|
|
35
|
-
).map((t) => t.type),
|
|
35
|
+
).map((t) => t.type), O = (e) => o(e) ? {
|
|
36
36
|
day: String(e.getDate()).padStart(2, "0"),
|
|
37
37
|
month: String(e.getMonth() + 1).padStart(2, "0"),
|
|
38
38
|
year: String(e.getFullYear()).padStart(4, "0")
|
|
39
|
-
} :
|
|
39
|
+
} : h, i = (e, t) => {
|
|
40
40
|
if (t === "" || e === "year" && t.length < u.year) return null;
|
|
41
41
|
const n = parseInt(t, 10);
|
|
42
42
|
return Number.isNaN(n) || n === 0 ? null : n;
|
|
43
|
-
},
|
|
43
|
+
}, P = (e) => N({
|
|
44
44
|
day: i("day", e.day),
|
|
45
45
|
month: i("month", e.month),
|
|
46
46
|
year: i("year", e.year)
|
|
47
|
-
}),
|
|
47
|
+
}), X = (e, t) => t === "" ? "" : t.padStart(u[e], "0"), C = (e, t, n) => t === "" ? { displayValue: n, isPlaceholder: !0 } : {
|
|
48
48
|
displayValue: t.padStart(u[e], "0"),
|
|
49
49
|
isPlaceholder: !1
|
|
50
|
-
},
|
|
50
|
+
}, L = (e) => {
|
|
51
51
|
const t = window.getSelection();
|
|
52
52
|
if (!t) return;
|
|
53
53
|
const n = document.createRange();
|
|
54
54
|
n.selectNodeContents(e), t.removeAllRanges(), t.addRange(n);
|
|
55
|
-
},
|
|
55
|
+
}, H = (e) => {
|
|
56
56
|
var n;
|
|
57
57
|
if (!e) return;
|
|
58
58
|
const t = (n = window.getSelection) == null ? void 0 : n.call(window);
|
|
@@ -61,26 +61,27 @@ const c = 31, s = 12, d = 1, y = 9999, f = (e, t, n) => Math.min(n, Math.max(t,
|
|
|
61
61
|
export {
|
|
62
62
|
c as DAY_SPIN_MAX,
|
|
63
63
|
s as MONTH_MAX,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
f as YEAR_MAX,
|
|
65
|
+
y as YEAR_MIN,
|
|
66
|
+
w as adjustSegmentValue,
|
|
67
|
+
S as clamp,
|
|
68
|
+
D as clampDateToRange,
|
|
69
|
+
H as clearSelectionWithin,
|
|
70
|
+
E as dateKeyOrNull,
|
|
71
|
+
N as deriveValue,
|
|
72
|
+
P as deriveValueFromText,
|
|
73
|
+
F as getDaysInMonth,
|
|
74
|
+
A as getMonthName,
|
|
75
|
+
C as getSegmentDisplay,
|
|
76
|
+
V as getSegmentOrder,
|
|
77
|
+
_ as isDateInRange,
|
|
78
|
+
T as isMinMaxMisconfigured,
|
|
79
|
+
R as isSameDateValue,
|
|
80
|
+
X as normalizeSegmentText,
|
|
80
81
|
i as segmentNumber,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
O as segmentTextFromValue,
|
|
83
|
+
L as selectElementContents,
|
|
84
|
+
I as toISODateString,
|
|
85
|
+
Y as todayParts,
|
|
86
|
+
m as wrapInRange
|
|
86
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("clsx"),T=require("react"),u=require("../../../chunks/form.context.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("clsx"),T=require("react"),u=require("../../../chunks/form.context.BfZzYt36.js");require("../../Form/contexts/label.context.cjs.js");require("../../Form/contexts/helperText.context.cjs.js");const s=require("../../Form/hooks/useAccessibleId.hook.cjs.js");require("react/jsx-runtime");function L({name:i,disabled:b=!1,readOnly:y=!1,required:I=!1,defaultValue:q,error:e,hasHelperText:p,hasLabel:h,validationRules:F=[],ariaDescribedBy:f,ariaLabelledBy:m}){const{showErrors:v,isInvalid:x,errorShown:g,disabled:B,readOnly:_,required:A}=u.useFormField({name:i,validationRules:F,disabledProp:b,readOnlyProp:y,requiredProp:I}),{ctxInitialValues:D}=T.useContext(u.FormContext),{id:r}=s.useAccessibleId(),{id:d}=s.useAccessibleId(),{id:l}=s.useAccessibleId(),{id:o}=s.useAccessibleId(),t=!!(e!=null&&e.length),P=!!e||x,O=q??D[i],a=n(p&&d,t&&r,g&&l,f),c=n(h&&o,m);return{disabled:B,readOnly:_,required:A,invalid:P,errorMessageProvided:t,defaultValue:O,errorId:r,helperTextId:d,validationErrorsId:l,labelId:o,ariaDescribedBy:a.length>0?a:void 0,ariaLabelledBy:c.length>0?c:void 0,showErrors:v}}exports.useDateFieldForm=L;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import c from "clsx";
|
|
2
2
|
import { useContext as V } from "react";
|
|
3
|
-
import { b as w, F as C } from "../../../chunks/form.context.
|
|
3
|
+
import { b as w, F as C } from "../../../chunks/form.context.B3XMEqme.js";
|
|
4
4
|
import "../../Form/contexts/label.context.es.js";
|
|
5
5
|
import "../../Form/contexts/helperText.context.es.js";
|
|
6
6
|
import { useAccessibleId as o } from "../../Form/hooks/useAccessibleId.hook.es.js";
|
package/lib/wip/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateField/DateField.cjs.js");exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DataTable/DataTable.cjs.js"),l=require("./DataTable/DataTable.Header.cjs.js"),t=require("./DataTable/DataTable.Toolbar.cjs.js"),b=require("./DataTable/DataTable.Head.cjs.js"),D=require("./DataTable/DataTable.ColumnHeader.cjs.js"),T=require("./DataTable/DataTable.Body.cjs.js"),i=require("./DataTable/DataTable.Row.cjs.js"),r=require("./DataTable/DataTable.Cell.cjs.js"),_=require("./DataTable/DataTable.Footer.cjs.js"),a=require("./DataTable/DataTable.context.cjs.js"),o=require("./DateField/DateField.cjs.js");exports.DataTable=e.DataTable;exports.DataTableHeader=l.DataTableHeader;exports.DataTableToolbar=t.DataTableToolbar;exports.DataTableHead=b.DataTableHead;exports.DataTableColumnHeader=D.DataTableColumnHeader;exports.DataTableBody=T.DataTableBody;exports.DataTableRow=i.DataTableRow;exports.DataTableCell=r.DataTableCell;exports.DataTableFooter=_.DataTableFooter;exports.DataTableProvider=a.DataTableProvider;exports.useDataTable=a.useDataTable;exports.DateField=o.DateField;
|
package/lib/wip/index.d.ts
CHANGED
package/lib/wip/index.es.js
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataTable as o } from "./DataTable/DataTable.es.js";
|
|
2
|
+
import { DataTableHeader as t } from "./DataTable/DataTable.Header.es.js";
|
|
3
|
+
import { DataTableToolbar as b } from "./DataTable/DataTable.Toolbar.es.js";
|
|
4
|
+
import { DataTableHead as D } from "./DataTable/DataTable.Head.es.js";
|
|
5
|
+
import { DataTableColumnHeader as f } from "./DataTable/DataTable.ColumnHeader.es.js";
|
|
6
|
+
import { DataTableBody as x } from "./DataTable/DataTable.Body.es.js";
|
|
7
|
+
import { DataTableRow as H } from "./DataTable/DataTable.Row.es.js";
|
|
8
|
+
import { DataTableCell as u } from "./DataTable/DataTable.Cell.es.js";
|
|
9
|
+
import { DataTableFooter as F } from "./DataTable/DataTable.Footer.es.js";
|
|
10
|
+
import { DataTableProvider as s, useDataTable as v } from "./DataTable/DataTable.context.es.js";
|
|
11
|
+
import { DateField as y } from "./DateField/DateField.es.js";
|
|
2
12
|
export {
|
|
3
|
-
|
|
13
|
+
o as DataTable,
|
|
14
|
+
x as DataTableBody,
|
|
15
|
+
u as DataTableCell,
|
|
16
|
+
f as DataTableColumnHeader,
|
|
17
|
+
F as DataTableFooter,
|
|
18
|
+
D as DataTableHead,
|
|
19
|
+
t as DataTableHeader,
|
|
20
|
+
s as DataTableProvider,
|
|
21
|
+
H as DataTableRow,
|
|
22
|
+
b as DataTableToolbar,
|
|
23
|
+
y as DateField,
|
|
24
|
+
v as useDataTable
|
|
4
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viasat/beam-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.49.1",
|
|
4
4
|
"description": "React component library for the Beam design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Viasat",
|
|
@@ -60,15 +60,16 @@
|
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@viasat/beam-fonts": "2.
|
|
64
|
-
"@viasat/beam-shared": "2.
|
|
65
|
-
"@viasat/beam-styles": "2.
|
|
66
|
-
"@viasat/beam-tokens": "2.
|
|
67
|
-
"@viasat/beam-icons": "2.
|
|
68
|
-
"@viasat/beam-react-claude-plugin": "2.
|
|
63
|
+
"@viasat/beam-fonts": "2.49.1",
|
|
64
|
+
"@viasat/beam-shared": "2.49.1",
|
|
65
|
+
"@viasat/beam-styles": "2.49.1",
|
|
66
|
+
"@viasat/beam-tokens": "2.49.1",
|
|
67
|
+
"@viasat/beam-icons": "2.49.1",
|
|
68
|
+
"@viasat/beam-react-claude-plugin": "2.49.1",
|
|
69
69
|
"clsx": "^1.2.1",
|
|
70
70
|
"@floating-ui/react": "^0.26.18",
|
|
71
71
|
"@stepperize/react": "^5.1.5",
|
|
72
|
+
"@tanstack/react-table": "^8.21.3",
|
|
72
73
|
"@floating-ui/utils": "^0.2.9",
|
|
73
74
|
"use-isomorphic-layout-effect": "^1.2.0",
|
|
74
75
|
"next-themes": "^0.4.6"
|
package/utils/hooks/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),d=require("../../chunks/constants.CgMu0_1M.js"),p=require("../../chunks/helpers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),d=require("../../chunks/constants.CgMu0_1M.js"),p=require("../../chunks/helpers.B4xpu88P.js"),a=require("../../chunks/CSSLookup.k3ewV3rr.js"),w=require("./useId.cjs.js"),f=require("./usePrevious.cjs.js"),g=require("./useInteractiveProps.cjs.js");function h(e,t=window.getComputedStyle(e)){return parseInt(t.getPropertyValue("-webkit-line-clamp"),10)>=1&&t.getPropertyValue("display")==="-webkit-box"&&t.getPropertyValue("overflow")==="hidden"}function v(e,t=window.getComputedStyle(e)){return t.getPropertyValue("text-overflow")==="ellipsis"&&t.getPropertyValue("white-space")==="nowrap"&&t.getPropertyValue("overflow")==="hidden"&&e.scrollWidth>e.clientWidth}function S(e){return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}function b(e){if(!e)return!1;if(S(e))return!0;const t=window.getComputedStyle(e);return h(e,t)||v(e,t)}const m=e=>{if(!e)return!1;const t=e.cloneNode(!0);t.style.position="absolute",t.style.whiteSpace="nowrap",t.style.width="auto",t.style.height="auto",t.style.visibility="hidden",document.body.appendChild(t);const n=t.offsetWidth>e.offsetWidth;return document.body.removeChild(t),n},l=(e,t=d.FPS_120,n=[])=>{const r=s.useRef(null);return s.useLayoutEffect(()=>{const{current:i}=r;if(!i)return;e();const u=p.debounce(()=>{e()},t),c=new ResizeObserver(u);return c.observe(i),()=>{c.disconnect(),u.cancel()}},[r,e,t,n]),{ref:r}},y=()=>{const[e,t]=s.useState(!1),n=()=>{r.current&&t(b(r.current))},{ref:r}=l(n);return{ref:r,isOverFlowing:e}},C=e=>{const[t,n]=s.useState(!1),r=()=>{i.current&&n(m(i.current))},{ref:i}=l(r,200);return{ref:i,isTextWrapping:t}},W=e=>{const[t,n]=s.useState(()=>a.CSSManager.findVar(e)??"");return s.useEffect(()=>{const r=i=>{n(i)};return a.CSSManager.findVar(e,r),()=>{a.CSSManager.unsubscribe(e,r)}},[e]),t};function P(e){const[t,n]=s.useState(!1);return s.useLayoutEffect(()=>{if(typeof window>"u")return;const r=o=>o?getComputedStyle(o).direction:"ltr",i=()=>{const o=e.current;return o?r(o)==="rtl"||!!o.closest('[dir="rtl"]')||r(document.documentElement)==="rtl":!1};n(i());const u=new MutationObserver(()=>n(i()));u.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","class"],subtree:!0});const c=requestAnimationFrame(function o(){n(i()),requestAnimationFrame(o)});return()=>{u.disconnect(),cancelAnimationFrame(c)}},[e]),t}const I=()=>{const[e,t]=s.useState(!1);return s.useEffect(()=>{if(typeof window>"u")return;const n=()=>{const r="ontouchstart"in window||navigator.maxTouchPoints>0,i=window.innerHeight>window.innerWidth,u=i?window.innerWidth:window.innerHeight,c=i?window.innerHeight:window.innerWidth,o=u<1024||c<768;t(r&&o)};return n(),window.addEventListener("resize",n,{passive:!0}),window.addEventListener("orientationchange",n,{passive:!0}),()=>{window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n)}},[]),e};exports.useId=w.useId;exports.usePrevious=f.usePrevious;exports.useInteractiveProps=g.useInteractiveProps;exports.useCSSLookup=W;exports.useIsOverFlowing=y;exports.useIsTextWrapping=C;exports.useMobileDetection=I;exports.useRTLDirection=P;exports.useResizeObserver=l;
|
package/utils/hooks/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as u, useEffect as d, useRef as f, useLayoutEffect as l } from "react";
|
|
2
2
|
import { a as w } from "../../chunks/constants.Cruz2A1w.js";
|
|
3
|
-
import { d as m } from "../../chunks/helpers.
|
|
3
|
+
import { d as m } from "../../chunks/helpers.DnurYbTL.js";
|
|
4
4
|
import { C as a } from "../../chunks/CSSLookup.kaPTyL5S.js";
|
|
5
5
|
import { useId as V } from "./useId.es.js";
|
|
6
6
|
import { usePrevious as M } from "./usePrevious.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../chunks/constants.CgMu0_1M.js"),l=require("../../chunks/helpers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../chunks/constants.CgMu0_1M.js"),l=require("../../chunks/helpers.B4xpu88P.js"),u=require("react");function f(e,t){typeof window>"u"||!window.localStorage||window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}const c=l.debounce((e,t)=>{if(typeof window>"u"||!window.localStorage)return;const r=JSON.stringify(t);window.localStorage.setItem(e,r),f(e,r)},d.FPS_60),w=e=>{typeof window>"u"||!window.localStorage||(window.localStorage.removeItem(e),f(e,null))},S=e=>typeof window>"u"||!window.localStorage?null:window.localStorage.getItem(e);function g(e,t,r=!0){const[i,s]=u.useState(()=>{if(!r)return t??null;const o=S(e);return o!==null?o:typeof t<"u"?(c(e,t),JSON.stringify(t)):null}),a=u.useCallback(o=>{try{if(!r)return;const n=typeof o=="function"?o(i?JSON.parse(i):null):o;n==null?(w(e),s(null)):(c(e,n),s(JSON.stringify(n)))}catch(n){console.error(n)}},[e,i,r]);return u.useEffect(()=>{if(!r||typeof window>"u")return;const o=n=>{n.key===e&&s(n.newValue)};return window.addEventListener("storage",o),()=>window.removeEventListener("storage",o)},[e,r]),[i?JSON.parse(i):t,a]}exports.useLocalStorage=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as a } from "../../chunks/constants.Cruz2A1w.js";
|
|
2
|
-
import { d as w } from "../../chunks/helpers.
|
|
2
|
+
import { d as w } from "../../chunks/helpers.DnurYbTL.js";
|
|
3
3
|
import s from "react";
|
|
4
4
|
function c(t, e) {
|
|
5
5
|
typeof window > "u" || !window.localStorage || window.dispatchEvent(new StorageEvent("storage", { key: t, newValue: e }));
|
package/utils/spacing.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../chunks/helpers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../chunks/helpers.B4xpu88P.js"),P=["m","mx","my","mTop","mBottom","mBefore","mAfter"],t=["p","px","py","pTop","pBottom","pBefore","pAfter"],o=["gap"],p=[...P,...t,...o],_=(r,e=p)=>A.partitionProps(r,e);exports.MARGIN_PROP_NAMES=P;exports.OTHER_SPACING_PROP_NAMES=o;exports.PADDING_PROP_NAMES=t;exports.SPACING_PROP_NAMES=p;exports.partitionSpacingProps=_;
|
package/utils/spacing.es.js
CHANGED