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

v3.2.0 #924

Merged
merged 48 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
37fe1d1
Merge pull request #783 from Trendyol/next (#784)
leventozen May 2, 2024
b6490d6
docs: bump version (#852)
leventozen May 2, 2024
2f41ef7
feat(icon): add door and credit_card icons (#855)
umitkucuk May 7, 2024
c6174cc
chore(deps-dev): bump ejs from 3.1.9 to 3.1.10 (#850)
dependabot[bot] May 8, 2024
a526c35
feat(select): improve option navigation by key (#856)
gokcecicek May 9, 2024
23c4520
style(dialog): add style for tab-group in dialog
ozkersemih May 15, 2024
daffbb6
docs(dialog): add new story for tab situation in dialog
ozkersemih May 15, 2024
e691c7a
fix(popover): Fix bl-tooltip trigger issue (#871)
MertOzbudak May 16, 2024
f2deab2
feat(tooltip): add target attribute (#848)
Enes5519 May 16, 2024
3373a39
feat(dialog): implement critical variant (#870)
AykutSarac May 16, 2024
0564c75
docs(dialog): update styling of story
ozkersemih May 20, 2024
0e0a97f
chore(dialog): fix conflict
ozkersemih May 20, 2024
5e4ef0e
fix(drawer): fix drawer delay bug for removing from dom (#875)
fatihkucuktry Jun 3, 2024
b0ba8d4
fix(split-button): fix event bubbling for buttons inside split button
ozkersemih Jun 3, 2024
f07c5e5
Merge pull request #879 from Trendyol/fix-split-button-event
ozkersemih Jun 4, 2024
f3d1c35
fix(select): fix disabled select option can be selected with enter (#…
ahmetozantekin Jun 6, 2024
db46356
chore: update dependabot.yml configuration (#882)
doganozturk Jun 12, 2024
e9d7992
feat(select): Improve select search international character support (…
fatihkucuktry Jun 13, 2024
f52f6c0
feat(select): fix search text is not clear bug when user click clear …
mozbatman Jun 13, 2024
7948d0a
story(input): add input masking documentation (#883)
doganozturk Jun 13, 2024
cf3b920
style(dialog): remove unnecessary padding for critical and captionles…
ozkersemih Jun 27, 2024
93a145b
Merge pull request #872 from Trendyol/dialog-tabs
ozkersemih Jun 27, 2024
486a313
feat(select): fix search text is not clear bug when user click clear …
mozbatman Jun 27, 2024
3210b19
fix: Use lowercase script import in using-baklava-in-next.stories.mdx…
BerkinAKKAYA Jun 27, 2024
f3dafd9
feat: calendar component (#823)
dilandoogan Jun 27, 2024
9fad8ca
feat: spinner component (#877)
MertOzbudak Jun 27, 2024
1fc91d9
docs(ADR): move ADRs under components directories (#865)
AykutSarac Jun 27, 2024
385d215
fix(checkbox): add relative value for position in checkbox container …
erbilnas Jul 11, 2024
cc352bf
chore(deps): bump actions/configure-pages from 3 to 5 (#887)
dependabot[bot] Jul 30, 2024
a85292c
chore(deps): bump actions/deploy-pages from 2 to 4 (#888)
dependabot[bot] Jul 30, 2024
60ffde6
refactor(icon): implement baklava-icons and remove icons folder (#898)
ogunb Aug 1, 2024
38d3343
feat(dialog): add width and caption line clamp css property
Enes5519 Aug 5, 2024
108af18
fix: chromatic
Enes5519 Aug 5, 2024
1ddf7c0
feat(input): prevent enter to submit form (#691)
muratcorlu Aug 8, 2024
6f38eec
style(dialog): change align items to flex-start
Enes5519 Aug 12, 2024
0c029a8
style(dialog): change close button size
Enes5519 Aug 12, 2024
16e6154
test(dialog): update snapshot
Enes5519 Aug 12, 2024
e1bbcb5
Merge branch 'next' into dialog-width-caption-line-clamp-737
AykutSarac Aug 12, 2024
5d33e44
fix(checkbox): fix validation state of checkbox
Enes5519 Aug 12, 2024
e11bc05
Merge pull request #904 from Trendyol/checkbox-validation-problem-903
Enes5519 Aug 15, 2024
7e628bb
Merge pull request #902 from Trendyol/dialog-width-caption-line-clamp…
Enes5519 Aug 15, 2024
eae5d54
fix(tooltip): use mouseenter as event listener
ozkersemih Sep 5, 2024
17ddd2d
Merge pull request #909 from Trendyol/tooltip-mouse-bug
ozkersemih Sep 5, 2024
b2fe023
fix(table): multiple checkbox should only handle currently rendered r…
ogunb Sep 17, 2024
07fe1d4
feat(datepicker): remove calendar border (#917)
dilandoogan Oct 7, 2024
1fc0aed
feat(datepicker): fix selected date color bug (#922)
dilandoogan Oct 8, 2024
bb0d15e
fix: upgrade next version to resolve vulnerability (#929)
erbilnas Oct 10, 2024
0a72eb6
Merge branch 'main' into next
erbilnas Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ storybook-static/
.bin/
.docksal/
src/generated/
examples/
61 changes: 61 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,68 @@ updates:
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
reviewers:
- "Trendyol/baklava"
allow:
- dependency-type: "direct"
rebase-strategy: "auto"
groups:
lit:
patterns:
- "lit"
- "@lit/*"
pre-commit:
patterns:
- "@commitlint/*"
- "lint-staged"
- "husky"
build:
patterns:
- "esbuild"
- "esbuild-plugin-lit-css"
- "minimist"
- "clean-css"
- "del"
- "del-cli"
- "globby"
- "pascal-case"
- "npm-run-all"
- "@custom-elements-manifest/analyzer"
test:
patterns:
- "@open-wc/*"
- "@web/*"
- "sinon"
- "rollup-plugin-lit-css"
- "@rollup/plugin-replace"
lint-and-format:
patterns:
- "eslint*"
- "@typescript-eslint/*"
- "prettier"
- "@trivago/prettier-plugin-sort-imports"
- "@types/*"
- "stylelint*"
typescript:
patterns:
- "typescript"
- "ts-lit-plugin"
storybook:
patterns:
- "storybook"
- "@storybook/*"
- "chromatic"
react:
patterns:
- "react"
- "react-dom"
- "@lit-labs/react"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
reviewers:
- "Trendyol/baklava"
rebase-strategy: "auto"
6 changes: 3 additions & 3 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
- name: Build Storybook
run: npm run build-storybook
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: './storybook-static/.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ docs/
.bin/
.docksal/
*.test.ts
examples/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ suggestions, code improvements, adding new features or fixing problems. For more
* [Project Board](https://github.com/orgs/Trendyol/projects/4)
* [Discussion Board](https://github.com/Trendyol/baklava/discussions)
* [Mobile (React-Native) Implementation](https://github.com/Trendyol/baklava-react-native)
* [Icons Library](https://github.com/Trendyol/baklava-icons)
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = {
"textarea",
"popover",
"notification",
"calendar",
"table",
"split-button",
],
Expand Down
2 changes: 1 addition & 1 deletion custom-elements-manifest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { parse } from "comment-parser";

export default {
globs: ["src/components/**/!(*.test|*.stories).ts"],
exclude: ["src/**/*.css", "src/components/icon/icon-list.ts"],
exclude: ["src/**/*.css", "src/**/*.constant.ts","src/**/*/*.types.ts","src/components/icon/icon-list.ts"],
outdir: "dist/",
dev: false,
watch: false,
Expand Down
56 changes: 0 additions & 56 deletions docs/design-system/adding-a-new-icon.stories.mdx

This file was deleted.

28 changes: 5 additions & 23 deletions docs/design-system/iconography.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
import { Meta, IconGallery, IconItem } from '@storybook/blocks';
import icons from '../../src/components/icon/icon-list';
import { BlIcon } from '../../src/baklava-react';
import { Meta } from '@storybook/blocks';

<Meta title="Design System/Icons/Iconography" />
<Meta title="Design System/Icons" />

# Iconography
# Baklava Icons

* All icons are provided as SVGs
* All icons are single color (Some have multiple layers with different opacity of same color)
* All icons has square canvas (By default 24x24)
* Icon names as in `snake_case`
* Icons are for decorative purposes. Don't use them as a data in your documents (like an instructive image)
Baklava Design System uses `@trendyol/baklava-icons` package for custom made icons.

You can check [icon component](/docs/components-icon--single-icon) for usage information and interactive demos.

## List of icons

<IconGallery>
{
icons.map((iconName) => (
<IconItem key={iconName} name={iconName}>
<BlIcon name={iconName} />
</IconItem>
))
}
</IconGallery>
For detailed documentation and to explore the available icons, please visit our [icon documentation](https://trendyol.github.io/baklava-icons/?path=/docs/documentation-baklava-icons--icons).
4 changes: 2 additions & 2 deletions docs/using-baklava-in-next.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Include Baklava library from CDN to your project's `<head>` section (in `layout.
href="https://cdn.jsdelivr.net/npm/@trendyol/baklava@3.1.0/dist/themes/default.css"
/>

<Script
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@trendyol/baklava@3.1.0/dist/baklava.js"
/>
Expand Down Expand Up @@ -52,7 +52,7 @@ In the page, import the component using `dynamic` with ssr off.
const Button = dynamic(() => import("@/components/Button"), { ssr: false });
```

[Here is the demo repository](https://gitlab.trendyol.com/local-commerce/pricing-promotions/frontend/playground/next-baklava-ssr-poc)
[Here is the demo repository](https://github.com/trendyol/baklava/tree/next/examples/next-app-router-ssr). You can also preview it live with [StackBlitz](https://stackblitz.com/github/trendyol/baklava/tree/next/examples/next-app-router-ssr).

## Using with SSR

Expand Down
22 changes: 22 additions & 0 deletions examples/input-mask-react/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'eslint-config-prettier',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions examples/input-mask-react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
7 changes: 7 additions & 0 deletions examples/input-mask-react/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"useTabs": false,
"tabWidth": 2
}
25 changes: 25 additions & 0 deletions examples/input-mask-react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Input Mask Example with React

This example demonstrates the integration of the Baklava Design System with various input masking libraries including Maskito and IMask. The primary goal is to showcase versatile compatibility and how these tools can be utilized together within a React application.

## Preview

You can preview live with [StackBlitz](https://stackblitz.com/github/trendyol/baklava/tree/next/examples/input-mask-react).

## How to use

To begin working with this showcase project, follow the steps below to clone the repository and set up the environment:

```bash
# Clone the repository
git clone https://github.com/trendyol/baklava.git

# Navigate to the project directory
cd baklava/examples/input-mask-react

# Install the dependencies
npm install

# Launch the development server
npm run dev
```
14 changes: 14 additions & 0 deletions examples/input-mask-react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Baklava Design System (React) with Multiple Input Masking Libraries</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
37 changes: 37 additions & 0 deletions examples/input-mask-react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "baklava-input-mask-react-examples",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write ./src",
"preview": "vite preview"
},
"dependencies": {
"@maskito/core": "^2.2.0",
"@maskito/kit": "^2.2.0",
"@maskito/react": "^2.2.0",
"@trendyol/baklava": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-imask": "^7.6.0",
"react-router-dom": "^6.22.3"
},
"devDependencies": {
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"prettier": "3.2.5",
"vite": "^5.1.6"
}
}
20 changes: 20 additions & 0 deletions examples/input-mask-react/src/examples/Root.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Link } from 'react-router-dom';

export default function Root() {
return (
<main>
<h1>Input Masking Libraries & Baklava Integration Examples</h1>

<nav>
<ul>
<li>
<Link to="maskito">Maskito</Link>
</li>
<li>
<Link to="imask">IMask</Link>
</li>
</ul>
</nav>
</main>
);
}
Loading
Loading