@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
package/dist/rsc.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Components package, React Server Components entry
|
|
3
|
+
* @description `@donotdev/components/rsc`: resolves only under the `react-server`
|
|
4
|
+
* export condition (Next's RSC graph); anywhere else the import fails to resolve.
|
|
5
|
+
* Nothing imports it yet: `@donotdev/components` itself stays `index.ts` everywhere.
|
|
6
|
+
*
|
|
7
|
+
* Same exports as `index.ts`, without its `'use client'`: presentational modules
|
|
8
|
+
* (Stack, Text, Grid, Button…) load as server components, and every interactive
|
|
9
|
+
* module keeps its own per-file `'use client'`, so a server component that renders it
|
|
10
|
+
* gets a client reference (an island). Values exported by a `'use client'` module
|
|
11
|
+
* (hooks, providers, helpers) are client references here: calling them on the server
|
|
12
|
+
* throws, which is the intended fail-loud.
|
|
13
|
+
*
|
|
14
|
+
* Keep in sync with `index.ts` (the entries test compares both export lists).
|
|
15
|
+
*
|
|
16
|
+
* @version 0.1.0
|
|
17
|
+
* @since 0.3.2
|
|
18
|
+
* @author AMBROISE PARK Consulting
|
|
19
|
+
*/
|
|
20
|
+
export * from './atomic';
|
|
21
|
+
export { default as Bento } from './advanced/Bento';
|
|
22
|
+
export type { BentoProps, BentoCellData, BentoGap, BentoColumns, } from './advanced/Bento';
|
|
23
|
+
export { default as Code } from './advanced/Code';
|
|
24
|
+
export type { CodeProps } from './advanced/Code';
|
|
25
|
+
export { default as JsonViewer } from './advanced/JsonViewer';
|
|
26
|
+
export type { JsonViewerProps } from './advanced/JsonViewer';
|
|
27
|
+
export { default as ImageGallery } from './advanced/ImageGallery';
|
|
28
|
+
export type { ImageGalleryProps, ImageData, ImageFit } from './advanced/ImageGallery';
|
|
29
|
+
export { default as Carousel } from './advanced/Carousel';
|
|
30
|
+
export type { CarouselProps, CarouselRef } from './advanced/Carousel';
|
|
31
|
+
export { default as Crawl } from './advanced/Crawl';
|
|
32
|
+
export type { CrawlProps } from './advanced/Crawl/Crawl';
|
|
33
|
+
export { default as Marquee } from './advanced/Marquee';
|
|
34
|
+
export type { MarqueeProps } from './advanced/Marquee/MarqueeContent';
|
|
35
|
+
export { default as Reveal } from './advanced/Reveal';
|
|
36
|
+
export type { RevealProps } from './advanced/Reveal/Reveal';
|
|
37
|
+
export { default as Roadmap } from './advanced/Roadmap';
|
|
38
|
+
export type { RoadmapProps, RoadmapStep } from './advanced/Roadmap';
|
|
39
|
+
export { default as SplitReveal } from './advanced/SplitReveal';
|
|
40
|
+
export type { SplitRevealProps, StatCardData } from './advanced/SplitReveal';
|
|
41
|
+
export { default as StackedCards } from './advanced/StackedCards';
|
|
42
|
+
export type { StackedCardsProps, StackedCardData, ResponsiveHeight, } from './advanced/StackedCards';
|
|
43
|
+
export * from './hooks';
|
|
44
|
+
export * from './styles';
|
|
45
|
+
export * from './types';
|
|
46
|
+
export * from './utils';
|
|
47
|
+
//# sourceMappingURL=rsc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rsc.d.ts","sourceRoot":"","sources":["../src/rsc.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,cAAc,UAAU,CAAC;AAGzB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EACV,UAAU,EACV,aAAa,EACb,QAAQ,EACR,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,iBAAiB,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAGjC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/rsc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./atomic/index.js";import{default as r}from"./advanced/Bento/index.js";import{default as p}from"./advanced/Code/index.js";import{default as f}from"./advanced/JsonViewer/index.js";import{default as m}from"./advanced/ImageGallery/index.js";import{default as x}from"./advanced/Carousel/index.js";import{default as u}from"./advanced/Crawl/index.js";import{default as C}from"./advanced/Marquee/index.js";import{default as y}from"./advanced/Reveal/index.js";import{default as P}from"./advanced/Roadmap/index.js";import{default as S}from"./advanced/SplitReveal/index.js";import{default as g}from"./advanced/StackedCards/index.js";export*from"./hooks/index.js";export*from"./styles/index.js";export*from"./types.js";export*from"./utils/index.js";export{r as Bento,x as Carousel,p as Code,u as Crawl,m as ImageGallery,f as JsonViewer,C as Marquee,y as Reveal,P as Roadmap,S as SplitReveal,g as StackedCards};
|
|
@@ -1,184 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Component Style Constants
|
|
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
|
-
*
|
|
6
|
-
* @version 0.1.0
|
|
7
|
-
* @since 0.0.1
|
|
8
|
-
* @author AMBROISE PARK Consulting
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Component class names defined in patterns.css
|
|
12
|
-
* Used for Tailwind safelist and IDE autocomplete
|
|
13
|
-
*/
|
|
14
|
-
export const componentClasses = {
|
|
15
|
-
// Interactive elements
|
|
16
|
-
srOnly: 'dndev-sr-only',
|
|
17
|
-
interactive: 'dndev-interactive',
|
|
18
|
-
control: 'dndev-control',
|
|
19
|
-
notification: 'dndev-notification',
|
|
20
|
-
// Form components
|
|
21
|
-
input: 'dndev-input',
|
|
22
|
-
// Container components
|
|
23
|
-
surface: 'dndev-surface',
|
|
24
|
-
overlay: 'dndev-overlay',
|
|
25
|
-
// Utility components
|
|
26
|
-
spinner: 'dndev-spinner',
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Essential utility classes that cannot be replaced by Stack/Grid components
|
|
30
|
-
* Only utilities that Stack/Grid don't cover (flex grow/shrink, visibility, height for modals, z-index)
|
|
31
|
-
*
|
|
32
|
-
* @version 0.1.0
|
|
33
|
-
* @since 0.0.1
|
|
34
|
-
* @author AMBROISE PARK Consulting
|
|
35
|
-
*/
|
|
36
|
-
export const essentialUtilities = {
|
|
37
|
-
// Flex utilities (not covered by Stack/Grid)
|
|
38
|
-
flex1: 'dndev-flex-1',
|
|
39
|
-
flexShrink0: 'dndev-flex-shrink-0',
|
|
40
|
-
// Visibility
|
|
41
|
-
hidden: 'dndev-hidden',
|
|
42
|
-
// Height utilities (for modals/dialogs - not layout)
|
|
43
|
-
hScreen: 'dndev-h-screen',
|
|
44
|
-
minHScreen: 'dndev-min-h-screen',
|
|
45
|
-
maxHScreen: 'dndev-max-h-screen',
|
|
46
|
-
h90: 'dndev-h-90',
|
|
47
|
-
minH90: 'dndev-min-h-90',
|
|
48
|
-
maxH90: 'dndev-max-h-90',
|
|
49
|
-
h80: 'dndev-h-80',
|
|
50
|
-
minH80: 'dndev-min-h-80',
|
|
51
|
-
maxH80: 'dndev-max-h-80',
|
|
52
|
-
h60: 'dndev-h-60',
|
|
53
|
-
minH60: 'dndev-min-h-60',
|
|
54
|
-
maxH60: 'dndev-max-h-60',
|
|
55
|
-
// Size utilities
|
|
56
|
-
sizeMd: 'dndev-size-md',
|
|
57
|
-
sizeTouch: 'dndev-size-touch',
|
|
58
|
-
// Z-index utilities (for layering - not layout)
|
|
59
|
-
zHeader: 'dndev-z-header',
|
|
60
|
-
zSidebar: 'dndev-z-sidebar',
|
|
61
|
-
zFooter: 'dndev-z-footer',
|
|
62
|
-
zOverlay: 'dndev-z-overlay',
|
|
63
|
-
zBreadcrumbs: 'dndev-z-breadcrumbs',
|
|
64
|
-
zDropdown: 'dndev-z-dropdown',
|
|
65
|
-
zModal: 'dndev-z-modal',
|
|
66
|
-
zTooltip: 'dndev-z-tooltip',
|
|
67
|
-
zToast: 'dndev-z-toast',
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Animation class names defined in animations.css and utilities.css
|
|
71
|
-
*
|
|
72
|
-
* @version 0.1.0
|
|
73
|
-
* @since 0.0.1
|
|
74
|
-
* @author AMBROISE PARK Consulting
|
|
75
|
-
*/
|
|
76
|
-
export const animationClasses = {
|
|
77
|
-
// Basic animations
|
|
78
|
-
spin: 'dndev-animate-spin',
|
|
79
|
-
pulse: 'dndev-animate-pulse',
|
|
80
|
-
bounce: 'dndev-animate-bounce',
|
|
81
|
-
fadeIn: 'dndev-animate-fade-in',
|
|
82
|
-
slideIn: 'dndev-animate-slide-in',
|
|
83
|
-
scaleIn: 'dndev-animate-scale-in',
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Debug utility class names defined in utilities.css
|
|
87
|
-
* Only active when --debug-enabled CSS variable is set to 1
|
|
88
|
-
*
|
|
89
|
-
* @version 0.1.0
|
|
90
|
-
* @since 0.0.1
|
|
91
|
-
* @author AMBROISE PARK Consulting
|
|
92
|
-
*/
|
|
93
|
-
export const debugClasses = {
|
|
94
|
-
layout: 'debug-layout',
|
|
95
|
-
flex: 'debug-flex',
|
|
96
|
-
component: 'debug-component',
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* CSS custom property names for programmatic access
|
|
100
|
-
*
|
|
101
|
-
* @version 0.1.0
|
|
102
|
-
* @since 0.0.1
|
|
103
|
-
* @author AMBROISE PARK Consulting
|
|
104
|
-
*/
|
|
105
|
-
export const cssVariables = {
|
|
106
|
-
// Interactive elements
|
|
107
|
-
touchTarget: '--touch-target',
|
|
108
|
-
iconMd: '--icon-md',
|
|
109
|
-
iconTouch: '--icon-touch',
|
|
110
|
-
// Border radius
|
|
111
|
-
radius: '--radius',
|
|
112
|
-
radiusNone: '--radius-none',
|
|
113
|
-
radiusMd: '--radius-md',
|
|
114
|
-
radiusFull: '--radius-full',
|
|
115
|
-
radiusInteractive: '--radius-interactive',
|
|
116
|
-
radiusSurface: '--radius-surface',
|
|
117
|
-
radiusFloating: '--radius-floating',
|
|
118
|
-
// Typography scale
|
|
119
|
-
fontSizeXs: '--font-size-xs',
|
|
120
|
-
fontSizeSm: '--font-size-sm',
|
|
121
|
-
fontSizeBase: '--font-size-base',
|
|
122
|
-
fontSizeLg: '--font-size-lg',
|
|
123
|
-
fontSizeXl: '--font-size-xl',
|
|
124
|
-
fontSize2xl: '--font-size-2xl',
|
|
125
|
-
fontSize3xl: '--font-size-3xl',
|
|
126
|
-
// Line height
|
|
127
|
-
lineHeight: '--line-height',
|
|
128
|
-
// Character limits
|
|
129
|
-
textMaxWidth: '--content-text',
|
|
130
|
-
// Elevation system - STREAMLINED (3 levels)
|
|
131
|
-
shadowSm: '--shadow-sm',
|
|
132
|
-
shadowMd: '--shadow-md',
|
|
133
|
-
shadowXl: '--shadow-xl',
|
|
134
|
-
shadowNone: '--shadow-none',
|
|
135
|
-
// Content-aware containers
|
|
136
|
-
contentText: '--content-text',
|
|
137
|
-
contentTable: '--content-table',
|
|
138
|
-
contentDashboard: '--content-dashboard',
|
|
139
|
-
// Gap system - 4 tiers only
|
|
140
|
-
gapNone: '--gap-none',
|
|
141
|
-
gapSm: '--gap-sm',
|
|
142
|
-
gapMd: '--gap-md',
|
|
143
|
-
gapLg: '--gap-lg',
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Gap variant constants - DRY single source of truth
|
|
147
|
-
* Used for gap/spacing props across all components
|
|
148
|
-
*
|
|
149
|
-
* @version 0.1.0
|
|
150
|
-
* @since 0.0.1
|
|
151
|
-
* @author AMBROISE PARK Consulting
|
|
152
|
-
*/
|
|
153
|
-
export const GAP_VARIANT = {
|
|
154
|
-
NONE: 'none',
|
|
155
|
-
TIGHT: 'tight',
|
|
156
|
-
MEDIUM: 'medium',
|
|
157
|
-
LARGE: 'large',
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Display variant constants - DRY single source of truth
|
|
161
|
-
* Used for display prop across UI/features components to control presentation in preset layouts
|
|
162
|
-
*
|
|
163
|
-
* @version 0.1.0
|
|
164
|
-
* @since 0.0.1
|
|
165
|
-
* @author AMBROISE PARK Consulting
|
|
166
|
-
*/
|
|
167
|
-
export const DISPLAY = {
|
|
168
|
-
COMPACT: 'compact',
|
|
169
|
-
FULL: 'full',
|
|
170
|
-
AUTO: 'auto',
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* Combined export of all classes for convenience
|
|
174
|
-
*
|
|
175
|
-
* @version 0.1.0
|
|
176
|
-
* @since 0.0.1
|
|
177
|
-
* @author AMBROISE PARK Consulting
|
|
178
|
-
*/
|
|
179
|
-
export const allClasses = {
|
|
180
|
-
...componentClasses,
|
|
181
|
-
...essentialUtilities,
|
|
182
|
-
...animationClasses,
|
|
183
|
-
...debugClasses,
|
|
184
|
-
};
|
|
1
|
+
var e={srOnly:"dndev-sr-only",interactive:"dndev-interactive",control:"dndev-control",notification:"dndev-notification",input:"dndev-input",surface:"dndev-surface",overlay:"dndev-overlay",spinner:"dndev-spinner"},n={flex1:"dndev-flex-1",flexShrink0:"dndev-flex-shrink-0",hidden:"dndev-hidden",hScreen:"dndev-h-screen",minHScreen:"dndev-min-h-screen",maxHScreen:"dndev-max-h-screen",h90:"dndev-h-90",minH90:"dndev-min-h-90",maxH90:"dndev-max-h-90",h80:"dndev-h-80",minH80:"dndev-min-h-80",maxH80:"dndev-max-h-80",h60:"dndev-h-60",minH60:"dndev-min-h-60",maxH60:"dndev-max-h-60",sizeMd:"dndev-size-md",sizeTouch:"dndev-size-touch",zHeader:"dndev-z-header",zSidebar:"dndev-z-sidebar",zFooter:"dndev-z-footer",zOverlay:"dndev-z-overlay",zBreadcrumbs:"dndev-z-breadcrumbs",zDropdown:"dndev-z-dropdown",zModal:"dndev-z-modal",zTooltip:"dndev-z-tooltip",zToast:"dndev-z-toast"},d={spin:"dndev-animate-spin",pulse:"dndev-animate-pulse",bounce:"dndev-animate-bounce",fadeIn:"dndev-animate-fade-in",slideIn:"dndev-animate-slide-in",scaleIn:"dndev-animate-scale-in"},o={layout:"debug-layout",flex:"debug-flex",component:"debug-component"},t={touchTarget:"--touch-target",iconMd:"--icon-md",iconTouch:"--icon-touch",radius:"--radius",radiusNone:"--radius-none",radiusMd:"--radius-md",radiusFull:"--radius-full",radiusInteractive:"--radius-interactive",radiusSurface:"--radius-surface",radiusFloating:"--radius-floating",fontSizeXs:"--font-size-xs",fontSizeSm:"--font-size-sm",fontSizeBase:"--font-size-base",fontSizeLg:"--font-size-lg",fontSizeXl:"--font-size-xl",fontSize2xl:"--font-size-2xl",fontSize3xl:"--font-size-3xl",lineHeight:"--line-height",textMaxWidth:"--content-text",shadowSm:"--shadow-sm",shadowMd:"--shadow-md",shadowXl:"--shadow-xl",shadowNone:"--shadow-none",contentText:"--content-text",contentTable:"--content-table",contentDashboard:"--content-dashboard",gapNone:"--gap-none",gapSm:"--gap-sm",gapMd:"--gap-md",gapLg:"--gap-lg"},a={NONE:"none",TIGHT:"tight",MEDIUM:"medium",LARGE:"large"},s={COMPACT:"compact",FULL:"full",AUTO:"auto"},i={...e,...n,...d,...o};export{s as DISPLAY,a as GAP_VARIANT,i as allClasses,d as animationClasses,e as componentClasses,t as cssVariables,o as debugClasses,n as essentialUtilities};
|
package/dist/styles/index.css
CHANGED
|
@@ -160,13 +160,17 @@
|
|
|
160
160
|
/* DRY: Default font for everything */
|
|
161
161
|
--font-family: var(--font-sans);
|
|
162
162
|
|
|
163
|
-
/* Sans-serif: Inter (2026 standard)
|
|
163
|
+
/* Sans-serif: Inter (2026 standard). '<Family> Fallback': size-matched local face
|
|
164
|
+
shown until the web font loads, so the swap shifts no layout (Next: defined in
|
|
165
|
+
public/dndev-fonts.css, see @donotdev/core config/fonts/fontFallback.js) */
|
|
164
166
|
--font-sans:
|
|
165
|
-
Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
166
|
-
Arial, sans-serif;
|
|
167
|
+
Inter, 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
168
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
167
169
|
|
|
168
170
|
/* Serif: Playfair Display (headlines) */
|
|
169
|
-
--font-serif:
|
|
171
|
+
--font-serif:
|
|
172
|
+
'Playfair Display', 'Playfair Display Fallback', Georgia, 'Times New Roman',
|
|
173
|
+
serif;
|
|
170
174
|
|
|
171
175
|
/* Headlines use sans by default (serif available for opt-in) */
|
|
172
176
|
--font-headline: var(--font-sans);
|
|
@@ -1219,7 +1223,9 @@ em {
|
|
|
1219
1223
|
var(--floating-glow-start) 100%
|
|
1220
1224
|
);
|
|
1221
1225
|
|
|
1222
|
-
|
|
1226
|
+
/* --floating-background: optional theme token, set on :root / theme class
|
|
1227
|
+
(e.g. var(--popover)) to flatten every floating surface. Unset = glow gradient. */
|
|
1228
|
+
background: var(--floating-background, var(--floating-glow-gradient));
|
|
1223
1229
|
color: var(--popover-foreground);
|
|
1224
1230
|
border: var(--border-hairline) solid var(--line-2);
|
|
1225
1231
|
border-radius: var(--radius-floating);
|
|
@@ -1251,11 +1257,14 @@ em {
|
|
|
1251
1257
|
background: var(--popover);
|
|
1252
1258
|
}
|
|
1253
1259
|
.dndev-floating:dir(rtl) {
|
|
1254
|
-
background:
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1260
|
+
background: var(
|
|
1261
|
+
--floating-background,
|
|
1262
|
+
linear-gradient(
|
|
1263
|
+
135deg,
|
|
1264
|
+
var(--floating-glow-start) 0%,
|
|
1265
|
+
var(--floating-glow-mid) 50%,
|
|
1266
|
+
var(--floating-glow-end) 100%
|
|
1267
|
+
)
|
|
1259
1268
|
);
|
|
1260
1269
|
}
|
|
1261
1270
|
/* Size variants - ONLY 3 sizes */
|
|
@@ -1745,7 +1754,7 @@ em {
|
|
|
1745
1754
|
font-size: var(--font-size-input);
|
|
1746
1755
|
color: var(--foreground);
|
|
1747
1756
|
cursor: pointer;
|
|
1748
|
-
transition: color var(--
|
|
1757
|
+
transition: color var(--dur-fast) var(--ease-in-out);
|
|
1749
1758
|
|
|
1750
1759
|
/* Subtle hover on label text */
|
|
1751
1760
|
}
|
|
@@ -3235,6 +3244,23 @@ em {
|
|
|
3235
3244
|
.dndev-calendar-day-hidden {
|
|
3236
3245
|
visibility: hidden;
|
|
3237
3246
|
}
|
|
3247
|
+
|
|
3248
|
+
/* LazyCalendar placeholder while the calendar chunk loads: the rendered calendar's
|
|
3249
|
+
size (caption + weekday row + 6 weeks of day cells, 7 columns), borders outside as
|
|
3250
|
+
on .dndev-calendar, so the popover neither resizes nor flips when it arrives */
|
|
3251
|
+
.dndev-calendar-fallback {
|
|
3252
|
+
box-sizing: content-box;
|
|
3253
|
+
width: calc(var(--touch-target) * 7);
|
|
3254
|
+
height: calc(var(--touch-target) * 8);
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
/* LazyCalendar error (calendar chunk failed to load), in the popover */
|
|
3258
|
+
.dndev-calendar-error {
|
|
3259
|
+
box-sizing: content-box;
|
|
3260
|
+
width: calc(var(--touch-target) * 7);
|
|
3261
|
+
padding: calc(var(--touch-target) / 4);
|
|
3262
|
+
color: var(--destructive-foreground);
|
|
3263
|
+
}
|
|
3238
3264
|
/* packages/components/src/atomic/DatePicker/DatePicker.css */
|
|
3239
3265
|
|
|
3240
3266
|
/**
|
|
@@ -5627,8 +5653,8 @@ em {
|
|
|
5627
5653
|
display: flex;
|
|
5628
5654
|
align-items: center;
|
|
5629
5655
|
justify-content: center;
|
|
5630
|
-
width:
|
|
5631
|
-
height:
|
|
5656
|
+
width: var(--touch-target);
|
|
5657
|
+
height: var(--touch-target);
|
|
5632
5658
|
border: none;
|
|
5633
5659
|
border-radius: var(--radius-full);
|
|
5634
5660
|
/* --card not --background: surface must be opaque */
|
|
@@ -6431,6 +6457,11 @@ input[type='number'] {
|
|
|
6431
6457
|
gap: var(--gap-none);
|
|
6432
6458
|
}
|
|
6433
6459
|
|
|
6460
|
+
/* Sub-menu lists: base.css gives every ul list-style disc */
|
|
6461
|
+
.dndev-nav-menu-grid-container {
|
|
6462
|
+
list-style: none;
|
|
6463
|
+
}
|
|
6464
|
+
|
|
6434
6465
|
/* Navigation trigger - NavigationMenu-specific styles only */
|
|
6435
6466
|
.dndev-interactive[data-role='nav-trigger'] {
|
|
6436
6467
|
height: var(--touch-target);
|
|
@@ -6442,6 +6473,12 @@ input[type='number'] {
|
|
|
6442
6473
|
background-color: rgb(from var(--accent) r g b / 0.5);
|
|
6443
6474
|
}
|
|
6444
6475
|
|
|
6476
|
+
/* Active page: top-level links, overflow dropdown links, sub-menu links */
|
|
6477
|
+
.dndev-interactive[data-role='menu-item'][data-active='true'],
|
|
6478
|
+
.dndev-nav-menu-item-container[data-active='true'] {
|
|
6479
|
+
background-color: rgb(from var(--accent) r g b / 0.5);
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6445
6482
|
.dndev-nav-menu-trigger-icon {
|
|
6446
6483
|
position: relative;
|
|
6447
6484
|
top: 1px;
|
|
@@ -8507,7 +8544,7 @@ input[type='number'] {
|
|
|
8507
8544
|
.dndev-swipe-action-content {
|
|
8508
8545
|
flex: 0 0 100%;
|
|
8509
8546
|
min-inline-size: 0;
|
|
8510
|
-
min-block-size:
|
|
8547
|
+
min-block-size: var(--touch-target);
|
|
8511
8548
|
scroll-snap-align: start;
|
|
8512
8549
|
background: var(--background);
|
|
8513
8550
|
}
|
|
@@ -8530,8 +8567,8 @@ input[type='number'] {
|
|
|
8530
8567
|
display: flex;
|
|
8531
8568
|
align-items: center;
|
|
8532
8569
|
justify-content: center;
|
|
8533
|
-
min-inline-size:
|
|
8534
|
-
min-block-size:
|
|
8570
|
+
min-inline-size: var(--touch-target);
|
|
8571
|
+
min-block-size: var(--touch-target);
|
|
8535
8572
|
border: 0;
|
|
8536
8573
|
font: inherit;
|
|
8537
8574
|
cursor: pointer;
|
|
@@ -9116,34 +9153,52 @@ input[type='number'] {
|
|
|
9116
9153
|
display: none;
|
|
9117
9154
|
}
|
|
9118
9155
|
|
|
9119
|
-
/*
|
|
9156
|
+
/* Collapsed: one square + at the inline end. Expanded: [ − qty + ].
|
|
9157
|
+
Rows are fixed in both states (no vertical shift); only the inline size animates,
|
|
9158
|
+
growing from the inline end toward the inline start. */
|
|
9120
9159
|
.dndev-quantity-stepper {
|
|
9121
|
-
--quantity-target:
|
|
9122
|
-
/*
|
|
9123
|
-
|
|
9124
|
-
--quantity-cell: max(
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
);
|
|
9160
|
+
--quantity-target: var(--touch-target);
|
|
9161
|
+
/* The cell IS the touch target: padding and icons fit inside it. State-independent,
|
|
9162
|
+
so the larger collapsed icon never changes the row; only enlarged text grows it. */
|
|
9163
|
+
--quantity-cell: max(var(--quantity-target), calc(1lh + 2 * var(--gap-sm)));
|
|
9164
|
+
/* Quantity field: three tabular digits plus breathing room. */
|
|
9165
|
+
--quantity-field: calc(3ch + var(--gap-sm));
|
|
9166
|
+
--quantity-square: calc(var(--quantity-cell) + 2 * var(--border-hairline));
|
|
9167
|
+
--quantity-expanded: calc(2 * var(--quantity-cell) + var(--quantity-field) + 2 * var(--border-hairline));
|
|
9128
9168
|
display: inline-grid;
|
|
9129
|
-
|
|
9169
|
+
/* − and the quantity shrink to nothing while collapsed or mid-transition; + is always one cell. */
|
|
9170
|
+
grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, var(--quantity-field)) var(--quantity-cell);
|
|
9130
9171
|
grid-template-rows: var(--quantity-cell);
|
|
9131
|
-
inline-size:
|
|
9132
|
-
min-inline-size:
|
|
9172
|
+
inline-size: var(--quantity-expanded);
|
|
9173
|
+
min-inline-size: var(--quantity-expanded);
|
|
9133
9174
|
border: var(--border-hairline) solid var(--border);
|
|
9134
9175
|
border-radius: var(--radius-interactive);
|
|
9135
9176
|
background: var(--interactive);
|
|
9136
9177
|
color: var(--foreground);
|
|
9178
|
+
transition:
|
|
9179
|
+
inline-size var(--dur-normal) var(--ease-in-out),
|
|
9180
|
+
min-inline-size var(--dur-normal) var(--ease-in-out);
|
|
9181
|
+
|
|
9182
|
+
/* A clickable quantity is a target of its own: keep it at the touch target. */
|
|
9137
9183
|
}
|
|
9184
|
+
.dndev-quantity-stepper:has( > button.dndev-quantity-stepper-value) {
|
|
9185
|
+
--quantity-field: max(var(--quantity-target), calc(3ch + var(--gap-sm)));
|
|
9186
|
+
}
|
|
9138
9187
|
.dndev-quantity-stepper[data-full-width] {
|
|
9139
9188
|
display: grid;
|
|
9189
|
+
grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, 1fr) var(--quantity-cell);
|
|
9140
9190
|
inline-size: 100%;
|
|
9191
|
+
/* The collapsed + sits at the inline end; resolves to zero once expanded. */
|
|
9192
|
+
margin-inline-start: auto;
|
|
9193
|
+
}
|
|
9194
|
+
.dndev-quantity-stepper[data-collapsed]:not([data-vertical]) {
|
|
9195
|
+
inline-size: var(--quantity-square);
|
|
9196
|
+
min-inline-size: var(--quantity-square);
|
|
9141
9197
|
}
|
|
9142
9198
|
.dndev-quantity-stepper[data-disabled] {
|
|
9143
9199
|
opacity: 0.6;
|
|
9144
9200
|
}
|
|
9145
9201
|
.dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
|
|
9146
|
-
min-inline-size: var(--quantity-target);
|
|
9147
9202
|
min-block-size: var(--quantity-target);
|
|
9148
9203
|
border: none;
|
|
9149
9204
|
border-radius: inherit;
|
|
@@ -9165,9 +9220,10 @@ input[type='number'] {
|
|
|
9165
9220
|
display: flex;
|
|
9166
9221
|
align-items: center;
|
|
9167
9222
|
justify-content: center;
|
|
9168
|
-
|
|
9223
|
+
/* The cell is the target: the icon centres inside it. */
|
|
9224
|
+
padding: 0;
|
|
9169
9225
|
cursor: pointer;
|
|
9170
|
-
transition: background-color var(--
|
|
9226
|
+
transition: background-color var(--dur-fast) var(--ease-in-out);
|
|
9171
9227
|
/* Press-and-hold repeats: no text selection or touch callout on long press. */
|
|
9172
9228
|
-moz-user-select: none;
|
|
9173
9229
|
user-select: none;
|
|
@@ -9178,9 +9234,20 @@ input[type='number'] {
|
|
|
9178
9234
|
background: var(--muted);
|
|
9179
9235
|
}
|
|
9180
9236
|
:is(.dndev-quantity-stepper > button) > svg {
|
|
9237
|
+
flex-shrink: 0;
|
|
9181
9238
|
inline-size: var(--icon-md);
|
|
9182
9239
|
block-size: var(--icon-md);
|
|
9183
9240
|
}
|
|
9241
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9242
|
+
min-inline-size: 0;
|
|
9243
|
+
/* Clips the icon/digits while the track is narrower than them. The focus ring is
|
|
9244
|
+
the element's own box-shadow, outside its box, so it is never clipped. */
|
|
9245
|
+
overflow: hidden;
|
|
9246
|
+
transition:
|
|
9247
|
+
opacity var(--dur-normal) var(--ease-in-out),
|
|
9248
|
+
visibility var(--dur-normal) var(--ease-in-out),
|
|
9249
|
+
background-color var(--dur-fast) var(--ease-in-out);
|
|
9250
|
+
}
|
|
9184
9251
|
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
|
|
9185
9252
|
grid-area: 1 / 1;
|
|
9186
9253
|
}
|
|
@@ -9189,12 +9256,13 @@ input[type='number'] {
|
|
|
9189
9256
|
}
|
|
9190
9257
|
.dndev-quantity-stepper > .dndev-quantity-stepper-increment {
|
|
9191
9258
|
grid-area: 1 / 3;
|
|
9259
|
+
min-inline-size: var(--quantity-target);
|
|
9192
9260
|
}
|
|
9193
9261
|
.dndev-quantity-stepper[data-vertical] {
|
|
9194
9262
|
grid-template-columns: minmax(var(--quantity-cell), 1fr);
|
|
9195
9263
|
grid-template-rows: repeat(3, var(--quantity-cell));
|
|
9196
|
-
inline-size: var(--quantity-
|
|
9197
|
-
min-inline-size: var(--quantity-
|
|
9264
|
+
inline-size: var(--quantity-square);
|
|
9265
|
+
min-inline-size: var(--quantity-square);
|
|
9198
9266
|
}
|
|
9199
9267
|
.dndev-quantity-stepper[data-vertical][data-full-width] {
|
|
9200
9268
|
inline-size: 100%;
|
|
@@ -9210,15 +9278,17 @@ input[type='number'] {
|
|
|
9210
9278
|
}
|
|
9211
9279
|
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
|
|
9212
9280
|
visibility: hidden;
|
|
9281
|
+
opacity: 0;
|
|
9213
9282
|
pointer-events: none;
|
|
9214
9283
|
}
|
|
9215
|
-
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9216
|
-
|
|
9284
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment > svg {
|
|
9285
|
+
inline-size: calc(var(--quantity-target) * 0.6);
|
|
9286
|
+
block-size: calc(var(--quantity-target) * 0.6);
|
|
9217
9287
|
}
|
|
9218
|
-
:
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9288
|
+
/* Vertical keeps its stacked footprint: the collapsed + spans all three cells. */
|
|
9289
|
+
.dndev-quantity-stepper[data-vertical][data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9290
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
9291
|
+
}
|
|
9222
9292
|
|
|
9223
9293
|
.dndev-quantity-stepper-value {
|
|
9224
9294
|
box-sizing: border-box;
|
|
@@ -9227,7 +9297,7 @@ input[type='number'] {
|
|
|
9227
9297
|
justify-content: center;
|
|
9228
9298
|
inline-size: 100%;
|
|
9229
9299
|
min-inline-size: 0;
|
|
9230
|
-
padding-inline:
|
|
9300
|
+
padding-inline: 0;
|
|
9231
9301
|
border: none;
|
|
9232
9302
|
background: none;
|
|
9233
9303
|
color: inherit;
|
|
@@ -9235,11 +9305,13 @@ input[type='number'] {
|
|
|
9235
9305
|
font-weight: var(--font-weight-medium);
|
|
9236
9306
|
font-variant-numeric: tabular-nums;
|
|
9237
9307
|
text-align: center;
|
|
9238
|
-
|
|
9239
9308
|
}
|
|
9240
9309
|
|
|
9241
9310
|
@media (prefers-reduced-motion: reduce) {
|
|
9242
|
-
.dndev-quantity-stepper
|
|
9311
|
+
.dndev-quantity-stepper,
|
|
9312
|
+
.dndev-quantity-stepper > button,
|
|
9313
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement,
|
|
9314
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9243
9315
|
transition: none;
|
|
9244
9316
|
}
|
|
9245
9317
|
}
|
package/dist/styles/index.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Component Styles Barrel Exports
|
|
4
|
-
* @description Barrel exports for component style constants and utilities.
|
|
5
|
-
*
|
|
6
|
-
* @version 0.1.0
|
|
7
|
-
* @since 0.0.1
|
|
8
|
-
* @author AMBROISE PARK Consulting
|
|
9
|
-
*/
|
|
10
|
-
export { componentClasses, essentialUtilities, animationClasses, debugClasses, cssVariables, DISPLAY, allClasses, } from './componentConstants';
|
|
1
|
+
import{componentClasses as a,essentialUtilities as l,animationClasses as i,debugClasses as t,cssVariables as n,DISPLAY as o,allClasses as C}from"./componentConstants.js";export{o as DISPLAY,C as allClasses,i as animationClasses,a as componentClasses,n as cssVariables,t as debugClasses,l as essentialUtilities};
|