@studio-helga/once-ui-core 1.7.8
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 +54 -0
- package/dist/README.md +54 -0
- package/dist/components/Accordion.d.ts +25 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion.js +75 -0
- package/dist/components/Accordion.js.map +1 -0
- package/dist/components/Accordion.module.scss +5 -0
- package/dist/components/AccordionGroup.d.ts +16 -0
- package/dist/components/AccordionGroup.d.ts.map +1 -0
- package/dist/components/AccordionGroup.js +27 -0
- package/dist/components/AccordionGroup.js.map +1 -0
- package/dist/components/Animation.d.ts +34 -0
- package/dist/components/Animation.d.ts.map +1 -0
- package/dist/components/Animation.js +230 -0
- package/dist/components/Animation.js.map +1 -0
- package/dist/components/Arrow.d.ts +11 -0
- package/dist/components/Arrow.d.ts.map +1 -0
- package/dist/components/Arrow.js +33 -0
- package/dist/components/Arrow.js.map +1 -0
- package/dist/components/Arrow.module.scss +39 -0
- package/dist/components/ArrowNavigationContext.d.ts +33 -0
- package/dist/components/ArrowNavigationContext.d.ts.map +1 -0
- package/dist/components/ArrowNavigationContext.js +60 -0
- package/dist/components/ArrowNavigationContext.js.map +1 -0
- package/dist/components/AutoScroll.d.ts +14 -0
- package/dist/components/AutoScroll.d.ts.map +1 -0
- package/dist/components/AutoScroll.js +178 -0
- package/dist/components/AutoScroll.js.map +1 -0
- package/dist/components/AutoScroll.module.scss +9 -0
- package/dist/components/Avatar.d.ts +21 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar.js +54 -0
- package/dist/components/Avatar.js.map +1 -0
- package/dist/components/Avatar.module.scss +56 -0
- package/dist/components/AvatarGroup.d.ts +14 -0
- package/dist/components/AvatarGroup.d.ts.map +1 -0
- package/dist/components/AvatarGroup.js +20 -0
- package/dist/components/AvatarGroup.js.map +1 -0
- package/dist/components/AvatarGroup.module.scss +11 -0
- package/dist/components/Background.d.ts +49 -0
- package/dist/components/Background.d.ts.map +1 -0
- package/dist/components/Background.js +72 -0
- package/dist/components/Background.js.map +1 -0
- package/dist/components/Background.module.scss +23 -0
- package/dist/components/Badge.d.ts +17 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Badge.js +21 -0
- package/dist/components/Badge.js.map +1 -0
- package/dist/components/Badge.module.scss +67 -0
- package/dist/components/Banner.d.ts +6 -0
- package/dist/components/Banner.d.ts.map +1 -0
- package/dist/components/Banner.js +7 -0
- package/dist/components/Banner.js.map +1 -0
- package/dist/components/BlobFx.d.ts +8 -0
- package/dist/components/BlobFx.d.ts.map +1 -0
- package/dist/components/BlobFx.js +82 -0
- package/dist/components/BlobFx.js.map +1 -0
- package/dist/components/BlockQuote.d.ts +21 -0
- package/dist/components/BlockQuote.d.ts.map +1 -0
- package/dist/components/BlockQuote.js +10 -0
- package/dist/components/BlockQuote.js.map +1 -0
- package/dist/components/Button.d.ts +27 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +25 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Button.module.scss +154 -0
- package/dist/components/Card.d.ts +13 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Card.js +13 -0
- package/dist/components/Card.js.map +1 -0
- package/dist/components/Card.module.scss +7 -0
- package/dist/components/Carousel.d.ts +32 -0
- package/dist/components/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel.js +156 -0
- package/dist/components/Carousel.js.map +1 -0
- package/dist/components/Carousel.module.scss +48 -0
- package/dist/components/CelebrationFx.d.ts +17 -0
- package/dist/components/CelebrationFx.d.ts.map +1 -0
- package/dist/components/CelebrationFx.js +314 -0
- package/dist/components/CelebrationFx.js.map +1 -0
- package/dist/components/Checkbox.d.ts +11 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox.js +56 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/Chip.d.ts +17 -0
- package/dist/components/Chip.d.ts.map +1 -0
- package/dist/components/Chip.js +43 -0
- package/dist/components/Chip.js.map +1 -0
- package/dist/components/Chip.module.scss +39 -0
- package/dist/components/ClientFlex.d.ts +13 -0
- package/dist/components/ClientFlex.d.ts.map +1 -0
- package/dist/components/ClientFlex.js +110 -0
- package/dist/components/ClientFlex.js.map +1 -0
- package/dist/components/ClientGrid.d.ts +13 -0
- package/dist/components/ClientGrid.d.ts.map +1 -0
- package/dist/components/ClientGrid.js +110 -0
- package/dist/components/ClientGrid.js.map +1 -0
- package/dist/components/ColorInput.d.ts +11 -0
- package/dist/components/ColorInput.d.ts.map +1 -0
- package/dist/components/ColorInput.js +78 -0
- package/dist/components/ColorInput.js.map +1 -0
- package/dist/components/Column.d.ts +7 -0
- package/dist/components/Column.d.ts.map +1 -0
- package/dist/components/Column.js +10 -0
- package/dist/components/Column.js.map +1 -0
- package/dist/components/CompareImage.d.ts +16 -0
- package/dist/components/CompareImage.d.ts.map +1 -0
- package/dist/components/CompareImage.js +58 -0
- package/dist/components/CompareImage.js.map +1 -0
- package/dist/components/CompareImage.module.scss +14 -0
- package/dist/components/ContextMenu.d.ts +22 -0
- package/dist/components/ContextMenu.d.ts.map +1 -0
- package/dist/components/ContextMenu.js +224 -0
- package/dist/components/ContextMenu.js.map +1 -0
- package/dist/components/ContextMenu.module.scss +15 -0
- package/dist/components/CountFx.d.ts +15 -0
- package/dist/components/CountFx.d.ts.map +1 -0
- package/dist/components/CountFx.js +203 -0
- package/dist/components/CountFx.js.map +1 -0
- package/dist/components/CountdownFx.d.ts +11 -0
- package/dist/components/CountdownFx.d.ts.map +1 -0
- package/dist/components/CountdownFx.js +49 -0
- package/dist/components/CountdownFx.js.map +1 -0
- package/dist/components/Cursor.d.ts +8 -0
- package/dist/components/Cursor.d.ts.map +1 -0
- package/dist/components/Cursor.js +79 -0
- package/dist/components/Cursor.js.map +1 -0
- package/dist/components/CursorCard.d.ts +13 -0
- package/dist/components/CursorCard.d.ts.map +1 -0
- package/dist/components/CursorCard.js +63 -0
- package/dist/components/CursorCard.js.map +1 -0
- package/dist/components/CursorCard.module.scss +12 -0
- package/dist/components/DateInput.d.ts +18 -0
- package/dist/components/DateInput.d.ts.map +1 -0
- package/dist/components/DateInput.js +43 -0
- package/dist/components/DateInput.js.map +1 -0
- package/dist/components/DatePicker.d.ts +33 -0
- package/dist/components/DatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker.js +487 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/DatePicker.module.scss +194 -0
- package/dist/components/DateRangeInput.d.ts +15 -0
- package/dist/components/DateRangeInput.d.ts.map +1 -0
- package/dist/components/DateRangeInput.js +45 -0
- package/dist/components/DateRangeInput.js.map +1 -0
- package/dist/components/DateRangePicker.d.ts +17 -0
- package/dist/components/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker.js +78 -0
- package/dist/components/DateRangePicker.js.map +1 -0
- package/dist/components/Dialog.d.ts +21 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog.js +230 -0
- package/dist/components/Dialog.js.map +1 -0
- package/dist/components/Dialog.module.scss +33 -0
- package/dist/components/Dropdown.d.ts +13 -0
- package/dist/components/Dropdown.d.ts.map +1 -0
- package/dist/components/Dropdown.js +21 -0
- package/dist/components/Dropdown.js.map +1 -0
- package/dist/components/DropdownWrapper.d.ts +29 -0
- package/dist/components/DropdownWrapper.d.ts.map +1 -0
- package/dist/components/DropdownWrapper.js +505 -0
- package/dist/components/DropdownWrapper.js.map +1 -0
- package/dist/components/DropdownWrapper.module.scss +15 -0
- package/dist/components/ElementType.d.ts +14 -0
- package/dist/components/ElementType.d.ts.map +1 -0
- package/dist/components/ElementType.js +21 -0
- package/dist/components/ElementType.js.map +1 -0
- package/dist/components/EmojiPicker.d.ts +16 -0
- package/dist/components/EmojiPicker.d.ts.map +1 -0
- package/dist/components/EmojiPicker.js +178 -0
- package/dist/components/EmojiPicker.js.map +1 -0
- package/dist/components/EmojiPicker.module.scss +14 -0
- package/dist/components/EmojiPickerDropdown.d.ts +11 -0
- package/dist/components/EmojiPickerDropdown.d.ts.map +1 -0
- package/dist/components/EmojiPickerDropdown.js +14 -0
- package/dist/components/EmojiPickerDropdown.js.map +1 -0
- package/dist/components/Fade.d.ts +19 -0
- package/dist/components/Fade.d.ts.map +1 -0
- package/dist/components/Fade.js +43 -0
- package/dist/components/Fade.js.map +1 -0
- package/dist/components/Fade.module.scss +6 -0
- package/dist/components/FadingLettersFx.d.ts +15 -0
- package/dist/components/FadingLettersFx.d.ts.map +1 -0
- package/dist/components/FadingLettersFx.js +27 -0
- package/dist/components/FadingLettersFx.js.map +1 -0
- package/dist/components/FadingLettersFx.module.scss +71 -0
- package/dist/components/Feedback.d.ts +16 -0
- package/dist/components/Feedback.d.ts.map +1 -0
- package/dist/components/Feedback.js +16 -0
- package/dist/components/Feedback.js.map +1 -0
- package/dist/components/Flex.d.ts +11 -0
- package/dist/components/Flex.d.ts.map +1 -0
- package/dist/components/Flex.js +31 -0
- package/dist/components/Flex.js.map +1 -0
- package/dist/components/FlipFx.d.ts +17 -0
- package/dist/components/FlipFx.d.ts.map +1 -0
- package/dist/components/FlipFx.js +76 -0
- package/dist/components/FlipFx.js.map +1 -0
- package/dist/components/FocusTrap.d.ts +16 -0
- package/dist/components/FocusTrap.d.ts.map +1 -0
- package/dist/components/FocusTrap.js +87 -0
- package/dist/components/FocusTrap.js.map +1 -0
- package/dist/components/GlitchFx.d.ts +12 -0
- package/dist/components/GlitchFx.d.ts.map +1 -0
- package/dist/components/GlitchFx.js +41 -0
- package/dist/components/GlitchFx.js.map +1 -0
- package/dist/components/GlitchFx.module.scss +92 -0
- package/dist/components/Grid.d.ts +11 -0
- package/dist/components/Grid.d.ts.map +1 -0
- package/dist/components/Grid.js +32 -0
- package/dist/components/Grid.js.map +1 -0
- package/dist/components/Heading.d.ts +9 -0
- package/dist/components/Heading.d.ts.map +1 -0
- package/dist/components/Heading.js +50 -0
- package/dist/components/Heading.js.map +1 -0
- package/dist/components/HoloFx.d.ts +32 -0
- package/dist/components/HoloFx.d.ts.map +1 -0
- package/dist/components/HoloFx.js +90 -0
- package/dist/components/HoloFx.js.map +1 -0
- package/dist/components/HoloFx.module.scss +32 -0
- package/dist/components/Hover.d.ts +14 -0
- package/dist/components/Hover.d.ts.map +1 -0
- package/dist/components/Hover.js +99 -0
- package/dist/components/Hover.js.map +1 -0
- package/dist/components/Hover.module.scss +12 -0
- package/dist/components/HoverCard.d.ts +5 -0
- package/dist/components/HoverCard.d.ts.map +1 -0
- package/dist/components/HoverCard.js +10 -0
- package/dist/components/HoverCard.js.map +1 -0
- package/dist/components/HoverCard.module.scss +12 -0
- package/dist/components/Icon.d.ts +18 -0
- package/dist/components/Icon.d.ts.map +1 -0
- package/dist/components/Icon.js +35 -0
- package/dist/components/Icon.js.map +1 -0
- package/dist/components/Icon.module.scss +19 -0
- package/dist/components/IconButton.d.ts +23 -0
- package/dist/components/IconButton.d.ts.map +1 -0
- package/dist/components/IconButton.js +23 -0
- package/dist/components/IconButton.js.map +1 -0
- package/dist/components/IconButton.module.scss +34 -0
- package/dist/components/InfiniteScroll.d.ts +16 -0
- package/dist/components/InfiniteScroll.d.ts.map +1 -0
- package/dist/components/InfiniteScroll.js +52 -0
- package/dist/components/InfiniteScroll.js.map +1 -0
- package/dist/components/InlineCode.d.ts +10 -0
- package/dist/components/InlineCode.d.ts.map +1 -0
- package/dist/components/InlineCode.js +12 -0
- package/dist/components/InlineCode.js.map +1 -0
- package/dist/components/InlineCode.module.scss +5 -0
- package/dist/components/Input.d.ts +24 -0
- package/dist/components/Input.d.ts.map +1 -0
- package/dist/components/Input.js +82 -0
- package/dist/components/Input.js.map +1 -0
- package/dist/components/Input.module.scss +196 -0
- package/dist/components/InteractiveDetails.d.ts +15 -0
- package/dist/components/InteractiveDetails.d.ts.map +1 -0
- package/dist/components/InteractiveDetails.js +10 -0
- package/dist/components/InteractiveDetails.js.map +1 -0
- package/dist/components/Kbd.d.ts +12 -0
- package/dist/components/Kbd.d.ts.map +1 -0
- package/dist/components/Kbd.js +7 -0
- package/dist/components/Kbd.js.map +1 -0
- package/dist/components/LetterFx.d.ts +13 -0
- package/dist/components/LetterFx.d.ts.map +1 -0
- package/dist/components/LetterFx.js +80 -0
- package/dist/components/LetterFx.js.map +1 -0
- package/dist/components/Line.d.ts +9 -0
- package/dist/components/Line.d.ts.map +1 -0
- package/dist/components/Line.js +10 -0
- package/dist/components/Line.js.map +1 -0
- package/dist/components/List.d.ts +11 -0
- package/dist/components/List.d.ts.map +1 -0
- package/dist/components/List.js +13 -0
- package/dist/components/List.js.map +1 -0
- package/dist/components/List.module.scss +5 -0
- package/dist/components/ListItem.d.ts +10 -0
- package/dist/components/ListItem.d.ts.map +1 -0
- package/dist/components/ListItem.js +13 -0
- package/dist/components/ListItem.js.map +1 -0
- package/dist/components/Logo.d.ts +18 -0
- package/dist/components/Logo.d.ts.map +1 -0
- package/dist/components/Logo.js +99 -0
- package/dist/components/Logo.js.map +1 -0
- package/dist/components/LogoCloud.d.ts +14 -0
- package/dist/components/LogoCloud.d.ts.map +1 -0
- package/dist/components/LogoCloud.js +38 -0
- package/dist/components/LogoCloud.js.map +1 -0
- package/dist/components/LogoCloud.module.scss +42 -0
- package/dist/components/Mask.d.ts +15 -0
- package/dist/components/Mask.d.ts.map +1 -0
- package/dist/components/Mask.js +107 -0
- package/dist/components/Mask.js.map +1 -0
- package/dist/components/Mask.module.scss +8 -0
- package/dist/components/MasonryGrid.d.ts +22 -0
- package/dist/components/MasonryGrid.d.ts.map +1 -0
- package/dist/components/MasonryGrid.js +53 -0
- package/dist/components/MasonryGrid.js.map +1 -0
- package/dist/components/MasonryGrid.module.scss +199 -0
- package/dist/components/MatrixFx.d.ts +27 -0
- package/dist/components/MatrixFx.d.ts.map +1 -0
- package/dist/components/MatrixFx.js +799 -0
- package/dist/components/MatrixFx.js.map +1 -0
- package/dist/components/Media.d.ts +26 -0
- package/dist/components/Media.d.ts.map +1 -0
- package/dist/components/Media.js +112 -0
- package/dist/components/Media.js.map +1 -0
- package/dist/components/Modal.d.ts +11 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/Modal.js +72 -0
- package/dist/components/Modal.js.map +1 -0
- package/dist/components/NavIcon.d.ts +11 -0
- package/dist/components/NavIcon.d.ts.map +1 -0
- package/dist/components/NavIcon.js +11 -0
- package/dist/components/NavIcon.js.map +1 -0
- package/dist/components/NavIcon.module.scss +25 -0
- package/dist/components/NumberInput.d.ts +13 -0
- package/dist/components/NumberInput.d.ts.map +1 -0
- package/dist/components/NumberInput.js +44 -0
- package/dist/components/NumberInput.js.map +1 -0
- package/dist/components/NumberInput.module.scss +18 -0
- package/dist/components/OTPInput.d.ts +13 -0
- package/dist/components/OTPInput.d.ts.map +1 -0
- package/dist/components/OTPInput.js +71 -0
- package/dist/components/OTPInput.js.map +1 -0
- package/dist/components/OTPInput.module.scss +26 -0
- package/dist/components/OgCard.d.ts +34 -0
- package/dist/components/OgCard.d.ts.map +1 -0
- package/dist/components/OgCard.js +102 -0
- package/dist/components/OgCard.js.map +1 -0
- package/dist/components/Option.d.ts +21 -0
- package/dist/components/Option.d.ts.map +1 -0
- package/dist/components/Option.js +93 -0
- package/dist/components/Option.js.map +1 -0
- package/dist/components/Option.module.scss +47 -0
- package/dist/components/Particle.d.ts +21 -0
- package/dist/components/Particle.d.ts.map +1 -0
- package/dist/components/Particle.js +140 -0
- package/dist/components/Particle.js.map +1 -0
- package/dist/components/PasswordInput.d.ts +4 -0
- package/dist/components/PasswordInput.d.ts.map +1 -0
- package/dist/components/PasswordInput.js +12 -0
- package/dist/components/PasswordInput.js.map +1 -0
- package/dist/components/ProgressBar.d.ts +15 -0
- package/dist/components/ProgressBar.d.ts.map +1 -0
- package/dist/components/ProgressBar.js +12 -0
- package/dist/components/ProgressBar.js.map +1 -0
- package/dist/components/Pulse.d.ts +13 -0
- package/dist/components/Pulse.d.ts.map +1 -0
- package/dist/components/Pulse.js +11 -0
- package/dist/components/Pulse.js.map +1 -0
- package/dist/components/Pulse.module.scss +22 -0
- package/dist/components/RadioButton.d.ts +15 -0
- package/dist/components/RadioButton.d.ts.map +1 -0
- package/dist/components/RadioButton.js +45 -0
- package/dist/components/RadioButton.js.map +1 -0
- package/dist/components/RevealFx.d.ts +16 -0
- package/dist/components/RevealFx.d.ts.map +1 -0
- package/dist/components/RevealFx.js +83 -0
- package/dist/components/RevealFx.js.map +1 -0
- package/dist/components/RevealFx.module.scss +27 -0
- package/dist/components/Row.d.ts +7 -0
- package/dist/components/Row.d.ts.map +1 -0
- package/dist/components/Row.js +10 -0
- package/dist/components/Row.js.map +1 -0
- package/dist/components/ScrollContainer.d.ts +9 -0
- package/dist/components/ScrollContainer.d.ts.map +1 -0
- package/dist/components/ScrollContainer.js +67 -0
- package/dist/components/ScrollContainer.js.map +1 -0
- package/dist/components/ScrollLock.d.ts +8 -0
- package/dist/components/ScrollLock.d.ts.map +1 -0
- package/dist/components/ScrollLock.js +112 -0
- package/dist/components/ScrollLock.js.map +1 -0
- package/dist/components/ScrollToTop.d.ts +7 -0
- package/dist/components/ScrollToTop.d.ts.map +1 -0
- package/dist/components/ScrollToTop.js +24 -0
- package/dist/components/ScrollToTop.js.map +1 -0
- package/dist/components/ScrollToTop.module.scss +11 -0
- package/dist/components/Scroller.d.ts +14 -0
- package/dist/components/Scroller.d.ts.map +1 -0
- package/dist/components/Scroller.js +100 -0
- package/dist/components/Scroller.js.map +1 -0
- package/dist/components/Scroller.module.scss +20 -0
- package/dist/components/SegmentedControl.d.ts +18 -0
- package/dist/components/SegmentedControl.d.ts.map +1 -0
- package/dist/components/SegmentedControl.js +70 -0
- package/dist/components/SegmentedControl.js.map +1 -0
- package/dist/components/Select.d.ts +19 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/Select.js +170 -0
- package/dist/components/Select.js.map +1 -0
- package/dist/components/ServerFlex.d.ts +12 -0
- package/dist/components/ServerFlex.d.ts.map +1 -0
- package/dist/components/ServerFlex.js +282 -0
- package/dist/components/ServerFlex.js.map +1 -0
- package/dist/components/ServerGrid.d.ts +13 -0
- package/dist/components/ServerGrid.d.ts.map +1 -0
- package/dist/components/ServerGrid.js +207 -0
- package/dist/components/ServerGrid.js.map +1 -0
- package/dist/components/SharedInteractiveStyles.module.scss +91 -0
- package/dist/components/ShineFx.d.ts +13 -0
- package/dist/components/ShineFx.d.ts.map +1 -0
- package/dist/components/ShineFx.js +19 -0
- package/dist/components/ShineFx.js.map +1 -0
- package/dist/components/ShineFx.module.scss +50 -0
- package/dist/components/Skeleton.d.ts +13 -0
- package/dist/components/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton.js +12 -0
- package/dist/components/Skeleton.js.map +1 -0
- package/dist/components/Skeleton.module.scss +120 -0
- package/dist/components/Slider.d.ts +17 -0
- package/dist/components/Slider.d.ts.map +1 -0
- package/dist/components/Slider.js +29 -0
- package/dist/components/Slider.js.map +1 -0
- package/dist/components/Slider.module.scss +75 -0
- package/dist/components/SmartLink.d.ts +18 -0
- package/dist/components/SmartLink.d.ts.map +1 -0
- package/dist/components/SmartLink.js +36 -0
- package/dist/components/SmartLink.js.map +1 -0
- package/dist/components/Spinner.d.ts +11 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +11 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/Spinner.module.scss +71 -0
- package/dist/components/SplitView.d.ts +16 -0
- package/dist/components/SplitView.d.ts.map +1 -0
- package/dist/components/SplitView.js +80 -0
- package/dist/components/SplitView.js.map +1 -0
- package/dist/components/SplitView.module.scss +18 -0
- package/dist/components/StatusIndicator.d.ts +12 -0
- package/dist/components/StatusIndicator.d.ts.map +1 -0
- package/dist/components/StatusIndicator.js +11 -0
- package/dist/components/StatusIndicator.js.map +1 -0
- package/dist/components/StatusIndicator.module.scss +72 -0
- package/dist/components/StyleOverlay.d.ts +10 -0
- package/dist/components/StyleOverlay.d.ts.map +1 -0
- package/dist/components/StyleOverlay.js +17 -0
- package/dist/components/StyleOverlay.js.map +1 -0
- package/dist/components/StyleOverlay.module.scss +18 -0
- package/dist/components/StylePanel.d.ts +8 -0
- package/dist/components/StylePanel.d.ts.map +1 -0
- package/dist/components/StylePanel.js +193 -0
- package/dist/components/StylePanel.js.map +1 -0
- package/dist/components/StylePanel.module.scss +127 -0
- package/dist/components/Swiper.d.ts +17 -0
- package/dist/components/Swiper.d.ts.map +1 -0
- package/dist/components/Swiper.js +170 -0
- package/dist/components/Swiper.js.map +1 -0
- package/dist/components/Swiper.module.scss +31 -0
- package/dist/components/Switch.d.ts +17 -0
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/components/Switch.js +33 -0
- package/dist/components/Switch.js.map +1 -0
- package/dist/components/Switch.module.scss +102 -0
- package/dist/components/Table.d.ts +16 -0
- package/dist/components/Table.d.ts.map +1 -0
- package/dist/components/Table.js +44 -0
- package/dist/components/Table.js.map +1 -0
- package/dist/components/Table.module.scss +5 -0
- package/dist/components/Tag.d.ts +16 -0
- package/dist/components/Tag.d.ts.map +1 -0
- package/dist/components/Tag.js +14 -0
- package/dist/components/Tag.js.map +1 -0
- package/dist/components/Tag.module.scss +10 -0
- package/dist/components/TagInput.d.ts +9 -0
- package/dist/components/TagInput.d.ts.map +1 -0
- package/dist/components/TagInput.js +36 -0
- package/dist/components/TagInput.js.map +1 -0
- package/dist/components/Text.d.ts +9 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Text.js +50 -0
- package/dist/components/Text.js.map +1 -0
- package/dist/components/Textarea.d.ts +24 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +109 -0
- package/dist/components/Textarea.js.map +1 -0
- package/dist/components/ThemeInit.d.ts +20 -0
- package/dist/components/ThemeInit.d.ts.map +1 -0
- package/dist/components/ThemeInit.js +46 -0
- package/dist/components/ThemeInit.js.map +1 -0
- package/dist/components/ThemeSwitcher.d.ts +4 -0
- package/dist/components/ThemeSwitcher.d.ts.map +1 -0
- package/dist/components/ThemeSwitcher.js +21 -0
- package/dist/components/ThemeSwitcher.js.map +1 -0
- package/dist/components/TiltFx.d.ts +10 -0
- package/dist/components/TiltFx.d.ts.map +1 -0
- package/dist/components/TiltFx.js +67 -0
- package/dist/components/TiltFx.js.map +1 -0
- package/dist/components/TiltFx.module.scss +11 -0
- package/dist/components/Timeline.d.ts +18 -0
- package/dist/components/Timeline.d.ts.map +1 -0
- package/dist/components/Timeline.js +72 -0
- package/dist/components/Timeline.js.map +1 -0
- package/dist/components/Toast.d.ts +12 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/Toast.js +29 -0
- package/dist/components/Toast.js.map +1 -0
- package/dist/components/Toast.module.scss +11 -0
- package/dist/components/Toaster.d.ts +19 -0
- package/dist/components/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster.js +47 -0
- package/dist/components/Toaster.js.map +1 -0
- package/dist/components/Toaster.module.scss +58 -0
- package/dist/components/ToggleButton.d.ts +25 -0
- package/dist/components/ToggleButton.d.ts.map +1 -0
- package/dist/components/ToggleButton.js +20 -0
- package/dist/components/ToggleButton.js.map +1 -0
- package/dist/components/ToggleButton.module.scss +73 -0
- package/dist/components/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip.js +15 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/Tooltip.module.scss +14 -0
- package/dist/components/TypeFx.d.ts +15 -0
- package/dist/components/TypeFx.d.ts.map +1 -0
- package/dist/components/TypeFx.js +84 -0
- package/dist/components/TypeFx.js.map +1 -0
- package/dist/components/User.d.ts +16 -0
- package/dist/components/User.d.ts.map +1 -0
- package/dist/components/User.js +13 -0
- package/dist/components/User.js.map +1 -0
- package/dist/components/UserMenu.d.ts +13 -0
- package/dist/components/UserMenu.d.ts.map +1 -0
- package/dist/components/UserMenu.js +13 -0
- package/dist/components/UserMenu.js.map +1 -0
- package/dist/components/UserMenu.module.scss +14 -0
- package/dist/components/WeatherFx.d.ts +18 -0
- package/dist/components/WeatherFx.d.ts.map +1 -0
- package/dist/components/WeatherFx.js +864 -0
- package/dist/components/WeatherFx.js.map +1 -0
- package/dist/components/index.d.ts +121 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +121 -0
- package/dist/components/index.js.map +1 -0
- package/dist/contexts/DataThemeProvider.d.ts +26 -0
- package/dist/contexts/DataThemeProvider.d.ts.map +1 -0
- package/dist/contexts/DataThemeProvider.js +103 -0
- package/dist/contexts/DataThemeProvider.js.map +1 -0
- package/dist/contexts/IconProvider.d.ts +12 -0
- package/dist/contexts/IconProvider.d.ts.map +1 -0
- package/dist/contexts/IconProvider.js +20 -0
- package/dist/contexts/IconProvider.js.map +1 -0
- package/dist/contexts/LayoutProvider.d.ts +27 -0
- package/dist/contexts/LayoutProvider.d.ts.map +1 -0
- package/dist/contexts/LayoutProvider.js +96 -0
- package/dist/contexts/LayoutProvider.js.map +1 -0
- package/dist/contexts/ThemeProvider.d.ts +49 -0
- package/dist/contexts/ThemeProvider.d.ts.map +1 -0
- package/dist/contexts/ThemeProvider.js +285 -0
- package/dist/contexts/ThemeProvider.js.map +1 -0
- package/dist/contexts/ToastProvider.d.ts +24 -0
- package/dist/contexts/ToastProvider.d.ts.map +1 -0
- package/dist/contexts/ToastProvider.js +34 -0
- package/dist/contexts/ToastProvider.js.map +1 -0
- package/dist/contexts/index.d.ts +6 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/contexts/index.js +6 -0
- package/dist/contexts/index.js.map +1 -0
- package/dist/css/styles.css +1 -0
- package/dist/css/styles.css.map +1 -0
- package/dist/css/tokens.css +1 -0
- package/dist/css/tokens.css.map +1 -0
- package/dist/data/emoji-data.json +16062 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useArrowNavigation.d.ts +23 -0
- package/dist/hooks/useArrowNavigation.d.ts.map +1 -0
- package/dist/hooks/useArrowNavigation.js +205 -0
- package/dist/hooks/useArrowNavigation.js.map +1 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDebounce.js +15 -0
- package/dist/hooks/useDebounce.js.map +1 -0
- package/dist/hooks/useFetchOg.d.ts +17 -0
- package/dist/hooks/useFetchOg.d.ts.map +1 -0
- package/dist/hooks/useFetchOg.js +63 -0
- package/dist/hooks/useFetchOg.js.map +1 -0
- package/dist/hooks/useHeadingLinks.d.ts +6 -0
- package/dist/hooks/useHeadingLinks.d.ts.map +1 -0
- package/dist/hooks/useHeadingLinks.js +17 -0
- package/dist/hooks/useHeadingLinks.js.map +1 -0
- package/dist/hooks/useInViewport.d.ts +3 -0
- package/dist/hooks/useInViewport.d.ts.map +1 -0
- package/dist/hooks/useInViewport.js +19 -0
- package/dist/hooks/useInViewport.js.map +1 -0
- package/dist/hooks/useReducedMotion.d.ts +8 -0
- package/dist/hooks/useReducedMotion.d.ts.map +1 -0
- package/dist/hooks/useReducedMotion.js +44 -0
- package/dist/hooks/useReducedMotion.js.map +1 -0
- package/dist/hooks/useResponsiveClasses.d.ts +9 -0
- package/dist/hooks/useResponsiveClasses.d.ts.map +1 -0
- package/dist/hooks/useResponsiveClasses.js +250 -0
- package/dist/hooks/useResponsiveClasses.js.map +1 -0
- package/dist/hooks/useStreamingData.d.ts +24 -0
- package/dist/hooks/useStreamingData.d.ts.map +1 -0
- package/dist/hooks/useStreamingData.js +89 -0
- package/dist/hooks/useStreamingData.js.map +1 -0
- package/dist/hooks/useStreamingViewport.d.ts +25 -0
- package/dist/hooks/useStreamingViewport.d.ts.map +1 -0
- package/dist/hooks/useStreamingViewport.js +120 -0
- package/dist/hooks/useStreamingViewport.js.map +1 -0
- package/dist/icons.d.ts +5 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +56 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces.d.ts +177 -0
- package/dist/interfaces.d.ts.map +1 -0
- package/dist/interfaces.js +2 -0
- package/dist/interfaces.js.map +1 -0
- package/dist/modules/code/CodeBlock.d.ts +6 -0
- package/dist/modules/code/CodeBlock.d.ts.map +1 -0
- package/dist/modules/code/CodeBlock.impl.d.ts +34 -0
- package/dist/modules/code/CodeBlock.impl.d.ts.map +1 -0
- package/dist/modules/code/CodeBlock.impl.js +497 -0
- package/dist/modules/code/CodeBlock.impl.js.map +1 -0
- package/dist/modules/code/CodeBlock.js +14 -0
- package/dist/modules/code/CodeBlock.js.map +1 -0
- package/dist/modules/code/CodeBlock.module.scss +43 -0
- package/dist/modules/code/CodeDiff.css +175 -0
- package/dist/modules/code/CodeHighlight.css +116 -0
- package/dist/modules/code/LineNumber.css +34 -0
- package/dist/modules/data/BarChart.d.ts +6 -0
- package/dist/modules/data/BarChart.d.ts.map +1 -0
- package/dist/modules/data/BarChart.impl.d.ts +12 -0
- package/dist/modules/data/BarChart.impl.d.ts.map +1 -0
- package/dist/modules/data/BarChart.impl.js +129 -0
- package/dist/modules/data/BarChart.impl.js.map +1 -0
- package/dist/modules/data/BarChart.js +14 -0
- package/dist/modules/data/BarChart.js.map +1 -0
- package/dist/modules/data/ChartHeader.d.ts +14 -0
- package/dist/modules/data/ChartHeader.d.ts.map +1 -0
- package/dist/modules/data/ChartHeader.js +116 -0
- package/dist/modules/data/ChartHeader.js.map +1 -0
- package/dist/modules/data/ChartStatus.d.ts +10 -0
- package/dist/modules/data/ChartStatus.d.ts.map +1 -0
- package/dist/modules/data/ChartStatus.js +10 -0
- package/dist/modules/data/ChartStatus.js.map +1 -0
- package/dist/modules/data/DataTooltip.d.ts +16 -0
- package/dist/modules/data/DataTooltip.d.ts.map +1 -0
- package/dist/modules/data/DataTooltip.js +16 -0
- package/dist/modules/data/DataTooltip.js.map +1 -0
- package/dist/modules/data/Gauge.module.css +27 -0
- package/dist/modules/data/Gradient.d.ts +32 -0
- package/dist/modules/data/Gradient.d.ts.map +1 -0
- package/dist/modules/data/Gradient.js +56 -0
- package/dist/modules/data/Gradient.js.map +1 -0
- package/dist/modules/data/Legend.d.ts +15 -0
- package/dist/modules/data/Legend.d.ts.map +1 -0
- package/dist/modules/data/Legend.js +69 -0
- package/dist/modules/data/Legend.js.map +1 -0
- package/dist/modules/data/LineBarChart.d.ts +6 -0
- package/dist/modules/data/LineBarChart.d.ts.map +1 -0
- package/dist/modules/data/LineBarChart.impl.d.ts +12 -0
- package/dist/modules/data/LineBarChart.impl.d.ts.map +1 -0
- package/dist/modules/data/LineBarChart.impl.js +124 -0
- package/dist/modules/data/LineBarChart.impl.js.map +1 -0
- package/dist/modules/data/LineBarChart.js +14 -0
- package/dist/modules/data/LineBarChart.js.map +1 -0
- package/dist/modules/data/LineChart.d.ts +6 -0
- package/dist/modules/data/LineChart.d.ts.map +1 -0
- package/dist/modules/data/LineChart.impl.d.ts +17 -0
- package/dist/modules/data/LineChart.impl.d.ts.map +1 -0
- package/dist/modules/data/LineChart.impl.js +137 -0
- package/dist/modules/data/LineChart.impl.js.map +1 -0
- package/dist/modules/data/LineChart.js +14 -0
- package/dist/modules/data/LineChart.js.map +1 -0
- package/dist/modules/data/LinearGauge.d.ts +18 -0
- package/dist/modules/data/LinearGauge.d.ts.map +1 -0
- package/dist/modules/data/LinearGauge.js +78 -0
- package/dist/modules/data/LinearGauge.js.map +1 -0
- package/dist/modules/data/PieChart.d.ts +6 -0
- package/dist/modules/data/PieChart.d.ts.map +1 -0
- package/dist/modules/data/PieChart.impl.d.ts +18 -0
- package/dist/modules/data/PieChart.impl.d.ts.map +1 -0
- package/dist/modules/data/PieChart.impl.js +100 -0
- package/dist/modules/data/PieChart.impl.js.map +1 -0
- package/dist/modules/data/PieChart.js +14 -0
- package/dist/modules/data/PieChart.js.map +1 -0
- package/dist/modules/data/RadialGauge.d.ts +25 -0
- package/dist/modules/data/RadialGauge.d.ts.map +1 -0
- package/dist/modules/data/RadialGauge.js +94 -0
- package/dist/modules/data/RadialGauge.js.map +1 -0
- package/dist/modules/data/Swatch.d.ts +9 -0
- package/dist/modules/data/Swatch.d.ts.map +1 -0
- package/dist/modules/data/Swatch.js +44 -0
- package/dist/modules/data/Swatch.js.map +1 -0
- package/dist/modules/data/index.d.ts +14 -0
- package/dist/modules/data/index.d.ts.map +1 -0
- package/dist/modules/data/index.js +14 -0
- package/dist/modules/data/index.js.map +1 -0
- package/dist/modules/data/interfaces.d.ts +53 -0
- package/dist/modules/data/interfaces.d.ts.map +1 -0
- package/dist/modules/data/interfaces.js +2 -0
- package/dist/modules/data/interfaces.js.map +1 -0
- package/dist/modules/data/rechartsLoader.d.ts +2 -0
- package/dist/modules/data/rechartsLoader.d.ts.map +1 -0
- package/dist/modules/data/rechartsLoader.js +15 -0
- package/dist/modules/data/rechartsLoader.js.map +1 -0
- package/dist/modules/data/utils/colorDistribution.d.ts +10 -0
- package/dist/modules/data/utils/colorDistribution.d.ts.map +1 -0
- package/dist/modules/data/utils/colorDistribution.js +46 -0
- package/dist/modules/data/utils/colorDistribution.js.map +1 -0
- package/dist/modules/data/utils/formatDate.d.ts +12 -0
- package/dist/modules/data/utils/formatDate.d.ts.map +1 -0
- package/dist/modules/data/utils/formatDate.js +30 -0
- package/dist/modules/data/utils/formatDate.js.map +1 -0
- package/dist/modules/index.d.ts +6 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +7 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/media/MediaUpload.d.ts +6 -0
- package/dist/modules/media/MediaUpload.d.ts.map +1 -0
- package/dist/modules/media/MediaUpload.impl.d.ts +24 -0
- package/dist/modules/media/MediaUpload.impl.d.ts.map +1 -0
- package/dist/modules/media/MediaUpload.impl.js +106 -0
- package/dist/modules/media/MediaUpload.impl.js.map +1 -0
- package/dist/modules/media/MediaUpload.js +14 -0
- package/dist/modules/media/MediaUpload.js.map +1 -0
- package/dist/modules/media/MediaUpload.module.scss +24 -0
- package/dist/modules/navigation/HeadingLink.d.ts +11 -0
- package/dist/modules/navigation/HeadingLink.d.ts.map +1 -0
- package/dist/modules/navigation/HeadingLink.js +39 -0
- package/dist/modules/navigation/HeadingLink.js.map +1 -0
- package/dist/modules/navigation/HeadingLink.module.scss +15 -0
- package/dist/modules/navigation/HeadingNav.d.ts +8 -0
- package/dist/modules/navigation/HeadingNav.d.ts.map +1 -0
- package/dist/modules/navigation/HeadingNav.js +168 -0
- package/dist/modules/navigation/HeadingNav.js.map +1 -0
- package/dist/modules/navigation/Kbar.d.ts +34 -0
- package/dist/modules/navigation/Kbar.d.ts.map +1 -0
- package/dist/modules/navigation/Kbar.js +192 -0
- package/dist/modules/navigation/Kbar.js.map +1 -0
- package/dist/modules/navigation/Kbar.module.scss +60 -0
- package/dist/modules/navigation/MegaMenu.d.ts +28 -0
- package/dist/modules/navigation/MegaMenu.d.ts.map +1 -0
- package/dist/modules/navigation/MegaMenu.js +182 -0
- package/dist/modules/navigation/MegaMenu.js.map +1 -0
- package/dist/modules/navigation/MegaMenu.module.scss +14 -0
- package/dist/modules/navigation/MobileMegaMenu.d.ts +28 -0
- package/dist/modules/navigation/MobileMegaMenu.d.ts.map +1 -0
- package/dist/modules/navigation/MobileMegaMenu.js +22 -0
- package/dist/modules/navigation/MobileMegaMenu.js.map +1 -0
- package/dist/modules/navigation/index.d.ts +6 -0
- package/dist/modules/navigation/index.d.ts.map +1 -0
- package/dist/modules/navigation/index.js +6 -0
- package/dist/modules/navigation/index.js.map +1 -0
- package/dist/modules/seo/Meta.d.ts +29 -0
- package/dist/modules/seo/Meta.d.ts.map +1 -0
- package/dist/modules/seo/Meta.js +53 -0
- package/dist/modules/seo/Meta.js.map +1 -0
- package/dist/modules/seo/Schema.d.ts +19 -0
- package/dist/modules/seo/Schema.d.ts.map +1 -0
- package/dist/modules/seo/Schema.js +65 -0
- package/dist/modules/seo/Schema.js.map +1 -0
- package/dist/package.json +130 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +2 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/og-utils.d.ts +20 -0
- package/dist/server/og-utils.d.ts.map +1 -0
- package/dist/server/og-utils.js +125 -0
- package/dist/server/og-utils.js.map +1 -0
- package/dist/styles/background.scss +423 -0
- package/dist/styles/border.scss +546 -0
- package/dist/styles/breakpoints.scss +28 -0
- package/dist/styles/color.scss +183 -0
- package/dist/styles/display.scss +391 -0
- package/dist/styles/flex.scss +518 -0
- package/dist/styles/global.scss +36 -0
- package/dist/styles/grid.scss +293 -0
- package/dist/styles/index.scss +14 -0
- package/dist/styles/position.scss +1549 -0
- package/dist/styles/shadow.scss +19 -0
- package/dist/styles/size.scss +53 -0
- package/dist/styles/spacing.scss +1505 -0
- package/dist/styles/typography.scss +215 -0
- package/dist/styles/utilities.scss +23 -0
- package/dist/test/dialogTestUtils.d.ts +2 -0
- package/dist/test/dialogTestUtils.d.ts.map +1 -0
- package/dist/test/dialogTestUtils.js +12 -0
- package/dist/test/dialogTestUtils.js.map +1 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/test/setup.js +59 -0
- package/dist/test/setup.js.map +1 -0
- package/dist/tokens/border.scss +95 -0
- package/dist/tokens/data.scss +107 -0
- package/dist/tokens/function.scss +742 -0
- package/dist/tokens/index.scss +8 -0
- package/dist/tokens/layout.scss +275 -0
- package/dist/tokens/scheme.scss +352 -0
- package/dist/tokens/shadow.scss +7 -0
- package/dist/tokens/theme.scss +639 -0
- package/dist/tokens/typography.scss +116 -0
- package/dist/types.d.ts +25 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +16 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/MissingDependency.d.ts +7 -0
- package/dist/utils/MissingDependency.d.ts.map +1 -0
- package/dist/utils/MissingDependency.js +6 -0
- package/dist/utils/MissingDependency.js.map +1 -0
- package/dist/utils/devLogger.d.ts +13 -0
- package/dist/utils/devLogger.d.ts.map +1 -0
- package/dist/utils/devLogger.js +34 -0
- package/dist/utils/devLogger.js.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +155 -0
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState, forwardRef, useEffect, useCallback } from "react";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { Flex, Text, Button, Grid, SegmentedControl, IconButton, RevealFx, NumberInput, DropdownWrapper, Option, Column, Icon, Row, ArrowNavigation, } from ".";
|
|
6
|
+
import styles from "./DatePicker.module.scss";
|
|
7
|
+
const DatePicker = forwardRef(({ value, onChange, timePicker = false, previousMonth = true, nextMonth = true, minDate, maxDate, defaultDate, defaultTime, size = "m", isNested = false, className, style, currentMonth: propCurrentMonth, currentYear: propCurrentYear, onMonthChange, range, onHover, autoFocus = false, isOpen, ...rest }, ref) => {
|
|
8
|
+
const today = new Date();
|
|
9
|
+
const [selectedDate, setSelectedDate] = useState(value);
|
|
10
|
+
const [selectedTime, setSelectedTime] = useState(defaultTime);
|
|
11
|
+
const [isPM, setIsPM] = useState(defaultTime?.hours ? defaultTime.hours >= 12 : false);
|
|
12
|
+
const [isTimeSelector, setIsTimeSelector] = useState(false);
|
|
13
|
+
const [isTransitioning, setIsTransitioning] = useState(true);
|
|
14
|
+
const [isMonthOpen, setIsMonthOpen] = useState(false);
|
|
15
|
+
const [isYearOpen, setIsYearOpen] = useState(false);
|
|
16
|
+
const [isReady, setIsReady] = useState(false);
|
|
17
|
+
const [hoveredDate, setHoveredDate] = useState(null);
|
|
18
|
+
const [currentMonth, setCurrentMonth] = useState(value ? value.getMonth() : today.getMonth());
|
|
19
|
+
const [currentYear, setCurrentYear] = useState(value ? value.getFullYear() : today.getFullYear());
|
|
20
|
+
// Calculate the initial focused index based on the selected date
|
|
21
|
+
const calculateInitialFocusedIndex = useCallback(() => {
|
|
22
|
+
if (!selectedDate || isTimeSelector)
|
|
23
|
+
return 0;
|
|
24
|
+
// Find the exact button that matches the selected date
|
|
25
|
+
const container = document.querySelector('[data-role="dropdown-portal"]') ||
|
|
26
|
+
document.querySelector("[data-dropdown-id]") ||
|
|
27
|
+
document.activeElement?.closest('[data-role="dropdown-portal"]') ||
|
|
28
|
+
document.activeElement?.closest('[data-role="dropdown-wrapper"]') ||
|
|
29
|
+
document.body;
|
|
30
|
+
if (container) {
|
|
31
|
+
const enabledButtons = Array.from(container.querySelectorAll("button[data-value]:not([disabled])"));
|
|
32
|
+
const selectedButtonIndex = enabledButtons.findIndex((button) => {
|
|
33
|
+
const buttonDate = new Date(button.getAttribute("data-value") || "");
|
|
34
|
+
return buttonDate.getTime() === selectedDate.getTime();
|
|
35
|
+
});
|
|
36
|
+
if (selectedButtonIndex !== -1) {
|
|
37
|
+
return selectedButtonIndex;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
// Fallback to day-based calculation
|
|
41
|
+
const selectedDay = selectedDate.getDate();
|
|
42
|
+
const firstDayOfWeek = new Date(currentYear, currentMonth, 1).getDay();
|
|
43
|
+
const offset = firstDayOfWeek;
|
|
44
|
+
const dayIndex = offset + selectedDay - 1;
|
|
45
|
+
return Math.max(0, dayIndex);
|
|
46
|
+
}, [selectedDate, isTimeSelector, currentMonth, currentYear]);
|
|
47
|
+
// Calculate the total number of days to display in the grid
|
|
48
|
+
const calculateTotalDays = () => {
|
|
49
|
+
const daysInMonth = new Date(currentYear, currentMonth + 1, 0).getDate();
|
|
50
|
+
// Since we're only selecting enabled buttons (current month days),
|
|
51
|
+
// the total is just the number of days in the current month
|
|
52
|
+
return daysInMonth;
|
|
53
|
+
};
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (typeof propCurrentMonth === "number") {
|
|
56
|
+
setCurrentMonth(propCurrentMonth);
|
|
57
|
+
}
|
|
58
|
+
if (typeof propCurrentYear === "number") {
|
|
59
|
+
setCurrentYear(propCurrentYear);
|
|
60
|
+
}
|
|
61
|
+
}, [propCurrentMonth, propCurrentYear]);
|
|
62
|
+
// Track if calendar is synced to selected value
|
|
63
|
+
const [isCalendarSynced, setIsCalendarSynced] = useState(false);
|
|
64
|
+
// Sync currentMonth/currentYear to value on mount and when value changes
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
// Reset calendar sync to ensure proper re-sync
|
|
67
|
+
setIsCalendarSynced(false);
|
|
68
|
+
if (value) {
|
|
69
|
+
setCurrentMonth(value.getMonth());
|
|
70
|
+
setCurrentYear(value.getFullYear());
|
|
71
|
+
// Small delay to ensure state updates are processed
|
|
72
|
+
const timer = setTimeout(() => {
|
|
73
|
+
setIsCalendarSynced(true);
|
|
74
|
+
}, 0);
|
|
75
|
+
return () => clearTimeout(timer);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
setIsCalendarSynced(true);
|
|
79
|
+
}
|
|
80
|
+
}, [value]);
|
|
81
|
+
// Additional sync effect that runs when the component becomes ready
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (isReady && value && !isCalendarSynced) {
|
|
84
|
+
setCurrentMonth(value.getMonth());
|
|
85
|
+
setCurrentYear(value.getFullYear());
|
|
86
|
+
setIsCalendarSynced(true);
|
|
87
|
+
}
|
|
88
|
+
}, [isReady, value, isCalendarSynced]);
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
setSelectedDate(value);
|
|
91
|
+
if (value) {
|
|
92
|
+
setSelectedTime({
|
|
93
|
+
hours: value.getHours(),
|
|
94
|
+
minutes: value.getMinutes(),
|
|
95
|
+
});
|
|
96
|
+
setIsPM(value.getHours() >= 12);
|
|
97
|
+
// Update current month/year to match the selected date
|
|
98
|
+
setCurrentMonth(value.getMonth());
|
|
99
|
+
setCurrentYear(value.getFullYear());
|
|
100
|
+
}
|
|
101
|
+
}, [value]);
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
const timer = setTimeout(() => {
|
|
104
|
+
setIsTransitioning(true);
|
|
105
|
+
setIsReady(true);
|
|
106
|
+
}, 100);
|
|
107
|
+
return () => clearTimeout(timer);
|
|
108
|
+
}, []);
|
|
109
|
+
// Effect to ensure proper highlighting when component mounts or selected date changes
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (selectedDate && !isTimeSelector && isReady) {
|
|
112
|
+
// Only highlight if the current month/year matches the selected date's month/year
|
|
113
|
+
if (selectedDate.getMonth() === currentMonth &&
|
|
114
|
+
selectedDate.getFullYear() === currentYear) {
|
|
115
|
+
// Small delay to ensure the DOM is ready
|
|
116
|
+
const timer = setTimeout(() => {
|
|
117
|
+
const container = document.querySelector('[data-role="dropdown-portal"]') ||
|
|
118
|
+
document.querySelector("[data-dropdown-id]") ||
|
|
119
|
+
document.activeElement?.closest('[data-role="dropdown-portal"]') ||
|
|
120
|
+
document.activeElement?.closest('[data-role="dropdown-wrapper"]') ||
|
|
121
|
+
document.body; // Fallback for standalone DatePicker
|
|
122
|
+
if (container) {
|
|
123
|
+
// Find the selected date button and focus it
|
|
124
|
+
const enabledButtons = Array.from(container.querySelectorAll("button[data-value]:not([disabled])"));
|
|
125
|
+
// Find the button that matches the selected date
|
|
126
|
+
const selectedButton = enabledButtons.find((button) => {
|
|
127
|
+
const buttonDate = new Date(button.getAttribute("data-value") || "");
|
|
128
|
+
return buttonDate.getTime() === selectedDate.getTime();
|
|
129
|
+
});
|
|
130
|
+
if (selectedButton) {
|
|
131
|
+
// Focus the button without scrolling
|
|
132
|
+
selectedButton.focus({ preventScroll: true });
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}, 50);
|
|
136
|
+
return () => clearTimeout(timer);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}, [selectedDate, isTimeSelector, isReady, currentMonth, currentYear, isOpen]);
|
|
140
|
+
const monthNames = [
|
|
141
|
+
"January",
|
|
142
|
+
"February",
|
|
143
|
+
"March",
|
|
144
|
+
"April",
|
|
145
|
+
"May",
|
|
146
|
+
"June",
|
|
147
|
+
"July",
|
|
148
|
+
"August",
|
|
149
|
+
"September",
|
|
150
|
+
"October",
|
|
151
|
+
"November",
|
|
152
|
+
"December",
|
|
153
|
+
];
|
|
154
|
+
const dayNames = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
155
|
+
const handleTimeToggle = (show) => {
|
|
156
|
+
setIsTransitioning(false);
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
setIsTimeSelector(show);
|
|
159
|
+
setIsTransitioning(true);
|
|
160
|
+
}, 400);
|
|
161
|
+
};
|
|
162
|
+
const handleDateSelect = (date) => {
|
|
163
|
+
const newDate = new Date(date);
|
|
164
|
+
if (timePicker && selectedDate && selectedTime) {
|
|
165
|
+
newDate.setHours(selectedTime.hours);
|
|
166
|
+
newDate.setMinutes(selectedTime.minutes);
|
|
167
|
+
}
|
|
168
|
+
setSelectedDate(newDate);
|
|
169
|
+
if (timePicker) {
|
|
170
|
+
handleTimeToggle(true);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
onChange?.(newDate);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const handleMonthChange = (increment) => {
|
|
177
|
+
if (onMonthChange) {
|
|
178
|
+
// Delegate to external handler
|
|
179
|
+
onMonthChange(increment);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
// Fallback to internal state management
|
|
183
|
+
const newMonth = currentMonth + increment;
|
|
184
|
+
if (newMonth < 0) {
|
|
185
|
+
setCurrentMonth(11); // December
|
|
186
|
+
setCurrentYear(currentYear - 1);
|
|
187
|
+
}
|
|
188
|
+
else if (newMonth > 11) {
|
|
189
|
+
setCurrentMonth(0); // January
|
|
190
|
+
setCurrentYear(currentYear + 1);
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
setCurrentMonth(newMonth);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
const handleMonthSelect = (monthIndex) => {
|
|
198
|
+
setCurrentMonth(monthIndex);
|
|
199
|
+
};
|
|
200
|
+
const handleYearSelect = (year) => {
|
|
201
|
+
setCurrentYear(year);
|
|
202
|
+
};
|
|
203
|
+
const generateYearOptions = () => {
|
|
204
|
+
const currentYearNum = new Date().getFullYear();
|
|
205
|
+
const minYear = minDate ? minDate.getFullYear() : currentYearNum - 10;
|
|
206
|
+
const maxYear = maxDate ? maxDate.getFullYear() : currentYearNum + 10;
|
|
207
|
+
const years = [];
|
|
208
|
+
for (let i = minYear; i <= maxYear; i++) {
|
|
209
|
+
years.push(i);
|
|
210
|
+
}
|
|
211
|
+
return years;
|
|
212
|
+
};
|
|
213
|
+
const isMonthDisabled = (monthIndex, year) => {
|
|
214
|
+
if (!minDate && !maxDate)
|
|
215
|
+
return false;
|
|
216
|
+
const startOfMonth = new Date(year, monthIndex, 1);
|
|
217
|
+
const endOfMonth = new Date(year, monthIndex + 1, 0); // Last day of month
|
|
218
|
+
// If the entire month is before the minimum date
|
|
219
|
+
if (minDate && endOfMonth < minDate)
|
|
220
|
+
return true;
|
|
221
|
+
// If the entire month is after the maximum date
|
|
222
|
+
if (maxDate && startOfMonth > maxDate)
|
|
223
|
+
return true;
|
|
224
|
+
return false;
|
|
225
|
+
};
|
|
226
|
+
const convert24to12 = (hour24) => {
|
|
227
|
+
if (hour24 === 0)
|
|
228
|
+
return 12;
|
|
229
|
+
if (hour24 > 12)
|
|
230
|
+
return hour24 - 12;
|
|
231
|
+
return hour24;
|
|
232
|
+
};
|
|
233
|
+
const handleTimeChange = (hours, minutes, pm = isPM) => {
|
|
234
|
+
if (!selectedDate)
|
|
235
|
+
return;
|
|
236
|
+
const newTime = {
|
|
237
|
+
hours: pm ? (hours === 12 ? 12 : hours + 12) : hours === 12 ? 0 : hours,
|
|
238
|
+
minutes,
|
|
239
|
+
};
|
|
240
|
+
setSelectedTime(newTime);
|
|
241
|
+
setIsPM(pm);
|
|
242
|
+
const newDate = new Date(selectedDate);
|
|
243
|
+
newDate.setHours(newTime.hours);
|
|
244
|
+
newDate.setMinutes(minutes);
|
|
245
|
+
onChange?.(newDate);
|
|
246
|
+
};
|
|
247
|
+
const isInRange = (date) => {
|
|
248
|
+
if (!range?.startDate)
|
|
249
|
+
return false;
|
|
250
|
+
if (!range?.endDate)
|
|
251
|
+
return false;
|
|
252
|
+
return date >= range.startDate && date <= range.endDate;
|
|
253
|
+
};
|
|
254
|
+
const renderCalendarGrid = () => {
|
|
255
|
+
const firstDay = new Date(currentYear, currentMonth, 1).getDay();
|
|
256
|
+
const daysInMonth = new Date(currentYear, currentMonth + 1, 0).getDate();
|
|
257
|
+
const daysInPrevMonth = new Date(currentYear, currentMonth, 0).getDate();
|
|
258
|
+
// Calculate total number of weeks needed
|
|
259
|
+
const totalDaysShown = firstDay + daysInMonth;
|
|
260
|
+
const numberOfWeeks = Math.ceil(totalDaysShown / 7);
|
|
261
|
+
const totalGridSpots = numberOfWeeks * 7;
|
|
262
|
+
const days = [];
|
|
263
|
+
// Previous month's days
|
|
264
|
+
for (let i = 0; i < firstDay; i++) {
|
|
265
|
+
const prevMonthDay = daysInPrevMonth - firstDay + i + 1;
|
|
266
|
+
days.push(_jsx(Flex, { width: size === "s" ? "32" : size === "m" ? "40" : "48", height: size === "s" ? "32" : size === "m" ? "40" : "48", children: _jsx(Button, { fillWidth: true, weight: "default", variant: "tertiary", radius: firstDay === 1
|
|
267
|
+
? undefined
|
|
268
|
+
: i === 0
|
|
269
|
+
? "left"
|
|
270
|
+
: i === firstDay - 1
|
|
271
|
+
? "right"
|
|
272
|
+
: "none", size: size, type: "button", disabled: true, children: prevMonthDay }) }, `prev-${currentYear}-${currentMonth}-${i}`));
|
|
273
|
+
}
|
|
274
|
+
// Current month's days
|
|
275
|
+
for (let day = 1; day <= daysInMonth; day++) {
|
|
276
|
+
// Create date consistently - normalize to midnight in local timezone
|
|
277
|
+
const currentDate = new Date(currentYear, currentMonth, day);
|
|
278
|
+
const normalizedCurrentDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate());
|
|
279
|
+
const isSelected = selectedDate
|
|
280
|
+
? (selectedDate.getDate() === day &&
|
|
281
|
+
selectedDate.getMonth() === currentMonth &&
|
|
282
|
+
selectedDate.getFullYear() === currentYear) ||
|
|
283
|
+
(value instanceof Date && value.getTime() === normalizedCurrentDate.getTime()) ||
|
|
284
|
+
range?.startDate?.getTime() === normalizedCurrentDate.getTime() ||
|
|
285
|
+
range?.endDate?.getTime() === normalizedCurrentDate.getTime()
|
|
286
|
+
: false;
|
|
287
|
+
// Check if this date is being hovered
|
|
288
|
+
const isHovered = hoveredDate
|
|
289
|
+
? hoveredDate.getDate() === day &&
|
|
290
|
+
hoveredDate.getMonth() === currentMonth &&
|
|
291
|
+
hoveredDate.getFullYear() === currentYear
|
|
292
|
+
: false;
|
|
293
|
+
const isFirstInRange = range?.startDate && currentDate.getTime() === range.startDate.getTime();
|
|
294
|
+
const isLastInRange = range?.endDate && currentDate.getTime() === range.endDate.getTime();
|
|
295
|
+
// Check if the current date is out of the minDate and maxDate range
|
|
296
|
+
const isDisabled = (minDate && currentDate < minDate) || (maxDate && currentDate > maxDate);
|
|
297
|
+
// Calculate border radius for disabled days
|
|
298
|
+
let disabledRadius = undefined;
|
|
299
|
+
if (isDisabled) {
|
|
300
|
+
// Find consecutive disabled days
|
|
301
|
+
let consecutiveDisabledStart = day;
|
|
302
|
+
let consecutiveDisabledEnd = day;
|
|
303
|
+
// Look backwards for start of consecutive disabled days
|
|
304
|
+
while (consecutiveDisabledStart > 1) {
|
|
305
|
+
const prevDate = new Date(currentYear, currentMonth, consecutiveDisabledStart - 1);
|
|
306
|
+
const isPrevDisabled = (minDate && prevDate < minDate) || (maxDate && prevDate > maxDate);
|
|
307
|
+
if (isPrevDisabled) {
|
|
308
|
+
consecutiveDisabledStart--;
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
// Look forwards for end of consecutive disabled days
|
|
315
|
+
while (consecutiveDisabledEnd < daysInMonth) {
|
|
316
|
+
const nextDate = new Date(currentYear, currentMonth, consecutiveDisabledEnd + 1);
|
|
317
|
+
const isNextDisabled = (minDate && nextDate < minDate) || (maxDate && nextDate > maxDate);
|
|
318
|
+
if (isNextDisabled) {
|
|
319
|
+
consecutiveDisabledEnd++;
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
const totalConsecutiveDisabled = consecutiveDisabledEnd - consecutiveDisabledStart + 1;
|
|
326
|
+
if (totalConsecutiveDisabled === 1) {
|
|
327
|
+
disabledRadius = undefined;
|
|
328
|
+
}
|
|
329
|
+
else if (day === consecutiveDisabledStart) {
|
|
330
|
+
disabledRadius = "left";
|
|
331
|
+
}
|
|
332
|
+
else if (day === consecutiveDisabledEnd) {
|
|
333
|
+
disabledRadius = "right";
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
disabledRadius = "none";
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
days.push(_jsx(Row, { width: size === "s" ? "32" : size === "m" ? "40" : "48", height: size === "s" ? "32" : size === "m" ? "40" : "48", background: isInRange(currentDate) ? "neutral-alpha-weak" : undefined, borderTop: isInRange(currentDate) ? "neutral-alpha-weak" : "transparent", borderBottom: isInRange(currentDate) ? "neutral-alpha-weak" : "transparent", leftRadius: isFirstInRange ? "m" : undefined, rightRadius: isLastInRange ? "m" : undefined, children: _jsx(Button, { fillWidth: true, weight: isSelected ? "strong" : "default", variant: isSelected ? "primary" : isHovered ? "secondary" : "tertiary", radius: disabledRadius, tabIndex: -1, size: size, "data-value": currentDate.toISOString(), onClick: (e) => {
|
|
340
|
+
if (!isDisabled) {
|
|
341
|
+
if (timePicker) {
|
|
342
|
+
// Stop propagation to prevent DropdownWrapper from closing
|
|
343
|
+
e.stopPropagation();
|
|
344
|
+
}
|
|
345
|
+
handleDateSelect(currentDate);
|
|
346
|
+
}
|
|
347
|
+
}, onMouseEnter: (e) => {
|
|
348
|
+
onHover?.(currentDate);
|
|
349
|
+
setHoveredDate(currentDate);
|
|
350
|
+
}, onMouseLeave: () => {
|
|
351
|
+
onHover?.(null);
|
|
352
|
+
setHoveredDate(null);
|
|
353
|
+
}, disabled: isDisabled, children: day }) }, `day-${currentYear}-${currentMonth}-${day}`));
|
|
354
|
+
}
|
|
355
|
+
const remainingDays = totalGridSpots - days.length;
|
|
356
|
+
for (let i = 1; i <= remainingDays; i++) {
|
|
357
|
+
days.push(_jsx(Row, { marginTop: "2", width: size === "s" ? "32" : size === "m" ? "40" : "48", height: size === "s" ? "32" : size === "m" ? "40" : "48", children: _jsx(Button, { fillWidth: true, weight: "default", variant: "tertiary", radius: remainingDays === 1
|
|
358
|
+
? undefined
|
|
359
|
+
: i === 1
|
|
360
|
+
? "left"
|
|
361
|
+
: i === remainingDays
|
|
362
|
+
? "right"
|
|
363
|
+
: "none", size: size, type: "button", disabled: true, children: i }) }, `next-${currentYear}-${currentMonth}-${i}`));
|
|
364
|
+
}
|
|
365
|
+
return days;
|
|
366
|
+
};
|
|
367
|
+
return (_jsxs(Column, { onClick: (event) => {
|
|
368
|
+
event.preventDefault();
|
|
369
|
+
event.stopPropagation();
|
|
370
|
+
// Close any open nested dropdowns when clicking on the DatePicker background
|
|
371
|
+
if (isMonthOpen) {
|
|
372
|
+
setIsMonthOpen(false);
|
|
373
|
+
}
|
|
374
|
+
if (isYearOpen) {
|
|
375
|
+
setIsYearOpen(false);
|
|
376
|
+
}
|
|
377
|
+
}, ref: ref, className: classNames(styles.calendar, className), style: style, fillWidth: true, horizontal: "center", gap: size, ...rest, children: [_jsx(Flex, { fillWidth: true, center: true, children: isTimeSelector ? (_jsxs(Column, { horizontal: "center", fillWidth: true, gap: "8", children: [_jsxs(Text, { variant: `label-default-${size}`, onBackground: "neutral-strong", children: [monthNames[currentMonth], " ", currentYear] }), _jsx(Row, { paddingX: "2", cursor: "interactive", textVariant: "label-default-s", radius: "m", onBackground: "brand-weak", tabIndex: 0, onClick: () => handleTimeToggle(false), onKeyDown: (e) => {
|
|
378
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
379
|
+
e.preventDefault();
|
|
380
|
+
handleTimeToggle(false);
|
|
381
|
+
}
|
|
382
|
+
}, role: "button", "aria-label": "Back to calendar", children: "Back to calendar" })] })) : (_jsxs(_Fragment, { children: [previousMonth && (_jsx(IconButton, { variant: "tertiary", size: size, icon: "chevronLeft", onClick: (event) => {
|
|
383
|
+
event.preventDefault();
|
|
384
|
+
event.stopPropagation();
|
|
385
|
+
handleMonthChange(-1);
|
|
386
|
+
} })), _jsxs(Column, { fillWidth: true, horizontal: "center", gap: "8", children: [_jsxs(Row, { gap: "4", horizontal: "center", children: [_jsx(DropdownWrapper, { isNested: isNested, placement: "bottom-start", isOpen: isMonthOpen, dropdownId: "month-dropdown", onOpenChange: (open) => {
|
|
387
|
+
setIsMonthOpen(open);
|
|
388
|
+
// Update global tracking for keyboard navigation
|
|
389
|
+
if (open) {
|
|
390
|
+
// Set this as the last opened dropdown
|
|
391
|
+
window.lastOpenedDropdown = "month-dropdown";
|
|
392
|
+
}
|
|
393
|
+
else if (window.lastOpenedDropdown === "month-dropdown") {
|
|
394
|
+
window.lastOpenedDropdown = null;
|
|
395
|
+
}
|
|
396
|
+
}, trigger: _jsx(Button, { onClick: (event) => {
|
|
397
|
+
event.preventDefault();
|
|
398
|
+
event.stopPropagation();
|
|
399
|
+
setIsMonthOpen(true);
|
|
400
|
+
// Update global tracking
|
|
401
|
+
window.lastOpenedDropdown = "month-dropdown";
|
|
402
|
+
}, variant: "secondary", size: "s", children: _jsxs(Row, { vertical: "center", gap: "4", children: [monthNames[currentMonth], _jsx(Icon, { name: "chevronDown", onBackground: "neutral-weak", size: "xs" })] }) }), dropdown: _jsx(Column, { fillWidth: true, gap: "2", padding: "4", onClick: (event) => {
|
|
403
|
+
event.preventDefault();
|
|
404
|
+
event.stopPropagation();
|
|
405
|
+
}, children: monthNames.map((month, index) => {
|
|
406
|
+
const monthDisabled = isMonthDisabled(index, currentYear);
|
|
407
|
+
return (_jsx(Option, { value: index.toString(), disabled: monthDisabled, label: _jsx(Text, { color: monthDisabled ? "neutral-weak" : undefined, children: month }), selected: index === currentMonth, onClick: (value) => {
|
|
408
|
+
if (!monthDisabled) {
|
|
409
|
+
handleMonthSelect(index);
|
|
410
|
+
setIsMonthOpen(false);
|
|
411
|
+
// Clear global tracking
|
|
412
|
+
window.lastOpenedDropdown = null;
|
|
413
|
+
}
|
|
414
|
+
} }, month));
|
|
415
|
+
}) }), "data-dropdown-id": "month-dropdown" }), _jsx(DropdownWrapper, { navigationLayout: "grid", optionsCount: generateYearOptions().length, columns: generateYearOptions().length < 6 ? 1 : 6, isNested: isNested, isOpen: isYearOpen, dropdownId: "year-dropdown", onOpenChange: (open) => {
|
|
416
|
+
setIsYearOpen(open);
|
|
417
|
+
// Update global tracking for keyboard navigation
|
|
418
|
+
if (open) {
|
|
419
|
+
// Set this as the last opened dropdown
|
|
420
|
+
window.lastOpenedDropdown = "year-dropdown";
|
|
421
|
+
}
|
|
422
|
+
else if (window.lastOpenedDropdown === "year-dropdown") {
|
|
423
|
+
window.lastOpenedDropdown = null;
|
|
424
|
+
}
|
|
425
|
+
}, placement: "bottom-start", trigger: _jsx(Button, { variant: "secondary", size: "s", onClick: (event) => {
|
|
426
|
+
event.preventDefault();
|
|
427
|
+
event.stopPropagation();
|
|
428
|
+
setIsYearOpen(true);
|
|
429
|
+
// Update global tracking
|
|
430
|
+
window.lastOpenedDropdown = "year-dropdown";
|
|
431
|
+
}, children: _jsxs(Row, { vertical: "center", gap: "4", children: [currentYear.toString(), _jsx(Icon, { name: "chevronDown", onBackground: "neutral-weak", size: "xs" })] }) }), dropdown: _jsx(Grid, { columns: generateYearOptions().length < 6 ? "1" : 6, gap: "2", padding: "4", onClick: (event) => {
|
|
432
|
+
event.preventDefault();
|
|
433
|
+
event.stopPropagation();
|
|
434
|
+
}, children: generateYearOptions().map((year) => {
|
|
435
|
+
// Check if all months in this year are disabled
|
|
436
|
+
const allMonthsDisabled = Array.from({ length: 12 }, (_, i) => i).every((month) => isMonthDisabled(month, year));
|
|
437
|
+
return (_jsx(Option, { value: year.toString(), disabled: allMonthsDisabled, label: _jsx(Text, { color: allMonthsDisabled ? "neutral-weak" : undefined, children: year }), selected: year === currentYear, onClick: (value) => {
|
|
438
|
+
if (!allMonthsDisabled) {
|
|
439
|
+
handleYearSelect(year);
|
|
440
|
+
setIsYearOpen(false);
|
|
441
|
+
// Clear global tracking
|
|
442
|
+
window.lastOpenedDropdown = null;
|
|
443
|
+
}
|
|
444
|
+
} }, year));
|
|
445
|
+
}) }), "data-dropdown-id": "year-dropdown" })] }), timePicker && selectedTime && (_jsx(Text, { variant: "label-default-s", onBackground: "neutral-weak", children: `${selectedTime.hours.toString().padStart(2, "0")}:${selectedTime.minutes.toString().padStart(2, "0")} ${isPM ? "PM" : "AM"}` }))] }), nextMonth && (_jsx(IconButton, { variant: "tertiary", size: size, icon: "chevronRight", onClick: (event) => {
|
|
446
|
+
event.preventDefault();
|
|
447
|
+
event.stopPropagation();
|
|
448
|
+
handleMonthChange(1);
|
|
449
|
+
} }))] })) }), _jsx(RevealFx, { fillWidth: true, center: true, trigger: isTransitioning, speed: 250, children: isTimeSelector ? (_jsxs(Column, { maxWidth: 24, center: true, padding: "32", gap: "32", children: [_jsx(SegmentedControl, { buttons: [
|
|
450
|
+
{
|
|
451
|
+
value: "AM",
|
|
452
|
+
label: "AM",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
value: "PM",
|
|
456
|
+
label: "PM",
|
|
457
|
+
},
|
|
458
|
+
], selected: isPM ? "PM" : "AM", onToggle: (value) => handleTimeChange(selectedTime?.hours ?? 0, selectedTime?.minutes ?? 0, value === "PM") }), _jsxs(Flex, { fillWidth: true, gap: "16", vertical: "center", "data-scaling": "110", children: [_jsx(NumberInput, { id: "hours", placeholder: "Hours", min: 1, max: 12, value: selectedTime?.hours ? convert24to12(selectedTime.hours) : 12, onChange: (value) => {
|
|
459
|
+
if (value >= 1 && value <= 12) {
|
|
460
|
+
handleTimeChange(value, selectedTime?.minutes ?? 0);
|
|
461
|
+
}
|
|
462
|
+
}, "aria-label": "Hours" }), ":", _jsx(NumberInput, { id: "minutes", placeholder: "Minutes", min: 0, max: 59, padStart: 2, value: selectedTime?.minutes ?? 0, onChange: (value) => {
|
|
463
|
+
if (value >= 0 && value <= 59) {
|
|
464
|
+
handleTimeChange(selectedTime?.hours ?? 0, value);
|
|
465
|
+
}
|
|
466
|
+
}, "aria-label": "Minutes" })] })] })) : isMonthOpen || isYearOpen ? (_jsxs(Grid, { fitWidth: true, columns: "7", children: [dayNames.map((day) => (_jsx(Text, { marginBottom: "16", variant: "label-default-m", onBackground: "neutral-medium", align: "center", children: day }, day))), renderCalendarGrid()] })) : (isCalendarSynced && (_jsx(ArrowNavigation, { layout: "grid", columns: 7, itemCount: calculateTotalDays(), initialFocusedIndex: isReady ? calculateInitialFocusedIndex() : 0, wrap: true, itemSelector: "button[data-value]:not([disabled])", role: "grid", "aria-label": "Calendar", disableHighlighting: true, autoFocus: autoFocus, onSelect: (index) => {
|
|
467
|
+
// Find the actual button element at this index and click it
|
|
468
|
+
// Try multiple selectors for different scenarios (dropdown vs standalone)
|
|
469
|
+
const container = document.querySelector('[data-role="dropdown-portal"]') ||
|
|
470
|
+
document.querySelector("[data-dropdown-id]") ||
|
|
471
|
+
document.activeElement?.closest('[data-role="dropdown-portal"]') ||
|
|
472
|
+
document.activeElement?.closest('[data-role="dropdown-wrapper"]') ||
|
|
473
|
+
document.body; // Fallback for standalone DatePicker
|
|
474
|
+
if (container) {
|
|
475
|
+
const buttons = Array.from(container.querySelectorAll("button[data-value]:not([disabled])"));
|
|
476
|
+
if (buttons[index]) {
|
|
477
|
+
buttons[index].click();
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}, onFocusChange: (index) => {
|
|
481
|
+
// Let React handle highlighting through props only
|
|
482
|
+
// No DOM manipulation needed
|
|
483
|
+
}, children: _jsxs(Grid, { fitWidth: true, columns: "7", children: [dayNames.map((day) => (_jsx(Text, { marginBottom: "16", variant: "label-default-m", onBackground: "neutral-medium", align: "center", children: day }, day))), renderCalendarGrid()] }) }, `calendar-${currentYear}-${currentMonth}-${selectedDate?.getTime() || 0}`))) }, isTimeSelector ? "time" : "date")] }));
|
|
484
|
+
});
|
|
485
|
+
DatePicker.displayName = "DatePicker";
|
|
486
|
+
export { DatePicker };
|
|
487
|
+
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../src/components/DatePicker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,WAAW,EACX,eAAe,EACf,MAAM,EACN,MAAM,EACN,IAAI,EACJ,GAAG,EACH,eAAe,GAChB,MAAM,GAAG,CAAC;AACX,OAAO,MAAM,MAAM,0BAA0B,CAAC;AA+B9C,MAAM,UAAU,GAAG,UAAU,CAC3B,CACE,EACE,KAAK,EACL,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,aAAa,GAAG,IAAI,EACpB,SAAS,GAAG,IAAI,EAChB,OAAO,EACP,OAAO,EACP,WAAW,EACX,WAAW,EACX,IAAI,GAAG,GAAG,EACV,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,KAAK,EACL,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EAAE,eAAe,E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