-
Notifications
You must be signed in to change notification settings - Fork 3
chore: tailwind-configuration #63
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
Merged
Merged
Changes from 90 commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
0d021bd
chore: tailwind-configuration
tractorss 2210d55
fix: error-light-hex-code
tractorss 38a5f0a
chore: update-eslint-and-prettier
tractorss 90d6cef
chore: update-eslint-to-v9
tractorss 896fd94
chore: add-react-aria-lib
tractorss 8fd4b72
chore: accordion-migration
tractorss 117885e
chore: remove-base-styles
tractorss 9e89cc7
refactor: remove-duplicate-style
tractorss 07125b8
chore: use-react-aria-components
tractorss 385d4d7
refactor: feedback
tractorss c4cbd5f
Merge pull request #64 from kleros/chore/accordion-migration
alcercu dd8b732
feat: migrate to vite and add storybook
alcercu 7ce7be7
Merge branch 'chore/tailwind-migration' into feat/add-storybook
alcercu ecf90e9
fix: svgr config and index.html location
alcercu 8281bbc
chore: add tailwind vite plugin
alcercu 03e9bba
chore: update yarn volta pinned version
alcercu 3882f39
chore: add vite react plugin
alcercu 227a8b0
Merge pull request #66 from kleros/feat/add-storybook
tractorss eb23314
feat: add accordion stories
alcercu c2211a3
chore: use-tailwind-merge-with-clsx
tractorss 0fb0ec1
chore: button-migration
tractorss b055f9b
Merge pull request #68 from kleros/feat/add-accordion-stories
alcercu 269e5d7
chore: button-stories
tractorss 54cf95c
refactor: mark-props-as-read-only
tractorss cff2b83
chore: remove-on-click-handler-in-favor-of-on-press
tractorss 66a0326
Merge pull request #69 from kleros/chore/button-migration-tailwind
alcercu be08ba3
Merge pull request #70 from kleros/feat/add-accordion-stories
tractorss cab06cb
chore: dot-migration
tractorss 7a7779c
chore: breadcrumb-migration
tractorss 7fa7c99
chore: breadcrumb-story
tractorss 9cce1a7
Merge pull request #71 from kleros/chore/dot-migration
alcercu b864c7a
chore: pagination-standard-and-compact-migration
tractorss bce8242
chore: tabs-migration-with-new-implementation
tractorss 2f63149
chore: pagination-stories
tractorss 481217f
chore: address-feedback
tractorss 953def3
Merge pull request #72 from kleros/chore/pagination-migration
alcercu 2de6706
chore: tag-migration
tractorss 36ae018
chore: container-migration
tractorss 37bd449
chore: modal-react-aria
tractorss e350905
chore: display-components-migration
tractorss dc1e08f
chore: tooltip-migration
tractorss 5317393
chore: copiable-migration
tractorss 7c26bcc
chore: messages-migration
tractorss 7cc9305
chore: checkbox-migration
tractorss 846c4e2
chore: add-react-aria-tailwind-plugin
tractorss 3f1bc35
chore: radio-migration
tractorss fe899cd
chore: switch-migration
tractorss f96f4eb
chore: use-size-utility
tractorss a537ef3
chore: fields-migration
tractorss 94de98b
fix: switch-selected-state
tractorss d300587
fix: checkbox-selected-state
tractorss e8d61d9
chore: address-feedback
tractorss 504c16f
feat: button-pressed-animation
tractorss 927d693
chore: searchbar-migration
tractorss 609d7d0
chore: file-uploader-migration
tractorss 268f9d2
chore: slider-migration
tractorss dcb011b
chore: remove-rc-slider
tractorss 5ded115
chore: datepicker-migration
tractorss ffca1bf
chore: form-component
tractorss d3960d3
chore: scroll-bar-migration
tractorss 00d093f
chore: dropdown-select-migration
tractorss 3eaf59a
chore: dropdown-migration
tractorss f99302f
chore: dropwdown-cascader-stories
tractorss 3fdaa7d
style: cascader-item-outline
tractorss c0a24b8
chore: linear-progress-migration
tractorss e3e53e3
chore: circular-progress-migration
tractorss b9f0114
chore: progress-stories
tractorss 2f461e1
chore: steps-migration
tractorss 372fb27
chore: steps-stories
tractorss 3fe4ba2
chore: timeline-migration
tractorss d866d86
chore: timeline-stories
tractorss 3654447
feat: big-number-field
tractorss 77dbcc7
chore: vite-build-setup
tractorss 30f9f36
chore: clean-up-styled-components-and-other-libraries
tractorss 32cc28e
chore: release candidate
tractorss b8ad064
refactor: type-generation-and-styles
tractorss 704a296
chore: build-configuration
tractorss 0ace8c5
chore: release candidate
tractorss be10f60
feat: updated-documentation
tractorss 50ba720
fix: add toString config to useBigNumberField
alcercu 635e892
Merge pull request #74 from kleros/fix/bignumber-tostring-format
alcercu 8dc9829
chore: theme-export
tractorss 1915fe6
fix: readme typo
alcercu 35f733c
Merge pull request #73 from kleros/chore/tag-migration
tractorss b909e8e
chore: rabbit-review-addressed
tractorss 34783b5
Merge branch 'main' into chore/tailwind-migration
tractorss f565779
chore: rabbit-review
tractorss 80475a2
chore: v3.0.0 release
tractorss 7c54160
chore: enable-corepack-in-github-actions
tractorss b4350c4
chore: sonar-cloud-review
tractorss 7ddd427
chore: sonar-cloud-review-2
tractorss ee5d249
chore: aria-labels-fix
tractorss a973d5f
chore: bump version
tractorss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- name: Enable corepack | ||
run: corepack enable | ||
- name: Install modules | ||
run: yarn | ||
- name: Run ESLint | ||
run: yarn check-style |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
tractorss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Enable corepack | ||
run: corepack enable | ||
- name: Install modules | ||
run: yarn | ||
- name: Run TypeScriptCompiler | ||
run: yarn check-types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.