@councilbox/councilbox-ui 2.0.30 → 2.0.31
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.
|
@@ -359,7 +359,7 @@ var InputText = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
359
359
|
className: prefixClass('cbx-inputText-bar')
|
|
360
360
|
}), !renderValue && getLabel(), type === 'autocomplete' && (options === null || options === void 0 ? void 0 : options.length) > 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
361
361
|
className: prefixClass('cbx-inputText-autocomplete-button-open'),
|
|
362
|
-
onClick: handleOpen
|
|
362
|
+
onClick: !disabled ? handleOpen : undefined
|
|
363
363
|
}), /*#__PURE__*/_react.default.createElement("fieldset", {
|
|
364
364
|
className: prefixClass("cbx-inputText-fieldset cbx-inputText-fieldset-".concat(getVariant(), " ").concat(isInputHover ? 'hover' : '', " ").concat(isInputFocused ? 'focused' : '', " ").concat(inputValue && !isInputFocused ? 'focusedNo value' : '', " ").concat(!label ? 'noLabel' : '', " ").concat(inputShrink && !isInputFocused ? 'focusedNo value shrink' : '')),
|
|
365
365
|
"aria-label": 'Input fieldset'
|
|
@@ -11,6 +11,8 @@ require("../../styles/main.css");
|
|
|
11
11
|
|
|
12
12
|
var _Tag = _interopRequireDefault(require("./Tag"));
|
|
13
13
|
|
|
14
|
+
var _LoadingSection = _interopRequireDefault(require("../LoadingSection/LoadingSection"));
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
18
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -42,6 +44,14 @@ var DesignIconButton = function DesignIconButton(_ref) {
|
|
|
42
44
|
variant: variant,
|
|
43
45
|
background: 'var(--info)',
|
|
44
46
|
iconText: 'P'
|
|
47
|
+
}), /*#__PURE__*/_react.default.createElement(_Tag.default, {
|
|
48
|
+
text: 'Lorem',
|
|
49
|
+
variant: variant,
|
|
50
|
+
background: 'var(--success)',
|
|
51
|
+
close: Function.prototype,
|
|
52
|
+
icon: /*#__PURE__*/_react.default.createElement(_LoadingSection.default, {
|
|
53
|
+
size: 20
|
|
54
|
+
})
|
|
45
55
|
}), /*#__PURE__*/_react.default.createElement(_Tag.default, {
|
|
46
56
|
text: 'Lorem',
|
|
47
57
|
variant: variant,
|
|
@@ -101,9 +101,9 @@ var Tag = function Tag(_ref) {
|
|
|
101
101
|
className: prefixClass('cbx-tag-block')
|
|
102
102
|
}, (icon || iconText) && /*#__PURE__*/_react.default.createElement("div", {
|
|
103
103
|
className: "".concat(prefixClass("cbx-tag-icon".concat(iconText ? 'Text' : '')))
|
|
104
|
-
}, icon
|
|
104
|
+
}, typeof icon === 'string' ? /*#__PURE__*/_react.default.createElement("i", {
|
|
105
105
|
className: icon
|
|
106
|
-
}), iconText && /*#__PURE__*/_react.default.createElement(_Typography.default, _extends({
|
|
106
|
+
}) : icon, iconText && /*#__PURE__*/_react.default.createElement(_Typography.default, _extends({
|
|
107
107
|
prefixClass: prefixClass,
|
|
108
108
|
component: 'div',
|
|
109
109
|
color: 'var(--white)',
|