@lateralus-ai/shipping-ui 1.0.4
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 +108 -0
- package/dist/components/HelloWorld.d.ts +1 -0
- package/dist/components/InputPrompt.d.ts +20 -0
- package/dist/components/ModalPanel.d.ts +8 -0
- package/dist/components/PdfViewer/ImageViewer.d.ts +8 -0
- package/dist/components/PdfViewer/PdfViewer.d.ts +7 -0
- package/dist/components/PdfViewer/index.d.ts +2 -0
- package/dist/components/PdfViewer/usePageManagement.d.ts +5 -0
- package/dist/components/PdfViewer/usePanning.d.ts +15 -0
- package/dist/components/PdfViewer/useRefDimensions.d.ts +4 -0
- package/dist/components/PdfViewer/useRotation.d.ts +4 -0
- package/dist/components/PdfViewer/useZoom.d.ts +8 -0
- package/dist/components/Sidebar/Button.d.ts +7 -0
- package/dist/components/Sidebar/Container.d.ts +5 -0
- package/dist/components/Sidebar/Item.d.ts +9 -0
- package/dist/components/Sidebar/Layout.d.ts +7 -0
- package/dist/components/Sidebar/Provider.d.ts +14 -0
- package/dist/components/Sidebar/SecondaryItem.d.ts +9 -0
- package/dist/components/Sidebar/ToggleCollapseButton.d.ts +1 -0
- package/dist/components/Sidebar/index.d.ts +7 -0
- package/dist/components/icons/CloseSidebarIcon.d.ts +2 -0
- package/dist/components/icons/CloseSidebarMidIcon.d.ts +1 -0
- package/dist/components/icons/ExpandIcon.d.ts +3 -0
- package/dist/components/icons/SendArrowIcon.d.ts +4 -0
- package/dist/components/icons/SendArrowIconGreen.d.ts +4 -0
- package/dist/components/icons/XIcon.d.ts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.cjs +30 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +3671 -0
- package/dist/material-theme.d.ts +416 -0
- package/dist/stories/Buttons.d.ts +1 -0
- package/dist/stories/Checkbox.d.ts +1 -0
- package/dist/stories/ColorPalette.d.ts +1 -0
- package/dist/stories/Dropdowns.d.ts +1 -0
- package/dist/stories/InputPrompt.d.ts +1 -0
- package/dist/stories/Sidebar.d.ts +1 -0
- package/dist/stories/Typography.d.ts +1 -0
- package/dist/tailwind-theme.d.ts +197 -0
- package/dist/utils/cn.d.ts +7 -0
- package/package.json +88 -0
- package/src/components/HelloWorld.tsx +3 -0
- package/src/components/InputPrompt.tsx +96 -0
- package/src/components/ModalPanel.tsx +31 -0
- package/src/components/PdfViewer/ImageViewer.tsx +167 -0
- package/src/components/PdfViewer/PdfViewer.tsx +53 -0
- package/src/components/PdfViewer/index.ts +2 -0
- package/src/components/PdfViewer/usePageManagement.ts +14 -0
- package/src/components/PdfViewer/usePanning.ts +42 -0
- package/src/components/PdfViewer/useRefDimensions.ts +16 -0
- package/src/components/PdfViewer/useRotation.ts +13 -0
- package/src/components/PdfViewer/useZoom.ts +26 -0
- package/src/components/Sidebar/Button.tsx +20 -0
- package/src/components/Sidebar/Container.tsx +32 -0
- package/src/components/Sidebar/Item.tsx +39 -0
- package/src/components/Sidebar/Layout.tsx +23 -0
- package/src/components/Sidebar/Provider.tsx +47 -0
- package/src/components/Sidebar/SecondaryItem.tsx +39 -0
- package/src/components/Sidebar/ToggleCollapseButton.tsx +24 -0
- package/src/components/Sidebar/index.ts +7 -0
- package/src/components/icons/CloseSidebarIcon.tsx +19 -0
- package/src/components/icons/CloseSidebarMidIcon.tsx +19 -0
- package/src/components/icons/ExpandIcon.tsx +21 -0
- package/src/components/icons/SendArrowIcon.tsx +23 -0
- package/src/components/icons/SendArrowIconGreen.tsx +17 -0
- package/src/components/icons/XIcon.tsx +21 -0
- package/src/components/index.ts +3 -0
- package/src/index.ts +4 -0
- package/src/material-theme.ts +447 -0
- package/src/stories/Buttons.stories.tsx +15 -0
- package/src/stories/Buttons.tsx +52 -0
- package/src/stories/Checkbox.stories.tsx +15 -0
- package/src/stories/Checkbox.tsx +56 -0
- package/src/stories/ColorPalette.stories.tsx +15 -0
- package/src/stories/ColorPalette.tsx +72 -0
- package/src/stories/Dropdowns.stories.tsx +15 -0
- package/src/stories/Dropdowns.tsx +52 -0
- package/src/stories/InputPrompt.stories.tsx +15 -0
- package/src/stories/InputPrompt.tsx +63 -0
- package/src/stories/PDFViewer.stories.tsx +37 -0
- package/src/stories/Sidebar.stories.tsx +15 -0
- package/src/stories/Sidebar.tsx +94 -0
- package/src/stories/Typography.stories.tsx +15 -0
- package/src/stories/Typography.tsx +110 -0
- package/src/style.css +2 -0
- package/src/tailwind-theme.ts +219 -0
- package/src/utils/cn.ts +11 -0
package/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# @lateralus-ai/shipping-ui
|
|
2
|
+
|
|
3
|
+
Shared UI theme and design system for Lateralus shipping applications.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Material Tailwind theme configuration
|
|
8
|
+
- Custom color palette (Gray, Green, Blue, Red, Orange)
|
|
9
|
+
- Typography styles (subheader, body, caption, footnote variations)
|
|
10
|
+
- CSS variables for theming
|
|
11
|
+
- Light/Dark mode support
|
|
12
|
+
- Storybook for component documentation
|
|
13
|
+
|
|
14
|
+
## Development
|
|
15
|
+
|
|
16
|
+
### Setup
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Run Storybook
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm run dev
|
|
26
|
+
# or
|
|
27
|
+
npm run storybook
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Storybook will be available at http://localhost:6006
|
|
31
|
+
|
|
32
|
+
### Build Storybook
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm run build
|
|
36
|
+
# or
|
|
37
|
+
npm run build-storybook
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Using the Theme in Your Project
|
|
41
|
+
|
|
42
|
+
### 1. Install the package (when published)
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install @lateralus-ai/shipping-ui
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 2. Import the Tailwind configuration
|
|
49
|
+
|
|
50
|
+
In your `tailwind.config.js`:
|
|
51
|
+
|
|
52
|
+
```javascript
|
|
53
|
+
const shippingUIConfig = require("@lateralus-ai/shipping-ui/tailwind");
|
|
54
|
+
|
|
55
|
+
module.exports = shippingUIConfig;
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Or extend it:
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
const shippingUIConfig = require("@lateralus-ai/shipping-ui/tailwind");
|
|
62
|
+
|
|
63
|
+
module.exports = {
|
|
64
|
+
...shippingUIConfig,
|
|
65
|
+
content: [
|
|
66
|
+
"./src/**/*.{js,jsx,ts,tsx}",
|
|
67
|
+
"./node_modules/@lateralus-ai/shipping-ui/**/*.{js,jsx,ts,tsx}",
|
|
68
|
+
],
|
|
69
|
+
// Your additional configuration
|
|
70
|
+
};
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 3. Import the global styles
|
|
74
|
+
|
|
75
|
+
In your main CSS file:
|
|
76
|
+
|
|
77
|
+
```css
|
|
78
|
+
@import "@lateralus-ai/shipping-ui/css";
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Theme Structure
|
|
82
|
+
|
|
83
|
+
### Typography Classes
|
|
84
|
+
|
|
85
|
+
- `text-subheader` / `text-subheader-em` - 18px/28px
|
|
86
|
+
- `text-body` / `text-body-em` - 16px/28px
|
|
87
|
+
- `text-caption-1` / `text-caption-1-em` - 16px/22px
|
|
88
|
+
- `text-caption-2` / `text-caption-2-em` - 14px/20px
|
|
89
|
+
- `text-footnote` / `text-footnote-em` - 13px/17px
|
|
90
|
+
|
|
91
|
+
### Color Palette
|
|
92
|
+
|
|
93
|
+
- Gray: 50-900
|
|
94
|
+
- Green: 50-900 (primary brand color)
|
|
95
|
+
- Blue: 50-900
|
|
96
|
+
- Red: 50-900
|
|
97
|
+
- Orange: 50-900
|
|
98
|
+
- Brand Purple: #ab68ff
|
|
99
|
+
|
|
100
|
+
### Font Families
|
|
101
|
+
|
|
102
|
+
- Sans: Work Sans
|
|
103
|
+
- Mono: Roboto Mono
|
|
104
|
+
- Signature: Cursive fonts for signatures
|
|
105
|
+
|
|
106
|
+
## License
|
|
107
|
+
|
|
108
|
+
UNLICENSED - Proprietary software
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HelloWorld: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconButton } from '@material-tailwind/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { default as TextareaAutosize } from 'react-textarea-autosize';
|
|
4
|
+
interface SubmitButtonProps extends React.ComponentProps<typeof IconButton> {
|
|
5
|
+
tooltipContent?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
9
|
+
interface TextareaProps extends React.ComponentProps<typeof TextareaAutosize> {
|
|
10
|
+
onSubmit?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Textarea: React.FC<TextareaProps>;
|
|
13
|
+
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
bottom?: ReactNode;
|
|
15
|
+
right?: ReactNode;
|
|
16
|
+
top?: ReactNode;
|
|
17
|
+
textArea?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const Container: React.FC<ContainerProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ImageViewerProps {
|
|
2
|
+
onClose: () => void;
|
|
3
|
+
totalPages: number;
|
|
4
|
+
getImageSrc: (page: number) => string;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageViewer: ({ onClose, totalPages, getImageSrc, title, }: ImageViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
interface PanState {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const usePanning: () => readonly [{
|
|
7
|
+
readonly pan: PanState;
|
|
8
|
+
readonly isDragging: boolean;
|
|
9
|
+
}, {
|
|
10
|
+
handleMouseDown: (e: MouseEvent) => void;
|
|
11
|
+
handleMouseMove: (e: MouseEvent) => void;
|
|
12
|
+
handleMouseUp: () => void;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
}];
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WheelEvent } from 'react';
|
|
2
|
+
export declare const useZoom: (initialZoom?: number, minZoom?: number, maxZoom?: number, step?: number) => readonly [number, {
|
|
3
|
+
readonly handleWheel: (e: WheelEvent) => void;
|
|
4
|
+
readonly zoomIn: () => void;
|
|
5
|
+
readonly zoomOut: () => void;
|
|
6
|
+
readonly reset: () => void;
|
|
7
|
+
readonly zoomToValue: (value: number) => void;
|
|
8
|
+
}];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Button: ({ icon, children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const Container: ({ className, children, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
trailing?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Item: ({ children, className, icon, isActive, trailing, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContainerProps } from './Container';
|
|
2
|
+
interface LayoutProps extends ContainerProps {
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onSwitchLayout?: (isCollapsed: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const Layout: ({ className, children, isCollapsed, onSwitchLayout, ...props }: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const collapsedContext: import('react').Context<{
|
|
3
|
+
isCollapsed: boolean;
|
|
4
|
+
toggleCollapsed: () => void;
|
|
5
|
+
isHovered: boolean;
|
|
6
|
+
setIsHovered: (value: boolean) => void;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
interface ProviderProps {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
isCollapsed?: boolean;
|
|
11
|
+
onSwitchLayout?: (isCollapsed: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const Provider: ({ children, isCollapsed: controlledIsCollapsed, onSwitchLayout, }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface SecondaryItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
trailing?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const SecondaryItem: ({ children, className, isActive, trailing, icon, ...props }: SecondaryItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ToggleCollapseButton: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Provider } from './Provider';
|
|
2
|
+
export { Container } from './Container';
|
|
3
|
+
export { Layout } from './Layout';
|
|
4
|
+
export { Button } from './Button';
|
|
5
|
+
export { ToggleCollapseButton } from './ToggleCollapseButton';
|
|
6
|
+
export { Item } from './Item';
|
|
7
|
+
export { SecondaryItem } from './SecondaryItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CloseSidebarMidIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),Te=require("@material-tailwind/react"),Nr=require("react-textarea-autosize"),Fr={fontFamily:{sans:["Work Sans","sans-serif"],mono:["Roboto Mono","monospace"],signature:["Alex Brush","Lucida Handwriting","cursive"]},fontSize:{subheader:["18px",{lineHeight:"28px",letterSpacing:"-0.01em"}],"subheader-em":["18px",{lineHeight:"28px",letterSpacing:"-0.01em",fontWeight:"500"}],body:["16px",{lineHeight:"28px",letterSpacing:"-0.01em"}],"body-em":["16px",{lineHeight:"28px",letterSpacing:"-0.01em",fontWeight:"500"}],"caption-1":["16px",{lineHeight:"22px"}],"caption-1-em":["16px",{lineHeight:"22px",fontWeight:"500"}],"caption-2":["14px",{lineHeight:"20px"}],"caption-2-em":["14px",{lineHeight:"20px",fontWeight:"500"}],footnote:["13px",{lineHeight:"17px"}],"footnote-em":["13px",{lineHeight:"17px",fontWeight:"500"}]},width:{authPageWidth:"370px"},keyframes:{"accordion-down":{from:{height:0},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},colors:{gray:{50:"#fafafa",100:"#f0f0f0",200:"#d6d6d6",300:"#bdbdbd",400:"#a3a3a3",500:"#8a8a8a",600:"#6e6e6e",700:"#525252",800:"#363636",900:"#1a1a1a"},green:{50:"#e0fff2",100:"#adf0d3",200:"#8aeac1",300:"#67e4ae",400:"#45de9c",500:"#26d489",600:"#1da56a",700:"#15754c",800:"#0c452d",900:"#04160e"},blue:{50:"#cae8f7",100:"#b8e0f4",200:"#95d1ef",300:"#71c1ea",400:"#4eb2e4",500:"#2aa2df",600:"#1b82b6",700:"#145f85",800:"#0d3c54",900:"#051923"},red:{50:"#f9dcdc",100:"#f6cbcb",200:"#f0a8a8",300:"#ea8686",400:"#e36363",500:"#dd4040",600:"#c32222",700:"#931a1a",800:"#641212",900:"#340909"},orange:{50:"#fff7eb",100:"#f8e0bf",200:"#f4cf9a",300:"#f0bd75",400:"#ecab51",500:"#e89a2c",600:"#C77C0A",700:"#935d10",800:"#603d0b",900:"#2e1d05"},"brand-purple":"#ab68ff",presentation:"var(--presentation)","text-primary":"var(--text-primary)","text-secondary":"var(--text-secondary)","text-secondary-alt":"var(--text-secondary-alt)","text-tertiary":"var(--text-tertiary)","ring-primary":"var(--ring-primary)","header-primary":"var(--header-primary)","header-hover":"var(--header-hover)","header-button-hover":"var(--header-button-hover)","surface-active":"var(--surface-active)","surface-active-alt":"var(--surface-active-alt)","surface-hover":"var(--surface-hover)","surface-primary":"var(--surface-primary)","surface-primary-alt":"var(--surface-primary-alt)","surface-primary-contrast":"var(--surface-primary-contrast)","surface-secondary":"var(--surface-secondary)","surface-secondary-alt":"var(--surface-secondary-alt)","surface-tertiary":"var(--surface-tertiary)","surface-tertiary-alt":"var(--surface-tertiary-alt)","surface-dialog":"var(--surface-dialog)","surface-submit":"var(--surface-submit)","border-light":"var(--border-light)","border-medium":"var(--border-medium)","border-medium-alt":"var(--border-medium-alt)","border-heavy":"var(--border-heavy)","border-xheavy":"var(--border-xheavy)",border:"hsl(var(--border))",input:"hsl(var(--input))","switch-unchecked":"hsl(var(--switch-unchecked))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"8px",md:"calc(8px - 2px)",sm:"calc(8px - 4px)"}},Lr={button:{defaultProps:{className:"items-center normal-case shadow-none hover:shadow-none text-caption-1 font-medium h-10 rounded-lg flex gap-2 px-3 truncate tracking-[0.16px] justify-center",ripple:!1,color:"green"},styles:{sizes:{md:{fontSize:"text-md",className:"py-2"}},variants:{filled:{blue:{color:"!text-white",background:"bg-blue-400",hover:"hover:bg-blue-500",disabled:"disabled:bg-blue-200 disabled:!text-blue-600 !opacity-100"},green:{color:"!text-white",background:"bg-green-600",hover:"hover:bg-green-700",disabled:"disabled:bg-green-200 disabled:!text-green-600 !opacity-100"},red:{color:"!text-white",background:"bg-red-600",hover:"hover:bg-red-700",disabled:"disabled:bg-red-200 disabled:!text-red-600 !opacity-100"},gray:{color:"text-black",background:"bg-gray-50",hover:"hover:bg-gray-100",disabled:"disabled:bg-gray-50 disabled:!text-gray-200 !opacity-100"},orange:{color:"!text-orange-600",background:"bg-orange-50",hover:"hover:bg-orange-100",disabled:"disabled:bg-orange-50 disabled:!text-orange-200 !opacity-100"}},outlined:{gray:{background:"bg-white",color:"text-gray-700 border-gray-100",hover:"!text-gray-900 hover:bg-gray-100",disabled:"disabled:text-gray-500"}},text:{green:{color:"!text-green-600",hover:"hover:bg-gray-100",disabled:"disabled:!text-gray-500"},gray:{color:"!text-gray-700",hover:"hover:bg-gray-100",disabled:"disabled:!text-gray-500"}}}}},iconButton:{defaultProps:{className:"items-center justify-center normal-case shadow-none hover:shadow-none text-caption-1 font-medium h-10 rounded-lg flex gap-2 px-3 truncate",ripple:!1,color:"green"},styles:{sizes:{md:{fontSize:"text-md",className:"py-2"}},variants:{filled:{blue:{color:"!text-white",background:"bg-blue-400",hover:"hover:bg-blue-500",disabled:"disabled:bg-blue-200 disabled:!text-blue-600 !opacity-100"},green:{color:"!text-white",background:"bg-green-600",hover:"hover:bg-green-700",disabled:"disabled:bg-green-200 disabled:!text-green-600 !opacity-100"},red:{color:"!text-white",background:"bg-red-600",hover:"hover:bg-red-700",disabled:"disabled:bg-red-200 disabled:!text-red-600 !opacity-100"},gray:{color:"text-black",background:"bg-gray-50",hover:"hover:bg-gray-100",disabled:"disabled:bg-gray-50 disabled:!text-gray-200 !opacity-100"},orange:{color:"!text-orange-600",background:"bg-orange-50",hover:"hover:bg-orange-100",disabled:"disabled:bg-orange-50 disabled:!text-orange-200 !opacity-100"}},outlined:{gray:{background:"bg-white",color:"text-gray-700 border-gray-100",hover:"!text-gray-900 hover:bg-gray-100",disabled:"disabled:text-gray-500"}},text:{green:{color:"!text-green-600",hover:"hover:bg-gray-100",disabled:"disabled:!text-gray-500"},gray:{color:"!text-gray-700",hover:"hover:bg-gray-100",disabled:"disabled:!text-gray-500"}}}}},progress:{defaultProps:{className:"bg-gray-100",barProps:{className:"transform transition-all duration-300"}},styles:{sizes:{sm:{container:{initial:{height:"h-1"}}}}}},menu:{styles:{base:{menu:{border:"border border-gray-100",borderRadius:"rounded-xl",boxShadow:"shadow-sm",p:"p-2"},item:{initial:{display:"flex gap-2 items-center focus-within:outline-none text-gray-900",bg:"hover:bg-gray-100",p:"p-2"}}}}},dialog:{defaultProps:{size:"sm",dismiss:{},animate:{mount:{},unmount:{}},className:""},valid:{sizes:["xs","sm","md","lg","xl","xxl"]},styles:{base:{backdrop:{width:"w-full",display:"grid",placeItems:"place-items-center",position:"fixed",top:0,left:0,height:"h-screen",backgroundColor:"bg-[rgba(0,0,0,0.16)]",backgroundOpacity:"bg-opacity-100",backdropFilter:"backdrop-blur-none"},container:{height:"h-[450px]",position:"relative",bg:"bg-white",m:"m-4",borderRadius:"rounded-xl",boxShadow:"shadow-[0px_2px_8px_0px_#00000029,0px_2px_2px_0px_#0000000A,0px_8px_8px_-8px_#0000000A]",fontSmoothing:"antialiased"}},sizes:{sm:{maxWidth:"!max-w-[550px]"},lg:{maxWidth:"!max-w-[700px]"}}}},dialogHeader:{styles:{base:{display:"text-gray-900 font-normal"}}},checkbox:{defaultProps:{color:"custom",ripple:!1},valid:{colors:["blue-gray","gray","red","green","custom"]},styles:{base:{root:{display:"inline-flex",alignItems:"items-center"},container:{position:"relative",display:"flex",alignItems:"items-center",cursor:"cursor-pointer",p:"!p-0",borderRadius:"rounded-full"},input:{peer:"peer",position:"relative",appearance:"appearance-none",width:"w-5",height:"h-5",borderWidth:"border-[1.5px]",borderRadius:"rounded-md",borderColor:"border-gray-100",cursor:"cursor-pointer",transition:"transition-all",before:{content:"before:content-['']",display:"before:block",bg:"before:bg-transparent",width:"before:w-12",height:"before:h-12",borderRadius:"before:rounded-full",position:"before:absolute",opacity:"before:opacity-0 hover:before:opacity-10"}},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px",px:"px-2"},icon:{display:"flex",alignItems:"items-center",justifyContent:"justify-center",width:"w-5",height:"h-5",color:"text-green-600",position:"absolute",pointerEvents:"pointer-events-none",opacity:"opacity-0 peer-checked:opacity-100",transition:"transition-opacity"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:{custom:{border:"checked:border-green-600"}}}},popover:{defaultProps:{placement:"top",offset:5,dismiss:{},animate:{unmount:{},mount:{}},className:""},styles:{base:{bg:"bg-white",p:"p-4",borderWidth:"border",borderColor:"border-gray-200",borderRadius:"rounded-lg",boxShadow:"[box-shadow:0px_2px_2px_0px_#0000000A,_0px_8px_8px_-8px_#0000000A]",fontSize:"text-sm",fontWeight:"font-normal",color:"text-blue-gray-500",outline:"focus:outline-none",overflowWrap:"break-words",whiteSpace:"whitespace-normal"}}},switch:{defaultProps:{color:"blue",label:"",ripple:!0,className:"",disabled:!1,containerProps:void 0,labelProps:void 0,circleProps:void 0},valid:{colors:["blue-gray","gray","brown","deep-orange","orange","amber","yellow","lime","light-green","green","teal","cyan","light-blue","blue","indigo","deep-purple","purple","pink","red"]},styles:{base:{input:{background:"bg-gray-500"},circle:{borderColor:"border-gray-500",borderRadius:"rounded-full",boxShadow:"shadow-md",position:"absolute",top:"top-2/4",left:"-left-1",transform:"-translate-y-2/4 peer-checked:translate-x-full",transition:"transition-all duration-300",cursor:"cursor-pointer",before:{content:"before:content['']",display:"before:block",bg:"before:bg-blue-gray-500",width:"before:w-10",height:"before:h-10",borderRadius:"before:rounded-full",position:"before:absolute",top:"before:top-2/4",left:"before:left-2/4",transform:"before:-translate-y-2/4 before:-translate-x-2/4",transition:"before:transition-opacity",opacity:"before:opacity-0 hover:before:opacity-10"}},ripple:{display:"inline-block",top:"top-2/4",left:"left-2/4",transform:"-translate-x-2/4 -translate-y-2/4",p:"p-5",borderRadius:"rounded-full"},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px",ml:"ml-3",mb:"mb-0"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:{gray:{input:"checked:bg-blue-gray-100",circle:"peer-checked:border-blue-gray-100",before:"peer-checked:before:bg-gray-500"},green:{input:"checked:bg-green-600",circle:"peer-checked:border-green-600",before:"peer-checked:before:bg-green-600"}}}}};var Ae={exports:{}},ne={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Je;function Gr(){if(Je)return ne;Je=1;var r=N,t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(l,f,m){var v,w={},R=null,P=null;m!==void 0&&(R=""+m),f.key!==void 0&&(R=""+f.key),f.ref!==void 0&&(P=f.ref);for(v in f)o.call(f,v)&&!u.hasOwnProperty(v)&&(w[v]=f[v]);if(l&&l.defaultProps)for(v in f=l.defaultProps,f)w[v]===void 0&&(w[v]=f[v]);return{$$typeof:t,type:l,key:R,ref:P,props:w,_owner:s.current}}return ne.Fragment=a,ne.jsx=c,ne.jsxs=c,ne}var ae={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ke;function Hr(){return Ke||(Ke=1,process.env.NODE_ENV!=="production"&&function(){var r=N,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),O=Symbol.iterator,L="@@iterator";function F(e){if(e===null||typeof e!="object")return null;var n=O&&e[O]||e[L];return typeof n=="function"?n:null}var T=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),d=1;d<n;d++)i[d-1]=arguments[d];ee("error",e,i)}}function ee(e,n,i){{var d=T.ReactDebugCurrentFrame,h=d.getStackAddendum();h!==""&&(n+="%s",i=i.concat([h]));var y=i.map(function(g){return String(g)});y.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,y)}}var ce=!1,ue=!1,de=!1,fe=!1,re=!1,q;q=Symbol.for("react.module.reference");function pe(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===u||re||e===s||e===m||e===v||fe||e===P||ce||ue||de||typeof e=="object"&&e!==null&&(e.$$typeof===R||e.$$typeof===w||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===q||e.getModuleId!==void 0))}function ge(e,n,i){var d=e.displayName;if(d)return d;var h=n.displayName||n.name||"";return h!==""?i+"("+h+")":i}function $(e){return e.displayName||"Context"}function z(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case a:return"Portal";case u:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var n=e;return $(n)+".Consumer";case c:var i=e;return $(i._context)+".Provider";case f:return ge(e,e.render,"ForwardRef");case w:var d=e.displayName||null;return d!==null?d:z(e.type)||"Memo";case R:{var h=e,y=h._payload,g=h._init;try{return z(g(y))}catch{return null}}}return null}var I=Object.assign,G=0,J,H,te,V,U,S,Ie;function Me(){}Me.__reactDisabledLog=!0;function ur(){{if(G===0){J=console.log,H=console.info,te=console.warn,V=console.error,U=console.group,S=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function dr(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:J}),info:I({},e,{value:H}),warn:I({},e,{value:te}),error:I({},e,{value:V}),group:I({},e,{value:U}),groupCollapsed:I({},e,{value:S}),groupEnd:I({},e,{value:Ie})})}G<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=T.ReactCurrentDispatcher,we;function be(e,n,i){{if(we===void 0)try{throw Error()}catch(h){var d=h.stack.trim().match(/\n( *(at )?)/);we=d&&d[1]||""}return`
|
|
18
|
+
`+we+e}}var Ce=!1,ve;{var fr=typeof WeakMap=="function"?WeakMap:Map;ve=new fr}function ze(e,n){if(!e||Ce)return"";{var i=ve.get(e);if(i!==void 0)return i}var d;Ce=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=xe.current,xe.current=null,ur();try{if(n){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(A){d=A}Reflect.construct(e,[],g)}else{try{g.call()}catch(A){d=A}e.call(g.prototype)}}else{try{throw Error()}catch(A){d=A}e()}}catch(A){if(A&&d&&typeof A.stack=="string"){for(var p=A.stack.split(`
|
|
19
|
+
`),j=d.stack.split(`
|
|
20
|
+
`),C=p.length-1,k=j.length-1;C>=1&&k>=0&&p[C]!==j[k];)k--;for(;C>=1&&k>=0;C--,k--)if(p[C]!==j[k]){if(C!==1||k!==1)do if(C--,k--,k<0||p[C]!==j[k]){var M=`
|
|
21
|
+
`+p[C].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&ve.set(e,M),M}while(C>=1&&k>=0);break}}}finally{Ce=!1,xe.current=y,dr(),Error.prepareStackTrace=h}var X=e?e.displayName||e.name:"",B=X?be(X):"";return typeof e=="function"&&ve.set(e,B),B}function pr(e,n,i){return ze(e,!1)}function gr(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function he(e,n,i){if(e==null)return"";if(typeof e=="function")return ze(e,gr(e));if(typeof e=="string")return be(e);switch(e){case m:return be("Suspense");case v:return be("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return pr(e.render);case w:return he(e.type,n,i);case R:{var d=e,h=d._payload,y=d._init;try{return he(y(h),n,i)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,We={},Ne=T.ReactDebugCurrentFrame;function me(e){if(e){var n=e._owner,i=he(e.type,e._source,n?n.type:null);Ne.setExtraStackFrame(i)}else Ne.setExtraStackFrame(null)}function br(e,n,i,d,h){{var y=Function.call.bind(oe);for(var g in e)if(y(e,g)){var p=void 0;try{if(typeof e[g]!="function"){var j=Error((d||"React class")+": "+i+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}p=e[g](n,g,d,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){p=C}p&&!(p instanceof Error)&&(me(h),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",i,g,typeof p),me(null)),p instanceof Error&&!(p.message in We)&&(We[p.message]=!0,me(h),E("Failed %s type: %s",i,p.message),me(null))}}}var vr=Array.isArray;function ke(e){return vr(e)}function hr(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,i=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function mr(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Le(e){if(mr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hr(e)),Fe(e)}var Ge=T.ReactCurrentOwner,yr={key:!0,ref:!0,__self:!0,__source:!0},He,Ve;function xr(e){if(oe.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function wr(e){if(oe.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Cr(e,n){typeof e.ref=="string"&&Ge.current}function kr(e,n){{var i=function(){He||(He=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function _r(e,n){{var i=function(){Ve||(Ve=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Er=function(e,n,i,d,h,y,g){var p={$$typeof:t,type:e,key:n,ref:i,props:g,_owner:y};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function Rr(e,n,i,d,h){{var y,g={},p=null,j=null;i!==void 0&&(Le(i),p=""+i),wr(n)&&(Le(n.key),p=""+n.key),xr(n)&&(j=n.ref,Cr(n,h));for(y in n)oe.call(n,y)&&!yr.hasOwnProperty(y)&&(g[y]=n[y]);if(e&&e.defaultProps){var C=e.defaultProps;for(y in C)g[y]===void 0&&(g[y]=C[y])}if(p||j){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&kr(g,k),j&&_r(g,k)}return Er(e,p,j,h,d,Ge.current,g)}}var _e=T.ReactCurrentOwner,De=T.ReactDebugCurrentFrame;function K(e){if(e){var n=e._owner,i=he(e.type,e._source,n?n.type:null);De.setExtraStackFrame(i)}else De.setExtraStackFrame(null)}var Ee;Ee=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function $e(){{if(_e.current){var e=z(_e.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Sr(e){return""}var Ue={};function jr(e){{var n=$e();if(!n){var i=typeof e=="string"?e:e.displayName||e.name;i&&(n=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+i+">.")}return n}}function Be(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=jr(n);if(Ue[i])return;Ue[i]=!0;var d="";e&&e._owner&&e._owner!==_e.current&&(d=" It was passed a child from "+z(e._owner.type)+"."),K(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,d),K(null)}}function Ye(e,n){{if(typeof e!="object")return;if(ke(e))for(var i=0;i<e.length;i++){var d=e[i];Re(d)&&Be(d,n)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var h=F(e);if(typeof h=="function"&&h!==e.entries)for(var y=h.call(e),g;!(g=y.next()).done;)Re(g.value)&&Be(g.value,n)}}}function Tr(e){{var n=e.type;if(n==null||typeof n=="string")return;var i;if(typeof n=="function")i=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===w))i=n.propTypes;else return;if(i){var d=z(n);br(i,e.props,"prop",d,e)}else if(n.PropTypes!==void 0&&!Ee){Ee=!0;var h=z(n);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ar(e){{for(var n=Object.keys(e.props),i=0;i<n.length;i++){var d=n[i];if(d!=="children"&&d!=="key"){K(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),K(null);break}}e.ref!==null&&(K(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),K(null))}}var Ze={};function qe(e,n,i,d,h,y){{var g=pe(e);if(!g){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j=Sr();j?p+=j:p+=$e();var C;e===null?C="null":ke(e)?C="array":e!==void 0&&e.$$typeof===t?(C="<"+(z(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,p)}var k=Rr(e,n,i,h,y);if(k==null)return k;if(g){var M=n.children;if(M!==void 0)if(d)if(ke(M)){for(var X=0;X<M.length;X++)Ye(M[X],e);Object.freeze&&Object.freeze(M)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(M,e)}if(oe.call(n,"key")){var B=z(e),A=Object.keys(n).filter(function(Wr){return Wr!=="key"}),Se=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!Ze[B+Se]){var zr=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,Se,B,zr,B),Ze[B+Se]=!0}}return e===o?Ar(k):Tr(k),k}}function Pr(e,n,i){return qe(e,n,i,!0)}function Or(e,n,i){return qe(e,n,i,!1)}var Ir=Or,Mr=Pr;ae.Fragment=o,ae.jsx=Ir,ae.jsxs=Mr}()),ae}process.env.NODE_ENV==="production"?Ae.exports=Gr():Ae.exports=Hr();var b=Ae.exports;const Vr=()=>b.jsx("div",{className:"bg-red-800 text-white p-2",children:"Hello world"});function Dr(){for(var r=0,t,a,o="";r<arguments.length;)(t=arguments[r++])&&(a=rr(t))&&(o&&(o+=" "),o+=a);return o}function rr(r){if(typeof r=="string")return r;for(var t,a="",o=0;o<r.length;o++)r[o]&&(t=rr(r[o]))&&(a&&(a+=" "),a+=t);return a}var Oe="-";function $r(r){var t=Br(r);function a(s){var u=s.split(Oe);return u[0]===""&&u.length!==1&&u.shift(),tr(u,t)||Ur(s)}function o(s){return r.conflictingClassGroups[s]||[]}return{getClassGroupId:a,getConflictingClassGroupIds:o}}function tr(r,t){var c;if(r.length===0)return t.classGroupId;var a=r[0],o=t.nextPart.get(a),s=o?tr(r.slice(1),o):void 0;if(s)return s;if(t.validators.length!==0){var u=r.join(Oe);return(c=t.validators.find(function(l){var f=l.validator;return f(u)}))==null?void 0:c.classGroupId}}var Xe=/^\[(.+)\]$/;function Ur(r){if(Xe.test(r)){var t=Xe.exec(r)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}}function Br(r){var t=r.theme,a=r.prefix,o={nextPart:new Map,validators:[]},s=Zr(Object.entries(r.classGroups),a);return s.forEach(function(u){var c=u[0],l=u[1];Pe(l,o,c,t)}),o}function Pe(r,t,a,o){r.forEach(function(s){if(typeof s=="string"){var u=s===""?t:Qe(t,s);u.classGroupId=a;return}if(typeof s=="function"){if(Yr(s)){Pe(s(o),t,a,o);return}t.validators.push({validator:s,classGroupId:a});return}Object.entries(s).forEach(function(c){var l=c[0],f=c[1];Pe(f,Qe(t,l),a,o)})})}function Qe(r,t){var a=r;return t.split(Oe).forEach(function(o){a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a}function Yr(r){return r.isThemeGetter}function Zr(r,t){return t?r.map(function(a){var o=a[0],s=a[1],u=s.map(function(c){return typeof c=="string"?t+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(function(l){var f=l[0],m=l[1];return[t+f,m]})):c});return[o,u]}):r}function qr(r){if(r<1)return{get:function(){},set:function(){}};var t=0,a=new Map,o=new Map;function s(u,c){a.set(u,c),t++,t>r&&(t=0,o=a,a=new Map)}return{get:function(c){var l=a.get(c);if(l!==void 0)return l;if((l=o.get(c))!==void 0)return s(c,l),l},set:function(c,l){a.has(c)?a.set(c,l):s(c,l)}}}var or="!";function Jr(r){var t=r.separator||":";return function(o){for(var s=0,u=[],c=0,l=0;l<o.length;l++){var f=o[l];s===0&&f===t[0]&&(t.length===1||o.slice(l,l+t.length)===t)&&(u.push(o.slice(c,l)),c=l+t.length),f==="["?s++:f==="]"&&s--}var m=u.length===0?o:o.substring(c),v=m.startsWith(or),w=v?m.substring(1):m;return{modifiers:u,hasImportantModifier:v,baseClassName:w}}}function Kr(r){if(r.length<=1)return r;var t=[],a=[];return r.forEach(function(o){var s=o[0]==="[";s?(t.push.apply(t,a.sort().concat([o])),a=[]):a.push(o)}),t.push.apply(t,a.sort()),t}function Xr(r){return{cache:qr(r.cacheSize),splitModifiers:Jr(r),...$r(r)}}var Qr=/\s+/;function et(r,t){var a=t.splitModifiers,o=t.getClassGroupId,s=t.getConflictingClassGroupIds,u=new Set;return r.trim().split(Qr).map(function(c){var l=a(c),f=l.modifiers,m=l.hasImportantModifier,v=l.baseClassName,w=o(v);if(!w)return{isTailwindClass:!1,originalClassName:c};var R=Kr(f).join(":"),P=m?R+or:R;return{isTailwindClass:!0,modifierId:P,classGroupId:w,originalClassName:c}}).reverse().filter(function(c){if(!c.isTailwindClass)return!0;var l=c.modifierId,f=c.classGroupId,m=l+f;return u.has(m)?!1:(u.add(m),s(f).forEach(function(v){return u.add(l+v)}),!0)}).reverse().map(function(c){return c.originalClassName}).join(" ")}function rt(){for(var r=arguments.length,t=new Array(r),a=0;a<r;a++)t[a]=arguments[a];var o,s,u,c=l;function l(m){var v=t[0],w=t.slice(1),R=w.reduce(function(P,O){return O(P)},v());return o=Xr(R),s=o.cache.get,u=o.cache.set,c=f,f(m)}function f(m){var v=s(m);if(v)return v;var w=et(m,o);return u(m,w),w}return function(){return c(Dr.apply(null,arguments))}}function x(r){var t=function(o){return o[r]||[]};return t.isThemeGetter=!0,t}var nr=/^\[(?:([a-z-]+):)?(.+)\]$/i,tt=/^\d+\/\d+$/,ot=new Set(["px","full","screen"]),nt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,at=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,it=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function W(r){return le(r)||ot.has(r)||tt.test(r)||Y(r)}function Y(r){return Z(r,"length",dt)}function st(r){return Z(r,"size",ar)}function lt(r){return Z(r,"position",ar)}function ct(r){return Z(r,"url",ft)}function je(r){return Z(r,"number",le)}function le(r){return!Number.isNaN(Number(r))}function ie(r){return er(r)||Z(r,"number",er)}function _(r){return nr.test(r)}function se(){return!0}function D(r){return nt.test(r)}function ut(r){return Z(r,"",pt)}function Z(r,t,a){var o=nr.exec(r);return o?o[1]?o[1]===t:a(o[2]):!1}function dt(r){return at.test(r)}function ar(){return!1}function ft(r){return r.startsWith("url(")}function er(r){return Number.isInteger(Number(r))}function pt(r){return it.test(r)}function gt(){var r=x("colors"),t=x("spacing"),a=x("blur"),o=x("brightness"),s=x("borderColor"),u=x("borderRadius"),c=x("borderSpacing"),l=x("borderWidth"),f=x("contrast"),m=x("grayscale"),v=x("hueRotate"),w=x("invert"),R=x("gap"),P=x("gradientColorStops"),O=x("inset"),L=x("margin"),F=x("opacity"),T=x("padding"),E=x("saturate"),ee=x("scale"),ce=x("sepia"),ue=x("skew"),de=x("space"),fe=x("translate"),re=function(){return["auto","contain","none"]},q=function(){return["auto","hidden","clip","visible","scroll"]},pe=function(){return["auto",t]},ge=function(){return["",W]},$=function(){return["auto",le,_]},z=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},I=function(){return["solid","dashed","dotted","double","none"]},G=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},J=function(){return["start","end","center","between","around","evenly"]},H=function(){return["","0",_]},te=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},V=function(){return[le,je]},U=function(){return[le,_]};return{cacheSize:500,theme:{colors:[se],spacing:[W],blur:["none","",D,Y],brightness:V(),borderColor:[r],borderRadius:["none","","full",D,Y],borderSpacing:[t],borderWidth:ge(),contrast:V(),grayscale:H(),hueRotate:U(),invert:H(),gap:[t],gradientColorStops:[r],inset:pe(),margin:pe(),opacity:V(),padding:[t],saturate:V(),scale:V(),sepia:H(),skew:U(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[D]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(z(),[_])}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ie]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",ie]}],"grid-cols":[{"grid-cols":[se]}],"col-start-end":[{col:["auto",{span:[ie]},_]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[se]}],"row-start-end":[{row:["auto",{span:[ie]},_]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:J()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(J(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(J(),["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[L]}],mx:[{mx:[L]}],my:[{my:[L]}],mt:[{mt:[L]}],mr:[{mr:[L]}],mb:[{mb:[L]}],ml:[{ml:[L]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",W]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[D]},D,Y]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",D,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",je]}],"font-family":[{font:[se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[F]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(I(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",W]}],"underline-offset":[{"underline-offset":["auto",W]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[F]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(z(),[lt])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",st]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ct]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[].concat(I(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[F]}],"divide-style":[{divide:I()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:[""].concat(I())}],"outline-offset":[{"outline-offset":[W]}],"outline-w":[{outline:[W]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[W]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",D,ut]}],"shadow-color":[{shadow:[se]}],opacity:[{opacity:[F]}],"mix-blend":[{"mix-blend":G()}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",D,_]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[w]}],saturate:[{saturate:[E]}],sepia:[{sepia:[ce]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ee]}],"scale-x":[{"scale-x":[ee]}],"scale-y":[{"scale-y":[ee]}],rotate:[{rotate:[ie,_]}],"translate-x":[{"translate-x":[fe]}],"translate-y":[{"translate-y":[fe]}],"skew-x":[{"skew-x":[ue]}],"skew-y":[{"skew-y":[ue]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[W,je]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var bt=rt(gt);function ir(r){var t,a,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(a=ir(r[t]))&&(o&&(o+=" "),o+=a);else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function vt(){for(var r,t,a=0,o="";a<arguments.length;)(r=arguments[a++])&&(t=ir(r))&&(o&&(o+=" "),o+=t);return o}function ye(...r){return bt(vt(r))}function ht({className:r="",size:t="1em"}){return b.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[b.jsx("path",{d:"M12.001 7.7395C12.2367 7.73978 12.4591 7.85076 12.6006 8.03931L15.376 11.7395C15.5459 11.9666 15.5731 12.2708 15.4463 12.5247C15.3193 12.7785 15.0592 12.9395 14.7754 12.9397H12.75V17.2766C12.7499 17.6907 12.4142 18.0266 12 18.0266C11.5858 18.0266 11.2501 17.6907 11.25 17.2766V12.9397H9.22559C8.94169 12.9397 8.68182 12.7785 8.55469 12.5247C8.42778 12.2706 8.45558 11.9667 8.62598 11.7395L11.4004 8.03931L11.457 7.97192C11.5977 7.82422 11.7945 7.7395 12.001 7.7395Z",fill:"currentColor"}),b.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2.65161C17.5228 2.65161 22 7.12876 22 12.6516C22 18.1744 17.5228 22.6516 12 22.6516C6.47715 22.6516 2 18.1744 2 12.6516C2 7.12876 6.47715 2.65161 12 2.65161ZM12 4.15161C7.30558 4.15161 3.5 7.95719 3.5 12.6516C3.5 17.346 7.30558 21.1516 12 21.1516C16.6944 21.1516 20.5 17.346 20.5 12.6516C20.5 7.95719 16.6944 4.15161 12 4.15161Z",fill:"currentColor"})]})}function mt({className:r="",size:t="1em"}){return b.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:b.jsx("path",{d:"M12 2C10.0222 2 8.08879 2.58649 6.4443 3.6853C4.79981 4.78412 3.51809 6.3459 2.76121 8.17316C2.00433 10.0004 1.8063 12.0111 2.19215 13.9509C2.578 15.8907 3.53041 17.6725 4.92894 19.0711C6.32746 20.4696 8.10929 21.422 10.0491 21.8078C11.9889 22.1937 13.9996 21.9957 15.8268 21.2388C17.6541 20.4819 19.2159 19.2002 20.3147 17.5557C21.4135 15.9112 22 13.9778 22 12C21.9971 9.34871 20.9426 6.80684 19.0679 4.9321C17.1932 3.05736 14.6513 2.00287 12 2ZM15.7092 11.7642C15.6751 11.8349 15.6217 11.8945 15.5553 11.9363C15.4888 11.978 15.4118 12.0001 15.3333 12H12.8333V16.1667C12.8333 16.3877 12.7455 16.5996 12.5893 16.7559C12.433 16.9122 12.221 17 12 17C11.779 17 11.567 16.9122 11.4107 16.7559C11.2545 16.5996 11.1667 16.3877 11.1667 16.1667V12H8.66667C8.58819 12 8.5113 11.9779 8.44484 11.9362C8.37839 11.8945 8.32507 11.8348 8.29102 11.7641C8.25697 11.6934 8.24359 11.6145 8.2524 11.5365C8.26121 11.4586 8.29187 11.3847 8.34084 11.3233L11.6742 7.15667C11.7146 7.10991 11.7646 7.07241 11.8209 7.04671C11.8771 7.021 11.9382 7.0077 12 7.0077C12.0618 7.0077 12.1229 7.021 12.1791 7.04671C12.2354 7.07241 12.2854 7.10991 12.3258 7.15667L15.6592 11.3233C15.7082 11.3846 15.7389 11.4585 15.7477 11.5365C15.7566 11.6145 15.7432 11.6934 15.7092 11.7642Z",fill:"#1DA56A"})})}const yt=({tooltipContent:r="Send message",className:t,...a})=>{const[o,s]=N.useState(!1);return b.jsx(Te.Tooltip,{content:r,children:b.jsx(Te.IconButton,{variant:"text",color:"gray",className:ye(t,"hover:rounded-lg hover:bg-gray-100"),type:"submit",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...a,children:o?b.jsx(mt,{className:"size-6 "}):b.jsx(ht,{className:"size-6 "})})})},sr=({onSubmit:r=()=>{},...t})=>b.jsx(Nr,{autoFocus:!0,placeholder:"Write your message here",className:"pl-1 block w-full focus:outline-none max-h-32 resize-none placeholder:text-gray-400",onKeyDown:a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),r())},...t}),xt=({bottom:r,right:t,top:a,textArea:o=b.jsx(sr,{}),...s})=>b.jsxs("div",{className:"border gap-2 rounded-lg bg-white shadow-[0px_2px_2px_0px_#0000000A,0px_8px_8px_-8px_#0000000A] border-gray-100",...s,children:[a,b.jsxs("div",{className:"flex gap-2 p-4 rounded-lg bg-white",children:[b.jsxs("div",{className:"grow flex flex-col items-start justify-center",children:[o,r]}),b.jsx("div",{className:"shrink flex items-end justify-end",children:t})]})]}),wt=Object.freeze(Object.defineProperty({__proto__:null,Container:xt,SubmitButton:yt,Textarea:sr},Symbol.toStringTag,{value:"Module"})),Q=N.createContext(void 0),lr=({children:r,isCollapsed:t,onSwitchLayout:a})=>{const[o,s]=N.useState(!1),[u,c]=N.useState(!1),l=t!==void 0?t:o,f=m=>{const v=m??!l;t===void 0&&s(v),a==null||a(v)};return b.jsx(Q.Provider,{value:{isCollapsed:l,toggleCollapsed:f,isHovered:u,setIsHovered:c},children:r})},cr=({className:r,children:t,...a})=>{const{isCollapsed:o,isHovered:s,setIsHovered:u}=N.useContext(Q);return b.jsx("div",{className:ye(r,o&&"shadow-lg",o&&!s?"w-auto":"w-[280px]","bg-gray-50 p-2 flex flex-col justify-between items-center rounded-lg"),onMouseEnter:()=>o&&u(!0),onMouseLeave:()=>o&&u(!1),...a,children:t})},Ct=({className:r,children:t,isCollapsed:a,onSwitchLayout:o,...s})=>b.jsx(lr,{isCollapsed:a,onSwitchLayout:o,children:b.jsx(cr,{className:r,...s,children:t})}),kt=({icon:r,children:t,...a})=>{const{isCollapsed:o,isHovered:s}=N.useContext(Q);return b.jsxs("button",{className:"flex items-center gap-2 w-full hover:bg-gray-100 text-caption-1-em text-gray-600 hover:text-gray-900 h-[38px] rounded-lg px-2",...a,children:[r," ",(!o||s)&&t]})};function _t(r){return b.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:b.jsx("path",{d:"M13 1C14.6569 1 16 2.34315 16 4V12L15.9961 12.1543C15.9158 13.7394 14.6051 15 13 15H3L2.8457 14.9961C1.31166 14.9184 0.0816253 13.6883 0.00390625 12.1543L0 12V4C1.28853e-07 2.34315 1.34315 1 3 1H13ZM3 2.5C2.17157 2.5 1.5 3.17157 1.5 4V12C1.5 12.8284 2.17157 13.5 3 13.5H13C13.8284 13.5 14.5 12.8284 14.5 12V4C14.5 3.17157 13.8284 2.5 13 2.5H3ZM3.75 3.5C4.16421 3.5 4.5 3.83579 4.5 4.25V11.75C4.5 12.1642 4.16421 12.5 3.75 12.5C3.33579 12.5 3 12.1642 3 11.75V4.25C3 3.83579 3.33579 3.5 3.75 3.5Z",fill:"currentColor"})})}function Et(r){return b.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:b.jsx("path",{d:"M13 1C14.6569 1 16 2.34315 16 4V12L15.9961 12.1543C15.9158 13.7394 14.6051 15 13 15H3L2.8457 14.9961C1.31166 14.9184 0.0816253 13.6883 0.00390625 12.1543L0 12V4C1.28853e-07 2.34315 1.34315 1 3 1H13ZM3 2.5C2.17157 2.5 1.5 3.17157 1.5 4V12C1.5 12.8284 2.17157 13.5 3 13.5H13C13.8284 13.5 14.5 12.8284 14.5 12V4C14.5 3.17157 13.8284 2.5 13 2.5H3ZM7.5 4C7.77614 4 8 4.22386 8 4.5V11.5C8 11.7761 7.77614 12 7.5 12H3.5C3.22386 12 3 11.7761 3 11.5V4.5C3 4.22386 3.22386 4 3.5 4H7.5Z",fill:"currentColor"})})}const Rt=()=>{const{isCollapsed:r,isHovered:t,toggleCollapsed:a}=N.useContext(Q);return r&&!t?null:b.jsx(Te.IconButton,{variant:"text",color:"gray",onClick:()=>a(),children:r?b.jsx(_t,{className:"size-4"}):b.jsx(Et,{className:"size-4"})})},St=({children:r,className:t,icon:a,isActive:o,trailing:s,...u})=>{const{isCollapsed:c,isHovered:l}=N.useContext(Q);return b.jsxs("div",{className:ye(o?"!text-gray-900":"!text-gray-600","flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg px-2 cursor-pointer group",t),...u,children:[b.jsxs("div",{className:"flex items-center gap-2",children:[a,(!c||l)&&r]}),(!c||l)&&s]})},jt=({children:r,className:t,isActive:a,trailing:o,icon:s,...u})=>{const{isCollapsed:c,isHovered:l}=N.useContext(Q);return b.jsxs("div",{className:ye(a?"!text-gray-900":"!text-gray-600","flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg pr-2 pl-3 cursor-pointer group text-sm",t),...u,children:[b.jsxs("div",{className:"flex items-center gap-2 overflow-auto",children:[(!c||l)&&s," ",(!c||l)&&r]}),(!c||l)&&o]})},Tt=Object.freeze(Object.defineProperty({__proto__:null,Button:kt,Container:cr,Item:St,Layout:Ct,Provider:lr,SecondaryItem:jt,ToggleCollapseButton:Rt},Symbol.toStringTag,{value:"Module"}));exports.HelloWorld=Vr;exports.InputPrompt=wt;exports.Sidebar=Tt;exports.materialTheme=Lr;exports.tailwindTheme=Fr;
|
package/dist/index.d.ts
ADDED