Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit bdc2c8c

Browse files
committed
add customizable month sample
1 parent 09a17fe commit bdc2c8c

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

docs/package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"eslint": "8.35.0",
1616
"eslint-config-next": "13.2.3",
1717
"jb-calendar": "^4.0.3",
18-
"jb-date-input": "^3.7.12",
19-
"jb-date-input-react": "^2.0.20",
18+
"jb-date-input": "^3.13.0",
19+
"jb-date-input-react": "^2.6.0",
2020
"next": "13.2.3",
2121
"react": "18.2.0",
2222
"react-dom": "18.2.0",

docs/src/components/samples/Samples.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function Samples() {
6969
<div>b</div>
7070
</jb-date-input-inbox-element>
7171
</JBDateInput>
72+
<JBDateInput label='with custom month name' jalaliMonthList={["حَمَل","ثَور","جَوزا","سَرَطان","اَسَد","سُنبُله","میزان","عَقرَب","قَوس","جَدْی","دَلو","حوت"]}></JBDateInput>
7273
<FormalTheme label="more formal look">{ }</FormalTheme>
7374
</SamplesWrapper>
7475

docs/src/components/samples/styled.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export const SamplesTitle = styled.h2`
1616
export const SamplesWrapper = styled.div`
1717
max-width: 400px;
1818
width: calc(100% - 32px);
19+
display: flex;
20+
flex-direction: column;
21+
gap:1rem;
1922
jb-date-input{
2023
width: 100%;
2124
}

0 commit comments

Comments
 (0)