@donotdev/components 0.0.32 → 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 +32 -24
- 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 +4 -4
- 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-NCBN5O34.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-FLV5Y6KX.js +0 -2
- package/dist/chunk-E54ZWOWD.js +0 -1
package/dist/advanced/index.d.ts
CHANGED
package/dist/advanced/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Accordion component
|
|
5
5
|
* @description Accessible accordion component built on Radix UI primitives provides a prop based implementation to get rid of Radix internal nesting.
|
|
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
|
*/
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
6
6
|
* @fileoverview ActionButton Component
|
|
7
7
|
* @description Defensive button component for async actions with loading state and optional confirmation.
|
|
8
8
|
*
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.1
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Alert component
|
|
5
5
|
* @description Attention-grabbing alert component with semantic variants and icons
|
|
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
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Alert Dialog Component
|
|
3
3
|
* @description Accessible alert dialog component built on Radix UI primitives. Provides modal dialogs for critical confirmations and alerts.
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Alert Dialog Component
|
|
5
5
|
* @description Accessible alert dialog component built on Radix UI primitives. Provides modal dialogs for critical confirmations and alerts.
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Alert Dialog component
|
|
5
5
|
* @description Accessible alert dialog component built on Radix UI primitives. Provides a prop-based implementation to abstract Radix nesting.
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Avatar component
|
|
5
5
|
* @description Accessible avatar component built on Radix UI primitives. Provides image and fallback support.
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Blockquote component
|
|
5
5
|
* @description Semantic blockquote component for quotes and testimonials
|
|
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
|
*/
|
|
@@ -15,7 +15,7 @@ import Text, { TEXT_VARIANT } from '../Text';
|
|
|
15
15
|
/**
|
|
16
16
|
* Blockquote variant constants - Industry-standard patterns
|
|
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
|
*/
|
|
@@ -26,7 +26,7 @@ declare const buttonVariants: (props?: ({
|
|
|
26
26
|
/**
|
|
27
27
|
* Button variant type - derived from buttonVariants to ensure type safety
|
|
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
|
*/
|
|
@@ -34,7 +34,7 @@ export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
|
|
|
34
34
|
/**
|
|
35
35
|
* Button component props interface
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* @fileoverview Button component
|
|
5
5
|
* @description Accessible, type-safe button component with behavioral variants
|
|
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
|
*/
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* orientation, variant/size propagation, and both items-based and children-based APIs.
|
|
7
7
|
* NOT a toggle group — no state management.
|
|
8
8
|
*
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.1
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Card component
|
|
5
5
|
* @description Premium card component with behavioral variants and elevation
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Checkbox component
|
|
5
5
|
* @description Accessible checkbox control built on Radix UI primitives with semantic color variants.
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Collapsible component
|
|
5
5
|
* @description Interactive component for expanding/collapsing content built on Radix UI primitives.
|
|
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
|
*/
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* @description Color selection component with preset swatch grid, native color input fallback,
|
|
6
6
|
* and full ARIA radiogroup pattern with roving tabindex. SSR-safe, no external dependencies.
|
|
7
7
|
*
|
|
8
|
-
* @version 0.0
|
|
8
|
+
* @version 0.1.0
|
|
9
9
|
* @since 0.0.1
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Custom Command Component
|
|
5
5
|
* @description Native command palette using our design system patterns
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* @fileoverview CommandDialog Component
|
|
5
5
|
* @description Minimal command palette dialog optimized for Cmd+K navigation
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview ContextMenu Primitive
|
|
5
5
|
* @description Low-level Radix UI context menu wrapper, internal use only
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Context Menu component
|
|
5
5
|
* @description Accessible context menu component built on Radix UI primitives. Supports nested submenus, checkboxes, and radio groups.
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Copy to clipboard component with visual feedback
|
|
5
5
|
* @description Reusable component for copying text to clipboard using the modern Clipboard API. Features visual feedback, tooltip support, accessibility, and consistent styling with framework components.
|
|
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
|
*/
|
|
@@ -15,7 +15,7 @@ import { cn } from '../../utils/helpers';
|
|
|
15
15
|
import Button, {} from '../Button';
|
|
16
16
|
import './CopyToClipboard.css';
|
|
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
|
*/
|
|
@@ -31,6 +31,7 @@ export const CopyToClipboard = ({ text, children, variant = 'ghost', className,
|
|
|
31
31
|
};
|
|
32
32
|
}, []);
|
|
33
33
|
const handleCopy = useCallback(async (e) => {
|
|
34
|
+
e.stopPropagation();
|
|
34
35
|
try {
|
|
35
36
|
if (typeof window === 'undefined' || !navigator?.clipboard) {
|
|
36
37
|
if (process.env.NODE_ENV === 'development') {
|
|
@@ -45,7 +46,6 @@ export const CopyToClipboard = ({ text, children, variant = 'ghost', className,
|
|
|
45
46
|
clearTimeout(resetTimerRef.current);
|
|
46
47
|
}
|
|
47
48
|
resetTimerRef.current = setTimeout(() => setCopied(false), 2000);
|
|
48
|
-
// Call onClick handler if provided (e.g., for stopPropagation)
|
|
49
49
|
onClick?.(e);
|
|
50
50
|
}
|
|
51
51
|
catch (error) {
|
|
@@ -55,6 +55,6 @@ export const CopyToClipboard = ({ text, children, variant = 'ghost', className,
|
|
|
55
55
|
// No fallback - modern browsers should support clipboard API
|
|
56
56
|
}
|
|
57
57
|
}, [text, onCopy, onClick]);
|
|
58
|
-
return (_jsx(Button, { type: "button", variant: variant, display: DISPLAY.COMPACT, icon: copied ? Check : Copy, onClick: handleCopy, tooltip: showTooltip ? (copied ? copiedTooltipText : tooltipText) : undefined, className: cn('dndev-copy-button-transition', copied && 'dndev-copy-button-scaled', className), "aria-label": ariaLabel || (copied ? 'Copied to clipboard' : 'Copy to clipboard'), ...buttonProps, children: children }));
|
|
58
|
+
return (_jsx(Button, { type: "button", variant: variant, display: children ? DISPLAY.FULL : DISPLAY.COMPACT, icon: copied ? Check : Copy, onClick: handleCopy, tooltip: showTooltip ? (copied ? copiedTooltipText : tooltipText) : undefined, className: cn('dndev-copy-button-transition', copied && 'dndev-copy-button-scaled', className), "aria-label": ariaLabel || (copied ? 'Copied to clipboard' : 'Copy to clipboard'), ...buttonProps, children: children }));
|
|
59
59
|
};
|
|
60
60
|
export default CopyToClipboard;
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview DescriptionList component
|
|
5
5
|
* @description Semantic description list for key-value pairs, specifications, and metadata
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* @fileoverview Dialog component
|
|
5
5
|
* @description Accessible modal dialog component built on Radix UI primitives. Supports custom content sizes and actions.
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview DropdownMenu Primitive
|
|
5
5
|
* @description Low-level Radix UI dropdown menu wrapper, internal use only
|
|
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
|
*/
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
* Provides accessible, keyboard-navigable dropdown menus with DoNotDev theming,
|
|
7
7
|
* RTL support, and React 19 compatibility.
|
|
8
8
|
*
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.1
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview DualCard component
|
|
5
5
|
* @description Two-column card layout with vertical separator, responsive to single column on mobile
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Feature fallback component for unavailable features
|
|
5
5
|
* @description Generic fallback component that displays when features are not available, providing consistent UX across all feature packages. Includes a higher-order component wrapper for conditional feature rendering.
|
|
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
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview File Button Component
|
|
3
3
|
* @description Button component that triggers file input selection. Provides a styled button interface for file uploads.
|
|
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
|
*/
|
|
@@ -21,7 +21,7 @@ export interface FileButtonProps extends Omit<InputHTMLAttributes<HTMLInputEleme
|
|
|
21
21
|
*
|
|
22
22
|
* @param {FileButtonProps} props - Component props
|
|
23
23
|
* @returns {JSX.Element} File button component
|
|
24
|
-
* @version 0.0
|
|
24
|
+
* @version 0.1.0
|
|
25
25
|
* @since 0.0.1
|
|
26
26
|
* @author AMBROISE PARK Consulting
|
|
27
27
|
*/
|
|
@@ -29,7 +29,7 @@ declare const FileButton: ({ label, variant, className, asChild, onChange, ...in
|
|
|
29
29
|
/**
|
|
30
30
|
* Default export of file button component
|
|
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
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview File Button Component
|
|
5
5
|
* @description Button component that triggers file input selection. Provides a styled button interface for file uploads.
|
|
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
|
*/
|
|
@@ -20,7 +20,7 @@ import './FileButton.css';
|
|
|
20
20
|
*
|
|
21
21
|
* @param {FileButtonProps} props - Component props
|
|
22
22
|
* @returns {JSX.Element} File button component
|
|
23
|
-
* @version 0.0
|
|
23
|
+
* @version 0.1.0
|
|
24
24
|
* @since 0.0.1
|
|
25
25
|
* @author AMBROISE PARK Consulting
|
|
26
26
|
*/
|
|
@@ -37,7 +37,7 @@ const FileButton = ({ label = 'Upload', variant = 'primary', className, asChild
|
|
|
37
37
|
/**
|
|
38
38
|
* Default export of file button component
|
|
39
39
|
*
|
|
40
|
-
* @version 0.0
|
|
40
|
+
* @version 0.1.0
|
|
41
41
|
* @since 0.0.1
|
|
42
42
|
* @author AMBROISE PARK Consulting
|
|
43
43
|
*/
|