@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 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingNav.d.ts","sourceRoot":"","sources":["../../../src/modules/navigation/HeadingNav.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA+D,MAAM,OAAO,CAAC;AACpF,OAAO,EAAU,IAAI,EAA+C,MAAM,QAAQ,CAAC;AAEnF,UAAU,KAAM,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,UAAU,2FAsPd,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, useEffect, useState, useRef, useCallback } from "react";
|
|
4
|
+
import { Column, Flex, Icon, Row, SmartLink, Text, useHeadingLinks } from "../../";
|
|
5
|
+
const HeadingNav = forwardRef(({ className, style, header = true, ...rest }, ref) => {
|
|
6
|
+
const [activeHeadingId, setActiveHeadingId] = useState(null);
|
|
7
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
8
|
+
const indicatorRef = useRef(null);
|
|
9
|
+
const headings = useHeadingLinks();
|
|
10
|
+
const observerRef = useRef(null);
|
|
11
|
+
const lastUpdateTimeRef = useRef(0);
|
|
12
|
+
const pendingUpdateRef = useRef(null);
|
|
13
|
+
const scrollTimeoutRef = useRef(null);
|
|
14
|
+
const isUpdatingRef = useRef(false);
|
|
15
|
+
const updateActiveHeadingInternal = useCallback((id) => {
|
|
16
|
+
const index = headings.findIndex((h) => h.id === id);
|
|
17
|
+
if (index !== -1) {
|
|
18
|
+
setActiveHeadingId(id);
|
|
19
|
+
setActiveIndex(index);
|
|
20
|
+
if (indicatorRef.current) {
|
|
21
|
+
indicatorRef.current.style.top = `calc(${index} * var(--static-space-32))`;
|
|
22
|
+
}
|
|
23
|
+
lastUpdateTimeRef.current = Date.now();
|
|
24
|
+
isUpdatingRef.current = false;
|
|
25
|
+
}
|
|
26
|
+
}, [headings]);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (headings.length === 0)
|
|
29
|
+
return;
|
|
30
|
+
setActiveHeadingId(headings[0]?.id || null);
|
|
31
|
+
const headingElements = headings
|
|
32
|
+
.map((heading) => document.getElementById(heading.id))
|
|
33
|
+
.filter(Boolean);
|
|
34
|
+
const headingPositions = new Map();
|
|
35
|
+
const calculateHeadingPositions = () => {
|
|
36
|
+
headingElements.forEach((el) => {
|
|
37
|
+
if (el) {
|
|
38
|
+
headingPositions.set(el.id, el.getBoundingClientRect().top + window.scrollY - 150);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
calculateHeadingPositions();
|
|
43
|
+
const debouncedUpdateActiveHeading = (id) => {
|
|
44
|
+
const now = Date.now();
|
|
45
|
+
if (isUpdatingRef.current) {
|
|
46
|
+
pendingUpdateRef.current = id;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (now - lastUpdateTimeRef.current < 200) {
|
|
50
|
+
pendingUpdateRef.current = id;
|
|
51
|
+
if (scrollTimeoutRef.current) {
|
|
52
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
53
|
+
}
|
|
54
|
+
scrollTimeoutRef.current = setTimeout(() => {
|
|
55
|
+
if (pendingUpdateRef.current) {
|
|
56
|
+
isUpdatingRef.current = true;
|
|
57
|
+
updateActiveHeadingInternal(pendingUpdateRef.current);
|
|
58
|
+
pendingUpdateRef.current = null;
|
|
59
|
+
}
|
|
60
|
+
}, 200);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
isUpdatingRef.current = true;
|
|
64
|
+
updateActiveHeadingInternal(id);
|
|
65
|
+
};
|
|
66
|
+
const findActiveHeading = () => {
|
|
67
|
+
const scrollPosition = window.scrollY;
|
|
68
|
+
let activeId = headings[0]?.id;
|
|
69
|
+
let closestPosition = -Infinity;
|
|
70
|
+
headingPositions.forEach((position, id) => {
|
|
71
|
+
if (position <= scrollPosition && position > closestPosition) {
|
|
72
|
+
closestPosition = position;
|
|
73
|
+
activeId = id;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
if (activeId) {
|
|
77
|
+
debouncedUpdateActiveHeading(activeId);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
let ticking = false;
|
|
81
|
+
const handleScroll = () => {
|
|
82
|
+
if (!ticking) {
|
|
83
|
+
window.requestAnimationFrame(() => {
|
|
84
|
+
findActiveHeading();
|
|
85
|
+
ticking = false;
|
|
86
|
+
});
|
|
87
|
+
ticking = true;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
91
|
+
observerRef.current = new IntersectionObserver((entries) => {
|
|
92
|
+
if (Date.now() - lastUpdateTimeRef.current > 400) {
|
|
93
|
+
const enteringEntries = entries.filter((entry) => entry.isIntersecting);
|
|
94
|
+
if (enteringEntries.length > 0) {
|
|
95
|
+
enteringEntries.sort((a, b) => {
|
|
96
|
+
const aRect = a.boundingClientRect;
|
|
97
|
+
const bRect = b.boundingClientRect;
|
|
98
|
+
return aRect.top - bRect.top;
|
|
99
|
+
});
|
|
100
|
+
debouncedUpdateActiveHeading(enteringEntries[0].target.id);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
rootMargin: "-150px 0px -30% 0px",
|
|
105
|
+
threshold: [0, 0.1, 0.5, 1],
|
|
106
|
+
});
|
|
107
|
+
headingElements.forEach((element) => {
|
|
108
|
+
if (element && observerRef.current) {
|
|
109
|
+
observerRef.current.observe(element);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
window.addEventListener("resize", calculateHeadingPositions);
|
|
113
|
+
findActiveHeading();
|
|
114
|
+
return () => {
|
|
115
|
+
if (observerRef.current) {
|
|
116
|
+
headingElements.forEach((element) => {
|
|
117
|
+
if (element)
|
|
118
|
+
observerRef.current?.unobserve(element);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
window.removeEventListener("scroll", handleScroll);
|
|
122
|
+
window.removeEventListener("resize", calculateHeadingPositions);
|
|
123
|
+
if (scrollTimeoutRef.current) {
|
|
124
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}, [headings, updateActiveHeadingInternal]);
|
|
128
|
+
const handleHeadingClick = (id, index) => {
|
|
129
|
+
setActiveHeadingId(id);
|
|
130
|
+
setActiveIndex(index);
|
|
131
|
+
if (indicatorRef.current) {
|
|
132
|
+
indicatorRef.current.style.top = `calc(${index} * var(--static-space-32))`;
|
|
133
|
+
}
|
|
134
|
+
lastUpdateTimeRef.current = Date.now();
|
|
135
|
+
};
|
|
136
|
+
return (_jsx(Column, { gap: "16", position: "sticky", fitHeight: true, className: className, style: style, ref: ref, ...rest, children: headings.length > 0 &&
|
|
137
|
+
_jsxs(_Fragment, { children: [header &&
|
|
138
|
+
_jsxs(Row, { gap: "12", paddingLeft: "2", vertical: "center", onBackground: "neutral-medium", textVariant: "label-default-s", children: [_jsx(Icon, { name: "document", size: "xs" }), "On this page"] }), _jsxs(Row, { paddingLeft: "8", gap: "12", children: [_jsx(Row, { width: "2", background: "neutral-alpha-medium", radius: "full", overflow: "hidden", children: _jsx(Row, { ref: indicatorRef, height: "32", paddingY: "4", fillWidth: true, position: "absolute", style: {
|
|
139
|
+
top: `calc(${activeIndex} * var(--static-space-32))`,
|
|
140
|
+
transition: "top 0.3s ease",
|
|
141
|
+
}, children: _jsx(Row, { fillWidth: true, solid: "brand-strong", radius: "full" }) }) }), _jsx(Column, { fillWidth: true, children: headings.map((heading, index) => {
|
|
142
|
+
const indent = heading.level - 2;
|
|
143
|
+
const isActive = heading.id === activeHeadingId;
|
|
144
|
+
return (_jsx(Flex, { fillWidth: true, height: "32", paddingX: "4", children: _jsx(SmartLink, { fillWidth: true, href: "#" + heading.id, onClick: (e) => {
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
const target = document.getElementById(heading.id);
|
|
147
|
+
if (target) {
|
|
148
|
+
const targetPosition = target.getBoundingClientRect().top + window.scrollY - 150;
|
|
149
|
+
window.scrollTo({
|
|
150
|
+
top: targetPosition,
|
|
151
|
+
behavior: "smooth",
|
|
152
|
+
});
|
|
153
|
+
handleHeadingClick(heading.id, index);
|
|
154
|
+
}
|
|
155
|
+
}, style: {
|
|
156
|
+
paddingLeft: `calc(${indent} * var(--static-space-8))`,
|
|
157
|
+
color: isActive
|
|
158
|
+
? "var(--neutral-on-background-strong)"
|
|
159
|
+
: "var(--neutral-on-background-weak)",
|
|
160
|
+
transition: "color 0.2s ease",
|
|
161
|
+
}, children: _jsx(Text, { variant: isActive ? "body-strong-s" : "body-default-s", truncate: true, style: {
|
|
162
|
+
transition: "font-weight 0.2s ease",
|
|
163
|
+
}, children: heading.text }) }) }, heading.id));
|
|
164
|
+
}) })] })] }) }));
|
|
165
|
+
});
|
|
166
|
+
HeadingNav.displayName = "HeadingNav";
|
|
167
|
+
export { HeadingNav };
|
|
168
|
+
//# sourceMappingURL=HeadingNav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingNav.js","sourceRoot":"","sources":["../../../src/modules/navigation/HeadingNav.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,EAAE,MAAM,EAAE,I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AE,CAAC;gDACnB,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gDACnD,IAAI,MAAM,EAAE,CAAC;oDACX,MAAM,cAAc,GAClB,MAAM,CAAC,qBAAqB,EAAE,CAAC,GAAG,GAAG,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC;oDAC1D,MAAM,CAAC,QAAQ,CAAC;wDACd,GAAG,EAAE,cAAc;wDACnB,QAAQ,EAAE,QAAQ;qDACnB,CAAC,CAAC;oDAEL,kBAAkB,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;gDACxC,CAAC;4CACH,CAAC,EACD,KAAK,EAAE;gDACL,WAAW,EAAE,QAAQ,MAAM,2BAA2B;gDACtD,KAAK,EAAE,QAAQ;oDACb,CAAC,CAAC,qCAAqC;oDACvC,CAAC,CAAC,mCAAmC;gDACvC,UAAU,EAAE,iBAAiB;6CAC9B,YAED,KAAC,IAAI,IACH,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,EACtD,QAAQ,QACR,KAAK,EAAE;oDACL,UAAU,EAAE,uBAAuB;iDACpC,YAEA,OAAO,CAAC,IAAI,GACR,GACG,IAnCH,OAAO,CAAC,EAAE,CAoCd,CACR,CAAC;gCACJ,CAAC,CAAC,GACK,IACL,IACL,GAEE,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export interface KbarItem {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
section: string;
|
|
6
|
+
shortcut: string[];
|
|
7
|
+
keywords: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
perform?: () => void;
|
|
10
|
+
icon?: string;
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
}
|
|
14
|
+
interface KbarTriggerProps {
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
export declare const KbarTrigger: React.FC<KbarTriggerProps>;
|
|
20
|
+
interface KbarContentProps {
|
|
21
|
+
isOpen: boolean;
|
|
22
|
+
onClose: () => void;
|
|
23
|
+
items: KbarItem[];
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const KbarContent: React.FC<KbarContentProps>;
|
|
27
|
+
export interface KbarProps {
|
|
28
|
+
items: KbarItem[];
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}
|
|
32
|
+
export declare const Kbar: React.FC<KbarProps>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=Kbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kbar.d.ts","sourceRoot":"","sources":["../../../src/modules/navigation/Kbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAqD,SAAS,EAAE,MAAM,OAAO,CAAC;AAkB5F,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA+CD,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAMlD,CAAC;AAEF,UAAU,gBAAgB;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0RlD,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA6DpC,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import React, { useState, useEffect, useRef, useCallback, useMemo } from "react";
|
|
4
|
+
import { Flex, Text, Icon, Column, Input, Option, Row, Kbd, ArrowNavigation, useArrowNavigationContext, ScrollLock, } from "../../components";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
6
|
+
import { useRouter, usePathname } from "next/navigation";
|
|
7
|
+
import styles from "./Kbar.module.scss";
|
|
8
|
+
const SectionHeader = ({ label }) => (_jsx(Row, { paddingX: "12", paddingBottom: "8", paddingTop: "12", textVariant: "label-default-s", onBackground: "neutral-weak", children: label }));
|
|
9
|
+
// Search input that uses arrow navigation context
|
|
10
|
+
const KbarSearchInput = ({ placeholder, searchQuery, onSearchChange, inputRef }) => {
|
|
11
|
+
const { handleKeyDown: navKeyDown } = useArrowNavigationContext();
|
|
12
|
+
const handleKeyDown = useCallback((e) => {
|
|
13
|
+
// Forward arrow keys and Enter to navigation
|
|
14
|
+
if (["ArrowUp", "ArrowDown", "Enter", "Home", "End"].includes(e.key)) {
|
|
15
|
+
navKeyDown(e);
|
|
16
|
+
}
|
|
17
|
+
}, [navKeyDown]);
|
|
18
|
+
return (_jsx(Input, { id: "kbar-search", placeholder: placeholder, value: searchQuery, onChange: onSearchChange, onKeyDown: handleKeyDown, ref: inputRef, hasPrefix: _jsx(Icon, { marginLeft: "4", onBackground: "neutral-weak", name: "search", size: "xs" }), autoComplete: "off" }));
|
|
19
|
+
};
|
|
20
|
+
export const KbarTrigger = ({ onClick, children, ...rest }) => {
|
|
21
|
+
return (_jsx(Row, { onClick: onClick, ...rest, children: children }));
|
|
22
|
+
};
|
|
23
|
+
export const KbarContent = ({ isOpen, onClose, items, placeholder = "Search", }) => {
|
|
24
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
25
|
+
const containerRef = useRef(null);
|
|
26
|
+
const inputRef = useRef(null);
|
|
27
|
+
const scrollContainerRef = useRef(null);
|
|
28
|
+
const router = useRouter();
|
|
29
|
+
const [isClosing, setIsClosing] = useState(false);
|
|
30
|
+
const handleClose = useCallback(() => {
|
|
31
|
+
setIsClosing(true);
|
|
32
|
+
// Add a small delay to allow animations to complete
|
|
33
|
+
requestAnimationFrame(() => {
|
|
34
|
+
onClose();
|
|
35
|
+
});
|
|
36
|
+
}, [onClose]);
|
|
37
|
+
// Filter items based on search query
|
|
38
|
+
const filteredItems = useMemo(() => {
|
|
39
|
+
return items.filter((item) => {
|
|
40
|
+
if (!searchQuery)
|
|
41
|
+
return true;
|
|
42
|
+
const searchLower = searchQuery.toLowerCase();
|
|
43
|
+
return (item.name.toLowerCase().includes(searchLower) ||
|
|
44
|
+
(item.keywords ? item.keywords.toLowerCase().includes(searchLower) : false) ||
|
|
45
|
+
(item.section ? item.section.toLowerCase().includes(searchLower) : false));
|
|
46
|
+
});
|
|
47
|
+
}, [items, searchQuery]);
|
|
48
|
+
// Group items by section
|
|
49
|
+
const groupedItems = useMemo(() => {
|
|
50
|
+
const sections = new Set(filteredItems.map((item) => item.section));
|
|
51
|
+
const result = [];
|
|
52
|
+
for (const section of sections) {
|
|
53
|
+
// Add section header
|
|
54
|
+
result.push({
|
|
55
|
+
value: `section-${section}`,
|
|
56
|
+
label: _jsx(SectionHeader, { label: section }),
|
|
57
|
+
isCustom: true,
|
|
58
|
+
});
|
|
59
|
+
// Add items for this section
|
|
60
|
+
const sectionItems = filteredItems.filter((item) => item.section === section);
|
|
61
|
+
for (const item of sectionItems) {
|
|
62
|
+
result.push({
|
|
63
|
+
value: item.id,
|
|
64
|
+
label: item.name,
|
|
65
|
+
hasPrefix: item.icon ? (_jsx(Icon, { name: item.icon, size: "xs", onBackground: "neutral-weak" })) : undefined,
|
|
66
|
+
hasSuffix: item.shortcut && item.shortcut.length > 0 ? (_jsx(Row, { gap: "2", style: { transform: "scale(0.9)", transformOrigin: "right" }, children: item.shortcut.map((key, i) => (_jsxs(Row, { gap: "2", children: [_jsx(Kbd, { minWidth: "24", style: { transform: "scale(0.8)" }, children: key }), i < item.shortcut.length - 1 && _jsx(Text, { onBackground: "neutral-weak", children: "+" })] }, i))) })) : undefined,
|
|
67
|
+
description: item.description,
|
|
68
|
+
href: item.href,
|
|
69
|
+
onClick: item.perform
|
|
70
|
+
? () => {
|
|
71
|
+
item.perform?.();
|
|
72
|
+
onClose();
|
|
73
|
+
}
|
|
74
|
+
: undefined,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return result;
|
|
79
|
+
}, [filteredItems, onClose]);
|
|
80
|
+
// Get non-custom options for highlighting
|
|
81
|
+
const nonCustomOptions = useMemo(() => {
|
|
82
|
+
return groupedItems.filter((item) => !item.isCustom);
|
|
83
|
+
}, [groupedItems]);
|
|
84
|
+
// Handle item selection
|
|
85
|
+
const handleSelect = useCallback((index) => {
|
|
86
|
+
const selectedOption = nonCustomOptions[index];
|
|
87
|
+
if (selectedOption) {
|
|
88
|
+
const originalItem = items.find((item) => item.id === selectedOption.value);
|
|
89
|
+
if (originalItem) {
|
|
90
|
+
if (originalItem.href) {
|
|
91
|
+
router.push(originalItem.href);
|
|
92
|
+
handleClose();
|
|
93
|
+
}
|
|
94
|
+
else if (originalItem.perform) {
|
|
95
|
+
originalItem.perform();
|
|
96
|
+
handleClose();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}, [nonCustomOptions, items, router, handleClose]);
|
|
101
|
+
// Handle escape key
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
const handleEscapeKey = (e) => {
|
|
104
|
+
if (e.key === "Escape") {
|
|
105
|
+
handleClose();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
if (isOpen) {
|
|
109
|
+
document.addEventListener("keydown", handleEscapeKey);
|
|
110
|
+
}
|
|
111
|
+
return () => {
|
|
112
|
+
document.removeEventListener("keydown", handleEscapeKey);
|
|
113
|
+
};
|
|
114
|
+
}, [isOpen, handleClose]);
|
|
115
|
+
// Clear search query when kbar is closed
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (!isOpen) {
|
|
118
|
+
setSearchQuery("");
|
|
119
|
+
}
|
|
120
|
+
}, [isOpen]);
|
|
121
|
+
// Focus search input when kbar is opened
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
if (isOpen && inputRef.current) {
|
|
124
|
+
// Use a small timeout to ensure the component is fully rendered
|
|
125
|
+
const timer = setTimeout(() => {
|
|
126
|
+
inputRef.current?.focus();
|
|
127
|
+
}, 50);
|
|
128
|
+
return () => clearTimeout(timer);
|
|
129
|
+
}
|
|
130
|
+
}, [isOpen]);
|
|
131
|
+
// Handle search input change
|
|
132
|
+
const handleSearchChange = (e) => {
|
|
133
|
+
setSearchQuery(e.target.value);
|
|
134
|
+
};
|
|
135
|
+
// Render nothing if not open
|
|
136
|
+
if (!isOpen)
|
|
137
|
+
return null;
|
|
138
|
+
// Create portal for the kbar
|
|
139
|
+
return (_jsxs(_Fragment, { children: [_jsx(ScrollLock, { enabled: isOpen, allowScrollInElement: scrollContainerRef }), _jsx(Row, { position: "fixed", top: "0", left: "0", right: "0", bottom: "0", zIndex: 10, center: true, background: "overlay", className: `${styles.overlay} ${isClosing ? styles.closing : ""}`, onClick: (e) => {
|
|
140
|
+
if (e.target === e.currentTarget) {
|
|
141
|
+
handleClose();
|
|
142
|
+
}
|
|
143
|
+
}, children: _jsxs(Column, { ref: containerRef, fitHeight: true, maxWidth: "xs", background: "surface", radius: "l-4", border: "neutral-alpha-medium", overflow: "hidden", shadow: "l", className: `${styles.content} ${isClosing ? styles.closing : ""}`, onClick: (e) => e.stopPropagation(), children: [_jsxs(ArrowNavigation, { layout: "column", itemCount: nonCustomOptions.length, onSelect: handleSelect, onEscape: handleClose, wrap: true, initialFocusedIndex: 0, itemSelector: '[role="option"]', autoFocus: false, children: [_jsx(Row, { fillWidth: true, padding: "8", children: _jsx(KbarSearchInput, { placeholder: placeholder, searchQuery: searchQuery, onSearchChange: handleSearchChange, inputRef: inputRef }) }), _jsxs(Column, { ref: scrollContainerRef, maxHeight: 32, fillWidth: true, padding: "4", gap: "2", overflowY: "auto", radius: "l", border: "neutral-alpha-weak", children: [groupedItems.map((option, index) => {
|
|
144
|
+
if (option.isCustom) {
|
|
145
|
+
return _jsx(React.Fragment, { children: option.label }, option.value);
|
|
146
|
+
}
|
|
147
|
+
return (_jsx(Option, { label: option.label, value: option.value, hasPrefix: option.hasPrefix, hasSuffix: option.hasSuffix, description: option.description, ...(option.href
|
|
148
|
+
? { href: option.href, onClick: undefined, onLinkClick: handleClose }
|
|
149
|
+
: { onClick: option.onClick }) }, option.value));
|
|
150
|
+
}), searchQuery && filteredItems.length === 0 && (_jsx(Flex, { fillWidth: true, center: true, paddingX: "16", paddingY: "64", textVariant: "body-default-m", onBackground: "neutral-weak", children: "No results found" }))] })] }), _jsx(Row, { fillWidth: true, paddingX: "24", paddingY: "8", children: _jsxs(Row, { style: { transform: "scale(0.8)", transformOrigin: "left" }, gap: "8", onBackground: "neutral-weak", textVariant: "label-default-m", vertical: "center", children: [_jsx(Kbd, { minWidth: "20", children: _jsx(Row, { children: _jsx(Icon, { name: "chevronUp", size: "xs" }) }) }), _jsx(Kbd, { minWidth: "20", children: _jsx(Row, { children: _jsx(Icon, { name: "chevronDown", size: "xs" }) }) }), _jsx(Text, { marginLeft: "8", marginRight: "24", children: "Navigate" }), _jsx(Kbd, { minWidth: "20", children: _jsx(Row, { children: _jsx(Icon, { name: "enter", size: "xs" }) }) }), _jsx(Text, { marginLeft: "8", children: "Go to" })] }) })] }) })] }));
|
|
151
|
+
};
|
|
152
|
+
export const Kbar = ({ items, children, ...rest }) => {
|
|
153
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
154
|
+
const router = useRouter();
|
|
155
|
+
const pathname = usePathname();
|
|
156
|
+
const handleOpen = () => {
|
|
157
|
+
setIsOpen(true);
|
|
158
|
+
};
|
|
159
|
+
const handleClose = () => {
|
|
160
|
+
setIsOpen(false);
|
|
161
|
+
};
|
|
162
|
+
// Close Kbar when pathname changes
|
|
163
|
+
useEffect(() => {
|
|
164
|
+
if (isOpen) {
|
|
165
|
+
handleClose();
|
|
166
|
+
}
|
|
167
|
+
}, [pathname]);
|
|
168
|
+
// Add keyboard shortcut listener
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
const handleKeyDown = (e) => {
|
|
171
|
+
// Check for Command+K (Mac) or Control+K (Windows/Linux)
|
|
172
|
+
if ((e.metaKey || e.ctrlKey) && e.key === "k") {
|
|
173
|
+
e.preventDefault(); // Prevent default browser behavior
|
|
174
|
+
setIsOpen((prev) => !prev); // Toggle Kbar open/close
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
// Add the event listener
|
|
178
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
179
|
+
// Clean up the event listener on component unmount
|
|
180
|
+
return () => {
|
|
181
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
182
|
+
};
|
|
183
|
+
}, []);
|
|
184
|
+
return (_jsxs(_Fragment, { children: [_jsx(KbarTrigger, { tabIndex: 0, onClick: handleOpen, onKeyDown: (e) => {
|
|
185
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
186
|
+
e.preventDefault();
|
|
187
|
+
handleOpen();
|
|
188
|
+
}
|
|
189
|
+
}, ...rest, children: children }), isOpen &&
|
|
190
|
+
createPortal(_jsx(KbarContent, { isOpen: isOpen, onClose: handleClose, items: items }), document.body)] }));
|
|
191
|
+
};
|
|
192
|
+
//# sourceMappingURL=Kbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kbar.js","sourceRoot":"","sources":["../../../src/modules/navigation/Kbar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAa,MAAM,OAAO,CAAC;AAC5F,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,EACH,eAAe,EACf,yBAAyB,EACzB,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAexC,MAAM,aAAa,GAAgC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAChE,KAAC,GAAG,IACF,QAAQ,EAAC,IAAI,EACb,aAAa,EAAC,GAAG,EACjB,UAAU,EAAC,IAAI,EACf,WAAW,EAAC,iBAAiB,EAC7B,YAAY,EAAC,cAAc,YAE1B,KAAK,GACF,CACP,CAAC;AAEF,kDAAkD;AAClD,MAAM,eAAe,GAKhB,CAAC,EAAE,WAAW,EA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,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,8BACE,KAAC,WAAW,IACV,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,CAAC,CAAsB,EAAE,EAAE;oBACpC,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;wBACvC,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,UAAU,EAAE,CAAC;oBACf,CAAC;gBACH,CAAC,KACG,IAAI,YAEP,QAAQ,GACG,EACb,MAAM;gBACL,YAAY,CACV,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,GAAI,EACnE,QAAQ,CAAC,IAAI,CACd,IACF,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.overlay {
|
|
2
|
+
animation: fadeIn 0.2s ease-out forwards;
|
|
3
|
+
backdrop-filter: var(--backdrop-filter);
|
|
4
|
+
|
|
5
|
+
&.closing {
|
|
6
|
+
animation: fadeOut 0.2s ease-out forwards;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.content {
|
|
11
|
+
animation: scaleIn 0.2s ease-out forwards;
|
|
12
|
+
|
|
13
|
+
&.closing {
|
|
14
|
+
animation: scaleOut 0.2s ease-out forwards;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes fadeIn {
|
|
19
|
+
from {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
backdrop-filter: blur(0);
|
|
22
|
+
}
|
|
23
|
+
to {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
backdrop-filter: var(--backdrop-filter);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes fadeOut {
|
|
30
|
+
from {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
backdrop-filter: var(--backdrop-filter);
|
|
33
|
+
}
|
|
34
|
+
to {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
backdrop-filter: blur(0);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes scaleIn {
|
|
41
|
+
from {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: scale(0.9);
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
transform: scale(1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes scaleOut {
|
|
52
|
+
from {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
transform: scale(1);
|
|
55
|
+
}
|
|
56
|
+
to {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
transform: scale(0.9);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Flex } from "../../";
|
|
3
|
+
export interface MenuLink {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface MenuSection {
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
links: MenuLink[];
|
|
13
|
+
}
|
|
14
|
+
export interface MenuGroup {
|
|
15
|
+
id: string;
|
|
16
|
+
label: ReactNode;
|
|
17
|
+
suffixIcon?: string;
|
|
18
|
+
href?: string;
|
|
19
|
+
selected?: boolean;
|
|
20
|
+
sections?: MenuSection[];
|
|
21
|
+
content?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export interface MegaMenuProps extends React.ComponentProps<typeof Flex> {
|
|
24
|
+
menuGroups: MenuGroup[];
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const MegaMenu: React.FC<MegaMenuProps>;
|
|
28
|
+
//# sourceMappingURL=MegaMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MegaMenu.d.ts","sourceRoot":"","sources":["../../../src/modules/navigation/MegaMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAA+B,SAAS,EAAwB,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,IAAI,EAAyC,MAAM,QAAQ,CAAC;AAGrE,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IACtE,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuT5C,CAAC"}
|