@super_studio/ecforce-ai-agent-react 0.1.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/chatbot.css DELETED
@@ -1,166 +0,0 @@
1
- /* Chatbot Trigger Button */
2
- .chatbot-trigger {
3
- position: fixed;
4
- bottom: 1rem;
5
- right: 1rem;
6
- z-index: 50;
7
- border-radius: 9999px;
8
- border: 1px solid #f0f2f7;
9
- background-color: #ffffff;
10
- padding: 0.375rem;
11
- color: #0061ff;
12
- box-shadow:
13
- 0 1px 3px 0 rgba(0, 0, 0, 0.1),
14
- 0 1px 2px 0 rgba(0, 0, 0, 0.06);
15
- transition: colors 200ms ease-in-out;
16
- cursor: pointer;
17
- }
18
-
19
- .chatbot-trigger:hover {
20
- background-color: #f0f2f7;
21
- }
22
-
23
- /* Popover Backdrop */
24
- .chatbot-popover-backdrop {
25
- position: fixed;
26
- top: 0;
27
- right: 0;
28
- bottom: 0;
29
- left: 0;
30
- z-index: 30;
31
- background-color: rgba(0, 0, 0, 0.5);
32
- animation: fade-in 150ms ease-out;
33
- }
34
-
35
- /* Popover Content */
36
- .chatbot-popover-content {
37
- z-index: 50;
38
- border-radius: 2rem;
39
- background-color: #f7f9fa;
40
- box-shadow:
41
- 0 4px 6px -1px rgba(0, 0, 0, 0.1),
42
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
43
- outline: none;
44
- overflow: hidden;
45
- height: 80vh;
46
- width: 600px;
47
- }
48
-
49
- /* Animation states */
50
- .chatbot-popover-content[data-state="closed"] {
51
- display: none;
52
- }
53
-
54
- .chatbot-popover-content[data-state="open"] {
55
- animation:
56
- zoom-in 150ms ease-out,
57
- fade-in 150ms ease-out;
58
- }
59
-
60
- .chatbot-popover-content[data-state="closed"] {
61
- animation:
62
- zoom-out 150ms ease-in,
63
- fade-out 150ms ease-in;
64
- }
65
-
66
- /* Side-specific slide animations */
67
- .chatbot-popover-content[data-side="bottom"] {
68
- animation:
69
- zoom-in 150ms ease-out,
70
- fade-in 150ms ease-out,
71
- slide-in-from-top 150ms ease-out;
72
- }
73
-
74
- .chatbot-popover-content[data-side="top"] {
75
- animation:
76
- zoom-in 150ms ease-out,
77
- fade-in 150ms ease-out,
78
- slide-in-from-bottom 150ms ease-out;
79
- }
80
-
81
- .chatbot-popover-content[data-side="left"] {
82
- animation:
83
- zoom-in 150ms ease-out,
84
- fade-in 150ms ease-out,
85
- slide-in-from-right 150ms ease-out;
86
- }
87
-
88
- .chatbot-popover-content[data-side="right"] {
89
- animation:
90
- zoom-in 150ms ease-out,
91
- fade-in 150ms ease-out,
92
- slide-in-from-left 150ms ease-out;
93
- }
94
-
95
- /* Keyframe Animations */
96
- @keyframes fade-in {
97
- from {
98
- opacity: 0;
99
- }
100
- to {
101
- opacity: 1;
102
- }
103
- }
104
-
105
- @keyframes fade-out {
106
- from {
107
- opacity: 1;
108
- }
109
- to {
110
- opacity: 0;
111
- }
112
- }
113
-
114
- @keyframes zoom-in {
115
- from {
116
- transform: scale(0.95);
117
- }
118
- to {
119
- transform: scale(1);
120
- }
121
- }
122
-
123
- @keyframes zoom-out {
124
- from {
125
- transform: scale(1);
126
- }
127
- to {
128
- transform: scale(0.95);
129
- }
130
- }
131
-
132
- @keyframes slide-in-from-top {
133
- from {
134
- transform: translateY(-0.5rem);
135
- }
136
- to {
137
- transform: translateY(0);
138
- }
139
- }
140
-
141
- @keyframes slide-in-from-bottom {
142
- from {
143
- transform: translateY(0.5rem);
144
- }
145
- to {
146
- transform: translateY(0);
147
- }
148
- }
149
-
150
- @keyframes slide-in-from-left {
151
- from {
152
- transform: translateX(-0.5rem);
153
- }
154
- to {
155
- transform: translateX(0);
156
- }
157
- }
158
-
159
- @keyframes slide-in-from-right {
160
- from {
161
- transform: translateX(0.5rem);
162
- }
163
- to {
164
- transform: translateX(0);
165
- }
166
- }
package/src/popover.tsx DELETED
@@ -1,54 +0,0 @@
1
- "use client";
2
-
3
- import * as PopoverPrimitive from "@radix-ui/react-popover";
4
- import * as React from "react";
5
-
6
- const Popover = PopoverPrimitive.Root;
7
-
8
- const PopoverTrigger = React.forwardRef<
9
- React.ElementRef<typeof PopoverPrimitive.Trigger>,
10
- React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>
11
- >(({ className, ...props }, ref) => (
12
- <PopoverPrimitive.Trigger
13
- ref={ref}
14
- className={`chatbot-trigger ${className}`}
15
- {...props}
16
- />
17
- ));
18
- PopoverTrigger.displayName = PopoverPrimitive.Trigger.displayName;
19
-
20
- const PopoverContent = React.forwardRef<
21
- React.ElementRef<typeof PopoverPrimitive.Content>,
22
- React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {
23
- backdrop?: boolean;
24
- }
25
- >(
26
- (
27
- {
28
- className,
29
- align = "center",
30
- backdrop,
31
- sideOffset = 4,
32
- forceMount,
33
- ...props
34
- },
35
- ref,
36
- ) => (
37
- <PopoverPrimitive.Portal forceMount={forceMount}>
38
- <div>
39
- {backdrop && <div className="chatbot-popover-backdrop" />}
40
- <PopoverPrimitive.Content
41
- ref={ref}
42
- align={align}
43
- sideOffset={sideOffset}
44
- forceMount={forceMount}
45
- className={`chatbot-popover-content ${className}`}
46
- {...props}
47
- />
48
- </div>
49
- </PopoverPrimitive.Portal>
50
- ),
51
- );
52
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
53
-
54
- export { Popover, PopoverTrigger, PopoverContent };