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

Rework datepicker #177

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8e7a854
feat: use default input date
iacopolea Feb 12, 2024
49b1702
chore: remove unused
iacopolea Feb 12, 2024
151e4cc
feat: Remove mobiscroll and update to node18 styled v6
d-beezee Apr 2, 2024
578fa7d
chore: Update yarn lock
d-beezee Apr 2, 2024
dd676e1
chore: Update to yarn
d-beezee Apr 2, 2024
eb0f6fd
ci: Use node 16
d-beezee Apr 2, 2024
dc52c72
ci: Use node 18
d-beezee Apr 2, 2024
d103836
ci: Update chromatic
d-beezee Apr 2, 2024
683bbfa
feat: Update storybook
d-beezee Apr 2, 2024
a1038c5
chore: Cleanup typescript
d-beezee Apr 2, 2024
3021678
1.0.50-canary
d-beezee Apr 2, 2024
bc2fcc4
fix: Use correct types
d-beezee Apr 2, 2024
50b73d3
1.0.51-canary
d-beezee Apr 2, 2024
78c22a7
fix: Restore retrocompability
d-beezee Apr 3, 2024
2db255d
1.0.52-canary
d-beezee Apr 3, 2024
3177451
feat: Allow using string and date as intialvalue
d-beezee Apr 3, 2024
dbc0fb9
1.0.53-canary
d-beezee Apr 3, 2024
c22b478
fix: Pad format date
d-beezee Apr 3, 2024
1b3169e
1.0.54-canary
d-beezee Apr 3, 2024
a03aecf
fix: Correct month
d-beezee Apr 3, 2024
54076f7
1.0.55-canary
d-beezee Apr 3, 2024
e25cbe3
fix: Fix types
d-beezee Apr 3, 2024
27b3278
fix: Fix containers
d-beezee Apr 3, 2024
0e5697d
1.0.56-canary
d-beezee Apr 3, 2024
40be65b
feat: Make time mask stricter
d-beezee Apr 3, 2024
9a14271
1.0.57-canary
d-beezee Apr 3, 2024
55728dd
feat: Update font family for datepicker
d-beezee Apr 3, 2024
ab55010
fix: Correct format date
d-beezee Apr 3, 2024
c3c775c
1.0.58-canary
d-beezee Apr 3, 2024
0e67aa7
fix: Parse date correctly
d-beezee Apr 3, 2024
c9ce1a6
1.0.59-canary
d-beezee Apr 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
10 changes: 5 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- uses: actions/checkout@v2
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Use Node.js 12.x
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 18.x
- name: Cache node modules
uses: actions/cache@v1
with:
Expand All @@ -35,6 +35,6 @@ jobs:
#👇 npm token, see https://storybook.js.org/tutorials/design-systems-for-developers/react/en/distribute/ to obtain it
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
npm run build
npm run release
yarn --frozen-lockfile
yarn run build
yarn run release
6 changes: 3 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- uses: actions/checkout@v2
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Use Node.js 12.x
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "18"
- name: Cache npm cache
id: cache-npm
uses: actions/cache@v2
Expand All @@ -42,5 +42,5 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
yarn --frozen-lockfile
npx chromatic --project-token ${{ secrets.CHROMATIC_TOKEN }} --exit-zero-on-changes --ci
14 changes: 12 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
stories: ["../src/**/*.mdx", "../src/**/*.stories.tsx"],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"storybook-addon-designs",
"@storybook/addon-mdx-gfm",
],

framework: {
name: "@storybook/react-webpack5",
options: {},
},

docs: {
autodocs: true,
},
};
7 changes: 3 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
import React from "react";

import GlobalStyle from "../src/shared/globalStyle";
import { ThemeProvider } from "styled-components";
import GlobalStyle from "../src/shared/globalStyle";
import { aqBootstrapTheme } from "../src/stories/theme/defaultTheme";

// Global decorator to apply the styles to all stories
export const decorators = [
(Story) => (
(StoryFn) => (
<div style={{ padding: "10px" }}>
<div
style={{ overflow: "hidden", background: "#fff", minHeight: "100vh" }}
>
<ThemeProvider theme={aqBootstrapTheme}>
<GlobalStyle />
<Story />
<StoryFn />
</ThemeProvider>
</div>
</div>
),
];

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
layout: "fullscreen",
controls: {
matchers: {
Expand Down
4 changes: 2 additions & 2 deletions generate-story.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ EOF
}
generate_stories() {
cat << EOF
import { Story, Meta } from "@storybook/react";
import { StoryFn, Meta } from "@storybook/react";
import { ${STORY_NAME}Props } from "./_types";
import { ${STORY_NAME} } from "./${STORY_NAME}";
Expand All @@ -45,7 +45,7 @@ export default {
component: ${STORY_NAME},
} as Meta;
const Template: Story<${STORY_NAME}Props> = (args) => <${STORY_NAME} {...args} />;
const Template: StoryFn<${STORY_NAME}Props> = (args) => <${STORY_NAME} {...args} />;
export const ${STORY_NAME}Base = Template.bind({});
${STORY_NAME}Base.args = {};
Expand Down
Loading
Loading