@tenerife.music/ui 1.0.8 → 1.0.12
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/{tokens/colors.d.ts → colors-DPNI96bB.d.cts} +21 -19
- package/dist/colors-DPNI96bB.d.ts +289 -0
- package/dist/index.cjs +15605 -2
- package/dist/index.d.cts +3726 -0
- package/dist/index.d.ts +3726 -39
- package/dist/index.mjs +12883 -5567
- package/dist/preset.cjs +1264 -2
- package/dist/preset.d.cts +21 -0
- package/dist/preset.d.ts +3 -1
- package/dist/preset.mjs +1165 -95
- package/dist/styles.cjs +2 -2
- package/dist/styles.css +87 -1
- package/dist/styles.d.cts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.mjs +1 -1
- package/dist/theme/index.cjs +2647 -2
- package/dist/theme/index.d.cts +528 -0
- package/dist/theme/index.d.ts +528 -8
- package/dist/theme/index.mjs +1610 -575
- package/dist/tokens/index.cjs +5678 -5
- package/dist/tokens/index.d.cts +5488 -0
- package/dist/tokens/index.d.ts +5488 -9
- package/dist/tokens/index.mjs +2076 -154
- package/package.json +3 -3
- package/dist/animation/index.d.ts +0 -8
- package/dist/animation/presets.d.ts +0 -301
- package/dist/animation/tas.d.ts +0 -24
- package/dist/animation/types.d.ts +0 -67
- package/dist/animation/useInView.d.ts +0 -36
- package/dist/animation/utils.d.ts +0 -6
- package/dist/brand-C5R2semX.js +0 -45
- package/dist/brand-DQb18Frh.cjs +0 -2
- package/dist/components/SectionBuilder.d.ts +0 -36
- package/dist/components/SectionBuilder.presets.d.ts +0 -228
- package/dist/components/SectionBuilder.types.d.ts +0 -326
- package/dist/components/admin/Dashboard.d.ts +0 -8
- package/dist/components/admin/UserManagement.d.ts +0 -8
- package/dist/components/auth/LoginForm.d.ts +0 -11
- package/dist/components/auth/ProfileCard.d.ts +0 -9
- package/dist/components/auth/RegisterForm.d.ts +0 -13
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts +0 -22
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts +0 -46
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts +0 -83
- package/dist/components/cards/ArtistCard/index.d.ts +0 -8
- package/dist/components/cards/CardBase/CardBase.d.ts +0 -45
- package/dist/components/cards/CardBase/CardBase.types.d.ts +0 -70
- package/dist/components/cards/CardBase/CardBase.variants.d.ts +0 -38
- package/dist/components/cards/CardBase/index.d.ts +0 -8
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts +0 -18
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts +0 -38
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts +0 -21
- package/dist/components/cards/CategoryCard/index.d.ts +0 -7
- package/dist/components/cards/EventCard/EventCard.d.ts +0 -19
- package/dist/components/cards/EventCard/EventCard.types.d.ts +0 -47
- package/dist/components/cards/EventCard/EventCard.variants.d.ts +0 -70
- package/dist/components/cards/EventCard/index.d.ts +0 -7
- package/dist/components/cards/PromoCard/PromoCard.d.ts +0 -20
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts +0 -42
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts +0 -35
- package/dist/components/cards/PromoCard/index.d.ts +0 -7
- package/dist/components/cards/TicketCard/TicketCard.d.ts +0 -19
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts +0 -55
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts +0 -71
- package/dist/components/cards/TicketCard/index.d.ts +0 -7
- package/dist/components/cards/VenueCard/VenueCard.d.ts +0 -21
- package/dist/components/cards/VenueCard/VenueCard.types.d.ts +0 -46
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts +0 -60
- package/dist/components/cards/VenueCard/index.d.ts +0 -8
- package/dist/components/cards/index.d.ts +0 -19
- package/dist/components/checkbox/Checkbox.d.ts +0 -22
- package/dist/components/checkbox/Checkbox.types.d.ts +0 -68
- package/dist/components/checkbox/checkbox-variants.d.ts +0 -13
- package/dist/components/checkbox/index.d.ts +0 -3
- package/dist/components/containers/Card.d.ts +0 -75
- package/dist/components/containers/Section.d.ts +0 -31
- package/dist/components/containers/Surface.d.ts +0 -28
- package/dist/components/containers/index.d.ts +0 -9
- package/dist/components/controls/LanguageSelector.d.ts +0 -17
- package/dist/components/data/List.d.ts +0 -12
- package/dist/components/data/Table.d.ts +0 -14
- package/dist/components/data/Timeline.d.ts +0 -13
- package/dist/components/data/data-list/DataList.d.ts +0 -29
- package/dist/components/data/data-list/DataList.types.d.ts +0 -43
- package/dist/components/data/data-list/DataListItem.d.ts +0 -20
- package/dist/components/data/data-list/DataListLabel.d.ts +0 -19
- package/dist/components/data/data-list/DataListValue.d.ts +0 -18
- package/dist/components/data/data-list/index.d.ts +0 -10
- package/dist/components/data/empty-state/EmptyState.d.ts +0 -31
- package/dist/components/data/empty-state/EmptyState.types.d.ts +0 -51
- package/dist/components/data/empty-state/EmptyStateAction.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts +0 -22
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts +0 -17
- package/dist/components/data/empty-state/index.d.ts +0 -10
- package/dist/components/data/index.d.ts +0 -9
- package/dist/components/data/skeleton/Skeleton.d.ts +0 -24
- package/dist/components/data/skeleton/Skeleton.types.d.ts +0 -12
- package/dist/components/data/skeleton/index.d.ts +0 -6
- package/dist/components/data/table/Table.d.ts +0 -33
- package/dist/components/data/table/Table.types.d.ts +0 -264
- package/dist/components/data/table/TableBody.d.ts +0 -13
- package/dist/components/data/table/TableCell.d.ts +0 -13
- package/dist/components/data/table/TableEmpty.d.ts +0 -13
- package/dist/components/data/table/TableExpandableContent.d.ts +0 -14
- package/dist/components/data/table/TableHead.d.ts +0 -13
- package/dist/components/data/table/TableHeader.d.ts +0 -13
- package/dist/components/data/table/TableLoadingState.d.ts +0 -13
- package/dist/components/data/table/TableRow.d.ts +0 -13
- package/dist/components/data/table/TableSortIcon.d.ts +0 -14
- package/dist/components/data/table/index.d.ts +0 -17
- package/dist/components/drawer/Drawer.d.ts +0 -41
- package/dist/components/drawer/Drawer.types.d.ts +0 -75
- package/dist/components/drawer/drawer-variants.d.ts +0 -17
- package/dist/components/drawer/index.d.ts +0 -8
- package/dist/components/dropdown/Dropdown.d.ts +0 -38
- package/dist/components/dropdown/Dropdown.types.d.ts +0 -82
- package/dist/components/dropdown/dropdown-variants.d.ts +0 -33
- package/dist/components/feedback/ConsentBanner.d.ts +0 -8
- package/dist/components/feedback/Progress.d.ts +0 -8
- package/dist/components/feedback/Skeleton.d.ts +0 -6
- package/dist/components/filters/DateRangePicker.d.ts +0 -21
- package/dist/components/filters/FilterBar.d.ts +0 -55
- package/dist/components/filters/FilterSelect.d.ts +0 -23
- package/dist/components/filters/PriceRangeSlider.d.ts +0 -27
- package/dist/components/filters/SearchFilters.d.ts +0 -32
- package/dist/components/filters/SearchInput.d.ts +0 -16
- package/dist/components/filters/types.d.ts +0 -48
- package/dist/components/icon/Icon.d.ts +0 -32
- package/dist/components/icon/Icon.types.d.ts +0 -7
- package/dist/components/icon/index.d.ts +0 -4
- package/dist/components/icons/TrendingIcon.d.ts +0 -6
- package/dist/components/image/Image.d.ts +0 -48
- package/dist/components/input/Input.d.ts +0 -20
- package/dist/components/input/Input.types.d.ts +0 -38
- package/dist/components/input/index.d.ts +0 -3
- package/dist/components/input/input-variants.d.ts +0 -14
- package/dist/components/input/legacy/input.d.ts +0 -11
- package/dist/components/layout/Box.d.ts +0 -111
- package/dist/components/layout/Column.d.ts +0 -6
- package/dist/components/layout/Container.d.ts +0 -31
- package/dist/components/layout/Flex.d.ts +0 -50
- package/dist/components/layout/Footer.d.ts +0 -9
- package/dist/components/layout/Grid.d.ts +0 -60
- package/dist/components/layout/ModeHero.d.ts +0 -10
- package/dist/components/layout/Navbar.d.ts +0 -9
- package/dist/components/layout/Row.d.ts +0 -28
- package/dist/components/layout/Section.d.ts +0 -10
- package/dist/components/layout/Stack.d.ts +0 -38
- package/dist/components/layout/Surface.d.ts +0 -21
- package/dist/components/layout/index.d.ts +0 -22
- package/dist/components/layout/layout.types.d.ts +0 -107
- package/dist/components/menus/DropdownMenu.d.ts +0 -27
- package/dist/components/menus/NavigationMenu.d.ts +0 -12
- package/dist/components/menus/Tabs.d.ts +0 -7
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts +0 -22
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts +0 -47
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts +0 -16
- package/dist/components/menus/context-menu/index.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts +0 -15
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts +0 -30
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts +0 -17
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts +0 -24
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts +0 -33
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts +0 -10
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts +0 -14
- package/dist/components/menus/dropdown/index.d.ts +0 -18
- package/dist/components/menus/hover-card/HoverCardContent.d.ts +0 -14
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts +0 -20
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts +0 -13
- package/dist/components/menus/hover-card/index.d.ts +0 -8
- package/dist/components/menus/index.d.ts +0 -9
- package/dist/components/menus/popover/PopoverArrow.d.ts +0 -17
- package/dist/components/menus/popover/PopoverContent.d.ts +0 -24
- package/dist/components/menus/popover/PopoverRoot.d.ts +0 -43
- package/dist/components/menus/popover/PopoverTrigger.d.ts +0 -17
- package/dist/components/menus/popover/index.d.ts +0 -9
- package/dist/components/modal/Modal.d.ts +0 -70
- package/dist/components/modal/modal-variants.d.ts +0 -26
- package/dist/components/modals/ConfirmDialog.d.ts +0 -27
- package/dist/components/modals/CustomDialog.d.ts +0 -10
- package/dist/components/modals/Modal.d.ts +0 -19
- package/dist/components/modals/ModalProvider.d.ts +0 -16
- package/dist/components/modals/SimpleModal.d.ts +0 -11
- package/dist/components/navigation/Breadcrumbs.d.ts +0 -12
- package/dist/components/navigation/Pagination.d.ts +0 -10
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +0 -52
- package/dist/components/navigation/breadcrumbs/index.d.ts +0 -5
- package/dist/components/navigation/index.d.ts +0 -10
- package/dist/components/navigation/pagination/Pagination.d.ts +0 -60
- package/dist/components/navigation/pagination/index.d.ts +0 -5
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts +0 -43
- package/dist/components/navigation/segmented-control/index.d.ts +0 -5
- package/dist/components/navigation/stepper/Stepper.d.ts +0 -129
- package/dist/components/navigation/stepper/index.d.ts +0 -5
- package/dist/components/navigation/tabs/Tabs.d.ts +0 -73
- package/dist/components/navigation/tabs/index.d.ts +0 -5
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts +0 -21
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts +0 -23
- package/dist/components/notifications/NotificationCenter.Item.d.ts +0 -24
- package/dist/components/notifications/NotificationCenter.List.d.ts +0 -22
- package/dist/components/notifications/NotificationCenter.Panel.d.ts +0 -32
- package/dist/components/notifications/NotificationCenter.Provider.d.ts +0 -31
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts +0 -15
- package/dist/components/notifications/NotificationCenter.d.ts +0 -27
- package/dist/components/notifications/NotificationCenter.types.d.ts +0 -89
- package/dist/components/notifications/index.d.ts +0 -23
- package/dist/components/notifications/useNotificationCenter.d.ts +0 -47
- package/dist/components/overlays/Backdrop.d.ts +0 -24
- package/dist/components/overlays/Dialog.d.ts +0 -66
- package/dist/components/overlays/Modal.d.ts +0 -60
- package/dist/components/overlays/OverlayPortal.d.ts +0 -22
- package/dist/components/overlays/Popover.d.ts +0 -30
- package/dist/components/overlays/Portal.d.ts +0 -29
- package/dist/components/overlays/Toast.d.ts +0 -36
- package/dist/components/overlays/ToastProvider.d.ts +0 -58
- package/dist/components/overlays/ToastViewport.d.ts +0 -27
- package/dist/components/overlays/Tooltip.d.ts +0 -28
- package/dist/components/overlays/index.d.ts +0 -13
- package/dist/components/overlays/utils/FocusLock.d.ts +0 -30
- package/dist/components/overlays/utils/ScrollLock.d.ts +0 -11
- package/dist/components/overlays/utils/positioning.d.ts +0 -68
- package/dist/components/primitives/Badge.d.ts +0 -9
- package/dist/components/primitives/Button.d.ts +0 -1
- package/dist/components/primitives/Card.d.ts +0 -1
- package/dist/components/primitives/Divider.d.ts +0 -7
- package/dist/components/primitives/Input.d.ts +0 -4
- package/dist/components/primitives/Label.d.ts +0 -1
- package/dist/components/primitives/Link.d.ts +0 -13
- package/dist/components/primitives/ThemeSwitch.d.ts +0 -9
- package/dist/components/radio/Radio.d.ts +0 -23
- package/dist/components/radio/Radio.types.d.ts +0 -63
- package/dist/components/radio/RadioGroup.d.ts +0 -20
- package/dist/components/radio/RadioGroup.types.d.ts +0 -61
- package/dist/components/radio/index.d.ts +0 -5
- package/dist/components/radio/radio-variants.d.ts +0 -13
- package/dist/components/search/SearchBar.d.ts +0 -10
- package/dist/components/sections/ArticlesSection.d.ts +0 -25
- package/dist/components/sections/CTASection.d.ts +0 -37
- package/dist/components/sections/FeatureSection.d.ts +0 -33
- package/dist/components/sections/HeroSection.d.ts +0 -27
- package/dist/components/sections/TrendingSection.d.ts +0 -28
- package/dist/components/select/Select.d.ts +0 -38
- package/dist/components/select/Select.types.d.ts +0 -107
- package/dist/components/select/index.d.ts +0 -5
- package/dist/components/select/legacy/select.d.ts +0 -11
- package/dist/components/select/select-variants.d.ts +0 -32
- package/dist/components/skeletons/EventCardSkeleton.d.ts +0 -6
- package/dist/components/skeletons/VenueCardSkeleton.d.ts +0 -6
- package/dist/components/switch/Switch.d.ts +0 -24
- package/dist/components/switch/Switch.types.d.ts +0 -53
- package/dist/components/switch/index.d.ts +0 -3
- package/dist/components/switch/switch-variants.d.ts +0 -34
- package/dist/components/textarea/Textarea.d.ts +0 -21
- package/dist/components/textarea/Textarea.types.d.ts +0 -40
- package/dist/components/textarea/index.d.ts +0 -3
- package/dist/components/textarea/legacy/textarea.d.ts +0 -11
- package/dist/components/textarea/textarea-variants.d.ts +0 -14
- package/dist/components/toasts/Toast.d.ts +0 -12
- package/dist/components/toasts/ToastProvider.d.ts +0 -26
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/body.d.ts +0 -12
- package/dist/components/ui/button.d.ts +0 -13
- package/dist/components/ui/caption.d.ts +0 -11
- package/dist/components/ui/card.d.ts +0 -8
- package/dist/components/ui/code.d.ts +0 -11
- package/dist/components/ui/dialog.d.ts +0 -19
- package/dist/components/ui/display.d.ts +0 -12
- package/dist/components/ui/field.d.ts +0 -45
- package/dist/components/ui/heading.d.ts +0 -12
- package/dist/components/ui/label.d.ts +0 -12
- package/dist/components/ui/lead.d.ts +0 -11
- package/dist/components/ui/text.d.ts +0 -18
- package/dist/components/ui/toast.d.ts +0 -15
- package/dist/components/ui/toaster.d.ts +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/dark-Cvoy1uFT.js +0 -30
- package/dist/dark-OOhiqt1q.cjs +0 -2
- package/dist/default-BKgH1D9-.js +0 -8
- package/dist/default-Ddg7Haf2.cjs +0 -2
- package/dist/hooks/use-toast.d.ts +0 -44
- package/dist/hooks/useDebounce.d.ts +0 -19
- package/dist/hooks/useModal.d.ts +0 -19
- package/dist/hooks/useToast.d.ts +0 -26
- package/dist/icons/IconArrowRight.d.ts +0 -6
- package/dist/icons/IconCalendar.d.ts +0 -6
- package/dist/icons/IconCheck.d.ts +0 -6
- package/dist/icons/IconChevronDown.d.ts +0 -6
- package/dist/icons/IconChevronRight.d.ts +0 -6
- package/dist/icons/IconClose.d.ts +0 -6
- package/dist/icons/IconError.d.ts +0 -6
- package/dist/icons/IconInfo.d.ts +0 -6
- package/dist/icons/IconLocation.d.ts +0 -6
- package/dist/icons/IconMenu.d.ts +0 -6
- package/dist/icons/IconSearch.d.ts +0 -6
- package/dist/icons/IconSuccess.d.ts +0 -6
- package/dist/icons/IconWarning.d.ts +0 -6
- package/dist/icons/icon.types.d.ts +0 -25
- package/dist/icons/index.d.ts +0 -34
- package/dist/lib/a11y.d.ts +0 -15
- package/dist/lib/responsive-props.d.ts +0 -63
- package/dist/lib/utils.d.ts +0 -8
- package/dist/motion-CzQhSEqk.js +0 -738
- package/dist/motion-DJx1TbXJ.cjs +0 -2
- package/dist/theme/ThemeProvider.d.ts +0 -55
- package/dist/theme/applyMode.d.ts +0 -42
- package/dist/theme/colors.d.ts +0 -6
- package/dist/theme/loader.d.ts +0 -63
- package/dist/theme/motion/gestures.d.ts +0 -76
- package/dist/theme/motion/useReducedMotion.d.ts +0 -11
- package/dist/theme/motion.d.ts +0 -127
- package/dist/theme/registry.d.ts +0 -70
- package/dist/theme/schema.d.ts +0 -124
- package/dist/theme/spacing.d.ts +0 -34
- package/dist/theme/typography.d.ts +0 -45
- package/dist/themes/brand.d.ts +0 -6
- package/dist/themes/brand_engine.d.ts +0 -108
- package/dist/themes/dark.d.ts +0 -6
- package/dist/themes/default.d.ts +0 -6
- package/dist/themes/index.d.ts +0 -24
- package/dist/themes/minimal.d.ts +0 -6
- package/dist/themes/neon.d.ts +0 -6
- package/dist/themes/types.d.ts +0 -278
- package/dist/tokens/components/alert.d.ts +0 -74
- package/dist/tokens/components/button.d.ts +0 -130
- package/dist/tokens/components/card.d.ts +0 -91
- package/dist/tokens/components/checkbox.d.ts +0 -161
- package/dist/tokens/components/data.d.ts +0 -227
- package/dist/tokens/components/domain.d.ts +0 -379
- package/dist/tokens/components/dropdown.d.ts +0 -146
- package/dist/tokens/components/icon.d.ts +0 -57
- package/dist/tokens/components/index.d.ts +0 -31
- package/dist/tokens/components/input.d.ts +0 -284
- package/dist/tokens/components/menu.d.ts +0 -114
- package/dist/tokens/components/motion.d.ts +0 -103
- package/dist/tokens/components/navigation.d.ts +0 -181
- package/dist/tokens/components/notifications.d.ts +0 -159
- package/dist/tokens/components/overlay.d.ts +0 -227
- package/dist/tokens/components/popover.d.ts +0 -84
- package/dist/tokens/components/radio.d.ts +0 -149
- package/dist/tokens/components/section.d.ts +0 -41
- package/dist/tokens/components/surface.d.ts +0 -94
- package/dist/tokens/components/switch.d.ts +0 -208
- package/dist/tokens/components/text.d.ts +0 -68
- package/dist/tokens/components/toast.d.ts +0 -146
- package/dist/tokens/components/tooltip.d.ts +0 -52
- package/dist/tokens/css-variables.d.ts +0 -251
- package/dist/tokens/motion/v2.d.ts +0 -342
- package/dist/tokens/motion.d.ts +0 -485
- package/dist/tokens/opacity.d.ts +0 -22
- package/dist/tokens/radius.d.ts +0 -161
- package/dist/tokens/shadows.d.ts +0 -230
- package/dist/tokens/spacing.d.ts +0 -238
- package/dist/tokens/theme.d.ts +0 -119
- package/dist/tokens/typography.d.ts +0 -460
- package/dist/typography-C-Nb4y0o.cjs +0 -2
- package/dist/typography-DHym9KAP.js +0 -1196
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { GridLayoutConfig, SectionBuilderConfig, SectionSlotValue, SplitLayoutConfig, StackedLayoutConfig } from './SectionBuilder.types';
|
|
2
|
-
/**
|
|
3
|
-
* SectionBuilder Presets
|
|
4
|
-
*
|
|
5
|
-
* Pre-configured layout patterns for common section types.
|
|
6
|
-
* These presets can be used directly or as starting points for customization.
|
|
7
|
-
*/
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
/**
|
|
10
|
-
* Split Layout Preset Props
|
|
11
|
-
*/
|
|
12
|
-
export interface SplitLayoutPresetProps {
|
|
13
|
-
/**
|
|
14
|
-
* Left content area
|
|
15
|
-
*/
|
|
16
|
-
left: SectionSlotValue;
|
|
17
|
-
/**
|
|
18
|
-
* Right content area (optional if media is provided)
|
|
19
|
-
*/
|
|
20
|
-
right?: SectionSlotValue;
|
|
21
|
-
/**
|
|
22
|
-
* Media content (image/video)
|
|
23
|
-
*/
|
|
24
|
-
media?: SectionSlotValue;
|
|
25
|
-
/**
|
|
26
|
-
* Image position
|
|
27
|
-
* @default "right"
|
|
28
|
-
*/
|
|
29
|
-
imagePosition?: "left" | "right";
|
|
30
|
-
/**
|
|
31
|
-
* Gap between content areas
|
|
32
|
-
* @default "xl"
|
|
33
|
-
*/
|
|
34
|
-
gap?: SplitLayoutConfig["gap"];
|
|
35
|
-
/**
|
|
36
|
-
* Alignment of items
|
|
37
|
-
* @default "center"
|
|
38
|
-
*/
|
|
39
|
-
align?: SplitLayoutConfig["align"];
|
|
40
|
-
/**
|
|
41
|
-
* Background configuration
|
|
42
|
-
*/
|
|
43
|
-
background?: SectionBuilderConfig["background"];
|
|
44
|
-
/**
|
|
45
|
-
* Spacing configuration
|
|
46
|
-
*/
|
|
47
|
-
spacing?: SectionBuilderConfig["spacing"];
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Create a split layout configuration
|
|
51
|
-
*
|
|
52
|
-
* Left/right content areas with optional image positioning.
|
|
53
|
-
* Responsive: stacks vertically on mobile.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```tsx
|
|
57
|
-
* <SectionBuilder
|
|
58
|
-
* config={createSplitLayoutConfig({
|
|
59
|
-
* left: "Left content",
|
|
60
|
-
* right: "Right content",
|
|
61
|
-
* media: <img src="..." />,
|
|
62
|
-
* imagePosition: "right",
|
|
63
|
-
* })}
|
|
64
|
-
* />
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
export declare function createSplitLayoutConfig(props: SplitLayoutPresetProps): SectionBuilderConfig;
|
|
68
|
-
/**
|
|
69
|
-
* Feature Item for Feature Grid
|
|
70
|
-
*/
|
|
71
|
-
export interface FeatureItem {
|
|
72
|
-
/**
|
|
73
|
-
* Icon or visual element
|
|
74
|
-
*/
|
|
75
|
-
icon?: React.ReactNode;
|
|
76
|
-
/**
|
|
77
|
-
* Feature title
|
|
78
|
-
*/
|
|
79
|
-
title: string;
|
|
80
|
-
/**
|
|
81
|
-
* Feature description
|
|
82
|
-
*/
|
|
83
|
-
description: string;
|
|
84
|
-
/**
|
|
85
|
-
* Optional custom content
|
|
86
|
-
*/
|
|
87
|
-
content?: React.ReactNode;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Feature Grid Preset Props
|
|
91
|
-
*/
|
|
92
|
-
export interface FeatureGridPresetProps {
|
|
93
|
-
/**
|
|
94
|
-
* Array of feature items
|
|
95
|
-
*/
|
|
96
|
-
features: FeatureItem[];
|
|
97
|
-
/**
|
|
98
|
-
* Section title (optional)
|
|
99
|
-
*/
|
|
100
|
-
title?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Section description (optional)
|
|
103
|
-
*/
|
|
104
|
-
description?: string;
|
|
105
|
-
/**
|
|
106
|
-
* Number of columns
|
|
107
|
-
* @default 3
|
|
108
|
-
*/
|
|
109
|
-
columns?: 1 | 2 | 3 | 4;
|
|
110
|
-
/**
|
|
111
|
-
* Gap between grid items
|
|
112
|
-
* @default "lg"
|
|
113
|
-
*/
|
|
114
|
-
gap?: GridLayoutConfig["gap"];
|
|
115
|
-
/**
|
|
116
|
-
* Background configuration
|
|
117
|
-
*/
|
|
118
|
-
background?: SectionBuilderConfig["background"];
|
|
119
|
-
/**
|
|
120
|
-
* Spacing configuration
|
|
121
|
-
*/
|
|
122
|
-
spacing?: SectionBuilderConfig["spacing"];
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Create a feature grid configuration
|
|
126
|
-
*
|
|
127
|
-
* Grid of feature items with icons, titles, and descriptions.
|
|
128
|
-
* Responsive columns: 1 on mobile, 2-4 on desktop.
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* ```tsx
|
|
132
|
-
* <SectionBuilder
|
|
133
|
-
* config={createFeatureGridConfig({
|
|
134
|
-
* title: "Features",
|
|
135
|
-
* features: [
|
|
136
|
-
* { icon: <Icon />, title: "Fast", description: "Lightning fast" },
|
|
137
|
-
* { icon: <Icon />, title: "Secure", description: "Bank-level security" },
|
|
138
|
-
* ],
|
|
139
|
-
* columns: 3,
|
|
140
|
-
* })}
|
|
141
|
-
* />
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
export declare function createFeatureGridConfig(props: FeatureGridPresetProps): SectionBuilderConfig;
|
|
145
|
-
/**
|
|
146
|
-
* Testimonial Item
|
|
147
|
-
*/
|
|
148
|
-
export interface TestimonialItem {
|
|
149
|
-
/**
|
|
150
|
-
* Quote text
|
|
151
|
-
*/
|
|
152
|
-
quote: string;
|
|
153
|
-
/**
|
|
154
|
-
* Author name
|
|
155
|
-
*/
|
|
156
|
-
author: string;
|
|
157
|
-
/**
|
|
158
|
-
* Author role/title (optional)
|
|
159
|
-
*/
|
|
160
|
-
role?: string;
|
|
161
|
-
/**
|
|
162
|
-
* Author avatar (optional)
|
|
163
|
-
*/
|
|
164
|
-
avatar?: React.ReactNode;
|
|
165
|
-
/**
|
|
166
|
-
* Rating (optional)
|
|
167
|
-
*/
|
|
168
|
-
rating?: number;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Testimonial Preset Props
|
|
172
|
-
*/
|
|
173
|
-
export interface TestimonialPresetProps {
|
|
174
|
-
/**
|
|
175
|
-
* Array of testimonial items
|
|
176
|
-
*/
|
|
177
|
-
testimonials: TestimonialItem[];
|
|
178
|
-
/**
|
|
179
|
-
* Section title (optional)
|
|
180
|
-
*/
|
|
181
|
-
title?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Section description (optional)
|
|
184
|
-
*/
|
|
185
|
-
description?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Stack direction
|
|
188
|
-
* @default "vertical"
|
|
189
|
-
*/
|
|
190
|
-
direction?: "vertical" | "horizontal";
|
|
191
|
-
/**
|
|
192
|
-
* Gap between testimonials
|
|
193
|
-
* @default "lg"
|
|
194
|
-
*/
|
|
195
|
-
gap?: StackedLayoutConfig["gap"];
|
|
196
|
-
/**
|
|
197
|
-
* Background configuration
|
|
198
|
-
*/
|
|
199
|
-
background?: SectionBuilderConfig["background"];
|
|
200
|
-
/**
|
|
201
|
-
* Spacing configuration
|
|
202
|
-
*/
|
|
203
|
-
spacing?: SectionBuilderConfig["spacing"];
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Create a testimonial section configuration
|
|
207
|
-
*
|
|
208
|
-
* Stack of testimonial cards with quotes, author info, and optional avatars.
|
|
209
|
-
* Uses Stack primitive with spacing and typography tokens.
|
|
210
|
-
*
|
|
211
|
-
* @example
|
|
212
|
-
* ```tsx
|
|
213
|
-
* <SectionBuilder
|
|
214
|
-
* config={createTestimonialConfig({
|
|
215
|
-
* title: "What Our Customers Say",
|
|
216
|
-
* testimonials: [
|
|
217
|
-
* {
|
|
218
|
-
* quote: "Amazing product!",
|
|
219
|
-
* author: "John Doe",
|
|
220
|
-
* role: "CEO",
|
|
221
|
-
* avatar: <Avatar />,
|
|
222
|
-
* },
|
|
223
|
-
* ],
|
|
224
|
-
* })}
|
|
225
|
-
* />
|
|
226
|
-
* ```
|
|
227
|
-
*/
|
|
228
|
-
export declare function createTestimonialConfig(props: TestimonialPresetProps): SectionBuilderConfig;
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
import { ComponentAnimationConfig } from '../animation/types';
|
|
2
|
-
import { ResponsiveAlignment, ResponsiveColor, ResponsiveColumns, ResponsiveJustify, ResponsiveRadius, ResponsiveRows, ResponsiveSpacing } from './layout/layout.types';
|
|
3
|
-
/**
|
|
4
|
-
* SectionBuilder Type Definitions
|
|
5
|
-
*
|
|
6
|
-
* TypeScript interfaces and types for the SectionBuilder component.
|
|
7
|
-
* Defines configuration schemas for layout types, content slots, backgrounds,
|
|
8
|
-
* and spacing using the token system.
|
|
9
|
-
*/
|
|
10
|
-
import type * as React from "react";
|
|
11
|
-
/**
|
|
12
|
-
* Supported layout types for sections
|
|
13
|
-
*/
|
|
14
|
-
export type SectionLayoutType = "split" | "grid" | "stacked";
|
|
15
|
-
/**
|
|
16
|
-
* Surface background variants
|
|
17
|
-
* Derived from surfaceColors tokens from tokens/colors.ts
|
|
18
|
-
*/
|
|
19
|
-
export type SurfaceVariant = keyof typeof import("@/tokens/colors").surfaceColors.day;
|
|
20
|
-
/**
|
|
21
|
-
* Background configuration
|
|
22
|
-
* Supports surface variants or custom color tokens
|
|
23
|
-
*/
|
|
24
|
-
export type BackgroundConfig = {
|
|
25
|
-
type: "surface";
|
|
26
|
-
variant: SurfaceVariant;
|
|
27
|
-
} | {
|
|
28
|
-
type: "color";
|
|
29
|
-
value: ResponsiveColor;
|
|
30
|
-
} | {
|
|
31
|
-
type: "none";
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Content slot types
|
|
35
|
-
* Slots can be ReactNode, string, or structured config objects
|
|
36
|
-
*/
|
|
37
|
-
export type SectionSlot = React.ReactNode | string | {
|
|
38
|
-
content: React.ReactNode | string;
|
|
39
|
-
className?: string;
|
|
40
|
-
style?: React.CSSProperties;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Typography configuration for text slots
|
|
44
|
-
*/
|
|
45
|
-
export interface TypographyConfig {
|
|
46
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
47
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
|
|
48
|
-
variant?: "default" | "muted" | "primary" | "secondary" | "accent";
|
|
49
|
-
className?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Text slot configuration
|
|
53
|
-
* Wraps string content with Typography component
|
|
54
|
-
*/
|
|
55
|
-
export interface TextSlotConfig {
|
|
56
|
-
type: "text";
|
|
57
|
-
content: string;
|
|
58
|
-
typography?: TypographyConfig;
|
|
59
|
-
className?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Media slot configuration
|
|
63
|
-
*/
|
|
64
|
-
export interface MediaSlotConfig {
|
|
65
|
-
type: "media";
|
|
66
|
-
content: React.ReactNode;
|
|
67
|
-
position?: "left" | "right" | "top" | "bottom" | "center";
|
|
68
|
-
className?: string;
|
|
69
|
-
aspectRatio?: string;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Actions slot configuration
|
|
73
|
-
* For buttons and CTAs
|
|
74
|
-
*/
|
|
75
|
-
export interface ActionsSlotConfig {
|
|
76
|
-
type: "actions";
|
|
77
|
-
content: React.ReactNode;
|
|
78
|
-
align?: ResponsiveAlignment;
|
|
79
|
-
justify?: ResponsiveJustify;
|
|
80
|
-
gap?: ResponsiveSpacing;
|
|
81
|
-
className?: string;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Structured slot configuration
|
|
85
|
-
*/
|
|
86
|
-
export type StructuredSlot = TextSlotConfig | MediaSlotConfig | ActionsSlotConfig;
|
|
87
|
-
/**
|
|
88
|
-
* Section slot definition
|
|
89
|
-
* Can be simple ReactNode, string, or structured config
|
|
90
|
-
*/
|
|
91
|
-
export type SectionSlotValue = SectionSlot | StructuredSlot;
|
|
92
|
-
/**
|
|
93
|
-
* Split layout configuration
|
|
94
|
-
* Left/right content areas with optional image positioning
|
|
95
|
-
*/
|
|
96
|
-
export interface SplitLayoutConfig {
|
|
97
|
-
type: "split";
|
|
98
|
-
/**
|
|
99
|
-
* Image/media position
|
|
100
|
-
* @default "right"
|
|
101
|
-
*/
|
|
102
|
-
imagePosition?: "left" | "right";
|
|
103
|
-
/**
|
|
104
|
-
* Responsive direction override
|
|
105
|
-
* If provided, overrides imagePosition behavior
|
|
106
|
-
*/
|
|
107
|
-
direction?: {
|
|
108
|
-
base?: "row" | "column";
|
|
109
|
-
sm?: "row" | "column";
|
|
110
|
-
md?: "row" | "column";
|
|
111
|
-
lg?: "row" | "column";
|
|
112
|
-
xl?: "row" | "column";
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Gap between left and right content
|
|
116
|
-
*/
|
|
117
|
-
gap?: ResponsiveSpacing;
|
|
118
|
-
/**
|
|
119
|
-
* Alignment of items
|
|
120
|
-
*/
|
|
121
|
-
align?: ResponsiveAlignment;
|
|
122
|
-
/**
|
|
123
|
-
* Justify content
|
|
124
|
-
*/
|
|
125
|
-
justify?: ResponsiveJustify;
|
|
126
|
-
/**
|
|
127
|
-
* Left content area
|
|
128
|
-
*/
|
|
129
|
-
left?: SectionSlotValue;
|
|
130
|
-
/**
|
|
131
|
-
* Right content area
|
|
132
|
-
*/
|
|
133
|
-
right?: SectionSlotValue;
|
|
134
|
-
/**
|
|
135
|
-
* Media content (image/video)
|
|
136
|
-
*/
|
|
137
|
-
media?: SectionSlotValue;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Grid layout configuration
|
|
141
|
-
* Grid of items with configurable columns and rows
|
|
142
|
-
*/
|
|
143
|
-
export interface GridLayoutConfig {
|
|
144
|
-
type: "grid";
|
|
145
|
-
/**
|
|
146
|
-
* Number of columns
|
|
147
|
-
*/
|
|
148
|
-
columns?: ResponsiveColumns;
|
|
149
|
-
/**
|
|
150
|
-
* Number of rows (optional, auto by default)
|
|
151
|
-
*/
|
|
152
|
-
rows?: ResponsiveRows;
|
|
153
|
-
/**
|
|
154
|
-
* Gap between grid items
|
|
155
|
-
*/
|
|
156
|
-
gap?: ResponsiveSpacing;
|
|
157
|
-
/**
|
|
158
|
-
* Alignment of grid items
|
|
159
|
-
*/
|
|
160
|
-
align?: ResponsiveAlignment;
|
|
161
|
-
/**
|
|
162
|
-
* Justify content
|
|
163
|
-
*/
|
|
164
|
-
justify?: ResponsiveJustify;
|
|
165
|
-
/**
|
|
166
|
-
* Grid items array
|
|
167
|
-
*/
|
|
168
|
-
items: SectionSlotValue[];
|
|
169
|
-
/**
|
|
170
|
-
* Item renderer function (optional)
|
|
171
|
-
* If provided, each item will be wrapped with this renderer
|
|
172
|
-
*/
|
|
173
|
-
itemRenderer?: (item: SectionSlotValue, index: number) => React.ReactNode;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Stacked layout configuration
|
|
177
|
-
* Vertical or horizontal stacking with spacing
|
|
178
|
-
*/
|
|
179
|
-
export interface StackedLayoutConfig {
|
|
180
|
-
type: "stacked";
|
|
181
|
-
/**
|
|
182
|
-
* Stack direction
|
|
183
|
-
* @default "vertical"
|
|
184
|
-
*/
|
|
185
|
-
direction?: "vertical" | "horizontal";
|
|
186
|
-
/**
|
|
187
|
-
* Gap between stacked items
|
|
188
|
-
*/
|
|
189
|
-
gap?: ResponsiveSpacing;
|
|
190
|
-
/**
|
|
191
|
-
* Alignment of items
|
|
192
|
-
*/
|
|
193
|
-
align?: ResponsiveAlignment;
|
|
194
|
-
/**
|
|
195
|
-
* Justify content
|
|
196
|
-
*/
|
|
197
|
-
justify?: ResponsiveJustify;
|
|
198
|
-
/**
|
|
199
|
-
* Stacked items array
|
|
200
|
-
*/
|
|
201
|
-
items: SectionSlotValue[];
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Layout configuration union type
|
|
205
|
-
*/
|
|
206
|
-
export type LayoutConfig = SplitLayoutConfig | GridLayoutConfig | StackedLayoutConfig;
|
|
207
|
-
/**
|
|
208
|
-
* Spacing configuration for section wrapper
|
|
209
|
-
*/
|
|
210
|
-
export interface SpacingConfig {
|
|
211
|
-
/**
|
|
212
|
-
* Padding (all sides)
|
|
213
|
-
*/
|
|
214
|
-
padding?: ResponsiveSpacing;
|
|
215
|
-
/**
|
|
216
|
-
* Padding horizontal
|
|
217
|
-
*/
|
|
218
|
-
paddingX?: ResponsiveSpacing;
|
|
219
|
-
/**
|
|
220
|
-
* Padding vertical
|
|
221
|
-
*/
|
|
222
|
-
paddingY?: ResponsiveSpacing;
|
|
223
|
-
/**
|
|
224
|
-
* Margin (all sides)
|
|
225
|
-
*/
|
|
226
|
-
margin?: ResponsiveSpacing;
|
|
227
|
-
/**
|
|
228
|
-
* Margin horizontal
|
|
229
|
-
*/
|
|
230
|
-
marginX?: ResponsiveSpacing;
|
|
231
|
-
/**
|
|
232
|
-
* Margin vertical
|
|
233
|
-
*/
|
|
234
|
-
marginY?: ResponsiveSpacing;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Main SectionBuilder configuration
|
|
238
|
-
*/
|
|
239
|
-
export interface SectionBuilderConfig {
|
|
240
|
-
/**
|
|
241
|
-
* Layout configuration
|
|
242
|
-
* Defines the layout type and its specific settings
|
|
243
|
-
*/
|
|
244
|
-
layout: LayoutConfig;
|
|
245
|
-
/**
|
|
246
|
-
* Background configuration
|
|
247
|
-
* @default { type: "none" }
|
|
248
|
-
*/
|
|
249
|
-
background?: BackgroundConfig;
|
|
250
|
-
/**
|
|
251
|
-
* Spacing configuration
|
|
252
|
-
* Applied to the section wrapper
|
|
253
|
-
*/
|
|
254
|
-
spacing?: SpacingConfig;
|
|
255
|
-
/**
|
|
256
|
-
* Border radius
|
|
257
|
-
*/
|
|
258
|
-
radius?: ResponsiveRadius;
|
|
259
|
-
/**
|
|
260
|
-
* Content slots
|
|
261
|
-
* These are rendered in addition to layout-specific content
|
|
262
|
-
*/
|
|
263
|
-
slots?: {
|
|
264
|
-
/**
|
|
265
|
-
* Header slot (above main content)
|
|
266
|
-
*/
|
|
267
|
-
header?: SectionSlotValue;
|
|
268
|
-
/**
|
|
269
|
-
* Body slot (main content area)
|
|
270
|
-
*/
|
|
271
|
-
body?: SectionSlotValue;
|
|
272
|
-
/**
|
|
273
|
-
* Footer slot (below main content)
|
|
274
|
-
*/
|
|
275
|
-
footer?: SectionSlotValue;
|
|
276
|
-
/**
|
|
277
|
-
* Overlay slot (rendered on top with absolute positioning)
|
|
278
|
-
*/
|
|
279
|
-
overlay?: SectionSlotValue;
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* Custom className for section wrapper
|
|
283
|
-
*/
|
|
284
|
-
className?: string;
|
|
285
|
-
/**
|
|
286
|
-
* Custom style for section wrapper
|
|
287
|
-
*/
|
|
288
|
-
style?: React.CSSProperties;
|
|
289
|
-
/**
|
|
290
|
-
* HTML element to render as
|
|
291
|
-
* @default "section"
|
|
292
|
-
*/
|
|
293
|
-
as?: keyof React.JSX.IntrinsicElements;
|
|
294
|
-
/**
|
|
295
|
-
* ARIA label for accessibility
|
|
296
|
-
*/
|
|
297
|
-
"aria-label"?: string;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* SectionBuilder component props
|
|
301
|
-
* Extends the config with standard React props
|
|
302
|
-
*/
|
|
303
|
-
export interface SectionBuilderProps extends Omit<SectionBuilderConfig, "as" | "aria-label" | "style" | "className">, Omit<React.HTMLAttributes<HTMLElement>, "style" | "className"> {
|
|
304
|
-
/**
|
|
305
|
-
* Configuration object (alternative to individual props)
|
|
306
|
-
* If provided, other props are ignored
|
|
307
|
-
*/
|
|
308
|
-
config?: SectionBuilderConfig;
|
|
309
|
-
/**
|
|
310
|
-
* HTML element to render as
|
|
311
|
-
* @default "section"
|
|
312
|
-
*/
|
|
313
|
-
as?: keyof React.JSX.IntrinsicElements;
|
|
314
|
-
/**
|
|
315
|
-
* Custom className for section wrapper
|
|
316
|
-
*/
|
|
317
|
-
className?: string;
|
|
318
|
-
/**
|
|
319
|
-
* Custom style for section wrapper
|
|
320
|
-
*/
|
|
321
|
-
style?: React.CSSProperties;
|
|
322
|
-
/**
|
|
323
|
-
* Animation configuration for entrance and hover animations
|
|
324
|
-
*/
|
|
325
|
-
animation?: ComponentAnimationConfig;
|
|
326
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface LoginFormProps {
|
|
3
|
-
emailLabel: string;
|
|
4
|
-
emailPlaceholder: string;
|
|
5
|
-
passwordLabel: string;
|
|
6
|
-
passwordPlaceholder: string;
|
|
7
|
-
loginButtonText: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const LoginForm: React.FC<LoginFormProps>;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface RegisterFormProps {
|
|
3
|
-
nameLabel: string;
|
|
4
|
-
namePlaceholder: string;
|
|
5
|
-
emailLabel: string;
|
|
6
|
-
emailPlaceholder: string;
|
|
7
|
-
passwordLabel: string;
|
|
8
|
-
passwordPlaceholder: string;
|
|
9
|
-
registerButtonText: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const RegisterForm: React.FC<RegisterFormProps>;
|
|
13
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ArtistCardProps } from './ArtistCard.types';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
/**
|
|
4
|
-
* ArtistCard Component
|
|
5
|
-
*
|
|
6
|
-
* Domain-specific card component for displaying artist information.
|
|
7
|
-
* Uses CardBase for layout and DOMAIN_TOKENS for all styling.
|
|
8
|
-
* Supports size variants (default, compact) and style variants (default, featured).
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <ArtistCard
|
|
13
|
-
* name="Artist Name"
|
|
14
|
-
* genres="Jazz, Blues"
|
|
15
|
-
* followers={1200}
|
|
16
|
-
* plays={50000}
|
|
17
|
-
* followersLabel="followers"
|
|
18
|
-
* playsLabel="plays"
|
|
19
|
-
* />
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare const ArtistCard: React.ForwardRefExoticComponent<ArtistCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ComponentAnimationConfig } from '../../../animation/types';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
/**
|
|
4
|
-
* ArtistCard Size Variant
|
|
5
|
-
*/
|
|
6
|
-
export type ArtistCardSize = "default" | "compact";
|
|
7
|
-
/**
|
|
8
|
-
* ArtistCard Style Variant
|
|
9
|
-
*/
|
|
10
|
-
export type ArtistCardVariant = "default" | "featured";
|
|
11
|
-
/**
|
|
12
|
-
* Props for ArtistCard component.
|
|
13
|
-
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
14
|
-
*/
|
|
15
|
-
export interface ArtistCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
-
/** Artist name (pre-localized string, required) */
|
|
17
|
-
name: string;
|
|
18
|
-
/** Artist description (pre-localized string, optional) */
|
|
19
|
-
description?: string;
|
|
20
|
-
/** Genres as comma-separated string (e.g., "Jazz, Blues, Rock", optional) */
|
|
21
|
-
genres?: string;
|
|
22
|
-
/** Follower count for popularity metric (optional) */
|
|
23
|
-
followers?: number;
|
|
24
|
-
/** Plays/listens count for popularity metric (optional) */
|
|
25
|
-
plays?: number;
|
|
26
|
-
/** Image URL (optional) */
|
|
27
|
-
imageUrl?: string;
|
|
28
|
-
/** Link URL for artist details page (optional) */
|
|
29
|
-
href?: string;
|
|
30
|
-
/** Whether this is a featured artist */
|
|
31
|
-
featured?: boolean;
|
|
32
|
-
/** Show image section */
|
|
33
|
-
showImage?: boolean;
|
|
34
|
-
/** Badge text for featured artists (optional) */
|
|
35
|
-
popularBadgeText?: string;
|
|
36
|
-
/** Label for followers count (required) */
|
|
37
|
-
followersLabel: string;
|
|
38
|
-
/** Label for plays count (required) */
|
|
39
|
-
playsLabel: string;
|
|
40
|
-
/** Size variant - controls padding and gap */
|
|
41
|
-
size?: ArtistCardSize;
|
|
42
|
-
/** Style variant - controls visual appearance */
|
|
43
|
-
variant?: ArtistCardVariant;
|
|
44
|
-
/** Animation configuration for entrance and hover animations */
|
|
45
|
-
animation?: ComponentAnimationConfig;
|
|
46
|
-
}
|