@allxsmith/bestax-bulma 1.0.9 → 1.0.10

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 (61) hide show
  1. package/dist/index.cjs.js +2002 -0
  2. package/dist/index.cjs.js.map +1 -0
  3. package/dist/index.esm.js +1904 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/types/columns/Column.d.ts +30 -0
  6. package/dist/types/columns/Columns.d.ts +23 -0
  7. package/dist/types/components/Breadcrumb.d.ts +17 -0
  8. package/dist/types/components/Card.d.ts +20 -0
  9. package/dist/types/components/Dropdown.d.ts +30 -0
  10. package/dist/types/components/Menu.d.ts +31 -0
  11. package/dist/types/components/Message.d.ts +13 -0
  12. package/dist/types/components/Modal.d.ts +15 -0
  13. package/dist/types/components/Navbar.d.ts +83 -0
  14. package/dist/types/components/Pagination.d.ts +49 -0
  15. package/dist/types/components/Panel.d.ts +55 -0
  16. package/dist/types/components/Tab.d.ts +30 -0
  17. package/dist/types/components/Tabs.d.ts +30 -0
  18. package/dist/types/elements/Block.d.ts +10 -0
  19. package/dist/types/elements/Box.d.ts +11 -0
  20. package/dist/types/elements/Button.d.ts +28 -0
  21. package/dist/types/elements/Buttons.d.ts +14 -0
  22. package/dist/types/elements/Content.d.ts +12 -0
  23. package/dist/types/elements/Delete.d.ts +14 -0
  24. package/dist/types/elements/Icon.d.ts +17 -0
  25. package/dist/types/elements/IconText.d.ts +18 -0
  26. package/dist/types/elements/Image.d.ts +17 -0
  27. package/dist/types/elements/Notification.d.ts +11 -0
  28. package/dist/types/elements/Progress.d.ts +11 -0
  29. package/dist/types/elements/SubTitle.d.ts +14 -0
  30. package/dist/types/elements/Table.d.ts +13 -0
  31. package/dist/types/elements/Tag.d.ts +18 -0
  32. package/dist/types/elements/Tags.d.ts +9 -0
  33. package/dist/types/elements/Tbody.d.ts +7 -0
  34. package/dist/types/elements/Td.d.ts +10 -0
  35. package/dist/types/elements/Tfoot.d.ts +7 -0
  36. package/dist/types/elements/Th.d.ts +14 -0
  37. package/dist/types/elements/Thead.d.ts +7 -0
  38. package/dist/types/elements/Title.d.ts +15 -0
  39. package/dist/types/elements/Tr.d.ts +10 -0
  40. package/dist/types/form/Checkbox.d.ts +9 -0
  41. package/dist/types/form/Checkboxes.d.ts +8 -0
  42. package/dist/types/form/Control.d.ts +31 -0
  43. package/dist/types/form/Field.d.ts +39 -0
  44. package/dist/types/form/File.d.ts +19 -0
  45. package/dist/types/form/Input.d.ts +16 -0
  46. package/dist/types/form/Radio.d.ts +9 -0
  47. package/dist/types/form/Radios.d.ts +8 -0
  48. package/dist/types/form/Select.d.ts +16 -0
  49. package/dist/types/form/TextArea.d.ts +19 -0
  50. package/dist/types/grid/Cell.d.ts +17 -0
  51. package/dist/types/grid/Grid.d.ts +25 -0
  52. package/dist/types/helpers/classNames.d.ts +2 -0
  53. package/dist/types/helpers/useBulmaClasses.d.ts +64 -0
  54. package/dist/types/index.d.ts +54 -0
  55. package/dist/types/layout/Container.d.ts +17 -0
  56. package/dist/types/layout/Footer.d.ts +12 -0
  57. package/dist/types/layout/Hero.d.ts +41 -0
  58. package/dist/types/layout/Level.d.ts +45 -0
  59. package/dist/types/layout/Media.d.ts +41 -0
  60. package/dist/types/layout/Section.d.ts +13 -0
  61. package/package.json +1 -1
@@ -0,0 +1,2002 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ var jsxRuntime = {exports: {}};
6
+
7
+ var reactJsxRuntime_production = {};
8
+
9
+ /**
10
+ * @license React
11
+ * react-jsx-runtime.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
18
+
19
+ var hasRequiredReactJsxRuntime_production;
20
+
21
+ function requireReactJsxRuntime_production () {
22
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
23
+ hasRequiredReactJsxRuntime_production = 1;
24
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
25
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
26
+ function jsxProd(type, config, maybeKey) {
27
+ var key = null;
28
+ void 0 !== maybeKey && (key = "" + maybeKey);
29
+ void 0 !== config.key && (key = "" + config.key);
30
+ if ("key" in config) {
31
+ maybeKey = {};
32
+ for (var propName in config)
33
+ "key" !== propName && (maybeKey[propName] = config[propName]);
34
+ } else maybeKey = config;
35
+ config = maybeKey.ref;
36
+ return {
37
+ $$typeof: REACT_ELEMENT_TYPE,
38
+ type: type,
39
+ key: key,
40
+ ref: void 0 !== config ? config : null,
41
+ props: maybeKey
42
+ };
43
+ }
44
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
45
+ reactJsxRuntime_production.jsx = jsxProd;
46
+ reactJsxRuntime_production.jsxs = jsxProd;
47
+ return reactJsxRuntime_production;
48
+ }
49
+
50
+ var reactJsxRuntime_development = {};
51
+
52
+ /**
53
+ * @license React
54
+ * react-jsx-runtime.development.js
55
+ *
56
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE file in the root directory of this source tree.
60
+ */
61
+
62
+ var hasRequiredReactJsxRuntime_development;
63
+
64
+ function requireReactJsxRuntime_development () {
65
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
66
+ hasRequiredReactJsxRuntime_development = 1;
67
+ "production" !== process.env.NODE_ENV &&
68
+ (function () {
69
+ function getComponentNameFromType(type) {
70
+ if (null == type) return null;
71
+ if ("function" === typeof type)
72
+ return type.$$typeof === REACT_CLIENT_REFERENCE
73
+ ? null
74
+ : type.displayName || type.name || null;
75
+ if ("string" === typeof type) return type;
76
+ switch (type) {
77
+ case REACT_FRAGMENT_TYPE:
78
+ return "Fragment";
79
+ case REACT_PROFILER_TYPE:
80
+ return "Profiler";
81
+ case REACT_STRICT_MODE_TYPE:
82
+ return "StrictMode";
83
+ case REACT_SUSPENSE_TYPE:
84
+ return "Suspense";
85
+ case REACT_SUSPENSE_LIST_TYPE:
86
+ return "SuspenseList";
87
+ case REACT_ACTIVITY_TYPE:
88
+ return "Activity";
89
+ }
90
+ if ("object" === typeof type)
91
+ switch (
92
+ ("number" === typeof type.tag &&
93
+ console.error(
94
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
95
+ ),
96
+ type.$$typeof)
97
+ ) {
98
+ case REACT_PORTAL_TYPE:
99
+ return "Portal";
100
+ case REACT_CONTEXT_TYPE:
101
+ return (type.displayName || "Context") + ".Provider";
102
+ case REACT_CONSUMER_TYPE:
103
+ return (type._context.displayName || "Context") + ".Consumer";
104
+ case REACT_FORWARD_REF_TYPE:
105
+ var innerType = type.render;
106
+ type = type.displayName;
107
+ type ||
108
+ ((type = innerType.displayName || innerType.name || ""),
109
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
110
+ return type;
111
+ case REACT_MEMO_TYPE:
112
+ return (
113
+ (innerType = type.displayName || null),
114
+ null !== innerType
115
+ ? innerType
116
+ : getComponentNameFromType(type.type) || "Memo"
117
+ );
118
+ case REACT_LAZY_TYPE:
119
+ innerType = type._payload;
120
+ type = type._init;
121
+ try {
122
+ return getComponentNameFromType(type(innerType));
123
+ } catch (x) {}
124
+ }
125
+ return null;
126
+ }
127
+ function testStringCoercion(value) {
128
+ return "" + value;
129
+ }
130
+ function checkKeyStringCoercion(value) {
131
+ try {
132
+ testStringCoercion(value);
133
+ var JSCompiler_inline_result = !1;
134
+ } catch (e) {
135
+ JSCompiler_inline_result = true;
136
+ }
137
+ if (JSCompiler_inline_result) {
138
+ JSCompiler_inline_result = console;
139
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
140
+ var JSCompiler_inline_result$jscomp$0 =
141
+ ("function" === typeof Symbol &&
142
+ Symbol.toStringTag &&
143
+ value[Symbol.toStringTag]) ||
144
+ value.constructor.name ||
145
+ "Object";
146
+ JSCompiler_temp_const.call(
147
+ JSCompiler_inline_result,
148
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
149
+ JSCompiler_inline_result$jscomp$0
150
+ );
151
+ return testStringCoercion(value);
152
+ }
153
+ }
154
+ function getTaskName(type) {
155
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
156
+ if (
157
+ "object" === typeof type &&
158
+ null !== type &&
159
+ type.$$typeof === REACT_LAZY_TYPE
160
+ )
161
+ return "<...>";
162
+ try {
163
+ var name = getComponentNameFromType(type);
164
+ return name ? "<" + name + ">" : "<...>";
165
+ } catch (x) {
166
+ return "<...>";
167
+ }
168
+ }
169
+ function getOwner() {
170
+ var dispatcher = ReactSharedInternals.A;
171
+ return null === dispatcher ? null : dispatcher.getOwner();
172
+ }
173
+ function UnknownOwner() {
174
+ return Error("react-stack-top-frame");
175
+ }
176
+ function hasValidKey(config) {
177
+ if (hasOwnProperty.call(config, "key")) {
178
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
179
+ if (getter && getter.isReactWarning) return false;
180
+ }
181
+ return void 0 !== config.key;
182
+ }
183
+ function defineKeyPropWarningGetter(props, displayName) {
184
+ function warnAboutAccessingKey() {
185
+ specialPropKeyWarningShown ||
186
+ ((specialPropKeyWarningShown = true),
187
+ console.error(
188
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
189
+ displayName
190
+ ));
191
+ }
192
+ warnAboutAccessingKey.isReactWarning = true;
193
+ Object.defineProperty(props, "key", {
194
+ get: warnAboutAccessingKey,
195
+ configurable: true
196
+ });
197
+ }
198
+ function elementRefGetterWithDeprecationWarning() {
199
+ var componentName = getComponentNameFromType(this.type);
200
+ didWarnAboutElementRef[componentName] ||
201
+ ((didWarnAboutElementRef[componentName] = true),
202
+ console.error(
203
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
204
+ ));
205
+ componentName = this.props.ref;
206
+ return void 0 !== componentName ? componentName : null;
207
+ }
208
+ function ReactElement(
209
+ type,
210
+ key,
211
+ self,
212
+ source,
213
+ owner,
214
+ props,
215
+ debugStack,
216
+ debugTask
217
+ ) {
218
+ self = props.ref;
219
+ type = {
220
+ $$typeof: REACT_ELEMENT_TYPE,
221
+ type: type,
222
+ key: key,
223
+ props: props,
224
+ _owner: owner
225
+ };
226
+ null !== (void 0 !== self ? self : null)
227
+ ? Object.defineProperty(type, "ref", {
228
+ enumerable: false,
229
+ get: elementRefGetterWithDeprecationWarning
230
+ })
231
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
232
+ type._store = {};
233
+ Object.defineProperty(type._store, "validated", {
234
+ configurable: false,
235
+ enumerable: false,
236
+ writable: true,
237
+ value: 0
238
+ });
239
+ Object.defineProperty(type, "_debugInfo", {
240
+ configurable: false,
241
+ enumerable: false,
242
+ writable: true,
243
+ value: null
244
+ });
245
+ Object.defineProperty(type, "_debugStack", {
246
+ configurable: false,
247
+ enumerable: false,
248
+ writable: true,
249
+ value: debugStack
250
+ });
251
+ Object.defineProperty(type, "_debugTask", {
252
+ configurable: false,
253
+ enumerable: false,
254
+ writable: true,
255
+ value: debugTask
256
+ });
257
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
258
+ return type;
259
+ }
260
+ function jsxDEVImpl(
261
+ type,
262
+ config,
263
+ maybeKey,
264
+ isStaticChildren,
265
+ source,
266
+ self,
267
+ debugStack,
268
+ debugTask
269
+ ) {
270
+ var children = config.children;
271
+ if (void 0 !== children)
272
+ if (isStaticChildren)
273
+ if (isArrayImpl(children)) {
274
+ for (
275
+ isStaticChildren = 0;
276
+ isStaticChildren < children.length;
277
+ isStaticChildren++
278
+ )
279
+ validateChildKeys(children[isStaticChildren]);
280
+ Object.freeze && Object.freeze(children);
281
+ } else
282
+ console.error(
283
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
284
+ );
285
+ else validateChildKeys(children);
286
+ if (hasOwnProperty.call(config, "key")) {
287
+ children = getComponentNameFromType(type);
288
+ var keys = Object.keys(config).filter(function (k) {
289
+ return "key" !== k;
290
+ });
291
+ isStaticChildren =
292
+ 0 < keys.length
293
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
294
+ : "{key: someKey}";
295
+ didWarnAboutKeySpread[children + isStaticChildren] ||
296
+ ((keys =
297
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
298
+ console.error(
299
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
300
+ isStaticChildren,
301
+ children,
302
+ keys,
303
+ children
304
+ ),
305
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
306
+ }
307
+ children = null;
308
+ void 0 !== maybeKey &&
309
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
310
+ hasValidKey(config) &&
311
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
312
+ if ("key" in config) {
313
+ maybeKey = {};
314
+ for (var propName in config)
315
+ "key" !== propName && (maybeKey[propName] = config[propName]);
316
+ } else maybeKey = config;
317
+ children &&
318
+ defineKeyPropWarningGetter(
319
+ maybeKey,
320
+ "function" === typeof type
321
+ ? type.displayName || type.name || "Unknown"
322
+ : type
323
+ );
324
+ return ReactElement(
325
+ type,
326
+ children,
327
+ self,
328
+ source,
329
+ getOwner(),
330
+ maybeKey,
331
+ debugStack,
332
+ debugTask
333
+ );
334
+ }
335
+ function validateChildKeys(node) {
336
+ "object" === typeof node &&
337
+ null !== node &&
338
+ node.$$typeof === REACT_ELEMENT_TYPE &&
339
+ node._store &&
340
+ (node._store.validated = 1);
341
+ }
342
+ var React$1 = React,
343
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
344
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
345
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
346
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
347
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
348
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
349
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
350
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
351
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
352
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
353
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
354
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
355
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
356
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
357
+ ReactSharedInternals =
358
+ React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
359
+ hasOwnProperty = Object.prototype.hasOwnProperty,
360
+ isArrayImpl = Array.isArray,
361
+ createTask = console.createTask
362
+ ? console.createTask
363
+ : function () {
364
+ return null;
365
+ };
366
+ React$1 = {
367
+ "react-stack-bottom-frame": function (callStackForError) {
368
+ return callStackForError();
369
+ }
370
+ };
371
+ var specialPropKeyWarningShown;
372
+ var didWarnAboutElementRef = {};
373
+ var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
374
+ React$1,
375
+ UnknownOwner
376
+ )();
377
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
378
+ var didWarnAboutKeySpread = {};
379
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
380
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
381
+ var trackActualOwner =
382
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
383
+ return jsxDEVImpl(
384
+ type,
385
+ config,
386
+ maybeKey,
387
+ false,
388
+ source,
389
+ self,
390
+ trackActualOwner
391
+ ? Error("react-stack-top-frame")
392
+ : unknownOwnerDebugStack,
393
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
394
+ );
395
+ };
396
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
397
+ var trackActualOwner =
398
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
399
+ return jsxDEVImpl(
400
+ type,
401
+ config,
402
+ maybeKey,
403
+ true,
404
+ source,
405
+ self,
406
+ trackActualOwner
407
+ ? Error("react-stack-top-frame")
408
+ : unknownOwnerDebugStack,
409
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
410
+ );
411
+ };
412
+ })();
413
+ return reactJsxRuntime_development;
414
+ }
415
+
416
+ var hasRequiredJsxRuntime;
417
+
418
+ function requireJsxRuntime () {
419
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
420
+ hasRequiredJsxRuntime = 1;
421
+
422
+ if (process.env.NODE_ENV === 'production') {
423
+ jsxRuntime.exports = requireReactJsxRuntime_production();
424
+ } else {
425
+ jsxRuntime.exports = requireReactJsxRuntime_development();
426
+ }
427
+ return jsxRuntime.exports;
428
+ }
429
+
430
+ var jsxRuntimeExports = requireJsxRuntime();
431
+
432
+ function classNames(...args) {
433
+ const classSet = new Set();
434
+ function process(item) {
435
+ if (item === undefined || item === null || item === false || item === '') {
436
+ return;
437
+ }
438
+ if (typeof item === 'string' || typeof item === 'number') {
439
+ for (const cls of String(item).split(/\s+/)) {
440
+ if (cls)
441
+ classSet.add(cls);
442
+ }
443
+ }
444
+ else if (Array.isArray(item)) {
445
+ for (const sub of item)
446
+ process(sub);
447
+ }
448
+ else if (typeof item === 'object') {
449
+ for (const key in item) {
450
+ if (Object.prototype.hasOwnProperty.call(item, key) && item[key]) {
451
+ for (const cls of key.split(/\s+/)) {
452
+ if (cls)
453
+ classSet.add(cls);
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+ for (const arg of args) {
460
+ process(arg);
461
+ }
462
+ return Array.from(classSet).join(' ');
463
+ }
464
+
465
+ const validColors = [
466
+ 'primary',
467
+ 'link',
468
+ 'info',
469
+ 'success',
470
+ 'warning',
471
+ 'danger',
472
+ 'black',
473
+ 'black-bis',
474
+ 'black-ter',
475
+ 'grey-darker',
476
+ 'grey-dark',
477
+ 'grey',
478
+ 'grey-light',
479
+ 'grey-lighter',
480
+ 'white',
481
+ 'light',
482
+ 'dark',
483
+ ];
484
+ const validColorShades = [
485
+ '00',
486
+ '05',
487
+ '10',
488
+ '15',
489
+ '20',
490
+ '25',
491
+ '30',
492
+ '35',
493
+ '40',
494
+ '45',
495
+ '50',
496
+ '55',
497
+ '60',
498
+ '65',
499
+ '70',
500
+ '75',
501
+ '80',
502
+ '85',
503
+ '90',
504
+ '95',
505
+ 'invert',
506
+ ];
507
+ const validSizes$1 = ['0', '1', '2', '3', '4', '5', '6', 'auto'];
508
+ const validTextSizes = ['1', '2', '3', '4', '5', '6', '7'];
509
+ const validAlignments$1 = [
510
+ 'centered',
511
+ 'justified',
512
+ 'left',
513
+ 'right',
514
+ ];
515
+ const validTextTransforms = [
516
+ 'capitalized',
517
+ 'lowercase',
518
+ 'uppercase',
519
+ 'italic',
520
+ ];
521
+ const validTextWeights = [
522
+ 'light',
523
+ 'normal',
524
+ 'medium',
525
+ 'semibold',
526
+ 'bold',
527
+ ];
528
+ const validFontFamilies = [
529
+ 'sans-serif',
530
+ 'monospace',
531
+ 'primary',
532
+ 'secondary',
533
+ 'code',
534
+ ];
535
+ const validDisplays = [
536
+ 'block',
537
+ 'flex',
538
+ 'inline',
539
+ 'inline-block',
540
+ 'inline-flex',
541
+ ];
542
+ const validVisibilities = ['hidden', 'sr-only'];
543
+ const validFlexDirections = [
544
+ 'row',
545
+ 'row-reverse',
546
+ 'column',
547
+ 'column-reverse',
548
+ ];
549
+ const validFlexWraps = ['nowrap', 'wrap', 'wrap-reverse'];
550
+ const validJustifyContents = [
551
+ 'flex-start',
552
+ 'flex-end',
553
+ 'center',
554
+ 'space-between',
555
+ 'space-around',
556
+ 'space-evenly',
557
+ 'start',
558
+ 'end',
559
+ 'left',
560
+ 'right',
561
+ ];
562
+ const validAlignContents = [
563
+ 'flex-start',
564
+ 'flex-end',
565
+ 'center',
566
+ 'space-between',
567
+ 'space-around',
568
+ 'space-evenly',
569
+ 'stretch',
570
+ ];
571
+ const validAlignItems = [
572
+ 'stretch',
573
+ 'flex-start',
574
+ 'flex-end',
575
+ 'center',
576
+ 'baseline',
577
+ 'start',
578
+ 'end',
579
+ ];
580
+ const validAlignSelfs = [
581
+ 'auto',
582
+ 'flex-start',
583
+ 'flex-end',
584
+ 'center',
585
+ 'baseline',
586
+ 'stretch',
587
+ ];
588
+ const validFlexGrowShrink = ['0', '1'];
589
+ const validViewports = [
590
+ 'mobile',
591
+ 'tablet',
592
+ 'desktop',
593
+ 'widescreen',
594
+ 'fullhd',
595
+ ];
596
+ const useBulmaClasses = (props) => {
597
+ const { color, backgroundColor, colorShade, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, textSize, textAlign, textTransform, textWeight, fontFamily, display, visibility, flexDirection, flexWrap, justifyContent, alignContent, alignItems, alignSelf, flexGrow, flexShrink, float, overflow, overlay, interaction, radius, shadow, responsive, viewport, ...rest } = props;
598
+ const bulmaHelperClasses = React.useMemo(() => {
599
+ const classes = [];
600
+ const addClass = (prefix, value, validValues) => {
601
+ if (value && (!validValues.length || validValues.includes(value))) {
602
+ const className = viewport && validViewports.includes(viewport)
603
+ ? `${prefix}-${value}-${viewport}`
604
+ : `${prefix}-${value}`;
605
+ classes.push(className);
606
+ }
607
+ };
608
+ const addColorClass = (prefix, value, shade) => {
609
+ if (!value || ![...validColors, 'inherit', 'current'].includes(value))
610
+ return;
611
+ if (shade && validColorShades.includes(shade)) {
612
+ const className = prefix === 'has-text' && viewport && validViewports.includes(viewport)
613
+ ? `${prefix}-${value}-${shade}-${viewport}`
614
+ : `${prefix}-${value}-${shade}`;
615
+ classes.push(className);
616
+ }
617
+ else {
618
+ addClass(prefix, value, [...validColors, 'inherit', 'current']);
619
+ }
620
+ };
621
+ addColorClass('has-text', color, colorShade);
622
+ addColorClass('has-background', backgroundColor, colorShade);
623
+ addClass('m', m, validSizes$1);
624
+ addClass('mt', mt, validSizes$1);
625
+ addClass('mr', mr, validSizes$1);
626
+ addClass('mb', mb, validSizes$1);
627
+ addClass('ml', ml, validSizes$1);
628
+ addClass('mx', mx, validSizes$1);
629
+ addClass('my', my, validSizes$1);
630
+ addClass('p', p, validSizes$1);
631
+ addClass('pt', pt, validSizes$1);
632
+ addClass('pr', pr, validSizes$1);
633
+ addClass('pb', pb, validSizes$1);
634
+ addClass('pl', pl, validSizes$1);
635
+ addClass('px', px, validSizes$1);
636
+ addClass('py', py, validSizes$1);
637
+ addClass('is-size', textSize, validTextSizes);
638
+ addClass('has-text', textAlign, validAlignments$1);
639
+ addClass('is', textTransform, validTextTransforms);
640
+ addClass('has-text-weight', textWeight, validTextWeights);
641
+ addClass('is-family', fontFamily, validFontFamilies);
642
+ addClass('is', display, validDisplays);
643
+ if (visibility) {
644
+ if (visibility === 'hidden' &&
645
+ viewport &&
646
+ validViewports.includes(viewport)) {
647
+ classes.push(`is-hidden-${viewport}`);
648
+ }
649
+ else if (validVisibilities.includes(visibility)) {
650
+ classes.push(`is-${visibility}`);
651
+ }
652
+ }
653
+ if (display === 'flex' || display === 'inline-flex') {
654
+ addClass('is-flex-direction', flexDirection, validFlexDirections);
655
+ addClass('is-flex-wrap', flexWrap, validFlexWraps);
656
+ addClass('is-justify-content', justifyContent, validJustifyContents);
657
+ addClass('is-align-content', alignContent, validAlignContents);
658
+ addClass('is-align-items', alignItems, validAlignItems);
659
+ addClass('is-align-self', alignSelf, validAlignSelfs);
660
+ addClass('is-flex-grow', flexGrow, validFlexGrowShrink);
661
+ addClass('is-flex-shrink', flexShrink, validFlexGrowShrink);
662
+ }
663
+ if (float) {
664
+ addClass('is-pulled', float, ['left', 'right']);
665
+ }
666
+ if (overflow) {
667
+ addClass('is', overflow, ['clipped']);
668
+ }
669
+ if (overlay) {
670
+ classes.push('is-overlay');
671
+ }
672
+ if (interaction) {
673
+ addClass('is', interaction, ['unselectable', 'clickable']);
674
+ }
675
+ if (radius) {
676
+ addClass('is', radius, ['radiusless']);
677
+ }
678
+ if (shadow) {
679
+ addClass('is', shadow, ['shadowless']);
680
+ }
681
+ if (responsive) {
682
+ addClass('is', responsive, ['mobile', 'narrow']);
683
+ }
684
+ return classNames(classes);
685
+ }, [
686
+ color,
687
+ backgroundColor,
688
+ colorShade,
689
+ m,
690
+ mt,
691
+ mr,
692
+ mb,
693
+ ml,
694
+ mx,
695
+ my,
696
+ p,
697
+ pt,
698
+ pr,
699
+ pb,
700
+ pl,
701
+ px,
702
+ py,
703
+ textSize,
704
+ textAlign,
705
+ textTransform,
706
+ textWeight,
707
+ fontFamily,
708
+ display,
709
+ visibility,
710
+ flexDirection,
711
+ flexWrap,
712
+ justifyContent,
713
+ alignContent,
714
+ alignItems,
715
+ alignSelf,
716
+ flexGrow,
717
+ flexShrink,
718
+ float,
719
+ overflow,
720
+ overlay,
721
+ interaction,
722
+ radius,
723
+ shadow,
724
+ responsive,
725
+ viewport,
726
+ ]);
727
+ return { bulmaHelperClasses, rest };
728
+ };
729
+
730
+ function getColumnClassNames(props) {
731
+ const classList = [];
732
+ const sizeProps = [
733
+ { prop: 'size', prefix: 'is', suffix: '' },
734
+ { prop: 'sizeMobile', prefix: 'is', suffix: 'mobile' },
735
+ { prop: 'sizeTablet', prefix: 'is', suffix: 'tablet' },
736
+ { prop: 'sizeDesktop', prefix: 'is', suffix: 'desktop' },
737
+ { prop: 'sizeWidescreen', prefix: 'is', suffix: 'widescreen' },
738
+ { prop: 'sizeFullhd', prefix: 'is', suffix: 'fullhd' },
739
+ ];
740
+ for (const { prop, prefix, suffix } of sizeProps) {
741
+ const val = props[prop];
742
+ if (val !== undefined && val !== null) {
743
+ let className = `${prefix}-${val}`;
744
+ if (suffix)
745
+ className += `-${suffix}`;
746
+ classList.push(className);
747
+ }
748
+ }
749
+ const offsetProps = [
750
+ { prop: 'offset', prefix: 'is-offset', suffix: '' },
751
+ { prop: 'offsetMobile', prefix: 'is-offset', suffix: 'mobile' },
752
+ { prop: 'offsetTablet', prefix: 'is-offset', suffix: 'tablet' },
753
+ { prop: 'offsetDesktop', prefix: 'is-offset', suffix: 'desktop' },
754
+ { prop: 'offsetWidescreen', prefix: 'is-offset', suffix: 'widescreen' },
755
+ { prop: 'offsetFullhd', prefix: 'is-offset', suffix: 'fullhd' },
756
+ ];
757
+ for (const { prop, prefix, suffix } of offsetProps) {
758
+ const val = props[prop];
759
+ if (val !== undefined && val !== null) {
760
+ let className = `${prefix}-${val}`;
761
+ if (suffix)
762
+ className += `-${suffix}`;
763
+ classList.push(className);
764
+ }
765
+ }
766
+ if (props.isNarrow)
767
+ classList.push('is-narrow');
768
+ if (props.isNarrowMobile)
769
+ classList.push('is-narrow-mobile');
770
+ if (props.isNarrowTablet)
771
+ classList.push('is-narrow-tablet');
772
+ if (props.isNarrowTouch)
773
+ classList.push('is-narrow-touch');
774
+ if (props.isNarrowDesktop)
775
+ classList.push('is-narrow-desktop');
776
+ if (props.isNarrowWidescreen)
777
+ classList.push('is-narrow-widescreen');
778
+ if (props.isNarrowFullhd)
779
+ classList.push('is-narrow-fullhd');
780
+ return classList;
781
+ }
782
+ const Column = ({ className, textColor, bgColor, size, sizeMobile, sizeTablet, sizeDesktop, sizeWidescreen, sizeFullhd, offset, offsetMobile, offsetTablet, offsetDesktop, offsetWidescreen, offsetFullhd, isNarrow, isNarrowMobile, isNarrowTablet, isNarrowTouch, isNarrowDesktop, isNarrowWidescreen, isNarrowFullhd, children, ...props }) => {
783
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
784
+ color: textColor,
785
+ backgroundColor: bgColor,
786
+ ...props,
787
+ });
788
+ const columnClasses = classNames('column', ...getColumnClassNames({
789
+ size,
790
+ sizeMobile,
791
+ sizeTablet,
792
+ sizeDesktop,
793
+ sizeWidescreen,
794
+ sizeFullhd,
795
+ offset,
796
+ offsetMobile,
797
+ offsetTablet,
798
+ offsetDesktop,
799
+ offsetWidescreen,
800
+ offsetFullhd,
801
+ isNarrow,
802
+ isNarrowMobile,
803
+ isNarrowTablet,
804
+ isNarrowTouch,
805
+ isNarrowDesktop,
806
+ isNarrowWidescreen,
807
+ isNarrowFullhd,
808
+ }), className, bulmaHelperClasses);
809
+ return (jsxRuntimeExports.jsx("div", { className: columnClasses, ...rest, children: children }));
810
+ };
811
+
812
+ function getGapClasses(props) {
813
+ const gapClassMap = [
814
+ { prop: 'gapSize', prefix: 'is' },
815
+ { prop: 'gapSizeMobile', prefix: 'is', suffix: 'mobile' },
816
+ { prop: 'gapSizeTablet', prefix: 'is', suffix: 'tablet' },
817
+ { prop: 'gapSizeDesktop', prefix: 'is', suffix: 'desktop' },
818
+ { prop: 'gapSizeWidescreen', prefix: 'is', suffix: 'widescreen' },
819
+ { prop: 'gapSizeFullhd', prefix: 'is', suffix: 'fullhd' },
820
+ ];
821
+ return gapClassMap.flatMap(({ prop, prefix, suffix }) => {
822
+ const val = props[prop];
823
+ if (val !== undefined && val !== null) {
824
+ let className = `${prefix}-${val}`;
825
+ if (suffix)
826
+ className += `-${suffix}`;
827
+ return [className];
828
+ }
829
+ return [];
830
+ });
831
+ }
832
+ const Columns = ({ className, textColor, bgColor, isCentered, isGapless, isMultiline, isVCentered, isMobile, isDesktop, gapSize, gapSizeMobile, gapSizeTablet, gapSizeDesktop, gapSizeWidescreen, gapSizeFullhd, children, ...props }) => {
833
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
834
+ color: textColor,
835
+ backgroundColor: bgColor,
836
+ ...props,
837
+ });
838
+ const columnsClasses = classNames('columns', {
839
+ 'is-centered': isCentered,
840
+ 'is-gapless': isGapless,
841
+ 'is-multiline': isMultiline,
842
+ 'is-vcentered': isVCentered,
843
+ 'is-mobile': isMobile,
844
+ 'is-desktop': isDesktop,
845
+ }, ...getGapClasses({
846
+ gapSize,
847
+ gapSizeMobile,
848
+ gapSizeTablet,
849
+ gapSizeDesktop,
850
+ gapSizeWidescreen,
851
+ gapSizeFullhd,
852
+ }), className, bulmaHelperClasses);
853
+ return (jsxRuntimeExports.jsx("div", { className: columnsClasses, ...rest, children: children }));
854
+ };
855
+
856
+ const validBreadcrumbAlignments = ['centered', 'right'];
857
+ const validBreadcrumbSeparators = [
858
+ 'arrow',
859
+ 'bullet',
860
+ 'dot',
861
+ 'succeeds',
862
+ ];
863
+ const validBreadcrumbSizes = ['small', 'medium', 'large'];
864
+ const Breadcrumb = ({ className, alignment, separator, size, children, ...props }) => {
865
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
866
+ const breadcrumbClasses = classNames('breadcrumb', className, bulmaHelperClasses, {
867
+ [`is-${alignment}`]: alignment && validBreadcrumbAlignments.includes(alignment),
868
+ [`has-${separator}-separator`]: separator && validBreadcrumbSeparators.includes(separator),
869
+ [`is-${size}`]: size && validBreadcrumbSizes.includes(size),
870
+ });
871
+ return (jsxRuntimeExports.jsx("nav", { className: breadcrumbClasses, "aria-label": "breadcrumbs", ...rest, children: jsxRuntimeExports.jsx("ul", { children: children }) }));
872
+ };
873
+
874
+ const renderFooter = (footer) => {
875
+ if (!footer)
876
+ return null;
877
+ const items = Array.isArray(footer) ? footer : [footer];
878
+ return items.map((item, idx) => (jsxRuntimeExports.jsx("span", { className: "card-footer-item", children: item }, idx)));
879
+ };
880
+ const Card = ({ className, children, textColor, bgColor, hasShadow = true, header, headerCentered, headerIcon, footer, image, imageAlt, ...props }) => {
881
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
882
+ color: textColor,
883
+ backgroundColor: bgColor,
884
+ ...props,
885
+ });
886
+ const cardClasses = classNames('card', className, bulmaHelperClasses, {
887
+ 'is-shadowless': !hasShadow,
888
+ });
889
+ const renderHeader = (header, headerIcon, headerCentered) => {
890
+ if (!header && !headerIcon)
891
+ return null;
892
+ return (jsxRuntimeExports.jsxs("header", { className: "card-header", children: [header && (jsxRuntimeExports.jsx("div", { className: classNames('card-header-title', {
893
+ 'is-centered': headerCentered,
894
+ }), children: header })), headerIcon] }));
895
+ };
896
+ return (jsxRuntimeExports.jsxs("div", { className: cardClasses, ...rest, children: [renderHeader(header, headerIcon, headerCentered), image && (jsxRuntimeExports.jsx("div", { className: "card-image", children: typeof image === 'string' ? (jsxRuntimeExports.jsx("figure", { className: "image", children: jsxRuntimeExports.jsx("img", { src: image, alt: imageAlt !== null && imageAlt !== void 0 ? imageAlt : 'Card image' }) })) : (image) })), typeof children !== 'undefined' &&
897
+ children !== null &&
898
+ children !== '' && jsxRuntimeExports.jsx("div", { className: "card-content", children: children }), footer && (jsxRuntimeExports.jsx("footer", { className: "card-footer", children: renderFooter(footer) }))] }));
899
+ };
900
+ const __test_exports__ = { renderFooter };
901
+
902
+ const isBrowser = (win, doc) => typeof win !== 'undefined' && typeof doc !== 'undefined';
903
+ const DropdownComponent = ({ label, children, className, menuClassName, active: activeProp, up, right, hoverable, disabled, onActiveChange, closeOnClick = true, id, ...props }) => {
904
+ const [active, setActive] = React.useState(!!activeProp);
905
+ const dropdownRef = React.useRef(null);
906
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
907
+ React.useEffect(() => {
908
+ if (typeof activeProp === 'boolean')
909
+ setActive(activeProp);
910
+ }, [activeProp]);
911
+ React.useEffect(() => {
912
+ if (!active)
913
+ return;
914
+ if (!isBrowser(window, document))
915
+ return;
916
+ const handleClick = (e) => {
917
+ var _a;
918
+ if (!((_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
919
+ setActive(false);
920
+ onActiveChange === null || onActiveChange === void 0 ? void 0 : onActiveChange(false);
921
+ }
922
+ };
923
+ document.addEventListener('mousedown', handleClick);
924
+ return () => document.removeEventListener('mousedown', handleClick);
925
+ }, [active, onActiveChange]);
926
+ const handleToggle = () => {
927
+ if (disabled)
928
+ return;
929
+ const newActive = !active;
930
+ setActive(newActive);
931
+ onActiveChange === null || onActiveChange === void 0 ? void 0 : onActiveChange(newActive);
932
+ };
933
+ const handleMenuClick = () => {
934
+ if (closeOnClick) {
935
+ setActive(false);
936
+ onActiveChange === null || onActiveChange === void 0 ? void 0 : onActiveChange(false);
937
+ }
938
+ };
939
+ const dropdownClasses = classNames('dropdown', bulmaHelperClasses, {
940
+ 'is-active': active,
941
+ 'is-up': up,
942
+ 'is-right': right,
943
+ 'is-hoverable': hoverable,
944
+ 'is-disabled': disabled,
945
+ }, className);
946
+ return (jsxRuntimeExports.jsxs("div", { className: dropdownClasses, ref: dropdownRef, id: id, "data-testid": "dropdown-root", ...rest, children: [jsxRuntimeExports.jsx("div", { className: "dropdown-trigger", children: jsxRuntimeExports.jsxs("button", { className: "button", "aria-haspopup": "true", "aria-controls": id ? `${id}-menu` : undefined, "aria-expanded": active, onClick: handleToggle, disabled: disabled, type: "button", children: [jsxRuntimeExports.jsx("span", { children: label }), jsxRuntimeExports.jsx("span", { className: "icon is-small", "aria-hidden": "true", children: jsxRuntimeExports.jsx("i", { className: "fas fa-angle-down" }) })] }) }), jsxRuntimeExports.jsx("div", { className: classNames('dropdown-menu', menuClassName), id: id ? `${id}-menu` : undefined, role: "menu", "data-testid": "dropdown-menu", children: jsxRuntimeExports.jsx("div", { className: "dropdown-content", onClick: handleMenuClick, tabIndex: -1, children: children }) })] }));
947
+ };
948
+ const DropdownItem = ({ children, active, className, as: Component = 'a', ...props }) => {
949
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
950
+ return (jsxRuntimeExports.jsx(Component, { className: classNames('dropdown-item', bulmaHelperClasses, { 'is-active': active }, className), tabIndex: 0, role: "menuitem", "data-testid": "dropdown-item", ...rest, children: children }));
951
+ };
952
+ const DropdownDivider = () => (jsxRuntimeExports.jsx("hr", { className: "dropdown-divider" }));
953
+ const Dropdown = Object.assign(DropdownComponent, {
954
+ Item: DropdownItem,
955
+ Divider: DropdownDivider,
956
+ });
957
+
958
+ const MenuListLevelContext = React.createContext(0);
959
+ const MenuComponent = ({ className, children, ...props }) => {
960
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
961
+ return (jsxRuntimeExports.jsx("aside", { className: classNames('menu', className, bulmaHelperClasses), ...rest, children: children }));
962
+ };
963
+ const MenuLabel = ({ className, children, ...props }) => {
964
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
965
+ return (jsxRuntimeExports.jsx("p", { className: classNames('menu-label', className, bulmaHelperClasses), ...rest, children: children }));
966
+ };
967
+ const MenuList = ({ className, children, ...props }) => {
968
+ const level = React.useContext(MenuListLevelContext);
969
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
970
+ const ulClass = classNames(className, bulmaHelperClasses, {
971
+ 'menu-list': level === 0,
972
+ });
973
+ return (jsxRuntimeExports.jsx(MenuListLevelContext.Provider, { value: level + 1, children: jsxRuntimeExports.jsx("ul", { className: ulClass, ...rest, children: children }) }));
974
+ };
975
+ const MenuItem = ({ className, children, active, href, as: Component = 'a', 'data-testid': testId, ...rest }) => {
976
+ const { bulmaHelperClasses, rest: bulmaRest } = useBulmaClasses(rest);
977
+ const itemClass = classNames({ 'is-active': active }, bulmaHelperClasses);
978
+ const { style, id, title, role, tabIndex, ...linkProps } = bulmaRest;
979
+ const labelChildren = [];
980
+ const nestedMenuLists = [];
981
+ React.Children.forEach(children, child => {
982
+ if (React.isValidElement(child) && child.type === MenuList) {
983
+ nestedMenuLists.push(child);
984
+ }
985
+ else {
986
+ labelChildren.push(child);
987
+ }
988
+ });
989
+ if (Component === 'a' && href) {
990
+ linkProps.href = href;
991
+ }
992
+ if (Object.prototype.hasOwnProperty.call(rest, 'to')) {
993
+ linkProps.to = rest.to;
994
+ }
995
+ return (jsxRuntimeExports.jsxs("li", { className: className, "data-testid": testId, style: style, id: id, title: title, role: role, tabIndex: tabIndex, children: [jsxRuntimeExports.jsx(Component, { className: itemClass, ...linkProps, children: labelChildren }), nestedMenuLists] }));
996
+ };
997
+ const Menu = Object.assign(MenuComponent, {
998
+ Label: MenuLabel,
999
+ List: MenuList,
1000
+ Item: MenuItem,
1001
+ });
1002
+
1003
+ const Message = ({ className, title, textColor, color, bgColor, onClose, children, ...props }) => {
1004
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1005
+ color: textColor,
1006
+ backgroundColor: bgColor,
1007
+ ...props,
1008
+ });
1009
+ const messageClasses = classNames('message', color && `is-${color}`, className, bulmaHelperClasses);
1010
+ return (jsxRuntimeExports.jsxs("article", { className: messageClasses, ...rest, "data-testid": "message", children: [(title || onClose) && (jsxRuntimeExports.jsxs("div", { className: "message-header", children: [title && jsxRuntimeExports.jsx("span", { children: title }), onClose && (jsxRuntimeExports.jsx("button", { className: "delete", "aria-label": "delete", onClick: onClose, type: "button", "data-testid": "message-close" }))] })), children && (jsxRuntimeExports.jsx("div", { className: "message-body", "data-testid": "message-body", children: children }))] }));
1011
+ };
1012
+
1013
+ const Modal = ({ active = false, onClose, className, textColor, bgColor, modalCardTitle, modalCardFoot, type, children, ...props }) => {
1014
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1015
+ color: textColor,
1016
+ backgroundColor: bgColor,
1017
+ ...props,
1018
+ });
1019
+ let isModalCard;
1020
+ if (type === 'card')
1021
+ isModalCard = true;
1022
+ else if (type === 'content')
1023
+ isModalCard = false;
1024
+ else
1025
+ isModalCard = !!modalCardTitle || !!modalCardFoot;
1026
+ const modalClasses = classNames('modal', { 'is-active': active }, className, bulmaHelperClasses);
1027
+ return (jsxRuntimeExports.jsxs("div", { className: modalClasses, ...rest, "data-testid": "modal", children: [jsxRuntimeExports.jsx("div", { className: "modal-background", onClick: onClose, "data-testid": "modal-background" }), isModalCard ? (jsxRuntimeExports.jsxs("div", { className: "modal-card", children: [modalCardTitle && (jsxRuntimeExports.jsxs("header", { className: "modal-card-head", children: [jsxRuntimeExports.jsx("p", { className: "modal-card-title", children: modalCardTitle }), onClose && (jsxRuntimeExports.jsx("button", { className: "delete", "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close" }))] })), jsxRuntimeExports.jsx("section", { className: "modal-card-body", "data-testid": "modal-body", children: children }), modalCardFoot && (jsxRuntimeExports.jsx("footer", { className: "modal-card-foot", children: modalCardFoot }))] })) : (jsxRuntimeExports.jsx("div", { className: "modal-content", "data-testid": "modal-content", children: children })), (!isModalCard || (!modalCardTitle && onClose)) && onClose && (jsxRuntimeExports.jsx("button", { className: "modal-close is-large", "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close-float" }))] }));
1028
+ };
1029
+
1030
+ const Navbar = ({ className, textColor, bgColor, color, transparent, fixed, children, ...props }) => {
1031
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1032
+ color: textColor,
1033
+ backgroundColor: bgColor,
1034
+ ...props,
1035
+ });
1036
+ const navbarClasses = classNames('navbar', bulmaHelperClasses, className, {
1037
+ [`is-${color}`]: color,
1038
+ 'is-transparent': transparent,
1039
+ [`is-fixed-${fixed}`]: fixed,
1040
+ });
1041
+ return (jsxRuntimeExports.jsx("nav", { className: navbarClasses, role: "navigation", "aria-label": "main navigation", ...rest, children: children }));
1042
+ };
1043
+ const NavbarBrand = ({ className, children, textColor, ...props }) => {
1044
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1045
+ color: textColor,
1046
+ ...props,
1047
+ });
1048
+ return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-brand', bulmaHelperClasses, className), ...rest, children: children }));
1049
+ };
1050
+ const NavbarItem = ({ className, as: Component = 'a', active, textColor, bgColor, children, ...props }) => {
1051
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1052
+ color: textColor,
1053
+ backgroundColor: bgColor,
1054
+ ...props,
1055
+ });
1056
+ return (jsxRuntimeExports.jsx(Component, { className: classNames('navbar-item', bulmaHelperClasses, className, {
1057
+ 'is-active': active,
1058
+ }), ...rest, children: children }));
1059
+ };
1060
+ const NavbarBurger = ({ className, active, children, ...props }) => {
1061
+ var _a;
1062
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1063
+ ...props,
1064
+ });
1065
+ return (jsxRuntimeExports.jsxs("button", { type: "button", className: classNames('navbar-burger', bulmaHelperClasses, className, {
1066
+ 'is-active': active,
1067
+ }), "aria-label": props['aria-label'] || 'menu', "aria-expanded": (_a = props['aria-expanded']) !== null && _a !== void 0 ? _a : !!active, ...rest, children: [jsxRuntimeExports.jsx("span", { "aria-hidden": "true" }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true" }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true" }), children] }));
1068
+ };
1069
+ const NavbarMenu = ({ className, active, children, ...props }) => {
1070
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1071
+ ...props,
1072
+ });
1073
+ return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-menu', bulmaHelperClasses, className, {
1074
+ 'is-active': active,
1075
+ }), ...rest, children: children }));
1076
+ };
1077
+ const NavbarStart = ({ className, children, ...props }) => {
1078
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1079
+ ...props,
1080
+ });
1081
+ return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-start', bulmaHelperClasses, className), ...rest, children: children }));
1082
+ };
1083
+ const NavbarEnd = ({ className, children, ...props }) => {
1084
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1085
+ ...props,
1086
+ });
1087
+ return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-end', bulmaHelperClasses, className), ...rest, children: children }));
1088
+ };
1089
+ const NavbarDropdown = ({ className, right, up, hoverable, active, children, ...props }) => (jsxRuntimeExports.jsx("div", { className: classNames('navbar-item', 'has-dropdown', {
1090
+ 'is-right': right,
1091
+ 'is-up': up,
1092
+ 'is-hoverable': hoverable,
1093
+ 'is-active': active,
1094
+ }, className), ...props, children: children }));
1095
+ const NavbarDropdownMenu = ({ className, right, up, children, ...props }) => (jsxRuntimeExports.jsx("div", { className: classNames('navbar-dropdown', {
1096
+ 'is-right': right,
1097
+ 'is-up': up,
1098
+ }, className), ...props, children: children }));
1099
+ const NavbarDivider = props => jsxRuntimeExports.jsx("hr", { className: "navbar-divider", ...props });
1100
+ Navbar.Brand = NavbarBrand;
1101
+ Navbar.Item = NavbarItem;
1102
+ Navbar.Burger = NavbarBurger;
1103
+ Navbar.Menu = NavbarMenu;
1104
+ Navbar.Start = NavbarStart;
1105
+ Navbar.End = NavbarEnd;
1106
+ Navbar.Dropdown = NavbarDropdown;
1107
+ Navbar.DropdownMenu = NavbarDropdownMenu;
1108
+ Navbar.Divider = NavbarDivider;
1109
+
1110
+ const PaginationPrevious = ({ className, disabled, children, ...props }) => (jsxRuntimeExports.jsx("a", { className: classNames('pagination-previous', className, {
1111
+ 'is-disabled': disabled,
1112
+ }), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
1113
+ ? e => {
1114
+ e.preventDefault();
1115
+ e.stopPropagation();
1116
+ }
1117
+ : props.onClick, children: children }));
1118
+ const PaginationNext = ({ className, disabled, children, ...props }) => (jsxRuntimeExports.jsx("a", { className: classNames('pagination-next', className, {
1119
+ 'is-disabled': disabled,
1120
+ }), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
1121
+ ? e => {
1122
+ e.preventDefault();
1123
+ e.stopPropagation();
1124
+ }
1125
+ : props.onClick, children: children }));
1126
+ const Pagination = ({ color, textColor, bgColor, size, align, rounded, className, children, ...props }) => {
1127
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1128
+ color: textColor,
1129
+ backgroundColor: bgColor,
1130
+ ...props,
1131
+ });
1132
+ const paginationClasses = classNames('pagination', bulmaHelperClasses, className, {
1133
+ [`is-${color}`]: color,
1134
+ [`is-${size}`]: size,
1135
+ [`is-${align}`]: align,
1136
+ 'is-rounded': rounded,
1137
+ });
1138
+ return (jsxRuntimeExports.jsx("nav", { className: paginationClasses, role: "navigation", "aria-label": "pagination", ...rest, children: children }));
1139
+ };
1140
+ const PaginationList = ({ className, textColor, bgColor, children, ...props }) => {
1141
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1142
+ color: textColor,
1143
+ backgroundColor: bgColor,
1144
+ ...props,
1145
+ });
1146
+ return (jsxRuntimeExports.jsx("ul", { className: classNames('pagination-list', bulmaHelperClasses, className), ...rest, children: children }));
1147
+ };
1148
+ const PaginationLink = ({ className, textColor, bgColor, active, disabled, onClick, children, ...props }) => {
1149
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1150
+ color: textColor,
1151
+ backgroundColor: bgColor,
1152
+ ...props,
1153
+ });
1154
+ const handleClick = (e) => {
1155
+ if (disabled) {
1156
+ e.preventDefault();
1157
+ e.stopPropagation();
1158
+ return;
1159
+ }
1160
+ if (onClick) {
1161
+ onClick(e);
1162
+ }
1163
+ };
1164
+ return (jsxRuntimeExports.jsx("li", { children: jsxRuntimeExports.jsx("a", { className: classNames('pagination-link', bulmaHelperClasses, className, {
1165
+ 'is-current': active,
1166
+ 'is-disabled': disabled,
1167
+ }), "aria-current": active ? 'page' : undefined, "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, onClick: handleClick, ...rest, children: children }) }));
1168
+ };
1169
+ const PaginationEllipsis = props => (jsxRuntimeExports.jsx("li", { children: jsxRuntimeExports.jsx("span", { className: "pagination-ellipsis", ...props, children: "\u2026" }) }));
1170
+ Pagination.Link = PaginationLink;
1171
+ Pagination.List = PaginationList;
1172
+ Pagination.Ellipsis = PaginationEllipsis;
1173
+ Pagination.Previous = PaginationPrevious;
1174
+ Pagination.Next = PaginationNext;
1175
+
1176
+ const Panel = ({ color, className, children, ...props }) => {
1177
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1178
+ color,
1179
+ ...props,
1180
+ });
1181
+ const panelClasses = classNames('panel', bulmaHelperClasses, className, {
1182
+ [`is-${color}`]: color,
1183
+ });
1184
+ return (jsxRuntimeExports.jsx("nav", { className: panelClasses, ...rest, children: children }));
1185
+ };
1186
+ const PanelHeading = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("p", { className: classNames('panel-heading', className), ...props, children: children }));
1187
+ const PanelTabs = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("p", { className: classNames('panel-tabs', className), ...props, children: children }));
1188
+ const PanelBlock = ({ className, active, children, ...props }) => (jsxRuntimeExports.jsx("a", { className: classNames('panel-block', className, { 'is-active': active }), ...props, children: children }));
1189
+ const PanelIcon = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("span", { className: classNames('panel-icon', className), ...props, children: children }));
1190
+ const PanelInputBlock = ({ value, onChange, placeholder, iconClassName = 'fas fa-search', ...props }) => (jsxRuntimeExports.jsx("div", { className: "panel-block", ...props, children: jsxRuntimeExports.jsxs("p", { className: "control has-icons-left", children: [jsxRuntimeExports.jsx("input", { className: "input", type: "text", placeholder: placeholder, value: value, onChange: onChange }), jsxRuntimeExports.jsx("span", { className: "icon is-left", children: jsxRuntimeExports.jsx("i", { className: iconClassName, "aria-hidden": "true" }) })] }) }));
1191
+ const PanelCheckboxBlock = ({ checked, onChange, children, ...props }) => (jsxRuntimeExports.jsxs("label", { className: "panel-block", ...props, children: [jsxRuntimeExports.jsx("input", { type: "checkbox", checked: checked, onChange: onChange }), children] }));
1192
+ const PanelButtonBlock = ({ children, className, ...props }) => (jsxRuntimeExports.jsx("div", { className: "panel-block", children: jsxRuntimeExports.jsx("button", { className: classNames('button is-link is-outlined is-fullwidth', className), ...props, children: children }) }));
1193
+ Panel.Heading = PanelHeading;
1194
+ Panel.Tabs = PanelTabs;
1195
+ Panel.Block = PanelBlock;
1196
+ Panel.Icon = PanelIcon;
1197
+ Panel.InputBlock = PanelInputBlock;
1198
+ Panel.CheckboxBlock = PanelCheckboxBlock;
1199
+ Panel.ButtonBlock = PanelButtonBlock;
1200
+
1201
+ const Tabs = ({ align, size, fullwidth, boxed, toggle, rounded, color, className, children, ...props }) => {
1202
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1203
+ color,
1204
+ ...props,
1205
+ });
1206
+ const tabsClass = classNames('tabs', bulmaHelperClasses, {
1207
+ [`is-${align}`]: align,
1208
+ [`is-${size}`]: size,
1209
+ 'is-fullwidth': fullwidth,
1210
+ 'is-boxed': boxed,
1211
+ 'is-toggle': toggle,
1212
+ 'is-toggle-rounded': toggle && rounded,
1213
+ [`is-${color}`]: color,
1214
+ }, className);
1215
+ return (jsxRuntimeExports.jsx("div", { className: tabsClass, ...rest, children: children }));
1216
+ };
1217
+ const TabList = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("ul", { className: classNames(className), ...props, children: children }));
1218
+ const TabItem = ({ active, className, children, onClick, ...props }) => (jsxRuntimeExports.jsx("li", { className: classNames({ 'is-active': active }, className), onClick: onClick, ...props, children: children }));
1219
+ Tabs.List = TabList;
1220
+ Tabs.Item = TabItem;
1221
+
1222
+ const Block = ({ className, textColor, bgColor, children, ...props }) => {
1223
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1224
+ color: textColor,
1225
+ backgroundColor: bgColor,
1226
+ ...props,
1227
+ });
1228
+ const blockClasses = classNames('block', className, bulmaHelperClasses);
1229
+ return (jsxRuntimeExports.jsx("div", { className: blockClasses, ...rest, children: children }));
1230
+ };
1231
+
1232
+ const Box = ({ className, textColor, bgColor, hasShadow = true, children, ...props }) => {
1233
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1234
+ color: textColor,
1235
+ backgroundColor: bgColor,
1236
+ ...props,
1237
+ });
1238
+ const boxClasses = classNames('box', className, bulmaHelperClasses, {
1239
+ 'is-shadowless': !hasShadow,
1240
+ });
1241
+ return (jsxRuntimeExports.jsx("div", { className: boxClasses, ...rest, children: children }));
1242
+ };
1243
+
1244
+ const Button = ({ color, size, isLight, isRounded, isLoading, isStatic, isFullWidth, isOutlined, isInverted, isFocused, isActive, isHovered, isDisabled, className, children, textColor, bgColor, as = 'button', href, onClick, target, rel, ...props }) => {
1245
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1246
+ color: textColor,
1247
+ backgroundColor: bgColor,
1248
+ ...props,
1249
+ });
1250
+ const buttonClasses = classNames('button', className, bulmaHelperClasses, {
1251
+ [`is-${color}`]: color,
1252
+ [`is-${size}`]: size && size !== 'normal',
1253
+ 'is-light': isLight,
1254
+ 'is-rounded': isRounded,
1255
+ 'is-loading': isLoading,
1256
+ 'is-static': isStatic,
1257
+ 'is-fullwidth': isFullWidth,
1258
+ 'is-outlined': isOutlined,
1259
+ 'is-inverted': isInverted,
1260
+ 'is-focused': isFocused,
1261
+ 'is-active': isActive,
1262
+ 'is-hovered': isHovered,
1263
+ 'is-disabled': isDisabled,
1264
+ });
1265
+ if (as === 'a') {
1266
+ const { ...anchorRest } = rest;
1267
+ return (jsxRuntimeExports.jsx("a", { className: buttonClasses, href: href, target: target, rel: rel, "aria-disabled": isDisabled, tabIndex: isDisabled ? -1 : undefined, onClick: isDisabled
1268
+ ? e => e.preventDefault()
1269
+ : onClick, ...anchorRest, children: children }));
1270
+ }
1271
+ return (jsxRuntimeExports.jsx("button", { className: buttonClasses, disabled: isDisabled, onClick: onClick, ...rest, children: children }));
1272
+ };
1273
+
1274
+ const Buttons = ({ className, textColor, bgColor, isCentered, isRight, hasAddons, children, ...props }) => {
1275
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1276
+ color: textColor,
1277
+ backgroundColor: bgColor,
1278
+ ...props,
1279
+ });
1280
+ const buttonsClasses = classNames('buttons', className, bulmaHelperClasses, {
1281
+ 'is-centered': isCentered,
1282
+ 'is-right': isRight,
1283
+ 'has-addons': hasAddons,
1284
+ });
1285
+ return (jsxRuntimeExports.jsx("div", { className: buttonsClasses, ...rest, children: children }));
1286
+ };
1287
+
1288
+ const validSizes = ['small', 'medium', 'large'];
1289
+ const Content = ({ className, textColor, bgColor, size, children, ...props }) => {
1290
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1291
+ color: textColor,
1292
+ backgroundColor: bgColor,
1293
+ ...props,
1294
+ });
1295
+ const contentClasses = classNames('content', className, bulmaHelperClasses, {
1296
+ [`is-${size}`]: size && size !== 'normal' && validSizes.includes(size),
1297
+ });
1298
+ return (jsxRuntimeExports.jsx("div", { className: contentClasses, ...rest, children: children }));
1299
+ };
1300
+
1301
+ const Delete = ({ className, textColor, bgColor, onClick, size, ariaLabel = 'Close', disabled = false, ...props }) => {
1302
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1303
+ color: textColor,
1304
+ backgroundColor: bgColor,
1305
+ ...props,
1306
+ });
1307
+ const classes = classNames('delete', {
1308
+ [`is-${size}`]: size,
1309
+ 'is-disabled': disabled,
1310
+ }, bulmaHelperClasses, className);
1311
+ return (jsxRuntimeExports.jsx("button", { className: classes, onClick: onClick, "aria-label": ariaLabel, disabled: disabled, type: "button", ...rest }));
1312
+ };
1313
+
1314
+ function getIconClasses(library, name, libraryFeatures) {
1315
+ let baseClass = '';
1316
+ let iconClass = '';
1317
+ let features = Array.isArray(libraryFeatures)
1318
+ ? libraryFeatures
1319
+ : libraryFeatures
1320
+ ? [libraryFeatures]
1321
+ : [];
1322
+ switch (library) {
1323
+ case 'fa': {
1324
+ const faStyle = features.find(f => ['fas', 'far', 'fab', 'fal', 'fad', 'fat'].includes(f)) || 'fas';
1325
+ baseClass = faStyle;
1326
+ iconClass = `fa-${name}`;
1327
+ features = features.filter(f => f !== faStyle);
1328
+ return [baseClass, iconClass, ...features].join(' ');
1329
+ }
1330
+ case 'mdi':
1331
+ baseClass = 'mdi';
1332
+ iconClass = `mdi-${name}`;
1333
+ return [baseClass, iconClass, ...features].join(' ');
1334
+ case 'ion':
1335
+ baseClass = 'ion';
1336
+ iconClass = `ion-${name}`;
1337
+ return [baseClass, iconClass, ...features].join(' ');
1338
+ default:
1339
+ return [name, ...features].join(' ');
1340
+ }
1341
+ }
1342
+ const Icon = ({ className, textColor, bgColor, name, library = 'fa', libraryFeatures, size, ariaLabel = 'icon', style, ...props }) => {
1343
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1344
+ color: textColor,
1345
+ backgroundColor: bgColor,
1346
+ ...props,
1347
+ });
1348
+ const iconContainerClasses = classNames('icon', {
1349
+ [`is-${size}`]: size,
1350
+ }, bulmaHelperClasses, className);
1351
+ const iClasses = getIconClasses(library, name, libraryFeatures);
1352
+ return (jsxRuntimeExports.jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsxRuntimeExports.jsx("i", { className: iClasses }) }));
1353
+ };
1354
+
1355
+ const IconText = ({ className, textColor, bgColor, iconProps, children, items, ...props }) => {
1356
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1357
+ color: textColor,
1358
+ backgroundColor: bgColor,
1359
+ ...props,
1360
+ });
1361
+ const iconTextClasses = classNames('icon-text', bulmaHelperClasses, className);
1362
+ return (jsxRuntimeExports.jsx("span", { className: iconTextClasses, ...rest, children: items ? (items.map((item, index) => (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Icon, { ...item.iconProps }), item.text && jsxRuntimeExports.jsx("span", { children: item.text })] }, index)))) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [iconProps && jsxRuntimeExports.jsx(Icon, { ...iconProps }), children && jsxRuntimeExports.jsx("span", { children: children })] })) }));
1363
+ };
1364
+
1365
+ const Image = ({ as, className, textColor, bgColor, size, isRounded, isRetina, src, alt, children, ...props }) => {
1366
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1367
+ color: textColor,
1368
+ backgroundColor: bgColor,
1369
+ ...props,
1370
+ });
1371
+ const imageClasses = classNames('image', className, bulmaHelperClasses, {
1372
+ [`is-${size}`]: size,
1373
+ 'has-ratio': size && typeof size === 'string' && size.includes('by'),
1374
+ });
1375
+ let Tag;
1376
+ if (as) {
1377
+ Tag = as;
1378
+ }
1379
+ else if (size && typeof size === 'string' && size.includes('by')) {
1380
+ Tag = 'figure';
1381
+ }
1382
+ else {
1383
+ Tag = 'div';
1384
+ }
1385
+ const content = children ? (children) : (jsxRuntimeExports.jsx("img", { className: classNames({ 'is-rounded': isRounded }), src: src, alt: alt, ...(isRetina && src ? { srcSet: `${src} 2x` } : {}) }));
1386
+ return (jsxRuntimeExports.jsx(Tag, { className: imageClasses, ...rest, children: content }));
1387
+ };
1388
+
1389
+ const Notification = ({ className, color, isLight, hasDelete, onDelete, children, ...props }) => {
1390
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1391
+ ...props,
1392
+ });
1393
+ const notificationClasses = classNames('notification', className, bulmaHelperClasses, {
1394
+ [`is-${color}`]: color && validColors.includes(color),
1395
+ 'is-light': isLight,
1396
+ });
1397
+ return (jsxRuntimeExports.jsxs("div", { className: notificationClasses, ...rest, children: [hasDelete && (jsxRuntimeExports.jsx("button", { className: "delete", onClick: onDelete, "aria-label": "Close notification" })), children] }));
1398
+ };
1399
+
1400
+ const Progress = ({ className, color, size, value, max, children, ...props }) => {
1401
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1402
+ ...props,
1403
+ });
1404
+ const progressClasses = classNames('progress', className, bulmaHelperClasses, {
1405
+ [`is-${color}`]: color && validColors.includes(color),
1406
+ [`is-${size}`]: size,
1407
+ });
1408
+ return (jsxRuntimeExports.jsx("progress", { className: progressClasses, value: value, max: max, ...rest, children: children }));
1409
+ };
1410
+
1411
+ const validSubTitleSizes = ['1', '2', '3', '4', '5', '6'];
1412
+ const validSubTitleElements = [
1413
+ 'h1',
1414
+ 'h2',
1415
+ 'h3',
1416
+ 'h4',
1417
+ 'h5',
1418
+ 'h6',
1419
+ 'p',
1420
+ ];
1421
+ const SubTitle = ({ className, size, as = 'h1', children, ...props }) => {
1422
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1423
+ const element = validSubTitleElements.includes(as) ? as : 'h1';
1424
+ const validSize = size && validSubTitleSizes.includes(size) ? size : undefined;
1425
+ const subTitleClasses = classNames('subtitle', className, bulmaHelperClasses, {
1426
+ [`is-${validSize}`]: validSize,
1427
+ });
1428
+ const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
1429
+ return (jsxRuntimeExports.jsx(Tag, { className: subTitleClasses, ...rest, children: children }));
1430
+ };
1431
+
1432
+ const Table = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFullwidth, isResponsive, children, ...props }) => {
1433
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1434
+ const tableClasses = classNames('table', className, bulmaHelperClasses, {
1435
+ 'is-bordered': isBordered,
1436
+ 'is-striped': isStriped,
1437
+ 'is-narrow': isNarrow,
1438
+ 'is-hoverable': isHoverable,
1439
+ 'is-fullwidth': isFullwidth,
1440
+ });
1441
+ const tableElement = (jsxRuntimeExports.jsx("table", { className: tableClasses, ...rest, children: children }));
1442
+ return isResponsive ? (jsxRuntimeExports.jsx("div", { className: "table-container", children: tableElement })) : (tableElement);
1443
+ };
1444
+
1445
+ const validTagColors = [
1446
+ 'primary',
1447
+ 'link',
1448
+ 'info',
1449
+ 'success',
1450
+ 'warning',
1451
+ 'danger',
1452
+ 'black',
1453
+ 'dark',
1454
+ 'light',
1455
+ 'white',
1456
+ ];
1457
+ const validTagSizes = ['normal', 'medium', 'large'];
1458
+ const Tag = ({ className, color, size, isRounded, isDelete, isHoverable, onDelete, children, ...props }) => {
1459
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1460
+ const tagClasses = classNames('tag', className, bulmaHelperClasses, {
1461
+ [`is-${color}`]: color && validTagColors.includes(color),
1462
+ [`is-${size}`]: size && size !== 'normal' && validTagSizes.includes(size),
1463
+ 'is-rounded': isRounded,
1464
+ 'is-delete': isDelete,
1465
+ 'is-hoverable': isHoverable,
1466
+ });
1467
+ if (isDelete) {
1468
+ return (jsxRuntimeExports.jsx("button", { className: tagClasses, onClick: onDelete, "aria-label": "Delete tag", ...rest }));
1469
+ }
1470
+ return (jsxRuntimeExports.jsx("span", { className: tagClasses, ...rest, children: children }));
1471
+ };
1472
+
1473
+ const Tags = ({ className, hasAddons, isMultiline, children, ...props }) => {
1474
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1475
+ const tagsClasses = classNames('tags', className, bulmaHelperClasses, {
1476
+ 'has-addons': hasAddons,
1477
+ 'are-multiline': isMultiline,
1478
+ });
1479
+ return (jsxRuntimeExports.jsx("div", { className: tagsClasses, ...rest, children: children }));
1480
+ };
1481
+
1482
+ const Tbody = ({ className, children, ...props }) => {
1483
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1484
+ const tbodyClasses = classNames(className, bulmaHelperClasses);
1485
+ return (jsxRuntimeExports.jsx("tbody", { className: tbodyClasses, ...rest, children: children }));
1486
+ };
1487
+
1488
+ const validTableColors = [
1489
+ 'primary',
1490
+ 'link',
1491
+ 'info',
1492
+ 'success',
1493
+ 'warning',
1494
+ 'danger',
1495
+ 'black',
1496
+ 'dark',
1497
+ 'light',
1498
+ 'white',
1499
+ ];
1500
+ const Td = ({ className, color, children, ...props }) => {
1501
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1502
+ const tdClasses = classNames(className, bulmaHelperClasses, {
1503
+ [`is-${color}`]: color && validTableColors.includes(color),
1504
+ });
1505
+ return (jsxRuntimeExports.jsx("td", { className: tdClasses, ...rest, children: children }));
1506
+ };
1507
+
1508
+ const Tfoot = ({ className, children, ...props }) => {
1509
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1510
+ const tfootClasses = classNames(className, bulmaHelperClasses);
1511
+ return (jsxRuntimeExports.jsx("tfoot", { className: tfootClasses, ...rest, children: children }));
1512
+ };
1513
+
1514
+ const validAlignments = ['left', 'right', 'centered'];
1515
+ const Th = ({ className, isAligned, width, color, children, ...props }) => {
1516
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1517
+ const thClasses = classNames(className, bulmaHelperClasses, {
1518
+ [`has-text-${isAligned}`]: isAligned && validAlignments.includes(isAligned),
1519
+ [`is-${color}`]: color && validTableColors.includes(color),
1520
+ });
1521
+ return (jsxRuntimeExports.jsx("th", { className: thClasses, style: width
1522
+ ? { width: typeof width === 'number' ? `${width}px` : width }
1523
+ : undefined, ...rest, children: children }));
1524
+ };
1525
+
1526
+ const Thead = ({ className, children, ...props }) => {
1527
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1528
+ const theadClasses = classNames(className, bulmaHelperClasses);
1529
+ return (jsxRuntimeExports.jsx("thead", { className: theadClasses, ...rest, children: children }));
1530
+ };
1531
+
1532
+ const validTitleSizes = ['1', '2', '3', '4', '5', '6'];
1533
+ const validTitleElements = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'];
1534
+ const Title = ({ className, size, isSpaced, as = 'h1', children, ...props }) => {
1535
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1536
+ const element = validTitleElements.includes(as) ? as : 'h1';
1537
+ const validSize = size && validTitleSizes.includes(size) ? size : undefined;
1538
+ const titleClasses = classNames('title', className, bulmaHelperClasses, {
1539
+ [`is-${validSize}`]: validSize,
1540
+ 'is-spaced': isSpaced,
1541
+ });
1542
+ const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
1543
+ return (jsxRuntimeExports.jsx(Tag, { className: titleClasses, ...rest, children: children }));
1544
+ };
1545
+
1546
+ const Tr = ({ className, isSelected, color, children, ...props }) => {
1547
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1548
+ const trClasses = classNames(className, bulmaHelperClasses, {
1549
+ 'is-selected': isSelected,
1550
+ [`is-${color}`]: color && validTableColors.includes(color),
1551
+ });
1552
+ return (jsxRuntimeExports.jsx("tr", { className: trClasses, ...rest, children: children }));
1553
+ };
1554
+
1555
+ const Checkbox = React.forwardRef(({ disabled, className, children, ...props }, ref) => {
1556
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1557
+ ...props,
1558
+ });
1559
+ const checkboxClass = classNames('checkbox', bulmaHelperClasses, className);
1560
+ return (jsxRuntimeExports.jsxs("label", { className: checkboxClass, children: [jsxRuntimeExports.jsx("input", { ref: ref, type: "checkbox", disabled: disabled, ...rest }), children] }));
1561
+ });
1562
+ Checkbox.displayName = 'Checkbox';
1563
+
1564
+ const allowedColors = [...validColors, 'inherit', 'current'];
1565
+ const Control = React.forwardRef(({ as = 'div', hasIconsLeft, hasIconsRight, isLoading, isExpanded, size, textColor, bgColor, iconLeft, iconRight, iconLeftName, iconLeftSize, iconRightName, iconRightSize, className, children, ...props }, ref) => {
1566
+ const Component = (as === 'p' ? 'p' : 'div');
1567
+ const { textColor: _ignoredTextColor, bgColor: _ignoredBgColor, ...restProps } = props;
1568
+ const safeTextColor = allowedColors.includes(textColor)
1569
+ ? textColor
1570
+ : undefined;
1571
+ const safeBgColor = allowedColors.includes(bgColor)
1572
+ ? bgColor
1573
+ : undefined;
1574
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1575
+ color: safeTextColor,
1576
+ backgroundColor: safeBgColor,
1577
+ ...restProps,
1578
+ });
1579
+ const leftIconProps = iconLeft ||
1580
+ (iconLeftName
1581
+ ? {
1582
+ name: iconLeftName,
1583
+ size: iconLeftSize,
1584
+ }
1585
+ : undefined);
1586
+ const rightIconProps = iconRight ||
1587
+ (iconRightName
1588
+ ? {
1589
+ name: iconRightName,
1590
+ size: iconRightSize,
1591
+ }
1592
+ : undefined);
1593
+ const controlClass = classNames('control', bulmaHelperClasses, {
1594
+ 'has-icons-left': hasIconsLeft || !!leftIconProps,
1595
+ 'has-icons-right': hasIconsRight || !!rightIconProps,
1596
+ 'is-loading': isLoading,
1597
+ 'is-expanded': isExpanded,
1598
+ [`is-${size}`]: !!size,
1599
+ }, className);
1600
+ return (jsxRuntimeExports.jsxs(Component, { className: controlClass, ref: ref, ...restProps, ...rest, children: [children, leftIconProps && leftIconProps.name && (jsxRuntimeExports.jsx(Icon, { ...leftIconProps, className: "is-left" })), rightIconProps && rightIconProps.name && (jsxRuntimeExports.jsx(Icon, { ...rightIconProps, className: "is-right" }))] }));
1601
+ });
1602
+ Control.displayName = 'Control';
1603
+
1604
+ const FieldLabel = ({ size, textColor, bgColor, className, children, ...props }) => {
1605
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1606
+ color: textColor,
1607
+ backgroundColor: bgColor,
1608
+ ...props,
1609
+ });
1610
+ const fieldLabelClass = classNames('field-label', bulmaHelperClasses, { [`is-${size}`]: size }, className);
1611
+ return (jsxRuntimeExports.jsx("div", { className: fieldLabelClass, ...props, ...rest, children: children }));
1612
+ };
1613
+ const FieldBody = ({ textColor, bgColor, className, children, ...props }) => {
1614
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1615
+ color: textColor,
1616
+ backgroundColor: bgColor,
1617
+ ...props,
1618
+ });
1619
+ const fieldBodyClass = classNames('field-body', bulmaHelperClasses, className);
1620
+ return (jsxRuntimeExports.jsx("div", { className: fieldBodyClass, ...props, ...rest, children: children }));
1621
+ };
1622
+ FieldLabel.displayName = 'FieldLabel';
1623
+ FieldBody.displayName = 'FieldBody';
1624
+
1625
+ const File = React.forwardRef(({ color, size, isBoxed, isFullwidth, isRight, isCentered, hasName, label, iconLeft, iconRight, className, inputClassName, fileName, ...props }, ref) => {
1626
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1627
+ color,
1628
+ ...props,
1629
+ });
1630
+ let alignmentClass;
1631
+ if (isRight && isCentered) {
1632
+ alignmentClass = 'is-right';
1633
+ }
1634
+ else if (isRight) {
1635
+ alignmentClass = 'is-right';
1636
+ }
1637
+ else if (isCentered) {
1638
+ alignmentClass = 'is-centered';
1639
+ }
1640
+ const fileClass = classNames('file', bulmaHelperClasses, {
1641
+ [`is-${color}`]: color,
1642
+ [`is-${size}`]: size,
1643
+ 'is-boxed': isBoxed,
1644
+ 'is-fullwidth': isFullwidth,
1645
+ 'has-name': hasName,
1646
+ }, alignmentClass, className);
1647
+ return (jsxRuntimeExports.jsx("div", { className: fileClass, children: jsxRuntimeExports.jsxs("label", { className: "file-label", children: [jsxRuntimeExports.jsx("input", { ref: ref, className: classNames('file-input', inputClassName), type: "file", ...rest }), jsxRuntimeExports.jsxs("span", { className: "file-cta", children: [iconLeft && jsxRuntimeExports.jsx("span", { className: "file-icon", children: iconLeft }), jsxRuntimeExports.jsx("span", { className: "file-label", children: label || 'Choose a file…' }), iconRight && jsxRuntimeExports.jsx("span", { className: "file-icon", children: iconRight })] }), hasName && fileName && jsxRuntimeExports.jsx("span", { className: "file-name", children: fileName })] }) }));
1648
+ });
1649
+ File.displayName = 'File';
1650
+
1651
+ const Input = React.forwardRef(({ color, size, isRounded, isStatic, isHovered, isFocused, isLoading, className, disabled, readOnly, ...props }, ref) => {
1652
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1653
+ color,
1654
+ ...props,
1655
+ });
1656
+ const inputClass = classNames('input', bulmaHelperClasses, {
1657
+ [`is-${color}`]: color,
1658
+ [`is-${size}`]: size,
1659
+ 'is-rounded': isRounded,
1660
+ 'is-static': isStatic,
1661
+ 'is-hovered': isHovered,
1662
+ 'is-focused': isFocused,
1663
+ 'is-loading': isLoading,
1664
+ }, className);
1665
+ return (jsxRuntimeExports.jsx("input", { ref: ref, className: inputClass, disabled: disabled, readOnly: readOnly, ...rest }));
1666
+ });
1667
+ Input.displayName = 'Input';
1668
+
1669
+ const Radio = React.forwardRef(({ disabled, className, children, ...props }, ref) => {
1670
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1671
+ ...props,
1672
+ });
1673
+ const radioClass = classNames('radio', bulmaHelperClasses, className);
1674
+ return (jsxRuntimeExports.jsxs("label", { className: radioClass, children: [jsxRuntimeExports.jsx("input", { ref: ref, type: "radio", disabled: disabled, ...rest }), children] }));
1675
+ });
1676
+ Radio.displayName = 'Radio';
1677
+
1678
+ const Select = React.forwardRef(({ color, size, isRounded, isLoading, isActive, className, disabled, children, multiple, multipleSize, ...props }, ref) => {
1679
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1680
+ color,
1681
+ ...props,
1682
+ });
1683
+ const selectClass = classNames('select', bulmaHelperClasses, {
1684
+ [`is-${color}`]: color,
1685
+ [`is-${size}`]: size,
1686
+ 'is-rounded': isRounded,
1687
+ 'is-loading': isLoading,
1688
+ 'is-active': isActive,
1689
+ }, className);
1690
+ const selectProps = {
1691
+ disabled,
1692
+ multiple,
1693
+ ...rest,
1694
+ };
1695
+ if (multiple && typeof multipleSize === 'number') {
1696
+ selectProps.size = multipleSize;
1697
+ }
1698
+ return (jsxRuntimeExports.jsx("div", { className: selectClass, children: jsxRuntimeExports.jsx("select", { ref: ref, ...selectProps, children: children }) }));
1699
+ });
1700
+ Select.displayName = 'Select';
1701
+
1702
+ const TextArea = React.forwardRef(({ color, size, isRounded, isStatic, isHovered, isFocused, isLoading, isActive, hasFixedSize, className, disabled, readOnly, rows, ...props }, ref) => {
1703
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1704
+ color,
1705
+ ...props,
1706
+ });
1707
+ const textareaClass = classNames('textarea', bulmaHelperClasses, {
1708
+ [`is-${color}`]: color,
1709
+ [`is-${size}`]: size,
1710
+ 'is-rounded': isRounded,
1711
+ 'is-static': isStatic,
1712
+ 'is-hovered': isHovered,
1713
+ 'is-focused': isFocused,
1714
+ 'is-loading': isLoading,
1715
+ 'is-active': isActive,
1716
+ 'has-fixed-size': hasFixedSize,
1717
+ }, className);
1718
+ return (jsxRuntimeExports.jsx("textarea", { ref: ref, className: textareaClass, disabled: disabled, readOnly: readOnly, rows: rows, ...rest }));
1719
+ });
1720
+ TextArea.displayName = 'TextArea';
1721
+
1722
+ function getCellGridClasses(props) {
1723
+ const classes = [];
1724
+ if (props.colStart !== undefined)
1725
+ classes.push(`is-col-start-${props.colStart}`);
1726
+ if (props.colFromEnd !== undefined)
1727
+ classes.push(`is-col-from-end-${props.colFromEnd}`);
1728
+ if (props.colSpan !== undefined)
1729
+ classes.push(`is-col-span-${props.colSpan}`);
1730
+ if (props.rowStart !== undefined)
1731
+ classes.push(`is-row-start-${props.rowStart}`);
1732
+ if (props.rowFromEnd !== undefined)
1733
+ classes.push(`is-row-from-end-${props.rowFromEnd}`);
1734
+ if (props.rowSpan !== undefined)
1735
+ classes.push(`is-row-span-${props.rowSpan}`);
1736
+ return classes;
1737
+ }
1738
+ const Cell = ({ colStart, colFromEnd, colSpan, rowStart, rowFromEnd, rowSpan, className, textColor, bgColor, children, ...props }) => {
1739
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1740
+ color: textColor,
1741
+ backgroundColor: bgColor,
1742
+ ...props,
1743
+ });
1744
+ const cellClasses = classNames('cell', ...getCellGridClasses({
1745
+ colStart,
1746
+ colFromEnd,
1747
+ colSpan,
1748
+ rowStart,
1749
+ rowFromEnd,
1750
+ rowSpan,
1751
+ }), className, bulmaHelperClasses);
1752
+ return (jsxRuntimeExports.jsx("div", { className: cellClasses, ...rest, children: children }));
1753
+ };
1754
+
1755
+ function getGridInnerClasses({ gap, columnGap, rowGap, minCol, }) {
1756
+ const classes = [];
1757
+ if (gap !== undefined)
1758
+ classes.push(`is-gap-${gap}`);
1759
+ if (columnGap !== undefined)
1760
+ classes.push(`is-column-gap-${columnGap}`);
1761
+ if (rowGap !== undefined)
1762
+ classes.push(`is-row-gap-${rowGap}`);
1763
+ if (minCol !== undefined)
1764
+ classes.push(`is-col-min-${minCol}`);
1765
+ return classes;
1766
+ }
1767
+ function getFixedGridClasses({ fixedCols, fixedColsMobile, fixedColsTablet, fixedColsDesktop, fixedColsWidescreen, fixedColsFullhd, }) {
1768
+ const classes = [];
1769
+ if (fixedCols === 'auto') {
1770
+ classes.push('has-auto-count');
1771
+ return classes;
1772
+ }
1773
+ if (fixedCols !== undefined)
1774
+ classes.push(`has-${fixedCols}-cols`);
1775
+ if (fixedColsMobile !== undefined)
1776
+ classes.push(`has-${fixedColsMobile}-cols-mobile`);
1777
+ if (fixedColsTablet !== undefined)
1778
+ classes.push(`has-${fixedColsTablet}-cols-tablet`);
1779
+ if (fixedColsDesktop !== undefined)
1780
+ classes.push(`has-${fixedColsDesktop}-cols-desktop`);
1781
+ if (fixedColsWidescreen !== undefined)
1782
+ classes.push(`has-${fixedColsWidescreen}-cols-widescreen`);
1783
+ if (fixedColsFullhd !== undefined)
1784
+ classes.push(`has-${fixedColsFullhd}-cols-fullhd`);
1785
+ return classes;
1786
+ }
1787
+ const Grid = ({ isFixed = false, gap, columnGap, rowGap, minCol, fixedCols, fixedColsMobile, fixedColsTablet, fixedColsDesktop, fixedColsWidescreen, fixedColsFullhd, className, textColor, bgColor, children, ...props }) => {
1788
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1789
+ color: textColor,
1790
+ backgroundColor: bgColor,
1791
+ ...props,
1792
+ });
1793
+ const gridClasses = classNames('grid', ...getGridInnerClasses({ gap, columnGap, rowGap, minCol }), bulmaHelperClasses, className);
1794
+ if (isFixed) {
1795
+ const fixedGridClasses = classNames('fixed-grid', ...getFixedGridClasses({
1796
+ fixedCols,
1797
+ fixedColsMobile,
1798
+ fixedColsTablet,
1799
+ fixedColsDesktop,
1800
+ fixedColsWidescreen,
1801
+ fixedColsFullhd,
1802
+ }));
1803
+ return (jsxRuntimeExports.jsx("div", { className: fixedGridClasses, children: jsxRuntimeExports.jsx("div", { className: gridClasses, ...rest, children: children }) }));
1804
+ }
1805
+ return (jsxRuntimeExports.jsx("div", { className: gridClasses, ...rest, children: children }));
1806
+ };
1807
+
1808
+ const Container = ({ className, textColor, bgColor, fluid, widescreen, fullhd, breakpoint, isMax, children, ...props }) => {
1809
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1810
+ color: textColor,
1811
+ backgroundColor: bgColor,
1812
+ ...props,
1813
+ });
1814
+ const validMaxBreakpoints = [
1815
+ 'tablet',
1816
+ 'desktop',
1817
+ 'widescreen',
1818
+ ];
1819
+ let breakpointClass;
1820
+ if (breakpoint) {
1821
+ if (isMax && validMaxBreakpoints.includes(breakpoint)) {
1822
+ breakpointClass = `is-max-${breakpoint}`;
1823
+ }
1824
+ else if (!isMax) {
1825
+ breakpointClass = `is-${breakpoint}`;
1826
+ }
1827
+ }
1828
+ const containerClasses = classNames('container', {
1829
+ 'is-fluid': fluid,
1830
+ 'is-widescreen': widescreen,
1831
+ 'is-fullhd': fullhd,
1832
+ }, breakpointClass, className, bulmaHelperClasses);
1833
+ return (jsxRuntimeExports.jsx("div", { className: containerClasses, ...rest, children: children }));
1834
+ };
1835
+
1836
+ const Hero = ({ className, color, size, bgColor, fullheightWithNavbar, children, ...props }) => {
1837
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1838
+ color,
1839
+ backgroundColor: bgColor,
1840
+ ...props,
1841
+ });
1842
+ const heroClasses = classNames('hero', bulmaHelperClasses, className, color && `is-${color}`, size && size !== 'fullheight-with-navbar' && `is-${size}`, {
1843
+ 'is-fullheight-with-navbar': fullheightWithNavbar || size === 'fullheight-with-navbar',
1844
+ });
1845
+ return (jsxRuntimeExports.jsx("section", { className: heroClasses, ...rest, children: children }));
1846
+ };
1847
+ const HeroHead = ({ className, children, color, bgColor, textColor, ...props }) => {
1848
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1849
+ color: textColor !== null && textColor !== void 0 ? textColor : color,
1850
+ backgroundColor: bgColor,
1851
+ ...props,
1852
+ });
1853
+ return (jsxRuntimeExports.jsx("div", { className: classNames('hero-head', bulmaHelperClasses, className), ...rest, children: children }));
1854
+ };
1855
+ const HeroBody = ({ className, children, color, bgColor, textColor, ...props }) => {
1856
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1857
+ color: textColor !== null && textColor !== void 0 ? textColor : color,
1858
+ backgroundColor: bgColor,
1859
+ ...props,
1860
+ });
1861
+ return (jsxRuntimeExports.jsx("div", { className: classNames('hero-body', bulmaHelperClasses, className), ...rest, children: children }));
1862
+ };
1863
+ const HeroFoot = ({ className, children, color, bgColor, textColor, ...props }) => {
1864
+ const { bulmaHelperClasses, rest } = useBulmaClasses({
1865
+ color: textColor !== null && textColor !== void 0 ? textColor : color,
1866
+ backgroundColor: bgColor,
1867
+ ...props,
1868
+ });
1869
+ return (jsxRuntimeExports.jsx("div", { className: classNames('hero-foot', bulmaHelperClasses, className), ...rest, children: children }));
1870
+ };
1871
+ Hero.Head = HeroHead;
1872
+ Hero.Body = HeroBody;
1873
+ Hero.Foot = HeroFoot;
1874
+
1875
+ const Media = ({ as = 'article', className, children, ...props }) => {
1876
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
1877
+ const Tag = as;
1878
+ return (jsxRuntimeExports.jsx(Tag, { className: classNames('media', bulmaHelperClasses, className), ...rest, children: children }));
1879
+ };
1880
+ const MediaLeft = ({ as = 'figure', className, children, ...props }) => {
1881
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
1882
+ const Tag = as;
1883
+ return (jsxRuntimeExports.jsx(Tag, { className: classNames('media-left', bulmaHelperClasses, className), ...rest, children: children }));
1884
+ };
1885
+ const MediaContent = ({ className, children, ...props }) => {
1886
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
1887
+ return (jsxRuntimeExports.jsx("div", { className: classNames('media-content', bulmaHelperClasses, className), ...rest, children: children }));
1888
+ };
1889
+ const MediaRight = ({ className, children, ...props }) => {
1890
+ const { bulmaHelperClasses, rest } = useBulmaClasses(props);
1891
+ return (jsxRuntimeExports.jsx("div", { className: classNames('media-right', bulmaHelperClasses, className), ...rest, children: children }));
1892
+ };
1893
+ Media.Left = MediaLeft;
1894
+ Media.Content = MediaContent;
1895
+ Media.Right = MediaRight;
1896
+
1897
+ const Section = ({ size, className, children, ...props }) => {
1898
+ const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
1899
+ const sectionClasses = classNames('section', className, bulmaHelperClasses, {
1900
+ [`is-${size}`]: size,
1901
+ });
1902
+ return (jsxRuntimeExports.jsx("section", { className: sectionClasses, ...rest, children: children }));
1903
+ };
1904
+
1905
+ exports.Block = Block;
1906
+ exports.Box = Box;
1907
+ exports.Breadcrumb = Breadcrumb;
1908
+ exports.Button = Button;
1909
+ exports.Buttons = Buttons;
1910
+ exports.Card = Card;
1911
+ exports.Cell = Cell;
1912
+ exports.Column = Column;
1913
+ exports.Columns = Columns;
1914
+ exports.Container = Container;
1915
+ exports.Content = Content;
1916
+ exports.Delete = Delete;
1917
+ exports.Dropdown = Dropdown;
1918
+ exports.DropdownDivider = DropdownDivider;
1919
+ exports.DropdownItem = DropdownItem;
1920
+ exports.Grid = Grid;
1921
+ exports.Hero = Hero;
1922
+ exports.HeroBody = HeroBody;
1923
+ exports.HeroFoot = HeroFoot;
1924
+ exports.HeroHead = HeroHead;
1925
+ exports.Icon = Icon;
1926
+ exports.IconText = IconText;
1927
+ exports.Image = Image;
1928
+ exports.Media = Media;
1929
+ exports.MediaContent = MediaContent;
1930
+ exports.MediaLeft = MediaLeft;
1931
+ exports.MediaRight = MediaRight;
1932
+ exports.Menu = Menu;
1933
+ exports.MenuItem = MenuItem;
1934
+ exports.MenuLabel = MenuLabel;
1935
+ exports.MenuList = MenuList;
1936
+ exports.Message = Message;
1937
+ exports.Modal = Modal;
1938
+ exports.Navbar = Navbar;
1939
+ exports.NavbarBrand = NavbarBrand;
1940
+ exports.NavbarBurger = NavbarBurger;
1941
+ exports.NavbarDivider = NavbarDivider;
1942
+ exports.NavbarDropdown = NavbarDropdown;
1943
+ exports.NavbarDropdownMenu = NavbarDropdownMenu;
1944
+ exports.NavbarEnd = NavbarEnd;
1945
+ exports.NavbarItem = NavbarItem;
1946
+ exports.NavbarMenu = NavbarMenu;
1947
+ exports.NavbarStart = NavbarStart;
1948
+ exports.Notification = Notification;
1949
+ exports.Pagination = Pagination;
1950
+ exports.PaginationEllipsis = PaginationEllipsis;
1951
+ exports.PaginationLink = PaginationLink;
1952
+ exports.PaginationList = PaginationList;
1953
+ exports.PaginationNext = PaginationNext;
1954
+ exports.PaginationPrevious = PaginationPrevious;
1955
+ exports.Panel = Panel;
1956
+ exports.PanelBlock = PanelBlock;
1957
+ exports.PanelButtonBlock = PanelButtonBlock;
1958
+ exports.PanelCheckboxBlock = PanelCheckboxBlock;
1959
+ exports.PanelHeading = PanelHeading;
1960
+ exports.PanelIcon = PanelIcon;
1961
+ exports.PanelInputBlock = PanelInputBlock;
1962
+ exports.PanelTabs = PanelTabs;
1963
+ exports.Progress = Progress;
1964
+ exports.Section = Section;
1965
+ exports.SubTitle = SubTitle;
1966
+ exports.TabItem = TabItem;
1967
+ exports.TabList = TabList;
1968
+ exports.Table = Table;
1969
+ exports.Tabs = Tabs;
1970
+ exports.Tag = Tag;
1971
+ exports.Tags = Tags;
1972
+ exports.Tbody = Tbody;
1973
+ exports.Td = Td;
1974
+ exports.Tfoot = Tfoot;
1975
+ exports.Th = Th;
1976
+ exports.Thead = Thead;
1977
+ exports.Title = Title;
1978
+ exports.Tr = Tr;
1979
+ exports.__test_exports__ = __test_exports__;
1980
+ exports.classNames = classNames;
1981
+ exports.isBrowser = isBrowser;
1982
+ exports.useBulmaClasses = useBulmaClasses;
1983
+ exports.validAlignContents = validAlignContents;
1984
+ exports.validAlignItems = validAlignItems;
1985
+ exports.validAlignSelfs = validAlignSelfs;
1986
+ exports.validAlignments = validAlignments$1;
1987
+ exports.validColorShades = validColorShades;
1988
+ exports.validColors = validColors;
1989
+ exports.validDisplays = validDisplays;
1990
+ exports.validFlexDirections = validFlexDirections;
1991
+ exports.validFlexGrowShrink = validFlexGrowShrink;
1992
+ exports.validFlexWraps = validFlexWraps;
1993
+ exports.validFontFamilies = validFontFamilies;
1994
+ exports.validJustifyContents = validJustifyContents;
1995
+ exports.validSizes = validSizes$1;
1996
+ exports.validTableColors = validTableColors;
1997
+ exports.validTextSizes = validTextSizes;
1998
+ exports.validTextTransforms = validTextTransforms;
1999
+ exports.validTextWeights = validTextWeights;
2000
+ exports.validViewports = validViewports;
2001
+ exports.validVisibilities = validVisibilities;
2002
+ //# sourceMappingURL=index.cjs.js.map