@councilbox/councilbox-ui 2.0.54 → 2.0.55
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.
- package/Accordion.js +3 -0
- package/Alert.js +3 -0
- package/Avatar.js +3 -0
- package/AvatarGroup.js +3 -0
- package/Block.js +3 -0
- package/Button.js +3 -0
- package/ButtonBasic.js +3 -0
- package/Checkbox.js +3 -0
- package/DatePicker.js +3 -0
- package/DateRangePicker.js +3 -0
- package/DateTimePicker.js +3 -0
- package/DragDrop.js +3 -0
- package/DrawerPanel.js +3 -0
- package/DropDown.js +3 -0
- package/EnhancedTable.js +3 -0
- package/FabButton.js +3 -0
- package/Grid.js +3 -0
- package/Header.js +3 -0
- package/IconButton.js +3 -0
- package/IconButtonSquare.js +3 -0
- package/IconFont.js +3 -0
- package/InputAutocomplete.js +3 -0
- package/InputPassword.js +3 -0
- package/InputText.js +3 -0
- package/InputTextArea.js +3 -0
- package/LoadingSection.js +3 -0
- package/MenuItem.js +3 -0
- package/MenuLateralLeft.js +3 -0
- package/MenuLateralRight.js +3 -0
- package/Modal.js +3 -0
- package/Radio.js +3 -0
- package/RichTextInput.js +3 -0
- package/Scrollbar.js +3 -0
- package/ScrollbarNew.js +3 -0
- package/SelectInput.js +3 -0
- package/Slider.js +3 -0
- package/Spacing.js +3 -0
- package/Stars.js +3 -0
- package/Stepper.js +3 -0
- package/Table.js +3 -0
- package/TableBody.js +3 -0
- package/TableCell.js +3 -0
- package/TableContainer.js +3 -0
- package/TableHead.js +3 -0
- package/TableRow.js +3 -0
- package/TableSortLabel.js +3 -0
- package/Tabs.js +3 -0
- package/Tag.js +3 -0
- package/TextInput.js +3 -0
- package/ThemeProvider.js +3 -0
- package/TimePicker.js +3 -0
- package/Timeline.js +3 -0
- package/ToastProvider.js +3 -0
- package/Toggle.js +3 -0
- package/Tooltip.js +3 -0
- package/Typography.js +3 -0
- package/dist/HOCs/useDynamicStyles.js +25 -24
- package/dist/build-index.js +70 -0
- package/dist/components/1.Introduction.stories.mdx +4 -1
- package/dist/components/2.Changelog.stories.mdx +15 -3
- package/dist/components/DatePicker/Calendar.js +243 -0
- package/dist/components/DatePicker/DatePicker.css +197 -0
- package/dist/components/DatePicker/DatePicker.js +384 -0
- package/dist/components/DatePicker/DatePicker.stories.js +180 -0
- package/dist/components/DatePicker/dateUtils.js +478 -0
- package/dist/components/DateRangePicker/DateRangePicker.css +41 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +435 -0
- package/dist/components/DateRangePicker/DateRangePicker.stories.js +147 -0
- package/dist/components/DateRangePicker/RangeCalendar.js +188 -0
- package/dist/components/DateTimePicker/DateTimePicker.css +4 -0
- package/dist/components/DateTimePicker/DateTimePicker.js +481 -0
- package/dist/components/DateTimePicker/DateTimePicker.stories.js +144 -0
- package/dist/components/DateTimePicker/TimeColumns.css +46 -0
- package/dist/components/DateTimePicker/TimeColumns.js +175 -0
- package/dist/components/DragDrop/DragDrop.js +4 -1
- package/dist/components/DropDown/DesignDropDown.stories.js +8 -0
- package/dist/components/DropDown/DropDown.js +14 -4
- package/dist/components/Header/Header.js +32 -10
- package/dist/components/IconButton/IconButton.js +3 -2
- package/dist/components/IconButtonSquare/IconButtonSquare.js +3 -3
- package/dist/components/InputAutocomplete/InputAutocomplete.js +2 -2
- package/dist/components/InputText/InputText.css +10 -5
- package/dist/components/InputText/InputText.js +4 -4
- package/dist/components/MenuItem/MenuItem.js +65 -61
- package/dist/components/MenuLateralRight/MenuLateralRight.js +18 -2
- package/dist/components/Modal/Modal.js +3 -1
- package/dist/components/RichTextInput/DesignRichTextInput.stories.js +119 -0
- package/dist/components/RichTextInput/RichTextInput.css +309 -0
- package/dist/components/RichTextInput/RichTextInput.js +851 -0
- package/dist/components/RichTextInput/RichTextInput.stories.js +33 -0
- package/dist/components/Ripple/DesignRipple.js +17 -0
- package/dist/components/ScrollbarNew/DesignScrollbarNew.js +24 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.css +79 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.js +426 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.stories.js +37 -0
- package/dist/components/SelectInput/SelectInput.js +85 -78
- package/dist/components/Tabs/DesignTabs.js +1 -1
- package/dist/components/Tabs/Tabs.js +0 -1
- package/dist/components/TimePicker/TimePicker.css +3 -0
- package/dist/components/TimePicker/TimePicker.js +359 -0
- package/dist/components/TimePicker/TimePicker.stories.js +132 -0
- package/dist/components/Toast/DesignToast.stories.js +174 -0
- package/dist/components/Toast/Toast.css +154 -0
- package/dist/components/Toast/Toast.js +165 -0
- package/dist/components/Toast/Toast.stories.js +33 -0
- package/dist/components/Toast/ToastProvider.js +33 -0
- package/dist/components/Toast/ToastRoot.js +89 -0
- package/dist/components/Toast/toastStore.js +127 -0
- package/dist/components/Toast/useToast.js +42 -0
- package/dist/components/Toggle/Toggle.js +20 -14
- package/dist/components/Tooltip/Tooltip.js +7 -2
- package/dist/styles/styleFont.css +1 -1
- package/dist/styles/zIndexConsts.css +2 -0
- package/package.json +63 -3
- package/toast.js +7 -0
- package/useCouncilboxTheme.js +7 -0
- package/useToast.js +7 -0
- package/dist/components/Accordion/AccordionOld.css +0 -16
- package/dist/components/Accordion/AccordionOld.js +0 -91
- package/dist/components/Avatar/AvatarOld.js +0 -124
- package/dist/components/ButtonBasic/ButtonBasicOld.css +0 -41
- package/dist/components/ButtonBasic/ButtonBasicOld.js +0 -211
- package/dist/components/Checkbox/CheckboxOld.css +0 -31
- package/dist/components/Checkbox/CheckboxOld.js +0 -96
- package/dist/components/DrawerPanel/DrawerPanelOld.css +0 -56
- package/dist/components/DrawerPanel/DrawerPanelOld.js +0 -211
- package/dist/components/DropDown/DropDownOld.css +0 -3
- package/dist/components/DropDown/DropDownOld.js +0 -154
- package/dist/components/Grid/GridItemOld.js +0 -38
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +0 -46
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +0 -122
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +0 -43
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +0 -115
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +0 -5
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +0 -159
- package/dist/components/InputText/InputTextOld.css +0 -10
- package/dist/components/InputText/InputTextOld.js +0 -314
- package/dist/components/MenuItem/MenuItemOld.js +0 -123
- package/dist/components/Modal/ModalOld.css +0 -3
- package/dist/components/Modal/ModalOld.js +0 -213
- package/dist/components/RadioButton/RadioOld.css +0 -31
- package/dist/components/RadioButton/RadioOld.js +0 -126
- package/dist/components/SelectInput/SelectInputOld.css +0 -17
- package/dist/components/SelectInput/SelectInputOld.js +0 -296
- package/dist/components/Table/TableOld.css +0 -79
- package/dist/components/Table/TableOld.js +0 -133
- package/dist/components/Tabs/TabsOld.js +0 -78
- package/dist/components/Typography/TypographyOld.js +0 -119
package/Accordion.js
ADDED
package/Alert.js
ADDED
package/Avatar.js
ADDED
package/AvatarGroup.js
ADDED
package/Block.js
ADDED
package/Button.js
ADDED
package/ButtonBasic.js
ADDED
package/Checkbox.js
ADDED
package/DatePicker.js
ADDED
package/DragDrop.js
ADDED
package/DrawerPanel.js
ADDED
package/DropDown.js
ADDED
package/EnhancedTable.js
ADDED
package/FabButton.js
ADDED
package/Grid.js
ADDED
package/Header.js
ADDED
package/IconButton.js
ADDED
package/IconFont.js
ADDED
package/InputPassword.js
ADDED
package/InputText.js
ADDED
package/InputTextArea.js
ADDED
package/MenuItem.js
ADDED
package/Modal.js
ADDED
package/Radio.js
ADDED
package/RichTextInput.js
ADDED
package/Scrollbar.js
ADDED
package/ScrollbarNew.js
ADDED
package/SelectInput.js
ADDED
package/Slider.js
ADDED
package/Spacing.js
ADDED
package/Stars.js
ADDED
package/Stepper.js
ADDED
package/Table.js
ADDED
package/TableBody.js
ADDED
package/TableCell.js
ADDED
package/TableHead.js
ADDED
package/TableRow.js
ADDED
package/Tabs.js
ADDED
package/Tag.js
ADDED
package/TextInput.js
ADDED
package/ThemeProvider.js
ADDED
package/TimePicker.js
ADDED
package/Timeline.js
ADDED
package/ToastProvider.js
ADDED
package/Toggle.js
ADDED
package/Tooltip.js
ADDED
package/Typography.js
ADDED
|
@@ -31,37 +31,38 @@ var useDynamicStyles = function useDynamicStyles() {
|
|
|
31
31
|
return "-".concat(match.toLowerCase());
|
|
32
32
|
});
|
|
33
33
|
}, []);
|
|
34
|
+
var css = '';
|
|
35
|
+
var inlineStyles = {};
|
|
36
|
+
Object.keys(styles).forEach(function (selector) {
|
|
37
|
+
var rules = styles[selector];
|
|
38
|
+
var uniqueSelector = selector.startsWith('.') ? ".".concat(uniqueIdentifier, "-").concat(selector.slice(1)) : selector;
|
|
39
|
+
if (selector.startsWith('.')) {
|
|
40
|
+
css += "".concat(uniqueSelector, " { ").concat(Object.entries(rules).map(function (_ref) {
|
|
41
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
42
|
+
property = _ref2[0],
|
|
43
|
+
value = _ref2[1];
|
|
44
|
+
return "".concat(unifyCss(property), ": ").concat(value, ";");
|
|
45
|
+
}).join(' '), " }\n");
|
|
46
|
+
} else {
|
|
47
|
+
inlineStyles[uniqueSelector] = rules;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
34
50
|
_react["default"].useEffect(function () {
|
|
35
|
-
var styleElement = document.createElement('style');
|
|
36
|
-
styleElement.type = 'text/css';
|
|
37
|
-
var css = '';
|
|
38
|
-
var inlineStyles = {};
|
|
39
|
-
Object.keys(styles).forEach(function (selector) {
|
|
40
|
-
var rules = styles[selector];
|
|
41
|
-
var uniqueSelector = selector.startsWith('.') ? ".".concat(uniqueIdentifier, "-").concat(selector.slice(1)) : selector;
|
|
42
|
-
if (selector.startsWith('.')) {
|
|
43
|
-
css += "".concat(uniqueSelector, " { ").concat(Object.entries(rules).map(function (_ref) {
|
|
44
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
45
|
-
property = _ref2[0],
|
|
46
|
-
value = _ref2[1];
|
|
47
|
-
return "".concat(unifyCss(property), ": ").concat(value, ";");
|
|
48
|
-
}).join(' '), " }\n");
|
|
49
|
-
} else {
|
|
50
|
-
inlineStyles[uniqueSelector] = rules;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
51
|
setStylesInline(function (prev) {
|
|
54
52
|
var isSame = JSON.stringify(prev) === JSON.stringify(inlineStyles);
|
|
55
53
|
return isSame ? prev : inlineStyles;
|
|
56
54
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
}, [inlineStyles]);
|
|
56
|
+
_react["default"].useEffect(function () {
|
|
57
|
+
if (!css) return undefined;
|
|
58
|
+
var styleElement = document.createElement('style');
|
|
59
|
+
styleElement.type = 'text/css';
|
|
60
|
+
styleElement.innerHTML = css;
|
|
61
|
+
document.head.appendChild(styleElement);
|
|
61
62
|
return function () {
|
|
62
|
-
|
|
63
|
+
document.head.removeChild(styleElement);
|
|
63
64
|
};
|
|
64
|
-
}, [
|
|
65
|
+
}, [css, uniqueIdentifier]);
|
|
65
66
|
var prefixClass = _react["default"].useCallback(function (className) {
|
|
66
67
|
return className.split(' ').filter(function (cls) {
|
|
67
68
|
return cls.trim();
|
package/dist/build-index.js
CHANGED
|
@@ -51,6 +51,24 @@ Object.defineProperty(exports, "Checkbox", {
|
|
|
51
51
|
return _Checkbox["default"];
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
+
Object.defineProperty(exports, "DatePicker", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _DatePicker["default"];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "DateRangePicker", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _DateRangePicker["default"];
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "DateTimePicker", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _DateTimePicker["default"];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
54
72
|
Object.defineProperty(exports, "DragDrop", {
|
|
55
73
|
enumerable: true,
|
|
56
74
|
get: function get() {
|
|
@@ -171,6 +189,24 @@ Object.defineProperty(exports, "Radio", {
|
|
|
171
189
|
return _Radio["default"];
|
|
172
190
|
}
|
|
173
191
|
});
|
|
192
|
+
Object.defineProperty(exports, "RichTextInput", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _RichTextInput["default"];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "Scrollbar", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _Scrollbar["default"];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "ScrollbarNew", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function get() {
|
|
207
|
+
return _ScrollbarNew["default"];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
174
210
|
Object.defineProperty(exports, "SelectInput", {
|
|
175
211
|
enumerable: true,
|
|
176
212
|
get: function get() {
|
|
@@ -267,12 +303,24 @@ Object.defineProperty(exports, "ThemeProvider", {
|
|
|
267
303
|
return _ThemeProvider["default"];
|
|
268
304
|
}
|
|
269
305
|
});
|
|
306
|
+
Object.defineProperty(exports, "TimePicker", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function get() {
|
|
309
|
+
return _TimePicker["default"];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
270
312
|
Object.defineProperty(exports, "Timeline", {
|
|
271
313
|
enumerable: true,
|
|
272
314
|
get: function get() {
|
|
273
315
|
return _Timeline["default"];
|
|
274
316
|
}
|
|
275
317
|
});
|
|
318
|
+
Object.defineProperty(exports, "ToastProvider", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function get() {
|
|
321
|
+
return _ToastProvider["default"];
|
|
322
|
+
}
|
|
323
|
+
});
|
|
276
324
|
Object.defineProperty(exports, "Toggle", {
|
|
277
325
|
enumerable: true,
|
|
278
326
|
get: function get() {
|
|
@@ -291,12 +339,24 @@ Object.defineProperty(exports, "Typography", {
|
|
|
291
339
|
return _Typography["default"];
|
|
292
340
|
}
|
|
293
341
|
});
|
|
342
|
+
Object.defineProperty(exports, "toast", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function get() {
|
|
345
|
+
return _toastStore.toast;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
294
348
|
Object.defineProperty(exports, "useCouncilboxTheme", {
|
|
295
349
|
enumerable: true,
|
|
296
350
|
get: function get() {
|
|
297
351
|
return _CouncilboxThemeContext.useCouncilboxTheme;
|
|
298
352
|
}
|
|
299
353
|
});
|
|
354
|
+
Object.defineProperty(exports, "useToast", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function get() {
|
|
357
|
+
return _useToast.useToast;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
300
360
|
var _Button = _interopRequireDefault(require("./components/Button/Button"));
|
|
301
361
|
var _Header = _interopRequireDefault(require("./components/Header/Header"));
|
|
302
362
|
var _InputPassword = _interopRequireDefault(require("./components/InputPassword/InputPassword"));
|
|
@@ -346,4 +406,14 @@ var _Tooltip = _interopRequireDefault(require("./components/Tooltip/Tooltip"));
|
|
|
346
406
|
var _Slider = _interopRequireDefault(require("./components/Slider/Slider"));
|
|
347
407
|
var _ThemeProvider = _interopRequireDefault(require("./components/ThemeProvider/ThemeProvider"));
|
|
348
408
|
var _CouncilboxThemeContext = require("./components/ThemeProvider/CouncilboxThemeContext");
|
|
409
|
+
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
410
|
+
var _DateTimePicker = _interopRequireDefault(require("./components/DateTimePicker/DateTimePicker"));
|
|
411
|
+
var _DateRangePicker = _interopRequireDefault(require("./components/DateRangePicker/DateRangePicker"));
|
|
412
|
+
var _TimePicker = _interopRequireDefault(require("./components/TimePicker/TimePicker"));
|
|
413
|
+
var _Scrollbar = _interopRequireDefault(require("./components/Scrollbar/Scrollbar"));
|
|
414
|
+
var _ScrollbarNew = _interopRequireDefault(require("./components/ScrollbarNew/ScrollbarNew"));
|
|
415
|
+
var _RichTextInput = _interopRequireDefault(require("./components/RichTextInput/RichTextInput"));
|
|
416
|
+
var _ToastProvider = _interopRequireDefault(require("./components/Toast/ToastProvider"));
|
|
417
|
+
var _useToast = require("./components/Toast/useToast");
|
|
418
|
+
var _toastStore = require("./components/Toast/toastStore");
|
|
349
419
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -16,7 +16,7 @@ a.noStyles:hover{
|
|
|
16
16
|
`}</style>
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
# Librería de componentes ui-councilbox NEW v2.0.
|
|
19
|
+
# Librería de componentes ui-councilbox NEW v2.0.55 🎉
|
|
20
20
|
|
|
21
21
|
<h2>Componentes:</h2>
|
|
22
22
|
<div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
|
|
@@ -25,6 +25,9 @@ a.noStyles:hover{
|
|
|
25
25
|
<div><a class='noStyles' href='/story/components-block--design-block-template'>Block</a></div>
|
|
26
26
|
<div><a class='noStyles' href='/story/components-buttonbasic--default'>ButtonBasic</a></div>
|
|
27
27
|
<div><a class='noStyles' href='/story/components-checkbox--default'>Checkbox</a></div>
|
|
28
|
+
<div><a class='noStyles' href='/story/components-datepicker--default'>DatePicker</a></div>
|
|
29
|
+
<div><a class='noStyles' href='/story/components-daterangepicker--default'>DateRangePicker</a></div>
|
|
30
|
+
<div><a class='noStyles' href='/story/components-datetimepicker--default'>DateTimePicker</a></div>
|
|
28
31
|
<div><a class='noStyles' href='/story/components-drawerpanel--design-drawer-panel-template'>DrawerPanel</a></div>
|
|
29
32
|
<div><a class='noStyles' href='/story/components-dragdrop--default'>DragDrop</a></div>
|
|
30
33
|
<div><a class='noStyles' href='/story/components-dropdown--design-drop-down-template'>DropDown</a></div>
|
|
@@ -25,8 +25,8 @@ a.noStyles:hover{
|
|
|
25
25
|
<div>Fix zIndex label InputText y SelectInput</div>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
-
<h2>v2.0.
|
|
29
|
-
|
|
28
|
+
<h2>v2.0.55</h2>
|
|
29
|
+
<div>Updated Accordion component to comply with WCAG 2.1 AA</div>
|
|
30
30
|
<div>Updated Alert component to comply with WCAG 2.1 AA</div>
|
|
31
31
|
<div>Updated Avatar component to comply with WCAG 2.1 AA</div>
|
|
32
32
|
<div>Updated Block component to comply with WCAG 2.1 AA</div>
|
|
@@ -64,7 +64,19 @@ a.noStyles:hover{
|
|
|
64
64
|
<div>Updated MenuLateralLeft component to comply with WCAG 2.1 AA</div>
|
|
65
65
|
<div>Updated PaginationFooter component to comply with WCAG 2.1 AA</div>
|
|
66
66
|
<div>Updated SelectInput component to comply with WCAG 2.1 AA</div>
|
|
67
|
-
|
|
67
|
+
<div>Install addon-a11y and correction</div>
|
|
68
|
+
<div>Add RichTextInput</div>
|
|
69
|
+
<div>Add Toast</div>
|
|
70
|
+
<div>Add Pickers</div>
|
|
71
|
+
<div>Optimization useWindowSize</div>
|
|
72
|
+
<div>Remove js Old</div>
|
|
73
|
+
<div>Add generate-shims</div>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<h2>v2.0.54</h2>
|
|
77
|
+
<div>Change name class in Block</div>
|
|
78
|
+
<div>Change colors info, success and error</div>
|
|
79
|
+
<div>Fix PaginationFooter cursor pointer button</div>
|
|
68
80
|
|
|
69
81
|
<h2>v2.0.53</h2>
|
|
70
82
|
<div>Adjust container height in main Left Lateral Menu.</div>
|