@alquimia-ai/ui 1.2.1 → 1.2.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.
Files changed (101) hide show
  1. package/dist/components/hooks/index.js +41 -32
  2. package/dist/components/hooks/index.js.map +1 -1
  3. package/dist/components/hooks/index.mjs +42 -33
  4. package/dist/components/hooks/index.mjs.map +1 -1
  5. package/dist/components/molecules/index.js +41 -32
  6. package/dist/components/molecules/index.js.map +1 -1
  7. package/dist/components/molecules/index.mjs +42 -33
  8. package/dist/components/molecules/index.mjs.map +1 -1
  9. package/dist/components/organisms/index.js +41 -32
  10. package/dist/components/organisms/index.js.map +1 -1
  11. package/dist/components/organisms/index.mjs +42 -33
  12. package/dist/components/organisms/index.mjs.map +1 -1
  13. package/dist/index.js +41 -32
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +42 -33
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/package.json +136 -0
  18. package/package.json +50 -53
  19. package/src/components/atoms/index.ts +0 -32
  20. package/src/components/atoms/ui/alert.tsx +0 -59
  21. package/src/components/atoms/ui/aspect-ratio.tsx +0 -7
  22. package/src/components/atoms/ui/avatar.tsx +0 -50
  23. package/src/components/atoms/ui/badge.tsx +0 -36
  24. package/src/components/atoms/ui/breadcrumb.tsx +0 -120
  25. package/src/components/atoms/ui/button.tsx +0 -56
  26. package/src/components/atoms/ui/card.tsx +0 -87
  27. package/src/components/atoms/ui/checkbox.tsx +0 -31
  28. package/src/components/atoms/ui/command.tsx +0 -155
  29. package/src/components/atoms/ui/dialog.tsx +0 -125
  30. package/src/components/atoms/ui/drawer.tsx +0 -119
  31. package/src/components/atoms/ui/input.tsx +0 -26
  32. package/src/components/atoms/ui/label.tsx +0 -26
  33. package/src/components/atoms/ui/loader.tsx +0 -52
  34. package/src/components/atoms/ui/popover.tsx +0 -31
  35. package/src/components/atoms/ui/rich-text.tsx +0 -19
  36. package/src/components/atoms/ui/scroll-area.tsx +0 -48
  37. package/src/components/atoms/ui/select.tsx +0 -160
  38. package/src/components/atoms/ui/skeleton.tsx +0 -15
  39. package/src/components/atoms/ui/slider.tsx +0 -29
  40. package/src/components/atoms/ui/switch.tsx +0 -30
  41. package/src/components/atoms/ui/table.tsx +0 -118
  42. package/src/components/atoms/ui/tabs.tsx +0 -56
  43. package/src/components/atoms/ui/text-area/index.tsx +0 -24
  44. package/src/components/atoms/ui/textarea.tsx +0 -25
  45. package/src/components/atoms/ui/think-indicator.tsx +0 -103
  46. package/src/components/atoms/ui/toast.tsx +0 -129
  47. package/src/components/atoms/ui/toaster.tsx +0 -38
  48. package/src/components/atoms/ui/toggle.tsx +0 -45
  49. package/src/components/atoms/ui/typography/index.tsx +0 -30
  50. package/src/components/hooks/index.ts +0 -4
  51. package/src/components/hooks/use-document.tsx +0 -44
  52. package/src/components/hooks/use-resize-observer.ts +0 -28
  53. package/src/components/hooks/use-text-streaming.ts +0 -63
  54. package/src/components/hooks/use-toast.ts +0 -194
  55. package/src/components/index.ts +0 -1
  56. package/src/components/molecules/alert-dialog.tsx +0 -141
  57. package/src/components/molecules/assistant-button.tsx +0 -148
  58. package/src/components/molecules/call-out.tsx +0 -163
  59. package/src/components/molecules/carousel.tsx +0 -262
  60. package/src/components/molecules/documents/document-selector.tsx +0 -79
  61. package/src/components/molecules/documents/document-viewer.tsx +0 -85
  62. package/src/components/molecules/documents/index.ts +0 -2
  63. package/src/components/molecules/index.ts +0 -11
  64. package/src/components/molecules/navigation-menu.tsx +0 -128
  65. package/src/components/molecules/page-container.tsx +0 -17
  66. package/src/components/molecules/rating-comment.tsx +0 -93
  67. package/src/components/molecules/rating-stars.tsx +0 -136
  68. package/src/components/molecules/rating-thumbs.tsx +0 -90
  69. package/src/components/molecules/sidebar.tsx +0 -107
  70. package/src/components/molecules/sonner.tsx +0 -30
  71. package/src/components/molecules/viewers/index.ts +0 -2
  72. package/src/components/molecules/viewers/pdf-viewer.tsx +0 -138
  73. package/src/components/molecules/viewers/plain-text-viewer.tsx +0 -40
  74. package/src/components/organisms/assistant.tsx +0 -271
  75. package/src/components/organisms/index.ts +0 -6
  76. package/src/components/organisms/rating-dialog.tsx +0 -104
  77. package/src/components/organisms/speechToText.tsx +0 -92
  78. package/src/components/organisms/whisper.tsx +0 -106
  79. package/src/components/templates/cards/index.ts +0 -2
  80. package/src/components/templates/cards/with-image-heading-description-avatar.tsx +0 -94
  81. package/src/components/templates/cards/with-image-heading-description.tsx +0 -63
  82. package/src/components/templates/hero/index.tsx +0 -39
  83. package/src/components/templates/index.ts +0 -4
  84. package/src/components/templates/messages-window.tsx +0 -15
  85. package/src/components/templates/query-box.tsx +0 -13
  86. package/src/components/ui/input.tsx +0 -25
  87. package/src/components/ui/select.tsx +0 -163
  88. package/src/index.ts +0 -7
  89. package/src/lib/index.ts +0 -1
  90. package/src/lib/utils.ts +0 -34
  91. package/src/styles/call-out.css +0 -153
  92. package/src/styles/drawer.css +0 -28
  93. package/src/styles/globals.css +0 -69
  94. package/src/styles/prose.css +0 -51
  95. package/src/styles/ratings.css +0 -27
  96. package/src/styles/themes/base-alquimia.css +0 -95
  97. package/src/styles/themes/base-nordic.css +0 -83
  98. package/src/styles/themes/base-primary.css +0 -85
  99. package/src/styles/themes/base.css +0 -8
  100. package/src/types/index.ts +0 -1
  101. package/src/types/type.ts +0 -76
@@ -1,153 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- .alq--callout-actions {
6
- @apply flex flex-row gap-3 py-2;
7
- }
8
-
9
- .alq--callout-action label {
10
- @apply hidden;
11
- }
12
-
13
- .alq--callout-action svg {
14
- @apply w-4 h-4 text-gray-800;
15
- transition: transform 0.2s ease-in-out;
16
- }
17
-
18
- .alq--callout-action svg:active {
19
- transform: scale(0.85);
20
- transition: transform 0.1s ease;
21
- }
22
-
23
- .alq--callout-action[data-clicked="true"] svg {
24
- @apply text-primary;
25
- }
26
-
27
- .alq--callout-action[data-clicked="true"] svg path {
28
- @apply fill-primary;
29
- }
30
-
31
- .alq--callout-actions {
32
- @apply px-2;
33
- }
34
-
35
- .alq--callout-box {
36
- @apply flex flex-col items-start px-4;
37
- }
38
-
39
- .alq--callout-response[data-role="assistant"] {
40
- @apply bg-muted border text-sm p-4 max-w-4xl rounded mr-10;
41
- position: relative;
42
- }
43
-
44
- .alq--callout-response[data-role="assistant"]::before {
45
- content: "";
46
- position: absolute;
47
- left: -32px;
48
- top: 50%;
49
- transform: translateY(-50%);
50
- width: 20px;
51
- height: 20px;
52
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(77, 141, 245)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cpath d='M7 7h10M7 11h10M7 15h10'/%3E%3C/svg%3E");
53
- background-repeat: no-repeat;
54
- background-position: center;
55
- opacity: 0.5;
56
- background-color: rgba(77, 141, 245, 0.1);
57
- border-radius: 50%;
58
- padding: 12px;
59
- }
60
-
61
- .alq--callout-response[data-role="user"] {
62
- @apply bg-muted border text-sm p-4 max-w-4xl rounded ml-10;
63
- position: relative;
64
- }
65
-
66
- .alq--callout-response[data-role="user"]::before {
67
- content: "";
68
- position: absolute;
69
- left: -32px;
70
- top: 50%;
71
- transform: translateY(-50%);
72
- width: 20px;
73
- height: 20px;
74
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='rgb(77, 141, 245)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='13' r='4'/%3E%3Cpath d='M24 27a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
75
- background-repeat: no-repeat;
76
- background-position: center;
77
- opacity: 0.5;
78
- background-color: rgba(77, 141, 245, 0.1);
79
- border-radius: 50%;
80
- padding: 12px;
81
- }
82
-
83
- .alq--callout-response[data-error-code] {
84
- @apply bg-red-100 border-red-500 text-red-500;
85
- position: relative;
86
- }
87
-
88
- .alq--callout-response[data-error-code]::before {
89
- content: "";
90
- position: absolute;
91
- left: -32px;
92
- top: 50%;
93
- transform: translateY(-50%);
94
- width: 20px;
95
- height: 20px;
96
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
97
- background-repeat: no-repeat;
98
- background-position: center;
99
- opacity: 0.8;
100
- }
101
-
102
- .alq--callout-response-additional-info {
103
- @apply text-xs text-muted-foreground/80 pt-4;
104
- }
105
-
106
- @keyframes heartbeat {
107
- 0% {
108
- transform: scale(1);
109
- }
110
- 14% {
111
- transform: scale(1.3);
112
- }
113
- 28% {
114
- transform: scale(1);
115
- }
116
- 42% {
117
- transform: scale(1.3);
118
- }
119
- 70% {
120
- transform: scale(1);
121
- }
122
- }
123
-
124
- .alq--callout-animate-action {
125
- animation: heartbeat 1.5s ease infinite;
126
- }
127
-
128
- .alq--think-indicator::before {
129
- content: "";
130
- position: absolute;
131
- left: -32px;
132
- top: 50%;
133
- transform: translateY(-50%);
134
- width: 20px;
135
- height: 20px;
136
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(77, 141, 245)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cpath d='M7 7h10M7 11h10M7 15h10'/%3E%3C/svg%3E");
137
- background-repeat: no-repeat;
138
- background-position: center;
139
- opacity: 0.5;
140
- background-color: rgba(77, 141, 245, 0.1);
141
- border-radius: 50%;
142
- padding: 12px;
143
- }
144
-
145
- .alq--think-indicator {
146
- @apply bg-muted border text-sm p-4 text-sm max-w-4xl rounded mr-10;
147
- position: relative;
148
- }
149
-
150
- .alq--think-indicator-text {
151
- @apply text-sm text-black;
152
- }
153
-
@@ -1,28 +0,0 @@
1
- .alq--drawer-content {
2
- @apply fixed inset-x-0 bottom-0 z-50 mt-24;
3
- @apply flex h-auto flex-col;
4
- @apply rounded-t-[10px] border border-border;
5
- @apply bg-background text-foreground;
6
- }
7
-
8
- .alq--drawer-header {
9
- @apply grid gap-1.5 p-4;
10
- @apply text-center sm:text-left;
11
- }
12
-
13
- .alq--drawer-header h2 {
14
- @apply text-3xl;
15
- }
16
-
17
- .alq--drawer-footer {
18
- @apply mt-auto flex flex-col gap-2 p-4;
19
- }
20
-
21
- .alq--drawer-title {
22
- @apply text-lg font-semibold;
23
- @apply leading-none tracking-tight;
24
- }
25
-
26
- .alq--drawer-description {
27
- @apply text-sm text-muted-foreground;
28
- }
@@ -1,69 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @layer base {
6
- :root {
7
- --background: 0 0% 100%;
8
- --foreground: 222.2 84% 4.9%;
9
- --card: 0 0% 100%;
10
- --card-foreground: 222.2 84% 4.9%;
11
- --popover: 0 0% 100%;
12
- --popover-foreground: 222.2 84% 4.9%;
13
- --primary: 222.2 47.4% 11.2%;
14
- --primary-foreground: 210 40% 98%;
15
- --secondary: 210 40% 96.1%;
16
- --secondary-foreground: 222.2 47.4% 11.2%;
17
- --muted: 210 40% 96.1%;
18
- --muted-foreground: 215.4 16.3% 46.9%;
19
- --accent: 210 40% 96.1%;
20
- --accent-foreground: 222.2 47.4% 11.2%;
21
- --destructive: 0 84.2% 60.2%;
22
- --destructive-foreground: 210 40% 98%;
23
- --border: 214.3 31.8% 91.4%;
24
- --input: 214.3 31.8% 91.4%;
25
- --ring: 222.2 84% 4.9%;
26
- --radius: 0.5rem;
27
- --chart-1: 12 76% 61%;
28
- --chart-2: 173 58% 39%;
29
- --chart-3: 197 37% 24%;
30
- --chart-4: 43 74% 66%;
31
- --chart-5: 27 87% 67%;
32
- }
33
-
34
- .dark {
35
- --background: 222.2 84% 4.9%;
36
- --foreground: 210 40% 98%;
37
- --card: 222.2 84% 4.9%;
38
- --card-foreground: 210 40% 98%;
39
- --popover: 222.2 84% 4.9%;
40
- --popover-foreground: 210 40% 98%;
41
- --primary: 210 40% 98%;
42
- --primary-foreground: 222.2 47.4% 11.2%;
43
- --secondary: 217.2 32.6% 17.5%;
44
- --secondary-foreground: 210 40% 98%;
45
- --muted: 217.2 32.6% 17.5%;
46
- --muted-foreground: 215 20.2% 65.1%;
47
- --accent: 217.2 32.6% 17.5%;
48
- --accent-foreground: 210 40% 98%;
49
- --destructive: 0 62.8% 30.6%;
50
- --destructive-foreground: 210 40% 98%;
51
- --border: 217.2 32.6% 17.5%;
52
- --input: 217.2 32.6% 17.5%;
53
- --ring: 212.7 26.8% 83.9%;
54
- --chart-1: 220 70% 50%;
55
- --chart-2: 160 60% 45%;
56
- --chart-3: 30 80% 55%;
57
- --chart-4: 280 65% 60%;
58
- --chart-5: 340 75% 55%;
59
- }
60
- }
61
-
62
- @layer base {
63
- * {
64
- @apply border-border;
65
- }
66
- body {
67
- @apply bg-background text-foreground;
68
- }
69
- }
@@ -1,51 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- .alq--prose {
6
- @apply prose lg:prose-xl w-full max-w-none prose-zinc;
7
- }
8
-
9
- .alq--prose h1 {
10
- @apply text-3xl font-bold;
11
- }
12
-
13
- .alq--prose h2 {
14
- @apply text-2xl font-bold;
15
- }
16
-
17
- .alq--prose h3 {
18
- @apply text-xl font-bold;
19
- }
20
-
21
- .alq--prose h4 {
22
- @apply text-lg font-bold;
23
- }
24
-
25
- .alq--prose h5 {
26
- @apply text-base font-bold;
27
- }
28
-
29
- .alq--prose h6 {
30
- @apply text-sm font-bold;
31
- }
32
-
33
- .alq--prose p {
34
- @apply my-2;
35
- }
36
-
37
- .alq--prose table {
38
- @apply w-full border-collapse my-4;
39
- }
40
-
41
- .alq--prose thead {
42
- @apply bg-zinc-50;
43
- }
44
-
45
- .alq--prose th {
46
- @apply border border-zinc-200 px-4 py-2 text-left font-semibold;
47
- }
48
-
49
- .alq--prose td {
50
- @apply border border-zinc-200 px-4 py-2;
51
- }
@@ -1,27 +0,0 @@
1
- .alq-rating-star-active {
2
- @apply text-yellow-400;
3
- }
4
-
5
- .alq-rating-star-inactive {
6
- @apply text-gray-400;
7
- }
8
-
9
- .alq-rating-comment {
10
- @apply stroke-blue-500;
11
- }
12
-
13
- .alq-rating-thumbsup {
14
- @apply text-green-400;
15
- }
16
-
17
- .alq-rating-thumbsdown {
18
- @apply text-red-400;
19
- }
20
-
21
- .alq-rating-thumbs-inactive {
22
- @apply stroke-gray-400;
23
- }
24
-
25
- .alq--callout-box[data-role="user"] {
26
- @apply flex flex-col items-end;
27
- }
@@ -1,95 +0,0 @@
1
- @import "../call-out.css";
2
- @import "../ratings.css";
3
- @import "../drawer.css";
4
- @import "../prose.css";
5
-
6
- @tailwind base;
7
- @tailwind components;
8
- @tailwind utilities;
9
-
10
-
11
-
12
- @layer base {
13
- :root {
14
- --background: 230 22% 4%;
15
- --foreground: 0 0% 100%;
16
-
17
- --card: 240 15% 8%;
18
- --card-foreground: 0 0% 100%;
19
-
20
- --popover: 240 15% 8%;
21
- --popover-foreground: 0 0% 100%;
22
-
23
- --primary: 0 0% 100%;
24
- --primary-foreground: 230 22% 4%;
25
-
26
- --secondary: 220 8% 39%;
27
- --secondary-foreground: 0 0% 100%;
28
-
29
- --muted: 220 8% 39%;
30
- --muted-foreground: 220 8% 79%;
31
-
32
- --accent: 191 100% 50%;
33
- --accent-foreground: 230 22% 4%;
34
-
35
- --destructive: 0 84% 60%;
36
- --destructive-foreground: 0 0% 98%;
37
-
38
- --border: 220 8% 39%;
39
- --input: 220 8% 39%;
40
- --ring: 191 100% 50%;
41
- --radius: 0.5rem;
42
-
43
- --ring-offset-width: 0px;
44
- --ring-offset-color: #091144;
45
- --ring-color: rgb(0 215 255 / 0.5);
46
- --ring-offset-shadow: 0 0 #0000;
47
- --ring-shadow: 0 0 #0000;
48
- --chart-1: 12 76% 61%;
49
- --chart-2: 173 58% 39%;
50
- --chart-3: 197 37% 24%;
51
- --chart-4: 43 74% 66%;
52
- --chart-5: 27 87% 67%;
53
- }
54
-
55
- .dark {
56
- --background: 230 22% 4%;
57
- --foreground: 0 0% 100%;
58
-
59
- --card: 240 15% 8%;
60
- --card-foreground: 0 0% 100%;
61
-
62
- --popover: 240 15% 8%;
63
- --popover-foreground: 0 0% 100%;
64
-
65
- --primary: 0 0% 100%;
66
- --primary-foreground: 230 22% 4%;
67
-
68
- --secondary: 220 8% 39%;
69
- --secondary-foreground: 0 0% 100%;
70
-
71
- --muted: 220 8% 39%;
72
- --muted-foreground: 220 8% 79%;
73
-
74
- --accent: 191 100% 50%;
75
- --accent-foreground: 230 22% 4%;
76
-
77
- --destructive: 0 84% 60%;
78
- --destructive-foreground: 0 0% 98%;
79
-
80
- --border: 220 8% 39%;
81
- --input: 220 8% 39%;
82
- --ring: 191 100% 50%;
83
-
84
- --ring-offset-width: 0px;
85
- --ring-offset-color: #091144;
86
- --ring-color: rgb(0 215 255 / 0.5);
87
- --ring-offset-shadow: 0 0 #0000;
88
- --ring-shadow: 0 0 #0000;
89
- --chart-1: 220 70% 50%;
90
- --chart-2: 160 60% 45%;
91
- --chart-3: 30 80% 55%;
92
- --chart-4: 280 65% 60%;
93
- --chart-5: 340 75% 55%;
94
- }
95
- }
@@ -1,83 +0,0 @@
1
- @import "../call-out.css";
2
- @import "../ratings.css";
3
- @import "../drawer.css";
4
- @import "../prose.css";
5
-
6
- @tailwind base;
7
- @tailwind components;
8
- @tailwind utilities;
9
-
10
-
11
- @layer base {
12
- :root {
13
- --background: 210 25% 98%;
14
- --foreground: 210 25% 12%;
15
-
16
- --card: 210 25% 98%;
17
- --card-foreground: 210 25% 12%;
18
-
19
- --popover: 210 25% 98%;
20
- --popover-foreground: 210 25% 12%;
21
-
22
- --primary: 200 48% 40%;
23
- --primary-foreground: 210 25% 98%;
24
-
25
- --secondary: 210 20% 92%;
26
- --secondary-foreground: 210 25% 12%;
27
-
28
- --muted: 210 20% 92%;
29
- --muted-foreground: 210 20% 40%;
30
-
31
- --accent: 200 30% 88%;
32
- --accent-foreground: 210 25% 12%;
33
-
34
- --destructive: 0 65% 45%;
35
- --destructive-foreground: 210 25% 98%;
36
-
37
- --border: 210 20% 88%;
38
- --input: 210 20% 88%;
39
- --ring: 200 48% 40%;
40
-
41
- --ring-offset-width: 0px;
42
- --ring-offset-color: #f8fafc;
43
- --ring-color: rgb(71 127 157 / 0.5);
44
- --ring-offset-shadow: 0 0 #0000;
45
- --ring-shadow: 0 0 #0000;
46
- }
47
-
48
- .dark {
49
- --background: 215 25% 12%;
50
- --foreground: 210 25% 98%;
51
-
52
- --card: 215 25% 14%;
53
- --card-foreground: 210 25% 98%;
54
-
55
- --popover: 215 25% 14%;
56
- --popover-foreground: 210 25% 98%;
57
-
58
- --primary: 200 48% 50%;
59
- --primary-foreground: 210 25% 98%;
60
-
61
- --secondary: 215 25% 22%;
62
- --secondary-foreground: 210 25% 98%;
63
-
64
- --muted: 215 25% 22%;
65
- --muted-foreground: 210 20% 75%;
66
-
67
- --accent: 200 30% 22%;
68
- --accent-foreground: 210 25% 98%;
69
-
70
- --destructive: 0 65% 45%;
71
- --destructive-foreground: 210 25% 98%;
72
-
73
- --border: 215 25% 22%;
74
- --input: 215 25% 22%;
75
- --ring: 200 48% 50%;
76
-
77
- --ring-offset-width: 0px;
78
- --ring-offset-color: #1a1f2b;
79
- --ring-color: rgb(71 127 157 / 0.5);
80
- --ring-offset-shadow: 0 0 #0000;
81
- --ring-shadow: 0 0 #0000;
82
- }
83
- }
@@ -1,85 +0,0 @@
1
- @import "../call-out.css";
2
- @import "../ratings.css";
3
- @import "../drawer.css";
4
- @import "../prose.css";
5
-
6
- @tailwind base;
7
- @tailwind components;
8
- @tailwind utilities;
9
-
10
-
11
- @layer base {
12
- :root {
13
- --background: 0 0% 100%;
14
- --foreground: 222 47% 11%;
15
-
16
- --card: 0 0% 100%;
17
- --card-foreground: 222 47% 11%;
18
-
19
- --popover: 0 0% 100%;
20
- --popover-foreground: 222 47% 11%;
21
-
22
- --primary: 222 47% 11%;
23
- --primary-foreground: 210 40% 98%;
24
-
25
- --secondary: 210 40% 96.1%;
26
- --secondary-foreground: 222 47% 11%;
27
-
28
- --muted: 210 40% 96.1%;
29
- --muted-foreground: 215.4 16.3% 46.9%;
30
-
31
- --accent: 210 40% 96.1%;
32
- --accent-foreground: 222 47% 11%;
33
-
34
- --destructive: 0 84.2% 60.2%;
35
- --destructive-foreground: 210 40% 98%;
36
-
37
- --border: 214.3 31.8% 91.4%;
38
- --input: 214.3 31.8% 91.4%;
39
- --ring: 222 47% 11%;
40
-
41
- --radius: 0.5rem;
42
-
43
- --ring-offset-width: 0px;
44
- --ring-offset-color: #fff;
45
- --ring-color: rgb(59 130 246 / 0.5);
46
- --ring-offset-shadow: 0 0 #0000;
47
- --ring-shadow: 0 0 #0000;
48
- }
49
-
50
- .dark {
51
- --background: 222 47% 11%;
52
- --foreground: 210 40% 98%;
53
-
54
- --card: 222 47% 11%;
55
- --card-foreground: 210 40% 98%;
56
-
57
- --popover: 222 47% 11%;
58
- --popover-foreground: 210 40% 98%;
59
-
60
- --primary: 210 40% 98%;
61
- --primary-foreground: 222 47% 11%;
62
-
63
- --secondary: 217.2 32.6% 17.5%;
64
- --secondary-foreground: 210 40% 98%;
65
-
66
- --muted: 217.2 32.6% 17.5%;
67
- --muted-foreground: 215 20.2% 65.1%;
68
-
69
- --accent: 217.2 32.6% 17.5%;
70
- --accent-foreground: 210 40% 98%;
71
-
72
- --destructive: 0 62.8% 30.6%;
73
- --destructive-foreground: 210 40% 98%;
74
-
75
- --border: 217.2 32.6% 17.5%;
76
- --input: 217.2 32.6% 17.5%;
77
- --ring: 212.7 26.8% 83.9%;
78
-
79
- --ring-offset-width: 0px;
80
- --ring-offset-color: #000;
81
- --ring-color: rgb(59 130 246 / 0.5);
82
- --ring-offset-shadow: 0 0 #0000;
83
- --ring-shadow: 0 0 #0000;
84
- }
85
- }
@@ -1,8 +0,0 @@
1
- @import "../call-out.css";
2
- @import "../ratings.css";
3
- @import "../drawer.css";
4
- @import "../prose.css";
5
-
6
- @tailwind base;
7
- @tailwind components;
8
- @tailwind utilities;
@@ -1 +0,0 @@
1
- export * from "./type";
package/src/types/type.ts DELETED
@@ -1,76 +0,0 @@
1
- export type AlquimiaDocument = {
2
- id: string;
3
- name: string;
4
- description?: string;
5
- isActive: boolean;
6
- contentType: string;
7
- url: string;
8
- updatedAt?: string;
9
- };
10
-
11
- export type AlquimiaTopic = {
12
- id: string;
13
- externalCollectionId: string;
14
- isActive: boolean;
15
- name: string;
16
- description: string;
17
- createdAt?: string;
18
- updatedAt?: string;
19
- files: AlquimiaDocument[];
20
- ratings?: TopicRating[];
21
- };
22
-
23
- export type TopicRating = {
24
- id: number;
25
- sessionId: string;
26
- }
27
-
28
- export type AlquimiaFile = {
29
- id: string;
30
- file: Blob;
31
- }
32
-
33
- export enum EditingStatus {
34
- EDITING = 'EDITING',
35
- FINISHED = 'FINISHED',
36
- }
37
-
38
- export interface RatingData {
39
- assistantId: string;
40
- sessionId: string;
41
- topicId: number;
42
- score?: number;
43
- emoji?: string;
44
- description?: string;
45
- };
46
-
47
- export interface ActionResponse<T = void> {
48
- success: boolean;
49
- data?: T;
50
- error?: ActionError;
51
- }
52
-
53
- export type ActionError = {
54
- message: string;
55
- code?: string;
56
- details?: ErrorDetails;
57
- }
58
-
59
- export type ErrorDetails = {
60
- status: string;
61
- statusText?: string;
62
- }
63
-
64
- export type ApiError = Error & {
65
- message: string;
66
- name: string;
67
- cause: string;
68
- code?: string | number;
69
- status?: string | number;
70
- }
71
-
72
- export interface TWYDServerActions {
73
- getDocument?: (id: string) => Promise<ActionResponse<Blob>>;
74
- sendRating?: (ratingData: RatingData) => Promise<any>;
75
- logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;
76
- }