@catalystsoftware/ui 1.0.11 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +309 -0
- package/dist/components/catalyst-ui/background/animated-beam.tsx +189 -0
- package/dist/components/catalyst-ui/background/background-gradient.tsx +77 -0
- package/dist/components/catalyst-ui/background/background-paths.tsx +132 -0
- package/dist/components/catalyst-ui/background/canvas-fractal-grid.tsx +1862 -0
- package/dist/components/catalyst-ui/background/distorted-glass.tsx +0 -0
- package/dist/components/catalyst-ui/background/dot-pattern.tsx +169 -0
- package/dist/components/catalyst-ui/background/dotted-glow-background.tsx +342 -0
- package/dist/components/catalyst-ui/background/dotted-map.tsx +193 -0
- package/dist/components/catalyst-ui/background/dynamic-rain.tsx +216 -0
- package/dist/components/catalyst-ui/background/flickering-grid.tsx +211 -0
- package/dist/components/catalyst-ui/background/fractal-grid.tsx +666 -0
- package/dist/components/catalyst-ui/background/hexagon-background.tsx +102 -0
- package/dist/components/catalyst-ui/background/index.ts +25 -0
- package/dist/components/catalyst-ui/background/interactive-grid-pattern.tsx +90 -0
- package/dist/components/catalyst-ui/background/lamp.tsx +105 -0
- package/dist/components/catalyst-ui/background/orbiting-circles.tsx +76 -0
- package/dist/components/catalyst-ui/background/particles.tsx +286 -0
- package/dist/components/catalyst-ui/background/progressive-blur.tsx +113 -0
- package/dist/components/catalyst-ui/background/retro-grid-background.tsx +104 -0
- package/dist/components/catalyst-ui/background/smoke.tsx +117 -0
- package/dist/components/catalyst-ui/background/sparkles.tsx +435 -0
- package/dist/components/catalyst-ui/background/stripe-bg-guides.tsx +260 -0
- package/dist/components/catalyst-ui/background/texture-overlay.tsx +207 -0
- package/dist/components/catalyst-ui/background/vortex.tsx +257 -0
- package/dist/components/catalyst-ui/buttons/animated-theme-toggler.tsx +90 -0
- package/dist/components/catalyst-ui/buttons/attract-button.tsx +167 -0
- package/dist/components/catalyst-ui/buttons/bg-animate-button.tsx +249 -0
- package/dist/components/catalyst-ui/buttons/button-group.tsx +203 -0
- package/dist/components/catalyst-ui/buttons/command-button.tsx +109 -0
- package/dist/components/catalyst-ui/buttons/copy-button.tsx +117 -0
- package/dist/components/catalyst-ui/buttons/copy-text.tsx +347 -0
- package/dist/components/catalyst-ui/buttons/export-file.tsx +262 -0
- package/dist/components/catalyst-ui/buttons/flip-button.tsx +106 -0
- package/dist/components/catalyst-ui/buttons/float-button.tsx +197 -0
- package/dist/components/catalyst-ui/buttons/form-button.tsx +90 -0
- package/dist/components/catalyst-ui/buttons/hold-button.tsx +208 -0
- package/dist/components/catalyst-ui/buttons/index.ts +35 -0
- package/dist/components/catalyst-ui/buttons/input-button.tsx +192 -0
- package/dist/components/catalyst-ui/buttons/liquid-button.tsx +53 -0
- package/dist/components/catalyst-ui/buttons/particle-button.tsx +193 -0
- package/dist/components/catalyst-ui/buttons/rating-button-1.tsx +243 -0
- package/dist/components/catalyst-ui/buttons/rating-button.tsx +226 -0
- package/dist/components/catalyst-ui/buttons/ripple-button.tsx +146 -0
- package/dist/components/catalyst-ui/buttons/scroll-to-top.tsx +47 -0
- package/dist/components/catalyst-ui/buttons/shimmer-button.tsx +84 -0
- package/dist/components/catalyst-ui/buttons/slide-button.tsx +90 -0
- package/dist/components/catalyst-ui/buttons/social-button.tsx +194 -0
- package/dist/components/catalyst-ui/buttons/split-button.tsx +121 -0
- package/dist/components/catalyst-ui/buttons/switch-button.tsx +316 -0
- package/dist/components/catalyst-ui/buttons/text-reveal-button.tsx +65 -0
- package/dist/components/catalyst-ui/buttons/theme-switcher.tsx +102 -0
- package/dist/components/catalyst-ui/buttons/theme-toggle-button.tsx +312 -0
- package/dist/components/catalyst-ui/buttons/toggle-button.tsx +125 -0
- package/dist/components/catalyst-ui/buttons/tooltip-button.tsx +24 -0
- package/dist/components/catalyst-ui/charts/area-chart.tsx +989 -0
- package/dist/components/catalyst-ui/charts/bar-chart.tsx +887 -0
- package/dist/components/catalyst-ui/charts/bar-list.tsx +171 -0
- package/dist/components/catalyst-ui/charts/category-bar.tsx +221 -0
- package/dist/components/catalyst-ui/charts/chart-utils.ts +168 -0
- package/dist/components/catalyst-ui/charts/combo-chart.tsx +1179 -0
- package/dist/components/catalyst-ui/charts/donut-chart.tsx +337 -0
- package/dist/components/catalyst-ui/charts/index.ts +14 -0
- package/dist/components/catalyst-ui/charts/line-chart.tsx +907 -0
- package/dist/components/catalyst-ui/charts/spark-chart.tsx +328 -0
- package/dist/components/catalyst-ui/chat/chat.tsx +491 -0
- package/dist/components/catalyst-ui/code/code-block-section.tsx +939 -0
- package/dist/components/catalyst-ui/code/code-comparison.tsx +221 -0
- package/dist/components/catalyst-ui/code/code-comparison1.tsx +203 -0
- package/dist/components/catalyst-ui/code/code-editor.tsx +318 -0
- package/dist/components/catalyst-ui/code/code-section.tsx +62 -0
- package/dist/components/catalyst-ui/code/css-section.tsx +142 -0
- package/dist/components/catalyst-ui/code/html-section.tsx +102 -0
- package/dist/components/catalyst-ui/code/index.ts +22 -0
- package/dist/components/catalyst-ui/code/installCode-section.tsx +181 -0
- package/dist/components/catalyst-ui/code/installCodeArray-section.tsx +186 -0
- package/dist/components/catalyst-ui/code/installGithub-section.tsx +119 -0
- package/dist/components/catalyst-ui/code/json-section.tsx +253 -0
- package/dist/components/catalyst-ui/code/props-section.tsx +605 -0
- package/dist/components/catalyst-ui/code/sandbox.tsx +398 -0
- package/dist/components/catalyst-ui/code/sandbox2.tsx +3194 -0
- package/dist/components/catalyst-ui/code/terminal-1.tsx +119 -0
- package/dist/components/catalyst-ui/code/terminal-code-section.tsx +395 -0
- package/dist/components/catalyst-ui/code/terminal.tsx +315 -0
- package/dist/components/catalyst-ui/code/tsx-section.tsx +176 -0
- package/dist/components/catalyst-ui/comboboxes/choicebox.tsx +203 -0
- package/dist/components/catalyst-ui/comboboxes/combobox-0.tsx +556 -0
- package/dist/components/catalyst-ui/comboboxes/combobox-1.tsx +146 -0
- package/dist/components/catalyst-ui/comboboxes/combobox2.tsx +255 -0
- package/dist/components/catalyst-ui/comboboxes/emoji-picker.tsx +486 -0
- package/dist/components/catalyst-ui/comboboxes/filter-combobox.tsx +46 -0
- package/dist/components/catalyst-ui/comboboxes/index.ts +9 -0
- package/dist/components/catalyst-ui/comboboxes/multi-combobox.tsx +169 -0
- package/dist/components/catalyst-ui/comboboxes/nested-combobox.tsx +211 -0
- package/dist/components/catalyst-ui/commands/command-2.tsx +126 -0
- package/dist/components/catalyst-ui/commands/command-w-combobox.tsx +108 -0
- package/dist/components/catalyst-ui/commands/index.ts +6 -0
- package/dist/components/catalyst-ui/commands/nested-command-dialog.tsx +429 -0
- package/dist/components/catalyst-ui/commands/nested-command.tsx +133 -0
- package/dist/components/catalyst-ui/core/components/3d-card.tsx +144 -0
- package/dist/components/catalyst-ui/core/components/3d-card1.tsx +196 -0
- package/dist/components/catalyst-ui/core/components/android.tsx +105 -0
- package/dist/components/catalyst-ui/core/components/apple-cards-carousel.tsx +376 -0
- package/dist/components/catalyst-ui/core/components/apple-dock.tsx +280 -0
- package/dist/components/catalyst-ui/core/components/badge-1.tsx +117 -0
- package/dist/components/catalyst-ui/core/components/card-flip.tsx +204 -0
- package/dist/components/catalyst-ui/core/components/card-stack.tsx +224 -0
- package/dist/components/catalyst-ui/core/components/chat-bubble.tsx +198 -0
- package/dist/components/catalyst-ui/core/components/collapsible-section.tsx +92 -0
- package/dist/components/catalyst-ui/core/components/comment.tsx +812 -0
- package/dist/components/catalyst-ui/core/components/counter.tsx +77 -0
- package/dist/components/catalyst-ui/core/components/credit-card.tsx +406 -0
- package/dist/components/catalyst-ui/core/components/device-mockup.tsx +436 -0
- package/dist/components/catalyst-ui/core/components/embed.tsx +0 -0
- package/dist/components/catalyst-ui/core/components/faq.tsx +166 -0
- package/dist/components/catalyst-ui/core/components/feed.tsx +741 -0
- package/dist/components/catalyst-ui/core/components/fixed-marker.tsx +232 -0
- package/dist/components/catalyst-ui/core/components/for.tsx +138 -0
- package/dist/components/catalyst-ui/core/components/glowing-effect-card.tsx +273 -0
- package/dist/components/catalyst-ui/core/components/iframe.tsx +175 -0
- package/dist/components/catalyst-ui/core/components/in-place.tsx +285 -0
- package/dist/components/catalyst-ui/core/components/iphone-15-pro.tsx +129 -0
- package/dist/components/catalyst-ui/core/components/macbook-scroll.tsx +702 -0
- package/dist/components/catalyst-ui/core/components/magic-card.tsx +102 -0
- package/dist/components/catalyst-ui/core/components/message-dock.tsx +61 -0
- package/dist/components/catalyst-ui/core/components/meter.tsx +123 -0
- package/dist/components/catalyst-ui/core/components/number-ticker.tsx +67 -0
- package/dist/components/catalyst-ui/core/components/panel.tsx +286 -0
- package/dist/components/catalyst-ui/core/components/pill-1.tsx +166 -0
- package/dist/components/catalyst-ui/core/components/qrcode.tsx +1153 -0
- package/dist/components/catalyst-ui/core/components/safari-device.tsx +197 -0
- package/dist/components/catalyst-ui/core/components/sliding-number.tsx +235 -0
- package/dist/components/catalyst-ui/core/components/spoiler.tsx +161 -0
- package/dist/components/catalyst-ui/core/components/stat.tsx +572 -0
- package/dist/components/catalyst-ui/core/components/sticky.tsx +214 -0
- package/dist/components/catalyst-ui/core/components/tag.tsx +551 -0
- package/dist/components/catalyst-ui/core/components/tweet-card-1.tsx +164 -0
- package/dist/components/catalyst-ui/core/components/tweet-card.tsx +229 -0
- package/dist/components/catalyst-ui/core/data-display/barcode.tsx +1007 -0
- package/dist/components/catalyst-ui/core/data-display/data-list.tsx +344 -0
- package/dist/components/catalyst-ui/core/data-display/descriptionLists.tsx +205 -0
- package/dist/components/catalyst-ui/core/data-display/diff.tsx +186 -0
- package/dist/components/catalyst-ui/core/data-display/heat-map-calendar.tsx +361 -0
- package/dist/components/catalyst-ui/core/data-display/order-list.tsx +0 -0
- package/dist/components/catalyst-ui/core/data-display/stats-1.tsx +129 -0
- package/dist/components/catalyst-ui/core/data-display/stats.tsx +139 -0
- package/dist/components/catalyst-ui/core/data-display/ticker.tsx +179 -0
- package/dist/components/catalyst-ui/core/data-display/timeline-1.tsx +452 -0
- package/dist/components/catalyst-ui/core/data-display/timeline2.tsx +240 -0
- package/dist/components/catalyst-ui/core/data-display/tracker.tsx +209 -0
- package/dist/components/catalyst-ui/core/data-display/transfer-list.tsx +278 -0
- package/dist/components/catalyst-ui/core/data-display/tremor-tracker.tsx +103 -0
- package/dist/components/catalyst-ui/core/demos/FAQ-demo.tsx +41 -0
- package/dist/components/catalyst-ui/core/demos/action-panels-demo.tsx +64 -0
- package/dist/components/catalyst-ui/core/demos/banner-demo.tsx +100 -0
- package/dist/components/catalyst-ui/core/demos/bentoGrid-demo.tsx +191 -0
- package/dist/components/catalyst-ui/core/demos/blog-demo.tsx +68 -0
- package/dist/components/catalyst-ui/core/demos/blogEditor-demo.tsx +10 -0
- package/dist/components/catalyst-ui/core/demos/blogPost-demo.tsx +41 -0
- package/dist/components/catalyst-ui/core/demos/button-groups-demo.tsx +111 -0
- package/dist/components/catalyst-ui/core/demos/cardHeadings-demo.tsx +65 -0
- package/dist/components/catalyst-ui/core/demos/catch-all.tsx +414 -0
- package/dist/components/catalyst-ui/core/demos/contact-demo.tsx +87 -0
- package/dist/components/catalyst-ui/core/demos/content-demo.tsx +52 -0
- package/dist/components/catalyst-ui/core/demos/cta-demo.tsx +64 -0
- package/dist/components/catalyst-ui/core/demos/descriptionLists-demo.tsx +109 -0
- package/dist/components/catalyst-ui/core/demos/edit-product-page-demo.tsx +11 -0
- package/dist/components/catalyst-ui/core/demos/empty-state-demo.tsx +37 -0
- package/dist/components/catalyst-ui/core/demos/feature-demo.tsx +104 -0
- package/dist/components/catalyst-ui/core/demos/feeds-demo.tsx +26 -0
- package/dist/components/catalyst-ui/core/demos/flyoutMenu-demo.tsx +156 -0
- package/dist/components/catalyst-ui/core/demos/footer-demo.tsx +62 -0
- package/dist/components/catalyst-ui/core/demos/form-layouts-demo.tsx +378 -0
- package/dist/components/catalyst-ui/core/demos/gridLists-demo.tsx +47 -0
- package/dist/components/catalyst-ui/core/demos/header-demo.tsx +0 -0
- package/dist/components/catalyst-ui/core/demos/header2-demo.tsx +77 -0
- package/dist/components/catalyst-ui/core/demos/headers-demo.tsx +659 -0
- package/dist/components/catalyst-ui/core/demos/hero-demo.tsx +75 -0
- package/dist/components/catalyst-ui/core/demos/input-groups-demo.tsx +75 -0
- package/dist/components/catalyst-ui/core/demos/landingPage-demo.tsx +222 -0
- package/dist/components/catalyst-ui/core/demos/list-demo.tsx +442 -0
- package/dist/components/catalyst-ui/core/demos/logoClouds-demo.tsx +36 -0
- package/dist/components/catalyst-ui/core/demos/mediaObject-demo.tsx +219 -0
- package/dist/components/catalyst-ui/core/demos/multiColumnLayouts-demo.tsx +42 -0
- package/dist/components/catalyst-ui/core/demos/newsLetter-demo.tsx +51 -0
- package/dist/components/catalyst-ui/core/demos/pageHeading-demo.tsx +55 -0
- package/dist/components/catalyst-ui/core/demos/pricing-demo.tsx +114 -0
- package/dist/components/catalyst-ui/core/demos/radio-group-demo.tsx +315 -0
- package/dist/components/catalyst-ui/core/demos/settingsScreen-demo.tsx +95 -0
- package/dist/components/catalyst-ui/core/demos/sidebar-demo.tsx +40 -0
- package/dist/components/catalyst-ui/core/demos/stackedLayout-demo.tsx +17 -0
- package/dist/components/catalyst-ui/core/demos/stackedLists-demo.tsx +60 -0
- package/dist/components/catalyst-ui/core/demos/stats-demo.tsx +99 -0
- package/dist/components/catalyst-ui/core/demos/team-demo.tsx +35 -0
- package/dist/components/catalyst-ui/core/demos/testimonial-demo.tsx +33 -0
- package/dist/components/catalyst-ui/core/demos/toggle-demo-demo.tsx +414 -0
- package/dist/components/catalyst-ui/core/feedback/alert-variant.tsx +101 -0
- package/dist/components/catalyst-ui/core/feedback/announcement.tsx +53 -0
- package/dist/components/catalyst-ui/core/feedback/banner-2.tsx +143 -0
- package/dist/components/catalyst-ui/core/feedback/banner.tsx +50 -0
- package/dist/components/catalyst-ui/core/feedback/banner1.tsx +64 -0
- package/dist/components/catalyst-ui/core/feedback/callout.tsx +18 -0
- package/dist/components/catalyst-ui/core/feedback/chat-bubble.tsx +770 -0
- package/dist/components/catalyst-ui/core/feedback/dimmer.tsx +518 -0
- package/dist/components/catalyst-ui/core/feedback/dot-loader.tsx +116 -0
- package/dist/components/catalyst-ui/core/feedback/empty-states.tsx +154 -0
- package/dist/components/catalyst-ui/core/feedback/hero-badge.tsx +90 -0
- package/dist/components/catalyst-ui/core/feedback/indicator.tsx +315 -0
- package/dist/components/catalyst-ui/core/feedback/loading.tsx +11 -0
- package/dist/components/catalyst-ui/core/feedback/spinner-2.tsx +10 -0
- package/dist/components/catalyst-ui/core/feedback/spinner-3.tsx +163 -0
- package/dist/components/catalyst-ui/core/feedback/spinner-4.tsx +276 -0
- package/dist/components/catalyst-ui/core/feedback/spinner.tsx +287 -0
- package/dist/components/catalyst-ui/core/feedback/status.tsx +54 -0
- package/dist/components/catalyst-ui/core/headings/cardHeadings.tsx +215 -0
- package/dist/components/catalyst-ui/core/headings/pageHeading.tsx +300 -0
- package/dist/components/catalyst-ui/core/headings/sectionHeadings.tsx +240 -0
- package/dist/components/catalyst-ui/core/heros/animated-hero.tsx +116 -0
- package/dist/components/catalyst-ui/core/heros/animated-hero1.tsx +108 -0
- package/dist/components/catalyst-ui/core/heros/hero-video-dialog.tsx +150 -0
- package/dist/components/catalyst-ui/core/index.ts +248 -0
- package/dist/components/catalyst-ui/core/layout/absolute-center.tsx +45 -0
- package/dist/components/catalyst-ui/core/layout/bento-grid.tsx +251 -0
- package/dist/components/catalyst-ui/core/layout/bento-grid1.tsx +58 -0
- package/dist/components/catalyst-ui/core/layout/bento-grid2.tsx +107 -0
- package/dist/components/catalyst-ui/core/layout/bento-system.tsx +101 -0
- package/dist/components/catalyst-ui/core/layout/box.tsx +231 -0
- package/dist/components/catalyst-ui/core/layout/card-layout.tsx +312 -0
- package/dist/components/catalyst-ui/core/layout/center.tsx +76 -0
- package/dist/components/catalyst-ui/core/layout/container-demo.tsx +340 -0
- package/dist/components/catalyst-ui/core/layout/container.tsx +280 -0
- package/dist/components/catalyst-ui/core/layout/flexbox-grid.tsx +469 -0
- package/dist/components/catalyst-ui/core/layout/grid.tsx +656 -0
- package/dist/components/catalyst-ui/core/layout/group.tsx +49 -0
- package/dist/components/catalyst-ui/core/layout/list.tsx +665 -0
- package/dist/components/catalyst-ui/core/layout/mediaObject.tsx +254 -0
- package/dist/components/catalyst-ui/core/layout/rail.tsx +175 -0
- package/dist/components/catalyst-ui/core/layout/section.tsx +86 -0
- package/dist/components/catalyst-ui/core/layout/stack.tsx +182 -0
- package/dist/components/catalyst-ui/core/lists/animated-list.tsx +98 -0
- package/dist/components/catalyst-ui/core/lists/feeds.tsx +190 -0
- package/dist/components/catalyst-ui/core/lists/file-tree.tsx +379 -0
- package/dist/components/catalyst-ui/core/lists/gridLists.tsx +212 -0
- package/dist/components/catalyst-ui/core/lists/index.ts +14 -0
- package/dist/components/catalyst-ui/core/lists/list-1.tsx +152 -0
- package/dist/components/catalyst-ui/core/lists/list.tsx +217 -0
- package/dist/components/catalyst-ui/core/lists/list1.tsx +138 -0
- package/dist/components/catalyst-ui/core/lists/pin-list.tsx +191 -0
- package/dist/components/catalyst-ui/core/lists/stackedLists.tsx +149 -0
- package/dist/components/catalyst-ui/core/lists/tables.tsx +615 -0
- package/dist/components/catalyst-ui/core/lists/tree.tsx +194 -0
- package/dist/components/catalyst-ui/core/modules/createEditSchedule.tsx +389 -0
- package/dist/components/catalyst-ui/core/modules/punchClock.tsx +304 -0
- package/dist/components/catalyst-ui/core/modules/schedule.tsx +188 -0
- package/dist/components/catalyst-ui/core/modules/viewPunchClockEntries.tsx +629 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-01.tsx +264 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-02.tsx +498 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-03.tsx +263 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-04.tsx +331 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-05.tsx +400 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-06.tsx +436 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-07.tsx +331 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-08.tsx +418 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-09.tsx +440 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-10.tsx +351 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-11.tsx +444 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-12/NotificationMenu.tsx +120 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-12/TeamSwitcher.tsx +87 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-12/UserMenu.tsx +80 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-12/navbar-12.tsx +230 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-13/UserMenu.tsx +80 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-13/navbar-13.tsx +144 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-14/InfoMenu.tsx +62 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-14/NotificationMenu.tsx +122 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-14/SettingsMenu.tsx +66 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-14/navbar-14.tsx +156 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-15/DatePicker.tsx +66 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-15/Filters.tsx +160 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-15/navbar-15.tsx +151 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-16/AppToggle.tsx +125 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-16/TeamSwitcher.tsx +87 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-16/navbar-16.tsx +113 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-17.tsx +209 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-18.tsx +243 -0
- package/dist/components/catalyst-ui/core/navbars/navbar-19.tsx +333 -0
- package/dist/components/catalyst-ui/core/navigation/affix.tsx +123 -0
- package/dist/components/catalyst-ui/core/navigation/anchor.tsx +41 -0
- package/dist/components/catalyst-ui/core/navigation/dock-1.tsx +0 -0
- package/dist/components/catalyst-ui/core/navigation/dock-2.tsx +289 -0
- package/dist/components/catalyst-ui/core/navigation/dock.tsx +376 -0
- package/dist/components/catalyst-ui/core/navigation/efab.tsx +245 -0
- package/dist/components/catalyst-ui/core/navigation/fab-menu-component.tsx +299 -0
- package/dist/components/catalyst-ui/core/navigation/fab-menu.tsx +220 -0
- package/dist/components/catalyst-ui/core/navigation/fab.tsx +236 -0
- package/dist/components/catalyst-ui/core/navigation/index.ts +32 -0
- package/dist/components/catalyst-ui/core/navigation/limelight-nav.tsx +110 -0
- package/dist/components/catalyst-ui/core/navigation/mega-menu.tsx +354 -0
- package/dist/components/catalyst-ui/core/navigation/menu-dock.tsx +204 -0
- package/dist/components/catalyst-ui/core/navigation/message-dock.tsx +511 -0
- package/dist/components/catalyst-ui/core/navigation/page-nav.tsx +29 -0
- package/dist/components/catalyst-ui/core/navigation/page-sidebar-nav.tsx +39 -0
- package/dist/components/catalyst-ui/core/navigation/pagination-button.tsx +56 -0
- package/dist/components/catalyst-ui/core/navigation/pagination-wrapper.tsx +152 -0
- package/dist/components/catalyst-ui/core/navigation/panel-menu.tsx +201 -0
- package/dist/components/catalyst-ui/core/navigation/remix-link.tsx +40 -0
- package/dist/components/catalyst-ui/core/navigation/smooth-tab.tsx +412 -0
- package/dist/components/catalyst-ui/core/navigation/speed-dial.tsx +175 -0
- package/dist/components/catalyst-ui/core/navigation/stepper.tsx +290 -0
- package/dist/components/catalyst-ui/core/navigation/steps.tsx +578 -0
- package/dist/components/catalyst-ui/core/navigation/tab-menu.tsx +227 -0
- package/dist/components/catalyst-ui/core/navigation/tab-view.tsx +742 -0
- package/dist/components/catalyst-ui/core/navigation/toolbar-1.tsx +412 -0
- package/dist/components/catalyst-ui/core/navigation/toolbar.tsx +245 -0
- package/dist/components/catalyst-ui/core/sections/changelog-section.tsx +135 -0
- package/dist/components/catalyst-ui/core/sections/config-section.tsx +82 -0
- package/dist/components/catalyst-ui/core/sections/contact.tsx +600 -0
- package/dist/components/catalyst-ui/core/sections/content.tsx +386 -0
- package/dist/components/catalyst-ui/core/sections/layout.tsx +310 -0
- package/dist/components/catalyst-ui/core/sections/note-section.tsx +85 -0
- package/dist/components/catalyst-ui/core/sections/placeholder-code-section.tsx +14 -0
- package/dist/components/catalyst-ui/core/sections/step-number-section.tsx +16 -0
- package/dist/components/catalyst-ui/core/sections/team.tsx +372 -0
- package/dist/components/catalyst-ui/core/sections/useage-no-dash-section.tsx +79 -0
- package/dist/components/catalyst-ui/core/sections/useage-section.tsx +79 -0
- package/dist/components/catalyst-ui/core/shell/app-shell.tsx +321 -0
- package/dist/components/catalyst-ui/core/shell/content-shell.tsx +70 -0
- package/dist/components/catalyst-ui/core/shell/documentation/example.tsx +106 -0
- package/dist/components/catalyst-ui/core/shell/documentation/layout.config.tsx +200 -0
- package/dist/components/catalyst-ui/core/shell/documentation/layout.example.tsx +127 -0
- package/dist/components/catalyst-ui/core/shell/documentation/layout.tsx +280 -0
- package/dist/components/catalyst-ui/core/shell/multiColumnLayouts.tsx +364 -0
- package/dist/components/catalyst-ui/core/shell/sidebarLayout.tsx +459 -0
- package/dist/components/catalyst-ui/core/shell/stackedLayout.tsx +323 -0
- package/dist/components/catalyst-ui/core/shell/three-col/app.tsx +193 -0
- package/dist/components/catalyst-ui/core/shell/three-col/content.tsx +358 -0
- package/dist/components/catalyst-ui/core/shell/three-col/header.tsx +222 -0
- package/dist/components/catalyst-ui/core/shell/three-col/layout.tsx +120 -0
- package/dist/components/catalyst-ui/core/shell/three-col/side-navbar.tsx +305 -0
- package/dist/components/catalyst-ui/core/shell/three-col/sidebar.tsx +41 -0
- package/dist/components/catalyst-ui/crm/comp-297.tsx +24 -0
- package/dist/components/catalyst-ui/crm/comp-298.tsx +188 -0
- package/dist/components/catalyst-ui/crm/comp-299.tsx +24 -0
- package/dist/components/catalyst-ui/crm/comp-300.tsx +62 -0
- package/dist/components/catalyst-ui/crm/index.ts +5 -0
- package/dist/components/catalyst-ui/crm/tools/scripts-editor.tsx +3109 -0
- package/dist/components/catalyst-ui/crm/tools/scripts-viewer.tsx +215 -0
- package/dist/components/catalyst-ui/data/bg-data.tsx +901 -0
- package/dist/components/catalyst-ui/data/buttons-data.tsx +2327 -0
- package/dist/components/catalyst-ui/data/charts-data.tsx +102 -0
- package/dist/components/catalyst-ui/data/chat-data.tsx +83 -0
- package/dist/components/catalyst-ui/data/code-data.tsx +1040 -0
- package/dist/components/catalyst-ui/data/comboboxes-data.tsx +1843 -0
- package/dist/components/catalyst-ui/data/command-data.tsx +1381 -0
- package/dist/components/catalyst-ui/data/core-data.tsx +15953 -0
- package/dist/components/catalyst-ui/data/crm-data.tsx +47 -0
- package/dist/components/catalyst-ui/data/data.tsx +159 -0
- package/dist/components/catalyst-ui/data/date-and-time-data.tsx +554 -0
- package/dist/components/catalyst-ui/data/dependencies.tsx +7 -0
- package/dist/components/catalyst-ui/data/ecommerce-data.tsx +1387 -0
- package/dist/components/catalyst-ui/data/forms-data.tsx +7890 -0
- package/dist/components/catalyst-ui/data/hooks-data.tsx +5487 -0
- package/dist/components/catalyst-ui/data/index.ts +34 -0
- package/dist/components/catalyst-ui/data/inputs-data.tsx +557 -0
- package/dist/components/catalyst-ui/data/interactive-data.tsx +5394 -0
- package/dist/components/catalyst-ui/data/lofi-data.tsx +18295 -0
- package/dist/components/catalyst-ui/data/marketing-data.tsx +2546 -0
- package/dist/components/catalyst-ui/data/media-data.tsx +1510 -0
- package/dist/components/catalyst-ui/data/motion-data.tsx +5801 -0
- package/dist/components/catalyst-ui/data/overlay-data.tsx +4136 -0
- package/dist/components/catalyst-ui/data/pdf-data.tsx +124 -0
- package/dist/components/catalyst-ui/data/pos-data.tsx +213 -0
- package/dist/components/catalyst-ui/data/primitive-data.tsx +5170 -0
- package/dist/components/catalyst-ui/data/prompt-data.tsx +1226 -0
- package/dist/components/catalyst-ui/data/requiredLibs.ts +4 -0
- package/dist/components/catalyst-ui/data/sandbox-data.tsx +1 -0
- package/dist/components/catalyst-ui/data/sidebars-data.tsx +5421 -0
- package/dist/components/catalyst-ui/data/stacks-data.tsx +32 -0
- package/dist/components/catalyst-ui/data/table-data.tsx +706 -0
- package/dist/components/catalyst-ui/data/tools-data.tsx +6910 -0
- package/dist/components/catalyst-ui/data/typography-data.tsx +2050 -0
- package/dist/components/catalyst-ui/data/utils-data.tsx +6500 -0
- package/dist/components/catalyst-ui/data/x-data.tsx +1171 -0
- package/dist/components/catalyst-ui/data2.tsx +158 -0
- package/dist/components/catalyst-ui/date-and-time/appointment-scheduler.tsx +381 -0
- package/dist/components/catalyst-ui/date-and-time/calendar-2.tsx +498 -0
- package/dist/components/catalyst-ui/date-and-time/calendar-for-sidebar.tsx +68 -0
- package/dist/components/catalyst-ui/date-and-time/calendar-rac.tsx +112 -0
- package/dist/components/catalyst-ui/date-and-time/date-picker-input.tsx +76 -0
- package/dist/components/catalyst-ui/date-and-time/date-picker.tsx +64 -0
- package/dist/components/catalyst-ui/date-and-time/date-range-picker-input.tsx +84 -0
- package/dist/components/catalyst-ui/date-and-time/date-range-picker.tsx +125 -0
- package/dist/components/catalyst-ui/date-and-time/datefield-rac.tsx +88 -0
- package/dist/components/catalyst-ui/date-and-time/docked-date-picker.tsx +267 -0
- package/dist/components/catalyst-ui/date-and-time/drawerDatePicker.tsx +50 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/agenda-view.tsx +90 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/calendar-dnd-context.tsx +373 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/constants.ts +18 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/day-view.tsx +322 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/demo.tsx +162 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/draggable-event.tsx +141 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/droppable-cell.tsx +57 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/event-calendar.tsx +400 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/event-dialog.tsx +467 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/event-item.tsx +262 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/events-popup.tsx +135 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/hooks/use-current-time-indicator.ts +57 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/hooks/use-event-visibility.ts +86 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/index.ts +23 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/month-view.tsx +276 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/types.ts +20 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/utils.ts +153 -0
- package/dist/components/catalyst-ui/date-and-time/event-calendar/week-view.tsx +406 -0
- package/dist/components/catalyst-ui/date-and-time/index.ts +74 -0
- package/dist/components/catalyst-ui/date-and-time/mini-calendar.tsx +230 -0
- package/dist/components/catalyst-ui/date-and-time/modal-date-input.tsx +229 -0
- package/dist/components/catalyst-ui/date-and-time/popover-date-input.tsx +233 -0
- package/dist/components/catalyst-ui/date-and-time/relative-time.tsx +181 -0
- package/dist/components/catalyst-ui/date-and-time/time-picker-dial.tsx +368 -0
- package/dist/components/catalyst-ui/date-and-time/time-picker-input.tsx +385 -0
- package/dist/components/catalyst-ui/date-and-time/time-picker.tsx +514 -0
- package/dist/components/catalyst-ui/demo/examples.tsx +10069 -0
- package/dist/components/catalyst-ui/demo/examples2.tsx +10954 -0
- package/dist/components/catalyst-ui/demo/index.ts +5 -0
- package/dist/components/catalyst-ui/ecommerce/components/categoryFilters.tsx +302 -0
- package/dist/components/catalyst-ui/ecommerce/components/categoryPreviews.tsx +464 -0
- package/dist/components/catalyst-ui/ecommerce/components/checkoutForms.tsx +991 -0
- package/dist/components/catalyst-ui/ecommerce/components/incentives.tsx +529 -0
- package/dist/components/catalyst-ui/ecommerce/components/orderHistory.tsx +380 -0
- package/dist/components/catalyst-ui/ecommerce/components/orderSummaries.tsx +482 -0
- package/dist/components/catalyst-ui/ecommerce/components/productCard.tsx +84 -0
- package/dist/components/catalyst-ui/ecommerce/components/productCard2.tsx +82 -0
- package/dist/components/catalyst-ui/ecommerce/components/productFeatures.tsx +764 -0
- package/dist/components/catalyst-ui/ecommerce/components/productLists.tsx +472 -0
- package/dist/components/catalyst-ui/ecommerce/components/productOverview.tsx +856 -0
- package/dist/components/catalyst-ui/ecommerce/components/productQuickViews.tsx +378 -0
- package/dist/components/catalyst-ui/ecommerce/components/promoSectionts.tsx +414 -0
- package/dist/components/catalyst-ui/ecommerce/components/reviews.tsx +274 -0
- package/dist/components/catalyst-ui/ecommerce/components/shoppingCarts.tsx +508 -0
- package/dist/components/catalyst-ui/ecommerce/components/storeNavigation.tsx +255 -0
- package/dist/components/catalyst-ui/ecommerce/demo/categoryFilters-demo.tsx +140 -0
- package/dist/components/catalyst-ui/ecommerce/demo/categoryPreviews-demo.tsx +252 -0
- package/dist/components/catalyst-ui/ecommerce/demo/checkoutForms-demo.tsx +76 -0
- package/dist/components/catalyst-ui/ecommerce/demo/editProductPage-data2.tsx +34 -0
- package/dist/components/catalyst-ui/ecommerce/demo/editProductPage-demo.tsx +10 -0
- package/dist/components/catalyst-ui/ecommerce/demo/incentives-demo.tsx +172 -0
- package/dist/components/catalyst-ui/ecommerce/demo/orderHistory-demo.tsx +81 -0
- package/dist/components/catalyst-ui/ecommerce/demo/orderSummaries-demo.tsx +98 -0
- package/dist/components/catalyst-ui/ecommerce/demo/pricingPage-demo.tsx +105 -0
- package/dist/components/catalyst-ui/ecommerce/demo/product.$id-demo.tsx +98 -0
- package/dist/components/catalyst-ui/ecommerce/demo/productCard-demo.tsx +308 -0
- package/dist/components/catalyst-ui/ecommerce/demo/productFeatures-demo.tsx +57 -0
- package/dist/components/catalyst-ui/ecommerce/demo/productLists-demo.tsx +130 -0
- package/dist/components/catalyst-ui/ecommerce/demo/productOverview-demo.tsx +328 -0
- package/dist/components/catalyst-ui/ecommerce/demo/productQuickViews-demo.tsx +242 -0
- package/dist/components/catalyst-ui/ecommerce/demo/promoSectionts-demo.tsx +169 -0
- package/dist/components/catalyst-ui/ecommerce/demo/reviews-demo.tsx +45 -0
- package/dist/components/catalyst-ui/ecommerce/demo/shoppingCarts-demo.tsx +73 -0
- package/dist/components/catalyst-ui/ecommerce/demo/store-demo.tsx +88 -0
- package/dist/components/catalyst-ui/ecommerce/demo/storeNavigation-demo.tsx +171 -0
- package/dist/components/catalyst-ui/ecommerce/index.ts +55 -0
- package/dist/components/catalyst-ui/ecommerce/modules/cash-drawer-wizard.tsx +1400 -0
- package/dist/components/catalyst-ui/ecommerce/modules/cash-till-manager.tsx +639 -0
- package/dist/components/catalyst-ui/ecommerce/modules/promotionEngine.ts +341 -0
- package/dist/components/catalyst-ui/ecommerce/modules/promotionsManager.tsx +840 -0
- package/dist/components/catalyst-ui/forms/action-bar-1.tsx +192 -0
- package/dist/components/catalyst-ui/forms/action-bar.tsx +154 -0
- package/dist/components/catalyst-ui/forms/action-panels.tsx +153 -0
- package/dist/components/catalyst-ui/forms/action-search-bar.tsx +268 -0
- package/dist/components/catalyst-ui/forms/auto-resizing-textarea.tsx +36 -0
- package/dist/components/catalyst-ui/forms/cascade-tree.tsx +224 -0
- package/dist/components/catalyst-ui/forms/cascader.tsx +219 -0
- package/dist/components/catalyst-ui/forms/check-tree-picker.tsx +330 -0
- package/dist/components/catalyst-ui/forms/check-tree.tsx +348 -0
- package/dist/components/catalyst-ui/forms/checkbox-1.tsx +48 -0
- package/dist/components/catalyst-ui/forms/checkbox-card-1.tsx +64 -0
- package/dist/components/catalyst-ui/forms/checkbox-card.tsx +145 -0
- package/dist/components/catalyst-ui/forms/checkbox-multistate.tsx +97 -0
- package/dist/components/catalyst-ui/forms/checkbox-tristate.tsx +158 -0
- package/dist/components/catalyst-ui/forms/color-picker-1.tsx +299 -0
- package/dist/components/catalyst-ui/forms/color-picker-3.tsx +487 -0
- package/dist/components/catalyst-ui/forms/color-picker.tsx +251 -0
- package/dist/components/catalyst-ui/forms/credit-card-input.tsx +284 -0
- package/dist/components/catalyst-ui/forms/debounced-input.tsx +21 -0
- package/dist/components/catalyst-ui/forms/fancy-area.tsx +571 -0
- package/dist/components/catalyst-ui/forms/fieldset.tsx +107 -0
- package/dist/components/catalyst-ui/forms/float-label.tsx +66 -0
- package/dist/components/catalyst-ui/forms/floating-label.tsx +138 -0
- package/dist/components/catalyst-ui/forms/form-wizard.tsx +787 -0
- package/dist/components/catalyst-ui/forms/fuse-search-input.tsx +293 -0
- package/dist/components/catalyst-ui/forms/fuzzy-filter.tsx +17 -0
- package/dist/components/catalyst-ui/forms/fuzzy-sort.tsx +17 -0
- package/dist/components/catalyst-ui/forms/icon-field.tsx +51 -0
- package/dist/components/catalyst-ui/forms/index.ts +58 -0
- package/dist/components/catalyst-ui/forms/inline-edit.tsx +108 -0
- package/dist/components/catalyst-ui/forms/inplace.tsx +174 -0
- package/dist/components/catalyst-ui/forms/input-icon.tsx +39 -0
- package/dist/components/catalyst-ui/forms/input-mask.tsx +216 -0
- package/dist/components/catalyst-ui/forms/input-text.tsx +52 -0
- package/dist/components/catalyst-ui/forms/json-input.tsx +261 -0
- package/dist/components/catalyst-ui/forms/key-filter.tsx +238 -0
- package/dist/components/catalyst-ui/forms/label-variant.tsx +53 -0
- package/dist/components/catalyst-ui/forms/listbox.tsx +118 -0
- package/dist/components/catalyst-ui/forms/multi-cascade-tree.tsx +586 -0
- package/dist/components/catalyst-ui/forms/multi-cascader.tsx +429 -0
- package/dist/components/catalyst-ui/forms/multi-select.tsx +161 -0
- package/dist/components/catalyst-ui/forms/password-input.tsx +54 -0
- package/dist/components/catalyst-ui/forms/pills-input.tsx +133 -0
- package/dist/components/catalyst-ui/forms/pin-input.tsx +354 -0
- package/dist/components/catalyst-ui/forms/profile-dropdown.tsx +219 -0
- package/dist/components/catalyst-ui/forms/radio-tile.tsx +245 -0
- package/dist/components/catalyst-ui/forms/rating-2.tsx +140 -0
- package/dist/components/catalyst-ui/forms/search-input.tsx +49 -0
- package/dist/components/catalyst-ui/forms/select-button.tsx +155 -0
- package/dist/components/catalyst-ui/forms/step-form-wizard.tsx +877 -0
- package/dist/components/catalyst-ui/forms/tags-input-1.tsx +457 -0
- package/dist/components/catalyst-ui/forms/textarea-2.tsx +36 -0
- package/dist/components/catalyst-ui/forms/tree-picker.tsx +295 -0
- package/dist/components/catalyst-ui/hooks/demo.tsx +2757 -0
- package/dist/components/catalyst-ui/hooks/index.ts +106 -0
- package/dist/components/catalyst-ui/hooks/react-hook-docs.tsx +608 -0
- package/dist/components/catalyst-ui/hooks/use-api-key.tsx +151 -0
- package/dist/components/catalyst-ui/hooks/use-async.tsx +36 -0
- package/dist/components/catalyst-ui/hooks/use-auto-scroll.tsx +139 -0
- package/dist/components/catalyst-ui/hooks/use-breakpoint.tsx +21 -0
- package/dist/components/catalyst-ui/hooks/use-character-limit.tsx +37 -0
- package/dist/components/catalyst-ui/hooks/use-click-outside.tsx +27 -0
- package/dist/components/catalyst-ui/hooks/use-client.tsx +30 -0
- package/dist/components/catalyst-ui/hooks/use-color-theme.tsx +4933 -0
- package/dist/components/catalyst-ui/hooks/use-color-wheel.tsx +905 -0
- package/dist/components/catalyst-ui/hooks/use-current-time-indicator.tsx +65 -0
- package/dist/components/catalyst-ui/hooks/use-debounce-fetcher.tsx +56 -0
- package/dist/components/catalyst-ui/hooks/use-debounce-submit.tsx +45 -0
- package/dist/components/catalyst-ui/hooks/use-debounce.tsx +18 -0
- package/dist/components/catalyst-ui/hooks/use-debounced-fuse-search.tsx +168 -0
- package/dist/components/catalyst-ui/hooks/use-delegated-anchors.tsx +87 -0
- package/dist/components/catalyst-ui/hooks/use-document-title.tsx +14 -0
- package/dist/components/catalyst-ui/hooks/use-event-callback.tsx +24 -0
- package/dist/components/catalyst-ui/hooks/use-event-source.tsx +69 -0
- package/dist/components/catalyst-ui/hooks/use-event-visibility.tsx +72 -0
- package/dist/components/catalyst-ui/hooks/use-expandable.tsx +18 -0
- package/dist/components/catalyst-ui/hooks/use-export-markdown-usage.tsx +92 -0
- package/dist/components/catalyst-ui/hooks/use-export-tsx.tsx +50 -0
- package/dist/components/catalyst-ui/hooks/use-external-scripts.tsx +44 -0
- package/dist/components/catalyst-ui/hooks/use-favicon.tsx +16 -0
- package/dist/components/catalyst-ui/hooks/use-fetch.tsx +64 -0
- package/dist/components/catalyst-ui/hooks/use-file-upload.tsx +405 -0
- package/dist/components/catalyst-ui/hooks/use-focus-within.tsx +16 -0
- package/dist/components/catalyst-ui/hooks/use-form.tsx +86 -0
- package/dist/components/catalyst-ui/hooks/use-fuse-search.tsx +155 -0
- package/dist/components/catalyst-ui/hooks/use-fuzzy-search.tsx +17 -0
- package/dist/components/catalyst-ui/hooks/use-global-loading-state.tsx +7 -0
- package/dist/components/catalyst-ui/hooks/use-global-navigation-state.tsx +23 -0
- package/dist/components/catalyst-ui/hooks/use-global-pending-state.tsx +10 -0
- package/dist/components/catalyst-ui/hooks/use-global-submitting-state.tsx +7 -0
- package/dist/components/catalyst-ui/hooks/use-google-font.tsx +39 -0
- package/dist/components/catalyst-ui/hooks/use-hover.tsx +24 -0
- package/dist/components/catalyst-ui/hooks/use-hydrated.tsx +31 -0
- package/dist/components/catalyst-ui/hooks/use-intersection-observer.tsx +28 -0
- package/dist/components/catalyst-ui/hooks/use-isomorphic-layout-effect.tsx +9 -0
- package/dist/components/catalyst-ui/hooks/use-key-press.tsx +30 -0
- package/dist/components/catalyst-ui/hooks/use-keyboard-shortcut.tsx +69 -0
- package/dist/components/catalyst-ui/hooks/use-keyboard.tsx +16 -0
- package/dist/components/catalyst-ui/hooks/use-local-storage-auto-save.tsx +24 -0
- package/dist/components/catalyst-ui/hooks/use-local-storage.tsx +32 -0
- package/dist/components/catalyst-ui/hooks/use-locales.tsx +40 -0
- package/dist/components/catalyst-ui/hooks/use-long-press.tsx +16 -0
- package/dist/components/catalyst-ui/hooks/use-markdown-batches.tsx +120 -0
- package/dist/components/catalyst-ui/hooks/use-markdown-to-html.tsx +42 -0
- package/dist/components/catalyst-ui/hooks/use-mount-effect.tsx +5 -0
- package/dist/components/catalyst-ui/hooks/use-mounted.tsx +11 -0
- package/dist/components/catalyst-ui/hooks/use-mouse-enter.tsx +13 -0
- package/dist/components/catalyst-ui/hooks/use-move.tsx +16 -0
- package/dist/components/catalyst-ui/hooks/use-mutation-observer-useage.tsx +96 -0
- package/dist/components/catalyst-ui/hooks/use-mutation-observer.tsx +117 -0
- package/dist/components/catalyst-ui/hooks/use-on-click-outside.tsx +38 -0
- package/dist/components/catalyst-ui/hooks/use-online-status.tsx +23 -0
- package/dist/components/catalyst-ui/hooks/use-outside-click.tsx +25 -0
- package/dist/components/catalyst-ui/hooks/use-overlay-listener.tsx +31 -0
- package/dist/components/catalyst-ui/hooks/use-overlay-scroll-listener.tsx +128 -0
- package/dist/components/catalyst-ui/hooks/use-pagination.tsx +68 -0
- package/dist/components/catalyst-ui/hooks/use-press.tsx +17 -0
- package/dist/components/catalyst-ui/hooks/use-previous.tsx +13 -0
- package/dist/components/catalyst-ui/hooks/use-read-local-storage.tsx +73 -0
- package/dist/components/catalyst-ui/hooks/use-reducer.tsx +0 -0
- package/dist/components/catalyst-ui/hooks/use-resize-listener.tsx +18 -0
- package/dist/components/catalyst-ui/hooks/use-screen.tsx +100 -0
- package/dist/components/catalyst-ui/hooks/use-script.tsx +102 -0
- package/dist/components/catalyst-ui/hooks/use-scroll-lock.tsx +91 -0
- package/dist/components/catalyst-ui/hooks/use-scroll-position.tsx +23 -0
- package/dist/components/catalyst-ui/hooks/use-sec-fetch-parser.tsx +52 -0
- package/dist/components/catalyst-ui/hooks/use-session-storage.tsx +31 -0
- package/dist/components/catalyst-ui/hooks/use-should-hydrate.tsx +27 -0
- package/dist/components/catalyst-ui/hooks/use-slide-in-1.tsx +96 -0
- package/dist/components/catalyst-ui/hooks/use-slide-in.tsx +368 -0
- package/dist/components/catalyst-ui/hooks/use-slider-with-input.tsx +106 -0
- package/dist/components/catalyst-ui/hooks/use-smooth-scroll.tsx +35 -0
- package/dist/components/catalyst-ui/hooks/use-stream.tsx +576 -0
- package/dist/components/catalyst-ui/hooks/use-tailwind-converter.tsx +465 -0
- package/dist/components/catalyst-ui/hooks/use-throttle.tsx +22 -0
- package/dist/components/catalyst-ui/hooks/use-transition.tsx +0 -0
- package/dist/components/catalyst-ui/hooks/use-unmount-effect.tsx +15 -0
- package/dist/components/catalyst-ui/hooks/use-update-effect.tsx +13 -0
- package/dist/components/catalyst-ui/hooks/use-validate-credit-card.tsx +112 -0
- package/dist/components/catalyst-ui/hooks/use-window-size.tsx +23 -0
- package/dist/components/catalyst-ui/hooks/useDevList.tsx +185 -0
- package/dist/components/catalyst-ui/hooks/useOnWindowResize.tsx +15 -0
- package/dist/components/catalyst-ui/index.ts +38 -0
- package/dist/components/catalyst-ui/inputs/autocomplete.tsx +569 -0
- package/dist/components/catalyst-ui/inputs/autocomplete1.tsx +323 -0
- package/dist/components/catalyst-ui/inputs/cc-input.tsx +44 -0
- package/dist/components/catalyst-ui/inputs/email-address-input.tsx +17 -0
- package/dist/components/catalyst-ui/inputs/index.ts +30 -0
- package/dist/components/catalyst-ui/inputs/input-with-characters-left.tsx +41 -0
- package/dist/components/catalyst-ui/inputs/input-with-end-add-on.tsx +25 -0
- package/dist/components/catalyst-ui/inputs/input-with-end-button.tsx +27 -0
- package/dist/components/catalyst-ui/inputs/input-with-end-icon-button.tsx +29 -0
- package/dist/components/catalyst-ui/inputs/input-with-end-inline-add-on.tsx +24 -0
- package/dist/components/catalyst-ui/inputs/input-with-end-inline-button.tsx +24 -0
- package/dist/components/catalyst-ui/inputs/input-with-end-select.tsx +27 -0
- package/dist/components/catalyst-ui/inputs/input-with-inline-add-ons.tsx +27 -0
- package/dist/components/catalyst-ui/inputs/input-with-inline-start-and-end-add-on.tsx +27 -0
- package/dist/components/catalyst-ui/inputs/input-with-inner-tags.tsx +60 -0
- package/dist/components/catalyst-ui/inputs/input-with-inset-label.tsx +23 -0
- package/dist/components/catalyst-ui/inputs/input-with-mask.tsx +44 -0
- package/dist/components/catalyst-ui/inputs/input-with-password-strength-indicator.tsx +137 -0
- package/dist/components/catalyst-ui/inputs/input-with-start-add-on.tsx +24 -0
- package/dist/components/catalyst-ui/inputs/input-with-start-inline-add-on.tsx +24 -0
- package/dist/components/catalyst-ui/inputs/input-with-start-select.tsx +30 -0
- package/dist/components/catalyst-ui/inputs/input-with-tags.tsx +72 -0
- package/dist/components/catalyst-ui/inputs/number-input-with-chevrons.tsx +61 -0
- package/dist/components/catalyst-ui/inputs/number-input-with-plus-minus-buttons.tsx +52 -0
- package/dist/components/catalyst-ui/inputs/search-input-with-icon-and-button.tsx +32 -0
- package/dist/components/catalyst-ui/inputs/search-input-with-kbd.tsx +26 -0
- package/dist/components/catalyst-ui/inputs/search-input-with-loader.tsx +59 -0
- package/dist/components/catalyst-ui/interactive/3d-pin.tsx +175 -0
- package/dist/components/catalyst-ui/interactive/action-sheet.tsx +240 -0
- package/dist/components/catalyst-ui/interactive/activity-card.tsx +196 -0
- package/dist/components/catalyst-ui/interactive/ai-prompt.tsx +441 -0
- package/dist/components/catalyst-ui/interactive/animated-cursor.tsx +254 -0
- package/dist/components/catalyst-ui/interactive/background-paths.tsx +172 -0
- package/dist/components/catalyst-ui/interactive/can-edit.tsx +100 -0
- package/dist/components/catalyst-ui/interactive/color-swatch.tsx +441 -0
- package/dist/components/catalyst-ui/interactive/currency-transfer.tsx +228 -0
- package/dist/components/catalyst-ui/interactive/cursor.tsx +109 -0
- package/dist/components/catalyst-ui/interactive/drag-and-drop.tsx +374 -0
- package/dist/components/catalyst-ui/interactive/drawing-2.tsx +1147 -0
- package/dist/components/catalyst-ui/interactive/drawing.tsx +576 -0
- package/dist/components/catalyst-ui/interactive/drop-zone-external.tsx +377 -0
- package/dist/components/catalyst-ui/interactive/drop-zone.tsx +399 -0
- package/dist/components/catalyst-ui/interactive/dropzone-1.tsx +259 -0
- package/dist/components/catalyst-ui/interactive/export-excel.tsx +201 -0
- package/dist/components/catalyst-ui/interactive/file-upload.tsx +403 -0
- package/dist/components/catalyst-ui/interactive/file_upload-1.tsx +422 -0
- package/dist/components/catalyst-ui/interactive/filesaver.tsx +51 -0
- package/dist/components/catalyst-ui/interactive/gantt-1.tsx +1464 -0
- package/dist/components/catalyst-ui/interactive/highlight.tsx +84 -0
- package/dist/components/catalyst-ui/interactive/index.ts +49 -0
- package/dist/components/catalyst-ui/interactive/kanban-1.tsx +338 -0
- package/dist/components/catalyst-ui/interactive/lens.tsx +121 -0
- package/dist/components/catalyst-ui/interactive/magnetic.tsx +105 -0
- package/dist/components/catalyst-ui/interactive/mouse-effect-card.tsx +158 -0
- package/dist/components/catalyst-ui/interactive/pdf-generator.tsx +414 -0
- package/dist/components/catalyst-ui/interactive/pdf-signature.tsx +623 -0
- package/dist/components/catalyst-ui/interactive/pdf-viewer.tsx +931 -0
- package/dist/components/catalyst-ui/interactive/pointer.tsx +108 -0
- package/dist/components/catalyst-ui/interactive/ripple.tsx +103 -0
- package/dist/components/catalyst-ui/interactive/scroll-based-velocity.tsx +205 -0
- package/dist/components/catalyst-ui/interactive/signature.tsx +606 -0
- package/dist/components/catalyst-ui/interactive/smooth-cursor.tsx +236 -0
- package/dist/components/catalyst-ui/interactive/sortable.tsx +420 -0
- package/dist/components/catalyst-ui/interactive/spreadsheet.tsx +601 -0
- package/dist/components/catalyst-ui/interactive/task-board.tsx +902 -0
- package/dist/components/catalyst-ui/interactive/terminal.tsx +587 -0
- package/dist/components/catalyst-ui/interactive/tour-1.tsx +426 -0
- package/dist/components/catalyst-ui/interactive/tour.tsx +830 -0
- package/dist/components/catalyst-ui/interactive/transition.tsx +913 -0
- package/dist/components/catalyst-ui/interactive/transitionable-portal.tsx +0 -0
- package/dist/components/catalyst-ui/interactive/tree-view.tsx +427 -0
- package/dist/components/catalyst-ui/interactive/virtualizer.tsx +233 -0
- package/dist/components/catalyst-ui/interactive/watermark.tsx +211 -0
- package/dist/components/catalyst-ui/lo-fi/components/AboutPageLoFi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/components/ActionPanelLoFi.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/components/AnchorLoFi-lofi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/ButtonGroupLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/ButtonIconLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/ButtonLinkLoFi.tsx +5 -0
- package/dist/components/catalyst-ui/lo-fi/components/ButtonLoadingLoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/components/CalendarForSidebarLoFi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/components/CalendarMultiDayLoFi.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/components/CalloutLoFi.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/components/Chart.tsx +239 -0
- package/dist/components/catalyst-ui/lo-fi/components/ContainerLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/CopyTextLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/DebouncedInputLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/DescriptionListLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/EditorLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/EmptyStateLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/components/ErrorPageLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/components/ExportFileLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/components/FlyoutMenuLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/FormLayoutLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/components/HeroCalendar.tsx +115 -0
- package/dist/components/catalyst-ui/lo-fi/components/HeroLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/components/ListLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/LoadingLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/LogoCloudLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/MediaObjectLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/MultiColumnLayoutLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/NavButtonLoFi.tsx +6 -0
- package/dist/components/catalyst-ui/lo-fi/components/NavButtonStyledLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/ScaffoldingLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/SectionHeadingLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/VerticalNavigationLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/accordion-lofi.tsx +76 -0
- package/dist/components/catalyst-ui/lo-fi/components/accountForm-lofi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/components/alert-lofi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/components/alertDialog-lofi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/announcement-lofi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/components/aspectRatio-lofi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/components/authenticator-lofi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/components/avatar-lofi.tsx +6 -0
- package/dist/components/catalyst-ui/lo-fi/components/badge-lofi.tsx +5 -0
- package/dist/components/catalyst-ui/lo-fi/components/banner.tsx +31 -0
- package/dist/components/catalyst-ui/lo-fi/components/bento-grid.tsx +31 -0
- package/dist/components/catalyst-ui/lo-fi/components/blog.tsx +37 -0
- package/dist/components/catalyst-ui/lo-fi/components/breadcrumb.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/button.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/card-header.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/components/card-heading.tsx +30 -0
- package/dist/components/catalyst-ui/lo-fi/components/card.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/components/carousel.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/cart.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/components/catchAll.tsx +660 -0
- package/dist/components/catalyst-ui/lo-fi/components/categoryFilter.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/components/categoryPage.tsx +31 -0
- package/dist/components/catalyst-ui/lo-fi/components/categoryPreviews.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/components/checkbox.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/checkout-form.tsx +27 -0
- package/dist/components/catalyst-ui/lo-fi/components/checkout.tsx +34 -0
- package/dist/components/catalyst-ui/lo-fi/components/checkoutPage.tsx +67 -0
- package/dist/components/catalyst-ui/lo-fi/components/clientOnly.tsx +34 -0
- package/dist/components/catalyst-ui/lo-fi/components/collapsible.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/columns.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/components/combobox.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/contact-section.tsx +28 -0
- package/dist/components/catalyst-ui/lo-fi/components/content-section.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/components/cookieSettings.tsx +34 -0
- package/dist/components/catalyst-ui/lo-fi/components/cta-section.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/components/data.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/components/dataTable.tsx +36 -0
- package/dist/components/catalyst-ui/lo-fi/components/datePicker.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/details.tsx +36 -0
- package/dist/components/catalyst-ui/lo-fi/components/dialog.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/components/display-code.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/components/dropdown.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/components/dropdownMenu.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/faq-section.tsx +28 -0
- package/dist/components/catalyst-ui/lo-fi/components/feature-section.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/components/feature.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/components/feedList.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/components/footer.tsx +40 -0
- package/dist/components/catalyst-ui/lo-fi/components/form.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/components/fourofour.tsx +42 -0
- package/dist/components/catalyst-ui/lo-fi/components/gridLists.tsx +36 -0
- package/dist/components/catalyst-ui/lo-fi/components/header.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/components/hero.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/components/homeScreen.tsx +31 -0
- package/dist/components/catalyst-ui/lo-fi/components/hooks.tsx +31 -0
- package/dist/components/catalyst-ui/lo-fi/components/hoverCard.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/icons.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/components/image.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/components/incentives.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/components/index.ts +152 -0
- package/dist/components/catalyst-ui/lo-fi/components/input.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/label.tsx +5 -0
- package/dist/components/catalyst-ui/lo-fi/components/landingPage.tsx +35 -0
- package/dist/components/catalyst-ui/lo-fi/components/loadingPage.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/components/menubar.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/motherboard-blog.tsx +178 -0
- package/dist/components/catalyst-ui/lo-fi/components/motherboard.tsx +91 -0
- package/dist/components/catalyst-ui/lo-fi/components/newsletter.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/components/notifications.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/components/orderDetails.tsx +51 -0
- package/dist/components/catalyst-ui/lo-fi/components/orderHistory.tsx +35 -0
- package/dist/components/catalyst-ui/lo-fi/components/orderSumaries.tsx +34 -0
- package/dist/components/catalyst-ui/lo-fi/components/pageHeading.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/components/pageNav.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/components/pagination.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/paymentMethod.tsx +32 -0
- package/dist/components/catalyst-ui/lo-fi/components/pricing.tsx +34 -0
- package/dist/components/catalyst-ui/lo-fi/components/pricingPage.tsx +47 -0
- package/dist/components/catalyst-ui/lo-fi/components/prisma.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/components/product-card.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/components/product-gallery.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/productList.tsx +41 -0
- package/dist/components/catalyst-ui/lo-fi/components/productOverview.tsx +62 -0
- package/dist/components/catalyst-ui/lo-fi/components/productsFeatured.tsx +43 -0
- package/dist/components/catalyst-ui/lo-fi/components/progress.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/components/promo.tsx +33 -0
- package/dist/components/catalyst-ui/lo-fi/components/radioGroup.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/reportIssue.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/components/review.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/components/reviews.tsx +60 -0
- package/dist/components/catalyst-ui/lo-fi/components/sales-lofi.tsx +257 -0
- package/dist/components/catalyst-ui/lo-fi/components/scaffolding.tsx +46 -0
- package/dist/components/catalyst-ui/lo-fi/components/scrollBar.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/components/select.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/settings.tsx +32 -0
- package/dist/components/catalyst-ui/lo-fi/components/shoppingCart.tsx +52 -0
- package/dist/components/catalyst-ui/lo-fi/components/sidebar.tsx +38 -0
- package/dist/components/catalyst-ui/lo-fi/components/skeleton.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/components/slider.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/components/stacked-lofi.tsx +43 -0
- package/dist/components/catalyst-ui/lo-fi/components/stacked.tsx +52 -0
- package/dist/components/catalyst-ui/lo-fi/components/stats.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/components/storeFront.tsx +65 -0
- package/dist/components/catalyst-ui/lo-fi/components/storeNav.tsx +37 -0
- package/dist/components/catalyst-ui/lo-fi/components/switch.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/components/tabs.tsx +29 -0
- package/dist/components/catalyst-ui/lo-fi/components/tailwind.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/components/team.tsx +27 -0
- package/dist/components/catalyst-ui/lo-fi/components/team2.tsx +27 -0
- package/dist/components/catalyst-ui/lo-fi/components/templatePage.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/components/testimonial.tsx +36 -0
- package/dist/components/catalyst-ui/lo-fi/components/testtimonial.tsx +35 -0
- package/dist/components/catalyst-ui/lo-fi/components/textarea.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/components/toast.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/components/toggle.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/components/tooltip.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/components/useHydrated.tsx +38 -0
- package/dist/components/catalyst-ui/lo-fi/index.ts +528 -0
- package/dist/components/catalyst-ui/lo-fi/utils/atom.tsx +30 -0
- package/dist/components/catalyst-ui/lo-fi/utils/component.tsx +28 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AIPromptLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AboutLoFi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AccessLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AccountLoFi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ActivityGoalLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AiChatLoFi.tsx +29 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AlertV1LoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AspectRatioLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AuthProviderLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AuthSystemLoFi.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/v2/AutoCompleteV2LoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BLoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BankLoFi.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BarcodeLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BasicAuthMiddlewareLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BatcherMiddlewareLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BlocksLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BlogEditorLoFi.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BlogListLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BlogSidebarLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/BoxLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CORSMiddlewareLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CSSLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CalendarLoFi.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CallOutLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CarServiceLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CardsLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CarouselHeroLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CategoriesNavigationLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CategoryFiltersSectionCenteredLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CategoryFiltersSectionLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CategoryFiltersSidebarLoFi.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ChatBubbleLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ChatLoFi.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CheckListLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CheckboxMultistateLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CheckboxTristateLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CheckoutCancelLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CheckoutSuccessLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CheckoutVariousLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ClientOnlyLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CnLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CodeSectionLoFi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CollapsesToIconsLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CollapsibleFileTreeLoFi.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ConfigSectionLoFi.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ConfirmPopupLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ContactLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ContainerLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ContextStorageMiddlewareLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CookieSettingsLoFi.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CoreLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/CreateAccountLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DashboardLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DashboardSidebarLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DebouncedFetcherAndSubmitLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DebouncedInputLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DefaultStyledLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DeferredContentLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DelegateAnchorsToRemixLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DetailLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DeviceMockupLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DiffLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DisplayCodeLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DockLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DragAndDropLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DrawerLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DrawingLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DrawingV2LoFi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/v2/DropZoneLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ECommerceLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/EmbedLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/EmblaCarouselLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/EmblaCarouselSnapLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/EnhancedChartLoFi.tsx +29 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ErrorLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ExerciseMinutesLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FABLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FaqLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FeatureSectionLoFi.tsx +29 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FeedLoFi.tsx +28 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FileManagerLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FilterComboboxLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FilterDrawerLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FilterTanStackTableLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FixedMarkerLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FlexboxGridLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FloatingSidebarWithSubmenusLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ForLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ForgotPasswordLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FormsLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/Four04LoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FunctionalLeftRightSidebarLoFi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FuseSearchInputLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FuzzyFilterLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/FuzzySortLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/GalleriaLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/GnattChartLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/GridLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/H3LoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/H4LoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/H5LoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/HeaderNavLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/HelpLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/HighlightLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/HighlightV1LoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/HomeLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/HoneypotMiddlewareLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/IBLoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ILoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ImageLoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ImageSectionLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/InADialogLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/IncIdLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/IncentivesCardLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/IndicatorLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/InsetSidebarSecondaryNavLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/InsufficientPermissionsLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/InvoiceLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/JWKAuthMiddlewareLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/LandingLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/LayoutLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/LoadErrorPageLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/LoadingLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/LoadingOverlayLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/LoadingPageLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/LoginLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MailLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MarketingLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MegaMenuLoFi.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MenuLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MessageLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MeterLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MobileNavLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ModalIntegrationsLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ModalV1LoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/MusicLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NavMainLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NavProjectsLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NavTreeViewLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NavUserLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NestedComboboxLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NestedCommandDialogLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NestedCommandLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NotFoundLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NoteSectionLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/NotificationLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/OnTheRightLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/OrderListLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/OrderSummaryLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/OrderedListLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/OtpLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/OverlayPanelLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PDFGeneratorLoFi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PMLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PageHeaderLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PageHeadingsSectionLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PaginationButtonLoFi.tsx +8 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PaginationWrapperLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PanelLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PanelMenuLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PasswordInputLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PaymentFormLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PaymentMethodLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PaymentsLoFi.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PdfSignatureLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PdfViewerLoFi.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PlaceholderCodeLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PlaygroundLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PopconfirmLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PrefetchAnchorsLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/PrismaClientExtensionLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProductCategoryLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProductComparisonLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProductDetailsLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProductEditLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProductPricingLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProductsLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProfileCreateLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProfileListLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProfileLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProgressLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ProseLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/QRCodeLoFi.tsx +43 -0
- package/dist/components/catalyst-ui/lo-fi/v2/QaDiscussionLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/QaForumLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RailLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RatingLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ReactHooksDocsLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ReceiptLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RedirectBadRequestsLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RegisterLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RemixAuthLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RemixLinkLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ReportIssueLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RequestIDMiddlewareLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ResetPasswordLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ResponsiveLinkLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/RightSidebarLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SaasLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SchedulerLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ScrolltopLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SecFetchParserLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SecureHeadersMiddlewareLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ServerTimingMiddlewareLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ServiceRepairFormLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SessionLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SettingsLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ShareLoFi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/v2/Sidebar24LoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarAgnosticLoFi.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarDetailsLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarInAPopoverLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarNavLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarReactRouterLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarStylisticDefaultLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarStylisticDefaultWRightLoFi.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SidebarWithSubmenusLoFi.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SignUpLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SignatureLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SingletonMiddlewareLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SiteHeaderLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SmallTableLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SpeedDialLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SpinLoFi.tsx +7 -0
- package/dist/components/catalyst-ui/lo-fi/v2/SpinnerLoFi.tsx +9 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StackLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StackedListsLoFi.tsx +50 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StackedLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StateChangeLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StatsLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StatusLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StepsLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StoreFrontLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StoreNavSectionLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StripeLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/StyleProviderLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TSTableLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TSTableV1LoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TSTableV2LoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TabViewLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TableLoFi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TagLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TailwindcssTxtLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TaskListLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TaskboardLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TasksLoFi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TeamMembersLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TerminalLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TextEditorLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ThemeSelectorLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TicketsLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TimelineLoFi.tsx +33 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TimelineV1LoFi.tsx +36 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TitleSectionLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ToDoLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ToggleClassLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/ToolbarLoFi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TourLoFi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TransitionLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TransitionablePortalLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TravelLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/TreeViewLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UnderConstructionLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UsageSectionLoFi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UsageSectionNoDashLoFi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseAsyncLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseClickOutsideLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseCopyToClipboardLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseCounterLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseDebounceLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseDebouncedFuseSearchLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseEventListenerLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseExportMarkdownLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseExportTsxLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseExternalScriptsLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseFaviconLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseFetchLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseFocusLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseFocusWithinLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseFormLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseFuseSearchLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseFuzzySearchLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseGlobalLoadingStateLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseGlobalNavigationStateLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseGlobalPendingStateLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseGlobalSubmittingStateLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseHoverLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseIntersectionObserverLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseIntervalLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseKeyPressLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseKeyboardLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseLocalStorageLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseLocalesLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseLongPressLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseMediaQueryLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseMobileLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseMountEffectLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseMountedLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseMoveLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseMutationObserverLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseOnlineStatusLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseOverlayListenerLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseOverlayScrollListenerLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UsePressLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UsePreviousLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseResizeListenerLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseScrollPositionLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseSessionStorageLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseShouldHydrateLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseSlideInLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseStreamLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseThrottleLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseTimeoutLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseToggleLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseUnmountEffectLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseUpdateEffectLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UseWindowSizeLoFi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UserBasedAccessRulesLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UserLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/UserOnboardingLoFi.tsx +12 -0
- package/dist/components/catalyst-ui/lo-fi/v2/VerificationLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/VirtualizerLoFi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WatermarkLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithACalendarLoFi.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithAShoppingCartLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithATreeViewLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithCollapsibleNestedSidebarsLoFi.tsx +22 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithCollapsibleSectionsLoFi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithCollapsibleSubmenusLoFi.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithCookieMiddlewareLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithInitialLoadingStateLoFi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithLoadingNavStateChangesLoFi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithNavigationGroupedBySectionLoFi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/WithSubmenusAsDropdownsLoFi.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/v2/action-bar-lofi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/block-quote-lofi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/calendar-lofi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/cascade-tree-lofi.tsx +34 -0
- package/dist/components/catalyst-ui/lo-fi/v2/cascader-lofi.tsx +27 -0
- package/dist/components/catalyst-ui/lo-fi/v2/changelog-lofi.tsx +14 -0
- package/dist/components/catalyst-ui/lo-fi/v2/check-tree-lofi.tsx +27 -0
- package/dist/components/catalyst-ui/lo-fi/v2/check-tree-picker-lofi.tsx +28 -0
- package/dist/components/catalyst-ui/lo-fi/v2/checkbox-card-v1-lofi.tsx +29 -0
- package/dist/components/catalyst-ui/lo-fi/v2/checkbox-v1-lofi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/client-only-mermaid-lofi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/v2/color-picker-lofi.tsx +24 -0
- package/dist/components/catalyst-ui/lo-fi/v2/combobox-v1-lofi.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/v2/credit-card-input-lofi.tsx +32 -0
- package/dist/components/catalyst-ui/lo-fi/v2/floating-label-lofi.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/v2/form-wizard-lofi.tsx +26 -0
- package/dist/components/catalyst-ui/lo-fi/v2/hero-lofi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/heroV2-lofi.tsx +17 -0
- package/dist/components/catalyst-ui/lo-fi/v2/inline-edit-lofi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/inplaceLoFi.tsx +10 -0
- package/dist/components/catalyst-ui/lo-fi/v2/input-mask-lofi.tsx +33 -0
- package/dist/components/catalyst-ui/lo-fi/v2/install-code-array-section-lofi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/install-code-section-lofi.tsx +16 -0
- package/dist/components/catalyst-ui/lo-fi/v2/install-github-section-lofi.tsx +11 -0
- package/dist/components/catalyst-ui/lo-fi/v2/json-input-lofi.tsx +29 -0
- package/dist/components/catalyst-ui/lo-fi/v2/multi-cascade-tree-lofi.tsx +40 -0
- package/dist/components/catalyst-ui/lo-fi/v2/multi-cascader-lofi.tsx +28 -0
- package/dist/components/catalyst-ui/lo-fi/v2/multi-combobox-lofi.tsx +31 -0
- package/dist/components/catalyst-ui/lo-fi/v2/nav-shopping-cart-lofi.tsx +13 -0
- package/dist/components/catalyst-ui/lo-fi/v2/pin-input-lofi.tsx +23 -0
- package/dist/components/catalyst-ui/lo-fi/v2/select-button-lofi.tsx +20 -0
- package/dist/components/catalyst-ui/lo-fi/v2/sidebar28-lofi.tsx +15 -0
- package/dist/components/catalyst-ui/lo-fi/v2/step-form-wizard-lofi.tsx +34 -0
- package/dist/components/catalyst-ui/lo-fi/v2/tags-input-lofi.tsx +21 -0
- package/dist/components/catalyst-ui/lo-fi/v2/textarea-lofi.tsx +18 -0
- package/dist/components/catalyst-ui/lo-fi/v2/textarea-v2-lofi.tsx +19 -0
- package/dist/components/catalyst-ui/lo-fi/v2/transfer-list-lofi.tsx +40 -0
- package/dist/components/catalyst-ui/lo-fi/v2/tri-state-checkbox-lofi.tsx +25 -0
- package/dist/components/catalyst-ui/lo-fi/v2/tsxSection-lofi.tsx +20 -0
- package/dist/components/catalyst-ui/marketing/demo/demos.tsx +0 -0
- package/dist/components/catalyst-ui/marketing/demo/sectionHeadings-demo.tsx +103 -0
- package/dist/components/catalyst-ui/marketing/elements/banner-with-effect.tsx +0 -0
- package/dist/components/catalyst-ui/marketing/elements/flyoutMenu.tsx +318 -0
- package/dist/components/catalyst-ui/marketing/index.ts +41 -0
- package/dist/components/catalyst-ui/marketing/sections/animated-testimonials.tsx +169 -0
- package/dist/components/catalyst-ui/marketing/sections/bentoGrid.tsx +300 -0
- package/dist/components/catalyst-ui/marketing/sections/blog.tsx +469 -0
- package/dist/components/catalyst-ui/marketing/sections/blogEditor.tsx +358 -0
- package/dist/components/catalyst-ui/marketing/sections/blogPost.tsx +208 -0
- package/dist/components/catalyst-ui/marketing/sections/carousel.tsx +928 -0
- package/dist/components/catalyst-ui/marketing/sections/cta.tsx +379 -0
- package/dist/components/catalyst-ui/marketing/sections/faq.tsx +147 -0
- package/dist/components/catalyst-ui/marketing/sections/feature-carousel.tsx +505 -0
- package/dist/components/catalyst-ui/marketing/sections/feature-section.tsx +83 -0
- package/dist/components/catalyst-ui/marketing/sections/feature-showcase.tsx +250 -0
- package/dist/components/catalyst-ui/marketing/sections/feature.tsx +279 -0
- package/dist/components/catalyst-ui/marketing/sections/footer.tsx +390 -0
- package/dist/components/catalyst-ui/marketing/sections/header-1.tsx +450 -0
- package/dist/components/catalyst-ui/marketing/sections/header.tsx +414 -0
- package/dist/components/catalyst-ui/marketing/sections/hero-2.tsx +55 -0
- package/dist/components/catalyst-ui/marketing/sections/hero-3.tsx +12 -0
- package/dist/components/catalyst-ui/marketing/sections/hero-section.tsx +17 -0
- package/dist/components/catalyst-ui/marketing/sections/hero.tsx +169 -0
- package/dist/components/catalyst-ui/marketing/sections/image-section.tsx +36 -0
- package/dist/components/catalyst-ui/marketing/sections/index.ts +33 -0
- package/dist/components/catalyst-ui/marketing/sections/logoClouds.tsx +295 -0
- package/dist/components/catalyst-ui/marketing/sections/newsLetter.tsx +137 -0
- package/dist/components/catalyst-ui/marketing/sections/page-header-section.tsx +127 -0
- package/dist/components/catalyst-ui/marketing/sections/pricing-carousel-2.tsx +282 -0
- package/dist/components/catalyst-ui/marketing/sections/pricing-carousel.tsx +555 -0
- package/dist/components/catalyst-ui/marketing/sections/pricing-single-card.tsx +154 -0
- package/dist/components/catalyst-ui/marketing/sections/pricing.tsx +790 -0
- package/dist/components/catalyst-ui/marketing/sections/testimonial-carousel.tsx +499 -0
- package/dist/components/catalyst-ui/marketing/sections/testimonial.tsx +204 -0
- package/dist/components/catalyst-ui/marketing/sections/title-section.tsx +57 -0
- package/dist/components/catalyst-ui/media/3d-marquee.tsx +144 -0
- package/dist/components/catalyst-ui/media/avatar-circles.tsx +78 -0
- package/dist/components/catalyst-ui/media/blur-fade.tsx +106 -0
- package/dist/components/catalyst-ui/media/carousel-1.tsx +926 -0
- package/dist/components/catalyst-ui/media/carousel-2.tsx +198 -0
- package/dist/components/catalyst-ui/media/carousel-hero.tsx +286 -0
- package/dist/components/catalyst-ui/media/carousel-simple.tsx +244 -0
- package/dist/components/catalyst-ui/media/color-palette-card.tsx +85 -0
- package/dist/components/catalyst-ui/media/cropper.tsx +68 -0
- package/dist/components/catalyst-ui/media/embla-carousel-arrow-buttons.tsx +117 -0
- package/dist/components/catalyst-ui/media/embla-carousel-snap.tsx +103 -0
- package/dist/components/catalyst-ui/media/galleria.tsx +316 -0
- package/dist/components/catalyst-ui/media/globe.tsx +138 -0
- package/dist/components/catalyst-ui/media/google-maps-component.tsx +540 -0
- package/dist/components/catalyst-ui/media/icon-cloud.tsx +312 -0
- package/dist/components/catalyst-ui/media/image-comparison.tsx +251 -0
- package/dist/components/catalyst-ui/media/image-crop.tsx +366 -0
- package/dist/components/catalyst-ui/media/image-zoom.tsx +51 -0
- package/dist/components/catalyst-ui/media/index.ts +32 -0
- package/dist/components/catalyst-ui/media/infinite-scroll.tsx +303 -0
- package/dist/components/catalyst-ui/media/infinite-slider.tsx +108 -0
- package/dist/components/catalyst-ui/media/interactive-icon-cloud.tsx +100 -0
- package/dist/components/catalyst-ui/media/logo.tsx +100 -0
- package/dist/components/catalyst-ui/media/marquee.tsx +199 -0
- package/dist/components/catalyst-ui/media/marquee1.tsx +114 -0
- package/dist/components/catalyst-ui/media/parallax-scroll.tsx +119 -0
- package/dist/components/catalyst-ui/media/pixel-image.tsx +153 -0
- package/dist/components/catalyst-ui/media/video-player.tsx +94 -0
- package/dist/components/catalyst-ui/motions/animated-number.tsx +252 -0
- package/dist/components/catalyst-ui/motions/bg-media.tsx +122 -0
- package/dist/components/catalyst-ui/motions/border-beam.tsx +40 -0
- package/dist/components/catalyst-ui/motions/circle-menu.tsx +320 -0
- package/dist/components/catalyst-ui/motions/color-picker.tsx +490 -0
- package/dist/components/catalyst-ui/motions/color-wheel.tsx +81 -0
- package/dist/components/catalyst-ui/motions/direction-aware-tabs.tsx +568 -0
- package/dist/components/catalyst-ui/motions/dynamic-island.tsx +733 -0
- package/dist/components/catalyst-ui/motions/expandable-card.tsx +941 -0
- package/dist/components/catalyst-ui/motions/expandable-screen.tsx +455 -0
- package/dist/components/catalyst-ui/motions/floating-panel.tsx +1115 -0
- package/dist/components/catalyst-ui/motions/gradient-heading.tsx +116 -0
- package/dist/components/catalyst-ui/motions/index.ts +93 -0
- package/dist/components/catalyst-ui/motions/intro-disclosure.tsx +1345 -0
- package/dist/components/catalyst-ui/motions/light-board.tsx +888 -0
- package/dist/components/catalyst-ui/motions/loading-carousel.tsx +517 -0
- package/dist/components/catalyst-ui/motions/logo-carousel.tsx +586 -0
- package/dist/components/catalyst-ui/motions/morph-surface.tsx +779 -0
- package/dist/components/catalyst-ui/motions/motion-accordian.tsx +206 -0
- package/dist/components/catalyst-ui/motions/motion-alert-dialog.tsx +356 -0
- package/dist/components/catalyst-ui/motions/motion-avatar.tsx +384 -0
- package/dist/components/catalyst-ui/motions/motion-beam.tsx +674 -0
- package/dist/components/catalyst-ui/motions/motion-bento.tsx +262 -0
- package/dist/components/catalyst-ui/motions/motion-bento1.tsx +307 -0
- package/dist/components/catalyst-ui/motions/motion-button.tsx +107 -0
- package/dist/components/catalyst-ui/motions/motion-calendar.tsx +213 -0
- package/dist/components/catalyst-ui/motions/motion-card.tsx +1609 -0
- package/dist/components/catalyst-ui/motions/motion-card1.tsx +825 -0
- package/dist/components/catalyst-ui/motions/motion-card2.tsx +289 -0
- package/dist/components/catalyst-ui/motions/motion-card3.tsx +190 -0
- package/dist/components/catalyst-ui/motions/motion-carousel.tsx +517 -0
- package/dist/components/catalyst-ui/motions/motion-checkbox.tsx +77 -0
- package/dist/components/catalyst-ui/motions/motion-choicebox.tsx +360 -0
- package/dist/components/catalyst-ui/motions/motion-combobox.tsx +242 -0
- package/dist/components/catalyst-ui/motions/motion-command.tsx +328 -0
- package/dist/components/catalyst-ui/motions/motion-context-menu.tsx +391 -0
- package/dist/components/catalyst-ui/motions/motion-date-picker.tsx +162 -0
- package/dist/components/catalyst-ui/motions/motion-dialog.tsx +350 -0
- package/dist/components/catalyst-ui/motions/motion-drawer.tsx +1778 -0
- package/dist/components/catalyst-ui/motions/motion-drawer1.tsx +209 -0
- package/dist/components/catalyst-ui/motions/motion-dropdown-menu.tsx +429 -0
- package/dist/components/catalyst-ui/motions/motion-dropdown1.tsx +572 -0
- package/dist/components/catalyst-ui/motions/motion-feature-carousel.tsx +771 -0
- package/dist/components/catalyst-ui/motions/motion-file-upload.tsx +596 -0
- package/dist/components/catalyst-ui/motions/motion-group.tsx +194 -0
- package/dist/components/catalyst-ui/motions/motion-highlight.tsx +550 -0
- package/dist/components/catalyst-ui/motions/motion-highlight2.tsx +590 -0
- package/dist/components/catalyst-ui/motions/motion-hover-card.tsx +207 -0
- package/dist/components/catalyst-ui/motions/motion-images.tsx +53 -0
- package/dist/components/catalyst-ui/motions/motion-input.tsx +51 -0
- package/dist/components/catalyst-ui/motions/motion-list.tsx +170 -0
- package/dist/components/catalyst-ui/motions/motion-logo-carosel.tsx +668 -0
- package/dist/components/catalyst-ui/motions/motion-map.tsx +372 -0
- package/dist/components/catalyst-ui/motions/motion-navbar.tsx +69 -0
- package/dist/components/catalyst-ui/motions/motion-navigation-menu.tsx +302 -0
- package/dist/components/catalyst-ui/motions/motion-panel.tsx +338 -0
- package/dist/components/catalyst-ui/motions/motion-popover.tsx +281 -0
- package/dist/components/catalyst-ui/motions/motion-radio-card.tsx +77 -0
- package/dist/components/catalyst-ui/motions/motion-radio-group.tsx +54 -0
- package/dist/components/catalyst-ui/motions/motion-rating.tsx +182 -0
- package/dist/components/catalyst-ui/motions/motion-screen.tsx +441 -0
- package/dist/components/catalyst-ui/motions/motion-search-bar.tsx +1013 -0
- package/dist/components/catalyst-ui/motions/motion-section.tsx +270 -0
- package/dist/components/catalyst-ui/motions/motion-select.tsx +306 -0
- package/dist/components/catalyst-ui/motions/motion-spotlight.tsx +217 -0
- package/dist/components/catalyst-ui/motions/motion-switch.tsx +83 -0
- package/dist/components/catalyst-ui/motions/motion-tabs.tsx +554 -0
- package/dist/components/catalyst-ui/motions/motion-tabs2.tsx +257 -0
- package/dist/components/catalyst-ui/motions/motion-testimonials.tsx +282 -0
- package/dist/components/catalyst-ui/motions/motion-toast.tsx +398 -0
- package/dist/components/catalyst-ui/motions/motion-toolbar-tabs.tsx +519 -0
- package/dist/components/catalyst-ui/motions/motion-toolbar.tsx +1113 -0
- package/dist/components/catalyst-ui/motions/motion-tooltip.tsx +162 -0
- package/dist/components/catalyst-ui/motions/motion-tooltip2.tsx +82 -0
- package/dist/components/catalyst-ui/motions/motion-video-player.tsx +1056 -0
- package/dist/components/catalyst-ui/motions/motions-input.tsx +51 -0
- package/dist/components/catalyst-ui/motions/popover-form.tsx +469 -0
- package/dist/components/catalyst-ui/motions/profile-dropdown.tsx +237 -0
- package/dist/components/catalyst-ui/motions/radial-menu.tsx +303 -0
- package/dist/components/catalyst-ui/motions/roladex.tsx +194 -0
- package/dist/components/catalyst-ui/motions/roladex1.tsx +166 -0
- package/dist/components/catalyst-ui/motions/shift-card.tsx +302 -0
- package/dist/components/catalyst-ui/motions/side-panel.tsx +352 -0
- package/dist/components/catalyst-ui/motions/smooth-drawer.tsx +213 -0
- package/dist/components/catalyst-ui/motions/smooth-popover.tsx +491 -0
- package/dist/components/catalyst-ui/motions/sortable-list.tsx +712 -0
- package/dist/components/catalyst-ui/motions/stripe.tsx +261 -0
- package/dist/components/catalyst-ui/motions/texture-button.tsx +217 -0
- package/dist/components/catalyst-ui/motions/timer.tsx +286 -0
- package/dist/components/catalyst-ui/motions/toolbar-expandable.tsx +1138 -0
- package/dist/components/catalyst-ui/motions/youtube-player.tsx +614 -0
- package/dist/components/catalyst-ui/overlays/animated-modal.tsx +212 -0
- package/dist/components/catalyst-ui/overlays/animated-tooltip.tsx +99 -0
- package/dist/components/catalyst-ui/overlays/confirm-popup.tsx +219 -0
- package/dist/components/catalyst-ui/overlays/dialog-stack.tsx +558 -0
- package/dist/components/catalyst-ui/overlays/index.ts +19 -0
- package/dist/components/catalyst-ui/overlays/loading-overlay.tsx +324 -0
- package/dist/components/catalyst-ui/overlays/modal-integrations-1.tsx +300 -0
- package/dist/components/catalyst-ui/overlays/modal-integrations.tsx +301 -0
- package/dist/components/catalyst-ui/overlays/overlay-panel.tsx +233 -0
- package/dist/components/catalyst-ui/overlays/popconfirm.tsx +721 -0
- package/dist/components/catalyst-ui/overlays/sidebar-props.tsx +492 -0
- package/dist/components/catalyst-ui/overlays/sidebar.tsx +2208 -0
- package/dist/components/catalyst-ui/overlays/sidebarMenuItemLoading.tsx +124 -0
- package/dist/components/catalyst-ui/overlays/texture-card.tsx +309 -0
- package/dist/components/catalyst-ui/overlays/transitionable-portal.tsx +230 -0
- package/dist/components/catalyst-ui/pdf/generate_custom_pdf.tsx +40 -0
- package/dist/components/catalyst-ui/pdf/generate_pdf.tsx +196 -0
- package/dist/components/catalyst-ui/pdf/index.ts +12 -0
- package/dist/components/catalyst-ui/pdf/pdf.tsx +32 -0
- package/dist/components/catalyst-ui/pdf/pdf_generator.ts +141 -0
- package/dist/components/catalyst-ui/pdf/pdf_sender.$dealerId.$documentId.$dept.tsx +1260 -0
- package/dist/components/catalyst-ui/pdf/pdf_signer.$id.tsx +1438 -0
- package/dist/components/catalyst-ui/pdf/print_pdf.tsx +15905 -0
- package/dist/components/catalyst-ui/pdf/templateBuilder.tsx +1590 -0
- package/dist/components/catalyst-ui/pdf/test.tsx +53 -0
- package/dist/components/catalyst-ui/pos/index.ts +5 -0
- package/dist/components/catalyst-ui/pos/tools/barcodeScanner.tsx +160 -0
- package/dist/components/catalyst-ui/pos/tools/cashDrawerWizard.tsx +1403 -0
- package/dist/components/catalyst-ui/pos/tools/scan.mp4 +0 -0
- package/dist/components/catalyst-ui/primitives/alert.tsx +103 -0
- package/dist/components/catalyst-ui/primitives/annotated.tsx +133 -0
- package/dist/components/catalyst-ui/primitives/button-group.tsx +89 -0
- package/dist/components/catalyst-ui/primitives/checkbox-tree.tsx +175 -0
- package/dist/components/catalyst-ui/primitives/combobox.tsx +93 -0
- package/dist/components/catalyst-ui/primitives/description-list.tsx +88 -0
- package/dist/components/catalyst-ui/primitives/index.ts +59 -0
- package/dist/components/catalyst-ui/primitives/input-group.tsx +186 -0
- package/dist/components/catalyst-ui/primitives/menubar.tsx +273 -0
- package/dist/components/catalyst-ui/primitives/progress-bar.tsx +114 -0
- package/dist/components/catalyst-ui/primitives/radio-card.tsx +167 -0
- package/dist/components/catalyst-ui/primitives/scroll-area.tsx +56 -0
- package/dist/components/catalyst-ui/primitives/table.tsx +329 -0
- package/dist/components/catalyst-ui/prompt/ai-input-search.tsx +288 -0
- package/dist/components/catalyst-ui/prompt/ai-loading-state.tsx +313 -0
- package/dist/components/catalyst-ui/prompt/ai-prompt-input.tsx +305 -0
- package/dist/components/catalyst-ui/prompt/ai-voice.tsx +241 -0
- package/dist/components/catalyst-ui/prompt/chain-of-thought.tsx +146 -0
- package/dist/components/catalyst-ui/prompt/chatbot.tsx +201 -0
- package/dist/components/catalyst-ui/prompt/code-block-examples.tsx +227 -0
- package/dist/components/catalyst-ui/prompt/code-block.tsx +92 -0
- package/dist/components/catalyst-ui/prompt/conversation-actions.tsx +150 -0
- package/dist/components/catalyst-ui/prompt/conversation-avatars.tsx +92 -0
- package/dist/components/catalyst-ui/prompt/conversation-prompt-input.tsx +256 -0
- package/dist/components/catalyst-ui/prompt/conversation-scroll-bottom.tsx +121 -0
- package/dist/components/catalyst-ui/prompt/file-upload.tsx +310 -0
- package/dist/components/catalyst-ui/prompt/full-chat-app.tsx +759 -0
- package/dist/components/catalyst-ui/prompt/full-conversation.tsx +76 -0
- package/dist/components/catalyst-ui/prompt/image.tsx +94 -0
- package/dist/components/catalyst-ui/prompt/index.ts +46 -0
- package/dist/components/catalyst-ui/prompt/input-byok.tsx +70 -0
- package/dist/components/catalyst-ui/prompt/jsx-preview.tsx +81 -0
- package/dist/components/catalyst-ui/prompt/loader.tsx +497 -0
- package/dist/components/catalyst-ui/prompt/markdown.tsx +117 -0
- package/dist/components/catalyst-ui/prompt/pre-prompts.tsx +59 -0
- package/dist/components/catalyst-ui/prompt/prompt-autocomplete-highlight.tsx +81 -0
- package/dist/components/catalyst-ui/prompt/prompt-chat-container-basic.tsx +98 -0
- package/dist/components/catalyst-ui/prompt/prompt-chat-container-streaming.tsx +132 -0
- package/dist/components/catalyst-ui/prompt/prompt-chat-container.tsx +65 -0
- package/dist/components/catalyst-ui/prompt/prompt-feedback-bar.tsx +79 -0
- package/dist/components/catalyst-ui/prompt/prompt-input-actions.tsx +100 -0
- package/dist/components/catalyst-ui/prompt/prompt-input-suggestions.tsx +150 -0
- package/dist/components/catalyst-ui/prompt/prompt-input.tsx +187 -0
- package/dist/components/catalyst-ui/prompt/prompt-message.tsx +109 -0
- package/dist/components/catalyst-ui/prompt/prompt-suggestion.tsx +116 -0
- package/dist/components/catalyst-ui/prompt/providers.tsx +540 -0
- package/dist/components/catalyst-ui/prompt/reasoning.tsx +168 -0
- package/dist/components/catalyst-ui/prompt/response-stream.tsx +392 -0
- package/dist/components/catalyst-ui/prompt/scroll-button.tsx +39 -0
- package/dist/components/catalyst-ui/prompt/sidebar-chat-history.tsx +242 -0
- package/dist/components/catalyst-ui/prompt/snippets.tsx +1378 -0
- package/dist/components/catalyst-ui/prompt/source.tsx +127 -0
- package/dist/components/catalyst-ui/prompt/steps.tsx +111 -0
- package/dist/components/catalyst-ui/prompt/system-message.tsx +131 -0
- package/dist/components/catalyst-ui/prompt/tool-calling.tsx +236 -0
- package/dist/components/catalyst-ui/prompt/tool.tsx +204 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/NotificationMenu.tsx +120 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/Tree.tsx +53 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/active-toc.tsx +213 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/analog-clock.tsx +211 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/app-sidebar.tsx +339 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/blog-sidebar.tsx +39 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/calendars.tsx +58 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/date-picker.tsx +12 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/dev-list-sidebar.tsx +195 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/digital-clock.tsx +343 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/index.ts +41 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/loading-sidebar.tsx +42 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-actions.tsx +122 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-appointments.tsx +429 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-auto-search.tsx +314 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-favorites.tsx +71 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-header.tsx +409 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-main.tsx +1583 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-messenger.tsx +440 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-projects.tsx +66 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-quick-actions.tsx +366 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-secondary.tsx +33 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-shopping-cart.tsx +231 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-shopping-cartCatlstui.tsx +196 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-tree-view.tsx +18 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-user.tsx +87 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/nav-workspaces.tsx +69 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/navigation-theme-selector.tsx +143 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/opt-in-form.tsx +29 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/search-command.tsx +32 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/search-form.tsx +21 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/settings-menu.tsx +35 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/sidebar-dialog.tsx +82 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/site-header.tsx +40 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/team-switcher.tsx +68 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/toc.tsx +301 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/user-menu.tsx +77 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/version-switcher.tsx +49 -0
- package/dist/components/catalyst-ui/sidebars/nav-components/wishlist.tsx +292 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-01/AppSidebar.tsx +36 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-01/SearchForm.tsx +24 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-01/VersionSwitcher.tsx +49 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-01/index.tsx +270 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-01/sidebar-01.tsx +178 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-02/AppSidebar.tsx +56 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-02/SearchForm.tsx +24 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-02/VersionSwitcher.tsx +44 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-02/index.tsx +301 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-02/sidebar-02.tsx +193 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-03/AppSidebar.tsx +54 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-03/index.tsx +238 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-03/sidebar-03.tsx +189 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-04/AppSidebar.tsx +58 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-04/index.tsx +249 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-04/sidebar-04.tsx +201 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-05/AppSidebar.tsx +70 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-05/SearchForm.tsx +25 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-05/index.tsx +275 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-05/sidebar-05.tsx +191 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-06/AppSidebar.tsx +43 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-06/NavMain.tsx +56 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-06/SidebarOptInForm.tsx +34 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-06/index.tsx +290 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-06/sidebar-06.tsx +183 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-07/AppSidebar.tsx +28 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-07/NavMain.tsx +57 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-07/NavProjects.tsx +67 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-07/NavUser.tsx +86 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-07/TeamSwitcher.tsx +74 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-07/index.tsx +474 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-07/sidebar-07.tsx +189 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-08/AppSidebar.tsx +41 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-08/NavMain.tsx +62 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-08/NavProjects.tsx +68 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-08/NavSecondary.tsx +35 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-08/NavUser.tsx +87 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-08/index.tsx +446 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-08/sidebar-08.tsx +181 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-09/AppSidebar.tsx +213 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-09/NavUser.tsx +88 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-09/index.tsx +468 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-09/sidebar-09.tsx +177 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/AppSidebar.tsx +28 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/NavActions.tsx +59 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/NavFavorites.tsx +74 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/NavMain.tsx +31 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/NavSecondary.tsx +37 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/NavWorkspaces.tsx +70 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/TeamSwitcher.tsx +70 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/index.tsx +675 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-10/sidebar-10.tsx +348 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-11/AppSidebar.tsx +46 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-11/Tree.tsx +49 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-11/index.tsx +175 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-11/sidebar-11.tsx +102 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-12/AppSidebar.tsx +32 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-12/Calendars.tsx +57 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-12/DatePicker.tsx +13 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-12/NavUser.tsx +85 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-12/index.tsx +237 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-12/sidebar-12.tsx +68 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-13/SettingsDialog.tsx +82 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-13/index.tsx +105 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-13/sidebar-13.tsx +24 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-14/AppSidebar.tsx +45 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-14/index.tsx +225 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-14/sidebar-14.tsx +186 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/Calendars.tsx +83 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/DatePicker.tsx +39 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/NavFavorites.tsx +98 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/NavMain.tsx +29 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/NavSecondary.tsx +36 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/NavUser.tsx +89 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/NavWorkspaces.tsx +95 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/SidebarLeft.tsx +28 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/SidebarRight.tsx +38 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/TeamSwitcher.tsx +89 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/index.tsx +776 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-15/sidebar-15.tsx +324 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-16/AppSidebar.tsx +50 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-16/NavUser.tsx +100 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-16/SearchForm.tsx +35 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-16/SiteHeader.tsx +51 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-16/index.tsx +424 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-16/sidebar-16.tsx +188 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-17/AppSidebar.tsx +154 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-17/ShoppingCartSidebar.tsx +163 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-17/index.tsx +557 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-17/sidebar-17.tsx +183 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-18/AppSidebar.tsx +32 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-18/NavTreeView.tsx +18 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-18/index.tsx +120 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-18/sidebar-18.tsx +92 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-19/AppSidebar.tsx +230 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-19/index.tsx +264 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-19/sidebar-19.tsx +59 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-20/AppSidebar.tsx +215 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-20/index.tsx +250 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-20/sidebar-20.tsx +44 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-21/AppSidebar.tsx +303 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-21/LoadingSidebar.tsx +41 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-21/index.tsx +412 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-21/sidebar-21.tsx +75 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-22/AppSidebar.tsx +184 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-22/LoadingSidebar.tsx +45 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-22/index.tsx +251 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-22/sidebar-22.tsx +44 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-24/NavUser.tsx +87 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-24/calendars-24.tsx +58 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-24/date-picker-24.tsx +12 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-24/sidebar-24.tsx +39 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/AppSidebar.tsx +24 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/NavMain.tsx +57 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/NavSecondary.tsx +35 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/NavUser.tsx +87 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/SearchForm.tsx +35 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/SiteHeader.tsx +19 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/index.tsx +172 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-25/sidebar-25.tsx +153 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-26/app-sidebar-26.tsx +344 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-26/index.tsx +78 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-26/sidebar-26.tsx +78 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-26/use-mobile-26.ts +19 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-27/sidebar-27.tsx +5 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-28/app-sidebar-28.tsx +285 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-28/index.tsx +31 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-28/nav-user-28.tsx +88 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-28/search-form-28.tsx +23 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-28/sidebar-28.tsx +32 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-28/site-header-28.tsx +29 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-28/use-mobile-28.ts +19 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/ds-left-icon.tsx +101 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/ds-left.tsx +88 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/ds-right-icon.tsx +106 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/ds-right.tsx +87 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/nav-user.tsx +74 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/settings-dialog.tsx +91 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/sidebar-29.tsx +204 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-29/version-switcher.tsx +52 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-30/ds-left.tsx +678 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-30/ds-right.tsx +87 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-30/settings-dialog.tsx +91 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-30/sidebar-30.tsx +604 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-31/ds-left.tsx +431 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-31/message.tsx +28 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-31/nav-auto-search.tsx +310 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-31/nav-search-command.tsx +0 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-31/nav-user.tsx +74 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-31/sidebar-31.tsx +369 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-31/typing-message.tsx +12 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-32/ds-left.tsx +119 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-32/ds-right.tsx +87 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-32/settings-dialog.tsx +91 -0
- package/dist/components/catalyst-ui/sidebars/sidebar-32/sidebar-32.tsx +119 -0
- package/dist/components/catalyst-ui/sidebars/variants/dual-sidebar-agnostic.tsx +3473 -0
- package/dist/components/catalyst-ui/sidebars/variants/sidebar-original.tsx +714 -0
- package/dist/components/catalyst-ui/sidebars/variants/sidebar-right.tsx +823 -0
- package/dist/components/catalyst-ui/sidebars/variants/sidebar-stylistic-default.tsx +591 -0
- package/dist/components/catalyst-ui/table/catalyst-table/column-header-simple.tsx +60 -0
- package/dist/components/catalyst-ui/table/catalyst-table/column-header.tsx +223 -0
- package/dist/components/catalyst-ui/table/catalyst-table/draggable-header.tsx +58 -0
- package/dist/components/catalyst-ui/table/catalyst-table/faceted-filter.tsx +131 -0
- package/dist/components/catalyst-ui/table/catalyst-table/global-search.tsx +0 -0
- package/dist/components/catalyst-ui/table/catalyst-table/row-actions.tsx +49 -0
- package/dist/components/catalyst-ui/table/catalyst-table/table.tsx +421 -0
- package/dist/components/catalyst-ui/table/index.ts +14 -0
- package/dist/components/catalyst-ui/table/props-table.tsx +170 -0
- package/dist/components/catalyst-ui/table/small-table.tsx +719 -0
- package/dist/components/catalyst-ui/table/table-1.tsx +246 -0
- package/dist/components/catalyst-ui/themeStudio/config.tsx +83 -0
- package/dist/components/catalyst-ui/themeStudio/dual-sidebar.tsx +3256 -0
- package/dist/components/catalyst-ui/themeStudio/theme-provider.tsx +269 -0
- package/dist/components/catalyst-ui/themeStudio/use-color-theme.tsx +1614 -0
- package/dist/components/catalyst-ui/themeStudio/use-color-wheel.tsx +904 -0
- package/dist/components/catalyst-ui/tools/Demo/md-render-genie.tsx +273 -0
- package/dist/components/catalyst-ui/tools/GandalfBot.tsx +144 -0
- package/dist/components/catalyst-ui/tools/MdFileTreeExplorer.tsx +287 -0
- package/dist/components/catalyst-ui/tools/accessibility-checker.tsx +370 -0
- package/dist/components/catalyst-ui/tools/animation-builder.tsx +350 -0
- package/dist/components/catalyst-ui/tools/api-response.tsx +318 -0
- package/dist/components/catalyst-ui/tools/chart-playground.tsx +480 -0
- package/dist/components/catalyst-ui/tools/code-carousel.tsx +246 -0
- package/dist/components/catalyst-ui/tools/code-diff.tsx +274 -0
- package/dist/components/catalyst-ui/tools/code-editor.tsx +35 -0
- package/dist/components/catalyst-ui/tools/code-highlight-plugin.tsx +25 -0
- package/dist/components/catalyst-ui/tools/color-converter.tsx +413 -0
- package/dist/components/catalyst-ui/tools/color-wheel.tsx +1012 -0
- package/dist/components/catalyst-ui/tools/components-reel.tsx +135 -0
- package/dist/components/catalyst-ui/tools/convert/converter.tsx +969 -0
- package/dist/components/catalyst-ui/tools/convert/sidebar-converter.tsx +132 -0
- package/dist/components/catalyst-ui/tools/cron-expression-builder.tsx +346 -0
- package/dist/components/catalyst-ui/tools/dual-editor.tsx +240 -0
- package/dist/components/catalyst-ui/tools/editor.tsx +1744 -0
- package/dist/components/catalyst-ui/tools/examples.tsx +1206 -0
- package/dist/components/catalyst-ui/tools/flexbox-sandbox.tsx +327 -0
- package/dist/components/catalyst-ui/tools/function-theater.tsx +93 -0
- package/dist/components/catalyst-ui/tools/grid-sandbox.tsx +464 -0
- package/dist/components/catalyst-ui/tools/icons.tsx +249 -0
- package/dist/components/catalyst-ui/tools/index.ts +59 -0
- package/dist/components/catalyst-ui/tools/json-Formatter.tsx +258 -0
- package/dist/components/catalyst-ui/tools/layout-generator.tsx +237 -0
- package/dist/components/catalyst-ui/tools/lexical-editor.tsx +218 -0
- package/dist/components/catalyst-ui/tools/live-playground.tsx +1458 -0
- package/dist/components/catalyst-ui/tools/lorem-ipsum-generator.tsx +314 -0
- package/dist/components/catalyst-ui/tools/md-badge-builder.tsx +179 -0
- package/dist/components/catalyst-ui/tools/md-cheat-sheet.tsx +5557 -0
- package/dist/components/catalyst-ui/tools/md-editor.tsx +632 -0
- package/dist/components/catalyst-ui/tools/md-render-genie.tsx +1233 -0
- package/dist/components/catalyst-ui/tools/md-renderer.tsx +61 -0
- package/dist/components/catalyst-ui/tools/monaco-sidebar.tsx +7791 -0
- package/dist/components/catalyst-ui/tools/monaco.tsx +492 -0
- package/dist/components/catalyst-ui/tools/motion-sandbox.tsx +0 -0
- package/dist/components/catalyst-ui/tools/qr-code-generator.tsx +432 -0
- package/dist/components/catalyst-ui/tools/regex-tester.tsx +508 -0
- package/dist/components/catalyst-ui/tools/responsive-preview.tsx +286 -0
- package/dist/components/catalyst-ui/tools/rich-text-editor copy.tsx +1058 -0
- package/dist/components/catalyst-ui/tools/rich-text-editor.tsx +1994 -0
- package/dist/components/catalyst-ui/tools/rte.md +119 -0
- package/dist/components/catalyst-ui/tools/sandbox.tsx +52 -0
- package/dist/components/catalyst-ui/tools/scripts-viewer.tsx +215 -0
- package/dist/components/catalyst-ui/tools/scripts.edit.tsx +3102 -0
- package/dist/components/catalyst-ui/tools/table-plugin.tsx +149 -0
- package/dist/components/catalyst-ui/tools/tailwind-converter.tsx +502 -0
- package/dist/components/catalyst-ui/tools/terminal.tsx +60 -0
- package/dist/components/catalyst-ui/tools/theme-builder.tsx +5071 -0
- package/dist/components/catalyst-ui/tools/toolbar-plugin.tsx +383 -0
- package/dist/components/catalyst-ui/tools/toolbar-plugin1.tsx +861 -0
- package/dist/components/catalyst-ui/tools/typography-tester.tsx +310 -0
- package/dist/components/catalyst-ui/tools/uuid-hash-generator.tsx +534 -0
- package/dist/components/catalyst-ui/tools/vscode-cmds.tsx +3813 -0
- package/dist/components/catalyst-ui/tools/x-viewer.tsx +135 -0
- package/dist/components/catalyst-ui/typography/animated-glitch-text.tsx +188 -0
- package/dist/components/catalyst-ui/typography/b.tsx +23 -0
- package/dist/components/catalyst-ui/typography/blockquote.tsx +35 -0
- package/dist/components/catalyst-ui/typography/check-list.tsx +130 -0
- package/dist/components/catalyst-ui/typography/code.tsx +26 -0
- package/dist/components/catalyst-ui/typography/comic-text.tsx +68 -0
- package/dist/components/catalyst-ui/typography/display-code.tsx +148 -0
- package/dist/components/catalyst-ui/typography/div.tsx +20 -0
- package/dist/components/catalyst-ui/typography/dynamic-text.tsx +149 -0
- package/dist/components/catalyst-ui/typography/encrypted-text.tsx +168 -0
- package/dist/components/catalyst-ui/typography/glitch-text.tsx +174 -0
- package/dist/components/catalyst-ui/typography/h1.tsx +19 -0
- package/dist/components/catalyst-ui/typography/h2.tsx +19 -0
- package/dist/components/catalyst-ui/typography/h3.tsx +19 -0
- package/dist/components/catalyst-ui/typography/h4.tsx +19 -0
- package/dist/components/catalyst-ui/typography/h5.tsx +19 -0
- package/dist/components/catalyst-ui/typography/highlight-1.tsx +133 -0
- package/dist/components/catalyst-ui/typography/highlight.tsx +133 -0
- package/dist/components/catalyst-ui/typography/hyper-text.tsx +135 -0
- package/dist/components/catalyst-ui/typography/i.tsx +23 -0
- package/dist/components/catalyst-ui/typography/ib.tsx +24 -0
- package/dist/components/catalyst-ui/typography/index.ts +49 -0
- package/dist/components/catalyst-ui/typography/line-shadow-text.tsx +44 -0
- package/dist/components/catalyst-ui/typography/matrix-text.tsx +186 -0
- package/dist/components/catalyst-ui/typography/ordered-list.tsx +39 -0
- package/dist/components/catalyst-ui/typography/p.tsx +19 -0
- package/dist/components/catalyst-ui/typography/paragraph-scramble.tsx +122 -0
- package/dist/components/catalyst-ui/typography/pm.tsx +20 -0
- package/dist/components/catalyst-ui/typography/prose.tsx +90 -0
- package/dist/components/catalyst-ui/typography/scroll-text.tsx +181 -0
- package/dist/components/catalyst-ui/typography/shimmer-text.tsx +105 -0
- package/dist/components/catalyst-ui/typography/sliced-text.tsx +131 -0
- package/dist/components/catalyst-ui/typography/swoosh-text.tsx +111 -0
- package/dist/components/catalyst-ui/typography/text-animate.tsx +380 -0
- package/dist/components/catalyst-ui/typography/text-highlighter.tsx +101 -0
- package/dist/components/catalyst-ui/typography/text-morph.tsx +272 -0
- package/dist/components/catalyst-ui/typography/text-reveal.tsx +71 -0
- package/dist/components/catalyst-ui/typography/text-rewind.tsx +90 -0
- package/dist/components/catalyst-ui/typography/text-scramble.tsx +111 -0
- package/dist/components/catalyst-ui/typography/text.tsx +134 -0
- package/dist/components/catalyst-ui/typography/typewriter.tsx +153 -0
- package/dist/components/catalyst-ui/typography/typing-animation.tsx +172 -0
- package/dist/components/catalyst-ui/typography/typography.tsx +67 -0
- package/dist/components/catalyst-ui/typography/unordered-list.tsx +78 -0
- package/dist/components/catalyst-ui/typography/video-text.tsx +86 -0
- package/dist/components/catalyst-ui/typography/word-rotate.tsx +48 -0
- package/dist/components/catalyst-ui/utils/auth-provider.tsx +419 -0
- package/dist/components/catalyst-ui/utils/auth.github.callback.tsx +135 -0
- package/dist/components/catalyst-ui/utils/auth.github.tsx +17 -0
- package/dist/components/catalyst-ui/utils/auth.ts +34 -0
- package/dist/components/catalyst-ui/utils/auth_github.ts +48 -0
- package/dist/components/catalyst-ui/utils/auth_session.ts +70 -0
- package/dist/components/catalyst-ui/utils/batcher.tsx +50 -0
- package/dist/components/catalyst-ui/utils/build-package-json.js +89 -0
- package/dist/components/catalyst-ui/utils/cache-assets.ts +72 -0
- package/dist/components/catalyst-ui/utils/client-only-mermaid.tsx +82 -0
- package/dist/components/catalyst-ui/utils/client-only.tsx +27 -0
- package/dist/components/catalyst-ui/utils/cors.ts +178 -0
- package/dist/components/catalyst-ui/utils/crypto.ts +96 -0
- package/dist/components/catalyst-ui/utils/dbLocal.js +74 -0
- package/dist/components/catalyst-ui/utils/dbRemote.js +74 -0
- package/dist/components/catalyst-ui/utils/demo.tsx +499 -0
- package/dist/components/catalyst-ui/utils/dynamic-links.tsx +324 -0
- package/dist/components/catalyst-ui/utils/event-stream.ts +82 -0
- package/dist/components/catalyst-ui/utils/existing-search-params.tsx +78 -0
- package/dist/components/catalyst-ui/utils/external-scripts.tsx +144 -0
- package/dist/components/catalyst-ui/utils/fetcher-context.tsx +45 -0
- package/dist/components/catalyst-ui/utils/fetcher-type.tsx +82 -0
- package/dist/components/catalyst-ui/utils/filename-icon-map.tsx +176 -0
- package/dist/components/catalyst-ui/utils/flickering-grid.tsx +188 -0
- package/dist/components/catalyst-ui/utils/get-client-ip-address.ts +52 -0
- package/dist/components/catalyst-ui/utils/get-client-locales.ts +25 -0
- package/dist/components/catalyst-ui/utils/get-headers.ts +7 -0
- package/dist/components/catalyst-ui/utils/honeypot-react.tsx +480 -0
- package/dist/components/catalyst-ui/utils/honeypot.ts +138 -0
- package/dist/components/catalyst-ui/utils/index.ts +82 -0
- package/dist/components/catalyst-ui/utils/is-prefetch.ts +19 -0
- package/dist/components/catalyst-ui/utils/json-hash.ts +33 -0
- package/dist/components/catalyst-ui/utils/keyboard-shortcut.tsx +124 -0
- package/dist/components/catalyst-ui/utils/named-action.ts +50 -0
- package/dist/components/catalyst-ui/utils/navigation-context.tsx +71 -0
- package/dist/components/catalyst-ui/utils/options.ts +20 -0
- package/dist/components/catalyst-ui/utils/otp-auth-session.ts +14 -0
- package/dist/components/catalyst-ui/utils/otp-client-auth.tsx +30 -0
- package/dist/components/catalyst-ui/utils/otp-email.tsx +104 -0
- package/dist/components/catalyst-ui/utils/parse-accept-header.ts +21 -0
- package/dist/components/catalyst-ui/utils/preload-route-assets.ts +60 -0
- package/dist/components/catalyst-ui/utils/prisma.ts +93 -0
- package/dist/components/catalyst-ui/utils/promise.ts +55 -0
- package/dist/components/catalyst-ui/utils/qr-code-1-server.tsx +42 -0
- package/dist/components/catalyst-ui/utils/qr-code-1.tsx +87 -0
- package/dist/components/catalyst-ui/utils/redirect-back.ts +35 -0
- package/dist/components/catalyst-ui/utils/redirect-bad-requests.tsx +5 -0
- package/dist/components/catalyst-ui/utils/remix-auth.ts +35 -0
- package/dist/components/catalyst-ui/utils/remix_auth_session.ts +71 -0
- package/dist/components/catalyst-ui/utils/respond-to.ts +40 -0
- package/dist/components/catalyst-ui/utils/responses.ts +130 -0
- package/dist/components/catalyst-ui/utils/rolling-cookie.tsx +39 -0
- package/dist/components/catalyst-ui/utils/safe-redirect.ts +21 -0
- package/dist/components/catalyst-ui/utils/scaffolding.tsx +14 -0
- package/dist/components/catalyst-ui/utils/scroll-top.tsx +382 -0
- package/dist/components/catalyst-ui/utils/scroll-x.tsx +22 -0
- package/dist/components/catalyst-ui/utils/scroll-xy.tsx +22 -0
- package/dist/components/catalyst-ui/utils/scroll-y.tsx +14 -0
- package/dist/components/catalyst-ui/utils/scroll.tsx +32 -0
- package/dist/components/catalyst-ui/utils/sec-fetch-parser.tsx +119 -0
- package/dist/components/catalyst-ui/utils/sec-fetch-parsers.tsx +42 -0
- package/dist/components/catalyst-ui/utils/server-only.tsx +12 -0
- package/dist/components/catalyst-ui/utils/singleton.tsx +22 -0
- package/dist/components/catalyst-ui/utils/style-provider.tsx +292 -0
- package/dist/components/catalyst-ui/utils/tailwindcss.css.txt +134 -0
- package/dist/components/catalyst-ui/utils/typed-cookie.ts +90 -0
- package/dist/components/catalyst-ui/utils/typed-session.ts +115 -0
- package/dist/components/catalyst-ui/utils/user-based-access-rules.tsx +118 -0
- package/dist/components/catalyst-ui/x/index.ts +38 -0
- package/dist/components/catalyst-ui/x/input-x.tsx +2263 -0
- package/dist/components/catalyst-ui/x/nav-x.tsx +3213 -0
- package/dist/components/catalyst-ui/x/tracker-x.tsx +2 -12
- package/dist/index.js +40623 -40650
- package/package.json +1 -1
- /package/dist/{data.tsx → components/catalyst-ui/data.tsx} +0 -0
- /package/dist/components/catalyst-ui/x/{button-X.tsx → button-x.tsx} +0 -0
|
@@ -0,0 +1,1590 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { PDFDocument, rgb } from 'pdf-lib';
|
|
3
|
+
// import eP from '~/utils/ext';
|
|
4
|
+
import { ActionArgs, defer, json, redirect } from '@remix-run/node';
|
|
5
|
+
import {
|
|
6
|
+
// bosPdfData,
|
|
7
|
+
Button,
|
|
8
|
+
// endOfDayPdfData,
|
|
9
|
+
// financingPdfData,
|
|
10
|
+
Input,
|
|
11
|
+
Label,
|
|
12
|
+
// licensingPdfData,
|
|
13
|
+
Loading,
|
|
14
|
+
//partsPdfData,
|
|
15
|
+
// receiptPdfData,
|
|
16
|
+
// workOrderPdfData
|
|
17
|
+
} from "~/components/catalyst-ui";
|
|
18
|
+
import { ClientOnly } from "~/utils/client-only";
|
|
19
|
+
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "~/components/catalyst-ui";
|
|
20
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "~/components/catalyst-ui"
|
|
21
|
+
import { cn } from '~/components/catalyst-ui';
|
|
22
|
+
import { GeneratePDF } from './generate_pdf';
|
|
23
|
+
import { useFetcher, useLoaderData } from '@remix-run/react';
|
|
24
|
+
import GuidesComponent from '@scena/react-guides';
|
|
25
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "~/components/catalyst-ui"
|
|
26
|
+
import { getAuthSession } from '~/modules/auth/auth_session';
|
|
27
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "~/components/catalyst-ui"
|
|
28
|
+
import { Popover, PopoverContent, PopoverTrigger, } from "~/components/catalyst-ui"
|
|
29
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "~/components/catalyst-ui"
|
|
30
|
+
import { ChevronsUpDown } from 'lucide-react';
|
|
31
|
+
// import { prisma } from '~/modules/libs/prisma';
|
|
32
|
+
import { authSessionStorage } from '~/modules/auth/auth_session';
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
const bosPdfData = []
|
|
36
|
+
const endOfDayPdfData = []
|
|
37
|
+
const financingPdfData = []
|
|
38
|
+
const licensingPdfData = []
|
|
39
|
+
const partsPdfData = []
|
|
40
|
+
const receiptPdfData = []
|
|
41
|
+
const workOrderPdfData = []
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
export async function action({ request, params }: ActionFunction) {
|
|
45
|
+
const session = await authSessionStorage.getSession(request.headers.get("Cookie"));
|
|
46
|
+
const email = session.get("email")
|
|
47
|
+
const include = {
|
|
48
|
+
EmployeeReview: {
|
|
49
|
+
include: {
|
|
50
|
+
itemsForReview: true
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const user = await eP.user.include(email, include)
|
|
56
|
+
if (!user) return redirect(import.meta.env.VITE_LOGIN)
|
|
57
|
+
|
|
58
|
+
const d = Object.fromEntries(await request.formData());
|
|
59
|
+
const intent = d.intent
|
|
60
|
+
|
|
61
|
+
if (intent === 'saveTemplate') {
|
|
62
|
+
const savedDocument = await prisma.savedDocuments.findFirst({ where: { name: d.name } })
|
|
63
|
+
if (!savedDocument) {
|
|
64
|
+
await prisma.savedDocuments.create({
|
|
65
|
+
data: {
|
|
66
|
+
name: d.name.toString(),
|
|
67
|
+
dept: d.dept.toString(),
|
|
68
|
+
document: JSON.parse(d.template),
|
|
69
|
+
userEmail: user.email,
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
} else if (savedDocument) {
|
|
73
|
+
await prisma.savedDocuments.update({
|
|
74
|
+
where: { id: savedDocument.id },
|
|
75
|
+
data: {
|
|
76
|
+
name: d.name.toString(),
|
|
77
|
+
dept: d.dept.toString(),
|
|
78
|
+
document: JSON.parse(d.template),
|
|
79
|
+
userEmail: user.email,
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return json({ success: true })
|
|
84
|
+
}
|
|
85
|
+
if (intent === 'deleteTemplate') {
|
|
86
|
+
|
|
87
|
+
await prisma.savedDocuments.delete({
|
|
88
|
+
where: { id: d.id }
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
return json({ success: true })
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
export async function loader({ request }: LoaderArgs) {
|
|
98
|
+
const session = await authSessionStorage.getSession(request.headers.get("Cookie"));
|
|
99
|
+
const email = session.get("email");
|
|
100
|
+
const user = await eP.user.simple(email)
|
|
101
|
+
if (!user) { return redirect(import.meta.env.VITE_LOGIN); }
|
|
102
|
+
const sampleData = {
|
|
103
|
+
// Date and Dealer Information
|
|
104
|
+
date: "2025-06-16",
|
|
105
|
+
omvic: "12345",
|
|
106
|
+
dealerName: "Maple Leaf Motors Ltd.",
|
|
107
|
+
dealerAddress: "1234 Queen Street West",
|
|
108
|
+
dealerProv: "Ontario",
|
|
109
|
+
dealerPhone: "(416) 555-0123",
|
|
110
|
+
// Customer Information
|
|
111
|
+
userName: "johnsmith2025",
|
|
112
|
+
nameloan: "John Michael Smith",
|
|
113
|
+
firstName: "John",
|
|
114
|
+
lastName: "Smith",
|
|
115
|
+
address: "456 Elm Street, Unit 12",
|
|
116
|
+
city: "Toronto",
|
|
117
|
+
province: "ON",
|
|
118
|
+
postalCode: "M5V 2A8",
|
|
119
|
+
phone: "(647) 555-7890",
|
|
120
|
+
dl: "S1234-56789-01234",
|
|
121
|
+
email: "john.smith@email.com",
|
|
122
|
+
// Vehicle Information
|
|
123
|
+
year: "2024",
|
|
124
|
+
brand: "Toyota",
|
|
125
|
+
model: "Camry LE",
|
|
126
|
+
color: "Magnetic Gray Metallic",
|
|
127
|
+
stockNum: "T24-001",
|
|
128
|
+
vin: "4T1C11AK5LU123456",
|
|
129
|
+
// Trade-in Information
|
|
130
|
+
tradeYear: "2019",
|
|
131
|
+
tradeMake: "Honda",
|
|
132
|
+
tradeDesc: "Civic LX Sedan",
|
|
133
|
+
tradeColor: "White",
|
|
134
|
+
tradeMileage: "87500",
|
|
135
|
+
tradeVin: "19XFC2F59KE123456",
|
|
136
|
+
tradeValue: "18500.00",
|
|
137
|
+
// Pricing Information
|
|
138
|
+
total: "35250.00",
|
|
139
|
+
netDiff: "16750.00",
|
|
140
|
+
newTaxAmount: "4582.50",
|
|
141
|
+
licensing: "120.00",
|
|
142
|
+
gasOnDel: "75.00",
|
|
143
|
+
lien: "0.00",
|
|
144
|
+
rebate: "1000.00",
|
|
145
|
+
subTotal: "38027.50",
|
|
146
|
+
deposit: "2500.00",
|
|
147
|
+
afterDeposit: "35527.50",
|
|
148
|
+
lienRegFee: "45.00",
|
|
149
|
+
balanceToFinance: "35572.50",
|
|
150
|
+
netAmountFinanced: "35572.50",
|
|
151
|
+
costOfBorrowing: "3245.67",
|
|
152
|
+
// Fees and Charges
|
|
153
|
+
onTax: "4582.50",
|
|
154
|
+
freight: "1895.00",
|
|
155
|
+
admin: "799.00",
|
|
156
|
+
pdi: "425.00",
|
|
157
|
+
financeFee: "695.00",
|
|
158
|
+
deliveryCharge: "150.00",
|
|
159
|
+
accessories: "1250.00",
|
|
160
|
+
totalLabour: "0.00",
|
|
161
|
+
msrp: "32500.00",
|
|
162
|
+
govern: "10.00",
|
|
163
|
+
airTax: "25.00",
|
|
164
|
+
destinationCharge: "1895.00",
|
|
165
|
+
demo: "0.00",
|
|
166
|
+
discountPer: "5.5",
|
|
167
|
+
discount: "1787.50",
|
|
168
|
+
// Insurance Products
|
|
169
|
+
lifeDisability: "2850.00",
|
|
170
|
+
commodity: "0.00",
|
|
171
|
+
tireTax: "25.00",
|
|
172
|
+
loanPercentage: "6.99",
|
|
173
|
+
extWarr: "1850.00",
|
|
174
|
+
loanProt: "895.00",
|
|
175
|
+
gap: "650.00",
|
|
176
|
+
tireandRim: "750.00",
|
|
177
|
+
vinE: "150.00",
|
|
178
|
+
rustProofing: "1200.00",
|
|
179
|
+
servicespkg: "2500.00",
|
|
180
|
+
marketAdj: "500.00",
|
|
181
|
+
// Field Names/Labels
|
|
182
|
+
namediscount: "Manufacturer Discount",
|
|
183
|
+
namelabour: "Additional Labour",
|
|
184
|
+
namefreight: "Freight & PDI",
|
|
185
|
+
nameadmin: "Administration Fee",
|
|
186
|
+
namepdi: "Pre-Delivery Inspection",
|
|
187
|
+
namecomm: "Documentation Fee",
|
|
188
|
+
nametireTax: "Tire Stewardship Fee",
|
|
189
|
+
namedeliveryCharge: "Delivery Charge",
|
|
190
|
+
nameaccessoriesTotal: "Accessories Package",
|
|
191
|
+
namedestinationCharge: "Destination Charge",
|
|
192
|
+
namegovern: "OMVIC Fee",
|
|
193
|
+
nameairTax: "A/C Tax",
|
|
194
|
+
nameDemo: "Demo Allowance",
|
|
195
|
+
namediscountPer: "Discount Percentage",
|
|
196
|
+
nameextWar: "Extended Warranty",
|
|
197
|
+
namegap: "GAP Insurance",
|
|
198
|
+
nametireandRim: "Tire & Rim Protection",
|
|
199
|
+
namenamevinE: "VIN Etching",
|
|
200
|
+
namemarketAdj: "Market Adjustment",
|
|
201
|
+
namefinanceFee: "Finance Fee",
|
|
202
|
+
namerustProt: "Rust Protection",
|
|
203
|
+
namelifeAndDis: "Life & Disability Insurance",
|
|
204
|
+
namenameservice: "Service Package",
|
|
205
|
+
// Accessories (up to 14 accessories)
|
|
206
|
+
acc1: "125.00",
|
|
207
|
+
acc2: "250.00",
|
|
208
|
+
acc3: "180.00",
|
|
209
|
+
acc4: "95.00",
|
|
210
|
+
acc5: "320.00",
|
|
211
|
+
acc6: "0.00",
|
|
212
|
+
acc7: "0.00",
|
|
213
|
+
acc8: "0.00",
|
|
214
|
+
acc9: "0.00",
|
|
215
|
+
acc10: "0.00",
|
|
216
|
+
acc11: "0.00",
|
|
217
|
+
acc12: "0.00",
|
|
218
|
+
acc13: "0.00",
|
|
219
|
+
acc14: "0.00",
|
|
220
|
+
// Accessory Names
|
|
221
|
+
nameAcc1: "Floor Mats - All Weather",
|
|
222
|
+
nameAcc2: "Block Heater Installation",
|
|
223
|
+
nameAcc3: "Window Tinting",
|
|
224
|
+
nameAcc4: "License Plate Frame",
|
|
225
|
+
nameAcc5: "Remote Starter",
|
|
226
|
+
nameAcc6: "",
|
|
227
|
+
nameAcc7: "",
|
|
228
|
+
nameAcc8: "",
|
|
229
|
+
nameAcc9: "",
|
|
230
|
+
nameAcc10: "",
|
|
231
|
+
nameAcc11: "",
|
|
232
|
+
nameAcc12: "",
|
|
233
|
+
nameAcc13: "",
|
|
234
|
+
nameAcc14: "",
|
|
235
|
+
// OMVIC Fee
|
|
236
|
+
omvicFee: "10.00",
|
|
237
|
+
nameOmvicFee: "OMVIC Fee",
|
|
238
|
+
// Additional Information
|
|
239
|
+
dealerLogo: "maple-leaf-motors-logo.png",
|
|
240
|
+
amountOfPayments: "524.67",
|
|
241
|
+
numberOfPayments: "84",
|
|
242
|
+
paymentStartDate: "2025-07-16",
|
|
243
|
+
approved: "true",
|
|
244
|
+
signature: null,
|
|
245
|
+
financingInitials: null
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
const templates = await prisma.savedDocuments.findMany()
|
|
249
|
+
return json({ sampleData, templates })
|
|
250
|
+
}
|
|
251
|
+
*/
|
|
252
|
+
type PDFFile = string | File | null;
|
|
253
|
+
type Position = { x: number; y: number };
|
|
254
|
+
type FieldType = 'text' | 'qr' | 'signature';
|
|
255
|
+
type Alignment = 'left' | 'center' | 'right';
|
|
256
|
+
type VerticalAlignment = 'top' | 'middle' | 'bottom';
|
|
257
|
+
interface TemplateField {
|
|
258
|
+
name: string;
|
|
259
|
+
type: FieldType;
|
|
260
|
+
fontSize?: number;
|
|
261
|
+
position: Position;
|
|
262
|
+
lineHeight?: number;
|
|
263
|
+
content?: string;
|
|
264
|
+
alignment?: Alignment;
|
|
265
|
+
width: number;
|
|
266
|
+
height: number;
|
|
267
|
+
verticalAlignment?: VerticalAlignment;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
interface Template {
|
|
271
|
+
schemas: TemplateField[];
|
|
272
|
+
base: string;
|
|
273
|
+
inputs?: Record<string, string>[];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
const GetLoading = () => {
|
|
278
|
+
return (
|
|
279
|
+
<div className='w-full h-full flex justify-center items-center' >
|
|
280
|
+
<Loading />
|
|
281
|
+
</div>
|
|
282
|
+
)
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export default function DefaultPdf() {
|
|
286
|
+
const { sampleData, templates } = useLoaderData()
|
|
287
|
+
return (
|
|
288
|
+
<ClientOnly fallback={<GetLoading />}>
|
|
289
|
+
{() => (
|
|
290
|
+
<PdfTemplateBuilder sampleData={sampleData} templates={templates} />
|
|
291
|
+
)}
|
|
292
|
+
</ClientOnly>
|
|
293
|
+
)
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export function PdfTemplateBuilder({ sampleData, templates }) {
|
|
297
|
+
const [template, setTemplate] = useState<Template>({ schemas: [], inputs: [], base: '', baseUri: '' });
|
|
298
|
+
const [active, setActive] = useState('Edit');
|
|
299
|
+
const [selectedField, setSelectedField] = useState<TemplateField | null>(null);
|
|
300
|
+
const [fieldName, setFieldName] = useState('');
|
|
301
|
+
const [fieldType, setFieldType] = useState('text');
|
|
302
|
+
const [previewData, setPreviewData] = useState<Record<string, string>>({});
|
|
303
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
304
|
+
const fileInputRef = useRef<HTMLInputElement>(null);
|
|
305
|
+
const templateInputRef = useRef<HTMLInputElement>(null);
|
|
306
|
+
const [isPdfLoading, setIsPdfLoading] = useState(false);
|
|
307
|
+
const [activeType, setActiveType] = useState('BOS');
|
|
308
|
+
const [dataArrays, setDataArrays] = useState(bosPdfData);
|
|
309
|
+
const [templatePdf, setTemplatePdf] = useState<PDFDocument | null>(null);
|
|
310
|
+
const [templateName, setTemplateName] = useState('');
|
|
311
|
+
const [dept, setDept] = useState('Sales');
|
|
312
|
+
const [height, setHeight] = useState(20);
|
|
313
|
+
const [width, setWidth] = useState(150);
|
|
314
|
+
const [font, setFont] = useState(10);
|
|
315
|
+
const [draggedField, setDraggedField] = useState<TemplateField | null>(null);
|
|
316
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
317
|
+
const [save, setSave] = useState(false);
|
|
318
|
+
const [dragPosition, setDragPosition] = useState({ x: 0, y: 0 });
|
|
319
|
+
const [dimensions, setDimensions] = useState({
|
|
320
|
+
pdfWidth: 0,
|
|
321
|
+
pdfHeight: 0,
|
|
322
|
+
containerWidth: 0,
|
|
323
|
+
containerHeight: 0
|
|
324
|
+
});
|
|
325
|
+
const horizontalRef = useRef<GuidesComponent>(null);
|
|
326
|
+
const verticalRef = useRef<GuidesComponent>(null);
|
|
327
|
+
const templateRef = useRef(null);
|
|
328
|
+
const fetcher = useFetcher()
|
|
329
|
+
const [open, setOpen] = useState(false)
|
|
330
|
+
const [value, setValue] = useState("")
|
|
331
|
+
|
|
332
|
+
const getDefaultPosition = (templatePdf) => {
|
|
333
|
+
if (!templatePdf) {
|
|
334
|
+
return { x: 50, y: 50 }; // Fallback
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const [firstPage] = templatePdf.getPages();
|
|
338
|
+
const pdfWidth = firstPage.getWidth();
|
|
339
|
+
const pdfHeight = firstPage.getHeight();
|
|
340
|
+
|
|
341
|
+
return {
|
|
342
|
+
x: pdfWidth * 0.1,
|
|
343
|
+
y: pdfHeight * 0.1,
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
347
|
+
const iframeRef = useRef<HTMLIFrameElement>(null);
|
|
348
|
+
|
|
349
|
+
useEffect(() => {
|
|
350
|
+
if (!containerRef.current || !templatePdf) return;
|
|
351
|
+
|
|
352
|
+
const updateSizes = () => {
|
|
353
|
+
if (!containerRef.current) return;
|
|
354
|
+
|
|
355
|
+
const containerRect = containerRef.current.getBoundingClientRect();
|
|
356
|
+
const [page] = templatePdf.getPages();
|
|
357
|
+
|
|
358
|
+
// console.log('Container rect:', containerRect);
|
|
359
|
+
// console.log('PDF dimensions:', { width: page.getWidth(), height: page.getHeight() });
|
|
360
|
+
|
|
361
|
+
setDimensions({
|
|
362
|
+
pdfWidth: page.getWidth(),
|
|
363
|
+
pdfHeight: page.getHeight(),
|
|
364
|
+
containerWidth: containerRect.width,
|
|
365
|
+
containerHeight: containerRect.height
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
// Use setTimeout to ensure the container is rendered
|
|
370
|
+
const timeoutId = setTimeout(updateSizes, 100);
|
|
371
|
+
|
|
372
|
+
// Also update on resize
|
|
373
|
+
window.addEventListener('resize', updateSizes);
|
|
374
|
+
|
|
375
|
+
return () => {
|
|
376
|
+
clearTimeout(timeoutId);
|
|
377
|
+
window.removeEventListener('resize', updateSizes);
|
|
378
|
+
};
|
|
379
|
+
}, [templatePdf, template.base]);
|
|
380
|
+
|
|
381
|
+
useEffect(() => {
|
|
382
|
+
if (activeType === 'BOS') {
|
|
383
|
+
setDataArrays(bosPdfData)
|
|
384
|
+
}
|
|
385
|
+
if (activeType === 'Financing') {
|
|
386
|
+
setDataArrays(financingPdfData)
|
|
387
|
+
}
|
|
388
|
+
if (activeType === 'Licensing') {
|
|
389
|
+
setDataArrays(licensingPdfData)
|
|
390
|
+
}
|
|
391
|
+
if (activeType === 'Work Order') {
|
|
392
|
+
setDataArrays(workOrderPdfData)
|
|
393
|
+
}
|
|
394
|
+
if (activeType === 'Receipt') {
|
|
395
|
+
setDataArrays(receiptPdfData)
|
|
396
|
+
}
|
|
397
|
+
if (activeType === 'End Of Day Report') {
|
|
398
|
+
setDataArrays(endOfDayPdfData)
|
|
399
|
+
}
|
|
400
|
+
if (activeType === 'Parts') {
|
|
401
|
+
setDataArrays(partsPdfData)
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (activeType === 'All') {
|
|
405
|
+
setDataArrays([
|
|
406
|
+
...bosPdfData,
|
|
407
|
+
...financingPdfData,
|
|
408
|
+
...licensingPdfData
|
|
409
|
+
])
|
|
410
|
+
}
|
|
411
|
+
}, [activeType]);
|
|
412
|
+
|
|
413
|
+
useEffect(() => {
|
|
414
|
+
async function LoadTemplateIfNone() {
|
|
415
|
+
const getTemplate = localStorage.getItem("template");
|
|
416
|
+
const arrayBuffer = await file.arrayBuffer();
|
|
417
|
+
const pdfDoc = await PDFDocument.load(arrayBuffer);
|
|
418
|
+
setTemplate(prev => ({
|
|
419
|
+
...prev,
|
|
420
|
+
base: getTemplate
|
|
421
|
+
}));
|
|
422
|
+
setTemplatePdf(pdfDoc);
|
|
423
|
+
}
|
|
424
|
+
if (!template) {
|
|
425
|
+
LoadTemplateIfNone()
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
}, []);
|
|
429
|
+
|
|
430
|
+
useEffect(() => {
|
|
431
|
+
console.log(template, 'template')
|
|
432
|
+
}, [template]);
|
|
433
|
+
|
|
434
|
+
useEffect(() => {
|
|
435
|
+
const saveTemplate = () => {
|
|
436
|
+
const templateData = {
|
|
437
|
+
schemas: template.schemas,
|
|
438
|
+
base: template.base,
|
|
439
|
+
inputs: template.inputs
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
const dataStr = JSON.stringify(templateData);
|
|
443
|
+
localStorage.setItem("template", JSON.stringify(dataStr));
|
|
444
|
+
setSave(false)
|
|
445
|
+
}
|
|
446
|
+
if (save === true) {
|
|
447
|
+
saveTemplate()
|
|
448
|
+
}
|
|
449
|
+
}, [save]);
|
|
450
|
+
|
|
451
|
+
const ZOOM = 3.7795275591;
|
|
452
|
+
|
|
453
|
+
const handleDragStart = (field: TemplateField, e: React.DragEvent) => {
|
|
454
|
+
e.stopPropagation();
|
|
455
|
+
|
|
456
|
+
// Set iframe pointer events to none ONCE at the start
|
|
457
|
+
if (iframeRef.current) {
|
|
458
|
+
iframeRef.current.style.pointerEvents = 'none';
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
setDraggedField(field);
|
|
462
|
+
setIsDragging(true);
|
|
463
|
+
|
|
464
|
+
// Create a more subtle drag image
|
|
465
|
+
const dragImage = document.createElement('div');
|
|
466
|
+
dragImage.style.position = 'absolute';
|
|
467
|
+
dragImage.style.top = '-1000px';
|
|
468
|
+
dragImage.style.background = 'rgba(59, 130, 246, 0.8)'; // Semi-transparent blue
|
|
469
|
+
dragImage.style.border = '1px solid #3b82f6';
|
|
470
|
+
dragImage.style.borderRadius = '4px';
|
|
471
|
+
dragImage.style.padding = '4px 8px';
|
|
472
|
+
dragImage.style.fontSize = '12px';
|
|
473
|
+
dragImage.style.color = 'white';
|
|
474
|
+
dragImage.style.fontWeight = '500';
|
|
475
|
+
dragImage.textContent = field.name;
|
|
476
|
+
document.body.appendChild(dragImage);
|
|
477
|
+
|
|
478
|
+
e.dataTransfer.setDragImage(dragImage, 0, 0);
|
|
479
|
+
e.dataTransfer.effectAllowed = 'move';
|
|
480
|
+
|
|
481
|
+
// Clean up drag image
|
|
482
|
+
setTimeout(() => {
|
|
483
|
+
if (document.body.contains(dragImage)) {
|
|
484
|
+
document.body.removeChild(dragImage);
|
|
485
|
+
}
|
|
486
|
+
}, 0);
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
const handleDragOver = (e: React.DragEvent) => {
|
|
490
|
+
e.preventDefault();
|
|
491
|
+
e.stopPropagation();
|
|
492
|
+
|
|
493
|
+
if (!isDragging || !draggedField) return;
|
|
494
|
+
|
|
495
|
+
// Update drag position for visual feedback (but don't flash the iframe)
|
|
496
|
+
const container = containerRef.current;
|
|
497
|
+
if (!container) return;
|
|
498
|
+
|
|
499
|
+
const rect = container.getBoundingClientRect();
|
|
500
|
+
const x = e.clientX - rect.left;
|
|
501
|
+
const y = e.clientY - rect.top;
|
|
502
|
+
|
|
503
|
+
// Only update position, don't touch iframe
|
|
504
|
+
setDragPosition({ x: e.clientX, y: e.clientY });
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
const handleDragEnd = (e: React.DragEvent) => {
|
|
508
|
+
e.preventDefault();
|
|
509
|
+
e.stopPropagation();
|
|
510
|
+
|
|
511
|
+
// Re-enable iframe pointer events ONCE at the end
|
|
512
|
+
if (iframeRef.current) {
|
|
513
|
+
iframeRef.current.style.pointerEvents = 'auto';
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
setIsDragging(false);
|
|
517
|
+
setDraggedField(null);
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
const handleDrop = async (e: React.DragEvent) => {
|
|
521
|
+
e.preventDefault();
|
|
522
|
+
e.stopPropagation();
|
|
523
|
+
|
|
524
|
+
if (!draggedField || !templatePdf) return;
|
|
525
|
+
|
|
526
|
+
// Re-enable iframe pointer events
|
|
527
|
+
if (iframeRef.current) {
|
|
528
|
+
iframeRef.current.style.pointerEvents = 'auto';
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
const container = containerRef.current;
|
|
532
|
+
if (!container) return;
|
|
533
|
+
|
|
534
|
+
const rect = container.getBoundingClientRect();
|
|
535
|
+
const x = e.clientX - rect.left;
|
|
536
|
+
const y = e.clientY - rect.top;
|
|
537
|
+
|
|
538
|
+
const [firstPage] = templatePdf.getPages();
|
|
539
|
+
const pdfWidth = firstPage.getWidth();
|
|
540
|
+
const pdfHeight = firstPage.getHeight();
|
|
541
|
+
|
|
542
|
+
const scaleX = dimensions.containerWidth / pdfWidth;
|
|
543
|
+
const scaleY = dimensions.containerHeight / pdfHeight;
|
|
544
|
+
const scale = Math.min(scaleX, scaleY);
|
|
545
|
+
|
|
546
|
+
// Convert to PDF coordinates
|
|
547
|
+
const newX = x / scale;
|
|
548
|
+
const newY = (pdfHeight - (y / scale)) - draggedField.height;
|
|
549
|
+
|
|
550
|
+
// Boundary enforcement
|
|
551
|
+
const boundedX = Math.max(0, Math.min(newX, pdfWidth - draggedField.width));
|
|
552
|
+
const boundedY = Math.max(0, Math.min(newY, pdfHeight - draggedField.height));
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
// Update the template state
|
|
557
|
+
setTemplate(prev => {
|
|
558
|
+
const updatedSchemas = prev.schemas.map(schema => {
|
|
559
|
+
if (schema.name === draggedField.name) {
|
|
560
|
+
return {
|
|
561
|
+
...schema,
|
|
562
|
+
position: { x: boundedX, y: boundedY }
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
return schema;
|
|
566
|
+
});
|
|
567
|
+
|
|
568
|
+
const updatedTemplate = {
|
|
569
|
+
...prev,
|
|
570
|
+
schemas: updatedSchemas
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
return updatedTemplate;
|
|
574
|
+
});
|
|
575
|
+
|
|
576
|
+
// Clean up drag state
|
|
577
|
+
setIsDragging(false);
|
|
578
|
+
setDraggedField(null);
|
|
579
|
+
|
|
580
|
+
// Save the template
|
|
581
|
+
setSave(true);
|
|
582
|
+
};
|
|
583
|
+
const objectRef = useRef<HTMLObjectElement>(null);
|
|
584
|
+
|
|
585
|
+
const calculatePosition = (field: TemplateField) => {
|
|
586
|
+
if (!dimensions.pdfWidth || !dimensions.pdfHeight) return { left: 0, top: 0 };
|
|
587
|
+
|
|
588
|
+
const scale = Math.min(
|
|
589
|
+
dimensions.containerWidth / dimensions.pdfWidth,
|
|
590
|
+
dimensions.containerHeight / dimensions.pdfHeight
|
|
591
|
+
);
|
|
592
|
+
|
|
593
|
+
return {
|
|
594
|
+
left: (field.position.x * scale),
|
|
595
|
+
top: ((dimensions.pdfHeight - field.position.y - field.height) * scale),
|
|
596
|
+
width: (field.width * scale),
|
|
597
|
+
height: (field.height * scale)
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
const convertPdfToDataUri = async (file: File): Promise<string> => {
|
|
602
|
+
return new Promise((resolve, reject) => {
|
|
603
|
+
const reader = new FileReader();
|
|
604
|
+
|
|
605
|
+
reader.onload = () => {
|
|
606
|
+
if (reader.result) {
|
|
607
|
+
// Convert ArrayBuffer to base64 string properly
|
|
608
|
+
const arrayBuffer = reader.result as ArrayBuffer;
|
|
609
|
+
const uint8Array = new Uint8Array(arrayBuffer);
|
|
610
|
+
|
|
611
|
+
// Convert to base64
|
|
612
|
+
let binary = '';
|
|
613
|
+
const len = uint8Array.byteLength;
|
|
614
|
+
for (let i = 0; i < len; i++) {
|
|
615
|
+
binary += String.fromCharCode(uint8Array[i]);
|
|
616
|
+
}
|
|
617
|
+
const base64 = btoa(binary);
|
|
618
|
+
|
|
619
|
+
// Return proper data URI format
|
|
620
|
+
const dataUri = `data:application/pdf;base64,${base64}`;
|
|
621
|
+
resolve(dataUri);
|
|
622
|
+
} else {
|
|
623
|
+
reject(new Error('Failed to convert PDF to data URI'));
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
reader.onerror = () => {
|
|
628
|
+
reject(new Error('File reading failed'));
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
// Use readAsArrayBuffer instead of readAsDataURL for better control
|
|
632
|
+
reader.readAsArrayBuffer(file);
|
|
633
|
+
});
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
const createPdfUrl = (base64Data: string) => {
|
|
637
|
+
if (!base64Data) return '';
|
|
638
|
+
|
|
639
|
+
// Use the separate PDF route
|
|
640
|
+
const encodedData = encodeURIComponent(base64Data);
|
|
641
|
+
return `/document/components/pdf?data=${encodedData}`;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
const onLoadTemplateIntoDom = async (sampleTemplate) => {
|
|
645
|
+
try {
|
|
646
|
+
// Read and parse the template file
|
|
647
|
+
const templateData = sampleTemplate
|
|
648
|
+
|
|
649
|
+
// Handle the base PDF - this is where we need to be careful
|
|
650
|
+
if (templateData.base && templateData.base.startsWith('data:application/pdf;base64,')) {
|
|
651
|
+
try {
|
|
652
|
+
const base64Data = templateData.base.split(',')[1];
|
|
653
|
+
const arrayBuffer = Uint8Array.from(atob(base64Data), c => c.charCodeAt(0)).buffer;
|
|
654
|
+
const pdfDoc = await PDFDocument.load(arrayBuffer);
|
|
655
|
+
|
|
656
|
+
// Get pages - we know there's at least one if it loaded successfully
|
|
657
|
+
const pages = pdfDoc.getPages();
|
|
658
|
+
const firstPage = pages[0]; // We can safely access index 0 here
|
|
659
|
+
|
|
660
|
+
setDimensions({
|
|
661
|
+
pdfWidth: firstPage.getWidth(),
|
|
662
|
+
pdfHeight: firstPage.getHeight()
|
|
663
|
+
});
|
|
664
|
+
|
|
665
|
+
// Set the PDF reference
|
|
666
|
+
templateRef.current = templateData.base;
|
|
667
|
+
setTemplatePdf(pdfDoc);
|
|
668
|
+
} catch (error) {
|
|
669
|
+
console.error("Error processing PDF:", error);
|
|
670
|
+
// Fallback to default dimensions
|
|
671
|
+
setDimensions({
|
|
672
|
+
pdfWidth: 550,
|
|
673
|
+
pdfHeight: 750
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// Set the template state - this is the crucial part
|
|
679
|
+
setTemplate({
|
|
680
|
+
schemas: templateData.schemas || [],
|
|
681
|
+
inputs: templateData.inputs || [{}],
|
|
682
|
+
base: templateData.base || '',
|
|
683
|
+
baseUri: templateData.base || ''
|
|
684
|
+
});
|
|
685
|
+
|
|
686
|
+
} catch (error) {
|
|
687
|
+
console.error("Error loading template:", error);
|
|
688
|
+
// Handle error (show message to user, etc.)
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
const handleFileUpload = async (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
694
|
+
setIsPdfLoading(true);
|
|
695
|
+
try {
|
|
696
|
+
const file = e.target.files?.[0];
|
|
697
|
+
if (!file) return;
|
|
698
|
+
|
|
699
|
+
const url = URL.createObjectURL(file);
|
|
700
|
+
|
|
701
|
+
const arrayBuffer = await file.arrayBuffer();
|
|
702
|
+
const pdfDoc = await PDFDocument.load(arrayBuffer);
|
|
703
|
+
|
|
704
|
+
const [firstPage] = pdfDoc.getPages();
|
|
705
|
+
|
|
706
|
+
setDimensions(prev => ({
|
|
707
|
+
...prev,
|
|
708
|
+
pdfWidth: firstPage.getWidth(),
|
|
709
|
+
pdfHeight: firstPage.getHeight()
|
|
710
|
+
}));
|
|
711
|
+
|
|
712
|
+
const dataUri = await convertPdfToDataUri(file);
|
|
713
|
+
templateRef.current = dataUri;
|
|
714
|
+
setTemplate(prev => ({
|
|
715
|
+
...prev,
|
|
716
|
+
base: dataUri,
|
|
717
|
+
baseUri: dataUri
|
|
718
|
+
}));
|
|
719
|
+
|
|
720
|
+
setTemplatePdf(pdfDoc);
|
|
721
|
+
|
|
722
|
+
} catch (error) {
|
|
723
|
+
console.error("Error loading PDF:", error);
|
|
724
|
+
} finally {
|
|
725
|
+
setIsPdfLoading(false);
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
const addField = async (field) => {
|
|
732
|
+
if (!templatePdf || !fieldName) return;
|
|
733
|
+
|
|
734
|
+
try {
|
|
735
|
+
// Get scale for positioning
|
|
736
|
+
const [firstPage] = templatePdf.getPages();
|
|
737
|
+
const pdfWidth = firstPage.getWidth();
|
|
738
|
+
const pdfHeight = firstPage.getHeight();
|
|
739
|
+
const scaleX = dimensions.containerWidth / pdfWidth;
|
|
740
|
+
const scaleY = dimensions.containerHeight / pdfHeight;
|
|
741
|
+
const scale = Math.min(scaleX, scaleY) * zoom;
|
|
742
|
+
|
|
743
|
+
// Create the new field object
|
|
744
|
+
const newField = {
|
|
745
|
+
name: fieldName,
|
|
746
|
+
type: fieldType,
|
|
747
|
+
position: field.position,
|
|
748
|
+
width: field.width,
|
|
749
|
+
height: field.height,
|
|
750
|
+
fontSize: field.fontSize
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
// SET RULERS TO THE NEW FIELD'S POSITION - THEY ARE THE SOURCE OF TRUTH
|
|
754
|
+
const screenX = field.position.x * scale;
|
|
755
|
+
const screenY = field.position.y * scale;
|
|
756
|
+
|
|
757
|
+
if (verticalRef.current) {
|
|
758
|
+
verticalRef.current.scroll(screenX);
|
|
759
|
+
}
|
|
760
|
+
if (horizontalRef.current) {
|
|
761
|
+
horizontalRef.current.scroll(screenY);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
// Fixed syntax - use square brackets for dynamic key names
|
|
765
|
+
const newInput = { [fieldName]: sampleData[fieldName] };
|
|
766
|
+
setTemplate(prev => {
|
|
767
|
+
const updatedTemplate = {
|
|
768
|
+
...prev,
|
|
769
|
+
schemas: [...prev.schemas, newField],
|
|
770
|
+
inputs: [{
|
|
771
|
+
...(prev.inputs[0] || {}), // Spread existing inputs if they exist
|
|
772
|
+
...newInput // Add new input properties
|
|
773
|
+
}]
|
|
774
|
+
};
|
|
775
|
+
return updatedTemplate;
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
setFieldName('');
|
|
779
|
+
setSave(true);
|
|
780
|
+
|
|
781
|
+
} catch (error) {
|
|
782
|
+
console.error("Failed to add field:", error);
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
const updateField = async (updatedField: TemplateField) => {
|
|
787
|
+
if (!selectedField) return;
|
|
788
|
+
|
|
789
|
+
try {
|
|
790
|
+
// Only update the schema - DO NOT modify template.base
|
|
791
|
+
setTemplate(prev => ({
|
|
792
|
+
...prev,
|
|
793
|
+
// Keep the original base PDF unchanged
|
|
794
|
+
schemas: prev.schemas.map(f =>
|
|
795
|
+
f.name === selectedField.name ? {
|
|
796
|
+
...updatedField,
|
|
797
|
+
fontSize: font
|
|
798
|
+
} : f
|
|
799
|
+
)
|
|
800
|
+
}));
|
|
801
|
+
|
|
802
|
+
setSelectedField(null);
|
|
803
|
+
|
|
804
|
+
setSave(true);
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
} catch (error) {
|
|
808
|
+
console.error("Failed to update field:", error);
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
const handleFieldSelect = (field: TemplateField) => {
|
|
813
|
+
setSelectedField(field);
|
|
814
|
+
setFieldName(field.name);
|
|
815
|
+
setFieldType(field.type);
|
|
816
|
+
setIsEditing(true);
|
|
817
|
+
setActive('Edit');
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
const printTemplate = () => {
|
|
821
|
+
const getTemplate = {
|
|
822
|
+
schemas: template.schemas,
|
|
823
|
+
base: template.baseUri,
|
|
824
|
+
inputs: template.inputs
|
|
825
|
+
}
|
|
826
|
+
GeneratePDF(getTemplate)
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
const RULER_HEIGHT = 30;
|
|
830
|
+
|
|
831
|
+
const rulerRect = { left: RULER_HEIGHT, top: RULER_HEIGHT };
|
|
832
|
+
|
|
833
|
+
const guideStyle = (top: number, left: number, height: number, width: number,): React.CSSProperties => ({
|
|
834
|
+
position: 'absolute',
|
|
835
|
+
top,
|
|
836
|
+
left,
|
|
837
|
+
height,
|
|
838
|
+
width,
|
|
839
|
+
background: '#333333',
|
|
840
|
+
});
|
|
841
|
+
const [zoom, setZoom] = useState(1.0);
|
|
842
|
+
|
|
843
|
+
const _Guides = ({ paperSize, zoom, horizontalRef, verticalRef, }: {
|
|
844
|
+
paperSize: { width: number; height: number };
|
|
845
|
+
zoom: number;
|
|
846
|
+
horizontalRef: Ref<GuidesComponent> | undefined;
|
|
847
|
+
verticalRef: Ref<GuidesComponent> | undefined;
|
|
848
|
+
}) => (
|
|
849
|
+
<>
|
|
850
|
+
<div
|
|
851
|
+
className="ruler-container"
|
|
852
|
+
style={guideStyle(-RULER_HEIGHT, -RULER_HEIGHT, RULER_HEIGHT, RULER_HEIGHT)}
|
|
853
|
+
/>
|
|
854
|
+
<GuidesComponent
|
|
855
|
+
zoom={zoom}
|
|
856
|
+
style={guideStyle(-RULER_HEIGHT, 0, RULER_HEIGHT, paperSize.width)}
|
|
857
|
+
type="horizontal"
|
|
858
|
+
ref={horizontalRef}
|
|
859
|
+
/>
|
|
860
|
+
<GuidesComponent
|
|
861
|
+
zoom={zoom}
|
|
862
|
+
style={guideStyle(0, -RULER_HEIGHT, paperSize.height, RULER_HEIGHT)}
|
|
863
|
+
type="vertical"
|
|
864
|
+
ref={verticalRef}
|
|
865
|
+
/>
|
|
866
|
+
</>
|
|
867
|
+
);
|
|
868
|
+
|
|
869
|
+
const FieldOverlayWithModes = ({
|
|
870
|
+
field,
|
|
871
|
+
isSelected,
|
|
872
|
+
onClick,
|
|
873
|
+
editMode,
|
|
874
|
+
fieldValue,
|
|
875
|
+
containerRef,
|
|
876
|
+
viewerContainerRef,
|
|
877
|
+
setTemplate,
|
|
878
|
+
setSave,
|
|
879
|
+
dimensions,
|
|
880
|
+
zoom,
|
|
881
|
+
horizontalRef,
|
|
882
|
+
verticalRef
|
|
883
|
+
}) => {
|
|
884
|
+
if (!field?.position) return null;
|
|
885
|
+
|
|
886
|
+
// 1. Get field coordinates
|
|
887
|
+
const { x: left, y: top } = field.position;
|
|
888
|
+
const width = field.width;
|
|
889
|
+
const height = field.height;
|
|
890
|
+
|
|
891
|
+
// 2. Drag state
|
|
892
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
893
|
+
const [dragStart, setDragStart] = useState({ x: 0, y: 0 });
|
|
894
|
+
const [dragOffset, setDragOffset] = useState({ x: 0, y: 0 });
|
|
895
|
+
|
|
896
|
+
// 3. Handle drag movement
|
|
897
|
+
const handleMouseMove = useCallback((e) => {
|
|
898
|
+
if (!isDragging) return;
|
|
899
|
+
|
|
900
|
+
// Calculate new offset from drag start
|
|
901
|
+
const newOffsetX = e.clientX - dragStart.x;
|
|
902
|
+
const newOffsetY = e.clientY - dragStart.y;
|
|
903
|
+
|
|
904
|
+
setDragOffset({ x: newOffsetX, y: newOffsetY });
|
|
905
|
+
|
|
906
|
+
// Update ruler guides with new position
|
|
907
|
+
const newX = left + newOffsetX;
|
|
908
|
+
const newY = top + newOffsetY;
|
|
909
|
+
|
|
910
|
+
horizontalRef.current?.scroll(newY);
|
|
911
|
+
verticalRef.current?.scroll(newX);
|
|
912
|
+
}, [isDragging, dragStart, left, top, horizontalRef, verticalRef]);
|
|
913
|
+
|
|
914
|
+
// 4. On drag end - save new position
|
|
915
|
+
const handleMouseUp = useCallback(() => {
|
|
916
|
+
if (!isDragging) return;
|
|
917
|
+
|
|
918
|
+
// Calculate final position
|
|
919
|
+
const finalX = left + dragOffset.x;
|
|
920
|
+
const finalY = top + dragOffset.y;
|
|
921
|
+
|
|
922
|
+
// Update template with new position
|
|
923
|
+
setTemplate(prev => ({
|
|
924
|
+
...prev,
|
|
925
|
+
schemas: prev.schemas.map(schema =>
|
|
926
|
+
schema.name === field.name ? {
|
|
927
|
+
...schema,
|
|
928
|
+
position: { x: finalX, y: finalY },
|
|
929
|
+
width,
|
|
930
|
+
height
|
|
931
|
+
} : schema
|
|
932
|
+
)
|
|
933
|
+
}));
|
|
934
|
+
|
|
935
|
+
setSave(true);
|
|
936
|
+
setIsDragging(false);
|
|
937
|
+
setDragOffset({ x: 0, y: 0 });
|
|
938
|
+
}, [isDragging, dragOffset, left, top, field.name, setTemplate, setSave, width, height]);
|
|
939
|
+
|
|
940
|
+
// 5. Set up drag event listeners
|
|
941
|
+
useEffect(() => {
|
|
942
|
+
if (isDragging) {
|
|
943
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
944
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
945
|
+
return () => {
|
|
946
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
947
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
}, [isDragging, handleMouseMove, handleMouseUp]);
|
|
951
|
+
|
|
952
|
+
// 6. Handle drag start
|
|
953
|
+
const handleMouseDown = (e) => {
|
|
954
|
+
e.preventDefault();
|
|
955
|
+
e.stopPropagation();
|
|
956
|
+
|
|
957
|
+
// Record the starting mouse position
|
|
958
|
+
setDragStart({ x: e.clientX, y: e.clientY });
|
|
959
|
+
setDragOffset({ x: 0, y: 0 });
|
|
960
|
+
setIsDragging(true);
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
if (editMode) {
|
|
964
|
+
return (
|
|
965
|
+
<div
|
|
966
|
+
onMouseDown={handleMouseDown}
|
|
967
|
+
onClick={(e) => {
|
|
968
|
+
e.stopPropagation();
|
|
969
|
+
onClick(field);
|
|
970
|
+
}}
|
|
971
|
+
className={`absolute border-2 border-dashed cursor-move flex items-center justify-center bg-background text-black ${isSelected ? 'border-green-500 bg-green-100/50' : 'border-blue-500 bg-blue-100/50'
|
|
972
|
+
}`}
|
|
973
|
+
style={{
|
|
974
|
+
left: `${left + dragOffset.x}px`,
|
|
975
|
+
top: `${top + dragOffset.y}px`,
|
|
976
|
+
width: `${width}px`,
|
|
977
|
+
height: `${height}px`,
|
|
978
|
+
zIndex: isDragging ? 100 : 'auto',
|
|
979
|
+
userSelect: 'none'
|
|
980
|
+
}}
|
|
981
|
+
>
|
|
982
|
+
{field.name}
|
|
983
|
+
</div>
|
|
984
|
+
);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
return (
|
|
988
|
+
<div
|
|
989
|
+
className="absolute border border-none bg-transparent text-black"
|
|
990
|
+
style={{
|
|
991
|
+
left: `${left}px`,
|
|
992
|
+
top: `${top}px`,
|
|
993
|
+
width: `${width}px`,
|
|
994
|
+
height: `${height}px`
|
|
995
|
+
}}
|
|
996
|
+
>
|
|
997
|
+
{fieldValue}
|
|
998
|
+
</div>
|
|
999
|
+
);
|
|
1000
|
+
};
|
|
1001
|
+
const [editMode, setEditMode] = useState(true);
|
|
1002
|
+
|
|
1003
|
+
const PdfPreview = () => {
|
|
1004
|
+
const [pdfLoaded, setPdfLoaded] = useState(false);
|
|
1005
|
+
const [pdfError, setPdfError] = useState(null);
|
|
1006
|
+
|
|
1007
|
+
const viewerContainerRef = useRef(null);
|
|
1008
|
+
const pdfContainerRef = useRef(null);
|
|
1009
|
+
|
|
1010
|
+
const paperSize = React.useMemo(() => {
|
|
1011
|
+
if (!templateRef.current) return { width: 0, height: 0 };
|
|
1012
|
+
const [firstPage] = templatePdf.getPages();
|
|
1013
|
+
return {
|
|
1014
|
+
width: firstPage.getWidth(),
|
|
1015
|
+
height: firstPage.getHeight()
|
|
1016
|
+
};
|
|
1017
|
+
}, [templatePdf]);
|
|
1018
|
+
|
|
1019
|
+
return (
|
|
1020
|
+
<div className="relative w-full h-full">
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
{/* Main container with rulers */}
|
|
1025
|
+
<div
|
|
1026
|
+
ref={viewerContainerRef}
|
|
1027
|
+
className="absolute inset-0 bg-background overflow-auto"
|
|
1028
|
+
style={{
|
|
1029
|
+
position: 'relative',
|
|
1030
|
+
maxWidth: paperSize.width + RULER_HEIGHT,
|
|
1031
|
+
}}
|
|
1032
|
+
>
|
|
1033
|
+
{/* Fixed ruler container (won't move during drag) */}
|
|
1034
|
+
<div
|
|
1035
|
+
style={{
|
|
1036
|
+
position: 'sticky',
|
|
1037
|
+
top: 0,
|
|
1038
|
+
left: 0,
|
|
1039
|
+
width: '100%',
|
|
1040
|
+
height: RULER_HEIGHT,
|
|
1041
|
+
zIndex: 20,
|
|
1042
|
+
backgroundColor: '#09090b'
|
|
1043
|
+
}}
|
|
1044
|
+
>
|
|
1045
|
+
{/* Horizontal ruler */}
|
|
1046
|
+
<GuidesComponent
|
|
1047
|
+
type="horizontal"
|
|
1048
|
+
ref={horizontalRef}
|
|
1049
|
+
style={{
|
|
1050
|
+
left: RULER_HEIGHT,
|
|
1051
|
+
width: paperSize.width,
|
|
1052
|
+
height: RULER_HEIGHT
|
|
1053
|
+
}}
|
|
1054
|
+
/>
|
|
1055
|
+
</div>
|
|
1056
|
+
|
|
1057
|
+
{/* Content area with left ruler */}
|
|
1058
|
+
<div style={{ display: 'flex' }}>
|
|
1059
|
+
{/* Left ruler container (fixed) */}
|
|
1060
|
+
<div
|
|
1061
|
+
style={{
|
|
1062
|
+
position: 'sticky',
|
|
1063
|
+
left: 0,
|
|
1064
|
+
width: RULER_HEIGHT,
|
|
1065
|
+
height: paperSize.height,
|
|
1066
|
+
zIndex: 20,
|
|
1067
|
+
backgroundColor: '#09090b'
|
|
1068
|
+
}}
|
|
1069
|
+
>
|
|
1070
|
+
<GuidesComponent
|
|
1071
|
+
type="vertical"
|
|
1072
|
+
ref={verticalRef}
|
|
1073
|
+
style={{
|
|
1074
|
+
width: RULER_HEIGHT,
|
|
1075
|
+
height: paperSize.height
|
|
1076
|
+
}}
|
|
1077
|
+
/>
|
|
1078
|
+
</div>
|
|
1079
|
+
|
|
1080
|
+
{/* PDF content area */}
|
|
1081
|
+
<div
|
|
1082
|
+
style={{
|
|
1083
|
+
position: 'relative',
|
|
1084
|
+
width: paperSize.width,
|
|
1085
|
+
height: paperSize.height
|
|
1086
|
+
}}
|
|
1087
|
+
>
|
|
1088
|
+
<div
|
|
1089
|
+
ref={pdfContainerRef}
|
|
1090
|
+
className="relative bg-background shadow-lg"
|
|
1091
|
+
style={{
|
|
1092
|
+
width: '100%',
|
|
1093
|
+
height: '100%'
|
|
1094
|
+
}}
|
|
1095
|
+
>
|
|
1096
|
+
<object
|
|
1097
|
+
data={`${templateRef.current}#toolbar=0&navpanes=0&scrollbar=0&view=FitH`}
|
|
1098
|
+
type="application/pdf"
|
|
1099
|
+
className="w-full h-full"
|
|
1100
|
+
style={{ userSelect: 'none' }}
|
|
1101
|
+
onLoad={() => setPdfLoaded(true)}
|
|
1102
|
+
onError={() => setPdfError('Failed to load PDF')}
|
|
1103
|
+
>
|
|
1104
|
+
{/* Fallback content */}
|
|
1105
|
+
</object>
|
|
1106
|
+
|
|
1107
|
+
{/* Field overlays */}
|
|
1108
|
+
{template.schemas?.map((field, index) => (
|
|
1109
|
+
<FieldOverlayWithModes
|
|
1110
|
+
key={`${field.name}-${index}`}
|
|
1111
|
+
field={field}
|
|
1112
|
+
isSelected={selectedField?.name === field.name}
|
|
1113
|
+
onClick={handleFieldSelect}
|
|
1114
|
+
editMode={editMode}
|
|
1115
|
+
fieldValue={sampleData[field.name]}
|
|
1116
|
+
containerRef={pdfContainerRef}
|
|
1117
|
+
viewerContainerRef={viewerContainerRef}
|
|
1118
|
+
setTemplate={setTemplate}
|
|
1119
|
+
setSave={setSave}
|
|
1120
|
+
dimensions={dimensions}
|
|
1121
|
+
horizontalRef={horizontalRef}
|
|
1122
|
+
verticalRef={verticalRef}
|
|
1123
|
+
/>
|
|
1124
|
+
))}
|
|
1125
|
+
</div>
|
|
1126
|
+
</div>
|
|
1127
|
+
</div>
|
|
1128
|
+
</div>
|
|
1129
|
+
</div>
|
|
1130
|
+
);
|
|
1131
|
+
};
|
|
1132
|
+
const saveTemplate = () => {
|
|
1133
|
+
const getTemplate = {
|
|
1134
|
+
schemas: template.schemas,
|
|
1135
|
+
base: template.base,
|
|
1136
|
+
inputs: template.inputs
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
const jsonString = JSON.stringify(getTemplate, null, 2);
|
|
1140
|
+
|
|
1141
|
+
const blob = new Blob([jsonString], { type: "application/json" });
|
|
1142
|
+
|
|
1143
|
+
const url = URL.createObjectURL(blob);
|
|
1144
|
+
const a = document.createElement("a");
|
|
1145
|
+
a.href = url;
|
|
1146
|
+
a.download = "template.json"; // Set the filename
|
|
1147
|
+
|
|
1148
|
+
document.body.appendChild(a);
|
|
1149
|
+
a.click();
|
|
1150
|
+
|
|
1151
|
+
document.body.removeChild(a);
|
|
1152
|
+
URL.revokeObjectURL(url);
|
|
1153
|
+
|
|
1154
|
+
setSave(true); // Your existing state update
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
const onLoadTemplate = async (e) => {
|
|
1158
|
+
const file = e.target.files?.[0];
|
|
1159
|
+
if (!file) return;
|
|
1160
|
+
|
|
1161
|
+
try {
|
|
1162
|
+
// Read and parse the template file
|
|
1163
|
+
const fileText = await file.text();
|
|
1164
|
+
const templateData = JSON.parse(fileText);
|
|
1165
|
+
|
|
1166
|
+
// Handle the base PDF - this is where we need to be careful
|
|
1167
|
+
if (templateData.base && templateData.base.startsWith('data:application/pdf;base64,')) {
|
|
1168
|
+
try {
|
|
1169
|
+
const base64Data = templateData.base.split(',')[1];
|
|
1170
|
+
const arrayBuffer = Uint8Array.from(atob(base64Data), c => c.charCodeAt(0)).buffer;
|
|
1171
|
+
const pdfDoc = await PDFDocument.load(arrayBuffer);
|
|
1172
|
+
|
|
1173
|
+
// Get pages - we know there's at least one if it loaded successfully
|
|
1174
|
+
const pages = pdfDoc.getPages();
|
|
1175
|
+
const firstPage = pages[0]; // We can safely access index 0 here
|
|
1176
|
+
|
|
1177
|
+
setDimensions({
|
|
1178
|
+
pdfWidth: firstPage.getWidth(),
|
|
1179
|
+
pdfHeight: firstPage.getHeight()
|
|
1180
|
+
});
|
|
1181
|
+
|
|
1182
|
+
// Set the PDF reference
|
|
1183
|
+
templateRef.current = templateData.base;
|
|
1184
|
+
setTemplatePdf(pdfDoc);
|
|
1185
|
+
} catch (error) {
|
|
1186
|
+
console.error("Error processing PDF:", error);
|
|
1187
|
+
// Fallback to default dimensions
|
|
1188
|
+
setDimensions({
|
|
1189
|
+
pdfWidth: 550,
|
|
1190
|
+
pdfHeight: 750
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
// Set the template state - this is the crucial part
|
|
1196
|
+
setTemplate({
|
|
1197
|
+
schemas: templateData.schemas || [],
|
|
1198
|
+
inputs: templateData.inputs || [{}],
|
|
1199
|
+
base: templateData.base || '',
|
|
1200
|
+
baseUri: templateData.base || ''
|
|
1201
|
+
});
|
|
1202
|
+
|
|
1203
|
+
} catch (error) {
|
|
1204
|
+
console.error("Error loading template:", error);
|
|
1205
|
+
// Handle error (show message to user, etc.)
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
const [manageTemplate, setManageTemplate] = useState();
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
return (
|
|
1214
|
+
<div className="h-[100vh] text-foreground overflow-hidden">
|
|
1215
|
+
<h1 className='ml-4 mt-3'>PDF Template Builder</h1>
|
|
1216
|
+
|
|
1217
|
+
<div className="flex h-full gap-4">
|
|
1218
|
+
<div className="w-1/4 overflow-auto p-4">
|
|
1219
|
+
<div className="tabs">
|
|
1220
|
+
|
|
1221
|
+
<Tabs defaultValue="Edit">
|
|
1222
|
+
<TabsList>
|
|
1223
|
+
<TabsTrigger value="Edit">Edit</TabsTrigger>
|
|
1224
|
+
<TabsTrigger value="Fields">Fields</TabsTrigger>
|
|
1225
|
+
<TabsTrigger value="Templates">Templates</TabsTrigger>
|
|
1226
|
+
</TabsList>
|
|
1227
|
+
<TabsContent value="Edit">
|
|
1228
|
+
<div className="tab-content h-full">
|
|
1229
|
+
<div className="edit-tab grid gap-3">
|
|
1230
|
+
<Button
|
|
1231
|
+
variant='styled'
|
|
1232
|
+
onClick={() => fileInputRef.current?.click()}
|
|
1233
|
+
>
|
|
1234
|
+
Upload Base PDF
|
|
1235
|
+
</Button>
|
|
1236
|
+
<input
|
|
1237
|
+
ref={fileInputRef}
|
|
1238
|
+
type="file"
|
|
1239
|
+
accept=".pdf"
|
|
1240
|
+
onChange={handleFileUpload}
|
|
1241
|
+
style={{ display: 'none' }}
|
|
1242
|
+
/>
|
|
1243
|
+
<Button
|
|
1244
|
+
variant='styled'
|
|
1245
|
+
primary={false}
|
|
1246
|
+
onClick={() => templateInputRef.current?.click()}
|
|
1247
|
+
>
|
|
1248
|
+
Load Template
|
|
1249
|
+
</Button>
|
|
1250
|
+
<input
|
|
1251
|
+
ref={templateInputRef}
|
|
1252
|
+
type="file"
|
|
1253
|
+
accept=".json"
|
|
1254
|
+
onChange={onLoadTemplate}
|
|
1255
|
+
style={{ display: 'none' }}
|
|
1256
|
+
/>
|
|
1257
|
+
{template.base && (
|
|
1258
|
+
<>
|
|
1259
|
+
{isEditing ? (
|
|
1260
|
+
<div className="field-form grid gap-3">
|
|
1261
|
+
<div className="grid w-full max-w-sm items-center gap-3">
|
|
1262
|
+
<Label>Height</Label>
|
|
1263
|
+
<Input
|
|
1264
|
+
className='bg-background text-foreground rounded-none '
|
|
1265
|
+
value={height}
|
|
1266
|
+
onChange={(e) => setHeight(Number(e.target.value))}
|
|
1267
|
+
/>
|
|
1268
|
+
</div>
|
|
1269
|
+
<div className="grid w-full max-w-sm items-center gap-3">
|
|
1270
|
+
<Label>Width</Label>
|
|
1271
|
+
<Input
|
|
1272
|
+
className='bg-background text-foreground rounded-none '
|
|
1273
|
+
value={width}
|
|
1274
|
+
onChange={(e) => setWidth(Number(e.target.value))}
|
|
1275
|
+
/>
|
|
1276
|
+
</div>
|
|
1277
|
+
<Button
|
|
1278
|
+
variant='styled'
|
|
1279
|
+
onClick={() => updateField({
|
|
1280
|
+
...selectedField!,
|
|
1281
|
+
name: fieldName,
|
|
1282
|
+
type: fieldType,
|
|
1283
|
+
font: font,
|
|
1284
|
+
width: width,
|
|
1285
|
+
height: height,
|
|
1286
|
+
})}
|
|
1287
|
+
>
|
|
1288
|
+
Update Field
|
|
1289
|
+
</Button>
|
|
1290
|
+
<Button
|
|
1291
|
+
variant='styled'
|
|
1292
|
+
primary={false}
|
|
1293
|
+
onClick={() => {
|
|
1294
|
+
setActive('Fields')
|
|
1295
|
+
setIsEditing(false)
|
|
1296
|
+
setWidth(150)
|
|
1297
|
+
setHeight(20)
|
|
1298
|
+
}}
|
|
1299
|
+
>
|
|
1300
|
+
Back
|
|
1301
|
+
</Button>
|
|
1302
|
+
</div>
|
|
1303
|
+
) : (
|
|
1304
|
+
<div className='grid gap-3'>
|
|
1305
|
+
<div className="grid w-full max-w-sm items-center gap-3">
|
|
1306
|
+
<Label>Select A Type</Label>
|
|
1307
|
+
<select
|
|
1308
|
+
value={activeType}
|
|
1309
|
+
onChange={(e) => setActiveType(e.target.value as FieldType)}
|
|
1310
|
+
className="px-3 py-2 border rounded-none bg-background w-full"
|
|
1311
|
+
>
|
|
1312
|
+
<option value="BOS">BOS</option>
|
|
1313
|
+
<option value="Financing">Financing</option>
|
|
1314
|
+
<option value="Licensing">Licensing</option>
|
|
1315
|
+
<option value="Work Order">Work Order</option>
|
|
1316
|
+
<option value="Receipt">Receipt</option>
|
|
1317
|
+
<option value="End Of Day Report">End Of Day Report</option>
|
|
1318
|
+
<option value="Parts">Parts</option>
|
|
1319
|
+
</select>
|
|
1320
|
+
</div>
|
|
1321
|
+
<div className="grid w-full max-w-sm items-center gap-3">
|
|
1322
|
+
<Label>Select A Field</Label>
|
|
1323
|
+
<select
|
|
1324
|
+
value={fieldName}
|
|
1325
|
+
onChange={(e) => {
|
|
1326
|
+
e.persist();
|
|
1327
|
+
const selectedItem = dataArrays.find(item => item.name === e.target.value);
|
|
1328
|
+
if (selectedItem) {
|
|
1329
|
+
setFieldName(selectedItem.name);
|
|
1330
|
+
setFieldType(selectedItem.type);
|
|
1331
|
+
}
|
|
1332
|
+
}}
|
|
1333
|
+
className="px-3 py-2 border rounded-none bg-background w-full"
|
|
1334
|
+
>
|
|
1335
|
+
{dataArrays.map((item, index) => (
|
|
1336
|
+
<option key={index} value={item.name}>
|
|
1337
|
+
{item.placeholder}
|
|
1338
|
+
</option>
|
|
1339
|
+
))}
|
|
1340
|
+
</select>
|
|
1341
|
+
</div>
|
|
1342
|
+
<Button
|
|
1343
|
+
variant='styled'
|
|
1344
|
+
onClick={() => addField({
|
|
1345
|
+
type: fieldType,
|
|
1346
|
+
position: getDefaultPosition(templatePdf),
|
|
1347
|
+
width: width,
|
|
1348
|
+
height: height,
|
|
1349
|
+
fontSize: font
|
|
1350
|
+
})}
|
|
1351
|
+
>
|
|
1352
|
+
Add Field
|
|
1353
|
+
</Button>
|
|
1354
|
+
</div>
|
|
1355
|
+
)}
|
|
1356
|
+
<Button
|
|
1357
|
+
variant='styled'
|
|
1358
|
+
primary={false}
|
|
1359
|
+
onClick={() => setEditMode(!editMode)}
|
|
1360
|
+
>
|
|
1361
|
+
{editMode ? 'Preview Mode' : 'Edit Mode'}
|
|
1362
|
+
</Button>
|
|
1363
|
+
<AlertDialog>
|
|
1364
|
+
<AlertDialogTrigger asChild>
|
|
1365
|
+
<Button
|
|
1366
|
+
variant='styled'
|
|
1367
|
+
primary={false}
|
|
1368
|
+
>
|
|
1369
|
+
Save Template
|
|
1370
|
+
</Button>
|
|
1371
|
+
</AlertDialogTrigger>
|
|
1372
|
+
<AlertDialogContent>
|
|
1373
|
+
<AlertDialogHeader>
|
|
1374
|
+
<AlertDialogTitle></AlertDialogTitle>
|
|
1375
|
+
<AlertDialogDescription>
|
|
1376
|
+
<div className="grid w-full max-w-sm items-center gap-1.5">
|
|
1377
|
+
<Label>Name</Label>
|
|
1378
|
+
<Input value={templateName} onChange={(e) => {
|
|
1379
|
+
setTemplateName(e.currentTarget.value)
|
|
1380
|
+
}} />
|
|
1381
|
+
</div>
|
|
1382
|
+
<div className="grid w-full max-w-sm items-center gap-1.5">
|
|
1383
|
+
<Label>Dept</Label>
|
|
1384
|
+
<Select value={dept} onValueChange={(value) => {
|
|
1385
|
+
setDept(value)
|
|
1386
|
+
}}>
|
|
1387
|
+
<SelectTrigger >
|
|
1388
|
+
<SelectValue />
|
|
1389
|
+
</SelectTrigger>
|
|
1390
|
+
<SelectContent>
|
|
1391
|
+
<SelectItem value="Sales">Sales</SelectItem>
|
|
1392
|
+
<SelectItem value="Service">Service</SelectItem>
|
|
1393
|
+
<SelectItem value="PAC">PAC</SelectItem>
|
|
1394
|
+
<SelectItem value="Office">Office</SelectItem>
|
|
1395
|
+
</SelectContent>
|
|
1396
|
+
</Select>
|
|
1397
|
+
</div>
|
|
1398
|
+
</AlertDialogDescription>
|
|
1399
|
+
</AlertDialogHeader>
|
|
1400
|
+
<AlertDialogFooter>
|
|
1401
|
+
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
1402
|
+
<AlertDialogAction onClick={saveTemplate}>Continue</AlertDialogAction>
|
|
1403
|
+
</AlertDialogFooter>
|
|
1404
|
+
</AlertDialogContent>
|
|
1405
|
+
</AlertDialog>
|
|
1406
|
+
|
|
1407
|
+
<Button
|
|
1408
|
+
variant='styled'
|
|
1409
|
+
primary={false}
|
|
1410
|
+
onClick={() => {
|
|
1411
|
+
printTemplate()
|
|
1412
|
+
}}
|
|
1413
|
+
>
|
|
1414
|
+
Print Test PDF
|
|
1415
|
+
</Button>
|
|
1416
|
+
<Dialog>
|
|
1417
|
+
<DialogTrigger>
|
|
1418
|
+
<Button
|
|
1419
|
+
variant='styled' primary={false} >
|
|
1420
|
+
Save Template To Database
|
|
1421
|
+
</Button>
|
|
1422
|
+
</DialogTrigger>
|
|
1423
|
+
<DialogContent>
|
|
1424
|
+
<DialogHeader>
|
|
1425
|
+
<DialogTitle>Saving Template To Database</DialogTitle>
|
|
1426
|
+
</DialogHeader>
|
|
1427
|
+
<div className='grid gap-3'>
|
|
1428
|
+
<div className="grid w-full max-w-sm items-center gap-3">
|
|
1429
|
+
<Label>Name</Label>
|
|
1430
|
+
<Input value={templateName} onChange={(e) => { setTemplateName(e.currentTarget.value) }} />
|
|
1431
|
+
</div>
|
|
1432
|
+
<div className="grid w-full max-w-sm items-center gap-3">
|
|
1433
|
+
<Label>Name</Label>
|
|
1434
|
+
<Select value={dept} onValueChange={(value) => { setDept(value) }}>
|
|
1435
|
+
<SelectTrigger >
|
|
1436
|
+
<SelectValue />
|
|
1437
|
+
</SelectTrigger>
|
|
1438
|
+
<SelectContent>
|
|
1439
|
+
<SelectGroup>
|
|
1440
|
+
<SelectLabel>Depts</SelectLabel>
|
|
1441
|
+
<SelectItem value="Sales">Sales</SelectItem>
|
|
1442
|
+
<SelectItem value="Service">Service</SelectItem>
|
|
1443
|
+
<SelectItem value="Parts">Parts</SelectItem>
|
|
1444
|
+
<SelectItem value="Accessories">Accessories</SelectItem>
|
|
1445
|
+
<SelectItem value="Office">Office</SelectItem>
|
|
1446
|
+
<SelectItem value="Management">Management</SelectItem>
|
|
1447
|
+
</SelectGroup>
|
|
1448
|
+
</SelectContent>
|
|
1449
|
+
</Select>
|
|
1450
|
+
</div>
|
|
1451
|
+
</div>
|
|
1452
|
+
<DialogFooter className='grid gap-3'>
|
|
1453
|
+
<DialogClose asChild>
|
|
1454
|
+
<Button
|
|
1455
|
+
variant='styled' primary={false}>Cancel</Button>
|
|
1456
|
+
</DialogClose>
|
|
1457
|
+
<Button
|
|
1458
|
+
variant='styled'
|
|
1459
|
+
onClick={() => {
|
|
1460
|
+
const formData = new FormData();
|
|
1461
|
+
formData.append("name", templateName);
|
|
1462
|
+
formData.append("dept", dept);
|
|
1463
|
+
formData.append("template", JSON.stringify(template));
|
|
1464
|
+
formData.append("intent", "saveTemplate");
|
|
1465
|
+
fetcher.submit(formData, { method: "post" });
|
|
1466
|
+
|
|
1467
|
+
}} >Save changes</Button>
|
|
1468
|
+
</DialogFooter>
|
|
1469
|
+
</DialogContent>
|
|
1470
|
+
</Dialog>
|
|
1471
|
+
</>
|
|
1472
|
+
)}
|
|
1473
|
+
</div>
|
|
1474
|
+
</div>
|
|
1475
|
+
</TabsContent>
|
|
1476
|
+
<TabsContent value="Fields">
|
|
1477
|
+
<div className="edit-tab grid gap-3">
|
|
1478
|
+
<h3>Fields ({template.schemas.length})</h3>
|
|
1479
|
+
<div className="grid gap-2">
|
|
1480
|
+
{template.schemas.map((field, index) => (
|
|
1481
|
+
<div
|
|
1482
|
+
key={`field-${field.name}-${index}`}
|
|
1483
|
+
onClick={() => handleFieldSelect(field)}
|
|
1484
|
+
className={`p-3 border rounded-none cursor-pointer text-foreground bg-background ${selectedField?.name === field.name
|
|
1485
|
+
? 'bg-background border-blue-500'
|
|
1486
|
+
: 'hover:bg-background hover:text-foreground'
|
|
1487
|
+
}`}
|
|
1488
|
+
>
|
|
1489
|
+
<div className="font-semibold">{field.name}</div>
|
|
1490
|
+
<div className="text-sm text-foreground">
|
|
1491
|
+
Type: {field.type} | Size: {field.width}×{field.height}
|
|
1492
|
+
</div>
|
|
1493
|
+
<div className="text-xs text-foreground">
|
|
1494
|
+
Position: ({Math.round(field.position.x)}, {Math.round(field.position.y)})
|
|
1495
|
+
</div>
|
|
1496
|
+
</div>
|
|
1497
|
+
))}
|
|
1498
|
+
</div>
|
|
1499
|
+
{template.schemas.length === 0 && (
|
|
1500
|
+
<p className="text-foreground text-sm">No fields added yet</p>
|
|
1501
|
+
)}
|
|
1502
|
+
</div>
|
|
1503
|
+
</TabsContent>
|
|
1504
|
+
<TabsContent value="Templates" className='flex flex-col gap-3'>
|
|
1505
|
+
|
|
1506
|
+
<div className="grid w-full max-w-sm items-center gap-3">
|
|
1507
|
+
<Label>Templates</Label>
|
|
1508
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
1509
|
+
<PopoverTrigger asChild>
|
|
1510
|
+
<Button
|
|
1511
|
+
variant="outline"
|
|
1512
|
+
role="combobox"
|
|
1513
|
+
aria-expanded={open}
|
|
1514
|
+
className="w-[200px] justify-between"
|
|
1515
|
+
>
|
|
1516
|
+
{value
|
|
1517
|
+
? templates.find((t) => t.name === value.name)?.name
|
|
1518
|
+
: "Select template..."}
|
|
1519
|
+
<ChevronsUpDown className="opacity-50" />
|
|
1520
|
+
</Button>
|
|
1521
|
+
</PopoverTrigger>
|
|
1522
|
+
<PopoverContent className="w-[200px] p-0">
|
|
1523
|
+
<Command>
|
|
1524
|
+
<CommandInput placeholder="Search templates..." className="h-9" />
|
|
1525
|
+
<CommandList>
|
|
1526
|
+
<CommandEmpty>No template found.</CommandEmpty>
|
|
1527
|
+
<CommandGroup>
|
|
1528
|
+
{templates.map((t, index) => (
|
|
1529
|
+
<CommandItem
|
|
1530
|
+
key={index}
|
|
1531
|
+
value={t}
|
|
1532
|
+
onSelect={(currentValue) => {
|
|
1533
|
+
setValue(currentValue.name === value.name ? "" : currentValue)
|
|
1534
|
+
setManageTemplate(t)
|
|
1535
|
+
onLoadTemplateIntoDom(t.document)
|
|
1536
|
+
setTemplateName(t.name)
|
|
1537
|
+
setDept(t.dept)
|
|
1538
|
+
}}
|
|
1539
|
+
>
|
|
1540
|
+
{t.name}
|
|
1541
|
+
<Check
|
|
1542
|
+
className={cn(
|
|
1543
|
+
"ml-auto",
|
|
1544
|
+
value === t.value ? "opacity-100" : "opacity-0"
|
|
1545
|
+
)}
|
|
1546
|
+
/>
|
|
1547
|
+
</CommandItem>
|
|
1548
|
+
))}
|
|
1549
|
+
</CommandGroup>
|
|
1550
|
+
</CommandList>
|
|
1551
|
+
</Command>
|
|
1552
|
+
</PopoverContent>
|
|
1553
|
+
</Popover>
|
|
1554
|
+
</div>
|
|
1555
|
+
|
|
1556
|
+
{manageTemplate && manageTemplate.id && (<>
|
|
1557
|
+
<Button
|
|
1558
|
+
variant='styled' primary={false} onClick={() => {
|
|
1559
|
+
const formData = new FormData();
|
|
1560
|
+
formData.append("id", manageTemplate.id);
|
|
1561
|
+
formData.append("intent", "deleteTemplate");
|
|
1562
|
+
fetcher.submit(formData, { method: "post" });
|
|
1563
|
+
}}>
|
|
1564
|
+
Delete Current Template
|
|
1565
|
+
</Button>
|
|
1566
|
+
</>)}
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
</TabsContent>
|
|
1570
|
+
</Tabs>
|
|
1571
|
+
|
|
1572
|
+
</div>
|
|
1573
|
+
</div>
|
|
1574
|
+
|
|
1575
|
+
<div className="pdf-preview-container flex-1">
|
|
1576
|
+
{isPdfLoading ? (
|
|
1577
|
+
<GetLoading />
|
|
1578
|
+
) : templateRef.current ? (
|
|
1579
|
+
<PdfPreview />
|
|
1580
|
+
) : (
|
|
1581
|
+
<div className="flex items-center justify-center h-full">
|
|
1582
|
+
<p>Upload a PDF template to begin</p>
|
|
1583
|
+
</div>
|
|
1584
|
+
)}
|
|
1585
|
+
</div>
|
|
1586
|
+
</div>
|
|
1587
|
+
</div>
|
|
1588
|
+
);
|
|
1589
|
+
}
|
|
1590
|
+
|