Skip to content

Chore/enable corepack GitHub actions #75

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

Closed
wants to merge 89 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
0d021bd
chore: tailwind-configuration
tractorss Mar 7, 2025
2210d55
fix: error-light-hex-code
tractorss Mar 7, 2025
38a5f0a
chore: update-eslint-and-prettier
tractorss Mar 7, 2025
90d6cef
chore: update-eslint-to-v9
tractorss Mar 7, 2025
896fd94
chore: add-react-aria-lib
tractorss Mar 7, 2025
8fd4b72
chore: accordion-migration
tractorss Mar 10, 2025
117885e
chore: remove-base-styles
tractorss Mar 11, 2025
9e89cc7
refactor: remove-duplicate-style
tractorss Mar 11, 2025
07125b8
chore: use-react-aria-components
tractorss Mar 11, 2025
385d4d7
refactor: feedback
tractorss Mar 11, 2025
c4cbd5f
Merge pull request #64 from kleros/chore/accordion-migration
alcercu Mar 11, 2025
dd8b732
feat: migrate to vite and add storybook
alcercu Mar 11, 2025
7ce7be7
Merge branch 'chore/tailwind-migration' into feat/add-storybook
alcercu Mar 11, 2025
ecf90e9
fix: svgr config and index.html location
alcercu Mar 11, 2025
8281bbc
chore: add tailwind vite plugin
alcercu Mar 11, 2025
03e9bba
chore: update yarn volta pinned version
alcercu Mar 11, 2025
3882f39
chore: add vite react plugin
alcercu Mar 11, 2025
227a8b0
Merge pull request #66 from kleros/feat/add-storybook
tractorss Mar 11, 2025
eb23314
feat: add accordion stories
alcercu Mar 11, 2025
c2211a3
chore: use-tailwind-merge-with-clsx
tractorss Mar 12, 2025
0fb0ec1
chore: button-migration
tractorss Mar 12, 2025
b055f9b
Merge pull request #68 from kleros/feat/add-accordion-stories
alcercu Mar 12, 2025
269e5d7
chore: button-stories
tractorss Mar 12, 2025
54cf95c
refactor: mark-props-as-read-only
tractorss Mar 12, 2025
cff2b83
chore: remove-on-click-handler-in-favor-of-on-press
tractorss Mar 12, 2025
66a0326
Merge pull request #69 from kleros/chore/button-migration-tailwind
alcercu Mar 12, 2025
be08ba3
Merge pull request #70 from kleros/feat/add-accordion-stories
tractorss Mar 13, 2025
cab06cb
chore: dot-migration
tractorss Mar 13, 2025
7a7779c
chore: breadcrumb-migration
tractorss Mar 13, 2025
7fa7c99
chore: breadcrumb-story
tractorss Mar 13, 2025
9cce1a7
Merge pull request #71 from kleros/chore/dot-migration
alcercu Mar 13, 2025
b864c7a
chore: pagination-standard-and-compact-migration
tractorss Mar 17, 2025
bce8242
chore: tabs-migration-with-new-implementation
tractorss Mar 17, 2025
2f63149
chore: pagination-stories
tractorss Mar 17, 2025
481217f
chore: address-feedback
tractorss Mar 21, 2025
953def3
Merge pull request #72 from kleros/chore/pagination-migration
alcercu Mar 21, 2025
2de6706
chore: tag-migration
tractorss Mar 18, 2025
36ae018
chore: container-migration
tractorss Mar 18, 2025
37bd449
chore: modal-react-aria
tractorss Mar 18, 2025
e350905
chore: display-components-migration
tractorss Mar 18, 2025
dc1e08f
chore: tooltip-migration
tractorss Mar 19, 2025
5317393
chore: copiable-migration
tractorss Mar 19, 2025
7c26bcc
chore: messages-migration
tractorss Mar 19, 2025
7cc9305
chore: checkbox-migration
tractorss Mar 19, 2025
846c4e2
chore: add-react-aria-tailwind-plugin
tractorss Mar 19, 2025
3f1bc35
chore: radio-migration
tractorss Mar 20, 2025
fe899cd
chore: switch-migration
tractorss Mar 20, 2025
f96f4eb
chore: use-size-utility
tractorss Mar 20, 2025
a537ef3
chore: fields-migration
tractorss Mar 21, 2025
94de98b
fix: switch-selected-state
tractorss Mar 21, 2025
d300587
fix: checkbox-selected-state
tractorss Mar 21, 2025
e8d61d9
chore: address-feedback
tractorss Mar 21, 2025
504c16f
feat: button-pressed-animation
tractorss Mar 21, 2025
927d693
chore: searchbar-migration
tractorss Mar 22, 2025
609d7d0
chore: file-uploader-migration
tractorss Mar 24, 2025
268f9d2
chore: slider-migration
tractorss Mar 24, 2025
dcb011b
chore: remove-rc-slider
tractorss Mar 24, 2025
5ded115
chore: datepicker-migration
tractorss Mar 26, 2025
ffca1bf
chore: form-component
tractorss Mar 26, 2025
d3960d3
chore: scroll-bar-migration
tractorss Mar 26, 2025
00d093f
chore: dropdown-select-migration
tractorss Mar 27, 2025
3eaf59a
chore: dropdown-migration
tractorss Mar 30, 2025
f99302f
chore: dropwdown-cascader-stories
tractorss Mar 30, 2025
3fdaa7d
style: cascader-item-outline
tractorss Mar 30, 2025
c0a24b8
chore: linear-progress-migration
tractorss Mar 31, 2025
e3e53e3
chore: circular-progress-migration
tractorss Mar 31, 2025
b9f0114
chore: progress-stories
tractorss Mar 31, 2025
2f461e1
chore: steps-migration
tractorss Mar 31, 2025
372fb27
chore: steps-stories
tractorss Mar 31, 2025
3fe4ba2
chore: timeline-migration
tractorss Apr 1, 2025
d866d86
chore: timeline-stories
tractorss Apr 1, 2025
3654447
feat: big-number-field
tractorss Apr 1, 2025
77dbcc7
chore: vite-build-setup
tractorss Apr 2, 2025
30f9f36
chore: clean-up-styled-components-and-other-libraries
tractorss Apr 2, 2025
32cc28e
chore: release candidate
tractorss Apr 3, 2025
b8ad064
refactor: type-generation-and-styles
tractorss Apr 4, 2025
704a296
chore: build-configuration
tractorss Apr 4, 2025
0ace8c5
chore: release candidate
tractorss Apr 4, 2025
be10f60
feat: updated-documentation
tractorss Apr 4, 2025
50ba720
fix: add toString config to useBigNumberField
alcercu Apr 10, 2025
635e892
Merge pull request #74 from kleros/fix/bignumber-tostring-format
alcercu Apr 14, 2025
8dc9829
chore: theme-export
tractorss Apr 14, 2025
1915fe6
fix: readme typo
alcercu Apr 14, 2025
35f733c
Merge pull request #73 from kleros/chore/tag-migration
tractorss Apr 15, 2025
b909e8e
chore: rabbit-review-addressed
tractorss Apr 15, 2025
34783b5
Merge branch 'main' into chore/tailwind-migration
tractorss Apr 15, 2025
f565779
chore: rabbit-review
tractorss Apr 15, 2025
80475a2
chore: v3.0.0 release
tractorss Apr 15, 2025
e8e026e
chore: enable-corepack-in-git-actions
tractorss Apr 15, 2025
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
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

92 changes: 0 additions & 92 deletions .eslintrc.json

This file was deleted.

14 changes: 8 additions & 6 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: ESLint
on:
pull_request:
branches: [ main ]
branches: [main]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn
- name: Run ESLint
run: yarn check-style
- uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Update actions/checkout to the latest version.

The workflow uses actions/checkout@v2, which is now outdated and may not be compatible with the latest GitHub Actions runners. Update to actions/checkout@v3 or later for improved security and compatibility.

-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- uses: actions/checkout@v2
- uses: actions/checkout@v3
🧰 Tools
🪛 actionlint (1.7.4)

9-9: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

- name: Enable corepack
run: corepack enable
- name: Install modules
run: yarn
- name: Run ESLint
run: yarn check-style
14 changes: 8 additions & 6 deletions .github/workflows/tsc.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: TypeCheck
on:
pull_request:
branches: [ main ]
branches: [main]
jobs:
TypeScriptCompiler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn
- name: Run TypeScriptCompiler
run: yarn check-types
- uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Update actions/checkout to the latest version.

The workflow uses actions/checkout@v2, which is now outdated and may not be compatible with the latest GitHub Actions runners. Update to actions/checkout@v3 or later for improved security and compatibility.

-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- uses: actions/checkout@v2
- uses: actions/checkout@v3
🧰 Tools
🪛 actionlint (1.7.4)

9-9: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

- name: Enable corepack
run: corepack enable
- name: Install modules
run: yarn
- name: Run TypeScriptCompiler
run: yarn check-types
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
/.pnp.*
node_modules

# parcel
.parcel-cache
development
build
dist
parcel-bundle-reports

# misc
.eslintcache
Expand All @@ -26,3 +23,5 @@ parcel-bundle-reports
npm-debug.log*
yarn-debug.log*
yarn-error.log*

*storybook.log
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"**/*.{js,jsx,ts,tsx}": ["eslint"]
"**/*.{js,jsx,ts,tsx}": ["eslint --fix"]
}
6 changes: 0 additions & 6 deletions .parcelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-tailwindcss"]
}
41 changes: 41 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
typescript: {
reactDocgen: "react-docgen-typescript",
reactDocgenTypescriptOptions: {
propFilter: (prop) => {
if (prop.parent) {
const fileName = prop.parent.fileName;
// Include props from our own code (not in node_modules)
if (!fileName.includes("node_modules")) {
return true;
}
// Include props from react-aria-components and react-aria
if (
fileName.includes("react-aria-components") ||
fileName.includes("react-aria") ||
fileName.includes("node_modules/@react-types")
) {
return true;
}
// Exclude all other props from node_modules
return false;
}
return true;
},
},
},
};
export default config;
54 changes: 54 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React, { useEffect } from "react";
import clsx from "clsx";

import type { Preview } from "@storybook/react";

import "../src/styles/global.css";

export type IPreviewArgs = {
themeUI: "light" | "dark";
backgroundUI: "white" | "light";
};

const preview: Preview = {
decorators: [
(Story, { args }) => {
const { themeUI, backgroundUI } = args;
useEffect(() => {
if (themeUI === "dark") document.documentElement.classList.add("dark");
else document.documentElement.classList.remove("dark");
}, [themeUI]);
return (
<div
className={clsx(
"p-4",
backgroundUI === "white"
? "bg-klerosUIComponentsWhiteBackground"
: "bg-klerosUIComponentsLightBackground",
)}
>
<Story />
</div>
);
},
],
args: {
themeUI: "light",
backgroundUI: "white",
},
argTypes: {
themeUI: {
options: ["light", "dark"],
control: { type: "radio" },
},
backgroundUI: {
options: ["white", "light"],
control: { type: "radio" },
},
},
parameters: {
layout: "centered",
},
};

export default preview;
Loading