From 2551191f30befd422b489486b192bb4916a4b090 Mon Sep 17 00:00:00 2001 From: ritz078 Date: Thu, 9 Aug 2018 22:51:01 +0530 Subject: [PATCH 1/4] feat(Button): created xs size and added success and alert types BREAKING CHANGE: `large` is replaced by `size="x-small" | "small" | "large"`. --- src/components/Button.tsx | 78 +++++++------- src/components/DropDown.tsx | 12 +-- src/components/Stepper.tsx | 4 +- src/components/styles/Button.styles.ts | 142 ++++++++++++++----------- src/components/typings/Button.ts | 15 ++- stories/button.story.tsx | 52 +++------ 6 files changed, 150 insertions(+), 153 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index c20aa2e3..696da0d2 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,65 +1,69 @@ import * as React from "react"; -import { cx } from "emotion"; -import { - buttonStyle, - iconStyle, - getDynamicButtonStyle -} from "./styles/Button.styles"; +import { css, cx } from "emotion"; +import { iconStyle, getButtonStyle } from "./styles/Button.styles"; import Ink from "react-ink"; -import { ButtonProps } from "./typings/Button"; +import { ButtonProps, DropDownButtonProps } from "./typings/Button"; import Loader from "./Loader"; -import { colors } from "../theme"; +import { colors, constants } from "../theme"; const Button: React.SFC = ({ - large, type = "primary", disabled, children, onClick, width, - isOpen, showShadow, className, showRipple = true, - isSelected, - loading + loading, + size = "small" }) => { - const _className = cx( - buttonStyle, - getDynamicButtonStyle(large, type, showShadow), - { - _pebble_btn_disabled: disabled, - _pebble_btn_link: type === "link", - _pebble_btn_dropdown: type === "dropdown", - _pebble_btn_dropdown_open: type === "dropdown" && isOpen, - _pebble_btn_dropdown_selected: type === "dropdown" && isSelected, - _pebble_btn_loading: loading - } - ); - const disableAction = disabled || loading; return ( ); }; +export const DropDownButton: React.SFC = ({ + isOpen, + isSelected, + children, + ...props +}) => { + const className = cx( + css({ + border: constants.border.base + }), + { + [css({ + backgroundColor: colors.white.base, + color: colors.gray.darker + })]: !(isOpen || isSelected) + } + ); + + return ( + + ); +}; + export default Button; diff --git a/src/components/DropDown.tsx b/src/components/DropDown.tsx index ba3397c7..b8b1c697 100644 --- a/src/components/DropDown.tsx +++ b/src/components/DropDown.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { DropdownProps, DropdownState } from "./typings/Dropdown"; -import Button from "./Button"; +import { DropDownButton } from "./Button"; import { dropDownStyle } from "./styles/Dropdown.styles"; import { cx } from "emotion"; import OutsideClick from "./OutsideClick"; @@ -11,8 +11,7 @@ class DropDown extends React.PureComponent { }; static defaultProps: Partial = { - closeOnClickOutside: true, - type: "dropdown" + closeOnClickOutside: true }; private toggleDropdown = () => { @@ -25,7 +24,6 @@ class DropDown extends React.PureComponent { const { buttonLabel, children, - type, labelComponent, padding, className, @@ -48,16 +46,14 @@ class DropDown extends React.PureComponent { {labelComponent ? ( labelComponent({ isOpen, toggleDropdown: this.toggleDropdown }) ) : ( - + )} {this.state.isOpen && (
{ return (
- )) - .add("Design System", () => ( - x.type} - props={{ - onClick: () => {} - }} - groupProps={{ - type: t, - large: [true, false] - }} - randomProps={{ - disabled: [true, false], - showShadow: [true, false] - }} - > - Submit - - )); +storiesOf("Button", module).add("Playground", () => ( + +)); From a7fa8286cc8b69ab17f1c1e753588e850074c0f6 Mon Sep 17 00:00:00 2001 From: ritz078 Date: Fri, 10 Aug 2018 19:02:38 +0530 Subject: [PATCH 2/4] test(button): updated snapshots --- src/components/Button.tsx | 18 +- .../__snapshots__/button.test.tsx.snap | 8324 ++++++----------- .../__snapshots__/popper.test.tsx.snap | 92 +- .../__tests__/__snapshots__/tag.test.tsx.snap | 4 +- src/components/__tests__/button.test.tsx | 2 +- src/components/styles/Button.styles.ts | 184 +- src/components/typings/Button.ts | 16 + src/theme/colors.ts | 12 +- src/theme/typings/colors.d.ts | 38 +- stories/Combinations.tsx | 144 - stories/button.story.tsx | 1 + 11 files changed, 2918 insertions(+), 5917 deletions(-) delete mode 100644 stories/Combinations.tsx diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 696da0d2..36f9e06f 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -16,13 +16,22 @@ const Button: React.SFC = ({ className, showRipple = true, loading, - size = "small" + size = "small", + filled = "true" }) => { const disableAction = disabled || loading; + const _className = cx( + getButtonStyle(size, type, showShadow, filled), + className, + { + _pebble_button_xs_small: size === "x-small" + } + ); + return ( `; exports[`Button Combos test { disabled: false, - type: 'dropdown', + type: 'alert', showRipple: false, loading: false, large: true } 1`] = ` .emotion-0 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - -.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -195,99 +106,41 @@ exports[`Button Combos test { disabled: false, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; - font-size: 14px; - min-width: 140px; - height: 50px; - background-color: #EDEDED; + color: #ffffff; + font-size: 12px; + background-color: #D32F02; + border: none; box-shadow: none; } -.emotion-1._pebble_btn_disabled { +.emotion-0[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_disabled:focus { - border: none; } -.emotion-1._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-1._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; -} - -.emotion-1._pebble_btn_dropdown_open { +.emotion-0:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #D94C26; + border-color: #D94C26; } -.emotion-1._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-0:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-1._pebble_btn_dropdown_open:focus { - border: none; + background-color: #BD2900; + border-color: #BD2900; } -.emotion-1._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-0[disabled] { color: #ffffff; -} - -.emotion-1:focus { - border: none; -} - -.emotion-1._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-1._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-1._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-1._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #EFBBAD; + border-color: #EFBBAD; } `; exports[`Button Combos test { disabled: false, - type: 'dropdown', + type: 'alert', showRipple: false, loading: true, large: false } 1`] = ` -.emotion-1 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - .emotion-0 { display: -webkit-box; display: -webkit-flex; @@ -361,7 +194,7 @@ exports[`Button Combos test { disabled: false, animation-delay: -0.16s; } -.emotion-2 { +.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -386,99 +219,41 @@ exports[`Button Combos test { disabled: false, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; + color: #ffffff; font-size: 12px; - min-width: 100px; - height: 40px; - background-color: #EDEDED; + background-color: #D32F02; + border: none; box-shadow: none; } -.emotion-2._pebble_btn_disabled { +.emotion-1[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_disabled:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; } -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-2._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; -} - -.emotion-2._pebble_btn_dropdown_open { +.emotion-1:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #D94C26; + border-color: #D94C26; } -.emotion-2._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-1:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-2._pebble_btn_dropdown_open:focus { - border: none; + background-color: #BD2900; + border-color: #BD2900; } -.emotion-2._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-1[disabled] { color: #ffffff; -} - -.emotion-2:focus { - border: none; -} - -.emotion-2._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-2._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-2._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-2._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #EFBBAD; + border-color: #EFBBAD; }
- - `; exports[`Button Combos test { disabled: false, - type: 'dropdown', + type: 'alert', showRipple: false, loading: true, large: true } 1`] = ` -.emotion-1 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - .emotion-0 { display: -webkit-box; display: -webkit-flex; @@ -580,7 +335,7 @@ exports[`Button Combos test { disabled: false, animation-delay: -0.16s; } -.emotion-2 { +.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -605,99 +360,41 @@ exports[`Button Combos test { disabled: false, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; - font-size: 14px; - min-width: 140px; - height: 50px; - background-color: #EDEDED; + color: #ffffff; + font-size: 12px; + background-color: #D32F02; + border: none; box-shadow: none; } -.emotion-2._pebble_btn_disabled { +.emotion-1[disabled] { cursor: not-allowed; - background-color: #ffffff; } -.emotion-2._pebble_btn_disabled:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-2._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; -} - -.emotion-2._pebble_btn_dropdown_open { +.emotion-1:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #D94C26; + border-color: #D94C26; } -.emotion-2._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-1:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-2._pebble_btn_dropdown_open:focus { - border: none; + background-color: #BD2900; + border-color: #BD2900; } -.emotion-2._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-1[disabled] { color: #ffffff; -} - -.emotion-2:focus { - border: none; -} - -.emotion-2._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-2._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-2._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-2._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #EFBBAD; + border-color: #EFBBAD; } `; exports[`Button Combos test { disabled: false, - type: 'dropdown', + type: 'alert', showRipple: true, loading: false, large: false } 1`] = ` .emotion-0 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - -.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -787,99 +464,41 @@ exports[`Button Combos test { disabled: false, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; + color: #ffffff; font-size: 12px; - min-width: 100px; - height: 40px; - background-color: #EDEDED; + background-color: #D32F02; + border: none; box-shadow: none; } -.emotion-1._pebble_btn_disabled { +.emotion-0[disabled] { cursor: not-allowed; - background-color: #ffffff; } -.emotion-1._pebble_btn_disabled:focus { - border: none; -} - -.emotion-1._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-1._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; -} - -.emotion-1._pebble_btn_dropdown_open { +.emotion-0:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #D94C26; + border-color: #D94C26; } -.emotion-1._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-0:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-1._pebble_btn_dropdown_open:focus { - border: none; + background-color: #BD2900; + border-color: #BD2900; } -.emotion-1._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-0[disabled] { color: #ffffff; -} - -.emotion-1:focus { - border: none; -} - -.emotion-1._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-1._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-1._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-1._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #EFBBAD; + border-color: #EFBBAD; } `; exports[`Button Combos test { disabled: false, - type: 'dropdown', + type: 'alert', showRipple: true, loading: true, large: true } 1`] = ` -.emotion-1 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - .emotion-0 { display: -webkit-box; display: -webkit-flex; @@ -1362,7 +805,7 @@ exports[`Button Combos test { disabled: false, animation-delay: -0.16s; } -.emotion-2 { +.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -1387,99 +830,41 @@ exports[`Button Combos test { disabled: false, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; - font-size: 14px; - min-width: 140px; - height: 50px; - background-color: #EDEDED; + color: #ffffff; + font-size: 12px; + background-color: #D32F02; + border: none; box-shadow: none; } -.emotion-2._pebble_btn_disabled { +.emotion-1[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_disabled:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-2._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-2._pebble_btn_dropdown_open { +.emotion-1:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #D94C26; + border-color: #D94C26; } -.emotion-2._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-1:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-2._pebble_btn_dropdown_open:focus { - border: none; + background-color: #BD2900; + border-color: #BD2900; } -.emotion-2._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-1[disabled] { color: #ffffff; -} - -.emotion-2:focus { - border: none; -} - -.emotion-2._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-2._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-2._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-2._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #EFBBAD; + border-color: #EFBBAD; } `; @@ -1558,99 +934,33 @@ exports[`Button Combos test { disabled: false, -ms-flex-pack: center; justify-content: center; border: 0; - font-weight: 400; - color: #101721; - font-size: 12px; - min-width: 100px; height: 40px; - background-color: #EDEDED; + min-width: 0; + font-weight: 400; + color: #6161FF; + font-size: 14px; + background-color: transparent; + border: 0; + padding: 0; box-shadow: none; } -.emotion-0._pebble_btn_disabled { +.emotion-0[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-0._pebble_btn_disabled:focus { - border: none; -} - -.emotion-0._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-0._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-0._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-0._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; -} - -.emotion-0._pebble_btn_dropdown_open { - color: #ffffff; - background-color: #6161FF; -} - -.emotion-0._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-0._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; -} - -.emotion-0._pebble_btn_dropdown_open._pebble_btn_disabled { - color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-0._pebble_btn_dropdown_open:focus { - border: none; -} - -.emotion-0._pebble_btn_dropdown_selected { - background-color: #6161FF; - color: #ffffff; -} - -.emotion-0:focus { - border: none; -} - -.emotion-0._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-0._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; } -.emotion-0._pebble_btn_link:not(._pebble_btn_disabled):hover { +.emotion-0:not([disabled]):hover { -webkit-text-decoration: underline; text-decoration: underline; } -.emotion-0._pebble_btn_link._pebble_btn_disabled { +.emotion-0[disabled] { color: #C0C0FF; - cursor: not-allowed; } `; -exports[`Button Combos test { disabled: true, - type: 'dropdown', +exports[`Button Combos test { disabled: false, + type: 'success', showRipple: false, loading: false, large: true } 1`] = ` .emotion-0 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - -.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -5998,99 +3622,42 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; - font-size: 14px; - min-width: 140px; - height: 50px; - background-color: #EDEDED; + color: #ffffff; + font-size: 12px; + background-color: #10AC60; + border: none; box-shadow: none; } -.emotion-1._pebble_btn_disabled { +.emotion-0[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_disabled:focus { - border: none; -} - -.emotion-1._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-1._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-1._pebble_btn_dropdown_open { +.emotion-0:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; + background-color: #40BD80; + border-color: #40BD80; } -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; -} - -.emotion-1._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-0:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; + background-color: #0E9A56; + border-color: #0E9A56; } -.emotion-1._pebble_btn_dropdown_open:focus { - border: none; -} - -.emotion-1._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-0[disabled] { color: #ffffff; -} - -.emotion-1:focus { - border: none; -} - -.emotion-1._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-1._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-1._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-1._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #9DDCBE; + border-color: #9DDCBE; } `; -exports[`Button Combos test { disabled: true, - type: 'dropdown', +exports[`Button Combos test { disabled: false, + type: 'success', showRipple: false, loading: true, large: false } 1`] = ` -.emotion-1 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - .emotion-0 { display: -webkit-box; display: -webkit-flex; @@ -6163,7 +3710,7 @@ exports[`Button Combos test { disabled: true, animation-delay: -0.16s; } -.emotion-2 { +.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -6188,99 +3735,41 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; + color: #ffffff; font-size: 12px; - min-width: 100px; - height: 40px; - background-color: #EDEDED; + background-color: #10AC60; + border: none; box-shadow: none; } -.emotion-2._pebble_btn_disabled { +.emotion-1[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_disabled:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-2._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-2._pebble_btn_dropdown_open { +.emotion-1:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #40BD80; + border-color: #40BD80; } -.emotion-2._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-1:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-2._pebble_btn_dropdown_open:focus { - border: none; + background-color: #0E9A56; + border-color: #0E9A56; } -.emotion-2._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-1[disabled] { color: #ffffff; -} - -.emotion-2:focus { - border: none; -} - -.emotion-2._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-2._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-2._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-2._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #9DDCBE; + border-color: #9DDCBE; } `; -exports[`Button Combos test { disabled: true, - type: 'dropdown', +exports[`Button Combos test { disabled: false, + type: 'success', showRipple: false, loading: true, large: true } 1`] = ` -.emotion-1 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - .emotion-0 { display: -webkit-box; display: -webkit-flex; @@ -6382,7 +3851,7 @@ exports[`Button Combos test { disabled: true, animation-delay: -0.16s; } -.emotion-2 { +.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -6407,99 +3876,41 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; - font-size: 14px; - min-width: 140px; - height: 50px; - background-color: #EDEDED; + color: #ffffff; + font-size: 12px; + background-color: #10AC60; + border: none; box-shadow: none; } -.emotion-2._pebble_btn_disabled { +.emotion-1[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_disabled:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-2._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-2._pebble_btn_dropdown_open { +.emotion-1:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; + background-color: #40BD80; + border-color: #40BD80; } -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; -} - -.emotion-2._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-1:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; + background-color: #0E9A56; + border-color: #0E9A56; } -.emotion-2._pebble_btn_dropdown_open:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-1[disabled] { color: #ffffff; -} - -.emotion-2:focus { - border: none; -} - -.emotion-2._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-2._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-2._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-2._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #9DDCBE; + border-color: #9DDCBE; } `; -exports[`Button Combos test { disabled: true, - type: 'dropdown', +exports[`Button Combos test { disabled: false, + type: 'success', showRipple: true, loading: false, large: false } 1`] = ` .emotion-0 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - -.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -6589,135 +3980,76 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; + color: #ffffff; font-size: 12px; - min-width: 100px; - height: 40px; - background-color: #EDEDED; + background-color: #10AC60; + border: none; box-shadow: none; } -.emotion-1._pebble_btn_disabled { +.emotion-0[disabled] { cursor: not-allowed; - background-color: #ffffff; } -.emotion-1._pebble_btn_disabled:focus { - border: none; -} - -.emotion-1._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-1._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; -} - -.emotion-1._pebble_btn_dropdown_open { +.emotion-0:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #40BD80; + border-color: #40BD80; } -.emotion-1._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-0:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-1._pebble_btn_dropdown_open:focus { - border: none; + background-color: #0E9A56; + border-color: #0E9A56; } -.emotion-1._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-0[disabled] { color: #ffffff; -} - -.emotion-1:focus { - border: none; -} - -.emotion-1._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-1._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-1._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-1._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #9DDCBE; + border-color: #9DDCBE; } `; -exports[`Button Combos test { disabled: true, - type: 'dropdown', +exports[`Button Combos test { disabled: false, + type: 'success', showRipple: true, loading: false, large: true } 1`] = ` .emotion-0 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - -.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -6742,99 +4074,42 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; - font-size: 14px; - min-width: 140px; - height: 50px; - background-color: #EDEDED; + color: #ffffff; + font-size: 12px; + background-color: #10AC60; + border: none; box-shadow: none; } -.emotion-1._pebble_btn_disabled { +.emotion-0[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_disabled:focus { - border: none; -} - -.emotion-1._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-1._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-1._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-1._pebble_btn_dropdown_open { +.emotion-0:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; + background-color: #40BD80; + border-color: #40BD80; } -.emotion-1._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; -} - -.emotion-1._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-0:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; + background-color: #0E9A56; + border-color: #0E9A56; } -.emotion-1._pebble_btn_dropdown_open:focus { - border: none; -} - -.emotion-1._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-0[disabled] { color: #ffffff; -} - -.emotion-1:focus { - border: none; -} - -.emotion-1._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-1._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-1._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-1._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #9DDCBE; + border-color: #9DDCBE; } `; -exports[`Button Combos test { disabled: true, - type: 'dropdown', +exports[`Button Combos test { disabled: false, + type: 'success', showRipple: true, loading: true, large: false } 1`] = ` -.emotion-1 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - .emotion-0 { display: -webkit-box; display: -webkit-flex; @@ -6907,7 +4180,7 @@ exports[`Button Combos test { disabled: true, animation-delay: -0.16s; } -.emotion-2 { +.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -6932,99 +4205,41 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; + color: #ffffff; font-size: 12px; - min-width: 100px; - height: 40px; - background-color: #EDEDED; + background-color: #10AC60; + border: none; box-shadow: none; } -.emotion-2._pebble_btn_disabled { +.emotion-1[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_disabled:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-2._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-2._pebble_btn_dropdown_open { +.emotion-1:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; + background-color: #40BD80; + border-color: #40BD80; } -.emotion-2._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-1:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-2._pebble_btn_dropdown_open:focus { - border: none; + background-color: #0E9A56; + border-color: #0E9A56; } -.emotion-2._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-1[disabled] { color: #ffffff; -} - -.emotion-2:focus { - border: none; -} - -.emotion-2._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-2._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-2._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-2._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #9DDCBE; + border-color: #9DDCBE; } `; -exports[`Button Combos test { disabled: true, - type: 'dropdown', +exports[`Button Combos test { disabled: false, + type: 'success', showRipple: true, loading: true, large: true } 1`] = ` -.emotion-1 { - margin-left: 15px; - font-weight: bold; - font-size: 12px; - -webkit-transition: -webkit-transform ease-out .2s; - -webkit-transition: transform ease-out .2s; - transition: transform ease-out .2s; - will-transform: transform; - margin-top: 2px; -} - .emotion-0 { display: -webkit-box; display: -webkit-flex; @@ -7126,7 +4321,7 @@ exports[`Button Combos test { disabled: true, animation-delay: -0.16s; } -.emotion-2 { +.emotion-1 { line-height: 23px; height: 40px; padding: 0 20px; @@ -7151,99 +4346,41 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; - font-size: 14px; - min-width: 140px; - height: 50px; - background-color: #EDEDED; + color: #ffffff; + font-size: 12px; + background-color: #10AC60; + border: none; box-shadow: none; } -.emotion-2._pebble_btn_disabled { +.emotion-1[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_disabled:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-2._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-2._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-2._pebble_btn_dropdown_open { +.emotion-1:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; + background-color: #40BD80; + border-color: #40BD80; } -.emotion-2._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; -} - -.emotion-2._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-1:not([disabled]):active { color: #ffffff; - background-color: #C0C0FF; + background-color: #0E9A56; + border-color: #0E9A56; } -.emotion-2._pebble_btn_dropdown_open:focus { - border: none; -} - -.emotion-2._pebble_btn_dropdown_selected { - background-color: #6161FF; +.emotion-1[disabled] { color: #ffffff; -} - -.emotion-2:focus { - border: none; -} - -.emotion-2._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-2._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-2._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-2._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #9DDCBE; + border-color: #9DDCBE; } `; exports[`Button Combos test { disabled: true, - type: 'link', + type: 'alert', showRipple: false, loading: false, large: false } 1`] = ` @@ -7322,99 +4450,41 @@ exports[`Button Combos test { disabled: true, -ms-flex-pack: center; justify-content: center; border: 0; + height: 40px; + min-width: 100px; font-weight: 400; - color: #101721; + color: #ffffff; font-size: 12px; - min-width: 100px; - height: 40px; - background-color: #EDEDED; + background-color: #D32F02; + border: none; box-shadow: none; } -.emotion-0._pebble_btn_disabled { +.emotion-0[disabled] { cursor: not-allowed; - background-color: #ffffff; -} - -.emotion-0._pebble_btn_disabled:focus { - border: none; -} - -.emotion-0._pebble_btn_dropdown { - color: #101721; - background-color: #ffffff; -} - -.emotion-0._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):hover { - background-color: #F7F7F9; -} - -.emotion-0._pebble_btn_dropdown:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #E0E0E0; -} - -.emotion-0._pebble_btn_dropdown._pebble_btn_disabled { - color: #9FA6B0; - background-color: #EDEDED; } -.emotion-0._pebble_btn_dropdown_open { +.emotion-0:not([disabled]):hover { color: #ffffff; - background-color: #6161FF; -} - -.emotion-0._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; + background-color: #D94C26; + border-color: #D94C26; } -.emotion-0._pebble_btn_dropdown_open:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; +.emotion-0:not([disabled]):active { + color: #ffffff; + background-color: #BD2900; + border-color: #BD2900; } -.emotion-0._pebble_btn_dropdown_open._pebble_btn_disabled { +.emotion-0[disabled] { color: #ffffff; - background-color: #C0C0FF; -} - -.emotion-0._pebble_btn_dropdown_open:focus { - border: none; -} - -.emotion-0._pebble_btn_dropdown_selected { - background-color: #6161FF; - color: #ffffff; -} - -.emotion-0:focus { - border: none; -} - -.emotion-0._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; -} - -.emotion-0._pebble_btn_link { - background-color: transparent; - border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-0._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-0._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; - cursor: not-allowed; + background-color: #EFBBAD; + border-color: #EFBBAD; } +`; -.emotion-0._pebble_btn_dropdown_selected { +exports[`Button Combos test { disabled: true, + type: 'link', + showRipple: true, + loading: false, + large: true } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 0; + font-weight: 400; + color: #6161FF; + font-size: 14px; + background-color: transparent; + border: 0; + padding: 0; + box-shadow: none; +} + +.emotion-0[disabled] { + cursor: not-allowed; +} + +.emotion-0:not([disabled]):hover { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.emotion-0[disabled] { + color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'link', + showRipple: true, + loading: true, + large: false } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 0; + font-weight: 400; + color: #6161FF; + font-size: 14px; + background-color: transparent; + border: 0; + padding: 0; + box-shadow: none; +} + +.emotion-1[disabled] { + cursor: not-allowed; +} + +.emotion-1:not([disabled]):hover { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.emotion-1[disabled] { + color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'link', + showRipple: true, + loading: true, + large: true } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 0; + font-weight: 400; + color: #6161FF; + font-size: 14px; + background-color: transparent; + border: 0; + padding: 0; + box-shadow: none; +} + +.emotion-1[disabled] { + cursor: not-allowed; +} + +.emotion-1:not([disabled]):hover { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.emotion-1[disabled] { + color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: false, + loading: false, + large: false } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; + background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-0[disabled] { + cursor: not-allowed; +} + +.emotion-0:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-0:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-0[disabled] { + color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: false, + loading: false, + large: true } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; + background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-0[disabled] { + cursor: not-allowed; +} + +.emotion-0:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-0:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-0[disabled] { + color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: false, + loading: true, + large: false } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; + background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-1[disabled] { + cursor: not-allowed; +} + +.emotion-1:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-1:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-1[disabled] { + color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: false, + loading: true, + large: true } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; + background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-1[disabled] { + cursor: not-allowed; +} + +.emotion-1:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-1:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-1[disabled] { + color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: true, + loading: false, + large: false } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; + background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-0[disabled] { + cursor: not-allowed; +} + +.emotion-0:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-0:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-0[disabled] { + color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: true, + loading: false, + large: true } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; + background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-0[disabled] { + cursor: not-allowed; +} + +.emotion-0:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-0:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-0[disabled] { + color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: true, + loading: true, + large: false } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; + background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-1[disabled] { + cursor: not-allowed; +} + +.emotion-1:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-1:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-1[disabled] { + color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'primary', + showRipple: true, + loading: true, + large: true } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #ffffff; + font-size: 12px; background-color: #6161FF; + border: none; + box-shadow: none; +} + +.emotion-1[disabled] { + cursor: not-allowed; +} + +.emotion-1:not([disabled]):hover { + color: #ffffff; + background-color: #7070FF; + border-color: #7070FF; +} + +.emotion-1:not([disabled]):active { + color: #ffffff; + background-color: #5656ED; + border-color: #5656ED; +} + +.emotion-1[disabled] { color: #ffffff; + background-color: #C0C0FF; + border-color: #C0C0FF; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'secondary', + showRipple: false, + loading: false, + large: false } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #101721; + font-size: 12px; + background-color: #EDEDED; + border: none; + box-shadow: none; +} + +.emotion-0[disabled] { + cursor: not-allowed; +} + +.emotion-0:not([disabled]):hover { + color: #101721; + background-color: #F7F7F9; + border-color: #F7F7F9; +} + +.emotion-0:not([disabled]):active { + color: #101721; + background-color: #9FA6B0; + border-color: #9FA6B0; +} + +.emotion-0[disabled] { + color: #101721; + background-color: #EDEDED; + border-color: #EDEDED; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'secondary', + showRipple: false, + loading: false, + large: true } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #101721; + font-size: 12px; + background-color: #EDEDED; + border: none; + box-shadow: none; +} + +.emotion-0[disabled] { + cursor: not-allowed; +} + +.emotion-0:not([disabled]):hover { + color: #101721; + background-color: #F7F7F9; + border-color: #F7F7F9; +} + +.emotion-0:not([disabled]):active { + color: #101721; + background-color: #9FA6B0; + border-color: #9FA6B0; +} + +.emotion-0[disabled] { + color: #101721; + background-color: #EDEDED; + border-color: #EDEDED; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'secondary', + showRipple: false, + loading: true, + large: false } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; } -.emotion-0:focus { +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #101721; + font-size: 12px; + background-color: #EDEDED; border: none; + box-shadow: none; } -.emotion-0._pebble_btn_loading .icon-spinner { - -webkit-animation: animation-1q8eu9e 1500ms infinite linear; - animation: animation-1q8eu9e 1500ms infinite linear; +.emotion-1[disabled] { + cursor: not-allowed; } -.emotion-0._pebble_btn_link { - background-color: transparent; +.emotion-1:not([disabled]):hover { + color: #101721; + background-color: #F7F7F9; + border-color: #F7F7F9; +} + +.emotion-1:not([disabled]):active { + color: #101721; + background-color: #9FA6B0; + border-color: #9FA6B0; +} + +.emotion-1[disabled] { + color: #101721; + background-color: #EDEDED; + border-color: #EDEDED; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'secondary', + showRipple: false, + loading: true, + large: true } 1`] = ` +.emotion-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: initial; + -ms-flex-line-pack: initial; + align-content: initial; + width: 70px; +} + +.emotion-0 > div { + width: 18px; + height: 18px; + border-radius: 100%; + display: inline-block; + -webkit-animation: animation-zl77bl 1.4s infinite ease-in-out both; + animation: animation-zl77bl 1.4s infinite ease-in-out both; +} + +.emotion-0 > div:first-of-type { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.emotion-0 > div:nth-of-type(2n) { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +.emotion-1 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + border: 0; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #101721; + font-size: 12px; + background-color: #EDEDED; + border: none; + box-shadow: none; +} + +.emotion-1[disabled] { + cursor: not-allowed; +} + +.emotion-1:not([disabled]):hover { + color: #101721; + background-color: #F7F7F9; + border-color: #F7F7F9; +} + +.emotion-1:not([disabled]):active { + color: #101721; + background-color: #9FA6B0; + border-color: #9FA6B0; +} + +.emotion-1[disabled] { + color: #101721; + background-color: #EDEDED; + border-color: #EDEDED; +} + + +`; + +exports[`Button Combos test { disabled: true, + type: 'secondary', + showRipple: true, + loading: false, + large: false } 1`] = ` +.emotion-0 { + line-height: 23px; + height: 40px; + padding: 0 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: all ease-out .2s; + transition: all ease-out .2s; + border-radius: 3px; + outline: none; + position: relative; + overflow: hidden; + cursor: pointer; + white-space: nowrap; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; border: 0; - color: #6161FF; - min-width: 0; - padding: 0; - font-size: 14px; -} - -.emotion-0._pebble_btn_link:not(._pebble_btn_disabled):hover { - -webkit-text-decoration: underline; - text-decoration: underline; + height: 40px; + min-width: 100px; + font-weight: 400; + color: #101721; + font-size: 12px; + background-color: #EDEDED; + border: none; + box-shadow: none; } -.emotion-0._pebble_btn_link._pebble_btn_disabled { - color: #C0C0FF; +.emotion-0[disabled] { cursor: not-allowed; } -.emotion-0:not(._pebble_btn_dropdown):not(._pebble_btn_disabled):hover { - background-color: #7070FF; +.emotion-0:not([disabled]):hover { + color: #101721; + background-color: #F7F7F9; + border-color: #F7F7F9; } -.emotion-0:not(._pebble_btn_dropdown):not(_pebble_btn_disabled):active { - background-color: #5656ED; +.emotion-0:not([disabled]):active { + color: #101721; + background-color: #9FA6B0; + border-color: #9FA6B0; } -.emotion-0._pebble_btn_disabled { - color: #ffffff; - background-color: #C0C0FF; +.emotion-0[disabled] { + color: #101721; + background-color: #EDEDED; + border-color: #EDEDED; } From 06653369aecd3ddbc9da560629ad711e8a77ecf8 Mon Sep 17 00:00:00 2001 From: ritz078 Date: Fri, 10 Aug 2018 19:16:06 +0530 Subject: [PATCH 3/4] refactor(button): automatically set filled to false when size is x-small --- src/components/Button.tsx | 9 +++------ stories/button.story.tsx | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 36f9e06f..2cecca18 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -16,17 +16,14 @@ const Button: React.SFC = ({ className, showRipple = true, loading, - size = "small", - filled = "true" + size = "small" }) => { const disableAction = disabled || loading; + const filled = size !== "x-small"; const _className = cx( getButtonStyle(size, type, showShadow, filled), - className, - { - _pebble_button_xs_small: size === "x-small" - } + className ); return ( diff --git a/stories/button.story.tsx b/stories/button.story.tsx index 869eb0d1..4a4648d1 100644 --- a/stories/button.story.tsx +++ b/stories/button.story.tsx @@ -16,7 +16,6 @@ storiesOf("Button", module).add("Playground", () => ( onClick={action("click")} showRipple={boolean("showRipple", true)} loading={boolean("loading")} - filled={boolean("filled", true)} > Submit From e1a85d187992e32e6460627d1408a77e6d37de3f Mon Sep 17 00:00:00 2001 From: ritz078 Date: Fri, 10 Aug 2018 19:27:51 +0530 Subject: [PATCH 4/4] fixes --- package.json | 2 -- yarn.lock | 12 +----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/package.json b/package.json index f3c6abbe..d03cd911 100644 --- a/package.json +++ b/package.json @@ -97,9 +97,7 @@ "pretty-quick": "^1.6.0", "react": "^16.4.2", "react-dom": "^16.4.2", - "react-highlight": "^0.12.0", "react-native-vector-icons": "^5.0.0", - "react-prism": "^4.3.2", "react-test-renderer": "^16.4.2", "rimraf": "^2.6.2", "rollup": "^0.63.5", diff --git a/yarn.lock b/yarn.lock index 4002e9c5..4d303e01 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5462,7 +5462,7 @@ he@1.1.x, he@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" -highlight.js@^9.11.0, highlight.js@~9.12.0: +highlight.js@~9.12.0: version "9.12.0" resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e" @@ -8997,12 +8997,6 @@ react-fuzzy@^0.5.2: fuse.js "^3.0.1" prop-types "^15.5.9" -react-highlight@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/react-highlight/-/react-highlight-0.12.0.tgz#34de986a0bfdf228904d0c269b69538d95b35802" - dependencies: - highlight.js "^9.11.0" - react-icon-base@2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/react-icon-base/-/react-icon-base-2.1.0.tgz#a196e33fdf1e7aaa1fda3aefbb68bdad9e82a79d" @@ -9077,10 +9071,6 @@ react-popper@^1.0.0: typed-styles "^0.0.5" warning "^3.0.0" -react-prism@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/react-prism/-/react-prism-4.3.2.tgz#5c07609539b3ba6f45eb33e7d6a3588df3270c21" - react-reconciler@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/react-reconciler/-/react-reconciler-0.7.0.tgz#9614894103e5f138deeeb5eabaf3ee80eb1d026d"