haze-ui 1.28.0 → 1.30.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/README.md +139 -33
- package/cli/theme.mjs +446 -0
- package/dist/components/Accordion/Accordion.js +1 -0
- package/dist/components/Accordion/AccordionItem.js +3 -0
- package/dist/components/Affix/Affix.js +1 -0
- package/dist/components/Alert/Alert.js +3 -0
- package/dist/components/Anchor/Anchor.js +21 -15
- package/dist/components/AppShell/AppShell.js +5 -0
- package/dist/components/ApprovalCard/ApprovalCard.js +8 -0
- package/dist/components/AspectRatio/AspectRatio.js +2 -0
- package/dist/components/AsyncSection/AsyncSection.js +8 -0
- package/dist/components/Avatar/Avatar.js +11 -6
- package/dist/components/AvatarGroup/AvatarGroup.js +9 -6
- package/dist/components/BackToTop/BackToTop.js +5 -4
- package/dist/components/Badge/Badge.js +1 -0
- package/dist/components/Banner/Banner.js +3 -0
- package/dist/components/BottomSheet/BottomSheet.js +21 -16
- package/dist/components/Breadcrumb/Breadcrumb.js +11 -7
- package/dist/components/Breadcrumb/BreadcrumbItem.js +2 -0
- package/dist/components/Button/Button.js +13 -11
- package/dist/components/Button/ButtonLink.js +15 -13
- package/dist/components/Calendar/Calendar.js +523 -368
- package/dist/components/Calendar/date.js +35 -10
- package/dist/components/Card/Card.js +1 -0
- package/dist/components/Carousel/Carousel.js +157 -60
- package/dist/components/Carousel/CarouselSlide.js +3 -1
- package/dist/components/Cascader/Cascader.js +48 -35
- package/dist/components/Chart/Chart.js +5 -4
- package/dist/components/Chart/chart-elements.js +117 -52
- package/dist/components/ChatContainer/ChatContainer.js +9 -7
- package/dist/components/ChatInput/ChatInput.js +12 -9
- package/dist/components/ChatMessage/ChatMessage.js +83 -44
- package/dist/components/Checkbox/CheckboxCore.js +2 -0
- package/dist/components/Chip/Chip.js +3 -0
- package/dist/components/CodeBlock/CodeBlock.js +18 -9
- package/dist/components/Collapsible/Collapsible.js +24 -21
- package/dist/components/ColorPicker/ColorPicker.js +85 -14
- package/dist/components/ColorPicker/ColorPickerCore.js +6 -0
- package/dist/components/ColorPicker/ColorPickerPanel.js +277 -0
- package/dist/components/ColorPicker/color-math.js +168 -0
- package/dist/components/ColorPicker/color-picker-styles.js +7 -0
- package/dist/components/ColorPicker/index.js +3 -3
- package/dist/components/Combobox/Combobox.js +31 -24
- package/dist/components/Combobox/ComboboxGroup.js +7 -5
- package/dist/components/Combobox/ComboboxOption.js +1 -0
- package/dist/components/Command/Command.js +44 -37
- package/dist/components/Command/CommandDialog.js +8 -8
- package/dist/components/ConfigProvider/ConfigContext.js +30 -0
- package/dist/components/ConfigProvider/ConfigProvider.js +14 -0
- package/dist/components/ConfigProvider/index.js +4 -0
- package/dist/components/ConfigProvider/useConfigDefaults.js +10 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.js +18 -11
- package/dist/components/Container/Container.js +1 -0
- package/dist/components/ContextMenu/ContextMenu.js +7 -6
- package/dist/components/ContextMenu/ContextMenuContent.js +4 -4
- package/dist/components/ContextMenu/ContextMenuItem.js +1 -0
- package/dist/components/ContextMenu/ContextMenuSeparator.js +1 -0
- package/dist/components/ContextMenu/ContextMenuTrigger.js +1 -0
- package/dist/components/ConversationList/ConversationItem.js +4 -0
- package/dist/components/ConversationList/ConversationList.js +1 -0
- package/dist/components/CountUp/CountUp.js +46 -0
- package/dist/components/CountUp/index.js +3 -0
- package/dist/components/DataTable/CellEditor.js +4 -4
- package/dist/components/DataTable/DataTable.js +236 -168
- package/dist/components/DateRangePicker/DateRangePickerCore.js +9 -0
- package/dist/components/Datepicker/Datepicker.js +14 -11
- package/dist/components/Datepicker/DatepickerCore.js +75 -60
- package/dist/components/Datepicker/datetime.js +14 -3
- package/dist/components/Descriptions/Descriptions.js +6 -0
- package/dist/components/Dialog/Dialog.js +13 -11
- package/dist/components/DiffViewer/DiffViewer.js +22 -13
- package/dist/components/Disclosure/Disclosure.js +10 -7
- package/dist/components/Divider/Divider.js +2 -0
- package/dist/components/Drawer/Drawer.js +10 -9
- package/dist/components/DropdownMenu/DropdownMenu.js +58 -35
- package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.js +63 -0
- package/dist/components/DropdownMenu/DropdownMenuContent.js +5 -5
- package/dist/components/DropdownMenu/DropdownMenuGroup.js +26 -0
- package/dist/components/DropdownMenu/DropdownMenuItem.js +29 -10
- package/dist/components/DropdownMenu/DropdownMenuRadioGroup.js +30 -0
- package/dist/components/DropdownMenu/DropdownMenuRadioItem.js +59 -0
- package/dist/components/DropdownMenu/DropdownMenuSeparator.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuSub.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js +1 -0
- package/dist/components/DropdownMenu/dropdown-menu-item-styles.js +7 -0
- package/dist/components/DropdownMenu/index.js +12 -8
- package/dist/components/Ellipsis/Ellipsis.js +56 -0
- package/dist/components/Ellipsis/index.js +3 -0
- package/dist/components/Empty/Empty.js +4 -0
- package/dist/components/FileInput/FileInput.js +7 -5
- package/dist/components/FilePreview/FilePreview.js +19 -1
- package/dist/components/Flex/Flex.js +1 -0
- package/dist/components/FloatButton/FloatButton.js +4 -0
- package/dist/components/FloatButton/FloatButtonGroup.js +18 -13
- package/dist/components/Fullscreen/Fullscreen.js +6 -3
- package/dist/components/Grid/Grid.js +12 -7
- package/dist/components/Grid/GridItem.js +17 -7
- package/dist/components/Grid/grid-item-styles.js +58 -0
- package/dist/components/HoverCard/HoverCard.js +46 -43
- package/dist/components/Icon/Icon.js +1 -0
- package/dist/components/Image/Image.js +10 -7
- package/dist/components/Image/ImagePreview.js +42 -34
- package/dist/components/InlineCompletion/InlineCompletion.js +15 -11
- package/dist/components/InlineEdit/InlineEdit.js +8 -6
- package/dist/components/Input/InputCore.js +1 -0
- package/dist/components/JsonView/JsonView.js +104 -79
- package/dist/components/Kbd/Kbd.js +1 -0
- package/dist/components/List/List.js +1 -0
- package/dist/components/List/ListItem.js +1 -0
- package/dist/components/LocaleProvider/LocaleProvider.js +4 -4
- package/dist/components/LocaleProvider/ar-sa.js +255 -0
- package/dist/components/LocaleProvider/de-de.js +255 -0
- package/dist/components/LocaleProvider/es-es.js +255 -0
- package/dist/components/LocaleProvider/fr-fr.js +255 -0
- package/dist/components/LocaleProvider/index.js +10 -2
- package/dist/components/LocaleProvider/it-it.js +255 -0
- package/dist/components/LocaleProvider/ja-jp.js +35 -2
- package/dist/components/LocaleProvider/ko-kr.js +255 -0
- package/dist/components/LocaleProvider/locale.js +35 -2
- package/dist/components/LocaleProvider/pt-br.js +255 -0
- package/dist/components/LocaleProvider/ru-ru.js +255 -0
- package/dist/components/LocaleProvider/zh-cn.js +35 -2
- package/dist/components/LogViewer/LogViewer.js +25 -14
- package/dist/components/MarkdownRenderer/MarkdownRenderer.js +6 -5
- package/dist/components/MarkdownRenderer/markdown-blocks.js +1 -1
- package/dist/components/Masonry/Masonry.js +13 -10
- package/dist/components/Mentions/MentionsCore.js +15 -11
- package/dist/components/Menu/Menu.js +58 -36
- package/dist/components/Menu/MenuCheckboxItem.js +63 -0
- package/dist/components/Menu/MenuDivider.js +1 -0
- package/dist/components/Menu/MenuGroup.js +26 -0
- package/dist/components/Menu/MenuItem.js +28 -9
- package/dist/components/Menu/MenuRadioGroup.js +30 -0
- package/dist/components/Menu/MenuRadioItem.js +59 -0
- package/dist/components/Menu/MenuSub.js +1 -0
- package/dist/components/Menu/MenuSubTrigger.js +1 -0
- package/dist/components/Menu/index.js +11 -7
- package/dist/components/Menu/menu-item-styles.js +7 -0
- package/dist/components/ModelPicker/ModelPicker.js +3 -0
- package/dist/components/NavigationBar/NavLink.js +7 -6
- package/dist/components/NavigationBar/NavigationBar.js +4 -0
- package/dist/components/NumberInput/NumberInputCore.js +4 -0
- package/dist/components/OTPInput/OTPInputCore.js +9 -7
- package/dist/components/Pagination/Pagination.js +125 -33
- package/dist/components/PasswordInput/PasswordInputCore.js +9 -6
- package/dist/components/Popover/Popover.js +9 -7
- package/dist/components/Progress/Progress.js +5 -0
- package/dist/components/PromptInput/PromptInput.js +49 -41
- package/dist/components/QRCode/QRCode.js +45 -0
- package/dist/components/QRCode/index.js +3 -0
- package/dist/components/Radio/Radio.js +2 -0
- package/dist/components/Radio/RadioGroupCore.js +7 -6
- package/dist/components/Rating/RatingCore.js +18 -15
- package/dist/components/Resizable/Resizable.js +25 -22
- package/dist/components/Result/Result.js +234 -0
- package/dist/components/Result/index.js +3 -0
- package/dist/components/ScrollArea/ScrollArea.js +1 -0
- package/dist/components/Segmented/SegmentedCore.js +9 -7
- package/dist/components/Select/Option.js +1 -0
- package/dist/components/Select/OptionGroup.js +1 -0
- package/dist/components/Select/SelectCore.js +11 -8
- package/dist/components/Select/SelectFloating.js +54 -36
- package/dist/components/Sidebar/Sidebar.js +52 -42
- package/dist/components/Signature/Signature.js +101 -91
- package/dist/components/Skeleton/Skeleton.js +1 -0
- package/dist/components/Slider/SliderCore.js +149 -43
- package/dist/components/Sources/Sources.js +31 -21
- package/dist/components/Spinner/Spinner.js +1 -0
- package/dist/components/Stat/Stat.js +7 -0
- package/dist/components/StepTimeline/StepTimeline.js +6 -0
- package/dist/components/Stepper/Step.js +8 -1
- package/dist/components/Stepper/Stepper.js +7 -6
- package/dist/components/StreamingText/StreamingText.js +62 -29
- package/dist/components/SwipeAction/SwipeAction.js +11 -9
- package/dist/components/Switch/SwitchCore.js +9 -5
- package/dist/components/Table/Table.js +2 -0
- package/dist/components/Table/TableBody.js +1 -0
- package/dist/components/Table/TableCell.js +1 -0
- package/dist/components/Table/TableHead.js +1 -0
- package/dist/components/Table/TableRow.js +1 -0
- package/dist/components/Tabs/Tab.js +1 -0
- package/dist/components/Tabs/TabList.js +5 -4
- package/dist/components/Tabs/TabPanel.js +1 -0
- package/dist/components/Tabs/Tabs.js +1 -0
- package/dist/components/Tag/Tag.js +2 -0
- package/dist/components/TagGroup/SortableTagGroup.js +7 -6
- package/dist/components/TagGroup/TagGroup.js +1 -0
- package/dist/components/TagGroup/TagGroupItem.js +3 -0
- package/dist/components/TagInput/SortableTagInputCore.js +13 -10
- package/dist/components/TagInput/TagInputCore.js +17 -12
- package/dist/components/Textarea/TextareaCore.js +1 -0
- package/dist/components/ThinkingIndicator/ThinkingIndicator.js +18 -4
- package/dist/components/TimePicker/TimePicker.js +30 -14
- package/dist/components/TimePicker/TimePickerCore.js +1 -0
- package/dist/components/TimePicker/TimePickerPanel.js +260 -0
- package/dist/components/TimePicker/time-picker-styles.js +7 -0
- package/dist/components/TimePicker/time.js +51 -0
- package/dist/components/Timeline/Timeline.js +14 -1
- package/dist/components/Toast/Toast.js +94 -48
- package/dist/components/Toast/ToastContainer.js +60 -56
- package/dist/components/Toast/ToastContext.js +3 -1
- package/dist/components/Toast/toast2.js +20 -14
- package/dist/components/Toast/useToast.js +36 -11
- package/dist/components/Toggle/ToggleCore.js +1 -0
- package/dist/components/TokenCounter/TokenCounter.js +8 -1
- package/dist/components/ToolCallCard/ToolCallCard.js +18 -2
- package/dist/components/Toolbar/Toolbar.js +9 -8
- package/dist/components/Toolbar/ToolbarButton.js +1 -0
- package/dist/components/Toolbar/ToolbarSeparator.js +1 -0
- package/dist/components/Toolbar/ToolbarToggle.js +1 -0
- package/dist/components/Tooltip/Tooltip.js +46 -42
- package/dist/components/Tour/Tour.js +76 -65
- package/dist/components/Transfer/TransferCore.js +31 -17
- package/dist/components/Tree/SortableTree.js +151 -0
- package/dist/components/Tree/Tree.js +163 -154
- package/dist/components/Tree/TreeItem.js +52 -39
- package/dist/components/Tree/index.js +2 -1
- package/dist/components/Tree/sortable-tree-styles.js +7 -0
- package/dist/components/Tree/sortable-tree-utils.js +36 -0
- package/dist/components/TreeSelect/TreeSelect.js +240 -0
- package/dist/components/TreeSelect/index.js +3 -0
- package/dist/components/Typography/Typography.js +42 -12
- package/dist/components/Upload/Upload.js +12 -11
- package/dist/components/Upload/UploadCore.js +92 -65
- package/dist/components/Upload/UploadList.js +177 -105
- package/dist/components/VirtualList/VirtualList.js +229 -124
- package/dist/components/Watermark/Watermark.js +8 -6
- package/dist/css/accordion.css +1 -1
- package/dist/css/alert.css +1 -1
- package/dist/css/async-section.css +1 -1
- package/dist/css/banner.css +1 -1
- package/dist/css/bottom-sheet.css +1 -1
- package/dist/css/button.css +2 -2
- package/dist/css/calendar.css +1 -1
- package/dist/css/carousel.css +1 -1
- package/dist/css/chat-message.css +1 -1
- package/dist/css/checkbox.css +1 -1
- package/dist/css/color-picker.css +2 -0
- package/dist/css/combobox.css +2 -2
- package/dist/css/context-menu.css +1 -1
- package/dist/css/count-up.css +2 -0
- package/dist/css/dialog.css +1 -1
- package/dist/css/drawer.css +1 -1
- package/dist/css/dropdown-menu.css +7 -2
- package/dist/css/ellipsis.css +2 -0
- package/dist/css/form.css +1 -1
- package/dist/css/grid.css +2 -1
- package/dist/css/hover-card.css +1 -1
- package/dist/css/input.css +1 -1
- package/dist/css/menu.css +9 -4
- package/dist/css/pagination.css +1 -1
- package/dist/css/popover.css +1 -1
- package/dist/css/progress.css +1 -1
- package/dist/css/qr-code.css +2 -0
- package/dist/css/radio.css +1 -1
- package/dist/css/rating.css +1 -1
- package/dist/css/result.css +2 -0
- package/dist/css/segmented.css +1 -1
- package/dist/css/skeleton.css +1 -1
- package/dist/css/slider.css +1 -1
- package/dist/css/spinner.css +1 -1
- package/dist/css/stepper.css +1 -1
- package/dist/css/streaming-text.css +1 -1
- package/dist/css/switch.css +1 -1
- package/dist/css/tabs.css +1 -1
- package/dist/css/textarea.css +1 -1
- package/dist/css/thinking-indicator.css +1 -1
- package/dist/css/time-picker.css +1 -0
- package/dist/css/toast.css +1 -1
- package/dist/css/toggle.css +1 -1
- package/dist/css/tokens.css +4 -2
- package/dist/css/tooltip.css +1 -1
- package/dist/css/tree-select.css +3 -0
- package/dist/css/tree.css +2 -1
- package/dist/css/typography.css +1 -1
- package/dist/css/upload.css +1 -1
- package/dist/css/virtual-list.css +1 -1
- package/dist/css-manifest.json +41 -0
- package/dist/dates/adapter.js +13 -0
- package/dist/dates/gregory.js +44 -0
- package/dist/dates/islamic.js +87 -0
- package/dist/dates/registry.js +13 -0
- package/dist/dates/timezone.js +29 -0
- package/dist/design-tokens/cyan-dark.json +355 -0
- package/dist/design-tokens/cyan-light.json +355 -0
- package/dist/design-tokens/dark.json +355 -0
- package/dist/design-tokens/light.json +355 -0
- package/dist/design-tokens/orange-dark.json +355 -0
- package/dist/design-tokens/orange-light.json +355 -0
- package/dist/design-tokens/rose-dark.json +355 -0
- package/dist/design-tokens/rose-light.json +355 -0
- package/dist/design-tokens/teal-dark.json +355 -0
- package/dist/design-tokens/teal-light.json +355 -0
- package/dist/design-tokens/violet-dark.json +355 -0
- package/dist/design-tokens/violet-light.json +355 -0
- package/dist/form/FormItem.js +71 -63
- package/dist/form/FormList.js +6 -6
- package/dist/form/form-item-styles.js +7 -0
- package/dist/haze-ui.css +73 -50
- package/dist/index.js +250 -218
- package/dist/mcp-docs.json +10312 -0
- package/dist/registry.json +144 -42
- package/dist/tokens/brands.js +21 -0
- package/dist/tokens/density.js +6 -0
- package/dist/tokens/index.js +7 -6
- package/dist/tokens/motion.js +9 -2
- package/dist/tokens/palette.js +256 -88
- package/dist/tokens/registry.js +18 -22
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts +39 -14
- package/dist/types/components/Calendar/date.d.ts +51 -0
- package/dist/types/components/Calendar/index.d.ts +1 -1
- package/dist/types/components/Carousel/Carousel.d.ts +5 -1
- package/dist/types/components/Carousel/CarouselSlide.d.ts +3 -3
- package/dist/types/components/Chart/Chart.d.ts +24 -13
- package/dist/types/components/Chart/chart-elements.d.ts +39 -10
- package/dist/types/components/ChatMessage/ChatMessage.d.ts +10 -1
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +44 -5
- package/dist/types/components/ColorPicker/ColorPickerPanel.d.ts +28 -0
- package/dist/types/components/ColorPicker/color-math.d.ts +63 -0
- package/dist/types/components/ColorPicker/color-picker-styles.d.ts +50 -0
- package/dist/types/components/ConfigProvider/ConfigContext.d.ts +67 -0
- package/dist/types/components/ConfigProvider/ConfigProvider.d.ts +25 -0
- package/dist/types/components/ConfigProvider/index.d.ts +4 -0
- package/dist/types/components/ConfigProvider/useConfigDefaults.d.ts +28 -0
- package/dist/types/components/CountUp/CountUp.d.ts +20 -0
- package/dist/types/components/CountUp/index.d.ts +2 -0
- package/dist/types/components/Datepicker/Datepicker.d.ts +23 -10
- package/dist/types/components/Datepicker/DatepickerCore.d.ts +40 -10
- package/dist/types/components/Datepicker/datetime.d.ts +33 -11
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +12 -2
- package/dist/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +26 -0
- package/dist/types/components/DropdownMenu/DropdownMenuGroup.d.ts +16 -0
- package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +7 -1
- package/dist/types/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +21 -0
- package/dist/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +22 -0
- package/dist/types/components/DropdownMenu/dropdown-menu-item-styles.d.ts +29 -0
- package/dist/types/components/DropdownMenu/index.d.ts +9 -1
- package/dist/types/components/Ellipsis/Ellipsis.d.ts +19 -0
- package/dist/types/components/Ellipsis/index.d.ts +2 -0
- package/dist/types/components/Fullscreen/Fullscreen.d.ts +1 -0
- package/dist/types/components/Grid/Grid.d.ts +8 -1
- package/dist/types/components/Grid/GridItem.d.ts +24 -1
- package/dist/types/components/Grid/grid-item-styles.d.ts +57 -0
- package/dist/types/components/HoverCard/HoverCard.d.ts +1 -1
- package/dist/types/components/LocaleProvider/ar-sa.d.ts +22 -0
- package/dist/types/components/LocaleProvider/de-de.d.ts +15 -0
- package/dist/types/components/LocaleProvider/es-es.d.ts +15 -0
- package/dist/types/components/LocaleProvider/fr-fr.d.ts +15 -0
- package/dist/types/components/LocaleProvider/index.d.ts +8 -0
- package/dist/types/components/LocaleProvider/it-it.d.ts +15 -0
- package/dist/types/components/LocaleProvider/ko-kr.d.ts +15 -0
- package/dist/types/components/LocaleProvider/locale.d.ts +35 -0
- package/dist/types/components/LocaleProvider/pt-br.d.ts +16 -0
- package/dist/types/components/LocaleProvider/ru-ru.d.ts +15 -0
- package/dist/types/components/Menu/Menu.d.ts +11 -2
- package/dist/types/components/Menu/MenuCheckboxItem.d.ts +25 -0
- package/dist/types/components/Menu/MenuGroup.d.ts +16 -0
- package/dist/types/components/Menu/MenuItem.d.ts +7 -1
- package/dist/types/components/Menu/MenuRadioGroup.d.ts +20 -0
- package/dist/types/components/Menu/MenuRadioItem.d.ts +22 -0
- package/dist/types/components/Menu/index.d.ts +9 -1
- package/dist/types/components/Menu/menu-item-styles.d.ts +28 -0
- package/dist/types/components/NavigationBar/NavLink.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +17 -3
- package/dist/types/components/QRCode/QRCode.d.ts +33 -0
- package/dist/types/components/QRCode/index.d.ts +2 -0
- package/dist/types/components/Result/Result.d.ts +16 -0
- package/dist/types/components/Result/index.d.ts +2 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/components/Slider/Slider.d.ts +24 -2
- package/dist/types/components/Slider/SliderCore.d.ts +41 -3
- package/dist/types/components/StreamingText/StreamingText.d.ts +8 -1
- package/dist/types/components/TagGroup/SortableTagGroup.d.ts +3 -2
- package/dist/types/components/TagGroup/TagGroup.d.ts +1 -1
- package/dist/types/components/TagInput/SortableTagInput.d.ts +2 -3
- package/dist/types/components/TagInput/SortableTagInputCore.d.ts +3 -3
- package/dist/types/components/TimePicker/TimePicker.d.ts +36 -4
- package/dist/types/components/TimePicker/TimePickerPanel.d.ts +26 -0
- package/dist/types/components/TimePicker/index.d.ts +1 -0
- package/dist/types/components/TimePicker/time-picker-styles.d.ts +30 -0
- package/dist/types/components/TimePicker/time.d.ts +49 -0
- package/dist/types/components/Toast/Toast.d.ts +19 -6
- package/dist/types/components/Toast/ToastContainer.d.ts +1 -1
- package/dist/types/components/Toast/ToastContext.d.ts +22 -2
- package/dist/types/components/Toast/index.d.ts +1 -1
- package/dist/types/components/Toast/toast.d.ts +20 -14
- package/dist/types/components/Toast/useToast.d.ts +14 -4
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/Tree/SortableTree.d.ts +38 -0
- package/dist/types/components/Tree/Tree.d.ts +1 -1
- package/dist/types/components/Tree/index.d.ts +2 -0
- package/dist/types/components/Tree/sortable-tree-styles.d.ts +36 -0
- package/dist/types/components/Tree/sortable-tree-utils.d.ts +40 -0
- package/dist/types/components/TreeSelect/TreeSelect.d.ts +93 -0
- package/dist/types/components/TreeSelect/index.d.ts +2 -0
- package/dist/types/components/Typography/Typography.d.ts +12 -3
- package/dist/types/components/Typography/index.d.ts +1 -1
- package/dist/types/components/Upload/Upload.d.ts +17 -10
- package/dist/types/components/Upload/UploadCore.d.ts +26 -12
- package/dist/types/components/Upload/UploadList.d.ts +10 -7
- package/dist/types/components/Upload/index.d.ts +1 -1
- package/dist/types/components/Upload/types.d.ts +33 -7
- package/dist/types/components/VirtualList/VirtualList.d.ts +79 -26
- package/dist/types/components/VirtualList/index.d.ts +1 -1
- package/dist/types/dates/adapter.d.ts +74 -0
- package/dist/types/dates/gregory.d.ts +10 -0
- package/dist/types/dates/index.d.ts +6 -0
- package/dist/types/dates/islamic.d.ts +17 -0
- package/dist/types/dates/registry.d.ts +13 -0
- package/dist/types/dates/timezone.d.ts +36 -0
- package/dist/types/form/FormItem.d.ts +31 -1
- package/dist/types/form/form-item-styles.d.ts +24 -0
- package/dist/types/index.d.ts +34 -13
- package/dist/types/tokens/brands.d.ts +28 -0
- package/dist/types/tokens/density.d.ts +3 -0
- package/dist/types/tokens/index.d.ts +5 -2
- package/dist/types/tokens/motion.d.ts +16 -0
- package/dist/types/tokens/palette.d.ts +95 -1
- package/dist/types/tokens/spacing.d.ts +13 -0
- package/dist/types/utils/menuItems.d.ts +126 -0
- package/dist/types/utils/menuRadio.d.ts +21 -0
- package/dist/types/utils/sortable-shared.d.ts +4 -4
- package/dist/utils/floating.js +45 -44
- package/dist/utils/menuItems.js +55 -0
- package/dist/utils/menuKeyboard.js +31 -31
- package/dist/utils/menuRadio.js +28 -0
- package/dist/utils/sortable-shared.js +3 -3
- package/dist/utils/sortable.js +12 -11
- package/mcp/index.mjs +64 -0
- package/mcp/server.mjs +89 -0
- package/mcp/server.test.mjs +281 -0
- package/mcp/tools.mjs +240 -0
- package/package.json +74 -47
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { addMonths as e, buildMonthCells as t, formatDate as n, formatMonthValue as r, formatQuarterValue as i, formatWeekValue as a, formatYearValue as o, getDaysInMonth as s, getISOWeek as c, getISOWeekStartDate as l, parseCivilDate as u, parseMonthValue as d, parseQuarterValue as f, parseWeekValue as p, parseYearValue as ee } from "./date.js";
|
|
4
|
+
import { classnames as m } from "../../utils/classnames.js";
|
|
5
|
+
import { getDirection as h } from "../../utils/direction.js";
|
|
6
|
+
import { useStrings as te } from "../LocaleProvider/useStrings.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { Fragment as te, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
8
|
import { useEffect as ne, useRef as g, useState as _ } from "react";
|
|
10
|
-
import {
|
|
9
|
+
import { Fragment as re, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
|
+
import { useControl as ie } from "react-use-control";
|
|
11
11
|
//#region src/lib/components/Calendar/Calendar.tsx
|
|
12
|
-
var
|
|
12
|
+
var ae = "haze-Calendar__calendarWrapper", oe = "haze-Calendar__header", b = "haze-Calendar__headerBtn", x = "haze-Calendar__headerTitle", se = "haze-Calendar__headerTitles", ce = "haze-Calendar__titleBtn", le = "haze-Calendar__headerTrailing", ue = "haze-Calendar__grid", S = "haze-Calendar__rowContents", C = "haze-Calendar__cellContents", de = "haze-Calendar__weekday", fe = "haze-Calendar__weekNumber", pe = "haze-Calendar__weekNumberSelected", w = "haze-Calendar__dayContent", T = "haze-Calendar__dayBtn", E = "haze-Calendar__daySelected", me = "haze-Calendar__dayInRange", he = "haze-Calendar__dayOutside", ge = "haze-Calendar__monthPanels", _e = "haze-Calendar__monthPanel", ve = "haze-Calendar__paneHeader", ye = "haze-Calendar__quickSelect", be = "haze-Calendar__quickToolbar", xe = "haze-Calendar__quickGrid", Se = "haze-Calendar__quarterGrid", Ce = [
|
|
13
13
|
"Su",
|
|
14
14
|
"Mo",
|
|
15
15
|
"Tu",
|
|
@@ -18,7 +18,7 @@ var ie = "haze-Calendar__calendarWrapper", ae = "haze-Calendar__header", v = "ha
|
|
|
18
18
|
"Fr",
|
|
19
19
|
"Sa"
|
|
20
20
|
];
|
|
21
|
-
function
|
|
21
|
+
function we(e, t) {
|
|
22
22
|
if (t !== void 0) return t;
|
|
23
23
|
if (e === void 0) return 0;
|
|
24
24
|
try {
|
|
@@ -28,34 +28,34 @@ function be(e, t) {
|
|
|
28
28
|
return 0;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (e === void 0) return Array.from({ length: 7 }, (e, n) =>
|
|
31
|
+
function Te(e, t) {
|
|
32
|
+
if (e === void 0) return Array.from({ length: 7 }, (e, n) => Ce[(t + n) % 7]);
|
|
33
33
|
let n = new Intl.DateTimeFormat(e, { weekday: "short" }), r = Array.from({ length: 7 }, (e, t) => n.format(new Date(2024, 0, 7 + t)));
|
|
34
34
|
return Array.from({ length: 7 }, (e, n) => r[(t + n) % 7]);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function D(e) {
|
|
37
37
|
return Array.from(e?.querySelectorAll("button") ?? []);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function O(e, t, n) {
|
|
40
40
|
let r = t + n;
|
|
41
41
|
for (; r >= 0 && r < e.length && e[r].disabled;) r += n;
|
|
42
42
|
return r < 0 || r >= e.length ? null : r;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return (
|
|
46
|
-
let c =
|
|
44
|
+
function Ee(t, r, i, a) {
|
|
45
|
+
return (o) => {
|
|
46
|
+
let c = t.current;
|
|
47
47
|
if (!c) return;
|
|
48
|
-
let
|
|
49
|
-
if (
|
|
50
|
-
let
|
|
51
|
-
let t =
|
|
52
|
-
t !== null && (
|
|
48
|
+
let l = D(c);
|
|
49
|
+
if (l.length === 0) return;
|
|
50
|
+
let u = l.indexOf(o.target.closest("button")), d = h(c) === "rtl" ? "ArrowLeft" : "ArrowRight", f = d === "ArrowLeft" ? "ArrowRight" : "ArrowLeft", p = (e) => {
|
|
51
|
+
let t = O(l, u < 0 ? 0 : u, e);
|
|
52
|
+
t !== null && (o.preventDefault(), l[t].focus());
|
|
53
53
|
};
|
|
54
|
-
switch (
|
|
55
|
-
case
|
|
54
|
+
switch (o.key) {
|
|
55
|
+
case d:
|
|
56
56
|
p(1);
|
|
57
57
|
return;
|
|
58
|
-
case
|
|
58
|
+
case f:
|
|
59
59
|
p(-1);
|
|
60
60
|
return;
|
|
61
61
|
case "ArrowDown":
|
|
@@ -65,507 +65,662 @@ function Se(e, n, i, o) {
|
|
|
65
65
|
p(-7);
|
|
66
66
|
return;
|
|
67
67
|
case "Home": {
|
|
68
|
-
let e =
|
|
69
|
-
e !== null && (
|
|
68
|
+
let e = O(l, (u < 0 ? 0 : u - u % 7) - 1, 1);
|
|
69
|
+
e !== null && (o.preventDefault(), l[e].focus());
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
case "End": {
|
|
73
|
-
let e =
|
|
74
|
-
e !== null && (
|
|
73
|
+
let e = O(l, (u < 0 ? 6 : u - u % 7 + 6) + 1, -1);
|
|
74
|
+
e !== null && (o.preventDefault(), l[e].focus());
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
77
|
case "PageUp":
|
|
78
78
|
case "PageDown": {
|
|
79
|
-
|
|
80
|
-
let
|
|
81
|
-
i(
|
|
79
|
+
o.preventDefault();
|
|
80
|
+
let t = o.key === "PageDown" ? 1 : -1, c = e(r.year, r.month, t), d = u >= 0 ? Number(l[u].textContent) : 1, f = Math.min(Math.max(d, 1), s(c.year, c.month));
|
|
81
|
+
i(c), a.current = n(c.year, c.month, f);
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return (
|
|
89
|
-
let
|
|
90
|
-
if (!
|
|
91
|
-
let
|
|
92
|
-
if (
|
|
93
|
-
let
|
|
94
|
-
let t =
|
|
95
|
-
t !== null && (
|
|
87
|
+
function De(e, t, n, r) {
|
|
88
|
+
return (i) => {
|
|
89
|
+
let a = e.current;
|
|
90
|
+
if (!a) return;
|
|
91
|
+
let o = D(a);
|
|
92
|
+
if (o.length === 0) return;
|
|
93
|
+
let s = o.indexOf(i.target.closest("button")), c = h(a) === "rtl" ? "ArrowLeft" : "ArrowRight", l = c === "ArrowLeft" ? "ArrowRight" : "ArrowLeft", u = (e) => {
|
|
94
|
+
let t = O(o, s < 0 ? 0 : s, e);
|
|
95
|
+
t !== null && (i.preventDefault(), o[t].focus());
|
|
96
96
|
};
|
|
97
|
-
switch (
|
|
98
|
-
case
|
|
99
|
-
|
|
97
|
+
switch (i.key) {
|
|
98
|
+
case c:
|
|
99
|
+
u(1);
|
|
100
100
|
return;
|
|
101
|
-
case
|
|
102
|
-
|
|
101
|
+
case l:
|
|
102
|
+
u(-1);
|
|
103
103
|
return;
|
|
104
104
|
case "ArrowDown":
|
|
105
|
-
|
|
105
|
+
u(t);
|
|
106
106
|
return;
|
|
107
107
|
case "ArrowUp":
|
|
108
|
-
|
|
108
|
+
u(-t);
|
|
109
109
|
return;
|
|
110
110
|
case "Home": {
|
|
111
|
-
let e =
|
|
112
|
-
e !== null && (
|
|
111
|
+
let e = O(o, (s < 0 ? 0 : s - s % t) - 1, 1);
|
|
112
|
+
e !== null && (i.preventDefault(), o[e].focus());
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
case "End": {
|
|
116
|
-
let e =
|
|
117
|
-
e !== null && (
|
|
116
|
+
let e = O(o, (s < 0 ? t - 1 : Math.min(s - s % t + t - 1, o.length - 1)) + 1, -1);
|
|
117
|
+
e !== null && (i.preventDefault(), o[e].focus());
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
case "PageUp":
|
|
121
121
|
case "PageDown":
|
|
122
|
-
|
|
122
|
+
i.preventDefault(), r.current = s < 0 ? 0 : s, n(i.key === "PageDown" ? 1 : -1);
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
let [
|
|
127
|
+
function k({ picker: h = "date", value: Ce, min: O, max: k, disabledDate: Oe, locale: A, weekStartsOn: ke, showWeekNumbers: Ae = !1, months: je = 1, rangeStart: j, rangeEnd: Me, onSelect: Ne, cellRender: M, className: Pe, ...Fe }) {
|
|
128
|
+
let [N, Ie] = ie(Ce, ""), P = te("calendar"), Le = g(null), Re = g(null), ze = g(null), F = g(null), I = g(null), L = g(null), R = g(null), Be = g(null), Ve = g(null), z = g(null), [B, V] = ie(void 0, "days"), [H, U] = _(0), [He, W] = _(0), G = g("days"), [K, q] = ie(void 0, !1), [Ue, We] = _(0), J = h === "week", Y = J ? p(N) : null, Ge = Y ? l(Y.year, Y.week) : null, Ke = h === "month" ? d(N) : h === "quarter" ? f(N) : h === "year" ? ee(N) : null, qe = h === "date" ? N && u(N) || j && u(j) || /* @__PURE__ */ new Date() : Ge ? new Date(Ge.year, Ge.month, Ge.day) : Ke ? new Date(Ke.year, 0, 1) : /* @__PURE__ */ new Date(), [X, Z] = _(qe.getFullYear()), [Q, Je] = _(qe.getMonth()), Ye = J ? 1 : we(A, ke), Xe = Te(A, Ye), Ze = Ae || J, Qe = new Intl.DateTimeFormat(A ?? "default", {
|
|
129
129
|
month: "long",
|
|
130
130
|
year: "numeric"
|
|
131
|
-
}),
|
|
132
|
-
|
|
131
|
+
}), $e = new Intl.DateTimeFormat(A ?? "default", { month: "long" }), et = new Intl.DateTimeFormat(A ?? "default", { month: "short" }), tt = Array.from({ length: 12 }, (e, t) => et.format(new Date(2026, t, 15))), nt = Qe.formatToParts(new Date(X, Q, 15)), rt = nt.findIndex((e) => e.type === "year") < nt.findIndex((e) => e.type === "month"), $ = (e) => {
|
|
132
|
+
Z(e.year), Je(e.month);
|
|
133
133
|
};
|
|
134
134
|
ne(() => {
|
|
135
|
-
if (
|
|
136
|
-
let e =
|
|
137
|
-
e && (
|
|
135
|
+
if (B !== "days") return;
|
|
136
|
+
let e = F.current;
|
|
137
|
+
e && (F.current = null, ze.current?.querySelector(`[data-haze-day="${e}"]`)?.focus());
|
|
138
138
|
}, [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
X,
|
|
140
|
+
Q,
|
|
141
|
+
B
|
|
142
142
|
]), ne(() => {
|
|
143
|
-
if (!
|
|
144
|
-
let e =
|
|
145
|
-
|
|
146
|
-
let t =
|
|
143
|
+
if (B === "days" && !K) return;
|
|
144
|
+
let e = I.current;
|
|
145
|
+
I.current = null;
|
|
146
|
+
let t = D(z.current);
|
|
147
147
|
t.length !== 0 && (t[e ?? 0] ?? t[0]).focus();
|
|
148
148
|
}, [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
B,
|
|
150
|
+
H,
|
|
151
|
+
He,
|
|
152
|
+
K,
|
|
153
|
+
Ue
|
|
152
154
|
]), ne(() => {
|
|
153
|
-
if (
|
|
154
|
-
let e =
|
|
155
|
-
if (
|
|
156
|
-
let
|
|
157
|
-
(
|
|
158
|
-
}, [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
155
|
+
if (h === "date" || h === "week" || K) return;
|
|
156
|
+
let e = L.current;
|
|
157
|
+
if (L.current = null, e === null) return;
|
|
158
|
+
let t = D(R.current);
|
|
159
|
+
(t[e] ?? t[0])?.focus();
|
|
160
|
+
}, [
|
|
161
|
+
h,
|
|
162
|
+
X,
|
|
163
|
+
K
|
|
164
|
+
]);
|
|
165
|
+
let it = () => {
|
|
166
|
+
I.current = Q, U(X), V("months");
|
|
167
|
+
}, at = () => {
|
|
168
|
+
V("days"), Be.current?.focus();
|
|
169
|
+
}, ot = (e) => {
|
|
170
|
+
V("days"), $({
|
|
171
|
+
year: H,
|
|
166
172
|
month: e
|
|
167
|
-
}),
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
173
|
+
}), F.current = n(H, e, 1);
|
|
174
|
+
}, st = Math.floor(He / 10) * 10, ct = () => {
|
|
175
|
+
G.current = "days", I.current = X - Math.floor(X / 10) * 10, W(X), V("years");
|
|
176
|
+
}, lt = () => {
|
|
177
|
+
G.current = "months", I.current = H - Math.floor(H / 10) * 10, W(H), V("years");
|
|
178
|
+
}, ut = () => {
|
|
179
|
+
G.current === "months" ? (V("months"), I.current = Q) : (V("days"), Ve.current?.focus());
|
|
180
|
+
}, dt = (e) => {
|
|
181
|
+
G.current === "months" ? (U(e), V("months"), I.current = Q) : (V("days"), Z(e), F.current = n(e, Q, 1));
|
|
182
|
+
}, ft = Math.floor(Ue / 10) * 10, pt = () => h === "month" ? d(N)?.month ?? 0 : (f(N)?.quarter ?? 1) - 1, mt = () => {
|
|
183
|
+
I.current = X - Math.floor(X / 10) * 10, We(X), q(!0);
|
|
184
|
+
}, ht = () => {
|
|
185
|
+
L.current = pt(), q(!1);
|
|
186
|
+
}, gt = (e) => {
|
|
187
|
+
L.current = pt(), Z(e), q(!1);
|
|
188
|
+
}, _t = e(X, Q, je - 1), vt = Ee(Le, {
|
|
189
|
+
year: X,
|
|
190
|
+
month: Q
|
|
191
|
+
}, $, F), yt = Ee(Re, _t, $, F), bt = De(z, 3, (e) => U((t) => t + e), I), xt = De(z, 3, (e) => W((t) => t + e * 10), I), St = De(z, 3, (e) => We((t) => t + e * 10), I), Ct = h === "quarter" ? 4 : 3, wt = (e) => Z((t) => t + e * (h === "year" ? 10 : 1)), Tt = De(R, Ct, wt, L), Et = () => $(e(X, Q, -1)), Dt = () => $(e(X, Q, 1)), Ot = () => {
|
|
178
192
|
let e = /* @__PURE__ */ new Date();
|
|
179
|
-
|
|
180
|
-
},
|
|
181
|
-
let
|
|
182
|
-
return
|
|
183
|
-
},
|
|
184
|
-
let
|
|
185
|
-
return
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
|
|
193
|
+
Z(e.getFullYear()), Je(e.getMonth());
|
|
194
|
+
}, kt = (e, t, r) => {
|
|
195
|
+
let i = n(e, t, r);
|
|
196
|
+
return O && i < O || k && i > k ? !0 : Oe?.(new Date(e, t, r)) ?? !1;
|
|
197
|
+
}, At = (e, t) => O && n(e, t, s(e, t)) < O || k && n(e, t, 1) > k ? !0 : Oe?.(new Date(e, t, 1)) ?? !1, jt = (e, t) => {
|
|
198
|
+
let r = t * 3 - 3, i = t * 3 - 1;
|
|
199
|
+
return O && n(e, i, s(e, i)) < O || k && n(e, r, 1) > k ? !0 : Oe?.(new Date(e, r, 1)) ?? !1;
|
|
200
|
+
}, Mt = (e) => O && n(e, 11, 31) < O || k && n(e, 0, 1) > k ? !0 : Oe?.(new Date(e, 0, 1)) ?? !1, Nt = (e) => {
|
|
201
|
+
Ie(e), Ne?.(e);
|
|
202
|
+
}, Pt = j !== void 0 && j !== "", Ft = Me !== void 0 && Me !== "", It = (e) => Pt && e === j || Ft && e === Me, Lt = (e) => Pt && Ft && e > j && e < Me, Rt = /* @__PURE__ */ v("button", {
|
|
203
|
+
ref: Be,
|
|
204
|
+
"data-slot": "title",
|
|
205
|
+
type: "button",
|
|
206
|
+
"aria-haspopup": "grid",
|
|
207
|
+
"aria-expanded": B === "months",
|
|
208
|
+
onClick: B === "months" ? at : it,
|
|
209
|
+
className: m([ce, x]),
|
|
210
|
+
children: $e.format(new Date(X, Q))
|
|
211
|
+
}), zt = /* @__PURE__ */ v("button", {
|
|
212
|
+
ref: Ve,
|
|
213
|
+
"data-slot": "title",
|
|
214
|
+
type: "button",
|
|
215
|
+
"aria-haspopup": "grid",
|
|
216
|
+
"aria-expanded": B === "years",
|
|
217
|
+
onClick: B === "years" ? ut : ct,
|
|
218
|
+
className: m([ce, x]),
|
|
219
|
+
children: X
|
|
220
|
+
}), Bt = (e, r, i) => {
|
|
221
|
+
let o = t(e.year, e.month, Ye), s = [];
|
|
190
222
|
for (let e = 0; e < o.length; e += 7) s.push(o.slice(e, e + 7));
|
|
191
|
-
let
|
|
192
|
-
return /* @__PURE__ */
|
|
193
|
-
ref:
|
|
194
|
-
|
|
223
|
+
let l = Qe.format(new Date(e.year, e.month));
|
|
224
|
+
return /* @__PURE__ */ y("div", {
|
|
225
|
+
ref: r,
|
|
226
|
+
"data-slot": "month",
|
|
227
|
+
style: Ze ? { gridTemplateColumns: "repeat(8, 1fr)" } : void 0,
|
|
195
228
|
role: "grid",
|
|
196
|
-
"aria-label":
|
|
197
|
-
onKeyDown:
|
|
198
|
-
className:
|
|
199
|
-
children: [/* @__PURE__ */
|
|
229
|
+
"aria-label": l,
|
|
230
|
+
onKeyDown: i,
|
|
231
|
+
className: m([ue]),
|
|
232
|
+
children: [/* @__PURE__ */ y("div", {
|
|
200
233
|
role: "row",
|
|
201
|
-
|
|
202
|
-
|
|
234
|
+
"data-slot": "weekday-row",
|
|
235
|
+
className: m([S]),
|
|
236
|
+
children: [Ze && /* @__PURE__ */ v("span", {
|
|
203
237
|
role: "columnheader",
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
238
|
+
"data-slot": "week-number",
|
|
239
|
+
className: m([de]),
|
|
240
|
+
children: P.weekNumber
|
|
241
|
+
}), Xe.map((e, t) => /* @__PURE__ */ v("span", {
|
|
207
242
|
role: "columnheader",
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
role: "
|
|
216
|
-
className:
|
|
217
|
-
children:
|
|
218
|
-
}), t.map((t) => {
|
|
219
|
-
let n = a(t.year, t.month, t.day), r = ut(n), i = n === P || r;
|
|
220
|
-
return /* @__PURE__ */ m("span", {
|
|
243
|
+
"data-slot": "weekday",
|
|
244
|
+
className: m([de]),
|
|
245
|
+
children: e
|
|
246
|
+
}, t))]
|
|
247
|
+
}), s.map((e, t) => {
|
|
248
|
+
let r = c(e[0].year, e[0].month, e[0].day), i = J && Y !== null && Y.year === r.year && Y.week === r.week;
|
|
249
|
+
return /* @__PURE__ */ y("div", {
|
|
250
|
+
role: "row",
|
|
251
|
+
className: m([S]),
|
|
252
|
+
children: [Ze && /* @__PURE__ */ v("span", {
|
|
221
253
|
role: "gridcell",
|
|
222
|
-
"
|
|
223
|
-
className:
|
|
224
|
-
children:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
254
|
+
"data-slot": "week-number",
|
|
255
|
+
className: m([fe, i && pe]),
|
|
256
|
+
children: r.week
|
|
257
|
+
}), e.map((e) => {
|
|
258
|
+
let t = n(e.year, e.month, e.day), o = It(t), s = J ? i : t === N || o, c = M?.({
|
|
259
|
+
year: e.year,
|
|
260
|
+
month: e.month,
|
|
261
|
+
day: e.day
|
|
262
|
+
}, h);
|
|
263
|
+
return /* @__PURE__ */ v("span", {
|
|
264
|
+
role: "gridcell",
|
|
265
|
+
"aria-selected": s || Lt(t),
|
|
266
|
+
className: m([C]),
|
|
267
|
+
children: /* @__PURE__ */ v("button", {
|
|
268
|
+
type: "button",
|
|
269
|
+
"data-slot": "day",
|
|
270
|
+
"data-haze-day": t,
|
|
271
|
+
disabled: kt(e.year, e.month, e.day),
|
|
272
|
+
onClick: () => {
|
|
273
|
+
J ? Nt(a(r.year, r.week)) : (Ie(t), Ne?.(t));
|
|
274
|
+
},
|
|
275
|
+
className: m([
|
|
276
|
+
T,
|
|
277
|
+
s && E,
|
|
278
|
+
!s && Lt(t) && me,
|
|
279
|
+
e.outside && he
|
|
280
|
+
]),
|
|
281
|
+
children: c === void 0 ? e.day : /* @__PURE__ */ y("span", {
|
|
282
|
+
className: m([w]),
|
|
283
|
+
children: [e.day, c]
|
|
284
|
+
})
|
|
285
|
+
})
|
|
286
|
+
}, t);
|
|
287
|
+
})]
|
|
288
|
+
}, t);
|
|
289
|
+
})]
|
|
242
290
|
});
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
291
|
+
}, Vt = (e, t, n, r) => /* @__PURE__ */ v("div", {
|
|
292
|
+
ref: z,
|
|
293
|
+
"data-slot": "year-grid",
|
|
294
|
+
role: "grid",
|
|
295
|
+
"aria-label": P.selectYear,
|
|
296
|
+
onKeyDown: r,
|
|
297
|
+
className: m([xe]),
|
|
298
|
+
children: [
|
|
299
|
+
0,
|
|
300
|
+
1,
|
|
301
|
+
2,
|
|
302
|
+
3
|
|
303
|
+
].map((r) => /* @__PURE__ */ v("div", {
|
|
304
|
+
role: "row",
|
|
305
|
+
className: m([S]),
|
|
306
|
+
children: [
|
|
307
|
+
0,
|
|
308
|
+
1,
|
|
309
|
+
2
|
|
310
|
+
].map((i) => {
|
|
311
|
+
let a = e + r * 3 + i, o = a === t, s = M?.({
|
|
312
|
+
year: a,
|
|
313
|
+
month: 0,
|
|
314
|
+
day: 1
|
|
315
|
+
}, "year");
|
|
316
|
+
return /* @__PURE__ */ v("span", {
|
|
317
|
+
role: "gridcell",
|
|
318
|
+
"aria-selected": o,
|
|
319
|
+
className: m([C]),
|
|
320
|
+
children: /* @__PURE__ */ v("button", {
|
|
321
|
+
type: "button",
|
|
322
|
+
"data-slot": "year-cell",
|
|
323
|
+
"data-haze-year": a,
|
|
324
|
+
disabled: Mt(a),
|
|
325
|
+
onClick: () => n(a),
|
|
326
|
+
className: m([T, o && E]),
|
|
327
|
+
children: s === void 0 ? a : /* @__PURE__ */ y("span", {
|
|
328
|
+
className: m([w]),
|
|
329
|
+
children: [a, s]
|
|
330
|
+
})
|
|
331
|
+
})
|
|
332
|
+
}, a);
|
|
333
|
+
})
|
|
334
|
+
}, r))
|
|
335
|
+
}), Ht = B === "years" ? /* @__PURE__ */ y("div", {
|
|
336
|
+
onKeyDown: Wt,
|
|
337
|
+
className: m([ye]),
|
|
338
|
+
children: [/* @__PURE__ */ y("div", {
|
|
339
|
+
"data-slot": "toolbar",
|
|
340
|
+
className: m([be]),
|
|
341
|
+
children: [
|
|
342
|
+
/* @__PURE__ */ v("button", {
|
|
343
|
+
"data-slot": "prev",
|
|
250
344
|
type: "button",
|
|
251
|
-
onClick: () =>
|
|
252
|
-
"aria-label":
|
|
253
|
-
className:
|
|
345
|
+
onClick: () => W((e) => e - 10),
|
|
346
|
+
"aria-label": P.previousDecade,
|
|
347
|
+
className: m([b]),
|
|
254
348
|
children: "‹"
|
|
255
349
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
|
|
350
|
+
/* @__PURE__ */ y("span", {
|
|
351
|
+
"data-slot": "title",
|
|
352
|
+
className: m([x]),
|
|
258
353
|
children: [
|
|
259
|
-
|
|
354
|
+
st,
|
|
260
355
|
" – ",
|
|
261
|
-
|
|
356
|
+
st + 11
|
|
262
357
|
]
|
|
263
358
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ v("button", {
|
|
360
|
+
"data-slot": "next",
|
|
265
361
|
type: "button",
|
|
266
|
-
onClick: () =>
|
|
267
|
-
"aria-label":
|
|
268
|
-
className:
|
|
362
|
+
onClick: () => W((e) => e + 10),
|
|
363
|
+
"aria-label": P.nextDecade,
|
|
364
|
+
className: m([b]),
|
|
269
365
|
children: "›"
|
|
270
366
|
})
|
|
271
|
-
]
|
|
272
|
-
|
|
367
|
+
]
|
|
368
|
+
}), Vt(st, X, dt, xt)]
|
|
369
|
+
}) : null, Ut = B === "months" ? /* @__PURE__ */ y("div", {
|
|
370
|
+
onKeyDown: Wt,
|
|
371
|
+
className: m([ye]),
|
|
372
|
+
children: [/* @__PURE__ */ y("div", {
|
|
373
|
+
"data-slot": "toolbar",
|
|
374
|
+
className: m([be]),
|
|
375
|
+
children: [
|
|
376
|
+
/* @__PURE__ */ v("button", {
|
|
377
|
+
"data-slot": "prev",
|
|
273
378
|
type: "button",
|
|
274
|
-
onClick: () =>
|
|
275
|
-
"aria-label":
|
|
276
|
-
className:
|
|
379
|
+
onClick: () => U((e) => e - 1),
|
|
380
|
+
"aria-label": P.previousYear,
|
|
381
|
+
className: m([b]),
|
|
277
382
|
children: "‹"
|
|
278
383
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ v("button", {
|
|
385
|
+
"data-slot": "title",
|
|
280
386
|
type: "button",
|
|
281
387
|
"aria-haspopup": "grid",
|
|
282
|
-
onClick:
|
|
283
|
-
className:
|
|
284
|
-
children:
|
|
388
|
+
onClick: lt,
|
|
389
|
+
className: m([ce, x]),
|
|
390
|
+
children: H
|
|
285
391
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ v("button", {
|
|
393
|
+
"data-slot": "next",
|
|
287
394
|
type: "button",
|
|
288
|
-
onClick: () =>
|
|
289
|
-
"aria-label":
|
|
290
|
-
className:
|
|
395
|
+
onClick: () => U((e) => e + 1),
|
|
396
|
+
"aria-label": P.nextYear,
|
|
397
|
+
className: m([b]),
|
|
291
398
|
children: "›"
|
|
292
399
|
})
|
|
293
|
-
]
|
|
294
|
-
}),
|
|
295
|
-
ref:
|
|
296
|
-
|
|
297
|
-
"aria-label": F.selectYear,
|
|
298
|
-
onKeyDown: Xe,
|
|
299
|
-
className: e([w]),
|
|
300
|
-
children: [
|
|
301
|
-
0,
|
|
302
|
-
1,
|
|
303
|
-
2,
|
|
304
|
-
3
|
|
305
|
-
].map((t) => /* @__PURE__ */ m("div", {
|
|
306
|
-
role: "row",
|
|
307
|
-
className: e([b]),
|
|
308
|
-
children: [
|
|
309
|
-
0,
|
|
310
|
-
1,
|
|
311
|
-
2
|
|
312
|
-
].map((n) => {
|
|
313
|
-
let r = Z + t * 3 + n, i = r === J;
|
|
314
|
-
return /* @__PURE__ */ m("span", {
|
|
315
|
-
role: "gridcell",
|
|
316
|
-
"aria-selected": i,
|
|
317
|
-
className: e([x]),
|
|
318
|
-
children: /* @__PURE__ */ m("button", {
|
|
319
|
-
type: "button",
|
|
320
|
-
"data-haze-year": r,
|
|
321
|
-
disabled: ot(r),
|
|
322
|
-
onClick: () => Ke(r),
|
|
323
|
-
className: e([S, i && C]),
|
|
324
|
-
children: r
|
|
325
|
-
})
|
|
326
|
-
}, r);
|
|
327
|
-
})
|
|
328
|
-
}, t))
|
|
329
|
-
}) : /* @__PURE__ */ m("div", {
|
|
330
|
-
ref: H,
|
|
400
|
+
]
|
|
401
|
+
}), /* @__PURE__ */ v("div", {
|
|
402
|
+
ref: z,
|
|
403
|
+
"data-slot": "month-grid",
|
|
331
404
|
role: "grid",
|
|
332
|
-
"aria-label":
|
|
333
|
-
onKeyDown:
|
|
334
|
-
className:
|
|
405
|
+
"aria-label": P.selectMonth,
|
|
406
|
+
onKeyDown: bt,
|
|
407
|
+
className: m([xe]),
|
|
335
408
|
children: [
|
|
336
409
|
0,
|
|
337
410
|
1,
|
|
338
411
|
2,
|
|
339
412
|
3
|
|
340
|
-
].map((
|
|
413
|
+
].map((e) => /* @__PURE__ */ v("div", {
|
|
341
414
|
role: "row",
|
|
342
|
-
className:
|
|
415
|
+
className: m([S]),
|
|
343
416
|
children: [
|
|
344
417
|
0,
|
|
345
418
|
1,
|
|
346
419
|
2
|
|
347
|
-
].map((
|
|
348
|
-
let
|
|
349
|
-
|
|
420
|
+
].map((t) => {
|
|
421
|
+
let n = e * 3 + t, r = H === X && n === Q, i = M?.({
|
|
422
|
+
year: H,
|
|
423
|
+
month: n,
|
|
424
|
+
day: 1
|
|
425
|
+
}, "month");
|
|
426
|
+
return /* @__PURE__ */ v("span", {
|
|
350
427
|
role: "gridcell",
|
|
351
|
-
"aria-selected":
|
|
352
|
-
className:
|
|
353
|
-
children: /* @__PURE__ */
|
|
428
|
+
"aria-selected": r,
|
|
429
|
+
className: m([C]),
|
|
430
|
+
children: /* @__PURE__ */ v("button", {
|
|
354
431
|
type: "button",
|
|
355
|
-
"data-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
432
|
+
"data-slot": "month-cell",
|
|
433
|
+
"data-haze-month": n,
|
|
434
|
+
onClick: () => ot(n),
|
|
435
|
+
className: m([T, r && E]),
|
|
436
|
+
children: i === void 0 ? tt[n] : /* @__PURE__ */ y("span", {
|
|
437
|
+
className: m([w]),
|
|
438
|
+
children: [tt[n], i]
|
|
439
|
+
})
|
|
359
440
|
})
|
|
360
|
-
},
|
|
441
|
+
}, n);
|
|
361
442
|
})
|
|
362
|
-
},
|
|
443
|
+
}, e))
|
|
363
444
|
})]
|
|
364
|
-
});
|
|
365
|
-
function
|
|
366
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
445
|
+
}) : null;
|
|
446
|
+
function Wt(e) {
|
|
447
|
+
e.key === "Escape" && (e.preventDefault(), B === "years" ? ut() : at());
|
|
367
448
|
}
|
|
368
|
-
if (
|
|
369
|
-
let
|
|
370
|
-
|
|
449
|
+
if (h !== "date" && h !== "week") {
|
|
450
|
+
let e = Math.floor(X / 10) * 10, t = K && h !== "year", n = t || h === "year" ? P.previousDecade : P.previousYear, a = t || h === "year" ? P.nextDecade : P.nextYear, s = t ? /* @__PURE__ */ v("div", {
|
|
451
|
+
onKeyDown: (e) => {
|
|
452
|
+
e.key === "Escape" && (e.preventDefault(), ht());
|
|
453
|
+
},
|
|
454
|
+
className: m([ye]),
|
|
455
|
+
children: Vt(ft, X, gt, St)
|
|
456
|
+
}) : h === "month" ? /* @__PURE__ */ v("div", {
|
|
457
|
+
ref: R,
|
|
458
|
+
"data-slot": "month-grid",
|
|
371
459
|
role: "grid",
|
|
372
|
-
"aria-label":
|
|
373
|
-
onKeyDown:
|
|
374
|
-
className:
|
|
460
|
+
"aria-label": P.selectMonth,
|
|
461
|
+
onKeyDown: Tt,
|
|
462
|
+
className: m([xe]),
|
|
375
463
|
children: [
|
|
376
464
|
0,
|
|
377
465
|
1,
|
|
378
466
|
2,
|
|
379
467
|
3
|
|
380
|
-
].map((
|
|
468
|
+
].map((e) => /* @__PURE__ */ v("div", {
|
|
381
469
|
role: "row",
|
|
382
|
-
className:
|
|
470
|
+
className: m([S]),
|
|
383
471
|
children: [
|
|
384
472
|
0,
|
|
385
473
|
1,
|
|
386
474
|
2
|
|
387
|
-
].map((
|
|
388
|
-
let
|
|
389
|
-
|
|
475
|
+
].map((t) => {
|
|
476
|
+
let n = e * 3 + t, i = N === r(X, n), a = M?.({
|
|
477
|
+
year: X,
|
|
478
|
+
month: n,
|
|
479
|
+
day: 1
|
|
480
|
+
}, "month");
|
|
481
|
+
return /* @__PURE__ */ v("span", {
|
|
390
482
|
role: "gridcell",
|
|
391
483
|
"aria-selected": i,
|
|
392
|
-
className:
|
|
393
|
-
children: /* @__PURE__ */
|
|
484
|
+
className: m([C]),
|
|
485
|
+
children: /* @__PURE__ */ v("button", {
|
|
394
486
|
type: "button",
|
|
395
|
-
"data-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
487
|
+
"data-slot": "month-cell",
|
|
488
|
+
"data-haze-month": n,
|
|
489
|
+
disabled: At(X, n),
|
|
490
|
+
onClick: () => Nt(r(X, n)),
|
|
491
|
+
className: m([T, i && E]),
|
|
492
|
+
children: a === void 0 ? tt[n] : /* @__PURE__ */ y("span", {
|
|
493
|
+
className: m([w]),
|
|
494
|
+
children: [tt[n], a]
|
|
495
|
+
})
|
|
400
496
|
})
|
|
401
|
-
},
|
|
497
|
+
}, n);
|
|
402
498
|
})
|
|
403
|
-
},
|
|
404
|
-
}) :
|
|
405
|
-
ref:
|
|
499
|
+
}, e))
|
|
500
|
+
}) : h === "quarter" ? /* @__PURE__ */ v("div", {
|
|
501
|
+
ref: R,
|
|
502
|
+
"data-slot": "quarter-grid",
|
|
406
503
|
role: "grid",
|
|
407
|
-
"aria-label":
|
|
408
|
-
onKeyDown:
|
|
409
|
-
className:
|
|
410
|
-
children:
|
|
504
|
+
"aria-label": P.selectQuarter,
|
|
505
|
+
onKeyDown: Tt,
|
|
506
|
+
className: m([Se]),
|
|
507
|
+
children: v("div", {
|
|
411
508
|
role: "row",
|
|
412
|
-
className:
|
|
509
|
+
className: m([S]),
|
|
413
510
|
children: [
|
|
414
511
|
1,
|
|
415
512
|
2,
|
|
416
513
|
3,
|
|
417
514
|
4
|
|
418
|
-
].map((
|
|
419
|
-
let
|
|
420
|
-
|
|
515
|
+
].map((e) => {
|
|
516
|
+
let t = N === i(X, e), n = M?.({
|
|
517
|
+
year: X,
|
|
518
|
+
month: e * 3 - 3,
|
|
519
|
+
day: 1
|
|
520
|
+
}, "quarter");
|
|
521
|
+
return /* @__PURE__ */ v("span", {
|
|
421
522
|
role: "gridcell",
|
|
422
|
-
"aria-selected":
|
|
423
|
-
className:
|
|
424
|
-
children: /* @__PURE__ */
|
|
523
|
+
"aria-selected": t,
|
|
524
|
+
className: m([C]),
|
|
525
|
+
children: /* @__PURE__ */ v("button", {
|
|
425
526
|
type: "button",
|
|
426
|
-
"data-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
527
|
+
"data-slot": "quarter-cell",
|
|
528
|
+
"data-haze-quarter": e,
|
|
529
|
+
disabled: jt(X, e),
|
|
530
|
+
onClick: () => Nt(i(X, e)),
|
|
531
|
+
className: m([T, t && E]),
|
|
532
|
+
children: n === void 0 ? `Q${e}` : /* @__PURE__ */ y("span", {
|
|
533
|
+
className: m([w]),
|
|
534
|
+
children: [
|
|
535
|
+
"Q",
|
|
536
|
+
e,
|
|
537
|
+
n
|
|
538
|
+
]
|
|
539
|
+
})
|
|
431
540
|
})
|
|
432
|
-
},
|
|
541
|
+
}, e);
|
|
433
542
|
})
|
|
434
543
|
})
|
|
435
|
-
}) : /* @__PURE__ */
|
|
436
|
-
ref:
|
|
544
|
+
}) : /* @__PURE__ */ v("div", {
|
|
545
|
+
ref: R,
|
|
546
|
+
"data-slot": "year-grid",
|
|
437
547
|
role: "grid",
|
|
438
|
-
"aria-label":
|
|
439
|
-
onKeyDown:
|
|
440
|
-
className:
|
|
548
|
+
"aria-label": P.selectYear,
|
|
549
|
+
onKeyDown: Tt,
|
|
550
|
+
className: m([xe]),
|
|
441
551
|
children: [
|
|
442
552
|
0,
|
|
443
553
|
1,
|
|
444
554
|
2,
|
|
445
555
|
3
|
|
446
|
-
].map((t) => /* @__PURE__ */
|
|
556
|
+
].map((t) => /* @__PURE__ */ v("div", {
|
|
447
557
|
role: "row",
|
|
448
|
-
className:
|
|
558
|
+
className: m([S]),
|
|
449
559
|
children: [
|
|
450
560
|
0,
|
|
451
561
|
1,
|
|
452
562
|
2
|
|
453
|
-
].map((
|
|
454
|
-
let
|
|
455
|
-
|
|
563
|
+
].map((n) => {
|
|
564
|
+
let r = e + t * 3 + n, i = N === o(r), a = M?.({
|
|
565
|
+
year: r,
|
|
566
|
+
month: 0,
|
|
567
|
+
day: 1
|
|
568
|
+
}, "year");
|
|
569
|
+
return /* @__PURE__ */ v("span", {
|
|
456
570
|
role: "gridcell",
|
|
457
|
-
"aria-selected":
|
|
458
|
-
className:
|
|
459
|
-
children: /* @__PURE__ */
|
|
571
|
+
"aria-selected": i,
|
|
572
|
+
className: m([C]),
|
|
573
|
+
children: /* @__PURE__ */ v("button", {
|
|
460
574
|
type: "button",
|
|
461
|
-
"data-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
575
|
+
"data-slot": "year-cell",
|
|
576
|
+
"data-haze-year": r,
|
|
577
|
+
disabled: Mt(r),
|
|
578
|
+
onClick: () => Nt(o(r)),
|
|
579
|
+
className: m([T, i && E]),
|
|
580
|
+
children: a === void 0 ? r : /* @__PURE__ */ y("span", {
|
|
581
|
+
className: m([w]),
|
|
582
|
+
children: [r, a]
|
|
583
|
+
})
|
|
466
584
|
})
|
|
467
|
-
},
|
|
585
|
+
}, r);
|
|
468
586
|
})
|
|
469
587
|
}, t))
|
|
470
588
|
});
|
|
471
|
-
return /* @__PURE__ */
|
|
472
|
-
ref:
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
589
|
+
return /* @__PURE__ */ y("div", {
|
|
590
|
+
ref: ze,
|
|
591
|
+
"data-slot": "calendar",
|
|
592
|
+
...Fe,
|
|
593
|
+
className: m([ae, Pe]),
|
|
594
|
+
children: [/* @__PURE__ */ y("div", {
|
|
595
|
+
"data-slot": "header",
|
|
596
|
+
className: m([oe]),
|
|
477
597
|
children: [
|
|
478
|
-
/* @__PURE__ */
|
|
598
|
+
/* @__PURE__ */ v("button", {
|
|
599
|
+
"data-slot": "prev",
|
|
479
600
|
type: "button",
|
|
480
|
-
onClick: () =>
|
|
481
|
-
"aria-label":
|
|
482
|
-
className:
|
|
601
|
+
onClick: () => t ? We((e) => e - 10) : wt(-1),
|
|
602
|
+
"aria-label": n,
|
|
603
|
+
className: m([b]),
|
|
483
604
|
children: "‹"
|
|
484
605
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
486
|
-
|
|
487
|
-
|
|
606
|
+
t ? /* @__PURE__ */ y("span", {
|
|
607
|
+
"data-slot": "title",
|
|
608
|
+
className: m([x]),
|
|
609
|
+
children: [
|
|
610
|
+
ft,
|
|
611
|
+
" – ",
|
|
612
|
+
ft + 11
|
|
613
|
+
]
|
|
614
|
+
}) : h === "year" ? /* @__PURE__ */ y("span", {
|
|
615
|
+
"data-slot": "title",
|
|
616
|
+
className: m([x]),
|
|
617
|
+
children: [
|
|
618
|
+
e,
|
|
619
|
+
" – ",
|
|
620
|
+
e + 11
|
|
621
|
+
]
|
|
622
|
+
}) : /* @__PURE__ */ v("button", {
|
|
623
|
+
ref: Ve,
|
|
624
|
+
"data-slot": "title",
|
|
625
|
+
type: "button",
|
|
626
|
+
"aria-haspopup": "grid",
|
|
627
|
+
"aria-expanded": K,
|
|
628
|
+
onClick: K ? ht : mt,
|
|
629
|
+
className: m([ce, x]),
|
|
630
|
+
children: X
|
|
488
631
|
}),
|
|
489
|
-
/* @__PURE__ */
|
|
490
|
-
|
|
491
|
-
|
|
632
|
+
/* @__PURE__ */ y("span", {
|
|
633
|
+
"data-slot": "actions",
|
|
634
|
+
className: m([le]),
|
|
635
|
+
children: [/* @__PURE__ */ v("button", {
|
|
636
|
+
"data-slot": "today-button",
|
|
492
637
|
type: "button",
|
|
493
|
-
onClick:
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
638
|
+
onClick: () => {
|
|
639
|
+
t && q(!1), Ot();
|
|
640
|
+
},
|
|
641
|
+
className: m([b]),
|
|
642
|
+
children: P.today
|
|
643
|
+
}), /* @__PURE__ */ v("button", {
|
|
644
|
+
"data-slot": "next",
|
|
497
645
|
type: "button",
|
|
498
|
-
onClick: () =>
|
|
499
|
-
"aria-label":
|
|
500
|
-
className:
|
|
646
|
+
onClick: () => t ? We((e) => e + 10) : wt(1),
|
|
647
|
+
"aria-label": a,
|
|
648
|
+
className: m([b]),
|
|
501
649
|
children: "›"
|
|
502
650
|
})]
|
|
503
651
|
})
|
|
504
652
|
]
|
|
505
|
-
}),
|
|
653
|
+
}), s]
|
|
506
654
|
});
|
|
507
655
|
}
|
|
508
|
-
return /* @__PURE__ */
|
|
509
|
-
ref:
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
656
|
+
return /* @__PURE__ */ y("div", {
|
|
657
|
+
ref: ze,
|
|
658
|
+
"data-slot": "calendar",
|
|
659
|
+
...Fe,
|
|
660
|
+
className: m([ae, Pe]),
|
|
661
|
+
children: [/* @__PURE__ */ y("div", {
|
|
662
|
+
"data-slot": "header",
|
|
663
|
+
className: m([oe]),
|
|
514
664
|
children: [
|
|
515
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ v("button", {
|
|
666
|
+
"data-slot": "prev",
|
|
516
667
|
type: "button",
|
|
517
|
-
onClick:
|
|
518
|
-
"aria-label":
|
|
519
|
-
className:
|
|
668
|
+
onClick: Et,
|
|
669
|
+
"aria-label": P.previousMonth,
|
|
670
|
+
className: m([b]),
|
|
520
671
|
children: "‹"
|
|
521
672
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
"aria-expanded": U,
|
|
526
|
-
onClick: U ? He : Ve,
|
|
527
|
-
className: e([oe, y]),
|
|
528
|
-
children: ft
|
|
673
|
+
/* @__PURE__ */ v("span", {
|
|
674
|
+
className: m([se]),
|
|
675
|
+
children: rt ? /* @__PURE__ */ y(re, { children: [zt, Rt] }) : /* @__PURE__ */ y(re, { children: [Rt, zt] })
|
|
529
676
|
}),
|
|
530
|
-
/* @__PURE__ */
|
|
531
|
-
|
|
532
|
-
|
|
677
|
+
/* @__PURE__ */ y("span", {
|
|
678
|
+
"data-slot": "actions",
|
|
679
|
+
className: m([le]),
|
|
680
|
+
children: [/* @__PURE__ */ v("button", {
|
|
681
|
+
"data-slot": "today-button",
|
|
533
682
|
type: "button",
|
|
534
|
-
onClick:
|
|
535
|
-
className:
|
|
536
|
-
children:
|
|
537
|
-
}), /* @__PURE__ */
|
|
683
|
+
onClick: Ot,
|
|
684
|
+
className: m([b]),
|
|
685
|
+
children: P.today
|
|
686
|
+
}), /* @__PURE__ */ v("button", {
|
|
687
|
+
"data-slot": "next",
|
|
538
688
|
type: "button",
|
|
539
|
-
onClick:
|
|
540
|
-
"aria-label":
|
|
541
|
-
className:
|
|
689
|
+
onClick: Dt,
|
|
690
|
+
"aria-label": P.nextMonth,
|
|
691
|
+
className: m([b]),
|
|
542
692
|
children: "›"
|
|
543
693
|
})]
|
|
544
694
|
})
|
|
545
695
|
]
|
|
546
|
-
}),
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
696
|
+
}), B === "days" ? je === 2 ? /* @__PURE__ */ y("div", {
|
|
697
|
+
"data-slot": "months",
|
|
698
|
+
className: m([ge]),
|
|
699
|
+
children: [/* @__PURE__ */ v("div", {
|
|
700
|
+
"data-slot": "month-panel",
|
|
701
|
+
className: m([_e]),
|
|
702
|
+
children: Bt({
|
|
703
|
+
year: X,
|
|
704
|
+
month: Q
|
|
705
|
+
}, Le, vt)
|
|
706
|
+
}), /* @__PURE__ */ y("div", {
|
|
707
|
+
"data-slot": "month-panel",
|
|
708
|
+
className: m([_e]),
|
|
709
|
+
children: [/* @__PURE__ */ v("div", {
|
|
710
|
+
"data-slot": "header",
|
|
711
|
+
className: m([ve]),
|
|
712
|
+
children: /* @__PURE__ */ v("span", {
|
|
713
|
+
"data-slot": "title",
|
|
714
|
+
className: m([x]),
|
|
715
|
+
children: Qe.format(new Date(_t.year, _t.month))
|
|
561
716
|
})
|
|
562
|
-
}),
|
|
717
|
+
}), Bt(_t, Re, yt)]
|
|
563
718
|
})]
|
|
564
|
-
}) :
|
|
565
|
-
year:
|
|
566
|
-
month:
|
|
567
|
-
},
|
|
719
|
+
}) : Bt({
|
|
720
|
+
year: X,
|
|
721
|
+
month: Q
|
|
722
|
+
}, Le, vt) : Ht ?? Ut]
|
|
568
723
|
});
|
|
569
724
|
}
|
|
570
725
|
//#endregion
|
|
571
|
-
export {
|
|
726
|
+
export { k as default };
|