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

Fluid datepicker v2 #3243

Merged
merged 81 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
a0d114a
docs: fluid-inputs
aagonzales Sep 9, 2022
48170ab
removed-dup-section
aagonzales Sep 12, 2022
5266921
Add-text-input-style
aagonzales Sep 15, 2022
4705830
Create text-area-counter.png
aagonzales Sep 15, 2022
d5d629e
fixed-merge-conflict
aagonzales Sep 15, 2022
2c9a2be
image-update
aagonzales Sep 15, 2022
1c49e47
Create text-input-states.png
aagonzales Sep 15, 2022
a6bf633
chore(release): update carbon deps (#3159)
carbon-automation[bot] Sep 16, 2022
6b5e381
feat(website): add accessibility link, update common js (#3155)
tay1orjones Sep 16, 2022
2cf9d87
fix: mdx formatting inside component demo (#3160)
alisonjoseph Sep 16, 2022
835651e
docs: contained-list (#3145)
laurenmrice Sep 16, 2022
00c3c22
docs(grid): updated with API docs and example (#3136)
sstrubberg Sep 16, 2022
75d038d
fix(typography): fix controls bug (#3130)
aledavila Sep 19, 2022
e0059b2
Updated outdated links to storybook (#3164)
aagonzales Sep 20, 2022
94d7e1e
Change tab text of typography from "Styling strategies" to "Style str…
abhilipsasahoo03 Sep 20, 2022
1821a88
Update accessibility.mdx (#3143)
mbgower Sep 21, 2022
7ea3965
Correct verbiage on ibm commerce platform page (#3157)
francinelucca Sep 21, 2022
34f3b22
Compressed Images (#3162)
github-actions[bot] Sep 23, 2022
85db97a
docs(Theme): update Theme docs with new guidance/usage (#2998)
dakahn Sep 26, 2022
cf56acd
docs(team): removed team page and removed photos from partners (#3170)
sstrubberg Sep 26, 2022
0cc48b8
fix(content): broken links (#3167)
alisonjoseph Sep 27, 2022
62338df
docs(meetups): added office hours) (#3165)
sstrubberg Sep 27, 2022
b3416d2
update dataviz meeting time (#3177)
theiliad Sep 28, 2022
8b0bafa
chore(release): update carbon deps (#3178)
carbon-automation[bot] Sep 30, 2022
30d826f
docs: figma v11 release content updates (#3176)
laurenmrice Sep 30, 2022
d6d2b50
Compressed Images (#3184)
github-actions[bot] Oct 3, 2022
5d881e4
docs(Accordion): match Accordion to ken to code (#3180)
tw15egan Oct 4, 2022
f2ff211
Ecosystem updates (#3150)
mzuliani-ibm Oct 4, 2022
a3326c0
feat: add crosslink banner to carbon platform on homepage (#3185)
alisonjoseph Oct 5, 2022
4f6b0ab
docs: add flush accordion content (#3168)
laurenmrice Oct 5, 2022
fee6747
docs(progress-bar): add component live demo (#3182)
janhassel Oct 6, 2022
e280be0
docs(svelte): update resources and intro (#3183)
metonym Oct 7, 2022
b6ebe8e
Compressed Images (#3189)
github-actions[bot] Oct 11, 2022
5a8054e
docs(contact-us): minor updates to contact us page (#3186)
jeffchew Oct 12, 2022
e9bb1ba
chore(release): update carbon deps (#3194)
carbon-automation[bot] Oct 12, 2022
8591c2d
fix(tutorial): remove optimize sass from step 5 (#3192)
tay1orjones Oct 13, 2022
a06adb9
refactor(tutorial): remove badging (#3197)
tay1orjones Oct 13, 2022
9cffd78
chore(release): update carbon deps (#3200)
carbon-automation[bot] Oct 13, 2022
c73744d
fix(Icons): fix broken link (#3196)
tw15egan Oct 14, 2022
9451603
ci(actions): automatically open content sync issues on platform (#3193)
tay1orjones Oct 17, 2022
68a729e
fix(switcher): fix app switcher bugs (#3208)
tw15egan Oct 18, 2022
cec4859
Update accessibility.mdx (#3187)
mbgower Oct 18, 2022
72a86fd
Compressed Images (#3217)
github-actions[bot] Oct 24, 2022
dffcd64
ci(content-sync): provide token proper permissions (#3216)
tay1orjones Oct 24, 2022
fb72b82
fix: hyphens to en dashes (#3215)
mattrosno Oct 25, 2022
4798fd0
Fix GitHub capitalization (#3225)
coliff Oct 27, 2022
c87fa23
fix: broken link on tag style tab (#3219)
laurenmrice Oct 27, 2022
78cc314
chore(release): update carbon deps (#3220)
carbon-automation[bot] Oct 27, 2022
cd7d6c2
fix: broken link ui shell right panel (#3218)
laurenmrice Oct 27, 2022
c1bf547
chore(format): fix format error (#3227)
tw15egan Oct 28, 2022
1acfe16
chore(release): update carbon deps (#3226)
carbon-automation[bot] Oct 28, 2022
c31cd7e
content for accessibility tab (#3212)
mbgower Oct 28, 2022
a21e562
[docs] Update type token weights (#3221)
aagonzales Oct 28, 2022
f0ecbec
Compressed Images (#3230)
github-actions[bot] Nov 1, 2022
25cbd7d
docs(FluidInputs): DatePicker
aagonzales Nov 1, 2022
7003646
Merge branch 'aagonzales-fluid-date-pickers' into fluid-inputs
aagonzales Nov 1, 2022
1692f45
pagination accessibility update (#3224)
mbgower Nov 2, 2022
3192186
accessibilty content for right panel (#3223)
mbgower Nov 2, 2022
a1a45b6
chore(release): update carbon deps (#3234)
carbon-automation[bot] Nov 2, 2022
3beded9
fix(analytics): set SPA to false (#3242)
tay1orjones Nov 3, 2022
35f176b
docs(fluid-input): datepicker v2
aagonzales Nov 3, 2022
fc4ed58
added-missing-images
aagonzales Nov 3, 2022
a494e8b
Update date-picker-style-7.png
aagonzales Nov 4, 2022
5834a06
Add files via upload
alisonjoseph Nov 4, 2022
d167f44
Merge pull request #31 from aagonzales/main
alisonjoseph Nov 4, 2022
fa32b0d
Revert "merge"
alisonjoseph Nov 4, 2022
ed8ca02
Merge pull request #32 from aagonzales/revert-31-main
alisonjoseph Nov 4, 2022
49ed7b6
Merge branch 'fluid-inputs' into fluid-datepicker-v2
alisonjoseph Nov 4, 2022
d54cb82
Merge pull request #33 from aagonzales/fluid-merge-conflicts
alisonjoseph Nov 4, 2022
08e7e89
Revert "Merge branch 'fluid-inputs' into fluid-datepicker-v2"
alisonjoseph Nov 4, 2022
555364d
Merge pull request #34 from aagonzales/revert-33-fluid-merge-conflicts
alisonjoseph Nov 4, 2022
ac0870a
Merge branch 'fluid-inputs' into fluid-datepicker-v2
alisonjoseph Nov 4, 2022
9fa374a
Apply suggestions from design review
aagonzales Nov 14, 2022
bb0582e
updated-images-add-time
aagonzales Nov 14, 2022
74a1b75
added-timePicker
aagonzales Nov 16, 2022
15d0aa4
Update style.mdx
aagonzales Nov 16, 2022
fa46193
design-review-pt2
aagonzales Nov 22, 2022
35ee583
Update date-picker-style-4-fluid.png
aagonzales Nov 23, 2022
628bec4
Update style.mdx
alisonjoseph Nov 28, 2022
180bebd
Update package.json
alisonjoseph Nov 28, 2022
4162742
Merge branch 'fluid-inputs' into fluid-datepicker-v2
aagonzales Nov 29, 2022
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/date-picker/images/date-picker-anatomy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/date-picker/images/date-picker-style-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/date-picker/images/date-picker-style-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/date-picker/images/date-picker-style-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/date-picker/images/time-picker-anatomy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/date-picker/images/time-picker-style-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
128 changes: 112 additions & 16 deletions src/pages/components/date-picker/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,21 @@ tabs: ['Usage', 'Style', 'Code', 'Accessibility']
<Row>
<Column colLg={8}>

![Date picker input states](images/date-picker-style-7.png)
<Tabs>

<Tab label="Fixed">

![Fixed date picker input colors](images/date-picker-style-7.png)

</Tab>

<Tab label="Fluid">

![Fluid date picker input colors](images/date-picker-style-7-fluid.png)

</Tab>

</Tabs>

</Column>
</Row>
Expand Down Expand Up @@ -56,7 +70,21 @@ tabs: ['Usage', 'Style', 'Code', 'Accessibility']
<Row>
<Column colLg={12}>

![Date picker input states](images/date-picker-style-6.png)
<Tabs>

<Tab label="Fixed">

![Fixed date picker input states](images/date-picker-style-6.png)

</Tab>

<Tab label="Fluid">

![Fluid date picker input states](images/date-picker-style-6-fluid.png)

</Tab>

</Tabs>

</Column>
</Row>
Expand Down Expand Up @@ -119,6 +147,8 @@ any proper nouns capitalized, and no more than three words.

### Date inputs

#### Fixed input

The widths of the date inputs may vary based on the grid and layout.

| Element | Property | px / rem | Spacing token |
Expand All @@ -136,23 +166,31 @@ The widths of the date inputs may vary based on the grid and layout.

</div>

<Caption>Structure and spacing for date picker inputs | px / rem</Caption>
<Caption>Structure and spacing for fixed date picker inputs | px / rem</Caption>

### Sizes
#### Fluid input

| Element | Size | Height px / rem |
| ------- | ----------- | --------------- |
| Field | Small (sm) | 32 / 2 |
| | Medium (md) | 40 / 2.5 |
| | Large (lg) | 48 / 3 |
The widths of the date inputs may vary based on the grid and layout.

| Element | Property | px / rem | Spacing token |
| ------------- | --------------------------- | ----------- | ------------- |
| Label | padding-bottom | 4 / 0.25 | `$spacing-02` |
| Field | height | 64 / 4 | `$spacing-10` |
| | padding-left, padding-right | 16 / 1 | `$spacing-05` |
| | padding-top, padding-bottom | 13 / 0.8125 | – |
| | border-bottom | 1px | – |
| Calendar icon | height, width | 16 / 1 | – |
| | padding-left | 8 / 0.5 | `$spacing-03` |
| Focus | border | 2px | – |
| Error | border | 2px | – |

<div className="image--fixed">

![Sizes for simple and single date calendar sizes](images/date-picker-style-size.png)
![Structure for date picker inputs](images/date-picker-style-4-fluid.png)

</div>

<Caption>Sizes for simple and single date calendar sizes | px / rem</Caption>
<Caption>Structure and spacing for fluid date picker inputs | px / rem</Caption>

### Calendar menu

Expand Down Expand Up @@ -183,15 +221,19 @@ The widths of the date inputs may vary based on the grid and layout.

### Time picker

There are two types of time pickers; a 12-hour and 24-hour time picker. The
12-hour Time Picker is accompanied by a time period (am/pm) input, while the
24-hour clock is not. Refer to [select](/components/select/code) for inline
select styling.
The time picker is a combination of a
[text input](/components/text-input/style#structure) and
[select](/components/select/style#structure) component. Refer to each component
page for further details.

#### Fixed input

The widths of the time picker may vary based on the grid and layout.

| Element | Property | px / rem | Spacing token |
| ------- | --------------------------- | -------- | ------------- |
| Label | padding-bottom | 8 / 0.5 | `$spacing-03` |
| Field | height | 40 / 2.5 | - |
| Field | height | 40 / 2.5 | |
| | padding-right, padding-left | 16 / 1 | `$spacing-05` |
| Select | padding-right, padding-left | 16 / 1 | `$spacing-05` |

Expand All @@ -202,3 +244,57 @@ select styling.
</div>

<Caption>Structure and spacing for a time picker | px / rem</Caption>

#### Fluid input

The width of each component in the fluid time picker is a percentage of the
group. Time picker's total width will vary based on the grid and layout

| Element | Property | px / rem | Spacing token |
| --------------- | --------------------------- | ---------- | ------------- |
| Label | padding-bottom | 4 / 0.25 | `$spacing-02` |
| Field | height | 64 / 4 | – |
| | padding-right, padding-left | 16 / 1 | `$spacing-05` |
| Divider | width | 1px | – |
| Time input | width | 25% or 50% | – |
| Clock select | width | 25% or 50% | – |
| Timezone select | width | 50% | – |

<div className="image--fixed">

![Structure for a time picker](images/time-picker-style-1-fluid-a.png)

</div>

<Caption>Structure and spacing for a time picker | px / rem</Caption>

<div className="image--fixed">

![Structure for a time picker](images/time-picker-style-1-fluid-b.png)

</div>

<Caption>
The width of each component in the fluid time picker is a percentage of the
group.
</Caption>

## Sizes

### Fixed inputs

| Element | Size | Height px / rem |
| ------- | ----------- | --------------- |
| Field | Small (sm) | 32 / 2 |
| | Medium (md) | 40 / 2.5 |
| | Large (lg) | 48 / 3 |

<div className="image--fixed">

![Sizes for simple and single date calendar sizes](images/date-picker-style-size.png)

</div>

<Caption>Sizes for simple and single date calendar sizes | px / rem</Caption>


Loading