@zohodesk/components 1.0.0-temp-211.2 → 1.0.0-temp-216

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.
Files changed (167) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +118 -31
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +5 -0
  4. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +4 -0
  5. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +4 -0
  6. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +4 -0
  7. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +4 -0
  8. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +4 -0
  9. package/assets/Appearance/light/mode/Component_LightMode.module.css +5 -0
  10. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +4 -0
  11. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +4 -0
  12. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +4 -0
  13. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +4 -0
  14. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +4 -0
  15. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +5 -0
  16. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +4 -0
  17. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +4 -0
  18. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +4 -0
  19. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +4 -0
  20. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +4 -0
  21. package/es/AvatarTeam/props/propTypes.js +2 -1
  22. package/es/Button/Button.js +9 -2
  23. package/es/Button/css/Button.module.css +82 -0
  24. package/es/Button/css/cssJSLogic.js +6 -1
  25. package/es/CheckBox/CheckBox.js +6 -5
  26. package/es/CheckBox/CheckBox.module.css +5 -2
  27. package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
  28. package/es/DateTime/CalendarView.js +17 -12
  29. package/es/DateTime/DateTime.js +26 -8
  30. package/es/DateTime/DateTime.module.css +5 -5
  31. package/es/DateTime/DateWidget.js +13 -2
  32. package/es/DateTime/DaysRow.js +3 -2
  33. package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +7 -7
  34. package/es/DateTime/props/defaultProps.js +9 -3
  35. package/es/DateTime/props/propTypes.js +16 -4
  36. package/es/DropBox/DropBoxElement/DropBoxElement.js +3 -1
  37. package/es/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +1 -0
  38. package/es/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +1 -0
  39. package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +1 -0
  40. package/es/ListItem/ListItemWithAvatar.js +7 -3
  41. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  42. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
  43. package/es/ListItem/props/propTypes.js +6 -1
  44. package/es/MultiSelect/AdvancedGroupMultiSelect.js +4 -2
  45. package/es/MultiSelect/AdvancedMultiSelect.js +4 -2
  46. package/es/MultiSelect/MultiSelect.js +11 -3
  47. package/es/MultiSelect/props/propTypes.js +6 -3
  48. package/es/Popup/Popup.js +125 -7
  49. package/es/Popup/intersectionObserver.js +49 -0
  50. package/es/Popup/props/propTypes.js +30 -0
  51. package/es/Provider/LibraryContext.js +2 -2
  52. package/es/Radio/Radio.js +9 -7
  53. package/es/Radio/Radio.module.css +1 -1
  54. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
  55. package/es/Responsive/ResizeObserver.js +21 -85
  56. package/es/Responsive/ResizeObserverWithPolyfill.js +140 -0
  57. package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -0
  58. package/es/Select/GroupSelect.js +15 -3
  59. package/es/Select/props/defaultProps.js +2 -1
  60. package/es/Select/props/propTypes.js +5 -1
  61. package/es/Switch/Switch.js +3 -27
  62. package/es/Switch/Switch.module.css +15 -126
  63. package/es/Tag/Tag.js +10 -3
  64. package/es/Tag/props/defaultProps.js +2 -1
  65. package/es/Tag/props/propTypes.js +7 -1
  66. package/es/TextBox/TextBox.js +1 -1
  67. package/es/Textarea/Textarea.js +4 -2
  68. package/es/Textarea/Textarea.module.css +1 -1
  69. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
  70. package/es/Textarea/props/propTypes.js +2 -1
  71. package/es/Typography/Typography.js +38 -0
  72. package/es/Typography/css/Typography.module.css +489 -0
  73. package/es/Typography/css/cssJSLogic.js +56 -0
  74. package/es/Typography/props/defaultProps.js +8 -0
  75. package/es/Typography/props/propTypes.js +27 -0
  76. package/es/Typography/utils/index.js +50 -0
  77. package/es/index.js +1 -2
  78. package/es/v1/AppContainer/AppContainer.js +0 -6
  79. package/es/v1/DateTime/CalendarView.js +9 -6
  80. package/es/v1/DateTime/DateTime.js +18 -4
  81. package/es/v1/DateTime/DateWidget.js +5 -1
  82. package/es/v1/DateTime/DaysRow.js +3 -2
  83. package/es/v1/DateTime/props/defaultProps.js +9 -3
  84. package/es/v1/DateTime/props/propTypes.js +11 -4
  85. package/es/v1/MultiSelect/MultiSelect.js +7 -1
  86. package/es/v1/Select/GroupSelect.js +5 -0
  87. package/es/v1/Typography/Typography.js +1 -1
  88. package/lib/AvatarTeam/props/propTypes.js +3 -1
  89. package/lib/Button/Button.js +24 -2
  90. package/lib/Button/css/Button.module.css +82 -0
  91. package/lib/Button/css/cssJSLogic.js +6 -2
  92. package/lib/CheckBox/CheckBox.js +5 -4
  93. package/lib/CheckBox/CheckBox.module.css +5 -2
  94. package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
  95. package/lib/DateTime/CalendarView.js +17 -12
  96. package/lib/DateTime/DateTime.js +38 -9
  97. package/lib/DateTime/DateTime.module.css +5 -5
  98. package/lib/DateTime/DateWidget.js +13 -2
  99. package/lib/DateTime/DaysRow.js +3 -2
  100. package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +7 -7
  101. package/lib/DateTime/props/defaultProps.js +9 -3
  102. package/lib/DateTime/props/propTypes.js +16 -4
  103. package/lib/DropBox/DropBoxElement/DropBoxElement.js +3 -1
  104. package/lib/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +1 -0
  105. package/lib/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +1 -0
  106. package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +1 -0
  107. package/lib/ListItem/ListItemWithAvatar.js +8 -4
  108. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  109. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
  110. package/lib/ListItem/props/propTypes.js +8 -1
  111. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +4 -2
  112. package/lib/MultiSelect/AdvancedMultiSelect.js +4 -2
  113. package/lib/MultiSelect/MultiSelect.js +11 -3
  114. package/lib/MultiSelect/props/propTypes.js +8 -6
  115. package/lib/Popup/Popup.js +135 -8
  116. package/lib/Popup/intersectionObserver.js +72 -0
  117. package/lib/Popup/props/propTypes.js +51 -0
  118. package/lib/Provider/LibraryContext.js +2 -2
  119. package/lib/Radio/Radio.js +10 -7
  120. package/lib/Radio/Radio.module.css +1 -1
  121. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
  122. package/lib/Responsive/ResizeObserver.js +20 -88
  123. package/lib/Responsive/ResizeObserverWithPolyfill.js +168 -0
  124. package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -0
  125. package/lib/Select/GroupSelect.js +17 -5
  126. package/lib/Select/props/defaultProps.js +2 -1
  127. package/lib/Select/props/propTypes.js +5 -1
  128. package/lib/Switch/Switch.js +4 -34
  129. package/lib/Switch/Switch.module.css +15 -126
  130. package/lib/Tag/Tag.js +10 -5
  131. package/lib/Tag/props/defaultProps.js +2 -1
  132. package/lib/Tag/props/propTypes.js +9 -1
  133. package/lib/TextBox/TextBox.js +1 -1
  134. package/lib/Textarea/Textarea.js +4 -2
  135. package/lib/Textarea/Textarea.module.css +1 -1
  136. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
  137. package/lib/Textarea/props/propTypes.js +2 -1
  138. package/lib/Typography/Typography.js +56 -0
  139. package/lib/Typography/css/Typography.module.css +489 -0
  140. package/lib/Typography/css/cssJSLogic.js +48 -0
  141. package/lib/Typography/props/defaultProps.js +15 -0
  142. package/lib/Typography/props/propTypes.js +38 -0
  143. package/lib/Typography/utils/index.js +59 -0
  144. package/lib/index.js +1 -10
  145. package/lib/v1/AppContainer/AppContainer.js +0 -12
  146. package/lib/v1/DateTime/CalendarView.js +9 -6
  147. package/lib/v1/DateTime/DateTime.js +27 -4
  148. package/lib/v1/DateTime/DateWidget.js +5 -1
  149. package/lib/v1/DateTime/DaysRow.js +3 -2
  150. package/lib/v1/DateTime/props/defaultProps.js +9 -3
  151. package/lib/v1/DateTime/props/propTypes.js +11 -4
  152. package/lib/v1/MultiSelect/MultiSelect.js +7 -1
  153. package/lib/v1/Select/GroupSelect.js +5 -0
  154. package/lib/v1/Typography/Typography.js +2 -2
  155. package/package.json +8 -8
  156. package/propValidationArg.json +1 -1
  157. package/result.json +1 -1
  158. package/es/SwitchNew/SwitchNew.js +0 -118
  159. package/es/SwitchNew/SwitchNew.module.css +0 -155
  160. package/es/SwitchNew/props/defaultProps.js +0 -9
  161. package/es/SwitchNew/props/propTypes.js +0 -32
  162. package/lib/SwitchNew/SwitchNew.js +0 -148
  163. package/lib/SwitchNew/SwitchNew.module.css +0 -155
  164. package/lib/SwitchNew/props/defaultProps.js +0 -16
  165. package/lib/SwitchNew/props/propTypes.js +0 -43
  166. /package/es/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
  167. /package/lib/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
package/README.md CHANGED
@@ -32,12 +32,98 @@ In this Package, we Provide Some Basic Components to Build Web App
32
32
  - TextBoxIcon
33
33
  - Tooltip
34
34
 
35
+ # 1.2.55 (yet to publish)
36
+
37
+ - **ListItemWithAvatar**
38
+ - `AvatarTeamProps` and `AvatarProps` props has been added under the `customProps` group.
39
+
40
+ - **Tag**
41
+ - `avatarProps` and `iconProps` prop has been added under the `customProps` group.
42
+
43
+ # 1.2.54
44
+
45
+ - **Reverted 1.2.45 MultiSelect Fix**
46
+ - The issue with the non-scrollable API call trigger in multiselect, introduced in version `1.2.45`, has been `reverted` in this version.
47
+
48
+
49
+ # 1.2.53
50
+
51
+ - **CheckBox** - Disabled State CheckBox Color Fixed
52
+ - **Radio** - ReadOnly State Radio Cursor and color Fixed
53
+ - **Textarea** - isFocus Prop added
54
+ - **AdvancedGroupMultiSelect** - isFocus Prop added
55
+ - **AdvancedMultiSelect** - isFocus Prop added
56
+ - **MultiSelect** - isFocus Prop added
57
+ - **DateWidget** - onDropboxClose,renderCustomHeader,renderCustomFooter Props added
58
+ - **DateTime** - renderCustomHeader,renderCustomFooter Props added
59
+ - **GroupSelect** - customProps supported
60
+
61
+ # 1.2.52
62
+
63
+ - **Typography** - component added in v0
64
+
65
+ # 1.2.51
66
+
67
+ - **Popup** - Fixed issue: Error on unmount when target ref is not available.
68
+
69
+ # 1.2.50
70
+
71
+ - **DateTime (v0&v1), CalendarView (v0&v1)**
72
+
73
+ - Week starting day customization support added with `weekStartDay` props and week holiday customization support with `holidays` prop
74
+
75
+ - **DateWidget (v0&v1)**
76
+
77
+ - Support has been added for `weekStartDay`, `holidays` props
78
+
79
+ - **DaysRow (v0&v1)**
80
+
81
+ - `holidays` prop added for holiday column indication
82
+
83
+ # 1.2.49
84
+
85
+ - **Popup**
86
+ - `isOutsideScrollBlocked` prop supported - Scroll blocking behaviours supported
87
+ - Fixed popup re-positioning on window resize not working properly - Issue fixed
88
+ - **DropBoxElement**
89
+ - The dot-ui-element attribute has been added to facilitate the use of component-level CSS selectors
90
+
91
+ # 1.2.48
92
+
93
+ - **ResizeObserver**
94
+
95
+ - The ResizeObserver PolyFill code has been removed, and a separate copy with the PolyFill included is saved under the filename ResizeObserverWithPolyfill.js
96
+
97
+
98
+ # 1.2.47
99
+
100
+ - **DateTime**
101
+
102
+ - The issue of the dateTime_dateSelected string being duplicated in the data_id attribute when selecting the last day of the month has been resolved.
103
+
104
+ # 1.2.46
105
+
106
+ - **AppContainer (v1)**
107
+
108
+ - Removed color, zoom size, font size and font family variable files imports
109
+
110
+ # 1.2.45
111
+
112
+ - **GroupSelect**
113
+
114
+ - The issue with TextBoxIcon_i18n returning an undefined value while using the needSelectDownIcon prop has been fixed.
115
+
116
+ - **MultiSelect**
117
+ - Functionality Added - If the container is non-scrollable, the API call is triggered to fetch the next set of data upon selecting an option.
118
+
35
119
  # 1.2.44
36
120
 
37
121
  - **Tabs (v0&v1), AdvancedGroupMultiSelect (v1)**
122
+
38
123
  - `isAbsolutePositioningNeeded` `isRestrictScroll` `positionsOffset` `targetOffset` props supported for fixed position.
39
124
 
40
125
  - **Tabs (v0&v1)**
126
+
41
127
  - padding css fix
42
128
 
43
129
  - **DropDownSearch (v1)**
@@ -53,16 +139,17 @@ In this Package, we Provide Some Basic Components to Build Web App
53
139
 
54
140
  # 1.2.42
55
141
 
56
- - **Heading (v0&v1)** -
142
+ - **Heading (v0&v1)** -
143
+
57
144
  - whiteSpace prop added
58
145
 
59
- - **Tooltip (v0&v1)** -
146
+ - **Tooltip (v0&v1)** -
60
147
  - whiteSpace prop added
61
148
  - `data-title-wrap` now accepts whitespace CSS values instead of a boolean, allowing the tooltip to support all whitespace options. Default value is `normal`.
62
149
 
63
150
  # 1.2.41
64
151
 
65
- - **Tabs**
152
+ - **Tabs**
66
153
  - Search implemented in more popup (v0& v1)
67
154
 
68
155
  # 1.2.40
@@ -73,14 +160,14 @@ In this Package, we Provide Some Basic Components to Build Web App
73
160
 
74
161
  - **LibraryContext** - coloredTagVariant, hasTagColorInheritedToText properties added
75
162
  - **Tag** - customAttributes prop supported
76
- - **TextBoxIcon** - needInputFocusOnParentClick prop supported
163
+ - **TextBoxIcon** - needInputFocusOnWrapperClick prop supported
77
164
 
78
165
  # 1.2.38
79
166
 
80
167
  - **renderRightPlaceholderNode**
81
- - renderRightPlaceholderNode support given for `CheckBox` `Textarea` `Select` `MultiSelect` `TextBoxIcon`.
82
- - Json File Import Changed to JS modules in `Popup/PositionMapping` `DropBox/DropBoxPositionMapping`.
83
- - **DateWidget**
168
+ - renderRightPlaceholderNode support given for `CheckBox` `Textarea` `Select` `MultiSelect` `TextBoxIcon`.
169
+ - Json File Import Changed to JS modules in `Popup/PositionMapping` `DropBox/DropBoxPositionMapping`.
170
+ - **DateWidget**
84
171
  - TextBoxIconProps key supported in customProps prop
85
172
  - **MultiSelect**
86
173
  - customProps prop added and TextBoxIconProps customization given (Prop Spreaded).
@@ -91,17 +178,17 @@ In this Package, we Provide Some Basic Components to Build Web App
91
178
 
92
179
  # 1.2.37
93
180
 
94
- - **Tabs**
181
+ - **Tabs**
95
182
  - dataID prop import missing for more menu dropdown issue fix (v0 and v1)
96
183
 
97
184
  # 1.2.36
98
185
 
99
- - **dataID & dataTestID**
186
+ - **dataID & dataTestID**
100
187
  - support has been added for the `DropDownSearch` `ListItemWithRadio` `AdvancedGroupMultiSelect` `AdvancedMultiSelect` `MultiSelect` `MultiSelectWithAvatar` `SelectedOptions` `SelectWithAvatar` `SelectWithIcon` `Tabs` Component (v0 and v1).
101
188
 
102
189
  # 1.2.35
103
190
 
104
- - **MultiSelect**
191
+ - **MultiSelect**
105
192
  - `dataId` support has been added for the ResponsiveDropBox Component.
106
193
  - The `dataId` will be reflected as `dataId` with the suffix "_dropbox".
107
194
  - **DateWidget**
@@ -141,13 +228,13 @@ In this Package, we Provide Some Basic Components to Build Web App
141
228
 
142
229
  # 1.2.27
143
230
 
144
- - **DateWidget** - The issue with the YearView Open State Reset on Blur Event in DidMount has been resolved
231
+ - **DateWidget** - The issue with the YearView Open State Reset on Blur Event in DidMount has been resolved
145
232
 
146
233
  # 1.2.26
147
234
 
148
235
  - **MultiSelect, MultiSelectWithAvatar** - Mobile Header Render Issue in Mobile Responsive Fixed.
149
236
  - **isMobilePopover** - Function added in Dropbox.
150
- - **Tag** - closeTitle not working issue fixed ( because value sends in wrong prop key data-title)
237
+ - **Tag** - closeTitle not working issue fixed ( because value sends in wrong prop key data-title)
151
238
 
152
239
  # 1.2.25
153
240
 
@@ -171,25 +258,25 @@ In this Package, we Provide Some Basic Components to Build Web App
171
258
 
172
259
  - **v1/Tabs** - converted to functional component
173
260
  - **TextBox** - Tooltip Issue fixed
174
- - **Tooltip** - Input Element Based Tooltip Fix Related Fix Added
261
+ - **Tooltip** - Input Element Based Tooltip Fix Related Fix Added
175
262
 
176
263
  # 1.2.20
177
264
 
178
265
  - **Avatar, ListContainer, Suggestions, Select, Switch** - Accessibility issue fixes.
179
266
 
180
- # 1.2.19
267
+ # 1.2.19
181
268
 
182
269
  - Typography - lineheight unitless prop added
183
270
  - v1/Modal - converted to functional component
184
271
  - DateWidget - Manual Type TimeZone Issue Fixed
185
272
 
186
- # 1.2.18
273
+ # 1.2.18
187
274
 
188
- - TextBox - MaxLength Default Prop Removed
275
+ - TextBox - MaxLength Default Prop Removed
189
276
 
190
- # 1.2.17
277
+ # 1.2.17
191
278
 
192
- - DateWidget TimeZone Exception Supported
279
+ - DateWidget TimeZone Exception Supported
193
280
 
194
281
  # 1.2.15, # 1.2.16
195
282
 
@@ -245,11 +332,11 @@ In this Package, we Provide Some Basic Components to Build Web App
245
332
 
246
333
  # 1.2.4
247
334
 
248
- - **Typography** new component added
335
+ - **Typography** new component added
249
336
 
250
337
  # 1.2.3
251
338
 
252
- - **MultiSelect , MultiSelectWithAvatar** mobile responsive features added
339
+ - **MultiSelect , MultiSelectWithAvatar** mobile responsive features added
253
340
  - **Mobile Header** Component added
254
341
  - Proptype validation fixed
255
342
 
@@ -265,7 +352,7 @@ In this Package, we Provide Some Basic Components to Build Web App
265
352
 
266
353
  # 1.2.0
267
354
 
268
- - **utils** and **hooks** packages added as dependency
355
+ - **utils** and **hooks** packages added as dependency
269
356
 
270
357
  - **mergeStyle** and **compileClassNames** - deprecated and used from `utils` package
271
358
 
@@ -321,7 +408,7 @@ In this Package, we Provide Some Basic Components to Build Web App
321
408
  - `stopPropagation` method added in common utils.
322
409
 
323
410
  - **DropBox**
324
-
411
+
325
412
  cancelBubblingEffect fix.
326
413
 
327
414
  `fadeIn` and `scaleIn` animations added.
@@ -362,11 +449,11 @@ In this Package, we Provide Some Basic Components to Build Web App
362
449
 
363
450
  # 1.0.0-alpha-263
364
451
 
365
- - **ListItem, ListItemWithAvatar, ListItemWithCheckbox, ListItemWithIcon, ListItemWithRadio** - Line height changed 20px and Padding also changed.
452
+ - **ListItem, ListItemWithAvatar, ListItemWithCheckbox, ListItemWithIcon, ListItemWithRadio** - Line height changed 20px and Padding also changed.
366
453
 
367
454
  # 1.0.0-alpha-262
368
455
 
369
- - **ListItem, ListItemWithAvatar, ListItemWithCheckbox, ListItemWithIcon, ListItemWithRadio** - Added New Prop `needMultiLineText`
456
+ - **ListItem, ListItemWithAvatar, ListItemWithCheckbox, ListItemWithIcon, ListItemWithRadio** - Added New Prop `needMultiLineText`
370
457
 
371
458
  - **MultiSelect, MultiSelectWithAvatar** - `keepSelectedOptions` prop added. When this prop is true, it won't remove selected items from the dropdown instead it highlights each selected item with tick mark.
372
459
 
@@ -378,7 +465,7 @@ In this Package, we Provide Some Basic Components to Build Web App
378
465
 
379
466
  - compileClassNames , mergeStyle utils added.
380
467
 
381
- - index export object fixed.
468
+ - index export object fixed.
382
469
 
383
470
  # 1.0.0-alpha-260
384
471
 
@@ -393,7 +480,7 @@ In this Package, we Provide Some Basic Components to Build Web App
393
480
  # 1.0.0-alpha-259
394
481
 
395
482
  - **Avatar**
396
-
483
+
397
484
  `needInnerBorder` and `needDefaultBorder` prop has been added.
398
485
 
399
486
  `xxsmall` option added for size prop.
@@ -408,7 +495,7 @@ In this Package, we Provide Some Basic Components to Build Web App
408
495
 
409
496
  # 1.0.0-alpha-257
410
497
 
411
- - **Avatar** - Avatar initial render issue and image border issue solved
498
+ - **Avatar** - Avatar initial render issue and image border issue solved
412
499
 
413
500
  - **DateWidget** - `boxSize` and `onError` prop has been added.
414
501
 
@@ -418,7 +505,7 @@ In this Package, we Provide Some Basic Components to Build Web App
418
505
 
419
506
  - **Switch** - Click handling issue fix.
420
507
 
421
- - **Tabs, Tab** - Screen Reader fix.
508
+ - **Tabs, Tab** - Screen Reader fix.
422
509
 
423
510
  # 1.0.0-alpha-255
424
511
 
@@ -436,7 +523,7 @@ In this Package, we Provide Some Basic Components to Build Web App
436
523
 
437
524
  # 1.0.0-alpha-253
438
525
 
439
- - **Tabs, Tooltip** - If condition check added to reduce murphy error logs.
526
+ - **Tabs, Tooltip** - If condition check added to reduce murphy error logs.
440
527
 
441
528
  - `Accesssility`- Screen Reader support for some components.
442
529
 
@@ -446,9 +533,9 @@ In this Package, we Provide Some Basic Components to Build Web App
446
533
 
447
534
  - **componentAppearanceVariableJson**
448
535
 
449
- `zdt_datetime_today_bg` variable renamed as `zdt_datetime_selected_bg`
536
+ `zdt_datetime_today_bg` variable renamed as `zdt_datetime_selected_bg`
450
537
 
451
- `zdt_datetime_today_border` variable added.
538
+ `zdt_datetime_today_border` variable added.
452
539
 
453
540
  - **CalendarView** - `isToday` prop added to display today's date as a separate style.
454
541
 
@@ -71,6 +71,11 @@
71
71
  --zdt_button_loading_primary_linear_gradient: linear-gradient(0deg, rgba(71, 157, 255, 1) 50%, rgba(71, 157, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(71, 157, 255, 0.9) 0%, rgba(71, 157, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(71, 157, 255, 0.6) 0%, rgba(71, 157, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(71, 157, 255, 0.3) 0%, rgba(71, 157, 255, 0) 100%) 0% 100%;
72
72
  --zdt_button_loading_danger_linear_gradient: linear-gradient(0deg, rgba(255, 107, 107, 1) 50%, rgba(255, 107, 107, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 107, 107, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 107, 107, 0.6) 0%, rgba(255, 107, 107, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0) 100%) 0% 100%;
73
73
 
74
+ /* strikethrough buttons */
75
+ --zdt_button_danger_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
76
+ --zdt_success_strike: hsla(131, 64.42%, calc(68.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
77
+ --zdt_secondaryfilled_strike: var(--zdtm_cta_grey_40_border_default_inverse_low);
78
+
74
79
  /* button group */
75
80
  --zdt_buttongroup_default_bg: hsla(217, 23.08%, calc(17.84% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
76
81
  --zdt_buttongroup_default_border: hsla(204, 10.64%, calc(90.78% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(71,157,255);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(69,161,89);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(255,128,31);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(233,79,79);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(215,152,53);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(42, 75.56%, calc(17.65% + var(--zdc_default_inverse_low)), calc( 0.2 + var(--zdc_alpha_low)));
45
49
  }
@@ -71,6 +71,11 @@
71
71
  --zdt_button_loading_primary_linear_gradient: linear-gradient(0deg, rgba(10, 115, 235, 1) 50%, rgba(10, 115, 235, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(10, 115, 235, 0.9) 0%, rgba(10, 115, 235, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(10, 115, 235, 0.6) 0%, rgba(10, 115, 235, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(10, 115, 235, 0.3) 0%, rgba(10, 115, 235, 0) 100%) 0% 100%;
72
72
  --zdt_button_loading_danger_linear_gradient: linear-gradient(0deg, rgba(222, 53, 53, 1) 50%, rgba(222, 53, 53, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(222, 53, 53, 0.9) 0%, rgba(222, 53, 53, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(222, 53, 53, 0.6) 0%, rgba(222, 53, 53, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(222, 53, 53, 0.3) 0%, rgba(222, 53, 53, 0) 100%) 0% 100%;
73
73
 
74
+ /* strikethrough buttons */
75
+ --zdt_button_danger_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
76
+ --zdt_success_strike: hsla(123, 60.37%, calc(57.45% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
77
+ --zdt_secondaryfilled_strike: var(--zdtm_cta_grey_40_border_default_inverse_low);
78
+
74
79
  /* button group */
75
80
  --zdt_buttongroup_default_bg: hsla(0, 0.00%, calc(100.00% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
76
81
  --zdt_buttongroup_default_border: hsla(204, 10.64%, calc(90.78% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(10,115,235);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(212, 91.84%, calc(48.04% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(38,169,66);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(133, 63.29%, calc(40.59% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(229,119,23);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(26, 100.00%, calc(50.00% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(222,53,53);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(0, 71.91%, calc(53.92% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(232,185,35);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(46, 92.59%, calc(37.06% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(42, 75.56%, calc(17.65% + var(--zdc_default_inverse_low)), calc( 0.2 + var(--zdc_alpha_low)));
45
49
  }
@@ -71,6 +71,11 @@
71
71
  --zdt_button_loading_primary_linear_gradient: linear-gradient(0deg, rgba(71, 157, 255, 1) 50%, rgba(71, 157, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(71, 157, 255, 0.9) 0%, rgba(71, 157, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(71, 157, 255, 0.6) 0%, rgba(71, 157, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(71, 157, 255, 0.3) 0%, rgba(71, 157, 255, 0) 100%) 0% 100%;
72
72
  --zdt_button_loading_danger_linear_gradient: linear-gradient(0deg, rgba(255, 107, 107, 1) 50%, rgba(255, 107, 107, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 107, 107, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 107, 107, 0.6) 0%, rgba(255, 107, 107, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0) 100%) 0% 100%;
73
73
 
74
+ /* strikethrough buttons */
75
+ --zdt_button_danger_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
76
+ --zdt_success_strike: hsla(131, 64.42%, calc(68.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
77
+ --zdt_secondaryfilled_strike: var(--zdtm_cta_grey_40_border_default_inverse_low);
78
+
74
79
  /* button group */
75
80
  --zdt_buttongroup_default_bg: hsla(0, 0.00%, calc(12.94% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
76
81
  --zdt_buttongroup_default_border: hsla(204, 10.64%, calc(90.78% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(71,157,255);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(69,161,89);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(255,128,31);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(233,79,79);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.35 + var(--zdc_alpha_low)));
45
49
  }
@@ -42,4 +42,8 @@
42
42
 
43
43
  /* focusscope */
44
44
  --zdt_a11y_focusScope_focus_border: rgb(215,152,53);
45
+
46
+ /* strikethrough_buttons */
47
+ --zdt_button_primary_strike: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse_low)), calc( 0.25 + var(--zdc_alpha_low)));
48
+ --zdt_button_primary_filled_strike: hsla(42, 75.56%, calc(17.65% + var(--zdc_default_inverse_low)), calc( 0.2 + var(--zdc_alpha_low)));
45
49
  }
@@ -1,4 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
+ import { propTypes as AvatarProps } from '../../Avatar/props/propTypes';
2
3
  export const propTypes = {
3
4
  dataId: PropTypes.string,
4
5
  dataSelectorId: PropTypes.string,
@@ -22,6 +23,6 @@ export const propTypes = {
22
23
  needDefaultBorder: PropTypes.bool,
23
24
  customProps: PropTypes.shape({
24
25
  AvatarTeamProps: PropTypes.object,
25
- AvatarProps: PropTypes.object
26
+ AvatarProps: PropTypes.exact(AvatarProps)
26
27
  })
27
28
  };
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
+ import LibraryContext from '../Provider/LibraryContextInit';
2
3
  import { defaultProps } from './props/defaultProps';
3
4
  import { propTypes } from './props/propTypes';
4
5
  import cssJSLogic from './css/cssJSLogic';
@@ -29,13 +30,19 @@ export default function Button(props) {
29
30
  a11y,
30
31
  id
31
32
  } = props;
33
+ const {
34
+ a11y_strikeThroughButtons
35
+ } = useContext(LibraryContext);
32
36
  const finalStyle = mergeStyle(style, customStyle);
37
+ const buttonProps = { ...props,
38
+ a11y_strikeThroughButtons
39
+ };
33
40
  const {
34
41
  buttonClass,
35
42
  loaderParentClass,
36
43
  loaderChildClass
37
44
  } = cssJSLogic({
38
- props,
45
+ props: buttonProps,
39
46
  style: finalStyle
40
47
  });
41
48
  let statusLower = status.toLowerCase();
@@ -525,4 +525,86 @@
525
525
 
526
526
  .loader{
527
527
  color:var(--dot_mirror)
528
+ }
529
+ [dir=ltr] .primaryStrike {
530
+ background: repeating-linear-gradient(120deg, var(--zdt_button_primary_strike), var(--zdt_button_primary_strike) 1px, transparent 0px,transparent 8px);
531
+ }
532
+ [dir=rtl] .primaryStrike {
533
+ background: repeating-linear-gradient(-120deg, var(--zdt_button_primary_strike), var(--zdt_button_primary_strike) 1px, transparent 0px,transparent 8px);
534
+ }
535
+
536
+ .primaryfilledStrike {
537
+ --button_border_color: var(--zdt_button_primaryfill_bg);
538
+ }
539
+
540
+ [dir=ltr] .primaryfilledStrike {
541
+ background: repeating-linear-gradient(120deg, var(--zdt_button_primary_filled_strike) , var(--zdt_button_primary_filled_strike) 1px, var(--zdt_button_primaryfill_bg) 1px,var(--zdt_button_primaryfill_bg) 8px), var(--zdt_button_primaryfill_bg);
542
+ }
543
+
544
+ [dir=rtl] .primaryfilledStrike {
545
+ background: repeating-linear-gradient(-120deg, var(--zdt_button_primary_filled_strike) , var(--zdt_button_primary_filled_strike) 1px, var(--zdt_button_primaryfill_bg) 1px,var(--zdt_button_primaryfill_bg) 8px), var(--zdt_button_primaryfill_bg);
546
+ }
547
+
548
+ [dir=ltr] .dangerStrike {
549
+ background: repeating-linear-gradient(120deg,var(--zd_dangertrans6), var(--zd_dangertrans6) 1px, transparent 0px, transparent 8px);
550
+ }
551
+
552
+ [dir=rtl] .dangerStrike {
553
+ background: repeating-linear-gradient(-120deg,var(--zd_dangertrans6), var(--zd_dangertrans6) 1px, transparent 0px, transparent 8px);
554
+ }
555
+
556
+ .dangerfilledStrike {
557
+ --button_border_color: var(--zdt_button_danger_border);
558
+ }
559
+
560
+ [dir=ltr] .dangerfilledStrike {
561
+ background: repeating-linear-gradient(120deg,var(--zdt_button_danger_strike) , var(--zdt_button_danger_strike) 1px, var(--zdt_button_dangerfill_bg) 1px,var(--zdt_button_dangerfill_bg) 8px), var(--zdt_button_dangerfill_bg);
562
+ }
563
+
564
+ [dir=rtl] .dangerfilledStrike {
565
+ background: repeating-linear-gradient(-120deg,var(--zdt_button_danger_strike) , var(--zdt_button_danger_strike) 1px, var(--zdt_button_dangerfill_bg) 1px,var(--zdt_button_dangerfill_bg) 8px), var(--zdt_button_dangerfill_bg);
566
+ }
567
+
568
+ [dir=ltr] .secondaryStrike {
569
+ background: repeating-linear-gradient(120deg, var(--zdt_button_secondary_border), var(--zdt_button_secondary_border) 1px, transparent 0px,transparent 8px);
570
+ }
571
+
572
+ [dir=rtl] .secondaryStrike {
573
+ background: repeating-linear-gradient(-120deg, var(--zdt_button_secondary_border), var(--zdt_button_secondary_border) 1px, transparent 0px,transparent 8px);
574
+ }
575
+
576
+ .secondaryfilledStrike {
577
+ --button_border_color: var(--zdt_button_secondaryfill_bg);
578
+ }
579
+
580
+ [dir=ltr] .secondaryfilledStrike {
581
+ background: repeating-linear-gradient(120deg,var(--zdt_secondaryfilled_strike) , var(--zdt_secondaryfilled_strike) 1px, var(--zdt_button_secondaryfill_bg) 1px,var(--zdt_button_secondaryfill_bg) 8px);
582
+ }
583
+
584
+ [dir=rtl] .secondaryfilledStrike {
585
+ background: repeating-linear-gradient(-120deg,var(--zdt_secondaryfilled_strike) , var(--zdt_secondaryfilled_strike) 1px, var(--zdt_button_secondaryfill_bg) 1px,var(--zdt_button_secondaryfill_bg) 8px);
586
+ }
587
+
588
+ .tertiaryfilledStrike {
589
+ --button_border_color: var(--zdt_button_tertiaryfill_bg);
590
+ }
591
+
592
+ [dir=ltr] .tertiaryfilledStrike {
593
+ background: repeating-linear-gradient(120deg,var(--dot_slateGrey) , var(--dot_slateGrey) 1px, var(--zdt_button_tertiaryfill_bg) 1px,var(--zdt_button_tertiaryfill_bg) 8px);
594
+ }
595
+
596
+ [dir=rtl] .tertiaryfilledStrike {
597
+ background: repeating-linear-gradient(-120deg,var(--dot_slateGrey) , var(--dot_slateGrey) 1px, var(--zdt_button_tertiaryfill_bg) 1px,var(--zdt_button_tertiaryfill_bg) 8px);
598
+ }
599
+
600
+ .successfilledStrike {
601
+ --button_border_color: var(--zdt_button_successfill_border);
602
+ }
603
+
604
+ [dir=ltr] .successfilledStrike {
605
+ background: repeating-linear-gradient(120deg,var(--zdt_success_strike) , var(--zdt_success_strike) 1px, var(--zdt_button_successfill_bg) 1px,var(--zdt_button_successfill_bg) 8px);
606
+ }
607
+
608
+ [dir=rtl] .successfilledStrike {
609
+ background: repeating-linear-gradient(-120deg,var(--zdt_success_strike) , var(--zdt_success_strike) 1px, var(--zdt_button_successfill_bg) 1px,var(--zdt_button_successfill_bg) 8px);
528
610
  }
@@ -12,15 +12,19 @@ export default function cssJSLogic(_ref) {
12
12
  size,
13
13
  children,
14
14
  palette,
15
- status
15
+ status,
16
+ disabled,
17
+ a11y_strikeThroughButtons
16
18
  } = props;
17
19
  let {
18
20
  customButton = '',
19
21
  customStatus = '',
20
22
  customStatusSize = ''
21
23
  } = customClass;
24
+ let strikeExcluded = ['plainprimary', 'plainsecondary'];
22
25
  let paletteLower = palette.toLowerCase();
23
26
  let statusLower = status.toLowerCase();
27
+ let strikeEnabled = !strikeExcluded.includes(paletteLower);
24
28
  let buttonClass = compileClassNames({
25
29
  [customButton]: !!customButton,
26
30
  [style.bold]: isBold,
@@ -30,6 +34,7 @@ export default function cssJSLogic(_ref) {
30
34
  [style[size.toLowerCase()]]: needAppearance && !children,
31
35
  [style[`${size}Btn`]]: needAppearance && children,
32
36
  [style[`${size}Btn${paletteLower}`]]: needAppearance && children && rounded,
37
+ [style[`${paletteLower}Strike`]]: disabled && a11y_strikeThroughButtons && strikeEnabled,
33
38
  [style.loader]: !!needAppearance && statusLower !== 'none'
34
39
  });
35
40
  let loaderParentClass = compileClassNames({