Skip to content

Commit

Permalink
Merge branch 'main' into aric-sparkle_citaion_action_avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
lasryaric authored Nov 16, 2023
2 parents 8effb1f + 6aace59 commit c7ee06d
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 11 deletions.
2 changes: 1 addition & 1 deletion front/components/assistant/conversation/InputBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export function AssistantInputBar({
className={classNames(
"relative flex flex-1 flex-row items-stretch px-4",
"s-backdrop-blur border-2 border-action-300 bg-white/80 focus-within:border-action-400",
"rounded-xl drop-shadow-2xl transition-all duration-300",
"rounded-xl transition-all duration-300 box-shadow-2xl",
isAnimating
? "animate-shake border-action-500 focus-within:border-action-800"
: ""
Expand Down
9 changes: 5 additions & 4 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"initdb": "env $(cat .env.local) npx tsx admin/db.ts"
},
"dependencies": {
"@dust-tt/sparkle": "^0.2.40",
"@dust-tt/sparkle": "^0.2.41",
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/react": "^1.1.1",
"@headlessui/react": "^1.7.7",
Expand Down
31 changes: 30 additions & 1 deletion front/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('tailwindcss').Config} */
const colors = require("tailwindcss/colors"); // eslint-disable-line @typescript-eslint/no-var-requires
const plugin = require("tailwindcss/plugin"); // eslint-disable-line @typescript-eslint/no-var-requires

module.exports = {
theme: {
Expand Down Expand Up @@ -173,7 +174,35 @@ module.exports = {
backgroundColor: ["dark"],
},
},
plugins: [require("@tailwindcss/forms"), require("tailwind-scrollbar-hide")],
plugins: [
require("@tailwindcss/forms"),
require("tailwind-scrollbar-hide"),
plugin(function ({ addUtilities }) {
const newUtilities = {
".box-shadow": {
boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
},
".box-shadow-md": {
boxShadow:
"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
},
".box-shadow-lg": {
boxShadow:
"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
},
".box-shadow-xl": {
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
},
".box-shadow-2xl": {
boxShadow: "0 50px 100px -20px rgba(0, 0, 0, 0.25)",
},
".box-shadow-none": {
boxShadow: "none",
},
};
addUtilities(newUtilities);
}),
],
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
Expand Down
6 changes: 3 additions & 3 deletions sparkle/src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const modalStyles = {
[ModalType.Side]: {
containerClasses: "s-flex s-h-full s-p-0 s-justify-end sm:s-p-2",
panelClasses:
"s-m-0 s-h-full s-max-h-full s-w-full s-max-w-full s-r-0 sm:s-rounded-xl s-drop-shadow-xl s-border s-border-structure-100",
"s-m-0 s-h-full s-max-h-full s-w-full s-max-w-full s-r-0 sm:s-rounded-xl s-box-shadow-xl s-border s-border-structure-100",
transitionEnterFrom: "s-opacity-0 -s-translate-x-20 s-scale-99",
transitionEnterTo: "s-opacity-100 s-translate-x-0 s-scale-100",
transitionLeaveFrom: "s-opacity-100 s-translate-x-0 s-scale-100",
Expand All @@ -38,7 +38,7 @@ const modalStyles = {
},
[ModalType.FullScreen]: {
containerClasses:
"s-flex s-items-center s-justify-center s-h-full s-p-0 s-drop-shadow-xl",
"s-flex s-items-center s-justify-center s-h-full s-p-0 s-box-shadow-xl",
panelClasses: "s-m-0 s-h-full s-max-h-full s-w-full s-max-w-full s-r-0",
transitionEnterFrom: "s-opacity-0 s-translate-y-4 s-scale-95 s-rounded-xl",
transitionEnterTo: "s-opacity-100 s-translate-y-0 s-scale-100 s-rounded-0",
Expand All @@ -51,7 +51,7 @@ const modalStyles = {
containerClasses:
"s-flex s-items-center s-justify-center s-min-h-full s-p-4",
panelClasses:
"s-w-full sm:s-w-[448px] overflow-hidden s-drop-shadow-2xl s-rounded-xl s-border s-border-structure-100",
"s-w-full sm:s-w-[448px] overflow-hidden s-box-shadow-2xl s-rounded-xl s-border s-border-structure-100",
transitionEnterFrom: "s-opacity-0 s-translate-y-4 s-scale-95",
transitionEnterTo: "s-opacity-100 s-translate-y-0 s-scale-100",
transitionLeaveFrom: "s-opacity-100 s-translate-y-0 s-scale-100",
Expand Down
30 changes: 29 additions & 1 deletion sparkle/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('tailwindcss').Config} */
const colors = require("tailwindcss/colors");
const plugin = require("tailwindcss/plugin");

const safeColorsArray = [
"emerald",
Expand Down Expand Up @@ -185,7 +186,34 @@ module.exports = {
backgroundColor: ["dark"],
},
},
plugins: [require("@tailwindcss/forms")],
plugins: [
require("@tailwindcss/forms"),
plugin(function ({ addUtilities }) {
const newUtilities = {
".box-shadow": {
boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
},
".box-shadow-md": {
boxShadow:
"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
},
".box-shadow-lg": {
boxShadow:
"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
},
".box-shadow-xl": {
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
},
".box-shadow-2xl": {
boxShadow: "0 50px 100px -20px rgba(0, 0, 0, 0.25)",
},
".box-shadow-none": {
boxShadow: "none",
},
};
addUtilities(newUtilities);
}),
],
prefix: "s-",
content: ["./src/**/*.{html,js,ts,jsx,tsx}"],
safelist: safeColorlist,
Expand Down

0 comments on commit c7ee06d

Please sign in to comment.