@copilotkit/react-ui 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.
- package/.turbo/turbo-build.log +26 -0
- package/CHANGELOG.md +7 -0
- package/dist/Button.d.ts +3 -0
- package/dist/Button.js +10 -0
- package/dist/Card.d.ts +7 -0
- package/dist/Card.js +10 -0
- package/dist/chunk-6OZR7L23.js +7 -0
- package/dist/chunk-FGO3LSHH.js +7 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -0
- package/package.json +36 -0
- package/postcss.config.js +9 -0
- package/src/Button.tsx +16 -0
- package/src/Card.tsx +27 -0
- package/src/index.tsx +6 -0
- package/src/styles.css +3 -0
- package/tailwind.config.js +7 -0
- package/tsconfig.json +5 -0
- package/tsup.config.ts +13 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
> @copilotkit/react-ui@0.1.0 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit2/packages/ui
|
|
3
|
+
> tsup --format cjs --dts
|
|
4
|
+
|
|
5
|
+
CLI Building entry: src/Button.tsx, src/Card.tsx, src/index.tsx
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v6.5.0
|
|
8
|
+
CLI Using tsup config: /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit2/packages/ui/tsup.config.ts
|
|
9
|
+
CLI Target: es6
|
|
10
|
+
CLI Cleaning output folder
|
|
11
|
+
CJS Build start
|
|
12
|
+
Browserslist: caniuse-lite is outdated. Please run:
|
|
13
|
+
npx update-browserslist-db@latest
|
|
14
|
+
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
15
|
+
DTS Build start
|
|
16
|
+
CJS dist/Card.js 186.00 B
|
|
17
|
+
CJS dist/index.css 6.08 KB
|
|
18
|
+
CJS dist/chunk-FGO3LSHH.js 689.00 B
|
|
19
|
+
CJS dist/Button.js 188.00 B
|
|
20
|
+
CJS dist/chunk-6OZR7L23.js 647.00 B
|
|
21
|
+
CJS dist/index.js 356.00 B
|
|
22
|
+
CJS ⚡️ Build success in 346ms
|
|
23
|
+
DTS ⚡️ Build success in 315ms
|
|
24
|
+
DTS dist/Button.d.ts 61.00 B
|
|
25
|
+
DTS dist/Card.d.ts 137.00 B
|
|
26
|
+
DTS dist/index.d.ts 72.00 B
|
package/CHANGELOG.md
ADDED
package/dist/Button.d.ts
ADDED
package/dist/Button.js
ADDED
package/dist/Card.d.ts
ADDED
package/dist/Card.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
var n=({title:e,cta:t,href:u})=>jsxRuntime.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:u,className:"ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]",children:jsxRuntime.jsxs("div",{className:"ui-p-4 ui-bg-zinc-900 ui-h-full",children:[jsxRuntime.jsx("p",{className:"ui-inline-block ui-text-xl ui-text-white",children:e}),jsxRuntime.jsxs("div",{className:"ui-text-xs ui-mt-4 group-hover:ui-underline",children:[t," \u2192"]})]})});
|
|
6
|
+
|
|
7
|
+
exports.a = n;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
var u=()=>jsxRuntime.jsx("div",{className:"rounded-md ",children:jsxRuntime.jsx("a",{href:"https://turbo.build/repo/docs",children:jsxRuntime.jsxs("div",{className:"ui-flex ui-w-full ui-items-center ui-justify-center ui-rounded-md ui-border ui-border-transparent ui-px-8 ui-py-3 ui-text-base ui-font-medium ui-no-underline ui-bg-white ui-text-black hover:ui-bg-gray-300 md:ui-py-3 md:ui-px-10 md:ui-text-lg md:ui-leading-6",children:["Read the docs",jsxRuntime.jsx("span",{className:"ui-ml-2 ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-bg-clip-text ui-text-transparent",children:"\u2192"})]})})});
|
|
6
|
+
|
|
7
|
+
exports.a = u;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.ui-ml-2{margin-left:.5rem}.ui-mt-4{margin-top:1rem}.ui-inline-block{display:inline-block}.ui-flex{display:flex}.ui-h-full{height:100%}.ui-w-full{width:100%}.ui-items-center{align-items:center}.ui-justify-center{justify-content:center}.ui-overflow-hidden{overflow:hidden}.ui-rounded-md{border-radius:.375rem}.ui-rounded-lg{border-radius:.5rem}.ui-border{border-width:1px}.ui-border-transparent{border-color:transparent}.ui-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.ui-bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity))}.ui-bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.ui-from-brandred{--tw-gradient-from: #ef4444;--tw-gradient-to: rgb(239 68 68 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.ui-to-brandblue{--tw-gradient-to: #3b82f6}.ui-bg-clip-text{-webkit-background-clip:text;background-clip:text}.ui-bg-origin-border{background-origin:border-box}.ui-p-4{padding:1rem}.ui-px-8{padding-left:2rem;padding-right:2rem}.ui-py-3{padding-top:.75rem;padding-bottom:.75rem}.ui-text-base{font-size:1rem;line-height:1.5rem}.ui-text-xl{font-size:1.25rem;line-height:1.75rem}.ui-text-xs{font-size:.75rem;line-height:1rem}.ui-font-medium{font-weight:500}.ui-text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.ui-text-transparent{color:transparent}.ui-text-\[\#6b7280\]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.ui-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.ui-no-underline{text-decoration-line:none}.hover\:ui-bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.ui-group:hover .group-hover\:ui-underline{text-decoration-line:underline}@media (min-width: 768px){.md\:ui-py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:ui-px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:ui-text-lg{font-size:1.125rem;line-height:1.75rem}.md\:ui-leading-6{line-height:1.5rem}}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkFGO3LSHH_js = require('./chunk-FGO3LSHH.js');
|
|
4
|
+
var chunk6OZR7L23_js = require('./chunk-6OZR7L23.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, 'Button', {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkFGO3LSHH_js.a; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, 'Card', {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunk6OZR7L23_js.a; }
|
|
15
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@copilotkit/react-ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist",
|
|
14
|
+
"./styles.css": "./dist/index.css"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"react": "^18.2.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/react": "^18.2.5",
|
|
22
|
+
"eslint": "^7.32.0",
|
|
23
|
+
"postcss": "^8.4.20",
|
|
24
|
+
"react": "^18.2.0",
|
|
25
|
+
"tsup": "^6.1.3",
|
|
26
|
+
"typescript": "^4.9.4",
|
|
27
|
+
"eslint-config-custom": "0.0.0",
|
|
28
|
+
"tailwind-config": "0.0.0",
|
|
29
|
+
"tsconfig": "0.0.0"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsup --format cjs --dts",
|
|
33
|
+
"dev": "tsup --watch",
|
|
34
|
+
"check-types": "tsc --noEmit"
|
|
35
|
+
}
|
|
36
|
+
}
|
package/src/Button.tsx
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
export const Button = () => {
|
|
4
|
+
return (
|
|
5
|
+
<div className="rounded-md ">
|
|
6
|
+
<a href="https://turbo.build/repo/docs">
|
|
7
|
+
<div className="ui-flex ui-w-full ui-items-center ui-justify-center ui-rounded-md ui-border ui-border-transparent ui-px-8 ui-py-3 ui-text-base ui-font-medium ui-no-underline ui-bg-white ui-text-black hover:ui-bg-gray-300 md:ui-py-3 md:ui-px-10 md:ui-text-lg md:ui-leading-6">
|
|
8
|
+
Read the docs
|
|
9
|
+
<span className="ui-ml-2 ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-bg-clip-text ui-text-transparent">
|
|
10
|
+
→
|
|
11
|
+
</span>
|
|
12
|
+
</div>
|
|
13
|
+
</a>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
};
|
package/src/Card.tsx
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
export const Card = ({
|
|
4
|
+
title,
|
|
5
|
+
cta,
|
|
6
|
+
href,
|
|
7
|
+
}: {
|
|
8
|
+
title: string;
|
|
9
|
+
cta: string;
|
|
10
|
+
href: string;
|
|
11
|
+
}) => {
|
|
12
|
+
return (
|
|
13
|
+
<a
|
|
14
|
+
target="_blank"
|
|
15
|
+
rel="noopener noreferrer"
|
|
16
|
+
href={href}
|
|
17
|
+
className="ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]"
|
|
18
|
+
>
|
|
19
|
+
<div className="ui-p-4 ui-bg-zinc-900 ui-h-full">
|
|
20
|
+
<p className="ui-inline-block ui-text-xl ui-text-white">{title}</p>
|
|
21
|
+
<div className="ui-text-xs ui-mt-4 group-hover:ui-underline">
|
|
22
|
+
{cta} →
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</a>
|
|
26
|
+
);
|
|
27
|
+
};
|
package/src/index.tsx
ADDED
package/src/styles.css
ADDED
package/tsconfig.json
ADDED
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineConfig, Options } from "tsup";
|
|
2
|
+
|
|
3
|
+
export default defineConfig((options: Options) => ({
|
|
4
|
+
treeshake: true,
|
|
5
|
+
splitting: true,
|
|
6
|
+
entry: ["src/**/*.tsx"],
|
|
7
|
+
format: ["esm"],
|
|
8
|
+
dts: true,
|
|
9
|
+
minify: true,
|
|
10
|
+
clean: true,
|
|
11
|
+
external: ["react"],
|
|
12
|
+
...options,
|
|
13
|
+
}));
|