@opentabs-dev/browser-extension 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/background-log-state.d.ts +10 -0
- package/dist/background-log-state.d.ts.map +1 -0
- package/dist/background-log-state.js +11 -0
- package/dist/background-log-state.js.map +1 -0
- package/dist/background-message-handlers.d.ts +41 -0
- package/dist/background-message-handlers.d.ts.map +1 -0
- package/dist/background-message-handlers.js +214 -0
- package/dist/background-message-handlers.js.map +1 -0
- package/dist/background.d.ts +2 -0
- package/dist/background.d.ts.map +1 -0
- package/dist/background.js +3780 -0
- package/dist/background.js.map +1 -0
- package/dist/bg-log-state.d.ts +10 -0
- package/dist/bg-log-state.d.ts.map +1 -0
- package/dist/bg-log-state.js +11 -0
- package/dist/bg-log-state.js.map +1 -0
- package/dist/browser-commands/content-commands.d.ts +25 -0
- package/dist/browser-commands/content-commands.d.ts.map +1 -0
- package/dist/browser-commands/content-commands.js +166 -0
- package/dist/browser-commands/content-commands.js.map +1 -0
- package/dist/browser-commands/cookie-commands.d.ts +14 -0
- package/dist/browser-commands/cookie-commands.d.ts.map +1 -0
- package/dist/browser-commands/cookie-commands.js +99 -0
- package/dist/browser-commands/cookie-commands.js.map +1 -0
- package/dist/browser-commands/extension-commands.d.ts +12 -0
- package/dist/browser-commands/extension-commands.d.ts.map +1 -0
- package/dist/browser-commands/extension-commands.js +386 -0
- package/dist/browser-commands/extension-commands.js.map +1 -0
- package/dist/browser-commands/helpers.d.ts +35 -0
- package/dist/browser-commands/helpers.d.ts.map +1 -0
- package/dist/browser-commands/helpers.js +121 -0
- package/dist/browser-commands/helpers.js.map +1 -0
- package/dist/browser-commands/index.d.ts +11 -0
- package/dist/browser-commands/index.d.ts.map +1 -0
- package/dist/browser-commands/index.js +10 -0
- package/dist/browser-commands/index.js.map +1 -0
- package/dist/browser-commands/interaction-commands.d.ts +23 -0
- package/dist/browser-commands/interaction-commands.d.ts.map +1 -0
- package/dist/browser-commands/interaction-commands.js +353 -0
- package/dist/browser-commands/interaction-commands.js.map +1 -0
- package/dist/browser-commands/key-press-command.d.ts +2 -0
- package/dist/browser-commands/key-press-command.d.ts.map +1 -0
- package/dist/browser-commands/key-press-command.js +144 -0
- package/dist/browser-commands/key-press-command.js.map +1 -0
- package/dist/browser-commands/network-commands.d.ts +6 -0
- package/dist/browser-commands/network-commands.d.ts.map +1 -0
- package/dist/browser-commands/network-commands.js +69 -0
- package/dist/browser-commands/network-commands.js.map +1 -0
- package/dist/browser-commands/resource-commands.d.ts +37 -0
- package/dist/browser-commands/resource-commands.d.ts.map +1 -0
- package/dist/browser-commands/resource-commands.js +153 -0
- package/dist/browser-commands/resource-commands.js.map +1 -0
- package/dist/browser-commands/scroll-command.d.ts +2 -0
- package/dist/browser-commands/scroll-command.d.ts.map +1 -0
- package/dist/browser-commands/scroll-command.js +133 -0
- package/dist/browser-commands/scroll-command.js.map +1 -0
- package/dist/browser-commands/tab-commands.d.ts +33 -0
- package/dist/browser-commands/tab-commands.d.ts.map +1 -0
- package/dist/browser-commands/tab-commands.js +121 -0
- package/dist/browser-commands/tab-commands.js.map +1 -0
- package/dist/browser-commands.d.ts +36 -0
- package/dist/browser-commands.d.ts.map +1 -0
- package/dist/browser-commands.js +1931 -0
- package/dist/browser-commands.js.map +1 -0
- package/dist/confirmation-badge.d.ts +17 -0
- package/dist/confirmation-badge.d.ts.map +1 -0
- package/dist/confirmation-badge.js +64 -0
- package/dist/confirmation-badge.js.map +1 -0
- package/dist/constants.d.ts +79 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +79 -0
- package/dist/constants.js.map +1 -0
- package/dist/dispatch-helpers.d.ts +61 -0
- package/dist/dispatch-helpers.d.ts.map +1 -0
- package/dist/dispatch-helpers.js +149 -0
- package/dist/dispatch-helpers.js.map +1 -0
- package/dist/extension-messages.d.ts +146 -0
- package/dist/extension-messages.d.ts.map +1 -0
- package/dist/extension-messages.js +2 -0
- package/dist/extension-messages.js.map +1 -0
- package/dist/iife-injection.d.ts +55 -0
- package/dist/iife-injection.d.ts.map +1 -0
- package/dist/iife-injection.js +474 -0
- package/dist/iife-injection.js.map +1 -0
- package/dist/json-rpc-errors.d.ts +8 -0
- package/dist/json-rpc-errors.d.ts.map +1 -0
- package/dist/json-rpc-errors.js +8 -0
- package/dist/json-rpc-errors.js.map +1 -0
- package/dist/known-methods.d.ts +19 -0
- package/dist/known-methods.d.ts.map +1 -0
- package/dist/known-methods.js +68 -0
- package/dist/known-methods.js.map +1 -0
- package/dist/log-collector.d.ts +45 -0
- package/dist/log-collector.d.ts.map +1 -0
- package/dist/log-collector.js +99 -0
- package/dist/log-collector.js.map +1 -0
- package/dist/message-router.d.ts +28 -0
- package/dist/message-router.d.ts.map +1 -0
- package/dist/message-router.js +367 -0
- package/dist/message-router.js.map +1 -0
- package/dist/messaging.d.ts +15 -0
- package/dist/messaging.d.ts.map +1 -0
- package/dist/messaging.js +41 -0
- package/dist/messaging.js.map +1 -0
- package/dist/network-capture.d.ts +56 -0
- package/dist/network-capture.d.ts.map +1 -0
- package/dist/network-capture.js +374 -0
- package/dist/network-capture.js.map +1 -0
- package/dist/offscreen/index.d.ts +16 -0
- package/dist/offscreen/index.d.ts.map +1 -0
- package/dist/offscreen/index.js +549 -0
- package/dist/offscreen/index.js.map +1 -0
- package/dist/plugin-storage.d.ts +19 -0
- package/dist/plugin-storage.d.ts.map +1 -0
- package/dist/plugin-storage.js +100 -0
- package/dist/plugin-storage.js.map +1 -0
- package/dist/rate-limiter.d.ts +18 -0
- package/dist/rate-limiter.d.ts.map +1 -0
- package/dist/rate-limiter.js +53 -0
- package/dist/rate-limiter.js.map +1 -0
- package/dist/resource-prompt-dispatch.d.ts +14 -0
- package/dist/resource-prompt-dispatch.d.ts.map +1 -0
- package/dist/resource-prompt-dispatch.js +195 -0
- package/dist/resource-prompt-dispatch.js.map +1 -0
- package/dist/sanitize-error.d.ts +8 -0
- package/dist/sanitize-error.d.ts.map +1 -0
- package/dist/sanitize-error.js +25 -0
- package/dist/sanitize-error.js.map +1 -0
- package/dist/sanitize-svg.d.ts +20 -0
- package/dist/sanitize-svg.d.ts.map +1 -0
- package/dist/sanitize-svg.js +296 -0
- package/dist/sanitize-svg.js.map +1 -0
- package/dist/side-panel/App.d.ts +3 -0
- package/dist/side-panel/App.d.ts.map +1 -0
- package/dist/side-panel/App.js +147 -0
- package/dist/side-panel/App.js.map +1 -0
- package/dist/side-panel/bridge.d.ts +50 -0
- package/dist/side-panel/bridge.d.ts.map +1 -0
- package/dist/side-panel/bridge.js +113 -0
- package/dist/side-panel/bridge.js.map +1 -0
- package/dist/side-panel/components/ConfirmationDialog.d.ts +16 -0
- package/dist/side-panel/components/ConfirmationDialog.d.ts.map +1 -0
- package/dist/side-panel/components/ConfirmationDialog.js +39 -0
- package/dist/side-panel/components/ConfirmationDialog.js.map +1 -0
- package/dist/side-panel/components/EmptyStates.d.ts +8 -0
- package/dist/side-panel/components/EmptyStates.d.ts.map +1 -0
- package/dist/side-panel/components/EmptyStates.js +40 -0
- package/dist/side-panel/components/EmptyStates.js.map +1 -0
- package/dist/side-panel/components/ErrorBoundary.d.ts +23 -0
- package/dist/side-panel/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/side-panel/components/ErrorBoundary.js +28 -0
- package/dist/side-panel/components/ErrorBoundary.js.map +1 -0
- package/dist/side-panel/components/FailedPluginCard.d.ts +6 -0
- package/dist/side-panel/components/FailedPluginCard.d.ts.map +1 -0
- package/dist/side-panel/components/FailedPluginCard.js +9 -0
- package/dist/side-panel/components/FailedPluginCard.js.map +1 -0
- package/dist/side-panel/components/Footer.d.ts +3 -0
- package/dist/side-panel/components/Footer.d.ts.map +1 -0
- package/dist/side-panel/components/Footer.js +32 -0
- package/dist/side-panel/components/Footer.js.map +1 -0
- package/dist/side-panel/components/Header.d.ts +5 -0
- package/dist/side-panel/components/Header.d.ts.map +1 -0
- package/dist/side-panel/components/Header.js +6 -0
- package/dist/side-panel/components/Header.js.map +1 -0
- package/dist/side-panel/components/PluginCard.d.ts +10 -0
- package/dist/side-panel/components/PluginCard.d.ts.map +1 -0
- package/dist/side-panel/components/PluginCard.js +50 -0
- package/dist/side-panel/components/PluginCard.js.map +1 -0
- package/dist/side-panel/components/PluginIcon.d.ts +21 -0
- package/dist/side-panel/components/PluginIcon.d.ts.map +1 -0
- package/dist/side-panel/components/PluginIcon.js +48 -0
- package/dist/side-panel/components/PluginIcon.js.map +1 -0
- package/dist/side-panel/components/PluginList.d.ts +11 -0
- package/dist/side-panel/components/PluginList.d.ts.map +1 -0
- package/dist/side-panel/components/PluginList.js +17 -0
- package/dist/side-panel/components/PluginList.js.map +1 -0
- package/dist/side-panel/components/ToolIcon.d.ts +7 -0
- package/dist/side-panel/components/ToolIcon.d.ts.map +1 -0
- package/dist/side-panel/components/ToolIcon.js +8 -0
- package/dist/side-panel/components/ToolIcon.js.map +1 -0
- package/dist/side-panel/components/ToolRow.d.ts +11 -0
- package/dist/side-panel/components/ToolRow.d.ts.map +1 -0
- package/dist/side-panel/components/ToolRow.js +8 -0
- package/dist/side-panel/components/ToolRow.js.map +1 -0
- package/dist/side-panel/components/VersionMismatchBanner.d.ts +3 -0
- package/dist/side-panel/components/VersionMismatchBanner.d.ts.map +1 -0
- package/dist/side-panel/components/VersionMismatchBanner.js +5 -0
- package/dist/side-panel/components/VersionMismatchBanner.js.map +1 -0
- package/dist/side-panel/components/retro/Accordion.d.ts +8 -0
- package/dist/side-panel/components/retro/Accordion.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Accordion.js +15 -0
- package/dist/side-panel/components/retro/Accordion.js.map +1 -0
- package/dist/side-panel/components/retro/Alert.d.ts +25 -0
- package/dist/side-panel/components/retro/Alert.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Alert.js +33 -0
- package/dist/side-panel/components/retro/Alert.js.map +1 -0
- package/dist/side-panel/components/retro/Badge.d.ts +15 -0
- package/dist/side-panel/components/retro/Badge.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Badge.js +23 -0
- package/dist/side-panel/components/retro/Badge.js.map +1 -0
- package/dist/side-panel/components/retro/Button.d.ts +13 -0
- package/dist/side-panel/components/retro/Button.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Button.js +33 -0
- package/dist/side-panel/components/retro/Button.js.map +1 -0
- package/dist/side-panel/components/retro/Empty.d.ts +31 -0
- package/dist/side-panel/components/retro/Empty.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Empty.js +25 -0
- package/dist/side-panel/components/retro/Empty.js.map +1 -0
- package/dist/side-panel/components/retro/Input.d.ts +8 -0
- package/dist/side-panel/components/retro/Input.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Input.js +7 -0
- package/dist/side-panel/components/retro/Input.js.map +1 -0
- package/dist/side-panel/components/retro/Loader.d.ts +14 -0
- package/dist/side-panel/components/retro/Loader.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Loader.js +30 -0
- package/dist/side-panel/components/retro/Loader.js.map +1 -0
- package/dist/side-panel/components/retro/Menu.d.ts +9 -0
- package/dist/side-panel/components/retro/Menu.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Menu.js +17 -0
- package/dist/side-panel/components/retro/Menu.js.map +1 -0
- package/dist/side-panel/components/retro/NumberStepper.d.ts +18 -0
- package/dist/side-panel/components/retro/NumberStepper.d.ts.map +1 -0
- package/dist/side-panel/components/retro/NumberStepper.js +38 -0
- package/dist/side-panel/components/retro/NumberStepper.js.map +1 -0
- package/dist/side-panel/components/retro/Progress.d.ts +9 -0
- package/dist/side-panel/components/retro/Progress.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Progress.js +6 -0
- package/dist/side-panel/components/retro/Progress.js.map +1 -0
- package/dist/side-panel/components/retro/Switch.d.ts +4 -0
- package/dist/side-panel/components/retro/Switch.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Switch.js +6 -0
- package/dist/side-panel/components/retro/Switch.js.map +1 -0
- package/dist/side-panel/components/retro/Text.d.ts +11 -0
- package/dist/side-panel/components/retro/Text.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Text.js +28 -0
- package/dist/side-panel/components/retro/Text.js.map +1 -0
- package/dist/side-panel/components/retro/Tooltip.d.ts +12 -0
- package/dist/side-panel/components/retro/Tooltip.d.ts.map +1 -0
- package/dist/side-panel/components/retro/Tooltip.js +32 -0
- package/dist/side-panel/components/retro/Tooltip.js.map +1 -0
- package/dist/side-panel/constants.d.ts +5 -0
- package/dist/side-panel/constants.d.ts.map +1 -0
- package/dist/side-panel/constants.js +5 -0
- package/dist/side-panel/constants.js.map +1 -0
- package/dist/side-panel/hooks/useServerNotifications.d.ts +21 -0
- package/dist/side-panel/hooks/useServerNotifications.d.ts.map +1 -0
- package/dist/side-panel/hooks/useServerNotifications.js +93 -0
- package/dist/side-panel/hooks/useServerNotifications.js.map +1 -0
- package/dist/side-panel/hooks/useTheme.d.ts +8 -0
- package/dist/side-panel/hooks/useTheme.d.ts.map +1 -0
- package/dist/side-panel/hooks/useTheme.js +30 -0
- package/dist/side-panel/hooks/useTheme.js.map +1 -0
- package/dist/side-panel/index.d.ts +2 -0
- package/dist/side-panel/index.d.ts.map +1 -0
- package/dist/side-panel/index.js +12 -0
- package/dist/side-panel/index.js.map +1 -0
- package/dist/side-panel/lib/cn.d.ts +3 -0
- package/dist/side-panel/lib/cn.d.ts.map +1 -0
- package/dist/side-panel/lib/cn.js +4 -0
- package/dist/side-panel/lib/cn.js.map +1 -0
- package/dist/side-panel/lib/utils.d.ts +3 -0
- package/dist/side-panel/lib/utils.d.ts.map +1 -0
- package/dist/side-panel/lib/utils.js +4 -0
- package/dist/side-panel/lib/utils.js.map +1 -0
- package/dist/side-panel/side-panel.js +78034 -0
- package/dist/side-panel/styles.css +2 -0
- package/dist/side-panel-state.d.ts +11 -0
- package/dist/side-panel-state.d.ts.map +1 -0
- package/dist/side-panel-state.js +38 -0
- package/dist/side-panel-state.js.map +1 -0
- package/dist/side-panel-toggle.d.ts +3 -0
- package/dist/side-panel-toggle.d.ts.map +1 -0
- package/dist/side-panel-toggle.js +31 -0
- package/dist/side-panel-toggle.js.map +1 -0
- package/dist/tab-matching.d.ts +51 -0
- package/dist/tab-matching.d.ts.map +1 -0
- package/dist/tab-matching.js +160 -0
- package/dist/tab-matching.js.map +1 -0
- package/dist/tab-state.d.ts +56 -0
- package/dist/tab-state.d.ts.map +1 -0
- package/dist/tab-state.js +282 -0
- package/dist/tab-state.js.map +1 -0
- package/dist/tool-dispatch.d.ts +19 -0
- package/dist/tool-dispatch.d.ts.map +1 -0
- package/dist/tool-dispatch.js +336 -0
- package/dist/tool-dispatch.js.map +1 -0
- package/dist/types.d.ts +82 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/icons/icon-128.png +0 -0
- package/icons/icon-16.png +0 -0
- package/icons/icon-32.png +0 -0
- package/icons/icon-48.png +0 -0
- package/icons/icon.svg +6 -0
- package/manifest.json +38 -0
- package/offscreen/offscreen.html +10 -0
- package/package.json +49 -0
- package/side-panel/dark-mode.js +29 -0
- package/side-panel/fonts/archivo-black-latin.woff2 +0 -0
- package/side-panel/fonts/space-grotesk-latin.woff2 +0 -0
- package/side-panel/fonts/space-mono-400-latin.woff2 +0 -0
- package/side-panel/fonts/space-mono-700-latin.woff2 +0 -0
- package/side-panel/fonts.css +34 -0
- package/side-panel/side-panel.html +16 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionMismatchBanner.d.ts","sourceRoot":"","sources":["../../../src/side-panel/components/VersionMismatchBanner.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB,+CAK1B,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Alert } from './retro/Alert.js';
|
|
3
|
+
const VersionMismatchBanner = () => (_jsxs(Alert, { status: "warning", children: [_jsx(Alert.Title, { children: "Version Mismatch" }), _jsx(Alert.Description, { children: "Restart the MCP server for best results." })] }));
|
|
4
|
+
export { VersionMismatchBanner };
|
|
5
|
+
//# sourceMappingURL=VersionMismatchBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionMismatchBanner.js","sourceRoot":"","sources":["../../../src/side-panel/components/VersionMismatchBanner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAAC,CAClC,MAAC,KAAK,IAAC,MAAM,EAAC,SAAS,aACrB,KAAC,KAAK,CAAC,KAAK,mCAA+B,EAC3C,KAAC,KAAK,CAAC,WAAW,2DAA6D,IACzE,CACT,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const AccordionComponent: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Item: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Content: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
};
|
|
7
|
+
export { AccordionComponent as Accordion };
|
|
8
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Accordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiC/B,QAAA,MAAM,kBAAkB;;;CAGtB,CAAC;AAEH,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
const Accordion = AccordionPrimitive.Root;
|
|
6
|
+
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(AccordionPrimitive.Item, { ref: ref, className: cn('bg-background text-foreground overflow-hidden rounded border-2 shadow-md transition-all hover:shadow-sm data-[state=open]:shadow-sm', className), ...props })));
|
|
7
|
+
AccordionItem.displayName = AccordionPrimitive.Item.displayName;
|
|
8
|
+
const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(AccordionPrimitive.Content, { ref: ref, className: "data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up bg-card text-card-foreground overflow-hidden font-sans", ...props, children: _jsx("div", { className: cn(className), children: children }) })));
|
|
9
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
10
|
+
const AccordionComponent = Object.assign(Accordion, {
|
|
11
|
+
Item: AccordionItem,
|
|
12
|
+
Content: AccordionContent,
|
|
13
|
+
});
|
|
14
|
+
export { AccordionComponent as Accordion };
|
|
15
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Accordion.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,SAAS,GAAG,kBAAkB,CAAC,IAAI,CAAC;AAE1C,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,kBAAkB,CAAC,IAAI,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,qIAAqI,EACrI,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;AAEhE,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAGvC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5C,KAAC,kBAAkB,CAAC,OAAO,IACzB,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,0IAA0I,KAChJ,KAAK,YACT,cAAK,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAAG,QAAQ,GAAO,GACpB,CAC9B,CAAC,CAAC;AAEH,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC;AAEtE,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IAClD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,gBAAgB;CAC1B,CAAC,CAAC;AAEH,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { HtmlHTMLAttributes } from 'react';
|
|
3
|
+
declare const alertVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "solid" | null | undefined;
|
|
5
|
+
status?: "error" | "info" | "success" | "warning" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface IAlertProps extends HtmlHTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
8
|
+
}
|
|
9
|
+
type IAlertTitleProps = HtmlHTMLAttributes<HTMLHeadingElement>;
|
|
10
|
+
type IAlertDescriptionProps = HtmlHTMLAttributes<HTMLParagraphElement>;
|
|
11
|
+
declare const AlertComponent: {
|
|
12
|
+
({ className, variant, status, ...props }: IAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
} & {
|
|
15
|
+
Title: {
|
|
16
|
+
({ className, ...props }: IAlertTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
Description: {
|
|
20
|
+
({ className, ...props }: IAlertDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export { AlertComponent as Alert };
|
|
25
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAEhD,QAAA,MAAM,aAAa;;;8EAgBjB,CAAC;AAEH,UAAU,WAAY,SAAQ,kBAAkB,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAOvG,KAAK,gBAAgB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;AAI/D,KAAK,sBAAsB,GAAG,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;AAOvE,QAAA,MAAM,cAAc;+CAhBqC,WAAW;;;;kCAMvB,gBAAgB;;;;kCAIV,sBAAsB;;;CASvE,CAAC;AAEH,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from './Text';
|
|
3
|
+
import { cn } from '../../lib/cn';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
const alertVariants = cva('relative w-full rounded border-2 p-4', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: 'bg-background text-foreground [&_svg]:shrink-0',
|
|
9
|
+
solid: 'bg-foreground text-background',
|
|
10
|
+
},
|
|
11
|
+
status: {
|
|
12
|
+
error: 'bg-destructive/20 text-destructive border-destructive',
|
|
13
|
+
success: 'bg-success/20 text-success border-success',
|
|
14
|
+
warning: 'bg-accent text-accent-foreground border-accent-foreground',
|
|
15
|
+
info: 'bg-muted text-muted-foreground border-muted-foreground',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: 'default',
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
const Alert = ({ className, variant, status, ...props }) => (_jsx("div", { role: "alert", className: cn(alertVariants({ variant, status }), className), ...props }));
|
|
23
|
+
Alert.displayName = 'Alert';
|
|
24
|
+
const AlertTitle = ({ className, ...props }) => _jsx(Text, { as: "h5", className: cn(className), ...props });
|
|
25
|
+
AlertTitle.displayName = 'AlertTitle';
|
|
26
|
+
const AlertDescription = ({ className, ...props }) => (_jsx("div", { className: cn('text-muted-foreground', className), ...props }));
|
|
27
|
+
AlertDescription.displayName = 'AlertDescription';
|
|
28
|
+
const AlertComponent = Object.assign(Alert, {
|
|
29
|
+
Title: AlertTitle,
|
|
30
|
+
Description: AlertDescription,
|
|
31
|
+
});
|
|
32
|
+
export { AlertComponent as Alert };
|
|
33
|
+
//# sourceMappingURL=Alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/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AAI,CACtE,CAAC;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;IAC1C,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAEH,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface IBadgeProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare const Badge: {
|
|
10
|
+
({ className, variant, size, ...props }: IBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export { badgeVariants, Badge };
|
|
14
|
+
export type { IBadgeProps };
|
|
15
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,QAAA,MAAM,aAAa;;;8EAejB,CAAC;AAEH,UAAU,WAAY,SAAQ,cAAc,CAAC,eAAe,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEpG,QAAA,MAAM,KAAK;6CAA4C,WAAW;;CAEjE,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
const badgeVariants = cva('inline-block rounded font-medium leading-none', {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: 'bg-muted text-muted-foreground',
|
|
8
|
+
outline: 'border border-current bg-transparent',
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
sm: 'px-1 py-0.5 text-[9px]',
|
|
12
|
+
md: 'px-1.5 py-0.5 text-[10px]',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: 'default',
|
|
17
|
+
size: 'md',
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const Badge = ({ className, variant, size, ...props }) => (_jsx("span", { className: cn(badgeVariants({ variant, size }), className), ...props }));
|
|
21
|
+
Badge.displayName = 'Badge';
|
|
22
|
+
export { badgeVariants, Badge };
|
|
23
|
+
//# sourceMappingURL=Badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Badge.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAI/C,MAAM,aAAa,GAAG,GAAG,CAAC,+CAA+C,EAAE;IACzE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,gCAAgC;YACzC,OAAO,EAAE,sCAAsC;SAChD;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,wBAAwB;YAC5B,EAAE,EAAE,2BAA2B;SAChC;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAIH,MAAM,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAe,EAAE,EAAE,CAAC,CACrE,eAAM,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAChF,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "icon" | "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: import("react").ForwardRefExoticComponent<IButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { buttonVariants, Button };
|
|
12
|
+
export type { IButtonProps };
|
|
13
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElD,QAAA,MAAM,cAAc;;;8EA0BnB,CAAC;AAEF,UAAU,YAAa,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACzG,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,4GAYX,CAAC;AAIF,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;AAClC,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
const buttonVariants = cva('font-head transition-all rounded outline-hidden cursor-pointer duration-200 font-medium flex justify-center items-center disabled:opacity-60 disabled:cursor-not-allowed', {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: 'shadow-md hover:shadow active:shadow-none bg-primary text-primary-foreground border-2 border-border transition hover:translate-y-1 active:translate-y-2 active:translate-x-1 hover:bg-primary-hover',
|
|
10
|
+
secondary: 'shadow-md hover:shadow active:shadow-none bg-secondary shadow-primary text-secondary-foreground border-2 border-border transition hover:translate-y-1 active:translate-y-2 active:translate-x-1 hover:bg-secondary-hover',
|
|
11
|
+
outline: 'shadow-md hover:shadow active:shadow-none bg-transparent border-2 transition hover:translate-y-1 active:translate-y-2 active:translate-x-1',
|
|
12
|
+
link: 'bg-transparent hover:underline',
|
|
13
|
+
ghost: 'bg-transparent hover:bg-accent',
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
sm: 'px-3 py-1 text-sm shadow hover:shadow-none',
|
|
17
|
+
md: 'px-4 py-1.5 text-base',
|
|
18
|
+
lg: 'px-6 lg:px-8 py-2 lg:py-3 text-md lg:text-lg',
|
|
19
|
+
icon: 'p-2',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
size: 'md',
|
|
24
|
+
variant: 'default',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
const Button = forwardRef(({ children, size = 'md', className = '', variant = 'default', asChild = false, ...props }, forwardedRef) => {
|
|
28
|
+
const Comp = asChild ? Slot : 'button';
|
|
29
|
+
return (_jsx(Comp, { ref: forwardedRef, className: cn(buttonVariants({ variant, size }), className), ...props, children: children }));
|
|
30
|
+
});
|
|
31
|
+
Button.displayName = 'Button';
|
|
32
|
+
export { buttonVariants, Button };
|
|
33
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,MAAM,cAAc,GAAG,GAAG,CACxB,0KAA0K,EAC1K;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,qMAAqM;YACvM,SAAS,EACP,0NAA0N;YAC5N,OAAO,EACL,4IAA4I;YAC9I,IAAI,EAAE,gCAAgC;YACtC,KAAK,EAAE,gCAAgC;SACxC;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,4CAA4C;YAChD,EAAE,EAAE,uBAAuB;YAC3B,EAAE,EAAE,8CAA8C;YAClD,IAAI,EAAE,KAAK;SACZ;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,SAAS;KACnB;CACF,CACF,CAAC;AAMF,MAAM,MAAM,GAAG,UAAU,CACvB,CACE,EAAE,QAAQ,EAAE,IAAI,GAAG,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,EAAgB,EACvG,YAAY,EACZ,EAAE;IACF,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvC,OAAO,CACL,KAAC,IAAI,IAAC,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,KAAM,KAAK,YAC5F,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
interface IEmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const EmptyComponent: {
|
|
6
|
+
({ className, ...props }: IEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
} & {
|
|
9
|
+
Content: {
|
|
10
|
+
({ className, ...props }: IEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
Icon: {
|
|
14
|
+
({ children, className, ...props }: IEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
Title: {
|
|
18
|
+
({ className, ...props }: IEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
Separator: {
|
|
22
|
+
({ className, ...props }: IEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
Description: {
|
|
26
|
+
({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export { EmptyComponent as Empty };
|
|
31
|
+
//# sourceMappingURL=Empty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Empty.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Empty.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAwCD,QAAA,MAAM,cAAc;8BAtCoB,WAAW;;;;kCAWJ,WAAW;;;;4CAKJ,WAAW;;;;kCAOpB,WAAW;;;;kCAKP,WAAW;;;;kCAKT,cAAc,CAAC,oBAAoB,CAAC;;;CAWrF,CAAC;AAEH,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from './Text';
|
|
3
|
+
import { cn } from '../../lib/cn';
|
|
4
|
+
import { Ghost } from 'lucide-react';
|
|
5
|
+
const Empty = ({ className, ...props }) => (_jsx("div", { className: cn('bg-card flex flex-col items-center justify-center rounded border-2 p-4 text-center shadow-md transition-all hover:shadow-none md:p-8', className), ...props }));
|
|
6
|
+
Empty.displayName = 'Empty';
|
|
7
|
+
const EmptyContent = ({ className, ...props }) => (_jsx("div", { className: cn('flex flex-col items-center gap-3', className), ...props }));
|
|
8
|
+
EmptyContent.displayName = 'Empty.Content';
|
|
9
|
+
const EmptyIcon = ({ children, className, ...props }) => (_jsx("div", { className: cn(className), ...props, children: children || _jsx(Ghost, { className: "h-full w-full" }) }));
|
|
10
|
+
EmptyIcon.displayName = 'Empty.Icon';
|
|
11
|
+
const EmptyTitle = ({ className, ...props }) => (_jsx(Text, { as: "h3", className: cn('text-lg font-bold md:text-2xl', className), ...props }));
|
|
12
|
+
EmptyTitle.displayName = 'Empty.Title';
|
|
13
|
+
const EmptySeparator = ({ className, ...props }) => (_jsx("div", { role: "separator", className: cn('bg-primary h-1 w-16', className), ...props }));
|
|
14
|
+
EmptySeparator.displayName = 'Empty.Separator';
|
|
15
|
+
const EmptyDescription = ({ className, ...props }) => (_jsx("p", { className: cn('text-muted-foreground max-w-[320px]', className), ...props }));
|
|
16
|
+
EmptyDescription.displayName = 'Empty.Description';
|
|
17
|
+
const EmptyComponent = Object.assign(Empty, {
|
|
18
|
+
Content: EmptyContent,
|
|
19
|
+
Icon: EmptyIcon,
|
|
20
|
+
Title: EmptyTitle,
|
|
21
|
+
Separator: EmptySeparator,
|
|
22
|
+
Description: EmptyDescription,
|
|
23
|
+
});
|
|
24
|
+
export { EmptyComponent as Empty };
|
|
25
|
+
//# sourceMappingURL=Empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Empty.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Empty.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAOrC,MAAM,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAe,EAAE,EAAE,CAAC,CACtD,cACE,SAAS,EAAE,EAAE,CACX,sIAAsI,EACtI,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,YAAY,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAe,EAAE,EAAE,CAAC,CAC7D,cAAK,SAAS,EAAE,EAAE,CAAC,kCAAkC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI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,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAEH,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { Input };
|
|
7
|
+
export type { InputProps };
|
|
8
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,UAAU,UAAW,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,KAAK,yGAeV,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
const Input = forwardRef(({ type = 'text', placeholder = 'Enter text', className, 'aria-invalid': ariaInvalid, ...props }, ref) => (_jsx("input", { ref: ref, type: type, placeholder: placeholder, "aria-invalid": ariaInvalid, className: cn('w-full rounded border-2 px-4 py-2 shadow-md transition focus:shadow-xs focus:outline-hidden', ariaInvalid && 'border-destructive text-destructive shadow-destructive shadow-xs', className), ...props })));
|
|
5
|
+
Input.displayName = 'Input';
|
|
6
|
+
export { Input };
|
|
7
|
+
//# sourceMappingURL=Input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOnC,MAAM,KAAK,GAAG,UAAU,CACtB,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,WAAW,GAAG,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACxG,gBACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,kBACV,WAAW,EACzB,SAAS,EAAE,EAAE,CACX,6FAA6F,EAC7F,WAAW,IAAI,kEAAkE,EACjF,SAAS,CACV,KACG,KAAK,GACT,CACH,CACF,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const loaderVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "secondary" | "outline" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface LoaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, VariantProps<typeof loaderVariants> {
|
|
8
|
+
count?: number;
|
|
9
|
+
duration?: number;
|
|
10
|
+
delayStep?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const Loader: React.ForwardRefExoticComponent<LoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Loader };
|
|
14
|
+
//# sourceMappingURL=Loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Loader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,QAAA,MAAM,cAAc;;;8EAiBlB,CAAC;AAEH,UAAU,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACpH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,oFAqBX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
const loaderVariants = cva('flex gap-1', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: '[&>div]:bg-primary [&>div]:border-border',
|
|
9
|
+
secondary: '[&>div]:bg-secondary [&>div]:border-border',
|
|
10
|
+
outline: '[&>div]:bg-transparent [&>div]:border-border',
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
sm: '[&>div]:w-2 [&>div]:h-2',
|
|
14
|
+
md: '[&>div]:w-3 [&>div]:h-3',
|
|
15
|
+
lg: '[&>div]:w-4 [&>div]:h-4',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: 'default',
|
|
20
|
+
size: 'md',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
const Loader = React.forwardRef(({ className, variant, size, count = 3, duration = 0.5, delayStep = 100, ...props }, ref) => (_jsx("div", { className: cn(loaderVariants({ variant, size }), className), ref: ref, role: "status", "aria-label": "Loading...", ...props, children: Array.from({ length: count }).map((_, i) => (_jsx("div", { className: "animate-bounce rounded border-2", style: {
|
|
24
|
+
animationDuration: `${duration}s`,
|
|
25
|
+
animationIterationCount: 'infinite',
|
|
26
|
+
animationDelay: `${i * delayStep}ms`,
|
|
27
|
+
} }, i))) })));
|
|
28
|
+
Loader.displayName = 'Loader';
|
|
29
|
+
export { Loader };
|
|
30
|
+
//# sourceMappingURL=Loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,cAAc,GAAG,GAAG,CAAC,YAAY,EAAE;IACvC,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,0CAA0C;YACnD,SAAS,EAAE,4CAA4C;YACvD,OAAO,EAAE,8CAA8C;SACxD;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,yBAAyB;YAC7B,EAAE,EAAE,yBAAyB;YAC7B,EAAE,EAAE,yBAAyB;SAC9B;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAQH,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,QAAQ,GAAG,GAAG,EAAE,SAAS,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3F,cACE,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,EAC3D,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,gBACF,YAAY,KACnB,KAAK,YACR,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3C,cAEE,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAE;YACL,iBAAiB,EAAE,GAAG,QAAQ,GAAG;YACjC,uBAAuB,EAAE,UAAU;YACnC,cAAc,EAAE,GAAG,CAAC,GAAG,SAAS,IAAI;SACrC,IANI,CAAC,CAON,CACH,CAAC,GACE,CACP,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const MenuObject: React.FC<DropdownMenuPrimitive.DropdownMenuProps> & {
|
|
4
|
+
Trigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
Content: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Item: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export { MenuObject as Menu };
|
|
9
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoC/B,QAAA,MAAM,UAAU;;;;CAId,CAAC;AAEH,OAAO,EAAE,UAAU,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
const Menu = DropdownMenuPrimitive.Root;
|
|
6
|
+
const MenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
7
|
+
const MenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('border-border bg-card z-50 w-56 rounded border-2 shadow-md', className), ...props }) })));
|
|
8
|
+
MenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
9
|
+
const MenuItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Item, { ref: ref, className: cn('hover:bg-accent data-[highlighted]:bg-accent cursor-pointer px-3 py-2 font-sans text-xs outline-none', className), ...props })));
|
|
10
|
+
MenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
11
|
+
const MenuObject = Object.assign(Menu, {
|
|
12
|
+
Trigger: MenuTrigger,
|
|
13
|
+
Content: MenuContent,
|
|
14
|
+
Item: MenuItem,
|
|
15
|
+
});
|
|
16
|
+
export { MenuObject as Menu };
|
|
17
|
+
//# sourceMappingURL=Menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Menu.tsx"],"names":[],"mappings":";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
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
interface NumberStepperProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> {
|
|
3
|
+
defaultValue?: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
onChange?: (value: number) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Neo-brutalist number stepper using a native `<input type="number">`.
|
|
11
|
+
* The browser handles digit-only filtering, ArrowUp/Down stepping, and
|
|
12
|
+
* min/max clamping. Custom chevron buttons trigger stepUp/stepDown on
|
|
13
|
+
* the native input. onChange fires on blur with the committed value.
|
|
14
|
+
*/
|
|
15
|
+
declare const NumberStepper: ({ defaultValue, min, max, step, onChange, className, ...props }: NumberStepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { NumberStepper };
|
|
17
|
+
export type { NumberStepperProps };
|
|
18
|
+
//# sourceMappingURL=NumberStepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberStepper.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/NumberStepper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,UAAU,kBAAmB,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED;;;;;GAKG;AACH,QAAA,MAAM,aAAa,GAAI,iEAQpB,kBAAkB,4CAgFpB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Neo-brutalist number stepper using a native `<input type="number">`.
|
|
6
|
+
* The browser handles digit-only filtering, ArrowUp/Down stepping, and
|
|
7
|
+
* min/max clamping. Custom chevron buttons trigger stepUp/stepDown on
|
|
8
|
+
* the native input. onChange fires on blur with the committed value.
|
|
9
|
+
*/
|
|
10
|
+
const NumberStepper = ({ defaultValue, min = 1, max = 65535, step = 1, onChange, className, ...props }) => {
|
|
11
|
+
const inputRef = useRef(null);
|
|
12
|
+
const commit = () => {
|
|
13
|
+
const input = inputRef.current;
|
|
14
|
+
if (!input)
|
|
15
|
+
return;
|
|
16
|
+
const num = input.valueAsNumber;
|
|
17
|
+
if (Number.isNaN(num))
|
|
18
|
+
return;
|
|
19
|
+
const clamped = Math.min(max, Math.max(min, num));
|
|
20
|
+
if (clamped !== num)
|
|
21
|
+
input.value = String(clamped);
|
|
22
|
+
onChange?.(clamped);
|
|
23
|
+
};
|
|
24
|
+
const stepUp = () => {
|
|
25
|
+
inputRef.current?.stepUp();
|
|
26
|
+
commit();
|
|
27
|
+
};
|
|
28
|
+
const stepDown = () => {
|
|
29
|
+
inputRef.current?.stepDown();
|
|
30
|
+
commit();
|
|
31
|
+
};
|
|
32
|
+
return (_jsxs("div", { className: cn('border-border inline-flex items-stretch rounded border-2 shadow-sm transition focus-within:shadow-xs', className), children: [_jsx("input", { ref: inputRef, type: "number", defaultValue: defaultValue, min: min, max: max, step: step, onBlur: commit, onKeyDown: e => {
|
|
33
|
+
if (e.key === 'Enter')
|
|
34
|
+
commit();
|
|
35
|
+
}, className: "hide-number-spinner w-[6ch] min-w-0 bg-transparent px-1 font-mono text-xs outline-hidden", ...props }), _jsxs("div", { className: "border-border flex flex-col border-l", children: [_jsx("button", { type: "button", tabIndex: -1, onClick: stepUp, "aria-label": "Increment", className: "text-muted-foreground hover:bg-muted hover:text-foreground flex flex-1 cursor-pointer items-center justify-center px-1 transition", children: _jsx("svg", { width: "8", height: "5", viewBox: "0 0 8 5", fill: "none", "aria-hidden": "true", children: _jsx("path", { d: "M1 4L4 1L7 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("div", { className: "border-border border-t" }), _jsx("button", { type: "button", tabIndex: -1, onClick: stepDown, "aria-label": "Decrement", className: "text-muted-foreground hover:bg-muted hover:text-foreground flex flex-1 cursor-pointer items-center justify-center px-1 transition", children: _jsx("svg", { width: "8", height: "5", viewBox: "0 0 8 5", fill: "none", "aria-hidden": "true", children: _jsx("path", { d: "M1 1L4 4L7 1", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] })] }));
|
|
36
|
+
};
|
|
37
|
+
export { NumberStepper };
|
|
38
|
+
//# sourceMappingURL=NumberStepper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberStepper.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/NumberStepper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAW/B;;;;;GAKG;AACH,MAAM,aAAa,GAAG,CAAC,EACrB,YAAY,EACZ,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,KAAK,EACX,IAAI,GAAG,CAAC,EACR,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAEhD,MAAM,MAAM,GAAG,GAAG,EAAE;QAClB,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC;QAC/B,IAAI,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AAK,EAAC,GAAG,EAAC,MAAM,EAAC,GAAG,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM,iBAAa,MAAM,YACxE,eACE,CAAC,EAAC,cAAc,EAChB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,GACC,EACT,cAAK,SAAS,EAAC,wBAAwB,GAAG,EAC1C,iBACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,QAAQ,gBACN,WAAW,EACtB,SAAS,EAAC,mIAAmI,YAC7I,cAAK,KAAK,EAAC,GAAG,EAAC,MAAM,EAAC,GAAG,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM,iBAAa,MAAM,YACxE,eACE,CAAC,EAAC,cAAc,EAChB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,GACC,IACL,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as ProgressPrimitives from '@radix-ui/react-progress';
|
|
2
|
+
interface IProgressProps extends ProgressPrimitives.ProgressProps {
|
|
3
|
+
/** Classes applied to the indicator (the filled bar) */
|
|
4
|
+
indicatorClassName?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const Progress: ({ className, indicatorClassName, value, ...props }: IProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Progress };
|
|
8
|
+
export type { IProgressProps };
|
|
9
|
+
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Progress.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AAE/D,UAAU,cAAe,SAAQ,kBAAkB,CAAC,aAAa;IAC/D,wDAAwD;IACxD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,QAAA,MAAM,QAAQ,GAAI,oDAAoD,cAAc,4CAUnF,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import * as ProgressPrimitives from '@radix-ui/react-progress';
|
|
4
|
+
const Progress = ({ className, indicatorClassName, value, ...props }) => (_jsx(ProgressPrimitives.Root, { className: cn('bg-muted border-border relative h-1.5 overflow-hidden rounded border', className), value: value, ...props, children: _jsx(ProgressPrimitives.Indicator, { className: cn('bg-accent-foreground h-full transition-all duration-200', indicatorClassName), style: { width: `${value ?? 0}%` } }) }));
|
|
5
|
+
export { Progress };
|
|
6
|
+
//# sourceMappingURL=Progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Progress.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AAO/D,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,GAAG,KAAK,EAAkB,EAAE,EAAE,CAAC,CACvF,KAAC,kBAAkB,CAAC,IAAI,IACtB,SAAS,EAAE,EAAE,CAAC,sEAAsE,EAAE,SAAS,CAAC,EAChG,KAAK,EAAE,KAAK,KACR,KAAK,YACT,KAAC,kBAAkB,CAAC,SAAS,IAC3B,SAAS,EAAE,EAAE,CAAC,yDAAyD,EAAE,kBAAkB,CAAC,EAC5F,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,EAAE,GAClC,GACsB,CAC3B,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAE3D,QAAA,MAAM,MAAM,GAAI,yBAAyB,gBAAgB,CAAC,WAAW,4CAapE,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
4
|
+
const Switch = ({ className, ...props }) => (_jsx(SwitchPrimitives.Root, { className: cn('peer border-border data-[state=checked]:bg-primary inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded border-2 disabled:cursor-not-allowed disabled:opacity-50', className), ...props, children: _jsx(SwitchPrimitives.Thumb, { className: cn('bg-primary border-border data-[state=checked]:bg-background pointer-events-none mx-0.5 block h-4 w-4 rounded border-2 ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0') }) }));
|
|
5
|
+
export { Switch };
|
|
6
|
+
//# sourceMappingURL=Switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAE3D,MAAM,MAAM,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgC,EAAE,EAAE,CAAC,CACxE,KAAC,gBAAgB,CAAC,IAAI,IACpB,SAAS,EAAE,EAAE,CACX,+KAA+K,EAC/K,SAAS,CACV,KACG,KAAK,YACT,KAAC,gBAAgB,CAAC,KAAK,IACrB,SAAS,EAAE,EAAE,CACX,2NAA2N,CAC5N,GACD,GACoB,CACzB,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
as?: "a" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "li" | "p" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
interface TextProps extends Omit<HTMLAttributes<HTMLElement>, 'className'>, VariantProps<typeof textVariants> {
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Text };
|
|
11
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzD,QAAA,MAAM,YAAY;;8EAiBhB,CAAC;AAEH,UAAU,SAAU,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IAC3G,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,IAAI,GAAI,OAAO,SAAS,4CAK7B,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/cn';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
const textVariants = cva('font-head', {
|
|
5
|
+
variants: {
|
|
6
|
+
as: {
|
|
7
|
+
p: 'font-sans text-base',
|
|
8
|
+
li: 'font-sans text-base',
|
|
9
|
+
a: 'font-sans text-base hover:underline underline-offset-2 decoration-primary',
|
|
10
|
+
h1: 'text-4xl lg:text-5xl font-bold',
|
|
11
|
+
h2: 'text-3xl lg:text-4xl font-semibold',
|
|
12
|
+
h3: 'text-2xl font-medium',
|
|
13
|
+
h4: 'text-xl font-normal',
|
|
14
|
+
h5: 'text-lg font-normal',
|
|
15
|
+
h6: 'text-base font-normal',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
as: 'p',
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
const Text = (props) => {
|
|
23
|
+
const { className, as, ...otherProps } = props;
|
|
24
|
+
const Tag = as || 'p';
|
|
25
|
+
return _jsx(Tag, { className: cn(textVariants({ as }), className), ...otherProps });
|
|
26
|
+
};
|
|
27
|
+
export { Text };
|
|
28
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/side-panel/components/retro/Text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAI/C,MAAM,YAAY,GAAG,GAAG,CAAC,WAAW,EAAE;IACpC,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,CAAC,EAAE,qBAAqB;YACxB,EAAE,EAAE,qBAAqB;YACzB,CAAC,EAAE,2EAA2E;YAC9E,EAAE,EAAE,gCAAgC;YACpC,EAAE,EAAE,oCAAoC;YACxC,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,qBAAqB;YACzB,EAAE,EAAE,qBAAqB;YACzB,EAAE,EAAE,uBAAuB;SAC5B;KACF;IACD,eAAe,EAAE;QACf,EAAE,EAAE,GAAG;KACR;CACF,CAAC,CAAC;AAMH,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAE,EAAE;IAChC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC/C,MAAM,GAAG,GAAgB,EAAE,IAAI,GAAG,CAAC;IAEnC,OAAO,KAAC,GAAG,IAAC,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC,KAAM,UAAU,GAAI,CAAC;AACjF,CAAC,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|