sdaia-ui 1.0.1
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/README.md +89 -0
- package/dist/PlayVideoIcon-BM-4pwUd.d.cts +7 -0
- package/dist/PlayVideoIcon-BM-4pwUd.d.ts +7 -0
- package/dist/dga-icons.cjs +14 -0
- package/dist/dga-icons.cjs.map +1 -0
- package/dist/dga-icons.d.cts +1 -0
- package/dist/dga-icons.d.ts +1 -0
- package/dist/dga-icons.js +3 -0
- package/dist/dga-icons.js.map +1 -0
- package/dist/icons.cjs +4014 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.d.cts +756 -0
- package/dist/icons.d.ts +756 -0
- package/dist/icons.js +3871 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.cjs +43620 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +9407 -0
- package/dist/index.d.ts +9407 -0
- package/dist/index.js +43411 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +242 -0
- package/package.json +65 -0
- package/src/components/Accordion/Accordion.tsx +207 -0
- package/src/components/Accordion/Accordion.types.ts +36 -0
- package/src/components/Accordion/Accordion.variants.ts +283 -0
- package/src/components/Accordion/index.ts +9 -0
- package/src/components/ActionBar/ActionBar.tsx +192 -0
- package/src/components/ActionBar/ActionBar.types.ts +67 -0
- package/src/components/ActionBar/ActionBar.variants.ts +95 -0
- package/src/components/ActionBar/index.ts +8 -0
- package/src/components/Activity/Activity.tsx +52 -0
- package/src/components/Activity/Activity.types.ts +19 -0
- package/src/components/Activity/Activity.variants.ts +15 -0
- package/src/components/Activity/index.ts +2 -0
- package/src/components/ActivityItem/ActivityItem.tsx +298 -0
- package/src/components/ActivityItem/ActivityItem.types.ts +76 -0
- package/src/components/ActivityItem/ActivityItem.variants.ts +117 -0
- package/src/components/ActivityItem/index.ts +8 -0
- package/src/components/Alert/Alert.tsx +183 -0
- package/src/components/Alert/Alert.types.ts +34 -0
- package/src/components/Alert/Alert.variants.ts +168 -0
- package/src/components/Alert/index.ts +2 -0
- package/src/components/AreaChart/AreaChart.tsx +454 -0
- package/src/components/AreaChart/AreaChart.types.ts +117 -0
- package/src/components/AreaChart/AreaChart.variants.ts +202 -0
- package/src/components/AreaChart/index.ts +2 -0
- package/src/components/AspectRatio/AspectRatio.tsx +36 -0
- package/src/components/AspectRatio/AspectRatio.types.ts +33 -0
- package/src/components/AspectRatio/AspectRatio.variants.ts +42 -0
- package/src/components/AspectRatio/index.ts +2 -0
- package/src/components/AudioPlayer/AudioPlayer.tsx +294 -0
- package/src/components/AudioPlayer/AudioPlayer.types.ts +64 -0
- package/src/components/AudioPlayer/AudioPlayer.variants.ts +225 -0
- package/src/components/AudioPlayer/index.ts +2 -0
- package/src/components/Autocomplete/Autocomplete.tsx +353 -0
- package/src/components/Autocomplete/Autocomplete.types.ts +93 -0
- package/src/components/Autocomplete/Autocomplete.variants.ts +149 -0
- package/src/components/Autocomplete/index.ts +6 -0
- package/src/components/Avatar/Avatar.tsx +168 -0
- package/src/components/Avatar/Avatar.types.ts +36 -0
- package/src/components/Avatar/Avatar.variants.ts +102 -0
- package/src/components/Avatar/index.ts +7 -0
- package/src/components/AvatarGroup/AvatarGroup.tsx +87 -0
- package/src/components/AvatarGroup/AvatarGroup.types.ts +44 -0
- package/src/components/AvatarGroup/AvatarGroup.variants.ts +17 -0
- package/src/components/AvatarGroup/index.ts +6 -0
- package/src/components/Badge/Badge.tsx +74 -0
- package/src/components/Badge/Badge.types.ts +31 -0
- package/src/components/Badge/Badge.variants.ts +83 -0
- package/src/components/Badge/index.ts +2 -0
- package/src/components/Bar/Bar.tsx +57 -0
- package/src/components/Bar/Bar.types.ts +18 -0
- package/src/components/Bar/Bar.variants.ts +20 -0
- package/src/components/Bar/index.ts +2 -0
- package/src/components/BarChart/BarChart.tsx +179 -0
- package/src/components/BarChart/BarChart.types.ts +72 -0
- package/src/components/BarChart/BarChart.variants.ts +134 -0
- package/src/components/BarChart/index.ts +2 -0
- package/src/components/BarGroup/BarGroup.tsx +119 -0
- package/src/components/BarGroup/BarGroup.types.ts +50 -0
- package/src/components/BarGroup/BarGroup.variants.ts +76 -0
- package/src/components/BarGroup/index.ts +2 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +137 -0
- package/src/components/Breadcrumb/Breadcrumb.types.ts +21 -0
- package/src/components/Breadcrumb/BreadcrumbItem.tsx +267 -0
- package/src/components/Breadcrumb/BreadcrumbItem.types.ts +66 -0
- package/src/components/Breadcrumb/BreadcrumbItem.variants.ts +102 -0
- package/src/components/Breadcrumb/index.ts +12 -0
- package/src/components/Button/Button.tsx +100 -0
- package/src/components/Button/Button.types.ts +44 -0
- package/src/components/Button/Button.variants.ts +183 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/ButtonClose/ButtonClose.tsx +57 -0
- package/src/components/ButtonClose/ButtonClose.types.ts +18 -0
- package/src/components/ButtonClose/ButtonClose.variants.ts +72 -0
- package/src/components/ButtonClose/index.ts +2 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +127 -0
- package/src/components/ButtonGroup/ButtonGroup.types.ts +51 -0
- package/src/components/ButtonGroup/ButtonGroup.variants.ts +65 -0
- package/src/components/ButtonGroup/index.ts +2 -0
- package/src/components/ButtonMenu/ButtonMenu.tsx +73 -0
- package/src/components/ButtonMenu/ButtonMenu.types.ts +43 -0
- package/src/components/ButtonMenu/ButtonMenu.variants.ts +18 -0
- package/src/components/ButtonMenu/index.ts +2 -0
- package/src/components/ButtonSplit/ButtonSplit.tsx +344 -0
- package/src/components/ButtonSplit/ButtonSplit.types.ts +95 -0
- package/src/components/ButtonSplit/ButtonSplit.variants.ts +165 -0
- package/src/components/ButtonSplit/index.ts +7 -0
- package/src/components/ButtonsWithSdaiaTouch/ButtonHoverPattern.tsx +69 -0
- package/src/components/ButtonsWithSdaiaTouch/ButtonsWithSdaiaTouch.tsx +130 -0
- package/src/components/ButtonsWithSdaiaTouch/ButtonsWithSdaiaTouch.types.ts +4 -0
- package/src/components/ButtonsWithSdaiaTouch/ButtonsWithSdaiaTouch.variants.ts +19 -0
- package/src/components/ButtonsWithSdaiaTouch/index.ts +6 -0
- package/src/components/CLAUDE.md +212 -0
- package/src/components/CalendarHeader/CalendarHeader.tsx +224 -0
- package/src/components/CalendarHeader/CalendarHeader.types.ts +51 -0
- package/src/components/CalendarHeader/CalendarHeader.variants.ts +65 -0
- package/src/components/CalendarHeader/index.ts +2 -0
- package/src/components/Card/Card.tsx +76 -0
- package/src/components/Card/Card.types.ts +11 -0
- package/src/components/Card/Card.variants.ts +30 -0
- package/src/components/Card/index.ts +2 -0
- package/src/components/CardContent/CardContent.tsx +178 -0
- package/src/components/CardContent/CardContent.types.ts +70 -0
- package/src/components/CardContent/CardContent.variants.ts +90 -0
- package/src/components/CardContent/index.ts +6 -0
- package/src/components/CardFooter/CardFooter.tsx +196 -0
- package/src/components/CardFooter/CardFooter.types.ts +59 -0
- package/src/components/CardFooter/CardFooter.variants.ts +127 -0
- package/src/components/CardFooter/index.ts +8 -0
- package/src/components/CardHeader/CardHeader.tsx +150 -0
- package/src/components/CardHeader/CardHeader.types.ts +42 -0
- package/src/components/CardHeader/CardHeader.variants.ts +72 -0
- package/src/components/CardHeader/index.ts +5 -0
- package/src/components/CardLeadingItem/CardLeadingItem.tsx +166 -0
- package/src/components/CardLeadingItem/CardLeadingItem.types.ts +75 -0
- package/src/components/CardLeadingItem/CardLeadingItem.variants.ts +66 -0
- package/src/components/CardLeadingItem/index.ts +6 -0
- package/src/components/CardMedia/CardMedia.tsx +324 -0
- package/src/components/CardMedia/CardMedia.types.ts +114 -0
- package/src/components/CardMedia/CardMedia.variants.ts +139 -0
- package/src/components/CardMedia/index.ts +2 -0
- package/src/components/Carousel/Carousel.tsx +182 -0
- package/src/components/Carousel/Carousel.types.ts +38 -0
- package/src/components/Carousel/Carousel.variants.ts +17 -0
- package/src/components/Carousel/index.ts +2 -0
- package/src/components/CarouselArrow/CarouselArrow.tsx +66 -0
- package/src/components/CarouselArrow/CarouselArrow.types.ts +26 -0
- package/src/components/CarouselArrow/CarouselArrow.variants.ts +83 -0
- package/src/components/CarouselArrow/index.ts +7 -0
- package/src/components/CarouselControlsGroup/CarouselControlsGroup.tsx +81 -0
- package/src/components/CarouselControlsGroup/CarouselControlsGroup.types.ts +24 -0
- package/src/components/CarouselControlsGroup/CarouselControlsGroup.variants.ts +60 -0
- package/src/components/CarouselControlsGroup/index.ts +6 -0
- package/src/components/CarouselImage/CarouselImage.tsx +253 -0
- package/src/components/CarouselImage/CarouselImage.types.ts +72 -0
- package/src/components/CarouselImage/CarouselImage.variants.ts +43 -0
- package/src/components/CarouselImage/index.ts +6 -0
- package/src/components/Chart/Chart.tsx +3 -0
- package/src/components/Chart/Chart.types.ts +2 -0
- package/src/components/Chart/Chart.variants.ts +2 -0
- package/src/components/Chart/index.ts +2 -0
- package/src/components/ChartBadge/ChartBadge.tsx +62 -0
- package/src/components/ChartBadge/ChartBadge.types.ts +27 -0
- package/src/components/ChartBadge/ChartBadge.variants.ts +62 -0
- package/src/components/ChartBadge/index.ts +2 -0
- package/src/components/Checkbox/Checkbox.tsx +243 -0
- package/src/components/Checkbox/Checkbox.types.ts +20 -0
- package/src/components/Checkbox/index.ts +2 -0
- package/src/components/CheckboxLabel/CheckboxLabel.tsx +148 -0
- package/src/components/CheckboxLabel/CheckboxLabel.types.ts +55 -0
- package/src/components/CheckboxLabel/CheckboxLabel.variants.ts +35 -0
- package/src/components/CheckboxLabel/index.ts +2 -0
- package/src/components/Chip/Chip.tsx +245 -0
- package/src/components/Chip/Chip.types.ts +83 -0
- package/src/components/Chip/Chip.variants.ts +143 -0
- package/src/components/Chip/index.ts +2 -0
- package/src/components/CircularItem/CircularItem.tsx +133 -0
- package/src/components/CircularItem/CircularItem.types.ts +45 -0
- package/src/components/CircularItem/CircularItem.variants.ts +128 -0
- package/src/components/CircularItem/index.ts +7 -0
- package/src/components/CodeSnippet/CodeSnippet.tsx +421 -0
- package/src/components/CodeSnippet/CodeSnippet.types.ts +99 -0
- package/src/components/CodeSnippet/CodeSnippet.variants.ts +76 -0
- package/src/components/CodeSnippet/index.ts +9 -0
- package/src/components/ColumnChart/ColumnChart.tsx +943 -0
- package/src/components/ColumnChart/ColumnChart.types.ts +98 -0
- package/src/components/ColumnChart/ColumnChart.variants.ts +117 -0
- package/src/components/ColumnChart/index.ts +9 -0
- package/src/components/ComplexComposition/ComplexComposition.tsx +82 -0
- package/src/components/ComplexComposition/ComplexComposition.types.ts +3 -0
- package/src/components/ComplexComposition/ComplexComposition.variants.ts +14 -0
- package/src/components/ComplexComposition/index.ts +2 -0
- package/src/components/ContentSwitcher/ContentSwitcher.tsx +104 -0
- package/src/components/ContentSwitcher/ContentSwitcher.types.ts +28 -0
- package/src/components/ContentSwitcher/ContentSwitcher.variants.ts +70 -0
- package/src/components/ContentSwitcher/index.ts +6 -0
- package/src/components/ContentSwitcherItem/ContentSwitcherItem.tsx +56 -0
- package/src/components/ContentSwitcherItem/ContentSwitcherItem.types.ts +14 -0
- package/src/components/ContentSwitcherItem/ContentSwitcherItem.variants.ts +65 -0
- package/src/components/ContentSwitcherItem/index.ts +6 -0
- package/src/components/ContextMenu/ContextMenu.tsx +101 -0
- package/src/components/ContextMenu/ContextMenu.types.ts +64 -0
- package/src/components/ContextMenu/ContextMenu.variants.ts +36 -0
- package/src/components/ContextMenu/index.ts +7 -0
- package/src/components/ContextMenuDropdown/ContextMenuDropdown.tsx +370 -0
- package/src/components/ContextMenuDropdown/ContextMenuDropdown.types.ts +89 -0
- package/src/components/ContextMenuDropdown/ContextMenuDropdown.variants.ts +88 -0
- package/src/components/ContextMenuDropdown/index.ts +5 -0
- package/src/components/DateCell/DateCell.tsx +181 -0
- package/src/components/DateCell/DateCell.types.ts +53 -0
- package/src/components/DateCell/DateCell.variants.ts +217 -0
- package/src/components/DateCell/index.ts +2 -0
- package/src/components/DatePicker/DatePicker.tsx +923 -0
- package/src/components/DatePicker/DatePicker.types.ts +102 -0
- package/src/components/DatePicker/DatePicker.variants.ts +274 -0
- package/src/components/DatePicker/index.ts +9 -0
- package/src/components/DateTab/DateTab.tsx +91 -0
- package/src/components/DateTab/DateTab.types.ts +9 -0
- package/src/components/DateTab/DateTab.variants.ts +98 -0
- package/src/components/DateTab/index.ts +2 -0
- package/src/components/DgaIcon/DgaIcon.tsx +68 -0
- package/src/components/DgaIcon/DgaIcon.types.ts +57 -0
- package/src/components/DgaIcon/DgaIcon.variants.ts +41 -0
- package/src/components/DgaIcon/DgaIconByName.tsx +76 -0
- package/src/components/DgaIcon/generated/icon-names.ts +4388 -0
- package/src/components/DgaIcon/index.ts +12 -0
- package/src/components/DgaIcon/lib/decodeDataUrl.ts +46 -0
- package/src/components/DigitalStamp/DigitalStamp.tsx +236 -0
- package/src/components/DigitalStamp/DigitalStamp.types.ts +38 -0
- package/src/components/DigitalStamp/DigitalStamp.variants.ts +185 -0
- package/src/components/DigitalStamp/index.ts +2 -0
- package/src/components/Divider/Divider.tsx +83 -0
- package/src/components/Divider/Divider.types.ts +49 -0
- package/src/components/Divider/Divider.variants.ts +55 -0
- package/src/components/Divider/index.ts +8 -0
- package/src/components/DonutChart/DonutChart.tsx +251 -0
- package/src/components/DonutChart/DonutChart.types.ts +97 -0
- package/src/components/DonutChart/DonutChart.variants.ts +203 -0
- package/src/components/DonutChart/index.ts +7 -0
- package/src/components/DonutChartPanel/DonutChartPanel.tsx +778 -0
- package/src/components/DonutChartPanel/DonutChartPanel.types.ts +143 -0
- package/src/components/DonutChartPanel/DonutChartPanel.variants.ts +154 -0
- package/src/components/DonutChartPanel/index.ts +9 -0
- package/src/components/DraggableItem/DraggableItem.tsx +228 -0
- package/src/components/DraggableItem/DraggableItem.types.ts +72 -0
- package/src/components/DraggableItem/DraggableItem.variants.ts +149 -0
- package/src/components/DraggableItem/index.ts +3 -0
- package/src/components/DraggableList/DraggableList.tsx +20 -0
- package/src/components/DraggableList/DraggableList.types.ts +16 -0
- package/src/components/DraggableList/DraggableList.variants.ts +13 -0
- package/src/components/DraggableList/index.ts +3 -0
- package/src/components/Dropdown/Dropdown.tsx +331 -0
- package/src/components/Dropdown/Dropdown.types.ts +108 -0
- package/src/components/Dropdown/Dropdown.variants.ts +73 -0
- package/src/components/Dropdown/index.ts +9 -0
- package/src/components/DropdownListHeader/DropdownListHeader.tsx +79 -0
- package/src/components/DropdownListHeader/DropdownListHeader.types.ts +24 -0
- package/src/components/DropdownListHeader/DropdownListHeader.variants.ts +65 -0
- package/src/components/DropdownListHeader/index.ts +2 -0
- package/src/components/EmptyState/EmptyState.tsx +221 -0
- package/src/components/EmptyState/EmptyState.types.ts +48 -0
- package/src/components/EmptyState/EmptyState.variants.ts +122 -0
- package/src/components/EmptyState/index.ts +3 -0
- package/src/components/Extension/Extension.tsx +240 -0
- package/src/components/Extension/Extension.types.ts +40 -0
- package/src/components/Extension/Extension.variants.ts +27 -0
- package/src/components/Extension/index.ts +6 -0
- package/src/components/Feedback/Feedback.tsx +55 -0
- package/src/components/Feedback/Feedback.types.ts +15 -0
- package/src/components/Feedback/Feedback.variants.ts +9 -0
- package/src/components/Feedback/index.ts +2 -0
- package/src/components/FeedbackOverview/FeedbackOverview.tsx +70 -0
- package/src/components/FeedbackOverview/FeedbackOverview.types.ts +11 -0
- package/src/components/FeedbackOverview/FeedbackOverview.variants.ts +17 -0
- package/src/components/FeedbackOverview/index.ts +2 -0
- package/src/components/FeedbackReaction/FeedbackReaction.tsx +81 -0
- package/src/components/FeedbackReaction/FeedbackReaction.types.ts +14 -0
- package/src/components/FeedbackReaction/FeedbackReaction.variants.ts +39 -0
- package/src/components/FeedbackReaction/index.ts +2 -0
- package/src/components/FileUploadBase/FileUploadBase.tsx +104 -0
- package/src/components/FileUploadBase/FileUploadBase.types.ts +48 -0
- package/src/components/FileUploadBase/FileUploadBase.variants.ts +51 -0
- package/src/components/FileUploadBase/index.ts +2 -0
- package/src/components/FileUploadItemBase/FileUploadItemBase.tsx +197 -0
- package/src/components/FileUploadItemBase/FileUploadItemBase.types.ts +58 -0
- package/src/components/FileUploadItemBase/FileUploadItemBase.variants.ts +67 -0
- package/src/components/FileUploadItemBase/index.ts +6 -0
- package/src/components/FileUploader/FileUploader.tsx +164 -0
- package/src/components/FileUploader/FileUploader.types.ts +46 -0
- package/src/components/FileUploader/FileUploader.variants.ts +9 -0
- package/src/components/FileUploader/index.ts +2 -0
- package/src/components/Filtration/Filtration.tsx +260 -0
- package/src/components/Filtration/Filtration.types.ts +95 -0
- package/src/components/Filtration/Filtration.variants.ts +70 -0
- package/src/components/Filtration/index.ts +6 -0
- package/src/components/FiltrationItem/FiltrationItem.tsx +200 -0
- package/src/components/FiltrationItem/FiltrationItem.types.ts +57 -0
- package/src/components/FiltrationItem/FiltrationItem.variants.ts +81 -0
- package/src/components/FiltrationItem/index.ts +2 -0
- package/src/components/FiltrationList/FiltrationList.tsx +611 -0
- package/src/components/FiltrationList/FiltrationList.types.ts +191 -0
- package/src/components/FiltrationList/FiltrationList.variants.ts +283 -0
- package/src/components/FiltrationList/index.ts +16 -0
- package/src/components/FloatingButton/FloatingButton.tsx +89 -0
- package/src/components/FloatingButton/FloatingButton.types.ts +29 -0
- package/src/components/FloatingButton/FloatingButton.variants.ts +79 -0
- package/src/components/FloatingButton/index.ts +6 -0
- package/src/components/Footer/Footer.tsx +353 -0
- package/src/components/Footer/Footer.types.ts +142 -0
- package/src/components/Footer/Footer.variants.ts +137 -0
- package/src/components/Footer/index.ts +11 -0
- package/src/components/FooterItem/FooterItem.tsx +211 -0
- package/src/components/FooterItem/FooterItem.types.ts +45 -0
- package/src/components/FooterItem/FooterItem.variants.ts +139 -0
- package/src/components/FooterItem/index.ts +2 -0
- package/src/components/FooterLinkList/FooterLinkList.tsx +140 -0
- package/src/components/FooterLinkList/FooterLinkList.types.ts +46 -0
- package/src/components/FooterLinkList/FooterLinkList.variants.ts +64 -0
- package/src/components/FooterLinkList/index.ts +2 -0
- package/src/components/GraphBase/GraphBase.tsx +598 -0
- package/src/components/GraphBase/GraphBase.types.ts +101 -0
- package/src/components/GraphBase/GraphBase.variants.ts +126 -0
- package/src/components/GraphBase/index.ts +7 -0
- package/src/components/HeaderItem/HeaderItem.tsx +206 -0
- package/src/components/HeaderItem/HeaderItem.types.ts +73 -0
- package/src/components/HeaderItem/HeaderItem.variants.ts +139 -0
- package/src/components/HeaderItem/index.ts +2 -0
- package/src/components/HelpIcon/HelpIcon.tsx +173 -0
- package/src/components/HelpIcon/HelpIcon.types.ts +54 -0
- package/src/components/HelpIcon/HelpIcon.variants.ts +79 -0
- package/src/components/HelpIcon/index.ts +2 -0
- package/src/components/HorizontalTabs/HorizontalTabs.tsx +87 -0
- package/src/components/HorizontalTabs/HorizontalTabs.types.ts +41 -0
- package/src/components/HorizontalTabs/HorizontalTabs.variants.ts +54 -0
- package/src/components/HorizontalTabs/index.ts +6 -0
- package/src/components/IllustrationInstance/IllustrationInstance.tsx +46 -0
- package/src/components/IllustrationInstance/IllustrationInstance.types.ts +25 -0
- package/src/components/IllustrationInstance/IllustrationInstance.variants.ts +19 -0
- package/src/components/IllustrationInstance/index.ts +3 -0
- package/src/components/ImagePreview/ImagePreview.tsx +170 -0
- package/src/components/ImagePreview/ImagePreview.types.ts +54 -0
- package/src/components/ImagePreview/ImagePreview.variants.ts +39 -0
- package/src/components/ImagePreview/index.ts +2 -0
- package/src/components/Input/Input.tsx +113 -0
- package/src/components/Input/Input.types.ts +22 -0
- package/src/components/Input/index.ts +2 -0
- package/src/components/InputPrefixSuffix/InputPrefixSuffix.tsx +91 -0
- package/src/components/InputPrefixSuffix/InputPrefixSuffix.types.ts +81 -0
- package/src/components/InputPrefixSuffix/InputPrefixSuffix.variants.ts +128 -0
- package/src/components/InputPrefixSuffix/index.ts +8 -0
- package/src/components/InputsActions/InputsActions.tsx +53 -0
- package/src/components/InputsActions/InputsActions.types.ts +13 -0
- package/src/components/InputsActions/InputsActions.variants.ts +18 -0
- package/src/components/InputsActions/index.ts +2 -0
- package/src/components/InstanceColumn/InstanceColumn.tsx +43 -0
- package/src/components/InstanceColumn/InstanceColumn.types.ts +18 -0
- package/src/components/InstanceColumn/InstanceColumn.variants.ts +11 -0
- package/src/components/InstanceColumn/index.ts +2 -0
- package/src/components/InstanceItem/InstanceItem.tsx +33 -0
- package/src/components/InstanceItem/InstanceItem.types.ts +11 -0
- package/src/components/InstanceItem/InstanceItem.variants.ts +31 -0
- package/src/components/InstanceItem/index.ts +2 -0
- package/src/components/InstanceRows/InstanceRows.tsx +41 -0
- package/src/components/InstanceRows/InstanceRows.types.ts +17 -0
- package/src/components/InstanceRows/InstanceRows.variants.ts +10 -0
- package/src/components/InstanceRows/index.ts +2 -0
- package/src/components/InstanceSlot/InstanceSlot.tsx +25 -0
- package/src/components/InstanceSlot/InstanceSlot.types.ts +10 -0
- package/src/components/InstanceSlot/InstanceSlot.variants.ts +2 -0
- package/src/components/InstanceSlot/index.ts +2 -0
- package/src/components/LineChart/LineChart.tsx +592 -0
- package/src/components/LineChart/LineChart.types.ts +78 -0
- package/src/components/LineChart/LineChart.variants.ts +324 -0
- package/src/components/LineChart/index.ts +7 -0
- package/src/components/Link/Link.tsx +81 -0
- package/src/components/Link/Link.types.ts +23 -0
- package/src/components/Link/Link.variants.ts +69 -0
- package/src/components/Link/index.ts +2 -0
- package/src/components/List/List.tsx +260 -0
- package/src/components/List/List.types.ts +70 -0
- package/src/components/List/List.variants.ts +94 -0
- package/src/components/List/index.ts +5 -0
- package/src/components/ListGroup/ListGroup.tsx +37 -0
- package/src/components/ListGroup/ListGroup.types.ts +14 -0
- package/src/components/ListGroup/ListGroup.variants.ts +17 -0
- package/src/components/ListGroup/index.ts +3 -0
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +208 -0
- package/src/components/LoadingIndicator/LoadingIndicator.types.ts +51 -0
- package/src/components/LoadingIndicator/LoadingIndicator.variants.ts +108 -0
- package/src/components/LoadingIndicator/index.ts +7 -0
- package/src/components/MediaGallery/MediaGallery.tsx +600 -0
- package/src/components/MediaGallery/MediaGallery.types.ts +124 -0
- package/src/components/MediaGallery/MediaGallery.variants.ts +116 -0
- package/src/components/MediaGallery/index.ts +2 -0
- package/src/components/MediaGrids/MediaGrids.tsx +48 -0
- package/src/components/MediaGrids/MediaGrids.types.ts +14 -0
- package/src/components/MediaGrids/MediaGrids.variants.ts +16 -0
- package/src/components/MediaGrids/index.ts +2 -0
- package/src/components/MediaViewer/MediaViewer.tsx +345 -0
- package/src/components/MediaViewer/MediaViewer.types.ts +59 -0
- package/src/components/MediaViewer/MediaViewer.variants.ts +168 -0
- package/src/components/MediaViewer/index.ts +2 -0
- package/src/components/Menu/Menu.tsx +109 -0
- package/src/components/Menu/Menu.types.ts +37 -0
- package/src/components/Menu/Menu.variants.ts +29 -0
- package/src/components/Menu/index.ts +2 -0
- package/src/components/MenuButtonItem/MenuButtonItem.tsx +280 -0
- package/src/components/MenuButtonItem/MenuButtonItem.types.ts +91 -0
- package/src/components/MenuButtonItem/MenuButtonItem.variants.ts +223 -0
- package/src/components/MenuButtonItem/index.ts +8 -0
- package/src/components/MenuItem/MenuItem.tsx +211 -0
- package/src/components/MenuItem/MenuItem.types.ts +40 -0
- package/src/components/MenuItem/MenuItem.variants.ts +48 -0
- package/src/components/MenuItem/index.ts +2 -0
- package/src/components/MenuItemGroup/MenuItemGroup.tsx +91 -0
- package/src/components/MenuItemGroup/MenuItemGroup.types.ts +82 -0
- package/src/components/MenuItemGroup/MenuItemGroup.variants.ts +33 -0
- package/src/components/MenuItemGroup/index.ts +2 -0
- package/src/components/MenuList/MenuList.tsx +44 -0
- package/src/components/MenuList/MenuList.types.ts +28 -0
- package/src/components/MenuList/MenuList.variants.ts +2 -0
- package/src/components/MenuList/index.ts +2 -0
- package/src/components/Metric/Metric.tsx +584 -0
- package/src/components/Metric/Metric.types.ts +77 -0
- package/src/components/Metric/Metric.variants.ts +175 -0
- package/src/components/Metric/index.ts +8 -0
- package/src/components/Modal/Modal.tsx +139 -0
- package/src/components/Modal/Modal.types.ts +55 -0
- package/src/components/Modal/index.ts +2 -0
- package/src/components/ModalActions/ModalActions.tsx +176 -0
- package/src/components/ModalActions/ModalActions.types.ts +31 -0
- package/src/components/ModalActions/index.ts +2 -0
- package/src/components/ModalHeader/ModalHeader.tsx +207 -0
- package/src/components/ModalHeader/ModalHeader.types.ts +24 -0
- package/src/components/ModalHeader/index.ts +2 -0
- package/src/components/NavBar/NavBar.tsx +326 -0
- package/src/components/NavBar/NavBar.types.ts +78 -0
- package/src/components/NavBar/NavBar.variants.ts +139 -0
- package/src/components/NavBar/index.ts +2 -0
- package/src/components/NavHeader/NavHeader.tsx +292 -0
- package/src/components/NavHeader/NavHeader.types.ts +145 -0
- package/src/components/NavHeader/NavHeader.variants.ts +178 -0
- package/src/components/NavHeader/index.ts +2 -0
- package/src/components/NavHeaderActions/NavHeaderActions.tsx +161 -0
- package/src/components/NavHeaderActions/NavHeaderActions.types.ts +61 -0
- package/src/components/NavHeaderActions/NavHeaderActions.variants.ts +58 -0
- package/src/components/NavHeaderActions/index.ts +2 -0
- package/src/components/NavHeaderDropdownItem/NavHeaderDropdownItem.tsx +243 -0
- package/src/components/NavHeaderDropdownItem/NavHeaderDropdownItem.types.ts +76 -0
- package/src/components/NavHeaderDropdownItem/NavHeaderDropdownItem.variants.ts +133 -0
- package/src/components/NavHeaderDropdownItem/index.ts +5 -0
- package/src/components/NavHeaderDropdownItemList/NavHeaderDropdownItemList.tsx +64 -0
- package/src/components/NavHeaderDropdownItemList/NavHeaderDropdownItemList.types.ts +55 -0
- package/src/components/NavHeaderDropdownItemList/NavHeaderDropdownItemList.variants.ts +47 -0
- package/src/components/NavHeaderDropdownItemList/index.ts +5 -0
- package/src/components/NavHeaderMenuButton/NavHeaderMenuButton.tsx +52 -0
- package/src/components/NavHeaderMenuButton/NavHeaderMenuButton.types.ts +17 -0
- package/src/components/NavHeaderMenuButton/NavHeaderMenuButton.variants.ts +73 -0
- package/src/components/NavHeaderMenuButton/index.ts +2 -0
- package/src/components/NavHeaderMenuCard/NavHeaderMenuCard.tsx +126 -0
- package/src/components/NavHeaderMenuCard/NavHeaderMenuCard.types.ts +74 -0
- package/src/components/NavHeaderMenuCard/NavHeaderMenuCard.variants.ts +169 -0
- package/src/components/NavHeaderMenuCard/index.ts +6 -0
- package/src/components/NavHeaderMenuItem/NavHeaderMenuItem.tsx +164 -0
- package/src/components/NavHeaderMenuItem/NavHeaderMenuItem.types.ts +64 -0
- package/src/components/NavHeaderMenuItem/NavHeaderMenuItem.variants.ts +175 -0
- package/src/components/NavHeaderMenuItem/index.ts +2 -0
- package/src/components/NavItem/NavItem.tsx +210 -0
- package/src/components/NavItem/NavItem.types.ts +71 -0
- package/src/components/NavItem/NavItem.variants.ts +61 -0
- package/src/components/NavItem/index.ts +2 -0
- package/src/components/NavLabel/NavLabel.tsx +84 -0
- package/src/components/NavLabel/NavLabel.types.ts +55 -0
- package/src/components/NavLabel/NavLabel.variants.ts +68 -0
- package/src/components/NavLabel/index.ts +2 -0
- package/src/components/NavLogoPlaceholder/NavLogoPlaceholder.tsx +101 -0
- package/src/components/NavLogoPlaceholder/NavLogoPlaceholder.types.ts +27 -0
- package/src/components/NavLogoPlaceholder/NavLogoPlaceholder.variants.ts +42 -0
- package/src/components/NavLogoPlaceholder/index.ts +6 -0
- package/src/components/NotificationBanner/NotificationBanner.tsx +256 -0
- package/src/components/NotificationBanner/NotificationBanner.types.ts +77 -0
- package/src/components/NotificationBanner/NotificationBanner.variants.ts +109 -0
- package/src/components/NotificationBanner/index.ts +7 -0
- package/src/components/NotificationPopup/NotificationPopup.tsx +147 -0
- package/src/components/NotificationPopup/NotificationPopup.types.ts +51 -0
- package/src/components/NotificationPopup/NotificationPopup.variants.ts +145 -0
- package/src/components/NotificationPopup/index.ts +5 -0
- package/src/components/Notifications/Notifications.tsx +209 -0
- package/src/components/Notifications/Notifications.types.ts +68 -0
- package/src/components/Notifications/Notifications.variants.ts +89 -0
- package/src/components/Notifications/index.ts +2 -0
- package/src/components/Number/Number.tsx +497 -0
- package/src/components/Number/Number.types.ts +58 -0
- package/src/components/Number/Number.variants.ts +94 -0
- package/src/components/Number/index.ts +2 -0
- package/src/components/NumberInput/NumberInput.tsx +265 -0
- package/src/components/NumberInput/NumberInput.types.ts +110 -0
- package/src/components/NumberInput/NumberInput.variants.ts +205 -0
- package/src/components/NumberInput/index.ts +6 -0
- package/src/components/Pagination/Pagination.tsx +393 -0
- package/src/components/Pagination/Pagination.types.ts +26 -0
- package/src/components/Pagination/Pagination.variants.ts +88 -0
- package/src/components/Pagination/index.ts +3 -0
- package/src/components/PaginationButtonGroup/PaginationButtonGroup.tsx +132 -0
- package/src/components/PaginationButtonGroup/PaginationButtonGroup.types.ts +20 -0
- package/src/components/PaginationButtonGroup/PaginationButtonGroup.variants.ts +45 -0
- package/src/components/PaginationButtonGroup/index.ts +8 -0
- package/src/components/PaginationCells/PaginationCells.tsx +105 -0
- package/src/components/PaginationCells/PaginationCells.types.ts +31 -0
- package/src/components/PaginationCells/PaginationCells.variants.ts +96 -0
- package/src/components/PaginationCells/index.ts +9 -0
- package/src/components/PdfViewer/PdfViewer.tsx +265 -0
- package/src/components/PdfViewer/PdfViewer.types.ts +79 -0
- package/src/components/PdfViewer/PdfViewer.variants.ts +105 -0
- package/src/components/PdfViewer/index.ts +3 -0
- package/src/components/PieChartPanel/PieChartPanel.tsx +889 -0
- package/src/components/PieChartPanel/PieChartPanel.types.ts +130 -0
- package/src/components/PieChartPanel/PieChartPanel.variants.ts +156 -0
- package/src/components/PieChartPanel/index.ts +8 -0
- package/src/components/Popover/Popover.tsx +398 -0
- package/src/components/Popover/Popover.types.ts +155 -0
- package/src/components/Popover/Popover.variants.ts +147 -0
- package/src/components/Popover/index.ts +7 -0
- package/src/components/ProgressBar/ProgressBar.tsx +241 -0
- package/src/components/ProgressBar/ProgressBar.types.ts +22 -0
- package/src/components/ProgressBar/ProgressBar.variants.ts +54 -0
- package/src/components/ProgressBar/index.ts +2 -0
- package/src/components/ProgressCircle/ProgressCircle.tsx +369 -0
- package/src/components/ProgressCircle/ProgressCircle.types.ts +26 -0
- package/src/components/ProgressCircle/ProgressCircle.variants.ts +88 -0
- package/src/components/ProgressCircle/index.ts +7 -0
- package/src/components/Quote/Quote.tsx +210 -0
- package/src/components/Quote/Quote.types.ts +73 -0
- package/src/components/Quote/Quote.variants.ts +106 -0
- package/src/components/Quote/index.ts +2 -0
- package/src/components/RadialStepper/RadialStepper.tsx +166 -0
- package/src/components/RadialStepper/RadialStepper.types.ts +77 -0
- package/src/components/RadialStepper/RadialStepper.variants.ts +122 -0
- package/src/components/RadialStepper/index.ts +7 -0
- package/src/components/RadioButton/RadioButton.tsx +237 -0
- package/src/components/RadioButton/RadioButton.types.ts +18 -0
- package/src/components/RadioButton/index.ts +2 -0
- package/src/components/RadioLabel/RadioLabel.tsx +157 -0
- package/src/components/RadioLabel/RadioLabel.types.ts +53 -0
- package/src/components/RadioLabel/RadioLabel.variants.ts +36 -0
- package/src/components/RadioLabel/index.ts +2 -0
- package/src/components/RangeSlider/RangeSlider.tsx +389 -0
- package/src/components/RangeSlider/RangeSlider.types.ts +38 -0
- package/src/components/RangeSlider/RangeSlider.variants.ts +27 -0
- package/src/components/RangeSlider/index.ts +2 -0
- package/src/components/Rating/Rating.tsx +246 -0
- package/src/components/Rating/Rating.types.ts +37 -0
- package/src/components/Rating/Rating.variants.ts +52 -0
- package/src/components/Rating/index.ts +8 -0
- package/src/components/RatingOverview/RatingOverview.tsx +170 -0
- package/src/components/RatingOverview/RatingOverview.types.ts +37 -0
- package/src/components/RatingOverview/RatingOverview.variants.ts +50 -0
- package/src/components/RatingOverview/index.ts +2 -0
- package/src/components/RatingStar/RatingStar.tsx +76 -0
- package/src/components/RatingStar/RatingStar.types.ts +18 -0
- package/src/components/RatingStar/RatingStar.variants.ts +34 -0
- package/src/components/RatingStar/index.ts +7 -0
- package/src/components/RichTextEditor/RichTextEditor.tsx +1341 -0
- package/src/components/RichTextEditor/RichTextEditor.types.ts +127 -0
- package/src/components/RichTextEditor/RichTextEditor.variants.ts +231 -0
- package/src/components/RichTextEditor/index.ts +6 -0
- package/src/components/ScatterChart/ScatterChart.tsx +164 -0
- package/src/components/ScatterChart/ScatterChart.types.ts +42 -0
- package/src/components/ScatterChart/ScatterChart.variants.ts +162 -0
- package/src/components/ScatterChart/index.ts +2 -0
- package/src/components/SdaiaLogoAnimation/BGSVG.tsx +216 -0
- package/src/components/SdaiaLogoAnimation/SdaiaLogoAnimation.tsx +120 -0
- package/src/components/SdaiaLogoAnimation/SdaiaLogoAnimation.types.ts +13 -0
- package/src/components/SdaiaLogoAnimation/SdaiaLogoAnimation.variants.ts +22 -0
- package/src/components/SdaiaLogoAnimation/index.ts +2 -0
- package/src/components/SdaiaTouch2dAnimation/SdaiaTouch2dAnimation.tsx +55 -0
- package/src/components/SdaiaTouch2dAnimation/SdaiaTouch2dAnimation.types.ts +12 -0
- package/src/components/SdaiaTouch2dAnimation/SdaiaTouch2dAnimation.variants.ts +28 -0
- package/src/components/SdaiaTouch2dAnimation/Star.tsx +82 -0
- package/src/components/SdaiaTouch2dAnimation/StarShape.tsx +78 -0
- package/src/components/SdaiaTouch2dAnimation/index.ts +6 -0
- package/src/components/SecondNavHeader/SecondNavHeader.tsx +80 -0
- package/src/components/SecondNavHeader/SecondNavHeader.types.ts +41 -0
- package/src/components/SecondNavHeader/SecondNavHeader.variants.ts +42 -0
- package/src/components/SecondNavHeader/index.ts +2 -0
- package/src/components/Select/Select.tsx +351 -0
- package/src/components/Select/Select.types.ts +102 -0
- package/src/components/Select/Select.variants.ts +111 -0
- package/src/components/Select/index.ts +2 -0
- package/src/components/SelectMenuItem/SelectMenuItem.tsx +132 -0
- package/src/components/SelectMenuItem/SelectMenuItem.types.ts +47 -0
- package/src/components/SelectMenuItem/SelectMenuItem.variants.ts +56 -0
- package/src/components/SelectMenuItem/index.ts +2 -0
- package/src/components/SeriesLabel/SeriesLabel.tsx +76 -0
- package/src/components/SeriesLabel/SeriesLabel.types.ts +27 -0
- package/src/components/SeriesLabel/SeriesLabel.variants.ts +84 -0
- package/src/components/SeriesLabel/index.ts +2 -0
- package/src/components/Signature/Signature.tsx +905 -0
- package/src/components/Signature/Signature.types.ts +68 -0
- package/src/components/Signature/Signature.variants.ts +115 -0
- package/src/components/Signature/index.ts +2 -0
- package/src/components/Skeleton/Skeleton.tsx +21 -0
- package/src/components/Skeleton/Skeleton.types.ts +15 -0
- package/src/components/Skeleton/Skeleton.variants.ts +14 -0
- package/src/components/Skeleton/index.ts +2 -0
- package/src/components/SkeletonAvatar/SkeletonAvatar.tsx +21 -0
- package/src/components/SkeletonAvatar/SkeletonAvatar.types.ts +15 -0
- package/src/components/SkeletonAvatar/SkeletonAvatar.variants.ts +14 -0
- package/src/components/SkeletonAvatar/index.ts +2 -0
- package/src/components/SlideoutMenu/SlideoutMenu.tsx +225 -0
- package/src/components/SlideoutMenu/SlideoutMenu.types.ts +39 -0
- package/src/components/SlideoutMenu/SlideoutMenuDivider.tsx +10 -0
- package/src/components/SlideoutMenu/SlideoutMenuSection.tsx +39 -0
- package/src/components/SlideoutMenu/index.ts +5 -0
- package/src/components/SlideoutMenuFooter/SlideoutMenuFooter.tsx +96 -0
- package/src/components/SlideoutMenuFooter/SlideoutMenuFooter.types.ts +28 -0
- package/src/components/SlideoutMenuFooter/SlideoutMenuFooter.variants.ts +49 -0
- package/src/components/SlideoutMenuFooter/index.ts +6 -0
- package/src/components/SlideoutMenuHeader/SlideoutMenuHeader.tsx +83 -0
- package/src/components/SlideoutMenuHeader/SlideoutMenuHeader.types.ts +19 -0
- package/src/components/SlideoutMenuHeader/SlideoutMenuHeader.variants.ts +78 -0
- package/src/components/SlideoutMenuHeader/index.ts +2 -0
- package/src/components/Slider/Slider.tsx +259 -0
- package/src/components/Slider/Slider.types.ts +22 -0
- package/src/components/Slider/Slider.variants.ts +23 -0
- package/src/components/Slider/index.ts +2 -0
- package/src/components/Sparkline/Sparkline.tsx +130 -0
- package/src/components/Sparkline/Sparkline.types.ts +36 -0
- package/src/components/Sparkline/Sparkline.variants.ts +118 -0
- package/src/components/Sparkline/index.ts +2 -0
- package/src/components/StatusDot/StatusDot.tsx +82 -0
- package/src/components/StatusDot/StatusDot.types.ts +35 -0
- package/src/components/StatusDot/StatusDot.variants.ts +66 -0
- package/src/components/StatusDot/index.ts +8 -0
- package/src/components/StructuredList/StructuredList.tsx +79 -0
- package/src/components/StructuredList/StructuredList.types.ts +27 -0
- package/src/components/StructuredList/index.ts +2 -0
- package/src/components/StructuredListGroup/StructuredListGroup.tsx +76 -0
- package/src/components/StructuredListGroup/StructuredListGroup.types.ts +27 -0
- package/src/components/StructuredListGroup/StructuredListGroup.variants.ts +14 -0
- package/src/components/StructuredListGroup/index.ts +5 -0
- package/src/components/StructuredListHeader/StructuredListHeader.tsx +98 -0
- package/src/components/StructuredListHeader/StructuredListHeader.types.ts +26 -0
- package/src/components/StructuredListHeader/StructuredListHeader.variants.ts +24 -0
- package/src/components/StructuredListHeader/index.ts +5 -0
- package/src/components/StructuredListRow/StructuredListRow.tsx +144 -0
- package/src/components/StructuredListRow/StructuredListRow.types.ts +37 -0
- package/src/components/StructuredListRow/StructuredListRow.variants.ts +53 -0
- package/src/components/StructuredListRow/index.ts +6 -0
- package/src/components/SubHeaderItem/SubHeaderItem.tsx +37 -0
- package/src/components/SubHeaderItem/SubHeaderItem.types.ts +20 -0
- package/src/components/SubHeaderItem/SubHeaderItem.variants.ts +23 -0
- package/src/components/SubHeaderItem/index.ts +2 -0
- package/src/components/Switch/Switch.tsx +138 -0
- package/src/components/Switch/Switch.types.ts +18 -0
- package/src/components/Switch/Switch.variants.ts +49 -0
- package/src/components/Switch/index.ts +2 -0
- package/src/components/SwitchLabel/SwitchLabel.tsx +114 -0
- package/src/components/SwitchLabel/SwitchLabel.types.ts +27 -0
- package/src/components/SwitchLabel/SwitchLabel.variants.ts +28 -0
- package/src/components/SwitchLabel/index.ts +2 -0
- package/src/components/Tab/Tab.tsx +92 -0
- package/src/components/Tab/Tab.types.ts +34 -0
- package/src/components/Tab/Tab.variants.ts +79 -0
- package/src/components/Tab/index.ts +2 -0
- package/src/components/Table/Table.tsx +353 -0
- package/src/components/Table/Table.types.ts +80 -0
- package/src/components/Table/Table.variants.ts +110 -0
- package/src/components/Table/index.ts +10 -0
- package/src/components/TableOfContent/TableOfContent.tsx +33 -0
- package/src/components/TableOfContent/TableOfContent.types.ts +15 -0
- package/src/components/TableOfContent/TableOfContent.variants.ts +27 -0
- package/src/components/TableOfContent/index.ts +2 -0
- package/src/components/TableOfContentItem/TableOfContentItem.tsx +85 -0
- package/src/components/TableOfContentItem/TableOfContentItem.types.ts +23 -0
- package/src/components/TableOfContentItem/TableOfContentItem.variants.ts +109 -0
- package/src/components/TableOfContentItem/index.ts +2 -0
- package/src/components/TableOfContentList/TableOfContentList.tsx +60 -0
- package/src/components/TableOfContentList/TableOfContentList.types.ts +39 -0
- package/src/components/TableOfContentList/TableOfContentList.variants.ts +6 -0
- package/src/components/TableOfContentList/index.ts +2 -0
- package/src/components/Tabs/Tabs.tsx +80 -0
- package/src/components/Tabs/Tabs.types.ts +36 -0
- package/src/components/Tabs/Tabs.variants.ts +23 -0
- package/src/components/Tabs/index.ts +2 -0
- package/src/components/Tag/Tag.tsx +114 -0
- package/src/components/Tag/Tag.types.ts +32 -0
- package/src/components/Tag/Tag.variants.ts +57 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/TagCount/TagCount.tsx +45 -0
- package/src/components/TagCount/TagCount.types.ts +21 -0
- package/src/components/TagCount/TagCount.variants.ts +26 -0
- package/src/components/TagCount/index.ts +7 -0
- package/src/components/TextArea/TextArea.tsx +130 -0
- package/src/components/TextArea/TextArea.types.ts +20 -0
- package/src/components/TextArea/index.ts +2 -0
- package/src/components/TextInput/TextInput.tsx +568 -0
- package/src/components/TextInput/TextInput.types.ts +87 -0
- package/src/components/TextInput/TextInput.variants.ts +89 -0
- package/src/components/TextInput/TextInputTag.tsx +43 -0
- package/src/components/TextInput/TextInputTag.types.ts +14 -0
- package/src/components/TextInput/index.ts +4 -0
- package/src/components/Tooltip/Tooltip.tsx +229 -0
- package/src/components/Tooltip/Tooltip.types.ts +48 -0
- package/src/components/Tooltip/Tooltip.variants.ts +141 -0
- package/src/components/Tooltip/index.ts +10 -0
- package/src/components/TreeView/TreeView.tsx +130 -0
- package/src/components/TreeView/TreeView.types.ts +42 -0
- package/src/components/TreeView/TreeView.variants.ts +6 -0
- package/src/components/TreeView/index.ts +3 -0
- package/src/components/TreeViewItem/TreeViewItem.tsx +108 -0
- package/src/components/TreeViewItem/TreeViewItem.types.ts +34 -0
- package/src/components/TreeViewItem/TreeViewItem.variants.ts +40 -0
- package/src/components/TreeViewItem/index.ts +3 -0
- package/src/components/VerticalTabs/VerticalTabs.tsx +84 -0
- package/src/components/VerticalTabs/VerticalTabs.types.ts +37 -0
- package/src/components/VerticalTabs/VerticalTabs.variants.ts +43 -0
- package/src/components/VerticalTabs/index.ts +6 -0
- package/src/components/VideoPlayer/VideoPlayer.tsx +470 -0
- package/src/components/VideoPlayer/VideoPlayer.types.ts +59 -0
- package/src/components/VideoPlayer/VideoPlayer.variants.ts +134 -0
- package/src/components/VideoPlayer/index.ts +2 -0
- package/src/components/XAxis/XAxis.tsx +67 -0
- package/src/components/XAxis/XAxis.types.ts +30 -0
- package/src/components/XAxis/XAxis.variants.ts +77 -0
- package/src/components/XAxis/index.ts +2 -0
- package/src/components/YAxis/YAxis.tsx +78 -0
- package/src/components/YAxis/YAxis.types.ts +41 -0
- package/src/components/YAxis/YAxis.variants.ts +94 -0
- package/src/components/YAxis/index.ts +2 -0
- package/src/dga-icons.ts +18 -0
- package/src/hooks/usePresence.ts +73 -0
- package/src/icons/AIIcon.tsx +34 -0
- package/src/icons/AaIcon.tsx +34 -0
- package/src/icons/AlertCircle02Icon.tsx +28 -0
- package/src/icons/AlertCircleIcon.tsx +29 -0
- package/src/icons/AlertCircleSVG.tsx +19 -0
- package/src/icons/AlertCircleWarningIcon.tsx +37 -0
- package/src/icons/AlertTriangleIcon.tsx +27 -0
- package/src/icons/AlignCenterIcon.tsx +31 -0
- package/src/icons/AlignLeftIcon.tsx +31 -0
- package/src/icons/AlignRightIcon.tsx +31 -0
- package/src/icons/ArrowDownIcon.tsx +27 -0
- package/src/icons/ArrowDownLeft01Icon.tsx +32 -0
- package/src/icons/ArrowDownSVG.tsx +16 -0
- package/src/icons/ArrowIcon.tsx +38 -0
- package/src/icons/ArrowLeft01Icon.tsx +23 -0
- package/src/icons/ArrowLeft02SVG.tsx +19 -0
- package/src/icons/ArrowLeftIcon.tsx +28 -0
- package/src/icons/ArrowRight01Icon.tsx +23 -0
- package/src/icons/ArrowRight01SVG.tsx +16 -0
- package/src/icons/ArrowRightIcon.tsx +28 -0
- package/src/icons/ArrowUpIcon.tsx +27 -0
- package/src/icons/ArrowUpRight01Icon.tsx +31 -0
- package/src/icons/ArrowUpSVG.tsx +16 -0
- package/src/icons/AtIcon.tsx +33 -0
- package/src/icons/BeakBottom.tsx +13 -0
- package/src/icons/BeakDown.tsx +29 -0
- package/src/icons/BeakLeft.tsx +13 -0
- package/src/icons/BeakRight.tsx +11 -0
- package/src/icons/BeakTop.tsx +13 -0
- package/src/icons/BeakUp.tsx +23 -0
- package/src/icons/BellCircleIcon.tsx +33 -0
- package/src/icons/BellIcon.tsx +27 -0
- package/src/icons/BoldIcon.tsx +33 -0
- package/src/icons/CalendarIcon.tsx +35 -0
- package/src/icons/ChartsIcon.tsx +25 -0
- package/src/icons/CheckCircleIcon.tsx +29 -0
- package/src/icons/ChevronDownIcon.tsx +30 -0
- package/src/icons/ChevronDownSmIcon.tsx +34 -0
- package/src/icons/ChevronLeftIcon.tsx +20 -0
- package/src/icons/ChevronRightIcon.tsx +36 -0
- package/src/icons/ClearIcon.tsx +34 -0
- package/src/icons/ClockIcon.tsx +34 -0
- package/src/icons/CloseIcon.tsx +29 -0
- package/src/icons/CloudUploadIcon.tsx +21 -0
- package/src/icons/CodeSnippetChevronDownIcon.tsx +25 -0
- package/src/icons/CodeSnippetCopyIcon.tsx +24 -0
- package/src/icons/CodeSnippetStarIcon.tsx +25 -0
- package/src/icons/ColorSquareIcon.tsx +42 -0
- package/src/icons/ComponentsIcon.tsx +25 -0
- package/src/icons/DGALogoSVG.tsx +133 -0
- package/src/icons/DeleteIcon.tsx +24 -0
- package/src/icons/DownloadIcon.tsx +29 -0
- package/src/icons/DragHandleVerticalIcon.tsx +23 -0
- package/src/icons/FeedbackEmojiDislikeIcon.tsx +20 -0
- package/src/icons/FeedbackEmojiLikeIcon.tsx +20 -0
- package/src/icons/FeedbackEmojiNeutralIcon.tsx +20 -0
- package/src/icons/FeedbackThumbDislikeFilledIcon.tsx +26 -0
- package/src/icons/FeedbackThumbDislikeIcon.tsx +20 -0
- package/src/icons/FeedbackThumbLikeFilledIcon.tsx +20 -0
- package/src/icons/FeedbackThumbLikeIcon.tsx +20 -0
- package/src/icons/FileUploadItemCloseIcon.tsx +30 -0
- package/src/icons/FileUploadItemEmptyFileIcon.tsx +27 -0
- package/src/icons/FileUploadItemPdfIcon.tsx +52 -0
- package/src/icons/FilterFunnelIcon.tsx +34 -0
- package/src/icons/FilterIcon.tsx +31 -0
- package/src/icons/FitIcon.tsx +22 -0
- package/src/icons/FolderFilledIcon.tsx +25 -0
- package/src/icons/FolderIcon.tsx +28 -0
- package/src/icons/FoundationsIcon.tsx +25 -0
- package/src/icons/FullscreenExitIcon.tsx +71 -0
- package/src/icons/FullscreenIcon.tsx +70 -0
- package/src/icons/GoBackward10Icon.tsx +27 -0
- package/src/icons/GoForward10Icon.tsx +27 -0
- package/src/icons/GridSquaresIcon.tsx +40 -0
- package/src/icons/HamburgerIcon.tsx +28 -0
- package/src/icons/HelpCircleIcon.tsx +28 -0
- package/src/icons/HomeIcon.tsx +22 -0
- package/src/icons/HomeSVG.tsx +32 -0
- package/src/icons/IconFactory.ts +157 -0
- package/src/icons/Image01SVG.tsx +18 -0
- package/src/icons/ImageIcon.tsx +31 -0
- package/src/icons/InfoCircleIcon.tsx +31 -0
- package/src/icons/InfoCircleSVG.tsx +20 -0
- package/src/icons/InfoIcon.tsx +27 -0
- package/src/icons/ItalicIcon.tsx +31 -0
- package/src/icons/LearnMoreArrowIcon.tsx +22 -0
- package/src/icons/LinkCircleSVG.tsx +58 -0
- package/src/icons/LinkIcon.tsx +33 -0
- package/src/icons/ListLinesIcon.tsx +40 -0
- package/src/icons/LockCircleSVG.tsx +60 -0
- package/src/icons/LockIcon.tsx +36 -0
- package/src/icons/Logout02Icon.tsx +19 -0
- package/src/icons/MicrophoneIcon.tsx +20 -0
- package/src/icons/MinusIcon.tsx +40 -0
- package/src/icons/MoreHorizontalIcon.tsx +24 -0
- package/src/icons/MoreVerticalIcon.tsx +40 -0
- package/src/icons/NextIcon.tsx +44 -0
- package/src/icons/PDFSvg.tsx +39 -0
- package/src/icons/PatternsIcon.tsx +21 -0
- package/src/icons/PauseIcon.tsx +30 -0
- package/src/icons/PencilIcon.tsx +36 -0
- package/src/icons/PlayButtonCardIcon.tsx +41 -0
- package/src/icons/PlayCenterIcon.tsx +45 -0
- package/src/icons/PlayIcon.tsx +27 -0
- package/src/icons/PlayIconSolid.tsx +33 -0
- package/src/icons/PlayIconStroke.tsx +22 -0
- package/src/icons/PlayIconTwotone.tsx +36 -0
- package/src/icons/PlayVideoIcon.tsx +31 -0
- package/src/icons/PlusCircleIcon.tsx +41 -0
- package/src/icons/PlusIcon.tsx +43 -0
- package/src/icons/PreviousIcon.tsx +44 -0
- package/src/icons/PrintIcon.tsx +25 -0
- package/src/icons/QuestionMarkGrayBgIcon.tsx +52 -0
- package/src/icons/QuestionMarkIcon.tsx +47 -0
- package/src/icons/RedoIcon.tsx +41 -0
- package/src/icons/SaudiFlagSVG.tsx +31 -0
- package/src/icons/SdaiaNavLogo.tsx +345 -0
- package/src/icons/SearchIcon.tsx +34 -0
- package/src/icons/SettingsIcon.tsx +25 -0
- package/src/icons/ShareIcon.tsx +26 -0
- package/src/icons/SidebarCollapseIcon.tsx +25 -0
- package/src/icons/SmileIcon.tsx +34 -0
- package/src/icons/SortIcon.tsx +20 -0
- package/src/icons/StarIcon.tsx +38 -0
- package/src/icons/StatusBadgeIcon.tsx +19 -0
- package/src/icons/TextTIcon.tsx +33 -0
- package/src/icons/Tick02Icon.tsx +32 -0
- package/src/icons/TickIcon.tsx +33 -0
- package/src/icons/TrashIcon.tsx +44 -0
- package/src/icons/UnderlineIcon.tsx +31 -0
- package/src/icons/UndoIcon.tsx +31 -0
- package/src/icons/UploadArrowIcon.tsx +40 -0
- package/src/icons/UserIcon.tsx +21 -0
- package/src/icons/VolumeHighIcon.tsx +27 -0
- package/src/icons/VolumeMuteIcon.tsx +53 -0
- package/src/icons/XCircleIcon.tsx +32 -0
- package/src/icons/XIcon.tsx +27 -0
- package/src/icons/XIconSVG.tsx +16 -0
- package/src/icons/XSmallIcon.tsx +29 -0
- package/src/icons/XSvg.tsx +18 -0
- package/src/icons/ZoomInIcon.tsx +25 -0
- package/src/icons/index.ts +5 -0
- package/src/index.ts +699 -0
- package/src/lib/cn.ts +42 -0
- package/src/styles/motion.css +120 -0
- package/src/styles.css +242 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useState, type FormEvent } from 'react';
|
|
4
|
+
import { cn } from '../../lib/cn';
|
|
5
|
+
import { Button } from '../Button';
|
|
6
|
+
import { Divider } from '../Divider';
|
|
7
|
+
import { Link } from '../Link';
|
|
8
|
+
import { TextInput } from '../TextInput';
|
|
9
|
+
import type {
|
|
10
|
+
FooterAppStoresProps,
|
|
11
|
+
FooterBottomBarProps,
|
|
12
|
+
FooterInlineBarProps,
|
|
13
|
+
FooterLinkColumnsProps,
|
|
14
|
+
FooterNewsletterProps,
|
|
15
|
+
FooterProps,
|
|
16
|
+
FooterSocialLinksProps,
|
|
17
|
+
} from './Footer.types';
|
|
18
|
+
import {
|
|
19
|
+
APP_STORES_ROOT,
|
|
20
|
+
BOTTOM_BAR_COPYRIGHT,
|
|
21
|
+
BOTTOM_BAR_EXTRAS,
|
|
22
|
+
BOTTOM_BAR_LEGAL,
|
|
23
|
+
BOTTOM_BAR_ROOT,
|
|
24
|
+
INLINE_BAR_END,
|
|
25
|
+
INLINE_BAR_LINKS,
|
|
26
|
+
INLINE_BAR_ROOT,
|
|
27
|
+
LINK_COLUMNS,
|
|
28
|
+
NEWSLETTER_DESCRIPTION,
|
|
29
|
+
NEWSLETTER_FORM,
|
|
30
|
+
NEWSLETTER_HEADING,
|
|
31
|
+
NEWSLETTER_ROOT,
|
|
32
|
+
NEWSLETTER_TEXT_COLUMN,
|
|
33
|
+
ROOT_BASE,
|
|
34
|
+
ROOT_COMPACT,
|
|
35
|
+
SOCIAL_LINKS_ROOT,
|
|
36
|
+
} from './Footer.variants';
|
|
37
|
+
|
|
38
|
+
/* ─────────────────────────────────────────────────────────────
|
|
39
|
+
Footer.LinkColumns
|
|
40
|
+
Grid container for 1–6 `<FooterLinkList />` children. Responsive
|
|
41
|
+
by default (1 col mobile → 2 cols tablet → auto-fit desktop).
|
|
42
|
+
───────────────────────────────────────────────────────────── */
|
|
43
|
+
const FooterLinkColumns = forwardRef<HTMLDivElement, FooterLinkColumnsProps>(
|
|
44
|
+
function FooterLinkColumns({ className, children, ...rest }, ref) {
|
|
45
|
+
return (
|
|
46
|
+
<div
|
|
47
|
+
ref={ref}
|
|
48
|
+
data-slot="footer-link-columns"
|
|
49
|
+
className={cn(LINK_COLUMNS, className)}
|
|
50
|
+
{...rest}
|
|
51
|
+
>
|
|
52
|
+
{children}
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
},
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
/* ─────────────────────────────────────────────────────────────
|
|
59
|
+
Footer.Newsletter
|
|
60
|
+
Heading + description + email form. `onSubmit` receives the typed
|
|
61
|
+
email; the native submit event is provided so consumers can
|
|
62
|
+
`preventDefault()` or integrate with their own form library.
|
|
63
|
+
───────────────────────────────────────────────────────────── */
|
|
64
|
+
const FooterNewsletter = forwardRef<HTMLDivElement, FooterNewsletterProps>(
|
|
65
|
+
function FooterNewsletter(
|
|
66
|
+
{
|
|
67
|
+
heading,
|
|
68
|
+
description,
|
|
69
|
+
inputPlaceholder = 'name@example.com',
|
|
70
|
+
submitLabel = 'Subscribe',
|
|
71
|
+
inputLabel = 'Email address',
|
|
72
|
+
inputName = 'email',
|
|
73
|
+
onSubmit,
|
|
74
|
+
dir,
|
|
75
|
+
className,
|
|
76
|
+
...rest
|
|
77
|
+
},
|
|
78
|
+
ref,
|
|
79
|
+
) {
|
|
80
|
+
const [value, setValue] = useState('');
|
|
81
|
+
|
|
82
|
+
const handleSubmit = (event: FormEvent<HTMLFormElement>) => {
|
|
83
|
+
if (!onSubmit) {
|
|
84
|
+
// No consumer handler — let the browser do its default thing but
|
|
85
|
+
// still emit `preventDefault` so we don't accidentally navigate.
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
onSubmit(value, event);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<div
|
|
94
|
+
ref={ref}
|
|
95
|
+
dir={dir}
|
|
96
|
+
data-slot="footer-newsletter"
|
|
97
|
+
className={cn(NEWSLETTER_ROOT, className)}
|
|
98
|
+
{...rest}
|
|
99
|
+
>
|
|
100
|
+
<div data-slot="footer-newsletter-text" className={NEWSLETTER_TEXT_COLUMN}>
|
|
101
|
+
{heading != null ? (
|
|
102
|
+
<p className={NEWSLETTER_HEADING} dir="auto">
|
|
103
|
+
{heading}
|
|
104
|
+
</p>
|
|
105
|
+
) : null}
|
|
106
|
+
{description != null ? (
|
|
107
|
+
<p className={NEWSLETTER_DESCRIPTION} dir="auto">
|
|
108
|
+
{description}
|
|
109
|
+
</p>
|
|
110
|
+
) : null}
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<form
|
|
114
|
+
data-slot="footer-newsletter-form"
|
|
115
|
+
className={NEWSLETTER_FORM}
|
|
116
|
+
onSubmit={handleSubmit}
|
|
117
|
+
noValidate
|
|
118
|
+
>
|
|
119
|
+
<TextInput
|
|
120
|
+
type="email"
|
|
121
|
+
name={inputName}
|
|
122
|
+
aria-label={inputLabel}
|
|
123
|
+
placeholder={inputPlaceholder}
|
|
124
|
+
value={value}
|
|
125
|
+
onChange={(event) => setValue(event.currentTarget.value)}
|
|
126
|
+
fullWidth
|
|
127
|
+
/>
|
|
128
|
+
<Button type="submit" variant="primary">
|
|
129
|
+
{submitLabel}
|
|
130
|
+
</Button>
|
|
131
|
+
</form>
|
|
132
|
+
</div>
|
|
133
|
+
);
|
|
134
|
+
},
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
/* ─────────────────────────────────────────────────────────────
|
|
138
|
+
Footer.AppStores — wrap for two or more app-store buttons.
|
|
139
|
+
───────────────────────────────────────────────────────────── */
|
|
140
|
+
const FooterAppStores = forwardRef<HTMLDivElement, FooterAppStoresProps>(
|
|
141
|
+
function FooterAppStores({ className, children, ...rest }, ref) {
|
|
142
|
+
return (
|
|
143
|
+
<div
|
|
144
|
+
ref={ref}
|
|
145
|
+
data-slot="footer-app-stores"
|
|
146
|
+
className={cn(APP_STORES_ROOT, className)}
|
|
147
|
+
{...rest}
|
|
148
|
+
>
|
|
149
|
+
{children}
|
|
150
|
+
</div>
|
|
151
|
+
);
|
|
152
|
+
},
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
/* ─────────────────────────────────────────────────────────────
|
|
156
|
+
Footer.SocialLinks — wrap for a row of social icon anchors.
|
|
157
|
+
───────────────────────────────────────────────────────────── */
|
|
158
|
+
const FooterSocialLinks = forwardRef<HTMLDivElement, FooterSocialLinksProps>(
|
|
159
|
+
function FooterSocialLinks({ className, children, ...rest }, ref) {
|
|
160
|
+
return (
|
|
161
|
+
<nav
|
|
162
|
+
ref={ref as never}
|
|
163
|
+
aria-label="Social media"
|
|
164
|
+
data-slot="footer-social-links"
|
|
165
|
+
className={cn(SOCIAL_LINKS_ROOT, className)}
|
|
166
|
+
{...rest}
|
|
167
|
+
>
|
|
168
|
+
{children}
|
|
169
|
+
</nav>
|
|
170
|
+
);
|
|
171
|
+
},
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
/* ─────────────────────────────────────────────────────────────
|
|
175
|
+
Footer.BottomBar
|
|
176
|
+
Logo on the start edge + legal block (copyright + small links)
|
|
177
|
+
on the end edge. Optional divider above. Stacks vertically on
|
|
178
|
+
narrow viewports.
|
|
179
|
+
───────────────────────────────────────────────────────────── */
|
|
180
|
+
const FooterBottomBar = forwardRef<HTMLDivElement, FooterBottomBarProps>(
|
|
181
|
+
function FooterBottomBar(
|
|
182
|
+
{ logo, copyright, extraLinks, divider = true, dir, className, ...rest },
|
|
183
|
+
ref,
|
|
184
|
+
) {
|
|
185
|
+
return (
|
|
186
|
+
<div ref={ref} dir={dir} data-slot="footer-bottom-bar-wrapper" className="w-full flex flex-col items-start gap-spacing-5xl">
|
|
187
|
+
{divider ? <Divider lineType="horizontal" color="neutral" thickness="hairline" length="full" /> : null}
|
|
188
|
+
|
|
189
|
+
<div
|
|
190
|
+
data-slot="footer-bottom-bar"
|
|
191
|
+
className={cn(BOTTOM_BAR_ROOT, className)}
|
|
192
|
+
{...rest}
|
|
193
|
+
>
|
|
194
|
+
{logo != null ? (
|
|
195
|
+
<div data-slot="footer-bottom-bar-logo" className="flex items-center shrink-0">
|
|
196
|
+
{logo}
|
|
197
|
+
</div>
|
|
198
|
+
) : null}
|
|
199
|
+
|
|
200
|
+
{copyright != null || (extraLinks && extraLinks.length > 0) ? (
|
|
201
|
+
<div data-slot="footer-bottom-bar-legal" className={BOTTOM_BAR_LEGAL}>
|
|
202
|
+
{copyright != null ? (
|
|
203
|
+
<p className={BOTTOM_BAR_COPYRIGHT} dir="auto">
|
|
204
|
+
{copyright}
|
|
205
|
+
</p>
|
|
206
|
+
) : null}
|
|
207
|
+
|
|
208
|
+
{extraLinks && extraLinks.length > 0 ? (
|
|
209
|
+
<div className={BOTTOM_BAR_EXTRAS}>
|
|
210
|
+
{extraLinks.map((link, index) => {
|
|
211
|
+
const { id, label, href = '#', onClick, ...anchorRest } = link;
|
|
212
|
+
return (
|
|
213
|
+
<Link
|
|
214
|
+
key={id ?? index}
|
|
215
|
+
href={href}
|
|
216
|
+
size="sm"
|
|
217
|
+
variant="neutral"
|
|
218
|
+
onClick={onClick}
|
|
219
|
+
{...anchorRest}
|
|
220
|
+
>
|
|
221
|
+
{label}
|
|
222
|
+
</Link>
|
|
223
|
+
);
|
|
224
|
+
})}
|
|
225
|
+
</div>
|
|
226
|
+
) : null}
|
|
227
|
+
</div>
|
|
228
|
+
) : null}
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
);
|
|
232
|
+
},
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
/* ─────────────────────────────────────────────────────────────
|
|
236
|
+
Footer.InlineBar
|
|
237
|
+
Compact single-row layout used by Figma's Small 1 / Small 2
|
|
238
|
+
variants: logo on the start edge, inline links in the middle,
|
|
239
|
+
optional copyright + extras on the end edge.
|
|
240
|
+
───────────────────────────────────────────────────────────── */
|
|
241
|
+
const FooterInlineBar = forwardRef<HTMLDivElement, FooterInlineBarProps>(
|
|
242
|
+
function FooterInlineBar(
|
|
243
|
+
{ logo, links, extraLinks, copyright, dir, className, ...rest },
|
|
244
|
+
ref,
|
|
245
|
+
) {
|
|
246
|
+
return (
|
|
247
|
+
<div
|
|
248
|
+
ref={ref}
|
|
249
|
+
dir={dir}
|
|
250
|
+
data-slot="footer-inline-bar"
|
|
251
|
+
className={cn(INLINE_BAR_ROOT, className)}
|
|
252
|
+
{...rest}
|
|
253
|
+
>
|
|
254
|
+
{logo != null ? (
|
|
255
|
+
<div data-slot="footer-inline-bar-logo" className="flex items-center shrink-0 md:flex-1">
|
|
256
|
+
{logo}
|
|
257
|
+
</div>
|
|
258
|
+
) : null}
|
|
259
|
+
|
|
260
|
+
{links && links.length > 0 ? (
|
|
261
|
+
<nav aria-label="Footer" className={INLINE_BAR_LINKS}>
|
|
262
|
+
{links.map((link, index) => {
|
|
263
|
+
const { id, label, href = '#', onClick, ...anchorRest } = link;
|
|
264
|
+
return (
|
|
265
|
+
<Link
|
|
266
|
+
key={id ?? index}
|
|
267
|
+
href={href}
|
|
268
|
+
size="md"
|
|
269
|
+
variant="primary"
|
|
270
|
+
onClick={onClick}
|
|
271
|
+
{...anchorRest}
|
|
272
|
+
>
|
|
273
|
+
{label}
|
|
274
|
+
</Link>
|
|
275
|
+
);
|
|
276
|
+
})}
|
|
277
|
+
</nav>
|
|
278
|
+
) : null}
|
|
279
|
+
|
|
280
|
+
{copyright != null || (extraLinks && extraLinks.length > 0) ? (
|
|
281
|
+
<div className={cn(INLINE_BAR_END, 'md:flex-1')}>
|
|
282
|
+
{copyright != null ? (
|
|
283
|
+
<p className={BOTTOM_BAR_COPYRIGHT} dir="auto">
|
|
284
|
+
{copyright}
|
|
285
|
+
</p>
|
|
286
|
+
) : null}
|
|
287
|
+
{extraLinks && extraLinks.length > 0 ? (
|
|
288
|
+
<div className={BOTTOM_BAR_EXTRAS}>
|
|
289
|
+
{extraLinks.map((link, index) => {
|
|
290
|
+
const { id, label, href = '#', onClick, ...anchorRest } = link;
|
|
291
|
+
return (
|
|
292
|
+
<Link
|
|
293
|
+
key={id ?? index}
|
|
294
|
+
href={href}
|
|
295
|
+
size="sm"
|
|
296
|
+
variant="neutral"
|
|
297
|
+
onClick={onClick}
|
|
298
|
+
{...anchorRest}
|
|
299
|
+
>
|
|
300
|
+
{label}
|
|
301
|
+
</Link>
|
|
302
|
+
);
|
|
303
|
+
})}
|
|
304
|
+
</div>
|
|
305
|
+
) : null}
|
|
306
|
+
</div>
|
|
307
|
+
) : null}
|
|
308
|
+
</div>
|
|
309
|
+
);
|
|
310
|
+
},
|
|
311
|
+
);
|
|
312
|
+
|
|
313
|
+
/* ─────────────────────────────────────────────────────────────
|
|
314
|
+
Root
|
|
315
|
+
───────────────────────────────────────────────────────────── */
|
|
316
|
+
|
|
317
|
+
interface FooterComponent
|
|
318
|
+
extends React.ForwardRefExoticComponent<
|
|
319
|
+
FooterProps & React.RefAttributes<HTMLElement>
|
|
320
|
+
> {
|
|
321
|
+
LinkColumns: typeof FooterLinkColumns;
|
|
322
|
+
Newsletter: typeof FooterNewsletter;
|
|
323
|
+
AppStores: typeof FooterAppStores;
|
|
324
|
+
SocialLinks: typeof FooterSocialLinks;
|
|
325
|
+
BottomBar: typeof FooterBottomBar;
|
|
326
|
+
InlineBar: typeof FooterInlineBar;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
const FooterBase = forwardRef<HTMLElement, FooterProps>(function Footer(
|
|
330
|
+
{ className, children, dir: dirProp, rtl = false, compact = false, ...rest },
|
|
331
|
+
ref,
|
|
332
|
+
) {
|
|
333
|
+
const dir = dirProp ?? (rtl ? 'rtl' : undefined);
|
|
334
|
+
return (
|
|
335
|
+
<footer
|
|
336
|
+
ref={ref}
|
|
337
|
+
dir={dir}
|
|
338
|
+
data-slot="footer"
|
|
339
|
+
className={cn(compact ? ROOT_COMPACT : ROOT_BASE, className)}
|
|
340
|
+
{...rest}
|
|
341
|
+
>
|
|
342
|
+
{children}
|
|
343
|
+
</footer>
|
|
344
|
+
);
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
export const Footer = FooterBase as FooterComponent;
|
|
348
|
+
Footer.LinkColumns = FooterLinkColumns;
|
|
349
|
+
Footer.Newsletter = FooterNewsletter;
|
|
350
|
+
Footer.AppStores = FooterAppStores;
|
|
351
|
+
Footer.SocialLinks = FooterSocialLinks;
|
|
352
|
+
Footer.BottomBar = FooterBottomBar;
|
|
353
|
+
Footer.InlineBar = FooterInlineBar;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AnchorHTMLAttributes,
|
|
3
|
+
FormEventHandler,
|
|
4
|
+
HTMLAttributes,
|
|
5
|
+
MouseEventHandler,
|
|
6
|
+
ReactNode,
|
|
7
|
+
} from 'react';
|
|
8
|
+
|
|
9
|
+
/* ─────────────────────────────────────────────────────────────
|
|
10
|
+
Footer (root)
|
|
11
|
+
───────────────────────────────────────────────────────────── */
|
|
12
|
+
|
|
13
|
+
export interface FooterProps extends HTMLAttributes<HTMLElement> {
|
|
14
|
+
/** Direction — applied to the root and drives RTL layout. */
|
|
15
|
+
dir?: 'ltr' | 'rtl';
|
|
16
|
+
/** @deprecated Use `dir="rtl"` instead. */
|
|
17
|
+
rtl?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Compact vertical spacing. When `true` the root uses the "Small" footer
|
|
20
|
+
* padding from Figma (shorter `py`, same `px`). Use for minimal footers
|
|
21
|
+
* that do not include link columns or a newsletter block.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
compact?: boolean;
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ─────────────────────────────────────────────────────────────
|
|
29
|
+
Footer.LinkColumns — grid wrapper for FooterLinkList instances
|
|
30
|
+
───────────────────────────────────────────────────────────── */
|
|
31
|
+
|
|
32
|
+
export interface FooterLinkColumnsProps extends HTMLAttributes<HTMLDivElement> {
|
|
33
|
+
/**
|
|
34
|
+
* Each child is treated as a column. On desktop the children sit side by
|
|
35
|
+
* side (`flex-1`); on tablet they wrap into two columns; on mobile they
|
|
36
|
+
* stack vertically at full width. Typically rendered with
|
|
37
|
+
* `<FooterLinkList />` children.
|
|
38
|
+
*/
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* ─────────────────────────────────────────────────────────────
|
|
43
|
+
Footer.Newsletter — heading + description + email input + submit
|
|
44
|
+
───────────────────────────────────────────────────────────── */
|
|
45
|
+
|
|
46
|
+
export interface FooterNewsletterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
|
|
47
|
+
/** Bold title (Text md/Medium). */
|
|
48
|
+
heading?: ReactNode;
|
|
49
|
+
/** Supporting copy under the heading (Text sm/Regular). */
|
|
50
|
+
description?: ReactNode;
|
|
51
|
+
/** Placeholder for the email input. @default 'name@example.com' */
|
|
52
|
+
inputPlaceholder?: string;
|
|
53
|
+
/** Submit button label. @default 'Subscribe' */
|
|
54
|
+
submitLabel?: ReactNode;
|
|
55
|
+
/** Accessible label for the email input. @default 'Email address' */
|
|
56
|
+
inputLabel?: string;
|
|
57
|
+
/** Name attribute for the email input. @default 'email' */
|
|
58
|
+
inputName?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Fired on form submit. Receives the typed email and the native submit
|
|
61
|
+
* event; call `event.preventDefault()` to block default navigation.
|
|
62
|
+
*/
|
|
63
|
+
onSubmit?: (value: string, event: React.FormEvent<HTMLFormElement>) => void;
|
|
64
|
+
/** Direction override for the newsletter block. */
|
|
65
|
+
dir?: 'ltr' | 'rtl';
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ─────────────────────────────────────────────────────────────
|
|
69
|
+
Footer.AppStores — row of (typically two) app-store buttons
|
|
70
|
+
───────────────────────────────────────────────────────────── */
|
|
71
|
+
|
|
72
|
+
export interface FooterAppStoresProps extends HTMLAttributes<HTMLDivElement> {
|
|
73
|
+
/** Button elements (e.g. App Store + Google Play). */
|
|
74
|
+
children?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* ─────────────────────────────────────────────────────────────
|
|
78
|
+
Footer.SocialLinks — row of social icon buttons
|
|
79
|
+
───────────────────────────────────────────────────────────── */
|
|
80
|
+
|
|
81
|
+
export interface FooterSocialLinksProps extends HTMLAttributes<HTMLDivElement> {
|
|
82
|
+
/** Icon anchor children (`<a>` with a social glyph). */
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* ─────────────────────────────────────────────────────────────
|
|
87
|
+
Footer.BottomBar — logo + legal info row, divider optional
|
|
88
|
+
───────────────────────────────────────────────────────────── */
|
|
89
|
+
|
|
90
|
+
/** Item rendered in the BottomBar's small "Terms / Privacy" link row. */
|
|
91
|
+
export interface FooterBottomBarExtraLink
|
|
92
|
+
extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children' | 'onClick'> {
|
|
93
|
+
id?: string;
|
|
94
|
+
label: ReactNode;
|
|
95
|
+
href?: string;
|
|
96
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface FooterBottomBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
100
|
+
/**
|
|
101
|
+
* Brand mark rendered on the start edge. Typically a
|
|
102
|
+
* `<NavLogoPlaceholder size="medium" />`.
|
|
103
|
+
*/
|
|
104
|
+
logo?: ReactNode;
|
|
105
|
+
/** Legal / copyright line (Text sm/Semibold). */
|
|
106
|
+
copyright?: ReactNode;
|
|
107
|
+
/**
|
|
108
|
+
* Small secondary links (Text sm/Regular, neutral color) rendered under
|
|
109
|
+
* the copyright line. Figma ships "Terms and Conditions" + "Privacy
|
|
110
|
+
* Policy" as defaults, but any number of links is supported.
|
|
111
|
+
*/
|
|
112
|
+
extraLinks?: FooterBottomBarExtraLink[];
|
|
113
|
+
/**
|
|
114
|
+
* Show a hairline `<Divider />` above the bottom bar. Matches the Large
|
|
115
|
+
* variants that separate link columns / newsletter from the legal row.
|
|
116
|
+
* @default true
|
|
117
|
+
*/
|
|
118
|
+
divider?: boolean;
|
|
119
|
+
/** Direction override. */
|
|
120
|
+
dir?: 'ltr' | 'rtl';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* ─────────────────────────────────────────────────────────────
|
|
124
|
+
Footer.InlineBar — minimal single-row variant (Small 1/2)
|
|
125
|
+
───────────────────────────────────────────────────────────── */
|
|
126
|
+
|
|
127
|
+
export interface FooterInlineBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
128
|
+
/** Brand mark rendered on the start edge. */
|
|
129
|
+
logo?: ReactNode;
|
|
130
|
+
/** Inline link items rendered in the centre. */
|
|
131
|
+
links?: FooterBottomBarExtraLink[];
|
|
132
|
+
/** Inline link items rendered on the end edge (Terms / Privacy). */
|
|
133
|
+
extraLinks?: FooterBottomBarExtraLink[];
|
|
134
|
+
/** Legal copy rendered on the end edge (above the extra links). */
|
|
135
|
+
copyright?: ReactNode;
|
|
136
|
+
/** Direction override. */
|
|
137
|
+
dir?: 'ltr' | 'rtl';
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Re-export for convenience so consumers can import the form type alongside
|
|
141
|
+
the component types. */
|
|
142
|
+
export type { FormEventHandler };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* ─────────────────────────────────────────────────────────────────
|
|
2
|
+
Footer.variants.ts
|
|
3
|
+
Class-name constants for the Footer component.
|
|
4
|
+
Derived from Figma node 5156:62257 (Footer frame).
|
|
5
|
+
No JSX / React imports — pure strings.
|
|
6
|
+
──────────────────────────────────────────────────────────────────── */
|
|
7
|
+
|
|
8
|
+
/* ── Root ─────────────────────────────────────────────────────── */
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* Mobile → Tablet (md: ≥ 768 px) → Desktop (xl: ≥ 1280 px).
|
|
12
|
+
*
|
|
13
|
+
* Figma desktop spec (node 5156:62256):
|
|
14
|
+
* px = spacing-8xl (80)
|
|
15
|
+
* pt = spacing-7xl (64)
|
|
16
|
+
* pb = spacing-4xl (32)
|
|
17
|
+
* gap = spacing-5xl (40)
|
|
18
|
+
*
|
|
19
|
+
* On mobile the 80 px side padding would eat most of a 360 px viewport, so
|
|
20
|
+
* we drop to 16 px and step up at each breakpoint. Vertical rhythm comes
|
|
21
|
+
* from the responsive spacing tokens directly — `pt-spacing-7xl` reads
|
|
22
|
+
* 40 / 48 / 64 px across mobile / tablet / desktop automatically, which
|
|
23
|
+
* lands close to Figma's mobile (3286-wide) frames that use slightly
|
|
24
|
+
* tighter vertical spacing than desktop.
|
|
25
|
+
*/
|
|
26
|
+
export const ROOT_BASE =
|
|
27
|
+
'flex w-full flex-col items-start ' +
|
|
28
|
+
'bg-white dark:bg-[rgba(17,25,39,1)] ' +
|
|
29
|
+
'px-[16px] md:px-[48px] xl:px-[80px] ' +
|
|
30
|
+
'pt-spacing-7xl pb-spacing-4xl ' +
|
|
31
|
+
'gap-spacing-5xl';
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* Compact variant — used by the Figma "Small 1" and "Small 2" layouts
|
|
35
|
+
* which omit link columns and newsletter. Uses spacing-6xl (32/40/48)
|
|
36
|
+
* top and bottom, no gap because only one child is expected.
|
|
37
|
+
*/
|
|
38
|
+
export const ROOT_COMPACT =
|
|
39
|
+
'flex w-full flex-col items-start ' +
|
|
40
|
+
'bg-white dark:bg-[rgba(17,25,39,1)] ' +
|
|
41
|
+
'' +
|
|
42
|
+
'py-spacing-6xl ' +
|
|
43
|
+
'gap-spacing-5xl';
|
|
44
|
+
|
|
45
|
+
/* ── LinkColumns ──────────────────────────────────────────────── */
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
* Grid of FooterLinkList children.
|
|
49
|
+
* - mobile: 1 column (each list stacks, full width)
|
|
50
|
+
* - tablet: 2 columns
|
|
51
|
+
* - desktop: auto-fit with 140 px min per column so 1–6 lists all fit
|
|
52
|
+
* cleanly. The `gap-spacing-3xl` (spacing-3xl = 16/20/24 px responsive)
|
|
53
|
+
* matches Figma's 24 px desktop gap while tightening on mobile.
|
|
54
|
+
*/
|
|
55
|
+
export const LINK_COLUMNS =
|
|
56
|
+
'grid w-full ' +
|
|
57
|
+
'grid-cols-1 sm:grid-cols-2 xl:[grid-template-columns:repeat(auto-fit,minmax(140px,1fr))] ' +
|
|
58
|
+
'gap-spacing-3xl';
|
|
59
|
+
|
|
60
|
+
/* ── Newsletter ───────────────────────────────────────────────── */
|
|
61
|
+
|
|
62
|
+
/*
|
|
63
|
+
* Heading + description on the start edge, input + button on the end edge.
|
|
64
|
+
* Stacks vertically on mobile and flips to a side-by-side row on tablet+.
|
|
65
|
+
*/
|
|
66
|
+
export const NEWSLETTER_ROOT =
|
|
67
|
+
'flex w-full flex-col gap-spacing-xl ' +
|
|
68
|
+
'md:flex-row md:items-start md:justify-between md:gap-spacing-3xl';
|
|
69
|
+
|
|
70
|
+
export const NEWSLETTER_TEXT_COLUMN =
|
|
71
|
+
'flex flex-col gap-spacing-md min-w-0 md:flex-1';
|
|
72
|
+
|
|
73
|
+
export const NEWSLETTER_HEADING =
|
|
74
|
+
'text-text-md font-[500] leading-[24px] ' +
|
|
75
|
+
'text-[rgba(22,22,22,1)] dark:text-[rgba(243,244,246,1)]';
|
|
76
|
+
|
|
77
|
+
export const NEWSLETTER_DESCRIPTION =
|
|
78
|
+
'text-text-sm font-[400] leading-[20px] ' +
|
|
79
|
+
'text-[rgba(56,66,80,1)] dark:text-[rgba(209,213,219,1)]';
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Input + button row. `w-full md:w-auto md:min-w-[350px]` makes the form
|
|
83
|
+
* span the container on mobile (where it stacks under the text) and pin
|
|
84
|
+
* at the designed 350 px width on tablet+ (Figma spec).
|
|
85
|
+
*/
|
|
86
|
+
export const NEWSLETTER_FORM =
|
|
87
|
+
'flex items-stretch gap-spacing-md w-full md:w-auto md:min-w-[350px] md:max-w-[420px]';
|
|
88
|
+
|
|
89
|
+
/* ── AppStores ────────────────────────────────────────────────── */
|
|
90
|
+
|
|
91
|
+
export const APP_STORES_ROOT =
|
|
92
|
+
'flex flex-wrap items-center gap-spacing-md';
|
|
93
|
+
|
|
94
|
+
/* ── SocialLinks ──────────────────────────────────────────────── */
|
|
95
|
+
|
|
96
|
+
export const SOCIAL_LINKS_ROOT =
|
|
97
|
+
'flex items-center gap-spacing-md';
|
|
98
|
+
|
|
99
|
+
/* ── BottomBar ────────────────────────────────────────────────── */
|
|
100
|
+
|
|
101
|
+
/*
|
|
102
|
+
* Logo on the start edge, legal block on the end edge.
|
|
103
|
+
* Stacks vertically on mobile, flips to the side-by-side row on tablet+.
|
|
104
|
+
*/
|
|
105
|
+
export const BOTTOM_BAR_ROOT =
|
|
106
|
+
'flex w-full flex-col items-start gap-spacing-lg ' +
|
|
107
|
+
'md:flex-row md:items-center md:justify-between md:gap-spacing-3xl';
|
|
108
|
+
|
|
109
|
+
export const BOTTOM_BAR_LEGAL =
|
|
110
|
+
'flex flex-col items-start gap-spacing-md ' +
|
|
111
|
+
'md:items-end ' +
|
|
112
|
+
'rtl:md:items-start';
|
|
113
|
+
|
|
114
|
+
export const BOTTOM_BAR_COPYRIGHT =
|
|
115
|
+
'text-text-sm font-[600] leading-[20px] ' +
|
|
116
|
+
'text-[rgba(22,22,22,1)] dark:text-[rgba(243,244,246,1)]';
|
|
117
|
+
|
|
118
|
+
export const BOTTOM_BAR_EXTRAS =
|
|
119
|
+
'flex flex-wrap items-center gap-spacing-lg';
|
|
120
|
+
|
|
121
|
+
/* ── InlineBar ────────────────────────────────────────────────── */
|
|
122
|
+
|
|
123
|
+
/*
|
|
124
|
+
* Single row: logo (start) + inline links (centre) + copyright + extras
|
|
125
|
+
* (end). Wraps to a stacked column on narrow widths.
|
|
126
|
+
*/
|
|
127
|
+
export const INLINE_BAR_ROOT =
|
|
128
|
+
'flex w-full flex-col items-start gap-spacing-xl ' +
|
|
129
|
+
'md:flex-row md:items-center md:justify-center md:gap-spacing-3xl';
|
|
130
|
+
|
|
131
|
+
export const INLINE_BAR_LINKS =
|
|
132
|
+
'flex flex-wrap items-center gap-spacing-3xl';
|
|
133
|
+
|
|
134
|
+
export const INLINE_BAR_END =
|
|
135
|
+
'flex flex-col items-start gap-spacing-xxs ' +
|
|
136
|
+
'md:items-end ' +
|
|
137
|
+
'rtl:md:items-start';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Footer } from './Footer';
|
|
2
|
+
export type {
|
|
3
|
+
FooterAppStoresProps,
|
|
4
|
+
FooterBottomBarExtraLink,
|
|
5
|
+
FooterBottomBarProps,
|
|
6
|
+
FooterInlineBarProps,
|
|
7
|
+
FooterLinkColumnsProps,
|
|
8
|
+
FooterNewsletterProps,
|
|
9
|
+
FooterProps,
|
|
10
|
+
FooterSocialLinksProps,
|
|
11
|
+
} from './Footer.types';
|