@marktiderman/genesis-ui 1.0.0
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/ViewToggle-DDe_Luj2.d.ts +10 -0
- package/dist/chunk-2B3MFHBQ.js +94 -0
- package/dist/chunk-2B3MFHBQ.js.map +1 -0
- package/dist/chunk-2MQKBZBJ.js +87 -0
- package/dist/chunk-2MQKBZBJ.js.map +1 -0
- package/dist/chunk-2MXMWBDV.js +30 -0
- package/dist/chunk-2MXMWBDV.js.map +1 -0
- package/dist/chunk-2SBHHXAC.js +40 -0
- package/dist/chunk-2SBHHXAC.js.map +1 -0
- package/dist/chunk-4HUKJSKC.js +51 -0
- package/dist/chunk-4HUKJSKC.js.map +1 -0
- package/dist/chunk-4RAZJ6LL.js +27 -0
- package/dist/chunk-4RAZJ6LL.js.map +1 -0
- package/dist/chunk-4TROUCWO.js +43 -0
- package/dist/chunk-4TROUCWO.js.map +1 -0
- package/dist/chunk-4V4H2ZM7.js +170 -0
- package/dist/chunk-4V4H2ZM7.js.map +1 -0
- package/dist/chunk-5J7BP5DI.js +47 -0
- package/dist/chunk-5J7BP5DI.js.map +1 -0
- package/dist/chunk-5Q4FABZQ.js +44 -0
- package/dist/chunk-5Q4FABZQ.js.map +1 -0
- package/dist/chunk-63FW5ZUA.js +26 -0
- package/dist/chunk-63FW5ZUA.js.map +1 -0
- package/dist/chunk-6V4GJUE3.js +25 -0
- package/dist/chunk-6V4GJUE3.js.map +1 -0
- package/dist/chunk-7H3E5VOJ.js +205 -0
- package/dist/chunk-7H3E5VOJ.js.map +1 -0
- package/dist/chunk-7OBL3H5P.js +83 -0
- package/dist/chunk-7OBL3H5P.js.map +1 -0
- package/dist/chunk-A5WHNNXJ.js +22 -0
- package/dist/chunk-A5WHNNXJ.js.map +1 -0
- package/dist/chunk-AI6CCNWK.js +51 -0
- package/dist/chunk-AI6CCNWK.js.map +1 -0
- package/dist/chunk-AIODTBWP.js +23 -0
- package/dist/chunk-AIODTBWP.js.map +1 -0
- package/dist/chunk-C6H7AMO4.js +43 -0
- package/dist/chunk-C6H7AMO4.js.map +1 -0
- package/dist/chunk-CLK7JBZJ.js +288 -0
- package/dist/chunk-CLK7JBZJ.js.map +1 -0
- package/dist/chunk-EI5EGKHL.js +32 -0
- package/dist/chunk-EI5EGKHL.js.map +1 -0
- package/dist/chunk-F2JB7YFF.js +341 -0
- package/dist/chunk-F2JB7YFF.js.map +1 -0
- package/dist/chunk-FCGFG4RV.js +120 -0
- package/dist/chunk-FCGFG4RV.js.map +1 -0
- package/dist/chunk-FFSDFQQN.js +19 -0
- package/dist/chunk-FFSDFQQN.js.map +1 -0
- package/dist/chunk-FN3FZVUR.js +79 -0
- package/dist/chunk-FN3FZVUR.js.map +1 -0
- package/dist/chunk-FZYUVUXU.js +199 -0
- package/dist/chunk-FZYUVUXU.js.map +1 -0
- package/dist/chunk-GJ6XSCNF.js +64 -0
- package/dist/chunk-GJ6XSCNF.js.map +1 -0
- package/dist/chunk-HSHIZHYR.js +23 -0
- package/dist/chunk-HSHIZHYR.js.map +1 -0
- package/dist/chunk-HVQCZFJ7.js +115 -0
- package/dist/chunk-HVQCZFJ7.js.map +1 -0
- package/dist/chunk-IKIFQILN.js +124 -0
- package/dist/chunk-IKIFQILN.js.map +1 -0
- package/dist/chunk-JEECTX26.js +20 -0
- package/dist/chunk-JEECTX26.js.map +1 -0
- package/dist/chunk-JJ4NOMMI.js +73 -0
- package/dist/chunk-JJ4NOMMI.js.map +1 -0
- package/dist/chunk-JXI2MYL3.js +40 -0
- package/dist/chunk-JXI2MYL3.js.map +1 -0
- package/dist/chunk-JYPENH7T.js +95 -0
- package/dist/chunk-JYPENH7T.js.map +1 -0
- package/dist/chunk-K23AQNOM.js +51 -0
- package/dist/chunk-K23AQNOM.js.map +1 -0
- package/dist/chunk-K4YLKVMX.js +24 -0
- package/dist/chunk-K4YLKVMX.js.map +1 -0
- package/dist/chunk-KBS4BHME.js +11 -0
- package/dist/chunk-KBS4BHME.js.map +1 -0
- package/dist/chunk-LRXDZBV2.js +26 -0
- package/dist/chunk-LRXDZBV2.js.map +1 -0
- package/dist/chunk-M7AU5DDM.js +26 -0
- package/dist/chunk-M7AU5DDM.js.map +1 -0
- package/dist/chunk-MUQLZFUR.js +31 -0
- package/dist/chunk-MUQLZFUR.js.map +1 -0
- package/dist/chunk-N2ZFNOOT.js +57 -0
- package/dist/chunk-N2ZFNOOT.js.map +1 -0
- package/dist/chunk-NJMO3VPA.js +26 -0
- package/dist/chunk-NJMO3VPA.js.map +1 -0
- package/dist/chunk-NZ5WBA4R.js +18 -0
- package/dist/chunk-NZ5WBA4R.js.map +1 -0
- package/dist/chunk-OCTV3S4I.js +29 -0
- package/dist/chunk-OCTV3S4I.js.map +1 -0
- package/dist/chunk-OVU3Z2MT.js +22 -0
- package/dist/chunk-OVU3Z2MT.js.map +1 -0
- package/dist/chunk-OZ7ZAYCS.js +35 -0
- package/dist/chunk-OZ7ZAYCS.js.map +1 -0
- package/dist/chunk-OZZTPE7F.js +51 -0
- package/dist/chunk-OZZTPE7F.js.map +1 -0
- package/dist/chunk-QBZMY2AF.js +90 -0
- package/dist/chunk-QBZMY2AF.js.map +1 -0
- package/dist/chunk-QCJAASJT.js +242 -0
- package/dist/chunk-QCJAASJT.js.map +1 -0
- package/dist/chunk-QFM4Z2SS.js +19 -0
- package/dist/chunk-QFM4Z2SS.js.map +1 -0
- package/dist/chunk-SBJV3K4G.js +120 -0
- package/dist/chunk-SBJV3K4G.js.map +1 -0
- package/dist/chunk-SCUT2ZCD.js +109 -0
- package/dist/chunk-SCUT2ZCD.js.map +1 -0
- package/dist/chunk-SVXDWPLO.js +102 -0
- package/dist/chunk-SVXDWPLO.js.map +1 -0
- package/dist/chunk-SXSCHWZU.js +27 -0
- package/dist/chunk-SXSCHWZU.js.map +1 -0
- package/dist/chunk-T465NJRL.js +134 -0
- package/dist/chunk-T465NJRL.js.map +1 -0
- package/dist/chunk-TAP3PBQT.js +39 -0
- package/dist/chunk-TAP3PBQT.js.map +1 -0
- package/dist/chunk-TKA4LOMT.js +37 -0
- package/dist/chunk-TKA4LOMT.js.map +1 -0
- package/dist/chunk-UGHQFQOE.js +142 -0
- package/dist/chunk-UGHQFQOE.js.map +1 -0
- package/dist/chunk-W5Y3LG5K.js +26 -0
- package/dist/chunk-W5Y3LG5K.js.map +1 -0
- package/dist/chunk-W64GERJW.js +22 -0
- package/dist/chunk-W64GERJW.js.map +1 -0
- package/dist/chunk-WALXVR6V.js +9 -0
- package/dist/chunk-WALXVR6V.js.map +1 -0
- package/dist/chunk-WZWR2ELB.js +30 -0
- package/dist/chunk-WZWR2ELB.js.map +1 -0
- package/dist/chunk-X7KMF6NH.js +59 -0
- package/dist/chunk-X7KMF6NH.js.map +1 -0
- package/dist/chunk-XISSLIMH.js +20 -0
- package/dist/chunk-XISSLIMH.js.map +1 -0
- package/dist/chunk-YZEA5TGK.js +87 -0
- package/dist/chunk-YZEA5TGK.js.map +1 -0
- package/dist/chunk-ZD32TSOK.js +101 -0
- package/dist/chunk-ZD32TSOK.js.map +1 -0
- package/dist/chunk-ZDAT5JDH.js +82 -0
- package/dist/chunk-ZDAT5JDH.js.map +1 -0
- package/dist/components/data/index.d.ts +458 -0
- package/dist/components/data/index.js +2923 -0
- package/dist/components/data/index.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +9 -0
- package/dist/components/ui/accordion.js +4 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +17 -0
- package/dist/components/ui/alert-dialog.js +4 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +14 -0
- package/dist/components/ui/alert.js +4 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +6 -0
- package/dist/components/ui/aspect-ratio.js +3 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +8 -0
- package/dist/components/ui/avatar.js +4 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +13 -0
- package/dist/components/ui/badge.js +4 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +22 -0
- package/dist/components/ui/breadcrumb.js +4 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +9 -0
- package/dist/components/ui/button-group.js +4 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +15 -0
- package/dist/components/ui/button.js +4 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +13 -0
- package/dist/components/ui/calendar.js +5 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.js +4 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +24 -0
- package/dist/components/ui/carousel.js +5 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +51 -0
- package/dist/components/ui/chart.js +4 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/checkbox.js +4 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +8 -0
- package/dist/components/ui/collapsible.js +3 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/command.d.ts +85 -0
- package/dist/components/ui/command.js +5 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +30 -0
- package/dist/components/ui/context-menu.js +4 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/date-picker.d.ts +12 -0
- package/dist/components/ui/date-picker.js +7 -0
- package/dist/components/ui/date-picker.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.js +4 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/drawer.d.ts +27 -0
- package/dist/components/ui/drawer.js +4 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.js +4 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty-state.d.ts +22 -0
- package/dist/components/ui/empty-state.js +4 -0
- package/dist/components/ui/empty-state.js.map +1 -0
- package/dist/components/ui/form-field.d.ts +17 -0
- package/dist/components/ui/form-field.js +5 -0
- package/dist/components/ui/form-field.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +8 -0
- package/dist/components/ui/hover-card.js +4 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +14 -0
- package/dist/components/ui/input-group.js +4 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +37 -0
- package/dist/components/ui/input-otp.js +4 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/input.js +4 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +8 -0
- package/dist/components/ui/kbd.js +4 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +8 -0
- package/dist/components/ui/label.js +4 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +31 -0
- package/dist/components/ui/menubar.js +4 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +15 -0
- package/dist/components/ui/navigation-menu.js +4 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +33 -0
- package/dist/components/ui/pagination.js +5 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.js +4 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +9 -0
- package/dist/components/ui/progress.js +4 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.js +4 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +27 -0
- package/dist/components/ui/resizable.js +4 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +9 -0
- package/dist/components/ui/scroll-area.js +4 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/select.js +4 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +10 -0
- package/dist/components/ui/separator.js +4 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +29 -0
- package/dist/components/ui/sheet.js +4 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +6 -0
- package/dist/components/ui/skeleton.js +4 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +6 -0
- package/dist/components/ui/slider.js +4 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +9 -0
- package/dist/components/ui/sonner.js +4 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +9 -0
- package/dist/components/ui/spinner.js +4 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.js +4 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +12 -0
- package/dist/components/ui/table.js +4 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +20 -0
- package/dist/components/ui/tabs.js +4 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/textarea.js +4 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +15 -0
- package/dist/components/ui/toggle-group.js +5 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +15 -0
- package/dist/components/ui/toggle.js +4 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +10 -0
- package/dist/components/ui/tooltip.js +4 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/typography.d.ts +14 -0
- package/dist/components/ui/typography.js +4 -0
- package/dist/components/ui/typography.js.map +1 -0
- package/dist/hooks/index.d.ts +13 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-data-filters.d.ts +32 -0
- package/dist/hooks/use-data-filters.js +4 -0
- package/dist/hooks/use-data-filters.js.map +1 -0
- package/dist/hooks/use-keyboard-navigation.d.ts +29 -0
- package/dist/hooks/use-keyboard-navigation.js +3 -0
- package/dist/hooks/use-keyboard-navigation.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.js +3 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-one.d.ts +18 -0
- package/dist/hooks/use-one.js +4 -0
- package/dist/hooks/use-one.js.map +1 -0
- package/dist/hooks/use-prefetch.d.ts +19 -0
- package/dist/hooks/use-prefetch.js +3 -0
- package/dist/hooks/use-prefetch.js.map +1 -0
- package/dist/hooks/use-resource-form.d.ts +37 -0
- package/dist/hooks/use-resource-form.js +7 -0
- package/dist/hooks/use-resource-form.js.map +1 -0
- package/dist/hooks/use-resource-page.d.ts +5 -0
- package/dist/hooks/use-resource-page.js +4 -0
- package/dist/hooks/use-resource-page.js.map +1 -0
- package/dist/hooks/use-resource.d.ts +46 -0
- package/dist/hooks/use-resource.js +4 -0
- package/dist/hooks/use-resource.js.map +1 -0
- package/dist/hooks/use-view-preference.d.ts +6 -0
- package/dist/hooks/use-view-preference.js +3 -0
- package/dist/hooks/use-view-preference.js.map +1 -0
- package/dist/hooks/use-view-settings.d.ts +15 -0
- package/dist/hooks/use-view-settings.js +3 -0
- package/dist/hooks/use-view-settings.js.map +1 -0
- package/dist/hooks/use-wizard.d.ts +25 -0
- package/dist/hooks/use-wizard.js +3 -0
- package/dist/hooks/use-wizard.js.map +1 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -0
- package/dist/navigation-qI86Ldug.d.ts +90 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.js +3 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/status-colors.d.ts +29 -0
- package/dist/status-colors.js +72 -0
- package/dist/status-colors.js.map +1 -0
- package/dist/types-HIZY7zxO.d.ts +61 -0
- package/dist/use-resource-page-BzvUM8de.d.ts +159 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +3 -0
- package/dist/utils.js.map +1 -0
- package/package.json +350 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-view-preference.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Density = "compact" | "comfortable" | "spacious";
|
|
2
|
+
interface ViewSettings {
|
|
3
|
+
pageSize: number;
|
|
4
|
+
density: Density;
|
|
5
|
+
defaultSort?: {
|
|
6
|
+
key: string;
|
|
7
|
+
direction: "asc" | "desc";
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare function useViewSettings(key: string): {
|
|
11
|
+
settings: ViewSettings;
|
|
12
|
+
updateSetting: <K extends keyof ViewSettings>(settingKey: K, value: ViewSettings[K]) => void;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { type Density, type ViewSettings, useViewSettings };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-view-settings.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
2
|
+
|
|
3
|
+
interface WizardStep {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Field keys belonging to this step. */
|
|
8
|
+
fields: string[];
|
|
9
|
+
}
|
|
10
|
+
interface UseWizardReturn {
|
|
11
|
+
currentStep: number;
|
|
12
|
+
currentStepDef: WizardStep;
|
|
13
|
+
totalSteps: number;
|
|
14
|
+
/** Progress from 0 to 1. */
|
|
15
|
+
progress: number;
|
|
16
|
+
isFirst: boolean;
|
|
17
|
+
isLast: boolean;
|
|
18
|
+
/** Validate current step fields, advance if valid. Returns true if valid. */
|
|
19
|
+
next: () => Promise<boolean>;
|
|
20
|
+
back: () => void;
|
|
21
|
+
goTo: (step: number) => void;
|
|
22
|
+
}
|
|
23
|
+
declare function useWizard(steps: WizardStep[], form: UseFormReturn<Record<string, unknown>>): UseWizardReturn;
|
|
24
|
+
|
|
25
|
+
export { type UseWizardReturn, type WizardStep, useWizard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-wizard.js"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export { Button, ButtonProps } from './components/ui/button.js';
|
|
2
|
+
export { Badge, BadgeProps } from './components/ui/badge.js';
|
|
3
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/ui/card.js';
|
|
4
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './components/ui/dialog.js';
|
|
5
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './components/ui/alert-dialog.js';
|
|
6
|
+
export { Input } from './components/ui/input.js';
|
|
7
|
+
export { Checkbox } from './components/ui/checkbox.js';
|
|
8
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectScrollDownButton, SelectScrollUpButton, SelectTrigger, SelectValue } from './components/ui/select.js';
|
|
9
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/ui/tabs.js';
|
|
10
|
+
export { Progress } from './components/ui/progress.js';
|
|
11
|
+
export { Skeleton } from './components/ui/skeleton.js';
|
|
12
|
+
export { Separator } from './components/ui/separator.js';
|
|
13
|
+
export { ScrollArea } from './components/ui/scroll-area.js';
|
|
14
|
+
export { Tooltip } from './components/ui/tooltip.js';
|
|
15
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/ui/collapsible.js';
|
|
16
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/ui/dropdown-menu.js';
|
|
17
|
+
export { Popover, PopoverContent, PopoverTrigger } from './components/ui/popover.js';
|
|
18
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './components/ui/table.js';
|
|
19
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './components/ui/command.js';
|
|
20
|
+
export { EmptyState, NoFeaturesFound, NoFeedbackFound, NoSearchResults } from './components/ui/empty-state.js';
|
|
21
|
+
export { Label } from './components/ui/label.js';
|
|
22
|
+
export { Textarea } from './components/ui/textarea.js';
|
|
23
|
+
export { Switch } from './components/ui/switch.js';
|
|
24
|
+
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group.js';
|
|
25
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants } from './components/ui/alert.js';
|
|
26
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './components/ui/pagination.js';
|
|
27
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './components/ui/breadcrumb.js';
|
|
28
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from './components/ui/sheet.js';
|
|
29
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './components/ui/drawer.js';
|
|
30
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './components/ui/accordion.js';
|
|
31
|
+
export { Avatar, AvatarFallback, AvatarImage } from './components/ui/avatar.js';
|
|
32
|
+
export { Slider } from './components/ui/slider.js';
|
|
33
|
+
export { Toggle, toggleVariants } from './components/ui/toggle.js';
|
|
34
|
+
export { ToggleGroup, ToggleGroupItem } from './components/ui/toggle-group.js';
|
|
35
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './components/ui/context-menu.js';
|
|
36
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/ui/hover-card.js';
|
|
37
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from './components/ui/navigation-menu.js';
|
|
38
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from './components/ui/menubar.js';
|
|
39
|
+
export { AspectRatio } from './components/ui/aspect-ratio.js';
|
|
40
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from './components/ui/input-otp.js';
|
|
41
|
+
export { Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from './components/ui/carousel.js';
|
|
42
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './components/ui/resizable.js';
|
|
43
|
+
export { Toaster } from './components/ui/sonner.js';
|
|
44
|
+
export { Spinner, SpinnerProps } from './components/ui/spinner.js';
|
|
45
|
+
export { Kbd, KbdProps } from './components/ui/kbd.js';
|
|
46
|
+
export { H1, H2, H3, H4, Large, Lead, Muted, P, Small } from './components/ui/typography.js';
|
|
47
|
+
export { ButtonGroup, ButtonGroupProps } from './components/ui/button-group.js';
|
|
48
|
+
export { InputGroup, InputGroupInput, InputGroupPrefix, InputGroupProps, InputGroupSuffix } from './components/ui/input-group.js';
|
|
49
|
+
export { Calendar, CalendarDayButton } from './components/ui/calendar.js';
|
|
50
|
+
export { DatePicker, DatePickerProps } from './components/ui/date-picker.js';
|
|
51
|
+
export { ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from './components/ui/chart.js';
|
|
52
|
+
export { FormDescription, FormError, FormField, FormLabel } from './components/ui/form-field.js';
|
|
53
|
+
export { cn } from './utils.js';
|
|
54
|
+
export { D as DefaultLink, G as GenesisLinkProps, L as LinkComponent, N as NavigateFn, S as SearchParamsAdapter, d as defaultNavigate, i as isPathActive, u as useBrowserSearchParams } from './navigation-qI86Ldug.js';
|
|
55
|
+
export { toast } from 'sonner';
|
|
56
|
+
import 'react/jsx-runtime';
|
|
57
|
+
import 'class-variance-authority/types';
|
|
58
|
+
import 'react';
|
|
59
|
+
import 'class-variance-authority';
|
|
60
|
+
import '@radix-ui/react-dialog';
|
|
61
|
+
import '@radix-ui/react-alert-dialog';
|
|
62
|
+
import '@radix-ui/react-checkbox';
|
|
63
|
+
import '@radix-ui/react-select';
|
|
64
|
+
import '@radix-ui/react-collapsible';
|
|
65
|
+
import '@radix-ui/react-dropdown-menu';
|
|
66
|
+
import '@radix-ui/react-popover';
|
|
67
|
+
import 'lucide-react';
|
|
68
|
+
import '@radix-ui/react-label';
|
|
69
|
+
import '@radix-ui/react-switch';
|
|
70
|
+
import '@radix-ui/react-radio-group';
|
|
71
|
+
import 'vaul';
|
|
72
|
+
import '@radix-ui/react-accordion';
|
|
73
|
+
import '@radix-ui/react-avatar';
|
|
74
|
+
import '@radix-ui/react-slider';
|
|
75
|
+
import '@radix-ui/react-toggle';
|
|
76
|
+
import '@radix-ui/react-toggle-group';
|
|
77
|
+
import '@radix-ui/react-context-menu';
|
|
78
|
+
import '@radix-ui/react-hover-card';
|
|
79
|
+
import '@radix-ui/react-navigation-menu';
|
|
80
|
+
import '@radix-ui/react-menubar';
|
|
81
|
+
import '@radix-ui/react-aspect-ratio';
|
|
82
|
+
import 'input-otp';
|
|
83
|
+
import 'embla-carousel-react';
|
|
84
|
+
import 'react-resizable-panels';
|
|
85
|
+
import 'react-day-picker';
|
|
86
|
+
import 'recharts';
|
|
87
|
+
import 'clsx';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export { ToggleGroup, ToggleGroupItem } from './chunk-5Q4FABZQ.js';
|
|
2
|
+
export { Toggle, toggleVariants } from './chunk-JXI2MYL3.js';
|
|
3
|
+
export { Tooltip } from './chunk-EI5EGKHL.js';
|
|
4
|
+
export { H1, H2, H3, H4, Large, Lead, Muted, P, Small } from './chunk-HVQCZFJ7.js';
|
|
5
|
+
export { Slider } from './chunk-LRXDZBV2.js';
|
|
6
|
+
export { Toaster, toast } from './chunk-4RAZJ6LL.js';
|
|
7
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from './chunk-JJ4NOMMI.js';
|
|
8
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './chunk-ZD32TSOK.js';
|
|
9
|
+
export { RadioGroup, RadioGroupItem } from './chunk-TKA4LOMT.js';
|
|
10
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './chunk-TAP3PBQT.js';
|
|
11
|
+
export { ScrollArea } from './chunk-OCTV3S4I.js';
|
|
12
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from './chunk-63FW5ZUA.js';
|
|
13
|
+
export { InputGroup, InputGroupInput, InputGroupPrefix, InputGroupSuffix } from './chunk-GJ6XSCNF.js';
|
|
14
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from './chunk-K23AQNOM.js';
|
|
15
|
+
export { Kbd } from './chunk-FFSDFQQN.js';
|
|
16
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from './chunk-4V4H2ZM7.js';
|
|
17
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from './chunk-SVXDWPLO.js';
|
|
18
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './chunk-UGHQFQOE.js';
|
|
19
|
+
export { DatePicker } from './chunk-2SBHHXAC.js';
|
|
20
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './chunk-JYPENH7T.js';
|
|
21
|
+
export { EmptyState, NoFeaturesFound, NoFeedbackFound, NoSearchResults } from './chunk-ZDAT5JDH.js';
|
|
22
|
+
export { ButtonGroup } from './chunk-K4YLKVMX.js';
|
|
23
|
+
export { Calendar, CalendarDayButton } from './chunk-7H3E5VOJ.js';
|
|
24
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from './chunk-FZYUVUXU.js';
|
|
25
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from './chunk-QCJAASJT.js';
|
|
26
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './chunk-KBS4BHME.js';
|
|
27
|
+
export { Textarea } from './chunk-W64GERJW.js';
|
|
28
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from './chunk-SCUT2ZCD.js';
|
|
29
|
+
export { Skeleton } from './chunk-QFM4Z2SS.js';
|
|
30
|
+
export { Spinner } from './chunk-OVU3Z2MT.js';
|
|
31
|
+
export { Switch } from './chunk-2MXMWBDV.js';
|
|
32
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './chunk-N2ZFNOOT.js';
|
|
33
|
+
export { Progress } from './chunk-W5Y3LG5K.js';
|
|
34
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectScrollDownButton, SelectScrollUpButton, SelectTrigger, SelectValue } from './chunk-2B3MFHBQ.js';
|
|
35
|
+
export { Separator } from './chunk-SXSCHWZU.js';
|
|
36
|
+
export { Input } from './chunk-6V4GJUE3.js';
|
|
37
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './chunk-7OBL3H5P.js';
|
|
38
|
+
export { Popover, PopoverContent, PopoverTrigger } from './chunk-NJMO3VPA.js';
|
|
39
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './chunk-YZEA5TGK.js';
|
|
40
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './chunk-SBJV3K4G.js';
|
|
41
|
+
export { FormDescription, FormError, FormField, FormLabel } from './chunk-X7KMF6NH.js';
|
|
42
|
+
export { Label } from './chunk-AIODTBWP.js';
|
|
43
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './chunk-FN3FZVUR.js';
|
|
44
|
+
export { Button } from './chunk-4TROUCWO.js';
|
|
45
|
+
export { Checkbox } from './chunk-WZWR2ELB.js';
|
|
46
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './chunk-5J7BP5DI.js';
|
|
47
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './chunk-QBZMY2AF.js';
|
|
48
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants } from './chunk-OZZTPE7F.js';
|
|
49
|
+
export { AspectRatio } from './chunk-WALXVR6V.js';
|
|
50
|
+
export { Avatar, AvatarFallback, AvatarImage } from './chunk-C6H7AMO4.js';
|
|
51
|
+
export { Badge } from './chunk-MUQLZFUR.js';
|
|
52
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './chunk-2MQKBZBJ.js';
|
|
53
|
+
export { cn } from './chunk-NZ5WBA4R.js';
|
|
54
|
+
export { DefaultLink, defaultNavigate, isPathActive, useBrowserSearchParams } from './chunk-AI6CCNWK.js';
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ComponentType, ReactNode, AnchorHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Router-agnostic navigation primitives.
|
|
5
|
+
*
|
|
6
|
+
* genesis-ui does NOT depend on any router. Components that need to render a
|
|
7
|
+
* link or navigate imperatively accept an injectable abstraction defined here,
|
|
8
|
+
* and default to plain browser behavior (`<a>` / `window.location`). Consumers
|
|
9
|
+
* on React Router or Next.js inject a thin adapter that maps these props to
|
|
10
|
+
* their own `<Link>` / router.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Props passed to an injectable link component. The contract is a plain anchor
|
|
15
|
+
* (`href`), so the default works with NO router. A React Router consumer maps
|
|
16
|
+
* `href` → `to`; a Next.js consumer passes `next/link` directly (it already
|
|
17
|
+
* accepts `href`, `className`, `children`).
|
|
18
|
+
*
|
|
19
|
+
* @stability Beta
|
|
20
|
+
*/
|
|
21
|
+
interface GenesisLinkProps {
|
|
22
|
+
/** Destination path or URL. */
|
|
23
|
+
href: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
/** Set to "page" when the link points at the active route. */
|
|
28
|
+
"aria-current"?: AnchorHTMLAttributes<HTMLAnchorElement>["aria-current"];
|
|
29
|
+
/**
|
|
30
|
+
* Stable test/automation selector. {@link DefaultLink} renders it as
|
|
31
|
+
* `data-testid`; injected router adapters (`next/link`, RR `Link`) forward it
|
|
32
|
+
* to the underlying `<a>` too.
|
|
33
|
+
*/
|
|
34
|
+
testID?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A component that renders a navigable link from {@link GenesisLinkProps}.
|
|
38
|
+
*
|
|
39
|
+
* @stability Beta
|
|
40
|
+
*/
|
|
41
|
+
type LinkComponent = ComponentType<GenesisLinkProps>;
|
|
42
|
+
/**
|
|
43
|
+
* Default link — a plain `<a>`. No router required.
|
|
44
|
+
*
|
|
45
|
+
* @stability Beta
|
|
46
|
+
*/
|
|
47
|
+
declare const DefaultLink: LinkComponent;
|
|
48
|
+
/**
|
|
49
|
+
* Default active-path matcher, mirroring React Router's `NavLink` (prefix
|
|
50
|
+
* match, with `/` treated as exact). Consumers can override via an `isActive`
|
|
51
|
+
* prop where components accept one.
|
|
52
|
+
*
|
|
53
|
+
* @stability Beta
|
|
54
|
+
*/
|
|
55
|
+
declare function isPathActive(to: string, activePath?: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Injectable imperative navigation callback.
|
|
58
|
+
*
|
|
59
|
+
* @stability Beta
|
|
60
|
+
*/
|
|
61
|
+
type NavigateFn = (path: string) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Default navigate — a full-page navigation. No router required.
|
|
64
|
+
*
|
|
65
|
+
* @stability Beta
|
|
66
|
+
*/
|
|
67
|
+
declare const defaultNavigate: NavigateFn;
|
|
68
|
+
/**
|
|
69
|
+
* Minimal, router-agnostic replacement for React Router's `useSearchParams`
|
|
70
|
+
* return shape. Consumers may inject their router's implementation for full
|
|
71
|
+
* SPA integration; otherwise the browser History API is used.
|
|
72
|
+
*
|
|
73
|
+
* @stability Beta
|
|
74
|
+
*/
|
|
75
|
+
interface SearchParamsAdapter {
|
|
76
|
+
searchParams: URLSearchParams;
|
|
77
|
+
setSearchParams: (next: URLSearchParams, options?: {
|
|
78
|
+
replace?: boolean;
|
|
79
|
+
}) => void;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Browser-native {@link SearchParamsAdapter} built on the History API. Reads
|
|
83
|
+
* the current query string and writes updates via `pushState`/`replaceState`,
|
|
84
|
+
* staying reactive to `popstate` events. No router required.
|
|
85
|
+
*
|
|
86
|
+
* @stability Beta
|
|
87
|
+
*/
|
|
88
|
+
declare function useBrowserSearchParams(): SearchParamsAdapter;
|
|
89
|
+
|
|
90
|
+
export { DefaultLink as D, type GenesisLinkProps as G, type LinkComponent as L, type NavigateFn as N, type SearchParamsAdapter as S, defaultNavigate as d, isPathActive as i, useBrowserSearchParams as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@marktiderman/genesis-core/provider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared status color mappings
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for all status → color badge mappings.
|
|
5
|
+
* Used across Command Center, Product Detail, Task Board, Roadmap, etc.
|
|
6
|
+
*/
|
|
7
|
+
/** PRD statuses */
|
|
8
|
+
declare const prdStatusColors: Record<string, string>;
|
|
9
|
+
/** Task statuses */
|
|
10
|
+
declare const taskStatusColors: Record<string, string>;
|
|
11
|
+
/** Product statuses */
|
|
12
|
+
declare const productStatusColors: Record<string, string>;
|
|
13
|
+
/** Idea statuses */
|
|
14
|
+
declare const ideaStatusColors: Record<string, string>;
|
|
15
|
+
/** Feedback statuses */
|
|
16
|
+
declare const feedbackStatusColors: Record<string, string>;
|
|
17
|
+
/** Changelog entry types */
|
|
18
|
+
declare const changelogTypeColors: Record<string, string>;
|
|
19
|
+
/** Research recommended actions */
|
|
20
|
+
declare const researchActionColors: Record<string, string>;
|
|
21
|
+
/** Sync statuses */
|
|
22
|
+
declare const syncStatusColors: Record<string, string>;
|
|
23
|
+
/** Coverage color helpers */
|
|
24
|
+
declare function getCoverageColor(pct: number): string;
|
|
25
|
+
declare function getCoverageTextColor(pct: number): string;
|
|
26
|
+
/** Combined lookup — useful when you don't know the entity type */
|
|
27
|
+
declare const allStatusColors: Record<string, string>;
|
|
28
|
+
|
|
29
|
+
export { allStatusColors, changelogTypeColors, feedbackStatusColors, getCoverageColor, getCoverageTextColor, ideaStatusColors, prdStatusColors, productStatusColors, researchActionColors, syncStatusColors, taskStatusColors };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// src/status-colors.ts
|
|
2
|
+
var prdStatusColors = {
|
|
3
|
+
idea: "bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400",
|
|
4
|
+
drafting: "bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400",
|
|
5
|
+
active: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
6
|
+
locked: "bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400",
|
|
7
|
+
building: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",
|
|
8
|
+
shipped: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400"
|
|
9
|
+
};
|
|
10
|
+
var taskStatusColors = {
|
|
11
|
+
todo: "bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400",
|
|
12
|
+
in_progress: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",
|
|
13
|
+
in_review: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
14
|
+
done: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
15
|
+
blocked: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"
|
|
16
|
+
};
|
|
17
|
+
var productStatusColors = {
|
|
18
|
+
production: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
19
|
+
active: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
20
|
+
design: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400"
|
|
21
|
+
};
|
|
22
|
+
var ideaStatusColors = {
|
|
23
|
+
new: "bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400",
|
|
24
|
+
reviewed: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
25
|
+
promoted: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
26
|
+
dismissed: "bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-400"
|
|
27
|
+
};
|
|
28
|
+
var feedbackStatusColors = {
|
|
29
|
+
new: "bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400",
|
|
30
|
+
reviewed: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
31
|
+
promoted: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
32
|
+
archived: "bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-400"
|
|
33
|
+
};
|
|
34
|
+
var changelogTypeColors = {
|
|
35
|
+
feature: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
36
|
+
fix: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
37
|
+
improvement: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",
|
|
38
|
+
breaking: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"
|
|
39
|
+
};
|
|
40
|
+
var researchActionColors = {
|
|
41
|
+
implement: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
42
|
+
investigate: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
43
|
+
monitor: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",
|
|
44
|
+
dismiss: "bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400"
|
|
45
|
+
};
|
|
46
|
+
var syncStatusColors = {
|
|
47
|
+
synced: "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
48
|
+
pending_pr: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",
|
|
49
|
+
behind: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",
|
|
50
|
+
diverged: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"
|
|
51
|
+
};
|
|
52
|
+
function getCoverageColor(pct) {
|
|
53
|
+
if (pct >= 70) return "bg-emerald-500";
|
|
54
|
+
if (pct >= 30) return "bg-amber-500";
|
|
55
|
+
return "bg-red-500";
|
|
56
|
+
}
|
|
57
|
+
function getCoverageTextColor(pct) {
|
|
58
|
+
if (pct >= 70) return "text-emerald-600 dark:text-emerald-400";
|
|
59
|
+
if (pct >= 30) return "text-amber-600 dark:text-amber-400";
|
|
60
|
+
return "text-red-600 dark:text-red-400";
|
|
61
|
+
}
|
|
62
|
+
var allStatusColors = {
|
|
63
|
+
...prdStatusColors,
|
|
64
|
+
...taskStatusColors,
|
|
65
|
+
...productStatusColors,
|
|
66
|
+
...ideaStatusColors,
|
|
67
|
+
...feedbackStatusColors
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export { allStatusColors, changelogTypeColors, feedbackStatusColors, getCoverageColor, getCoverageTextColor, ideaStatusColors, prdStatusColors, productStatusColors, researchActionColors, syncStatusColors, taskStatusColors };
|
|
71
|
+
//# sourceMappingURL=status-colors.js.map
|
|
72
|
+
//# sourceMappingURL=status-colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/status-colors.ts"],"names":[],"mappings":";AAQO,IAAM,eAAA,GAA0C;AAAA,EACrD,IAAA,EAAM,+DAAA;AAAA,EACN,QAAA,EAAU,mEAAA;AAAA,EACV,MAAA,EAAQ,kEAAA;AAAA,EACR,MAAA,EAAQ,0EAAA;AAAA,EACR,QAAA,EAAU,sEAAA;AAAA,EACV,OAAA,EAAS;AACX;AAGO,IAAM,gBAAA,GAA2C;AAAA,EACtD,IAAA,EAAM,+DAAA;AAAA,EACN,WAAA,EAAa,sEAAA;AAAA,EACb,SAAA,EAAW,kEAAA;AAAA,EACX,IAAA,EAAM,8EAAA;AAAA,EACN,OAAA,EAAS;AACX;AAGO,IAAM,mBAAA,GAA8C;AAAA,EACzD,UAAA,EAAY,8EAAA;AAAA,EACZ,MAAA,EAAQ,kEAAA;AAAA,EACR,MAAA,EAAQ;AACV;AAGO,IAAM,gBAAA,GAA2C;AAAA,EACtD,GAAA,EAAK,+DAAA;AAAA,EACL,QAAA,EAAU,kEAAA;AAAA,EACV,QAAA,EAAU,8EAAA;AAAA,EACV,SAAA,EAAW;AACb;AAGO,IAAM,oBAAA,GAA+C;AAAA,EAC1D,GAAA,EAAK,+DAAA;AAAA,EACL,QAAA,EAAU,kEAAA;AAAA,EACV,QAAA,EAAU,8EAAA;AAAA,EACV,QAAA,EAAU;AACZ;AAGO,IAAM,mBAAA,GAA8C;AAAA,EACzD,OAAA,EAAS,8EAAA;AAAA,EACT,GAAA,EAAK,kEAAA;AAAA,EACL,WAAA,EAAa,sEAAA;AAAA,EACb,QAAA,EAAU;AACZ;AAGO,IAAM,oBAAA,GAA+C;AAAA,EAC1D,SAAA,EAAW,8EAAA;AAAA,EACX,WAAA,EAAa,kEAAA;AAAA,EACb,OAAA,EAAS,sEAAA;AAAA,EACT,OAAA,EAAS;AACX;AAGO,IAAM,gBAAA,GAA2C;AAAA,EACtD,MAAA,EAAQ,8EAAA;AAAA,EACR,UAAA,EAAY,sEAAA;AAAA,EACZ,MAAA,EAAQ,sEAAA;AAAA,EACR,QAAA,EAAU;AACZ;AAGO,SAAS,iBAAiB,GAAA,EAAqB;AACpD,EAAA,IAAI,GAAA,IAAO,IAAI,OAAO,gBAAA;AACtB,EAAA,IAAI,GAAA,IAAO,IAAI,OAAO,cAAA;AACtB,EAAA,OAAO,YAAA;AACT;AAEO,SAAS,qBAAqB,GAAA,EAAqB;AACxD,EAAA,IAAI,GAAA,IAAO,IAAI,OAAO,wCAAA;AACtB,EAAA,IAAI,GAAA,IAAO,IAAI,OAAO,oCAAA;AACtB,EAAA,OAAO,gCAAA;AACT;AAGO,IAAM,eAAA,GAA0C;AAAA,EACrD,GAAG,eAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG;AACL","file":"status-colors.js","sourcesContent":["/**\n * Shared status color mappings\n *\n * Single source of truth for all status → color badge mappings.\n * Used across Command Center, Product Detail, Task Board, Roadmap, etc.\n */\n\n/** PRD statuses */\nexport const prdStatusColors: Record<string, string> = {\n idea: \"bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400\",\n drafting: \"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400\",\n active: \"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400\",\n locked: \"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400\",\n building: \"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400\",\n shipped: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n};\n\n/** Task statuses */\nexport const taskStatusColors: Record<string, string> = {\n todo: \"bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400\",\n in_progress: \"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400\",\n in_review: \"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400\",\n done: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n blocked: \"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400\",\n};\n\n/** Product statuses */\nexport const productStatusColors: Record<string, string> = {\n production: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n active: \"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400\",\n design: \"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400\",\n};\n\n/** Idea statuses */\nexport const ideaStatusColors: Record<string, string> = {\n new: \"bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400\",\n reviewed: \"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400\",\n promoted: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n dismissed: \"bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-400\",\n};\n\n/** Feedback statuses */\nexport const feedbackStatusColors: Record<string, string> = {\n new: \"bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400\",\n reviewed: \"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400\",\n promoted: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n archived: \"bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-400\",\n};\n\n/** Changelog entry types */\nexport const changelogTypeColors: Record<string, string> = {\n feature: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n fix: \"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400\",\n improvement: \"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400\",\n breaking: \"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400\",\n};\n\n/** Research recommended actions */\nexport const researchActionColors: Record<string, string> = {\n implement: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n investigate: \"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400\",\n monitor: \"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400\",\n dismiss: \"bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400\",\n};\n\n/** Sync statuses */\nexport const syncStatusColors: Record<string, string> = {\n synced: \"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\",\n pending_pr: \"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400\",\n behind: \"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400\",\n diverged: \"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400\",\n};\n\n/** Coverage color helpers */\nexport function getCoverageColor(pct: number): string {\n if (pct >= 70) return \"bg-emerald-500\";\n if (pct >= 30) return \"bg-amber-500\";\n return \"bg-red-500\";\n}\n\nexport function getCoverageTextColor(pct: number): string {\n if (pct >= 70) return \"text-emerald-600 dark:text-emerald-400\";\n if (pct >= 30) return \"text-amber-600 dark:text-amber-400\";\n return \"text-red-600 dark:text-red-400\";\n}\n\n/** Combined lookup — useful when you don't know the entity type */\nexport const allStatusColors: Record<string, string> = {\n ...prdStatusColors,\n ...taskStatusColors,\n ...productStatusColors,\n ...ideaStatusColors,\n ...feedbackStatusColors,\n};\n"]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** Record identifier — supports both string UUIDs and numeric auto-increment IDs. */
|
|
2
|
+
type Identifier = string | number;
|
|
3
|
+
/** Pagination parameters (offset-based, with optional cursor for future use). */
|
|
4
|
+
interface PaginationParam {
|
|
5
|
+
page: number;
|
|
6
|
+
perPage: number;
|
|
7
|
+
cursor?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Sort direction for a single field. */
|
|
10
|
+
interface SortParam {
|
|
11
|
+
field: string;
|
|
12
|
+
order: "asc" | "desc";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Filter expressions — discriminated union by operator.
|
|
16
|
+
* Filters are AND-ed together in queries.
|
|
17
|
+
*/
|
|
18
|
+
/** Operators that compare a field against a single scalar value. */
|
|
19
|
+
interface ScalarFilter {
|
|
20
|
+
field: string;
|
|
21
|
+
operator: "eq" | "neq" | "gt" | "lt" | "gte" | "lte" | "contains";
|
|
22
|
+
value: string | number | boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Operator that checks field membership in a list. */
|
|
25
|
+
interface ArrayFilter {
|
|
26
|
+
field: string;
|
|
27
|
+
operator: "in";
|
|
28
|
+
value: (string | number | boolean)[];
|
|
29
|
+
}
|
|
30
|
+
/** Operator that checks field is within a range. */
|
|
31
|
+
interface RangeFilter {
|
|
32
|
+
field: string;
|
|
33
|
+
operator: "between";
|
|
34
|
+
value: [string | number, string | number];
|
|
35
|
+
}
|
|
36
|
+
/** Operators that check for null/non-null — no value needed. */
|
|
37
|
+
interface NullFilter {
|
|
38
|
+
field: string;
|
|
39
|
+
operator: "is_null" | "is_not_null";
|
|
40
|
+
}
|
|
41
|
+
type FilterParam = ScalarFilter | ArrayFilter | RangeFilter | NullFilter;
|
|
42
|
+
/** Parameters for `getList`. */
|
|
43
|
+
interface ListParams {
|
|
44
|
+
pagination?: PaginationParam;
|
|
45
|
+
sort?: SortParam;
|
|
46
|
+
filters?: FilterParam[];
|
|
47
|
+
/** Supabase select syntax, e.g. "*, author:profiles(name)". Mock provider ignores this. */
|
|
48
|
+
select?: string;
|
|
49
|
+
/** Multi-field text search (case-insensitive). */
|
|
50
|
+
search?: {
|
|
51
|
+
query: string;
|
|
52
|
+
fields: string[];
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/** Result of `getList`. */
|
|
56
|
+
interface ListResult<T> {
|
|
57
|
+
data: T[];
|
|
58
|
+
total: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type { FilterParam as F, Identifier as I, ListResult as L, SortParam as S, ListParams as a };
|