@alquimia-ai/ui 1.9.2 → 2.0.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/dist/components/atoms/index.d.mts +1 -1
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/atoms/index.js +1848 -1428
- package/dist/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs +1453 -1409
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/hooks/index.d.mts +1 -0
- package/dist/components/hooks/index.d.ts +1 -0
- package/dist/components/hooks/index.js +572 -211
- package/dist/components/hooks/index.js.map +1 -1
- package/dist/components/hooks/index.mjs +505 -193
- package/dist/components/hooks/index.mjs.map +1 -1
- package/dist/components/molecules/documents/index.d.mts +1 -0
- package/dist/components/molecules/documents/index.d.ts +1 -0
- package/dist/components/molecules/documents/index.js +2366 -1884
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs +2207 -1764
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.js +2261 -2095
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +2084 -2075
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js +1303 -1185
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs +1254 -1167
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.d.mts +1 -0
- package/dist/components/organisms/index.d.ts +1 -0
- package/dist/components/organisms/index.js +3074 -2609
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +2999 -2586
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/index.d.mts +25 -3
- package/dist/components/templates/index.d.ts +25 -3
- package/dist/components/templates/index.js +1490 -1300
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs +1413 -1281
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3951 -2977
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3368 -2950
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.js +106 -54
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +42 -43
- package/dist/lib/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +17 -0
- package/dist/providers/index.d.ts +17 -0
- package/dist/providers/index.js +177 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/index.mjs +101 -0
- package/dist/providers/index.mjs.map +1 -0
- package/dist/styles.css +68 -0
- package/dist/styles.css.map +1 -0
- package/dist/styles.d.mts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/tailwind.config.js +4 -10
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +52 -19
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +6 -8
- package/dist/types/index.mjs.map +1 -1
- package/package.json +8 -7
- package/dist/components/index.d.mts +0 -23
- package/dist/components/index.d.ts +0 -23
- package/dist/components/index.js +0 -1734
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs +0 -1702
- package/dist/components/index.mjs.map +0 -1
- package/dist/components/templates/cards/index.d.mts +0 -26
- package/dist/components/templates/cards/index.d.ts +0 -26
- package/dist/components/templates/cards/index.js +0 -1536
- package/dist/components/templates/cards/index.js.map +0 -1
- package/dist/components/templates/cards/index.mjs +0 -1504
- package/dist/components/templates/cards/index.mjs.map +0 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// src/providers/alquimia-ui-provider.tsx
|
|
2
|
+
function _array_like_to_array(arr, len) {
|
|
3
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5
|
+
return arr2;
|
|
6
|
+
}
|
|
7
|
+
function _array_with_holes(arr) {
|
|
8
|
+
if (Array.isArray(arr)) return arr;
|
|
9
|
+
}
|
|
10
|
+
function _iterable_to_array_limit(arr, i) {
|
|
11
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12
|
+
if (_i == null) return;
|
|
13
|
+
var _arr = [];
|
|
14
|
+
var _n = true;
|
|
15
|
+
var _d = false;
|
|
16
|
+
var _s, _e;
|
|
17
|
+
try {
|
|
18
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
19
|
+
_arr.push(_s.value);
|
|
20
|
+
if (i && _arr.length === i) break;
|
|
21
|
+
}
|
|
22
|
+
} catch (err) {
|
|
23
|
+
_d = true;
|
|
24
|
+
_e = err;
|
|
25
|
+
} finally{
|
|
26
|
+
try {
|
|
27
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
28
|
+
} finally{
|
|
29
|
+
if (_d) throw _e;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return _arr;
|
|
33
|
+
}
|
|
34
|
+
function _non_iterable_rest() {
|
|
35
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
36
|
+
}
|
|
37
|
+
function _sliced_to_array(arr, i) {
|
|
38
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
39
|
+
}
|
|
40
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
41
|
+
if (!o) return;
|
|
42
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
43
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
45
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
46
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
47
|
+
}
|
|
48
|
+
import * as React from "react";
|
|
49
|
+
// src/providers/theme-context.ts
|
|
50
|
+
import { createContext, useContext } from "react";
|
|
51
|
+
var ThemeContext = createContext({
|
|
52
|
+
theme: "system",
|
|
53
|
+
setTheme: function() {}
|
|
54
|
+
});
|
|
55
|
+
function useAlquimiaTheme() {
|
|
56
|
+
return useContext(ThemeContext);
|
|
57
|
+
}
|
|
58
|
+
// src/providers/alquimia-ui-provider.tsx
|
|
59
|
+
import { jsx } from "react/jsx-runtime";
|
|
60
|
+
function AlquimiaUIProvider(param) {
|
|
61
|
+
var _param_defaultMode = param.defaultMode, defaultMode = _param_defaultMode === void 0 ? "system" : _param_defaultMode, children = param.children;
|
|
62
|
+
var _React_useState = _sliced_to_array(React.useState(function() {
|
|
63
|
+
if (defaultMode !== "system") return defaultMode;
|
|
64
|
+
if (typeof window !== "undefined") {
|
|
65
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
66
|
+
}
|
|
67
|
+
return "light";
|
|
68
|
+
}), 2), resolvedTheme = _React_useState[0], setResolvedTheme = _React_useState[1];
|
|
69
|
+
function applyTheme(theme) {
|
|
70
|
+
if (typeof document !== "undefined") {
|
|
71
|
+
document.documentElement.classList.toggle("dark", theme === "dark");
|
|
72
|
+
}
|
|
73
|
+
setResolvedTheme(theme);
|
|
74
|
+
}
|
|
75
|
+
React.useEffect(function() {
|
|
76
|
+
if (defaultMode !== "system") {
|
|
77
|
+
applyTheme(defaultMode);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
var mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
81
|
+
var handler = function(e) {
|
|
82
|
+
applyTheme(e.matches ? "dark" : "light");
|
|
83
|
+
};
|
|
84
|
+
applyTheme(mediaQuery.matches ? "dark" : "light");
|
|
85
|
+
mediaQuery.addEventListener("change", handler);
|
|
86
|
+
return function() {
|
|
87
|
+
return mediaQuery.removeEventListener("change", handler);
|
|
88
|
+
};
|
|
89
|
+
}, [
|
|
90
|
+
defaultMode
|
|
91
|
+
]);
|
|
92
|
+
return /* @__PURE__ */ jsx(ThemeContext.Provider, {
|
|
93
|
+
value: {
|
|
94
|
+
theme: resolvedTheme,
|
|
95
|
+
setTheme: applyTheme
|
|
96
|
+
},
|
|
97
|
+
children: children
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
export { AlquimiaUIProvider, ThemeContext, useAlquimiaTheme };
|
|
101
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/sdk-frontend/sdk-frontend/packages/ui/dist/providers/index.mjs","../../src/providers/alquimia-ui-provider.tsx","../../src/providers/theme-context.ts"],"names":["React","createContext","useContext","ThemeContext","theme","setTheme","useAlquimiaTheme","jsx","AlquimiaUIProvider","defaultMode","children","useState","window","matchMedia","matches","resolvedTheme","setResolvedTheme","applyTheme","document","documentElement","classList","toggle","useEffect","mediaQuery","handler","e","addEventListener","removeEventListener","Provider","value"],"mappings":"AAAA,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACCzC,YAAYA,WAAW,QAAA;ADEvB,iCAAiC;AEFjC,SAASC,aAAA,EAAeC,UAAA,QAAkB,QAAA;AAOnC,IAAMC,eAAeF,cAAiC;IAC3DG,OAAO;IACPC,UAAU,YAAO;AACnB;AAEO,SAASC;IACd,OAAOJ,WAAWC;AACpB;AFDA,yCAAyC;AC+BrC,SAAAI,GAAA,QAAA,oBAAA;AApCG,SAASC,mBAAmB,KAGnC;6BAHmC,MACjCC,aAAAA,8CAAc,+BACdC,WAFiC,MAEjCA;IAEA,IAAgDV,mCAAAA,MAAAW,QAAA,CAAiB;QAC/D,IAAIF,gBAAgB,UAAU,OAAOA;QACrC,IAAI,OAAOG,WAAW,aAAa;YACjC,OAAOA,OAAOC,UAAA,CAAW,gCAAgCC,OAAA,GAAU,SAAS;QAC9E;QACA,OAAO;IACT,QANOC,gBAAyCf,oBAA1BgB,mBAA0BhB;IAQhD,SAASiB,WAAWb,KAAA;QAClB,IAAI,OAAOc,aAAa,aAAa;YACnCA,SAASC,eAAA,CAAgBC,SAAA,CAAUC,MAAA,CAAO,QAAQjB,UAAU;QAC9D;QACAY,iBAAiBZ;IACnB;IAEMJ,MAAAsB,SAAA,CAAU;QACd,IAAIb,gBAAgB,UAAU;YAC5BQ,WAAWR;YACX;QACF;QAEA,IAAMc,aAAaX,OAAOC,UAAA,CAAW;QACrC,IAAMW,UAAU,SAACC;YACfR,WAAWQ,EAAEX,OAAA,GAAU,SAAS;QAClC;QAEAG,WAAWM,WAAWT,OAAA,GAAU,SAAS;QACzCS,WAAWG,gBAAA,CAAiB,UAAUF;QACtC,OAAO;mBAAMD,WAAWI,mBAAA,CAAoB,UAAUH;;IACxD,GAAG;QAACf;KAAY;IAEhB,OACE,aAAA,GAAAF,IAACJ,aAAayB,QAAA,EAAb;QAAsBC,OAAO;YAAEzB,OAAOW;YAAeV,UAAUY;QAAW;QACxEP,UAAAA;IAAA;AAGP;ADDA,SACEF,kBAAkB,EAClBL,YAAY,EACZG,gBAAgB,GAChB","sourcesContent":["// src/providers/alquimia-ui-provider.tsx\nimport * as React from \"react\";\n\n// src/providers/theme-context.ts\nimport { createContext, useContext } from \"react\";\nvar ThemeContext = createContext({\n theme: \"system\",\n setTheme: () => {\n }\n});\nfunction useAlquimiaTheme() {\n return useContext(ThemeContext);\n}\n\n// src/providers/alquimia-ui-provider.tsx\nimport { jsx } from \"react/jsx-runtime\";\nfunction AlquimiaUIProvider({\n defaultMode = \"system\",\n children\n}) {\n const [resolvedTheme, setResolvedTheme] = React.useState(() => {\n if (defaultMode !== \"system\") return defaultMode;\n if (typeof window !== \"undefined\") {\n return window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\";\n }\n return \"light\";\n });\n function applyTheme(theme) {\n if (typeof document !== \"undefined\") {\n document.documentElement.classList.toggle(\"dark\", theme === \"dark\");\n }\n setResolvedTheme(theme);\n }\n React.useEffect(() => {\n if (defaultMode !== \"system\") {\n applyTheme(defaultMode);\n return;\n }\n const mediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n const handler = (e) => {\n applyTheme(e.matches ? \"dark\" : \"light\");\n };\n applyTheme(mediaQuery.matches ? \"dark\" : \"light\");\n mediaQuery.addEventListener(\"change\", handler);\n return () => mediaQuery.removeEventListener(\"change\", handler);\n }, [defaultMode]);\n return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: { theme: resolvedTheme, setTheme: applyTheme }, children });\n}\nexport {\n AlquimiaUIProvider,\n ThemeContext,\n useAlquimiaTheme\n};\n","\"use client\";\nimport * as React from 'react';\nimport { ThemeContext } from './theme-context';\n\nexport interface AlquimiaUIProviderProps {\n defaultMode?: 'light' | 'dark' | 'system';\n children: React.ReactNode;\n}\n\nexport function AlquimiaUIProvider({\n defaultMode = 'system',\n children,\n}: AlquimiaUIProviderProps) {\n const [resolvedTheme, setResolvedTheme] = React.useState<string>(() => {\n if (defaultMode !== 'system') return defaultMode;\n if (typeof window !== 'undefined') {\n return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n return 'light';\n });\n\n function applyTheme(theme: string) {\n if (typeof document !== 'undefined') {\n document.documentElement.classList.toggle('dark', theme === 'dark');\n }\n setResolvedTheme(theme);\n }\n\n React.useEffect(() => {\n if (defaultMode !== 'system') {\n applyTheme(defaultMode);\n return;\n }\n\n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n const handler = (e: MediaQueryListEvent) => {\n applyTheme(e.matches ? 'dark' : 'light');\n };\n\n applyTheme(mediaQuery.matches ? 'dark' : 'light');\n mediaQuery.addEventListener('change', handler);\n return () => mediaQuery.removeEventListener('change', handler);\n }, [defaultMode]);\n\n return (\n <ThemeContext.Provider value={{ theme: resolvedTheme, setTheme: applyTheme }}>\n {children}\n </ThemeContext.Provider>\n );\n}\n","\"use client\";\nimport { createContext, useContext } from 'react';\n\ninterface ThemeContextValue {\n theme: string;\n setTheme: (theme: string) => void;\n}\n\nexport const ThemeContext = createContext<ThemeContextValue>({\n theme: 'system',\n setTheme: () => {},\n});\n\nexport function useAlquimiaTheme() {\n return useContext(ThemeContext);\n}\n"]}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* src/styles/globals.css */
|
|
2
|
+
@tailwind base;
|
|
3
|
+
@tailwind components;
|
|
4
|
+
@tailwind utilities;
|
|
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
|
+
.dark {
|
|
34
|
+
--background: 222.2 84% 4.9%;
|
|
35
|
+
--foreground: 210 40% 98%;
|
|
36
|
+
--card: 222.2 84% 4.9%;
|
|
37
|
+
--card-foreground: 210 40% 98%;
|
|
38
|
+
--popover: 222.2 84% 4.9%;
|
|
39
|
+
--popover-foreground: 210 40% 98%;
|
|
40
|
+
--primary: 210 40% 98%;
|
|
41
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
42
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
43
|
+
--secondary-foreground: 210 40% 98%;
|
|
44
|
+
--muted: 217.2 32.6% 17.5%;
|
|
45
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
46
|
+
--accent: 217.2 32.6% 17.5%;
|
|
47
|
+
--accent-foreground: 210 40% 98%;
|
|
48
|
+
--destructive: 0 62.8% 30.6%;
|
|
49
|
+
--destructive-foreground: 210 40% 98%;
|
|
50
|
+
--border: 217.2 32.6% 17.5%;
|
|
51
|
+
--input: 217.2 32.6% 17.5%;
|
|
52
|
+
--ring: 212.7 26.8% 83.9%;
|
|
53
|
+
--chart-1: 220 70% 50%;
|
|
54
|
+
--chart-2: 160 60% 45%;
|
|
55
|
+
--chart-3: 30 80% 55%;
|
|
56
|
+
--chart-4: 280 65% 60%;
|
|
57
|
+
--chart-5: 340 75% 55%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@layer base {
|
|
61
|
+
* {
|
|
62
|
+
@apply border-border;
|
|
63
|
+
}
|
|
64
|
+
body {
|
|
65
|
+
@apply bg-background text-foreground;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/*# sourceMappingURL=styles.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/styles/globals.css"],"sourcesContent":["@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 222.2 84% 4.9%;\n --card: 0 0% 100%;\n --card-foreground: 222.2 84% 4.9%;\n --popover: 0 0% 100%;\n --popover-foreground: 222.2 84% 4.9%;\n --primary: 222.2 47.4% 11.2%;\n --primary-foreground: 210 40% 98%;\n --secondary: 210 40% 96.1%;\n --secondary-foreground: 222.2 47.4% 11.2%;\n --muted: 210 40% 96.1%;\n --muted-foreground: 215.4 16.3% 46.9%;\n --accent: 210 40% 96.1%;\n --accent-foreground: 222.2 47.4% 11.2%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 210 40% 98%;\n --border: 214.3 31.8% 91.4%;\n --input: 214.3 31.8% 91.4%;\n --ring: 222.2 84% 4.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n\n .dark {\n --background: 222.2 84% 4.9%;\n --foreground: 210 40% 98%;\n --card: 222.2 84% 4.9%;\n --card-foreground: 210 40% 98%;\n --popover: 222.2 84% 4.9%;\n --popover-foreground: 210 40% 98%;\n --primary: 210 40% 98%;\n --primary-foreground: 222.2 47.4% 11.2%;\n --secondary: 217.2 32.6% 17.5%;\n --secondary-foreground: 210 40% 98%;\n --muted: 217.2 32.6% 17.5%;\n --muted-foreground: 215 20.2% 65.1%;\n --accent: 217.2 32.6% 17.5%;\n --accent-foreground: 210 40% 98%;\n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 210 40% 98%;\n --border: 217.2 32.6% 17.5%;\n --input: 217.2 32.6% 17.5%;\n --ring: 212.7 26.8% 83.9%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}"],"mappings":";AAAA,UAAU;AACV,UAAU;AACV,UAAU;AAEV;AACE;AACE,kBAAc,EAAE,GAAG;AACnB,kBAAc,MAAM,IAAI;AACxB,YAAQ,EAAE,GAAG;AACb,uBAAmB,MAAM,IAAI;AAC7B,eAAW,EAAE,GAAG;AAChB,0BAAsB,MAAM,IAAI;AAChC,eAAW,MAAM,MAAM;AACvB,0BAAsB,IAAI,IAAI;AAC9B,iBAAa,IAAI,IAAI;AACrB,4BAAwB,MAAM,MAAM;AACpC,aAAS,IAAI,IAAI;AACjB,wBAAoB,MAAM,MAAM;AAChC,cAAU,IAAI,IAAI;AAClB,yBAAqB,MAAM,MAAM;AACjC,mBAAe,EAAE,MAAM;AACvB,8BAA0B,IAAI,IAAI;AAClC,cAAU,MAAM,MAAM;AACtB,aAAS,MAAM,MAAM;AACrB,YAAQ,MAAM,IAAI;AAClB,cAAU;AACV,eAAW,GAAG,IAAI;AAClB,eAAW,IAAI,IAAI;AACnB,eAAW,IAAI,IAAI;AACnB,eAAW,GAAG,IAAI;AAClB,eAAW,GAAG,IAAI;AACpB;AAEA,GAAC;AACC,kBAAc,MAAM,IAAI;AACxB,kBAAc,IAAI,IAAI;AACtB,YAAQ,MAAM,IAAI;AAClB,uBAAmB,IAAI,IAAI;AAC3B,eAAW,MAAM,IAAI;AACrB,0BAAsB,IAAI,IAAI;AAC9B,eAAW,IAAI,IAAI;AACnB,0BAAsB,MAAM,MAAM;AAClC,iBAAa,MAAM,MAAM;AACzB,4BAAwB,IAAI,IAAI;AAChC,aAAS,MAAM,MAAM;AACrB,wBAAoB,IAAI,MAAM;AAC9B,cAAU,MAAM,MAAM;AACtB,yBAAqB,IAAI,IAAI;AAC7B,mBAAe,EAAE,MAAM;AACvB,8BAA0B,IAAI,IAAI;AAClC,cAAU,MAAM,MAAM;AACtB,aAAS,MAAM,MAAM;AACrB,YAAQ,MAAM,MAAM;AACpB,eAAW,IAAI,IAAI;AACnB,eAAW,IAAI,IAAI;AACnB,eAAW,GAAG,IAAI;AAClB,eAAW,IAAI,IAAI;AACnB,eAAW,IAAI,IAAI;AACrB;AACF;AAEA;AACE;AACE,WAAO;AACT;AACA;AACE,WAAO,cAAc;AACvB;AACF;","names":[]}
|
package/dist/styles.d.ts
ADDED
package/dist/tailwind.config.js
CHANGED
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
module.exports = {
|
|
3
3
|
darkMode: ["class"],
|
|
4
4
|
content: [
|
|
5
|
-
'
|
|
6
|
-
|
|
7
|
-
'./app/**/*.{ts,tsx}',
|
|
8
|
-
'./src/**/*.{ts,tsx}',
|
|
9
|
-
"./node_modules/@alquimia-ai/ui/dist/**/*.{js,ts,jsx,tsx,mdx}",
|
|
5
|
+
// Scans the UI package dist so consumers don't need to add this manually
|
|
6
|
+
"./node_modules/@alquimia-ai/ui/dist/**/*.{js,mjs}",
|
|
10
7
|
],
|
|
11
8
|
prefix: "",
|
|
12
9
|
theme: {
|
|
@@ -74,7 +71,7 @@ module.exports = {
|
|
|
74
71
|
"thumb-pop": {
|
|
75
72
|
"0%, 100%": { transform: "scale(1)" },
|
|
76
73
|
"50%": { transform: "scale(1.2)" },
|
|
77
|
-
}
|
|
74
|
+
},
|
|
78
75
|
},
|
|
79
76
|
animation: {
|
|
80
77
|
"accordion-down": "accordion-down 0.2s ease-out",
|
|
@@ -85,8 +82,5 @@ module.exports = {
|
|
|
85
82
|
},
|
|
86
83
|
},
|
|
87
84
|
},
|
|
88
|
-
corePlugins: {
|
|
89
|
-
preflight: false,
|
|
90
|
-
},
|
|
91
85
|
plugins: [require("tailwindcss-animate")],
|
|
92
|
-
}
|
|
86
|
+
}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ToolSummary } from '@alquimia-ai/tools/types';
|
|
2
|
+
export { ToolSummary } from '@alquimia-ai/tools/types';
|
|
3
|
+
|
|
1
4
|
type AlquimiaDocument = {
|
|
2
5
|
id: string;
|
|
3
6
|
name: string;
|
|
@@ -67,15 +70,12 @@ interface TWYDServerActions {
|
|
|
67
70
|
interface ToolFactory {
|
|
68
71
|
createTool: (tool: string, payload: any) => React.ReactNode | null;
|
|
69
72
|
}
|
|
73
|
+
|
|
70
74
|
type Tooler = {
|
|
71
75
|
tool_summary?: ToolSummary;
|
|
72
76
|
tool_output?: Record<string, any>;
|
|
73
77
|
control_id?: string;
|
|
74
78
|
};
|
|
75
|
-
type ToolSummary = {
|
|
76
|
-
name: string;
|
|
77
|
-
parameters: Record<string, any>;
|
|
78
|
-
};
|
|
79
79
|
type TTSResult = {
|
|
80
80
|
type: 'blob';
|
|
81
81
|
data: Blob;
|
|
@@ -87,4 +87,4 @@ type TTSResult = {
|
|
|
87
87
|
message: string;
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TTSResult, type TWYDServerActions, type ToolFactory, type
|
|
90
|
+
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TTSResult, type TWYDServerActions, type ToolFactory, type Tooler, type TopicRating };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ToolSummary } from '@alquimia-ai/tools/types';
|
|
2
|
+
export { ToolSummary } from '@alquimia-ai/tools/types';
|
|
3
|
+
|
|
1
4
|
type AlquimiaDocument = {
|
|
2
5
|
id: string;
|
|
3
6
|
name: string;
|
|
@@ -67,15 +70,12 @@ interface TWYDServerActions {
|
|
|
67
70
|
interface ToolFactory {
|
|
68
71
|
createTool: (tool: string, payload: any) => React.ReactNode | null;
|
|
69
72
|
}
|
|
73
|
+
|
|
70
74
|
type Tooler = {
|
|
71
75
|
tool_summary?: ToolSummary;
|
|
72
76
|
tool_output?: Record<string, any>;
|
|
73
77
|
control_id?: string;
|
|
74
78
|
};
|
|
75
|
-
type ToolSummary = {
|
|
76
|
-
name: string;
|
|
77
|
-
parameters: Record<string, any>;
|
|
78
|
-
};
|
|
79
79
|
type TTSResult = {
|
|
80
80
|
type: 'blob';
|
|
81
81
|
data: Blob;
|
|
@@ -87,4 +87,4 @@ type TTSResult = {
|
|
|
87
87
|
message: string;
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TTSResult, type TWYDServerActions, type ToolFactory, type
|
|
90
|
+
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TTSResult, type TWYDServerActions, type ToolFactory, type Tooler, type TopicRating };
|
package/dist/types/index.js
CHANGED
|
@@ -1,33 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
function _type_of(obj) {
|
|
3
|
+
"@swc/helpers - typeof";
|
|
4
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5
|
+
}
|
|
2
6
|
var __defProp = Object.defineProperty;
|
|
3
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
8
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all)
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
var __export = function(target, all) {
|
|
11
|
+
for(var name in all)__defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
9
15
|
};
|
|
10
|
-
var __copyProps = (to, from, except, desc)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
var __copyProps = function(to, from, except, desc) {
|
|
17
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
18
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
19
|
+
try {
|
|
20
|
+
var _loop = function() {
|
|
21
|
+
var key = _step.value;
|
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[key];
|
|
25
|
+
},
|
|
26
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
30
|
+
} catch (err) {
|
|
31
|
+
_didIteratorError = true;
|
|
32
|
+
_iteratorError = err;
|
|
33
|
+
} finally{
|
|
34
|
+
try {
|
|
35
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
36
|
+
_iterator.return();
|
|
37
|
+
}
|
|
38
|
+
} finally{
|
|
39
|
+
if (_didIteratorError) {
|
|
40
|
+
throw _iteratorError;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = function(mod) {
|
|
48
|
+
return __copyProps(__defProp({}, "__esModule", {
|
|
49
|
+
value: true
|
|
50
|
+
}), mod);
|
|
17
51
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
52
|
// src/types/index.ts
|
|
21
53
|
var types_exports = {};
|
|
22
54
|
__export(types_exports, {
|
|
23
|
-
|
|
55
|
+
EditingStatus: function() {
|
|
56
|
+
return EditingStatus;
|
|
57
|
+
}
|
|
24
58
|
});
|
|
25
59
|
module.exports = __toCommonJS(types_exports);
|
|
26
|
-
|
|
27
60
|
// src/types/type.ts
|
|
28
|
-
var EditingStatus = /* @__PURE__ */ (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
61
|
+
var EditingStatus = /* @__PURE__ */ function(EditingStatus2) {
|
|
62
|
+
EditingStatus2["EDITING"] = "EDITING";
|
|
63
|
+
EditingStatus2["FINISHED"] = "FINISHED";
|
|
64
|
+
return EditingStatus2;
|
|
65
|
+
}(EditingStatus || {});
|
|
33
66
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts","../../src/types/type.ts"],"sourcesContent":["export * from \"./type\";\n","
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/sdk-frontend/sdk-frontend/packages/ui/dist/types/index.js","../../src/types/index.ts","../../src/types/type.ts"],"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","types_exports","EditingStatus","module","exports"],"mappings":"AAAA;;;;;AACA,IAAIA,YAAYC,OAAOC,cAAc;AACrC,IAAIC,mBAAmBF,OAAOG,wBAAwB;AACtD,IAAIC,oBAAoBJ,OAAOK,mBAAmB;AAClD,IAAIC,eAAeN,OAAOO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,SAACC,QAAQC;IACtB,IAAK,IAAIC,QAAQD,IACfZ,UAAUW,QAAQE,MAAM;QAAEC,KAAKF,GAAG,CAACC,KAAK;QAAEE,YAAY;IAAK;AAC/D;AACA,IAAIC,cAAc,SAACC,IAAIC,MAAMC,QAAQC;IACnC,IAAIF,QAAQ,CAAA,OAAOA,qCAAP,SAAOA,KAAG,MAAM,YAAY,OAAOA,SAAS,YAAY;YAC7D,kCAAA,2BAAA;;;gBAAA,IAAIG,MAAJ;gBACH,IAAI,CAACd,aAAae,IAAI,CAACL,IAAII,QAAQA,QAAQF,QACzCnB,UAAUiB,IAAII,KAAK;oBAAEP,KAAK;+BAAMI,IAAI,CAACG,IAAI;;oBAAEN,YAAY,CAAEK,CAAAA,OAAOjB,iBAAiBe,MAAMG,IAAG,KAAMD,KAAKL,UAAU;gBAAC;;YAFpH,QAAK,YAAWV,kBAAkBa,0BAA7B,SAAA,6BAAA,QAAA,yBAAA;;YAAA;YAAA;;;qBAAA,6BAAA;oBAAA;;;oBAAA;0BAAA;;;;IAGP;IACA,OAAOD;AACT;AACA,IAAIM,eAAe,SAACC;WAAQR,YAAYhB,UAAU,CAAC,GAAG,cAAc;QAAEyB,OAAO;IAAK,IAAID;;AAEtF,qBAAqB;ACnBrB,IAAAE,gBAAA,CAAA;AAAAhB,SAAAgB,eAAA;IAAAC,eAAA;eAAAA;;AAAA;AAAAC,OAAAC,OAAA,GAAAN,aAAAG;AD0BA,oBAAoB;AEQb,IAAKC,gBAAL,aAAA,GAAA,SAAKA;IACVA,cAAAA,CAAA,UAAA,GAAU;IACVA,cAAAA,CAAA,WAAA,GAAW;IAFD,OAAAA;AAAA,EAAAA,iBAAA,CAAA","sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/types/index.ts\nvar types_exports = {};\n__export(types_exports, {\n EditingStatus: () => EditingStatus\n});\nmodule.exports = __toCommonJS(types_exports);\n\n// src/types/type.ts\nvar EditingStatus = /* @__PURE__ */ ((EditingStatus2) => {\n EditingStatus2[\"EDITING\"] = \"EDITING\";\n EditingStatus2[\"FINISHED\"] = \"FINISHED\";\n return EditingStatus2;\n})(EditingStatus || {});\n","export * from \"./type\";\n","import type { ToolSummary as ToolsSummary } from '@alquimia-ai/tools/types';\n\nexport type AlquimiaDocument = {\n id: string;\n name: string;\n description?: string;\n isActive: boolean;\n contentType: string;\n url: string;\n updatedAt?: string;\n};\n\nexport type AlquimiaTopic = {\n id: string;\n externalCollectionId: string;\n isActive: boolean;\n name: string;\n description: string;\n createdAt?: string;\n updatedAt?: string;\n files: AlquimiaDocument[];\n ratings?: TopicRating[];\n};\n\nexport type TopicRating = {\n id: number;\n sessionId: string;\n}\n\nexport type AlquimiaFile = {\n id: string;\n file: Blob;\n}\n\nexport enum EditingStatus {\n EDITING = 'EDITING',\n FINISHED = 'FINISHED',\n}\n\nexport interface RatingData {\n assistantId: string;\n sessionId: string;\n topicId: number;\n score?: number;\n emoji?: string;\n description?: string;\n};\n\nexport interface ActionResponse<T = void> {\n success: boolean;\n data?: T;\n error?: ActionError;\n}\n\nexport type ActionError = {\n message: string;\n code?: string;\n details?: ErrorDetails;\n}\n\nexport type ErrorDetails = {\n status: string;\n statusText?: string;\n}\n\nexport type ApiError = Error & {\n message: string;\n name: string;\n cause: string;\n code?: string | number;\n status?: string | number;\n}\n\nexport interface TWYDServerActions {\n getDocument?: (id: string) => Promise<ActionResponse<Blob>>;\n sendRating?: (ratingData: RatingData) => Promise<any>;\n logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;\n}\n\nexport interface ToolFactory {\n createTool: (tool: string, payload: any) => React.ReactNode | null;\n}\n\nexport type { ToolSummary } from '@alquimia-ai/tools/types';\n\nexport type Tooler = {\n tool_summary?: ToolsSummary;\n tool_output?: Record<string, any>;\n control_id?: string;\n}\n\nexport type TTSResult =\n | { type: 'blob'; data: Blob }\n | { type: 'url'; data: string }\n | { type: 'error'; message: string };"]}
|
package/dist/types/index.mjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// src/types/type.ts
|
|
2
|
-
var EditingStatus = /* @__PURE__ */ (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
EditingStatus
|
|
9
|
-
};
|
|
2
|
+
var EditingStatus = /* @__PURE__ */ function(EditingStatus2) {
|
|
3
|
+
EditingStatus2["EDITING"] = "EDITING";
|
|
4
|
+
EditingStatus2["FINISHED"] = "FINISHED";
|
|
5
|
+
return EditingStatus2;
|
|
6
|
+
}(EditingStatus || {});
|
|
7
|
+
export { EditingStatus };
|
|
10
8
|
//# sourceMappingURL=index.mjs.map
|
package/dist/types/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/type.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/sdk-frontend/sdk-frontend/packages/ui/dist/types/index.mjs","../../src/types/type.ts"],"names":["EditingStatus"],"mappings":"AAAA,oBAAoB;ACkCb,IAAKA,gBAAL,aAAA,GAAA,SAAKA;IACVA,cAAAA,CAAA,UAAA,GAAU;IACVA,cAAAA,CAAA,WAAA,GAAW;IAFD,OAAAA;AAAA,EAAAA,iBAAA,CAAA;AD5BZ,SACEA,aAAa,GACb","sourcesContent":["// src/types/type.ts\nvar EditingStatus = /* @__PURE__ */ ((EditingStatus2) => {\n EditingStatus2[\"EDITING\"] = \"EDITING\";\n EditingStatus2[\"FINISHED\"] = \"FINISHED\";\n return EditingStatus2;\n})(EditingStatus || {});\nexport {\n EditingStatus\n};\n","import type { ToolSummary as ToolsSummary } from '@alquimia-ai/tools/types';\n\nexport type AlquimiaDocument = {\n id: string;\n name: string;\n description?: string;\n isActive: boolean;\n contentType: string;\n url: string;\n updatedAt?: string;\n};\n\nexport type AlquimiaTopic = {\n id: string;\n externalCollectionId: string;\n isActive: boolean;\n name: string;\n description: string;\n createdAt?: string;\n updatedAt?: string;\n files: AlquimiaDocument[];\n ratings?: TopicRating[];\n};\n\nexport type TopicRating = {\n id: number;\n sessionId: string;\n}\n\nexport type AlquimiaFile = {\n id: string;\n file: Blob;\n}\n\nexport enum EditingStatus {\n EDITING = 'EDITING',\n FINISHED = 'FINISHED',\n}\n\nexport interface RatingData {\n assistantId: string;\n sessionId: string;\n topicId: number;\n score?: number;\n emoji?: string;\n description?: string;\n};\n\nexport interface ActionResponse<T = void> {\n success: boolean;\n data?: T;\n error?: ActionError;\n}\n\nexport type ActionError = {\n message: string;\n code?: string;\n details?: ErrorDetails;\n}\n\nexport type ErrorDetails = {\n status: string;\n statusText?: string;\n}\n\nexport type ApiError = Error & {\n message: string;\n name: string;\n cause: string;\n code?: string | number;\n status?: string | number;\n}\n\nexport interface TWYDServerActions {\n getDocument?: (id: string) => Promise<ActionResponse<Blob>>;\n sendRating?: (ratingData: RatingData) => Promise<any>;\n logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;\n}\n\nexport interface ToolFactory {\n createTool: (tool: string, payload: any) => React.ReactNode | null;\n}\n\nexport type { ToolSummary } from '@alquimia-ai/tools/types';\n\nexport type Tooler = {\n tool_summary?: ToolsSummary;\n tool_output?: Record<string, any>;\n control_id?: string;\n}\n\nexport type TTSResult =\n | { type: 'blob'; data: Blob }\n | { type: 'url'; data: string }\n | { type: 'error'; message: string };"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alquimia-ai/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"author": "Alquimia AI",
|
|
5
5
|
"description": "UI components for Alquimia SDK",
|
|
6
6
|
"private": false,
|
|
@@ -62,6 +62,11 @@
|
|
|
62
62
|
"require": "./dist/styles/*"
|
|
63
63
|
},
|
|
64
64
|
"./styles/themes/*": "./dist/styles/themes/*",
|
|
65
|
+
"./providers": {
|
|
66
|
+
"types": "./dist/providers/index.d.ts",
|
|
67
|
+
"import": "./dist/providers/index.mjs",
|
|
68
|
+
"require": "./dist/providers/index.js"
|
|
69
|
+
},
|
|
65
70
|
"./tailwind.config": "./dist/tailwind.config.js",
|
|
66
71
|
"./package.json": "./package.json"
|
|
67
72
|
},
|
|
@@ -69,9 +74,9 @@
|
|
|
69
74
|
"lint": "eslint . --max-warnings 0",
|
|
70
75
|
"generate:component": "turbo gen react-component",
|
|
71
76
|
"prebuild": "cd ../tools && npm run build",
|
|
72
|
-
"build": "tsup
|
|
77
|
+
"build": "tsup && cpx \"src/styles/**/*\" dist/styles",
|
|
73
78
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
74
|
-
"dev": "tsup
|
|
79
|
+
"dev": "tsup --watch",
|
|
75
80
|
"genversion": "genversion --es6 --semi ./version.js"
|
|
76
81
|
},
|
|
77
82
|
"files": [
|
|
@@ -93,8 +98,6 @@
|
|
|
93
98
|
"@types/react-dom": "^18.2.19",
|
|
94
99
|
"cpx": "^1.5.0",
|
|
95
100
|
"eslint": "^8.57.0",
|
|
96
|
-
"next": ">=13.5.0",
|
|
97
|
-
"next-themes": ">=0.3.0",
|
|
98
101
|
"react": ">=18.0.0",
|
|
99
102
|
"react-dom": ">=18.0.0",
|
|
100
103
|
"typescript": "^5.3.3"
|
|
@@ -137,8 +140,6 @@
|
|
|
137
140
|
},
|
|
138
141
|
"peerDependencies": {
|
|
139
142
|
"@alquimia-ai/tools": "*",
|
|
140
|
-
"next": ">=13.5.0",
|
|
141
|
-
"next-themes": ">=0.3.0",
|
|
142
143
|
"react": ">=18.0.0",
|
|
143
144
|
"react-dom": ">=18.0.0"
|
|
144
145
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { A as AlertDialog, k as AlertDialogAction, l as AlertDialogCancel, f as AlertDialogContent, j as AlertDialogDescription, h as AlertDialogFooter, g as AlertDialogHeader, d as AlertDialogOverlay, c as AlertDialogPortal, i as AlertDialogTitle, e as AlertDialogTrigger, B as Button, a as ButtonProps, b as buttonVariants } from '../alert-dialog-CP71C4vl.mjs';
|
|
2
|
-
export { Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, InputProps, Label, Loader, Popover, PopoverContent, PopoverTrigger, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, ThinkIndicator, ThinkIndicatorProps, Toaster, Toggle, Typography, TypographyProps, badgeVariants, thinkIndicatorVariants, toggleVariants } from './atoms/index.mjs';
|
|
3
|
-
export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../toast-2xT7L1tJ.mjs';
|
|
4
|
-
import 'class-variance-authority/types';
|
|
5
|
-
import 'react';
|
|
6
|
-
import 'class-variance-authority';
|
|
7
|
-
import 'react/jsx-runtime';
|
|
8
|
-
import '@radix-ui/react-alert-dialog';
|
|
9
|
-
import '@radix-ui/react-select';
|
|
10
|
-
import '@radix-ui/react-avatar';
|
|
11
|
-
import '@radix-ui/react-scroll-area';
|
|
12
|
-
import 'vaul';
|
|
13
|
-
import '@radix-ui/react-dialog';
|
|
14
|
-
import '@radix-ui/react-label';
|
|
15
|
-
import '@radix-ui/react-checkbox';
|
|
16
|
-
import '@radix-ui/react-toggle';
|
|
17
|
-
import '@radix-ui/react-slider';
|
|
18
|
-
import '@radix-ui/react-switch';
|
|
19
|
-
import '@radix-ui/react-tabs';
|
|
20
|
-
import '@radix-ui/react-aspect-ratio';
|
|
21
|
-
import '@radix-ui/react-popover';
|
|
22
|
-
import '@radix-ui/react-separator';
|
|
23
|
-
import '@radix-ui/react-toast';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { A as AlertDialog, k as AlertDialogAction, l as AlertDialogCancel, f as AlertDialogContent, j as AlertDialogDescription, h as AlertDialogFooter, g as AlertDialogHeader, d as AlertDialogOverlay, c as AlertDialogPortal, i as AlertDialogTitle, e as AlertDialogTrigger, B as Button, a as ButtonProps, b as buttonVariants } from '../alert-dialog-CP71C4vl.js';
|
|
2
|
-
export { Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, InputProps, Label, Loader, Popover, PopoverContent, PopoverTrigger, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, ThinkIndicator, ThinkIndicatorProps, Toaster, Toggle, Typography, TypographyProps, badgeVariants, thinkIndicatorVariants, toggleVariants } from './atoms/index.js';
|
|
3
|
-
export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../toast-2xT7L1tJ.js';
|
|
4
|
-
import 'class-variance-authority/types';
|
|
5
|
-
import 'react';
|
|
6
|
-
import 'class-variance-authority';
|
|
7
|
-
import 'react/jsx-runtime';
|
|
8
|
-
import '@radix-ui/react-alert-dialog';
|
|
9
|
-
import '@radix-ui/react-select';
|
|
10
|
-
import '@radix-ui/react-avatar';
|
|
11
|
-
import '@radix-ui/react-scroll-area';
|
|
12
|
-
import 'vaul';
|
|
13
|
-
import '@radix-ui/react-dialog';
|
|
14
|
-
import '@radix-ui/react-label';
|
|
15
|
-
import '@radix-ui/react-checkbox';
|
|
16
|
-
import '@radix-ui/react-toggle';
|
|
17
|
-
import '@radix-ui/react-slider';
|
|
18
|
-
import '@radix-ui/react-switch';
|
|
19
|
-
import '@radix-ui/react-tabs';
|
|
20
|
-
import '@radix-ui/react-aspect-ratio';
|
|
21
|
-
import '@radix-ui/react-popover';
|
|
22
|
-
import '@radix-ui/react-separator';
|
|
23
|
-
import '@radix-ui/react-toast';
|