@once-ui-system/core 2.0.0-alpha.1 → 2.0.0-alpha.3
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/ai/catalog.json +11 -4
- package/ai/components/Effect.json +1 -1
- package/ai/components/Feedback.json +1 -0
- package/ai/components/Form.json +15 -0
- package/ai/components/Input.json +3 -2
- package/ai/components/{Particle.json → ParticleFx.json} +1 -1
- package/ai/components/ScrollContainer.json +9 -1
- package/ai/components/Textarea.json +3 -2
- package/ai/components/ThemeSwitcher.json +2 -1
- package/ai/examples/blocks/Footer4.tsx +2 -2
- package/ai/examples/blocks/manifest.json +2 -2
- package/ai/gotchas.json +7 -0
- package/ai/manifest.json +2 -2
- package/ai/rules.md +1 -1
- package/ai/spec.json +35 -10
- package/dist/ai/catalog.json +11 -4
- package/dist/ai/components/Effect.json +1 -1
- package/dist/ai/components/Feedback.json +1 -0
- package/dist/ai/components/Form.json +15 -0
- package/dist/ai/components/Input.json +3 -2
- package/dist/ai/components/{Particle.json → ParticleFx.json} +1 -1
- package/dist/ai/components/ScrollContainer.json +9 -1
- package/dist/ai/components/Textarea.json +3 -2
- package/dist/ai/components/ThemeSwitcher.json +2 -1
- package/dist/ai/examples/blocks/manifest.json +2 -2
- package/dist/ai/gotchas.json +7 -0
- package/dist/ai/manifest.json +2 -2
- package/dist/ai/rules.md +1 -1
- package/dist/ai/spec.json +35 -10
- package/dist/components/Accordion.d.ts +3 -1
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion.js +4 -1
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/AccordionGroup.d.ts +1 -1
- package/dist/components/AccordionGroup.d.ts.map +1 -1
- package/dist/components/AccordionGroup.js +3 -1
- package/dist/components/AccordionGroup.js.map +1 -1
- package/dist/components/Animation.d.ts +2 -3
- package/dist/components/Animation.d.ts.map +1 -1
- package/dist/components/Animation.js +2 -2
- package/dist/components/Animation.js.map +1 -1
- package/dist/components/Arrow.d.ts +1 -1
- package/dist/components/Arrow.d.ts.map +1 -1
- package/dist/components/Arrow.js +1 -1
- package/dist/components/Arrow.js.map +1 -1
- package/dist/components/ArrowNavigationContext.d.ts.map +1 -1
- package/dist/components/ArrowNavigationContext.js +12 -3
- package/dist/components/ArrowNavigationContext.js.map +1 -1
- package/dist/components/AutoScroll.d.ts +1 -1
- package/dist/components/AutoScroll.d.ts.map +1 -1
- package/dist/components/AutoScroll.js +1 -1
- package/dist/components/AutoScroll.js.map +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +6 -1
- package/dist/components/Avatar.js.map +1 -1
- package/dist/components/AvatarGroup.d.ts +2 -1
- package/dist/components/AvatarGroup.d.ts.map +1 -1
- package/dist/components/AvatarGroup.js +2 -1
- package/dist/components/AvatarGroup.js.map +1 -1
- package/dist/components/Background.d.ts +2 -1
- package/dist/components/Background.d.ts.map +1 -1
- package/dist/components/Background.js +2 -1
- package/dist/components/Background.js.map +1 -1
- package/dist/components/Badge.d.ts +1 -1
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Badge.js +4 -1
- package/dist/components/Badge.js.map +1 -1
- package/dist/components/BlobFx.d.ts +1 -1
- package/dist/components/BlobFx.d.ts.map +1 -1
- package/dist/components/BlobFx.js +2 -1
- package/dist/components/BlobFx.js.map +1 -1
- package/dist/components/BlockQuote.d.ts +1 -1
- package/dist/components/BlockQuote.d.ts.map +1 -1
- package/dist/components/BlockQuote.js +6 -1
- package/dist/components/BlockQuote.js.map +1 -1
- package/dist/components/Book.d.ts +1 -1
- package/dist/components/Book.d.ts.map +1 -1
- package/dist/components/Book.js +4 -1
- package/dist/components/Book.js.map +1 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +4 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.d.ts +1 -1
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.js +9 -4
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Carousel.d.ts +1 -1
- package/dist/components/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel.js +7 -1
- package/dist/components/Carousel.js.map +1 -1
- package/dist/components/CelebrationFx.d.ts +1 -1
- package/dist/components/CelebrationFx.d.ts.map +1 -1
- package/dist/components/CelebrationFx.js +1 -1
- package/dist/components/CelebrationFx.js.map +1 -1
- package/dist/components/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +3 -1
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/Chip.d.ts +2 -1
- package/dist/components/Chip.d.ts.map +1 -1
- package/dist/components/Chip.js +4 -1
- package/dist/components/Chip.js.map +1 -1
- package/dist/components/ClientFlex.d.ts.map +1 -1
- package/dist/components/ClientFlex.js +3 -2
- package/dist/components/ClientFlex.js.map +1 -1
- package/dist/components/ClientGrid.d.ts.map +1 -1
- package/dist/components/ClientGrid.js +3 -2
- package/dist/components/ClientGrid.js.map +1 -1
- package/dist/components/ColorInput.d.ts +1 -1
- package/dist/components/ColorInput.d.ts.map +1 -1
- package/dist/components/ColorInput.js +7 -1
- package/dist/components/ColorInput.js.map +1 -1
- package/dist/components/CompareImage.d.ts +1 -1
- package/dist/components/CompareImage.d.ts.map +1 -1
- package/dist/components/CompareImage.js +3 -1
- package/dist/components/CompareImage.js.map +1 -1
- package/dist/components/ContextMenu.d.ts +1 -1
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu.js +3 -1
- package/dist/components/ContextMenu.js.map +1 -1
- package/dist/components/CountFx.d.ts +1 -1
- package/dist/components/CountFx.d.ts.map +1 -1
- package/dist/components/CountFx.js +2 -1
- package/dist/components/CountFx.js.map +1 -1
- package/dist/components/CountdownFx.d.ts +1 -1
- package/dist/components/CountdownFx.d.ts.map +1 -1
- package/dist/components/CountdownFx.js +3 -1
- package/dist/components/CountdownFx.js.map +1 -1
- package/dist/components/Cursor.js +1 -1
- package/dist/components/Cursor.js.map +1 -1
- package/dist/components/CursorCard.d.ts +2 -2
- package/dist/components/CursorCard.d.ts.map +1 -1
- package/dist/components/CursorCard.js +1 -1
- package/dist/components/CursorCard.js.map +1 -1
- package/dist/components/DateInput.d.ts +1 -1
- package/dist/components/DateInput.d.ts.map +1 -1
- package/dist/components/DateInput.js +3 -1
- package/dist/components/DateInput.js.map +1 -1
- package/dist/components/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker.js +22 -2
- package/dist/components/DatePicker.js.map +1 -1
- package/dist/components/DateRangeInput.d.ts +2 -1
- package/dist/components/DateRangeInput.d.ts.map +1 -1
- package/dist/components/DateRangeInput.js +5 -1
- package/dist/components/DateRangeInput.js.map +1 -1
- package/dist/components/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePicker.js +2 -1
- package/dist/components/DateRangePicker.js.map +1 -1
- package/dist/components/Dialog.d.ts +1 -1
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog.js +6 -1
- package/dist/components/Dialog.js.map +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown.js +2 -1
- package/dist/components/Dropdown.js.map +1 -1
- package/dist/components/DropdownWrapper.d.ts +1 -1
- package/dist/components/DropdownWrapper.d.ts.map +1 -1
- package/dist/components/DropdownWrapper.js +186 -37
- package/dist/components/DropdownWrapper.js.map +1 -1
- package/dist/components/DropdownWrapper.module.scss +3 -1
- package/dist/components/Effect.d.ts +7 -2
- package/dist/components/Effect.d.ts.map +1 -1
- package/dist/components/Effect.js +7 -2
- package/dist/components/Effect.js.map +1 -1
- package/dist/components/ElementType.js +1 -1
- package/dist/components/ElementType.js.map +1 -1
- package/dist/components/EmojiPicker.d.ts +3 -2
- package/dist/components/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker.js +8 -1
- package/dist/components/EmojiPicker.js.map +1 -1
- package/dist/components/EmojiPickerDropdown.d.ts +4 -3
- package/dist/components/EmojiPickerDropdown.d.ts.map +1 -1
- package/dist/components/EmojiPickerDropdown.js +2 -1
- package/dist/components/EmojiPickerDropdown.js.map +1 -1
- package/dist/components/Fade.d.ts +1 -1
- package/dist/components/Fade.d.ts.map +1 -1
- package/dist/components/Fade.js +1 -1
- package/dist/components/Fade.js.map +1 -1
- package/dist/components/FadingLettersFx.d.ts.map +1 -1
- package/dist/components/FadingLettersFx.js +1 -1
- package/dist/components/FadingLettersFx.js.map +1 -1
- package/dist/components/FadingLettersFx.module.scss +214 -37
- package/dist/components/Feedback.d.ts +5 -1
- package/dist/components/Feedback.d.ts.map +1 -1
- package/dist/components/Feedback.js +7 -3
- package/dist/components/Feedback.js.map +1 -1
- package/dist/components/FlipFx.d.ts +1 -1
- package/dist/components/FlipFx.d.ts.map +1 -1
- package/dist/components/FlipFx.js +1 -1
- package/dist/components/FlipFx.js.map +1 -1
- package/dist/components/FocusTrap.d.ts +3 -3
- package/dist/components/FocusTrap.d.ts.map +1 -1
- package/dist/components/FocusTrap.js +10 -0
- package/dist/components/FocusTrap.js.map +1 -1
- package/dist/components/Form.d.ts +48 -0
- package/dist/components/Form.d.ts.map +1 -0
- package/dist/components/Form.js +191 -0
- package/dist/components/Form.js.map +1 -0
- package/dist/components/Form.module.scss +160 -0
- package/dist/components/FormContext.d.ts +20 -0
- package/dist/components/FormContext.d.ts.map +1 -0
- package/dist/components/FormContext.js +12 -0
- package/dist/components/FormContext.js.map +1 -0
- package/dist/components/GlitchFx.d.ts +1 -1
- package/dist/components/GlitchFx.d.ts.map +1 -1
- package/dist/components/GlitchFx.js +1 -1
- package/dist/components/GlitchFx.js.map +1 -1
- package/dist/components/Heading.d.ts.map +1 -1
- package/dist/components/Heading.js +17 -10
- package/dist/components/Heading.js.map +1 -1
- package/dist/components/HoloFx.d.ts +1 -1
- package/dist/components/HoloFx.d.ts.map +1 -1
- package/dist/components/HoloFx.js +1 -1
- package/dist/components/HoloFx.js.map +1 -1
- package/dist/components/Hover.d.ts +1 -1
- package/dist/components/Hover.d.ts.map +1 -1
- package/dist/components/Hover.js +1 -1
- package/dist/components/Hover.js.map +1 -1
- package/dist/components/HoverCard.d.ts +1 -1
- package/dist/components/HoverCard.d.ts.map +1 -1
- package/dist/components/HoverCard.js +1 -1
- package/dist/components/HoverCard.js.map +1 -1
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/Icon.js +3 -1
- package/dist/components/Icon.js.map +1 -1
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +5 -1
- package/dist/components/IconButton.js.map +1 -1
- package/dist/components/InfiniteScroll.d.ts +1 -1
- package/dist/components/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScroll.js +3 -1
- package/dist/components/InfiniteScroll.js.map +1 -1
- package/dist/components/InfoTip.d.ts +2 -1
- package/dist/components/InfoTip.d.ts.map +1 -1
- package/dist/components/InfoTip.js +4 -1
- package/dist/components/InfoTip.js.map +1 -1
- package/dist/components/InlineCode.d.ts +1 -1
- package/dist/components/InlineCode.d.ts.map +1 -1
- package/dist/components/InlineCode.js +1 -1
- package/dist/components/InlineCode.js.map +1 -1
- package/dist/components/Input.d.ts +3 -0
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +17 -3
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Input.module.scss +27 -6
- package/dist/components/InteractiveDetails.d.ts +1 -1
- package/dist/components/InteractiveDetails.d.ts.map +1 -1
- package/dist/components/InteractiveDetails.js +4 -1
- package/dist/components/InteractiveDetails.js.map +1 -1
- package/dist/components/Kbd.d.ts +1 -1
- package/dist/components/Kbd.d.ts.map +1 -1
- package/dist/components/Kbd.js +2 -1
- package/dist/components/Kbd.js.map +1 -1
- package/dist/components/Line.d.ts +1 -1
- package/dist/components/Line.d.ts.map +1 -1
- package/dist/components/Line.js +1 -1
- package/dist/components/Line.js.map +1 -1
- package/dist/components/List.d.ts +1 -1
- package/dist/components/List.d.ts.map +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/List.js.map +1 -1
- package/dist/components/ListItem.d.ts +1 -1
- package/dist/components/ListItem.d.ts.map +1 -1
- package/dist/components/ListItem.js +1 -1
- package/dist/components/ListItem.js.map +1 -1
- package/dist/components/Logo.d.ts.map +1 -1
- package/dist/components/Logo.js +8 -2
- package/dist/components/Logo.js.map +1 -1
- package/dist/components/LogoCloud.d.ts +2 -1
- package/dist/components/LogoCloud.d.ts.map +1 -1
- package/dist/components/LogoCloud.js +3 -1
- package/dist/components/LogoCloud.js.map +1 -1
- package/dist/components/Mask.d.ts +1 -1
- package/dist/components/Mask.d.ts.map +1 -1
- package/dist/components/Mask.js +1 -1
- package/dist/components/Mask.js.map +1 -1
- package/dist/components/MatrixFx.d.ts +1 -1
- package/dist/components/MatrixFx.d.ts.map +1 -1
- package/dist/components/MatrixFx.js +1 -1
- package/dist/components/MatrixFx.js.map +1 -1
- package/dist/components/Media.d.ts +1 -1
- package/dist/components/Media.d.ts.map +1 -1
- package/dist/components/Media.js +5 -1
- package/dist/components/Media.js.map +1 -1
- package/dist/components/MediaAudioPlayer.d.ts +1 -1
- package/dist/components/MediaAudioPlayer.d.ts.map +1 -1
- package/dist/components/MediaAudioPlayer.js +4 -1
- package/dist/components/MediaAudioPlayer.js.map +1 -1
- package/dist/components/MediaVideoPlayer.d.ts.map +1 -1
- package/dist/components/MediaVideoPlayer.js +4 -1
- package/dist/components/MediaVideoPlayer.js.map +1 -1
- package/dist/components/Modal.d.ts.map +1 -1
- package/dist/components/Modal.js +5 -1
- package/dist/components/Modal.js.map +1 -1
- package/dist/components/NavGroup.d.ts +1 -1
- package/dist/components/NavGroup.d.ts.map +1 -1
- package/dist/components/NavGroup.js +5 -1
- package/dist/components/NavGroup.js.map +1 -1
- package/dist/components/NavIcon.d.ts +1 -1
- package/dist/components/NavIcon.d.ts.map +1 -1
- package/dist/components/NavIcon.js +1 -1
- package/dist/components/NavIcon.js.map +1 -1
- package/dist/components/NavItem.d.ts +1 -1
- package/dist/components/NavItem.d.ts.map +1 -1
- package/dist/components/NavItem.js +4 -1
- package/dist/components/NavItem.js.map +1 -1
- package/dist/components/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput.js +4 -1
- package/dist/components/NumberInput.js.map +1 -1
- package/dist/components/OTPInput.d.ts.map +1 -1
- package/dist/components/OTPInput.js +4 -1
- package/dist/components/OTPInput.js.map +1 -1
- package/dist/components/OgCard.d.ts +1 -1
- package/dist/components/OgCard.d.ts.map +1 -1
- package/dist/components/OgCard.js +6 -1
- package/dist/components/OgCard.js.map +1 -1
- package/dist/components/Option.d.ts +1 -1
- package/dist/components/Option.d.ts.map +1 -1
- package/dist/components/Option.js +4 -1
- package/dist/components/Option.js.map +1 -1
- package/dist/components/{Particle.d.ts → ParticleFx.d.ts} +10 -5
- package/dist/components/ParticleFx.d.ts.map +1 -0
- package/dist/components/{Particle.js → ParticleFx.js} +10 -5
- package/dist/components/ParticleFx.js.map +1 -0
- package/dist/components/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput.js +2 -1
- package/dist/components/PasswordInput.js.map +1 -1
- package/dist/components/ProgressBar.d.ts +1 -1
- package/dist/components/ProgressBar.d.ts.map +1 -1
- package/dist/components/ProgressBar.js +5 -1
- package/dist/components/ProgressBar.js.map +1 -1
- package/dist/components/Pulse.d.ts +1 -1
- package/dist/components/Pulse.d.ts.map +1 -1
- package/dist/components/Pulse.js +1 -1
- package/dist/components/Pulse.js.map +1 -1
- package/dist/components/RadioButton.d.ts +1 -1
- package/dist/components/RadioButton.d.ts.map +1 -1
- package/dist/components/RadioButton.js +2 -1
- package/dist/components/RadioButton.js.map +1 -1
- package/dist/components/RevealFx.d.ts +1 -1
- package/dist/components/RevealFx.d.ts.map +1 -1
- package/dist/components/RevealFx.js +1 -1
- package/dist/components/RevealFx.js.map +1 -1
- package/dist/components/ScrollContainer.d.ts +70 -3
- package/dist/components/ScrollContainer.d.ts.map +1 -1
- package/dist/components/ScrollContainer.js +380 -46
- package/dist/components/ScrollContainer.js.map +1 -1
- package/dist/components/ScrollContainer.module.scss +131 -0
- package/dist/components/ScrollToTop.d.ts +1 -1
- package/dist/components/ScrollToTop.d.ts.map +1 -1
- package/dist/components/ScrollToTop.js +1 -1
- package/dist/components/ScrollToTop.js.map +1 -1
- package/dist/components/Scroller.d.ts +2 -1
- package/dist/components/Scroller.d.ts.map +1 -1
- package/dist/components/Scroller.js +3 -1
- package/dist/components/Scroller.js.map +1 -1
- package/dist/components/Scrubber.d.ts +1 -1
- package/dist/components/Scrubber.d.ts.map +1 -1
- package/dist/components/Scrubber.js +3 -1
- package/dist/components/Scrubber.js.map +1 -1
- package/dist/components/SegmentedControl.d.ts +2 -1
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +3 -1
- package/dist/components/SegmentedControl.js.map +1 -1
- package/dist/components/Select.d.ts +6 -3
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js +8 -1
- package/dist/components/Select.js.map +1 -1
- package/dist/components/ServerFlex.d.ts.map +1 -1
- package/dist/components/ServerFlex.js +17 -42
- package/dist/components/ServerFlex.js.map +1 -1
- package/dist/components/ServerGrid.d.ts.map +1 -1
- package/dist/components/ServerGrid.js +17 -42
- package/dist/components/ServerGrid.js.map +1 -1
- package/dist/components/Setting.d.ts +1 -1
- package/dist/components/Setting.d.ts.map +1 -1
- package/dist/components/Setting.js +10 -2
- package/dist/components/Setting.js.map +1 -1
- package/dist/components/ShineFx.d.ts +1 -1
- package/dist/components/ShineFx.d.ts.map +1 -1
- package/dist/components/ShineFx.js +1 -1
- package/dist/components/ShineFx.js.map +1 -1
- package/dist/components/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Skeleton.js.map +1 -1
- package/dist/components/Slider.d.ts.map +1 -1
- package/dist/components/Slider.js +3 -1
- package/dist/components/Slider.js.map +1 -1
- package/dist/components/SmartLink.d.ts.map +1 -1
- package/dist/components/SmartLink.js +2 -1
- package/dist/components/SmartLink.js.map +1 -1
- package/dist/components/Spinner.d.ts +1 -1
- package/dist/components/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Spinner.js.map +1 -1
- package/dist/components/SplitView.d.ts +2 -2
- package/dist/components/SplitView.d.ts.map +1 -1
- package/dist/components/SplitView.js +5 -2
- package/dist/components/SplitView.js.map +1 -1
- package/dist/components/StatusIndicator.d.ts +1 -1
- package/dist/components/StatusIndicator.d.ts.map +1 -1
- package/dist/components/StatusIndicator.js +1 -1
- package/dist/components/StatusIndicator.js.map +1 -1
- package/dist/components/StyleOverlay.d.ts +2 -1
- package/dist/components/StyleOverlay.d.ts.map +1 -1
- package/dist/components/StyleOverlay.js +4 -1
- package/dist/components/StyleOverlay.js.map +1 -1
- package/dist/components/StylePanelSections.d.ts +3 -2
- package/dist/components/StylePanelSections.d.ts.map +1 -1
- package/dist/components/StylePanelSections.js +7 -1
- package/dist/components/StylePanelSections.js.map +1 -1
- package/dist/components/Swiper.d.ts +1 -1
- package/dist/components/Swiper.d.ts.map +1 -1
- package/dist/components/Swiper.js +5 -1
- package/dist/components/Swiper.js.map +1 -1
- package/dist/components/Switch.d.ts +1 -1
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Switch.js +3 -1
- package/dist/components/Switch.js.map +1 -1
- package/dist/components/Table.d.ts +1 -1
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Table.js +10 -1
- package/dist/components/Table.js.map +1 -1
- package/dist/components/Tag.d.ts +1 -1
- package/dist/components/Tag.d.ts.map +1 -1
- package/dist/components/Tag.js +3 -1
- package/dist/components/Tag.js.map +1 -1
- package/dist/components/TagInput.d.ts +1 -1
- package/dist/components/TagInput.d.ts.map +1 -1
- package/dist/components/TagInput.js +3 -1
- package/dist/components/TagInput.js.map +1 -1
- package/dist/components/Text.d.ts.map +1 -1
- package/dist/components/Text.js +17 -10
- package/dist/components/Text.js.map +1 -1
- package/dist/components/Textarea.d.ts +3 -0
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +25 -7
- package/dist/components/Textarea.js.map +1 -1
- package/dist/components/ThemeSwitcher.d.ts +17 -1
- package/dist/components/ThemeSwitcher.d.ts.map +1 -1
- package/dist/components/ThemeSwitcher.js +67 -10
- package/dist/components/ThemeSwitcher.js.map +1 -1
- package/dist/components/ThemeSwitcher.module.scss +140 -3
- package/dist/components/TiltFx.d.ts +1 -1
- package/dist/components/TiltFx.d.ts.map +1 -1
- package/dist/components/TiltFx.js +1 -1
- package/dist/components/TiltFx.js.map +1 -1
- package/dist/components/Timeline.d.ts +1 -1
- package/dist/components/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline.js +4 -1
- package/dist/components/Timeline.js.map +1 -1
- package/dist/components/Toast.d.ts.map +1 -1
- package/dist/components/Toast.js +4 -1
- package/dist/components/Toast.js.map +1 -1
- package/dist/components/Toaster.d.ts.map +1 -1
- package/dist/components/Toaster.js +4 -2
- package/dist/components/Toaster.js.map +1 -1
- package/dist/components/ToggleButton.d.ts.map +1 -1
- package/dist/components/ToggleButton.js +3 -1
- package/dist/components/ToggleButton.js.map +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +2 -1
- package/dist/components/Tooltip.js.map +1 -1
- package/dist/components/TypeFx.d.ts +1 -1
- package/dist/components/TypeFx.d.ts.map +1 -1
- package/dist/components/TypeFx.js +1 -1
- package/dist/components/TypeFx.js.map +1 -1
- package/dist/components/User.d.ts +3 -2
- package/dist/components/User.d.ts.map +1 -1
- package/dist/components/User.js +6 -1
- package/dist/components/User.js.map +1 -1
- package/dist/components/UserMenu.d.ts +4 -3
- package/dist/components/UserMenu.d.ts.map +1 -1
- package/dist/components/UserMenu.js +3 -1
- package/dist/components/UserMenu.js.map +1 -1
- package/dist/components/WeatherFx.d.ts +1 -1
- package/dist/components/WeatherFx.d.ts.map +1 -1
- package/dist/components/WeatherFx.js +1 -1
- package/dist/components/WeatherFx.js.map +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/DataThemeProvider.d.ts +1 -1
- package/dist/contexts/DataThemeProvider.d.ts.map +1 -1
- package/dist/contexts/ThemeProvider.js +1 -1
- package/dist/contexts/ThemeProvider.js.map +1 -1
- package/dist/contexts/ToastProvider.js +1 -1
- package/dist/contexts/ToastProvider.js.map +1 -1
- package/dist/hooks/useArrowNavigation.d.ts.map +1 -1
- package/dist/hooks/useArrowNavigation.js +52 -7
- package/dist/hooks/useArrowNavigation.js.map +1 -1
- package/dist/modules/code/CodeBlock.impl.d.ts +1 -1
- package/dist/modules/code/CodeBlock.impl.d.ts.map +1 -1
- package/dist/modules/code/CodeBlock.impl.js +10 -1
- package/dist/modules/code/CodeBlock.impl.js.map +1 -1
- package/dist/modules/data/BarChart.impl.d.ts +1 -1
- package/dist/modules/data/BarChart.impl.d.ts.map +1 -1
- package/dist/modules/data/BarChart.impl.js +8 -3
- package/dist/modules/data/BarChart.impl.js.map +1 -1
- package/dist/modules/data/ChartHeader.d.ts +2 -1
- package/dist/modules/data/ChartHeader.d.ts.map +1 -1
- package/dist/modules/data/ChartHeader.js +7 -1
- package/dist/modules/data/ChartHeader.js.map +1 -1
- package/dist/modules/data/ChartStatus.d.ts.map +1 -1
- package/dist/modules/data/ChartStatus.js +3 -1
- package/dist/modules/data/ChartStatus.js.map +1 -1
- package/dist/modules/data/DataTooltip.d.ts.map +1 -1
- package/dist/modules/data/DataTooltip.js +4 -1
- package/dist/modules/data/DataTooltip.js.map +1 -1
- package/dist/modules/data/Legend.d.ts.map +1 -1
- package/dist/modules/data/Legend.js +3 -2
- package/dist/modules/data/Legend.js.map +1 -1
- package/dist/modules/data/LineBarChart.impl.d.ts +1 -1
- package/dist/modules/data/LineBarChart.impl.d.ts.map +1 -1
- package/dist/modules/data/LineBarChart.impl.js +8 -3
- package/dist/modules/data/LineBarChart.impl.js.map +1 -1
- package/dist/modules/data/LineChart.impl.d.ts +1 -1
- package/dist/modules/data/LineChart.impl.d.ts.map +1 -1
- package/dist/modules/data/LineChart.impl.js +8 -3
- package/dist/modules/data/LineChart.impl.js.map +1 -1
- package/dist/modules/data/LinearGauge.d.ts +1 -1
- package/dist/modules/data/LinearGauge.d.ts.map +1 -1
- package/dist/modules/data/LinearGauge.js +3 -1
- package/dist/modules/data/LinearGauge.js.map +1 -1
- package/dist/modules/data/PieChart.impl.d.ts +1 -1
- package/dist/modules/data/PieChart.impl.d.ts.map +1 -1
- package/dist/modules/data/PieChart.impl.js +8 -3
- package/dist/modules/data/PieChart.impl.js.map +1 -1
- package/dist/modules/data/RadialGauge.d.ts +1 -1
- package/dist/modules/data/RadialGauge.d.ts.map +1 -1
- package/dist/modules/data/RadialGauge.js +3 -1
- package/dist/modules/data/RadialGauge.js.map +1 -1
- package/dist/modules/data/Swatch.js +2 -2
- package/dist/modules/data/Swatch.js.map +1 -1
- package/dist/modules/data/interfaces.d.ts +3 -2
- package/dist/modules/data/interfaces.d.ts.map +1 -1
- package/dist/modules/media/MediaUpload.impl.d.ts +1 -1
- package/dist/modules/media/MediaUpload.impl.d.ts.map +1 -1
- package/dist/modules/media/MediaUpload.impl.js +5 -1
- package/dist/modules/media/MediaUpload.impl.js.map +1 -1
- package/dist/modules/navigation/HeadingLink.d.ts +1 -1
- package/dist/modules/navigation/HeadingLink.d.ts.map +1 -1
- package/dist/modules/navigation/HeadingLink.js +5 -2
- package/dist/modules/navigation/HeadingLink.js.map +1 -1
- package/dist/modules/navigation/HeadingNav.d.ts +1 -1
- package/dist/modules/navigation/HeadingNav.d.ts.map +1 -1
- package/dist/modules/navigation/HeadingNav.js +7 -1
- package/dist/modules/navigation/HeadingNav.js.map +1 -1
- package/dist/modules/navigation/Kbar.d.ts +1 -1
- package/dist/modules/navigation/Kbar.d.ts.map +1 -1
- package/dist/modules/navigation/Kbar.js +10 -1
- package/dist/modules/navigation/Kbar.js.map +1 -1
- package/dist/modules/navigation/MegaMenu.d.ts +1 -1
- package/dist/modules/navigation/MegaMenu.d.ts.map +1 -1
- package/dist/modules/navigation/MegaMenu.js +230 -16
- package/dist/modules/navigation/MegaMenu.js.map +1 -1
- package/dist/modules/navigation/MobileMegaMenu.d.ts +1 -1
- package/dist/modules/navigation/MobileMegaMenu.d.ts.map +1 -1
- package/dist/modules/navigation/MobileMegaMenu.js +7 -1
- package/dist/modules/navigation/MobileMegaMenu.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/MissingDependency.d.ts.map +1 -1
- package/dist/utils/MissingDependency.js +3 -1
- package/dist/utils/MissingDependency.js.map +1 -1
- package/dist/utils/spacingStyle.d.ts +33 -0
- package/dist/utils/spacingStyle.d.ts.map +1 -0
- package/dist/utils/spacingStyle.js +34 -0
- package/dist/utils/spacingStyle.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/Particle.d.ts.map +0 -1
- package/dist/components/Particle.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { DropdownWrapper
|
|
4
|
+
import { DropdownWrapper } from "./DropdownWrapper";
|
|
5
|
+
import { EmojiPicker } from "./EmojiPicker";
|
|
5
6
|
const EmojiPickerDropdown = forwardRef(({ trigger, onSelect, closeAfterClick = true, background = "surface", columns = "8", ...dropdownProps }, ref) => {
|
|
6
7
|
const handleEmojiSelect = (emoji) => {
|
|
7
8
|
onSelect(emoji);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPickerDropdown.js","sourceRoot":"","sources":["../../src/components/EmojiPickerDropdown.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"EmojiPickerDropdown.js","sourceRoot":"","sources":["../../src/components/EmojiPickerDropdown.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,MAAM,mBAAmB,GAAG,UAAU,CAA2C,CAAC,EAChF,OAAO,EACP,QAAQ,EACR,eAAe,GAAG,IAAI,EACtB,UAAU,GAAG,SAAS,EACtB,OAAO,GAAG,GAAG,EACb,GAAG,aAAa,EACjB,EAAE,GAAG,EAAE,EAAE;IACR,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,EAAE;QAC1C,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChB,IAAI,eAAe,EAAE,CAAC;YACpB,aAAa,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,eAAe,OACV,aAAa,EACjB,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,KAAK,EAC5B,QAAQ,EACN,KAAC,WAAW,IACV,OAAO,EAAE,OAAO,EAChB,OAAO,EAAC,GAAG,EACX,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAChF,UAAU,EAAE,UAAU,GACtB,GAEJ,CACH,CAAC;AACJ,CAAC,CAAC,CAAA;AAEF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import { Flex } from "
|
|
2
|
+
import { Flex } from "./Flex";
|
|
3
3
|
import { ColorScheme, ColorWeight, SpacingToken } from "../types";
|
|
4
4
|
export type BaseColor = `${ColorScheme}-${ColorWeight}` | `${ColorScheme}-alpha-${ColorWeight}` | "surface" | "overlay" | "page" | "transparent";
|
|
5
5
|
interface FadeProps extends React.ComponentProps<typeof Flex> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fade.d.ts","sourceRoot":"","sources":["../../src/components/Fade.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Fade.d.ts","sourceRoot":"","sources":["../../src/components/Fade.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGlE,MAAM,MAAM,SAAS,GACjB,GAAG,WAAW,IAAI,WAAW,EAAE,GAC/B,GAAG,WAAW,UAAU,WAAW,EAAE,GACrC,SAAS,GACT,SAAS,GACT,MAAM,GACN,aAAa,CAAC;AAElB,UAAU,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IACzC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,YAAY,CAAC;KACrB,CAAC;IACF,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,IAAI,+FA4DT,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/components/Fade.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import styles from "./Fade.module.scss";
|
|
4
|
-
import { Flex } from "
|
|
4
|
+
import { Flex } from "./Flex";
|
|
5
5
|
import classNames from "clsx";
|
|
6
6
|
const Fade = forwardRef(({ to = "bottom", base = "page", pattern = {
|
|
7
7
|
display: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fade.js","sourceRoot":"","sources":["../../src/components/Fade.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AACrD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Fade.js","sourceRoot":"","sources":["../../src/components/Fade.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AACrD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,UAAU,MAAM,MAAM,CAAC;AAuB9B,MAAM,IAAI,GAAG,UAAU,CACrB,CACE,EACE,EAAE,GAAG,QAAQ,EACb,IAAI,GAAG,MAAM,EACb,OAAO,GAAG;IACR,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,GAAG;CACV,EACD,IAAI,GAAG,GAAG,EACV,QAAQ,EACR,SAAS,EACT,KA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AG,KAAK;SACc,EAE1B,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,KACzC,IAAI,YAEP,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FadingLettersFx.d.ts","sourceRoot":"","sources":["../../src/components/FadingLettersFx.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzD,UAAU,oBAAqB,SAAQ,cAAc,CAAC,OAAO,IAAI,CAAC;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iBAAS,eAAe,CAAC,EACvB,IAAI,EACJ,cAAc,EACd,UAAc,EACd,GAAG,SAAS,EACb,EAAE,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"FadingLettersFx.d.ts","sourceRoot":"","sources":["../../src/components/FadingLettersFx.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzD,UAAU,oBAAqB,SAAQ,cAAc,CAAC,OAAO,IAAI,CAAC;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iBAAS,eAAe,CAAC,EACvB,IAAI,EACJ,cAAc,EACd,UAAc,EACd,GAAG,SAAS,EACb,EAAE,oBAAoB,+BA2CtB;kBAhDQ,eAAe;;;AAoDxB,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -15,7 +15,7 @@ function FadingLettersFx({ text, animationState, messageIdx = 0, ...textProps })
|
|
|
15
15
|
return (_jsx("span", { className: `${styles.letter} ${animationState === "entering" ? styles.entering : ""} ${animationState === "exiting" ? styles.exiting : ""}`, style: {
|
|
16
16
|
"--entry-delay": `${entryDelay}ms`,
|
|
17
17
|
"--exit-delay": `${exitDelay}ms`,
|
|
18
|
-
}, suppressHydrationWarning: true, children: letter }, `${wordIdx}-${letterIdx}`));
|
|
18
|
+
}, "data-letter": letter, suppressHydrationWarning: true, children: _jsx("span", { className: styles.glyph, children: letter }) }, `${wordIdx}-${letterIdx}`));
|
|
19
19
|
});
|
|
20
20
|
return (_jsx("span", { className: styles.word, children: wordLetters }, wordIdx));
|
|
21
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FadingLettersFx.js","sourceRoot":"","sources":["../../src/components/FadingLettersFx.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAUnD,SAAS,eAAe,CAAC,EACvB,IAAI,EACJ,cAAc,EACd,UAAU,GAAG,CAAC,EACd,GAAG,SAAS,EACS;IACrB,MAAM,qBAAqB,GAAG,GAAG,EAAE;QACjC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,aAAa,GAAG,UAAU,GAAG,IAAI,CAAC;QAExC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;YACjC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CA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
3
|
+
* `transform` and `opacity`, nothing else.
|
|
4
|
+
*
|
|
5
|
+
* The effect used to animate `filter: blur()`. A changing blur radius moves
|
|
6
|
+
* pixels, so browsers keep that animation on the main thread, and any script
|
|
7
|
+
* that ran while the letters were arriving (hydration, a chunk loading, a
|
|
8
|
+
* WebGL context starting) froze them mid-blur. The blur is now fixed, on two
|
|
9
|
+
* copies of the letter: a heavy one (`::before`) and a light one (`::after`).
|
|
10
|
+
* Only their opacity moves. The heavy copy carries the start, the light one
|
|
11
|
+
* the middle, and the sharp letter the end, which steps the blur down the way
|
|
12
|
+
* the old radius shrank. Nothing a busy main thread does can stall that.
|
|
13
|
+
*
|
|
14
|
+
* The keyframes are the old curve (ease-out over 1200ms, opacity rising as
|
|
15
|
+
* the blur fell) sampled at tenths, so they run on a linear timing function;
|
|
16
|
+
* an easing on top would apply per segment and bend it twice.
|
|
17
|
+
*
|
|
18
|
+
* The copies come from `data-letter` and are generated content, so the letter
|
|
19
|
+
* is in the DOM once: it copies, reads and indexes as itself. The `/ ""`
|
|
20
|
+
* form gives the copies an empty accessible name where it is supported.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
.word {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
margin-right: 0.35em;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.letter {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
position: relative;
|
|
31
|
+
will-change: transform;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Above both copies: positioned, so it paints after them, not under. */
|
|
35
|
+
.glyph {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
position: relative;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.entering::before,
|
|
42
|
+
.entering::after,
|
|
43
|
+
.exiting::before,
|
|
44
|
+
.exiting::after {
|
|
45
|
+
content: attr(data-letter);
|
|
46
|
+
content: attr(data-letter) / "";
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset: 0;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
user-select: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.entering::before,
|
|
55
|
+
.exiting::before {
|
|
56
|
+
filter: blur(0.3em);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.entering::after,
|
|
60
|
+
.exiting::after {
|
|
61
|
+
filter: blur(0.09em);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Entering: 1200ms, from a tenth of the size. */
|
|
65
|
+
|
|
66
|
+
@keyframes letterScaleIn {
|
|
2
67
|
from {
|
|
3
|
-
|
|
4
|
-
filter: blur(20px);
|
|
5
|
-
transform: scale(0) translateZ(-100px);
|
|
68
|
+
transform: scale(0.1);
|
|
6
69
|
}
|
|
7
70
|
to {
|
|
8
|
-
|
|
9
|
-
filter: blur(0px);
|
|
10
|
-
transform: scale(1) translateZ(0);
|
|
71
|
+
transform: scale(1);
|
|
11
72
|
}
|
|
12
73
|
}
|
|
13
74
|
|
|
14
|
-
@keyframes
|
|
15
|
-
|
|
16
|
-
opacity:
|
|
17
|
-
filter: blur(0px);
|
|
18
|
-
transform: scale(1) translateZ(0);
|
|
75
|
+
@keyframes heavyIn {
|
|
76
|
+
0% {
|
|
77
|
+
opacity: 0;
|
|
19
78
|
}
|
|
20
|
-
|
|
79
|
+
10% {
|
|
80
|
+
opacity: 0.16;
|
|
81
|
+
}
|
|
82
|
+
20% {
|
|
83
|
+
opacity: 0.31;
|
|
84
|
+
}
|
|
85
|
+
30% {
|
|
86
|
+
opacity: 0.44;
|
|
87
|
+
}
|
|
88
|
+
40% {
|
|
89
|
+
opacity: 0.42;
|
|
90
|
+
}
|
|
91
|
+
50% {
|
|
92
|
+
opacity: 0.22;
|
|
93
|
+
}
|
|
94
|
+
60% {
|
|
95
|
+
opacity: 0.05;
|
|
96
|
+
}
|
|
97
|
+
70%,
|
|
98
|
+
100% {
|
|
21
99
|
opacity: 0;
|
|
22
|
-
filter: blur(30px);
|
|
23
|
-
transform: scale(8) translateZ(100px);
|
|
24
100
|
}
|
|
25
101
|
}
|
|
26
102
|
|
|
27
|
-
@keyframes
|
|
28
|
-
|
|
103
|
+
@keyframes lightIn {
|
|
104
|
+
0%,
|
|
105
|
+
30% {
|
|
29
106
|
opacity: 0;
|
|
30
|
-
filter: blur(25px);
|
|
31
|
-
transform: scale(0.1);
|
|
32
107
|
}
|
|
33
|
-
|
|
108
|
+
40% {
|
|
109
|
+
opacity: 0.25;
|
|
110
|
+
}
|
|
111
|
+
50% {
|
|
112
|
+
opacity: 0.5;
|
|
113
|
+
}
|
|
114
|
+
60% {
|
|
115
|
+
opacity: 0.7;
|
|
116
|
+
}
|
|
117
|
+
70% {
|
|
118
|
+
opacity: 0.72;
|
|
119
|
+
}
|
|
120
|
+
80% {
|
|
121
|
+
opacity: 0.6;
|
|
122
|
+
}
|
|
123
|
+
90% {
|
|
124
|
+
opacity: 0.3;
|
|
125
|
+
}
|
|
126
|
+
100% {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@keyframes glyphIn {
|
|
132
|
+
0%,
|
|
133
|
+
50% {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
}
|
|
136
|
+
60% {
|
|
137
|
+
opacity: 0.06;
|
|
138
|
+
}
|
|
139
|
+
70% {
|
|
140
|
+
opacity: 0.3;
|
|
141
|
+
}
|
|
142
|
+
80% {
|
|
143
|
+
opacity: 0.6;
|
|
144
|
+
}
|
|
145
|
+
90% {
|
|
146
|
+
opacity: 0.86;
|
|
147
|
+
}
|
|
148
|
+
100% {
|
|
34
149
|
opacity: 1;
|
|
35
|
-
filter: blur(0px);
|
|
36
|
-
transform: scale(1);
|
|
37
150
|
}
|
|
38
151
|
}
|
|
39
152
|
|
|
40
|
-
|
|
153
|
+
.letter.entering {
|
|
154
|
+
animation: letterScaleIn 1200ms ease-out both;
|
|
155
|
+
animation-delay: var(--entry-delay, 0s);
|
|
156
|
+
|
|
157
|
+
.glyph {
|
|
158
|
+
animation: glyphIn 1200ms linear both;
|
|
159
|
+
animation-delay: var(--entry-delay, 0s);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&::before {
|
|
163
|
+
animation: heavyIn 1200ms linear both;
|
|
164
|
+
animation-delay: var(--entry-delay, 0s);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&::after {
|
|
168
|
+
animation: lightIn 1200ms linear both;
|
|
169
|
+
animation-delay: var(--entry-delay, 0s);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Exiting: 1600ms, growing past the viewer as it blurs away. */
|
|
174
|
+
|
|
175
|
+
@keyframes letterScaleOut {
|
|
41
176
|
from {
|
|
42
|
-
opacity: 1;
|
|
43
|
-
filter: blur(0px);
|
|
44
177
|
transform: scale(1);
|
|
45
178
|
}
|
|
46
179
|
to {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
filter: blur(20px);
|
|
49
180
|
transform: scale(4);
|
|
50
181
|
}
|
|
51
182
|
}
|
|
52
183
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
184
|
+
@keyframes glyphOut {
|
|
185
|
+
0% {
|
|
186
|
+
opacity: 1;
|
|
187
|
+
}
|
|
188
|
+
20% {
|
|
189
|
+
opacity: 0.8;
|
|
190
|
+
}
|
|
191
|
+
35% {
|
|
192
|
+
opacity: 0.3;
|
|
193
|
+
}
|
|
194
|
+
45%,
|
|
195
|
+
100% {
|
|
196
|
+
opacity: 0;
|
|
197
|
+
}
|
|
56
198
|
}
|
|
57
199
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
200
|
+
@keyframes lightOut {
|
|
201
|
+
0%,
|
|
202
|
+
10% {
|
|
203
|
+
opacity: 0;
|
|
204
|
+
}
|
|
205
|
+
30% {
|
|
206
|
+
opacity: 0.6;
|
|
207
|
+
}
|
|
208
|
+
50% {
|
|
209
|
+
opacity: 0.3;
|
|
210
|
+
}
|
|
211
|
+
65%,
|
|
212
|
+
100% {
|
|
213
|
+
opacity: 0;
|
|
214
|
+
}
|
|
61
215
|
}
|
|
62
216
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
217
|
+
@keyframes heavyOut {
|
|
218
|
+
0%,
|
|
219
|
+
35% {
|
|
220
|
+
opacity: 0;
|
|
221
|
+
}
|
|
222
|
+
55% {
|
|
223
|
+
opacity: 0.35;
|
|
224
|
+
}
|
|
225
|
+
100% {
|
|
226
|
+
opacity: 0;
|
|
227
|
+
}
|
|
66
228
|
}
|
|
67
229
|
|
|
68
230
|
.letter.exiting {
|
|
69
|
-
animation:
|
|
231
|
+
animation: letterScaleOut 1600ms ease-in-out forwards;
|
|
70
232
|
animation-delay: var(--exit-delay, 0s);
|
|
233
|
+
|
|
234
|
+
.glyph {
|
|
235
|
+
animation: glyphOut 1600ms linear forwards;
|
|
236
|
+
animation-delay: var(--exit-delay, 0s);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&::before {
|
|
240
|
+
animation: heavyOut 1600ms linear forwards;
|
|
241
|
+
animation-delay: var(--exit-delay, 0s);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&::after {
|
|
245
|
+
animation: lightOut 1600ms linear forwards;
|
|
246
|
+
animation-delay: var(--exit-delay, 0s);
|
|
247
|
+
}
|
|
71
248
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import { Flex } from "
|
|
2
|
+
import { Flex } from "./Flex";
|
|
3
|
+
import type { IconName } from "../icons";
|
|
3
4
|
interface FeedbackProps extends Omit<React.ComponentProps<typeof Flex>, "title"> {
|
|
4
5
|
variant?: "info" | "danger" | "warning" | "success";
|
|
5
6
|
showIcon?: boolean;
|
|
7
|
+
/** Overrides the variant's icon. Custom names work once registered through
|
|
8
|
+
* the `IconLibraryOverrides` interface, which is what widens `IconName`. */
|
|
9
|
+
icon?: IconName;
|
|
6
10
|
title?: string;
|
|
7
11
|
description?: string;
|
|
8
12
|
showCloseButton?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feedback.d.ts","sourceRoot":"","sources":["../../src/components/Feedback.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Feedback.d.ts","sourceRoot":"","sources":["../../src/components/Feedback.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,UAAU,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,OAAO,CAAC;IAC9E,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;iFAC6E;IAC7E,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAWD,QAAA,MAAM,QAAQ,mGAsFb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { IconButton
|
|
4
|
+
import { IconButton } from "./IconButton";
|
|
5
|
+
import { Icon } from "./Icon";
|
|
6
|
+
import { Flex } from "./Flex";
|
|
7
|
+
import { Text } from "./Text";
|
|
8
|
+
import { Column } from "./Column";
|
|
5
9
|
const variantIconMap = {
|
|
6
10
|
info: "info",
|
|
7
11
|
danger: "danger",
|
|
8
12
|
warning: "warning",
|
|
9
13
|
success: "check",
|
|
10
14
|
};
|
|
11
|
-
const Feedback = forwardRef(({ variant = "info", showIcon = true, title, description, showCloseButton = false, onClose, className, style, children, ...rest }, ref) => {
|
|
12
|
-
return (_jsxs(Flex, { fillWidth: true, radius: "l", ref: ref, border: `${variant}-medium`, background: `${variant}-medium`, vertical: "start", role: "alert", "aria-live": "assertive", className: className, style: style, ...rest, children: [showIcon && (_jsx(Flex, { paddingY: "16", paddingLeft: "16", children: _jsx(Icon, { padding: "2", radius: "m", onBackground: `${variant}-medium`, name: variantIconMap[variant], "aria-hidden": "true" }) })), _jsxs(Column, { fillWidth: true, padding: "16", gap: "24", vertical: "center", children: [(title || description) && (_jsxs(Column, { fillWidth: true, gap: "2", children: [title && (_jsxs(Flex, { fillWidth: true, gap: "16", children: [_jsx(Flex, { fillWidth: true, paddingY: "4", children: _jsx(Text, { variant: "heading-strong-xs", onBackground: `${variant}-medium`, role: "heading", "aria-level": 2, children: title }) }), showCloseButton && (_jsx(IconButton, { onClick: onClose, icon: "close", size: "m", tooltip: "Hide", tooltipPosition: "top", variant: "ghost", "aria-label": "Close alert" }))] })), description && (_jsx(Text, { marginBottom: "2", variant: "body-default-s", onBackground: `${variant}-strong`, children: description }))] })), children] })] }));
|
|
15
|
+
const Feedback = forwardRef(({ variant = "info", showIcon = true, icon, title, description, showCloseButton = false, onClose, className, style, children, ...rest }, ref) => {
|
|
16
|
+
return (_jsxs(Flex, { fillWidth: true, radius: "l", ref: ref, border: `${variant}-medium`, background: `${variant}-medium`, vertical: title || children ? "start" : "center", role: "alert", "aria-live": "assertive", className: className, style: style, ...rest, children: [showIcon && (_jsx(Flex, { paddingY: "16", paddingLeft: "16", children: _jsx(Icon, { padding: "2", radius: "m", onBackground: `${variant}-medium`, name: icon ?? variantIconMap[variant], "aria-hidden": "true" }) })), _jsxs(Column, { fillWidth: true, padding: "16", gap: "24", vertical: "center", children: [(title || description) && (_jsxs(Column, { fillWidth: true, gap: "2", children: [title && (_jsxs(Flex, { fillWidth: true, gap: "16", children: [_jsx(Flex, { fillWidth: true, paddingY: "4", children: _jsx(Text, { variant: "heading-strong-xs", onBackground: `${variant}-medium`, role: "heading", "aria-level": 2, children: title }) }), showCloseButton && (_jsx(IconButton, { onClick: onClose, icon: "close", size: "m", tooltip: "Hide", tooltipPosition: "top", variant: "ghost", "aria-label": "Close alert" }))] })), description && (_jsx(Text, { marginBottom: "2", variant: "body-default-s", onBackground: `${variant}-strong`, children: description }))] })), children] })] }));
|
|
13
17
|
});
|
|
14
18
|
Feedback.displayName = "Feedback";
|
|
15
19
|
export { Feedback };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feedback.js","sourceRoot":"","sources":["../../src/components/Feedback.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Feedback.js","sourceRoot":"","sources":["../../src/components/Feedback.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA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AAK,IAAI,CACR,MAAC,IAAI,IAAC,SAAS,QAAC,GAAG,EAAC,IAAI,aACtB,KAAC,IAAI,IAAC,SAAS,QAAC,QAAQ,EAAC,GAAG,YAC1B,KAAC,IAAI,IACH,OAAO,EAAC,mBAAmB,EAC3B,YAAY,EAAE,GAAG,OAAO,SAAS,EACjC,IAAI,EAAC,SAAS,gBACF,CAAC,YAEZ,KAAK,GACD,GACF,EACN,eAAe,IAAI,CAClB,KAAC,UAAU,IACT,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,GAAG,EACR,OAAO,EAAC,MAAM,EACd,eAAe,EAAC,KAAK,EACrB,OAAO,EAAC,OAAO,gBACJ,aAAa,GACxB,CACH,IACI,CACR,EACA,WAAW,IAAI,CACd,KAAC,IAAI,IACH,YAAY,EAAC,GAAG,EAChB,OAAO,EAAC,gBAAgB,EACxB,YAAY,EAAE,GAAG,OAAO,SAAS,YAEhC,WAAW,GACP,CACR,IACM,CACV,EACA,QAAQ,IACF,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlipFx.d.ts","sourceRoot":"","sources":["../../src/components/FlipFx.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FlipFx.d.ts","sourceRoot":"","sources":["../../src/components/FlipFx.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IACpE,aAAa,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,MAAM,iGAyHV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect, useRef, useLayoutEffect, useCallback, forwardRef, } from "react";
|
|
4
|
-
import { Flex } from "
|
|
4
|
+
import { Flex } from "./Flex";
|
|
5
5
|
const FlipFx = forwardRef((props, ref) => {
|
|
6
6
|
const { flipDirection = "horizontal", timing = 2000, flipped, onFlip, disableClickFlip = false, autoFlipInterval, front, back, className, style, ...flex } = props;
|
|
7
7
|
const [internalFlipped, setInternalFlipped] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlipFx.js","sourceRoot":"","sources":["../../src/components/FlipFx.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EACZ,QAAQ,EACR,SAAS,EACT,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FlipFx.js","sourceRoot":"","sources":["../../src/components/FlipFx.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EACZ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CAAC,iBAAiB;iBAChF,YAEA,IAAI,GACA,IACF,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -3,11 +3,11 @@ interface FocusTrapProps {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
active: boolean;
|
|
5
5
|
onEscape?: () => void;
|
|
6
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
6
|
+
containerRef?: RefObject<HTMLDivElement | null>;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
initialFocusRef?: RefObject<HTMLElement>;
|
|
10
|
-
returnFocusRef?: RefObject<HTMLElement>;
|
|
9
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
10
|
+
returnFocusRef?: RefObject<HTMLElement | null>;
|
|
11
11
|
restoreFocus?: boolean;
|
|
12
12
|
autoFocus?: boolean;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrap.d.ts","sourceRoot":"","sources":["../../src/components/FocusTrap.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAElG,UAAU,cAAc;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusTrap.d.ts","sourceRoot":"","sources":["../../src/components/FocusTrap.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAElG,UAAU,cAAc;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,eAAe,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,uFA0Hb,CAAA;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -8,6 +8,16 @@ const FocusTrap = forwardRef(({ children, active, onEscape, containerRef: extern
|
|
|
8
8
|
// Store the previously focused element when the trap becomes active
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
if (active) {
|
|
11
|
+
// Focus already inside means someone placed it there deliberately and
|
|
12
|
+
// more precisely than "the first focusable element" — DropdownWrapper
|
|
13
|
+
// opens a list on its selected option, not its first. This effect can
|
|
14
|
+
// run before or after that, depending on when the panel finishes
|
|
15
|
+
// positioning, so it defers instead of racing: a trap's job is to keep
|
|
16
|
+
// focus in, not to reset where it sits. The element outside is likewise
|
|
17
|
+
// only worth remembering when focus is actually coming from out there.
|
|
18
|
+
const alreadyInside = containerRef.current?.contains(document.activeElement) ?? false;
|
|
19
|
+
if (alreadyInside)
|
|
20
|
+
return;
|
|
11
21
|
previouslyFocusedElement.current = document.activeElement;
|
|
12
22
|
if (autoFocus) {
|
|
13
23
|
// Focus the specified initial element or the first focusable element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrap.js","sourceRoot":"","sources":["../../src/components/FocusTrap.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,MAAM,EA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ing density and grouping for a set of fields.
|
|
5
|
+
*
|
|
6
|
+
* `density` is one decision, not two: how much air sits between fields, and
|
|
7
|
+
* whether they read as separate controls or as a single one. `"stacked"` fuses
|
|
8
|
+
* them — adjacent borders collapse onto a shared hairline and only the outer
|
|
9
|
+
* corners of the group stay round. `"tight"` and `"spacious"` are ordinary
|
|
10
|
+
* gaps, where every field keeps its own border and its own radius.
|
|
11
|
+
*
|
|
12
|
+
* The corner assignment is the point of the component. Hand-writing
|
|
13
|
+
* `corners="top" | "none" | "bottom"` down a stack is positional bookkeeping
|
|
14
|
+
* that breaks silently the moment a field is conditionally rendered or
|
|
15
|
+
* reordered — hide the third of four and the group ends on a square edge.
|
|
16
|
+
* Form derives the corners instead, from the children that actually rendered,
|
|
17
|
+
* at every breakpoint.
|
|
18
|
+
*/
|
|
19
|
+
type Breakpoint = "xl" | "l" | "m" | "s" | "xs";
|
|
20
|
+
/** Columns, either flat or per breakpoint. Breakpoints cascade xl → xs, the
|
|
21
|
+
* same direction `Grid` cascades them. */
|
|
22
|
+
type FormColumns = number | Partial<Record<Breakpoint, number>>;
|
|
23
|
+
interface FormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
|
|
24
|
+
/**
|
|
25
|
+
* Gap and grouping as one decision. `"stacked"` collapses the gap to a
|
|
26
|
+
* shared hairline and rounds only the outside of the group; `"tight"` and
|
|
27
|
+
* `"spacious"` keep every field its own control.
|
|
28
|
+
*/
|
|
29
|
+
density?: "stacked" | "tight" | "spacious";
|
|
30
|
+
/** Grid columns. A number, or a per-breakpoint map like `{ xs: 1, m: 2 }`. */
|
|
31
|
+
columns?: FormColumns;
|
|
32
|
+
/**
|
|
33
|
+
* Size for every field in the form. A field that sets its own `size` keeps
|
|
34
|
+
* it. Passed down by context rather than cloned onto the children, so a
|
|
35
|
+
* child that is not a field does not pick up a stray attribute.
|
|
36
|
+
*/
|
|
37
|
+
size?: TShirtSizes;
|
|
38
|
+
/** Render a real `<form>` rather than a `<div>`. */
|
|
39
|
+
as?: "div" | "form";
|
|
40
|
+
onSubmit?: React.FormEventHandler<HTMLFormElement>;
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
}
|
|
45
|
+
declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
export type { FormColumns, FormProps };
|
|
47
|
+
export { Form };
|
|
48
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../src/components/Form.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAA0B,WAAW,EAAE,MAAM,UAAU,CAAC;AAKpE;;;;;;;;;;;;;;;GAeG;AAEH,KAAK,UAAU,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAIhD;2CAC2C;AAC3C,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhE,UAAU,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAChF;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAC3C,8EAA8E;IAC9E,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,oDAAoD;IACpD,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AA+ID,QAAA,MAAM,IAAI,kFA+GT,CAAC;AAIF,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,CAAC"}
|