Skip to content

Commit

Permalink
Main 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tuzkituan committed Apr 27, 2024
1 parent d429429 commit 2ffaf24
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
6 changes: 4 additions & 2 deletions lib/components/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ export const Alert = (props: IAlert) => {
{getIcon(status)}
</div>
<div className={contentClasses}>
<p className={theme.titleText()}>{title}</p>
<p className={theme.descriptionText()}>{description}</p>
{!!title && <p className={theme.titleText()}>{title}</p>}
{!!description && (
<p className={theme.descriptionText()}>{description}</p>
)}
</div>
{isClosable && (
<button
Expand Down
20 changes: 16 additions & 4 deletions lib/customization/styles/components/alert.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const base = cva(
"zn-block",
"zn-flex",
"zn-relative",
"zn-items-start",
"zn-items-center",
"zn-justify-start",
"zn-gap-3",
"zn-py-3",
Expand Down Expand Up @@ -88,7 +88,7 @@ const base = cva(
}
);

const icon = cva(["zn-text-2xl", "zn-border", "zn-rounded-full", "zn-p-2"], {
const icon = cva(["zn-text-2xl", "zn-border", "zn-rounded-full", "zn-p-2.5"], {
variants: {
status: {
info: ["zn-text-info-500"],
Expand Down Expand Up @@ -170,8 +170,20 @@ const close = cva(["zn-font-medium", "zn-absolute", "zn-top-3", "zn-right-3"], {
},
},
});
const titleText = cva(["zn-font-medium", "zn-m-0", "zn-text-base"]);
const descriptionText = cva(["zn-m-0", "zn-text-base", "zn-font-normal"]);
const titleText = cva([
"zn-font-semibold",
"zn-m-0",
"zn-text-base",
"zn-break-all",
"zn-leading-6",
]);
const descriptionText = cva([
"zn-m-0",
"zn-text-base",
"zn-font-normal",
"zn-break-all",
"zn-leading-6",
]);

const alertStyles = {
base,
Expand Down
5 changes: 2 additions & 3 deletions lib/customization/styles/components/image.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ const backdrop = cva([
"zn-bg-black",
"zn-bg-opacity-50",
"zn-inset-0",
"zn-overflow-hidden",
"zn-w-full",
"!zn-overflow-hidden",
"zn-h-full",
"zn-flex",
"zn-justify-center",
"zn-items-center",
"zn-z-[9999]",
]);
const imgContainer = cva(["zn-select-none"]);
const isPreviewable = cva(["hover:zn-brightness-75", "zn-cursor-pointer"]);
const isPreviewable = cva(["hover:zn-brightness-90", "zn-cursor-pointer"]);
const tools = cva([
"zn-flex",
"zn-items-center",
Expand Down
1 change: 0 additions & 1 deletion lib/customization/styles/components/modal.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const backdrop = cva([
"zn-overflow-y-auto",
"zn-flex",
"zn-justify-center",
"zn-w-full",
"zn-h-full",
"zn-p-12",
]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeni-ui",
"private": false,
"version": "1.3.1-beta",
"version": "1.3.2-beta",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down

0 comments on commit 2ffaf24

Please sign in to comment.