@zohodesk/components 1.6.25 → 1.6.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2046 -0
- package/README.md +16 -2031
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +5 -20
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +5 -20
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +5 -20
- package/es/Accordion/Accordion.js +1 -6
- package/es/Accordion/AccordionItem.js +1 -6
- package/es/Animation/Animation.js +1 -8
- package/es/AppContainer/AppContainer.js +1 -6
- package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +16 -16
- package/es/Avatar/Avatar.js +1 -6
- package/es/AvatarTeam/AvatarTeam.js +1 -7
- package/es/Button/Button.js +1 -6
- package/es/Buttongroup/Buttongroup.js +1 -14
- package/es/Card/Card.js +1 -9
- package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +17 -17
- package/es/Card/__tests__/__snapshots__/CardContent.spec.js.snap +12 -12
- package/es/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +4 -4
- package/es/CheckBox/CheckBox.js +1 -6
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +88 -88
- package/es/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +48 -48
- package/es/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +30 -30
- package/es/DateTime/DateWidget.js +1 -11
- package/es/DateTime/DateWidget.module.css +3 -0
- package/es/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +49 -49
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +93 -93
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +1 -1
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +8 -8
- package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +7 -7
- package/es/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +1 -1
- package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +28 -28
- package/es/DropDown/DropDownHeading.js +1 -6
- package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +2 -2
- package/es/Heading/Heading.js +1 -6
- package/es/Label/Label.js +1 -6
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +4 -4
- package/es/ListItem/ListContainer.js +1 -6
- package/es/ListItem/ListItem.js +1 -6
- package/es/ListItem/ListItemWithAvatar.js +1 -6
- package/es/ListItem/ListItemWithCheckBox.js +1 -6
- package/es/ListItem/ListItemWithIcon.js +1 -6
- package/es/ListItem/ListItemWithRadio.js +1 -6
- package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +2 -2
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +16 -16
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +41 -41
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +62 -62
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +41 -41
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +62 -62
- package/es/Modal/Modal.js +1 -8
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -7
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -9
- package/es/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +3 -3
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +6 -6
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +50 -50
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +35 -35
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +7 -7
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +8 -8
- package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +4 -4
- package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +47 -47
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +94 -94
- package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -1
- package/es/RippleEffect/RippleEffect.js +1 -6
- package/es/Select/GroupSelect.js +1 -8
- package/es/Select/Select.js +1 -10
- package/es/Select/SelectWithAvatar.js +1 -9
- package/es/Select/SelectWithIcon.js +1 -7
- package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +7 -7
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +831 -831
- package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +10 -10
- package/es/Switch/Switch.js +1 -6
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +44 -44
- package/es/Tab/Tab.js +1 -6
- package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +2 -2
- package/es/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +1 -1
- package/es/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +1 -1
- package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +40 -40
- package/es/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +1 -1
- package/es/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +4 -4
- package/es/Tag/Tag.js +1 -6
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +94 -94
- package/es/TextBox/TextBox.js +1 -8
- package/es/TextBoxIcon/TextBoxIcon.js +1 -8
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +167 -167
- package/es/Textarea/Textarea.js +1 -8
- package/es/Tooltip/Tooltip.js +1 -8
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -5
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -5
- package/es/semantic/Button/Button.js +1 -6
- package/es/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +20 -20
- package/es/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/es/v1/Button/Button.js +197 -113
- package/es/v1/Button/README.md +110 -44
- package/es/v1/Button/__tests__/Button.spec.js +139 -48
- package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1236 -340
- package/es/v1/Button/constants/index.js +29 -23
- package/es/v1/Button/constants/presets.js +160 -0
- package/es/v1/Button/css/Button_v1.module.css +33 -16
- package/es/v1/Button/css/cssJSLogic.js +56 -29
- package/es/v1/Button/props/defaultProps.js +5 -6
- package/es/v1/Button/props/propTypes.js +26 -8
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +24 -24
- package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +14 -14
- package/es/v1/helpers/colorHelpers/__tests__/colorHelper.spec.js +357 -0
- package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +38 -534
- package/es/v1/helpers/colorHelpers/border/borderColor.module.css +28 -412
- package/es/v1/helpers/colorHelpers/colorHelper.js +120 -139
- package/es/v1/helpers/colorHelpers/constants/index.js +45 -4
- package/es/v1/helpers/colorHelpers/index.js +0 -1
- package/es/v1/helpers/colorHelpers/paletteUtilities.README.md +141 -336
- package/es/v1/helpers/colorHelpers/text/textColor.module.css +79 -295
- package/lib/Accordion/Accordion.js +1 -6
- package/lib/Accordion/AccordionItem.js +1 -6
- package/lib/Animation/Animation.js +1 -8
- package/lib/AppContainer/AppContainer.js +1 -6
- package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +16 -16
- package/lib/Avatar/Avatar.js +1 -6
- package/lib/AvatarTeam/AvatarTeam.js +1 -7
- package/lib/Button/Button.js +1 -7
- package/lib/Buttongroup/Buttongroup.js +1 -14
- package/lib/Card/Card.js +1 -8
- package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +17 -17
- package/lib/Card/__tests__/__snapshots__/CardContent.spec.js.snap +12 -12
- package/lib/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +4 -4
- package/lib/CheckBox/CheckBox.js +1 -6
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +88 -88
- package/lib/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +48 -48
- package/lib/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +30 -30
- package/lib/DateTime/DateWidget.js +1 -11
- package/lib/DateTime/DateWidget.module.css +3 -0
- package/lib/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +49 -49
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +93 -93
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +1 -1
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +8 -8
- package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +7 -7
- package/lib/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +1 -1
- package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +28 -28
- package/lib/DropDown/DropDownHeading.js +1 -6
- package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +2 -2
- package/lib/Heading/Heading.js +1 -6
- package/lib/Label/Label.js +1 -6
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +4 -4
- package/lib/ListItem/ListContainer.js +1 -7
- package/lib/ListItem/ListItem.js +1 -6
- package/lib/ListItem/ListItemWithAvatar.js +1 -6
- package/lib/ListItem/ListItemWithCheckBox.js +1 -6
- package/lib/ListItem/ListItemWithIcon.js +1 -6
- package/lib/ListItem/ListItemWithRadio.js +1 -6
- package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +2 -2
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +16 -16
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +41 -41
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +62 -62
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +41 -41
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +62 -62
- package/lib/Modal/Modal.js +1 -8
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -7
- package/lib/MultiSelect/AdvancedMultiSelect.js +1 -9
- package/lib/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +3 -3
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +6 -6
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +50 -50
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +35 -35
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +7 -7
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +8 -8
- package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +4 -4
- package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +47 -47
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +94 -94
- package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -1
- package/lib/RippleEffect/RippleEffect.js +1 -6
- package/lib/Select/GroupSelect.js +1 -9
- package/lib/Select/Select.js +1 -11
- package/lib/Select/SelectWithAvatar.js +1 -9
- package/lib/Select/SelectWithIcon.js +1 -7
- package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +7 -7
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +831 -831
- package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +10 -10
- package/lib/Switch/Switch.js +1 -6
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +44 -44
- package/lib/Tab/Tab.js +1 -6
- package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +2 -2
- package/lib/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +1 -1
- package/lib/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +1 -1
- package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +40 -40
- package/lib/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +1 -1
- package/lib/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +4 -4
- package/lib/Tag/Tag.js +1 -6
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +94 -94
- package/lib/TextBox/TextBox.js +1 -8
- package/lib/TextBoxIcon/TextBoxIcon.js +1 -8
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +167 -167
- package/lib/Textarea/Textarea.js +1 -8
- package/lib/Tooltip/Tooltip.js +1 -8
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -5
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -5
- package/lib/semantic/Button/Button.js +1 -6
- package/lib/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +20 -20
- package/lib/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/lib/v1/Button/Button.js +207 -123
- package/lib/v1/Button/README.md +110 -44
- package/lib/v1/Button/__tests__/Button.spec.js +195 -88
- package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1236 -340
- package/lib/v1/Button/constants/index.js +34 -31
- package/lib/v1/Button/constants/presets.js +179 -0
- package/lib/v1/Button/css/Button_v1.module.css +33 -16
- package/lib/v1/Button/css/cssJSLogic.js +45 -25
- package/lib/v1/Button/props/defaultProps.js +4 -5
- package/lib/v1/Button/props/propTypes.js +41 -7
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +24 -24
- package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +14 -14
- package/lib/v1/helpers/colorHelpers/__tests__/colorHelper.spec.js +363 -0
- package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +38 -534
- package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +28 -412
- package/lib/v1/helpers/colorHelpers/colorHelper.js +130 -153
- package/lib/v1/helpers/colorHelpers/constants/index.js +45 -4
- package/lib/v1/helpers/colorHelpers/index.js +2 -24
- package/lib/v1/helpers/colorHelpers/paletteUtilities.README.md +141 -336
- package/lib/v1/helpers/colorHelpers/text/textColor.module.css +79 -295
- package/package.json +16 -16
|
@@ -1,19 +1,40 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`Button
|
|
3
|
+
exports[`Button Presets Should render preset BLACK_TEXT_BRAND_ONHOVER 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<button
|
|
6
6
|
aria-busy="false"
|
|
7
|
-
aria-describedby="button-description"
|
|
8
7
|
aria-disabled="false"
|
|
9
|
-
aria-label="Smart Button"
|
|
10
8
|
aria-pressed="false"
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
class="buttonReset button text-black hover:text-brand-80 focus:text-brand-80 active:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
10
|
+
type="button"
|
|
11
|
+
>
|
|
12
|
+
<div
|
|
13
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
14
|
+
data-id="flex"
|
|
15
|
+
data-test-id="flex"
|
|
16
|
+
>
|
|
17
|
+
<div
|
|
18
|
+
class="dotted size13"
|
|
19
|
+
>
|
|
20
|
+
Button
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</button>
|
|
24
|
+
</DocumentFragment>
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
exports[`Button Presets Should render preset BLACK_TEXT_BRAND_ONHOVER in selected state 1`] = `
|
|
28
|
+
<DocumentFragment>
|
|
29
|
+
<button
|
|
30
|
+
aria-busy="false"
|
|
31
|
+
aria-disabled="false"
|
|
32
|
+
aria-pressed="true"
|
|
33
|
+
class="buttonReset button selected:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
13
34
|
type="button"
|
|
14
35
|
>
|
|
15
36
|
<div
|
|
16
|
-
class="flex row
|
|
37
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
17
38
|
data-id="flex"
|
|
18
39
|
data-test-id="flex"
|
|
19
40
|
>
|
|
@@ -27,30 +48,238 @@ exports[`Button - Component Should apply a11yAttributes to the button 1`] = `
|
|
|
27
48
|
</DocumentFragment>
|
|
28
49
|
`;
|
|
29
50
|
|
|
30
|
-
exports[`Button
|
|
51
|
+
exports[`Button Presets Should render preset BRAND_BG_ONSELECT 1`] = `
|
|
31
52
|
<DocumentFragment>
|
|
32
53
|
<button
|
|
33
54
|
aria-busy="false"
|
|
34
55
|
aria-disabled="false"
|
|
35
56
|
aria-pressed="false"
|
|
36
|
-
|
|
37
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle customButtonClass"
|
|
57
|
+
class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-80 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
|
|
38
58
|
type="button"
|
|
39
59
|
>
|
|
40
60
|
<div
|
|
41
|
-
class="flex row
|
|
61
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
42
62
|
data-id="flex"
|
|
43
63
|
data-test-id="flex"
|
|
44
64
|
>
|
|
45
|
-
<i
|
|
46
|
-
aria-hidden="true"
|
|
47
|
-
class="zd_font_icons basic icon-plus customIconClass"
|
|
48
|
-
data-id="fontIcon"
|
|
49
|
-
data-selector-id="fontIcon"
|
|
50
|
-
style="--zd-iconfont-size: var(--zd_font_size16);"
|
|
51
|
-
/>
|
|
52
65
|
<div
|
|
53
|
-
class="dotted size13
|
|
66
|
+
class="dotted size13"
|
|
67
|
+
>
|
|
68
|
+
Button
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</button>
|
|
72
|
+
</DocumentFragment>
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
exports[`Button Presets Should render preset BRAND_BG_ONSELECT in selected state 1`] = `
|
|
76
|
+
<DocumentFragment>
|
|
77
|
+
<button
|
|
78
|
+
aria-busy="false"
|
|
79
|
+
aria-disabled="false"
|
|
80
|
+
aria-pressed="true"
|
|
81
|
+
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
82
|
+
type="button"
|
|
83
|
+
>
|
|
84
|
+
<div
|
|
85
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
86
|
+
data-id="flex"
|
|
87
|
+
data-test-id="flex"
|
|
88
|
+
>
|
|
89
|
+
<div
|
|
90
|
+
class="dotted size13"
|
|
91
|
+
>
|
|
92
|
+
Button
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</button>
|
|
96
|
+
</DocumentFragment>
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
exports[`Button Presets Should render preset BRAND_GHOST 1`] = `
|
|
100
|
+
<DocumentFragment>
|
|
101
|
+
<button
|
|
102
|
+
aria-busy="false"
|
|
103
|
+
aria-disabled="false"
|
|
104
|
+
aria-pressed="false"
|
|
105
|
+
class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-80 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
|
|
106
|
+
type="button"
|
|
107
|
+
>
|
|
108
|
+
<div
|
|
109
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
110
|
+
data-id="flex"
|
|
111
|
+
data-test-id="flex"
|
|
112
|
+
>
|
|
113
|
+
<div
|
|
114
|
+
class="dotted size13"
|
|
115
|
+
>
|
|
116
|
+
Button
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</button>
|
|
120
|
+
</DocumentFragment>
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
exports[`Button Presets Should render preset BRAND_GHOST in selected state 1`] = `
|
|
124
|
+
<DocumentFragment>
|
|
125
|
+
<button
|
|
126
|
+
aria-busy="false"
|
|
127
|
+
aria-disabled="false"
|
|
128
|
+
aria-pressed="true"
|
|
129
|
+
class="buttonReset button selected:text-brand-80 selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
130
|
+
type="button"
|
|
131
|
+
>
|
|
132
|
+
<div
|
|
133
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
134
|
+
data-id="flex"
|
|
135
|
+
data-test-id="flex"
|
|
136
|
+
>
|
|
137
|
+
<div
|
|
138
|
+
class="dotted size13"
|
|
139
|
+
>
|
|
140
|
+
Button
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</button>
|
|
144
|
+
</DocumentFragment>
|
|
145
|
+
`;
|
|
146
|
+
|
|
147
|
+
exports[`Button Presets Should render preset BRAND_TEXT_ONLY 1`] = `
|
|
148
|
+
<DocumentFragment>
|
|
149
|
+
<button
|
|
150
|
+
aria-busy="false"
|
|
151
|
+
aria-disabled="false"
|
|
152
|
+
aria-pressed="false"
|
|
153
|
+
class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
154
|
+
type="button"
|
|
155
|
+
>
|
|
156
|
+
<div
|
|
157
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
158
|
+
data-id="flex"
|
|
159
|
+
data-test-id="flex"
|
|
160
|
+
>
|
|
161
|
+
<div
|
|
162
|
+
class="dotted size13"
|
|
163
|
+
>
|
|
164
|
+
Button
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</button>
|
|
168
|
+
</DocumentFragment>
|
|
169
|
+
`;
|
|
170
|
+
|
|
171
|
+
exports[`Button Presets Should render preset BRAND_TEXT_ONLY in selected state 1`] = `
|
|
172
|
+
<DocumentFragment>
|
|
173
|
+
<button
|
|
174
|
+
aria-busy="false"
|
|
175
|
+
aria-disabled="false"
|
|
176
|
+
aria-pressed="true"
|
|
177
|
+
class="buttonReset button selected:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
178
|
+
type="button"
|
|
179
|
+
>
|
|
180
|
+
<div
|
|
181
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
182
|
+
data-id="flex"
|
|
183
|
+
data-test-id="flex"
|
|
184
|
+
>
|
|
185
|
+
<div
|
|
186
|
+
class="dotted size13"
|
|
187
|
+
>
|
|
188
|
+
Button
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</button>
|
|
192
|
+
</DocumentFragment>
|
|
193
|
+
`;
|
|
194
|
+
|
|
195
|
+
exports[`Button Presets Should render preset BRAND_TEXT_TINTED_DANGER_HOVER 1`] = `
|
|
196
|
+
<DocumentFragment>
|
|
197
|
+
<button
|
|
198
|
+
aria-busy="false"
|
|
199
|
+
aria-disabled="false"
|
|
200
|
+
aria-pressed="false"
|
|
201
|
+
class="buttonReset button hover:bg-red-10 focus:bg-red-10 active:bg-red-10 text-brand-80 hover:text-red-70 focus:text-red-70 active:text-red-70 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
202
|
+
type="button"
|
|
203
|
+
>
|
|
204
|
+
<div
|
|
205
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
206
|
+
data-id="flex"
|
|
207
|
+
data-test-id="flex"
|
|
208
|
+
>
|
|
209
|
+
<div
|
|
210
|
+
class="dotted size13"
|
|
211
|
+
>
|
|
212
|
+
Button
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</button>
|
|
216
|
+
</DocumentFragment>
|
|
217
|
+
`;
|
|
218
|
+
|
|
219
|
+
exports[`Button Presets Should render preset BRAND_TEXT_TINTED_DANGER_HOVER in selected state 1`] = `
|
|
220
|
+
<DocumentFragment>
|
|
221
|
+
<button
|
|
222
|
+
aria-busy="false"
|
|
223
|
+
aria-disabled="false"
|
|
224
|
+
aria-pressed="true"
|
|
225
|
+
class="buttonReset button selected:bg-red-10 selected:text-red-70 selected:border-red-30 sizeMedium shapeRoundedRectangle variantText"
|
|
226
|
+
type="button"
|
|
227
|
+
>
|
|
228
|
+
<div
|
|
229
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
230
|
+
data-id="flex"
|
|
231
|
+
data-test-id="flex"
|
|
232
|
+
>
|
|
233
|
+
<div
|
|
234
|
+
class="dotted size13"
|
|
235
|
+
>
|
|
236
|
+
Button
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
</button>
|
|
240
|
+
</DocumentFragment>
|
|
241
|
+
`;
|
|
242
|
+
|
|
243
|
+
exports[`Button Presets Should render preset BRAND_TEXT_TINTED_HOVER 1`] = `
|
|
244
|
+
<DocumentFragment>
|
|
245
|
+
<button
|
|
246
|
+
aria-busy="false"
|
|
247
|
+
aria-disabled="false"
|
|
248
|
+
aria-pressed="false"
|
|
249
|
+
class="buttonReset button hover:bg-brand-10 focus:bg-brand-10 active:bg-brand-10 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
250
|
+
type="button"
|
|
251
|
+
>
|
|
252
|
+
<div
|
|
253
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
254
|
+
data-id="flex"
|
|
255
|
+
data-test-id="flex"
|
|
256
|
+
>
|
|
257
|
+
<div
|
|
258
|
+
class="dotted size13"
|
|
259
|
+
>
|
|
260
|
+
Button
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
</button>
|
|
264
|
+
</DocumentFragment>
|
|
265
|
+
`;
|
|
266
|
+
|
|
267
|
+
exports[`Button Presets Should render preset BRAND_TEXT_TINTED_HOVER in selected state 1`] = `
|
|
268
|
+
<DocumentFragment>
|
|
269
|
+
<button
|
|
270
|
+
aria-busy="false"
|
|
271
|
+
aria-disabled="false"
|
|
272
|
+
aria-pressed="true"
|
|
273
|
+
class="buttonReset button selected:bg-brand-10 selected:text-brand-80 selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
|
|
274
|
+
type="button"
|
|
275
|
+
>
|
|
276
|
+
<div
|
|
277
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
278
|
+
data-id="flex"
|
|
279
|
+
data-test-id="flex"
|
|
280
|
+
>
|
|
281
|
+
<div
|
|
282
|
+
class="dotted size13"
|
|
54
283
|
>
|
|
55
284
|
Button
|
|
56
285
|
</div>
|
|
@@ -59,18 +288,41 @@ exports[`Button - Component Should apply customClass to wrapper, text and icon 1
|
|
|
59
288
|
</DocumentFragment>
|
|
60
289
|
`;
|
|
61
290
|
|
|
62
|
-
exports[`Button
|
|
291
|
+
exports[`Button Presets Should render preset BRAND_TINTED_OUTLINE 1`] = `
|
|
63
292
|
<DocumentFragment>
|
|
64
293
|
<button
|
|
65
294
|
aria-busy="false"
|
|
66
295
|
aria-disabled="false"
|
|
67
296
|
aria-pressed="false"
|
|
68
|
-
|
|
69
|
-
|
|
297
|
+
class="buttonReset button bg-brand-10 hover:bg-brand-20 focus:bg-brand-20 active:bg-brand-20 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-10 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
|
|
298
|
+
type="button"
|
|
299
|
+
>
|
|
300
|
+
<div
|
|
301
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
302
|
+
data-id="flex"
|
|
303
|
+
data-test-id="flex"
|
|
304
|
+
>
|
|
305
|
+
<div
|
|
306
|
+
class="dotted size13"
|
|
307
|
+
>
|
|
308
|
+
Button
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
</button>
|
|
312
|
+
</DocumentFragment>
|
|
313
|
+
`;
|
|
314
|
+
|
|
315
|
+
exports[`Button Presets Should render preset BRAND_TINTED_OUTLINE in selected state 1`] = `
|
|
316
|
+
<DocumentFragment>
|
|
317
|
+
<button
|
|
318
|
+
aria-busy="false"
|
|
319
|
+
aria-disabled="false"
|
|
320
|
+
aria-pressed="true"
|
|
321
|
+
class="buttonReset button selected:bg-brand-10 selected:text-brand-80 selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
|
|
70
322
|
type="button"
|
|
71
323
|
>
|
|
72
324
|
<div
|
|
73
|
-
class="flex row
|
|
325
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
74
326
|
data-id="flex"
|
|
75
327
|
data-test-id="flex"
|
|
76
328
|
>
|
|
@@ -84,18 +336,676 @@ exports[`Button - Component Should apply customProps to wrapper, text and icon 1
|
|
|
84
336
|
</DocumentFragment>
|
|
85
337
|
`;
|
|
86
338
|
|
|
87
|
-
exports[`Button
|
|
339
|
+
exports[`Button Presets Should render preset SECONDARY_GHOST_BRAND_TINTED_ONSELECT 1`] = `
|
|
340
|
+
<DocumentFragment>
|
|
341
|
+
<button
|
|
342
|
+
aria-busy="false"
|
|
343
|
+
aria-disabled="false"
|
|
344
|
+
aria-pressed="false"
|
|
345
|
+
class="buttonReset button text-black hover:text-black focus:text-black active:text-black border-grey-65 hover:border-grey-55 focus:border-grey-55 active:border-grey-55 sizeMedium shapeRoundedRectangle variantText"
|
|
346
|
+
type="button"
|
|
347
|
+
>
|
|
348
|
+
<div
|
|
349
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
350
|
+
data-id="flex"
|
|
351
|
+
data-test-id="flex"
|
|
352
|
+
>
|
|
353
|
+
<div
|
|
354
|
+
class="dotted size13"
|
|
355
|
+
>
|
|
356
|
+
Button
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
</button>
|
|
360
|
+
</DocumentFragment>
|
|
361
|
+
`;
|
|
362
|
+
|
|
363
|
+
exports[`Button Presets Should render preset SECONDARY_GHOST_BRAND_TINTED_ONSELECT in selected state 1`] = `
|
|
364
|
+
<DocumentFragment>
|
|
365
|
+
<button
|
|
366
|
+
aria-busy="false"
|
|
367
|
+
aria-disabled="false"
|
|
368
|
+
aria-pressed="true"
|
|
369
|
+
class="buttonReset button selected:bg-brand-10 selected:text-black selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
|
|
370
|
+
type="button"
|
|
371
|
+
>
|
|
372
|
+
<div
|
|
373
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
374
|
+
data-id="flex"
|
|
375
|
+
data-test-id="flex"
|
|
376
|
+
>
|
|
377
|
+
<div
|
|
378
|
+
class="dotted size13"
|
|
379
|
+
>
|
|
380
|
+
Button
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
</button>
|
|
384
|
+
</DocumentFragment>
|
|
385
|
+
`;
|
|
386
|
+
|
|
387
|
+
exports[`Button Presets Should render preset SECONDARY_GHOST_CANCEL 1`] = `
|
|
388
|
+
<DocumentFragment>
|
|
389
|
+
<button
|
|
390
|
+
aria-busy="false"
|
|
391
|
+
aria-disabled="false"
|
|
392
|
+
aria-pressed="false"
|
|
393
|
+
class="buttonReset button text-grey-65 hover:text-grey-100 focus:text-grey-100 active:text-grey-100 border-grey-65 hover:border-grey-55 focus:border-grey-55 active:border-grey-55 sizeMedium shapeRoundedRectangle variantText"
|
|
394
|
+
type="button"
|
|
395
|
+
>
|
|
396
|
+
<div
|
|
397
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
398
|
+
data-id="flex"
|
|
399
|
+
data-test-id="flex"
|
|
400
|
+
>
|
|
401
|
+
<div
|
|
402
|
+
class="dotted size13"
|
|
403
|
+
>
|
|
404
|
+
Button
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</button>
|
|
408
|
+
</DocumentFragment>
|
|
409
|
+
`;
|
|
410
|
+
|
|
411
|
+
exports[`Button Presets Should render preset SECONDARY_GHOST_CANCEL in selected state 1`] = `
|
|
412
|
+
<DocumentFragment>
|
|
413
|
+
<button
|
|
414
|
+
aria-busy="false"
|
|
415
|
+
aria-disabled="false"
|
|
416
|
+
aria-pressed="true"
|
|
417
|
+
class="buttonReset button selected:bg-grey-65 selected:text-white border-grey-65 sizeMedium shapeRoundedRectangle variantText"
|
|
418
|
+
type="button"
|
|
419
|
+
>
|
|
420
|
+
<div
|
|
421
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
422
|
+
data-id="flex"
|
|
423
|
+
data-test-id="flex"
|
|
424
|
+
>
|
|
425
|
+
<div
|
|
426
|
+
class="dotted size13"
|
|
427
|
+
>
|
|
428
|
+
Button
|
|
429
|
+
</div>
|
|
430
|
+
</div>
|
|
431
|
+
</button>
|
|
432
|
+
</DocumentFragment>
|
|
433
|
+
`;
|
|
434
|
+
|
|
435
|
+
exports[`Button Presets Should render preset SUCCESS_GHOST 1`] = `
|
|
436
|
+
<DocumentFragment>
|
|
437
|
+
<button
|
|
438
|
+
aria-busy="false"
|
|
439
|
+
aria-disabled="false"
|
|
440
|
+
aria-pressed="false"
|
|
441
|
+
class="buttonReset button text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-green-80 hover:border-green-100 focus:border-green-100 active:border-green-100 sizeMedium shapeRoundedRectangle variantText"
|
|
442
|
+
type="button"
|
|
443
|
+
>
|
|
444
|
+
<div
|
|
445
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
446
|
+
data-id="flex"
|
|
447
|
+
data-test-id="flex"
|
|
448
|
+
>
|
|
449
|
+
<div
|
|
450
|
+
class="dotted size13"
|
|
451
|
+
>
|
|
452
|
+
Button
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
</button>
|
|
456
|
+
</DocumentFragment>
|
|
457
|
+
`;
|
|
458
|
+
|
|
459
|
+
exports[`Button Presets Should render preset SUCCESS_GHOST in selected state 1`] = `
|
|
460
|
+
<DocumentFragment>
|
|
461
|
+
<button
|
|
462
|
+
aria-busy="false"
|
|
463
|
+
aria-disabled="false"
|
|
464
|
+
aria-pressed="true"
|
|
465
|
+
class="buttonReset button selected:text-green-80 selected:border-green-80 sizeMedium shapeRoundedRectangle variantText"
|
|
466
|
+
type="button"
|
|
467
|
+
>
|
|
468
|
+
<div
|
|
469
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
470
|
+
data-id="flex"
|
|
471
|
+
data-test-id="flex"
|
|
472
|
+
>
|
|
473
|
+
<div
|
|
474
|
+
class="dotted size13"
|
|
475
|
+
>
|
|
476
|
+
Button
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
479
|
+
</button>
|
|
480
|
+
</DocumentFragment>
|
|
481
|
+
`;
|
|
482
|
+
|
|
483
|
+
exports[`Button Presets Should render preset SUCCESS_TEXT_ONLY 1`] = `
|
|
484
|
+
<DocumentFragment>
|
|
485
|
+
<button
|
|
486
|
+
aria-busy="false"
|
|
487
|
+
aria-disabled="false"
|
|
488
|
+
aria-pressed="false"
|
|
489
|
+
class="buttonReset button text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
490
|
+
type="button"
|
|
491
|
+
>
|
|
492
|
+
<div
|
|
493
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
494
|
+
data-id="flex"
|
|
495
|
+
data-test-id="flex"
|
|
496
|
+
>
|
|
497
|
+
<div
|
|
498
|
+
class="dotted size13"
|
|
499
|
+
>
|
|
500
|
+
Button
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
</button>
|
|
504
|
+
</DocumentFragment>
|
|
505
|
+
`;
|
|
506
|
+
|
|
507
|
+
exports[`Button Presets Should render preset SUCCESS_TEXT_ONLY in selected state 1`] = `
|
|
508
|
+
<DocumentFragment>
|
|
509
|
+
<button
|
|
510
|
+
aria-busy="false"
|
|
511
|
+
aria-disabled="false"
|
|
512
|
+
aria-pressed="true"
|
|
513
|
+
class="buttonReset button selected:text-green-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
514
|
+
type="button"
|
|
515
|
+
>
|
|
516
|
+
<div
|
|
517
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
518
|
+
data-id="flex"
|
|
519
|
+
data-test-id="flex"
|
|
520
|
+
>
|
|
521
|
+
<div
|
|
522
|
+
class="dotted size13"
|
|
523
|
+
>
|
|
524
|
+
Button
|
|
525
|
+
</div>
|
|
526
|
+
</div>
|
|
527
|
+
</button>
|
|
528
|
+
</DocumentFragment>
|
|
529
|
+
`;
|
|
530
|
+
|
|
531
|
+
exports[`Button Presets Should render preset SUCCESS_TINTED_OUTLINE 1`] = `
|
|
532
|
+
<DocumentFragment>
|
|
533
|
+
<button
|
|
534
|
+
aria-busy="false"
|
|
535
|
+
aria-disabled="false"
|
|
536
|
+
aria-pressed="false"
|
|
537
|
+
class="buttonReset button bg-green-10 hover:bg-green-30 focus:bg-green-30 active:bg-green-30 text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-green-30 hover:border-green-100 focus:border-green-100 active:border-green-100 sizeMedium shapeRoundedRectangle variantText"
|
|
538
|
+
type="button"
|
|
539
|
+
>
|
|
540
|
+
<div
|
|
541
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
542
|
+
data-id="flex"
|
|
543
|
+
data-test-id="flex"
|
|
544
|
+
>
|
|
545
|
+
<div
|
|
546
|
+
class="dotted size13"
|
|
547
|
+
>
|
|
548
|
+
Button
|
|
549
|
+
</div>
|
|
550
|
+
</div>
|
|
551
|
+
</button>
|
|
552
|
+
</DocumentFragment>
|
|
553
|
+
`;
|
|
554
|
+
|
|
555
|
+
exports[`Button Presets Should render preset SUCCESS_TINTED_OUTLINE in selected state 1`] = `
|
|
556
|
+
<DocumentFragment>
|
|
557
|
+
<button
|
|
558
|
+
aria-busy="false"
|
|
559
|
+
aria-disabled="false"
|
|
560
|
+
aria-pressed="true"
|
|
561
|
+
class="buttonReset button selected:bg-green-10 selected:text-green-80 selected:border-green-30 sizeMedium shapeRoundedRectangle variantText"
|
|
562
|
+
type="button"
|
|
563
|
+
>
|
|
564
|
+
<div
|
|
565
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
566
|
+
data-id="flex"
|
|
567
|
+
data-test-id="flex"
|
|
568
|
+
>
|
|
569
|
+
<div
|
|
570
|
+
class="dotted size13"
|
|
571
|
+
>
|
|
572
|
+
Button
|
|
573
|
+
</div>
|
|
574
|
+
</div>
|
|
575
|
+
</button>
|
|
576
|
+
</DocumentFragment>
|
|
577
|
+
`;
|
|
578
|
+
|
|
579
|
+
exports[`Button Should apply a11yAttributes to the button 1`] = `
|
|
580
|
+
<DocumentFragment>
|
|
581
|
+
<button
|
|
582
|
+
aria-busy="false"
|
|
583
|
+
aria-describedby="button-description"
|
|
584
|
+
aria-disabled="false"
|
|
585
|
+
aria-label="Smart Button"
|
|
586
|
+
aria-pressed="false"
|
|
587
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
588
|
+
type="button"
|
|
589
|
+
>
|
|
590
|
+
<div
|
|
591
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
592
|
+
data-id="flex"
|
|
593
|
+
data-test-id="flex"
|
|
594
|
+
>
|
|
595
|
+
<div
|
|
596
|
+
class="dotted size13"
|
|
597
|
+
>
|
|
598
|
+
Button
|
|
599
|
+
</div>
|
|
600
|
+
</div>
|
|
601
|
+
</button>
|
|
602
|
+
</DocumentFragment>
|
|
603
|
+
`;
|
|
604
|
+
|
|
605
|
+
exports[`Button Should apply customAttributes to button elements 1`] = `
|
|
606
|
+
<DocumentFragment>
|
|
607
|
+
<button
|
|
608
|
+
aria-busy="false"
|
|
609
|
+
aria-disabled="false"
|
|
610
|
+
aria-pressed="false"
|
|
611
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
612
|
+
data-wrapper="wrapperAttr"
|
|
613
|
+
type="button"
|
|
614
|
+
>
|
|
615
|
+
<div
|
|
616
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
617
|
+
data-id="flex"
|
|
618
|
+
data-test-id="flex"
|
|
619
|
+
>
|
|
620
|
+
<div
|
|
621
|
+
class="dotted size13"
|
|
622
|
+
data-text="textAttr"
|
|
623
|
+
>
|
|
624
|
+
Button
|
|
625
|
+
</div>
|
|
626
|
+
</div>
|
|
627
|
+
</button>
|
|
628
|
+
</DocumentFragment>
|
|
629
|
+
`;
|
|
630
|
+
|
|
631
|
+
exports[`Button Should apply customClass to wrapper, text and icon 1`] = `
|
|
632
|
+
<DocumentFragment>
|
|
633
|
+
<button
|
|
634
|
+
aria-busy="false"
|
|
635
|
+
aria-disabled="false"
|
|
636
|
+
aria-pressed="false"
|
|
637
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText customButtonClass"
|
|
638
|
+
type="button"
|
|
639
|
+
>
|
|
640
|
+
<div
|
|
641
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
642
|
+
data-id="flex"
|
|
643
|
+
data-test-id="flex"
|
|
644
|
+
>
|
|
645
|
+
<i
|
|
646
|
+
aria-hidden="true"
|
|
647
|
+
class="zd_font_icons ff icon-plus basic d-inline-block d-align-middle customIconClass"
|
|
648
|
+
data-id="fontIcon"
|
|
649
|
+
data-selector-id="fontIcon"
|
|
650
|
+
data-test-id="fontIcon"
|
|
651
|
+
style="--zd-iconfont-size: var(--zd_font_size16);"
|
|
652
|
+
/>
|
|
653
|
+
<div
|
|
654
|
+
class="dotted size13 customTextClass"
|
|
655
|
+
>
|
|
656
|
+
Button
|
|
657
|
+
</div>
|
|
658
|
+
</div>
|
|
659
|
+
</button>
|
|
660
|
+
</DocumentFragment>
|
|
661
|
+
`;
|
|
662
|
+
|
|
663
|
+
exports[`Button Should apply customProps to wrapper, text and icon 1`] = `
|
|
664
|
+
<DocumentFragment>
|
|
665
|
+
<button
|
|
666
|
+
aria-busy="false"
|
|
667
|
+
aria-disabled="false"
|
|
668
|
+
aria-pressed="false"
|
|
669
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
|
|
670
|
+
type="button"
|
|
671
|
+
>
|
|
672
|
+
<div
|
|
673
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
674
|
+
data-id="flex"
|
|
675
|
+
data-test-id="flex"
|
|
676
|
+
>
|
|
677
|
+
<div
|
|
678
|
+
class="dotted size13"
|
|
679
|
+
>
|
|
680
|
+
Button
|
|
681
|
+
</div>
|
|
682
|
+
</div>
|
|
683
|
+
</button>
|
|
684
|
+
</DocumentFragment>
|
|
685
|
+
`;
|
|
686
|
+
|
|
687
|
+
exports[`Button Should be disabled when isDisabled prop is true 1`] = `
|
|
688
|
+
<DocumentFragment>
|
|
689
|
+
<button
|
|
690
|
+
aria-busy="false"
|
|
691
|
+
aria-disabled="true"
|
|
692
|
+
aria-pressed="false"
|
|
693
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledOpac disabledPointer"
|
|
694
|
+
type="button"
|
|
695
|
+
>
|
|
696
|
+
<div
|
|
697
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
698
|
+
data-id="flex"
|
|
699
|
+
data-test-id="flex"
|
|
700
|
+
/>
|
|
701
|
+
</button>
|
|
702
|
+
</DocumentFragment>
|
|
703
|
+
`;
|
|
704
|
+
|
|
705
|
+
exports[`Button Should render Sizes of buttons - full 1`] = `
|
|
706
|
+
<DocumentFragment>
|
|
707
|
+
<button
|
|
708
|
+
aria-busy="false"
|
|
709
|
+
aria-disabled="false"
|
|
710
|
+
aria-pressed="false"
|
|
711
|
+
class="buttonReset button border-transparent sizeFull shapeRoundedRectangle variantText"
|
|
712
|
+
type="button"
|
|
713
|
+
>
|
|
714
|
+
<div
|
|
715
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
716
|
+
data-id="flex"
|
|
717
|
+
data-test-id="flex"
|
|
718
|
+
/>
|
|
719
|
+
</button>
|
|
720
|
+
</DocumentFragment>
|
|
721
|
+
`;
|
|
722
|
+
|
|
723
|
+
exports[`Button Should render Sizes of buttons - large 1`] = `
|
|
724
|
+
<DocumentFragment>
|
|
725
|
+
<button
|
|
726
|
+
aria-busy="false"
|
|
727
|
+
aria-disabled="false"
|
|
728
|
+
aria-pressed="false"
|
|
729
|
+
class="buttonReset button border-transparent sizeLarge shapeRoundedRectangle variantText"
|
|
730
|
+
type="button"
|
|
731
|
+
>
|
|
732
|
+
<div
|
|
733
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
734
|
+
data-id="flex"
|
|
735
|
+
data-test-id="flex"
|
|
736
|
+
/>
|
|
737
|
+
</button>
|
|
738
|
+
</DocumentFragment>
|
|
739
|
+
`;
|
|
740
|
+
|
|
741
|
+
exports[`Button Should render Sizes of buttons - medium 1`] = `
|
|
742
|
+
<DocumentFragment>
|
|
743
|
+
<button
|
|
744
|
+
aria-busy="false"
|
|
745
|
+
aria-disabled="false"
|
|
746
|
+
aria-pressed="false"
|
|
747
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
748
|
+
type="button"
|
|
749
|
+
>
|
|
750
|
+
<div
|
|
751
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
752
|
+
data-id="flex"
|
|
753
|
+
data-test-id="flex"
|
|
754
|
+
/>
|
|
755
|
+
</button>
|
|
756
|
+
</DocumentFragment>
|
|
757
|
+
`;
|
|
758
|
+
|
|
759
|
+
exports[`Button Should render Sizes of buttons - small 1`] = `
|
|
760
|
+
<DocumentFragment>
|
|
761
|
+
<button
|
|
762
|
+
aria-busy="false"
|
|
763
|
+
aria-disabled="false"
|
|
764
|
+
aria-pressed="false"
|
|
765
|
+
class="buttonReset button border-transparent sizeSmall shapeRoundedRectangle variantText"
|
|
766
|
+
type="button"
|
|
767
|
+
>
|
|
768
|
+
<div
|
|
769
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
770
|
+
data-id="flex"
|
|
771
|
+
data-test-id="flex"
|
|
772
|
+
/>
|
|
773
|
+
</button>
|
|
774
|
+
</DocumentFragment>
|
|
775
|
+
`;
|
|
776
|
+
|
|
777
|
+
exports[`Button Should render Status of buttons - default 1`] = `
|
|
778
|
+
<DocumentFragment>
|
|
779
|
+
<button
|
|
780
|
+
aria-busy="false"
|
|
781
|
+
aria-disabled="false"
|
|
782
|
+
aria-pressed="false"
|
|
783
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
784
|
+
type="button"
|
|
785
|
+
>
|
|
786
|
+
<div
|
|
787
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
788
|
+
data-id="flex"
|
|
789
|
+
data-test-id="flex"
|
|
790
|
+
/>
|
|
791
|
+
</button>
|
|
792
|
+
</DocumentFragment>
|
|
793
|
+
`;
|
|
794
|
+
|
|
795
|
+
exports[`Button Should render Status of buttons - loading 1`] = `
|
|
796
|
+
<DocumentFragment>
|
|
797
|
+
<button
|
|
798
|
+
aria-busy="true"
|
|
799
|
+
aria-disabled="true"
|
|
800
|
+
aria-pressed="false"
|
|
801
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
802
|
+
type="button"
|
|
803
|
+
>
|
|
804
|
+
<div
|
|
805
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
|
|
806
|
+
data-id="flex"
|
|
807
|
+
data-test-id="flex"
|
|
808
|
+
/>
|
|
809
|
+
<div
|
|
810
|
+
class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
|
|
811
|
+
data-id="flex"
|
|
812
|
+
data-test-id="flex"
|
|
813
|
+
>
|
|
814
|
+
<svg
|
|
815
|
+
aria-hidden="true"
|
|
816
|
+
class="spinner"
|
|
817
|
+
role="img"
|
|
818
|
+
viewBox="0 0 24 24"
|
|
819
|
+
>
|
|
820
|
+
<circle
|
|
821
|
+
class="spinnerTrack"
|
|
822
|
+
cx="12"
|
|
823
|
+
cy="12"
|
|
824
|
+
r="10"
|
|
825
|
+
/>
|
|
826
|
+
<circle
|
|
827
|
+
class="spinnerHead"
|
|
828
|
+
cx="12"
|
|
829
|
+
cy="12"
|
|
830
|
+
r="10"
|
|
831
|
+
/>
|
|
832
|
+
</svg>
|
|
833
|
+
</div>
|
|
834
|
+
</button>
|
|
835
|
+
</DocumentFragment>
|
|
836
|
+
`;
|
|
837
|
+
|
|
838
|
+
exports[`Button Should render Status of buttons - success 1`] = `
|
|
839
|
+
<DocumentFragment>
|
|
840
|
+
<button
|
|
841
|
+
aria-busy="false"
|
|
842
|
+
aria-disabled="false"
|
|
843
|
+
aria-pressed="false"
|
|
844
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
845
|
+
type="button"
|
|
846
|
+
>
|
|
847
|
+
<div
|
|
848
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
|
|
849
|
+
data-id="flex"
|
|
850
|
+
data-test-id="flex"
|
|
851
|
+
/>
|
|
852
|
+
<div
|
|
853
|
+
class="d-flex d-flex-row d-items-center d-justify-center successOverlay"
|
|
854
|
+
data-id="flex"
|
|
855
|
+
data-test-id="flex"
|
|
856
|
+
>
|
|
857
|
+
<svg
|
|
858
|
+
aria-hidden="true"
|
|
859
|
+
class="tick"
|
|
860
|
+
role="img"
|
|
861
|
+
viewBox="0 0 24 24"
|
|
862
|
+
>
|
|
863
|
+
<path
|
|
864
|
+
d="M4 12l5 5L20 6"
|
|
865
|
+
/>
|
|
866
|
+
</svg>
|
|
867
|
+
</div>
|
|
868
|
+
</button>
|
|
869
|
+
</DocumentFragment>
|
|
870
|
+
`;
|
|
871
|
+
|
|
872
|
+
exports[`Button Should render appearance of buttons - { bg: false, border: true } 1`] = `
|
|
873
|
+
<DocumentFragment>
|
|
874
|
+
<button
|
|
875
|
+
aria-busy="false"
|
|
876
|
+
aria-disabled="false"
|
|
877
|
+
aria-pressed="false"
|
|
878
|
+
class="buttonReset button hover:bg-brand-80 focus:bg-brand-80 active:bg-brand-80 text-brand-80 hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
879
|
+
type="button"
|
|
880
|
+
>
|
|
881
|
+
<div
|
|
882
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
883
|
+
data-id="flex"
|
|
884
|
+
data-test-id="flex"
|
|
885
|
+
/>
|
|
886
|
+
</button>
|
|
887
|
+
</DocumentFragment>
|
|
888
|
+
`;
|
|
889
|
+
|
|
890
|
+
exports[`Button Should render appearance of buttons - { bg: true, text: 'black' } 1`] = `
|
|
891
|
+
<DocumentFragment>
|
|
892
|
+
<button
|
|
893
|
+
aria-busy="false"
|
|
894
|
+
aria-disabled="false"
|
|
895
|
+
aria-pressed="false"
|
|
896
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-black hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
897
|
+
type="button"
|
|
898
|
+
>
|
|
899
|
+
<div
|
|
900
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
901
|
+
data-id="flex"
|
|
902
|
+
data-test-id="flex"
|
|
903
|
+
/>
|
|
904
|
+
</button>
|
|
905
|
+
</DocumentFragment>
|
|
906
|
+
`;
|
|
907
|
+
|
|
908
|
+
exports[`Button Should render appearance of buttons - { border: true } 1`] = `
|
|
909
|
+
<DocumentFragment>
|
|
910
|
+
<button
|
|
911
|
+
aria-busy="false"
|
|
912
|
+
aria-disabled="false"
|
|
913
|
+
aria-pressed="false"
|
|
914
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
915
|
+
type="button"
|
|
916
|
+
>
|
|
917
|
+
<div
|
|
918
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
919
|
+
data-id="flex"
|
|
920
|
+
data-test-id="flex"
|
|
921
|
+
/>
|
|
922
|
+
</button>
|
|
923
|
+
</DocumentFragment>
|
|
924
|
+
`;
|
|
925
|
+
|
|
926
|
+
exports[`Button Should render appearance of buttons - { text: true } 1`] = `
|
|
927
|
+
<DocumentFragment>
|
|
928
|
+
<button
|
|
929
|
+
aria-busy="false"
|
|
930
|
+
aria-disabled="false"
|
|
931
|
+
aria-pressed="false"
|
|
932
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
933
|
+
type="button"
|
|
934
|
+
>
|
|
935
|
+
<div
|
|
936
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
937
|
+
data-id="flex"
|
|
938
|
+
data-test-id="flex"
|
|
939
|
+
/>
|
|
940
|
+
</button>
|
|
941
|
+
</DocumentFragment>
|
|
942
|
+
`;
|
|
943
|
+
|
|
944
|
+
exports[`Button Should render appearance of buttons - {} 1`] = `
|
|
945
|
+
<DocumentFragment>
|
|
946
|
+
<button
|
|
947
|
+
aria-busy="false"
|
|
948
|
+
aria-disabled="false"
|
|
949
|
+
aria-pressed="false"
|
|
950
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
951
|
+
type="button"
|
|
952
|
+
>
|
|
953
|
+
<div
|
|
954
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
955
|
+
data-id="flex"
|
|
956
|
+
data-test-id="flex"
|
|
957
|
+
/>
|
|
958
|
+
</button>
|
|
959
|
+
</DocumentFragment>
|
|
960
|
+
`;
|
|
961
|
+
|
|
962
|
+
exports[`Button Should render disabledAppearance of buttons - dull 1`] = `
|
|
963
|
+
<DocumentFragment>
|
|
964
|
+
<button
|
|
965
|
+
aria-busy="false"
|
|
966
|
+
aria-disabled="true"
|
|
967
|
+
aria-pressed="false"
|
|
968
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledOpac disabledPointer"
|
|
969
|
+
type="button"
|
|
970
|
+
>
|
|
971
|
+
<div
|
|
972
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
973
|
+
data-id="flex"
|
|
974
|
+
data-test-id="flex"
|
|
975
|
+
/>
|
|
976
|
+
</button>
|
|
977
|
+
</DocumentFragment>
|
|
978
|
+
`;
|
|
979
|
+
|
|
980
|
+
exports[`Button Should render disabledAppearance of buttons - none 1`] = `
|
|
981
|
+
<DocumentFragment>
|
|
982
|
+
<button
|
|
983
|
+
aria-busy="false"
|
|
984
|
+
aria-disabled="true"
|
|
985
|
+
aria-pressed="false"
|
|
986
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledPointer"
|
|
987
|
+
type="button"
|
|
988
|
+
>
|
|
989
|
+
<div
|
|
990
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
991
|
+
data-id="flex"
|
|
992
|
+
data-test-id="flex"
|
|
993
|
+
/>
|
|
994
|
+
</button>
|
|
995
|
+
</DocumentFragment>
|
|
996
|
+
`;
|
|
997
|
+
|
|
998
|
+
exports[`Button Should render disabledAppearance of buttons - strike 1`] = `
|
|
88
999
|
<DocumentFragment>
|
|
89
1000
|
<button
|
|
90
1001
|
aria-busy="false"
|
|
91
1002
|
aria-disabled="true"
|
|
92
1003
|
aria-pressed="false"
|
|
93
|
-
|
|
94
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
|
|
1004
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledPointer strike"
|
|
95
1005
|
type="button"
|
|
96
1006
|
>
|
|
97
1007
|
<div
|
|
98
|
-
class="flex row
|
|
1008
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
99
1009
|
data-id="flex"
|
|
100
1010
|
data-test-id="flex"
|
|
101
1011
|
/>
|
|
@@ -103,18 +1013,17 @@ exports[`Button - Component Should be disabled when isDisabled prop is true 1`]
|
|
|
103
1013
|
</DocumentFragment>
|
|
104
1014
|
`;
|
|
105
1015
|
|
|
106
|
-
exports[`Button
|
|
1016
|
+
exports[`Button Should render hoverAppearance of buttons - { bg: false, border: true } 1`] = `
|
|
107
1017
|
<DocumentFragment>
|
|
108
1018
|
<button
|
|
109
1019
|
aria-busy="false"
|
|
110
1020
|
aria-disabled="false"
|
|
111
1021
|
aria-pressed="false"
|
|
112
|
-
|
|
113
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeFull shapeRoundedRectangle"
|
|
1022
|
+
class="buttonReset button bg-brand-80 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent hover:border-brand-80 focus:border-brand-80 active:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
114
1023
|
type="button"
|
|
115
1024
|
>
|
|
116
1025
|
<div
|
|
117
|
-
class="flex row
|
|
1026
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
118
1027
|
data-id="flex"
|
|
119
1028
|
data-test-id="flex"
|
|
120
1029
|
/>
|
|
@@ -122,18 +1031,17 @@ exports[`Button - Component Should render Sizes of buttons - full 1`] = `
|
|
|
122
1031
|
</DocumentFragment>
|
|
123
1032
|
`;
|
|
124
1033
|
|
|
125
|
-
exports[`Button
|
|
1034
|
+
exports[`Button Should render hoverAppearance of buttons - { bg: true, text: 'black' } 1`] = `
|
|
126
1035
|
<DocumentFragment>
|
|
127
1036
|
<button
|
|
128
1037
|
aria-busy="false"
|
|
129
1038
|
aria-disabled="false"
|
|
130
1039
|
aria-pressed="false"
|
|
131
|
-
|
|
132
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeLarge shapeRoundedRectangle"
|
|
1040
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-black focus:text-black active:text-black border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
133
1041
|
type="button"
|
|
134
1042
|
>
|
|
135
1043
|
<div
|
|
136
|
-
class="flex row
|
|
1044
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
137
1045
|
data-id="flex"
|
|
138
1046
|
data-test-id="flex"
|
|
139
1047
|
/>
|
|
@@ -141,18 +1049,17 @@ exports[`Button - Component Should render Sizes of buttons - large 1`] = `
|
|
|
141
1049
|
</DocumentFragment>
|
|
142
1050
|
`;
|
|
143
1051
|
|
|
144
|
-
exports[`Button
|
|
1052
|
+
exports[`Button Should render hoverAppearance of buttons - { border: true } 1`] = `
|
|
145
1053
|
<DocumentFragment>
|
|
146
1054
|
<button
|
|
147
1055
|
aria-busy="false"
|
|
148
1056
|
aria-disabled="false"
|
|
149
1057
|
aria-pressed="false"
|
|
150
|
-
|
|
151
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1058
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent hover:border-brand-80 focus:border-brand-80 active:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
152
1059
|
type="button"
|
|
153
1060
|
>
|
|
154
1061
|
<div
|
|
155
|
-
class="flex row
|
|
1062
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
156
1063
|
data-id="flex"
|
|
157
1064
|
data-test-id="flex"
|
|
158
1065
|
/>
|
|
@@ -160,18 +1067,17 @@ exports[`Button - Component Should render Sizes of buttons - medium 1`] = `
|
|
|
160
1067
|
</DocumentFragment>
|
|
161
1068
|
`;
|
|
162
1069
|
|
|
163
|
-
exports[`Button
|
|
1070
|
+
exports[`Button Should render hoverAppearance of buttons - { text: true } 1`] = `
|
|
164
1071
|
<DocumentFragment>
|
|
165
1072
|
<button
|
|
166
1073
|
aria-busy="false"
|
|
167
1074
|
aria-disabled="false"
|
|
168
1075
|
aria-pressed="false"
|
|
169
|
-
|
|
170
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeSmall shapeRoundedRectangle"
|
|
1076
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
171
1077
|
type="button"
|
|
172
1078
|
>
|
|
173
1079
|
<div
|
|
174
|
-
class="flex row
|
|
1080
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
175
1081
|
data-id="flex"
|
|
176
1082
|
data-test-id="flex"
|
|
177
1083
|
/>
|
|
@@ -179,18 +1085,17 @@ exports[`Button - Component Should render Sizes of buttons - small 1`] = `
|
|
|
179
1085
|
</DocumentFragment>
|
|
180
1086
|
`;
|
|
181
1087
|
|
|
182
|
-
exports[`Button
|
|
1088
|
+
exports[`Button Should render hoverAppearance of buttons - {} 1`] = `
|
|
183
1089
|
<DocumentFragment>
|
|
184
1090
|
<button
|
|
185
1091
|
aria-busy="false"
|
|
186
1092
|
aria-disabled="false"
|
|
187
1093
|
aria-pressed="false"
|
|
188
|
-
|
|
189
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1094
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
190
1095
|
type="button"
|
|
191
1096
|
>
|
|
192
1097
|
<div
|
|
193
|
-
class="flex row
|
|
1098
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
194
1099
|
data-id="flex"
|
|
195
1100
|
data-test-id="flex"
|
|
196
1101
|
/>
|
|
@@ -198,23 +1103,22 @@ exports[`Button - Component Should render Status of buttons - default 1`] = `
|
|
|
198
1103
|
</DocumentFragment>
|
|
199
1104
|
`;
|
|
200
1105
|
|
|
201
|
-
exports[`Button
|
|
1106
|
+
exports[`Button Should render loader overlay when status is loading and loaderPlacement is overlay 1`] = `
|
|
202
1107
|
<DocumentFragment>
|
|
203
1108
|
<button
|
|
204
1109
|
aria-busy="true"
|
|
205
1110
|
aria-disabled="true"
|
|
206
1111
|
aria-pressed="false"
|
|
207
|
-
|
|
208
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
|
|
1112
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
209
1113
|
type="button"
|
|
210
1114
|
>
|
|
211
1115
|
<div
|
|
212
|
-
class="flex row
|
|
1116
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
|
|
213
1117
|
data-id="flex"
|
|
214
1118
|
data-test-id="flex"
|
|
215
1119
|
/>
|
|
216
1120
|
<div
|
|
217
|
-
class="flex row
|
|
1121
|
+
class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
|
|
218
1122
|
data-id="flex"
|
|
219
1123
|
data-test-id="flex"
|
|
220
1124
|
>
|
|
@@ -242,34 +1146,86 @@ exports[`Button - Component Should render Status of buttons - loading 1`] = `
|
|
|
242
1146
|
</DocumentFragment>
|
|
243
1147
|
`;
|
|
244
1148
|
|
|
245
|
-
exports[`Button
|
|
1149
|
+
exports[`Button Should render loaderPlacement of buttons - end 1`] = `
|
|
246
1150
|
<DocumentFragment>
|
|
247
1151
|
<button
|
|
248
|
-
aria-busy="
|
|
249
|
-
aria-disabled="
|
|
1152
|
+
aria-busy="true"
|
|
1153
|
+
aria-disabled="true"
|
|
1154
|
+
aria-pressed="false"
|
|
1155
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
1156
|
+
type="button"
|
|
1157
|
+
>
|
|
1158
|
+
<div
|
|
1159
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
1160
|
+
data-id="flex"
|
|
1161
|
+
data-test-id="flex"
|
|
1162
|
+
>
|
|
1163
|
+
<div
|
|
1164
|
+
class="d-flex d-flex-row d-items-center d-justify-center"
|
|
1165
|
+
data-id="flex"
|
|
1166
|
+
data-test-id="flex"
|
|
1167
|
+
>
|
|
1168
|
+
<svg
|
|
1169
|
+
aria-hidden="true"
|
|
1170
|
+
class="spinner"
|
|
1171
|
+
role="img"
|
|
1172
|
+
viewBox="0 0 24 24"
|
|
1173
|
+
>
|
|
1174
|
+
<circle
|
|
1175
|
+
class="spinnerTrack"
|
|
1176
|
+
cx="12"
|
|
1177
|
+
cy="12"
|
|
1178
|
+
r="10"
|
|
1179
|
+
/>
|
|
1180
|
+
<circle
|
|
1181
|
+
class="spinnerHead"
|
|
1182
|
+
cx="12"
|
|
1183
|
+
cy="12"
|
|
1184
|
+
r="10"
|
|
1185
|
+
/>
|
|
1186
|
+
</svg>
|
|
1187
|
+
</div>
|
|
1188
|
+
</div>
|
|
1189
|
+
</button>
|
|
1190
|
+
</DocumentFragment>
|
|
1191
|
+
`;
|
|
1192
|
+
|
|
1193
|
+
exports[`Button Should render loaderPlacement of buttons - overlay 1`] = `
|
|
1194
|
+
<DocumentFragment>
|
|
1195
|
+
<button
|
|
1196
|
+
aria-busy="true"
|
|
1197
|
+
aria-disabled="true"
|
|
250
1198
|
aria-pressed="false"
|
|
251
|
-
|
|
252
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1199
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
253
1200
|
type="button"
|
|
254
1201
|
>
|
|
255
1202
|
<div
|
|
256
|
-
class="flex row
|
|
1203
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
|
|
257
1204
|
data-id="flex"
|
|
258
1205
|
data-test-id="flex"
|
|
259
1206
|
/>
|
|
260
1207
|
<div
|
|
261
|
-
class="flex row
|
|
1208
|
+
class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
|
|
262
1209
|
data-id="flex"
|
|
263
1210
|
data-test-id="flex"
|
|
264
1211
|
>
|
|
265
1212
|
<svg
|
|
266
1213
|
aria-hidden="true"
|
|
267
|
-
class="
|
|
1214
|
+
class="spinner"
|
|
268
1215
|
role="img"
|
|
269
1216
|
viewBox="0 0 24 24"
|
|
270
1217
|
>
|
|
271
|
-
<
|
|
272
|
-
|
|
1218
|
+
<circle
|
|
1219
|
+
class="spinnerTrack"
|
|
1220
|
+
cx="12"
|
|
1221
|
+
cy="12"
|
|
1222
|
+
r="10"
|
|
1223
|
+
/>
|
|
1224
|
+
<circle
|
|
1225
|
+
class="spinnerHead"
|
|
1226
|
+
cx="12"
|
|
1227
|
+
cy="12"
|
|
1228
|
+
r="10"
|
|
273
1229
|
/>
|
|
274
1230
|
</svg>
|
|
275
1231
|
</div>
|
|
@@ -277,37 +1233,61 @@ exports[`Button - Component Should render Status of buttons - success 1`] = `
|
|
|
277
1233
|
</DocumentFragment>
|
|
278
1234
|
`;
|
|
279
1235
|
|
|
280
|
-
exports[`Button
|
|
1236
|
+
exports[`Button Should render loaderPlacement of buttons - start 1`] = `
|
|
281
1237
|
<DocumentFragment>
|
|
282
1238
|
<button
|
|
283
|
-
aria-busy="
|
|
284
|
-
aria-disabled="
|
|
1239
|
+
aria-busy="true"
|
|
1240
|
+
aria-disabled="true"
|
|
285
1241
|
aria-pressed="false"
|
|
286
|
-
|
|
287
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1242
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
288
1243
|
type="button"
|
|
289
1244
|
>
|
|
290
1245
|
<div
|
|
291
|
-
class="flex row
|
|
1246
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
292
1247
|
data-id="flex"
|
|
293
1248
|
data-test-id="flex"
|
|
294
|
-
|
|
1249
|
+
>
|
|
1250
|
+
<div
|
|
1251
|
+
class="d-flex d-flex-row d-items-center d-justify-center"
|
|
1252
|
+
data-id="flex"
|
|
1253
|
+
data-test-id="flex"
|
|
1254
|
+
>
|
|
1255
|
+
<svg
|
|
1256
|
+
aria-hidden="true"
|
|
1257
|
+
class="spinner"
|
|
1258
|
+
role="img"
|
|
1259
|
+
viewBox="0 0 24 24"
|
|
1260
|
+
>
|
|
1261
|
+
<circle
|
|
1262
|
+
class="spinnerTrack"
|
|
1263
|
+
cx="12"
|
|
1264
|
+
cy="12"
|
|
1265
|
+
r="10"
|
|
1266
|
+
/>
|
|
1267
|
+
<circle
|
|
1268
|
+
class="spinnerHead"
|
|
1269
|
+
cx="12"
|
|
1270
|
+
cy="12"
|
|
1271
|
+
r="10"
|
|
1272
|
+
/>
|
|
1273
|
+
</svg>
|
|
1274
|
+
</div>
|
|
1275
|
+
</div>
|
|
295
1276
|
</button>
|
|
296
1277
|
</DocumentFragment>
|
|
297
1278
|
`;
|
|
298
1279
|
|
|
299
|
-
exports[`Button
|
|
1280
|
+
exports[`Button Should render palette of buttons - brand 1`] = `
|
|
300
1281
|
<DocumentFragment>
|
|
301
1282
|
<button
|
|
302
1283
|
aria-busy="false"
|
|
303
1284
|
aria-disabled="false"
|
|
304
1285
|
aria-pressed="false"
|
|
305
|
-
|
|
306
|
-
class="buttonReset button text-brand-80 border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1286
|
+
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
307
1287
|
type="button"
|
|
308
1288
|
>
|
|
309
1289
|
<div
|
|
310
|
-
class="flex row
|
|
1290
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
311
1291
|
data-id="flex"
|
|
312
1292
|
data-test-id="flex"
|
|
313
1293
|
/>
|
|
@@ -315,18 +1295,17 @@ exports[`Button - Component Should render bgAppearance of buttons - none 1`] = `
|
|
|
315
1295
|
</DocumentFragment>
|
|
316
1296
|
`;
|
|
317
1297
|
|
|
318
|
-
exports[`Button
|
|
1298
|
+
exports[`Button Should render palette of buttons - brandLighter 1`] = `
|
|
319
1299
|
<DocumentFragment>
|
|
320
1300
|
<button
|
|
321
1301
|
aria-busy="false"
|
|
322
1302
|
aria-disabled="false"
|
|
323
1303
|
aria-pressed="false"
|
|
324
|
-
|
|
325
|
-
class="buttonReset button text-brand-80 border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1304
|
+
class="buttonReset button bg-brand-10 hover:bg-brand-20 focus:bg-brand-20 active:bg-brand-20 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
326
1305
|
type="button"
|
|
327
1306
|
>
|
|
328
1307
|
<div
|
|
329
|
-
class="flex row
|
|
1308
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
330
1309
|
data-id="flex"
|
|
331
1310
|
data-test-id="flex"
|
|
332
1311
|
/>
|
|
@@ -334,18 +1313,17 @@ exports[`Button - Component Should render bgAppearance of buttons - onHover 1`]
|
|
|
334
1313
|
</DocumentFragment>
|
|
335
1314
|
`;
|
|
336
1315
|
|
|
337
|
-
exports[`Button
|
|
1316
|
+
exports[`Button Should render palette of buttons - danger 1`] = `
|
|
338
1317
|
<DocumentFragment>
|
|
339
1318
|
<button
|
|
340
1319
|
aria-busy="false"
|
|
341
1320
|
aria-disabled="false"
|
|
342
1321
|
aria-pressed="false"
|
|
343
|
-
|
|
344
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1322
|
+
class="buttonReset button bg-red-70 hover:bg-red-100 focus:bg-red-100 active:bg-red-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
345
1323
|
type="button"
|
|
346
1324
|
>
|
|
347
1325
|
<div
|
|
348
|
-
class="flex row
|
|
1326
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
349
1327
|
data-id="flex"
|
|
350
1328
|
data-test-id="flex"
|
|
351
1329
|
/>
|
|
@@ -353,18 +1331,17 @@ exports[`Button - Component Should render borderAppearance of buttons - default
|
|
|
353
1331
|
</DocumentFragment>
|
|
354
1332
|
`;
|
|
355
1333
|
|
|
356
|
-
exports[`Button
|
|
1334
|
+
exports[`Button Should render palette of buttons - dangerLighter 1`] = `
|
|
357
1335
|
<DocumentFragment>
|
|
358
1336
|
<button
|
|
359
1337
|
aria-busy="false"
|
|
360
1338
|
aria-disabled="false"
|
|
361
1339
|
aria-pressed="false"
|
|
362
|
-
|
|
363
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-transparent sizeMedium shapeRoundedRectangle"
|
|
1340
|
+
class="buttonReset button bg-red-10 hover:bg-red-30 focus:bg-red-30 active:bg-red-30 text-red-70 hover:text-red-100 focus:text-red-100 active:text-red-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
364
1341
|
type="button"
|
|
365
1342
|
>
|
|
366
1343
|
<div
|
|
367
|
-
class="flex row
|
|
1344
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
368
1345
|
data-id="flex"
|
|
369
1346
|
data-test-id="flex"
|
|
370
1347
|
/>
|
|
@@ -372,18 +1349,17 @@ exports[`Button - Component Should render borderAppearance of buttons - none 1`]
|
|
|
372
1349
|
</DocumentFragment>
|
|
373
1350
|
`;
|
|
374
1351
|
|
|
375
|
-
exports[`Button
|
|
1352
|
+
exports[`Button Should render palette of buttons - info 1`] = `
|
|
376
1353
|
<DocumentFragment>
|
|
377
1354
|
<button
|
|
378
1355
|
aria-busy="false"
|
|
379
1356
|
aria-disabled="false"
|
|
380
1357
|
aria-pressed="false"
|
|
381
|
-
|
|
382
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-transparent sizeMedium shapeRoundedRectangle"
|
|
1358
|
+
class="buttonReset button bg-blue-80 hover:bg-blue-100 focus:bg-blue-100 active:bg-blue-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
383
1359
|
type="button"
|
|
384
1360
|
>
|
|
385
1361
|
<div
|
|
386
|
-
class="flex row
|
|
1362
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
387
1363
|
data-id="flex"
|
|
388
1364
|
data-test-id="flex"
|
|
389
1365
|
/>
|
|
@@ -391,18 +1367,17 @@ exports[`Button - Component Should render borderAppearance of buttons - onHover
|
|
|
391
1367
|
</DocumentFragment>
|
|
392
1368
|
`;
|
|
393
1369
|
|
|
394
|
-
exports[`Button
|
|
1370
|
+
exports[`Button Should render palette of buttons - infoLighter 1`] = `
|
|
395
1371
|
<DocumentFragment>
|
|
396
1372
|
<button
|
|
397
1373
|
aria-busy="false"
|
|
398
|
-
aria-disabled="
|
|
1374
|
+
aria-disabled="false"
|
|
399
1375
|
aria-pressed="false"
|
|
400
|
-
|
|
401
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
|
|
1376
|
+
class="buttonReset button bg-blue-10 hover:bg-blue-20 focus:bg-blue-20 active:bg-blue-20 text-blue-80 hover:text-blue-100 focus:text-blue-100 active:text-blue-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
402
1377
|
type="button"
|
|
403
1378
|
>
|
|
404
1379
|
<div
|
|
405
|
-
class="flex row
|
|
1380
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
406
1381
|
data-id="flex"
|
|
407
1382
|
data-test-id="flex"
|
|
408
1383
|
/>
|
|
@@ -410,18 +1385,17 @@ exports[`Button - Component Should render disabledAppearance of buttons - dull 1
|
|
|
410
1385
|
</DocumentFragment>
|
|
411
1386
|
`;
|
|
412
1387
|
|
|
413
|
-
exports[`Button
|
|
1388
|
+
exports[`Button Should render palette of buttons - secondary 1`] = `
|
|
414
1389
|
<DocumentFragment>
|
|
415
1390
|
<button
|
|
416
1391
|
aria-busy="false"
|
|
417
|
-
aria-disabled="
|
|
1392
|
+
aria-disabled="false"
|
|
418
1393
|
aria-pressed="false"
|
|
419
|
-
|
|
420
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledPointer"
|
|
1394
|
+
class="buttonReset button bg-grey-65 hover:bg-grey-55 focus:bg-grey-55 active:bg-grey-55 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
421
1395
|
type="button"
|
|
422
1396
|
>
|
|
423
1397
|
<div
|
|
424
|
-
class="flex row
|
|
1398
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
425
1399
|
data-id="flex"
|
|
426
1400
|
data-test-id="flex"
|
|
427
1401
|
/>
|
|
@@ -429,18 +1403,17 @@ exports[`Button - Component Should render disabledAppearance of buttons - none 1
|
|
|
429
1403
|
</DocumentFragment>
|
|
430
1404
|
`;
|
|
431
1405
|
|
|
432
|
-
exports[`Button
|
|
1406
|
+
exports[`Button Should render palette of buttons - secondaryLighter 1`] = `
|
|
433
1407
|
<DocumentFragment>
|
|
434
1408
|
<button
|
|
435
1409
|
aria-busy="false"
|
|
436
|
-
aria-disabled="
|
|
1410
|
+
aria-disabled="false"
|
|
437
1411
|
aria-pressed="false"
|
|
438
|
-
|
|
439
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledPointer strike"
|
|
1412
|
+
class="buttonReset button bg-grey-10 hover:bg-grey-20 focus:bg-grey-20 active:bg-grey-20 text-grey-65 hover:text-grey-100 focus:text-grey-100 active:text-grey-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
440
1413
|
type="button"
|
|
441
1414
|
>
|
|
442
1415
|
<div
|
|
443
|
-
class="flex row
|
|
1416
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
444
1417
|
data-id="flex"
|
|
445
1418
|
data-test-id="flex"
|
|
446
1419
|
/>
|
|
@@ -448,152 +1421,71 @@ exports[`Button - Component Should render disabledAppearance of buttons - strike
|
|
|
448
1421
|
</DocumentFragment>
|
|
449
1422
|
`;
|
|
450
1423
|
|
|
451
|
-
exports[`Button
|
|
1424
|
+
exports[`Button Should render palette of buttons - success 1`] = `
|
|
452
1425
|
<DocumentFragment>
|
|
453
1426
|
<button
|
|
454
|
-
aria-busy="
|
|
455
|
-
aria-disabled="
|
|
1427
|
+
aria-busy="false"
|
|
1428
|
+
aria-disabled="false"
|
|
456
1429
|
aria-pressed="false"
|
|
457
|
-
|
|
458
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
|
|
1430
|
+
class="buttonReset button bg-green-80 hover:bg-green-100 focus:bg-green-100 active:bg-green-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
459
1431
|
type="button"
|
|
460
1432
|
>
|
|
461
1433
|
<div
|
|
462
|
-
class="flex row
|
|
1434
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
463
1435
|
data-id="flex"
|
|
464
1436
|
data-test-id="flex"
|
|
465
|
-
|
|
466
|
-
<div
|
|
467
|
-
class="flex row alignItems_center justifyContent_center"
|
|
468
|
-
data-id="flex"
|
|
469
|
-
data-test-id="flex"
|
|
470
|
-
>
|
|
471
|
-
<svg
|
|
472
|
-
aria-hidden="true"
|
|
473
|
-
class="spinner"
|
|
474
|
-
role="img"
|
|
475
|
-
viewBox="0 0 24 24"
|
|
476
|
-
>
|
|
477
|
-
<circle
|
|
478
|
-
class="spinnerTrack"
|
|
479
|
-
cx="12"
|
|
480
|
-
cy="12"
|
|
481
|
-
r="10"
|
|
482
|
-
/>
|
|
483
|
-
<circle
|
|
484
|
-
class="spinnerHead"
|
|
485
|
-
cx="12"
|
|
486
|
-
cy="12"
|
|
487
|
-
r="10"
|
|
488
|
-
/>
|
|
489
|
-
</svg>
|
|
490
|
-
</div>
|
|
491
|
-
</div>
|
|
1437
|
+
/>
|
|
492
1438
|
</button>
|
|
493
1439
|
</DocumentFragment>
|
|
494
1440
|
`;
|
|
495
1441
|
|
|
496
|
-
exports[`Button
|
|
1442
|
+
exports[`Button Should render palette of buttons - successLighter 1`] = `
|
|
497
1443
|
<DocumentFragment>
|
|
498
1444
|
<button
|
|
499
|
-
aria-busy="
|
|
500
|
-
aria-disabled="
|
|
1445
|
+
aria-busy="false"
|
|
1446
|
+
aria-disabled="false"
|
|
501
1447
|
aria-pressed="false"
|
|
502
|
-
|
|
503
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
|
|
1448
|
+
class="buttonReset button bg-green-10 hover:bg-green-30 focus:bg-green-30 active:bg-green-30 text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
504
1449
|
type="button"
|
|
505
1450
|
>
|
|
506
1451
|
<div
|
|
507
|
-
class="flex row
|
|
1452
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
508
1453
|
data-id="flex"
|
|
509
1454
|
data-test-id="flex"
|
|
510
1455
|
/>
|
|
511
|
-
<div
|
|
512
|
-
class="flex row alignItems_center justifyContent_center loaderOverlay"
|
|
513
|
-
data-id="flex"
|
|
514
|
-
data-test-id="flex"
|
|
515
|
-
>
|
|
516
|
-
<svg
|
|
517
|
-
aria-hidden="true"
|
|
518
|
-
class="spinner"
|
|
519
|
-
role="img"
|
|
520
|
-
viewBox="0 0 24 24"
|
|
521
|
-
>
|
|
522
|
-
<circle
|
|
523
|
-
class="spinnerTrack"
|
|
524
|
-
cx="12"
|
|
525
|
-
cy="12"
|
|
526
|
-
r="10"
|
|
527
|
-
/>
|
|
528
|
-
<circle
|
|
529
|
-
class="spinnerHead"
|
|
530
|
-
cx="12"
|
|
531
|
-
cy="12"
|
|
532
|
-
r="10"
|
|
533
|
-
/>
|
|
534
|
-
</svg>
|
|
535
|
-
</div>
|
|
536
1456
|
</button>
|
|
537
1457
|
</DocumentFragment>
|
|
538
1458
|
`;
|
|
539
1459
|
|
|
540
|
-
exports[`Button
|
|
1460
|
+
exports[`Button Should render palette of buttons - warning 1`] = `
|
|
541
1461
|
<DocumentFragment>
|
|
542
1462
|
<button
|
|
543
|
-
aria-busy="
|
|
544
|
-
aria-disabled="
|
|
1463
|
+
aria-busy="false"
|
|
1464
|
+
aria-disabled="false"
|
|
545
1465
|
aria-pressed="false"
|
|
546
|
-
|
|
547
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
|
|
1466
|
+
class="buttonReset button bg-orange-80 hover:bg-orange-100 focus:bg-orange-100 active:bg-orange-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
548
1467
|
type="button"
|
|
549
1468
|
>
|
|
550
1469
|
<div
|
|
551
|
-
class="flex row
|
|
1470
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
552
1471
|
data-id="flex"
|
|
553
1472
|
data-test-id="flex"
|
|
554
|
-
|
|
555
|
-
<div
|
|
556
|
-
class="flex row alignItems_center justifyContent_center"
|
|
557
|
-
data-id="flex"
|
|
558
|
-
data-test-id="flex"
|
|
559
|
-
>
|
|
560
|
-
<svg
|
|
561
|
-
aria-hidden="true"
|
|
562
|
-
class="spinner"
|
|
563
|
-
role="img"
|
|
564
|
-
viewBox="0 0 24 24"
|
|
565
|
-
>
|
|
566
|
-
<circle
|
|
567
|
-
class="spinnerTrack"
|
|
568
|
-
cx="12"
|
|
569
|
-
cy="12"
|
|
570
|
-
r="10"
|
|
571
|
-
/>
|
|
572
|
-
<circle
|
|
573
|
-
class="spinnerHead"
|
|
574
|
-
cx="12"
|
|
575
|
-
cy="12"
|
|
576
|
-
r="10"
|
|
577
|
-
/>
|
|
578
|
-
</svg>
|
|
579
|
-
</div>
|
|
580
|
-
</div>
|
|
1473
|
+
/>
|
|
581
1474
|
</button>
|
|
582
1475
|
</DocumentFragment>
|
|
583
1476
|
`;
|
|
584
1477
|
|
|
585
|
-
exports[`Button
|
|
1478
|
+
exports[`Button Should render palette of buttons - warningLighter 1`] = `
|
|
586
1479
|
<DocumentFragment>
|
|
587
1480
|
<button
|
|
588
1481
|
aria-busy="false"
|
|
589
1482
|
aria-disabled="false"
|
|
590
1483
|
aria-pressed="false"
|
|
591
|
-
|
|
592
|
-
class="buttonReset button bg-red-70 text-white border-red-70 sizeMedium shapeRoundedRectangle"
|
|
1484
|
+
class="buttonReset button bg-orange-10 hover:bg-orange-15 focus:bg-orange-15 active:bg-orange-15 text-orange-80 hover:text-orange-100 focus:text-orange-100 active:text-orange-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
593
1485
|
type="button"
|
|
594
1486
|
>
|
|
595
1487
|
<div
|
|
596
|
-
class="flex row
|
|
1488
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
597
1489
|
data-id="flex"
|
|
598
1490
|
data-test-id="flex"
|
|
599
1491
|
/>
|
|
@@ -601,18 +1493,17 @@ exports[`Button - Component Should render palette of buttons - danger 1`] = `
|
|
|
601
1493
|
</DocumentFragment>
|
|
602
1494
|
`;
|
|
603
1495
|
|
|
604
|
-
exports[`Button
|
|
1496
|
+
exports[`Button Should render selectedAppearance of buttons - { bg: false, border: true } 1`] = `
|
|
605
1497
|
<DocumentFragment>
|
|
606
1498
|
<button
|
|
607
1499
|
aria-busy="false"
|
|
608
1500
|
aria-disabled="false"
|
|
609
|
-
aria-pressed="
|
|
610
|
-
|
|
611
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1501
|
+
aria-pressed="true"
|
|
1502
|
+
class="buttonReset button bg-brand-80 selected:text-brand-filled selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
612
1503
|
type="button"
|
|
613
1504
|
>
|
|
614
1505
|
<div
|
|
615
|
-
class="flex row
|
|
1506
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
616
1507
|
data-id="flex"
|
|
617
1508
|
data-test-id="flex"
|
|
618
1509
|
/>
|
|
@@ -620,18 +1511,17 @@ exports[`Button - Component Should render palette of buttons - default 1`] = `
|
|
|
620
1511
|
</DocumentFragment>
|
|
621
1512
|
`;
|
|
622
1513
|
|
|
623
|
-
exports[`Button
|
|
1514
|
+
exports[`Button Should render selectedAppearance of buttons - { bg: true, text: 'black' } 1`] = `
|
|
624
1515
|
<DocumentFragment>
|
|
625
1516
|
<button
|
|
626
1517
|
aria-busy="false"
|
|
627
1518
|
aria-disabled="false"
|
|
628
|
-
aria-pressed="
|
|
629
|
-
|
|
630
|
-
class="buttonReset button bg-blue-80 text-white border-blue-80 sizeMedium shapeRoundedRectangle"
|
|
1519
|
+
aria-pressed="true"
|
|
1520
|
+
class="buttonReset button selected:bg-brand-80 selected:text-black border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
631
1521
|
type="button"
|
|
632
1522
|
>
|
|
633
1523
|
<div
|
|
634
|
-
class="flex row
|
|
1524
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
635
1525
|
data-id="flex"
|
|
636
1526
|
data-test-id="flex"
|
|
637
1527
|
/>
|
|
@@ -639,18 +1529,17 @@ exports[`Button - Component Should render palette of buttons - primary 1`] = `
|
|
|
639
1529
|
</DocumentFragment>
|
|
640
1530
|
`;
|
|
641
1531
|
|
|
642
|
-
exports[`Button
|
|
1532
|
+
exports[`Button Should render selectedAppearance of buttons - { border: true } 1`] = `
|
|
643
1533
|
<DocumentFragment>
|
|
644
1534
|
<button
|
|
645
1535
|
aria-busy="false"
|
|
646
1536
|
aria-disabled="false"
|
|
647
|
-
aria-pressed="
|
|
648
|
-
|
|
649
|
-
class="buttonReset button bg-grey-65 text-white border-grey-65 sizeMedium shapeRoundedRectangle"
|
|
1537
|
+
aria-pressed="true"
|
|
1538
|
+
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
650
1539
|
type="button"
|
|
651
1540
|
>
|
|
652
1541
|
<div
|
|
653
|
-
class="flex row
|
|
1542
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
654
1543
|
data-id="flex"
|
|
655
1544
|
data-test-id="flex"
|
|
656
1545
|
/>
|
|
@@ -658,18 +1547,17 @@ exports[`Button - Component Should render palette of buttons - secondary 1`] = `
|
|
|
658
1547
|
</DocumentFragment>
|
|
659
1548
|
`;
|
|
660
1549
|
|
|
661
|
-
exports[`Button
|
|
1550
|
+
exports[`Button Should render selectedAppearance of buttons - { text: true } 1`] = `
|
|
662
1551
|
<DocumentFragment>
|
|
663
1552
|
<button
|
|
664
1553
|
aria-busy="false"
|
|
665
1554
|
aria-disabled="false"
|
|
666
|
-
aria-pressed="
|
|
667
|
-
|
|
668
|
-
class="buttonReset button bg-green-80 text-white border-green-80 sizeMedium shapeRoundedRectangle"
|
|
1555
|
+
aria-pressed="true"
|
|
1556
|
+
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
669
1557
|
type="button"
|
|
670
1558
|
>
|
|
671
1559
|
<div
|
|
672
|
-
class="flex row
|
|
1560
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
673
1561
|
data-id="flex"
|
|
674
1562
|
data-test-id="flex"
|
|
675
1563
|
/>
|
|
@@ -677,18 +1565,17 @@ exports[`Button - Component Should render palette of buttons - success 1`] = `
|
|
|
677
1565
|
</DocumentFragment>
|
|
678
1566
|
`;
|
|
679
1567
|
|
|
680
|
-
exports[`Button
|
|
1568
|
+
exports[`Button Should render selectedAppearance of buttons - {} 1`] = `
|
|
681
1569
|
<DocumentFragment>
|
|
682
1570
|
<button
|
|
683
1571
|
aria-busy="false"
|
|
684
1572
|
aria-disabled="false"
|
|
685
|
-
aria-pressed="
|
|
686
|
-
|
|
687
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1573
|
+
aria-pressed="true"
|
|
1574
|
+
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
688
1575
|
type="button"
|
|
689
1576
|
>
|
|
690
1577
|
<div
|
|
691
|
-
class="flex row
|
|
1578
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
692
1579
|
data-id="flex"
|
|
693
1580
|
data-test-id="flex"
|
|
694
1581
|
/>
|
|
@@ -696,18 +1583,17 @@ exports[`Button - Component Should render paletteShade of buttons - default 1`]
|
|
|
696
1583
|
</DocumentFragment>
|
|
697
1584
|
`;
|
|
698
1585
|
|
|
699
|
-
exports[`Button
|
|
1586
|
+
exports[`Button Should render shape of buttons - pill 1`] = `
|
|
700
1587
|
<DocumentFragment>
|
|
701
1588
|
<button
|
|
702
1589
|
aria-busy="false"
|
|
703
1590
|
aria-disabled="false"
|
|
704
1591
|
aria-pressed="false"
|
|
705
|
-
|
|
706
|
-
class="buttonReset button bg-brand-10 text-brand-80 border-brand-10 sizeMedium shapeRoundedRectangle"
|
|
1592
|
+
class="buttonReset button border-transparent sizeMedium shapePill variantText"
|
|
707
1593
|
type="button"
|
|
708
1594
|
>
|
|
709
1595
|
<div
|
|
710
|
-
class="flex row
|
|
1596
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
711
1597
|
data-id="flex"
|
|
712
1598
|
data-test-id="flex"
|
|
713
1599
|
/>
|
|
@@ -715,18 +1601,17 @@ exports[`Button - Component Should render paletteShade of buttons - lighter 1`]
|
|
|
715
1601
|
</DocumentFragment>
|
|
716
1602
|
`;
|
|
717
1603
|
|
|
718
|
-
exports[`Button
|
|
1604
|
+
exports[`Button Should render shape of buttons - rectangle 1`] = `
|
|
719
1605
|
<DocumentFragment>
|
|
720
1606
|
<button
|
|
721
1607
|
aria-busy="false"
|
|
722
1608
|
aria-disabled="false"
|
|
723
1609
|
aria-pressed="false"
|
|
724
|
-
|
|
725
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapePill"
|
|
1610
|
+
class="buttonReset button border-transparent sizeMedium shapeRectangle variantText"
|
|
726
1611
|
type="button"
|
|
727
1612
|
>
|
|
728
1613
|
<div
|
|
729
|
-
class="flex row
|
|
1614
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
730
1615
|
data-id="flex"
|
|
731
1616
|
data-test-id="flex"
|
|
732
1617
|
/>
|
|
@@ -734,18 +1619,17 @@ exports[`Button - Component Should render shape of buttons - pill 1`] = `
|
|
|
734
1619
|
</DocumentFragment>
|
|
735
1620
|
`;
|
|
736
1621
|
|
|
737
|
-
exports[`Button
|
|
1622
|
+
exports[`Button Should render shape of buttons - roundedRectangle 1`] = `
|
|
738
1623
|
<DocumentFragment>
|
|
739
1624
|
<button
|
|
740
1625
|
aria-busy="false"
|
|
741
1626
|
aria-disabled="false"
|
|
742
1627
|
aria-pressed="false"
|
|
743
|
-
|
|
744
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRectangle"
|
|
1628
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
745
1629
|
type="button"
|
|
746
1630
|
>
|
|
747
1631
|
<div
|
|
748
|
-
class="flex row
|
|
1632
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
749
1633
|
data-id="flex"
|
|
750
1634
|
data-test-id="flex"
|
|
751
1635
|
/>
|
|
@@ -753,37 +1637,51 @@ exports[`Button - Component Should render shape of buttons - rectangle 1`] = `
|
|
|
753
1637
|
</DocumentFragment>
|
|
754
1638
|
`;
|
|
755
1639
|
|
|
756
|
-
exports[`Button
|
|
1640
|
+
exports[`Button Should render success overlay when status is success and loaderPlacement is overlay 1`] = `
|
|
757
1641
|
<DocumentFragment>
|
|
758
1642
|
<button
|
|
759
1643
|
aria-busy="false"
|
|
760
1644
|
aria-disabled="false"
|
|
761
1645
|
aria-pressed="false"
|
|
762
|
-
|
|
763
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1646
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
764
1647
|
type="button"
|
|
765
1648
|
>
|
|
766
1649
|
<div
|
|
767
|
-
class="flex row
|
|
1650
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
|
|
768
1651
|
data-id="flex"
|
|
769
1652
|
data-test-id="flex"
|
|
770
1653
|
/>
|
|
1654
|
+
<div
|
|
1655
|
+
class="d-flex d-flex-row d-items-center d-justify-center successOverlay"
|
|
1656
|
+
data-id="flex"
|
|
1657
|
+
data-test-id="flex"
|
|
1658
|
+
>
|
|
1659
|
+
<svg
|
|
1660
|
+
aria-hidden="true"
|
|
1661
|
+
class="tick"
|
|
1662
|
+
role="img"
|
|
1663
|
+
viewBox="0 0 24 24"
|
|
1664
|
+
>
|
|
1665
|
+
<path
|
|
1666
|
+
d="M4 12l5 5L20 6"
|
|
1667
|
+
/>
|
|
1668
|
+
</svg>
|
|
1669
|
+
</div>
|
|
771
1670
|
</button>
|
|
772
1671
|
</DocumentFragment>
|
|
773
1672
|
`;
|
|
774
1673
|
|
|
775
|
-
exports[`Button
|
|
1674
|
+
exports[`Button Should render type of buttons - button 1`] = `
|
|
776
1675
|
<DocumentFragment>
|
|
777
1676
|
<button
|
|
778
1677
|
aria-busy="false"
|
|
779
1678
|
aria-disabled="false"
|
|
780
1679
|
aria-pressed="false"
|
|
781
|
-
|
|
782
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1680
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
783
1681
|
type="button"
|
|
784
1682
|
>
|
|
785
1683
|
<div
|
|
786
|
-
class="flex row
|
|
1684
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
787
1685
|
data-id="flex"
|
|
788
1686
|
data-test-id="flex"
|
|
789
1687
|
/>
|
|
@@ -791,18 +1689,17 @@ exports[`Button - Component Should render type of buttons - button 1`] = `
|
|
|
791
1689
|
</DocumentFragment>
|
|
792
1690
|
`;
|
|
793
1691
|
|
|
794
|
-
exports[`Button
|
|
1692
|
+
exports[`Button Should render type of buttons - reset 1`] = `
|
|
795
1693
|
<DocumentFragment>
|
|
796
1694
|
<button
|
|
797
1695
|
aria-busy="false"
|
|
798
1696
|
aria-disabled="false"
|
|
799
1697
|
aria-pressed="false"
|
|
800
|
-
|
|
801
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1698
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
802
1699
|
type="reset"
|
|
803
1700
|
>
|
|
804
1701
|
<div
|
|
805
|
-
class="flex row
|
|
1702
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
806
1703
|
data-id="flex"
|
|
807
1704
|
data-test-id="flex"
|
|
808
1705
|
/>
|
|
@@ -810,18 +1707,17 @@ exports[`Button - Component Should render type of buttons - reset 1`] = `
|
|
|
810
1707
|
</DocumentFragment>
|
|
811
1708
|
`;
|
|
812
1709
|
|
|
813
|
-
exports[`Button
|
|
1710
|
+
exports[`Button Should render type of buttons - submit 1`] = `
|
|
814
1711
|
<DocumentFragment>
|
|
815
1712
|
<button
|
|
816
1713
|
aria-busy="false"
|
|
817
1714
|
aria-disabled="false"
|
|
818
1715
|
aria-pressed="false"
|
|
819
|
-
|
|
820
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1716
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
821
1717
|
type="submit"
|
|
822
1718
|
>
|
|
823
1719
|
<div
|
|
824
|
-
class="flex row
|
|
1720
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
825
1721
|
data-id="flex"
|
|
826
1722
|
data-test-id="flex"
|
|
827
1723
|
/>
|
|
@@ -829,18 +1725,17 @@ exports[`Button - Component Should render type of buttons - submit 1`] = `
|
|
|
829
1725
|
</DocumentFragment>
|
|
830
1726
|
`;
|
|
831
1727
|
|
|
832
|
-
exports[`Button
|
|
1728
|
+
exports[`Button Should render variant of buttons - icon 1`] = `
|
|
833
1729
|
<DocumentFragment>
|
|
834
1730
|
<button
|
|
835
1731
|
aria-busy="false"
|
|
836
1732
|
aria-disabled="false"
|
|
837
1733
|
aria-pressed="false"
|
|
838
|
-
|
|
839
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1734
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
|
|
840
1735
|
type="button"
|
|
841
1736
|
>
|
|
842
1737
|
<div
|
|
843
|
-
class="flex row
|
|
1738
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
844
1739
|
data-id="flex"
|
|
845
1740
|
data-test-id="flex"
|
|
846
1741
|
/>
|
|
@@ -848,18 +1743,17 @@ exports[`Button - Component Should render variant of buttons - icon 1`] = `
|
|
|
848
1743
|
</DocumentFragment>
|
|
849
1744
|
`;
|
|
850
1745
|
|
|
851
|
-
exports[`Button
|
|
1746
|
+
exports[`Button Should render variant of buttons - iconWithText 1`] = `
|
|
852
1747
|
<DocumentFragment>
|
|
853
1748
|
<button
|
|
854
1749
|
aria-busy="false"
|
|
855
1750
|
aria-disabled="false"
|
|
856
1751
|
aria-pressed="false"
|
|
857
|
-
|
|
858
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1752
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
|
|
859
1753
|
type="button"
|
|
860
1754
|
>
|
|
861
1755
|
<div
|
|
862
|
-
class="flex row
|
|
1756
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
863
1757
|
data-id="flex"
|
|
864
1758
|
data-test-id="flex"
|
|
865
1759
|
/>
|
|
@@ -867,18 +1761,17 @@ exports[`Button - Component Should render variant of buttons - iconWithText 1`]
|
|
|
867
1761
|
</DocumentFragment>
|
|
868
1762
|
`;
|
|
869
1763
|
|
|
870
|
-
exports[`Button
|
|
1764
|
+
exports[`Button Should render variant of buttons - text 1`] = `
|
|
871
1765
|
<DocumentFragment>
|
|
872
1766
|
<button
|
|
873
1767
|
aria-busy="false"
|
|
874
1768
|
aria-disabled="false"
|
|
875
1769
|
aria-pressed="false"
|
|
876
|
-
|
|
877
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1770
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
878
1771
|
type="button"
|
|
879
1772
|
>
|
|
880
1773
|
<div
|
|
881
|
-
class="flex row
|
|
1774
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
882
1775
|
data-id="flex"
|
|
883
1776
|
data-test-id="flex"
|
|
884
1777
|
/>
|
|
@@ -886,18 +1779,17 @@ exports[`Button - Component Should render variant of buttons - text 1`] = `
|
|
|
886
1779
|
</DocumentFragment>
|
|
887
1780
|
`;
|
|
888
1781
|
|
|
889
|
-
exports[`Button
|
|
1782
|
+
exports[`Button Should render with children 1`] = `
|
|
890
1783
|
<DocumentFragment>
|
|
891
1784
|
<button
|
|
892
1785
|
aria-busy="false"
|
|
893
1786
|
aria-disabled="false"
|
|
894
1787
|
aria-pressed="false"
|
|
895
|
-
|
|
896
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1788
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
897
1789
|
type="button"
|
|
898
1790
|
>
|
|
899
1791
|
<div
|
|
900
|
-
class="flex row
|
|
1792
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
901
1793
|
data-id="flex"
|
|
902
1794
|
data-test-id="flex"
|
|
903
1795
|
>
|
|
@@ -911,20 +1803,19 @@ exports[`Button - Component Should render with children 1`] = `
|
|
|
911
1803
|
</DocumentFragment>
|
|
912
1804
|
`;
|
|
913
1805
|
|
|
914
|
-
exports[`Button
|
|
1806
|
+
exports[`Button Should render with customId and testId 1`] = `
|
|
915
1807
|
<DocumentFragment>
|
|
916
1808
|
<button
|
|
917
1809
|
aria-busy="false"
|
|
918
1810
|
aria-disabled="false"
|
|
919
1811
|
aria-pressed="false"
|
|
920
|
-
|
|
921
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1812
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
922
1813
|
data-id="customIdValue"
|
|
923
1814
|
data-test-id="testIdValue"
|
|
924
1815
|
type="button"
|
|
925
1816
|
>
|
|
926
1817
|
<div
|
|
927
|
-
class="flex row
|
|
1818
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
928
1819
|
data-id="flex"
|
|
929
1820
|
data-test-id="flex"
|
|
930
1821
|
/>
|
|
@@ -932,96 +1823,95 @@ exports[`Button - Component Should render with customId and testId 1`] = `
|
|
|
932
1823
|
</DocumentFragment>
|
|
933
1824
|
`;
|
|
934
1825
|
|
|
935
|
-
exports[`Button
|
|
1826
|
+
exports[`Button Should render with dataSelectorId 1`] = `
|
|
936
1827
|
<DocumentFragment>
|
|
937
1828
|
<button
|
|
938
1829
|
aria-busy="false"
|
|
939
1830
|
aria-disabled="false"
|
|
940
1831
|
aria-pressed="false"
|
|
941
|
-
|
|
942
|
-
|
|
1832
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1833
|
+
data-selector-id="selectorId"
|
|
943
1834
|
type="button"
|
|
944
1835
|
>
|
|
945
1836
|
<div
|
|
946
|
-
class="flex row
|
|
1837
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
947
1838
|
data-id="flex"
|
|
948
1839
|
data-test-id="flex"
|
|
949
|
-
|
|
950
|
-
<i
|
|
951
|
-
aria-hidden="true"
|
|
952
|
-
class="zd_font_icons basic icon-plus"
|
|
953
|
-
data-id="fontIcon"
|
|
954
|
-
data-selector-id="fontIcon"
|
|
955
|
-
style="--zd-iconfont-size: var(--zd_font_size20);"
|
|
956
|
-
/>
|
|
957
|
-
</div>
|
|
1840
|
+
/>
|
|
958
1841
|
</button>
|
|
959
1842
|
</DocumentFragment>
|
|
960
1843
|
`;
|
|
961
1844
|
|
|
962
|
-
exports[`Button
|
|
1845
|
+
exports[`Button Should render with iconName and iconSize 1`] = `
|
|
963
1846
|
<DocumentFragment>
|
|
964
1847
|
<button
|
|
965
1848
|
aria-busy="false"
|
|
966
1849
|
aria-disabled="false"
|
|
967
1850
|
aria-pressed="false"
|
|
968
|
-
|
|
969
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1851
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
|
|
970
1852
|
type="button"
|
|
971
1853
|
>
|
|
972
1854
|
<div
|
|
973
|
-
class="flex row
|
|
1855
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
974
1856
|
data-id="flex"
|
|
975
1857
|
data-test-id="flex"
|
|
976
1858
|
>
|
|
977
|
-
<div
|
|
978
|
-
class="dotted size13"
|
|
979
|
-
>
|
|
980
|
-
Button
|
|
981
|
-
</div>
|
|
982
1859
|
<i
|
|
983
1860
|
aria-hidden="true"
|
|
984
|
-
class="zd_font_icons
|
|
1861
|
+
class="zd_font_icons ff icon-plus basic d-inline-block d-align-middle"
|
|
985
1862
|
data-id="fontIcon"
|
|
986
1863
|
data-selector-id="fontIcon"
|
|
987
|
-
|
|
1864
|
+
data-test-id="fontIcon"
|
|
1865
|
+
style="--zd-iconfont-size: var(--zd_font_size20);"
|
|
988
1866
|
/>
|
|
989
1867
|
</div>
|
|
990
1868
|
</button>
|
|
991
1869
|
</DocumentFragment>
|
|
992
1870
|
`;
|
|
993
1871
|
|
|
994
|
-
exports[`Button
|
|
1872
|
+
exports[`Button Should render with iconPlacement 1`] = `
|
|
995
1873
|
<DocumentFragment>
|
|
996
1874
|
<button
|
|
997
1875
|
aria-busy="false"
|
|
998
1876
|
aria-disabled="false"
|
|
999
1877
|
aria-pressed="false"
|
|
1000
|
-
|
|
1001
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
|
|
1878
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
|
|
1002
1879
|
type="button"
|
|
1003
1880
|
>
|
|
1004
1881
|
<div
|
|
1005
|
-
class="flex row
|
|
1882
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
1006
1883
|
data-id="flex"
|
|
1007
1884
|
data-test-id="flex"
|
|
1008
|
-
|
|
1885
|
+
>
|
|
1886
|
+
<div
|
|
1887
|
+
class="dotted size13"
|
|
1888
|
+
>
|
|
1889
|
+
Button
|
|
1890
|
+
</div>
|
|
1891
|
+
<i
|
|
1892
|
+
aria-hidden="true"
|
|
1893
|
+
class="zd_font_icons ff icon-plus basic d-inline-block d-align-middle"
|
|
1894
|
+
data-id="fontIcon"
|
|
1895
|
+
data-selector-id="fontIcon"
|
|
1896
|
+
data-test-id="fontIcon"
|
|
1897
|
+
style="--zd-iconfont-size: var(--zd_font_size16);"
|
|
1898
|
+
/>
|
|
1899
|
+
</div>
|
|
1009
1900
|
</button>
|
|
1010
1901
|
</DocumentFragment>
|
|
1011
1902
|
`;
|
|
1012
1903
|
|
|
1013
|
-
exports[`Button
|
|
1904
|
+
exports[`Button Should render with renderBefore and renderAfter 1`] = `
|
|
1014
1905
|
<DocumentFragment>
|
|
1015
1906
|
<button
|
|
1016
1907
|
aria-busy="false"
|
|
1017
1908
|
aria-disabled="false"
|
|
1018
1909
|
aria-pressed="false"
|
|
1019
|
-
|
|
1020
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1910
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1021
1911
|
type="button"
|
|
1022
1912
|
>
|
|
1023
1913
|
<div
|
|
1024
|
-
class="flex row
|
|
1914
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
1025
1915
|
data-id="flex"
|
|
1026
1916
|
data-test-id="flex"
|
|
1027
1917
|
>
|
|
@@ -1041,18 +1931,17 @@ exports[`Button - Component Should render with renderBefore and renderAfter 1`]
|
|
|
1041
1931
|
</DocumentFragment>
|
|
1042
1932
|
`;
|
|
1043
1933
|
|
|
1044
|
-
exports[`Button
|
|
1934
|
+
exports[`Button Should render with renderIcon 1`] = `
|
|
1045
1935
|
<DocumentFragment>
|
|
1046
1936
|
<button
|
|
1047
1937
|
aria-busy="false"
|
|
1048
1938
|
aria-disabled="false"
|
|
1049
1939
|
aria-pressed="false"
|
|
1050
|
-
|
|
1051
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1940
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
|
|
1052
1941
|
type="button"
|
|
1053
1942
|
>
|
|
1054
1943
|
<div
|
|
1055
|
-
class="flex row
|
|
1944
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
1056
1945
|
data-id="flex"
|
|
1057
1946
|
data-test-id="flex"
|
|
1058
1947
|
>
|
|
@@ -1064,62 +1953,71 @@ exports[`Button - Component Should render with renderIcon 1`] = `
|
|
|
1064
1953
|
</DocumentFragment>
|
|
1065
1954
|
`;
|
|
1066
1955
|
|
|
1067
|
-
exports[`Button
|
|
1956
|
+
exports[`Button Should render with renderLoader 1`] = `
|
|
1068
1957
|
<DocumentFragment>
|
|
1069
1958
|
<button
|
|
1070
1959
|
aria-busy="true"
|
|
1071
1960
|
aria-disabled="true"
|
|
1072
1961
|
aria-pressed="false"
|
|
1073
|
-
|
|
1074
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
|
|
1962
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
1075
1963
|
type="button"
|
|
1076
1964
|
>
|
|
1077
1965
|
<div
|
|
1078
|
-
class="flex row
|
|
1966
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
|
|
1079
1967
|
data-id="flex"
|
|
1080
1968
|
data-test-id="flex"
|
|
1081
1969
|
/>
|
|
1082
|
-
<
|
|
1083
|
-
|
|
1084
|
-
|
|
1970
|
+
<div
|
|
1971
|
+
class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
|
|
1972
|
+
data-id="flex"
|
|
1973
|
+
data-test-id="flex"
|
|
1974
|
+
>
|
|
1975
|
+
<span>
|
|
1976
|
+
Loading...
|
|
1977
|
+
</span>
|
|
1978
|
+
</div>
|
|
1085
1979
|
</button>
|
|
1086
1980
|
</DocumentFragment>
|
|
1087
1981
|
`;
|
|
1088
1982
|
|
|
1089
|
-
exports[`Button
|
|
1983
|
+
exports[`Button Should render with renderSuccess 1`] = `
|
|
1090
1984
|
<DocumentFragment>
|
|
1091
1985
|
<button
|
|
1092
1986
|
aria-busy="false"
|
|
1093
1987
|
aria-disabled="false"
|
|
1094
1988
|
aria-pressed="false"
|
|
1095
|
-
|
|
1096
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
1989
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1097
1990
|
type="button"
|
|
1098
1991
|
>
|
|
1099
1992
|
<div
|
|
1100
|
-
class="flex row
|
|
1993
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
|
|
1101
1994
|
data-id="flex"
|
|
1102
1995
|
data-test-id="flex"
|
|
1103
1996
|
/>
|
|
1104
|
-
<
|
|
1105
|
-
|
|
1106
|
-
|
|
1997
|
+
<div
|
|
1998
|
+
class="d-flex d-flex-row d-items-center d-justify-center successOverlay"
|
|
1999
|
+
data-id="flex"
|
|
2000
|
+
data-test-id="flex"
|
|
2001
|
+
>
|
|
2002
|
+
<span>
|
|
2003
|
+
Success!
|
|
2004
|
+
</span>
|
|
2005
|
+
</div>
|
|
1107
2006
|
</button>
|
|
1108
2007
|
</DocumentFragment>
|
|
1109
2008
|
`;
|
|
1110
2009
|
|
|
1111
|
-
exports[`Button
|
|
2010
|
+
exports[`Button Should render with selected style when isSelected prop is true 1`] = `
|
|
1112
2011
|
<DocumentFragment>
|
|
1113
2012
|
<button
|
|
1114
2013
|
aria-busy="false"
|
|
1115
2014
|
aria-disabled="false"
|
|
1116
2015
|
aria-pressed="true"
|
|
1117
|
-
|
|
1118
|
-
class="buttonReset button sizeMedium shapeRoundedRectangle"
|
|
2016
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1119
2017
|
type="button"
|
|
1120
2018
|
>
|
|
1121
2019
|
<div
|
|
1122
|
-
class="flex row
|
|
2020
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
1123
2021
|
data-id="flex"
|
|
1124
2022
|
data-test-id="flex"
|
|
1125
2023
|
/>
|
|
@@ -1127,18 +2025,17 @@ exports[`Button - Component Should render with selected style when isSelected pr
|
|
|
1127
2025
|
</DocumentFragment>
|
|
1128
2026
|
`;
|
|
1129
2027
|
|
|
1130
|
-
exports[`Button
|
|
2028
|
+
exports[`Button Should render with the basic set of default props 1`] = `
|
|
1131
2029
|
<DocumentFragment>
|
|
1132
2030
|
<button
|
|
1133
2031
|
aria-busy="false"
|
|
1134
2032
|
aria-disabled="false"
|
|
1135
2033
|
aria-pressed="false"
|
|
1136
|
-
|
|
1137
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
2034
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1138
2035
|
type="button"
|
|
1139
2036
|
>
|
|
1140
2037
|
<div
|
|
1141
|
-
class="flex row
|
|
2038
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
1142
2039
|
data-id="flex"
|
|
1143
2040
|
data-test-id="flex"
|
|
1144
2041
|
/>
|
|
@@ -1146,19 +2043,18 @@ exports[`Button - Component Should render with the basic set of default props 1`
|
|
|
1146
2043
|
</DocumentFragment>
|
|
1147
2044
|
`;
|
|
1148
2045
|
|
|
1149
|
-
exports[`Button
|
|
2046
|
+
exports[`Button Should render with title attribute 1`] = `
|
|
1150
2047
|
<DocumentFragment>
|
|
1151
2048
|
<button
|
|
1152
2049
|
aria-busy="false"
|
|
1153
2050
|
aria-disabled="false"
|
|
1154
2051
|
aria-pressed="false"
|
|
1155
|
-
|
|
1156
|
-
class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
|
|
2052
|
+
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1157
2053
|
data-title="Button test title"
|
|
1158
2054
|
type="button"
|
|
1159
2055
|
>
|
|
1160
2056
|
<div
|
|
1161
|
-
class="flex row
|
|
2057
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
1162
2058
|
data-id="flex"
|
|
1163
2059
|
data-test-id="flex"
|
|
1164
2060
|
/>
|