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

feat(datepicker): developing datepicker component #907

Merged
merged 40 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6a69a3d
feat(datepicker): developing datepicker component
dilandoogan Aug 22, 2024
75d7686
feat(datepicker): run prettier
dilandoogan Aug 23, 2024
644fd9b
feat(datepicker): fix storybook bug
dilandoogan Sep 2, 2024
04f7c52
feat(datepicker): typescript type bug fix
dilandoogan Sep 3, 2024
d02eada
feat(datepicker): ui review updates
dilandoogan Sep 3, 2024
20a2645
feat(datepicker): showing floating date count fix
dilandoogan Sep 4, 2024
29eeb96
feat(datepicker): clear unnecessary codes
dilandoogan Sep 4, 2024
d76d591
feat(datepicker): coding improvments on bl-calendar component
dilandoogan Sep 6, 2024
dcc03ee
feat(datepicker): coding improvments on bl-datepicker component
dilandoogan Sep 9, 2024
5066c5d
feat(datepicker): show calendar on popover
dilandoogan Sep 9, 2024
ca1d304
feat(datepicker): default value bug fix
dilandoogan Sep 14, 2024
7ffde5c
feat(datepicker): fixing datepicker story
dilandoogan Sep 16, 2024
adb125b
feat(datepicker): add bl-calendar test cases
dilandoogan Sep 18, 2024
116b4c6
feat(datepicker): add test cases for bl-calendar and bl-datepicker co…
dilandoogan Sep 18, 2024
4c40fba
feat(datepicker): run prettier
dilandoogan Sep 19, 2024
e4720fa
feat(datepicker): remove unnecessary tests
dilandoogan Sep 19, 2024
878f8e9
feat(datepicker): remove calendar border
dilandoogan Sep 20, 2024
1eb2853
Merge branch 'calendar-remove-border' into datepicker-component
dilandoogan Sep 20, 2024
e42df9b
Merge branch 'next' into datepicker-component
dilandoogan Oct 7, 2024
3125cf0
feat(datepicker): add all test cases for datepicker and calendar comp…
dilandoogan Oct 7, 2024
d5de706
feat(datepicker): fix lint bug
dilandoogan Oct 7, 2024
f345e82
feat(datepicker): adding missing statement tests
dilandoogan Oct 8, 2024
63a592b
feat(datepicker): adding missing test for mixin
dilandoogan Oct 9, 2024
f353d58
Merge branch 'next' into datepicker-component
dilandoogan Oct 9, 2024
a183672
feat(datepicker): add input width prop to datepicker
dilandoogan Oct 10, 2024
c2dcf15
feat(datepicker): min date and max date validation added
dilandoogan Oct 10, 2024
f929160
feat(datepicker): min date and max date validation test cases added
dilandoogan Oct 10, 2024
f3df7cd
feat(datepicker): fix css custom property
dilandoogan Oct 10, 2024
ea3a441
feat(datepicker): change story name
dilandoogan Oct 11, 2024
315915f
feat(datepicker): add secondary option to locale
dilandoogan Oct 24, 2024
c6352bc
feat(datepicker): merge next
dilandoogan Oct 31, 2024
da22f12
feat(datepicker): self-review updates
dilandoogan Nov 7, 2024
e5dd2cd
feat(datepicker): run prettier
dilandoogan Nov 18, 2024
3ab285d
feat(datepicker): get disabled date as string or date array
dilandoogan Nov 21, 2024
da3cbe8
feat(datepicker): review updates
dilandoogan Nov 28, 2024
ad99f03
feat(datepicker): string to date converter review update
dilandoogan Nov 28, 2024
c68d007
Merge branch 'next' into datepicker-component
erbilnas Nov 29, 2024
cb11c42
feat(datepicker): add css variables to wrapper class
dilandoogan Dec 2, 2024
1fec4ae
feat(datepicker): add input size and input label type as prop to date…
dilandoogan Dec 3, 2024
3b17af6
feat(datepicker): change divider width
dilandoogan Dec 3, 2024
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
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
"calendar",
"table",
"split-button",
"datepicker",
],
],
},
Expand Down
60 changes: 30 additions & 30 deletions playground/template.html
AykutSarac marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Baklava Playground</title>
<link rel="stylesheet" href="./dist/themes/default.css" />
<script type="module" src="./dist/baklava.js"></script>
<script>
// Live reload
new EventSource("/esbuild").addEventListener("change", () => location.reload());
</script>
<style>
*:not(:defined) {
display: none;
}
<head>
<meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Baklava Playground</title>
<link href="./dist/themes/default.css" rel="stylesheet" />
<script src="./dist/baklava.js" type="module"></script>
<script>
// Live reload
new EventSource("/esbuild").addEventListener("change", () => location.reload());
</script>
<style>
*:not(:defined) {
display: none;
}

body {
font-family: var(--bl-font-family);
}
body {
font-family: var(--bl-font-family);
}

h1 {
font: var(--bl-font-display-1);
}
</style>
</head>
<body>
<h1>Baklava Playground</h1>
h1 {
font: var(--bl-font-display-1);
}
</style>
</head>
<body>
<h1>Baklava Playground</h1>

<p>
Copy this file as playground/index.html and try your work here by running
<code>npm run serve</code>.
</p>
<p>
Copy this file as playground/index.html and try your work here by running
<code>npm run serve</code>.
</p>

<bl-button>Baklava is ready</bl-button>
</body>
<bl-button>Baklava is ready</bl-button>
</body>
</html>
1 change: 1 addition & 0 deletions src/baklava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ export { default as BlTableHeaderCell } from "./components/table/table-header-ce
export { default as BlTableCell } from "./components/table/table-cell/bl-table-cell";
export { default as BlSplitButton } from "./components/split-button/bl-split-button";
export { default as BlCalendar } from "./components/calendar/bl-calendar";
export { default as BlDatePicker } from "./components/datepicker/bl-datepicker";
export { getIconPath, setIconPath } from "./utilities/asset-paths";
2 changes: 1 addition & 1 deletion src/components/calendar/bl-calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
justify-content: space-between;
width: 100%;
align-items: center;
gap: 2px;
padding-bottom: 15px;
Enes5519 marked this conversation as resolved.
Show resolved Hide resolved
}

.arrow {
Expand Down
3 changes: 2 additions & 1 deletion src/components/calendar/bl-calendar.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ You can select date range from calendar.
You can set dates which you want to disable from calendar.

<Canvas>
<Story name="Disabled Dates" args={{ type: 'single',disabledDates:`["${new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate()+2)}"]` }}>
<Story name="Disabled Dates" args={{ type: 'single',
disabledDates:`["${new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate()+2)}"]` }}>
{Template.bind({})}
</Story>
</Canvas>
Expand Down
Loading