@councilbox/councilbox-ui 2.0.59 → 2.0.61

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 (107) 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/Accordion/Accordion.js +2 -2
  7. package/dist/components/Button/Button.js +79 -87
  8. package/dist/components/Button/button.css +171 -16
  9. package/dist/components/DatePicker/Calendar.js +3 -5
  10. package/dist/components/DatePicker/DatePicker.css +1 -1
  11. package/dist/components/DateRangePicker/RangeCalendar.js +2 -4
  12. package/dist/components/IconButton/IconButton.js +1 -1
  13. package/dist/components/Modal/Modal.js +13 -3
  14. package/dist/components/RichTextInput/RichTextInput.js +28 -7
  15. package/dist/components/SafeHtml/SafeHtml.js +82 -0
  16. package/dist/components/SelectInput/SelectInput.js +1 -0
  17. package/dist/components/Stepper/Stepper.css +6 -1
  18. package/dist/components/Tabs/Tabs.js +1 -0
  19. package/dist/components/TextInput/TextInput.css +164 -1
  20. package/dist/components/TextInput/TextInput.js +171 -167
  21. package/dist/components/ThemeProvider/Colors.js +1 -1
  22. package/dist/components/ThemeProvider/ThemeProvider.js +1 -7
  23. package/dist/components/Toast/toastStore.js +1 -0
  24. package/dist/styles/colorConsts.css +1 -1
  25. package/dist/styles/stylesheet.js +2 -50
  26. package/dist/testing/TestAutocomplete.js +1 -105
  27. package/dist/utils/sanitizeHtml.js +199 -0
  28. package/package.json +17 -31
  29. package/dist/__snapshots__/storybook.test.js.snap +0 -104
  30. package/dist/components/1.Introduction.stories.mdx +0 -579
  31. package/dist/components/2.Changelog.stories.mdx +0 -1392
  32. package/dist/components/3.Guide.stories.mdx +0 -589
  33. package/dist/components/Accordion/Accordion.stories.js +0 -95
  34. package/dist/components/Accordion/DesignAccordion.stories.js +0 -27
  35. package/dist/components/Alert/Alert.stories.js +0 -101
  36. package/dist/components/Avatar/Avatar.stories.js +0 -159
  37. package/dist/components/Avatar/DesignAvatar.stories.js +0 -64
  38. package/dist/components/Avatar/DesignAvatarText.stories.js +0 -123
  39. package/dist/components/AvatarGroup/AvatarGroup.stories.js +0 -72
  40. package/dist/components/AvatarGroup/DesignAvatarGroup.stories.js +0 -118
  41. package/dist/components/Block/Block.stories.js +0 -66
  42. package/dist/components/Block/DesignBlock.stories.js +0 -35
  43. package/dist/components/Button/Button.stories.js +0 -98
  44. package/dist/components/ButtonBasic/ButtonBasic.stories.js +0 -161
  45. package/dist/components/Checkbox/Checkbox.stories.js +0 -110
  46. package/dist/components/DatePicker/DatePicker.stories.js +0 -180
  47. package/dist/components/DateRangePicker/DateRangePicker.stories.js +0 -147
  48. package/dist/components/DateTimePicker/DateTimePicker.stories.js +0 -144
  49. package/dist/components/DragDrop/DragDrop.stories.js +0 -155
  50. package/dist/components/DrawerPanel/DrawerPanel.stories.js +0 -277
  51. package/dist/components/DropDown/DesignDropDown.stories.js +0 -216
  52. package/dist/components/DropDown/DropDown.stories.js +0 -240
  53. package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +0 -128
  54. package/dist/components/EnhancedTable/EnhancedTable.stories.js +0 -259
  55. package/dist/components/FabButton/DesignFabButton.stories.js +0 -40
  56. package/dist/components/FabButton/FabButton.stories.js +0 -147
  57. package/dist/components/Grid/DesignGrid.stories.js +0 -45
  58. package/dist/components/Grid/Grid.stories.js +0 -211
  59. package/dist/components/Header/DesignHeader.stories.js +0 -65
  60. package/dist/components/Header/Header.stories.js +0 -674
  61. package/dist/components/IconButton/DesignIconButton.stories.js +0 -113
  62. package/dist/components/IconButton/IconButton.stories.js +0 -205
  63. package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +0 -21
  64. package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +0 -209
  65. package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +0 -433
  66. package/dist/components/InputPassword/InputPassword.stories.js +0 -185
  67. package/dist/components/InputText/InputText.stories.js +0 -261
  68. package/dist/components/InputTextArea/DesignInputTextArea.stories.js +0 -116
  69. package/dist/components/InputTextArea/InputTextArea.stories.js +0 -146
  70. package/dist/components/LoadingSection/LoadingSection.stories.js +0 -84
  71. package/dist/components/MenuItem/DesignMenuItem.stories.js +0 -54
  72. package/dist/components/MenuItem/MenuItem.stories.js +0 -138
  73. package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +0 -243
  74. package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +0 -228
  75. package/dist/components/Modal/DesignModal.stories.js +0 -39
  76. package/dist/components/Modal/Modal.stories.js +0 -229
  77. package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +0 -22
  78. package/dist/components/PaginationFooter/PaginationFooter.stories.js +0 -191
  79. package/dist/components/RadioButton/Radio.stories.js +0 -157
  80. package/dist/components/RichTextInput/DesignRichTextInput.stories.js +0 -119
  81. package/dist/components/RichTextInput/RichTextInput.stories.js +0 -38
  82. package/dist/components/Ripple/Ripple.stories.js +0 -107
  83. package/dist/components/Scrollbar/Scrollbar.stories.js +0 -42
  84. package/dist/components/ScrollbarOld/ScrollbarOld.stories.js +0 -140
  85. package/dist/components/SelectInput/SelectInput.stories.js +0 -212
  86. package/dist/components/Slider/Slider.stories.js +0 -128
  87. package/dist/components/Spacing/Spacing.stories.js +0 -37
  88. package/dist/components/Stars/Stars.stories.js +0 -138
  89. package/dist/components/Stepper/DesignStepper.stories.js +0 -130
  90. package/dist/components/Stepper/Stepper.stories.js +0 -131
  91. package/dist/components/Table/DesignTable.stories.js +0 -614
  92. package/dist/components/Table/Table.stories.js +0 -215
  93. package/dist/components/Tabs/Tabs.stories.js +0 -163
  94. package/dist/components/Tag/DesignTags.stories.js +0 -81
  95. package/dist/components/Tag/Tag.stories.js +0 -148
  96. package/dist/components/TextInput/TextInput.stories.js +0 -148
  97. package/dist/components/TimePicker/TimePicker.stories.js +0 -132
  98. package/dist/components/Timeline/DesignTimeline.stories.js +0 -19
  99. package/dist/components/Timeline/Timeline.stories.js +0 -128
  100. package/dist/components/Toast/DesignToast.stories.js +0 -174
  101. package/dist/components/Toast/Toast.stories.js +0 -39
  102. package/dist/components/Toggle/Toggle.stories.js +0 -118
  103. package/dist/components/Tooltip/DesignTooltip.stories.js +0 -45
  104. package/dist/components/Tooltip/Tooltip.stories.js +0 -135
  105. package/dist/components/Typography/Typography.stories.js +0 -114
  106. package/dist/reportWebVitals.js +0 -28
  107. package/dist/storybook.test.js +0 -5
@@ -1,674 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.HeaderAllButtons = exports.DesignHeaderTemplate = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _Header = _interopRequireDefault(require("./Header"));
9
- var _cbxLogo = _interopRequireDefault(require("../../assets/img/cbxLogo.svg"));
10
- var _cbxXs = _interopRequireDefault(require("../../assets/img/cbxXs.svg"));
11
- var _ovacXs = _interopRequireDefault(require("../../assets/img/ovacXs.svg"));
12
- var _DesignHeader = _interopRequireDefault(require("./DesignHeader.stories"));
13
- var _MenuItem = _interopRequireDefault(require("../MenuItem/MenuItem"));
14
- var _excluded = ["showBack", "back", "showFinish", "finish", "showNotifications", "onClickButtonNotification", "showFileManager", "onClickButtonFileManager"];
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
- 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); }
17
- 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; }
18
- 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; }
19
- var IMGS = {
20
- cbx: _cbxLogo["default"],
21
- noLogo: 'noLogo',
22
- empty: ''
23
- };
24
- var IMGSXS = {
25
- cbx: _cbxXs["default"],
26
- empty: ''
27
- };
28
- var IMGS2 = {
29
- ovac: 'https://ovac.pre.councilbox.com/static/media/logo.1752d54e.svg',
30
- abanca: 'https://api.councilbox.com/subdomains/logo/abanca_logo.png',
31
- empty: ''
32
- };
33
- var IMGS2XS = {
34
- ovac: _ovacXs["default"],
35
- empty: ''
36
- };
37
- var ICONS = {
38
- ninguno: undefined,
39
- usuario: /*#__PURE__*/_react["default"].createElement("i", {
40
- className: "ri-user-3-line",
41
- "aria-hidden": "true"
42
- }),
43
- flecha: /*#__PURE__*/_react["default"].createElement("i", {
44
- className: "ri-arrow-left-line",
45
- "aria-hidden": "true"
46
- }),
47
- menu: /*#__PURE__*/_react["default"].createElement("i", {
48
- className: "ri-menu-line",
49
- "aria-hidden": "true"
50
- }),
51
- mas: /*#__PURE__*/_react["default"].createElement("i", {
52
- className: "ri-more-2-fill",
53
- "aria-hidden": "true"
54
- }),
55
- candado: /*#__PURE__*/_react["default"].createElement("i", {
56
- className: "ri-lock-line",
57
- "aria-hidden": "true"
58
- }),
59
- salir: /*#__PURE__*/_react["default"].createElement("i", {
60
- className: "ri-logout-circle-r-line",
61
- "aria-hidden": "true"
62
- }),
63
- campana: /*#__PURE__*/_react["default"].createElement("i", {
64
- className: "ri-notification-3-line",
65
- "aria-hidden": "true"
66
- }),
67
- archivos: /*#__PURE__*/_react["default"].createElement("i", {
68
- className: "ri-swap-line",
69
- "aria-hidden": "true"
70
- })
71
- };
72
- var MENUS = {
73
- ninguno: undefined,
74
- opciones: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
75
- icon: "ri-user-line"
76
- }, "Mi perfil"), /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
77
- icon: "ri-settings-3-line"
78
- }, "Ajustes"), /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
79
- icon: "ri-logout-box-line"
80
- }, "Cerrar sesi\xF3n"))
81
- };
82
- var _default = {
83
- title: 'Components/Header',
84
- component: _Header["default"],
85
- argTypes: {
86
- logoLeft: {
87
- control: {
88
- type: 'select'
89
- },
90
- options: Object.keys(IMGS),
91
- mapping: IMGS,
92
- table: {
93
- category: 'Bloque izquierdo'
94
- }
95
- },
96
- logoLeftXS: {
97
- control: {
98
- type: 'select'
99
- },
100
- options: Object.keys(IMGSXS),
101
- mapping: IMGSXS,
102
- table: {
103
- category: 'Bloque izquierdo'
104
- }
105
- },
106
- altLogoLeft: {
107
- control: 'text',
108
- table: {
109
- category: 'Bloque izquierdo'
110
- }
111
- },
112
- companyName: {
113
- control: 'text',
114
- table: {
115
- category: 'Bloque izquierdo'
116
- }
117
- },
118
- showTypographyLogoLeft: {
119
- control: 'boolean',
120
- table: {
121
- category: 'Bloque izquierdo'
122
- }
123
- },
124
- colorNoLogo: {
125
- control: 'object',
126
- table: {
127
- category: 'Bloque izquierdo'
128
- }
129
- },
130
- back: {
131
- action: 'back',
132
- table: {
133
- category: 'Bloque izquierdo'
134
- }
135
- },
136
- showBack: {
137
- control: 'boolean',
138
- description: 'Solo demo: muestra el botón de volver.',
139
- table: {
140
- category: 'Bloque izquierdo'
141
- }
142
- },
143
- backIcon: {
144
- control: 'select',
145
- options: Object.keys(ICONS),
146
- mapping: ICONS,
147
- table: {
148
- category: 'Bloque izquierdo'
149
- }
150
- },
151
- ariaLabelButtonBack: {
152
- control: 'text',
153
- table: {
154
- category: 'Bloque izquierdo'
155
- }
156
- },
157
- dropdownLeft: {
158
- control: 'select',
159
- options: Object.keys(MENUS),
160
- mapping: MENUS,
161
- table: {
162
- category: 'Bloque izquierdo'
163
- }
164
- },
165
- dropdownLeftIcon: {
166
- control: 'select',
167
- options: Object.keys(ICONS),
168
- mapping: ICONS,
169
- table: {
170
- category: 'Bloque izquierdo'
171
- }
172
- },
173
- ariaLabelDropdownLeft: {
174
- control: 'text',
175
- table: {
176
- category: 'Bloque izquierdo'
177
- }
178
- },
179
- actionLogoLeft: {
180
- action: 'actionLogoLeft',
181
- table: {
182
- category: 'Bloque izquierdo'
183
- }
184
- },
185
- sectionCenter: {
186
- control: 'boolean',
187
- table: {
188
- category: 'Bloque central'
189
- }
190
- },
191
- title: {
192
- control: 'text',
193
- table: {
194
- category: 'Bloque central'
195
- }
196
- },
197
- lock: {
198
- control: 'boolean',
199
- table: {
200
- category: 'Bloque central'
201
- }
202
- },
203
- lockIcon: {
204
- control: 'select',
205
- options: Object.keys(ICONS),
206
- mapping: ICONS,
207
- table: {
208
- category: 'Bloque central'
209
- }
210
- },
211
- itemsDropDownMore: {
212
- control: 'select',
213
- options: Object.keys(MENUS),
214
- mapping: MENUS,
215
- table: {
216
- category: 'Bloque central'
217
- }
218
- },
219
- moreIcon: {
220
- control: 'select',
221
- options: Object.keys(ICONS),
222
- mapping: ICONS,
223
- table: {
224
- category: 'Bloque central'
225
- }
226
- },
227
- ariaLabelDropdownMore: {
228
- control: 'text',
229
- table: {
230
- category: 'Bloque central'
231
- }
232
- },
233
- finish: {
234
- action: 'finish',
235
- table: {
236
- category: 'Bloque central'
237
- }
238
- },
239
- showFinish: {
240
- control: 'boolean',
241
- description: 'Solo demo: muestra el botón de finalizar.',
242
- table: {
243
- category: 'Bloque central'
244
- }
245
- },
246
- textFinishButton: {
247
- control: 'text',
248
- table: {
249
- category: 'Bloque central'
250
- }
251
- },
252
- finishButtonVariant: {
253
- control: 'select',
254
- options: ['primary', 'secondary', 'secondaryDark', 'tertiary'],
255
- table: {
256
- category: 'Bloque central'
257
- }
258
- },
259
- finishButtonIcon: {
260
- control: 'select',
261
- options: Object.keys(ICONS),
262
- mapping: ICONS,
263
- table: {
264
- category: 'Bloque central'
265
- }
266
- },
267
- logoRight: {
268
- control: {
269
- type: 'select'
270
- },
271
- options: Object.keys(IMGS2),
272
- mapping: IMGS2,
273
- table: {
274
- category: 'Bloque derecho'
275
- }
276
- },
277
- logoRightXS: {
278
- control: {
279
- type: 'select'
280
- },
281
- options: Object.keys(IMGS2XS),
282
- mapping: IMGS2XS,
283
- table: {
284
- category: 'Bloque derecho'
285
- }
286
- },
287
- altLogoRight: {
288
- control: 'text',
289
- table: {
290
- category: 'Bloque derecho'
291
- }
292
- },
293
- logoAndDropdownSeparate: {
294
- control: 'boolean',
295
- table: {
296
- category: 'Bloque derecho'
297
- }
298
- },
299
- itemsDropDownUser: {
300
- control: 'select',
301
- options: Object.keys(MENUS),
302
- mapping: MENUS,
303
- table: {
304
- category: 'Bloque derecho'
305
- }
306
- },
307
- iconButtonRight: {
308
- control: 'select',
309
- options: Object.keys(ICONS),
310
- mapping: ICONS,
311
- table: {
312
- category: 'Bloque derecho'
313
- }
314
- },
315
- onClickIconButtonRight: {
316
- action: 'onClickIconButtonRight',
317
- table: {
318
- category: 'Bloque derecho'
319
- }
320
- },
321
- backgroundIconButtonRight: {
322
- control: 'color',
323
- table: {
324
- category: 'Bloque derecho'
325
- }
326
- },
327
- ariaLabelThirdDropdownUser: {
328
- control: 'text',
329
- table: {
330
- category: 'Bloque derecho'
331
- }
332
- },
333
- tooltipThirdDropdownUser: {
334
- control: 'text',
335
- table: {
336
- category: 'Bloque derecho'
337
- }
338
- },
339
- placementTooltipThirdDropdownUser: {
340
- control: 'select',
341
- options: ['top', 'right', 'bottom', 'left'],
342
- table: {
343
- category: 'Bloque derecho'
344
- }
345
- },
346
- showNotifications: {
347
- control: 'boolean',
348
- description: 'Solo demo: muestra el botón de notificaciones.',
349
- table: {
350
- category: 'Bloque derecho'
351
- }
352
- },
353
- onClickButtonNotification: {
354
- action: 'onClickButtonNotification',
355
- table: {
356
- category: 'Bloque derecho'
357
- }
358
- },
359
- buttonNotificationIcon: {
360
- control: 'select',
361
- options: Object.keys(ICONS),
362
- mapping: ICONS,
363
- table: {
364
- category: 'Bloque derecho'
365
- }
366
- },
367
- buttonNotificationBadge: {
368
- control: 'boolean',
369
- table: {
370
- category: 'Bloque derecho'
371
- }
372
- },
373
- buttonNotificationAriaLabel: {
374
- control: 'text',
375
- table: {
376
- category: 'Bloque derecho'
377
- }
378
- },
379
- buttonNotificationIconItems: {
380
- control: 'select',
381
- options: Object.keys(MENUS),
382
- mapping: MENUS,
383
- table: {
384
- category: 'Bloque derecho'
385
- }
386
- },
387
- showFileManager: {
388
- control: 'boolean',
389
- description: 'Solo demo: muestra el botón del gestor de archivos.',
390
- table: {
391
- category: 'Bloque derecho'
392
- }
393
- },
394
- onClickButtonFileManager: {
395
- action: 'onClickButtonFileManager',
396
- table: {
397
- category: 'Bloque derecho'
398
- }
399
- },
400
- buttonFileManagerIcon: {
401
- control: 'select',
402
- options: Object.keys(ICONS),
403
- mapping: ICONS,
404
- table: {
405
- category: 'Bloque derecho'
406
- }
407
- },
408
- buttonFileManagerBadge: {
409
- control: 'boolean',
410
- table: {
411
- category: 'Bloque derecho'
412
- }
413
- },
414
- buttonFileManagerProgressDownload: {
415
- control: {
416
- type: 'range',
417
- min: 0,
418
- max: 100,
419
- step: 1
420
- },
421
- table: {
422
- category: 'Bloque derecho'
423
- }
424
- },
425
- buttonFileManagerProgressAutoDownload: {
426
- control: 'boolean',
427
- table: {
428
- category: 'Bloque derecho'
429
- }
430
- },
431
- buttonFileManagerItems: {
432
- control: 'select',
433
- options: Object.keys(MENUS),
434
- mapping: MENUS,
435
- table: {
436
- category: 'Bloque derecho'
437
- }
438
- },
439
- buttonFileManagerAriaLabel: {
440
- control: 'text',
441
- table: {
442
- category: 'Bloque derecho'
443
- }
444
- },
445
- thirdBlockActions: {
446
- control: 'text',
447
- table: {
448
- category: 'Bloque derecho'
449
- }
450
- },
451
- demoMode: {
452
- control: 'boolean',
453
- table: {
454
- category: 'Bloque derecho'
455
- }
456
- },
457
- styleIconButtonRightContainer: {
458
- control: 'object',
459
- table: {
460
- category: 'Estilos y props internas'
461
- }
462
- },
463
- styleIconButtonRight: {
464
- control: 'object',
465
- table: {
466
- category: 'Estilos y props internas'
467
- }
468
- },
469
- iconButtonBackProps: {
470
- control: 'object',
471
- table: {
472
- category: 'Estilos y props internas'
473
- }
474
- },
475
- iconButtonDropdownLeftProps: {
476
- control: 'object',
477
- table: {
478
- category: 'Estilos y props internas'
479
- }
480
- },
481
- dropdownLeftProps: {
482
- control: 'object',
483
- table: {
484
- category: 'Estilos y props internas'
485
- }
486
- },
487
- typographyLogoLeftProps: {
488
- control: 'object',
489
- table: {
490
- category: 'Estilos y props internas'
491
- }
492
- },
493
- typographySectionCenterProps: {
494
- control: 'object',
495
- table: {
496
- category: 'Estilos y props internas'
497
- }
498
- },
499
- itemsDropDownMoreIconButtonProps: {
500
- control: 'object',
501
- table: {
502
- category: 'Estilos y props internas'
503
- }
504
- },
505
- itemsDropDownMoreProps: {
506
- control: 'object',
507
- table: {
508
- category: 'Estilos y props internas'
509
- }
510
- },
511
- finishIconButtonProps: {
512
- control: 'object',
513
- table: {
514
- category: 'Estilos y props internas'
515
- }
516
- },
517
- finishButtonBasicProps: {
518
- control: 'object',
519
- table: {
520
- category: 'Estilos y props internas'
521
- }
522
- },
523
- iconButtonRightProps: {
524
- control: 'object',
525
- table: {
526
- category: 'Estilos y props internas'
527
- }
528
- },
529
- itemsDropDownUserProps: {
530
- control: 'object',
531
- table: {
532
- category: 'Estilos y props internas'
533
- }
534
- },
535
- buttonNotificationProps: {
536
- control: 'object',
537
- table: {
538
- category: 'Estilos y props internas'
539
- }
540
- },
541
- buttonNotificationIconDropDownProps: {
542
- control: 'object',
543
- table: {
544
- category: 'Estilos y props internas'
545
- }
546
- },
547
- buttonFileManagerProps: {
548
- control: 'object',
549
- table: {
550
- category: 'Estilos y props internas'
551
- }
552
- },
553
- buttonFileManagerDropDownProps: {
554
- control: 'object',
555
- table: {
556
- category: 'Estilos y props internas'
557
- }
558
- },
559
- sx: {
560
- control: 'object',
561
- table: {
562
- category: 'Estilos y props internas'
563
- }
564
- },
565
- more: {
566
- table: {
567
- disable: true
568
- }
569
- },
570
- onChangeSearch: {
571
- table: {
572
- disable: true
573
- }
574
- },
575
- titleDropdownSearch: {
576
- table: {
577
- disable: true
578
- }
579
- },
580
- itemsDropDownSearch: {
581
- table: {
582
- disable: true
583
- }
584
- },
585
- prefixClass: {
586
- table: {
587
- disable: true
588
- }
589
- }
590
- },
591
- parameters: {
592
- docs: {
593
- description: {
594
- component: "\n## Header\n\nCabecera principal de la aplicaci\xF3n, dividida en tres bloques: a la izquierda, navegaci\xF3n y logotipo; en el centro, el t\xEDtulo de la secci\xF3n y sus acciones; a la derecha, notificaciones, gestor de archivos y men\xFA de usuario.\n\n## Funcionamiento\n\n### Bloque izquierdo\n\n- `back`: muestra un bot\xF3n de volver y se llama al pulsarlo. `backIcon` cambia su icono.\n- `dropdownLeft`: muestra un bot\xF3n con un men\xFA desplegable con esas opciones. `dropdownLeftIcon` cambia su icono.\n- `logoLeft` / `logoLeftXS`: logotipo (con versi\xF3n para pantallas peque\xF1as). `'noLogo'` lo oculta; sin logotipo se muestra un icono de edificio.\n- `companyName` y `showTypographyLogoLeft`: nombre de la entidad junto al logotipo; si no cabe, se corta y aparece en un tooltip.\n- `actionLogoLeft`: hace clicable el logotipo.\n\n### Bloque central\n\n- Se muestra con `sectionCenter={true}`.\n- `title`: t\xEDtulo de la secci\xF3n. `lock` / `lockIcon`: icono de candado junto al t\xEDtulo.\n- `itemsDropDownMore`: men\xFA de \"m\xE1s opciones\". `moreIcon` cambia su icono.\n- `finish` y `textFinishButton`: bot\xF3n de finalizar o salir (en m\xF3vil, solo icono).\n\n### Bloque derecho\n\n- `onClickButtonNotification`, `buttonNotificationBadge` y `buttonNotificationIconItems`: bot\xF3n de notificaciones, con indicador y men\xFA opcional.\n- `onClickButtonFileManager`, `buttonFileManagerItems`, `buttonFileManagerProgressDownload` y `buttonFileManagerBadge`: bot\xF3n del gestor de archivos, con progreso de descarga.\n- `itemsDropDownUser`, `iconButtonRight` y `logoRight` / `logoRightXS`: men\xFA de usuario y logotipo de la derecha. `logoAndDropdownSeparate` los muestra separados o en un mismo bot\xF3n.\n- `thirdBlockActions`: contenido propio en este bloque.\n- `demoMode`: muestra la marca \"DEMO\".\n\n### Personalizaci\xF3n\n\n- Casi todos los elementos aceptan props propias: `iconButtonBackProps`, `dropdownLeftProps`, `itemsDropDownMoreProps`, `finishButtonBasicProps`, `itemsDropDownUserProps`, `buttonNotificationProps`, `buttonFileManagerProps`, etc.\n\n## Accesibilidad\n\n### Estructura\n\n- La cabecera es un elemento `header`, que los lectores de pantalla identifican como regi\xF3n de banner.\n\n### Nombres accesibles\n\n- Los botones de solo icono reciben su nombre por props: `ariaLabelButtonBack`, `ariaLabelDropdownLeft`, `ariaLabelDropdownMore`, `ariaLabelThirdDropdownUser`, `buttonNotificationAriaLabel` y `buttonFileManagerAriaLabel`.\n- Integra `useA11yGuard`: en modo estricto exige el nombre de cada bot\xF3n de solo icono que se muestre.\n- Los logotipos usan `altLogoLeft` y `altLogoRight` como texto alternativo.\n- El logotipo clicable (`actionLogoLeft`) recibe `role=\"button\"`, es enfocable y se activa con **Enter** o **Espacio**.\n\n### Men\xFAs\n\n- Los men\xFAs desplegables usan `DropDown`: `aria-haspopup=\"menu\"`, `aria-expanded`, foco en la primera opci\xF3n al abrir, navegaci\xF3n con flechas y **Escape** para cerrar.\n\n## Recomendaciones de uso\n\n- Pasar todos los `ariaLabel*` traducidos, ya que los valores por defecto est\xE1n en ingl\xE9s.\n- Indicar siempre `altLogoLeft` y `altLogoRight` (por ejemplo, el nombre de la entidad). Si el logotipo es decorativo, pasar `''`.\n- Usar un \xFAnico `Header` por p\xE1gina.\n\n## Consideraciones\n\n- El t\xEDtulo de la secci\xF3n se renderiza como `span`, no como encabezado, as\xED que no aparece en la navegaci\xF3n por encabezados del lector de pantalla.\n- Los men\xFAs con bot\xF3n de icono (`dropdownLeft`, `itemsDropDownMore`, notificaciones, gestor de archivos, usuario) envuelven un `IconButton` dentro del contenedor con `role=\"button\"` de `DropDown`: quedan dos controles anidados y dos paradas de **Tab** para la misma acci\xF3n.\n- Los textos por defecto (\"Drop Down Button Left\", \"Drop Down Button More\", \"Button user\", \"Notifications\", \"File manager\") est\xE1n en ingl\xE9s y no describen la acci\xF3n.\n- Sin `altLogoLeft` / `altLogoRight`, las im\xE1genes de los logotipos no tienen texto alternativo.\n- El candado del t\xEDtulo y la marca \"DEMO\" solo se transmiten visualmente.\n- La cabecera usa el `id` fijo `cbx-header-app-header`."
595
- }
596
- },
597
- storybookCodePanel: {
598
- disabled: false,
599
- files: [{
600
- fileName: 'Header.js',
601
- // eslint-disable-next-line import/no-webpack-loader-syntax, global-require, import/extensions, import/no-unresolved
602
- code: require('!!raw-loader!./Header.jsx')
603
- }, {
604
- fileName: 'header.css',
605
- // eslint-disable-next-line import/no-webpack-loader-syntax, global-require, import/extensions, import/no-unresolved
606
- code: require('!!raw-loader!./header.css')
607
- }]
608
- }
609
- }
610
- };
611
- exports["default"] = _default;
612
- var Template = function Template(_ref) {
613
- var showBack = _ref.showBack,
614
- back = _ref.back,
615
- showFinish = _ref.showFinish,
616
- finish = _ref.finish,
617
- showNotifications = _ref.showNotifications,
618
- onClickButtonNotification = _ref.onClickButtonNotification,
619
- showFileManager = _ref.showFileManager,
620
- onClickButtonFileManager = _ref.onClickButtonFileManager,
621
- args = _objectWithoutProperties(_ref, _excluded);
622
- return /*#__PURE__*/_react["default"].createElement(_Header["default"], _extends({}, args, {
623
- back: showBack ? back : undefined,
624
- finish: showFinish ? finish : undefined,
625
- onClickButtonNotification: showNotifications ? onClickButtonNotification : undefined,
626
- onClickButtonFileManager: showFileManager ? onClickButtonFileManager : undefined
627
- }));
628
- };
629
- Template.displayName = "Template";
630
- var TemplateHeader = function TemplateHeader(args) {
631
- return /*#__PURE__*/_react["default"].createElement(_DesignHeader["default"], args);
632
- };
633
- TemplateHeader.displayName = "TemplateHeader";
634
- var HeaderAllButtons = Template.bind({});
635
- exports.HeaderAllButtons = HeaderAllButtons;
636
- HeaderAllButtons.args = {
637
- logoLeft: 'cbx',
638
- logoLeftXS: 'cbx',
639
- altLogoLeft: 'Councilbox',
640
- companyName: 'Councilbox Technology',
641
- showTypographyLogoLeft: true,
642
- showBack: true,
643
- ariaLabelButtonBack: 'Volver',
644
- backIcon: 'ninguno',
645
- dropdownLeft: 'ninguno',
646
- ariaLabelDropdownLeft: 'Más opciones de navegación',
647
- sectionCenter: true,
648
- title: 'Junta General Ordinaria',
649
- lock: false,
650
- itemsDropDownMore: 'opciones',
651
- ariaLabelDropdownMore: 'Más opciones',
652
- showFinish: true,
653
- textFinishButton: 'Finalizar',
654
- finishButtonVariant: 'secondary',
655
- logoRight: 'empty',
656
- logoRightXS: 'empty',
657
- logoAndDropdownSeparate: true,
658
- itemsDropDownUser: 'opciones',
659
- ariaLabelThirdDropdownUser: 'Menú de usuario',
660
- showNotifications: true,
661
- buttonNotificationBadge: true,
662
- buttonNotificationAriaLabel: 'Notificaciones',
663
- showFileManager: false,
664
- buttonFileManagerAriaLabel: 'Gestor de archivos',
665
- buttonFileManagerProgressDownload: 0,
666
- demoMode: false
667
- };
668
- var DesignHeaderTemplate = TemplateHeader.bind({});
669
- exports.DesignHeaderTemplate = DesignHeaderTemplate;
670
- DesignHeaderTemplate.parameters = {
671
- controls: {
672
- disable: true
673
- }
674
- };