@councilbox/councilbox-ui 2.0.59 → 2.0.60

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 (106) hide show
  1. package/SafeHtml.js +3 -0
  2. package/dist/HOCs/overlayA11yStack.js +1 -1
  3. package/dist/HOCs/useDynamicStyles.js +39 -4
  4. package/dist/build-index.js +14 -0
  5. package/dist/components/Accordion/Accordion.css +7 -1
  6. package/dist/components/Button/Button.js +79 -87
  7. package/dist/components/Button/button.css +171 -16
  8. package/dist/components/DatePicker/Calendar.js +3 -5
  9. package/dist/components/DatePicker/DatePicker.css +1 -1
  10. package/dist/components/DateRangePicker/RangeCalendar.js +2 -4
  11. package/dist/components/IconButton/IconButton.js +1 -1
  12. package/dist/components/Modal/Modal.js +13 -3
  13. package/dist/components/RichTextInput/RichTextInput.js +28 -7
  14. package/dist/components/SafeHtml/SafeHtml.js +82 -0
  15. package/dist/components/SelectInput/SelectInput.js +1 -0
  16. package/dist/components/Stepper/Stepper.css +6 -1
  17. package/dist/components/Tabs/Tabs.js +1 -0
  18. package/dist/components/TextInput/TextInput.css +164 -1
  19. package/dist/components/TextInput/TextInput.js +171 -167
  20. package/dist/components/ThemeProvider/Colors.js +1 -1
  21. package/dist/components/ThemeProvider/ThemeProvider.js +1 -7
  22. package/dist/components/Toast/toastStore.js +1 -0
  23. package/dist/styles/colorConsts.css +1 -1
  24. package/dist/styles/stylesheet.js +2 -50
  25. package/dist/testing/TestAutocomplete.js +1 -105
  26. package/dist/utils/sanitizeHtml.js +199 -0
  27. package/package.json +17 -31
  28. package/dist/__snapshots__/storybook.test.js.snap +0 -104
  29. package/dist/components/1.Introduction.stories.mdx +0 -579
  30. package/dist/components/2.Changelog.stories.mdx +0 -1392
  31. package/dist/components/3.Guide.stories.mdx +0 -589
  32. package/dist/components/Accordion/Accordion.stories.js +0 -95
  33. package/dist/components/Accordion/DesignAccordion.stories.js +0 -27
  34. package/dist/components/Alert/Alert.stories.js +0 -101
  35. package/dist/components/Avatar/Avatar.stories.js +0 -159
  36. package/dist/components/Avatar/DesignAvatar.stories.js +0 -64
  37. package/dist/components/Avatar/DesignAvatarText.stories.js +0 -123
  38. package/dist/components/AvatarGroup/AvatarGroup.stories.js +0 -72
  39. package/dist/components/AvatarGroup/DesignAvatarGroup.stories.js +0 -118
  40. package/dist/components/Block/Block.stories.js +0 -66
  41. package/dist/components/Block/DesignBlock.stories.js +0 -35
  42. package/dist/components/Button/Button.stories.js +0 -98
  43. package/dist/components/ButtonBasic/ButtonBasic.stories.js +0 -161
  44. package/dist/components/Checkbox/Checkbox.stories.js +0 -110
  45. package/dist/components/DatePicker/DatePicker.stories.js +0 -180
  46. package/dist/components/DateRangePicker/DateRangePicker.stories.js +0 -147
  47. package/dist/components/DateTimePicker/DateTimePicker.stories.js +0 -144
  48. package/dist/components/DragDrop/DragDrop.stories.js +0 -155
  49. package/dist/components/DrawerPanel/DrawerPanel.stories.js +0 -277
  50. package/dist/components/DropDown/DesignDropDown.stories.js +0 -216
  51. package/dist/components/DropDown/DropDown.stories.js +0 -240
  52. package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +0 -128
  53. package/dist/components/EnhancedTable/EnhancedTable.stories.js +0 -259
  54. package/dist/components/FabButton/DesignFabButton.stories.js +0 -40
  55. package/dist/components/FabButton/FabButton.stories.js +0 -147
  56. package/dist/components/Grid/DesignGrid.stories.js +0 -45
  57. package/dist/components/Grid/Grid.stories.js +0 -211
  58. package/dist/components/Header/DesignHeader.stories.js +0 -65
  59. package/dist/components/Header/Header.stories.js +0 -674
  60. package/dist/components/IconButton/DesignIconButton.stories.js +0 -113
  61. package/dist/components/IconButton/IconButton.stories.js +0 -205
  62. package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +0 -21
  63. package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +0 -209
  64. package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +0 -433
  65. package/dist/components/InputPassword/InputPassword.stories.js +0 -185
  66. package/dist/components/InputText/InputText.stories.js +0 -261
  67. package/dist/components/InputTextArea/DesignInputTextArea.stories.js +0 -116
  68. package/dist/components/InputTextArea/InputTextArea.stories.js +0 -146
  69. package/dist/components/LoadingSection/LoadingSection.stories.js +0 -84
  70. package/dist/components/MenuItem/DesignMenuItem.stories.js +0 -54
  71. package/dist/components/MenuItem/MenuItem.stories.js +0 -138
  72. package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +0 -243
  73. package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +0 -228
  74. package/dist/components/Modal/DesignModal.stories.js +0 -39
  75. package/dist/components/Modal/Modal.stories.js +0 -229
  76. package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +0 -22
  77. package/dist/components/PaginationFooter/PaginationFooter.stories.js +0 -191
  78. package/dist/components/RadioButton/Radio.stories.js +0 -157
  79. package/dist/components/RichTextInput/DesignRichTextInput.stories.js +0 -119
  80. package/dist/components/RichTextInput/RichTextInput.stories.js +0 -38
  81. package/dist/components/Ripple/Ripple.stories.js +0 -107
  82. package/dist/components/Scrollbar/Scrollbar.stories.js +0 -42
  83. package/dist/components/ScrollbarOld/ScrollbarOld.stories.js +0 -140
  84. package/dist/components/SelectInput/SelectInput.stories.js +0 -212
  85. package/dist/components/Slider/Slider.stories.js +0 -128
  86. package/dist/components/Spacing/Spacing.stories.js +0 -37
  87. package/dist/components/Stars/Stars.stories.js +0 -138
  88. package/dist/components/Stepper/DesignStepper.stories.js +0 -130
  89. package/dist/components/Stepper/Stepper.stories.js +0 -131
  90. package/dist/components/Table/DesignTable.stories.js +0 -614
  91. package/dist/components/Table/Table.stories.js +0 -215
  92. package/dist/components/Tabs/Tabs.stories.js +0 -163
  93. package/dist/components/Tag/DesignTags.stories.js +0 -81
  94. package/dist/components/Tag/Tag.stories.js +0 -148
  95. package/dist/components/TextInput/TextInput.stories.js +0 -148
  96. package/dist/components/TimePicker/TimePicker.stories.js +0 -132
  97. package/dist/components/Timeline/DesignTimeline.stories.js +0 -19
  98. package/dist/components/Timeline/Timeline.stories.js +0 -128
  99. package/dist/components/Toast/DesignToast.stories.js +0 -174
  100. package/dist/components/Toast/Toast.stories.js +0 -39
  101. package/dist/components/Toggle/Toggle.stories.js +0 -118
  102. package/dist/components/Tooltip/DesignTooltip.stories.js +0 -45
  103. package/dist/components/Tooltip/Tooltip.stories.js +0 -135
  104. package/dist/components/Typography/Typography.stories.js +0 -114
  105. package/dist/reportWebVitals.js +0 -28
  106. package/dist/storybook.test.js +0 -5
@@ -167,11 +167,20 @@ var Modal = function Modal(_ref) {
167
167
  onClick: acceptAction,
168
168
  fullWidth: true
169
169
  }, buttonAcceptProps))));
170
+ var backdropMouseDownRef = _react["default"].useRef(false);
171
+ var handleBackgroundMouseDown = function handleBackgroundMouseDown(e) {
172
+ var _contentRef$current;
173
+ backdropMouseDownRef.current = !((_contentRef$current = contentRef.current) !== null && _contentRef$current !== void 0 && _contentRef$current.contains(e.target));
174
+ };
170
175
  var handleBackgroundClick = function handleBackgroundClick(e) {
171
- if (!disableBackdropClick) {
172
- e.stopPropagation();
173
- requestClose(false);
176
+ var _contentRef$current2;
177
+ e.stopPropagation();
178
+ var startedOnBackdrop = backdropMouseDownRef.current;
179
+ backdropMouseDownRef.current = false;
180
+ if (disableBackdropClick || !startedOnBackdrop || (_contentRef$current2 = contentRef.current) !== null && _contentRef$current2 !== void 0 && _contentRef$current2.contains(e.target)) {
181
+ return;
174
182
  }
183
+ requestClose === null || requestClose === void 0 ? void 0 : requestClose(false);
175
184
  };
176
185
  var handleContentClick = function handleContentClick(e) {
177
186
  e.stopPropagation();
@@ -181,6 +190,7 @@ var Modal = function Modal(_ref) {
181
190
  && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react["default"].createElement("div", _extends({
182
191
  ref: containerRef,
183
192
  className: prefixClass("cbx-Modal-container ".concat(show ? 'show' : 'hide', " ").concat(classNameDialog || '', " ").concat(className || '', " ")),
193
+ onMouseDown: handleBackgroundMouseDown,
184
194
  onClick: handleBackgroundClick,
185
195
  onKeyDown: handleKeyDown,
186
196
  id: modalId,
@@ -16,6 +16,7 @@ var _DropDown = _interopRequireDefault(require("../DropDown/DropDown"));
16
16
  var _usePopoverPosition2 = _interopRequireDefault(require("../../HOCs/usePopoverPosition"));
17
17
  var _useFallbackId = _interopRequireDefault(require("../../utils/useFallbackId"));
18
18
  var _useA11yGuard2 = require("../../HOCs/useA11yGuard");
19
+ var _sanitizeHtml = require("../../utils/sanitizeHtml");
19
20
  var _excluded = ["id", "value", "onChange", "placeholder", "floatingText", "required", "errorText", "disabled", "maxChars", "allowPasteImage", "hideToolbar", "fullHeight", "borderless", "style", "className", "translate", "loadDraft", "saveDraft", "customButton", "toolbarExtra"];
20
21
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
21
22
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -243,7 +244,9 @@ var RichTextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, r
243
244
  };
244
245
  _react["default"].useEffect(function () {
245
246
  if (editorRef.current) {
246
- editorRef.current.innerHTML = value || '';
247
+ // `value` entra sin sanitizar al editor via innerHTML: filtramos
248
+ // tags/atributos/URLs peligrosos antes de aplicarlo.
249
+ editorRef.current.innerHTML = (0, _sanitizeHtml.sanitizeEditorHtml)(value || '');
247
250
  setCharCount((editorRef.current.textContent || '').length);
248
251
  resetHistory(normalizeHtml(editorRef.current.innerHTML));
249
252
  }
@@ -256,7 +259,7 @@ var RichTextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, r
256
259
  if (value === lastValueRef.current) return;
257
260
  lastValueRef.current = value;
258
261
  if (document.activeElement !== editorRef.current) {
259
- editorRef.current.innerHTML = value || '';
262
+ editorRef.current.innerHTML = (0, _sanitizeHtml.sanitizeEditorHtml)(value || '');
260
263
  setCharCount((editorRef.current.textContent || '').length);
261
264
  resetHistory(normalizeHtml(editorRef.current.innerHTML));
262
265
  }
@@ -410,7 +413,12 @@ var RichTextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, r
410
413
  return;
411
414
  }
412
415
  flushPendingHistory();
413
- var href = /^([a-z][a-z0-9+.-]*:)/i.test(url) ? url : "https://".concat(url);
416
+ var href = (0, _sanitizeHtml.normalizeLinkHref)(url);
417
+ if (!href) {
418
+ // Esquema bloqueado (javascript:, data:, etc.): no insertamos.
419
+ setLinkOpen(false);
420
+ return;
421
+ }
414
422
  var selection = window.getSelection();
415
423
  if (selection && selection.rangeCount > 0 && selection.getRangeAt(0).collapsed) {
416
424
  var range = selection.getRangeAt(0);
@@ -427,7 +435,12 @@ var RichTextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, r
427
435
  } else {
428
436
  var _editorRef$current3;
429
437
  document.execCommand('createLink', false, href);
430
- var createdAnchors = ((_editorRef$current3 = editorRef.current) === null || _editorRef$current3 === void 0 ? void 0 : _editorRef$current3.querySelectorAll("a[href=\"".concat(href, "\"]"))) || [];
438
+ // `querySelectorAll` recibe el href literal como atributo; usamos
439
+ // `CSS.escape` para que caracteres como `"` no rompan el selector.
440
+ var safeHref = typeof CSS !== 'undefined' && CSS.escape ? CSS.escape(href) : href.replace(/[^\w-]/g, function (ch) {
441
+ return "\\".concat(ch);
442
+ });
443
+ var createdAnchors = ((_editorRef$current3 = editorRef.current) === null || _editorRef$current3 === void 0 ? void 0 : _editorRef$current3.querySelectorAll("a[href=\"".concat(safeHref, "\"]"))) || [];
431
444
  for (var i = 0; i < createdAnchors.length; i += 1) {
432
445
  createdAnchors[i].target = '_blank';
433
446
  createdAnchors[i].rel = 'noopener noreferrer';
@@ -496,7 +509,12 @@ var RichTextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, r
496
509
  return;
497
510
  }
498
511
  flushPendingHistory();
499
- var href = /^([a-z][a-z0-9+.-]*:)/i.test(url) ? url : "https://".concat(url);
512
+ var href = (0, _sanitizeHtml.normalizeLinkHref)(url);
513
+ if (!href) {
514
+ // Esquema bloqueado: cancelamos la edición y cerramos el editor.
515
+ closeLinkEditor();
516
+ return;
517
+ }
500
518
  activeLinkAnchor.setAttribute('href', href);
501
519
  handleInput();
502
520
  pushHistoryImmediate(normalizeHtml((_editorRef$current6 = editorRef.current) === null || _editorRef$current6 === void 0 ? void 0 : _editorRef$current6.innerHTML));
@@ -536,7 +554,9 @@ var RichTextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, r
536
554
  selection.removeAllRanges();
537
555
  selection.addRange(endRange);
538
556
  }
539
- document.execCommand('insertHTML', false, html);
557
+ // Sanitizamos el HTML antes de pasarlo a execCommand: insertHTML lo
558
+ // parsea tal cual al DOM del editor.
559
+ document.execCommand('insertHTML', false, (0, _sanitizeHtml.sanitizeEditorHtml)(html));
540
560
  handleInput();
541
561
  pushHistoryImmediate(normalizeHtml(editorRef.current.innerHTML));
542
562
  updateToolbarState();
@@ -581,7 +601,8 @@ var RichTextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, r
581
601
  return {
582
602
  setValue: function setValue(html) {
583
603
  if (!editorRef.current) return;
584
- var normalized = html || '';
604
+ // Sanitizamos: `setValue` acepta HTML externo y acabará en innerHTML.
605
+ var normalized = (0, _sanitizeHtml.sanitizeEditorHtml)(html || '');
585
606
  editorRef.current.innerHTML = normalized;
586
607
  lastValueRef.current = normalized;
587
608
  setCharCount((editorRef.current.textContent || '').length);
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
11
+ var _sanitizeHtml = require("../../utils/sanitizeHtml");
12
+ var _excluded = ["html", "component", "className", "style", "sx", "sanitizeOptions", "prefixClass", "children"];
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
15
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
21
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
22
+ var toHtmlString = function toHtmlString(html) {
23
+ if (html === null || html === undefined || html === false) return '';
24
+ return typeof html === 'string' ? html : String(html);
25
+ };
26
+ var SafeHtml = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
27
+ var html = _ref.html,
28
+ component = _ref.component,
29
+ className = _ref.className,
30
+ style = _ref.style,
31
+ sx = _ref.sx,
32
+ sanitizeOptions = _ref.sanitizeOptions,
33
+ propPrefixClass = _ref.prefixClass,
34
+ children = _ref.children,
35
+ props = _objectWithoutProperties(_ref, _excluded);
36
+ var _useDynamicStyles = (0, _useDynamicStyles2["default"])(sx),
37
+ stylesInLine = _useDynamicStyles.stylesInLine,
38
+ dynamicPrefixClass = _useDynamicStyles.prefixClass;
39
+ var prefixClass = propPrefixClass || dynamicPrefixClass;
40
+ var Component = component || 'div';
41
+ var optionsKey = JSON.stringify({
42
+ extraForbidTags: (sanitizeOptions === null || sanitizeOptions === void 0 ? void 0 : sanitizeOptions.extraForbidTags) || [],
43
+ extraForbidAttrs: (sanitizeOptions === null || sanitizeOptions === void 0 ? void 0 : sanitizeOptions.extraForbidAttrs) || [],
44
+ allowTags: (sanitizeOptions === null || sanitizeOptions === void 0 ? void 0 : sanitizeOptions.allowTags) || [],
45
+ allowAttrs: (sanitizeOptions === null || sanitizeOptions === void 0 ? void 0 : sanitizeOptions.allowAttrs) || []
46
+ });
47
+ var sanitizedHtml = _react["default"].useMemo(function () {
48
+ return (0, _sanitizeHtml.sanitizeEditorHtml)(toHtmlString(html), JSON.parse(optionsKey));
49
+ }, [html, optionsKey]);
50
+ return /*#__PURE__*/_react["default"].createElement(Component, _extends({
51
+ ref: ref,
52
+ className: prefixClass("cbx-SafeHtml ".concat(className || '')),
53
+ style: _objectSpread(_objectSpread({}, style), stylesInLine)
54
+ }, props, {
55
+ dangerouslySetInnerHTML: {
56
+ __html: sanitizedHtml
57
+ }
58
+ }));
59
+ });
60
+ SafeHtml.propTypes = {
61
+ html: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
62
+ component: _propTypes["default"].string,
63
+ className: _propTypes["default"].string,
64
+ style: _propTypes["default"].object,
65
+ sx: _propTypes["default"].object,
66
+ sanitizeOptions: _propTypes["default"].shape({
67
+ extraForbidTags: _propTypes["default"].arrayOf(_propTypes["default"].string),
68
+ extraForbidAttrs: _propTypes["default"].arrayOf(_propTypes["default"].string),
69
+ allowTags: _propTypes["default"].arrayOf(_propTypes["default"].string),
70
+ allowAttrs: _propTypes["default"].arrayOf(_propTypes["default"].string)
71
+ })
72
+ };
73
+ SafeHtml.defaultProps = {
74
+ html: '',
75
+ component: 'div',
76
+ className: '',
77
+ style: undefined,
78
+ sx: undefined,
79
+ sanitizeOptions: undefined
80
+ };
81
+ var _default = SafeHtml;
82
+ exports["default"] = _default;
@@ -267,6 +267,7 @@ var SelectInput = function SelectInput(_ref) {
267
267
  ref: selectRef
268
268
  }, /*#__PURE__*/_react["default"].createElement(_InputText["default"], _extends({
269
269
  ref: inputRef,
270
+ id: selectId,
270
271
  label: label,
271
272
  renderValue: getRenderValue(),
272
273
  value: getRenderValue(),
@@ -40,9 +40,14 @@
40
40
  cursor: inherit;
41
41
  }
42
42
 
43
+ .cbx-stepper-item-contentText:focus {
44
+ outline: none;
45
+ }
46
+
43
47
  .cbx-stepper-item-contentText:focus-visible {
44
48
  outline: 2px solid var(--accent);
45
- outline-offset: 2px;
49
+ outline-offset: -2px;
50
+ border-radius: 0.25rem;
46
51
  }
47
52
 
48
53
  .cbx-stepper-item-contentText:last-child {
@@ -248,6 +248,7 @@ var Tabs = function Tabs(_ref) {
248
248
  "aria-selected": isActive,
249
249
  "aria-controls": item.panelId || undefined,
250
250
  "aria-disabled": item.disabled || undefined,
251
+ "aria-label": item.ariaLabel || item['aria-label'],
251
252
  tabIndex: isActive ? 0 : -1,
252
253
  onClick: function onClick(e) {
253
254
  return handleTabClick(e, index, item.value || index);
@@ -9,4 +9,167 @@
9
9
  height: 0.875rem;
10
10
  line-height: 1.1;
11
11
  font-size: 0.875rem;
12
- }
12
+ }
13
+
14
+ .cbx-TextInput-root {
15
+ display: inline-flex;
16
+ flex-direction: column;
17
+ position: relative;
18
+ min-width: 0;
19
+ padding: 0;
20
+ margin: 0;
21
+ border: 0;
22
+ vertical-align: top;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ .cbx-TextInput-fullWidth {
27
+ width: 100%;
28
+ }
29
+
30
+ .cbx-TextInput-margin-normal {
31
+ margin-top: 16px;
32
+ margin-bottom: 8px;
33
+ }
34
+
35
+ .cbx-TextInput-margin-dense {
36
+ margin-top: 8px;
37
+ margin-bottom: 4px;
38
+ }
39
+
40
+ .cbx-TextInput-root .cbx-inputText-allContainer,
41
+ .cbx-TextInput-root .cbx-inputText-container {
42
+ width: 100%;
43
+ min-width: 0;
44
+ }
45
+
46
+ .cbx-TextInput-root .cbx-inputText-container-helpers {
47
+ padding-top: 0;
48
+ margin-top: var(--spacing4);
49
+ }
50
+
51
+ .cbx-TextInput-root .cbx-inputText-endAdornment.ri-information-line {
52
+ display: none;
53
+ }
54
+
55
+ .cbx-TextInput-root .cbx-inputText-endAdornment.ri-check-line {
56
+ color: inherit !important;
57
+ }
58
+
59
+ .cbx-TextInput-root .cbx-inputText-label.cbx-inputText-label-standard,
60
+ .cbx-TextInput-root.cbx-TextInput-standard .cbx-inputText-label {
61
+ transform: translate(0px, 20px) scale(1);
62
+ }
63
+
64
+ .cbx-TextInput-root.cbx-TextInput-small.cbx-TextInput-standard .cbx-inputText-label {
65
+ transform: translate(0px, 17px) scale(1);
66
+ }
67
+
68
+ .cbx-TextInput-root .cbx-inputText-standard:focus ~ label.cbx-inputText-label,
69
+ .cbx-TextInput-root .cbx-inputText-standard.shrink ~ label.cbx-inputText-label,
70
+ .cbx-TextInput-root .cbx-inputText-standard:not(:placeholder-shown) ~ label.cbx-inputText-label {
71
+ transform: translate(0px, -1.5px) scale(0.75);
72
+ }
73
+
74
+ .cbx-TextInput-root.cbx-TextInput-withLabel .cbx-input.cbx-inputText-standard {
75
+ padding: 20px var(--spacing8) 4px 0;
76
+ }
77
+
78
+ .cbx-TextInput-root.cbx-TextInput-small.cbx-TextInput-withLabel .cbx-input.cbx-inputText-standard {
79
+ padding-top: 17px;
80
+ }
81
+
82
+ .cbx-TextInput-root .cbx-input.cbx-inputText-standard:focus ~ label.cbx-inputText-label {
83
+ color: var(--primary);
84
+ }
85
+
86
+ .cbx-TextInput-root.cbx-TextInput-noUnderline .cbx-inputText-container-standard,
87
+ .cbx-TextInput-root.cbx-TextInput-noUnderline .cbx-inputText-container-standard:hover,
88
+ .cbx-TextInput-root.cbx-TextInput-noUnderline .cbx-inputText-container-filled,
89
+ .cbx-TextInput-root.cbx-TextInput-noUnderline .cbx-inputText-container-filled:hover {
90
+ border-bottom: 0 !important;
91
+ }
92
+
93
+ .cbx-TextInput-root.cbx-TextInput-noUnderline .cbx-inputText-bar {
94
+ display: none;
95
+ }
96
+
97
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-inputText-container {
98
+ height: 56px;
99
+ max-height: 56px;
100
+ }
101
+
102
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-input {
103
+ height: 56px;
104
+ max-height: 56px;
105
+ padding: 16.5px 14px 16.5px 14px;
106
+ color: inherit;
107
+ }
108
+
109
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-inputText-fieldset {
110
+ height: 61px;
111
+ max-height: 61px;
112
+ }
113
+
114
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-inputText-label {
115
+ transform: translate(14px, 16px) scale(1);
116
+ }
117
+
118
+ .cbx-TextInput-root.cbx-TextInput-outlined.cbx-TextInput-small .cbx-inputText-container {
119
+ height: 40px;
120
+ max-height: 40px;
121
+ }
122
+
123
+ .cbx-TextInput-root.cbx-TextInput-outlined.cbx-TextInput-small .cbx-input {
124
+ height: 40px;
125
+ max-height: 40px;
126
+ padding-top: 8.5px;
127
+ padding-bottom: 8.5px;
128
+ }
129
+
130
+ .cbx-TextInput-root.cbx-TextInput-outlined.cbx-TextInput-small .cbx-inputText-fieldset {
131
+ height: 45px;
132
+ max-height: 45px;
133
+ }
134
+
135
+ .cbx-TextInput-root.cbx-TextInput-outlined.cbx-TextInput-small .cbx-inputText-label {
136
+ transform: translate(14px, 9px) scale(1);
137
+ }
138
+
139
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-input:focus ~ label.cbx-inputText-label,
140
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-input.shrink ~ label.cbx-inputText-label,
141
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-input:not(:placeholder-shown) ~ label.cbx-inputText-label {
142
+ transform: translate(14px, -9px) scale(0.75);
143
+ }
144
+
145
+ .cbx-TextInput-root .cbx-inputText-fieldset-outlined {
146
+ border: 1px solid var(--gray3);
147
+ }
148
+
149
+ .cbx-TextInput-root .cbx-inputText-fieldset-outlined.focusedNo.value {
150
+ border-color: var(--gray3);
151
+ }
152
+
153
+ .cbx-TextInput-root .cbx-inputText-fieldset-outlined.hover {
154
+ border-width: 2px;
155
+ }
156
+
157
+ .cbx-TextInput-root .cbx-inputText-fieldset-outlined.focused {
158
+ border: 2px solid var(--gray4);
159
+ }
160
+
161
+ .cbx-TextInput-root .cbx-inputText-outlined:disabled ~ .cbx-inputText-fieldset {
162
+ border: 1px solid rgba(0, 0, 0, 0.38) !important;
163
+ }
164
+
165
+ .cbx-TextInput-root .cbx-inputText-container-textArea .cbx-input,
166
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-inputText-container-textArea .cbx-input {
167
+ height: auto;
168
+ max-height: none;
169
+ }
170
+
171
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-inputText-container.cbx-inputText-container-textArea,
172
+ .cbx-TextInput-root.cbx-TextInput-outlined .cbx-inputText-container-textArea .cbx-inputText-fieldset {
173
+ height: auto;
174
+ max-height: none;
175
+ }