carbon-react 126.10.1 → 127.0.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 (143) hide show
  1. package/esm/__internal__/checkable-input/checkable-input.component.js +362 -360
  2. package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +297 -295
  3. package/esm/__internal__/full-screen-heading/full-screen-heading.component.js +6 -4
  4. package/esm/__internal__/input/input-presentation.component.js +19 -17
  5. package/esm/__internal__/input/input.component.js +355 -353
  6. package/esm/__internal__/input/input.style.d.ts +1 -1
  7. package/esm/__internal__/input/input.style.js +1 -7
  8. package/esm/__spec_helper__/index.js +5 -1
  9. package/esm/components/accordion/accordion.component.js +338 -336
  10. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +22 -20
  11. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +19 -17
  12. package/esm/components/anchor-navigation/anchor-navigation.component.js +6 -4
  13. package/esm/components/box/box.component.js +3785 -3783
  14. package/esm/components/breadcrumbs/breadcrumbs.component.js +316 -314
  15. package/esm/components/breadcrumbs/crumb/crumb.component.js +64 -62
  16. package/esm/components/button/button.component.js +688 -684
  17. package/esm/components/checkbox/checkbox.component.js +524 -522
  18. package/esm/components/date/date.component.js +722 -720
  19. package/esm/components/decimal/decimal.component.js +536 -534
  20. package/esm/components/dialog/dialog.component.js +56 -54
  21. package/esm/components/draggable/draggable-container.component.js +160 -158
  22. package/esm/components/draggable/draggable-item.component.js +162 -160
  23. package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +11 -9
  24. package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +15 -13
  25. package/esm/components/file-input/file-input.component.js +191 -189
  26. package/esm/components/flat-table/flat-table-body/flat-table-body.component.js +5 -3
  27. package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +1 -1
  28. package/esm/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +12 -10
  29. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +19 -17
  30. package/esm/components/grouped-character/grouped-character.component.js +538 -536
  31. package/esm/components/help/help.component.js +172 -170
  32. package/esm/components/hr/hr.component.js +159 -157
  33. package/esm/components/icon/icon.component.js +181 -179
  34. package/esm/components/icon-button/icon-button.component.js +321 -319
  35. package/esm/components/link/link.component.js +72 -70
  36. package/esm/components/menu/__internal__/submenu/submenu.component.js +120 -118
  37. package/esm/components/menu/menu-divider/menu-divider.component.js +8 -6
  38. package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +11 -9
  39. package/esm/components/message/message.component.js +168 -166
  40. package/esm/components/navigation-bar/navigation-bar.component.js +1279 -1277
  41. package/esm/components/note/__internal__/status-icon/status-icon.component.js +6 -4
  42. package/esm/components/number/number.component.js +536 -534
  43. package/esm/components/pod/pod.component.js +178 -176
  44. package/esm/components/radio-button/radio-button.component.js +523 -521
  45. package/esm/components/search/search.component.js +183 -181
  46. package/esm/components/select/filterable-select/filterable-select.component.js +554 -552
  47. package/esm/components/select/list-action-button/list-action-button.component.js +6 -4
  48. package/esm/components/select/multi-select/multi-select.component.js +551 -549
  49. package/esm/components/select/option/option.component.js +402 -400
  50. package/esm/components/select/option-group-header/option-group-header.component.js +11 -9
  51. package/esm/components/select/option-row/option-row.component.js +16 -14
  52. package/esm/components/select/select-list/select-list.component.js +34 -32
  53. package/esm/components/select/select-textbox/select-textbox.component.js +543 -541
  54. package/esm/components/select/simple-select/simple-select.component.js +550 -548
  55. package/esm/components/sidebar/sidebar.component.js +297 -295
  56. package/esm/components/simple-color-picker/simple-color/simple-color.component.js +14 -12
  57. package/esm/components/simple-color-picker/simple-color-picker.component.js +173 -171
  58. package/esm/components/step-flow/step-flow.component.js +170 -168
  59. package/esm/components/switch/switch.component.js +524 -522
  60. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +32 -30
  61. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +14 -12
  62. package/esm/components/text-editor/text-editor.component.js +171 -169
  63. package/esm/components/textarea/textarea.component.js +532 -530
  64. package/esm/components/textbox/textbox.component.js +536 -534
  65. package/esm/components/tile/flex-tile-cell/flex-tile-cell.component.js +3785 -3783
  66. package/esm/components/tile/flex-tile-container/flex-tile-container.component.js +6 -4
  67. package/esm/components/tile-select/tile-select.component.js +180 -178
  68. package/esm/components/time/time.component.js +202 -200
  69. package/esm/components/toast/toast.component.js +18 -16
  70. package/esm/components/tooltip/tooltip.component.js +23 -21
  71. package/esm/components/vertical-divider/vertical-divider.component.js +316 -314
  72. package/lib/__internal__/checkable-input/checkable-input.component.js +362 -360
  73. package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +297 -295
  74. package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +6 -4
  75. package/lib/__internal__/input/input-presentation.component.js +19 -17
  76. package/lib/__internal__/input/input.component.js +355 -353
  77. package/lib/__internal__/input/input.style.d.ts +1 -1
  78. package/lib/__internal__/input/input.style.js +1 -7
  79. package/lib/__spec_helper__/index.js +5 -1
  80. package/lib/components/accordion/accordion.component.js +338 -336
  81. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +22 -20
  82. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +19 -17
  83. package/lib/components/anchor-navigation/anchor-navigation.component.js +6 -4
  84. package/lib/components/box/box.component.js +3785 -3783
  85. package/lib/components/breadcrumbs/breadcrumbs.component.js +316 -314
  86. package/lib/components/breadcrumbs/crumb/crumb.component.js +64 -62
  87. package/lib/components/button/button.component.js +688 -684
  88. package/lib/components/checkbox/checkbox.component.js +524 -522
  89. package/lib/components/date/date.component.js +722 -720
  90. package/lib/components/decimal/decimal.component.js +536 -534
  91. package/lib/components/dialog/dialog.component.js +56 -54
  92. package/lib/components/draggable/draggable-container.component.js +160 -158
  93. package/lib/components/draggable/draggable-item.component.js +162 -160
  94. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +11 -9
  95. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +15 -13
  96. package/lib/components/file-input/file-input.component.js +191 -189
  97. package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +5 -3
  98. package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +1 -1
  99. package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +12 -10
  100. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +19 -17
  101. package/lib/components/grouped-character/grouped-character.component.js +538 -536
  102. package/lib/components/help/help.component.js +172 -170
  103. package/lib/components/hr/hr.component.js +159 -157
  104. package/lib/components/icon/icon.component.js +181 -179
  105. package/lib/components/icon-button/icon-button.component.js +321 -319
  106. package/lib/components/link/link.component.js +72 -70
  107. package/lib/components/menu/__internal__/submenu/submenu.component.js +120 -118
  108. package/lib/components/menu/menu-divider/menu-divider.component.js +8 -6
  109. package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +11 -9
  110. package/lib/components/message/message.component.js +168 -166
  111. package/lib/components/navigation-bar/navigation-bar.component.js +1279 -1277
  112. package/lib/components/note/__internal__/status-icon/status-icon.component.js +6 -4
  113. package/lib/components/number/number.component.js +536 -534
  114. package/lib/components/pod/pod.component.js +178 -176
  115. package/lib/components/radio-button/radio-button.component.js +523 -521
  116. package/lib/components/search/search.component.js +183 -181
  117. package/lib/components/select/filterable-select/filterable-select.component.js +554 -552
  118. package/lib/components/select/list-action-button/list-action-button.component.js +6 -4
  119. package/lib/components/select/multi-select/multi-select.component.js +551 -549
  120. package/lib/components/select/option/option.component.js +402 -400
  121. package/lib/components/select/option-group-header/option-group-header.component.js +11 -9
  122. package/lib/components/select/option-row/option-row.component.js +16 -14
  123. package/lib/components/select/select-list/select-list.component.js +34 -32
  124. package/lib/components/select/select-textbox/select-textbox.component.js +543 -541
  125. package/lib/components/select/simple-select/simple-select.component.js +550 -548
  126. package/lib/components/sidebar/sidebar.component.js +297 -295
  127. package/lib/components/simple-color-picker/simple-color/simple-color.component.js +14 -12
  128. package/lib/components/simple-color-picker/simple-color-picker.component.js +173 -171
  129. package/lib/components/step-flow/step-flow.component.js +170 -168
  130. package/lib/components/switch/switch.component.js +524 -522
  131. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +32 -30
  132. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +14 -12
  133. package/lib/components/text-editor/text-editor.component.js +171 -169
  134. package/lib/components/textarea/textarea.component.js +532 -530
  135. package/lib/components/textbox/textbox.component.js +536 -534
  136. package/lib/components/tile/flex-tile-cell/flex-tile-cell.component.js +3785 -3783
  137. package/lib/components/tile/flex-tile-container/flex-tile-container.component.js +6 -4
  138. package/lib/components/tile-select/tile-select.component.js +180 -178
  139. package/lib/components/time/time.component.js +202 -200
  140. package/lib/components/toast/toast.component.js +18 -16
  141. package/lib/components/tooltip/tooltip.component.js +23 -21
  142. package/lib/components/vertical-divider/vertical-divider.component.js +316 -314
  143. package/package.json +1 -1
@@ -112,76 +112,78 @@ const Link = /*#__PURE__*/React.forwardRef(({
112
112
  hasFocus: hasFocus
113
113
  }), createLinkBasedOnType());
114
114
  });
115
- Link.propTypes = {
116
- "aria-activedescendant": PropTypes.string,
117
- "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
118
- "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
119
- "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
120
- "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
121
- "aria-colcount": PropTypes.number,
122
- "aria-colindex": PropTypes.number,
123
- "aria-colspan": PropTypes.number,
124
- "aria-controls": PropTypes.string,
125
- "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
126
- "aria-describedby": PropTypes.string,
127
- "aria-details": PropTypes.string,
128
- "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
129
- "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
130
- "aria-errormessage": PropTypes.string,
131
- "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
132
- "aria-flowto": PropTypes.string,
133
- "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
134
- "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
135
- "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
136
- "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
137
- "aria-keyshortcuts": PropTypes.string,
138
- "aria-label": PropTypes.string,
139
- "aria-labelledby": PropTypes.string,
140
- "aria-level": PropTypes.number,
141
- "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
142
- "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
143
- "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
144
- "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
145
- "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
146
- "aria-owns": PropTypes.string,
147
- "aria-placeholder": PropTypes.string,
148
- "aria-posinset": PropTypes.number,
149
- "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
150
- "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
151
- "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
152
- "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
153
- "aria-roledescription": PropTypes.string,
154
- "aria-rowcount": PropTypes.number,
155
- "aria-rowindex": PropTypes.number,
156
- "aria-rowspan": PropTypes.number,
157
- "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
158
- "aria-setsize": PropTypes.number,
159
- "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
160
- "aria-valuemax": PropTypes.number,
161
- "aria-valuemin": PropTypes.number,
162
- "aria-valuenow": PropTypes.number,
163
- "aria-valuetext": PropTypes.string,
164
- "ariaLabel": PropTypes.string,
165
- "children": PropTypes.node,
166
- "className": PropTypes.string,
167
- "disabled": PropTypes.bool,
168
- "hasFocus": PropTypes.bool,
169
- "href": PropTypes.string,
170
- "icon": 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", "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", "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", "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"]),
171
- "iconAlign": PropTypes.oneOf(["left", "right"]),
172
- "isDarkBackground": PropTypes.bool,
173
- "isSkipLink": PropTypes.bool,
174
- "onClick": PropTypes.func,
175
- "onKeyDown": PropTypes.func,
176
- "onMouseDown": PropTypes.func,
177
- "placeholderTabIndex": PropTypes.bool,
178
- "rel": PropTypes.string,
179
- "removeAriaLabelOnIcon": PropTypes.bool,
180
- "target": PropTypes.string,
181
- "tooltipMessage": PropTypes.string,
182
- "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
183
- "variant": PropTypes.oneOf(["default", "negative", "neutral"])
184
- };
115
+ if (process.env.NODE_ENV !== "production") {
116
+ Link.propTypes = {
117
+ "aria-activedescendant": PropTypes.string,
118
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
119
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
120
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
121
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
122
+ "aria-colcount": PropTypes.number,
123
+ "aria-colindex": PropTypes.number,
124
+ "aria-colspan": PropTypes.number,
125
+ "aria-controls": PropTypes.string,
126
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
127
+ "aria-describedby": PropTypes.string,
128
+ "aria-details": PropTypes.string,
129
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
130
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
131
+ "aria-errormessage": PropTypes.string,
132
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
133
+ "aria-flowto": PropTypes.string,
134
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
135
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
136
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
137
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
138
+ "aria-keyshortcuts": PropTypes.string,
139
+ "aria-label": PropTypes.string,
140
+ "aria-labelledby": PropTypes.string,
141
+ "aria-level": PropTypes.number,
142
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
143
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
144
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
145
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
146
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
147
+ "aria-owns": PropTypes.string,
148
+ "aria-placeholder": PropTypes.string,
149
+ "aria-posinset": PropTypes.number,
150
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
151
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
152
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
153
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
154
+ "aria-roledescription": PropTypes.string,
155
+ "aria-rowcount": PropTypes.number,
156
+ "aria-rowindex": PropTypes.number,
157
+ "aria-rowspan": PropTypes.number,
158
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
159
+ "aria-setsize": PropTypes.number,
160
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
161
+ "aria-valuemax": PropTypes.number,
162
+ "aria-valuemin": PropTypes.number,
163
+ "aria-valuenow": PropTypes.number,
164
+ "aria-valuetext": PropTypes.string,
165
+ "ariaLabel": PropTypes.string,
166
+ "children": PropTypes.node,
167
+ "className": PropTypes.string,
168
+ "disabled": PropTypes.bool,
169
+ "hasFocus": PropTypes.bool,
170
+ "href": PropTypes.string,
171
+ "icon": 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", "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", "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", "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"]),
172
+ "iconAlign": PropTypes.oneOf(["left", "right"]),
173
+ "isDarkBackground": PropTypes.bool,
174
+ "isSkipLink": PropTypes.bool,
175
+ "onClick": PropTypes.func,
176
+ "onKeyDown": PropTypes.func,
177
+ "onMouseDown": PropTypes.func,
178
+ "placeholderTabIndex": PropTypes.bool,
179
+ "rel": PropTypes.string,
180
+ "removeAriaLabelOnIcon": PropTypes.bool,
181
+ "target": PropTypes.string,
182
+ "tooltipMessage": PropTypes.string,
183
+ "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
184
+ "variant": PropTypes.oneOf(["default", "negative", "neutral"])
185
+ };
186
+ }
185
187
  export { Link };
186
188
  Link.displayName = "Link";
187
189
  export default Link;
@@ -300,123 +300,125 @@ const Submenu = /*#__PURE__*/React.forwardRef(({
300
300
  }
301
301
  }, children)));
302
302
  });
303
- Submenu.propTypes = {
304
- "ariaLabel": PropTypes.string,
305
- "asPassiveItem": PropTypes.bool,
306
- "children": PropTypes.node,
307
- "className": PropTypes.string,
308
- "clickToOpen": PropTypes.bool,
309
- "href": PropTypes.string,
310
- "icon": PropTypes.string,
311
- "maxWidth": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
312
- "__@iterator": PropTypes.func.isRequired,
313
- "anchor": PropTypes.func.isRequired,
314
- "at": PropTypes.func.isRequired,
315
- "big": PropTypes.func.isRequired,
316
- "blink": PropTypes.func.isRequired,
317
- "bold": PropTypes.func.isRequired,
318
- "charAt": PropTypes.func.isRequired,
319
- "charCodeAt": PropTypes.func.isRequired,
320
- "codePointAt": PropTypes.func.isRequired,
321
- "concat": PropTypes.func.isRequired,
322
- "endsWith": PropTypes.func.isRequired,
323
- "fixed": PropTypes.func.isRequired,
324
- "fontcolor": PropTypes.func.isRequired,
325
- "fontsize": PropTypes.func.isRequired,
326
- "includes": PropTypes.func.isRequired,
327
- "indexOf": PropTypes.func.isRequired,
328
- "italics": PropTypes.func.isRequired,
329
- "lastIndexOf": PropTypes.func.isRequired,
330
- "length": PropTypes.number.isRequired,
331
- "link": PropTypes.func.isRequired,
332
- "localeCompare": PropTypes.func.isRequired,
333
- "match": PropTypes.func.isRequired,
334
- "matchAll": PropTypes.func.isRequired,
335
- "normalize": PropTypes.func.isRequired,
336
- "padEnd": PropTypes.func.isRequired,
337
- "padStart": PropTypes.func.isRequired,
338
- "repeat": PropTypes.func.isRequired,
339
- "replace": PropTypes.func.isRequired,
340
- "search": PropTypes.func.isRequired,
341
- "slice": PropTypes.func.isRequired,
342
- "small": PropTypes.func.isRequired,
343
- "split": PropTypes.func.isRequired,
344
- "startsWith": PropTypes.func.isRequired,
345
- "strike": PropTypes.func.isRequired,
346
- "sub": PropTypes.func.isRequired,
347
- "substr": PropTypes.func.isRequired,
348
- "substring": PropTypes.func.isRequired,
349
- "sup": PropTypes.func.isRequired,
350
- "toLocaleLowerCase": PropTypes.func.isRequired,
351
- "toLocaleUpperCase": PropTypes.func.isRequired,
352
- "toLowerCase": PropTypes.func.isRequired,
353
- "toString": PropTypes.func.isRequired,
354
- "toUpperCase": PropTypes.func.isRequired,
355
- "trim": PropTypes.func.isRequired,
356
- "trimEnd": PropTypes.func.isRequired,
357
- "trimLeft": PropTypes.func.isRequired,
358
- "trimRight": PropTypes.func.isRequired,
359
- "trimStart": PropTypes.func.isRequired,
360
- "valueOf": PropTypes.func.isRequired
361
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
362
- "__@iterator": PropTypes.func.isRequired,
363
- "anchor": PropTypes.func.isRequired,
364
- "at": PropTypes.func.isRequired,
365
- "big": PropTypes.func.isRequired,
366
- "blink": PropTypes.func.isRequired,
367
- "bold": PropTypes.func.isRequired,
368
- "charAt": PropTypes.func.isRequired,
369
- "charCodeAt": PropTypes.func.isRequired,
370
- "codePointAt": PropTypes.func.isRequired,
371
- "concat": PropTypes.func.isRequired,
372
- "endsWith": PropTypes.func.isRequired,
373
- "fixed": PropTypes.func.isRequired,
374
- "fontcolor": PropTypes.func.isRequired,
375
- "fontsize": PropTypes.func.isRequired,
376
- "includes": PropTypes.func.isRequired,
377
- "indexOf": PropTypes.func.isRequired,
378
- "italics": PropTypes.func.isRequired,
379
- "lastIndexOf": PropTypes.func.isRequired,
380
- "length": PropTypes.number.isRequired,
381
- "link": PropTypes.func.isRequired,
382
- "localeCompare": PropTypes.func.isRequired,
383
- "match": PropTypes.func.isRequired,
384
- "matchAll": PropTypes.func.isRequired,
385
- "normalize": PropTypes.func.isRequired,
386
- "padEnd": PropTypes.func.isRequired,
387
- "padStart": PropTypes.func.isRequired,
388
- "repeat": PropTypes.func.isRequired,
389
- "replace": PropTypes.func.isRequired,
390
- "search": PropTypes.func.isRequired,
391
- "slice": PropTypes.func.isRequired,
392
- "small": PropTypes.func.isRequired,
393
- "split": PropTypes.func.isRequired,
394
- "startsWith": PropTypes.func.isRequired,
395
- "strike": PropTypes.func.isRequired,
396
- "sub": PropTypes.func.isRequired,
397
- "substr": PropTypes.func.isRequired,
398
- "substring": PropTypes.func.isRequired,
399
- "sup": PropTypes.func.isRequired,
400
- "toLocaleLowerCase": PropTypes.func.isRequired,
401
- "toLocaleUpperCase": PropTypes.func.isRequired,
402
- "toLowerCase": PropTypes.func.isRequired,
403
- "toString": PropTypes.func.isRequired,
404
- "toUpperCase": PropTypes.func.isRequired,
405
- "trim": PropTypes.func.isRequired,
406
- "trimEnd": PropTypes.func.isRequired,
407
- "trimLeft": PropTypes.func.isRequired,
408
- "trimRight": PropTypes.func.isRequired,
409
- "trimStart": PropTypes.func.isRequired,
410
- "valueOf": PropTypes.func.isRequired
411
- }), PropTypes.string]),
412
- "onClick": PropTypes.func,
413
- "onKeyDown": PropTypes.func,
414
- "onSubmenuClose": PropTypes.func,
415
- "onSubmenuOpen": PropTypes.func,
416
- "showDropdownArrow": PropTypes.bool,
417
- "submenuDirection": PropTypes.string,
418
- "title": PropTypes.string,
419
- "variant": PropTypes.oneOf(["alternate", "default"])
420
- };
303
+ if (process.env.NODE_ENV !== "production") {
304
+ Submenu.propTypes = {
305
+ "ariaLabel": PropTypes.string,
306
+ "asPassiveItem": PropTypes.bool,
307
+ "children": PropTypes.node,
308
+ "className": PropTypes.string,
309
+ "clickToOpen": PropTypes.bool,
310
+ "href": PropTypes.string,
311
+ "icon": PropTypes.string,
312
+ "maxWidth": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
313
+ "__@iterator": PropTypes.func.isRequired,
314
+ "anchor": PropTypes.func.isRequired,
315
+ "at": PropTypes.func.isRequired,
316
+ "big": PropTypes.func.isRequired,
317
+ "blink": PropTypes.func.isRequired,
318
+ "bold": PropTypes.func.isRequired,
319
+ "charAt": PropTypes.func.isRequired,
320
+ "charCodeAt": PropTypes.func.isRequired,
321
+ "codePointAt": PropTypes.func.isRequired,
322
+ "concat": PropTypes.func.isRequired,
323
+ "endsWith": PropTypes.func.isRequired,
324
+ "fixed": PropTypes.func.isRequired,
325
+ "fontcolor": PropTypes.func.isRequired,
326
+ "fontsize": PropTypes.func.isRequired,
327
+ "includes": PropTypes.func.isRequired,
328
+ "indexOf": PropTypes.func.isRequired,
329
+ "italics": PropTypes.func.isRequired,
330
+ "lastIndexOf": PropTypes.func.isRequired,
331
+ "length": PropTypes.number.isRequired,
332
+ "link": PropTypes.func.isRequired,
333
+ "localeCompare": PropTypes.func.isRequired,
334
+ "match": PropTypes.func.isRequired,
335
+ "matchAll": PropTypes.func.isRequired,
336
+ "normalize": PropTypes.func.isRequired,
337
+ "padEnd": PropTypes.func.isRequired,
338
+ "padStart": PropTypes.func.isRequired,
339
+ "repeat": PropTypes.func.isRequired,
340
+ "replace": PropTypes.func.isRequired,
341
+ "search": PropTypes.func.isRequired,
342
+ "slice": PropTypes.func.isRequired,
343
+ "small": PropTypes.func.isRequired,
344
+ "split": PropTypes.func.isRequired,
345
+ "startsWith": PropTypes.func.isRequired,
346
+ "strike": PropTypes.func.isRequired,
347
+ "sub": PropTypes.func.isRequired,
348
+ "substr": PropTypes.func.isRequired,
349
+ "substring": PropTypes.func.isRequired,
350
+ "sup": PropTypes.func.isRequired,
351
+ "toLocaleLowerCase": PropTypes.func.isRequired,
352
+ "toLocaleUpperCase": PropTypes.func.isRequired,
353
+ "toLowerCase": PropTypes.func.isRequired,
354
+ "toString": PropTypes.func.isRequired,
355
+ "toUpperCase": PropTypes.func.isRequired,
356
+ "trim": PropTypes.func.isRequired,
357
+ "trimEnd": PropTypes.func.isRequired,
358
+ "trimLeft": PropTypes.func.isRequired,
359
+ "trimRight": PropTypes.func.isRequired,
360
+ "trimStart": PropTypes.func.isRequired,
361
+ "valueOf": PropTypes.func.isRequired
362
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
363
+ "__@iterator": PropTypes.func.isRequired,
364
+ "anchor": PropTypes.func.isRequired,
365
+ "at": PropTypes.func.isRequired,
366
+ "big": PropTypes.func.isRequired,
367
+ "blink": PropTypes.func.isRequired,
368
+ "bold": PropTypes.func.isRequired,
369
+ "charAt": PropTypes.func.isRequired,
370
+ "charCodeAt": PropTypes.func.isRequired,
371
+ "codePointAt": PropTypes.func.isRequired,
372
+ "concat": PropTypes.func.isRequired,
373
+ "endsWith": PropTypes.func.isRequired,
374
+ "fixed": PropTypes.func.isRequired,
375
+ "fontcolor": PropTypes.func.isRequired,
376
+ "fontsize": PropTypes.func.isRequired,
377
+ "includes": PropTypes.func.isRequired,
378
+ "indexOf": PropTypes.func.isRequired,
379
+ "italics": PropTypes.func.isRequired,
380
+ "lastIndexOf": PropTypes.func.isRequired,
381
+ "length": PropTypes.number.isRequired,
382
+ "link": PropTypes.func.isRequired,
383
+ "localeCompare": PropTypes.func.isRequired,
384
+ "match": PropTypes.func.isRequired,
385
+ "matchAll": PropTypes.func.isRequired,
386
+ "normalize": PropTypes.func.isRequired,
387
+ "padEnd": PropTypes.func.isRequired,
388
+ "padStart": PropTypes.func.isRequired,
389
+ "repeat": PropTypes.func.isRequired,
390
+ "replace": PropTypes.func.isRequired,
391
+ "search": PropTypes.func.isRequired,
392
+ "slice": PropTypes.func.isRequired,
393
+ "small": PropTypes.func.isRequired,
394
+ "split": PropTypes.func.isRequired,
395
+ "startsWith": PropTypes.func.isRequired,
396
+ "strike": PropTypes.func.isRequired,
397
+ "sub": PropTypes.func.isRequired,
398
+ "substr": PropTypes.func.isRequired,
399
+ "substring": PropTypes.func.isRequired,
400
+ "sup": PropTypes.func.isRequired,
401
+ "toLocaleLowerCase": PropTypes.func.isRequired,
402
+ "toLocaleUpperCase": PropTypes.func.isRequired,
403
+ "toLowerCase": PropTypes.func.isRequired,
404
+ "toString": PropTypes.func.isRequired,
405
+ "toUpperCase": PropTypes.func.isRequired,
406
+ "trim": PropTypes.func.isRequired,
407
+ "trimEnd": PropTypes.func.isRequired,
408
+ "trimLeft": PropTypes.func.isRequired,
409
+ "trimRight": PropTypes.func.isRequired,
410
+ "trimStart": PropTypes.func.isRequired,
411
+ "valueOf": PropTypes.func.isRequired
412
+ }), PropTypes.string]),
413
+ "onClick": PropTypes.func,
414
+ "onKeyDown": PropTypes.func,
415
+ "onSubmenuClose": PropTypes.func,
416
+ "onSubmenuOpen": PropTypes.func,
417
+ "showDropdownArrow": PropTypes.bool,
418
+ "submenuDirection": PropTypes.string,
419
+ "title": PropTypes.string,
420
+ "variant": PropTypes.oneOf(["alternate", "default"])
421
+ };
422
+ }
421
423
  Submenu.displayName = "submenu";
422
424
  export default Submenu;
@@ -19,11 +19,13 @@ const MenuDivider = /*#__PURE__*/React.forwardRef(({
19
19
  ref: ref
20
20
  })));
21
21
  });
22
- MenuDivider.propTypes = {
23
- "data-component": PropTypes.string,
24
- "data-element": PropTypes.string,
25
- "data-role": PropTypes.string,
26
- "size": PropTypes.oneOf(["default", "large"])
27
- };
22
+ if (process.env.NODE_ENV !== "production") {
23
+ MenuDivider.propTypes = {
24
+ "data-component": PropTypes.string,
25
+ "data-element": PropTypes.string,
26
+ "data-role": PropTypes.string,
27
+ "size": PropTypes.oneOf(["default", "large"])
28
+ };
29
+ }
28
30
  MenuDivider.displayName = "MenuDivider";
29
31
  export default MenuDivider;
@@ -24,14 +24,16 @@ const MenuSegmentTitle = /*#__PURE__*/React.forwardRef(({
24
24
  variant: variant
25
25
  }), text), children && /*#__PURE__*/React.createElement(StyledSegmentChildren, null, children));
26
26
  });
27
- MenuSegmentTitle.propTypes = {
28
- "as": PropTypes.oneOf(["h2", "h3", "h4", "h5", "h6"]),
29
- "children": PropTypes.node,
30
- "data-component": PropTypes.string,
31
- "data-element": PropTypes.string,
32
- "data-role": PropTypes.string,
33
- "text": PropTypes.string.isRequired,
34
- "variant": PropTypes.oneOf(["alternate", "default"])
35
- };
27
+ if (process.env.NODE_ENV !== "production") {
28
+ MenuSegmentTitle.propTypes = {
29
+ "as": PropTypes.oneOf(["h2", "h3", "h4", "h5", "h6"]),
30
+ "children": PropTypes.node,
31
+ "data-component": PropTypes.string,
32
+ "data-element": PropTypes.string,
33
+ "data-role": PropTypes.string,
34
+ "text": PropTypes.string.isRequired,
35
+ "variant": PropTypes.oneOf(["alternate", "default"])
36
+ };
37
+ }
36
38
  MenuSegmentTitle.displayName = "MenuSegmentTitle";
37
39
  export default MenuSegmentTitle;