@donotdev/components 0.0.33 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -48
- package/README.md +12 -0
- package/dist/CodeContent-4RJHYJO7.js +2 -0
- package/dist/{CrawlContent-5CUKBDIN.js → CrawlContent-6LR66N57.js} +1 -1
- package/dist/advanced/Bento/Bento.js +1 -1
- package/dist/advanced/Carousel/Carousel.js +1 -1
- package/dist/advanced/Carousel/CarouselContent.d.ts +1 -1
- package/dist/advanced/Carousel/CarouselContent.js +1 -1
- package/dist/advanced/Carousel/CarouselSkeleton.js +1 -1
- package/dist/advanced/Code/Code.js +1 -1
- package/dist/advanced/Code/CodeContent.d.ts.map +1 -1
- package/dist/advanced/Code/CodeContent.js +9 -7
- package/dist/advanced/Code/CodeSkeleton.js +1 -1
- package/dist/advanced/Crawl/Crawl.d.ts +2 -2
- package/dist/advanced/Crawl/Crawl.js +2 -2
- package/dist/advanced/Crawl/CrawlContent.d.ts +1 -1
- package/dist/advanced/Crawl/CrawlContent.js +1 -1
- package/dist/advanced/Crawl/utils/parseHtml.d.ts +5 -5
- package/dist/advanced/Crawl/utils/parseHtml.d.ts.map +1 -1
- package/dist/advanced/Crawl/utils/parseHtml.js +15 -9
- package/dist/advanced/ImageGallery/ImageGallery.js +1 -1
- package/dist/advanced/JsonViewer/JsonViewer.js +1 -1
- package/dist/advanced/Marquee/Marquee.js +1 -1
- package/dist/advanced/Marquee/MarqueeContent.js +1 -1
- package/dist/advanced/Marquee/MarqueeSkeleton.js +1 -1
- package/dist/advanced/Reveal/Reveal.d.ts +1 -1
- package/dist/advanced/Reveal/Reveal.js +1 -1
- package/dist/advanced/Roadmap/Roadmap.d.ts +1 -1
- package/dist/advanced/Roadmap/Roadmap.js +1 -1
- package/dist/advanced/Roadmap/RoadmapContent.js +1 -1
- package/dist/advanced/SplitReveal/SplitReveal.d.ts +3 -3
- package/dist/advanced/SplitReveal/SplitReveal.js +2 -2
- package/dist/advanced/StackedCards/StackedCards.d.ts +1 -1
- package/dist/advanced/StackedCards/StackedCards.js +1 -1
- package/dist/advanced/StackedCards/StackedCardsContent.js +1 -1
- package/dist/advanced/index.d.ts +1 -1
- package/dist/advanced/index.js +1 -1
- package/dist/atomic/Accordion/AccordionPrimitive.d.ts +1 -1
- package/dist/atomic/Accordion/AccordionPrimitive.js +1 -1
- package/dist/atomic/Accordion/index.js +1 -1
- package/dist/atomic/ActionButton/index.js +1 -1
- package/dist/atomic/ActionButton/useAction.js +1 -1
- package/dist/atomic/Alert/index.d.ts +1 -1
- package/dist/atomic/Alert/index.js +1 -1
- package/dist/atomic/AlertDialog/AlertDialogPrimitive.d.ts +1 -1
- package/dist/atomic/AlertDialog/AlertDialogPrimitive.js +1 -1
- package/dist/atomic/AlertDialog/index.js +1 -1
- package/dist/atomic/Avatar/AvatarPrimitive.d.ts +1 -1
- package/dist/atomic/Avatar/AvatarPrimitive.js +1 -1
- package/dist/atomic/Avatar/index.d.ts +1 -1
- package/dist/atomic/Avatar/index.js +1 -1
- package/dist/atomic/Badge/index.d.ts +1 -1
- package/dist/atomic/Badge/index.js +1 -1
- package/dist/atomic/Blockquote/index.d.ts +1 -1
- package/dist/atomic/Blockquote/index.js +2 -2
- package/dist/atomic/Button/index.d.ts +2 -2
- package/dist/atomic/Button/index.js +1 -1
- package/dist/atomic/ButtonGroup/index.js +1 -1
- package/dist/atomic/Calendar/CalendarPrimitive.d.ts +1 -1
- package/dist/atomic/Calendar/CalendarPrimitive.js +1 -1
- package/dist/atomic/CallToAction/index.d.ts +1 -1
- package/dist/atomic/CallToAction/index.js +1 -1
- package/dist/atomic/Card/index.d.ts +1 -1
- package/dist/atomic/Card/index.js +1 -1
- package/dist/atomic/Checkbox/CheckboxPrimitive.d.ts +1 -1
- package/dist/atomic/Checkbox/CheckboxPrimitive.js +1 -1
- package/dist/atomic/Checkbox/index.js +1 -1
- package/dist/atomic/Collapsible/CollapsiblePrimitive.d.ts +1 -1
- package/dist/atomic/Collapsible/CollapsiblePrimitive.js +1 -1
- package/dist/atomic/Collapsible/index.js +1 -1
- package/dist/atomic/ColorPicker/index.js +1 -1
- package/dist/atomic/Command/index.js +1 -1
- package/dist/atomic/CommandDialog/index.js +1 -1
- package/dist/atomic/ContextMenu/ContextMenuPrimitive.d.ts +1 -1
- package/dist/atomic/ContextMenu/ContextMenuPrimitive.js +1 -1
- package/dist/atomic/ContextMenu/index.js +1 -1
- package/dist/atomic/CopyToClipboard/index.d.ts +1 -1
- package/dist/atomic/CopyToClipboard/index.js +3 -3
- package/dist/atomic/DescriptionList/index.js +1 -1
- package/dist/atomic/Dialog/index.js +1 -1
- package/dist/atomic/DropdownMenu/DropdownMenuPrimitive.d.ts +1 -1
- package/dist/atomic/DropdownMenu/DropdownMenuPrimitive.js +1 -1
- package/dist/atomic/DropdownMenu/index.js +1 -1
- package/dist/atomic/DualCard/index.d.ts +1 -1
- package/dist/atomic/DualCard/index.js +1 -1
- package/dist/atomic/FeatureFallback/index.js +1 -1
- package/dist/atomic/FileButton/index.d.ts +3 -3
- package/dist/atomic/FileButton/index.js +3 -3
- package/dist/atomic/Grid/GridArea.d.ts +1 -1
- package/dist/atomic/Grid/GridArea.js +1 -1
- package/dist/atomic/Grid/index.d.ts +1 -1
- package/dist/atomic/Grid/index.js +1 -1
- package/dist/atomic/HeroSection/index.d.ts +1 -1
- package/dist/atomic/HeroSection/index.js +1 -1
- package/dist/atomic/HoverCard/HoverCardPrimitive.d.ts +1 -1
- package/dist/atomic/HoverCard/HoverCardPrimitive.js +1 -1
- package/dist/atomic/HoverCard/index.js +1 -1
- package/dist/atomic/Icons/Icon.js +1 -1
- package/dist/atomic/Icons/IconBox.d.ts +3 -3
- package/dist/atomic/Icons/IconBox.js +3 -3
- package/dist/atomic/Icons/Partner/AppleIcon.d.ts +3 -3
- package/dist/atomic/Icons/Partner/AppleIcon.js +3 -3
- package/dist/atomic/Icons/Partner/DiscordIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/DiscordIcon.js +1 -1
- package/dist/atomic/Icons/Partner/FacebookIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/FacebookIcon.js +1 -1
- package/dist/atomic/Icons/Partner/GitHubIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/GitHubIcon.js +1 -1
- package/dist/atomic/Icons/Partner/GoogleIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/GoogleIcon.js +1 -1
- package/dist/atomic/Icons/Partner/LinkedinIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/LinkedinIcon.js +1 -1
- package/dist/atomic/Icons/Partner/MastodonIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/MastodonIcon.js +1 -1
- package/dist/atomic/Icons/Partner/MediumIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/MediumIcon.js +1 -1
- package/dist/atomic/Icons/Partner/MicrosoftIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/MicrosoftIcon.js +1 -1
- package/dist/atomic/Icons/Partner/NotionIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/NotionIcon.js +1 -1
- package/dist/atomic/Icons/Partner/RedditIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/RedditIcon.js +1 -1
- package/dist/atomic/Icons/Partner/SlackIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/SlackIcon.js +1 -1
- package/dist/atomic/Icons/Partner/SpotifyIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/SpotifyIcon.js +1 -1
- package/dist/atomic/Icons/Partner/TwitchIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/TwitchIcon.js +1 -1
- package/dist/atomic/Icons/Partner/XIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/XIcon.js +1 -1
- package/dist/atomic/Icons/Partner/YahooIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/YahooIcon.js +1 -1
- package/dist/atomic/Icons/Partner/YouTubeIcon.d.ts +1 -1
- package/dist/atomic/Icons/Partner/YouTubeIcon.js +1 -1
- package/dist/atomic/Icons/Partner/providerIcons.d.ts +3 -3
- package/dist/atomic/Icons/Partner/providerIcons.js +4 -4
- package/dist/atomic/InfiniteScroll/index.d.ts +1 -1
- package/dist/atomic/InfiniteScroll/index.js +1 -1
- package/dist/atomic/Input/index.js +1 -1
- package/dist/atomic/Label/FloatingLabel.d.ts +1 -1
- package/dist/atomic/Label/FloatingLabel.js +1 -1
- package/dist/atomic/Label/LabelPrimitive.d.ts +2 -2
- package/dist/atomic/Label/LabelPrimitive.js +1 -1
- package/dist/atomic/Label/index.d.ts +1 -1
- package/dist/atomic/Label/index.js +1 -1
- package/dist/atomic/List/index.d.ts +1 -1
- package/dist/atomic/List/index.js +1 -1
- package/dist/atomic/NavigationMenu/NavigationMenuPrimitive.d.ts +1 -1
- package/dist/atomic/NavigationMenu/NavigationMenuPrimitive.js +1 -1
- package/dist/atomic/NavigationMenu/index.d.ts +1 -1
- package/dist/atomic/NavigationMenu/index.js +1 -1
- package/dist/atomic/PasswordInput/index.d.ts +1 -1
- package/dist/atomic/PasswordInput/index.js +2 -2
- package/dist/atomic/Popover/PopoverPrimitive.d.ts +1 -1
- package/dist/atomic/Popover/PopoverPrimitive.js +1 -1
- package/dist/atomic/Popover/index.js +1 -1
- package/dist/atomic/Portal/PortalPrimitive.d.ts +1 -1
- package/dist/atomic/Portal/PortalPrimitive.js +1 -1
- package/dist/atomic/Portal/index.d.ts +1 -1
- package/dist/atomic/Portal/index.js +1 -1
- package/dist/atomic/PortalButton/index.d.ts +1 -1
- package/dist/atomic/PortalButton/index.js +1 -1
- package/dist/atomic/Progress/ProgressPrimitive.d.ts +1 -1
- package/dist/atomic/Progress/ProgressPrimitive.js +1 -1
- package/dist/atomic/Progress/index.d.ts +1 -1
- package/dist/atomic/Progress/index.js +1 -1
- package/dist/atomic/RadioGroup/RadioGroupPrimitive.d.ts +2 -2
- package/dist/atomic/RadioGroup/RadioGroupPrimitive.js +1 -1
- package/dist/atomic/RadioGroup/index.js +1 -1
- package/dist/atomic/RangeInput/index.js +1 -1
- package/dist/atomic/Rating/index.d.ts +1 -1
- package/dist/atomic/Rating/index.js +1 -1
- package/dist/atomic/ScrollArea/ScrollAreaPrimitive.d.ts +1 -1
- package/dist/atomic/ScrollArea/ScrollAreaPrimitive.js +1 -1
- package/dist/atomic/ScrollArea/index.d.ts +1 -1
- package/dist/atomic/ScrollArea/index.js +1 -1
- package/dist/atomic/Section/index.d.ts +15 -0
- package/dist/atomic/Section/index.d.ts.map +1 -1
- package/dist/atomic/Section/index.js +12 -3
- package/dist/atomic/Select/SelectPrimitive.d.ts +1 -1
- package/dist/atomic/Select/SelectPrimitive.js +1 -1
- package/dist/atomic/Select/index.js +1 -1
- package/dist/atomic/Separator/SeparatorPrimitive.d.ts +1 -1
- package/dist/atomic/Separator/SeparatorPrimitive.js +1 -1
- package/dist/atomic/Separator/index.d.ts +2 -2
- package/dist/atomic/Separator/index.js +2 -2
- package/dist/atomic/Sheet/SheetPrimitive.d.ts +1 -1
- package/dist/atomic/Sheet/SheetPrimitive.js +1 -1
- package/dist/atomic/Sheet/index.d.ts +1 -1
- package/dist/atomic/Sheet/index.js +1 -1
- package/dist/atomic/Skeleton/index.d.ts +1 -1
- package/dist/atomic/Skeleton/index.js +2 -2
- package/dist/atomic/SkipLink/index.js +1 -1
- package/dist/atomic/Slider/SliderPrimitive.d.ts +1 -1
- package/dist/atomic/Slider/SliderPrimitive.js +1 -1
- package/dist/atomic/Slider/index.d.ts +1 -1
- package/dist/atomic/Slider/index.js +1 -1
- package/dist/atomic/Slot/SlotPrimitive.d.ts +1 -1
- package/dist/atomic/Slot/SlotPrimitive.js +1 -1
- package/dist/atomic/Slot/index.d.ts +1 -1
- package/dist/atomic/Slot/index.js +1 -1
- package/dist/atomic/Spinner/index.d.ts +2 -2
- package/dist/atomic/Spinner/index.js +2 -2
- package/dist/atomic/Stack/index.d.ts +1 -1
- package/dist/atomic/Stack/index.js +1 -1
- package/dist/atomic/Stepper/index.d.ts +1 -1
- package/dist/atomic/Stepper/index.js +1 -1
- package/dist/atomic/Switch/SwitchPrimitive.d.ts +1 -1
- package/dist/atomic/Switch/SwitchPrimitive.js +1 -1
- package/dist/atomic/Switch/index.d.ts +1 -1
- package/dist/atomic/Switch/index.js +1 -1
- package/dist/atomic/Table/index.d.ts +2 -2
- package/dist/atomic/Table/index.js +1 -1
- package/dist/atomic/Tabs/TabsPrimitive.d.ts +1 -1
- package/dist/atomic/Tabs/TabsPrimitive.js +1 -1
- package/dist/atomic/Tabs/index.d.ts +1 -1
- package/dist/atomic/Tabs/index.js +1 -1
- package/dist/atomic/Tag/index.d.ts +1 -1
- package/dist/atomic/Tag/index.js +1 -1
- package/dist/atomic/Text/index.d.ts +1 -1
- package/dist/atomic/Text/index.js +1 -1
- package/dist/atomic/Textarea/index.js +1 -1
- package/dist/atomic/Toaster/Toast.types.d.ts +2 -2
- package/dist/atomic/Toaster/ToastPrimitive.d.ts +1 -1
- package/dist/atomic/Toaster/ToastPrimitive.js +1 -1
- package/dist/atomic/Toaster/index.d.ts +1 -1
- package/dist/atomic/Toaster/index.js +1 -1
- package/dist/atomic/Toggle/TogglePrimitive.d.ts +1 -1
- package/dist/atomic/Toggle/TogglePrimitive.js +1 -1
- package/dist/atomic/Toggle/index.d.ts +1 -1
- package/dist/atomic/Toggle/index.js +1 -1
- package/dist/atomic/ToggleGroup/ToggleGroupPrimitive.d.ts +1 -1
- package/dist/atomic/ToggleGroup/ToggleGroupPrimitive.js +1 -1
- package/dist/atomic/ToggleGroup/index.d.ts +1 -1
- package/dist/atomic/ToggleGroup/index.js +1 -1
- package/dist/atomic/Tooltip/TooltipPrimitive.d.ts +1 -1
- package/dist/atomic/Tooltip/TooltipPrimitive.js +1 -1
- package/dist/atomic/Tooltip/index.js +1 -1
- package/dist/atomic/TreeView/index.js +1 -1
- package/dist/atomic/VideoPlayer/index.d.ts +2 -2
- package/dist/atomic/VideoPlayer/index.js +4 -4
- package/dist/atomic/VisuallyHidden/index.d.ts +1 -1
- package/dist/atomic/VisuallyHidden/index.js +1 -1
- package/dist/atomic/index.d.ts +1 -1
- package/dist/atomic/index.js +1 -1
- package/dist/chunk-2CNNVCFI.js +1 -0
- package/dist/{chunk-APZZAGK2.js → chunk-FM52VMY6.js} +2 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useClickOutside.js +1 -1
- package/dist/hooks/useIntersectionObserver.d.ts +3 -3
- package/dist/hooks/useIntersectionObserver.js +2 -2
- package/dist/hooks/useSwipeToClose.js +1 -1
- package/dist/hooks/useToast.d.ts +8 -8
- package/dist/hooks/useToast.js +6 -6
- package/dist/hooks/useViewportVisibility.d.ts +3 -3
- package/dist/hooks/useViewportVisibility.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/styles/componentConstants.d.ts +8 -8
- package/dist/styles/componentConstants.js +8 -8
- package/dist/styles/index.css +224 -0
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/utils/eventListener.d.ts +3 -3
- package/dist/utils/eventListener.js +3 -3
- package/dist/utils/helpers.d.ts +2 -2
- package/dist/utils/helpers.js +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/intersectionObserver.d.ts +7 -7
- package/dist/utils/intersectionObserver.js +6 -6
- package/dist/utils/isDark.d.ts +2 -2
- package/dist/utils/isDark.js +3 -3
- package/dist/utils/measurement.d.ts +8 -8
- package/dist/utils/measurement.js +6 -6
- package/dist/utils/rtl.d.ts +1 -1
- package/dist/utils/rtl.js +2 -2
- package/dist/utils/viewportDetection.d.ts +6 -6
- package/dist/utils/viewportDetection.js +3 -3
- package/package.json +2 -2
- package/dist/CodeContent-CAM2LFZ7.js +0 -2
- package/dist/CodeContent-OPBVWY43.js +0 -2
- package/dist/chunk-E54ZWOWD.js +0 -1
- package/dist/chunk-NCBN5O34.js +0 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Component Style Constants
|
|
3
3
|
* @description Component class names and CSS variable definitions. Used for Tailwind safelist and IDE autocomplete. Defines all component classes, animation classes, debug classes, and CSS custom properties.
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -24,7 +24,7 @@ export declare const componentClasses: {
|
|
|
24
24
|
* Essential utility classes that cannot be replaced by Stack/Grid components
|
|
25
25
|
* Only utilities that Stack/Grid don't cover (flex grow/shrink, visibility, height for modals, z-index)
|
|
26
26
|
*
|
|
27
|
-
* @version 0.0
|
|
27
|
+
* @version 0.1.0
|
|
28
28
|
* @since 0.0.1
|
|
29
29
|
* @author AMBROISE PARK Consulting
|
|
30
30
|
*/
|
|
@@ -59,7 +59,7 @@ export declare const essentialUtilities: {
|
|
|
59
59
|
/**
|
|
60
60
|
* Animation class names defined in animations.css and utilities.css
|
|
61
61
|
*
|
|
62
|
-
* @version 0.0
|
|
62
|
+
* @version 0.1.0
|
|
63
63
|
* @since 0.0.1
|
|
64
64
|
* @author AMBROISE PARK Consulting
|
|
65
65
|
*/
|
|
@@ -75,7 +75,7 @@ export declare const animationClasses: {
|
|
|
75
75
|
* Debug utility class names defined in utilities.css
|
|
76
76
|
* Only active when --debug-enabled CSS variable is set to 1
|
|
77
77
|
*
|
|
78
|
-
* @version 0.0
|
|
78
|
+
* @version 0.1.0
|
|
79
79
|
* @since 0.0.1
|
|
80
80
|
* @author AMBROISE PARK Consulting
|
|
81
81
|
*/
|
|
@@ -87,7 +87,7 @@ export declare const debugClasses: {
|
|
|
87
87
|
/**
|
|
88
88
|
* CSS custom property names for programmatic access
|
|
89
89
|
*
|
|
90
|
-
* @version 0.0
|
|
90
|
+
* @version 0.1.0
|
|
91
91
|
* @since 0.0.1
|
|
92
92
|
* @author AMBROISE PARK Consulting
|
|
93
93
|
*/
|
|
@@ -127,7 +127,7 @@ export declare const cssVariables: {
|
|
|
127
127
|
* Gap variant constants - DRY single source of truth
|
|
128
128
|
* Used for gap/spacing props across all components
|
|
129
129
|
*
|
|
130
|
-
* @version 0.0
|
|
130
|
+
* @version 0.1.0
|
|
131
131
|
* @since 0.0.1
|
|
132
132
|
* @author AMBROISE PARK Consulting
|
|
133
133
|
*/
|
|
@@ -141,7 +141,7 @@ export declare const GAP_VARIANT: {
|
|
|
141
141
|
* Display variant constants - DRY single source of truth
|
|
142
142
|
* Used for display prop across UI/features components to control presentation in preset layouts
|
|
143
143
|
*
|
|
144
|
-
* @version 0.0
|
|
144
|
+
* @version 0.1.0
|
|
145
145
|
* @since 0.0.1
|
|
146
146
|
* @author AMBROISE PARK Consulting
|
|
147
147
|
*/
|
|
@@ -153,7 +153,7 @@ export declare const DISPLAY: {
|
|
|
153
153
|
/**
|
|
154
154
|
* Combined export of all classes for convenience
|
|
155
155
|
*
|
|
156
|
-
* @version 0.0
|
|
156
|
+
* @version 0.1.0
|
|
157
157
|
* @since 0.0.1
|
|
158
158
|
* @author AMBROISE PARK Consulting
|
|
159
159
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @fileoverview Component Style Constants
|
|
4
4
|
* @description Component class names and CSS variable definitions. Used for Tailwind safelist and IDE autocomplete. Defines all component classes, animation classes, debug classes, and CSS custom properties.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
@@ -29,7 +29,7 @@ export const componentClasses = {
|
|
|
29
29
|
* Essential utility classes that cannot be replaced by Stack/Grid components
|
|
30
30
|
* Only utilities that Stack/Grid don't cover (flex grow/shrink, visibility, height for modals, z-index)
|
|
31
31
|
*
|
|
32
|
-
* @version 0.0
|
|
32
|
+
* @version 0.1.0
|
|
33
33
|
* @since 0.0.1
|
|
34
34
|
* @author AMBROISE PARK Consulting
|
|
35
35
|
*/
|
|
@@ -69,7 +69,7 @@ export const essentialUtilities = {
|
|
|
69
69
|
/**
|
|
70
70
|
* Animation class names defined in animations.css and utilities.css
|
|
71
71
|
*
|
|
72
|
-
* @version 0.0
|
|
72
|
+
* @version 0.1.0
|
|
73
73
|
* @since 0.0.1
|
|
74
74
|
* @author AMBROISE PARK Consulting
|
|
75
75
|
*/
|
|
@@ -86,7 +86,7 @@ export const animationClasses = {
|
|
|
86
86
|
* Debug utility class names defined in utilities.css
|
|
87
87
|
* Only active when --debug-enabled CSS variable is set to 1
|
|
88
88
|
*
|
|
89
|
-
* @version 0.0
|
|
89
|
+
* @version 0.1.0
|
|
90
90
|
* @since 0.0.1
|
|
91
91
|
* @author AMBROISE PARK Consulting
|
|
92
92
|
*/
|
|
@@ -98,7 +98,7 @@ export const debugClasses = {
|
|
|
98
98
|
/**
|
|
99
99
|
* CSS custom property names for programmatic access
|
|
100
100
|
*
|
|
101
|
-
* @version 0.0
|
|
101
|
+
* @version 0.1.0
|
|
102
102
|
* @since 0.0.1
|
|
103
103
|
* @author AMBROISE PARK Consulting
|
|
104
104
|
*/
|
|
@@ -146,7 +146,7 @@ export const cssVariables = {
|
|
|
146
146
|
* Gap variant constants - DRY single source of truth
|
|
147
147
|
* Used for gap/spacing props across all components
|
|
148
148
|
*
|
|
149
|
-
* @version 0.0
|
|
149
|
+
* @version 0.1.0
|
|
150
150
|
* @since 0.0.1
|
|
151
151
|
* @author AMBROISE PARK Consulting
|
|
152
152
|
*/
|
|
@@ -160,7 +160,7 @@ export const GAP_VARIANT = {
|
|
|
160
160
|
* Display variant constants - DRY single source of truth
|
|
161
161
|
* Used for display prop across UI/features components to control presentation in preset layouts
|
|
162
162
|
*
|
|
163
|
-
* @version 0.0
|
|
163
|
+
* @version 0.1.0
|
|
164
164
|
* @since 0.0.1
|
|
165
165
|
* @author AMBROISE PARK Consulting
|
|
166
166
|
*/
|
|
@@ -172,7 +172,7 @@ export const DISPLAY = {
|
|
|
172
172
|
/**
|
|
173
173
|
* Combined export of all classes for convenience
|
|
174
174
|
*
|
|
175
|
-
* @version 0.0
|
|
175
|
+
* @version 0.1.0
|
|
176
176
|
* @since 0.0.1
|
|
177
177
|
* @author AMBROISE PARK Consulting
|
|
178
178
|
*/
|
package/dist/styles/index.css
CHANGED
|
@@ -293,6 +293,11 @@
|
|
|
293
293
|
--content-width: var(
|
|
294
294
|
--max-content-width
|
|
295
295
|
); /* Default: use max (layout overrides) */
|
|
296
|
+
|
|
297
|
+
/* Named content width presets — SSOT for PageContainer variants + Section contentWidth */
|
|
298
|
+
--content-width-standard: min(87.5rem, 100%);
|
|
299
|
+
--content-width-docs: min(56.25rem, 100%);
|
|
300
|
+
--content-width-narrow: min(var(--narrow-content-max), 100%);
|
|
296
301
|
}
|
|
297
302
|
|
|
298
303
|
/* ===========================
|
|
@@ -2694,6 +2699,54 @@ em {
|
|
|
2694
2699
|
}
|
|
2695
2700
|
}
|
|
2696
2701
|
|
|
2702
|
+
/* packages/components/src/advanced/Carousel/Carousel.css */
|
|
2703
|
+
|
|
2704
|
+
/* Responsive slide width via CSS custom properties — same pattern as Grid */
|
|
2705
|
+
|
|
2706
|
+
.dndev-carousel-slide {
|
|
2707
|
+
flex-shrink: 0;
|
|
2708
|
+
box-sizing: border-box;
|
|
2709
|
+
width: calc(100% / var(--carousel-slides-mobile, 1));
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
/* Tablet: 768px+ */
|
|
2713
|
+
|
|
2714
|
+
@media (min-width: 768px) {
|
|
2715
|
+
.dndev-carousel-slide {
|
|
2716
|
+
width: calc(100% / var(--carousel-slides-tablet, 1));
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
/* Laptop: 1024px+ */
|
|
2721
|
+
|
|
2722
|
+
@media (min-width: 1024px) {
|
|
2723
|
+
.dndev-carousel-slide {
|
|
2724
|
+
width: calc(100% / var(--carousel-slides-laptop, 1));
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
/* Desktop: 1440px+ */
|
|
2729
|
+
|
|
2730
|
+
@media (min-width: 1440px) {
|
|
2731
|
+
.dndev-carousel-slide {
|
|
2732
|
+
width: calc(100% / var(--carousel-slides-desktop, 1));
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
/* Gap between slides — padding inside the slide box, translateX math untouched */
|
|
2737
|
+
|
|
2738
|
+
.dndev-carousel-slide[data-gap='tight'] {
|
|
2739
|
+
padding-inline-end: var(--gap-sm);
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
.dndev-carousel-slide[data-gap='medium'] {
|
|
2743
|
+
padding-inline-end: var(--gap-md);
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
.dndev-carousel-slide[data-gap='large'] {
|
|
2747
|
+
padding-inline-end: var(--gap-lg);
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2697
2750
|
/* packages/components/src/atomic/Blockquote/Blockquote.css */
|
|
2698
2751
|
|
|
2699
2752
|
/*
|
|
@@ -6142,6 +6195,163 @@ input[type='number'] {
|
|
|
6142
6195
|
min-width: 0;
|
|
6143
6196
|
}
|
|
6144
6197
|
|
|
6198
|
+
/* packages/components/src/atomic/Rating/Rating.css */
|
|
6199
|
+
|
|
6200
|
+
/**
|
|
6201
|
+
* Rating Component Styles
|
|
6202
|
+
* Star-based rating with filled, half, and empty states
|
|
6203
|
+
*/
|
|
6204
|
+
|
|
6205
|
+
.dndev-rating {
|
|
6206
|
+
display: inline-flex;
|
|
6207
|
+
align-items: center;
|
|
6208
|
+
gap: var(--gap-sm);
|
|
6209
|
+
-webkit-user-select: none;
|
|
6210
|
+
-moz-user-select: none;
|
|
6211
|
+
user-select: none;
|
|
6212
|
+
}
|
|
6213
|
+
|
|
6214
|
+
.dndev-rating[data-disabled] {
|
|
6215
|
+
opacity: var(--opacity-muted);
|
|
6216
|
+
pointer-events: none;
|
|
6217
|
+
}
|
|
6218
|
+
|
|
6219
|
+
.dndev-rating:not([data-readonly]):not([data-disabled]) {
|
|
6220
|
+
cursor: pointer;
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6223
|
+
.dndev-rating:focus-visible {
|
|
6224
|
+
outline: 2px solid var(--ring);
|
|
6225
|
+
outline-offset: 2px;
|
|
6226
|
+
border-radius: 4px;
|
|
6227
|
+
}
|
|
6228
|
+
|
|
6229
|
+
/* Stars container */
|
|
6230
|
+
|
|
6231
|
+
.dndev-rating-stars {
|
|
6232
|
+
display: inline-flex;
|
|
6233
|
+
gap: 2px;
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
/* Individual star button */
|
|
6237
|
+
|
|
6238
|
+
.dndev-rating-star {
|
|
6239
|
+
display: inline-flex;
|
|
6240
|
+
align-items: center;
|
|
6241
|
+
justify-content: center;
|
|
6242
|
+
padding: 0;
|
|
6243
|
+
border: none;
|
|
6244
|
+
background: transparent;
|
|
6245
|
+
cursor: inherit;
|
|
6246
|
+
color: var(--muted-foreground);
|
|
6247
|
+
transition:
|
|
6248
|
+
color var(--dur-fast) var(--ease-in-out),
|
|
6249
|
+
transform var(--dur-fast) var(--ease-in-out);
|
|
6250
|
+
}
|
|
6251
|
+
|
|
6252
|
+
.dndev-rating-star:disabled {
|
|
6253
|
+
cursor: default;
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6256
|
+
.dndev-rating-star svg {
|
|
6257
|
+
width: var(--icon-md);
|
|
6258
|
+
height: var(--icon-md);
|
|
6259
|
+
stroke-width: 1.5;
|
|
6260
|
+
}
|
|
6261
|
+
|
|
6262
|
+
/* Star states */
|
|
6263
|
+
|
|
6264
|
+
.dndev-rating-star[data-state='empty'] {
|
|
6265
|
+
color: var(--muted-foreground);
|
|
6266
|
+
}
|
|
6267
|
+
|
|
6268
|
+
.dndev-rating-star[data-state='filled'] {
|
|
6269
|
+
color: var(--warning);
|
|
6270
|
+
}
|
|
6271
|
+
|
|
6272
|
+
.dndev-rating-star[data-state='filled'] svg {
|
|
6273
|
+
fill: currentColor;
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6276
|
+
/* Half-star rendering */
|
|
6277
|
+
|
|
6278
|
+
.dndev-rating-star-half {
|
|
6279
|
+
position: relative;
|
|
6280
|
+
display: inline-flex;
|
|
6281
|
+
}
|
|
6282
|
+
|
|
6283
|
+
.dndev-rating-star-back {
|
|
6284
|
+
color: var(--muted-foreground);
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
.dndev-rating-star-front {
|
|
6288
|
+
position: absolute;
|
|
6289
|
+
inset: 0;
|
|
6290
|
+
color: var(--warning);
|
|
6291
|
+
fill: currentColor;
|
|
6292
|
+
clip-path: inset(0 50% 0 0);
|
|
6293
|
+
}
|
|
6294
|
+
|
|
6295
|
+
/* RTL support */
|
|
6296
|
+
|
|
6297
|
+
:dir(rtl) .dndev-rating-star-front {
|
|
6298
|
+
clip-path: inset(0 0 0 50%);
|
|
6299
|
+
}
|
|
6300
|
+
|
|
6301
|
+
/* Interactive hover effects */
|
|
6302
|
+
|
|
6303
|
+
.dndev-rating:not([data-readonly]):not([data-disabled])
|
|
6304
|
+
.dndev-rating-star:hover {
|
|
6305
|
+
transform: scale(1.15);
|
|
6306
|
+
}
|
|
6307
|
+
|
|
6308
|
+
/* Variant colors - override warning default */
|
|
6309
|
+
|
|
6310
|
+
.dndev-rating[data-variant='primary'] .dndev-rating-star[data-state='filled'],
|
|
6311
|
+
.dndev-rating[data-variant='primary'] .dndev-rating-star-front {
|
|
6312
|
+
color: var(--primary);
|
|
6313
|
+
}
|
|
6314
|
+
|
|
6315
|
+
.dndev-rating[data-variant='secondary'] .dndev-rating-star[data-state='filled'],
|
|
6316
|
+
.dndev-rating[data-variant='secondary'] .dndev-rating-star-front {
|
|
6317
|
+
color: var(--secondary);
|
|
6318
|
+
}
|
|
6319
|
+
|
|
6320
|
+
.dndev-rating[data-variant='accent'] .dndev-rating-star[data-state='filled'],
|
|
6321
|
+
.dndev-rating[data-variant='accent'] .dndev-rating-star-front {
|
|
6322
|
+
color: var(--accent);
|
|
6323
|
+
}
|
|
6324
|
+
|
|
6325
|
+
.dndev-rating[data-variant='success'] .dndev-rating-star[data-state='filled'],
|
|
6326
|
+
.dndev-rating[data-variant='success'] .dndev-rating-star-front {
|
|
6327
|
+
color: var(--success);
|
|
6328
|
+
}
|
|
6329
|
+
|
|
6330
|
+
.dndev-rating[data-variant='warning'] .dndev-rating-star[data-state='filled'],
|
|
6331
|
+
.dndev-rating[data-variant='warning'] .dndev-rating-star-front {
|
|
6332
|
+
color: var(--warning);
|
|
6333
|
+
}
|
|
6334
|
+
|
|
6335
|
+
.dndev-rating[data-variant='destructive']
|
|
6336
|
+
.dndev-rating-star[data-state='filled'],
|
|
6337
|
+
.dndev-rating[data-variant='destructive'] .dndev-rating-star-front {
|
|
6338
|
+
color: var(--destructive);
|
|
6339
|
+
}
|
|
6340
|
+
|
|
6341
|
+
.dndev-rating[data-variant='muted'] .dndev-rating-star[data-state='filled'],
|
|
6342
|
+
.dndev-rating[data-variant='muted'] .dndev-rating-star-front {
|
|
6343
|
+
color: var(--muted-foreground);
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
/* Numeric value display */
|
|
6347
|
+
|
|
6348
|
+
.dndev-rating-value {
|
|
6349
|
+
font-size: var(--font-size-sm);
|
|
6350
|
+
font-weight: var(--font-weight-medium);
|
|
6351
|
+
color: var(--muted-foreground);
|
|
6352
|
+
min-width: 2ch;
|
|
6353
|
+
}
|
|
6354
|
+
|
|
6145
6355
|
/* packages/components/src/atomic/Select/Select.css */
|
|
6146
6356
|
|
|
6147
6357
|
.dndev-select-trigger {
|
|
@@ -6306,6 +6516,20 @@ input[type='number'] {
|
|
|
6306
6516
|
}
|
|
6307
6517
|
}
|
|
6308
6518
|
|
|
6519
|
+
/* Content width constraints — background stays full, only inner content narrows */
|
|
6520
|
+
|
|
6521
|
+
.dndev-section-content[data-content-width='standard'] {
|
|
6522
|
+
max-width: var(--content-width-standard);
|
|
6523
|
+
}
|
|
6524
|
+
|
|
6525
|
+
.dndev-section-content[data-content-width='docs'] {
|
|
6526
|
+
max-width: var(--content-width-docs);
|
|
6527
|
+
}
|
|
6528
|
+
|
|
6529
|
+
.dndev-section-content[data-content-width='narrow'] {
|
|
6530
|
+
max-width: var(--content-width-narrow);
|
|
6531
|
+
}
|
|
6532
|
+
|
|
6309
6533
|
/* Propagate text-align to all section content via CSS inheritance */
|
|
6310
6534
|
|
|
6311
6535
|
.dndev-section-full-width[data-text-align='start'] > .dndev-section-content {
|
package/dist/styles/index.d.ts
CHANGED
package/dist/styles/index.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Component Type Definitions
|
|
3
3
|
* @description Type definitions for component props and data structures used across the components package.
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -12,7 +12,7 @@ import type { ComponentType, ReactNode } from 'react';
|
|
|
12
12
|
/**
|
|
13
13
|
* Icon type definition
|
|
14
14
|
*
|
|
15
|
-
* @version 0.0
|
|
15
|
+
* @version 0.1.0
|
|
16
16
|
* @since 0.0.1
|
|
17
17
|
* @author AMBROISE PARK Consulting
|
|
18
18
|
*/
|
|
@@ -21,7 +21,7 @@ export type IconType = ComponentType<LucideProps> | string | ReactNode;
|
|
|
21
21
|
* Standardized content data structure for all marketing components.
|
|
22
22
|
* This ensures consistency across Reveal, Carousel, etc.
|
|
23
23
|
*
|
|
24
|
-
* @version 0.0
|
|
24
|
+
* @version 0.1.0
|
|
25
25
|
* @since 0.0.1
|
|
26
26
|
* @author AMBROISE PARK Consulting
|
|
27
27
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Event Listener Utilities
|
|
3
3
|
* @description Utility functions for managing event listeners in components. Provides helper functions for adding and removing event listeners with proper cleanup.
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @param options - Event listener options
|
|
15
15
|
* @returns Cleanup function
|
|
16
16
|
*
|
|
17
|
-
* @version 0.0
|
|
17
|
+
* @version 0.1.0
|
|
18
18
|
* @since 0.0.1
|
|
19
19
|
* @author AMBROISE PARK Consulting
|
|
20
20
|
*/
|
|
@@ -26,7 +26,7 @@ export declare function addEventListener<T extends Event = Event>(target: EventT
|
|
|
26
26
|
* @param options - Event listener options
|
|
27
27
|
* @returns Cleanup function
|
|
28
28
|
*
|
|
29
|
-
* @version 0.0
|
|
29
|
+
* @version 0.1.0
|
|
30
30
|
* @since 0.0.1
|
|
31
31
|
* @author AMBROISE PARK Consulting
|
|
32
32
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @fileoverview Event Listener Utilities
|
|
4
4
|
* @description Utility functions for managing event listeners in components. Provides helper functions for adding and removing event listeners with proper cleanup.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @param options - Event listener options
|
|
16
16
|
* @returns Cleanup function
|
|
17
17
|
*
|
|
18
|
-
* @version 0.0
|
|
18
|
+
* @version 0.1.0
|
|
19
19
|
* @since 0.0.1
|
|
20
20
|
* @author AMBROISE PARK Consulting
|
|
21
21
|
*/
|
|
@@ -35,7 +35,7 @@ export function addEventListener(target, eventType, handler, options) {
|
|
|
35
35
|
* @param options - Event listener options
|
|
36
36
|
* @returns Cleanup function
|
|
37
37
|
*
|
|
38
|
-
* @version 0.0
|
|
38
|
+
* @version 0.1.0
|
|
39
39
|
* @since 0.0.1
|
|
40
40
|
* @author AMBROISE PARK Consulting
|
|
41
41
|
*/
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { ClassValue } from 'clsx';
|
|
|
6
6
|
*
|
|
7
7
|
* @param {...ClassValue} inputs - Class name inputs to merge
|
|
8
8
|
* @returns {string} Merged class name string
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.1
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -23,7 +23,7 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
23
23
|
* const attrs = getVariantDataAttrs({ variant: 'primary', size: 'md' });
|
|
24
24
|
* // Returns: { 'data-variant': 'primary', 'data-size': 'md' }
|
|
25
25
|
*
|
|
26
|
-
* @version 0.0
|
|
26
|
+
* @version 0.1.0
|
|
27
27
|
* @since 0.0.1
|
|
28
28
|
* @author AMBROISE PARK Consulting
|
|
29
29
|
*/
|
package/dist/utils/helpers.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @fileoverview Component Helper Utilities
|
|
4
4
|
* @description Provides utility functions for component styling and class name management.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
@@ -15,7 +15,7 @@ import { clsx } from 'clsx';
|
|
|
15
15
|
*
|
|
16
16
|
* @param {...ClassValue} inputs - Class name inputs to merge
|
|
17
17
|
* @returns {string} Merged class name string
|
|
18
|
-
* @version 0.0
|
|
18
|
+
* @version 0.1.0
|
|
19
19
|
* @since 0.0.1
|
|
20
20
|
* @author AMBROISE PARK Consulting
|
|
21
21
|
*/
|
|
@@ -34,7 +34,7 @@ export function cn(...inputs) {
|
|
|
34
34
|
* const attrs = getVariantDataAttrs({ variant: 'primary', size: 'md' });
|
|
35
35
|
* // Returns: { 'data-variant': 'primary', 'data-size': 'md' }
|
|
36
36
|
*
|
|
37
|
-
* @version 0.0
|
|
37
|
+
* @version 0.1.0
|
|
38
38
|
* @since 0.0.1
|
|
39
39
|
* @author AMBROISE PARK Consulting
|
|
40
40
|
*/
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* @fileoverview Intersection Observer Utilities
|
|
3
3
|
* @description Centralized IntersectionObserver utility for framework components. Provides optimized, SSR-safe intersection observation with shared instances and polyfill support.
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Polyfill for IntersectionObserver
|
|
11
11
|
*
|
|
12
|
-
* @version 0.0
|
|
12
|
+
* @version 0.1.0
|
|
13
13
|
* @since 0.0.1
|
|
14
14
|
* @author AMBROISE PARK Consulting
|
|
15
15
|
*/
|
|
@@ -17,7 +17,7 @@ export declare function polyfillIntersectionObserver(): void;
|
|
|
17
17
|
/**
|
|
18
18
|
* Options for IntersectionObserver
|
|
19
19
|
*
|
|
20
|
-
* @version 0.0
|
|
20
|
+
* @version 0.1.0
|
|
21
21
|
* @since 0.0.1
|
|
22
22
|
* @author AMBROISE PARK Consulting
|
|
23
23
|
*/
|
|
@@ -30,7 +30,7 @@ export interface IntersectionObserverOptions {
|
|
|
30
30
|
* Get or create a cached IntersectionObserver instance
|
|
31
31
|
* This reduces the number of observers and improves performance for Lighthouse scores
|
|
32
32
|
*
|
|
33
|
-
* @version 0.0
|
|
33
|
+
* @version 0.1.0
|
|
34
34
|
* @since 0.0.1
|
|
35
35
|
* @author AMBROISE PARK Consulting
|
|
36
36
|
*/
|
|
@@ -42,7 +42,7 @@ export declare function getIntersectionObserver(options?: IntersectionObserverOp
|
|
|
42
42
|
* @param options IntersectionObserver options
|
|
43
43
|
* @returns Cleanup function
|
|
44
44
|
*
|
|
45
|
-
* @version 0.0
|
|
45
|
+
* @version 0.1.0
|
|
46
46
|
* @since 0.0.1
|
|
47
47
|
* @author AMBROISE PARK Consulting
|
|
48
48
|
*/
|
|
@@ -51,7 +51,7 @@ export declare function observeElement(element: Element, callback: (entry: Inter
|
|
|
51
51
|
* Create a simple intersection observer for basic visibility detection
|
|
52
52
|
* Optimized for performance and SSR safety
|
|
53
53
|
*
|
|
54
|
-
* @version 0.0
|
|
54
|
+
* @version 0.1.0
|
|
55
55
|
* @since 0.0.1
|
|
56
56
|
* @author AMBROISE PARK Consulting
|
|
57
57
|
*/
|
|
@@ -59,7 +59,7 @@ export declare function createVisibilityObserver(element: Element | null, onVisi
|
|
|
59
59
|
/**
|
|
60
60
|
* Cleanup all observers (useful for testing or app shutdown)
|
|
61
61
|
*
|
|
62
|
-
* @version 0.0
|
|
62
|
+
* @version 0.1.0
|
|
63
63
|
* @since 0.0.1
|
|
64
64
|
* @author AMBROISE PARK Consulting
|
|
65
65
|
*/
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* @fileoverview Intersection Observer Utilities
|
|
4
4
|
* @description Centralized IntersectionObserver utility for framework components. Provides optimized, SSR-safe intersection observation with shared instances and polyfill support.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* Polyfill for IntersectionObserver
|
|
12
12
|
*
|
|
13
|
-
* @version 0.0
|
|
13
|
+
* @version 0.1.0
|
|
14
14
|
* @since 0.0.1
|
|
15
15
|
* @author AMBROISE PARK Consulting
|
|
16
16
|
*/
|
|
@@ -67,7 +67,7 @@ const elementCallbacks = new Map();
|
|
|
67
67
|
* Get or create a cached IntersectionObserver instance
|
|
68
68
|
* This reduces the number of observers and improves performance for Lighthouse scores
|
|
69
69
|
*
|
|
70
|
-
* @version 0.0
|
|
70
|
+
* @version 0.1.0
|
|
71
71
|
* @since 0.0.1
|
|
72
72
|
* @author AMBROISE PARK Consulting
|
|
73
73
|
*/
|
|
@@ -103,7 +103,7 @@ export function getIntersectionObserver(options = {}) {
|
|
|
103
103
|
* @param options IntersectionObserver options
|
|
104
104
|
* @returns Cleanup function
|
|
105
105
|
*
|
|
106
|
-
* @version 0.0
|
|
106
|
+
* @version 0.1.0
|
|
107
107
|
* @since 0.0.1
|
|
108
108
|
* @author AMBROISE PARK Consulting
|
|
109
109
|
*/
|
|
@@ -158,7 +158,7 @@ export function observeElement(element, callback, options = {}) {
|
|
|
158
158
|
* Create a simple intersection observer for basic visibility detection
|
|
159
159
|
* Optimized for performance and SSR safety
|
|
160
160
|
*
|
|
161
|
-
* @version 0.0
|
|
161
|
+
* @version 0.1.0
|
|
162
162
|
* @since 0.0.1
|
|
163
163
|
* @author AMBROISE PARK Consulting
|
|
164
164
|
*/
|
|
@@ -170,7 +170,7 @@ export function createVisibilityObserver(element, onVisible, options = {}) {
|
|
|
170
170
|
/**
|
|
171
171
|
* Cleanup all observers (useful for testing or app shutdown)
|
|
172
172
|
*
|
|
173
|
-
* @version 0.0
|
|
173
|
+
* @version 0.1.0
|
|
174
174
|
* @since 0.0.1
|
|
175
175
|
* @author AMBROISE PARK Consulting
|
|
176
176
|
*/
|
package/dist/utils/isDark.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @returns boolean indicating if dark mode is active
|
|
6
6
|
*
|
|
7
|
-
* @version 0.0
|
|
7
|
+
* @version 0.1.0
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
@@ -13,7 +13,7 @@ export declare function isDark(): boolean;
|
|
|
13
13
|
* Hook version for React components
|
|
14
14
|
* Returns the current dark mode state and updates when theme changes
|
|
15
15
|
*
|
|
16
|
-
* @version 0.0
|
|
16
|
+
* @version 0.1.0
|
|
17
17
|
* @since 0.0.1
|
|
18
18
|
* @author AMBROISE PARK Consulting
|
|
19
19
|
*/
|