@pos-360/horizon 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +185 -0
  3. package/dist/animated-icons.d.mts +54 -0
  4. package/dist/animated-icons.d.ts +54 -0
  5. package/dist/animated-icons.js +28 -0
  6. package/dist/animated-icons.js.map +1 -0
  7. package/dist/animated-icons.mjs +3 -0
  8. package/dist/animated-icons.mjs.map +1 -0
  9. package/dist/chunk-2B2BWI5A.mjs +324 -0
  10. package/dist/chunk-2B2BWI5A.mjs.map +1 -0
  11. package/dist/chunk-6YAK6HNR.mjs +471 -0
  12. package/dist/chunk-6YAK6HNR.mjs.map +1 -0
  13. package/dist/chunk-7LVVOCBV.mjs +977 -0
  14. package/dist/chunk-7LVVOCBV.mjs.map +1 -0
  15. package/dist/chunk-AA25LTS4.js +4 -0
  16. package/dist/chunk-AA25LTS4.js.map +1 -0
  17. package/dist/chunk-J6RXKZE5.js +1080 -0
  18. package/dist/chunk-J6RXKZE5.js.map +1 -0
  19. package/dist/chunk-R5HAFV6M.js +350 -0
  20. package/dist/chunk-R5HAFV6M.js.map +1 -0
  21. package/dist/chunk-Y6G4VKJ3.mjs +3 -0
  22. package/dist/chunk-Y6G4VKJ3.mjs.map +1 -0
  23. package/dist/chunk-ZD6CMWPW.js +476 -0
  24. package/dist/chunk-ZD6CMWPW.js.map +1 -0
  25. package/dist/enhanced.d.mts +81 -0
  26. package/dist/enhanced.d.ts +81 -0
  27. package/dist/enhanced.js +24 -0
  28. package/dist/enhanced.js.map +1 -0
  29. package/dist/enhanced.mjs +3 -0
  30. package/dist/enhanced.mjs.map +1 -0
  31. package/dist/hooks.d.mts +2 -0
  32. package/dist/hooks.d.ts +2 -0
  33. package/dist/hooks.js +6 -0
  34. package/dist/hooks.js.map +1 -0
  35. package/dist/hooks.mjs +3 -0
  36. package/dist/hooks.mjs.map +1 -0
  37. package/dist/index.d.mts +25 -0
  38. package/dist/index.d.ts +25 -0
  39. package/dist/index.js +351 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/index.mjs +6 -0
  42. package/dist/index.mjs.map +1 -0
  43. package/dist/primitives.d.mts +168 -0
  44. package/dist/primitives.d.ts +168 -0
  45. package/dist/primitives.js +308 -0
  46. package/dist/primitives.js.map +1 -0
  47. package/dist/primitives.mjs +3 -0
  48. package/dist/primitives.mjs.map +1 -0
  49. package/dist/tailwind.d.mts +104 -0
  50. package/dist/tailwind.d.ts +104 -0
  51. package/dist/tailwind.js +75 -0
  52. package/dist/tailwind.js.map +1 -0
  53. package/dist/tailwind.mjs +73 -0
  54. package/dist/tailwind.mjs.map +1 -0
  55. package/package.json +103 -0
  56. package/tailwind.config.js +105 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 POS-360
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,185 @@
1
+ # @pos-360/horizon
2
+
3
+ Unified UI component library for the POS-360 software ecosystem. Built with React, TypeScript, and Tailwind CSS.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @pos-360/horizon
9
+ # or
10
+ pnpm add @pos-360/horizon
11
+ # or
12
+ yarn add @pos-360/horizon
13
+ ```
14
+
15
+ ### Peer Dependencies
16
+
17
+ Ensure you have the following peer dependencies installed:
18
+
19
+ ```bash
20
+ npm install react react-dom tailwindcss clsx tailwind-merge class-variance-authority
21
+ # For enhanced components
22
+ npm install framer-motion lucide-react @radix-ui/react-checkbox @radix-ui/react-dialog @radix-ui/react-dropdown-menu @radix-ui/react-popover @radix-ui/react-select @radix-ui/react-tabs
23
+ ```
24
+
25
+ ## Setup
26
+
27
+ ### Tailwind Configuration
28
+
29
+ Extend your `tailwind.config.js` with the Horizon preset:
30
+
31
+ ```js
32
+ const horizonPreset = require("@pos-360/horizon/tailwind");
33
+
34
+ module.exports = {
35
+ presets: [horizonPreset],
36
+ content: [
37
+ // ... your content paths
38
+ "./node_modules/@pos-360/horizon/**/*.{js,ts,jsx,tsx}",
39
+ ],
40
+ // ... rest of your config
41
+ };
42
+ ```
43
+
44
+ ## Usage
45
+
46
+ ### Importing Components
47
+
48
+ ```tsx
49
+ // Import specific components
50
+ import { Button, Card, Badge } from "@pos-360/horizon";
51
+
52
+ // Or import from specific entry points for better tree-shaking
53
+ import { Button, Badge } from "@pos-360/horizon/primitives";
54
+ import { Input, Toast } from "@pos-360/horizon/enhanced";
55
+ import { useToast } from "@pos-360/horizon/hooks";
56
+ ```
57
+
58
+ ### Basic Example
59
+
60
+ ```tsx
61
+ import { Button, Card, CardHeader, CardTitle, CardContent } from "@pos-360/horizon";
62
+
63
+ function MyComponent() {
64
+ return (
65
+ <Card>
66
+ <CardHeader>
67
+ <CardTitle>Welcome</CardTitle>
68
+ </CardHeader>
69
+ <CardContent>
70
+ <Button variant="default">Click me</Button>
71
+ </CardContent>
72
+ </Card>
73
+ );
74
+ }
75
+ ```
76
+
77
+ ### Using Toast Notifications
78
+
79
+ ```tsx
80
+ import { Toast, useToast } from "@pos-360/horizon";
81
+
82
+ function MyComponent() {
83
+ const { toast, showSuccess, showError } = useToast();
84
+
85
+ return (
86
+ <div>
87
+ <button onClick={() => showSuccess("Operation completed!")}>
88
+ Show Success
89
+ </button>
90
+ <button onClick={() => showError("Something went wrong")}>
91
+ Show Error
92
+ </button>
93
+ {toast && <Toast {...toast} />}
94
+ </div>
95
+ );
96
+ }
97
+ ```
98
+
99
+ ## Components
100
+
101
+ ### Primitives
102
+
103
+ Core UI building blocks based on shadcn/ui patterns:
104
+
105
+ | Component | Description |
106
+ |-----------|-------------|
107
+ | `Button` | Versatile button with variants (default, destructive, outline, secondary, ghost, link) |
108
+ | `Badge` | Status indicators with variants (default, secondary, destructive, outline, success, warning, info) |
109
+ | `Card` | Container with header, title, description, content, and footer subcomponents |
110
+ | `Checkbox` | Accessible checkbox built on Radix UI |
111
+ | `Dialog` | Modal dialog with overlay, header, footer, title, and description |
112
+ | `DropdownMenu` | Full-featured dropdown menu system |
113
+ | `Popover` | Floating content container |
114
+ | `Select` | Accessible select/dropdown built on Radix UI |
115
+ | `Skeleton` | Loading state placeholders (text, title, avatar, card, table rows) |
116
+ | `Table` | Full table system with header, body, row, cell components |
117
+ | `Tabs` | Tab navigation built on Radix UI |
118
+ | `Textarea` | Multi-line text input |
119
+
120
+ ### Enhanced
121
+
122
+ Feature-rich components with advanced behaviors:
123
+
124
+ | Component | Description |
125
+ |-----------|-------------|
126
+ | `AnimatedButton` | Framer Motion powered button with hover/tap animations |
127
+ | `Input` | Full-featured input with icons, decorators, number controls, select mode, and mobile formatting |
128
+ | `TextButton` | Text-style button with leading/trailing decorators |
129
+ | `Toast` | Animated toast notifications with progress bar |
130
+
131
+ ### Hooks
132
+
133
+ | Hook | Description |
134
+ |------|-------------|
135
+ | `useToast` | Toast notification state management |
136
+
137
+ ### Utilities
138
+
139
+ | Utility | Description |
140
+ |---------|-------------|
141
+ | `cn` | Class name merger (clsx + tailwind-merge) |
142
+
143
+ ## Design Tokens
144
+
145
+ The Horizon Tailwind preset includes POS-360 design tokens:
146
+
147
+ ### Colors
148
+
149
+ - Primary: `primary-50` through `primary-950`
150
+ - Semantic: `background`, `foreground`, `card`, `popover`, `muted`, `accent`, `destructive`
151
+ - Border and input colors with dark mode support
152
+
153
+ ### Animations
154
+
155
+ - `accordion-down` / `accordion-up`
156
+ - `pulse-slow` (slower pulse for skeletons)
157
+
158
+ ## Development
159
+
160
+ ```bash
161
+ # Install dependencies
162
+ pnpm install
163
+
164
+ # Build the package
165
+ pnpm build
166
+
167
+ # Watch mode
168
+ pnpm dev
169
+ ```
170
+
171
+ ## Package Exports
172
+
173
+ ```json
174
+ {
175
+ ".": "./dist/index.js",
176
+ "./primitives": "./dist/primitives.js",
177
+ "./enhanced": "./dist/enhanced.js",
178
+ "./hooks": "./dist/hooks.js",
179
+ "./tailwind": "./dist/tailwind.js"
180
+ }
181
+ ```
182
+
183
+ ## License
184
+
185
+ MIT - POS-360
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+
3
+ interface ArrowRightIconHandle {
4
+ startAnimation: () => void;
5
+ stopAnimation: () => void;
6
+ }
7
+ interface ArrowRightIconProps {
8
+ size?: number;
9
+ className?: string;
10
+ }
11
+ declare const ArrowRightIcon: React.ForwardRefExoticComponent<ArrowRightIconProps & React.RefAttributes<ArrowRightIconHandle>>;
12
+
13
+ interface PlusIconHandle {
14
+ startAnimation: () => void;
15
+ stopAnimation: () => void;
16
+ }
17
+ interface PlusIconProps {
18
+ size?: number;
19
+ className?: string;
20
+ }
21
+ declare const PlusIcon: React.ForwardRefExoticComponent<PlusIconProps & React.RefAttributes<PlusIconHandle>>;
22
+
23
+ interface CheckIconHandle {
24
+ startAnimation: () => void;
25
+ stopAnimation: () => void;
26
+ }
27
+ interface CheckIconProps {
28
+ size?: number;
29
+ className?: string;
30
+ }
31
+ declare const CheckIcon: React.ForwardRefExoticComponent<CheckIconProps & React.RefAttributes<CheckIconHandle>>;
32
+
33
+ interface SendIconHandle {
34
+ startAnimation: () => void;
35
+ stopAnimation: () => void;
36
+ }
37
+ interface SendIconProps {
38
+ size?: number;
39
+ className?: string;
40
+ }
41
+ declare const SendIcon: React.ForwardRefExoticComponent<SendIconProps & React.RefAttributes<SendIconHandle>>;
42
+
43
+ interface TrashIconHandle {
44
+ startAnimation: () => void;
45
+ stopAnimation: () => void;
46
+ }
47
+ interface TrashIconProps {
48
+ size?: number;
49
+ duration?: number;
50
+ className?: string;
51
+ }
52
+ declare const TrashIcon: React.ForwardRefExoticComponent<TrashIconProps & React.RefAttributes<TrashIconHandle>>;
53
+
54
+ export { ArrowRightIcon, type ArrowRightIconHandle, type ArrowRightIconProps, CheckIcon, type CheckIconHandle, type CheckIconProps, PlusIcon, type PlusIconHandle, type PlusIconProps, SendIcon, type SendIconHandle, type SendIconProps, TrashIcon, type TrashIconHandle, type TrashIconProps };
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+
3
+ interface ArrowRightIconHandle {
4
+ startAnimation: () => void;
5
+ stopAnimation: () => void;
6
+ }
7
+ interface ArrowRightIconProps {
8
+ size?: number;
9
+ className?: string;
10
+ }
11
+ declare const ArrowRightIcon: React.ForwardRefExoticComponent<ArrowRightIconProps & React.RefAttributes<ArrowRightIconHandle>>;
12
+
13
+ interface PlusIconHandle {
14
+ startAnimation: () => void;
15
+ stopAnimation: () => void;
16
+ }
17
+ interface PlusIconProps {
18
+ size?: number;
19
+ className?: string;
20
+ }
21
+ declare const PlusIcon: React.ForwardRefExoticComponent<PlusIconProps & React.RefAttributes<PlusIconHandle>>;
22
+
23
+ interface CheckIconHandle {
24
+ startAnimation: () => void;
25
+ stopAnimation: () => void;
26
+ }
27
+ interface CheckIconProps {
28
+ size?: number;
29
+ className?: string;
30
+ }
31
+ declare const CheckIcon: React.ForwardRefExoticComponent<CheckIconProps & React.RefAttributes<CheckIconHandle>>;
32
+
33
+ interface SendIconHandle {
34
+ startAnimation: () => void;
35
+ stopAnimation: () => void;
36
+ }
37
+ interface SendIconProps {
38
+ size?: number;
39
+ className?: string;
40
+ }
41
+ declare const SendIcon: React.ForwardRefExoticComponent<SendIconProps & React.RefAttributes<SendIconHandle>>;
42
+
43
+ interface TrashIconHandle {
44
+ startAnimation: () => void;
45
+ stopAnimation: () => void;
46
+ }
47
+ interface TrashIconProps {
48
+ size?: number;
49
+ duration?: number;
50
+ className?: string;
51
+ }
52
+ declare const TrashIcon: React.ForwardRefExoticComponent<TrashIconProps & React.RefAttributes<TrashIconHandle>>;
53
+
54
+ export { ArrowRightIcon, type ArrowRightIconHandle, type ArrowRightIconProps, CheckIcon, type CheckIconHandle, type CheckIconProps, PlusIcon, type PlusIconHandle, type PlusIconProps, SendIcon, type SendIconHandle, type SendIconProps, TrashIcon, type TrashIconHandle, type TrashIconProps };
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var chunkR5HAFV6M_js = require('./chunk-R5HAFV6M.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "ArrowRightIcon", {
8
+ enumerable: true,
9
+ get: function () { return chunkR5HAFV6M_js.ArrowRightIcon; }
10
+ });
11
+ Object.defineProperty(exports, "CheckIcon", {
12
+ enumerable: true,
13
+ get: function () { return chunkR5HAFV6M_js.CheckIcon; }
14
+ });
15
+ Object.defineProperty(exports, "PlusIcon", {
16
+ enumerable: true,
17
+ get: function () { return chunkR5HAFV6M_js.PlusIcon; }
18
+ });
19
+ Object.defineProperty(exports, "SendIcon", {
20
+ enumerable: true,
21
+ get: function () { return chunkR5HAFV6M_js.SendIcon; }
22
+ });
23
+ Object.defineProperty(exports, "TrashIcon", {
24
+ enumerable: true,
25
+ get: function () { return chunkR5HAFV6M_js.TrashIcon; }
26
+ });
27
+ //# sourceMappingURL=animated-icons.js.map
28
+ //# sourceMappingURL=animated-icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"animated-icons.js"}
@@ -0,0 +1,3 @@
1
+ export { ArrowRightIcon, CheckIcon, PlusIcon, SendIcon, TrashIcon } from './chunk-2B2BWI5A.mjs';
2
+ //# sourceMappingURL=animated-icons.mjs.map
3
+ //# sourceMappingURL=animated-icons.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"animated-icons.mjs"}
@@ -0,0 +1,324 @@
1
+ import * as React from 'react';
2
+ import { useAnimation, motion } from 'framer-motion';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+
5
+ var ArrowRightIcon = React.forwardRef(
6
+ ({ size = 24, className }, ref) => {
7
+ const controls = useAnimation();
8
+ const isControlledRef = React.useRef(false);
9
+ React.useImperativeHandle(ref, () => ({
10
+ startAnimation: () => {
11
+ isControlledRef.current = true;
12
+ controls.start({
13
+ x: [0, 4, 0],
14
+ transition: { duration: 0.4, ease: "easeInOut" }
15
+ });
16
+ },
17
+ stopAnimation: () => {
18
+ isControlledRef.current = false;
19
+ controls.stop();
20
+ controls.set({ x: 0 });
21
+ }
22
+ }));
23
+ const handleHoverStart = () => {
24
+ if (!isControlledRef.current) {
25
+ controls.start({
26
+ x: [0, 4, 0],
27
+ transition: { duration: 0.4, ease: "easeInOut" }
28
+ });
29
+ }
30
+ };
31
+ return /* @__PURE__ */ jsxs(
32
+ motion.svg,
33
+ {
34
+ xmlns: "http://www.w3.org/2000/svg",
35
+ width: size,
36
+ height: size,
37
+ viewBox: "0 0 24 24",
38
+ fill: "none",
39
+ stroke: "currentColor",
40
+ strokeWidth: "2",
41
+ strokeLinecap: "round",
42
+ strokeLinejoin: "round",
43
+ className,
44
+ onHoverStart: handleHoverStart,
45
+ animate: controls,
46
+ children: [
47
+ /* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
48
+ /* @__PURE__ */ jsx("path", { d: "m12 5 7 7-7 7" })
49
+ ]
50
+ }
51
+ );
52
+ }
53
+ );
54
+ ArrowRightIcon.displayName = "ArrowRightIcon";
55
+ var PlusIcon = React.forwardRef(
56
+ ({ size = 24, className }, ref) => {
57
+ const controls = useAnimation();
58
+ const isControlledRef = React.useRef(false);
59
+ React.useImperativeHandle(ref, () => ({
60
+ startAnimation: () => {
61
+ isControlledRef.current = true;
62
+ controls.start({
63
+ rotate: [0, 90],
64
+ scale: [1, 1.1, 1],
65
+ transition: { duration: 0.3, ease: "easeInOut" }
66
+ });
67
+ },
68
+ stopAnimation: () => {
69
+ isControlledRef.current = false;
70
+ controls.stop();
71
+ controls.set({ rotate: 0, scale: 1 });
72
+ }
73
+ }));
74
+ const handleHoverStart = () => {
75
+ if (!isControlledRef.current) {
76
+ controls.start({
77
+ rotate: [0, 90],
78
+ scale: [1, 1.1, 1],
79
+ transition: { duration: 0.3, ease: "easeInOut" }
80
+ });
81
+ }
82
+ };
83
+ const handleHoverEnd = () => {
84
+ if (!isControlledRef.current) {
85
+ controls.start({
86
+ rotate: 0,
87
+ scale: 1,
88
+ transition: { duration: 0.2 }
89
+ });
90
+ }
91
+ };
92
+ return /* @__PURE__ */ jsxs(
93
+ motion.svg,
94
+ {
95
+ xmlns: "http://www.w3.org/2000/svg",
96
+ width: size,
97
+ height: size,
98
+ viewBox: "0 0 24 24",
99
+ fill: "none",
100
+ stroke: "currentColor",
101
+ strokeWidth: "2",
102
+ strokeLinecap: "round",
103
+ strokeLinejoin: "round",
104
+ className,
105
+ onHoverStart: handleHoverStart,
106
+ onHoverEnd: handleHoverEnd,
107
+ animate: controls,
108
+ children: [
109
+ /* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
110
+ /* @__PURE__ */ jsx("path", { d: "M5 12h14" })
111
+ ]
112
+ }
113
+ );
114
+ }
115
+ );
116
+ PlusIcon.displayName = "PlusIcon";
117
+ var CheckIcon = React.forwardRef(
118
+ ({ size = 24, className }, ref) => {
119
+ const controls = useAnimation();
120
+ const isControlledRef = React.useRef(false);
121
+ React.useImperativeHandle(ref, () => ({
122
+ startAnimation: () => {
123
+ isControlledRef.current = true;
124
+ controls.start({
125
+ pathLength: [0, 1],
126
+ transition: { duration: 0.4, ease: "easeOut" }
127
+ });
128
+ },
129
+ stopAnimation: () => {
130
+ isControlledRef.current = false;
131
+ controls.stop();
132
+ controls.set({ pathLength: 1 });
133
+ }
134
+ }));
135
+ const handleHoverStart = () => {
136
+ if (!isControlledRef.current) {
137
+ controls.start({
138
+ scale: [1, 1.2, 1],
139
+ transition: { duration: 0.3, ease: "easeInOut" }
140
+ });
141
+ }
142
+ };
143
+ return /* @__PURE__ */ jsx(
144
+ motion.svg,
145
+ {
146
+ xmlns: "http://www.w3.org/2000/svg",
147
+ width: size,
148
+ height: size,
149
+ viewBox: "0 0 24 24",
150
+ fill: "none",
151
+ stroke: "currentColor",
152
+ strokeWidth: "2",
153
+ strokeLinecap: "round",
154
+ strokeLinejoin: "round",
155
+ className,
156
+ onHoverStart: handleHoverStart,
157
+ animate: controls,
158
+ children: /* @__PURE__ */ jsx(motion.path, { d: "M20 6 9 17l-5-5", animate: controls })
159
+ }
160
+ );
161
+ }
162
+ );
163
+ CheckIcon.displayName = "CheckIcon";
164
+ var SendIcon = React.forwardRef(
165
+ ({ size = 24, className }, ref) => {
166
+ const controls = useAnimation();
167
+ const isControlledRef = React.useRef(false);
168
+ React.useImperativeHandle(ref, () => ({
169
+ startAnimation: () => {
170
+ isControlledRef.current = true;
171
+ controls.start({
172
+ x: [0, 8, -2, 0],
173
+ y: [0, -8, 2, 0],
174
+ transition: { duration: 0.5, ease: "easeInOut" }
175
+ });
176
+ },
177
+ stopAnimation: () => {
178
+ isControlledRef.current = false;
179
+ controls.stop();
180
+ controls.set({ x: 0, y: 0 });
181
+ }
182
+ }));
183
+ const handleHoverStart = () => {
184
+ if (!isControlledRef.current) {
185
+ controls.start({
186
+ x: [0, 4, 0],
187
+ y: [0, -4, 0],
188
+ transition: { duration: 0.4, ease: "easeInOut" }
189
+ });
190
+ }
191
+ };
192
+ return /* @__PURE__ */ jsxs(
193
+ motion.svg,
194
+ {
195
+ xmlns: "http://www.w3.org/2000/svg",
196
+ width: size,
197
+ height: size,
198
+ viewBox: "0 0 24 24",
199
+ fill: "none",
200
+ stroke: "currentColor",
201
+ strokeWidth: "2",
202
+ strokeLinecap: "round",
203
+ strokeLinejoin: "round",
204
+ className,
205
+ onHoverStart: handleHoverStart,
206
+ animate: controls,
207
+ children: [
208
+ /* @__PURE__ */ jsx("path", { d: "m22 2-7 20-4-9-9-4Z" }),
209
+ /* @__PURE__ */ jsx("path", { d: "M22 2 11 13" })
210
+ ]
211
+ }
212
+ );
213
+ }
214
+ );
215
+ SendIcon.displayName = "SendIcon";
216
+ var TrashIcon = React.forwardRef(
217
+ ({ size = 24, duration = 1, className }, ref) => {
218
+ const controls = useAnimation();
219
+ const isControlledRef = React.useRef(false);
220
+ React.useImperativeHandle(ref, () => {
221
+ isControlledRef.current = true;
222
+ return {
223
+ startAnimation: () => controls.start("animate"),
224
+ stopAnimation: () => controls.start("normal")
225
+ };
226
+ });
227
+ const handleMouseEnter = () => {
228
+ if (!isControlledRef.current) {
229
+ controls.start("animate");
230
+ }
231
+ };
232
+ const handleMouseLeave = () => {
233
+ if (!isControlledRef.current) {
234
+ controls.start("normal");
235
+ }
236
+ };
237
+ const lidBounce = {
238
+ normal: { y: 0, rotate: 0 },
239
+ animate: {
240
+ rotate: [0, -10, 6, -3, 0],
241
+ y: [0, -2, 0.5, 0],
242
+ transition: {
243
+ duration: 0.9 * duration,
244
+ ease: "easeInOut",
245
+ delay: 0.05
246
+ }
247
+ }
248
+ };
249
+ const barSnap = {
250
+ normal: { scaleX: 1, opacity: 1 },
251
+ animate: {
252
+ scaleX: [0.85, 1.08, 1],
253
+ opacity: [0.9, 1, 1],
254
+ transition: { duration: 0.45 * duration, ease: "easeOut", delay: 0.1 }
255
+ }
256
+ };
257
+ const binSettle = {
258
+ normal: { y: 0, scaleY: 1 },
259
+ animate: {
260
+ scaleY: [1, 0.97, 1],
261
+ transition: { duration: 0.5 * duration, ease: "easeOut", delay: 0.2 }
262
+ }
263
+ };
264
+ return /* @__PURE__ */ jsx(
265
+ motion.div,
266
+ {
267
+ className,
268
+ style: { display: "inline-flex", alignItems: "center", justifyContent: "center" },
269
+ onMouseEnter: handleMouseEnter,
270
+ onMouseLeave: handleMouseLeave,
271
+ children: /* @__PURE__ */ jsxs(
272
+ motion.svg,
273
+ {
274
+ xmlns: "http://www.w3.org/2000/svg",
275
+ width: size,
276
+ height: size,
277
+ viewBox: "0 0 24 24",
278
+ fill: "none",
279
+ stroke: "currentColor",
280
+ strokeWidth: "2",
281
+ strokeLinecap: "round",
282
+ strokeLinejoin: "round",
283
+ children: [
284
+ /* @__PURE__ */ jsx(
285
+ motion.path,
286
+ {
287
+ d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
288
+ variants: binSettle,
289
+ initial: "normal",
290
+ animate: controls,
291
+ style: { transformOrigin: "50% 100%" }
292
+ }
293
+ ),
294
+ /* @__PURE__ */ jsx(
295
+ motion.path,
296
+ {
297
+ d: "M3 6h18",
298
+ variants: barSnap,
299
+ initial: "normal",
300
+ animate: controls
301
+ }
302
+ ),
303
+ /* @__PURE__ */ jsx(
304
+ motion.path,
305
+ {
306
+ d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
307
+ variants: lidBounce,
308
+ initial: "normal",
309
+ animate: controls,
310
+ style: { transformOrigin: "12px 6px" }
311
+ }
312
+ )
313
+ ]
314
+ }
315
+ )
316
+ }
317
+ );
318
+ }
319
+ );
320
+ TrashIcon.displayName = "TrashIcon";
321
+
322
+ export { ArrowRightIcon, CheckIcon, PlusIcon, SendIcon, TrashIcon };
323
+ //# sourceMappingURL=chunk-2B2BWI5A.mjs.map
324
+ //# sourceMappingURL=chunk-2B2BWI5A.mjs.map