@returnless/focus-ui 0.0.2 → 0.0.4
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/build-utils/generate-component-meta.d.ts +12 -0
- package/dist/build-utils/update-component-list.d.ts +1 -0
- package/dist/components/Accordion/Accordion.vue.d.ts +39 -0
- package/dist/components/Accordion/AccordionContent.vue.d.ts +9 -0
- package/dist/components/Accordion/AccordionItem.vue.d.ts +9 -0
- package/dist/components/Accordion/AccordionTrigger.vue.d.ts +9 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/ActionList/ActionList.vue.d.ts +9 -0
- package/dist/components/ActionList/ActionListBody.vue.d.ts +9 -0
- package/dist/components/ActionList/ActionListItem.vue.d.ts +48 -0
- package/dist/components/ActionList/ActionListSection.vue.d.ts +9 -0
- package/dist/components/ActionList/ActionListTrigger.vue.d.ts +9 -0
- package/dist/components/ActionList/index.d.ts +5 -0
- package/dist/components/Alert/Alert.vue.d.ts +57 -0
- package/dist/components/Alert/AlertDescription.vue.d.ts +9 -0
- package/dist/components/Alert/AlertTitle.vue.d.ts +9 -0
- package/dist/components/Alert/DismissableAlertButton.vue.d.ts +36 -0
- package/dist/components/Alert/index.d.ts +4 -0
- package/dist/components/Alert/types.d.ts +1 -0
- package/dist/components/AlertDialog/AlertDialog.vue.d.ts +42 -0
- package/dist/components/AlertDialog/AlertDialogActionButton.vue.d.ts +39 -0
- package/dist/components/AlertDialog/AlertDialogCancelButton.vue.d.ts +9 -0
- package/dist/components/AlertDialog/AlertDialogContent.vue.d.ts +9 -0
- package/dist/components/AlertDialog/AlertDialogDescription.vue.d.ts +9 -0
- package/dist/components/AlertDialog/AlertDialogFooter.vue.d.ts +9 -0
- package/dist/components/AlertDialog/AlertDialogHeader.vue.d.ts +9 -0
- package/dist/components/AlertDialog/AlertDialogTitle.vue.d.ts +9 -0
- package/dist/components/AlertDialog/index.d.ts +8 -0
- package/dist/components/AspectRatio/AspectRatio.vue.d.ts +38 -0
- package/dist/components/AspectRatio/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +59 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.vue.d.ts +49 -0
- package/dist/components/Badge/BadgeContent.vue.d.ts +9 -0
- package/dist/components/Badge/BadgeIcon.vue.d.ts +9 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/BarChart/BarChart.vue.d.ts +27 -0
- package/dist/components/BarChart/BarChartContainer.vue.d.ts +9 -0
- package/dist/components/BarChart/BarChartStacked.vue.d.ts +27 -0
- package/dist/components/BarChart/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/Breadcrumb.vue.d.ts +9 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +9 -0
- package/dist/components/Breadcrumbs/BreadcrumbLink.vue.d.ts +9 -0
- package/dist/components/Breadcrumbs/BreadcrumbList.vue.d.ts +9 -0
- package/dist/components/Breadcrumbs/BreadcrumbPage.vue.d.ts +9 -0
- package/dist/components/Breadcrumbs/BreadcrumbSeparator.vue.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +7 -0
- package/dist/components/Button/Button.vue.d.ts +57 -0
- package/dist/components/Button/ButtonContent.vue.d.ts +9 -0
- package/dist/components/Button/ButtonIcon.vue.d.ts +45 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/types.d.ts +21 -0
- package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +9 -0
- package/dist/components/ButtonGroup/index.d.ts +1 -0
- package/dist/components/Card/Card.vue.d.ts +9 -0
- package/dist/components/Card/CardDescription.vue.d.ts +9 -0
- package/dist/components/Card/CardFooter.vue.d.ts +9 -0
- package/dist/components/Card/CardHeader.vue.d.ts +9 -0
- package/dist/components/Card/CardHelp.vue.d.ts +22 -0
- package/dist/components/Card/CardSection.vue.d.ts +36 -0
- package/dist/components/Card/CardTitle.vue.d.ts +9 -0
- package/dist/components/Card/index.d.ts +7 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +50 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +35 -0
- package/dist/components/DatePicker/DatePickerCard.vue.d.ts +9 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DescriptionList/DescriptionList.vue.d.ts +38 -0
- package/dist/components/DescriptionList/DescriptionListDescription.vue.d.ts +9 -0
- package/dist/components/DescriptionList/DescriptionListItem.vue.d.ts +9 -0
- package/dist/components/DescriptionList/DescriptionListTerm.vue.d.ts +9 -0
- package/dist/components/DescriptionList/index.d.ts +4 -0
- package/dist/components/Dialog/index.d.ts +0 -0
- package/dist/components/DropZone/DropZone.vue.d.ts +45 -0
- package/dist/components/DropZone/index.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.vue.d.ts +9 -0
- package/dist/components/EmptyState/EmptyStateActions.vue.d.ts +9 -0
- package/dist/components/EmptyState/EmptyStateContent.vue.d.ts +9 -0
- package/dist/components/EmptyState/EmptyStateDescription.vue.d.ts +9 -0
- package/dist/components/EmptyState/EmptyStateTitle.vue.d.ts +9 -0
- package/dist/components/EmptyState/index.d.ts +5 -0
- package/dist/components/Feed/Feed.vue.d.ts +9 -0
- package/dist/components/Feed/FeedItem.vue.d.ts +9 -0
- package/dist/components/Feed/FeedItemBlock.vue.d.ts +9 -0
- package/dist/components/Feed/FeedItemDateIndicator.vue.d.ts +9 -0
- package/dist/components/Feed/FeedItemIcon.vue.d.ts +32 -0
- package/dist/components/Feed/FeedItemSimple.vue.d.ts +9 -0
- package/dist/components/Feed/index.d.ts +6 -0
- package/dist/components/FileUploadButton/FileUploadButton.vue.d.ts +50 -0
- package/dist/components/FileUploadButton/index.d.ts +1 -0
- package/dist/components/Form/Form.vue.d.ts +56 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/FormLayout/FormLayout.vue.d.ts +36 -0
- package/dist/components/FormLayout/index.d.ts +1 -0
- package/dist/components/Heading/Heading.vue.d.ts +46 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/types.d.ts +2 -0
- package/dist/components/Image/Image.vue.d.ts +45 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/InertiaLink/InertiaLink.vue.d.ts +19 -0
- package/dist/components/InertiaLink/index.d.ts +1 -0
- package/dist/components/InlineError/InlineError.vue.d.ts +21 -0
- package/dist/components/InlineError/index.d.ts +1 -0
- package/dist/components/InputLabel/InputLabel.vue.d.ts +39 -0
- package/dist/components/InputLabel/index.d.ts +1 -0
- package/dist/components/KPICard/KPICard.vue.d.ts +36 -0
- package/dist/components/KPICard/KPICardSection.vue.d.ts +24 -0
- package/dist/components/KPICard/index.d.ts +2 -0
- package/dist/components/Legend/Legend.vue.d.ts +9 -0
- package/dist/components/Legend/LegendItem.vue.d.ts +22 -0
- package/dist/components/Legend/index.d.ts +2 -0
- package/dist/components/Link/Link.vue.d.ts +49 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Navigation/Navigation.vue.d.ts +9 -0
- package/dist/components/Navigation/NavigationItem.vue.d.ts +49 -0
- package/dist/components/Navigation/NavigationSecondarySection.vue.d.ts +9 -0
- package/dist/components/Navigation/NavigationSection.vue.d.ts +38 -0
- package/dist/components/Navigation/index.d.ts +4 -0
- package/dist/components/Page/Page.vue.d.ts +9 -0
- package/dist/components/Page/PageBody.vue.d.ts +26 -0
- package/dist/components/Page/PageDescription.vue.d.ts +9 -0
- package/dist/components/Page/PageHeader.vue.d.ts +43 -0
- package/dist/components/Page/PageTitle.vue.d.ts +9 -0
- package/dist/components/Page/index.d.ts +5 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +9 -0
- package/dist/components/Pagination/PaginationNextButton.vue.d.ts +2 -0
- package/dist/components/Pagination/PaginationPreviousButton.vue.d.ts +2 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/PinInput/PinInput.vue.d.ts +33 -0
- package/dist/components/PinInput/index.d.ts +1 -0
- package/dist/components/Popover/Popover.vue.d.ts +25 -0
- package/dist/components/Popover/PopoverBody.vue.d.ts +9 -0
- package/dist/components/Popover/PopoverTrigger.vue.d.ts +9 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Popper/Popper.vue.d.ts +29 -0
- package/dist/components/Popper/PopperBody.vue.d.ts +9 -0
- package/dist/components/Popper/PopperTrigger.vue.d.ts +9 -0
- package/dist/components/Popper/index.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +50 -0
- package/dist/components/ProgressBar/ProgressBarIndicator.vue.d.ts +9 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.vue.d.ts +45 -0
- package/dist/components/RadioButton/index.d.ts +1 -0
- package/dist/components/ResourceList/ResourceList.vue.d.ts +9 -0
- package/dist/components/ResourceList/ResourceListItem.vue.d.ts +9 -0
- package/dist/components/ResourceList/ResourceListItemContent.vue.d.ts +9 -0
- package/dist/components/ResourceList/index.d.ts +3 -0
- package/dist/components/Select/Select.vue.d.ts +77 -0
- package/dist/components/Select/SelectGroup.vue.d.ts +24 -0
- package/dist/components/Select/SelectOption.vue.d.ts +24 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/{types/components/Accordion/Accordion.vue.d.ts → components/Separator/Separator.vue.d.ts} +7 -8
- package/dist/components/Separator/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.vue.d.ts +38 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/StatusIndicator/StatusIndicator.vue.d.ts +42 -0
- package/dist/components/StatusIndicator/index.d.ts +1 -0
- package/dist/components/Stepper/Stepper.vue.d.ts +43 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Tabs/TabTrigger.vue.d.ts +38 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +9 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tag/Tag.vue.d.ts +42 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/TextField/TextField.vue.d.ts +95 -0
- package/dist/components/TextField/TextFieldIcon.vue.d.ts +15 -0
- package/dist/components/TextField/TextFieldPasswordIcon.vue.d.ts +2 -0
- package/dist/components/TextField/TextFieldSearchIcon.vue.d.ts +2 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TextStyle/TextStyle.vue.d.ts +24 -0
- package/dist/components/TextStyle/index.d.ts +1 -0
- package/dist/components/Toast/DismissToastAction.vue.d.ts +35 -0
- package/dist/components/Toast/Toast.vue.d.ts +49 -0
- package/dist/components/Toast/ToastGroup.vue.d.ts +9 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toggle/Toggle.vue.d.ts +48 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +24 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/TopBar/TopBar.vue.d.ts +9 -0
- package/dist/components/TopBar/TopBarLogo.vue.d.ts +2 -0
- package/dist/components/TopBar/TopBarNavigation.vue.d.ts +9 -0
- package/dist/components/TopBar/TopBarNavigationItem.vue.d.ts +9 -0
- package/dist/components/TopBar/TopBarSearch.vue.d.ts +2 -0
- package/dist/components/TopBar/TopBarUserMenu.vue.d.ts +2 -0
- package/dist/components/TopBar/index.d.ts +6 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.vue.d.ts +9 -0
- package/dist/components/VisuallyHidden/index.d.ts +1 -0
- package/dist/components/index.d.ts +51 -0
- package/dist/components/types.d.ts +5 -0
- package/dist/composables/index.d.ts +4 -0
- package/dist/composables/useTailwindColor.d.ts +8 -0
- package/dist/composables/useTheme.d.ts +12 -0
- package/dist/composables/useToastNotifications.d.ts +13 -0
- package/dist/composables/useUniqueId.d.ts +1 -0
- package/dist/focus-ui.js +10851 -0
- package/dist/focus-ui.umd.cjs +26 -0
- package/dist/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/package.json +8 -6
- package/src/build-utils/generate-component-meta.ts +5 -1
- package/src/build-utils/update-component-list.ts +1 -1
- package/src/components/Accordion/AccordionContent.vue +34 -5
- package/src/components/Accordion/AccordionItem.vue +5 -2
- package/src/components/Accordion/AccordionTrigger.vue +5 -2
- package/src/components/Accordion/README.md +1 -1
- package/src/components/ActionList/ActionList.vue +9 -0
- package/src/components/ActionList/ActionListBody.vue +11 -0
- package/src/components/ActionList/ActionListItem.vue +37 -0
- package/src/components/ActionList/ActionListSection.vue +7 -0
- package/src/components/ActionList/ActionListTrigger.vue +9 -0
- package/src/components/ActionList/README.md +113 -0
- package/src/components/ActionList/index.ts +5 -0
- package/src/components/Alert/Alert.vue +23 -10
- package/src/components/Alert/AlertDescription.vue +13 -1
- package/src/components/Alert/AlertTitle.vue +1 -1
- package/src/components/Alert/DismissableAlertButton.vue +6 -4
- package/src/components/Alert/README.md +31 -2
- package/src/components/Alert/index.ts +2 -0
- package/src/components/Alert/types.ts +1 -0
- package/src/components/AlertDialog/AlertDialog.vue +10 -1
- package/src/components/AlertDialog/AlertDialogActionButton.vue +9 -2
- package/src/components/AlertDialog/AlertDialogCancelButton.vue +1 -1
- package/src/components/AlertDialog/AlertDialogDescription.vue +7 -1
- package/src/components/AlertDialog/AlertDialogTitle.vue +11 -3
- package/src/components/AlertDialog/README.md +15 -16
- package/src/components/AspectRatio/AspectRatio.vue +19 -0
- package/src/components/AspectRatio/README.md +36 -0
- package/src/components/AspectRatio/index.ts +1 -0
- package/src/components/Avatar/Avatar.vue +57 -13
- package/src/components/Avatar/README.md +3 -9
- package/src/components/Badge/Badge.vue +1 -1
- package/src/components/Badge/README.md +9 -9
- package/src/components/BarChart/BarChart.vue +80 -0
- package/src/components/{MetricCard/MetricCardHeader.vue → BarChart/BarChartContainer.vue} +1 -1
- package/src/components/BarChart/BarChartStacked.vue +93 -0
- package/src/components/BarChart/README.md +83 -0
- package/src/components/BarChart/index.ts +3 -0
- package/src/components/Breadcrumbs/Breadcrumb.vue +7 -0
- package/src/components/Breadcrumbs/BreadcrumbEllipsis.vue +12 -0
- package/src/components/{MetricCard/MetricCardValue.vue → Breadcrumbs/BreadcrumbItem.vue} +2 -2
- package/src/components/Breadcrumbs/BreadcrumbLink.vue +13 -0
- package/src/components/Breadcrumbs/BreadcrumbList.vue +8 -0
- package/src/components/Breadcrumbs/BreadcrumbPage.vue +13 -0
- package/src/components/Breadcrumbs/BreadcrumbSeparator.vue +12 -0
- package/src/components/Breadcrumbs/README.md +91 -0
- package/src/components/Breadcrumbs/index.ts +7 -0
- package/src/components/Button/Button.vue +53 -41
- package/src/components/Button/ButtonContent.vue +1 -1
- package/src/components/Button/ButtonIcon.vue +28 -3
- package/src/components/Button/README.md +32 -29
- package/src/components/Button/index.ts +2 -0
- package/src/components/Button/types.ts +30 -0
- package/src/components/ButtonGroup/README.md +1 -1
- package/src/components/Card/CardHelp.vue +23 -0
- package/src/components/Card/CardSection.vue +17 -2
- package/src/components/Card/CardTitle.vue +6 -3
- package/src/components/Card/README.md +97 -10
- package/src/components/Card/index.ts +2 -1
- package/src/components/Checkbox/Checkbox.vue +29 -5
- package/src/components/Checkbox/README.md +34 -5
- package/src/components/DatePicker/DatePicker.vue +7 -27
- package/src/components/DatePicker/README.md +1 -1
- package/src/components/DescriptionList/DescriptionList.vue +1 -1
- package/src/components/DescriptionList/DescriptionListItem.vue +1 -1
- package/src/components/DescriptionList/README.md +2 -2
- package/src/components/Dialog/README.md +2 -0
- package/src/components/Dialog/index.ts +0 -0
- package/src/components/DropZone/DropZone.vue +105 -0
- package/src/components/DropZone/README.md +48 -0
- package/src/components/DropZone/index.ts +1 -0
- package/src/components/EmptyState/README.md +1 -1
- package/src/components/Feed/FeedItem.vue +4 -1
- package/src/components/Feed/FeedItemBlock.vue +4 -1
- package/src/components/Feed/README.md +1 -1
- package/src/components/FileUploadButton/FileUploadButton.vue +62 -0
- package/src/components/FileUploadButton/index.ts +1 -0
- package/src/components/Form/Form.vue +7 -2
- package/src/components/Form/README.md +1 -1
- package/src/components/FormLayout/FormLayout.vue +20 -2
- package/src/components/FormLayout/README.md +39 -1
- package/src/components/Heading/Heading.vue +32 -0
- package/src/components/Heading/index.ts +3 -0
- package/src/components/Heading/types.ts +3 -0
- package/src/components/Image/Image.vue +30 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/InertiaLink/InertiaLink.vue +11 -0
- package/src/components/InertiaLink/index.ts +1 -0
- package/src/components/InlineError/InlineError.vue +21 -0
- package/src/components/InlineError/README.md +63 -0
- package/src/components/InlineError/index.ts +1 -0
- package/src/components/KPICard/KPICard.vue +28 -0
- package/src/components/KPICard/KPICardSection.vue +30 -0
- package/src/components/KPICard/README.md +124 -0
- package/src/components/KPICard/index.ts +2 -0
- package/src/components/Legend/Legend.vue +7 -0
- package/src/components/Legend/LegendItem.vue +34 -0
- package/src/components/Legend/README.md +32 -0
- package/src/components/Legend/index.ts +2 -0
- package/src/components/Link/Link.vue +4 -4
- package/src/components/Link/README.md +1 -1
- package/src/components/Navigation/Navigation.vue +2 -2
- package/src/components/Navigation/NavigationItem.vue +14 -10
- package/src/components/Navigation/NavigationSecondarySection.vue +12 -0
- package/src/components/Navigation/NavigationSection.vue +1 -1
- package/src/components/Navigation/README.md +10 -15
- package/src/components/Navigation/index.ts +1 -0
- package/src/components/Page/Page.vue +2 -33
- package/src/components/Page/PageBody.vue +36 -0
- package/src/components/Page/PageTitle.vue +6 -3
- package/src/components/Page/README.md +45 -39
- package/src/components/Page/index.ts +1 -0
- package/src/components/Pagination/README.md +1 -1
- package/src/components/PinInput/README.md +1 -1
- package/src/components/Popover/Popover.vue +18 -0
- package/src/components/Popover/PopoverBody.vue +11 -0
- package/src/components/Popover/PopoverTrigger.vue +9 -0
- package/src/components/Popover/README.md +34 -6
- package/src/components/Popover/index.ts +3 -0
- package/src/components/Popper/Popper.vue +91 -0
- package/src/components/Popper/PopperBody.vue +19 -0
- package/src/components/Popper/PopperTrigger.vue +14 -0
- package/src/components/Popper/README.md +42 -0
- package/src/components/Popper/index.ts +3 -0
- package/src/components/ProgressBar/ProgressBar.vue +24 -6
- package/src/components/RadioButton/README.md +1 -1
- package/src/components/RadioButton/RadioButton.vue +3 -2
- package/src/components/ResourceList/README.md +160 -0
- package/src/components/ResourceList/ResourceList.vue +7 -0
- package/src/components/ResourceList/ResourceListItem.vue +7 -0
- package/src/components/ResourceList/ResourceListItemContent.vue +7 -0
- package/src/components/ResourceList/index.ts +3 -0
- package/src/components/Select/README.md +1 -1
- package/src/components/Select/Select.vue +1 -1
- package/src/components/Separator/README.md +5 -1
- package/src/components/Separator/Separator.vue +20 -3
- package/src/components/Spinner/README.md +1 -1
- package/src/components/Spinner/Spinner.vue +10 -4
- package/src/components/StatusIndicator/README.md +2 -2
- package/src/components/StatusIndicator/StatusIndicator.vue +11 -5
- package/src/components/Stepper/README.md +38 -0
- package/src/components/Stepper/Stepper.vue +104 -0
- package/src/components/Stepper/index.ts +1 -0
- package/src/components/Tabs/README.md +1 -1
- package/src/components/Tabs/TabTrigger.vue +5 -4
- package/src/components/Tabs/Tabs.vue +4 -1
- package/src/components/Tag/Tag.vue +45 -0
- package/src/components/Tag/index.ts +1 -0
- package/src/components/TextField/README.md +24 -6
- package/src/components/TextField/TextField.vue +25 -5
- package/src/components/TextField/TextFieldIcon.vue +19 -0
- package/src/components/TextStyle/README.md +1 -1
- package/src/components/TextStyle/TextStyle.vue +1 -1
- package/src/components/Toast/DismissToastAction.vue +1 -1
- package/src/components/Toast/README.md +1 -1
- package/src/components/Toggle/README.md +1 -1
- package/src/components/Toggle/Toggle.vue +8 -5
- package/src/components/Tooltip/README.md +1 -1
- package/src/components/Tooltip/Tooltip.vue +15 -41
- package/src/components/TopBar/TopBarSearch.vue +2 -2
- package/src/components/index.ts +68 -12
- package/src/components/types.ts +5 -0
- package/src/composables/useTheme.ts +13 -1
- package/src/composables/useToastNotifications.ts +1 -1
- package/src/composables/useUniqueId.ts +4 -3
- package/src/index.css +17 -13
- package/src/index.ts +0 -11
- package/dist/focus-ui.es.js +0 -33
- package/dist/types/components/Accordion/index.d.ts +0 -2
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -7
- package/src/components/CategoryBar/CategoryBar.vue +0 -25
- package/src/components/CategoryBar/CategoryBarItem.vue +0 -34
- package/src/components/CategoryBar/README.md +0 -17
- package/src/components/CategoryBar/index.ts +0 -2
- package/src/components/MetricCard/MetricCard.vue +0 -11
- package/src/components/MetricCard/MetricCardLabel.vue +0 -9
- package/src/components/MetricCard/MetricCardSection.vue +0 -11
- package/src/components/MetricCard/README.md +0 -53
- package/src/components/MetricCard/index.ts +0 -5
- /package/dist/{types/components/Accordion/AccordionItem.vue.d.ts → components/Breadcrumbs/BreadcrumbEllipsis.vue.d.ts} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { HeadingLevel, HeadingSize } from './types';
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(defineProps<{
|
|
6
|
+
/** The heading level. */
|
|
7
|
+
level?: HeadingLevel;
|
|
8
|
+
|
|
9
|
+
/** The heading size. */
|
|
10
|
+
size?: HeadingSize;
|
|
11
|
+
}>(), {
|
|
12
|
+
level: 'h2',
|
|
13
|
+
size: 'xl',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const classList = computed((): Record<string, boolean> => {
|
|
17
|
+
return {
|
|
18
|
+
'text-xl': props.size === 'xl',
|
|
19
|
+
'text-2xl': props.size === '2xl',
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<component
|
|
26
|
+
:is="level"
|
|
27
|
+
:class="classList"
|
|
28
|
+
class="font-semibold leading-none"
|
|
29
|
+
>
|
|
30
|
+
<slot />
|
|
31
|
+
</component>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
withDefaults(defineProps<{
|
|
3
|
+
/** The alt text for the image. */
|
|
4
|
+
alt: string;
|
|
5
|
+
|
|
6
|
+
/** The source URL of the image. */
|
|
7
|
+
source: string;
|
|
8
|
+
|
|
9
|
+
/** The cross-origin attribute of the image. */
|
|
10
|
+
crossOrigin?: 'anonymous' | 'use-credentials' | undefined;
|
|
11
|
+
}>(), {
|
|
12
|
+
crossOrigin: undefined,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
defineEmits<{
|
|
16
|
+
load: [];
|
|
17
|
+
error: [];
|
|
18
|
+
}>();
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<img
|
|
23
|
+
:alt="alt"
|
|
24
|
+
:crossorigin="crossOrigin"
|
|
25
|
+
:src="source"
|
|
26
|
+
v-bind="$attrs"
|
|
27
|
+
@error="$emit('error')"
|
|
28
|
+
@load="$emit('load')"
|
|
29
|
+
>
|
|
30
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Image } from './Image.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InertiaLink } from './InertiaLink.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { ExclamationCircleIcon } from '@heroicons/vue/24/outline';
|
|
3
|
+
|
|
4
|
+
defineProps<{
|
|
5
|
+
/** The id of the element */
|
|
6
|
+
id: string;
|
|
7
|
+
|
|
8
|
+
/** The message to display */
|
|
9
|
+
message: string;
|
|
10
|
+
}>();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div
|
|
15
|
+
:id="id"
|
|
16
|
+
class="flex items-center text-red-600 space-x-2"
|
|
17
|
+
>
|
|
18
|
+
<ExclamationCircleIcon class="h-4 w-4" />
|
|
19
|
+
<span>{{ message }}</span>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { FormLayout, TextField, InlineError } from '../../src/components';
|
|
3
|
+
import api from '../component-meta/InlineError.json';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
# Inline error
|
|
7
|
+
|
|
8
|
+
Inline errors are brief, in-context messages that tell users something went wrong with a single or group of inputs in a
|
|
9
|
+
form. Use inline errors to help users understand why a form input may not be valid en how to fix it.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
<ComponentWrapper>
|
|
14
|
+
<InlineError
|
|
15
|
+
message="Store name is required"
|
|
16
|
+
field-id="my-field-id"
|
|
17
|
+
/>
|
|
18
|
+
</ComponentWrapper>
|
|
19
|
+
|
|
20
|
+
```js-vue
|
|
21
|
+
<script lang="ts" setup>
|
|
22
|
+
import { InlineError } from '@returnless/focus-ui';
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<InlineError
|
|
27
|
+
message="Store name is required"
|
|
28
|
+
field-id="my-field-id"
|
|
29
|
+
/>
|
|
30
|
+
</template>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Best practices
|
|
34
|
+
|
|
35
|
+
Inline errors should:
|
|
36
|
+
|
|
37
|
+
- Be brief.
|
|
38
|
+
- Be written in sentence case.
|
|
39
|
+
- Be visible immediately upon a form input that is not valid.
|
|
40
|
+
- Be removed as soon as the input is valid so users can immediately tell they fixed the issue.
|
|
41
|
+
- Describe specific solutions so users can successfully complete their task in the form.
|
|
42
|
+
- Not be placed out of context of the input or group of inputs they describe.
|
|
43
|
+
|
|
44
|
+
## Content guidelines
|
|
45
|
+
|
|
46
|
+
### Inline error messages
|
|
47
|
+
|
|
48
|
+
Since the error message is directly below the source of the problem, the copy only needs to explain why the error
|
|
49
|
+
happened. Optionally, the message can clarify what to do next or offer a one-click fix.
|
|
50
|
+
|
|
51
|
+
Inline error messages should:
|
|
52
|
+
|
|
53
|
+
- Clearly explain what went wrong, give a next step, or offer a one-click fix.
|
|
54
|
+
- Be short and concise, no more than a single sentence.
|
|
55
|
+
- Use passive voice so users don't feel like they're being blamed for the error.
|
|
56
|
+
|
|
57
|
+
## Accessibility
|
|
58
|
+
|
|
59
|
+
- Use the required `fieldId` prop to give the inline error a unique `id`. This ties the error to a form field using
|
|
60
|
+
`aria-describedby` so that it's conveyed to screen reader users.
|
|
61
|
+
- Use the required `message` prop to provide the text that describes the error.
|
|
62
|
+
- The inline error icon helps visually identify the error message for users who have difficulty seeing colors or who
|
|
63
|
+
use settings that remove color from the page.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InlineError } from './InlineError.vue';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { Card } from '../Card';
|
|
3
|
+
import { computed } from 'vue';
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(defineProps<{
|
|
6
|
+
orientation?: 'horizontal' | 'vertical';
|
|
7
|
+
}>(), {
|
|
8
|
+
orientation: 'horizontal',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const classList = computed(() => {
|
|
12
|
+
return {
|
|
13
|
+
'flex flex-col divide-y': props.orientation === 'vertical',
|
|
14
|
+
'flex flex-row divide-x': props.orientation === 'horizontal',
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<Card>
|
|
21
|
+
<div
|
|
22
|
+
:class="classList"
|
|
23
|
+
class="[&>*]:flex-1"
|
|
24
|
+
>
|
|
25
|
+
<slot />
|
|
26
|
+
</div>
|
|
27
|
+
</Card>
|
|
28
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { CardSection } from '../Card';
|
|
3
|
+
import { Heading } from '../Heading';
|
|
4
|
+
import { TextStyle } from '../TextStyle';
|
|
5
|
+
|
|
6
|
+
defineProps<{
|
|
7
|
+
title: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}>();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<CardSection>
|
|
14
|
+
<div class="space-y-0.5">
|
|
15
|
+
<TextStyle variant="subdued">
|
|
16
|
+
{{ title }}
|
|
17
|
+
</TextStyle>
|
|
18
|
+
<Heading size="2xl">
|
|
19
|
+
{{ value }}
|
|
20
|
+
</Heading>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div
|
|
24
|
+
v-if="!!$slots.default"
|
|
25
|
+
class="mt-6"
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</div>
|
|
29
|
+
</CardSection>
|
|
30
|
+
</template>
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { Badge, BadgeContent, BadgeIcon, KPICard, KPICardSection } from '../../src/components';
|
|
3
|
+
import api from '../component-meta/KPICard.json';
|
|
4
|
+
import { ArrowTrendingUpIcon, ArrowTrendingDownIcon } from '@heroicons/vue/16/solid';
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
# KPI Card
|
|
8
|
+
|
|
9
|
+
KPI Card is a component that displays a key performance indicator in a card format. It is used to display a single
|
|
10
|
+
metric or a set of metrics that are important to the user.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
<ComponentWrapper>
|
|
15
|
+
<KPICard>
|
|
16
|
+
<KPICardSection title="Total returns today" value="952">
|
|
17
|
+
<Badge color="green">
|
|
18
|
+
<BadgeContent>+ 25%</BadgeContent>
|
|
19
|
+
<BadgeIcon>
|
|
20
|
+
<ArrowTrendingUpIcon />
|
|
21
|
+
</BadgeIcon>
|
|
22
|
+
</Badge>
|
|
23
|
+
</KPICardSection>
|
|
24
|
+
<KPICardSection title="Total returns last 30 days" value="10,483">
|
|
25
|
+
<Badge color="red">
|
|
26
|
+
<BadgeIcon>
|
|
27
|
+
<ArrowTrendingDownIcon />
|
|
28
|
+
</BadgeIcon>
|
|
29
|
+
<BadgeContent>- 25%</BadgeContent>
|
|
30
|
+
</Badge>
|
|
31
|
+
</KPICardSection>
|
|
32
|
+
</KPICard>
|
|
33
|
+
</ComponentWrapper>
|
|
34
|
+
|
|
35
|
+
```js-vue
|
|
36
|
+
<script lang="ts" setup>
|
|
37
|
+
import {
|
|
38
|
+
Badge,
|
|
39
|
+
BadgeContent,
|
|
40
|
+
BadgeIcon,
|
|
41
|
+
KPICard,
|
|
42
|
+
KPICardSection,
|
|
43
|
+
} from '@returnless/focus-ui';
|
|
44
|
+
import { ArrowTrendingUpIcon, ArrowTrendingDownIcon } from '@heroicons/vue/16/solid';
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<KPICard>
|
|
49
|
+
<KPICardSection title="Total returns today" value="952">
|
|
50
|
+
<Badge color="green">
|
|
51
|
+
<BadgeContent>+ 25%</BadgeContent>
|
|
52
|
+
<BadgeIcon>
|
|
53
|
+
<ArrowTrendingUpIcon />
|
|
54
|
+
</BadgeIcon>
|
|
55
|
+
</Badge>
|
|
56
|
+
</KPICardSection>
|
|
57
|
+
<KPICardSection title="Total returns last 30 days" value="10,483">
|
|
58
|
+
<Badge color="red">
|
|
59
|
+
<BadgeIcon>
|
|
60
|
+
<ArrowTrendingDownIcon />
|
|
61
|
+
</BadgeIcon>
|
|
62
|
+
<BadgeContent>- 25%</BadgeContent>
|
|
63
|
+
</Badge>
|
|
64
|
+
</KPICardSection>
|
|
65
|
+
</KPICard>
|
|
66
|
+
</template>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Vertical KPI Card
|
|
70
|
+
|
|
71
|
+
<ComponentWrapper>
|
|
72
|
+
<KPICard orientation="vertical">
|
|
73
|
+
<KPICardSection title="Total returns today" value="952">
|
|
74
|
+
<Badge color="green">
|
|
75
|
+
<BadgeContent>+ 25%</BadgeContent>
|
|
76
|
+
<BadgeIcon>
|
|
77
|
+
<ArrowTrendingUpIcon />
|
|
78
|
+
</BadgeIcon>
|
|
79
|
+
</Badge>
|
|
80
|
+
</KPICardSection>
|
|
81
|
+
<KPICardSection title="Total returns last 30 days" value="10,483">
|
|
82
|
+
<Badge color="red">
|
|
83
|
+
<BadgeIcon>
|
|
84
|
+
<ArrowTrendingDownIcon />
|
|
85
|
+
</BadgeIcon>
|
|
86
|
+
<BadgeContent>- 25%</BadgeContent>
|
|
87
|
+
</Badge>
|
|
88
|
+
</KPICardSection>
|
|
89
|
+
</KPICard>
|
|
90
|
+
</ComponentWrapper>
|
|
91
|
+
|
|
92
|
+
```js-vue
|
|
93
|
+
<script lang="ts" setup>
|
|
94
|
+
import {
|
|
95
|
+
Badge,
|
|
96
|
+
BadgeContent,
|
|
97
|
+
BadgeIcon,
|
|
98
|
+
KPICard,
|
|
99
|
+
KPICardSection,
|
|
100
|
+
} from '@returnless/focus-ui';
|
|
101
|
+
import { ArrowTrendingUpIcon, ArrowTrendingDownIcon } from '@heroicons/vue/16/solid';
|
|
102
|
+
</script>
|
|
103
|
+
|
|
104
|
+
<template>
|
|
105
|
+
<KPICard orientation="vertical">
|
|
106
|
+
<KPICardSection title="Total returns today" value="952">
|
|
107
|
+
<Badge color="green">
|
|
108
|
+
<BadgeContent>+ 25%</BadgeContent>
|
|
109
|
+
<BadgeIcon>
|
|
110
|
+
<ArrowTrendingUpIcon />
|
|
111
|
+
</BadgeIcon>
|
|
112
|
+
</Badge>
|
|
113
|
+
</KPICardSection>
|
|
114
|
+
<KPICardSection title="Total returns last 30 days" value="10,483">
|
|
115
|
+
<Badge color="red">
|
|
116
|
+
<BadgeIcon>
|
|
117
|
+
<ArrowTrendingDownIcon />
|
|
118
|
+
</BadgeIcon>
|
|
119
|
+
<BadgeContent>- 25%</BadgeContent>
|
|
120
|
+
</Badge>
|
|
121
|
+
</KPICardSection>
|
|
122
|
+
</KPICard>
|
|
123
|
+
</template>
|
|
124
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { TailwindColor, useTailwindColor, useTheme, useUniqueId } from '../../composables';
|
|
3
|
+
import { TextStyle } from '../TextStyle';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
color: TailwindColor;
|
|
7
|
+
}>();
|
|
8
|
+
|
|
9
|
+
const legendItemId = useUniqueId('legendItem');
|
|
10
|
+
|
|
11
|
+
const colorValue = useTailwindColor(props.color, '500');
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<li :aria-labelledby="legendItemId">
|
|
16
|
+
<button
|
|
17
|
+
:class="useTheme('focus')"
|
|
18
|
+
class="flex items-center rounded border border-transparent px-2 space-x-2 py-0.5 hover:bg-slate-100"
|
|
19
|
+
role="button"
|
|
20
|
+
>
|
|
21
|
+
<span
|
|
22
|
+
class="h-2 w-2 rounded-full flex-shrink-0"
|
|
23
|
+
:style="{ backgroundColor: colorValue }"
|
|
24
|
+
/>
|
|
25
|
+
<TextStyle
|
|
26
|
+
:id="legendItemId"
|
|
27
|
+
variant="strong"
|
|
28
|
+
class="whitespace-nowrap"
|
|
29
|
+
>
|
|
30
|
+
<slot />
|
|
31
|
+
</TextStyle>
|
|
32
|
+
</button>
|
|
33
|
+
</li>
|
|
34
|
+
</template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { Legend, LegendItem } from '../../src/components';
|
|
3
|
+
import api from '../component-meta/Legend.json';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
# Legend
|
|
7
|
+
|
|
8
|
+
The `Legend` component is used to display a legend for a chart.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
<ComponentWrapper>
|
|
13
|
+
<Legend>
|
|
14
|
+
<LegendItem color="green">Category 1</LegendItem>
|
|
15
|
+
<LegendItem color="blue">Category 2</LegendItem>
|
|
16
|
+
<LegendItem color="red">Category 3</LegendItem>
|
|
17
|
+
</Legend>
|
|
18
|
+
</ComponentWrapper>
|
|
19
|
+
|
|
20
|
+
```js-vue
|
|
21
|
+
<script lang="ts" setup>
|
|
22
|
+
import { Legend, LegendItem } from '@returnless/focus-ui';
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<Legend>
|
|
27
|
+
<LegendItem color="green">Category 1</LegendItem>
|
|
28
|
+
<LegendItem color="blue">Category 2</LegendItem>
|
|
29
|
+
<LegendItem color="red">Category 3</LegendItem>
|
|
30
|
+
</Legend>
|
|
31
|
+
</template>
|
|
32
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { computed } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { InertiaLink } from '../InertiaLink';
|
|
4
4
|
|
|
5
5
|
const props = withDefaults(defineProps<{
|
|
6
6
|
/** The aria-label attribute to be applied to the link */
|
|
@@ -17,7 +17,7 @@ const props = withDefaults(defineProps<{
|
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
const componentType = computed(() => {
|
|
20
|
-
return props.native ? 'a' :
|
|
20
|
+
return props.native ? 'a' : InertiaLink;
|
|
21
21
|
});
|
|
22
22
|
</script>
|
|
23
23
|
|
|
@@ -25,13 +25,13 @@ const componentType = computed(() => {
|
|
|
25
25
|
<component
|
|
26
26
|
:is="componentType"
|
|
27
27
|
:aria-label="accessibilityLabel"
|
|
28
|
-
:href="href"
|
|
29
|
-
v-bind="$attrs"
|
|
30
28
|
:class="[
|
|
31
29
|
'text-brand-500',
|
|
32
30
|
'cursor-pointer',
|
|
33
31
|
'hover:underline'
|
|
34
32
|
]"
|
|
33
|
+
:href="href"
|
|
34
|
+
v-bind="$attrs"
|
|
35
35
|
>
|
|
36
36
|
<slot />
|
|
37
37
|
</component>
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { computed } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { InertiaLink } from '../InertiaLink';
|
|
4
4
|
|
|
5
5
|
const props = withDefaults(defineProps<{
|
|
6
|
+
/** Whether the navigation item is active. */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
|
|
6
9
|
/** The URL to navigate to. */
|
|
7
10
|
href: string;
|
|
8
11
|
|
|
9
|
-
/**
|
|
10
|
-
|
|
12
|
+
/** The icon to display to the left of the navigation item. */
|
|
13
|
+
icon?: (() => void) | null;
|
|
11
14
|
}>(), {
|
|
12
15
|
active: false,
|
|
16
|
+
icon: null,
|
|
13
17
|
});
|
|
14
18
|
|
|
15
|
-
const classList = computed(() => {
|
|
19
|
+
const classList = computed((): Record<string, boolean>[] => {
|
|
16
20
|
return [
|
|
17
|
-
{ 'relative bg-
|
|
21
|
+
{ 'relative bg-slate-200': props.active },
|
|
18
22
|
{ 'text-slate-500 hover:bg-slate-100': !props.active },
|
|
19
23
|
];
|
|
20
24
|
});
|
|
@@ -22,22 +26,22 @@ const classList = computed(() => {
|
|
|
22
26
|
|
|
23
27
|
<template>
|
|
24
28
|
<div class="block">
|
|
25
|
-
<
|
|
29
|
+
<InertiaLink :href="href">
|
|
26
30
|
<div
|
|
27
31
|
class="flex items-center rounded px-3 py-2 space-x-3"
|
|
28
32
|
:class="classList"
|
|
29
33
|
>
|
|
30
34
|
<span
|
|
31
|
-
v-if="
|
|
35
|
+
v-if="!!icon"
|
|
32
36
|
class="h-4 w-4 opacity-75"
|
|
33
37
|
>
|
|
34
|
-
<
|
|
38
|
+
<component :is="icon" />
|
|
35
39
|
</span>
|
|
36
40
|
|
|
37
|
-
<span class="font-medium">
|
|
41
|
+
<span :class="{ 'font-medium': active }">
|
|
38
42
|
<slot />
|
|
39
43
|
</span>
|
|
40
44
|
</div>
|
|
41
|
-
</
|
|
45
|
+
</InertiaLink>
|
|
42
46
|
</div>
|
|
43
47
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { Navigation, NavigationItem, NavigationSection } from '../../src/components';
|
|
2
|
+
import { Navigation, NavigationItem, NavigationSecondarySection, NavigationSection } from '../../src/components';
|
|
3
3
|
import api from '../component-meta/Navigation.json';
|
|
4
4
|
import { UserIcon, HandThumbDownIcon, QuestionMarkCircleIcon, BoltIcon } from '@heroicons/vue/16/solid';
|
|
5
5
|
</script>
|
|
@@ -16,34 +16,29 @@ Navigation includes a list of links that users use to move between sections of t
|
|
|
16
16
|
<ComponentWrapper>
|
|
17
17
|
<Navigation>
|
|
18
18
|
<NavigationSection>
|
|
19
|
-
<NavigationItem>General</NavigationItem>
|
|
19
|
+
<NavigationItem href="#">General</NavigationItem>
|
|
20
20
|
</NavigationSection>
|
|
21
21
|
<NavigationSection label="Workflow management">
|
|
22
|
-
<NavigationItem>
|
|
23
|
-
<template #icon>
|
|
24
|
-
<HandThumbDownIcon />
|
|
25
|
-
</template>
|
|
22
|
+
<NavigationItem :icon="HandThumbDownIcon" href="#">
|
|
26
23
|
Return reasons
|
|
27
24
|
</NavigationItem>
|
|
28
|
-
<NavigationItem active>
|
|
29
|
-
<template #icon>
|
|
30
|
-
<QuestionMarkCircleIcon />
|
|
31
|
-
</template>
|
|
25
|
+
<NavigationItem active :icon="QuestionMarkCircleIcon" href="#">
|
|
32
26
|
Return questions
|
|
33
27
|
</NavigationItem>
|
|
34
|
-
<NavigationItem>
|
|
35
|
-
<template #icon>
|
|
36
|
-
<BoltIcon />
|
|
37
|
-
</template>
|
|
28
|
+
<NavigationItem :icon="BoltIcon" href="#">
|
|
38
29
|
Automations
|
|
39
30
|
</NavigationItem>
|
|
31
|
+
<NavigationSecondarySection>
|
|
32
|
+
<NavigationItem href="#">Sub item 1</NavigationItem>
|
|
33
|
+
<NavigationItem href="#">Sub item 2</NavigationItem>
|
|
34
|
+
</NavigationSecondarySection>
|
|
40
35
|
</NavigationSection>
|
|
41
36
|
</Navigation>
|
|
42
37
|
</ComponentWrapper>
|
|
43
38
|
|
|
44
39
|
```js-vue
|
|
45
40
|
<script lang="ts" setup>
|
|
46
|
-
import { Navigation, NavigationItem, NavigationSection } from 'focus-ui';
|
|
41
|
+
import { Navigation, NavigationItem, NavigationSection } from '@returnless/focus-ui';
|
|
47
42
|
import { UserIcon, HandThumbDownIcon, QuestionMarkCircleIcon, BoltIcon } from '@heroicons/vue/16/solid';
|
|
48
43
|
</script>
|
|
49
44
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as Navigation } from './Navigation.vue';
|
|
2
2
|
export { default as NavigationItem } from './NavigationItem.vue';
|
|
3
|
+
export { default as NavigationSecondarySection } from './NavigationSecondarySection.vue';
|
|
3
4
|
export { default as NavigationSection } from './NavigationSection.vue';
|