Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.3.1 #76

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .storybook/YourTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export default create({
brandTarget: "_self",
// appBg: "#F6F4EB",
appBorderRadius: 8,
fontBase: '"Plus Jakarta Sans", sans-serif',
fontBase: '"Onest", sans-serif',
});
9 changes: 3 additions & 6 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css2?family=Onest:[email protected]&display=swap" rel="stylesheet" />

<style>
body {
font-family: "Plus Jakarta Sans", sans-serif;
font-family: "Onest", sans-serif;
}
</style>
</style>
9 changes: 3 additions & 6 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css2?family=Onest:[email protected]&display=swap" rel="stylesheet" />

<style>
body {
font-family: "Plus Jakarta Sans", sans-serif;
font-family: "Onest", sans-serif;
}
</style>
</style>
4 changes: 2 additions & 2 deletions lib/customization/styles/components/alert.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ 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-sm"]);
const descriptionText = cva(["zn-m-0", "zn-text-sm", "zn-font-normal"]);
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 alertStyles = {
base,
Expand Down
22 changes: 12 additions & 10 deletions lib/customization/styles/components/button.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ const base = cva(
"zn-bg-primary-100",
"zn-border",
"zn-border-transparent",
"zn-text-primary-500",

"hover:zn-bg-primary-50",
"hover:zn-bg-primary-100",
"hover:zn-text-primary-400",

"focus:zn-bg-primary-200",

Expand All @@ -47,14 +49,14 @@ const base = cva(
outline: [
"zn-border",
"zn-bg-white",
"zn-border-primary-50",
"zn-text-gray-900",
"zn-border-primary-200",
"zn-text-primary-500",

"hover:zn-border-gray-100",
"hover:zn-text-primary-500",
"hover:zn-border-primary-200",
"hover:zn-text-primary-400",

"active:zn-border-gray-100",
"active:zn-text-primary-500",
"active:zn-border-primary-200",
"active:zn-text-primary-300",

"disabled:zn-bg-gray-100",
"disabled:zn-text-gray-400",
Expand All @@ -68,7 +70,7 @@ const base = cva(
"hover:zn-text-primary-500",

"active:zn-bg-primary-50",
"active:zn-text-primary-500",
"active:zn-text-primary-300",

"disabled:zn-text-gray-400",
],
Expand All @@ -84,8 +86,8 @@ const base = cva(
size: {
xs: ["zn-text-xs", "zn-h-6", "zn-py-1", "zn-px-2"],
sm: ["zn-text-sm", "zn-h-8", "zn-py-1", "zn-px-3"],
md: ["zn-text-sm", "zn-h-10", "zn-py-1", "zn-px-[20px]"],
lg: ["zn-text-base", "zn-h-12", "zn-py-1", "zn-px-[24px]"],
md: ["zn-text-base", "zn-h-10", "zn-py-1", "zn-px-[20px]"],
lg: ["zn-text-lg", "zn-h-12", "zn-py-1", "zn-px-[24px]"],
},
isDanger: {
true: [],
Expand Down
6 changes: 3 additions & 3 deletions lib/customization/styles/components/calendar.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const labelCell = cva([
"zn-text-center",
"zn-font-medium",
"zn-h-[36px]",
"zn-text-sm",
"zn-text-base",
]);
const valueCell = cva(["zn-px-1"]);
const valueCellInner = cva(
Expand All @@ -22,7 +22,7 @@ const valueCellInner = cva(
"zn-h-[28px]",
"zn-mx-auto",
"zn-text-center",
"zn-text-sm",
"zn-text-base",
"zn-border",
"zn-border-transparent",
"zn-rounded",
Expand Down Expand Up @@ -147,7 +147,7 @@ const header = cva([
"zn-px-[20px]",
"zn-pt-4",
// "zn-border-b",
// "zn-border-base",
// "zn-border-gray-200",
]);
const headerButton = cva(
[
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/checkbox.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const input = cva(
},
}
);
const label = cva(["zn-text-sm", "zn-font-medium", "zn-text-gray-900"], {
const label = cva(["zn-text-base", "zn-font-medium", "zn-text-gray-900"], {
variants: {
isDisabled: {
true: ["zn-text-gray-400"],
Expand Down
6 changes: 3 additions & 3 deletions lib/customization/styles/components/date-picker.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const container = cva(
variant: {
outline: [
"zn-border",
"zn-border-base",
"zn-border-gray-200",

"hover:!zn-border-primary-500",

Expand Down Expand Up @@ -79,8 +79,8 @@ const input = cva(
size: {
xs: ["zn-text-xs"],
sm: ["zn-text-sm"],
md: ["zn-text-sm"],
lg: ["zn-text-base"],
md: ["zn-text-base"],
lg: ["zn-text-lg"],
},
variant: {
outline: [],
Expand Down
10 changes: 5 additions & 5 deletions lib/customization/styles/components/input.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const container = cva(
variant: {
outline: [
"zn-border",
"zn-border-base",
"zn-border-gray-200",

"hover:!zn-border-primary-500",

Expand Down Expand Up @@ -54,8 +54,8 @@ const container = cva(
"zn-border-b",
"zn-border-b-primary-500",

"hover:zn-shadow-[0_1px_0_0_var(--color-primary)]",
"focus-within:!zn-shadow-[0_1px_0_0_var(--color-primary)]",
"hover:zn-shadow-[0_1px_0_0_var(--color-primary-500)]",
"focus-within:!zn-shadow-[0_1px_0_0_var(--color-primary-500)]",
"focus-within:!zn-border-b-primary-500",

"!zn-px-0",
Expand Down Expand Up @@ -98,8 +98,8 @@ const input = cva(
size: {
xs: ["zn-px-4", "zn-text-xs"],
sm: ["zn-px-4", "zn-text-sm"],
md: ["zn-px-4", "zn-text-sm"],
lg: ["zn-px-4", "zn-text-base"],
md: ["zn-px-4", "zn-text-base"],
lg: ["zn-px-4", "zn-text-lg"],
},
variant: {
outline: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/menu.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const item = cva(
"zn-px-3",
"zn-py-2",
"zn-rounded-base",
"zn-text-sm",
"zn-text-base",
"zn-font-medium",
"zn-flex",
"zn-items-center",
Expand Down
6 changes: 3 additions & 3 deletions lib/customization/styles/components/number-input.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const container = cva(
variant: {
outline: [
"zn-border",
"zn-border-base",
"zn-border-gray-200",

"hover:!zn-border-primary-500",

Expand Down Expand Up @@ -87,8 +87,8 @@ const input = cva(
size: {
xs: ["zn-px-2", "zn-text-xs"],
sm: ["zn-px-2", "zn-text-sm"],
md: ["zn-px-3", "zn-text-sm"],
lg: ["zn-px-3", "zn-text-base"],
md: ["zn-px-3", "zn-text-base"],
lg: ["zn-px-3", "zn-text-lg"],
},
variant: {
outline: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/popover.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const base = cva([
"zn-rounded-base",
"zn-bg-white",
"zn-text-gray-900",
"zn-text-sm",
"zn-text-base",
"zn-shadow-base",
]);
const arrow = cva([]);
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/radio.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const input = cva(
},
}
);
const label = cva(["zn-text-sm", "zn-font-medium", "zn-text-gray-900"], {
const label = cva(["zn-text-base", "zn-font-medium", "zn-text-gray-900"], {
variants: {
isDisabled: {
true: ["zn-text-gray-400"],
Expand Down
6 changes: 3 additions & 3 deletions lib/customization/styles/components/select.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const container = cva(
variant: {
outline: [
"zn-border",
"zn-border-base",
"zn-border-gray-200",

"hover:!zn-border-primary-500",

Expand Down Expand Up @@ -116,8 +116,8 @@ const inputGroup = cva(
size: {
xs: ["zn-px-4", "zn-text-xs"],
sm: ["zn-px-4", "zn-text-sm"],
md: ["zn-px-4", "zn-text-sm"],
lg: ["zn-px-4", "zn-text-base"],
md: ["zn-px-4", "zn-text-base"],
lg: ["zn-px-4", "zn-text-lg"],
},
variant: {
outline: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/spinner.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const overlay = cva([
"zn-flex-col",
"zn-gap-2",
]);
const description = cva(["zn-text-gray-900", "zn-text-sm"]);
const description = cva(["zn-text-gray-900", "zn-text-base"]);
const spinnerStyles = {
spinner,
container,
Expand Down
6 changes: 3 additions & 3 deletions lib/customization/styles/components/table.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
const tableBorder = cva([], {
variants: {
isBordered: {
true: ["zn-border", "zn-border-base", "zn-border-collapse"],
true: ["zn-border", "zn-border-gray-200", "zn-border-collapse"],
false: [],
},
},
Expand All @@ -22,11 +22,11 @@ const cell = cva(["zn-text-left"], {
});
const th = cva([
"zn-uppercase",
"zn-text-sm",
"zn-text-base",
"zn-font-semibold",
"zn-text-gray-900",
]);
const td = cva(["zn-text-sm"]);
const td = cva(["zn-text-base"]);
const tableStyles = {
base,
row,
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/tabs.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const li = cva(
"zn-py-2",
"zn-relative",
"zn-cursor-pointer",
"zn-text-sm",
"zn-text-base",
],
{
variants: {
Expand Down
4 changes: 2 additions & 2 deletions lib/customization/styles/components/textarea.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const base = cva(
"zn-w-full",
"zn-px-4",
"zn-py-3",
"zn-text-sm",
"zn-text-base",
],
{
variants: {
variant: {
outline: [
"zn-border",
"zn-border-base",
"zn-border-gray-200",

"hover:!zn-border-primary-500",

Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/tooltip.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const base = cva([
"zn-rounded-base",
"zn-px-2",
"zn-py-2",
"zn-text-sm",
"zn-text-base",
"zn-shadow-base",
]);

Expand Down
2 changes: 1 addition & 1 deletion lib/customization/theme/color-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getPalette = (color: string | chroma.Color) => {
const palette = [];

// Create 50
palette.push(colors(0.05).rgb().join(" "));
palette.push(colors(0.04).rgb().join(" "));

// Create 100-900
for (let i = 0.1; i < 0.9; i += 0.1) {
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.0-beta",
"version": "1.3.1-beta",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

:root {
font-family: "Plus Jakarta Sans", system-ui, Avenir, Helvetica, Arial,
font-family: "Onest", system-ui, Avenir, Helvetica, Arial,
sans-serif;
line-height: 1.5;
font-weight: 400;
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ export default {
boxShadow: {
base: "0px 6px 18px 0px rgba(4, 4, 7, 0.05)",
},
// fontSize: {
// base: '16px',
// },
},
},
variants: {
Expand Down
Loading