@skunkworksai/ui-kit 0.1.18
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/AGENTS.md +250 -0
- package/README.md +429 -0
- package/dist/assets/Service-applets-apps/audience-measurement.png +0 -0
- package/dist/assets/Service-applets-apps/coatro-app.png +0 -0
- package/dist/assets/Service-applets-apps/content-effectiveness.png +0 -0
- package/dist/assets/Service-applets-apps/hop-tracking.png +0 -0
- package/dist/assets/Service-applets-apps/index.ts +13 -0
- package/dist/assets/Service-applets-apps/journeys-app.png +0 -0
- package/dist/assets/Service-applets-apps/people-counting.png +0 -0
- package/dist/assets/Service-applets-apps/petra.png +0 -0
- package/dist/assets/Service-applets-apps/sam-generic.png +0 -0
- package/dist/assets/Service-applets-apps/sami-for-environment.png +0 -0
- package/dist/assets/Service-applets-apps/shelf-engagement.png +0 -0
- package/dist/assets/Service-applets-apps/traffic-management.png +0 -0
- package/dist/assets/Service-applets-apps/viana.png +0 -0
- package/dist/assets/Service-applets-apps/zone-engagement.png +0 -0
- package/dist/assets/icons/Dashboard-active.svg +29 -0
- package/dist/assets/icons/Dashboard.svg +25 -0
- package/dist/assets/icons/DashboardActiveIcon.tsx +35 -0
- package/dist/assets/icons/DashboardIcon.tsx +31 -0
- package/dist/assets/icons/Devices-active.svg +27 -0
- package/dist/assets/icons/Devices.svg +20 -0
- package/dist/assets/icons/DevicesActiveIcon.tsx +33 -0
- package/dist/assets/icons/DevicesIcon.tsx +26 -0
- package/dist/assets/icons/Installer-active.svg +29 -0
- package/dist/assets/icons/Installer.svg +17 -0
- package/dist/assets/icons/InstallerActiveIcon.tsx +35 -0
- package/dist/assets/icons/InstallerIcon.tsx +23 -0
- package/dist/assets/icons/Manifest-active.svg +49 -0
- package/dist/assets/icons/Manifest.svg +49 -0
- package/dist/assets/icons/ManifestActiveIcon.tsx +55 -0
- package/dist/assets/icons/ManifestIcon.tsx +55 -0
- package/dist/assets/icons/Sensor-active.svg +15 -0
- package/dist/assets/icons/Sensor.svg +11 -0
- package/dist/assets/icons/SensorActiveIcon.tsx +21 -0
- package/dist/assets/icons/SensorIcon.tsx +17 -0
- package/dist/assets/icons/Site-active.svg +14 -0
- package/dist/assets/icons/Site.svg +10 -0
- package/dist/assets/icons/SiteActiveIcon.tsx +20 -0
- package/dist/assets/icons/SiteIcon.tsx +16 -0
- package/dist/assets/icons/X-ray-active.svg +199 -0
- package/dist/assets/icons/X-ray.svg +47 -0
- package/dist/assets/icons/XrayActiveIcon.tsx +205 -0
- package/dist/assets/icons/XrayIcon.tsx +53 -0
- package/dist/assets/icons/index.ts +14 -0
- package/dist/assets/logos/DarkLogo.tsx +28 -0
- package/dist/assets/logos/DarkSymbol.tsx +9 -0
- package/dist/assets/logos/PrimaryLogo.tsx +28 -0
- package/dist/assets/logos/PrimarySymbol.tsx +9 -0
- package/dist/assets/logos/WhiteLogo.tsx +28 -0
- package/dist/assets/logos/WhiteSymbol.tsx +9 -0
- package/dist/assets/logos/dark_logo.svg +22 -0
- package/dist/assets/logos/dark_symbol.svg +3 -0
- package/dist/assets/logos/index.ts +6 -0
- package/dist/assets/logos/primary-logo.svg +22 -0
- package/dist/assets/logos/primary_logo.svg +22 -0
- package/dist/assets/logos/primary_symbol.svg +3 -0
- package/dist/assets/logos/white_symbol.svg +3 -0
- package/dist/index.cjs +160 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +45276 -0
- package/dist/index.js.map +1 -0
- package/dist/tokens-source.css +121 -0
- package/dist/types/assets/Service-applets-apps/index.d.ts +13 -0
- package/dist/types/assets/icons/DashboardActiveIcon.d.ts +2 -0
- package/dist/types/assets/icons/DashboardIcon.d.ts +2 -0
- package/dist/types/assets/icons/DevicesActiveIcon.d.ts +2 -0
- package/dist/types/assets/icons/DevicesIcon.d.ts +2 -0
- package/dist/types/assets/icons/InstallerActiveIcon.d.ts +2 -0
- package/dist/types/assets/icons/InstallerIcon.d.ts +2 -0
- package/dist/types/assets/icons/ManifestActiveIcon.d.ts +2 -0
- package/dist/types/assets/icons/ManifestIcon.d.ts +2 -0
- package/dist/types/assets/icons/SensorActiveIcon.d.ts +2 -0
- package/dist/types/assets/icons/SensorIcon.d.ts +2 -0
- package/dist/types/assets/icons/SiteActiveIcon.d.ts +2 -0
- package/dist/types/assets/icons/SiteIcon.d.ts +2 -0
- package/dist/types/assets/icons/XrayActiveIcon.d.ts +2 -0
- package/dist/types/assets/icons/XrayIcon.d.ts +2 -0
- package/dist/types/assets/icons/index.d.ts +14 -0
- package/dist/types/assets/logos/DarkLogo.d.ts +2 -0
- package/dist/types/assets/logos/DarkSymbol.d.ts +2 -0
- package/dist/types/assets/logos/PrimaryLogo.d.ts +2 -0
- package/dist/types/assets/logos/PrimarySymbol.d.ts +2 -0
- package/dist/types/assets/logos/WhiteLogo.d.ts +2 -0
- package/dist/types/assets/logos/WhiteSymbol.d.ts +2 -0
- package/dist/types/assets/logos/index.d.ts +6 -0
- package/dist/types/components/blocks/AppBentoMenu.d.ts +31 -0
- package/dist/types/components/blocks/AppDashboard.d.ts +121 -0
- package/dist/types/components/blocks/AppHeader.d.ts +198 -0
- package/dist/types/components/blocks/AppLocationTreeFilter.d.ts +44 -0
- package/dist/types/components/blocks/AppNotificationsMenu.d.ts +50 -0
- package/dist/types/components/blocks/AppPageTitle.d.ts +86 -0
- package/dist/types/components/blocks/AppProfile.d.ts +53 -0
- package/dist/types/components/blocks/TableManager.d.ts +194 -0
- package/dist/types/components/blocks/backgrounds/AppDashboardBackgroundDots.d.ts +14 -0
- package/dist/types/components/blocks/backgrounds/AppDashboardBackgroundWave.d.ts +14 -0
- package/dist/types/components/blocks/backgrounds/index.d.ts +3 -0
- package/dist/types/components/blocks/backgrounds/types.d.ts +13 -0
- package/dist/types/components/blocks/index.d.ts +9 -0
- package/dist/types/components/primitives/AppAccordion.d.ts +22 -0
- package/dist/types/components/primitives/AppAlert.d.ts +33 -0
- package/dist/types/components/primitives/AppAlertDialog.d.ts +79 -0
- package/dist/types/components/primitives/AppAspectRatio.d.ts +7 -0
- package/dist/types/components/primitives/AppAvatar.d.ts +17 -0
- package/dist/types/components/primitives/AppBadge.d.ts +9 -0
- package/dist/types/components/primitives/AppBreadcrumb.d.ts +45 -0
- package/dist/types/components/primitives/AppButton.d.ts +24 -0
- package/dist/types/components/primitives/AppButtonGroup.d.ts +10 -0
- package/dist/types/components/primitives/AppCalendar.d.ts +51 -0
- package/dist/types/components/primitives/AppCard.d.ts +41 -0
- package/dist/types/components/primitives/AppCarousel.d.ts +26 -0
- package/dist/types/components/primitives/AppChart.d.ts +27 -0
- package/dist/types/components/primitives/AppCheckbox.d.ts +9 -0
- package/dist/types/components/primitives/AppCollapsible.d.ts +20 -0
- package/dist/types/components/primitives/AppCombobox.d.ts +37 -0
- package/dist/types/components/primitives/AppCommand.d.ts +47 -0
- package/dist/types/components/primitives/AppContextMenu.d.ts +82 -0
- package/dist/types/components/primitives/AppDataTable.d.ts +23 -0
- package/dist/types/components/primitives/AppDatePicker.d.ts +26 -0
- package/dist/types/components/primitives/AppDialog.d.ts +40 -0
- package/dist/types/components/primitives/AppDrawer.d.ts +58 -0
- package/dist/types/components/primitives/AppDropdownMenu.d.ts +85 -0
- package/dist/types/components/primitives/AppEmpty.d.ts +35 -0
- package/dist/types/components/primitives/AppField.d.ts +65 -0
- package/dist/types/components/primitives/AppForm.d.ts +58 -0
- package/dist/types/components/primitives/AppHoverCard.d.ts +19 -0
- package/dist/types/components/primitives/AppInput.d.ts +21 -0
- package/dist/types/components/primitives/AppKbd.d.ts +18 -0
- package/dist/types/components/primitives/AppLabel.d.ts +8 -0
- package/dist/types/components/primitives/AppMenubar.d.ts +83 -0
- package/dist/types/components/primitives/AppNavigationMenu.d.ts +51 -0
- package/dist/types/components/primitives/AppPagination.d.ts +46 -0
- package/dist/types/components/primitives/AppPopover.d.ts +20 -0
- package/dist/types/components/primitives/AppProgress.d.ts +9 -0
- package/dist/types/components/primitives/AppRadioGroup.d.ts +15 -0
- package/dist/types/components/primitives/AppScrollArea.d.ts +12 -0
- package/dist/types/components/primitives/AppScrollText.d.ts +7 -0
- package/dist/types/components/primitives/AppSelect.d.ts +46 -0
- package/dist/types/components/primitives/AppSeparator.d.ts +8 -0
- package/dist/types/components/primitives/AppSheet.d.ts +32 -0
- package/dist/types/components/primitives/AppSidebar.d.ts +59 -0
- package/dist/types/components/primitives/AppSkeleton.d.ts +6 -0
- package/dist/types/components/primitives/AppSpinner.d.ts +13 -0
- package/dist/types/components/primitives/AppSwitch.d.ts +8 -0
- package/dist/types/components/primitives/AppTable.d.ts +53 -0
- package/dist/types/components/primitives/AppTabs.d.ts +10 -0
- package/dist/types/components/primitives/AppTextarea.d.ts +9 -0
- package/dist/types/components/primitives/AppThemeProvider.d.ts +46 -0
- package/dist/types/components/primitives/AppToaster.d.ts +7 -0
- package/dist/types/components/primitives/AppToggle.d.ts +9 -0
- package/dist/types/components/primitives/AppToggleGroup.d.ts +18 -0
- package/dist/types/components/primitives/AppTooltip.d.ts +26 -0
- package/dist/types/components/primitives/AppTypography.d.ts +80 -0
- package/dist/types/components/primitives/index.d.ts +57 -0
- package/dist/types/components/ui/accordion.d.ts +7 -0
- package/dist/types/components/ui/alert-dialog.d.ts +20 -0
- package/dist/types/components/ui/alert.d.ts +8 -0
- package/dist/types/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/types/components/ui/avatar.d.ts +6 -0
- package/dist/types/components/ui/badge.d.ts +9 -0
- package/dist/types/components/ui/breadcrumb.d.ts +19 -0
- package/dist/types/components/ui/button.d.ts +13 -0
- package/dist/types/components/ui/calendar.d.ts +8 -0
- package/dist/types/components/ui/card.d.ts +11 -0
- package/dist/types/components/ui/carousel.d.ts +28 -0
- package/dist/types/components/ui/chart.d.ts +48 -0
- package/dist/types/components/ui/checkbox.d.ts +4 -0
- package/dist/types/components/ui/collapsible.d.ts +6 -0
- package/dist/types/components/ui/combobox.d.ts +83 -0
- package/dist/types/components/ui/command.d.ts +82 -0
- package/dist/types/components/ui/context-menu.d.ts +27 -0
- package/dist/types/components/ui/dialog.d.ts +19 -0
- package/dist/types/components/ui/drawer.d.ts +23 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/types/components/ui/empty.d.ts +14 -0
- package/dist/types/components/ui/field.d.ts +40 -0
- package/dist/types/components/ui/form.d.ts +22 -0
- package/dist/types/components/ui/hover-card.d.ts +6 -0
- package/dist/types/components/ui/input.d.ts +3 -0
- package/dist/types/components/ui/kbd.d.ts +4 -0
- package/dist/types/components/ui/label.d.ts +4 -0
- package/dist/types/components/ui/menubar.d.ts +30 -0
- package/dist/types/components/ui/navigation-menu.d.ts +12 -0
- package/dist/types/components/ui/pagination.d.ts +28 -0
- package/dist/types/components/ui/popover.d.ts +6 -0
- package/dist/types/components/ui/progress.d.ts +4 -0
- package/dist/types/components/ui/radio-group.d.ts +5 -0
- package/dist/types/components/ui/scroll-area.d.ts +5 -0
- package/dist/types/components/ui/scroll-text.d.ts +6 -0
- package/dist/types/components/ui/select.d.ts +13 -0
- package/dist/types/components/ui/separator.d.ts +4 -0
- package/dist/types/components/ui/sheet.d.ts +25 -0
- package/dist/types/components/ui/sidebar.d.ts +69 -0
- package/dist/types/components/ui/skeleton.d.ts +2 -0
- package/dist/types/components/ui/sonner.d.ts +2 -0
- package/dist/types/components/ui/switch.d.ts +4 -0
- package/dist/types/components/ui/table.d.ts +10 -0
- package/dist/types/components/ui/tabs.d.ts +19 -0
- package/dist/types/components/ui/textarea.d.ts +5 -0
- package/dist/types/components/ui/toggle-group.d.ts +15 -0
- package/dist/types/components/ui/toggle.d.ts +12 -0
- package/dist/types/components/ui/tooltip.d.ts +7 -0
- package/dist/types/hooks/use-mobile.d.ts +13 -0
- package/dist/types/hooks/use-page-title.d.ts +23 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/ui-kit.css +1 -0
- package/package.json +117 -0
- package/rules/accordion.md +60 -0
- package/rules/alert-dialog.md +62 -0
- package/rules/alert.md +61 -0
- package/rules/aspect-ratio.md +47 -0
- package/rules/avatar.md +52 -0
- package/rules/badge.md +55 -0
- package/rules/bento-menu.md +86 -0
- package/rules/breadcrumb.md +80 -0
- package/rules/button-group.md +58 -0
- package/rules/button.md +66 -0
- package/rules/calendar.md +97 -0
- package/rules/card.md +84 -0
- package/rules/carousel.md +113 -0
- package/rules/chart.md +125 -0
- package/rules/checkbox.md +49 -0
- package/rules/collapsible.md +57 -0
- package/rules/combobox.md +133 -0
- package/rules/command.md +73 -0
- package/rules/context-menu.md +65 -0
- package/rules/dashboard.md +368 -0
- package/rules/data-table.md +91 -0
- package/rules/date-picker.md +65 -0
- package/rules/dialog.md +60 -0
- package/rules/drawer.md +65 -0
- package/rules/dropdown-menu.md +72 -0
- package/rules/empty.md +110 -0
- package/rules/field.md +149 -0
- package/rules/form.md +60 -0
- package/rules/header.md +245 -0
- package/rules/hover-card.md +53 -0
- package/rules/icons.md +141 -0
- package/rules/input.md +66 -0
- package/rules/kbd.md +58 -0
- package/rules/label.md +30 -0
- package/rules/location-tree-filter.md +165 -0
- package/rules/logo.md +58 -0
- package/rules/menubar.md +75 -0
- package/rules/navigation-menu.md +68 -0
- package/rules/notifications-menu.md +137 -0
- package/rules/pagetitle.md +160 -0
- package/rules/pagination.md +71 -0
- package/rules/popover.md +48 -0
- package/rules/profile.md +125 -0
- package/rules/progress.md +41 -0
- package/rules/radio-group.md +44 -0
- package/rules/scroll-area.md +32 -0
- package/rules/scroll-text.md +40 -0
- package/rules/select.md +86 -0
- package/rules/separator.md +43 -0
- package/rules/sheet.md +76 -0
- package/rules/sidebar.md +442 -0
- package/rules/skeleton.md +46 -0
- package/rules/spinner.md +43 -0
- package/rules/switch.md +46 -0
- package/rules/table-manager.md +306 -0
- package/rules/table.md +177 -0
- package/rules/tabs.md +82 -0
- package/rules/text.md +3 -0
- package/rules/textarea.md +38 -0
- package/rules/toaster.md +58 -0
- package/rules/toggle-group.md +50 -0
- package/rules/toggle.md +40 -0
- package/rules/tokens.md +88 -0
- package/rules/tooltip.md +78 -0
- package/rules/typography.md +81 -0
- package/scripts/scaffold.mjs +28 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "../ui/breadcrumb";
|
|
2
|
+
/**
|
|
3
|
+
* AppBreadcrumb — Displays the path to the current resource using a hierarchy of links.
|
|
4
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
5
|
+
*/
|
|
6
|
+
declare function AppBreadcrumb(props: React.ComponentProps<typeof Breadcrumb>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* AppBreadcrumbList — The list container for AppBreadcrumb.
|
|
9
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
10
|
+
*/
|
|
11
|
+
declare function AppBreadcrumbList(props: React.ComponentProps<typeof BreadcrumbList>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* AppBreadcrumbItem — An individual item within AppBreadcrumb.
|
|
14
|
+
* Pass `hideOnMobile` on middle segments to collapse them below sm breakpoint.
|
|
15
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
16
|
+
*/
|
|
17
|
+
declare function AppBreadcrumbItem({ hideOnMobile, className, ...props }: React.ComponentProps<typeof BreadcrumbItem> & {
|
|
18
|
+
hideOnMobile?: boolean;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* AppBreadcrumbLink — A link component for AppBreadcrumb.
|
|
22
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
23
|
+
*/
|
|
24
|
+
declare function AppBreadcrumbLink(props: React.ComponentProps<typeof BreadcrumbLink> & {
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* AppBreadcrumbPage — The current page indicator for AppBreadcrumb.
|
|
29
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
30
|
+
*/
|
|
31
|
+
declare function AppBreadcrumbPage(props: React.ComponentProps<typeof BreadcrumbPage>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* AppBreadcrumbSeparator — The separator component for AppBreadcrumb items.
|
|
34
|
+
* Pass `hideOnMobile` alongside a hidden `AppBreadcrumbItem` to suppress the separator on mobile too.
|
|
35
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
36
|
+
*/
|
|
37
|
+
declare function AppBreadcrumbSeparator({ hideOnMobile, className, ...props }: React.ComponentProps<typeof BreadcrumbSeparator> & {
|
|
38
|
+
hideOnMobile?: boolean;
|
|
39
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* AppBreadcrumbEllipsis — An ellipsis indicator for collapsed AppBreadcrumb items.
|
|
42
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
43
|
+
*/
|
|
44
|
+
declare function AppBreadcrumbEllipsis(props: React.ComponentProps<typeof BreadcrumbEllipsis>): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export { AppBreadcrumb, AppBreadcrumbList, AppBreadcrumbItem, AppBreadcrumbLink, AppBreadcrumbPage, AppBreadcrumbSeparator, AppBreadcrumbEllipsis, };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Button, buttonVariants } from "../ui/button";
|
|
3
|
+
import type { VariantProps } from "class-variance-authority";
|
|
4
|
+
/**
|
|
5
|
+
* AppButton — the primary action primitive for UI Kit.
|
|
6
|
+
*
|
|
7
|
+
* @prop loading - Replaces iconLeft with a spinner and disables the button.
|
|
8
|
+
* Do not add an AppSpinner manually — use this prop instead.
|
|
9
|
+
* @prop iconLeft - Renders an icon before the button label using the button's
|
|
10
|
+
* built-in inline-start slot. Do not wrap in extra divs.
|
|
11
|
+
* @prop iconRight - Renders an icon after the button label using the button's
|
|
12
|
+
* built-in inline-end slot. Do not wrap in extra divs.
|
|
13
|
+
*
|
|
14
|
+
* @note Never use a raw <button> element. Use AppButton.
|
|
15
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
16
|
+
* @note Gap between icons and label is controlled by the size variant — do not override it.
|
|
17
|
+
*/
|
|
18
|
+
type AppButtonProps = React.ComponentProps<typeof Button> & VariantProps<typeof buttonVariants> & {
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
iconLeft?: React.ReactNode;
|
|
21
|
+
iconRight?: React.ReactNode;
|
|
22
|
+
};
|
|
23
|
+
declare function AppButton({ loading, iconLeft, iconRight, disabled, className, children, ...props }: AppButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export { AppButton, type AppButtonProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* AppButtonGroup — A layout helper for grouping buttons together.
|
|
4
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
5
|
+
*/
|
|
6
|
+
declare function AppButtonGroup({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace AppButtonGroup {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { AppButtonGroup };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { DateRange, Matcher } from "react-day-picker";
|
|
2
|
+
declare function addDays(date: Date, days: number): Date;
|
|
3
|
+
type AppCalendarBaseProps = {
|
|
4
|
+
/** Show as a popover trigger instead of inline */
|
|
5
|
+
popover?: boolean;
|
|
6
|
+
/** Show preset quick-select buttons inside the popover. Pass an array of { label, days } */
|
|
7
|
+
presets?: {
|
|
8
|
+
label: string;
|
|
9
|
+
days: number;
|
|
10
|
+
}[];
|
|
11
|
+
/** Placeholder text for the popover trigger button */
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** Disable the trigger button */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Dates to disable in the calendar */
|
|
16
|
+
disabledDates?: Matcher | Matcher[];
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
type AppCalendarSingleProps = AppCalendarBaseProps & {
|
|
20
|
+
mode?: "single";
|
|
21
|
+
value?: Date;
|
|
22
|
+
onChange?: (date: Date | undefined) => void;
|
|
23
|
+
numberOfMonths?: number;
|
|
24
|
+
showWeekNumber?: boolean;
|
|
25
|
+
};
|
|
26
|
+
type AppCalendarRangeProps = AppCalendarBaseProps & {
|
|
27
|
+
mode: "range";
|
|
28
|
+
value?: DateRange;
|
|
29
|
+
onChange?: (range: DateRange | undefined) => void;
|
|
30
|
+
numberOfMonths?: number;
|
|
31
|
+
showWeekNumber?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type AppCalendarProps = AppCalendarSingleProps | AppCalendarRangeProps;
|
|
34
|
+
/**
|
|
35
|
+
* AppCalendar — A fully composable date picker.
|
|
36
|
+
*
|
|
37
|
+
* @prop mode - "single" (default) or "range"
|
|
38
|
+
* @prop popover - Wrap in a popover trigger instead of rendering inline
|
|
39
|
+
* @prop presets - Quick-select preset buttons (popover only). Pass an array of { label, days }.
|
|
40
|
+
* @prop value - Controlled selected date (Date for single, DateRange for range)
|
|
41
|
+
* @prop onChange - Change handler
|
|
42
|
+
* @prop numberOfMonths - How many months to display side by side
|
|
43
|
+
* @prop showWeekNumber - Show ISO week numbers
|
|
44
|
+
* @prop disabledDates - Dates to disable
|
|
45
|
+
* @prop placeholder - Trigger button text when no date selected (popover only)
|
|
46
|
+
* @prop disabled - Disable the trigger button (popover only)
|
|
47
|
+
*
|
|
48
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
49
|
+
*/
|
|
50
|
+
declare function AppCalendar(props: AppCalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export { AppCalendar, addDays };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent } from "../ui/card";
|
|
2
|
+
type AppCardPadding = "default" | "none" | "sm" | "md" | "lg";
|
|
3
|
+
type AppCardProps = React.ComponentProps<typeof Card> & {
|
|
4
|
+
padding?: AppCardPadding;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* AppCard — A flexible container component for displaying content in a box.
|
|
8
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
9
|
+
*/
|
|
10
|
+
declare function AppCard({ className, padding, ...props }: AppCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* AppCardHeader — The header section of an AppCard.
|
|
13
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
14
|
+
*/
|
|
15
|
+
declare function AppCardHeader(props: React.ComponentProps<typeof CardHeader>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* AppCardTitle — The title component for AppCard.
|
|
18
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
19
|
+
*/
|
|
20
|
+
declare function AppCardTitle(props: React.ComponentProps<typeof CardTitle>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* AppCardDescription — The description component for AppCard.
|
|
23
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
24
|
+
*/
|
|
25
|
+
declare function AppCardDescription(props: React.ComponentProps<typeof CardDescription>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* AppCardAction — An action component for AppCard.
|
|
28
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
29
|
+
*/
|
|
30
|
+
declare function AppCardAction(props: React.ComponentProps<typeof CardAction>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* AppCardContent — The main content area of an AppCard.
|
|
33
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
34
|
+
*/
|
|
35
|
+
declare function AppCardContent(props: React.ComponentProps<typeof CardContent>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* AppCardFooter — The footer section of an AppCard.
|
|
38
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
39
|
+
*/
|
|
40
|
+
declare function AppCardFooter(props: React.ComponentProps<typeof CardFooter>): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export { AppCard, AppCardHeader, AppCardTitle, AppCardDescription, AppCardAction, AppCardContent, AppCardFooter, type AppCardProps, type AppCardPadding, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselApi, useCarousel } from "../ui/carousel";
|
|
2
|
+
/**
|
|
3
|
+
* AppCarousel — A slideshow component for cycling through elements.
|
|
4
|
+
* @note Built on Embla Carousel. Supports horizontal/vertical orientation.
|
|
5
|
+
* @note Use AppCarouselContent > AppCarouselItem for slides.
|
|
6
|
+
* @note AppCarouselPrevious / AppCarouselNext require a positioned parent — the carousel root has `relative` by default.
|
|
7
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
8
|
+
*/
|
|
9
|
+
declare function AppCarousel(props: React.ComponentProps<typeof Carousel>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* AppCarouselContent — The scrollable slide container. Wrap AppCarouselItem children inside.
|
|
12
|
+
*/
|
|
13
|
+
declare function AppCarouselContent(props: React.ComponentProps<typeof CarouselContent>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* AppCarouselItem — A single slide. Use `className="basis-1/2"` etc. to control width.
|
|
16
|
+
*/
|
|
17
|
+
declare function AppCarouselItem(props: React.ComponentProps<typeof CarouselItem>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* AppCarouselPrevious — Previous slide button. Positioned absolutely; ensure the parent has enough space.
|
|
20
|
+
*/
|
|
21
|
+
declare function AppCarouselPrevious(props: React.ComponentProps<typeof CarouselPrevious>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* AppCarouselNext — Next slide button. Positioned absolutely; ensure the parent has enough space.
|
|
24
|
+
*/
|
|
25
|
+
declare function AppCarouselNext(props: React.ComponentProps<typeof CarouselNext>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { AppCarousel, AppCarouselContent, AppCarouselItem, AppCarouselPrevious, AppCarouselNext, type CarouselApi as AppCarouselApi, useCarousel as useAppCarousel, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ChartContainer, ChartLegendContent, ChartStyle, ChartTooltipContent, useChart, type ChartConfig } from "../ui/chart";
|
|
2
|
+
export * from "recharts";
|
|
3
|
+
/**
|
|
4
|
+
* AppChartContainer — Root wrapper for all charts. Requires a `config` and a height constraint (`min-h-*` or `aspect-*`).
|
|
5
|
+
* @note Pass `config` with color/label mappings for each data key.
|
|
6
|
+
* @note Children must be a single Recharts chart component (BarChart, LineChart, etc.).
|
|
7
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
8
|
+
*/
|
|
9
|
+
declare function AppChartContainer(props: React.ComponentProps<typeof ChartContainer>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* AppChartTooltip — Drop-in replacement for Recharts Tooltip. Use with AppChartTooltipContent.
|
|
12
|
+
*/
|
|
13
|
+
declare const AppChartTooltip: typeof import("recharts").Tooltip;
|
|
14
|
+
/**
|
|
15
|
+
* AppChartTooltipContent — Styled tooltip body. Pass as `content` prop to AppChartTooltip.
|
|
16
|
+
* @note `indicator` controls the color swatch shape: "dot" | "line" | "dashed".
|
|
17
|
+
*/
|
|
18
|
+
declare function AppChartTooltipContent(props: React.ComponentProps<typeof ChartTooltipContent>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* AppChartLegend — Drop-in replacement for Recharts Legend. Use with AppChartLegendContent.
|
|
21
|
+
*/
|
|
22
|
+
declare const AppChartLegend: import("react").MemoExoticComponent<(outsideProps: import("recharts").LegendProps) => React.ReactPortal | null>;
|
|
23
|
+
/**
|
|
24
|
+
* AppChartLegendContent — Styled legend body. Pass as `content` prop to AppChartLegend.
|
|
25
|
+
*/
|
|
26
|
+
declare function AppChartLegendContent(props: React.ComponentProps<typeof ChartLegendContent>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export { AppChartContainer, AppChartTooltip, AppChartTooltipContent, AppChartLegend, AppChartLegendContent, ChartStyle as AppChartStyle, useChart as useAppChart, type ChartConfig as AppChartConfig, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Checkbox as CheckboxPrimitive } from "../ui/checkbox";
|
|
2
|
+
type AppCheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive>;
|
|
3
|
+
/**
|
|
4
|
+
* AppCheckbox — A control that allows the user to select one or more options from a set.
|
|
5
|
+
* @note Never use the raw HTML equivalent. Use AppCheckbox.
|
|
6
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
7
|
+
*/
|
|
8
|
+
declare function AppCheckbox(props: AppCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { AppCheckbox };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Collapsible } from "../ui/collapsible";
|
|
2
|
+
/**
|
|
3
|
+
* AppCollapsible — An interactive component which can be expanded or collapsed.
|
|
4
|
+
* @note Never use the raw HTML equivalent. Use AppCollapsible.
|
|
5
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
6
|
+
*/
|
|
7
|
+
declare function AppCollapsible({ className, ...props }: React.ComponentProps<typeof Collapsible>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* AppCollapsibleTrigger — The trigger component for AppCollapsible.
|
|
10
|
+
* @note Never use the raw HTML equivalent. Use AppCollapsibleTrigger.
|
|
11
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
12
|
+
*/
|
|
13
|
+
declare const AppCollapsibleTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-collapsible").CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
/**
|
|
15
|
+
* AppCollapsibleContent — The content component for AppCollapsible.
|
|
16
|
+
* @note Never use the raw HTML equivalent. Use AppCollapsibleContent.
|
|
17
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
18
|
+
*/
|
|
19
|
+
declare const AppCollapsibleContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-collapsible").CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export { AppCollapsible, AppCollapsibleTrigger, AppCollapsibleContent };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxEmpty, ComboboxSeparator } from "../ui/combobox";
|
|
3
|
+
/**
|
|
4
|
+
* AppCombobox — root of the combobox primitive. Composes with AppComboboxInput,
|
|
5
|
+
* AppComboboxContent, AppComboboxList, AppComboboxItem, AppComboboxEmpty,
|
|
6
|
+
* and AppComboboxSeparator.
|
|
7
|
+
*
|
|
8
|
+
* @note Never use a raw <select> or custom dropdown. Use AppCombobox.
|
|
9
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
10
|
+
*/
|
|
11
|
+
declare function AppCombobox(props: React.ComponentProps<typeof Combobox>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* AppComboboxInput — trigger button that opens the combobox and shows the
|
|
14
|
+
* current selection.
|
|
15
|
+
*/
|
|
16
|
+
declare function AppComboboxInput(props: React.ComponentProps<typeof ComboboxInput>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* AppComboboxContent — popover panel containing the search input and item list.
|
|
19
|
+
*/
|
|
20
|
+
declare function AppComboboxContent(props: React.ComponentProps<typeof ComboboxContent>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* AppComboboxList — renders filtered items. Pass a render function as children.
|
|
23
|
+
*/
|
|
24
|
+
declare function AppComboboxList(props: React.ComponentProps<typeof ComboboxList>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
/**
|
|
26
|
+
* AppComboboxItem — a single selectable option inside AppComboboxList.
|
|
27
|
+
*/
|
|
28
|
+
declare function AppComboboxItem(props: React.ComponentProps<typeof ComboboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
/**
|
|
30
|
+
* AppComboboxEmpty — empty-state message shown when no items match the search.
|
|
31
|
+
*/
|
|
32
|
+
declare function AppComboboxEmpty(props: React.ComponentProps<typeof ComboboxEmpty>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* AppComboboxSeparator — divider between groups of items inside AppComboboxContent.
|
|
35
|
+
*/
|
|
36
|
+
declare function AppComboboxSeparator(props: React.ComponentProps<typeof ComboboxSeparator>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export { AppCombobox, AppComboboxInput, AppComboboxContent, AppComboboxList, AppComboboxItem, AppComboboxEmpty, AppComboboxSeparator, };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command, CommandDialog as CommandDialogBase, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from "../ui/command";
|
|
2
|
+
/**
|
|
3
|
+
* AppCommand — A fast and extensible command menu.
|
|
4
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
5
|
+
*/
|
|
6
|
+
declare function AppCommand({ className, ...props }: React.ComponentProps<typeof Command>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* AppCommandDialog — A command menu displayed in a dialog.
|
|
9
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
10
|
+
*/
|
|
11
|
+
declare function AppCommandDialog(props: React.ComponentProps<typeof CommandDialogBase>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* AppCommandInput — The input field for AppCommand.
|
|
14
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
15
|
+
*/
|
|
16
|
+
declare function AppCommandInput(props: React.ComponentProps<typeof CommandInput>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* AppCommandList — The list container for AppCommand items.
|
|
19
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
20
|
+
*/
|
|
21
|
+
declare function AppCommandList(props: React.ComponentProps<typeof CommandList>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* AppCommandEmpty — The empty state indicator for AppCommand.
|
|
24
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
25
|
+
*/
|
|
26
|
+
declare function AppCommandEmpty(props: React.ComponentProps<typeof CommandEmpty>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* AppCommandGroup — A grouping component for AppCommand items.
|
|
29
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
30
|
+
*/
|
|
31
|
+
declare function AppCommandGroup(props: React.ComponentProps<typeof CommandGroup>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* AppCommandItem — An individual item within AppCommand.
|
|
34
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
35
|
+
*/
|
|
36
|
+
declare function AppCommandItem(props: React.ComponentProps<typeof CommandItem>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
/**
|
|
38
|
+
* AppCommandShortcut — A keyboard shortcut indicator for AppCommand items.
|
|
39
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
40
|
+
*/
|
|
41
|
+
declare function AppCommandShortcut(props: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* AppCommandSeparator — A separator component for AppCommand groups.
|
|
44
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
45
|
+
*/
|
|
46
|
+
declare function AppCommandSeparator(props: React.ComponentProps<typeof CommandSeparator>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export { AppCommand, AppCommandDialog, AppCommandInput, AppCommandList, AppCommandEmpty, AppCommandGroup, AppCommandItem, AppCommandShortcut, AppCommandSeparator, };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuSubTrigger } from "../ui/context-menu";
|
|
2
|
+
/**
|
|
3
|
+
* AppContextMenu — A menu that appears when right-clicking.
|
|
4
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
5
|
+
*/
|
|
6
|
+
declare const AppContextMenu: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuProps>;
|
|
7
|
+
/**
|
|
8
|
+
* AppContextMenuTrigger — The trigger component for AppContextMenu.
|
|
9
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
10
|
+
*/
|
|
11
|
+
declare function AppContextMenuTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* AppContextMenuContent — The content component for AppContextMenu.
|
|
14
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
15
|
+
*/
|
|
16
|
+
declare function AppContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuContent>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* AppContextMenuItem — An individual item within AppContextMenu.
|
|
19
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
20
|
+
*/
|
|
21
|
+
declare function AppContextMenuItem({ className, ...props }: React.ComponentProps<typeof ContextMenuItem>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* AppContextMenuCheckboxItem — A checkbox item within AppContextMenu.
|
|
24
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
25
|
+
*/
|
|
26
|
+
declare function AppContextMenuCheckboxItem({ className, ...props }: React.ComponentProps<typeof ContextMenuCheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* AppContextMenuRadioItem — A radio item within AppContextMenu.
|
|
29
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
30
|
+
*/
|
|
31
|
+
declare function AppContextMenuRadioItem({ className, ...props }: React.ComponentProps<typeof ContextMenuRadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* AppContextMenuLabel — A label component for AppContextMenu sections.
|
|
34
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
35
|
+
*/
|
|
36
|
+
declare const AppContextMenuLabel: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
37
|
+
inset?: boolean;
|
|
38
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* AppContextMenuSeparator — A separator component for AppContextMenu items.
|
|
41
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
42
|
+
*/
|
|
43
|
+
declare const AppContextMenuSeparator: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
+
/**
|
|
45
|
+
* AppContextMenuShortcut — A keyboard shortcut indicator for AppContextMenu items.
|
|
46
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
47
|
+
*/
|
|
48
|
+
declare const AppContextMenuShortcut: {
|
|
49
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* AppContextMenuGroup — A grouping component for AppContextMenu items.
|
|
54
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
55
|
+
*/
|
|
56
|
+
declare const AppContextMenuGroup: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
57
|
+
/**
|
|
58
|
+
* AppContextMenuPortal — The portal component for AppContextMenu.
|
|
59
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
60
|
+
*/
|
|
61
|
+
declare const AppContextMenuPortal: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuPortalProps>;
|
|
62
|
+
/**
|
|
63
|
+
* AppContextMenuSub — A sub-menu within AppContextMenu.
|
|
64
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
65
|
+
*/
|
|
66
|
+
declare const AppContextMenuSub: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuSubProps>;
|
|
67
|
+
/**
|
|
68
|
+
* AppContextMenuSubContent — The content component for an AppContextMenu sub-menu.
|
|
69
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
70
|
+
*/
|
|
71
|
+
declare const AppContextMenuSubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
72
|
+
/**
|
|
73
|
+
* AppContextMenuSubTrigger — The trigger component for an AppContextMenu sub-menu.
|
|
74
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
75
|
+
*/
|
|
76
|
+
declare function AppContextMenuSubTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuSubTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
/**
|
|
78
|
+
* AppContextMenuRadioGroup — A radio group within AppContextMenu.
|
|
79
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
80
|
+
*/
|
|
81
|
+
declare const AppContextMenuRadioGroup: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
82
|
+
export { AppContextMenu, AppContextMenuTrigger, AppContextMenuContent, AppContextMenuItem, AppContextMenuCheckboxItem, AppContextMenuRadioItem, AppContextMenuLabel, AppContextMenuSeparator, AppContextMenuShortcut, AppContextMenuGroup, AppContextMenuPortal, AppContextMenuSub, AppContextMenuSubContent, AppContextMenuSubTrigger, AppContextMenuRadioGroup, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ColumnDef } from "@tanstack/react-table";
|
|
2
|
+
export type { ColumnDef };
|
|
3
|
+
type AppDataTableProps<TData, TValue> = {
|
|
4
|
+
data: TData[];
|
|
5
|
+
columns: ColumnDef<TData, TValue>[];
|
|
6
|
+
filterColumn?: string;
|
|
7
|
+
filterPlaceholder?: string;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
enableSorting?: boolean;
|
|
10
|
+
enableFiltering?: boolean;
|
|
11
|
+
enablePagination?: boolean;
|
|
12
|
+
enableColumnVisibility?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* AppDataTable — A full-featured data table built on TanStack Table v8.
|
|
17
|
+
* @note Define columns with `ColumnDef<TData, TValue>[]` and pass your data array.
|
|
18
|
+
* @note All features (sorting, filtering, pagination, column visibility) are enabled by default.
|
|
19
|
+
* @note Disable individual features via `enableSorting={false}` etc.
|
|
20
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
21
|
+
*/
|
|
22
|
+
declare function AppDataTable<TData, TValue>({ data, columns, filterColumn, filterPlaceholder, pageSize, enableSorting, enableFiltering, enablePagination, enableColumnVisibility, className, }: AppDataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { AppDataTable, type AppDataTableProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DateRange } from "react-day-picker";
|
|
2
|
+
type AppDatePickerSingleProps = {
|
|
3
|
+
mode?: "single";
|
|
4
|
+
value?: Date;
|
|
5
|
+
onChange?: (date: Date | undefined) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
type AppDatePickerRangeProps = {
|
|
11
|
+
mode: "range";
|
|
12
|
+
value?: DateRange;
|
|
13
|
+
onChange?: (range: DateRange | undefined) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
type AppDatePickerProps = AppDatePickerSingleProps | AppDatePickerRangeProps;
|
|
19
|
+
/**
|
|
20
|
+
* AppDatePicker — A button-triggered date picker built on AppPopover + AppCalendar.
|
|
21
|
+
* @note Use `mode="single"` (default) for one date, `mode="range"` for a start/end range.
|
|
22
|
+
* @note Controlled via `value` + `onChange`. Manages popover open state internally.
|
|
23
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
24
|
+
*/
|
|
25
|
+
declare function AppDatePicker(props: AppDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { AppDatePicker, type AppDatePickerProps, type AppDatePickerSingleProps, type AppDatePickerRangeProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DialogContent, DialogDescription, DialogTitle, DialogTrigger } from "../ui/dialog";
|
|
3
|
+
type AppDialogProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* AppDialog — Modal on desktop, bottom drawer on mobile (<768px).
|
|
10
|
+
* Sub-components (AppDialogContent, AppDialogHeader, etc.) swap automatically.
|
|
11
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
12
|
+
*/
|
|
13
|
+
declare function AppDialog({ children, ...props }: AppDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* AppDialogTrigger — The trigger component for AppDialog.
|
|
16
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
17
|
+
*/
|
|
18
|
+
declare function AppDialogTrigger(props: React.ComponentProps<typeof DialogTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* AppDialogContent — The content component for AppDialog.
|
|
21
|
+
* Renders as DialogContent on desktop, DrawerContent on mobile.
|
|
22
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
23
|
+
*/
|
|
24
|
+
declare function AppDialogContent({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof DialogContent>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
/**
|
|
26
|
+
* AppDialogHeader — The header section of an AppDialog.
|
|
27
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
28
|
+
*/
|
|
29
|
+
declare function AppDialogHeader(props: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* AppDialogTitle — The title component for AppDialog.
|
|
32
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
33
|
+
*/
|
|
34
|
+
declare function AppDialogTitle(props: React.ComponentPropsWithoutRef<typeof DialogTitle>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* AppDialogDescription — The description component for AppDialog.
|
|
37
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
38
|
+
*/
|
|
39
|
+
declare function AppDialogDescription(props: React.ComponentPropsWithoutRef<typeof DialogDescription>): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export { AppDialog, AppDialogTrigger, AppDialogContent, AppDialogHeader, AppDialogTitle, AppDialogDescription, };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { DrawerContentProps } from "../ui/drawer";
|
|
2
|
+
/**
|
|
3
|
+
* AppDrawer — A drawer component that slides out from the edge of the screen.
|
|
4
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
5
|
+
*/
|
|
6
|
+
declare const AppDrawer: import("react").FC<import("@radix-ui/react-dialog").DialogProps>;
|
|
7
|
+
/**
|
|
8
|
+
* AppDrawerPortal — The portal component for AppDrawer.
|
|
9
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
10
|
+
*/
|
|
11
|
+
declare const AppDrawerPortal: import("react").FC<import("@radix-ui/react-dialog").DialogPortalProps>;
|
|
12
|
+
/**
|
|
13
|
+
* AppDrawerOverlay — The overlay component for AppDrawer.
|
|
14
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
15
|
+
*/
|
|
16
|
+
declare const AppDrawerOverlay: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
/**
|
|
18
|
+
* AppDrawerTrigger — The trigger component for AppDrawer.
|
|
19
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
20
|
+
*/
|
|
21
|
+
declare const AppDrawerTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
/**
|
|
23
|
+
* AppDrawerClose — The close button component for AppDrawer.
|
|
24
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
25
|
+
*/
|
|
26
|
+
declare const AppDrawerClose: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
/**
|
|
28
|
+
* AppDrawerContent — The content component for AppDrawer.
|
|
29
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
30
|
+
*/
|
|
31
|
+
declare function AppDrawerContent({ className, ...props }: DrawerContentProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* AppDrawerHeader — The header section of an AppDrawer.
|
|
34
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
35
|
+
*/
|
|
36
|
+
declare const AppDrawerHeader: {
|
|
37
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* AppDrawerFooter — The footer section of an AppDrawer.
|
|
42
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
43
|
+
*/
|
|
44
|
+
declare const AppDrawerFooter: {
|
|
45
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* AppDrawerTitle — The title component for AppDrawer.
|
|
50
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
51
|
+
*/
|
|
52
|
+
declare const AppDrawerTitle: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
53
|
+
/**
|
|
54
|
+
* AppDrawerDescription — The description component for AppDrawer.
|
|
55
|
+
* @note If a prop you need is missing, stop and inform the design team.
|
|
56
|
+
*/
|
|
57
|
+
declare const AppDrawerDescription: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
58
|
+
export { AppDrawer, AppDrawerPortal, AppDrawerOverlay, AppDrawerTrigger, AppDrawerClose, AppDrawerContent, AppDrawerHeader, AppDrawerFooter, AppDrawerTitle, AppDrawerDescription, };
|