-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unused helper * Fix wrong Icon reference * Re-enable Storybook on IE11 * Update style mixins for Button * Add Label component * Speed-up Icon mouting * Condense helpers * Remove labels from CheckBox and RadioButton * Avoid runtime string transformations * Update theming for CheckBox, RadioButton, and ToggleSwitch * Add Hint component; update Field, ButtonGroup, and FieldGroup * Remove obsolete mixins * Remove styled-components from the final bundle * Use adimensional lengths on tokens * Add some typographic components * Update storybook helpers * Update dependencies * Autoprefix standard classes * Rename typography module as textStyles * Rename actions module as buttonColors * Drop CSS variables again * Remove some subclasses * Add missing diplayName * Reenable CSS vars to base theme variables * Reattach theme variables to components
- Loading branch information
Showing
369 changed files
with
2,485 additions
and
1,736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-89 Bytes
(99%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Button_small.png
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
BIN
-47 Bytes
(99%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Button_with_icon.png
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
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_CheckBox_checked.png
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
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_CheckBox_disabled.png
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
BIN
+0 Bytes
(100%)
...ges/fuselage/.loki/reference/chrome_iphone7_Elements_CheckBox_indeterminate.png
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
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_CheckBox_unchecked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-9.04 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_CheckBox_with_label.png
Binary file not shown.
Binary file modified
BIN
+4.68 KB
(160%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Field_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-10.1 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Field_with_help_text.png
Binary file not shown.
Binary file removed
BIN
-10.6 KB
...s/fuselage/.loki/reference/chrome_iphone7_Elements_Field_with_label_errored.png
Binary file not shown.
Binary file added
BIN
+11.1 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Headline_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+9.8 KB
...ce/chrome_iphone7_Elements_Icon_quote.png → .../chrome_iphone7_Elements_Hint_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.79 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Hint_hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.79 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Hint_invisible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-9.94 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_addReaction.png
Binary file not shown.
Binary file removed
BIN
-7.75 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_arrowDown.png
Binary file not shown.
Binary file removed
BIN
-10.6 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_at.png
Binary file not shown.
Binary file removed
BIN
-9.39 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_back.png
Binary file not shown.
Binary file removed
BIN
-9.55 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_ban.png
Binary file not shown.
Binary file removed
BIN
-8.93 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_bell.png
Binary file not shown.
Binary file removed
BIN
-10.2 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_bellOff.png
Binary file not shown.
Binary file removed
BIN
-7.94 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_bold.png
Binary file not shown.
Binary file removed
BIN
-7.96 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_book.png
Binary file not shown.
Binary file removed
BIN
-7.84 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_calendar.png
Binary file not shown.
Binary file removed
BIN
-7.88 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_card.png
Binary file not shown.
Binary file removed
BIN
-10 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_chat.png
Diff not rendered.
Binary file removed
BIN
-7.61 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_check.png
Diff not rendered.
Binary file removed
BIN
-10.4 KB
...ages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_checkmarkCircled.png
Diff not rendered.
Binary file removed
BIN
-8.44 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_circle.png
Diff not rendered.
Binary file removed
BIN
-10.1 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_circleCross.png
Diff not rendered.
Binary file removed
BIN
-10.1 KB
...ages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_circledArrowDown.png
Diff not rendered.
Binary file removed
BIN
-11.3 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_clip.png
Diff not rendered.
Binary file removed
BIN
-7.89 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_clipboard.png
Diff not rendered.
Binary file removed
BIN
-9.93 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_clock.png
Diff not rendered.
Binary file removed
BIN
-9.61 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_cloudPlus.png
Diff not rendered.
Binary file removed
BIN
-8.59 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_code.png
Diff not rendered.
Binary file removed
BIN
-11.4 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_cog.png
Diff not rendered.
Binary file removed
BIN
-7.92 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_computer.png
Diff not rendered.
Binary file removed
BIN
-8.2 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_copy.png
Diff not rendered.
Binary file removed
BIN
-7.61 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_cross.png
Diff not rendered.
Binary file removed
BIN
-9.8 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_cube.png
Diff not rendered.
Binary file removed
BIN
-9.72 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_customize.png
Diff not rendered.
Binary file removed
BIN
-10.3 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_discover.png
Diff not rendered.
Binary file removed
BIN
-10 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_discussion.png
Diff not rendered.
Binary file removed
BIN
-9.75 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_download.png
Diff not rendered.
Binary file removed
BIN
-8.45 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_edit.png
Diff not rendered.
Binary file removed
BIN
-10.4 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_emoji.png
Diff not rendered.
Binary file removed
BIN
-9.91 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_eraser.png
Diff not rendered.
Binary file removed
BIN
-10 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_eye.png
Diff not rendered.
Binary file removed
BIN
-11.1 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_eyeOff.png
Diff not rendered.
Binary file removed
BIN
-7.58 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_facebook.png
Diff not rendered.
Binary file removed
BIN
-7.59 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_fileDocument.png
Diff not rendered.
Binary file removed
BIN
-11.3 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_fileGeneric.png
Diff not rendered.
Binary file removed
BIN
-8.76 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_fileGoogleDrive.png
Diff not rendered.
Binary file removed
BIN
-8.71 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_fileKeynote.png
Diff not rendered.
Binary file removed
BIN
-9.17 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_filePdf.png
Diff not rendered.
Binary file removed
BIN
-7.47 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_fileSheets.png
Diff not rendered.
Binary file removed
BIN
-8.41 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_filesAudio.png
Diff not rendered.
Binary file removed
BIN
-7.8 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_filesVideo.png
Diff not rendered.
Binary file removed
BIN
-7.66 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_filesZip.png
Diff not rendered.
Binary file removed
BIN
-7.89 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_flag.png
Diff not rendered.
Binary file removed
BIN
-9.95 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_github.png
Diff not rendered.
Binary file removed
BIN
-9.71 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_gitlab.png
Diff not rendered.
Binary file removed
BIN
-9.34 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_google.png
Diff not rendered.
Binary file removed
BIN
-9.44 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_handPointer.png
Diff not rendered.
Binary file removed
BIN
-7.87 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_hashtag.png
Diff not rendered.
Binary file removed
BIN
-11.4 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_help.png
Diff not rendered.
Binary file removed
BIN
-9.5 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_hubot.png
Diff not rendered.
Binary file removed
BIN
-7.98 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_import.png
Diff not rendered.
Binary file removed
BIN
-7.14 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_italic.png
Diff not rendered.
Binary file removed
BIN
-8.83 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_jump.png
Diff not rendered.
Binary file removed
BIN
-10.3 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_key.png
Diff not rendered.
Binary file removed
BIN
-8.36 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_keyboard.png
Diff not rendered.
Binary file removed
BIN
-9.78 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_language.png
Diff not rendered.
Binary file removed
BIN
-7.69 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_list.png
Diff not rendered.
Binary file removed
BIN
-8.63 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_listAlt.png
Diff not rendered.
Binary file removed
BIN
-9.58 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_livechat.png
Diff not rendered.
Binary file removed
BIN
-8.46 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_loading.png
Diff not rendered.
Binary file removed
BIN
-7.96 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_lock.png
Diff not rendered.
Binary file removed
BIN
-9.5 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_magnifier.png
Diff not rendered.
Binary file removed
BIN
-10 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_mapPin.png
Diff not rendered.
Binary file removed
BIN
-7.38 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_menu.png
Diff not rendered.
Binary file removed
BIN
-9.71 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_message.png
Diff not rendered.
Binary file removed
BIN
-9.23 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_mic.png
Diff not rendered.
Binary file removed
BIN
-7.54 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_mobile.png
Diff not rendered.
Binary file removed
BIN
-9.52 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_modalWarning.png
Diff not rendered.
Binary file removed
BIN
-8.99 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_multiline.png
Diff not rendered.
Binary file removed
BIN
-10.2 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_mute.png
Diff not rendered.
Binary file removed
BIN
-8.75 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_pause.png
Diff not rendered.
Binary file removed
BIN
-9.55 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_permalink.png
Diff not rendered.
Binary file removed
BIN
-9.17 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_pin.png
Diff not rendered.
Binary file removed
BIN
-9 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_play.png
Diff not rendered.
Binary file removed
BIN
-8.67 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_playSolid.png
Diff not rendered.
Binary file removed
BIN
-7.25 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_plus.png
Diff not rendered.
Binary file removed
BIN
-11.1 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_podcast.png
Diff not rendered.
Binary file removed
BIN
-8.08 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_post.png
Diff not rendered.
Binary file removed
BIN
-11 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_queue.png
Diff not rendered.
Binary file removed
BIN
-9.99 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_reload.png
Diff not rendered.
Binary file removed
BIN
-13.9 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_reply.png
Diff not rendered.
Binary file removed
BIN
-9.39 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_replyDirectly.png
Diff not rendered.
Binary file removed
BIN
-9.52 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_report.png
Diff not rendered.
Binary file removed
BIN
-12.2 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_send.png
Diff not rendered.
Binary file removed
BIN
-10.1 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_sendActive.png
Diff not rendered.
Binary file removed
BIN
-7.98 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_share.png
Diff not rendered.
Binary file removed
BIN
-9.61 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_shield.png
Diff not rendered.
Binary file removed
BIN
-10.3 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_shieldAlt.png
Diff not rendered.
Binary file removed
BIN
-10.3 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_shieldCheck.png
Diff not rendered.
Binary file removed
BIN
-9.01 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_signOut.png
Diff not rendered.
Binary file removed
BIN
-8.88 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_sort.png
Diff not rendered.
Binary file removed
BIN
-7.95 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_sortAmountDown.png
Diff not rendered.
Binary file removed
BIN
-9.49 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_star.png
Diff not rendered.
Binary file removed
BIN
-8.5 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_starFilled.png
Diff not rendered.
Binary file removed
BIN
-8.31 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_strike.png
Diff not rendered.
Binary file removed
BIN
-10.9 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_team.png
Diff not rendered.
Binary file removed
BIN
-8.31 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_thList.png
Diff not rendered.
Binary file removed
BIN
-7.87 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_trash.png
Diff not rendered.
Binary file removed
BIN
-9.03 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_twitter.png
Diff not rendered.
Binary file removed
BIN
-10 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_upload.png
Diff not rendered.
Binary file removed
BIN
-9.7 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_user.png
Diff not rendered.
Binary file removed
BIN
-10.3 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_userPlus.png
Diff not rendered.
Binary file removed
BIN
-9.5 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_userRounded.png
Diff not rendered.
Binary file removed
BIN
-8.12 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_video.png
Diff not rendered.
Binary file removed
BIN
-9.08 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_videoOff.png
Diff not rendered.
Binary file removed
BIN
-8.98 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_volume.png
Diff not rendered.
Binary file removed
BIN
-8.61 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_volumeDisable.png
Diff not rendered.
Binary file removed
BIN
-10.4 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_volumeMute.png
Diff not rendered.
Binary file removed
BIN
-9.52 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Icon_warning.png
Diff not rendered.
File renamed without changes
Binary file renamed
BIN
+7.55 KB
...e/chrome_iphone7_Elements_Icon_folder.png → ...chrome_iphone7_Elements_Label_default.png
Oops, something went wrong.
Binary file added
BIN
+6.79 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Label_hidden.png
Oops, something went wrong.
Binary file added
BIN
+6.79 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Label_invisible.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
packages/fuselage/.loki/reference/chrome_iphone7_Elements_Label_nested.png
Oops, something went wrong.
Binary file renamed
BIN
+8.95 KB
...ome_iphone7_Elements_Icon_editRounded.png → ...hrome_iphone7_Elements_Label_required.png
Oops, something went wrong.
File renamed without changes
Binary file renamed
BIN
+8.11 KB
...chrome_iphone7_Elements_Icon_linkedin.png → ...ents_Label_with_children_end_position.png
Oops, something went wrong.
Binary file renamed
BIN
+8.64 KB
...nce/chrome_iphone7_Elements_Icon_mail.png → ...ts_Label_with_children_start_position.png
Oops, something went wrong.
Binary file renamed
BIN
+9.87 KB
...ome_iphone7_Elements_Icon_infoCircled.png → ...ents_Label_with_children_top_position.png
Oops, something went wrong.
Binary file renamed
BIN
+10.2 KB
...e/chrome_iphone7_Elements_Icon_thread.png → ...ome_iphone7_Elements_Label_with_error.png
Oops, something went wrong.
Binary file renamed
BIN
+9.81 KB
...e7_Elements_Field_with_label_required.png → ...me_iphone7_Elements_Paragraph_default.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_RadioButton_checked.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_RadioButton_default.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_RadioButton_disabled.png
Oops, something went wrong.
Binary file renamed
BIN
+10.1 KB
...hone7_Elements_RadioButton_with_label.png → ...ome_iphone7_Elements_Subtitle_default.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_ToggleSwitch_checked.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_iphone7_Elements_ToggleSwitch_default.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ages/fuselage/.loki/reference/chrome_iphone7_Elements_ToggleSwitch_disabled.png
Oops, something went wrong.
Binary file modified
BIN
+83 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_Button_small.png
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_Button_with_icon.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_CheckBox_checked.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_CheckBox_disabled.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ages/fuselage/.loki/reference/chrome_laptop_Elements_CheckBox_indeterminate.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_CheckBox_unchecked.png
Oops, something went wrong.
Binary file removed
BIN
-6.73 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_CheckBox_with_label.png
Diff not rendered.
Binary file modified
BIN
+1.91 KB
(130%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_Field_default.png
Oops, something went wrong.
Binary file removed
BIN
-7.15 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Field_with_help_text.png
Diff not rendered.
Binary file removed
BIN
-7.3 KB
...es/fuselage/.loki/reference/chrome_laptop_Elements_Field_with_label_errored.png
Diff not rendered.
Binary file removed
BIN
-6.97 KB
...s/fuselage/.loki/reference/chrome_laptop_Elements_Field_with_label_required.png
Diff not rendered.
Binary file renamed
BIN
+7.83 KB
...ence/chrome_laptop_Elements_Icon_team.png → ...rome_laptop_Elements_Headline_default.png
Oops, something went wrong.
Binary file renamed
BIN
+5.96 KB
...ce/chrome_laptop_Elements_Icon_italic.png → ...e/chrome_laptop_Elements_Hint_default.png
Oops, something went wrong.
Binary file added
BIN
+5.75 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Hint_hidden.png
Oops, something went wrong.
Binary file added
BIN
+5.75 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Hint_invisible.png
Oops, something went wrong.
Binary file removed
BIN
-7.34 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_addReaction.png
Diff not rendered.
Binary file removed
BIN
-6.19 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_arrowDown.png
Diff not rendered.
Binary file removed
BIN
-7.61 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_at.png
Diff not rendered.
Binary file removed
BIN
-7.06 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_back.png
Diff not rendered.
Binary file removed
BIN
-7.15 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_ban.png
Diff not rendered.
Binary file removed
BIN
-6.81 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_bell.png
Diff not rendered.
Binary file removed
BIN
-7.37 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_bellOff.png
Diff not rendered.
Binary file removed
BIN
-6.33 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_bold.png
Diff not rendered.
Binary file removed
BIN
-6.54 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_book.png
Diff not rendered.
Binary file removed
BIN
-6.46 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_calendar.png
Diff not rendered.
Binary file removed
BIN
-6.38 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_card.png
Diff not rendered.
Binary file removed
BIN
-7.4 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_chat.png
Diff not rendered.
Binary file removed
BIN
-6.19 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_check.png
Diff not rendered.
Binary file removed
BIN
-7.56 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_checkmarkCircled.png
Diff not rendered.
Binary file removed
BIN
-6.59 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_circle.png
Diff not rendered.
Binary file removed
BIN
-7.5 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_circleCross.png
Diff not rendered.
Binary file removed
BIN
-7.52 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_circledArrowDown.png
Diff not rendered.
Binary file removed
BIN
-7.99 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_clip.png
Diff not rendered.
Binary file removed
BIN
-7.36 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_clock.png
Diff not rendered.
Binary file removed
BIN
-7.17 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_cloudPlus.png
Diff not rendered.
Binary file removed
BIN
-6.73 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_code.png
Diff not rendered.
Binary file removed
BIN
-7.98 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_cog.png
Diff not rendered.
Binary file removed
BIN
-6.37 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_computer.png
Diff not rendered.
Binary file removed
BIN
-6.58 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_copy.png
Diff not rendered.
Binary file removed
BIN
-6.35 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_cross.png
Diff not rendered.
Binary file removed
BIN
-7.29 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_cube.png
Diff not rendered.
Binary file removed
BIN
-7.19 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_customize.png
Diff not rendered.
Binary file removed
BIN
-7.54 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_discover.png
Diff not rendered.
Binary file removed
BIN
-7.4 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_discussion.png
Diff not rendered.
Binary file removed
BIN
-7.28 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_download.png
Diff not rendered.
Binary file removed
BIN
-6.73 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_edit.png
Diff not rendered.
Binary file removed
BIN
-6.96 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_editRounded.png
Diff not rendered.
Binary file removed
BIN
-7.57 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_emoji.png
Diff not rendered.
Binary file removed
BIN
-7.19 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_eraser.png
Diff not rendered.
Binary file removed
BIN
-7.24 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_eye.png
Diff not rendered.
Binary file removed
BIN
-7.82 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_eyeOff.png
Diff not rendered.
Binary file removed
BIN
-6.23 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_facebook.png
Diff not rendered.
Binary file removed
BIN
-8.11 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_fileGeneric.png
Diff not rendered.
Binary file removed
BIN
-6.76 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_fileGoogleDrive.png
Diff not rendered.
Binary file removed
BIN
-6.77 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_fileKeynote.png
Diff not rendered.
Binary file removed
BIN
-6.92 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_filePdf.png
Diff not rendered.
Binary file removed
BIN
-6.17 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_fileSheets.png
Diff not rendered.
Binary file removed
BIN
-6.55 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_filesAudio.png
Diff not rendered.
Binary file removed
BIN
-6.4 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_filesZip.png
Diff not rendered.
Binary file removed
BIN
-6.34 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_flag.png
Diff not rendered.
Binary file removed
BIN
-7.3 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_github.png
Diff not rendered.
Binary file removed
BIN
-7.11 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_gitlab.png
Diff not rendered.
Binary file removed
BIN
-7.03 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_google.png
Diff not rendered.
Binary file removed
BIN
-7.07 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_handPointer.png
Diff not rendered.
Binary file removed
BIN
-6.41 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_hashtag.png
Diff not rendered.
Binary file removed
BIN
-8.11 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_help.png
Diff not rendered.
Binary file removed
BIN
-7.14 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_hubot.png
Diff not rendered.
Binary file removed
BIN
-6.46 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_import.png
Diff not rendered.
Binary file removed
BIN
-7.33 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_infoCircled.png
Diff not rendered.
Binary file removed
BIN
-6.8 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_jump.png
Diff not rendered.
Binary file removed
BIN
-7.49 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_key.png
Diff not rendered.
Binary file removed
BIN
-6.74 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_keyboard.png
Diff not rendered.
Binary file removed
BIN
-7.3 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_language.png
Diff not rendered.
Binary file removed
BIN
-6.48 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_linkedin.png
Diff not rendered.
Binary file removed
BIN
-6.17 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_list.png
Diff not rendered.
Binary file removed
BIN
-6.62 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_listAlt.png
Diff not rendered.
Binary file removed
BIN
-7.09 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_livechat.png
Diff not rendered.
Binary file removed
BIN
-6.65 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_loading.png
Diff not rendered.
Binary file removed
BIN
-6.4 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_lock.png
Diff not rendered.
Binary file removed
BIN
-7.17 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_magnifier.png
Diff not rendered.
Binary file removed
BIN
-6.7 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_mail.png
Diff not rendered.
Binary file removed
BIN
-7.32 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_mapPin.png
Diff not rendered.
Binary file removed
BIN
-6.09 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_menu.png
Diff not rendered.
Binary file removed
BIN
-7.14 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_message.png
Diff not rendered.
Binary file removed
BIN
-6.99 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_mic.png
Diff not rendered.
Binary file removed
BIN
-6.17 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_mobile.png
Diff not rendered.
Binary file removed
BIN
-7.21 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_modalWarning.png
Diff not rendered.
Binary file removed
BIN
-6.85 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_multiline.png
Diff not rendered.
Binary file removed
BIN
-7.57 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_mute.png
Diff not rendered.
Binary file removed
BIN
-6.74 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_pause.png
Diff not rendered.
Binary file removed
BIN
-7.14 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_permalink.png
Diff not rendered.
Binary file removed
BIN
-6.88 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_play.png
Diff not rendered.
Binary file removed
BIN
-6.65 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_playSolid.png
Diff not rendered.
Binary file removed
BIN
-6.04 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_plus.png
Diff not rendered.
Binary file removed
BIN
-8.01 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_podcast.png
Diff not rendered.
Binary file removed
BIN
-6.43 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_post.png
Diff not rendered.
Binary file removed
BIN
-7.35 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_quote.png
Diff not rendered.
Binary file removed
BIN
-7.43 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_reload.png
Diff not rendered.
Binary file removed
BIN
-9.54 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_reply.png
Diff not rendered.
Binary file removed
BIN
-7.06 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_replyDirectly.png
Diff not rendered.
Binary file removed
BIN
-7.21 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_report.png
Diff not rendered.
Binary file removed
BIN
-8.54 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_send.png
Diff not rendered.
Binary file removed
BIN
-7.59 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_sendActive.png
Diff not rendered.
Binary file removed
BIN
-6.46 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_share.png
Diff not rendered.
Binary file removed
BIN
-7.2 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_shield.png
Diff not rendered.
Binary file removed
BIN
-7.56 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_shieldAlt.png
Diff not rendered.
Binary file removed
BIN
-7.59 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_shieldCheck.png
Diff not rendered.
Binary file removed
BIN
-6.8 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_sort.png
Diff not rendered.
Binary file removed
BIN
-6.37 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_sortAmountDown.png
Diff not rendered.
Binary file removed
BIN
-7.18 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_star.png
Diff not rendered.
Binary file removed
BIN
-6.65 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_starFilled.png
Diff not rendered.
Binary file removed
BIN
-6.58 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_strike.png
Diff not rendered.
Binary file removed
BIN
-6.56 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_thList.png
Diff not rendered.
Binary file removed
BIN
-7.46 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_thread.png
Diff not rendered.
Binary file removed
BIN
-6.49 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_trash.png
Diff not rendered.
Binary file removed
BIN
-7.48 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_upload.png
Diff not rendered.
Binary file removed
BIN
-7.19 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_user.png
Diff not rendered.
Binary file removed
BIN
-7.5 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_userPlus.png
Diff not rendered.
Binary file removed
BIN
-7.06 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_userRounded.png
Diff not rendered.
Binary file removed
BIN
-6.46 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_video.png
Diff not rendered.
Binary file removed
BIN
-6.94 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_videoOff.png
Diff not rendered.
Binary file removed
BIN
-6.87 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_volume.png
Diff not rendered.
Binary file removed
BIN
-6.73 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_volumeDisable.png
Diff not rendered.
Binary file removed
BIN
-7.51 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_volumeMute.png
Diff not rendered.
Binary file removed
BIN
-7.21 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Icon_warning.png
Diff not rendered.
File renamed without changes
Binary file renamed
BIN
+6.33 KB
...chrome_laptop_Elements_Icon_clipboard.png → .../chrome_laptop_Elements_Label_default.png
Oops, something went wrong.
Binary file added
BIN
+5.75 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Label_hidden.png
Oops, something went wrong.
Binary file added
BIN
+5.75 KB
packages/fuselage/.loki/reference/chrome_laptop_Elements_Label_invisible.png
Oops, something went wrong.
Binary file renamed
BIN
+7.81 KB
...nce/chrome_laptop_Elements_Icon_queue.png → ...e/chrome_laptop_Elements_Label_nested.png
Oops, something went wrong.
Binary file renamed
BIN
+6.81 KB
...e/chrome_laptop_Elements_Icon_twitter.png → ...chrome_laptop_Elements_Label_required.png
Oops, something went wrong.
File renamed without changes
Binary file renamed
BIN
+6.17 KB
...ome_laptop_Elements_Icon_fileDocument.png → ...ents_Label_with_children_end_position.png
Oops, something went wrong.
Binary file renamed
BIN
+6.95 KB
...e/chrome_laptop_Elements_Icon_signOut.png → ...ts_Label_with_children_start_position.png
Oops, something went wrong.
Binary file renamed
BIN
+7.09 KB
...rence/chrome_laptop_Elements_Icon_pin.png → ...ents_Label_with_children_top_position.png
Oops, something went wrong.
Binary file renamed
BIN
+6.29 KB
...hrome_laptop_Elements_Icon_filesVideo.png → ...rome_laptop_Elements_Label_with_error.png
Oops, something went wrong.
Binary file renamed
BIN
+7.26 KB
...aptop_Elements_RadioButton_with_label.png → ...ome_laptop_Elements_Paragraph_default.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_RadioButton_checked.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_RadioButton_default.png
Oops, something went wrong.
Binary file modified
BIN
-10 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_RadioButton_disabled.png
Oops, something went wrong.
Binary file renamed
BIN
+6.15 KB
...ce/chrome_laptop_Elements_Icon_folder.png → ...rome_laptop_Elements_Subtitle_default.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_ToggleSwitch_checked.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_ToggleSwitch_default.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
packages/fuselage/.loki/reference/chrome_laptop_Elements_ToggleSwitch_disabled.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,181 +1,100 @@ | ||
import styled, { css } from 'styled-components'; | ||
|
||
import { rebuildClassName } from '../../helpers/rebuildClassName'; | ||
import { disableable } from '../../mixins/disableable'; | ||
import { reset } from '../../mixins/reset'; | ||
import { unselectable } from '../../mixins/unselectable'; | ||
import { withText } from '../../mixins/withText'; | ||
import { extendClassName } from '../../helpers'; | ||
import { | ||
withText, | ||
normalized, | ||
clickable, | ||
withTruncatedText, | ||
withBorder, | ||
withButtonActionColors, | ||
} from '../../mixins'; | ||
import { Icon } from '../Icon'; | ||
import theme from './theme'; | ||
|
||
|
||
const sizeVariant = ({ | ||
height, | ||
paddingVertical, | ||
paddingHorizontal, | ||
fontSize, | ||
lineHeight, | ||
iconSize, | ||
import { | ||
mediumSizeParameters, | ||
smallSizeParameters, | ||
basicColors, | ||
basicDangerColors, | ||
primaryColors, | ||
primaryDangerColors, | ||
ghostColors, | ||
ghostDangerColors, | ||
} from './theme'; | ||
|
||
|
||
const withSizeVariant = ({ | ||
border, | ||
paddingX, | ||
textStyle, | ||
iconSizeRatio, | ||
}) => css` | ||
height: ${ height }; | ||
padding: ${ paddingVertical } ${ paddingHorizontal }; | ||
${ withBorder(border) } | ||
padding: 0 calc(${ paddingX } - ${ border.width }); | ||
${ withText(textStyle) } | ||
font-size: ${ fontSize }; | ||
line-height: ${ lineHeight }; | ||
line-height: calc(2 * ${ textStyle.lineHeight } - 2 * ${ border.width }); | ||
& > ${ Icon } { | ||
font-size: ${ iconSize }; | ||
font-size: ${ iconSizeRatio * textStyle.lineHeight }; | ||
} | ||
${ ({ square }) => square && css` | ||
width: ${ height }; | ||
padding: ${ paddingVertical } 0; | ||
width: calc(2 * ${ textStyle.lineHeight }); | ||
padding: 0; | ||
& > .rcx-icon { | ||
font-size: ${ lineHeight }; | ||
& > ${ Icon } { | ||
font-size: ${ textStyle.lineHeight }; | ||
} | ||
` } | ||
`; | ||
|
||
const mediumSizeVariant = () => sizeVariant({ | ||
height: theme.height, | ||
paddingVertical: theme.paddingVertical, | ||
paddingHorizontal: theme.paddingHorizontal, | ||
fontSize: theme.fontSize, | ||
lineHeight: theme.lineHeight, | ||
iconSize: theme.iconSize, | ||
}); | ||
|
||
const smallSizeVariant = ({ small }) => small && sizeVariant({ | ||
height: theme.smallHeight, | ||
paddingVertical: theme.smallPaddingVertical, | ||
paddingHorizontal: theme.smallPaddingHorizontal, | ||
fontSize: theme.smallFontSize, | ||
lineHeight: theme.smallLineHeight, | ||
iconSize: theme.smallIconSize, | ||
}); | ||
|
||
const colorsVariant = ({ | ||
color, | ||
backgroundColor, | ||
hoverBackgroundColor, | ||
activeBackgroundColor, | ||
focusBackgroundColor, | ||
focusBorderColor, | ||
focusShadowColor, | ||
disabledColor, | ||
disabledBackgroundColor, | ||
}) => css` | ||
color: ${ color }; | ||
border-color: ${ backgroundColor }; | ||
background-color: ${ backgroundColor }; | ||
&:enabled:focus, | ||
&:enabled.focus { | ||
border-color: ${ focusBorderColor }; | ||
background-color: ${ focusBackgroundColor }; | ||
${ focusShadowColor && css`box-shadow: 0 0 0 6px ${ focusShadowColor };` } | ||
} | ||
&:enabled:hover, | ||
&:enabled.hover { | ||
border-color: ${ hoverBackgroundColor }; | ||
background-color: ${ hoverBackgroundColor }; | ||
box-shadow: none; | ||
} | ||
&:enabled:active, | ||
&:enabled.active { | ||
border-color: ${ activeBackgroundColor }; | ||
background-color: ${ activeBackgroundColor }; | ||
box-shadow: none; | ||
} | ||
&:disabled { | ||
color: ${ disabledColor }; | ||
border-color: ${ disabledBackgroundColor }; | ||
background-color: ${ disabledBackgroundColor }; | ||
} | ||
`; | ||
|
||
const basicColorsVariant = () => css` | ||
${ colorsVariant({ | ||
color: theme.basicColor, | ||
backgroundColor: theme.basicBackgroundColor, | ||
hoverBackgroundColor: theme.basicHoverBackgroundColor, | ||
activeBackgroundColor: theme.basicActiveBackgroundColor, | ||
focusBackgroundColor: theme.basicFocusBackgroundColor, | ||
focusBorderColor: theme.basicFocusBorderColor, | ||
focusShadowColor: theme.basicFocusShadowColor, | ||
disabledColor: theme.basicDisabledColor, | ||
disabledBackgroundColor: theme.basicDisabledBackgroundColor, | ||
}) } | ||
${ ({ danger }) => danger && colorsVariant({ | ||
color: theme.basicDangerColor, | ||
disabledColor: theme.basicDisabledDangerColor, | ||
}) } | ||
`; | ||
|
||
const primaryColorsVariant = ({ primary }) => primary && css` | ||
${ colorsVariant({ | ||
color: theme.primaryColor, | ||
backgroundColor: theme.primaryBackgroundColor, | ||
hoverBackgroundColor: theme.primaryHoverBackgroundColor, | ||
activeBackgroundColor: theme.primaryActiveBackgroundColor, | ||
focusBackgroundColor: theme.primaryFocusBackgroundColor, | ||
focusBorderColor: theme.primaryFocusBorderColor, | ||
focusShadowColor: theme.primaryFocusShadowColor, | ||
disabledColor: theme.primaryColor, | ||
disabledBackgroundColor: theme.primaryDisabledBackgroundColor, | ||
}) } | ||
${ ({ danger }) => danger && colorsVariant({ | ||
color: theme.primaryColor, | ||
backgroundColor: theme.primaryDangerBackgroundColor, | ||
hoverBackgroundColor: theme.primaryDangerHoverBackgroundColor, | ||
activeBackgroundColor: theme.primaryDangerActiveBackgroundColor, | ||
focusBackgroundColor: theme.primaryDangerFocusBackgroundColor, | ||
focusBorderColor: theme.primaryDangerFocusBorderColor, | ||
focusShadowColor: theme.primaryDangerFocusShadowColor, | ||
disabledColor: theme.primaryColor, | ||
disabledBackgroundColor: theme.primaryDangerDisabledBackgroundColor, | ||
}) } | ||
`; | ||
|
||
const ghostColorsVariant = ({ ghost }) => ghost && colorsVariant({ | ||
backgroundColor: 'transparent', | ||
}); | ||
|
||
export const Button = styled.button.attrs(rebuildClassName('rcx-button'))` | ||
${ reset } | ||
${ disableable } | ||
${ unselectable } | ||
${ withText } | ||
const mediumSized = withSizeVariant(mediumSizeParameters); | ||
const smallSized = withSizeVariant(smallSizeParameters); | ||
|
||
const basicColored = withButtonActionColors(basicColors); | ||
const basicDangerColored = withButtonActionColors(basicDangerColors); | ||
const primaryColored = withButtonActionColors(primaryColors); | ||
const primaryDangerColored = withButtonActionColors(primaryDangerColors); | ||
const ghostColored = withButtonActionColors(ghostColors); | ||
const ghostDangerColored = withButtonActionColors(ghostDangerColors); | ||
|
||
export const Button = styled.button.attrs(({ | ||
className, | ||
external, | ||
...props | ||
}) => ({ | ||
className: extendClassName('button', className, props), | ||
type: props.type || ((!props.as || props.as === 'button') && 'button') || undefined, | ||
rel: props.rel || (props.as === 'a' && external && 'noopener noreferrer') || undefined, | ||
target: props.target || (props.as === 'a' && external && '_blank') || undefined, | ||
}))` | ||
${ normalized } | ||
${ clickable } | ||
${ withTruncatedText } | ||
display: inline-block; | ||
cursor: pointer; | ||
border-width: ${ theme.borderWidth }; | ||
border-style: solid; | ||
border-radius: ${ theme.borderRadius }; | ||
text-align: center; | ||
vertical-align: middle; | ||
font-family: ${ theme.fontFamily }; | ||
font-weight: ${ theme.fontWeight }; | ||
appearance: none; | ||
& > ${ Icon } { | ||
vertical-align: middle; | ||
} | ||
${ mediumSizeVariant } | ||
${ smallSizeVariant } | ||
${ basicColorsVariant } | ||
${ primaryColorsVariant } | ||
${ ghostColorsVariant } | ||
${ ({ small }) => | ||
(small && smallSized) | ||
|| mediumSized } | ||
${ ({ danger, ghost, primary }) => | ||
(ghost && danger && ghostDangerColored) | ||
|| (ghost && ghostColored) | ||
|| (primary && danger && primaryDangerColored) | ||
|| (primary && primaryColored) | ||
|| (danger && basicDangerColored) | ||
|| basicColored } | ||
`; | ||
|
||
Button.displayName = 'Button'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.