carbon-react 138.0.2 → 138.1.1

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 (41) hide show
  1. package/esm/components/button-minor/button-minor.component.d.ts +1 -4
  2. package/esm/components/button-minor/button-minor.component.js +348 -3
  3. package/esm/components/carbon-provider/carbon-provider.component.d.ts +2 -4
  4. package/esm/components/checkbox/checkbox-group/checkbox-group.component.d.ts +9 -6
  5. package/esm/components/date-range/date-range.component.d.ts +21 -20
  6. package/esm/components/date-range/date-range.style.d.ts +1 -1
  7. package/esm/components/menu/menu-full-screen/menu-full-screen.style.js +13 -5
  8. package/esm/components/menu/menu.config.d.ts +12 -0
  9. package/esm/components/menu/menu.config.js +16 -4
  10. package/esm/components/menu/scrollable-block/scrollable-block.style.js +13 -0
  11. package/esm/components/numeral-date/numeral-date.component.d.ts +12 -9
  12. package/esm/components/radio-button/radio-button-group/radio-button-group.component.d.ts +10 -7
  13. package/esm/components/select/filterable-select/filterable-select.component.d.ts +2 -2
  14. package/esm/components/select/multi-select/multi-select.component.d.ts +2 -2
  15. package/esm/components/select/select-textbox/select-textbox.component.d.ts +4 -4
  16. package/esm/components/select/simple-select/simple-select.component.d.ts +2 -2
  17. package/esm/components/switch/switch.component.d.ts +4 -4
  18. package/esm/components/text-editor/text-editor.component.d.ts +1 -1
  19. package/esm/components/textarea/textarea.component.d.ts +26 -19
  20. package/esm/components/textbox/textbox.component.d.ts +11 -10
  21. package/lib/components/button-minor/button-minor.component.d.ts +1 -4
  22. package/lib/components/button-minor/button-minor.component.js +347 -4
  23. package/lib/components/carbon-provider/carbon-provider.component.d.ts +2 -4
  24. package/lib/components/checkbox/checkbox-group/checkbox-group.component.d.ts +9 -6
  25. package/lib/components/date-range/date-range.component.d.ts +21 -20
  26. package/lib/components/date-range/date-range.style.d.ts +1 -1
  27. package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +13 -5
  28. package/lib/components/menu/menu.config.d.ts +12 -0
  29. package/lib/components/menu/menu.config.js +16 -4
  30. package/lib/components/menu/scrollable-block/scrollable-block.style.js +13 -0
  31. package/lib/components/numeral-date/numeral-date.component.d.ts +12 -9
  32. package/lib/components/radio-button/radio-button-group/radio-button-group.component.d.ts +10 -7
  33. package/lib/components/select/filterable-select/filterable-select.component.d.ts +2 -2
  34. package/lib/components/select/multi-select/multi-select.component.d.ts +2 -2
  35. package/lib/components/select/select-textbox/select-textbox.component.d.ts +4 -4
  36. package/lib/components/select/simple-select/simple-select.component.d.ts +2 -2
  37. package/lib/components/switch/switch.component.d.ts +4 -4
  38. package/lib/components/text-editor/text-editor.component.d.ts +1 -1
  39. package/lib/components/textarea/textarea.component.d.ts +26 -19
  40. package/lib/components/textbox/textbox.component.d.ts +11 -10
  41. package/package.json +1 -1
@@ -4,8 +4,5 @@ export interface ButtonMinorProps extends ButtonProps {
4
4
  /** @private @ignore */
5
5
  isInPassword?: boolean;
6
6
  }
7
- export declare const ButtonMinor: {
8
- ({ buttonType: buttonTypeProp, disabled, destructive, size: sizeProp, iconPosition: iconPositionProp, fullWidth: fullWidthProp, ...rest }: ButtonMinorProps): React.JSX.Element;
9
- displayName: string;
10
- };
7
+ export declare const ButtonMinor: React.ForwardRefExoticComponent<ButtonMinorProps & React.RefAttributes<HTMLButtonElement>>;
11
8
  export default ButtonMinor;
@@ -3,7 +3,7 @@ import React, { useContext } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import StyledButtonMinor from "./button-minor.style";
5
5
  import { ButtonBarContext } from "../button-bar/button-bar.component";
6
- export const ButtonMinor = ({
6
+ const ButtonMinor = /*#__PURE__*/React.forwardRef(({
7
7
  buttonType: buttonTypeProp = "secondary",
8
8
  disabled = false,
9
9
  destructive = false,
@@ -11,7 +11,7 @@ export const ButtonMinor = ({
11
11
  iconPosition: iconPositionProp = "before",
12
12
  fullWidth: fullWidthProp = false,
13
13
  ...rest
14
- }) => {
14
+ }, ref) => {
15
15
  const {
16
16
  buttonType: buttonTypeContext,
17
17
  size: sizeContext,
@@ -23,6 +23,7 @@ export const ButtonMinor = ({
23
23
  const iconPosition = iconPositionContext || iconPositionProp;
24
24
  const fullWidth = fullWidthContext || fullWidthProp;
25
25
  return /*#__PURE__*/React.createElement(StyledButtonMinor, _extends({
26
+ ref: ref,
26
27
  "data-component": "button-minor",
27
28
  size: size,
28
29
  fullWidth: fullWidth,
@@ -31,6 +32,350 @@ export const ButtonMinor = ({
31
32
  disabled: disabled,
32
33
  destructive: destructive
33
34
  }, rest));
34
- };
35
+ });
36
+ if (process.env.NODE_ENV !== "production") {
37
+ ButtonMinor.propTypes = {
38
+ "aria-describedby": PropTypes.string,
39
+ "aria-label": PropTypes.string,
40
+ "aria-labelledby": PropTypes.string,
41
+ "buttonType": PropTypes.oneOf(["darkBackground", "gradient-grey", "gradient-white", "primary", "secondary", "tertiary"]),
42
+ "children": PropTypes.node,
43
+ "className": PropTypes.string,
44
+ "data-component": PropTypes.string,
45
+ "data-element": PropTypes.string,
46
+ "data-role": PropTypes.string,
47
+ "destructive": PropTypes.bool,
48
+ "disabled": PropTypes.bool,
49
+ "fullWidth": PropTypes.bool,
50
+ "href": PropTypes.string,
51
+ "iconPosition": PropTypes.oneOf(["after", "before"]),
52
+ "iconTooltipMessage": PropTypes.string,
53
+ "iconTooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
54
+ "iconType": PropTypes.oneOf(["accessibility_web", "add", "admin", "alert_on", "alert", "analysis", "app_facebook", "app_instagram", "app_tiktok", "app_twitter", "app_youtube", "apps", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bill_paid", "bill_unpaid", "bin", "biometric", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "box_arrow_right", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_pay_date", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "card_wallet", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "check_all", "check_none", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "cloud_co2", "coins", "collaborate", "computer_clock", "connect_off", "connect", "construction", "contact_card", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "export", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "heart_pulse", "help", "hide", "home", "image", "import", "in_progress", "in_transit", "individual", "info", "intranet", "italic", "job_seeked", "key", "laptop", "leaf", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "like_no", "like", "link_cloud", "link_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "microphone", "minimise", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "pin", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "protect", "question_hollow", "question_mark", "question", "recruiting", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "send", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "support_online", "sync", "tag", "talk", "target_man", "target", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "volunteering", "warning", "website", "welfare"]),
55
+ "id": PropTypes.string,
56
+ "isInPassword": PropTypes.bool,
57
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
58
+ "__@toStringTag": PropTypes.string.isRequired,
59
+ "description": PropTypes.string,
60
+ "toString": PropTypes.func.isRequired,
61
+ "valueOf": PropTypes.func.isRequired
62
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
63
+ "__@toStringTag": PropTypes.string.isRequired,
64
+ "description": PropTypes.string,
65
+ "toString": PropTypes.func.isRequired,
66
+ "valueOf": PropTypes.func.isRequired
67
+ }), PropTypes.string]),
68
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
69
+ "__@toStringTag": PropTypes.string.isRequired,
70
+ "description": PropTypes.string,
71
+ "toString": PropTypes.func.isRequired,
72
+ "valueOf": PropTypes.func.isRequired
73
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
74
+ "__@toStringTag": PropTypes.string.isRequired,
75
+ "description": PropTypes.string,
76
+ "toString": PropTypes.func.isRequired,
77
+ "valueOf": PropTypes.func.isRequired
78
+ }), PropTypes.string]),
79
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
80
+ "__@toStringTag": PropTypes.string.isRequired,
81
+ "description": PropTypes.string,
82
+ "toString": PropTypes.func.isRequired,
83
+ "valueOf": PropTypes.func.isRequired
84
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
85
+ "__@toStringTag": PropTypes.string.isRequired,
86
+ "description": PropTypes.string,
87
+ "toString": PropTypes.func.isRequired,
88
+ "valueOf": PropTypes.func.isRequired
89
+ }), PropTypes.string]),
90
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
91
+ "__@toStringTag": PropTypes.string.isRequired,
92
+ "description": PropTypes.string,
93
+ "toString": PropTypes.func.isRequired,
94
+ "valueOf": PropTypes.func.isRequired
95
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
96
+ "__@toStringTag": PropTypes.string.isRequired,
97
+ "description": PropTypes.string,
98
+ "toString": PropTypes.func.isRequired,
99
+ "valueOf": PropTypes.func.isRequired
100
+ }), PropTypes.string]),
101
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
102
+ "__@toStringTag": PropTypes.string.isRequired,
103
+ "description": PropTypes.string,
104
+ "toString": PropTypes.func.isRequired,
105
+ "valueOf": PropTypes.func.isRequired
106
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
107
+ "__@toStringTag": PropTypes.string.isRequired,
108
+ "description": PropTypes.string,
109
+ "toString": PropTypes.func.isRequired,
110
+ "valueOf": PropTypes.func.isRequired
111
+ }), PropTypes.string]),
112
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
113
+ "__@toStringTag": PropTypes.string.isRequired,
114
+ "description": PropTypes.string,
115
+ "toString": PropTypes.func.isRequired,
116
+ "valueOf": PropTypes.func.isRequired
117
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
118
+ "__@toStringTag": PropTypes.string.isRequired,
119
+ "description": PropTypes.string,
120
+ "toString": PropTypes.func.isRequired,
121
+ "valueOf": PropTypes.func.isRequired
122
+ }), PropTypes.string]),
123
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
124
+ "__@toStringTag": PropTypes.string.isRequired,
125
+ "description": PropTypes.string,
126
+ "toString": PropTypes.func.isRequired,
127
+ "valueOf": PropTypes.func.isRequired
128
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
129
+ "__@toStringTag": PropTypes.string.isRequired,
130
+ "description": PropTypes.string,
131
+ "toString": PropTypes.func.isRequired,
132
+ "valueOf": PropTypes.func.isRequired
133
+ }), PropTypes.string]),
134
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
135
+ "__@toStringTag": PropTypes.string.isRequired,
136
+ "description": PropTypes.string,
137
+ "toString": PropTypes.func.isRequired,
138
+ "valueOf": PropTypes.func.isRequired
139
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
140
+ "__@toStringTag": PropTypes.string.isRequired,
141
+ "description": PropTypes.string,
142
+ "toString": PropTypes.func.isRequired,
143
+ "valueOf": PropTypes.func.isRequired
144
+ }), PropTypes.string]),
145
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
146
+ "__@toStringTag": PropTypes.string.isRequired,
147
+ "description": PropTypes.string,
148
+ "toString": PropTypes.func.isRequired,
149
+ "valueOf": PropTypes.func.isRequired
150
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
151
+ "__@toStringTag": PropTypes.string.isRequired,
152
+ "description": PropTypes.string,
153
+ "toString": PropTypes.func.isRequired,
154
+ "valueOf": PropTypes.func.isRequired
155
+ }), PropTypes.string]),
156
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
157
+ "__@toStringTag": PropTypes.string.isRequired,
158
+ "description": PropTypes.string,
159
+ "toString": PropTypes.func.isRequired,
160
+ "valueOf": PropTypes.func.isRequired
161
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
162
+ "__@toStringTag": PropTypes.string.isRequired,
163
+ "description": PropTypes.string,
164
+ "toString": PropTypes.func.isRequired,
165
+ "valueOf": PropTypes.func.isRequired
166
+ }), PropTypes.string]),
167
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
168
+ "__@toStringTag": PropTypes.string.isRequired,
169
+ "description": PropTypes.string,
170
+ "toString": PropTypes.func.isRequired,
171
+ "valueOf": PropTypes.func.isRequired
172
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
173
+ "__@toStringTag": PropTypes.string.isRequired,
174
+ "description": PropTypes.string,
175
+ "toString": PropTypes.func.isRequired,
176
+ "valueOf": PropTypes.func.isRequired
177
+ }), PropTypes.string]),
178
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
179
+ "__@toStringTag": PropTypes.string.isRequired,
180
+ "description": PropTypes.string,
181
+ "toString": PropTypes.func.isRequired,
182
+ "valueOf": PropTypes.func.isRequired
183
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
184
+ "__@toStringTag": PropTypes.string.isRequired,
185
+ "description": PropTypes.string,
186
+ "toString": PropTypes.func.isRequired,
187
+ "valueOf": PropTypes.func.isRequired
188
+ }), PropTypes.string]),
189
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
190
+ "__@toStringTag": PropTypes.string.isRequired,
191
+ "description": PropTypes.string,
192
+ "toString": PropTypes.func.isRequired,
193
+ "valueOf": PropTypes.func.isRequired
194
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
195
+ "__@toStringTag": PropTypes.string.isRequired,
196
+ "description": PropTypes.string,
197
+ "toString": PropTypes.func.isRequired,
198
+ "valueOf": PropTypes.func.isRequired
199
+ }), PropTypes.string]),
200
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
201
+ "__@toStringTag": PropTypes.string.isRequired,
202
+ "description": PropTypes.string,
203
+ "toString": PropTypes.func.isRequired,
204
+ "valueOf": PropTypes.func.isRequired
205
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
206
+ "__@toStringTag": PropTypes.string.isRequired,
207
+ "description": PropTypes.string,
208
+ "toString": PropTypes.func.isRequired,
209
+ "valueOf": PropTypes.func.isRequired
210
+ }), PropTypes.string]),
211
+ "name": PropTypes.string,
212
+ "noWrap": PropTypes.bool,
213
+ "onBlur": PropTypes.func,
214
+ "onChange": PropTypes.func,
215
+ "onClick": PropTypes.func,
216
+ "onFocus": PropTypes.func,
217
+ "onKeyDown": PropTypes.func,
218
+ "p": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
219
+ "__@toStringTag": PropTypes.string.isRequired,
220
+ "description": PropTypes.string,
221
+ "toString": PropTypes.func.isRequired,
222
+ "valueOf": PropTypes.func.isRequired
223
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
224
+ "__@toStringTag": PropTypes.string.isRequired,
225
+ "description": PropTypes.string,
226
+ "toString": PropTypes.func.isRequired,
227
+ "valueOf": PropTypes.func.isRequired
228
+ }), PropTypes.string]),
229
+ "padding": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
230
+ "__@toStringTag": PropTypes.string.isRequired,
231
+ "description": PropTypes.string,
232
+ "toString": PropTypes.func.isRequired,
233
+ "valueOf": PropTypes.func.isRequired
234
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
235
+ "__@toStringTag": PropTypes.string.isRequired,
236
+ "description": PropTypes.string,
237
+ "toString": PropTypes.func.isRequired,
238
+ "valueOf": PropTypes.func.isRequired
239
+ }), PropTypes.string]),
240
+ "paddingBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
241
+ "__@toStringTag": PropTypes.string.isRequired,
242
+ "description": PropTypes.string,
243
+ "toString": PropTypes.func.isRequired,
244
+ "valueOf": PropTypes.func.isRequired
245
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
246
+ "__@toStringTag": PropTypes.string.isRequired,
247
+ "description": PropTypes.string,
248
+ "toString": PropTypes.func.isRequired,
249
+ "valueOf": PropTypes.func.isRequired
250
+ }), PropTypes.string]),
251
+ "paddingLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
252
+ "__@toStringTag": PropTypes.string.isRequired,
253
+ "description": PropTypes.string,
254
+ "toString": PropTypes.func.isRequired,
255
+ "valueOf": PropTypes.func.isRequired
256
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
257
+ "__@toStringTag": PropTypes.string.isRequired,
258
+ "description": PropTypes.string,
259
+ "toString": PropTypes.func.isRequired,
260
+ "valueOf": PropTypes.func.isRequired
261
+ }), PropTypes.string]),
262
+ "paddingRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
263
+ "__@toStringTag": PropTypes.string.isRequired,
264
+ "description": PropTypes.string,
265
+ "toString": PropTypes.func.isRequired,
266
+ "valueOf": PropTypes.func.isRequired
267
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
268
+ "__@toStringTag": PropTypes.string.isRequired,
269
+ "description": PropTypes.string,
270
+ "toString": PropTypes.func.isRequired,
271
+ "valueOf": PropTypes.func.isRequired
272
+ }), PropTypes.string]),
273
+ "paddingTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
274
+ "__@toStringTag": PropTypes.string.isRequired,
275
+ "description": PropTypes.string,
276
+ "toString": PropTypes.func.isRequired,
277
+ "valueOf": PropTypes.func.isRequired
278
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
279
+ "__@toStringTag": PropTypes.string.isRequired,
280
+ "description": PropTypes.string,
281
+ "toString": PropTypes.func.isRequired,
282
+ "valueOf": PropTypes.func.isRequired
283
+ }), PropTypes.string]),
284
+ "paddingX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
285
+ "__@toStringTag": PropTypes.string.isRequired,
286
+ "description": PropTypes.string,
287
+ "toString": PropTypes.func.isRequired,
288
+ "valueOf": PropTypes.func.isRequired
289
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
290
+ "__@toStringTag": PropTypes.string.isRequired,
291
+ "description": PropTypes.string,
292
+ "toString": PropTypes.func.isRequired,
293
+ "valueOf": PropTypes.func.isRequired
294
+ }), PropTypes.string]),
295
+ "paddingY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
296
+ "__@toStringTag": PropTypes.string.isRequired,
297
+ "description": PropTypes.string,
298
+ "toString": PropTypes.func.isRequired,
299
+ "valueOf": PropTypes.func.isRequired
300
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
301
+ "__@toStringTag": PropTypes.string.isRequired,
302
+ "description": PropTypes.string,
303
+ "toString": PropTypes.func.isRequired,
304
+ "valueOf": PropTypes.func.isRequired
305
+ }), PropTypes.string]),
306
+ "pb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
307
+ "__@toStringTag": PropTypes.string.isRequired,
308
+ "description": PropTypes.string,
309
+ "toString": PropTypes.func.isRequired,
310
+ "valueOf": PropTypes.func.isRequired
311
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
312
+ "__@toStringTag": PropTypes.string.isRequired,
313
+ "description": PropTypes.string,
314
+ "toString": PropTypes.func.isRequired,
315
+ "valueOf": PropTypes.func.isRequired
316
+ }), PropTypes.string]),
317
+ "pl": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
318
+ "__@toStringTag": PropTypes.string.isRequired,
319
+ "description": PropTypes.string,
320
+ "toString": PropTypes.func.isRequired,
321
+ "valueOf": PropTypes.func.isRequired
322
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
323
+ "__@toStringTag": PropTypes.string.isRequired,
324
+ "description": PropTypes.string,
325
+ "toString": PropTypes.func.isRequired,
326
+ "valueOf": PropTypes.func.isRequired
327
+ }), PropTypes.string]),
328
+ "pr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
329
+ "__@toStringTag": PropTypes.string.isRequired,
330
+ "description": PropTypes.string,
331
+ "toString": PropTypes.func.isRequired,
332
+ "valueOf": PropTypes.func.isRequired
333
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
334
+ "__@toStringTag": PropTypes.string.isRequired,
335
+ "description": PropTypes.string,
336
+ "toString": PropTypes.func.isRequired,
337
+ "valueOf": PropTypes.func.isRequired
338
+ }), PropTypes.string]),
339
+ "pt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
340
+ "__@toStringTag": PropTypes.string.isRequired,
341
+ "description": PropTypes.string,
342
+ "toString": PropTypes.func.isRequired,
343
+ "valueOf": PropTypes.func.isRequired
344
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
345
+ "__@toStringTag": PropTypes.string.isRequired,
346
+ "description": PropTypes.string,
347
+ "toString": PropTypes.func.isRequired,
348
+ "valueOf": PropTypes.func.isRequired
349
+ }), PropTypes.string]),
350
+ "px": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
351
+ "__@toStringTag": PropTypes.string.isRequired,
352
+ "description": PropTypes.string,
353
+ "toString": PropTypes.func.isRequired,
354
+ "valueOf": PropTypes.func.isRequired
355
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
356
+ "__@toStringTag": PropTypes.string.isRequired,
357
+ "description": PropTypes.string,
358
+ "toString": PropTypes.func.isRequired,
359
+ "valueOf": PropTypes.func.isRequired
360
+ }), PropTypes.string]),
361
+ "py": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
362
+ "__@toStringTag": PropTypes.string.isRequired,
363
+ "description": PropTypes.string,
364
+ "toString": PropTypes.func.isRequired,
365
+ "valueOf": PropTypes.func.isRequired
366
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
367
+ "__@toStringTag": PropTypes.string.isRequired,
368
+ "description": PropTypes.string,
369
+ "toString": PropTypes.func.isRequired,
370
+ "valueOf": PropTypes.func.isRequired
371
+ }), PropTypes.string]),
372
+ "rel": PropTypes.string,
373
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
374
+ "subtext": PropTypes.string,
375
+ "target": PropTypes.string,
376
+ "type": PropTypes.string
377
+ };
378
+ }
379
+ export { ButtonMinor };
35
380
  ButtonMinor.displayName = "ButtonMinor";
36
381
  export default ButtonMinor;
@@ -4,13 +4,11 @@ export interface CarbonProviderProps {
4
4
  children: React.ReactNode;
5
5
  /** Theme which specifies styles to apply to all child components. Set to `sageTheme` by default. */
6
6
  theme?: Partial<ThemeObject>;
7
- /** Feature flag for opting in to the latest validation designs for components that support it.
7
+ /** Feature flag for opting in to the new validation redesign for components that support it.
8
8
  *
9
9
  * NOTE - Will eventually be set to `true` by default in the future. */
10
10
  validationRedesignOptIn?: boolean;
11
- /** Feature flag for opting out of styling components to have rounded corners.
12
- *
13
- * NOTE - Will eventually be set to `false` by default in the future. */
11
+ /** Feature flag for opting out of styling components to have rounded corners. */
14
12
  roundedCornersOptOut?: boolean;
15
13
  focusRedesignOptOut?: boolean;
16
14
  }
@@ -4,15 +4,18 @@ import { ValidationProps } from "../../../__internal__/validations";
4
4
  export interface CheckboxGroupProps extends ValidationProps, MarginProps {
5
5
  /** The content for the CheckboxGroup Legend */
6
6
  legend?: string;
7
- /** The content for the CheckboxGroup Legend Help text */
7
+ /**
8
+ * The content for the CheckboxGroup Help tooltip,
9
+ * will be rendered as hint text when `validationRedesignOptIn` is true.
10
+ */
8
11
  legendHelp?: string;
9
- /** When true, legend is placed inline with the checkboxes */
12
+ /** [Legacy] When true, legend is placed inline with the checkboxes */
10
13
  legendInline?: boolean;
11
- /** Percentage width of legend (only when legend is inline) */
14
+ /** [Legacy] Percentage width of legend (only when legend is inline) */
12
15
  legendWidth?: number;
13
- /** Text alignment of legend when inline */
16
+ /** [Legacy] Text alignment of legend when inline */
14
17
  legendAlign?: "left" | "right";
15
- /** Spacing between legend and field for inline legend, number multiplied by base spacing unit (8) */
18
+ /** [Legacy] Spacing between legend and field for inline legend, number multiplied by base spacing unit (8) */
16
19
  legendSpacing?: 1 | 2;
17
20
  /** The Checkboxes to be rendered in the group */
18
21
  children: React.ReactNode;
@@ -22,7 +25,7 @@ export interface CheckboxGroupProps extends ValidationProps, MarginProps {
22
25
  required?: boolean;
23
26
  /** Flag to configure component as optional. */
24
27
  isOptional?: boolean;
25
- /** Overrides the default tooltip */
28
+ /** [Legacy] Overrides the default tooltip */
26
29
  tooltipPosition?: "top" | "bottom" | "left" | "right";
27
30
  /** When true, Checkboxes are in line */
28
31
  inline?: boolean;
@@ -20,21 +20,21 @@ export interface DateRangeProps extends StyledDateRangeProps, MarginProps, TagPr
20
20
  /** Optional label for endDate field */
21
21
  endLabel?: string;
22
22
  /**
23
- * Indicate that error has occurred on end date
24
- * Pass string to display icon, tooltip and red border
25
- * Pass true boolean to only display red border
23
+ * Indicate that error has occurred on end date.
24
+ * Pass string to display icon, tooltip and red border.
25
+ * Pass true boolean to only display red border.
26
26
  */
27
27
  endError?: boolean | string;
28
28
  /**
29
- * Indicate additional information for end date
30
- * Pass string to display icon, tooltip and blue border
31
- * Pass true boolean to only display blue border
29
+ * [Legacy] Indicate additional information for end date.
30
+ * Pass string to display icon, tooltip and blue border.
31
+ * Pass true boolean to only display blue border.
32
32
  */
33
33
  endInfo?: boolean | string;
34
34
  /**
35
- * Indicate that warning has occurred on end date
36
- * Pass string to display icon, tooltip and orange border
37
- * Pass true boolean to only display orange border
35
+ * Indicate that warning has occurred on end date.
36
+ * Pass string to display icon, tooltip and orange border.
37
+ * Pass true boolean to only display orange border.
38
38
  */
39
39
  endWarning?: boolean | string;
40
40
  /**
@@ -54,20 +54,21 @@ export interface DateRangeProps extends StyledDateRangeProps, MarginProps, TagPr
54
54
  /** Optional label for startDate field */
55
55
  startLabel?: string;
56
56
  /**
57
- * Indicate that error has occurred on start date
58
- * Pass string to display icon, tooltip and red border
59
- * Pass true boolean to only display red border
57
+ * Indicate that error has occurred on start date.
58
+ * Pass string to display icon, tooltip and red border.
59
+ * Pass true boolean to only display red border.
60
60
  */
61
61
  startError?: boolean | string;
62
62
  /**
63
- * Indicate that warning has occurred on start date
64
- * Pass string to display icon, tooltip and orange border
65
- * Pass true boolean to only display orange border
63
+ * Indicate that warning has occurred on start date.
64
+ * Pass string to display icon, tooltip and orange border.
65
+ * Pass true boolean to only display orange border.
66
66
  */
67
67
  startWarning?: boolean | string;
68
- /** Indicate additional information for start date
69
- * Pass string to display icon, tooltip and blue border
70
- * Pass true boolean to only display blue border
68
+ /**
69
+ * [Legacy] Indicate additional information for start date.
70
+ * Pass string to display icon, tooltip and blue border.
71
+ * Pass true boolean to only display blue border.
71
72
  */
72
73
  startInfo?: boolean | string;
73
74
  /**
@@ -76,9 +77,9 @@ export interface DateRangeProps extends StyledDateRangeProps, MarginProps, TagPr
76
77
  startRef?: React.ForwardedRef<HTMLInputElement>;
77
78
  /** An array containing the value of startDate and endDate */
78
79
  value: string[];
79
- /** When true, validation icons will be placed on labels instead of being placed on the inputs */
80
+ /** [Legacy] When true, validation icons will be placed on labels instead of being placed on the inputs */
80
81
  validationOnLabel?: boolean;
81
- /** Overrides the default tooltip position */
82
+ /** [Legacy] Overrides the default tooltip position */
82
83
  tooltipPosition?: "top" | "bottom" | "left" | "right";
83
84
  /** Flag to configure component as mandatory. */
84
85
  required?: boolean;
@@ -1,5 +1,5 @@
1
1
  export interface StyledDateRangeProps {
2
- /** Display labels inline */
2
+ /** [Legacy] Display labels inline */
3
3
  labelsInline?: boolean;
4
4
  }
5
5
  declare const StyledDateRange: import("styled-components").StyledComponent<"div", any, StyledDateRangeProps, never>;
@@ -94,13 +94,21 @@ const StyledMenuModal = styled.div`
94
94
  }
95
95
  }
96
96
  }
97
- `}
98
97
 
99
- ${StyledBox} {
100
- &::-webkit-scrollbar {
101
- width: 16px;
98
+ ${StyledBox} {
99
+ scrollbar-color: ${menuConfigVariants[menuType].scrollbarColor};
100
+
101
+ &::-webkit-scrollbar {
102
+ width: var(--sizing150);
103
+ }
104
+ &::-webkit-scrollbar-thumb {
105
+ background-color: ${menuConfigVariants[menuType].scrollbarThumb};
106
+ }
107
+ &::-webkit-scrollbar-track {
108
+ background-color: ${menuConfigVariants[menuType].scrollbarTrack};
109
+ }
102
110
  }
103
- }
111
+ `}
104
112
  `;
105
113
  const StyledMenuFullscreenHeader = styled.div`
106
114
  height: 40px;
@@ -12,6 +12,9 @@ declare const _default: {
12
12
  alternate: string;
13
13
  alternateHover: string;
14
14
  divider: string;
15
+ scrollbarThumb: string;
16
+ scrollbarTrack: string;
17
+ scrollbarColor: string;
15
18
  };
16
19
  dark: {
17
20
  background: string;
@@ -26,6 +29,9 @@ declare const _default: {
26
29
  alternate: string;
27
30
  alternateHover: string;
28
31
  divider: string;
32
+ scrollbarThumb: string;
33
+ scrollbarTrack: string;
34
+ scrollbarColor: string;
29
35
  };
30
36
  black: {
31
37
  background: string;
@@ -40,6 +46,9 @@ declare const _default: {
40
46
  alternate: string;
41
47
  alternateHover: string;
42
48
  divider: string;
49
+ scrollbarThumb: string;
50
+ scrollbarTrack: string;
51
+ scrollbarColor: string;
43
52
  };
44
53
  white: {
45
54
  background: string;
@@ -54,6 +63,9 @@ declare const _default: {
54
63
  alternate: string;
55
64
  alternateHover: string;
56
65
  divider: string;
66
+ scrollbarThumb: string;
67
+ scrollbarTrack: string;
68
+ scrollbarColor: string;
57
69
  };
58
70
  };
59
71
  export default _default;
@@ -11,7 +11,10 @@ export default {
11
11
  title: "var(--colorsComponentsMenuYin065)",
12
12
  alternate: "var(--colorsComponentsMenuSpringChildAlt500)",
13
13
  alternateHover: "var(--colorsComponentsMenuSpringChildAlt600)",
14
- divider: "var(--colorsComponentsMenuSpringChild400)"
14
+ divider: "var(--colorsComponentsMenuSpringChild400)",
15
+ scrollbarThumb: "#597a8b",
16
+ scrollbarTrack: "#f2f5f6",
17
+ scrollbarColor: "#597a8b #f2f5f6"
15
18
  },
16
19
  dark: {
17
20
  background: "var(--colorsComponentsMenuAutumnStandard500)",
@@ -25,7 +28,10 @@ export default {
25
28
  title: "var(--colorsComponentsMenuYang080)",
26
29
  alternate: "var(--colorsComponentsMenuAutumnChildAlt500)",
27
30
  alternateHover: "var(--colorsComponentsMenuAutumnChildAlt600)",
28
- divider: "var(--colorsComponentsMenuAutumnChild400)"
31
+ divider: "var(--colorsComponentsMenuAutumnChild400)",
32
+ scrollbarThumb: "#597a8b",
33
+ scrollbarTrack: "#f2f5f6",
34
+ scrollbarColor: "#597a8b #f2f5f6"
29
35
  },
30
36
  black: {
31
37
  background: "var(--colorsComponentsMenuWinterStandard500)",
@@ -39,7 +45,10 @@ export default {
39
45
  title: "var(--colorsComponentsMenuYang080)",
40
46
  alternate: "var(--colorsComponentsMenuWinterChildAlt500)",
41
47
  alternateHover: "var(--colorsComponentsMenuWinterChildAlt600)",
42
- divider: "var(--colorsComponentsMenuWinterChild400)"
48
+ divider: "var(--colorsComponentsMenuWinterChild400)",
49
+ scrollbarThumb: "#CCCCCC",
50
+ scrollbarTrack: "#808080",
51
+ scrollbarColor: "#CCCCCC #808080"
43
52
  },
44
53
  white: {
45
54
  background: "var(--colorsComponentsMenuSummerStandard500)",
@@ -53,6 +62,9 @@ export default {
53
62
  title: "var(--colorsComponentsMenuYin065)",
54
63
  alternate: "var(--colorsComponentsMenuSummerChildAlt500)",
55
64
  alternateHover: "var(--colorsComponentsMenuSummerChildAlt600)",
56
- divider: "var(--colorsComponentsMenuSummerChild400)"
65
+ divider: "var(--colorsComponentsMenuSummerChild400)",
66
+ scrollbarThumb: "#597a8b",
67
+ scrollbarTrack: "#f2f5f6",
68
+ scrollbarColor: "#597a8b #f2f5f6"
57
69
  }
58
70
  };