@nqlib/nqui 0.1.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/INSTALLATION.md +221 -0
- package/README.md +276 -0
- package/dist/App.d.ts +3 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/components/AppLayout.d.ts +2 -0
- package/dist/components/AppLayout.d.ts.map +1 -0
- package/dist/components/app-sidebar.d.ts +4 -0
- package/dist/components/app-sidebar.d.ts.map +1 -0
- package/dist/components/component-example.d.ts +2 -0
- package/dist/components/component-example.d.ts.map +1 -0
- package/dist/components/custom/color-picker.d.ts +9 -0
- package/dist/components/custom/color-picker.d.ts.map +1 -0
- package/dist/components/custom/color-slider.d.ts +22 -0
- package/dist/components/custom/color-slider.d.ts.map +1 -0
- package/dist/components/custom/enhanced-button.d.ts +34 -0
- package/dist/components/custom/enhanced-button.d.ts.map +1 -0
- package/dist/components/custom/enhanced-checkbox.d.ts +28 -0
- package/dist/components/custom/enhanced-checkbox.d.ts.map +1 -0
- package/dist/components/custom/enhanced-radio-group.d.ts +36 -0
- package/dist/components/custom/enhanced-radio-group.d.ts.map +1 -0
- package/dist/components/custom/enhanced-scroll-area.d.ts +34 -0
- package/dist/components/custom/enhanced-scroll-area.d.ts.map +1 -0
- package/dist/components/custom/enhanced-separator.d.ts +36 -0
- package/dist/components/custom/enhanced-separator.d.ts.map +1 -0
- package/dist/components/custom/nqui-logo.d.ts +9 -0
- package/dist/components/custom/nqui-logo.d.ts.map +1 -0
- package/dist/components/custom/rating.d.ts +60 -0
- package/dist/components/custom/rating.d.ts.map +1 -0
- package/dist/components/custom/table-of-contents.d.ts +77 -0
- package/dist/components/custom/table-of-contents.d.ts.map +1 -0
- package/dist/components/debug/crosshair.d.ts +5 -0
- package/dist/components/debug/crosshair.d.ts.map +1 -0
- package/dist/components/debug/debug-panel.d.ts +5 -0
- package/dist/components/debug/debug-panel.d.ts.map +1 -0
- package/dist/components/debug/dependencies.d.ts +23 -0
- package/dist/components/debug/dependencies.d.ts.map +1 -0
- package/dist/components/debug/index.d.ts +17 -0
- package/dist/components/debug/index.d.ts.map +1 -0
- package/dist/components/debug/magnifier.d.ts +9 -0
- package/dist/components/debug/magnifier.d.ts.map +1 -0
- package/dist/components/debug/ui-tester.d.ts +13 -0
- package/dist/components/debug/ui-tester.d.ts.map +1 -0
- package/dist/components/debug/utils/css-variable-parser.d.ts +28 -0
- package/dist/components/debug/utils/css-variable-parser.d.ts.map +1 -0
- package/dist/components/debug/utils/element-selector.d.ts +24 -0
- package/dist/components/debug/utils/element-selector.d.ts.map +1 -0
- package/dist/components/debug/utils/style-injector.d.ts +40 -0
- package/dist/components/debug/utils/style-injector.d.ts.map +1 -0
- package/dist/components/debug/utils/style-parser.d.ts +53 -0
- package/dist/components/debug/utils/style-parser.d.ts.map +1 -0
- package/dist/components/example.d.ts +7 -0
- package/dist/components/example.d.ts.map +1 -0
- package/dist/components/login-form.d.ts +2 -0
- package/dist/components/login-form.d.ts.map +1 -0
- package/dist/components/nav-user.d.ts +8 -0
- package/dist/components/nav-user.d.ts.map +1 -0
- package/dist/components/showcase/app-builder/app-builder-context.d.ts +16 -0
- package/dist/components/showcase/app-builder/app-builder-context.d.ts.map +1 -0
- package/dist/components/showcase/app-builder/app-canvas.d.ts +11 -0
- package/dist/components/showcase/app-builder/app-canvas.d.ts.map +1 -0
- package/dist/components/showcase/app-builder/widget-configurator.d.ts +10 -0
- package/dist/components/showcase/app-builder/widget-configurator.d.ts.map +1 -0
- package/dist/components/showcase/app-builder/widget-palette.d.ts +6 -0
- package/dist/components/showcase/app-builder/widget-palette.d.ts.map +1 -0
- package/dist/components/showcase/app-builder/widget-registry.d.ts +29 -0
- package/dist/components/showcase/app-builder/widget-registry.d.ts.map +1 -0
- package/dist/components/showcase/app-builder/widget-renderer.d.ts +7 -0
- package/dist/components/showcase/app-builder/widget-renderer.d.ts.map +1 -0
- package/dist/components/theme-toggle.d.ts +2 -0
- package/dist/components/theme-toggle.d.ts.map +1 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +19 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +20 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/carousel.d.ts +29 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +41 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/combobox.d.ts +25 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +19 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/context-menu.d.ts +28 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/drawer.d.ts +14 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/empty.d.ts +12 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/field.d.ts +25 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/input-group.d.ts +17 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-otp.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/item.d.ts +24 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/kbd.d.ts +4 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/menubar.d.ts +27 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/native-select.d.ts +9 -0
- package/dist/components/ui/native-select.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +15 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/pagination.d.ts +14 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +11 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/progress.d.ts +5 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +26 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sidebar.d.ts +66 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +12 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +11 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle.d.ts +10 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-scroll-spy.d.ts +50 -0
- package/dist/hooks/use-scroll-spy.d.ts.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/mockdata/toc.d.ts +11 -0
- package/dist/mockdata/toc.d.ts.map +1 -0
- package/dist/nqui.cjs.js +521 -0
- package/dist/nqui.css +148 -0
- package/dist/nqui.es.js +35453 -0
- package/dist/pages/AppBuilder.d.ts +2 -0
- package/dist/pages/AppBuilder.d.ts.map +1 -0
- package/dist/pages/Dashboard.d.ts +2 -0
- package/dist/pages/Dashboard.d.ts.map +1 -0
- package/dist/pages/Drafts.d.ts +2 -0
- package/dist/pages/Drafts.d.ts.map +1 -0
- package/dist/pages/Inbox.d.ts +2 -0
- package/dist/pages/Inbox.d.ts.map +1 -0
- package/dist/pages/Junk.d.ts +2 -0
- package/dist/pages/Junk.d.ts.map +1 -0
- package/dist/pages/Sent.d.ts +2 -0
- package/dist/pages/Sent.d.ts.map +1 -0
- package/dist/pages/Settings.d.ts +2 -0
- package/dist/pages/Settings.d.ts.map +1 -0
- package/dist/pages/Trash.d.ts +2 -0
- package/dist/pages/Trash.d.ts.map +1 -0
- package/dist/styles.css +544 -0
- package/dist/vite.svg +1 -0
- package/package.json +128 -0
- package/scripts/build-styles.js +205 -0
- package/scripts/examples/nextjs-layout.tsx +30 -0
- package/scripts/examples/nextjs-page.tsx +66 -0
- package/scripts/init-css.js +568 -0
- package/scripts/init-debug-css.js +123 -0
- package/scripts/publish-npmjs.js +87 -0
- package/scripts/validate-exports.mjs +117 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
3
|
+
import { ScrollBar as BaseScrollBar } from "@/components/ui/scroll-area";
|
|
4
|
+
export interface EnhancedScrollAreaProps extends React.ComponentProps<typeof ScrollAreaPrimitive.Root> {
|
|
5
|
+
/**
|
|
6
|
+
* Enable fade mask effect at top and bottom edges
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
fadeMask?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Scroll orientation
|
|
12
|
+
* @default "vertical"
|
|
13
|
+
*/
|
|
14
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Enhanced ScrollArea component with fade mask and scrollbar detection
|
|
18
|
+
*
|
|
19
|
+
* Wraps the base shadcn ScrollArea component with additional features:
|
|
20
|
+
* - Fade mask effect at edges when scrolling
|
|
21
|
+
* - Automatic scrollbar visibility detection
|
|
22
|
+
* - Custom scrollbar styling
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <EnhancedScrollArea className="h-[300px]">
|
|
27
|
+
* <div>Content here</div>
|
|
28
|
+
* </EnhancedScrollArea>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const EnhancedScrollArea: React.ForwardRefExoticComponent<Omit<EnhancedScrollAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export { EnhancedScrollArea, EnhancedScrollArea as ScrollArea };
|
|
33
|
+
export { BaseScrollBar as ScrollBar };
|
|
34
|
+
//# sourceMappingURL=enhanced-scroll-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enhanced-scroll-area.d.ts","sourceRoot":"","sources":["../../../src/components/custom/enhanced-scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAGxE,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;IAC7D;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,CAAA;CACjD;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,kBAAkB,6GA4EvB,CAAA;AAID,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,IAAI,UAAU,EAAE,CAAA;AAC/D,OAAO,EAAE,aAAa,IAAI,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
+
export type SeparatorVariant = "default" | "solid" | "shadow-outset" | "shadow-inset" | "dotted" | "dashed" | "glow" | "thick" | "gradient" | "double" | "fade-strong" | "arrow-down" | "tab-down" | "stopper" | "dot" | "text-decoration" | "shiny-corner" | "shiny-edge";
|
|
4
|
+
export interface EnhancedSeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
|
|
5
|
+
/**
|
|
6
|
+
* Visual style variant
|
|
7
|
+
* @default "default"
|
|
8
|
+
*/
|
|
9
|
+
variant?: SeparatorVariant;
|
|
10
|
+
/**
|
|
11
|
+
* Text content for text-decoration variant
|
|
12
|
+
*/
|
|
13
|
+
textContent?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Enhanced Separator component with multiple visual variants
|
|
17
|
+
*
|
|
18
|
+
* Wraps the base Radix UI separator with enhanced styling options:
|
|
19
|
+
* - Basic variants: default, solid
|
|
20
|
+
* - Shadow variants: shadow-outset, shadow-inset
|
|
21
|
+
* - Line styles: dotted, dashed, double
|
|
22
|
+
* - Effects: glow, gradient, fade-strong
|
|
23
|
+
* - Size: thick
|
|
24
|
+
* - Decorative: arrow-down, tab-down, stopper, dot, text-decoration, shiny-corner, shiny-edge
|
|
25
|
+
*
|
|
26
|
+
* Maintains all Radix UI accessibility and state management.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <EnhancedSeparator variant="shadow-outset" />
|
|
31
|
+
* <EnhancedSeparator variant="text-decoration" textContent="OR" />
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare const EnhancedSeparator: React.ForwardRefExoticComponent<EnhancedSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export { EnhancedSeparator, EnhancedSeparator as Separator };
|
|
36
|
+
//# sourceMappingURL=enhanced-separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enhanced-separator.d.ts","sourceRoot":"","sources":["../../../src/components/custom/enhanced-separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAG/D,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,OAAO,GACP,eAAe,GACf,cAAc,GACd,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,UAAU,GACV,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,UAAU,GACV,SAAS,GACT,KAAK,GACL,iBAAiB,GACjB,cAAc,GACd,YAAY,CAAA;AAEhB,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACtE;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,iBAAiB,+FA0KtB,CAAA;AAID,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,IAAI,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface NquiLogoProps extends React.SVGProps<SVGSVGElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* NquiLogo - Theme-aware logo component that adapts to light/dark mode
|
|
7
|
+
*/
|
|
8
|
+
export declare const NquiLogo: React.ForwardRefExoticComponent<Omit<NquiLogoProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
//# sourceMappingURL=nqui-logo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nqui-logo.d.ts","sourceRoot":"","sources":["../../../src/components/custom/nqui-logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,kGAqDpB,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface RatingProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, 'onChange'> {
|
|
3
|
+
/**
|
|
4
|
+
* Controlled value (0 to maxRating)
|
|
5
|
+
*/
|
|
6
|
+
value?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Uncontrolled default value
|
|
9
|
+
* @default 0
|
|
10
|
+
*/
|
|
11
|
+
defaultValue?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when rating changes
|
|
14
|
+
*/
|
|
15
|
+
onValueChange?: (value: number) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum rating value
|
|
18
|
+
* @default 5
|
|
19
|
+
*/
|
|
20
|
+
maxRating?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Allow half-star ratings
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
allowHalf?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Show tooltip on hover
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
showTooltip?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Custom tooltip content
|
|
33
|
+
*/
|
|
34
|
+
tooltipContent?: (value: number) => React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Star size
|
|
37
|
+
* @default "h-6 w-6"
|
|
38
|
+
*/
|
|
39
|
+
starSize?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Rating component with star-based input using native radio inputs
|
|
43
|
+
*
|
|
44
|
+
* Uses native HTML radio inputs for full accessibility:
|
|
45
|
+
* - Keyboard navigation (Arrow keys, Space)
|
|
46
|
+
* - ARIA attributes
|
|
47
|
+
* - Screen reader support
|
|
48
|
+
* - Focus management
|
|
49
|
+
*
|
|
50
|
+
* Visually displays as stars using CSS-only approach with flex-direction: row-reverse
|
|
51
|
+
* and sibling selectors for hover/selection highlighting.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <Rating defaultValue={3} maxRating={5} allowHalf />
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
59
|
+
export { Rating };
|
|
60
|
+
//# sourceMappingURL=rating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../../../src/components/custom/rating.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA2H9B,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACtG;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACnD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,MAAM,yFAqIX,CAAA;AAID,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TOCItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
level: number;
|
|
6
|
+
children?: TOCItem[];
|
|
7
|
+
}
|
|
8
|
+
export interface TableOfContentsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
/**
|
|
10
|
+
* Manual TOC items array
|
|
11
|
+
*/
|
|
12
|
+
items?: TOCItem[];
|
|
13
|
+
/**
|
|
14
|
+
* Auto-detect headings from the page
|
|
15
|
+
*/
|
|
16
|
+
autoDetect?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* CSS selector for headings to detect
|
|
19
|
+
*/
|
|
20
|
+
headingSelector?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Container element, ref, or selector to scope heading detection.
|
|
23
|
+
* If provided, only headings within this container will be detected.
|
|
24
|
+
* If not provided, searches the entire document (useful for full-page documents).
|
|
25
|
+
*/
|
|
26
|
+
container?: HTMLElement | React.RefObject<HTMLElement> | string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Controlled active section ID (overrides scroll spy)
|
|
29
|
+
*/
|
|
30
|
+
activeId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Callback when active section changes
|
|
33
|
+
*/
|
|
34
|
+
onActiveChange?: (id: string | null) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Offset for scroll positioning (useful for fixed headers)
|
|
37
|
+
*/
|
|
38
|
+
scrollOffset?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Enable smooth scrolling
|
|
41
|
+
*/
|
|
42
|
+
smoothScroll?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Enable automatic scroll spy
|
|
45
|
+
*/
|
|
46
|
+
enableScrollSpy?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Title to display above TOC
|
|
49
|
+
*/
|
|
50
|
+
title?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Visual variant of the TOC
|
|
53
|
+
*/
|
|
54
|
+
variant?: "normal" | "circuit";
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Enhanced Table of Contents component with auto-detection and scroll spy
|
|
58
|
+
*
|
|
59
|
+
* Supports two visual variants:
|
|
60
|
+
* - normal: Fumadocs-style with left border and animated thumb indicator
|
|
61
|
+
* - circuit: Clerk-style with continuous line structure and SVG path
|
|
62
|
+
*
|
|
63
|
+
* Features:
|
|
64
|
+
* - Auto-detect headings from DOM or accept manual items
|
|
65
|
+
* - Scroll spy to highlight active section
|
|
66
|
+
* - Smooth scrolling to sections
|
|
67
|
+
* - Support for fixed headers with scroll offset
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* <TableOfContents autoDetect headingSelector="h2, h3" enableScrollSpy />
|
|
72
|
+
* <TableOfContents variant="circuit" items={tocItems} />
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
declare const TableOfContents: React.ForwardRefExoticComponent<TableOfContentsProps & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
export { TableOfContents };
|
|
77
|
+
//# sourceMappingURL=table-of-contents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-of-contents.d.ts","sourceRoot":"","sources":["../../../src/components/custom/table-of-contents.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;CACrB;AAaD,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,MAAM,GAAG,IAAI,CAAA;IACtE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC/B;AA+FD;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,eAAe,6FA6KpB,CAAA;AAqeD,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crosshair.d.ts","sourceRoot":"","sources":["../../../src/components/debug/crosshair.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,cAAc,kDA4CpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-panel.d.ts","sourceRoot":"","sources":["../../../src/components/debug/debug-panel.tsx"],"names":[],"mappings":"AAqBA,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,eAAe,2CA24CxD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug Tools Dependencies
|
|
3
|
+
*
|
|
4
|
+
* This file centralizes all external dependencies for the debug tools.
|
|
5
|
+
* When extracting to a separate package, only this file needs to be updated.
|
|
6
|
+
*
|
|
7
|
+
* All imports should come from the main library index (@/index) when possible.
|
|
8
|
+
*/
|
|
9
|
+
export { Button } from "@/index";
|
|
10
|
+
export { Switch } from "@/index";
|
|
11
|
+
export { Label } from "@/index";
|
|
12
|
+
export { Slider } from "@/index";
|
|
13
|
+
export { Input } from "@/index";
|
|
14
|
+
export { Textarea } from "@/index";
|
|
15
|
+
export { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/index";
|
|
16
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from "@/index";
|
|
17
|
+
export { Tooltip, TooltipProvider, TooltipTrigger, TooltipContent } from "@/index";
|
|
18
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent } from "@/index";
|
|
19
|
+
export { ColorPicker } from "@/index";
|
|
20
|
+
export type { ColorPickerProps } from "@/index";
|
|
21
|
+
export { cn } from "@/lib/utils";
|
|
22
|
+
export type { ButtonProps } from "@/index";
|
|
23
|
+
//# sourceMappingURL=dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../src/components/debug/dependencies.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACvF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAClF,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAKhC,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug Tools
|
|
3
|
+
*
|
|
4
|
+
* A collection of developer tools for debugging and inspecting React applications.
|
|
5
|
+
* Designed to be easily extracted into a separate package.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export { DebugPanel } from "./debug-panel";
|
|
10
|
+
export { Magnifier } from "./magnifier";
|
|
11
|
+
export { Crosshair } from "./crosshair";
|
|
12
|
+
export { UITester } from "./ui-tester";
|
|
13
|
+
export type { DebugPanelProps } from "./debug-panel";
|
|
14
|
+
export type { MagnifierProps } from "./magnifier";
|
|
15
|
+
export type { CrosshairProps } from "./crosshair";
|
|
16
|
+
export type { UITesterProps } from "./ui-tester";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/debug/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface MagnifierProps {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
zoom?: number;
|
|
4
|
+
size?: number;
|
|
5
|
+
lockedElement?: HTMLElement | null;
|
|
6
|
+
onElementChange?: (element: HTMLElement | null) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function Magnifier({ enabled, zoom, size, lockedElement, onElementChange }: MagnifierProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
//# sourceMappingURL=magnifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magnifier.d.ts","sourceRoot":"","sources":["../../../src/components/debug/magnifier.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAClC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;CACxD;AAED,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,IAAQ,EACR,IAAU,EACV,aAAa,EACb,eAAe,EAChB,EAAE,cAAc,kDA8VhB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface UITesterProps {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
selectedElement: HTMLElement | null;
|
|
5
|
+
onElementSelect?: (element: HTMLElement | null) => void;
|
|
6
|
+
onElementHover?: (element: HTMLElement | null) => void;
|
|
7
|
+
lockedElement?: HTMLElement | null;
|
|
8
|
+
setLockedElement?: (element: HTMLElement | null) => void;
|
|
9
|
+
lockedElementRef?: React.MutableRefObject<HTMLElement | null>;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function UITester({ enabled, selectedElement, onElementSelect, onElementHover, lockedElement: externalLockedElement, setLockedElement: externalSetLockedElement, lockedElementRef: externalLockedElementRef, className }: UITesterProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=ui-tester.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-tester.d.ts","sourceRoot":"","sources":["../../../src/components/debug/ui-tester.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAoR9B,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,EAAE,WAAW,GAAG,IAAI,CAAA;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IACvD,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IACtD,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IACxD,gBAAgB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAyCD,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,SAAS,EAAE,EAAE,aAAa,kDAmjC7O"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS Variable Parser
|
|
3
|
+
*
|
|
4
|
+
* Utilities for extracting and parsing CSS variables from the document.
|
|
5
|
+
* Supports both light and dark mode variables.
|
|
6
|
+
*/
|
|
7
|
+
export interface CSSVariable {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
category?: 'primary' | 'semantic' | 'system' | 'other';
|
|
11
|
+
}
|
|
12
|
+
export interface ColorVariable extends CSSVariable {
|
|
13
|
+
computedValue?: string;
|
|
14
|
+
swatchColor?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Extract all CSS variables from the document root
|
|
18
|
+
*/
|
|
19
|
+
export declare function extractCssVariables(): CSSVariable[];
|
|
20
|
+
/**
|
|
21
|
+
* Get only color-related CSS variables
|
|
22
|
+
*/
|
|
23
|
+
export declare function getColorVariables(): ColorVariable[];
|
|
24
|
+
/**
|
|
25
|
+
* Resolve a CSS variable to its computed value
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveCssVar(varName: string): string;
|
|
28
|
+
//# sourceMappingURL=css-variable-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css-variable-parser.d.ts","sourceRoot":"","sources":["../../../../src/components/debug/utils/css-variable-parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAA;CACvD;AAED,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,WAAW,EAAE,CAsFnD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,EAAE,CAkBnD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAkBrD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Element Selection Utilities
|
|
3
|
+
*
|
|
4
|
+
* Reusable utilities for element selection and selector generation.
|
|
5
|
+
* Used by both magnifier and UI tester components.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Get the element at a specific point
|
|
9
|
+
*/
|
|
10
|
+
export declare function getElementAtPoint(x: number, y: number): HTMLElement | null;
|
|
11
|
+
/**
|
|
12
|
+
* Generate a unique CSS selector for an element
|
|
13
|
+
* Creates a stable selector that can be used to find the element later
|
|
14
|
+
*/
|
|
15
|
+
export declare function generateUniqueSelector(element: HTMLElement): string;
|
|
16
|
+
/**
|
|
17
|
+
* Find an element by its CSS selector
|
|
18
|
+
*/
|
|
19
|
+
export declare function findElementBySelector(selector: string): HTMLElement | null;
|
|
20
|
+
/**
|
|
21
|
+
* Check if an element is a debug UI element (should be excluded from selection)
|
|
22
|
+
*/
|
|
23
|
+
export declare function isDebugUIElement(element: HTMLElement | null): boolean;
|
|
24
|
+
//# sourceMappingURL=element-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-selector.d.ts","sourceRoot":"","sources":["../../../../src/components/debug/utils/element-selector.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAG1E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAmDnE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAS1E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAWrE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style Injector Utilities
|
|
3
|
+
*
|
|
4
|
+
* Utilities for injecting preview-only CSS styles into the document.
|
|
5
|
+
* Uses data attributes and style injection to avoid modifying actual elements.
|
|
6
|
+
*/
|
|
7
|
+
export interface PreviewStyles {
|
|
8
|
+
boxShadow?: string;
|
|
9
|
+
textShadow?: string;
|
|
10
|
+
glow?: {
|
|
11
|
+
color: string;
|
|
12
|
+
blur: number;
|
|
13
|
+
spread: number;
|
|
14
|
+
};
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
backgroundImage?: string;
|
|
17
|
+
border?: {
|
|
18
|
+
color: string;
|
|
19
|
+
width: string;
|
|
20
|
+
style: string;
|
|
21
|
+
};
|
|
22
|
+
customCss?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Inject preview styles for a selected element
|
|
26
|
+
*/
|
|
27
|
+
export declare function injectPreviewStyles(element: HTMLElement | null, styles: PreviewStyles): void;
|
|
28
|
+
/**
|
|
29
|
+
* Update preview styles for the currently selected element
|
|
30
|
+
*/
|
|
31
|
+
export declare function updatePreviewStyles(element: HTMLElement | null, styles: PreviewStyles): void;
|
|
32
|
+
/**
|
|
33
|
+
* Remove all preview styles
|
|
34
|
+
*/
|
|
35
|
+
export declare function removePreviewStyles(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Check if preview styles are active
|
|
38
|
+
*/
|
|
39
|
+
export declare function hasPreviewStyles(): boolean;
|
|
40
|
+
//# sourceMappingURL=style-injector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-injector.d.ts","sourceRoot":"","sources":["../../../../src/components/debug/utils/style-injector.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAkFD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,MAAM,EAAE,aAAa,GACpB,IAAI,CAgCN;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,MAAM,EAAE,aAAa,GACpB,IAAI,CAEN;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAc1C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAG1C"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse CSS values from computed styles
|
|
3
|
+
*/
|
|
4
|
+
export interface ParsedBoxShadow {
|
|
5
|
+
offsetX: number;
|
|
6
|
+
offsetY: number;
|
|
7
|
+
blur: number;
|
|
8
|
+
spread: number;
|
|
9
|
+
color: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ParsedTextShadow {
|
|
12
|
+
offsetX: number;
|
|
13
|
+
offsetY: number;
|
|
14
|
+
blur: number;
|
|
15
|
+
color: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ParsedBorder {
|
|
18
|
+
width: string;
|
|
19
|
+
style: string;
|
|
20
|
+
color: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Parse box-shadow value into individual shadows
|
|
24
|
+
*/
|
|
25
|
+
export declare function parseBoxShadow(boxShadow: string): ParsedBoxShadow[];
|
|
26
|
+
/**
|
|
27
|
+
* Parse text-shadow value into individual shadows
|
|
28
|
+
*/
|
|
29
|
+
export declare function parseTextShadow(textShadow: string): ParsedTextShadow[];
|
|
30
|
+
/**
|
|
31
|
+
* Parse border value
|
|
32
|
+
*/
|
|
33
|
+
export declare function parseBorder(border: string, borderWidth?: string, borderStyle?: string, borderColor?: string): ParsedBorder | null;
|
|
34
|
+
/**
|
|
35
|
+
* Check if a value is a gradient
|
|
36
|
+
*/
|
|
37
|
+
export declare function isGradient(value: string): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Check if a value is a CSS variable
|
|
40
|
+
*/
|
|
41
|
+
export declare function isCssVariable(value: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Extract all styles from an element
|
|
44
|
+
*/
|
|
45
|
+
export declare function extractElementStyles(element: HTMLElement | null): {
|
|
46
|
+
boxShadows: ParsedBoxShadow[];
|
|
47
|
+
textShadows: ParsedTextShadow[];
|
|
48
|
+
backgroundColor: string | null;
|
|
49
|
+
backgroundImage: string | null;
|
|
50
|
+
border: ParsedBorder | null;
|
|
51
|
+
outline: ParsedBorder | null;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=style-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-parser.d.ts","sourceRoot":"","sources":["../../../../src/components/debug/utils/style-parser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,EAAE,CAmCnE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAgCtE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAyBjI;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG;IACjE,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,WAAW,EAAE,gBAAgB,EAAE,CAAA;IAC/B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,OAAO,EAAE,YAAY,GAAG,IAAI,CAAA;CAC7B,CAoEA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function ExampleWrapper({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function Example({ title, children, className, containerClassName, ...props }: React.ComponentProps<"div"> & {
|
|
3
|
+
title: string;
|
|
4
|
+
containerClassName?: string;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { ExampleWrapper, Example };
|
|
7
|
+
//# sourceMappingURL=example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../src/components/example.tsx"],"names":[],"mappings":"AAEA,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAa3E;AAED,iBAAS,OAAO,CAAC,EACf,KAAK,EACL,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,2CAwBA;AAED,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../src/components/login-form.tsx"],"names":[],"mappings":"AAMA,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CA8F7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav-user.d.ts","sourceRoot":"","sources":["../../src/components/nav-user.tsx"],"names":[],"mappings":"AAgCA,wBAAgB,OAAO,CAAC,EACtB,IAAI,GACL,EAAE;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,2CAyEA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { WidgetInstance } from "./widget-registry";
|
|
3
|
+
interface AppBuilderContextValue {
|
|
4
|
+
widgets: WidgetInstance[];
|
|
5
|
+
selectedWidgetId: string | null;
|
|
6
|
+
setWidgets: React.Dispatch<React.SetStateAction<WidgetInstance[]>>;
|
|
7
|
+
setSelectedWidgetId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
8
|
+
handleDeleteWidget: () => void;
|
|
9
|
+
handleClearCanvas: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function AppBuilderProvider({ children }: {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function useAppBuilder(): AppBuilderContextValue | null;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=app-builder-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-builder-context.d.ts","sourceRoot":"","sources":["../../../../src/components/showcase/app-builder/app-builder-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;IAClE,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAA;IACxE,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAC9B,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC9B;AAID,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiC7E;AAED,wBAAgB,aAAa,kCAG5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WidgetInstance } from "./widget-registry";
|
|
2
|
+
interface AppCanvasProps {
|
|
3
|
+
widgets: WidgetInstance[];
|
|
4
|
+
onAddWidget: (type: string, x: number, y: number) => void;
|
|
5
|
+
onSelectWidget: (id: string) => void;
|
|
6
|
+
onUpdateWidget: (id: string, x: number, y: number, width: number, height: number) => void;
|
|
7
|
+
selectedWidgetId: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function AppCanvas({ widgets, onAddWidget, onSelectWidget, onUpdateWidget, selectedWidgetId, }: AppCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=app-canvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-canvas.d.ts","sourceRoot":"","sources":["../../../../src/components/showcase/app-builder/app-canvas.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIvD,UAAU,cAAc;IACtB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzD,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACzF,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AAED,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,WAAW,EACX,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,EAAE,cAAc,2CAoIhB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WidgetInstance } from "./widget-registry";
|
|
2
|
+
interface WidgetConfiguratorProps {
|
|
3
|
+
widget: WidgetInstance | null;
|
|
4
|
+
onUpdate: (id: string, props: Record<string, any>) => void;
|
|
5
|
+
open: boolean;
|
|
6
|
+
onOpenChange: (open: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function WidgetConfigurator({ widget, onUpdate, open, onOpenChange, }: WidgetConfiguratorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=widget-configurator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-configurator.d.ts","sourceRoot":"","sources":["../../../../src/components/showcase/app-builder/widget-configurator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAwBvD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,cAAc,GAAG,IAAI,CAAA;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;IAC1D,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACtC;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,YAAY,GACb,EAAE,uBAAuB,kDAuPzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-palette.d.ts","sourceRoot":"","sources":["../../../../src/components/showcase/app-builder/widget-palette.tsx"],"names":[],"mappings":"AAkBA,UAAU,kBAAkB;IAC1B,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CAC1C;AAED,wBAAgB,aAAa,CAAC,EAAE,WAAW,EAAE,EAAE,kBAAkB,2CAyHhE"}
|