@donotdev/components 0.3.1 → 0.3.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/dist/advanced/Bento/Bento.js +1 -37
- package/dist/advanced/Bento/index.js +1 -2
- package/dist/advanced/Carousel/Carousel.js +1 -36
- package/dist/advanced/Carousel/CarouselContent.d.ts.map +1 -1
- package/dist/advanced/Carousel/CarouselContent.js +1 -653
- package/dist/advanced/Carousel/CarouselSkeleton.js +1 -51
- package/dist/advanced/Carousel/index.js +1 -2
- package/dist/advanced/Code/Code.js +2 -35
- package/dist/advanced/Code/CodeContent.d.ts.map +1 -1
- package/dist/advanced/Code/CodeContent.js +2 -182
- package/dist/advanced/Code/CodeSkeleton.js +1 -51
- package/dist/advanced/Code/index.js +1 -2
- package/dist/advanced/Crawl/Crawl.d.ts.map +1 -1
- package/dist/advanced/Crawl/Crawl.js +1 -84
- package/dist/advanced/Crawl/CrawlContent.d.ts.map +1 -1
- package/dist/advanced/Crawl/CrawlContent.js +1 -118
- package/dist/advanced/Crawl/index.js +1 -3
- package/dist/advanced/Crawl/utils/parseHtml.js +1 -159
- package/dist/advanced/ImageGallery/GalleryArrows.d.ts.map +1 -1
- package/dist/advanced/ImageGallery/GalleryArrows.js +1 -13
- package/dist/advanced/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/dist/advanced/ImageGallery/ImageGallery.js +1 -181
- package/dist/advanced/ImageGallery/LightboxViewer.js +1 -138
- package/dist/advanced/ImageGallery/index.js +1 -2
- package/dist/advanced/ImageGallery/lightboxGestures.js +1 -425
- package/dist/advanced/ImageGallery/protectImages.js +1 -10
- package/dist/advanced/ImageGallery/snapStrip.d.ts.map +1 -1
- package/dist/advanced/ImageGallery/snapStrip.js +1 -74
- package/dist/advanced/JsonViewer/JsonViewer.js +1 -141
- package/dist/advanced/JsonViewer/index.js +1 -3
- package/dist/advanced/Marquee/Marquee.d.ts +5 -5
- package/dist/advanced/Marquee/Marquee.d.ts.map +1 -1
- package/dist/advanced/Marquee/Marquee.js +1 -35
- package/dist/advanced/Marquee/MarqueeContent.d.ts.map +1 -1
- package/dist/advanced/Marquee/MarqueeContent.js +1 -193
- package/dist/advanced/Marquee/MarqueeSkeleton.js +1 -36
- package/dist/advanced/Marquee/index.js +1 -3
- package/dist/advanced/Reveal/Reveal.d.ts.map +1 -1
- package/dist/advanced/Reveal/Reveal.js +1 -60
- package/dist/advanced/Reveal/index.js +1 -3
- package/dist/advanced/Roadmap/Roadmap.js +1 -6
- package/dist/advanced/Roadmap/RoadmapContent.d.ts.map +1 -1
- package/dist/advanced/Roadmap/RoadmapContent.js +1 -59
- package/dist/advanced/Roadmap/index.js +1 -3
- package/dist/advanced/SplitReveal/SplitReveal.js +1 -34
- package/dist/advanced/SplitReveal/index.js +1 -2
- package/dist/advanced/StackedCards/StackedCards.js +1 -22
- package/dist/advanced/StackedCards/StackedCardsContent.d.ts.map +1 -1
- package/dist/advanced/StackedCards/StackedCardsContent.js +1 -42
- package/dist/advanced/StackedCards/index.js +1 -3
- package/dist/advanced/index.js +1 -20
- package/dist/atomic/Accordion/AccordionPrimitive.d.ts +5 -1
- package/dist/atomic/Accordion/AccordionPrimitive.d.ts.map +1 -1
- package/dist/atomic/Accordion/AccordionPrimitive.js +1 -29
- package/dist/atomic/Accordion/index.d.ts +9 -1
- package/dist/atomic/Accordion/index.d.ts.map +1 -1
- package/dist/atomic/Accordion/index.js +1 -38
- package/dist/atomic/ActionButton/index.js +1 -70
- package/dist/atomic/ActionButton/useAction.d.ts.map +1 -1
- package/dist/atomic/ActionButton/useAction.js +1 -64
- package/dist/atomic/Alert/index.d.ts +1 -1
- package/dist/atomic/Alert/index.js +1 -78
- package/dist/atomic/AlertDialog/AlertDialogPrimitive.d.ts.map +1 -1
- package/dist/atomic/AlertDialog/AlertDialogPrimitive.js +1 -25
- package/dist/atomic/AlertDialog/index.d.ts.map +1 -1
- package/dist/atomic/AlertDialog/index.js +1 -36
- package/dist/atomic/Avatar/AvatarPrimitive.d.ts.map +1 -1
- package/dist/atomic/Avatar/AvatarPrimitive.js +1 -16
- package/dist/atomic/Avatar/index.js +1 -17
- package/dist/atomic/Badge/index.d.ts +1 -1
- package/dist/atomic/Badge/index.js +1 -84
- package/dist/atomic/Blockquote/index.js +1 -72
- package/dist/atomic/Button/index.d.ts +1 -1
- package/dist/atomic/Button/index.js +1 -173
- package/dist/atomic/ButtonGroup/index.d.ts.map +1 -1
- package/dist/atomic/ButtonGroup/index.js +1 -57
- package/dist/atomic/Calendar/CalendarPrimitive.d.ts.map +1 -1
- package/dist/atomic/Calendar/CalendarPrimitive.js +1 -10
- package/dist/atomic/Calendar/LazyCalendar.d.ts +38 -0
- package/dist/atomic/Calendar/LazyCalendar.d.ts.map +1 -0
- package/dist/atomic/Calendar/LazyCalendar.js +1 -0
- package/dist/atomic/Calendar/index.d.ts.map +1 -1
- package/dist/atomic/Calendar/index.js +1 -74
- package/dist/atomic/CallToAction/index.js +1 -78
- package/dist/atomic/Card/cover.js +1 -40
- package/dist/atomic/Card/index.d.ts +12 -2
- package/dist/atomic/Card/index.d.ts.map +1 -1
- package/dist/atomic/Card/index.js +1 -190
- package/dist/atomic/Checkbox/CheckboxPrimitive.d.ts.map +1 -1
- package/dist/atomic/Checkbox/CheckboxPrimitive.js +1 -26
- package/dist/atomic/Checkbox/index.js +1 -69
- package/dist/atomic/Collapsible/CollapsiblePrimitive.d.ts.map +1 -1
- package/dist/atomic/Collapsible/CollapsiblePrimitive.js +1 -25
- package/dist/atomic/Collapsible/index.d.ts.map +1 -1
- package/dist/atomic/Collapsible/index.js +1 -61
- package/dist/atomic/ColorPicker/index.d.ts.map +1 -1
- package/dist/atomic/ColorPicker/index.js +1 -196
- package/dist/atomic/Combobox/index.d.ts.map +1 -1
- package/dist/atomic/Combobox/index.js +1 -278
- package/dist/atomic/Command/index.d.ts.map +1 -1
- package/dist/atomic/Command/index.js +1 -115
- package/dist/atomic/CommandDialog/index.d.ts.map +1 -1
- package/dist/atomic/CommandDialog/index.js +1 -34
- package/dist/atomic/ContextMenu/ContextMenuPrimitive.d.ts.map +1 -1
- package/dist/atomic/ContextMenu/ContextMenuPrimitive.js +1 -32
- package/dist/atomic/ContextMenu/index.d.ts.map +1 -1
- package/dist/atomic/ContextMenu/index.js +1 -52
- package/dist/atomic/CopyToClipboard/index.d.ts.map +1 -1
- package/dist/atomic/CopyToClipboard/index.js +1 -61
- package/dist/atomic/DatePicker/index.d.ts +3 -1
- package/dist/atomic/DatePicker/index.d.ts.map +1 -1
- package/dist/atomic/DatePicker/index.js +1 -377
- package/dist/atomic/DateTimePicker/index.d.ts +3 -1
- package/dist/atomic/DateTimePicker/index.d.ts.map +1 -1
- package/dist/atomic/DateTimePicker/index.js +1 -460
- package/dist/atomic/DescriptionList/index.js +1 -30
- package/dist/atomic/Dialog/DialogPrimitive.d.ts.map +1 -1
- package/dist/atomic/Dialog/DialogPrimitive.js +1 -20
- package/dist/atomic/Dialog/index.d.ts.map +1 -1
- package/dist/atomic/Dialog/index.js +1 -63
- package/dist/atomic/DropdownMenu/DropdownMenuPrimitive.d.ts.map +1 -1
- package/dist/atomic/DropdownMenu/DropdownMenuPrimitive.js +1 -34
- package/dist/atomic/DropdownMenu/index.d.ts.map +1 -1
- package/dist/atomic/DropdownMenu/index.js +1 -121
- package/dist/atomic/DualCard/index.d.ts.map +1 -1
- package/dist/atomic/DualCard/index.js +1 -42
- package/dist/atomic/FeatureFallback/index.js +1 -32
- package/dist/atomic/FileButton/index.d.ts.map +1 -1
- package/dist/atomic/FileButton/index.js +1 -35
- package/dist/atomic/Grid/GridArea.js +1 -70
- package/dist/atomic/Grid/index.js +1 -118
- package/dist/atomic/HeroSection/index.d.ts +4 -4
- package/dist/atomic/HeroSection/index.d.ts.map +1 -1
- package/dist/atomic/HeroSection/index.js +1 -138
- package/dist/atomic/HoverCard/HoverCardPrimitive.d.ts.map +1 -1
- package/dist/atomic/HoverCard/HoverCardPrimitive.js +1 -19
- package/dist/atomic/HoverCard/index.d.ts.map +1 -1
- package/dist/atomic/HoverCard/index.js +1 -57
- package/dist/atomic/Icons/Icon.js +1 -37
- package/dist/atomic/Icons/IconBox.js +1 -49
- package/dist/atomic/Icons/Partner/AppleIcon.js +1 -31
- package/dist/atomic/Icons/Partner/DiscordIcon.js +1 -15
- package/dist/atomic/Icons/Partner/FacebookIcon.js +1 -15
- package/dist/atomic/Icons/Partner/GitHubIcon.js +1 -15
- package/dist/atomic/Icons/Partner/GoogleIcon.js +1 -15
- package/dist/atomic/Icons/Partner/InstagramIcon.js +1 -29
- package/dist/atomic/Icons/Partner/LinkedinIcon.js +1 -20
- package/dist/atomic/Icons/Partner/MastodonIcon.js +1 -19
- package/dist/atomic/Icons/Partner/MediumIcon.js +1 -19
- package/dist/atomic/Icons/Partner/MicrosoftIcon.js +1 -15
- package/dist/atomic/Icons/Partner/NotionIcon.js +1 -15
- package/dist/atomic/Icons/Partner/RedditIcon.js +1 -15
- package/dist/atomic/Icons/Partner/SlackIcon.js +1 -15
- package/dist/atomic/Icons/Partner/SpotifyIcon.js +1 -15
- package/dist/atomic/Icons/Partner/SupabaseIcon.js +1 -16
- package/dist/atomic/Icons/Partner/TwitchIcon.js +1 -15
- package/dist/atomic/Icons/Partner/XIcon.js +1 -15
- package/dist/atomic/Icons/Partner/YahooIcon.js +1 -15
- package/dist/atomic/Icons/Partner/YouTubeIcon.js +1 -19
- package/dist/atomic/Icons/Partner/index.js +1 -25
- package/dist/atomic/Icons/Partner/providerIcons.js +1 -98
- package/dist/atomic/Icons/index.js +1 -8
- package/dist/atomic/InfiniteScroll/index.d.ts.map +1 -1
- package/dist/atomic/InfiniteScroll/index.js +1 -53
- package/dist/atomic/Input/index.d.ts.map +1 -1
- package/dist/atomic/Input/index.js +1 -63
- package/dist/atomic/Label/FieldInfo.js +1 -34
- package/dist/atomic/Label/FloatingLabel.js +1 -35
- package/dist/atomic/Label/LabelPrimitive.d.ts.map +1 -1
- package/dist/atomic/Label/LabelPrimitive.js +1 -16
- package/dist/atomic/Label/index.js +1 -23
- package/dist/atomic/List/index.js +1 -48
- package/dist/atomic/NavigationMenu/NavigationMenuPrimitive.d.ts.map +1 -1
- package/dist/atomic/NavigationMenu/NavigationMenuPrimitive.js +1 -28
- package/dist/atomic/NavigationMenu/index.d.ts +6 -0
- package/dist/atomic/NavigationMenu/index.d.ts.map +1 -1
- package/dist/atomic/NavigationMenu/index.js +1 -72
- package/dist/atomic/Pagination/index.d.ts.map +1 -1
- package/dist/atomic/Pagination/index.js +1 -107
- package/dist/atomic/PasswordInput/index.d.ts.map +1 -1
- package/dist/atomic/PasswordInput/index.js +1 -66
- package/dist/atomic/PinInput/index.d.ts.map +1 -1
- package/dist/atomic/PinInput/index.js +1 -155
- package/dist/atomic/Popover/PopoverPrimitive.d.ts.map +1 -1
- package/dist/atomic/Popover/PopoverPrimitive.js +1 -29
- package/dist/atomic/Popover/index.d.ts.map +1 -1
- package/dist/atomic/Popover/index.js +1 -38
- package/dist/atomic/Portal/PortalPrimitive.d.ts.map +1 -1
- package/dist/atomic/Portal/PortalPrimitive.js +1 -21
- package/dist/atomic/Portal/index.js +1 -10
- package/dist/atomic/PortalButton/index.js +1 -33
- package/dist/atomic/Progress/ProgressPrimitive.d.ts.map +1 -1
- package/dist/atomic/Progress/ProgressPrimitive.js +1 -28
- package/dist/atomic/Progress/index.js +1 -15
- package/dist/atomic/QuantityStepper/index.d.ts +1 -1
- package/dist/atomic/QuantityStepper/index.d.ts.map +1 -1
- package/dist/atomic/QuantityStepper/index.js +1 -239
- package/dist/atomic/QuantityStepper/quantity.js +1 -35
- package/dist/atomic/RadioGroup/RadioGroupPrimitive.d.ts.map +1 -1
- package/dist/atomic/RadioGroup/RadioGroupPrimitive.js +1 -17
- package/dist/atomic/RadioGroup/index.js +1 -63
- package/dist/atomic/RangeInput/index.d.ts.map +1 -1
- package/dist/atomic/RangeInput/index.js +1 -62
- package/dist/atomic/Rating/index.d.ts +1 -1
- package/dist/atomic/Rating/index.d.ts.map +1 -1
- package/dist/atomic/Rating/index.js +1 -115
- package/dist/atomic/ScrollArea/ScrollAreaPrimitive.d.ts.map +1 -1
- package/dist/atomic/ScrollArea/ScrollAreaPrimitive.js +1 -18
- package/dist/atomic/ScrollArea/index.js +1 -22
- package/dist/atomic/Section/index.d.ts +6 -0
- package/dist/atomic/Section/index.d.ts.map +1 -1
- package/dist/atomic/Section/index.js +1 -119
- package/dist/atomic/Select/SelectPrimitive.d.ts.map +1 -1
- package/dist/atomic/Select/SelectPrimitive.js +1 -27
- package/dist/atomic/Select/index.d.ts.map +1 -1
- package/dist/atomic/Select/index.js +1 -58
- package/dist/atomic/Separator/SeparatorPrimitive.d.ts.map +1 -1
- package/dist/atomic/Separator/SeparatorPrimitive.js +1 -15
- package/dist/atomic/Separator/index.js +1 -47
- package/dist/atomic/Sheet/SheetPrimitive.d.ts.map +1 -1
- package/dist/atomic/Sheet/SheetPrimitive.js +1 -24
- package/dist/atomic/Sheet/index.d.ts.map +1 -1
- package/dist/atomic/Sheet/index.js +1 -66
- package/dist/atomic/Skeleton/index.js +1 -73
- package/dist/atomic/SkipLink/index.d.ts.map +1 -1
- package/dist/atomic/SkipLink/index.js +1 -45
- package/dist/atomic/Slider/SliderPrimitive.d.ts.map +1 -1
- package/dist/atomic/Slider/SliderPrimitive.js +1 -35
- package/dist/atomic/Slider/index.d.ts +11 -2
- package/dist/atomic/Slider/index.d.ts.map +1 -1
- package/dist/atomic/Slider/index.js +1 -59
- package/dist/atomic/Slot/SlotPrimitive.d.ts.map +1 -1
- package/dist/atomic/Slot/SlotPrimitive.js +1 -10
- package/dist/atomic/Slot/index.js +1 -21
- package/dist/atomic/Spinner/index.js +1 -72
- package/dist/atomic/Stack/index.js +1 -84
- package/dist/atomic/Stepper/index.d.ts +1 -1
- package/dist/atomic/Stepper/index.d.ts.map +1 -1
- package/dist/atomic/Stepper/index.js +1 -100
- package/dist/atomic/SwipeAction/index.js +1 -62
- package/dist/atomic/Switch/SwitchPrimitive.d.ts.map +1 -1
- package/dist/atomic/Switch/SwitchPrimitive.js +1 -28
- package/dist/atomic/Switch/index.d.ts.map +1 -1
- package/dist/atomic/Switch/index.js +1 -82
- package/dist/atomic/Table/editing.d.ts.map +1 -1
- package/dist/atomic/Table/editing.js +4 -173
- package/dist/atomic/Table/index.d.ts.map +1 -1
- package/dist/atomic/Table/index.js +3 -419
- package/dist/atomic/Tabs/TabsPrimitive.d.ts.map +1 -1
- package/dist/atomic/Tabs/TabsPrimitive.js +1 -17
- package/dist/atomic/Tabs/index.d.ts +1 -1
- package/dist/atomic/Tabs/index.d.ts.map +1 -1
- package/dist/atomic/Tabs/index.js +1 -124
- package/dist/atomic/Tag/index.d.ts.map +1 -1
- package/dist/atomic/Tag/index.js +1 -60
- package/dist/atomic/Text/index.d.ts.map +1 -1
- package/dist/atomic/Text/index.js +3 -116
- package/dist/atomic/Textarea/index.js +1 -20
- package/dist/atomic/Toaster/Toast.types.js +0 -2
- package/dist/atomic/Toaster/ToastPrimitive.d.ts +1 -1
- package/dist/atomic/Toaster/ToastPrimitive.d.ts.map +1 -1
- package/dist/atomic/Toaster/ToastPrimitive.js +1 -68
- package/dist/atomic/Toaster/index.d.ts.map +1 -1
- package/dist/atomic/Toaster/index.js +1 -30
- package/dist/atomic/Toggle/TogglePrimitive.d.ts.map +1 -1
- package/dist/atomic/Toggle/TogglePrimitive.js +1 -16
- package/dist/atomic/Toggle/index.d.ts +1 -1
- package/dist/atomic/Toggle/index.js +1 -41
- package/dist/atomic/ToggleGroup/ToggleGroupPrimitive.d.ts.map +1 -1
- package/dist/atomic/ToggleGroup/ToggleGroupPrimitive.js +1 -36
- package/dist/atomic/ToggleGroup/index.js +1 -64
- package/dist/atomic/Tooltip/TooltipPrimitive.d.ts.map +1 -1
- package/dist/atomic/Tooltip/TooltipPrimitive.js +1 -20
- package/dist/atomic/Tooltip/index.js +1 -84
- package/dist/atomic/TreeView/index.d.ts.map +1 -1
- package/dist/atomic/TreeView/index.js +1 -316
- package/dist/atomic/VideoPlayer/index.d.ts.map +1 -1
- package/dist/atomic/VideoPlayer/index.js +1 -204
- package/dist/atomic/VisuallyHidden/VisuallyHiddenPrimitive.d.ts.map +1 -1
- package/dist/atomic/VisuallyHidden/VisuallyHiddenPrimitive.js +1 -10
- package/dist/atomic/VisuallyHidden/index.js +1 -4
- package/dist/atomic/index.d.ts +2 -0
- package/dist/atomic/index.d.ts.map +1 -1
- package/dist/atomic/index.js +1 -124
- package/dist/hooks/index.js +1 -14
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/hooks/useClickOutside.js +1 -128
- package/dist/hooks/useIntersectionObserver.d.ts.map +1 -1
- package/dist/hooks/useIntersectionObserver.js +1 -222
- package/dist/hooks/useSwipeToClose.d.ts.map +1 -1
- package/dist/hooks/useSwipeToClose.js +1 -280
- package/dist/hooks/useToast.d.ts +1 -1
- package/dist/hooks/useToast.d.ts.map +1 -1
- package/dist/hooks/useToast.js +1 -419
- package/dist/hooks/useViewportVisibility.d.ts.map +1 -1
- package/dist/hooks/useViewportVisibility.js +1 -110
- package/dist/index.js +1 -12
- package/dist/rsc.d.ts +47 -0
- package/dist/rsc.d.ts.map +1 -0
- package/dist/rsc.js +1 -0
- package/dist/styles/componentConstants.js +1 -184
- package/dist/styles/index.css +113 -41
- package/dist/styles/index.js +1 -10
- package/dist/symbol-index.json +1 -1
- package/dist/types.js +0 -2
- package/dist/utils/constants.js +1 -62
- package/dist/utils/cssVars.js +1 -10
- package/dist/utils/date.js +1 -130
- package/dist/utils/eventListener.js +1 -57
- package/dist/utils/helpers.js +1 -58
- package/dist/utils/imageRetry.js +1 -35
- package/dist/utils/index.js +1 -24
- package/dist/utils/initRipple.js +6 -84
- package/dist/utils/intersectionObserver.js +1 -184
- package/dist/utils/isDark.d.ts.map +1 -1
- package/dist/utils/isDark.js +1 -69
- package/dist/utils/linkComponent.d.ts.map +1 -1
- package/dist/utils/linkComponent.js +1 -37
- package/dist/utils/measurement.js +1 -197
- package/dist/utils/responsiveImage.js +1 -45
- package/dist/utils/rtl.js +1 -56
- package/dist/utils/sanitizeHtml.js +1 -43
- package/dist/utils/variants.d.ts +1 -1
- package/dist/utils/variants.js +1 -31
- package/dist/utils/viewportDetection.js +1 -86
- package/guidelines/API_REFERENCE.md +34 -0
- package/guidelines/COMPONENTS.md +4 -4
- package/guidelines/QUANTITY_STEPPER.md +3 -3
- package/package.json +5 -1
- package/dist/CarouselContent-5W2E2F2I.js +0 -1
- package/dist/CarouselContent-EELYAALW.js +0 -1
- package/dist/CarouselContent-KLQY6OVW.css +0 -1
- package/dist/CarouselContent-MQPZBYOS.js +0 -1
- package/dist/CodeContent-265AM7HO.css +0 -1
- package/dist/CodeContent-64D4U3NM.js +0 -2
- package/dist/CodeContent-7FWYPAB3.js +0 -2
- package/dist/CodeContent-E3HLW6BW.js +0 -2
- package/dist/CrawlContent-5Z6AVDDW.js +0 -1
- package/dist/MarqueeContent-7BVN7TX3.css +0 -1
- package/dist/MarqueeContent-KAYCOUNM.js +0 -1
- package/dist/atomic/SwipeAction/gesture.d.ts +0 -5
- package/dist/atomic/SwipeAction/gesture.d.ts.map +0 -1
- package/dist/atomic/SwipeAction/gesture.js +0 -10
- package/dist/chunk-3WHSDDVJ.js +0 -1
- package/dist/chunk-CIBFOOWV.js +0 -1
- package/dist/chunk-IFHHPSKN.js +0 -1
- package/dist/chunk-JAV36ZQC.js +0 -3
- package/dist/chunk-O2XFH626.js +0 -1
- package/dist/chunk-SZNEXFUZ.js +0 -3
- package/dist/chunk-UTPWB5VD.js +0 -1
- package/dist/chunk-XK52GUFA.js +0 -3
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/RedditIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Reddit Icon Component
|
|
5
|
-
* @description React component for rendering the Reddit icon. SVG-based icon component for authentication providers.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Reddit icon component
|
|
13
|
-
*/
|
|
14
|
-
const RedditIcon = ({ className = 'dndev-size-md', }) => (_jsxs("svg", { className: className, viewBox: "0 0 24 24", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsx("path", { fill: "#FF4500", d: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z" })] }));
|
|
15
|
-
export default RedditIcon;
|
|
1
|
+
import{jsx as c,jsxs as l}from"react/jsx-runtime";var e=({className:a="dndev-size-md"})=>l("svg",{className:a,viewBox:"0 0 24 24",children:[c("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),c("path",{fill:"#FF4500",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})]}),s=e;export{s as default};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/SlackIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Slack Icon Component
|
|
5
|
-
* @description React component for rendering the Slack icon. SVG-based icon component for authentication providers.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Slack icon component
|
|
13
|
-
*/
|
|
14
|
-
const SlackIcon = ({ className = 'dndev-size-md', }) => (_jsxs("svg", { className: className, viewBox: "0 0 24 24", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsx("path", { fill: "#E01E5A", d: "M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z" })] }));
|
|
15
|
-
export default SlackIcon;
|
|
1
|
+
import{jsx as a,jsxs as c}from"react/jsx-runtime";var v=({className:e="dndev-size-md"})=>c("svg",{className:e,viewBox:"0 0 24 24",children:[a("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),a("path",{fill:"#E01E5A",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})]}),l=v;export{l as default};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/SpotifyIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Spotify Icon Component
|
|
5
|
-
* @description React component for rendering the Spotify icon. SVG-based icon component for authentication providers.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Spotify icon component
|
|
13
|
-
*/
|
|
14
|
-
const SpotifyIcon = ({ className = 'dndev-size-md', }) => (_jsxs("svg", { className: className, viewBox: "0 0 24 24", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsx("path", { fill: "#1DB954", d: "M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.84-.179-.959-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.361 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.42 1.56-.299.421-1.02.599-1.559.3z" })] }));
|
|
15
|
-
export default SpotifyIcon;
|
|
1
|
+
import{jsx as c,jsxs as l}from"react/jsx-runtime";var s=({className:e="dndev-size-md"})=>l("svg",{className:e,viewBox:"0 0 24 24",children:[c("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),c("path",{fill:"#1DB954",d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.84-.179-.959-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.361 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.42 1.56-.299.421-1.02.599-1.559.3z"})]}),i=s;export{i as default};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/SupabaseIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Supabase Icon Component
|
|
5
|
-
* @description React component for rendering the official Supabase logomark.
|
|
6
|
-
* SVG sourced from github.com/supabase/supabase brand assets.
|
|
7
|
-
*
|
|
8
|
-
* @version 0.1.0
|
|
9
|
-
* @since 0.0.1
|
|
10
|
-
* @author AMBROISE PARK Consulting
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Supabase icon component
|
|
14
|
-
*/
|
|
15
|
-
const SupabaseIcon = ({ className = '', }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", className: className, "aria-hidden": "true", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsxs("g", { transform: "translate(5.5, 3.5) scale(0.12)", children: [_jsx("path", { d: "M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z", fill: "url(#supabase-a)" }), _jsx("path", { d: "M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z", fill: "url(#supabase-b)", fillOpacity: "0.2" }), _jsx("path", { d: "M45.317 2.07103C48.1765 -1.53037 53.9745 0.442937 54.0434 5.041L54.4849 72.2922H9.83113C1.64038 72.2922 -2.92775 62.8321 2.1655 56.4175L45.317 2.07103Z", fill: "#3ECF8E" })] }), _jsxs("defs", { children: [_jsxs("linearGradient", { id: "supabase-a", x1: "53.9738", y1: "54.974", x2: "94.1635", y2: "71.8295", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#249361" }), _jsx("stop", { offset: "1", stopColor: "#3ECF8E" })] }), _jsxs("linearGradient", { id: "supabase-b", x1: "36.1558", y1: "30.578", x2: "54.4844", y2: "65.0806", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", {}), _jsx("stop", { offset: "1", stopOpacity: "0" })] })] })] }));
|
|
16
|
-
export default SupabaseIcon;
|
|
1
|
+
import{jsx as a,jsxs as e}from"react/jsx-runtime";var t=({className:s=""})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:s,"aria-hidden":"true",children:[a("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),e("g",{transform:"translate(5.5, 3.5) scale(0.12)",children:[a("path",{d:"M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z",fill:"url(#supabase-a)"}),a("path",{d:"M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z",fill:"url(#supabase-b)",fillOpacity:"0.2"}),a("path",{d:"M45.317 2.07103C48.1765 -1.53037 53.9745 0.442937 54.0434 5.041L54.4849 72.2922H9.83113C1.64038 72.2922 -2.92775 62.8321 2.1655 56.4175L45.317 2.07103Z",fill:"#3ECF8E"})]}),e("defs",{children:[e("linearGradient",{id:"supabase-a",x1:"53.9738",y1:"54.974",x2:"94.1635",y2:"71.8295",gradientUnits:"userSpaceOnUse",children:[a("stop",{stopColor:"#249361"}),a("stop",{offset:"1",stopColor:"#3ECF8E"})]}),e("linearGradient",{id:"supabase-b",x1:"36.1558",y1:"30.578",x2:"54.4844",y2:"65.0806",gradientUnits:"userSpaceOnUse",children:[a("stop",{}),a("stop",{offset:"1",stopOpacity:"0"})]})]})]}),i=t;export{i as default};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/TwitchIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Twitch Icon Component
|
|
5
|
-
* @description React component for rendering the Twitch icon. SVG-based icon component for authentication providers.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Twitch icon component
|
|
13
|
-
*/
|
|
14
|
-
const TwitchIcon = ({ className = 'dndev-size-md', }) => (_jsxs("svg", { className: className, viewBox: "0 0 24 24", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsx("path", { fill: "#9146FF", d: "M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z" })] }));
|
|
15
|
-
export default TwitchIcon;
|
|
1
|
+
import{jsx as l,jsxs as h}from"react/jsx-runtime";var c=({className:e="dndev-size-md"})=>h("svg",{className:e,viewBox:"0 0 24 24",children:[l("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),l("path",{fill:"#9146FF",d:"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"})]}),s=c;export{s as default};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/XIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview X (Twitter) Icon Component
|
|
5
|
-
* @description React component for rendering the X icon. SVG-based icon component for authentication providers.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* X (Twitter) icon component
|
|
13
|
-
*/
|
|
14
|
-
const XIcon = ({ className = '', }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: className, "aria-hidden": "true", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsx("path", { fill: "#000000", d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" })] }));
|
|
15
|
-
export default XIcon;
|
|
1
|
+
import{jsx as l,jsxs as t}from"react/jsx-runtime";var s=({className:e=""})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),l("path",{fill:"#000000",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})]}),a=s;export{a as default};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/YahooIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Yahoo Icon Component
|
|
5
|
-
* @description React component for rendering the Yahoo icon. SVG-based icon component for authentication providers.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Yahoo icon component
|
|
13
|
-
*/
|
|
14
|
-
const YahooIcon = ({ className = '', }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: className, "aria-hidden": "true", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsx("path", { fill: "#5F01D1", d: "M15.05 4.906c1.154 0 2.088-.325 2.088-.725s-.934-.725-2.088-.725-2.088.325-2.088.725.934.725 2.088.725zM6.352 4.906c1.154 0 2.088-.325 2.088-.725s-.934-.725-2.088-.725-2.088.325-2.088.725.935.725 2.088.725zM22.936 12.45c0 6.55-4.338 10.563-9.97 10.563-5.544 0-9.971-4.013-9.971-10.563 0-4.95 2.476-7.563 5.025-9.45h-4.826L0 11.25h4.557L6.375 3.9h4.106c-1.11 1.8-3.92 4.95-3.92 8.55 0 3.938 2.22 5.513 4.068 5.513 1.588 0 3.258-.937 3.258-3.488 0-1.125-.747-2.175-1.033-2.55-1.035 0-1.587 1.013-1.587 1.763 0 .45.187.975.187.975-1.125 0-1.334-1.313-1.334-2.213 0-1.725 1.334-3.862 3.261-3.862 1.854 0 3.333 1.387 3.333 3.637 0 5.025-5.47 3.975-5.47 3.975-.71 1.425.639 2.55 2.025 2.55 2.063 0 3.636-1.725 4.436-2.7.374-.413.636-.825.636-1.388 0-.337-.112-.525-.337-.712h3.187c-.075 0-.225-1.5-.225-1.5z" })] }));
|
|
15
|
-
export default YahooIcon;
|
|
1
|
+
import{jsx as c,jsxs as a}from"react/jsx-runtime";var e=({className:s=""})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:s,"aria-hidden":"true",children:[c("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),c("path",{fill:"#5F01D1",d:"M15.05 4.906c1.154 0 2.088-.325 2.088-.725s-.934-.725-2.088-.725-2.088.325-2.088.725.934.725 2.088.725zM6.352 4.906c1.154 0 2.088-.325 2.088-.725s-.934-.725-2.088-.725-2.088.325-2.088.725.935.725 2.088.725zM22.936 12.45c0 6.55-4.338 10.563-9.97 10.563-5.544 0-9.971-4.013-9.971-10.563 0-4.95 2.476-7.563 5.025-9.45h-4.826L0 11.25h4.557L6.375 3.9h4.106c-1.11 1.8-3.92 4.95-3.92 8.55 0 3.938 2.22 5.513 4.068 5.513 1.588 0 3.258-.937 3.258-3.488 0-1.125-.747-2.175-1.033-2.55-1.035 0-1.587 1.013-1.587 1.763 0 .45.187.975.187.975-1.125 0-1.334-1.313-1.334-2.213 0-1.725 1.334-3.862 3.261-3.862 1.854 0 3.333 1.387 3.333 3.637 0 5.025-5.47 3.975-5.47 3.975-.71 1.425.639 2.55 2.025 2.55 2.063 0 3.636-1.725 4.436-2.7.374-.413.636-.825.636-1.388 0-.337-.112-.525-.337-.712h3.187c-.075 0-.225-1.5-.225-1.5z"})]}),h=e;export{h as default};
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/YouTubeIcon.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview YouTube Icon Component
|
|
5
|
-
* @description React component for rendering the YouTube icon. SVG-based icon component for authentication providers.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* YouTube icon component
|
|
13
|
-
* Renders the YouTube logo as an SVG.
|
|
14
|
-
* @param {object} props - Component props.
|
|
15
|
-
* @param {string} [props.className] - Optional CSS class name to apply to the SVG element.
|
|
16
|
-
* @returns {React.ReactElement} The YouTube icon SVG component.
|
|
17
|
-
*/
|
|
18
|
-
const YouTubeIcon = ({ className = '', }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: className, "aria-hidden": "true", children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: "white" }), _jsx("path", { fill: "#FF0000", d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" })] }));
|
|
19
|
-
export default YouTubeIcon;
|
|
1
|
+
import{jsx as s,jsxs as l}from"react/jsx-runtime";var e=({className:a=""})=>l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:a,"aria-hidden":"true",children:[s("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),s("path",{fill:"#FF0000",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})]}),c=e;export{c as default};
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Partner Icons Barrel Export
|
|
4
|
-
*/
|
|
5
|
-
export { default as AppleIcon } from './AppleIcon';
|
|
6
|
-
export { default as DiscordIcon } from './DiscordIcon';
|
|
7
|
-
export { default as FacebookIcon } from './FacebookIcon';
|
|
8
|
-
export { default as GitHubIcon } from './GitHubIcon';
|
|
9
|
-
export { default as GoogleIcon } from './GoogleIcon';
|
|
10
|
-
export { default as InstagramIcon } from './InstagramIcon';
|
|
11
|
-
export { default as LinkedInIcon } from './LinkedinIcon';
|
|
12
|
-
export { default as MastodonIcon } from './MastodonIcon';
|
|
13
|
-
export { default as MediumIcon } from './MediumIcon';
|
|
14
|
-
export { default as MicrosoftIcon } from './MicrosoftIcon';
|
|
15
|
-
export { default as NotionIcon } from './NotionIcon';
|
|
16
|
-
export { default as RedditIcon } from './RedditIcon';
|
|
17
|
-
export { default as SlackIcon } from './SlackIcon';
|
|
18
|
-
export { default as SpotifyIcon } from './SpotifyIcon';
|
|
19
|
-
export { default as SupabaseIcon } from './SupabaseIcon';
|
|
20
|
-
export { default as TwitchIcon } from './TwitchIcon';
|
|
21
|
-
export { default as XIcon } from './XIcon';
|
|
22
|
-
export { default as YahooIcon } from './YahooIcon';
|
|
23
|
-
export { default as YouTubeIcon } from './YouTubeIcon';
|
|
24
|
-
export { default as DefaultProviderIcon } from './providerIcons';
|
|
25
|
-
export * from './providerIcons';
|
|
1
|
+
import{default as t}from"./AppleIcon.js";import{default as r}from"./DiscordIcon.js";import{default as d}from"./FacebookIcon.js";import{default as c}from"./GitHubIcon.js";import{default as p}from"./GoogleIcon.js";import{default as l}from"./InstagramIcon.js";import{default as I}from"./LinkedinIcon.js";import{default as i}from"./MastodonIcon.js";import{default as k}from"./MediumIcon.js";import{default as S}from"./MicrosoftIcon.js";import{default as h}from"./NotionIcon.js";import{default as G}from"./RedditIcon.js";import{default as Y}from"./SlackIcon.js";import{default as w}from"./SpotifyIcon.js";import{default as A}from"./SupabaseIcon.js";import{default as H}from"./TwitchIcon.js";import{default as N}from"./XIcon.js";import{default as R}from"./YahooIcon.js";import{default as j}from"./YouTubeIcon.js";import{default as z}from"./providerIcons.js";export*from"./providerIcons.js";export{t as AppleIcon,z as DefaultProviderIcon,r as DiscordIcon,d as FacebookIcon,c as GitHubIcon,p as GoogleIcon,l as InstagramIcon,I as LinkedInIcon,i as MastodonIcon,k as MediumIcon,S as MicrosoftIcon,h as NotionIcon,G as RedditIcon,Y as SlackIcon,w as SpotifyIcon,A as SupabaseIcon,H as TwitchIcon,N as XIcon,R as YahooIcon,j as YouTubeIcon};
|
|
@@ -1,98 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/Icons/Partner/providerIcons.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Auth Provider Icons
|
|
5
|
-
* @description Icons for authentication providers (Google, GitHub, etc.). This mapping follows the schema-driven approach where schema defines icon names that map to icon components. The mapping is the minimal redundancy needed since components package cannot import @donotdev/core.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
import { Mail, MailCheck } from 'lucide-react';
|
|
12
|
-
import AppleIcon from './AppleIcon';
|
|
13
|
-
import DiscordIcon from './DiscordIcon';
|
|
14
|
-
import FacebookIcon from './FacebookIcon';
|
|
15
|
-
import GitHubIcon from './GitHubIcon';
|
|
16
|
-
import GoogleIcon from './GoogleIcon';
|
|
17
|
-
import LinkedInIcon from './LinkedinIcon';
|
|
18
|
-
import MastodonIcon from './MastodonIcon';
|
|
19
|
-
import MediumIcon from './MediumIcon';
|
|
20
|
-
import MicrosoftIcon from './MicrosoftIcon';
|
|
21
|
-
import NotionIcon from './NotionIcon';
|
|
22
|
-
import RedditIcon from './RedditIcon';
|
|
23
|
-
import SlackIcon from './SlackIcon';
|
|
24
|
-
import SpotifyIcon from './SpotifyIcon';
|
|
25
|
-
import SupabaseIcon from './SupabaseIcon';
|
|
26
|
-
import TwitchIcon from './TwitchIcon';
|
|
27
|
-
import XIcon from './XIcon';
|
|
28
|
-
import YahooIcon from './YahooIcon';
|
|
29
|
-
import YouTubeIcon from './YouTubeIcon';
|
|
30
|
-
// Import all the existing icon components
|
|
31
|
-
// Default Icon (fallback) - Handshake icon
|
|
32
|
-
function DefaultProviderIcon({ className = '', ...props }) {
|
|
33
|
-
return (_jsx("svg", { viewBox: "0 0 24 24", className: className, ...props, children: _jsx("path", { fill: "currentColor", d: "M20.42 4.58a5.4 5.4 0 0 0-7.65 0L9.27 7.88l-1.41-1.41a2.4 2.4 0 0 0-3.4 0L2.3 9.88a2.4 2.4 0 0 0 0 3.4l1.41 1.41-2.12 2.12a5.4 5.4 0 0 0 0 7.65l1.41 1.41a5.4 5.4 0 0 0 7.65 0l2.12-2.12 1.41 1.41a2.4 2.4 0 0 0 3.4 0l3.4-3.4a2.4 2.4 0 0 0 0-3.4l-1.41-1.41 2.12-2.12a5.4 5.4 0 0 0 0-7.65l-1.41-1.41zM16.27 8.88l-1.41-1.41a2.4 2.4 0 0 1 3.4 0l1.41 1.41-3.4 3.4zM7.73 15.12l1.41 1.41a2.4 2.4 0 0 1-3.4 0l-1.41-1.41 3.4-3.4z" }) }));
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Default provider icon component
|
|
37
|
-
*
|
|
38
|
-
* @version 0.1.0
|
|
39
|
-
* @since 0.0.1
|
|
40
|
-
* @author AMBROISE PARK Consulting
|
|
41
|
-
*/
|
|
42
|
-
export default DefaultProviderIcon;
|
|
43
|
-
/**
|
|
44
|
-
* Schema-driven icon mapping
|
|
45
|
-
*
|
|
46
|
-
* This mapping MUST match the icon properties from AUTH_PARTNERS and OAUTH_PARTNERS schemas:
|
|
47
|
-
* - AUTH_PARTNERS: google, github, facebook, discord, twitter, microsoft, spotify, linkedin, reddit, twitch, yahoo, apple, password, emailLink
|
|
48
|
-
* - OAUTH_PARTNERS: google, github, discord, spotify, twitch, reddit, linkedin, slack, notion, medium, twitter, mastodon, youtube
|
|
49
|
-
*
|
|
50
|
-
* Naming convention: schema icon value → ComponentName
|
|
51
|
-
* Example: schema icon: 'google' → GoogleIcon component
|
|
52
|
-
*
|
|
53
|
-
* @version 0.1.0
|
|
54
|
-
* @since 0.0.1
|
|
55
|
-
* @author AMBROISE PARK Consulting
|
|
56
|
-
*/
|
|
57
|
-
export const PROVIDER_ICONS = {
|
|
58
|
-
// Schema icon values → Component mapping (alphabetical)
|
|
59
|
-
apple: AppleIcon,
|
|
60
|
-
discord: DiscordIcon,
|
|
61
|
-
emailLink: MailCheck,
|
|
62
|
-
facebook: FacebookIcon,
|
|
63
|
-
github: GitHubIcon,
|
|
64
|
-
google: GoogleIcon,
|
|
65
|
-
linkedin: LinkedInIcon,
|
|
66
|
-
mastodon: MastodonIcon,
|
|
67
|
-
medium: MediumIcon,
|
|
68
|
-
microsoft: MicrosoftIcon,
|
|
69
|
-
notion: NotionIcon,
|
|
70
|
-
password: Mail,
|
|
71
|
-
reddit: RedditIcon,
|
|
72
|
-
slack: SlackIcon,
|
|
73
|
-
spotify: SpotifyIcon,
|
|
74
|
-
supabase: SupabaseIcon,
|
|
75
|
-
twitch: TwitchIcon,
|
|
76
|
-
twitter: XIcon,
|
|
77
|
-
yahoo: YahooIcon,
|
|
78
|
-
youtube: YouTubeIcon,
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Get provider icon by schema icon value with fallback to default
|
|
82
|
-
*
|
|
83
|
-
* @param partnerId - The schema icon value (e.g., 'google', 'github')
|
|
84
|
-
* @returns The corresponding icon component or DefaultProviderIcon
|
|
85
|
-
*
|
|
86
|
-
* @version 0.1.0
|
|
87
|
-
* @since 0.0.1
|
|
88
|
-
* @author AMBROISE PARK Consulting
|
|
89
|
-
*/
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- why: public return type; icon components have heterogeneous props (narrowing is an API change, see any-audit)
|
|
91
|
-
export function getProviderIcon(partnerId) {
|
|
92
|
-
return ((isProviderIconKey(partnerId) && PROVIDER_ICONS[partnerId]) ||
|
|
93
|
-
DefaultProviderIcon);
|
|
94
|
-
}
|
|
95
|
-
/** Narrows a schema icon value to a PROVIDER_ICONS key. */
|
|
96
|
-
function isProviderIconKey(partnerId) {
|
|
97
|
-
return partnerId in PROVIDER_ICONS;
|
|
98
|
-
}
|
|
1
|
+
import{Mail as m,MailCheck as e}from"lucide-react";import p from"./AppleIcon.js";import c from"./DiscordIcon.js";import a from"./FacebookIcon.js";import f from"./GitHubIcon.js";import l from"./GoogleIcon.js";import I from"./LinkedinIcon.js";import s from"./MastodonIcon.js";import d from"./MediumIcon.js";import u from"./MicrosoftIcon.js";import y from"./NotionIcon.js";import g from"./RedditIcon.js";import k from"./SlackIcon.js";import S from"./SpotifyIcon.js";import b from"./SupabaseIcon.js";import M from"./TwitchIcon.js";import h from"./XIcon.js";import P from"./YahooIcon.js";import v from"./YouTubeIcon.js";import{jsx as r}from"react/jsx-runtime";function t({className:o="",...n}){return r("svg",{viewBox:"0 0 24 24",className:o,...n,children:r("path",{fill:"currentColor",d:"M20.42 4.58a5.4 5.4 0 0 0-7.65 0L9.27 7.88l-1.41-1.41a2.4 2.4 0 0 0-3.4 0L2.3 9.88a2.4 2.4 0 0 0 0 3.4l1.41 1.41-2.12 2.12a5.4 5.4 0 0 0 0 7.65l1.41 1.41a5.4 5.4 0 0 0 7.65 0l2.12-2.12 1.41 1.41a2.4 2.4 0 0 0 3.4 0l3.4-3.4a2.4 2.4 0 0 0 0-3.4l-1.41-1.41 2.12-2.12a5.4 5.4 0 0 0 0-7.65l-1.41-1.41zM16.27 8.88l-1.41-1.41a2.4 2.4 0 0 1 3.4 0l1.41 1.41-3.4 3.4zM7.73 15.12l1.41 1.41a2.4 2.4 0 0 1-3.4 0l-1.41-1.41 3.4-3.4z"})})}var X=t,i={apple:p,discord:c,emailLink:e,facebook:a,github:f,google:l,linkedin:I,mastodon:s,medium:d,microsoft:u,notion:y,password:m,reddit:g,slack:k,spotify:S,supabase:b,twitch:M,twitter:h,yahoo:P,youtube:v};function q(o){return C(o)&&i[o]||t}function C(o){return o in i}export{i as PROVIDER_ICONS,X as default,q as getProviderIcon};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Icons Barrel Export
|
|
4
|
-
* @description Exports all Icon components including generic Icon, IconBox, and Partner icons.
|
|
5
|
-
*/
|
|
6
|
-
export { default as Icon } from './Icon';
|
|
7
|
-
export { default as IconBox } from './IconBox';
|
|
8
|
-
export * from './Partner';
|
|
1
|
+
import{default as e}from"./Icon.js";import{default as t}from"./IconBox.js";export*from"./Partner/index.js";export{e as Icon,t as IconBox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/InfiniteScroll/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/InfiniteScroll/index.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,sBAAsB,CAAC;AAE9B,0FAA0F;AAC1F,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAClD,iFAAiF;IACjF,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;IAC3D,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC7C;AAED,QAAA,MAAM,cAAc,GAAI,CAAC,EAAG,gKAezB,mBAAmB,CAAC,CAAC,CAAC,gCA0GxB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// packages/components/src/atomic/InfiniteScroll/index.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Infinite Scroll Component
|
|
5
|
-
* @description Infinite scroll component for lazy loading content. Features intersection observer-based loading, customizable render functions, loading states, and end messages.
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
import { useState, useEffect, useCallback, useRef, } from 'react';
|
|
12
|
-
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
13
|
-
import { cn, observeElement } from '../../utils';
|
|
14
|
-
import Spinner from '../Spinner';
|
|
15
|
-
import Stack from '../Stack';
|
|
16
|
-
import './InfiniteScroll.css';
|
|
17
|
-
const InfiniteScroll = ({ items, renderItem, keyExtractor, loadMore, hasMore, loading = false, loadingComponent, endMessage, threshold = 0.1, rootMargin = '100px', className, itemClassName, gridCols = 3, gap = GAP_VARIANT.MEDIUM, }) => {
|
|
18
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
19
|
-
const loadMoreRef = useRef(null);
|
|
20
|
-
const handleLoadMore = useCallback(async () => {
|
|
21
|
-
if (loading || isLoading || !hasMore)
|
|
22
|
-
return;
|
|
23
|
-
setIsLoading(true);
|
|
24
|
-
try {
|
|
25
|
-
await loadMore();
|
|
26
|
-
}
|
|
27
|
-
finally {
|
|
28
|
-
setIsLoading(false);
|
|
29
|
-
}
|
|
30
|
-
}, [loadMore, loading, isLoading, hasMore]);
|
|
31
|
-
// Intersection observer for load more trigger
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
const element = loadMoreRef.current;
|
|
34
|
-
if (!element || !hasMore)
|
|
35
|
-
return;
|
|
36
|
-
const cleanup = observeElement(element, (entry) => {
|
|
37
|
-
if (entry.isIntersecting && !loading && !isLoading) {
|
|
38
|
-
handleLoadMore();
|
|
39
|
-
}
|
|
40
|
-
}, { threshold, rootMargin });
|
|
41
|
-
return cleanup;
|
|
42
|
-
}, [handleLoadMore, hasMore, loading, isLoading, threshold, rootMargin]);
|
|
43
|
-
const gapStyle = {
|
|
44
|
-
none: { gap: 'var(--gap-none)' },
|
|
45
|
-
tight: { gap: 'var(--gap-sm)' },
|
|
46
|
-
medium: { gap: 'var(--gap-md)' },
|
|
47
|
-
large: { gap: 'var(--gap-lg)' },
|
|
48
|
-
}[gap];
|
|
49
|
-
const defaultLoadingComponent = (_jsx(Stack, { align: "center", justify: "center", className: "dndev-py-lg", children: _jsxs(Stack, { direction: "row", align: "center", gap: "tight", className: "dndev-infinite-scroll-loading-container", children: [_jsx(Spinner, {}), _jsx("span", { children: "Loading more..." })] }) }));
|
|
50
|
-
const defaultEndMessage = (_jsx(Stack, { align: "center", justify: "center", className: "dndev-py-lg", children: _jsxs("div", { className: "dndev-text-center dndev-infinite-scroll-end-title", children: [_jsx("p", { className: "dndev-text-lg dndev-font-medium", children: "\uD83C\uDF89 You've seen it all!" }), _jsx("p", { className: "dndev-text-sm dndev-infinite-scroll-end-text", children: "That's everything we have to showcase." })] }) }));
|
|
51
|
-
return (_jsxs("div", { className: cn('dndev-grid dndev-gap-md', className), children: [_jsx("div", { className: "dndev-infinite-scroll-grid", "data-cols": gridCols, style: gapStyle, children: items.map((item, index) => (_jsx("div", { className: itemClassName, children: renderItem(item, index) }, keyExtractor ? keyExtractor(item, index) : index))) }), hasMore && (_jsx(Stack, { ref: loadMoreRef, justify: "center", className: "dndev-py-md", children: loading || isLoading ? (loadingComponent || defaultLoadingComponent) : (_jsx("div", { className: "dndev-text-sm dndev-infinite-scroll-more-text", children: "Scroll down to load more..." })) })), !hasMore && items.length > 0 && (_jsx(Stack, { justify: "center", className: "dndev-infinite-scroll-end-container", children: endMessage || defaultEndMessage }))] }));
|
|
52
|
-
};
|
|
53
|
-
export default InfiniteScroll;
|
|
1
|
+
"use client";import{useState as h,useEffect as w,useCallback as C,useRef as E}from"react";import{GAP_VARIANT as P}from"../../styles/componentConstants.js";import{cn as j,observeElement as A}from"../../utils/index.js";import M from"../Spinner/index.js";import s from"../Stack/index.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";var D=({items:l,renderItem:u,keyExtractor:o,loadMore:c,hasMore:n,loading:t=!1,loadingComponent:N,endMessage:y,threshold:m=.1,rootMargin:g="100px",className:S,itemClassName:T,gridCols:b=3,gap:k=P.MEDIUM})=>{let[a,p]=h(!1),v=E(null),f=C(async()=>{if(!(t||a||!n)){p(!0);try{await c()}finally{p(!1)}}},[c,t,a,n]);w(()=>{let i=v.current;return!i||!n?void 0:A(i,L=>{L.isIntersecting&&!t&&!a&&f()},{threshold:m,rootMargin:g})},[f,n,t,a,m,g]);let x={none:{gap:"var(--gap-none)"},tight:{gap:"var(--gap-sm)"},medium:{gap:"var(--gap-md)"},large:{gap:"var(--gap-lg)"}}[k],I=e(s,{align:"center",justify:"center",className:"dndev-py-lg",children:r(s,{direction:"row",align:"center",gap:"tight",className:"dndev-infinite-scroll-loading-container",children:[e(M,{}),e("span",{children:"Loading more..."})]})}),R=e(s,{align:"center",justify:"center",className:"dndev-py-lg",children:r("div",{className:"dndev-text-center dndev-infinite-scroll-end-title",children:[e("p",{className:"dndev-text-lg dndev-font-medium",children:"\u{1F389} You've seen it all!"}),e("p",{className:"dndev-text-sm dndev-infinite-scroll-end-text",children:"That's everything we have to showcase."})]})});return r("div",{className:j("dndev-grid dndev-gap-md",S),children:[e("div",{className:"dndev-infinite-scroll-grid","data-cols":b,style:x,children:l.map((i,d)=>e("div",{className:T,children:u(i,d)},o?o(i,d):d))}),n&&e(s,{ref:v,justify:"center",className:"dndev-py-md",children:t||a?N||I:e("div",{className:"dndev-text-sm dndev-infinite-scroll-more-text",children:"Scroll down to load more..."})}),!n&&l.length>0&&e(s,{justify:"center",className:"dndev-infinite-scroll-end-container",children:y||R})]})},_=D;export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Input/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Input/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,aAAa,CAAC;AAErB,qCAAqC;AACrC,MAAM,WAAW,UAAW,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IACvE,gDAAgD;IAChD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,KAAK,GAAI,+GAcZ,UAAU,gCAgFZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,63 +1 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
// packages/components/src/atomic/Input/index.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Input component
|
|
5
|
-
* @description Accessible input component with mobile-friendly touch targets, icon support, and floating labels
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
import { useId } from 'react';
|
|
12
|
-
import { cn } from '../../utils/helpers';
|
|
13
|
-
import Icon from '../Icons/Icon';
|
|
14
|
-
import { FloatingLabel } from '../Label';
|
|
15
|
-
import './Input.css';
|
|
16
|
-
/**
|
|
17
|
-
* Accessible input component with mobile-friendly touch targets.
|
|
18
|
-
* Supports leading or trailing icons with automatic padding adjustment.
|
|
19
|
-
* Automatic floating labels when label is provided.
|
|
20
|
-
*
|
|
21
|
-
* React 19: ref is a native prop, no forwardRef needed.
|
|
22
|
-
*
|
|
23
|
-
* @component
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <Input type="email" placeholder="Enter your email" />
|
|
27
|
-
* <Input icon={Search} placeholder="Search..." />
|
|
28
|
-
* <Input icon={Search} iconEnd placeholder="Search..." /> // Icon after text
|
|
29
|
-
* <Input label="Email" placeholder="Enter your email" /> // Floating label
|
|
30
|
-
* ```
|
|
31
|
-
* @param {InputProps} props - The props for the input
|
|
32
|
-
* @returns {JSX.Element} The rendered input
|
|
33
|
-
*/
|
|
34
|
-
const Input = ({ className, type, icon, iconEnd = false, label, info, bare, value, onFocus, onBlur, required, id: idProp, ...props }) => {
|
|
35
|
-
const generatedId = useId();
|
|
36
|
-
const id = idProp ?? generatedId;
|
|
37
|
-
const hasIcon = !!icon;
|
|
38
|
-
const isLeading = !iconEnd;
|
|
39
|
-
const isTrailing = iconEnd;
|
|
40
|
-
const hasLabel = !!label;
|
|
41
|
-
// Auto-bare when label is provided (FloatingLabel provides border)
|
|
42
|
-
const isBare = bare || hasLabel;
|
|
43
|
-
const inputClasses = cn('dndev-input', hasIcon && isLeading && 'dndev-input-with-leading-icon', hasIcon && isTrailing && 'dndev-input-with-trailing-icon', className);
|
|
44
|
-
// Explicitly exclude children to prevent void element error (input is a void element)
|
|
45
|
-
// If we have a label, extract style to pass to FloatingLabel wrapper instead of input
|
|
46
|
-
const { children: _children, style, ...inputProps } = props;
|
|
47
|
-
const inputElement = (_jsx("input", { id: id, type: type, value: value, onFocus: onFocus, onBlur: onBlur, required: required, autoComplete: "one-time-code", className: inputClasses, "data-bare": isBare || undefined, ...inputProps,
|
|
48
|
-
// Only apply style to input if there's no label (label wrapper gets it)
|
|
49
|
-
style: hasLabel ? undefined : style }));
|
|
50
|
-
const needsWrapper = hasIcon || hasLabel;
|
|
51
|
-
// Build input with optional icon wrapper
|
|
52
|
-
const inputWithIcon = hasIcon ? (_jsxs("div", { className: "dndev-relative", children: [inputElement, _jsx("div", { className: cn('dndev-input-icon', isLeading && 'dndev-input-icon-leading', isTrailing && 'dndev-input-icon-trailing'), children: _jsx(Icon, { icon: icon, className: "dndev-size-md", ariaHidden: true }) })] })) : (inputElement);
|
|
53
|
-
if (!needsWrapper) {
|
|
54
|
-
return inputElement;
|
|
55
|
-
}
|
|
56
|
-
// With label: use FloatingLabel wrapper (fieldset/legend)
|
|
57
|
-
if (hasLabel) {
|
|
58
|
-
return (_jsx(FloatingLabel, { htmlFor: id, label: label, info: info, disabled: props.disabled, required: required, style: style, children: inputWithIcon }));
|
|
59
|
-
}
|
|
60
|
-
// Icon only, no label
|
|
61
|
-
return inputWithIcon;
|
|
62
|
-
};
|
|
63
|
-
export default Input;
|
|
1
|
+
"use client";import{useId as E}from"react";import{cn as f}from"../../utils/helpers.js";import P from"../Icons/Icon.js";import{FloatingLabel as x}from"../Label/index.js";import{jsx as t,jsxs as B}from"react/jsx-runtime";var A=({className:b,type:v,icon:o,iconEnd:s=!1,label:r,info:I,bare:g,value:y,onFocus:h,onBlur:L,required:d,id:T,...a})=>{let H=E(),l=T??H,e=!!o,p=!s,c=s,n=!!r,F=g||n,M=f("dndev-input",e&&p&&"dndev-input-with-leading-icon",e&&c&&"dndev-input-with-trailing-icon",b),{children:C,style:u,...N}=a,i=t("input",{id:l,type:v,value:y,onFocus:h,onBlur:L,required:d,autoComplete:"one-time-code",className:M,"data-bare":F||void 0,...N,style:n?void 0:u}),w=e||n,m=e?B("div",{className:"dndev-relative",children:[i,t("div",{className:f("dndev-input-icon",p&&"dndev-input-icon-leading",c&&"dndev-input-icon-trailing"),children:t(P,{icon:o,className:"dndev-size-md",ariaHidden:!0})})]}):i;return w?n?t(x,{htmlFor:l,label:r,info:I,disabled:a.disabled,required:d,style:u,children:m}):m:i},O=A;export{O as default};
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
// packages/components/src/atomic/Label/FieldInfo.tsx
|
|
4
|
-
/**
|
|
5
|
-
* @fileoverview FieldInfo component
|
|
6
|
-
* @description (i) button next to a field label: its help text shows on hover and
|
|
7
|
-
* keyboard focus (tooltip), and on tap for touch screens, where hover does not exist.
|
|
8
|
-
*
|
|
9
|
-
* @version 0.1.0
|
|
10
|
-
* @since 0.2.5
|
|
11
|
-
* @author AMBROISE PARK Consulting
|
|
12
|
-
*/
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
import { Info } from 'lucide-react';
|
|
15
|
-
import Icon from '../Icons/Icon';
|
|
16
|
-
import Tooltip from '../Tooltip';
|
|
17
|
-
/**
|
|
18
|
-
* (i) help button for a field label. Hover or focus shows the text; a tap (or click)
|
|
19
|
-
* pins it open until the button loses focus or Escape is pressed.
|
|
20
|
-
*
|
|
21
|
-
* @component
|
|
22
|
-
* @example
|
|
23
|
-
* ```tsx
|
|
24
|
-
* <FieldInfo text="Address of the page: /routines/oily-skin" />
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export function FieldInfo({ text }) {
|
|
28
|
-
const [pinned, setPinned] = useState(false);
|
|
29
|
-
return (_jsx(Tooltip, { content: text, side: "top", forceOpen: pinned || undefined, children: _jsx("button", { type: "button", className: "dndev-field-info", "aria-label": text, onClick: () => setPinned((open) => !open), onBlur: () => setPinned(false), onKeyDown: (event) => {
|
|
30
|
-
if (event.key === 'Escape')
|
|
31
|
-
setPinned(false);
|
|
32
|
-
}, children: _jsx(Icon, { icon: Info, ariaHidden: true }) }) }));
|
|
33
|
-
}
|
|
34
|
-
export default FieldInfo;
|
|
1
|
+
"use client";import{useState as r}from"react";import{Info as f}from"lucide-react";import l from"../Icons/Icon.js";import p from"../Tooltip/index.js";import{jsx as n}from"react/jsx-runtime";function d({text:t}){let[i,o]=r(!1);return n(p,{content:t,side:"top",forceOpen:i||void 0,children:n("button",{type:"button",className:"dndev-field-info","aria-label":t,onClick:()=>o(e=>!e),onBlur:()=>o(!1),onKeyDown:e=>{e.key==="Escape"&&o(!1)},children:n(l,{icon:f,ariaHidden:!0})})})}var m=d;export{d as FieldInfo,m as default};
|
|
@@ -1,35 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
// packages/components/src/atomic/Label/FloatingLabel.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview FloatingLabel component
|
|
5
|
-
* @description Fieldset/legend wrapper for native border-cutting floating labels.
|
|
6
|
-
* Uses semantic HTML - browser natively cuts border where legend sits.
|
|
7
|
-
* No background color hacks needed.
|
|
8
|
-
*
|
|
9
|
-
* @version 0.1.0
|
|
10
|
-
* @since 0.0.1
|
|
11
|
-
* @author AMBROISE PARK Consulting
|
|
12
|
-
*/
|
|
13
|
-
import './Label.css';
|
|
14
|
-
import { FieldInfo } from './FieldInfo';
|
|
15
|
-
/**
|
|
16
|
-
* FloatingLabel - Fieldset/legend wrapper for floating labels
|
|
17
|
-
*
|
|
18
|
-
* Uses semantic HTML to achieve the "label on border" effect without
|
|
19
|
-
* background color hacks. Works on any background color.
|
|
20
|
-
*
|
|
21
|
-
* @component
|
|
22
|
-
* @example
|
|
23
|
-
* ```tsx
|
|
24
|
-
* <FloatingLabel label="Email Address" htmlFor="email" required>
|
|
25
|
-
* <input id="email" type="email" />
|
|
26
|
-
* </FloatingLabel>
|
|
27
|
-
* <FloatingLabel label="URL" htmlFor="slug" info="Address of the page: /routines/oily-skin">
|
|
28
|
-
* <input id="slug" />
|
|
29
|
-
* </FloatingLabel>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export function FloatingLabel({ htmlFor, label, disabled = false, truncate = true, required = false, info, children, className, style, }) {
|
|
33
|
-
return (_jsxs("fieldset", { className: `dndev-floating-fieldset ${className || ''}`, disabled: disabled, "data-disabled": disabled ? 'true' : undefined, style: style, children: [_jsxs("legend", { className: "dndev-floating-legend", "data-truncate": truncate ? undefined : 'false', "data-info": info ? 'true' : undefined, children: [_jsxs("label", { htmlFor: htmlFor, children: [label, required && ' *'] }), info && _jsx(FieldInfo, { text: info })] }), children] }));
|
|
34
|
-
}
|
|
35
|
-
export default FloatingLabel;
|
|
1
|
+
import{FieldInfo as f}from"./FieldInfo.js";import{jsx as b,jsxs as t}from"react/jsx-runtime";function c({htmlFor:l,label:d,disabled:a=!1,truncate:n=!0,required:o=!1,info:e,children:r,className:i,style:s}){return t("fieldset",{className:`dndev-floating-fieldset ${i||""}`,disabled:a,"data-disabled":a?"true":void 0,style:s,children:[t("legend",{className:"dndev-floating-legend","data-truncate":n?void 0:"false","data-info":e?"true":void 0,children:[t("label",{htmlFor:l,children:[d,o&&" *"]}),e&&b(f,{text:e})]}),r]})}var u=c;export{c as FloatingLabel,u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelPrimitive.d.ts","sourceRoot":"","sources":["../../../src/atomic/Label/LabelPrimitive.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LabelPrimitive.d.ts","sourceRoot":"","sources":["../../../src/atomic/Label/LabelPrimitive.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C;;;;;;GAMG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CACzD,OAAO,cAAc,CAAC,IAAI,CAC3B;CAAG;AAEJ,QAAA,MAAM,uBAAuB,GAAI,yBAG9B,mBAAmB,gCAErB,CAAC;AAEF,OAAO,EAAE,uBAAuB,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
// packages/components/src/atomic/Label/LabelPrimitive.tsx
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Label Primitive
|
|
5
|
-
* @description Low-level Radix UI label wrapper, internal use only
|
|
6
|
-
*
|
|
7
|
-
* @version 0.1.0
|
|
8
|
-
* @since 0.0.1
|
|
9
|
-
* @author AMBROISE PARK Consulting
|
|
10
|
-
*/
|
|
11
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
|
-
import { cn } from '../../utils/helpers';
|
|
13
|
-
const LabelPrimitiveComponent = ({ className, ...props }) => {
|
|
14
|
-
return _jsx(LabelPrimitive.Root, { className: cn(className), ...props });
|
|
15
|
-
};
|
|
16
|
-
export { LabelPrimitiveComponent as LabelPrimitive };
|
|
1
|
+
"use client";import*as e from"@radix-ui/react-label";import{cn as t}from"../../utils/helpers.js";import{jsx as r}from"react/jsx-runtime";var p=({className:i,...o})=>r(e.Root,{className:t(i),...o});export{p as LabelPrimitive};
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { FloatingLabel } from './FloatingLabel';
|
|
3
|
-
import { LabelPrimitive } from './LabelPrimitive';
|
|
4
|
-
import { cn } from '../../utils/helpers';
|
|
5
|
-
/**
|
|
6
|
-
* Accessible label component built on Radix UI Label.
|
|
7
|
-
* Supports icons and various label positions.
|
|
8
|
-
*
|
|
9
|
-
* @component
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <Label htmlFor="email" icon={Mail}>Email Address</Label>
|
|
13
|
-
* ```
|
|
14
|
-
* @param {LabelProps} props - The props for the label
|
|
15
|
-
* @returns {JSX.Element} The rendered label
|
|
16
|
-
*/
|
|
17
|
-
const Label = ({ className, icon: Icon, iconEnd = false, plain = false, required = false, children, ...props }) => {
|
|
18
|
-
const iconElement = Icon ? (_jsx(Icon, { className: "dndev-label-icon", "data-position": iconEnd ? 'trailing' : 'leading' })) : null;
|
|
19
|
-
return (_jsxs(LabelPrimitive, { className: cn('dndev-text-base dndev-label-base', className), "data-plain": plain ? 'true' : undefined, ...props, children: [!iconEnd && iconElement, children, required && ' *', iconEnd && iconElement] }));
|
|
20
|
-
};
|
|
21
|
-
export default Label;
|
|
22
|
-
export { FloatingLabel };
|
|
23
|
-
export { FieldInfo } from './FieldInfo';
|
|
1
|
+
import{FloatingLabel as c}from"./FloatingLabel.js";import{LabelPrimitive as p}from"./LabelPrimitive.js";import{cn as s}from"../../utils/helpers.js";import{FieldInfo as u}from"./FieldInfo.js";import{jsx as m,jsxs as b}from"react/jsx-runtime";var d=({className:t,icon:o,iconEnd:e=!1,plain:l=!1,required:i=!1,children:n,...r})=>{let a=o?m(o,{className:"dndev-label-icon","data-position":e?"trailing":"leading"}):null;return b(p,{className:s("dndev-text-base dndev-label-base",t),"data-plain":l?"true":void 0,...r,children:[!e&&a,n,i&&" *",e&&a]})},v=d;export{u as FieldInfo,c as FloatingLabel,v as default};
|