@zohodesk/components 1.0.0-temp-67 → 1.0.0-temp-610
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/README.md +1020 -1020
- package/assets/Appearance/dark/mode/darkMode.module.css +1 -1
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +115 -117
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +147 -161
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/es/Button/Button.js +4 -4
- package/es/Button/Button.module.css +448 -521
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +60 -89
- package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/CheckBox/CheckBox.js +0 -0
- package/es/CheckBox/CheckBox.module.css +147 -153
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +39 -17
- package/es/DateTime/DateTime.module.css +160 -187
- package/es/DateTime/DateWidget.js +0 -0
- package/es/DateTime/DateWidget.module.css +38 -42
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/YearView.module.css +70 -80
- package/es/DateTime/common.js +0 -0
- package/es/DateTime/index.js +0 -0
- package/es/DateTime/objectUtils.js +0 -0
- package/es/DateTime/typeChecker.js +0 -0
- package/es/DateTime/validator.js +0 -0
- package/es/DropBox/DropBox.js +0 -0
- package/es/DropBox/DropBox.module.css +370 -406
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropDown/DropDown.js +0 -0
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +49 -53
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +68 -94
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/Label/Label.js +2 -2
- package/es/Label/Label.module.css +52 -52
- package/es/Label/LabelColors.module.css +20 -20
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/Layout.module.css +324 -324
- package/es/Layout/utils.js +0 -0
- package/es/LightNightMode/Colors.json +397 -397
- package/es/ListItem/ListItem.js +0 -0
- package/es/ListItem/ListItem.module.css +173 -205
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +99 -77
- package/es/MultiSelect/AdvancedMultiSelect.js +71 -49
- package/es/MultiSelect/AdvancedMultiSelect.module.css +116 -127
- package/es/MultiSelect/MultiSelect.js +83 -60
- package/es/MultiSelect/MultiSelect.module.css +178 -193
- package/es/MultiSelect/MultiSelectWithAvatar.js +75 -52
- package/es/MultiSelect/SelectedOptions.module.css +9 -15
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Popup/Popup.js +0 -0
- package/es/Popup/PositionMapping.json +73 -73
- package/es/Provider.js +35 -72
- package/es/Radio/Radio.js +0 -0
- package/es/Radio/Radio.module.css +104 -110
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/Responsive/Responsive.js +1 -0
- package/es/ResponsiveDropbox/ResponsiveDropbox.js +74 -0
- package/es/ResponsiveDropbox/ResponsiveDropbox.module.css +6 -0
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +311 -376
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/es/RippleEffect/RippleEffect.module.css +99 -70
- package/es/Select/GroupSelect.js +96 -74
- package/es/Select/Select.js +92 -68
- package/es/Select/Select.module.css +96 -100
- package/es/Select/SelectWithAvatar.js +89 -66
- package/es/Select/SelectWithIcon.js +98 -74
- package/es/Select/__tests__/Select.spec.js +0 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +78 -96
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/es/Switch/Switch.js +0 -0
- package/es/Switch/Switch.module.css +110 -109
- package/es/Tab/Tab.module.css +92 -101
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +107 -140
- package/es/Tag/Tag.js +8 -8
- package/es/Tag/Tag.module.css +228 -250
- package/es/TextBox/TextBox.js +0 -0
- package/es/TextBox/TextBox.module.css +161 -157
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/es/TextBoxIcon/TextBoxIcon.js +0 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +71 -78
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/es/Textarea/Textarea.js +0 -0
- package/es/Textarea/Textarea.module.css +140 -139
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/es/Tooltip/Tooltip.module.css +108 -109
- package/es/beta/FocusRing/FocusRing.module.css +126 -151
- package/es/common/animation.module.css +426 -624
- package/es/common/avatarsizes.module.css +44 -44
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +50 -40
- package/es/common/common.module.css +458 -502
- package/es/common/customscroll.module.css +93 -89
- package/es/common/docStyle.module.css +715 -766
- package/es/common/reset.module.css +12 -12
- package/es/common/transition.module.css +106 -146
- package/es/index.js +2 -1
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/lib/AppContainer/AppContainer.js +1 -1
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +117 -117
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/lib/AvatarTeam/AvatarTeam.js +7 -7
- package/lib/AvatarTeam/AvatarTeam.module.css +161 -161
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/lib/Button/Button.js +4 -4
- package/lib/Button/Button.module.css +521 -521
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Buttongroup/Buttongroup.module.css +89 -89
- package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +20 -20
- package/lib/CheckBox/CheckBox.js +1 -2
- package/lib/CheckBox/CheckBox.module.css +153 -153
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateTime.module.css +187 -187
- package/lib/DateTime/DateWidget.js +0 -0
- package/lib/DateTime/DateWidget.module.css +42 -42
- package/lib/DateTime/YearView.js +0 -0
- package/lib/DateTime/YearView.module.css +80 -80
- package/lib/DateTime/common.js +0 -0
- package/lib/DateTime/index.js +0 -0
- package/lib/DateTime/objectUtils.js +0 -0
- package/lib/DateTime/typeChecker.js +0 -0
- package/lib/DateTime/validator.js +0 -0
- package/lib/DropBox/DropBox.js +1 -1
- package/lib/DropBox/DropBox.module.css +406 -406
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropDown/DropDown.js +0 -0
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +94 -94
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +52 -52
- package/lib/Label/LabelColors.module.css +20 -20
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/Layout.module.css +324 -324
- package/lib/Layout/utils.js +0 -0
- package/lib/LightNightMode/Colors.json +397 -397
- package/lib/ListItem/ListContainer.js +4 -7
- package/lib/ListItem/ListItem.js +1 -1
- package/lib/ListItem/ListItem.module.css +210 -205
- package/lib/ListItem/ListItemWithAvatar.js +1 -1
- package/lib/ListItem/ListItemWithCheckBox.js +1 -1
- package/lib/ListItem/ListItemWithIcon.js +1 -1
- package/lib/ListItem/ListItemWithRadio.js +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -12
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +127 -127
- package/lib/MultiSelect/MultiSelect.js +11 -12
- package/lib/MultiSelect/MultiSelect.module.css +193 -193
- package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Popup/Popup.js +0 -0
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/Provider/Config.js +1 -4
- package/lib/Provider.js +37 -88
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +110 -110
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +376 -376
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/lib/RippleEffect/RippleEffect.module.css +70 -70
- package/lib/Select/GroupSelect.js +1 -1
- package/lib/Select/Select.js +4 -9
- package/lib/Select/Select.module.css +100 -100
- package/lib/Select/SelectWithAvatar.js +0 -0
- package/lib/Select/SelectWithIcon.js +0 -0
- package/lib/Select/__tests__/Select.spec.js +0 -0
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/lib/Switch/Switch.js +0 -0
- package/lib/Switch/Switch.module.css +109 -109
- package/lib/Tab/Tab.module.css +101 -101
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/Tabs.js +11 -11
- package/lib/Tab/Tabs.module.css +140 -140
- package/lib/Tag/Tag.js +8 -8
- package/lib/Tag/Tag.module.css +250 -250
- package/lib/TextBox/TextBox.js +0 -0
- package/lib/TextBox/TextBox.module.css +157 -157
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +139 -139
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/lib/Tooltip/Tooltip.js +8 -15
- package/lib/Tooltip/Tooltip.module.css +104 -109
- package/lib/beta/FocusRing/FocusRing.module.css +151 -151
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +44 -44
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/common/common.module.css +502 -502
- package/lib/common/customscroll.module.css +89 -89
- package/lib/common/docStyle.module.css +762 -766
- package/lib/common/reset.module.css +12 -12
- package/lib/common/transition.module.css +146 -146
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/utils/Common.js +0 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/package.json +75 -75
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +0 -358
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +0 -42
|
@@ -1,163 +1,163 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Ribbon component should the palette is danger 1`] = `
|
|
4
|
-
<span
|
|
5
|
-
className="basic palette_danger large default"
|
|
6
|
-
data-id="ribbonComp"
|
|
7
|
-
>
|
|
8
|
-
danger
|
|
9
|
-
</span>
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
exports[`Ribbon component should the palette is dark 1`] = `
|
|
13
|
-
<span
|
|
14
|
-
className="basic palette_dark large default"
|
|
15
|
-
data-id="ribbonComp"
|
|
16
|
-
>
|
|
17
|
-
dark
|
|
18
|
-
</span>
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
exports[`Ribbon component should the palette is default 1`] = `
|
|
22
|
-
<span
|
|
23
|
-
className="basic palette_default large default"
|
|
24
|
-
data-id="ribbonComp"
|
|
25
|
-
>
|
|
26
|
-
default
|
|
27
|
-
</span>
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
exports[`Ribbon component should the palette is info 1`] = `
|
|
31
|
-
<span
|
|
32
|
-
className="basic palette_info large default"
|
|
33
|
-
data-id="ribbonComp"
|
|
34
|
-
>
|
|
35
|
-
info
|
|
36
|
-
</span>
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
exports[`Ribbon component should the palette is primary 1`] = `
|
|
40
|
-
<span
|
|
41
|
-
className="basic palette_primary large default"
|
|
42
|
-
data-id="ribbonComp"
|
|
43
|
-
>
|
|
44
|
-
primary
|
|
45
|
-
</span>
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
exports[`Ribbon component should the palette is secondary 1`] = `
|
|
49
|
-
<span
|
|
50
|
-
className="basic palette_secondary large default"
|
|
51
|
-
data-id="ribbonComp"
|
|
52
|
-
>
|
|
53
|
-
secondary
|
|
54
|
-
</span>
|
|
55
|
-
`;
|
|
56
|
-
|
|
57
|
-
exports[`Ribbon component should the size is large 1`] = `
|
|
58
|
-
<span
|
|
59
|
-
className="basic palette_default large default"
|
|
60
|
-
data-id="ribbonComp"
|
|
61
|
-
>
|
|
62
|
-
default
|
|
63
|
-
</span>
|
|
64
|
-
`;
|
|
65
|
-
|
|
66
|
-
exports[`Ribbon component should the size is medium 1`] = `
|
|
67
|
-
<span
|
|
68
|
-
className="basic palette_default small default"
|
|
69
|
-
data-id="ribbonComp"
|
|
70
|
-
>
|
|
71
|
-
default
|
|
72
|
-
</span>
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
exports[`Ribbon component should the size is small 1`] = `
|
|
76
|
-
<span
|
|
77
|
-
className="basic palette_default small default"
|
|
78
|
-
data-id="ribbonComp"
|
|
79
|
-
>
|
|
80
|
-
default
|
|
81
|
-
</span>
|
|
82
|
-
`;
|
|
83
|
-
|
|
84
|
-
exports[`Ribbon component should the size is xlarge 1`] = `
|
|
85
|
-
<span
|
|
86
|
-
className="basic palette_default xlarge default"
|
|
87
|
-
data-id="ribbonComp"
|
|
88
|
-
>
|
|
89
|
-
default
|
|
90
|
-
</span>
|
|
91
|
-
`;
|
|
92
|
-
|
|
93
|
-
exports[`Ribbon component should the type is box 1`] = `
|
|
94
|
-
<span
|
|
95
|
-
className="basic palette_default xlarge default"
|
|
96
|
-
data-id="ribbonComp"
|
|
97
|
-
>
|
|
98
|
-
default
|
|
99
|
-
</span>
|
|
100
|
-
`;
|
|
101
|
-
|
|
102
|
-
exports[`Ribbon component should the type is dafault 1`] = `
|
|
103
|
-
<span
|
|
104
|
-
className="basic palette_default xlarge default"
|
|
105
|
-
data-id="ribbonComp"
|
|
106
|
-
>
|
|
107
|
-
default
|
|
108
|
-
</span>
|
|
109
|
-
`;
|
|
110
|
-
|
|
111
|
-
exports[`Ribbon component should the type is flag 1`] = `
|
|
112
|
-
<span
|
|
113
|
-
className="basic palette_default xlarge default"
|
|
114
|
-
data-id="ribbonComp"
|
|
115
|
-
>
|
|
116
|
-
default
|
|
117
|
-
</span>
|
|
118
|
-
`;
|
|
119
|
-
|
|
120
|
-
exports[`Ribbon component should the type is plain 1`] = `
|
|
121
|
-
<span
|
|
122
|
-
className="basic palette_default xlarge default"
|
|
123
|
-
data-id="ribbonComp"
|
|
124
|
-
>
|
|
125
|
-
default
|
|
126
|
-
</span>
|
|
127
|
-
`;
|
|
128
|
-
|
|
129
|
-
exports[`Ribbon component should the type is ribbon 1`] = `
|
|
130
|
-
<span
|
|
131
|
-
className="basic palette_default xlarge default"
|
|
132
|
-
data-id="ribbonComp"
|
|
133
|
-
>
|
|
134
|
-
default
|
|
135
|
-
</span>
|
|
136
|
-
`;
|
|
137
|
-
|
|
138
|
-
exports[`Ribbon component should the type is stamp 1`] = `
|
|
139
|
-
<span
|
|
140
|
-
className="basic palette_default xlarge default"
|
|
141
|
-
data-id="ribbonComp"
|
|
142
|
-
>
|
|
143
|
-
default
|
|
144
|
-
</span>
|
|
145
|
-
`;
|
|
146
|
-
|
|
147
|
-
exports[`Ribbon component should the type is sticker 1`] = `
|
|
148
|
-
<span
|
|
149
|
-
className="basic palette_default xlarge default"
|
|
150
|
-
data-id="ribbonComp"
|
|
151
|
-
>
|
|
152
|
-
default
|
|
153
|
-
</span>
|
|
154
|
-
`;
|
|
155
|
-
|
|
156
|
-
exports[`Ribbon component should the type is tag 1`] = `
|
|
157
|
-
<span
|
|
158
|
-
className="basic large tag"
|
|
159
|
-
data-id="ribbonComp"
|
|
160
|
-
>
|
|
161
|
-
default
|
|
162
|
-
</span>
|
|
163
|
-
`;
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Ribbon component should the palette is danger 1`] = `
|
|
4
|
+
<span
|
|
5
|
+
className="basic palette_danger large default"
|
|
6
|
+
data-id="ribbonComp"
|
|
7
|
+
>
|
|
8
|
+
danger
|
|
9
|
+
</span>
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
exports[`Ribbon component should the palette is dark 1`] = `
|
|
13
|
+
<span
|
|
14
|
+
className="basic palette_dark large default"
|
|
15
|
+
data-id="ribbonComp"
|
|
16
|
+
>
|
|
17
|
+
dark
|
|
18
|
+
</span>
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
exports[`Ribbon component should the palette is default 1`] = `
|
|
22
|
+
<span
|
|
23
|
+
className="basic palette_default large default"
|
|
24
|
+
data-id="ribbonComp"
|
|
25
|
+
>
|
|
26
|
+
default
|
|
27
|
+
</span>
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
exports[`Ribbon component should the palette is info 1`] = `
|
|
31
|
+
<span
|
|
32
|
+
className="basic palette_info large default"
|
|
33
|
+
data-id="ribbonComp"
|
|
34
|
+
>
|
|
35
|
+
info
|
|
36
|
+
</span>
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
exports[`Ribbon component should the palette is primary 1`] = `
|
|
40
|
+
<span
|
|
41
|
+
className="basic palette_primary large default"
|
|
42
|
+
data-id="ribbonComp"
|
|
43
|
+
>
|
|
44
|
+
primary
|
|
45
|
+
</span>
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
exports[`Ribbon component should the palette is secondary 1`] = `
|
|
49
|
+
<span
|
|
50
|
+
className="basic palette_secondary large default"
|
|
51
|
+
data-id="ribbonComp"
|
|
52
|
+
>
|
|
53
|
+
secondary
|
|
54
|
+
</span>
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
exports[`Ribbon component should the size is large 1`] = `
|
|
58
|
+
<span
|
|
59
|
+
className="basic palette_default large default"
|
|
60
|
+
data-id="ribbonComp"
|
|
61
|
+
>
|
|
62
|
+
default
|
|
63
|
+
</span>
|
|
64
|
+
`;
|
|
65
|
+
|
|
66
|
+
exports[`Ribbon component should the size is medium 1`] = `
|
|
67
|
+
<span
|
|
68
|
+
className="basic palette_default small default"
|
|
69
|
+
data-id="ribbonComp"
|
|
70
|
+
>
|
|
71
|
+
default
|
|
72
|
+
</span>
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
exports[`Ribbon component should the size is small 1`] = `
|
|
76
|
+
<span
|
|
77
|
+
className="basic palette_default small default"
|
|
78
|
+
data-id="ribbonComp"
|
|
79
|
+
>
|
|
80
|
+
default
|
|
81
|
+
</span>
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`Ribbon component should the size is xlarge 1`] = `
|
|
85
|
+
<span
|
|
86
|
+
className="basic palette_default xlarge default"
|
|
87
|
+
data-id="ribbonComp"
|
|
88
|
+
>
|
|
89
|
+
default
|
|
90
|
+
</span>
|
|
91
|
+
`;
|
|
92
|
+
|
|
93
|
+
exports[`Ribbon component should the type is box 1`] = `
|
|
94
|
+
<span
|
|
95
|
+
className="basic palette_default xlarge default"
|
|
96
|
+
data-id="ribbonComp"
|
|
97
|
+
>
|
|
98
|
+
default
|
|
99
|
+
</span>
|
|
100
|
+
`;
|
|
101
|
+
|
|
102
|
+
exports[`Ribbon component should the type is dafault 1`] = `
|
|
103
|
+
<span
|
|
104
|
+
className="basic palette_default xlarge default"
|
|
105
|
+
data-id="ribbonComp"
|
|
106
|
+
>
|
|
107
|
+
default
|
|
108
|
+
</span>
|
|
109
|
+
`;
|
|
110
|
+
|
|
111
|
+
exports[`Ribbon component should the type is flag 1`] = `
|
|
112
|
+
<span
|
|
113
|
+
className="basic palette_default xlarge default"
|
|
114
|
+
data-id="ribbonComp"
|
|
115
|
+
>
|
|
116
|
+
default
|
|
117
|
+
</span>
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
exports[`Ribbon component should the type is plain 1`] = `
|
|
121
|
+
<span
|
|
122
|
+
className="basic palette_default xlarge default"
|
|
123
|
+
data-id="ribbonComp"
|
|
124
|
+
>
|
|
125
|
+
default
|
|
126
|
+
</span>
|
|
127
|
+
`;
|
|
128
|
+
|
|
129
|
+
exports[`Ribbon component should the type is ribbon 1`] = `
|
|
130
|
+
<span
|
|
131
|
+
className="basic palette_default xlarge default"
|
|
132
|
+
data-id="ribbonComp"
|
|
133
|
+
>
|
|
134
|
+
default
|
|
135
|
+
</span>
|
|
136
|
+
`;
|
|
137
|
+
|
|
138
|
+
exports[`Ribbon component should the type is stamp 1`] = `
|
|
139
|
+
<span
|
|
140
|
+
className="basic palette_default xlarge default"
|
|
141
|
+
data-id="ribbonComp"
|
|
142
|
+
>
|
|
143
|
+
default
|
|
144
|
+
</span>
|
|
145
|
+
`;
|
|
146
|
+
|
|
147
|
+
exports[`Ribbon component should the type is sticker 1`] = `
|
|
148
|
+
<span
|
|
149
|
+
className="basic palette_default xlarge default"
|
|
150
|
+
data-id="ribbonComp"
|
|
151
|
+
>
|
|
152
|
+
default
|
|
153
|
+
</span>
|
|
154
|
+
`;
|
|
155
|
+
|
|
156
|
+
exports[`Ribbon component should the type is tag 1`] = `
|
|
157
|
+
<span
|
|
158
|
+
className="basic large tag"
|
|
159
|
+
data-id="ribbonComp"
|
|
160
|
+
>
|
|
161
|
+
default
|
|
162
|
+
</span>
|
|
163
|
+
`;
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
.effect {
|
|
2
|
-
position: relative;
|
|
3
|
-
border-radius: var(--zd_size4);
|
|
4
|
-
}
|
|
5
|
-
.border {
|
|
6
|
-
border: solid 1px var(--zdt_rippleeffect_default_border);
|
|
7
|
-
}
|
|
8
|
-
.default.defaultHover {
|
|
9
|
-
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
|
-
}
|
|
11
|
-
.hoverEffect:hover.primary.defaultHover, .hoverEffect:focus.primary.defaultHover, .hoverEffect:hover.primary.borderHover, .hoverEffect:focus.primary.borderHover {
|
|
12
|
-
border-color: var(--zdt_rippleeffect_primary_border);
|
|
13
|
-
}
|
|
14
|
-
.primary.defaultHover, .hoverEffect:hover.primary.active.border, .hoverEffect:focus.primary.active.border {
|
|
15
|
-
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
16
|
-
}
|
|
17
|
-
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover, .hoverEffect:focus.primaryLight.borderHover {
|
|
18
|
-
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
19
|
-
}
|
|
20
|
-
.green.defaultHover, .hoverEffect:hover.green.borderHover, .hoverEffect:focus.green.borderHover {
|
|
21
|
-
border-color: var(--zdt_rippleeffect_green_border);
|
|
22
|
-
}
|
|
23
|
-
.hoverEffect:hover.default.defaultHover, .hoverEffect:focus.default.defaultHover {
|
|
24
|
-
border-color: var(--zdt_rippleeffect_slate_border);
|
|
25
|
-
}
|
|
26
|
-
.hoverEffect:hover.default.borderHover, .hoverEffect:focus.default.borderHover {
|
|
27
|
-
border-color: var(--zdt_rippleeffect_navy_border);
|
|
28
|
-
}
|
|
29
|
-
.hoverEffect:hover.default.bgHover, .hoverEffect:focus.default.bgHover {
|
|
30
|
-
background-color: var(--zdt_rippleeffect_hover_bg);
|
|
31
|
-
}
|
|
32
|
-
.hoverEffect:hover.primaryLight.bgHover, .hoverEffect:focus.primaryLight.bgHover {
|
|
33
|
-
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
34
|
-
}
|
|
35
|
-
.primaryFilled {
|
|
36
|
-
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
37
|
-
}
|
|
38
|
-
.hoverEffect:hover.primaryFilled, .hoverEffect:focus.primaryFilled, .primaryFilled.active {
|
|
39
|
-
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
40
|
-
}
|
|
41
|
-
.hoverEffect:hover.green.bgHover, .hoverEffect:focus.green.bgHover {
|
|
42
|
-
background-color: var(--zdt_rippleeffect_green_bg);
|
|
43
|
-
}
|
|
44
|
-
.default.active, .hoverEffect:hover.default.active, .hoverEffect:focus.default.active, .primaryLight.active, .primaryDark.active {
|
|
45
|
-
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
46
|
-
}
|
|
47
|
-
.default.active.border, .hoverEffect:hover.default.active.border, .hoverEffect:focus.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
48
|
-
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
49
|
-
}
|
|
50
|
-
.green.active {
|
|
51
|
-
background-color: var(--zdt_rippleeffect_green_bg);
|
|
52
|
-
}
|
|
53
|
-
.green.active.border {
|
|
54
|
-
border-color: var(--zdt_rippleeffect_green_border);
|
|
55
|
-
}
|
|
56
|
-
.primary.active {
|
|
57
|
-
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
58
|
-
}
|
|
59
|
-
.danger.defaultHover, .hoverEffect:hover.danger.borderHover, .hoverEffect:focus.danger.borderHover {
|
|
60
|
-
border-color: var(--zdt_rippleeffect_danger_border);
|
|
61
|
-
}
|
|
62
|
-
.hoverEffect:hover.danger.bgHover, .hoverEffect:focus.danger.bgHover, .danger.active {
|
|
63
|
-
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
64
|
-
}
|
|
65
|
-
.hoverEffect:hover.primaryDark.bgHover, .hoverEffect:focus.primaryDark.bgHover {
|
|
66
|
-
background-color: var(--zdt_rippleeffect_primary_dark_bg);
|
|
67
|
-
}
|
|
68
|
-
.notAllowed {
|
|
69
|
-
cursor: not-allowed;
|
|
70
|
-
}
|
|
1
|
+
.effect {
|
|
2
|
+
position: relative;
|
|
3
|
+
border-radius: var(--zd_size4);
|
|
4
|
+
}
|
|
5
|
+
.border {
|
|
6
|
+
border: solid 1px var(--zdt_rippleeffect_default_border);
|
|
7
|
+
}
|
|
8
|
+
.default.defaultHover {
|
|
9
|
+
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
|
+
}
|
|
11
|
+
.hoverEffect:hover.primary.defaultHover, .hoverEffect:focus.primary.defaultHover, .hoverEffect:hover.primary.borderHover, .hoverEffect:focus.primary.borderHover {
|
|
12
|
+
border-color: var(--zdt_rippleeffect_primary_border);
|
|
13
|
+
}
|
|
14
|
+
.primary.defaultHover, .hoverEffect:hover.primary.active.border, .hoverEffect:focus.primary.active.border {
|
|
15
|
+
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
16
|
+
}
|
|
17
|
+
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover, .hoverEffect:focus.primaryLight.borderHover {
|
|
18
|
+
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
19
|
+
}
|
|
20
|
+
.green.defaultHover, .hoverEffect:hover.green.borderHover, .hoverEffect:focus.green.borderHover {
|
|
21
|
+
border-color: var(--zdt_rippleeffect_green_border);
|
|
22
|
+
}
|
|
23
|
+
.hoverEffect:hover.default.defaultHover, .hoverEffect:focus.default.defaultHover {
|
|
24
|
+
border-color: var(--zdt_rippleeffect_slate_border);
|
|
25
|
+
}
|
|
26
|
+
.hoverEffect:hover.default.borderHover, .hoverEffect:focus.default.borderHover {
|
|
27
|
+
border-color: var(--zdt_rippleeffect_navy_border);
|
|
28
|
+
}
|
|
29
|
+
.hoverEffect:hover.default.bgHover, .hoverEffect:focus.default.bgHover {
|
|
30
|
+
background-color: var(--zdt_rippleeffect_hover_bg);
|
|
31
|
+
}
|
|
32
|
+
.hoverEffect:hover.primaryLight.bgHover, .hoverEffect:focus.primaryLight.bgHover {
|
|
33
|
+
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
34
|
+
}
|
|
35
|
+
.primaryFilled {
|
|
36
|
+
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
37
|
+
}
|
|
38
|
+
.hoverEffect:hover.primaryFilled, .hoverEffect:focus.primaryFilled, .primaryFilled.active {
|
|
39
|
+
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
40
|
+
}
|
|
41
|
+
.hoverEffect:hover.green.bgHover, .hoverEffect:focus.green.bgHover {
|
|
42
|
+
background-color: var(--zdt_rippleeffect_green_bg);
|
|
43
|
+
}
|
|
44
|
+
.default.active, .hoverEffect:hover.default.active, .hoverEffect:focus.default.active, .primaryLight.active, .primaryDark.active {
|
|
45
|
+
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
46
|
+
}
|
|
47
|
+
.default.active.border, .hoverEffect:hover.default.active.border, .hoverEffect:focus.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
48
|
+
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
49
|
+
}
|
|
50
|
+
.green.active {
|
|
51
|
+
background-color: var(--zdt_rippleeffect_green_bg);
|
|
52
|
+
}
|
|
53
|
+
.green.active.border {
|
|
54
|
+
border-color: var(--zdt_rippleeffect_green_border);
|
|
55
|
+
}
|
|
56
|
+
.primary.active {
|
|
57
|
+
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
58
|
+
}
|
|
59
|
+
.danger.defaultHover, .hoverEffect:hover.danger.borderHover, .hoverEffect:focus.danger.borderHover {
|
|
60
|
+
border-color: var(--zdt_rippleeffect_danger_border);
|
|
61
|
+
}
|
|
62
|
+
.hoverEffect:hover.danger.bgHover, .hoverEffect:focus.danger.bgHover, .danger.active {
|
|
63
|
+
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
64
|
+
}
|
|
65
|
+
.hoverEffect:hover.primaryDark.bgHover, .hoverEffect:focus.primaryDark.bgHover {
|
|
66
|
+
background-color: var(--zdt_rippleeffect_primary_dark_bg);
|
|
67
|
+
}
|
|
68
|
+
.notAllowed {
|
|
69
|
+
cursor: not-allowed;
|
|
70
|
+
}
|
|
@@ -192,7 +192,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
if (selectedOption !== prevProps.selectedOption) {
|
|
195
|
-
var _this$handleGetSelect2 = this.handleGetSelectedId(this.props,
|
|
195
|
+
var _this$handleGetSelect2 = this.handleGetSelectedId(this.props, allOptionIds),
|
|
196
196
|
_selectedId = _this$handleGetSelect2.selectedId,
|
|
197
197
|
_hoverIndex = _this$handleGetSelect2.hoverIndex;
|
|
198
198
|
|
package/lib/Select/Select.js
CHANGED
|
@@ -37,8 +37,6 @@ var _Common = require("../utils/Common.js");
|
|
|
37
37
|
|
|
38
38
|
var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
|
|
39
39
|
|
|
40
|
-
var _Config = require("../Provider/Config");
|
|
41
|
-
|
|
42
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
43
41
|
|
|
44
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -753,8 +751,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
753
751
|
htmlId = _this$props11.htmlId,
|
|
754
752
|
children = _this$props11.children,
|
|
755
753
|
iconOnHover = _this$props11.iconOnHover,
|
|
756
|
-
customProps = _this$props11.customProps
|
|
757
|
-
autoComplete = _this$props11.autoComplete;
|
|
754
|
+
customProps = _this$props11.customProps;
|
|
758
755
|
var _i18nKeys = i18nKeys,
|
|
759
756
|
TextBoxIcon_i18n = _i18nKeys.TextBoxIcon_i18n,
|
|
760
757
|
_i18nKeys$TextBox_all = _i18nKeys.TextBox_ally_label,
|
|
@@ -821,7 +818,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
821
818
|
borderColor: borderColor,
|
|
822
819
|
htmlId: htmlId,
|
|
823
820
|
isFocus: isPopupReady,
|
|
824
|
-
autoComplete:
|
|
821
|
+
autoComplete: false,
|
|
825
822
|
customProps: {
|
|
826
823
|
TextBoxProps: TextBoxProps
|
|
827
824
|
}
|
|
@@ -868,7 +865,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
868
865
|
onKeyPress: this.handleValueInputChange,
|
|
869
866
|
borderColor: borderColor,
|
|
870
867
|
htmlId: htmlId,
|
|
871
|
-
autoComplete:
|
|
868
|
+
autoComplete: false,
|
|
872
869
|
isFocus: isPopupReady,
|
|
873
870
|
customProps: TextBoxProps
|
|
874
871
|
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
@@ -903,7 +900,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
903
900
|
onClear: this.handleClearSearch,
|
|
904
901
|
dataId: "".concat(dataId, "_search"),
|
|
905
902
|
i18nKeys: TextBoxIcon_i18n,
|
|
906
|
-
autoComplete:
|
|
903
|
+
autoComplete: false,
|
|
907
904
|
customProps: {
|
|
908
905
|
TextBoxProps: DropdownSearchTextBoxProps
|
|
909
906
|
}
|
|
@@ -947,7 +944,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
947
944
|
exports.SelectComponent = SelectComponent;
|
|
948
945
|
SelectComponent.propTypes = {
|
|
949
946
|
animationStyle: _propTypes["default"].string,
|
|
950
|
-
autoComplete: _propTypes["default"].bool,
|
|
951
947
|
autoSelectDebouneTime: _propTypes["default"].number,
|
|
952
948
|
autoSelectOnType: _propTypes["default"].bool,
|
|
953
949
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
@@ -1033,7 +1029,6 @@ SelectComponent.propTypes = {
|
|
|
1033
1029
|
};
|
|
1034
1030
|
SelectComponent.defaultProps = {
|
|
1035
1031
|
animationStyle: 'bounce',
|
|
1036
|
-
autoComplete: (0, _Config.getLibraryConfig)('autoComplete'),
|
|
1037
1032
|
autoSelectOnType: true,
|
|
1038
1033
|
dataId: 'selectComponent',
|
|
1039
1034
|
dropBoxSize: 'small',
|