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

Set up wc-datepicker #2020

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/stale-apes-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/circuit-ui': minor
---

Add experimental `DatePicker` component. The component is under active development and is likely to change significantly. Use at your own risk.
9 changes: 8 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ export const parameters = {
controls: { expanded: true },
options: {
storySort: {
order: ['Introduction', 'Features'],
order: [
'Introduction',
'Features',
'*',
'Experimental',
'Packages',
'Contributing',
],
includeName: true,
},
},
Expand Down
79 changes: 61 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions packages/circuit-ui/components/DateInput/DateInput.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,30 @@
min-width: 8ch;
height: 48px;
}

.wrapper {
width: 100%;
padding: 0 var(--cui-spacings-kilo);
margin: 0;
background-color: var(--cui-bg-normal);
border: none;
border-radius: var(--cui-border-radius-byte);
outline: 0;
transition: box-shadow var(--cui-transitions-default),
padding var(--cui-transitions-default);
}

.segment {
padding: var(--cui-spacings-kilo) var(--cui-spacings-bit);
font-variant-numeric: tabular-nums;
text-align: center;
appearance: textfield;
border: none;
outline: 0;
}

.segment::-webkit-outer-spin-button,
.segment::-webkit-inner-spin-button {
margin: 0;
appearance: none;
}
Loading