@allxsmith/bestax-bulma 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +169 -562
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +169 -563
- package/dist/index.esm.js.map +1 -1
- package/dist/types/elements/Icon.d.ts +1 -0
- package/dist/types/elements/SubTitle.d.ts +3 -1
- package/dist/types/elements/Title.d.ts +3 -1
- package/dist/types/helpers/Config.d.ts +5 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,436 +1,10 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
1
2
|
import React, { createContext, useContext, useMemo, useState, useRef, useEffect, forwardRef } from 'react';
|
|
2
3
|
|
|
3
|
-
var jsxRuntime = {exports: {}};
|
|
4
|
-
|
|
5
|
-
var reactJsxRuntime_production = {};
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @license React
|
|
9
|
-
* react-jsx-runtime.production.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
var hasRequiredReactJsxRuntime_production;
|
|
18
|
-
|
|
19
|
-
function requireReactJsxRuntime_production () {
|
|
20
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
21
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
22
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
23
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
24
|
-
function jsxProd(type, config, maybeKey) {
|
|
25
|
-
var key = null;
|
|
26
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
27
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
28
|
-
if ("key" in config) {
|
|
29
|
-
maybeKey = {};
|
|
30
|
-
for (var propName in config)
|
|
31
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
32
|
-
} else maybeKey = config;
|
|
33
|
-
config = maybeKey.ref;
|
|
34
|
-
return {
|
|
35
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
36
|
-
type: type,
|
|
37
|
-
key: key,
|
|
38
|
-
ref: void 0 !== config ? config : null,
|
|
39
|
-
props: maybeKey
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
43
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
44
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
45
|
-
return reactJsxRuntime_production;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var reactJsxRuntime_development = {};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @license React
|
|
52
|
-
* react-jsx-runtime.development.js
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
var hasRequiredReactJsxRuntime_development;
|
|
61
|
-
|
|
62
|
-
function requireReactJsxRuntime_development () {
|
|
63
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
64
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
65
|
-
"production" !== process.env.NODE_ENV &&
|
|
66
|
-
(function () {
|
|
67
|
-
function getComponentNameFromType(type) {
|
|
68
|
-
if (null == type) return null;
|
|
69
|
-
if ("function" === typeof type)
|
|
70
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
71
|
-
? null
|
|
72
|
-
: type.displayName || type.name || null;
|
|
73
|
-
if ("string" === typeof type) return type;
|
|
74
|
-
switch (type) {
|
|
75
|
-
case REACT_FRAGMENT_TYPE:
|
|
76
|
-
return "Fragment";
|
|
77
|
-
case REACT_PROFILER_TYPE:
|
|
78
|
-
return "Profiler";
|
|
79
|
-
case REACT_STRICT_MODE_TYPE:
|
|
80
|
-
return "StrictMode";
|
|
81
|
-
case REACT_SUSPENSE_TYPE:
|
|
82
|
-
return "Suspense";
|
|
83
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
84
|
-
return "SuspenseList";
|
|
85
|
-
case REACT_ACTIVITY_TYPE:
|
|
86
|
-
return "Activity";
|
|
87
|
-
}
|
|
88
|
-
if ("object" === typeof type)
|
|
89
|
-
switch (
|
|
90
|
-
("number" === typeof type.tag &&
|
|
91
|
-
console.error(
|
|
92
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
93
|
-
),
|
|
94
|
-
type.$$typeof)
|
|
95
|
-
) {
|
|
96
|
-
case REACT_PORTAL_TYPE:
|
|
97
|
-
return "Portal";
|
|
98
|
-
case REACT_CONTEXT_TYPE:
|
|
99
|
-
return (type.displayName || "Context") + ".Provider";
|
|
100
|
-
case REACT_CONSUMER_TYPE:
|
|
101
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
102
|
-
case REACT_FORWARD_REF_TYPE:
|
|
103
|
-
var innerType = type.render;
|
|
104
|
-
type = type.displayName;
|
|
105
|
-
type ||
|
|
106
|
-
((type = innerType.displayName || innerType.name || ""),
|
|
107
|
-
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
108
|
-
return type;
|
|
109
|
-
case REACT_MEMO_TYPE:
|
|
110
|
-
return (
|
|
111
|
-
(innerType = type.displayName || null),
|
|
112
|
-
null !== innerType
|
|
113
|
-
? innerType
|
|
114
|
-
: getComponentNameFromType(type.type) || "Memo"
|
|
115
|
-
);
|
|
116
|
-
case REACT_LAZY_TYPE:
|
|
117
|
-
innerType = type._payload;
|
|
118
|
-
type = type._init;
|
|
119
|
-
try {
|
|
120
|
-
return getComponentNameFromType(type(innerType));
|
|
121
|
-
} catch (x) {}
|
|
122
|
-
}
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
function testStringCoercion(value) {
|
|
126
|
-
return "" + value;
|
|
127
|
-
}
|
|
128
|
-
function checkKeyStringCoercion(value) {
|
|
129
|
-
try {
|
|
130
|
-
testStringCoercion(value);
|
|
131
|
-
var JSCompiler_inline_result = !1;
|
|
132
|
-
} catch (e) {
|
|
133
|
-
JSCompiler_inline_result = true;
|
|
134
|
-
}
|
|
135
|
-
if (JSCompiler_inline_result) {
|
|
136
|
-
JSCompiler_inline_result = console;
|
|
137
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
138
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
139
|
-
("function" === typeof Symbol &&
|
|
140
|
-
Symbol.toStringTag &&
|
|
141
|
-
value[Symbol.toStringTag]) ||
|
|
142
|
-
value.constructor.name ||
|
|
143
|
-
"Object";
|
|
144
|
-
JSCompiler_temp_const.call(
|
|
145
|
-
JSCompiler_inline_result,
|
|
146
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
147
|
-
JSCompiler_inline_result$jscomp$0
|
|
148
|
-
);
|
|
149
|
-
return testStringCoercion(value);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function getTaskName(type) {
|
|
153
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
154
|
-
if (
|
|
155
|
-
"object" === typeof type &&
|
|
156
|
-
null !== type &&
|
|
157
|
-
type.$$typeof === REACT_LAZY_TYPE
|
|
158
|
-
)
|
|
159
|
-
return "<...>";
|
|
160
|
-
try {
|
|
161
|
-
var name = getComponentNameFromType(type);
|
|
162
|
-
return name ? "<" + name + ">" : "<...>";
|
|
163
|
-
} catch (x) {
|
|
164
|
-
return "<...>";
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
function getOwner() {
|
|
168
|
-
var dispatcher = ReactSharedInternals.A;
|
|
169
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
170
|
-
}
|
|
171
|
-
function UnknownOwner() {
|
|
172
|
-
return Error("react-stack-top-frame");
|
|
173
|
-
}
|
|
174
|
-
function hasValidKey(config) {
|
|
175
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
176
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
177
|
-
if (getter && getter.isReactWarning) return false;
|
|
178
|
-
}
|
|
179
|
-
return void 0 !== config.key;
|
|
180
|
-
}
|
|
181
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
182
|
-
function warnAboutAccessingKey() {
|
|
183
|
-
specialPropKeyWarningShown ||
|
|
184
|
-
((specialPropKeyWarningShown = true),
|
|
185
|
-
console.error(
|
|
186
|
-
"%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)",
|
|
187
|
-
displayName
|
|
188
|
-
));
|
|
189
|
-
}
|
|
190
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
191
|
-
Object.defineProperty(props, "key", {
|
|
192
|
-
get: warnAboutAccessingKey,
|
|
193
|
-
configurable: true
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
197
|
-
var componentName = getComponentNameFromType(this.type);
|
|
198
|
-
didWarnAboutElementRef[componentName] ||
|
|
199
|
-
((didWarnAboutElementRef[componentName] = true),
|
|
200
|
-
console.error(
|
|
201
|
-
"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."
|
|
202
|
-
));
|
|
203
|
-
componentName = this.props.ref;
|
|
204
|
-
return void 0 !== componentName ? componentName : null;
|
|
205
|
-
}
|
|
206
|
-
function ReactElement(
|
|
207
|
-
type,
|
|
208
|
-
key,
|
|
209
|
-
self,
|
|
210
|
-
source,
|
|
211
|
-
owner,
|
|
212
|
-
props,
|
|
213
|
-
debugStack,
|
|
214
|
-
debugTask
|
|
215
|
-
) {
|
|
216
|
-
self = props.ref;
|
|
217
|
-
type = {
|
|
218
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
219
|
-
type: type,
|
|
220
|
-
key: key,
|
|
221
|
-
props: props,
|
|
222
|
-
_owner: owner
|
|
223
|
-
};
|
|
224
|
-
null !== (void 0 !== self ? self : null)
|
|
225
|
-
? Object.defineProperty(type, "ref", {
|
|
226
|
-
enumerable: false,
|
|
227
|
-
get: elementRefGetterWithDeprecationWarning
|
|
228
|
-
})
|
|
229
|
-
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
230
|
-
type._store = {};
|
|
231
|
-
Object.defineProperty(type._store, "validated", {
|
|
232
|
-
configurable: false,
|
|
233
|
-
enumerable: false,
|
|
234
|
-
writable: true,
|
|
235
|
-
value: 0
|
|
236
|
-
});
|
|
237
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
238
|
-
configurable: false,
|
|
239
|
-
enumerable: false,
|
|
240
|
-
writable: true,
|
|
241
|
-
value: null
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(type, "_debugStack", {
|
|
244
|
-
configurable: false,
|
|
245
|
-
enumerable: false,
|
|
246
|
-
writable: true,
|
|
247
|
-
value: debugStack
|
|
248
|
-
});
|
|
249
|
-
Object.defineProperty(type, "_debugTask", {
|
|
250
|
-
configurable: false,
|
|
251
|
-
enumerable: false,
|
|
252
|
-
writable: true,
|
|
253
|
-
value: debugTask
|
|
254
|
-
});
|
|
255
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
256
|
-
return type;
|
|
257
|
-
}
|
|
258
|
-
function jsxDEVImpl(
|
|
259
|
-
type,
|
|
260
|
-
config,
|
|
261
|
-
maybeKey,
|
|
262
|
-
isStaticChildren,
|
|
263
|
-
source,
|
|
264
|
-
self,
|
|
265
|
-
debugStack,
|
|
266
|
-
debugTask
|
|
267
|
-
) {
|
|
268
|
-
var children = config.children;
|
|
269
|
-
if (void 0 !== children)
|
|
270
|
-
if (isStaticChildren)
|
|
271
|
-
if (isArrayImpl(children)) {
|
|
272
|
-
for (
|
|
273
|
-
isStaticChildren = 0;
|
|
274
|
-
isStaticChildren < children.length;
|
|
275
|
-
isStaticChildren++
|
|
276
|
-
)
|
|
277
|
-
validateChildKeys(children[isStaticChildren]);
|
|
278
|
-
Object.freeze && Object.freeze(children);
|
|
279
|
-
} else
|
|
280
|
-
console.error(
|
|
281
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
282
|
-
);
|
|
283
|
-
else validateChildKeys(children);
|
|
284
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
285
|
-
children = getComponentNameFromType(type);
|
|
286
|
-
var keys = Object.keys(config).filter(function (k) {
|
|
287
|
-
return "key" !== k;
|
|
288
|
-
});
|
|
289
|
-
isStaticChildren =
|
|
290
|
-
0 < keys.length
|
|
291
|
-
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
|
292
|
-
: "{key: someKey}";
|
|
293
|
-
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
294
|
-
((keys =
|
|
295
|
-
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
296
|
-
console.error(
|
|
297
|
-
'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} />',
|
|
298
|
-
isStaticChildren,
|
|
299
|
-
children,
|
|
300
|
-
keys,
|
|
301
|
-
children
|
|
302
|
-
),
|
|
303
|
-
(didWarnAboutKeySpread[children + isStaticChildren] = true));
|
|
304
|
-
}
|
|
305
|
-
children = null;
|
|
306
|
-
void 0 !== maybeKey &&
|
|
307
|
-
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
308
|
-
hasValidKey(config) &&
|
|
309
|
-
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
310
|
-
if ("key" in config) {
|
|
311
|
-
maybeKey = {};
|
|
312
|
-
for (var propName in config)
|
|
313
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
314
|
-
} else maybeKey = config;
|
|
315
|
-
children &&
|
|
316
|
-
defineKeyPropWarningGetter(
|
|
317
|
-
maybeKey,
|
|
318
|
-
"function" === typeof type
|
|
319
|
-
? type.displayName || type.name || "Unknown"
|
|
320
|
-
: type
|
|
321
|
-
);
|
|
322
|
-
return ReactElement(
|
|
323
|
-
type,
|
|
324
|
-
children,
|
|
325
|
-
self,
|
|
326
|
-
source,
|
|
327
|
-
getOwner(),
|
|
328
|
-
maybeKey,
|
|
329
|
-
debugStack,
|
|
330
|
-
debugTask
|
|
331
|
-
);
|
|
332
|
-
}
|
|
333
|
-
function validateChildKeys(node) {
|
|
334
|
-
"object" === typeof node &&
|
|
335
|
-
null !== node &&
|
|
336
|
-
node.$$typeof === REACT_ELEMENT_TYPE &&
|
|
337
|
-
node._store &&
|
|
338
|
-
(node._store.validated = 1);
|
|
339
|
-
}
|
|
340
|
-
var React$1 = React,
|
|
341
|
-
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
342
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
343
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
344
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
345
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
346
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
347
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
348
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
349
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
350
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
351
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
352
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
353
|
-
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
354
|
-
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
355
|
-
ReactSharedInternals =
|
|
356
|
-
React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
357
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
358
|
-
isArrayImpl = Array.isArray,
|
|
359
|
-
createTask = console.createTask
|
|
360
|
-
? console.createTask
|
|
361
|
-
: function () {
|
|
362
|
-
return null;
|
|
363
|
-
};
|
|
364
|
-
React$1 = {
|
|
365
|
-
"react-stack-bottom-frame": function (callStackForError) {
|
|
366
|
-
return callStackForError();
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
var specialPropKeyWarningShown;
|
|
370
|
-
var didWarnAboutElementRef = {};
|
|
371
|
-
var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
|
|
372
|
-
React$1,
|
|
373
|
-
UnknownOwner
|
|
374
|
-
)();
|
|
375
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
376
|
-
var didWarnAboutKeySpread = {};
|
|
377
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
378
|
-
reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
|
|
379
|
-
var trackActualOwner =
|
|
380
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
381
|
-
return jsxDEVImpl(
|
|
382
|
-
type,
|
|
383
|
-
config,
|
|
384
|
-
maybeKey,
|
|
385
|
-
false,
|
|
386
|
-
source,
|
|
387
|
-
self,
|
|
388
|
-
trackActualOwner
|
|
389
|
-
? Error("react-stack-top-frame")
|
|
390
|
-
: unknownOwnerDebugStack,
|
|
391
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
392
|
-
);
|
|
393
|
-
};
|
|
394
|
-
reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
|
|
395
|
-
var trackActualOwner =
|
|
396
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
397
|
-
return jsxDEVImpl(
|
|
398
|
-
type,
|
|
399
|
-
config,
|
|
400
|
-
maybeKey,
|
|
401
|
-
true,
|
|
402
|
-
source,
|
|
403
|
-
self,
|
|
404
|
-
trackActualOwner
|
|
405
|
-
? Error("react-stack-top-frame")
|
|
406
|
-
: unknownOwnerDebugStack,
|
|
407
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
408
|
-
);
|
|
409
|
-
};
|
|
410
|
-
})();
|
|
411
|
-
return reactJsxRuntime_development;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
var hasRequiredJsxRuntime;
|
|
415
|
-
|
|
416
|
-
function requireJsxRuntime () {
|
|
417
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
418
|
-
hasRequiredJsxRuntime = 1;
|
|
419
|
-
|
|
420
|
-
if (process.env.NODE_ENV === 'production') {
|
|
421
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
422
|
-
} else {
|
|
423
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
424
|
-
}
|
|
425
|
-
return jsxRuntime.exports;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
429
|
-
|
|
430
4
|
const ConfigContext = createContext({});
|
|
431
5
|
const useConfig = () => useContext(ConfigContext);
|
|
432
|
-
const ConfigProvider = ({ classPrefix, children, }) => {
|
|
433
|
-
return (
|
|
6
|
+
const ConfigProvider = ({ classPrefix, iconLibrary, children, }) => {
|
|
7
|
+
return (jsx(ConfigContext.Provider, { value: { classPrefix, iconLibrary }, children: children }));
|
|
434
8
|
};
|
|
435
9
|
const useClassPrefix = () => {
|
|
436
10
|
const { classPrefix } = useConfig();
|
|
@@ -440,6 +14,10 @@ const usePrefixedClass = () => {
|
|
|
440
14
|
const { classPrefix } = useConfig();
|
|
441
15
|
return (className) => classPrefix ? `${classPrefix}${className}` : className;
|
|
442
16
|
};
|
|
17
|
+
const useIconLibrary = () => {
|
|
18
|
+
const { iconLibrary } = useConfig();
|
|
19
|
+
return iconLibrary;
|
|
20
|
+
};
|
|
443
21
|
|
|
444
22
|
function classNames(...args) {
|
|
445
23
|
const classSet = new Set();
|
|
@@ -943,7 +521,7 @@ const Column = ({ className, textColor, color: _fieldColor, bgColor, size, sizeM
|
|
|
943
521
|
'is-narrow-fullhd': !!isNarrowFullhd,
|
|
944
522
|
});
|
|
945
523
|
const columnClasses = classNames(mainClass, columnSpecificClasses, className, bulmaHelperClasses);
|
|
946
|
-
return (
|
|
524
|
+
return (jsx("div", { className: columnClasses, ...rest, children: children }));
|
|
947
525
|
};
|
|
948
526
|
|
|
949
527
|
const Columns = ({ className, textColor, color: _fieldColor, bgColor, isCentered, isGapless, isMultiline, isVCentered, isMobile, isDesktop, gapSize, gapSizeMobile, gapSizeTablet, gapSizeDesktop, gapSizeWidescreen, gapSizeFullhd, children, ...props }) => {
|
|
@@ -968,7 +546,7 @@ const Columns = ({ className, textColor, color: _fieldColor, bgColor, isCentered
|
|
|
968
546
|
'is-desktop': !!isDesktop,
|
|
969
547
|
});
|
|
970
548
|
const columnsClasses = classNames(mainClass, gapClasses, className, bulmaHelperClasses);
|
|
971
|
-
return (
|
|
549
|
+
return (jsx("div", { className: columnsClasses, ...rest, children: children }));
|
|
972
550
|
};
|
|
973
551
|
|
|
974
552
|
const validBreadcrumbAlignments = ['centered', 'right'];
|
|
@@ -987,14 +565,14 @@ const Breadcrumb = ({ className, alignment, separator, size, children, ...props
|
|
|
987
565
|
[`is-${size}`]: size && validBreadcrumbSizes.includes(size),
|
|
988
566
|
});
|
|
989
567
|
const breadcrumbClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
990
|
-
return (
|
|
568
|
+
return (jsx("nav", { className: breadcrumbClasses, "aria-label": "breadcrumbs", ...rest, children: jsx("ul", { children: children }) }));
|
|
991
569
|
};
|
|
992
570
|
|
|
993
571
|
const renderFooter = (footer) => {
|
|
994
572
|
if (!footer)
|
|
995
573
|
return null;
|
|
996
574
|
const items = Array.isArray(footer) ? footer : [footer];
|
|
997
|
-
return items.map((item, idx) => (
|
|
575
|
+
return items.map((item, idx) => (jsx("span", { className: "card-footer-item", children: item }, idx)));
|
|
998
576
|
};
|
|
999
577
|
const hasCompoundComponents = (children) => {
|
|
1000
578
|
return React.Children.toArray(children).some(child => {
|
|
@@ -1021,33 +599,33 @@ const CardComponent = ({ className, children, textColor, bgColor, hasShadow = tr
|
|
|
1021
599
|
const renderHeader = (header, headerIcon, headerCentered) => {
|
|
1022
600
|
if (!header && !headerIcon)
|
|
1023
601
|
return null;
|
|
1024
|
-
return (
|
|
602
|
+
return (jsxs("header", { className: "card-header", children: [header && (jsx("div", { className: classNames('card-header-title', {
|
|
1025
603
|
'is-centered': headerCentered,
|
|
1026
604
|
}), children: header })), headerIcon] }));
|
|
1027
605
|
};
|
|
1028
|
-
return (
|
|
606
|
+
return (jsxs("div", { className: cardClasses, ...rest, children: [renderHeader(header, headerIcon, headerCentered), image && (jsx("div", { className: "card-image", children: typeof image === 'string' ? (jsx("figure", { className: "image", children: jsx("img", { src: image, alt: imageAlt !== null && imageAlt !== void 0 ? imageAlt : 'Card image' }) })) : (image) })), typeof children !== 'undefined' &&
|
|
1029
607
|
children !== null &&
|
|
1030
608
|
children !== '' &&
|
|
1031
|
-
!hasCompoundComponents(children) && (
|
|
609
|
+
!hasCompoundComponents(children) && (jsx("div", { className: "card-content", children: children })), typeof children !== 'undefined' &&
|
|
1032
610
|
children !== null &&
|
|
1033
611
|
children !== '' &&
|
|
1034
612
|
hasCompoundComponents(children) &&
|
|
1035
|
-
children, footer && (
|
|
613
|
+
children, footer && (jsx("footer", { className: "card-footer", children: renderFooter(footer) }))] }));
|
|
1036
614
|
};
|
|
1037
615
|
const CardHeader = ({ className, children, centered, ...props }) => {
|
|
1038
616
|
const hasHeaderTitle = React.Children.toArray(children).some(child => React.isValidElement(child) &&
|
|
1039
617
|
typeof child.type === 'function' &&
|
|
1040
618
|
child.type === CardHeaderTitle);
|
|
1041
|
-
return (
|
|
619
|
+
return (jsx("header", { className: classNames('card-header', className), ...props, children: hasHeaderTitle ? (children) : (jsx("div", { className: classNames('card-header-title', {
|
|
1042
620
|
'is-centered': centered,
|
|
1043
621
|
}), children: children })) }));
|
|
1044
622
|
};
|
|
1045
|
-
const CardHeaderTitle = ({ className, children, centered, ...props }) => (
|
|
1046
|
-
const CardHeaderIcon = ({ className, children, ...props }) => (
|
|
1047
|
-
const CardImage = ({ className, children, ...props }) => (
|
|
1048
|
-
const CardContent = ({ className, children, ...props }) => (
|
|
1049
|
-
const CardFooter = ({ className, children, ...props }) => (
|
|
1050
|
-
const CardFooterItem = ({ className, children, ...props }) => (
|
|
623
|
+
const CardHeaderTitle = ({ className, children, centered, ...props }) => (jsx("div", { className: classNames('card-header-title', { 'is-centered': centered }, className), ...props, children: children }));
|
|
624
|
+
const CardHeaderIcon = ({ className, children, ...props }) => (jsx("button", { className: classNames('card-header-icon', className), "aria-label": props['aria-label'] || 'more options', ...props, children: children }));
|
|
625
|
+
const CardImage = ({ className, children, ...props }) => (jsx("div", { className: classNames('card-image', className), ...props, children: children }));
|
|
626
|
+
const CardContent = ({ className, children, ...props }) => (jsx("div", { className: classNames('card-content', className), ...props, children: children }));
|
|
627
|
+
const CardFooter = ({ className, children, ...props }) => (jsx("footer", { className: classNames('card-footer', className), ...props, children: children }));
|
|
628
|
+
const CardFooterItem = ({ className, children, ...props }) => (jsx("span", { className: classNames('card-footer-item', className), ...props, children: children }));
|
|
1051
629
|
const CardWithSubComponents = CardComponent;
|
|
1052
630
|
const CardHeaderWithTitle = CardHeader;
|
|
1053
631
|
CardHeaderWithTitle.Title = CardHeaderTitle;
|
|
@@ -1105,13 +683,13 @@ const DropdownComponent = ({ label, children, className, menuClassName, active:
|
|
|
1105
683
|
}
|
|
1106
684
|
};
|
|
1107
685
|
const dropdownClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1108
|
-
return (
|
|
686
|
+
return (jsxs("div", { className: dropdownClasses, ref: dropdownRef, id: id, "data-testid": "dropdown-root", ...rest, children: [jsx("div", { className: "dropdown-trigger", children: jsxs("button", { className: buttonClass, "aria-haspopup": "true", "aria-controls": id ? `${id}-menu` : undefined, "aria-expanded": active, onClick: handleToggle, disabled: disabled, type: "button", children: [jsx("span", { children: label }), jsx("span", { className: "icon is-small", "aria-hidden": "true", children: jsx("i", { className: "fas fa-angle-down" }) })] }) }), jsx("div", { className: classNames('dropdown-menu', menuClassName), id: id ? `${id}-menu` : undefined, role: "menu", "data-testid": "dropdown-menu", children: jsx("div", { className: "dropdown-content", onClick: handleMenuClick, tabIndex: -1, children: children }) })] }));
|
|
1109
687
|
};
|
|
1110
688
|
const DropdownItem = ({ children, active, className, as: Component = 'a', ...props }) => {
|
|
1111
689
|
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1112
|
-
return (
|
|
690
|
+
return (jsx(Component, { className: classNames('dropdown-item', bulmaHelperClasses, { 'is-active': active }, className), tabIndex: 0, role: "menuitem", "data-testid": "dropdown-item", ...rest, children: children }));
|
|
1113
691
|
};
|
|
1114
|
-
const DropdownDivider = () => (
|
|
692
|
+
const DropdownDivider = () => (jsx("hr", { className: "dropdown-divider" }));
|
|
1115
693
|
const Dropdown = Object.assign(DropdownComponent, {
|
|
1116
694
|
Item: DropdownItem,
|
|
1117
695
|
Divider: DropdownDivider,
|
|
@@ -1121,11 +699,11 @@ const MenuListLevelContext = createContext(0);
|
|
|
1121
699
|
const MenuComponent = ({ className, children, ...props }) => {
|
|
1122
700
|
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1123
701
|
const bulmaClasses = usePrefixedClassNames('menu');
|
|
1124
|
-
return (
|
|
702
|
+
return (jsx("aside", { className: classNames(bulmaClasses, bulmaHelperClasses, className), ...rest, children: children }));
|
|
1125
703
|
};
|
|
1126
704
|
const MenuLabel = ({ className, children, ...props }) => {
|
|
1127
705
|
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1128
|
-
return (
|
|
706
|
+
return (jsx("p", { className: classNames('menu-label', className, bulmaHelperClasses), ...rest, children: children }));
|
|
1129
707
|
};
|
|
1130
708
|
const MenuList = ({ className, children, ...props }) => {
|
|
1131
709
|
const level = useContext(MenuListLevelContext);
|
|
@@ -1133,7 +711,7 @@ const MenuList = ({ className, children, ...props }) => {
|
|
|
1133
711
|
const ulClass = classNames(className, bulmaHelperClasses, {
|
|
1134
712
|
'menu-list': level === 0,
|
|
1135
713
|
});
|
|
1136
|
-
return (
|
|
714
|
+
return (jsx(MenuListLevelContext.Provider, { value: level + 1, children: jsx("ul", { className: ulClass, ...rest, children: children }) }));
|
|
1137
715
|
};
|
|
1138
716
|
const MenuItem = ({ className, children, active, href, as: Component = 'a', 'data-testid': testId, ...rest }) => {
|
|
1139
717
|
const { bulmaHelperClasses, rest: bulmaRest } = useBulmaClasses(rest);
|
|
@@ -1155,7 +733,7 @@ const MenuItem = ({ className, children, active, href, as: Component = 'a', 'dat
|
|
|
1155
733
|
if (Object.prototype.hasOwnProperty.call(rest, 'to')) {
|
|
1156
734
|
linkProps.to = rest.to;
|
|
1157
735
|
}
|
|
1158
|
-
return (
|
|
736
|
+
return (jsxs("li", { className: className, "data-testid": testId, style: style, id: id, title: title, role: role, tabIndex: tabIndex, children: [jsx(Component, { className: itemClass, ...linkProps, children: labelChildren }), nestedMenuLists] }));
|
|
1159
737
|
};
|
|
1160
738
|
const Menu = Object.assign(MenuComponent, {
|
|
1161
739
|
Label: MenuLabel,
|
|
@@ -1174,10 +752,10 @@ const MessageComponent = ({ className, title, textColor, color, bgColor, onClose
|
|
|
1174
752
|
});
|
|
1175
753
|
const deleteClass = usePrefixedClassNames('delete');
|
|
1176
754
|
const messageClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1177
|
-
return (
|
|
755
|
+
return (jsxs("article", { className: messageClasses, ...rest, "data-testid": "message", children: [(title || onClose) && (jsxs("div", { className: "message-header", children: [title && jsx("span", { children: title }), onClose && (jsx("button", { className: deleteClass, "aria-label": "delete", onClick: onClose, type: "button", "data-testid": "message-close" }))] })), children && (jsx("div", { className: "message-body", "data-testid": "message-body", children: children }))] }));
|
|
1178
756
|
};
|
|
1179
|
-
const MessageHeader = ({ className, children, ...props }) => (
|
|
1180
|
-
const MessageBody = ({ className, children, ...props }) => (
|
|
757
|
+
const MessageHeader = ({ className, children, ...props }) => (jsx("div", { className: classNames('message-header', className), ...props, children: children }));
|
|
758
|
+
const MessageBody = ({ className, children, ...props }) => (jsx("div", { className: classNames('message-body', className), ...props, children: children }));
|
|
1181
759
|
const MessageWithSubComponents = MessageComponent;
|
|
1182
760
|
MessageWithSubComponents.Header = MessageHeader;
|
|
1183
761
|
MessageWithSubComponents.Body = MessageBody;
|
|
@@ -1200,7 +778,7 @@ const Modal = ({ active = false, onClose, className, textColor, bgColor, modalCa
|
|
|
1200
778
|
});
|
|
1201
779
|
const deleteClass = usePrefixedClassNames('delete');
|
|
1202
780
|
const modalClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1203
|
-
return (
|
|
781
|
+
return (jsxs("div", { className: modalClasses, ...rest, "data-testid": "modal", children: [jsx("div", { className: "modal-background", onClick: onClose, "data-testid": "modal-background" }), isModalCard ? (jsxs("div", { className: "modal-card", children: [modalCardTitle && (jsxs("header", { className: "modal-card-head", children: [jsx("p", { className: "modal-card-title", children: modalCardTitle }), onClose && (jsx("button", { className: deleteClass, "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close" }))] })), jsx("section", { className: "modal-card-body", "data-testid": "modal-body", children: children }), modalCardFoot && (jsx("footer", { className: "modal-card-foot", children: modalCardFoot }))] })) : (jsx("div", { className: "modal-content", "data-testid": "modal-content", children: children })), (!isModalCard || (!modalCardTitle && onClose)) && onClose && (jsx("button", { className: "modal-close is-large", "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close-float" }))] }));
|
|
1204
782
|
};
|
|
1205
783
|
|
|
1206
784
|
const Navbar = ({ className, textColor, bgColor, color, transparent, fixed, children, ...props }) => {
|
|
@@ -1215,14 +793,14 @@ const Navbar = ({ className, textColor, bgColor, color, transparent, fixed, chil
|
|
|
1215
793
|
[`is-fixed-${fixed}`]: fixed,
|
|
1216
794
|
});
|
|
1217
795
|
const navbarClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1218
|
-
return (
|
|
796
|
+
return (jsx("nav", { className: navbarClasses, role: "navigation", "aria-label": "main navigation", ...rest, children: children }));
|
|
1219
797
|
};
|
|
1220
798
|
const NavbarBrand = ({ className, children, textColor, ...props }) => {
|
|
1221
799
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1222
800
|
color: textColor,
|
|
1223
801
|
...props,
|
|
1224
802
|
});
|
|
1225
|
-
return (
|
|
803
|
+
return (jsx("div", { className: classNames('navbar-brand', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1226
804
|
};
|
|
1227
805
|
const NavbarItem = ({ className, as: Component = 'a', active, textColor, bgColor, children, ...props }) => {
|
|
1228
806
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1230,7 +808,7 @@ const NavbarItem = ({ className, as: Component = 'a', active, textColor, bgColor
|
|
|
1230
808
|
backgroundColor: bgColor,
|
|
1231
809
|
...props,
|
|
1232
810
|
});
|
|
1233
|
-
return (
|
|
811
|
+
return (jsx(Component, { className: classNames('navbar-item', bulmaHelperClasses, className, {
|
|
1234
812
|
'is-active': active,
|
|
1235
813
|
}), ...rest, children: children }));
|
|
1236
814
|
};
|
|
@@ -1239,15 +817,15 @@ const NavbarBurger = ({ className, active, children, ...props }) => {
|
|
|
1239
817
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1240
818
|
...props,
|
|
1241
819
|
});
|
|
1242
|
-
return (
|
|
820
|
+
return (jsxs("button", { type: "button", className: classNames('navbar-burger', bulmaHelperClasses, className, {
|
|
1243
821
|
'is-active': active,
|
|
1244
|
-
}), "aria-label": props['aria-label'] || 'menu', "aria-expanded": (_a = props['aria-expanded']) !== null && _a !== void 0 ? _a : !!active, ...rest, children: [
|
|
822
|
+
}), "aria-label": props['aria-label'] || 'menu', "aria-expanded": (_a = props['aria-expanded']) !== null && _a !== void 0 ? _a : !!active, ...rest, children: [jsx("span", { "aria-hidden": "true" }), jsx("span", { "aria-hidden": "true" }), jsx("span", { "aria-hidden": "true" }), children] }));
|
|
1245
823
|
};
|
|
1246
824
|
const NavbarMenu = ({ className, active, children, ...props }) => {
|
|
1247
825
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1248
826
|
...props,
|
|
1249
827
|
});
|
|
1250
|
-
return (
|
|
828
|
+
return (jsx("div", { className: classNames('navbar-menu', bulmaHelperClasses, className, {
|
|
1251
829
|
'is-active': active,
|
|
1252
830
|
}), ...rest, children: children }));
|
|
1253
831
|
};
|
|
@@ -1255,25 +833,25 @@ const NavbarStart = ({ className, children, ...props }) => {
|
|
|
1255
833
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1256
834
|
...props,
|
|
1257
835
|
});
|
|
1258
|
-
return (
|
|
836
|
+
return (jsx("div", { className: classNames('navbar-start', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1259
837
|
};
|
|
1260
838
|
const NavbarEnd = ({ className, children, ...props }) => {
|
|
1261
839
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1262
840
|
...props,
|
|
1263
841
|
});
|
|
1264
|
-
return (
|
|
842
|
+
return (jsx("div", { className: classNames('navbar-end', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1265
843
|
};
|
|
1266
|
-
const NavbarDropdown = ({ className, right, up, hoverable, active, children, ...props }) => (
|
|
844
|
+
const NavbarDropdown = ({ className, right, up, hoverable, active, children, ...props }) => (jsx("div", { className: classNames('navbar-item', 'has-dropdown', {
|
|
1267
845
|
'is-right': right,
|
|
1268
846
|
'is-up': up,
|
|
1269
847
|
'is-hoverable': hoverable,
|
|
1270
848
|
'is-active': active,
|
|
1271
849
|
}, className), ...props, children: children }));
|
|
1272
|
-
const NavbarDropdownMenu = ({ className, right, up, children, ...props }) => (
|
|
850
|
+
const NavbarDropdownMenu = ({ className, right, up, children, ...props }) => (jsx("div", { className: classNames('navbar-dropdown', {
|
|
1273
851
|
'is-right': right,
|
|
1274
852
|
'is-up': up,
|
|
1275
853
|
}, className), ...props, children: children }));
|
|
1276
|
-
const NavbarDivider = props =>
|
|
854
|
+
const NavbarDivider = props => jsx("hr", { className: "navbar-divider", ...props });
|
|
1277
855
|
Navbar.Brand = NavbarBrand;
|
|
1278
856
|
Navbar.Item = NavbarItem;
|
|
1279
857
|
Navbar.Burger = NavbarBurger;
|
|
@@ -1284,7 +862,7 @@ Navbar.Dropdown = NavbarDropdown;
|
|
|
1284
862
|
Navbar.DropdownMenu = NavbarDropdownMenu;
|
|
1285
863
|
Navbar.Divider = NavbarDivider;
|
|
1286
864
|
|
|
1287
|
-
const PaginationPrevious = ({ className, disabled, children, ...props }) => (
|
|
865
|
+
const PaginationPrevious = ({ className, disabled, children, ...props }) => (jsx("a", { className: classNames('pagination-previous', className, {
|
|
1288
866
|
'is-disabled': disabled,
|
|
1289
867
|
}), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
|
|
1290
868
|
? e => {
|
|
@@ -1292,7 +870,7 @@ const PaginationPrevious = ({ className, disabled, children, ...props }) => (jsx
|
|
|
1292
870
|
e.stopPropagation();
|
|
1293
871
|
}
|
|
1294
872
|
: props.onClick, children: children }));
|
|
1295
|
-
const PaginationNext = ({ className, disabled, children, ...props }) => (
|
|
873
|
+
const PaginationNext = ({ className, disabled, children, ...props }) => (jsx("a", { className: classNames('pagination-next', className, {
|
|
1296
874
|
'is-disabled': disabled,
|
|
1297
875
|
}), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
|
|
1298
876
|
? e => {
|
|
@@ -1313,7 +891,7 @@ const Pagination = ({ color, textColor, bgColor, size, align, rounded, className
|
|
|
1313
891
|
'is-rounded': rounded,
|
|
1314
892
|
});
|
|
1315
893
|
const paginationClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1316
|
-
return (
|
|
894
|
+
return (jsx("nav", { className: paginationClasses, role: "navigation", "aria-label": "pagination", ...rest, children: children }));
|
|
1317
895
|
};
|
|
1318
896
|
const PaginationList = ({ className, textColor, bgColor, children, ...props }) => {
|
|
1319
897
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1321,7 +899,7 @@ const PaginationList = ({ className, textColor, bgColor, children, ...props }) =
|
|
|
1321
899
|
backgroundColor: bgColor,
|
|
1322
900
|
...props,
|
|
1323
901
|
});
|
|
1324
|
-
return (
|
|
902
|
+
return (jsx("ul", { className: classNames('pagination-list', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1325
903
|
};
|
|
1326
904
|
const PaginationLink = ({ className, textColor, bgColor, active, disabled, onClick, children, ...props }) => {
|
|
1327
905
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1339,12 +917,12 @@ const PaginationLink = ({ className, textColor, bgColor, active, disabled, onCli
|
|
|
1339
917
|
onClick(e);
|
|
1340
918
|
}
|
|
1341
919
|
};
|
|
1342
|
-
return (
|
|
920
|
+
return (jsx("li", { children: jsx("a", { className: classNames('pagination-link', bulmaHelperClasses, className, {
|
|
1343
921
|
'is-current': active,
|
|
1344
922
|
'is-disabled': disabled,
|
|
1345
923
|
}), "aria-current": active ? 'page' : undefined, "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, onClick: handleClick, ...rest, children: children }) }));
|
|
1346
924
|
};
|
|
1347
|
-
const PaginationEllipsis = props => (
|
|
925
|
+
const PaginationEllipsis = props => (jsx("li", { children: jsx("span", { className: "pagination-ellipsis", ...props, children: "\u2026" }) }));
|
|
1348
926
|
Pagination.Link = PaginationLink;
|
|
1349
927
|
Pagination.List = PaginationList;
|
|
1350
928
|
Pagination.Ellipsis = PaginationEllipsis;
|
|
@@ -1360,18 +938,18 @@ const Panel = ({ color, className, children, ...props }) => {
|
|
|
1360
938
|
[`is-${color}`]: color,
|
|
1361
939
|
});
|
|
1362
940
|
const panelClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1363
|
-
return (
|
|
941
|
+
return (jsx("nav", { className: panelClasses, ...rest, children: children }));
|
|
1364
942
|
};
|
|
1365
|
-
const PanelHeading = ({ className, children, ...props }) => (
|
|
1366
|
-
const PanelTabs = ({ className, children, ...props }) => (
|
|
1367
|
-
const PanelBlock = ({ className, active, children, ...props }) => (
|
|
1368
|
-
const PanelIcon = ({ className, children, ...props }) => (
|
|
943
|
+
const PanelHeading = ({ className, children, ...props }) => (jsx("p", { className: classNames('panel-heading', className), ...props, children: children }));
|
|
944
|
+
const PanelTabs = ({ className, children, ...props }) => (jsx("p", { className: classNames('panel-tabs', className), ...props, children: children }));
|
|
945
|
+
const PanelBlock = ({ className, active, children, ...props }) => (jsx("a", { className: classNames('panel-block', className, { 'is-active': active }), ...props, children: children }));
|
|
946
|
+
const PanelIcon = ({ className, children, ...props }) => (jsx("span", { className: classNames('panel-icon', className), ...props, children: children }));
|
|
1369
947
|
const PanelInputBlock = ({ value, onChange, placeholder, iconClassName = 'fas fa-search', ...props }) => {
|
|
1370
948
|
const inputClass = usePrefixedClassNames('input');
|
|
1371
|
-
return (
|
|
949
|
+
return (jsx("div", { className: "panel-block", ...props, children: jsxs("p", { className: "control has-icons-left", children: [jsx("input", { className: inputClass, type: "text", placeholder: placeholder, value: value, onChange: onChange }), jsx("span", { className: "icon is-left", children: jsx("i", { className: iconClassName, "aria-hidden": "true" }) })] }) }));
|
|
1372
950
|
};
|
|
1373
|
-
const PanelCheckboxBlock = ({ checked, onChange, children, ...props }) => (
|
|
1374
|
-
const PanelButtonBlock = ({ children, className, ...props }) => (
|
|
951
|
+
const PanelCheckboxBlock = ({ checked, onChange, children, ...props }) => (jsxs("label", { className: "panel-block", ...props, children: [jsx("input", { type: "checkbox", checked: checked, onChange: onChange }), children] }));
|
|
952
|
+
const PanelButtonBlock = ({ children, className, ...props }) => (jsx("div", { className: "panel-block", children: jsx("button", { className: classNames('button is-link is-outlined is-fullwidth', className), ...props, children: children }) }));
|
|
1375
953
|
Panel.Heading = PanelHeading;
|
|
1376
954
|
Panel.Tabs = PanelTabs;
|
|
1377
955
|
Panel.Block = PanelBlock;
|
|
@@ -1394,10 +972,10 @@ const Tabs = ({ align, size, fullwidth, boxed, toggle, rounded, color, className
|
|
|
1394
972
|
'is-toggle-rounded': rounded,
|
|
1395
973
|
});
|
|
1396
974
|
const tabsClass = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1397
|
-
return (
|
|
975
|
+
return (jsx("div", { className: tabsClass, ...rest, children: children }));
|
|
1398
976
|
};
|
|
1399
|
-
const TabList = ({ className, children, ...props }) => (
|
|
1400
|
-
const TabItem = ({ active, className, children, onClick, ...props }) => (
|
|
977
|
+
const TabList = ({ className, children, ...props }) => (jsx("ul", { className: classNames(className), ...props, children: children }));
|
|
978
|
+
const TabItem = ({ active, className, children, onClick, ...props }) => (jsx("li", { className: classNames({ 'is-active': active }, className), onClick: onClick, ...props, children: children }));
|
|
1401
979
|
Tabs.List = TabList;
|
|
1402
980
|
Tabs.Item = TabItem;
|
|
1403
981
|
|
|
@@ -1409,7 +987,7 @@ const Block = ({ className, textColor, bgColor, children, ...props }) => {
|
|
|
1409
987
|
});
|
|
1410
988
|
const bulmaClasses = usePrefixedClassNames('block');
|
|
1411
989
|
const blockClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1412
|
-
return (
|
|
990
|
+
return (jsx("div", { className: blockClasses, ...rest, children: children }));
|
|
1413
991
|
};
|
|
1414
992
|
|
|
1415
993
|
const Box = ({ className, textColor, bgColor, hasShadow = true, children, ...props }) => {
|
|
@@ -1422,7 +1000,7 @@ const Box = ({ className, textColor, bgColor, hasShadow = true, children, ...pro
|
|
|
1422
1000
|
'is-shadowless': !hasShadow,
|
|
1423
1001
|
});
|
|
1424
1002
|
const boxClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1425
|
-
return (
|
|
1003
|
+
return (jsx("div", { className: boxClasses, ...rest, children: children }));
|
|
1426
1004
|
};
|
|
1427
1005
|
|
|
1428
1006
|
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 }) => {
|
|
@@ -1449,11 +1027,11 @@ const Button = ({ color, size, isLight, isRounded, isLoading, isStatic, isFullWi
|
|
|
1449
1027
|
const buttonClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1450
1028
|
if (as === 'a') {
|
|
1451
1029
|
const { type: _type, disabled: _disabled, form: _form, formAction: _formAction, formEncType: _formEncType, formMethod: _formMethod, formNoValidate: _formNoValidate, formTarget: _formTarget, name: _name, value: _value, autoFocus: _autoFocus, ...anchorRest } = rest;
|
|
1452
|
-
return (
|
|
1030
|
+
return (jsx("a", { className: buttonClasses, href: href, target: target, rel: rel, "aria-disabled": isDisabled, tabIndex: isDisabled ? -1 : undefined, onClick: isDisabled
|
|
1453
1031
|
? (e) => e.preventDefault()
|
|
1454
1032
|
: onClick, ...anchorRest, children: children }));
|
|
1455
1033
|
}
|
|
1456
|
-
return (
|
|
1034
|
+
return (jsx("button", { className: buttonClasses, disabled: isDisabled, onClick: onClick, ...rest, children: children }));
|
|
1457
1035
|
};
|
|
1458
1036
|
|
|
1459
1037
|
const Buttons = ({ className, textColor, bgColor, isCentered, isRight, hasAddons, children, ...props }) => {
|
|
@@ -1468,7 +1046,7 @@ const Buttons = ({ className, textColor, bgColor, isCentered, isRight, hasAddons
|
|
|
1468
1046
|
...props,
|
|
1469
1047
|
});
|
|
1470
1048
|
const combinedClasses = classNames(buttonsClasses, className, bulmaHelperClasses);
|
|
1471
|
-
return (
|
|
1049
|
+
return (jsx("div", { className: combinedClasses, ...rest, children: children }));
|
|
1472
1050
|
};
|
|
1473
1051
|
|
|
1474
1052
|
const validSizes = ['small', 'medium', 'large'];
|
|
@@ -1482,7 +1060,7 @@ const Content = ({ className, textColor, bgColor, size, children, ...props }) =>
|
|
|
1482
1060
|
[`is-${size}`]: size && size !== 'normal' && validSizes.includes(size),
|
|
1483
1061
|
});
|
|
1484
1062
|
const contentClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1485
|
-
return (
|
|
1063
|
+
return (jsx("div", { className: contentClasses, ...rest, children: children }));
|
|
1486
1064
|
};
|
|
1487
1065
|
|
|
1488
1066
|
const Delete = ({ className, textColor, bgColor, onClick, size, ariaLabel = 'Close', disabled = false, ...props }) => {
|
|
@@ -1496,7 +1074,7 @@ const Delete = ({ className, textColor, bgColor, onClick, size, ariaLabel = 'Clo
|
|
|
1496
1074
|
'is-disabled': disabled,
|
|
1497
1075
|
});
|
|
1498
1076
|
const classes = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1499
|
-
return (
|
|
1077
|
+
return (jsx("button", { className: classes, onClick: onClick, "aria-label": ariaLabel, disabled: disabled, type: "button", ...rest }));
|
|
1500
1078
|
};
|
|
1501
1079
|
|
|
1502
1080
|
function getIconClasses(library, name, variant, features) {
|
|
@@ -1553,7 +1131,25 @@ function getIconClasses(library, name, variant, features) {
|
|
|
1553
1131
|
return [name, ...featureList].join(' ');
|
|
1554
1132
|
}
|
|
1555
1133
|
}
|
|
1556
|
-
const Icon = ({ className, textColor, bgColor, name, library
|
|
1134
|
+
const Icon = ({ className, textColor, bgColor, name, library, variant, features, libraryFeatures, size, ariaLabel = 'icon', style, icon, color: _color, ...restProps }) => {
|
|
1135
|
+
let finalName = name;
|
|
1136
|
+
if (!name && icon) {
|
|
1137
|
+
if (typeof icon === 'string') {
|
|
1138
|
+
const parts = icon.split(' ');
|
|
1139
|
+
const lastPart = parts[parts.length - 1];
|
|
1140
|
+
if (lastPart.startsWith('mdi-')) {
|
|
1141
|
+
finalName = lastPart.substring(4);
|
|
1142
|
+
}
|
|
1143
|
+
else if (lastPart.startsWith('fa-')) {
|
|
1144
|
+
finalName = lastPart.substring(3);
|
|
1145
|
+
}
|
|
1146
|
+
else {
|
|
1147
|
+
finalName = lastPart;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
const defaultLibrary = useIconLibrary();
|
|
1152
|
+
const finalLibrary = library || defaultLibrary || 'fa';
|
|
1557
1153
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1558
1154
|
color: textColor,
|
|
1559
1155
|
backgroundColor: bgColor,
|
|
@@ -1569,7 +1165,7 @@ const Icon = ({ className, textColor, bgColor, name, library = 'fa', variant, fe
|
|
|
1569
1165
|
const legacyFeatures = Array.isArray(libraryFeatures)
|
|
1570
1166
|
? libraryFeatures
|
|
1571
1167
|
: [libraryFeatures];
|
|
1572
|
-
if (
|
|
1168
|
+
if (finalLibrary === 'fa') {
|
|
1573
1169
|
const faStyle = legacyFeatures.find(f => [
|
|
1574
1170
|
'fas',
|
|
1575
1171
|
'far',
|
|
@@ -1592,8 +1188,9 @@ const Icon = ({ className, textColor, bgColor, name, library = 'fa', variant, fe
|
|
|
1592
1188
|
finalFeatures = legacyFeatures;
|
|
1593
1189
|
}
|
|
1594
1190
|
}
|
|
1595
|
-
else if (
|
|
1596
|
-
|
|
1191
|
+
else if (finalLibrary === 'material-icons' ||
|
|
1192
|
+
finalLibrary === 'material-symbols') {
|
|
1193
|
+
const styleVariants = finalLibrary === 'material-icons'
|
|
1597
1194
|
? ['filled', 'outlined', 'round', 'sharp']
|
|
1598
1195
|
: ['outlined', 'rounded', 'sharp'];
|
|
1599
1196
|
const styleVariant = legacyFeatures.find(f => styleVariants.includes(f));
|
|
@@ -1609,21 +1206,22 @@ const Icon = ({ className, textColor, bgColor, name, library = 'fa', variant, fe
|
|
|
1609
1206
|
finalFeatures = legacyFeatures;
|
|
1610
1207
|
}
|
|
1611
1208
|
}
|
|
1612
|
-
if (
|
|
1613
|
-
let ionName =
|
|
1209
|
+
if (finalLibrary === 'ion') {
|
|
1210
|
+
let ionName = finalName;
|
|
1614
1211
|
if (finalVariant === 'outline') {
|
|
1615
|
-
ionName = `${
|
|
1212
|
+
ionName = `${finalName}-outline`;
|
|
1616
1213
|
}
|
|
1617
1214
|
else if (finalVariant === 'sharp') {
|
|
1618
|
-
ionName = `${
|
|
1215
|
+
ionName = `${finalName}-sharp`;
|
|
1619
1216
|
}
|
|
1620
|
-
return (
|
|
1217
|
+
return (jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsx("ion-icon", { name: ionName }) }));
|
|
1621
1218
|
}
|
|
1622
|
-
const iClasses = getIconClasses(
|
|
1623
|
-
if (
|
|
1624
|
-
|
|
1219
|
+
const iClasses = getIconClasses(finalLibrary, finalName, finalVariant, finalFeatures);
|
|
1220
|
+
if (finalLibrary === 'material-icons' ||
|
|
1221
|
+
finalLibrary === 'material-symbols') {
|
|
1222
|
+
return (jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsx("i", { className: iClasses, children: finalName }) }));
|
|
1625
1223
|
}
|
|
1626
|
-
return (
|
|
1224
|
+
return (jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsx("i", { className: iClasses }) }));
|
|
1627
1225
|
};
|
|
1628
1226
|
|
|
1629
1227
|
const IconText = ({ className, textColor, bgColor, iconProps, children, items, ...props }) => {
|
|
@@ -1634,7 +1232,7 @@ const IconText = ({ className, textColor, bgColor, iconProps, children, items, .
|
|
|
1634
1232
|
});
|
|
1635
1233
|
const bulmaClasses = usePrefixedClassNames('icon-text');
|
|
1636
1234
|
const iconTextClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1637
|
-
return (
|
|
1235
|
+
return (jsx("span", { className: iconTextClasses, ...rest, children: items ? (items.map((item, index) => (jsxs(React.Fragment, { children: [jsx(Icon, { ...item.iconProps }), item.text && jsx("span", { children: item.text })] }, index)))) : (jsxs(Fragment, { children: [iconProps && jsx(Icon, { ...iconProps }), children && jsx("span", { children: children })] })) }));
|
|
1638
1236
|
};
|
|
1639
1237
|
|
|
1640
1238
|
const Image = ({ as, className, textColor, bgColor, size, isRounded, isRetina, src, alt, children, ...props }) => {
|
|
@@ -1659,8 +1257,8 @@ const Image = ({ as, className, textColor, bgColor, size, isRounded, isRetina, s
|
|
|
1659
1257
|
Tag = 'div';
|
|
1660
1258
|
}
|
|
1661
1259
|
const roundedClass = usePrefixedClassNames('is-rounded');
|
|
1662
|
-
const content = children ? (children) : (
|
|
1663
|
-
return (
|
|
1260
|
+
const content = children ? (children) : (jsx("img", { className: classNames({ [roundedClass]: isRounded }), src: src, alt: alt, ...(isRetina && src ? { srcSet: `${src} 2x` } : {}) }));
|
|
1261
|
+
return (jsx(Tag, { className: imageClasses, ...rest, children: content }));
|
|
1664
1262
|
};
|
|
1665
1263
|
|
|
1666
1264
|
const Notification = ({ className, color, isLight, hasDelete, onDelete, children, ...props }) => {
|
|
@@ -1673,7 +1271,7 @@ const Notification = ({ className, color, isLight, hasDelete, onDelete, children
|
|
|
1673
1271
|
});
|
|
1674
1272
|
const deleteClasses = usePrefixedClassNames('delete');
|
|
1675
1273
|
const notificationClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1676
|
-
return (
|
|
1274
|
+
return (jsxs("div", { className: notificationClasses, ...rest, children: [hasDelete && (jsx("button", { className: deleteClasses, onClick: onDelete, "aria-label": "Close notification" })), children] }));
|
|
1677
1275
|
};
|
|
1678
1276
|
|
|
1679
1277
|
const Progress = ({ className, color, size, value, max, children, ...props }) => {
|
|
@@ -1685,16 +1283,16 @@ const Progress = ({ className, color, size, value, max, children, ...props }) =>
|
|
|
1685
1283
|
[`is-${size}`]: size,
|
|
1686
1284
|
});
|
|
1687
1285
|
const progressClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1688
|
-
return (
|
|
1286
|
+
return (jsx("progress", { className: progressClasses, value: value, max: max, ...rest, children: children }));
|
|
1689
1287
|
};
|
|
1690
1288
|
|
|
1691
1289
|
const Skeleton = ({ className, variant = 'block', lines = 3, children, ...props }) => {
|
|
1692
1290
|
const linesClass = usePrefixedClassNames('skeleton-lines');
|
|
1693
1291
|
const blockClass = usePrefixedClassNames('skeleton-block');
|
|
1694
1292
|
if (variant === 'lines') {
|
|
1695
|
-
return (
|
|
1293
|
+
return (jsx("div", { className: classNames(linesClass, className), ...props, children: Array.from({ length: lines }).map((_, i) => (jsx("div", {}, i))) }));
|
|
1696
1294
|
}
|
|
1697
|
-
return (
|
|
1295
|
+
return (jsx("div", { className: classNames(blockClass, className), ...props, children: children }));
|
|
1698
1296
|
};
|
|
1699
1297
|
|
|
1700
1298
|
const validSubTitleSizes = ['1', '2', '3', '4', '5', '6'];
|
|
@@ -1707,8 +1305,12 @@ const validSubTitleElements = [
|
|
|
1707
1305
|
'h6',
|
|
1708
1306
|
'p',
|
|
1709
1307
|
];
|
|
1710
|
-
const SubTitle = ({ className, size, as = 'h1', hasSkeleton, children, ...props }) => {
|
|
1711
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1308
|
+
const SubTitle = ({ className, size, as = 'h1', hasSkeleton, textColor, bgColor, children, ...props }) => {
|
|
1309
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1310
|
+
color: textColor,
|
|
1311
|
+
backgroundColor: bgColor,
|
|
1312
|
+
...props,
|
|
1313
|
+
});
|
|
1712
1314
|
const element = validSubTitleElements.includes(as) ? as : 'h1';
|
|
1713
1315
|
const validSize = size && validSubTitleSizes.includes(size) ? size : undefined;
|
|
1714
1316
|
const bulmaClasses = usePrefixedClassNames('subtitle', {
|
|
@@ -1717,7 +1319,7 @@ const SubTitle = ({ className, size, as = 'h1', hasSkeleton, children, ...props
|
|
|
1717
1319
|
});
|
|
1718
1320
|
const subTitleClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1719
1321
|
const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
|
|
1720
|
-
return (
|
|
1322
|
+
return (jsx(Tag, { className: subTitleClasses, ...rest, children: children }));
|
|
1721
1323
|
};
|
|
1722
1324
|
|
|
1723
1325
|
const Table = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFullwidth, isResponsive, children, ...props }) => {
|
|
@@ -1731,9 +1333,9 @@ const Table = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFull
|
|
|
1731
1333
|
});
|
|
1732
1334
|
const containerClass = usePrefixedClassNames('table-container');
|
|
1733
1335
|
const tableClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1734
|
-
const tableElement = (
|
|
1336
|
+
const tableElement = (jsx("table", { className: tableClasses, ...rest, children: children }));
|
|
1735
1337
|
if (isResponsive) {
|
|
1736
|
-
return
|
|
1338
|
+
return jsx("div", { className: containerClass, children: tableElement });
|
|
1737
1339
|
}
|
|
1738
1340
|
return tableElement;
|
|
1739
1341
|
};
|
|
@@ -1762,9 +1364,9 @@ const Tag = ({ className, color, size, isRounded, isDelete, isHoverable, onDelet
|
|
|
1762
1364
|
});
|
|
1763
1365
|
const tagClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1764
1366
|
if (isDelete) {
|
|
1765
|
-
return (
|
|
1367
|
+
return (jsx("button", { className: tagClasses, onClick: onDelete, "aria-label": "Delete tag", ...rest }));
|
|
1766
1368
|
}
|
|
1767
|
-
return (
|
|
1369
|
+
return (jsx("span", { className: tagClasses, ...rest, children: children }));
|
|
1768
1370
|
};
|
|
1769
1371
|
|
|
1770
1372
|
const Tags = ({ className, hasAddons, isMultiline, children, ...props }) => {
|
|
@@ -1774,13 +1376,13 @@ const Tags = ({ className, hasAddons, isMultiline, children, ...props }) => {
|
|
|
1774
1376
|
'are-multiline': isMultiline,
|
|
1775
1377
|
});
|
|
1776
1378
|
const tagsClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1777
|
-
return (
|
|
1379
|
+
return (jsx("div", { className: tagsClasses, ...rest, children: children }));
|
|
1778
1380
|
};
|
|
1779
1381
|
|
|
1780
1382
|
const Tbody = ({ className, children, ...props }) => {
|
|
1781
1383
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1782
1384
|
const tbodyClasses = classNames(className, bulmaHelperClasses);
|
|
1783
|
-
return (
|
|
1385
|
+
return (jsx("tbody", { className: tbodyClasses, ...rest, children: children }));
|
|
1784
1386
|
};
|
|
1785
1387
|
|
|
1786
1388
|
const validTableColors = [
|
|
@@ -1801,13 +1403,13 @@ const Td = ({ className, color, children, ...props }) => {
|
|
|
1801
1403
|
});
|
|
1802
1404
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1803
1405
|
const tdClasses = classNames(colorClass, className, bulmaHelperClasses);
|
|
1804
|
-
return (
|
|
1406
|
+
return (jsx("td", { className: tdClasses, ...rest, children: children }));
|
|
1805
1407
|
};
|
|
1806
1408
|
|
|
1807
1409
|
const Tfoot = ({ className, children, ...props }) => {
|
|
1808
1410
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1809
1411
|
const tfootClasses = classNames(className, bulmaHelperClasses);
|
|
1810
|
-
return (
|
|
1412
|
+
return (jsx("tfoot", { className: tfootClasses, ...rest, children: children }));
|
|
1811
1413
|
};
|
|
1812
1414
|
|
|
1813
1415
|
const validAlignments = ['left', 'right', 'centered'];
|
|
@@ -1818,7 +1420,7 @@ const Th = ({ className, isAligned, width, color, children, ...props }) => {
|
|
|
1818
1420
|
});
|
|
1819
1421
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1820
1422
|
const thClasses = classNames(bulmaClasses, className, bulmaHelperClasses);
|
|
1821
|
-
return (
|
|
1423
|
+
return (jsx("th", { className: thClasses, style: width
|
|
1822
1424
|
? { width: typeof width === 'number' ? `${width}px` : width }
|
|
1823
1425
|
: undefined, ...rest, children: children }));
|
|
1824
1426
|
};
|
|
@@ -1826,13 +1428,17 @@ const Th = ({ className, isAligned, width, color, children, ...props }) => {
|
|
|
1826
1428
|
const Thead = ({ className, children, ...props }) => {
|
|
1827
1429
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1828
1430
|
const theadClasses = classNames(className, bulmaHelperClasses);
|
|
1829
|
-
return (
|
|
1431
|
+
return (jsx("thead", { className: theadClasses, ...rest, children: children }));
|
|
1830
1432
|
};
|
|
1831
1433
|
|
|
1832
1434
|
const validTitleSizes = ['1', '2', '3', '4', '5', '6'];
|
|
1833
1435
|
const validTitleElements = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'];
|
|
1834
|
-
const Title = ({ className, size, isSpaced, as = 'h1', hasSkeleton, children, ...props }) => {
|
|
1835
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1436
|
+
const Title = ({ className, size, isSpaced, as = 'h1', hasSkeleton, textColor, bgColor, children, ...props }) => {
|
|
1437
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1438
|
+
color: textColor,
|
|
1439
|
+
backgroundColor: bgColor,
|
|
1440
|
+
...props,
|
|
1441
|
+
});
|
|
1836
1442
|
const element = validTitleElements.includes(as) ? as : 'h1';
|
|
1837
1443
|
const validSize = size && validTitleSizes.includes(size) ? size : undefined;
|
|
1838
1444
|
const bulmaClasses = usePrefixedClassNames('title', {
|
|
@@ -1842,7 +1448,7 @@ const Title = ({ className, size, isSpaced, as = 'h1', hasSkeleton, children, ..
|
|
|
1842
1448
|
});
|
|
1843
1449
|
const titleClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1844
1450
|
const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
|
|
1845
|
-
return (
|
|
1451
|
+
return (jsx(Tag, { className: titleClasses, ...rest, children: children }));
|
|
1846
1452
|
};
|
|
1847
1453
|
|
|
1848
1454
|
const Tr = ({ className, isSelected, color, children, ...props }) => {
|
|
@@ -1852,7 +1458,7 @@ const Tr = ({ className, isSelected, color, children, ...props }) => {
|
|
|
1852
1458
|
});
|
|
1853
1459
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1854
1460
|
const trClasses = classNames(bulmaClasses, className, bulmaHelperClasses);
|
|
1855
|
-
return (
|
|
1461
|
+
return (jsx("tr", { className: trClasses, ...rest, children: children }));
|
|
1856
1462
|
};
|
|
1857
1463
|
|
|
1858
1464
|
const Checkbox = forwardRef(({ disabled, className, children, ...props }, ref) => {
|
|
@@ -1861,7 +1467,7 @@ const Checkbox = forwardRef(({ disabled, className, children, ...props }, ref) =
|
|
|
1861
1467
|
});
|
|
1862
1468
|
const mainClass = usePrefixedClassNames('checkbox');
|
|
1863
1469
|
const checkboxClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1864
|
-
return (
|
|
1470
|
+
return (jsxs("label", { className: checkboxClass, children: [jsx("input", { ref: ref, type: "checkbox", disabled: disabled, ...rest }), children] }));
|
|
1865
1471
|
});
|
|
1866
1472
|
Checkbox.displayName = 'Checkbox';
|
|
1867
1473
|
|
|
@@ -1871,7 +1477,7 @@ const Checkboxes = ({ children, className, ...props }) => {
|
|
|
1871
1477
|
});
|
|
1872
1478
|
const mainClass = usePrefixedClassNames('checkboxes');
|
|
1873
1479
|
const wrapperClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1874
|
-
return (
|
|
1480
|
+
return (jsx("div", { className: wrapperClass, ...rest, children: children }));
|
|
1875
1481
|
};
|
|
1876
1482
|
|
|
1877
1483
|
const allowedColors = [...validColors, 'inherit', 'current'];
|
|
@@ -1911,7 +1517,7 @@ const Control = React.forwardRef(({ as = 'div', hasIconsLeft, hasIconsRight, isL
|
|
|
1911
1517
|
[`is-${size}`]: !!size,
|
|
1912
1518
|
});
|
|
1913
1519
|
const controlClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1914
|
-
return (
|
|
1520
|
+
return (jsxs(Component, { className: controlClass, ref: ref, ...restProps, ...rest, children: [children, leftIconProps && leftIconProps.name && (jsx(Icon, { ...leftIconProps, className: "is-left" })), rightIconProps && rightIconProps.name && (jsx(Icon, { ...rightIconProps, className: "is-right" }))] }));
|
|
1915
1521
|
});
|
|
1916
1522
|
Control.displayName = 'Control';
|
|
1917
1523
|
|
|
@@ -1925,7 +1531,7 @@ const FieldLabel = ({ size, textColor, bgColor, className, children, ...props })
|
|
|
1925
1531
|
[`is-${size}`]: !!size,
|
|
1926
1532
|
});
|
|
1927
1533
|
const fieldLabelClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1928
|
-
return (
|
|
1534
|
+
return (jsx("div", { className: fieldLabelClass, ...props, ...rest, children: children }));
|
|
1929
1535
|
};
|
|
1930
1536
|
const FieldBody = ({ textColor, bgColor, className, children, ...props }) => {
|
|
1931
1537
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1935,7 +1541,7 @@ const FieldBody = ({ textColor, bgColor, className, children, ...props }) => {
|
|
|
1935
1541
|
});
|
|
1936
1542
|
const mainClass = usePrefixedClassNames('field-body');
|
|
1937
1543
|
const fieldBodyClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1938
|
-
return (
|
|
1544
|
+
return (jsx("div", { className: fieldBodyClass, ...props, ...rest, children: children }));
|
|
1939
1545
|
};
|
|
1940
1546
|
const Field = ({ horizontal, grouped, hasAddons, label, labelSize, labelProps, textColor, color: _fieldColor, bgColor, className, children, ...props }) => {
|
|
1941
1547
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1960,10 +1566,10 @@ const Field = ({ horizontal, grouped, hasAddons, label, labelSize, labelProps, t
|
|
|
1960
1566
|
let renderedLabel = null;
|
|
1961
1567
|
if (label) {
|
|
1962
1568
|
if (horizontal) {
|
|
1963
|
-
renderedLabel = (
|
|
1569
|
+
renderedLabel = (jsx(FieldLabel, { size: mappedLabelSize, children: jsx("label", { ...labelProps, className: classNames(labelClass, labelProps === null || labelProps === void 0 ? void 0 : labelProps.className), style: labelProps === null || labelProps === void 0 ? void 0 : labelProps.style, children: label }) }));
|
|
1964
1570
|
}
|
|
1965
1571
|
else {
|
|
1966
|
-
renderedLabel = (
|
|
1572
|
+
renderedLabel = (jsx("label", { ...labelProps, className: classNames(labelClass, labelProps === null || labelProps === void 0 ? void 0 : labelProps.className), style: { display: 'block', ...((labelProps === null || labelProps === void 0 ? void 0 : labelProps.style) || {}) }, children: label }));
|
|
1967
1573
|
}
|
|
1968
1574
|
}
|
|
1969
1575
|
let content = children;
|
|
@@ -1973,10 +1579,10 @@ const Field = ({ horizontal, grouped, hasAddons, label, labelSize, labelProps, t
|
|
|
1973
1579
|
content = children;
|
|
1974
1580
|
}
|
|
1975
1581
|
else {
|
|
1976
|
-
content =
|
|
1582
|
+
content = jsx(FieldBody, { children: children });
|
|
1977
1583
|
}
|
|
1978
1584
|
}
|
|
1979
|
-
return (
|
|
1585
|
+
return (jsxs("div", { className: fieldClass, ...rest, children: [renderedLabel, content] }));
|
|
1980
1586
|
};
|
|
1981
1587
|
FieldLabel.displayName = 'FieldLabel';
|
|
1982
1588
|
FieldBody.displayName = 'FieldBody';
|
|
@@ -2006,7 +1612,7 @@ const File = forwardRef(({ color, size, isBoxed, isFullwidth, isRight, isCentere
|
|
|
2006
1612
|
'has-name': hasName,
|
|
2007
1613
|
});
|
|
2008
1614
|
const fileClass = classNames(mainClass, bulmaHelperClasses, alignmentClass, className);
|
|
2009
|
-
return (
|
|
1615
|
+
return (jsx("div", { className: fileClass, children: jsxs("label", { className: "file-label", children: [jsx("input", { ref: ref, className: classNames('file-input', inputClassName), type: "file", ...rest }), jsxs("span", { className: "file-cta", children: [iconLeft && jsx("span", { className: "file-icon", children: iconLeft }), jsx("span", { className: "file-label", children: label || 'Choose a file…' }), iconRight && jsx("span", { className: "file-icon", children: iconRight })] }), hasName && fileName && jsx("span", { className: "file-name", children: fileName })] }) }));
|
|
2010
1616
|
});
|
|
2011
1617
|
File.displayName = 'File';
|
|
2012
1618
|
|
|
@@ -2025,7 +1631,7 @@ const Input = forwardRef(({ color, size, isRounded, isStatic, isHovered, isFocus
|
|
|
2025
1631
|
'is-loading': isLoading,
|
|
2026
1632
|
});
|
|
2027
1633
|
const inputClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2028
|
-
return (
|
|
1634
|
+
return (jsx("input", { ref: ref, className: inputClass, disabled: disabled, readOnly: readOnly, ...rest }));
|
|
2029
1635
|
});
|
|
2030
1636
|
Input.displayName = 'Input';
|
|
2031
1637
|
|
|
@@ -2035,7 +1641,7 @@ const Radio = forwardRef(({ disabled, className, children, ...props }, ref) => {
|
|
|
2035
1641
|
});
|
|
2036
1642
|
const mainClass = usePrefixedClassNames('radio');
|
|
2037
1643
|
const radioClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2038
|
-
return (
|
|
1644
|
+
return (jsxs("label", { className: radioClass, children: [jsx("input", { ref: ref, type: "radio", disabled: disabled, ...rest }), children] }));
|
|
2039
1645
|
});
|
|
2040
1646
|
Radio.displayName = 'Radio';
|
|
2041
1647
|
|
|
@@ -2045,7 +1651,7 @@ const Radios = ({ children, className, ...props }) => {
|
|
|
2045
1651
|
});
|
|
2046
1652
|
const mainClass = usePrefixedClassNames('radios');
|
|
2047
1653
|
const wrapperClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2048
|
-
return (
|
|
1654
|
+
return (jsx("div", { className: wrapperClass, ...rest, children: children }));
|
|
2049
1655
|
};
|
|
2050
1656
|
|
|
2051
1657
|
const Select = forwardRef(({ color, size, isRounded, isLoading, isActive, className, disabled, children, multiple, multipleSize, ...props }, ref) => {
|
|
@@ -2069,7 +1675,7 @@ const Select = forwardRef(({ color, size, isRounded, isLoading, isActive, classN
|
|
|
2069
1675
|
if (multiple && typeof multipleSize === 'number') {
|
|
2070
1676
|
selectProps.size = multipleSize;
|
|
2071
1677
|
}
|
|
2072
|
-
return (
|
|
1678
|
+
return (jsx("div", { className: selectClass, children: jsx("select", { ref: ref, ...selectProps, children: children }) }));
|
|
2073
1679
|
});
|
|
2074
1680
|
Select.displayName = 'Select';
|
|
2075
1681
|
|
|
@@ -2090,7 +1696,7 @@ const TextArea = forwardRef(({ color, size, isRounded, isStatic, isHovered, isFo
|
|
|
2090
1696
|
'has-fixed-size': hasFixedSize,
|
|
2091
1697
|
});
|
|
2092
1698
|
const textareaClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2093
|
-
return (
|
|
1699
|
+
return (jsx("textarea", { ref: ref, className: textareaClass, disabled: disabled, readOnly: readOnly, rows: rows, ...rest }));
|
|
2094
1700
|
});
|
|
2095
1701
|
TextArea.displayName = 'TextArea';
|
|
2096
1702
|
|
|
@@ -2110,7 +1716,7 @@ const Cell = ({ colStart, colFromEnd, colSpan, rowStart, rowFromEnd, rowSpan, cl
|
|
|
2110
1716
|
[`is-row-span-${rowSpan}`]: rowSpan !== undefined && rowSpan !== null,
|
|
2111
1717
|
});
|
|
2112
1718
|
const cellClasses = classNames(mainClass, cellGridClasses, className, bulmaHelperClasses);
|
|
2113
|
-
return (
|
|
1719
|
+
return (jsx("div", { className: cellClasses, ...rest, children: children }));
|
|
2114
1720
|
};
|
|
2115
1721
|
|
|
2116
1722
|
const Grid = ({ isFixed = false, gap, columnGap, rowGap, minCol, fixedCols, fixedColsMobile, fixedColsTablet, fixedColsDesktop, fixedColsWidescreen, fixedColsFullhd, className, textColor, color: _fieldColor, bgColor, children, ...props }) => {
|
|
@@ -2137,9 +1743,9 @@ const Grid = ({ isFixed = false, gap, columnGap, rowGap, minCol, fixedCols, fixe
|
|
|
2137
1743
|
});
|
|
2138
1744
|
const gridClasses = classNames(mainClass, gridInnerClasses, bulmaHelperClasses, className);
|
|
2139
1745
|
if (isFixed) {
|
|
2140
|
-
return (
|
|
1746
|
+
return (jsx("div", { className: fixedGridClasses, children: jsx("div", { className: gridClasses, ...rest, children: children }) }));
|
|
2141
1747
|
}
|
|
2142
|
-
return (
|
|
1748
|
+
return (jsx("div", { className: gridClasses, ...rest, children: children }));
|
|
2143
1749
|
};
|
|
2144
1750
|
|
|
2145
1751
|
const bulmaCssVars = [
|
|
@@ -2729,7 +2335,7 @@ const Theme = ({ bulmaVars = {}, children, className, isRoot = false, ...restPro
|
|
|
2729
2335
|
}
|
|
2730
2336
|
return classNames(className, bulmaHelperClasses);
|
|
2731
2337
|
}, [className, bulmaHelperClasses, isRoot]);
|
|
2732
|
-
return isRoot ? (
|
|
2338
|
+
return isRoot ? (jsx(Fragment, { children: children })) : (jsx("div", { className: combinedClassName || undefined, style: style, ...rest, children: children }));
|
|
2733
2339
|
};
|
|
2734
2340
|
|
|
2735
2341
|
const Container = ({ className, textColor, bgColor, fluid, widescreen, fullhd, breakpoint, isMax, children, ...props }) => {
|
|
@@ -2760,7 +2366,7 @@ const Container = ({ className, textColor, bgColor, fluid, widescreen, fullhd, b
|
|
|
2760
2366
|
});
|
|
2761
2367
|
const prefixedBreakpointClass = usePrefixedClassNames(breakpointClass || '');
|
|
2762
2368
|
const containerClasses = classNames(mainClass, containerModifiers, prefixedBreakpointClass, className, bulmaHelperClasses);
|
|
2763
|
-
return (
|
|
2369
|
+
return (jsx("div", { className: containerClasses, ...rest, children: children }));
|
|
2764
2370
|
};
|
|
2765
2371
|
|
|
2766
2372
|
const Footer = ({ as = 'footer', className, children, color, bgColor, textColor, ...props }) => {
|
|
@@ -2772,7 +2378,7 @@ const Footer = ({ as = 'footer', className, children, color, bgColor, textColor,
|
|
|
2772
2378
|
const Tag = as;
|
|
2773
2379
|
const mainClass = usePrefixedClassNames('footer');
|
|
2774
2380
|
const footerClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2775
|
-
return (
|
|
2381
|
+
return (jsx(Tag, { className: footerClasses, ...rest, children: children }));
|
|
2776
2382
|
};
|
|
2777
2383
|
|
|
2778
2384
|
const Hero = ({ className, color, size, bgColor, fullheightWithNavbar, children, ...props }) => {
|
|
@@ -2786,7 +2392,7 @@ const Hero = ({ className, color, size, bgColor, fullheightWithNavbar, children,
|
|
|
2786
2392
|
'is-fullheight-with-navbar': fullheightWithNavbar || size === 'fullheight-with-navbar',
|
|
2787
2393
|
});
|
|
2788
2394
|
const heroClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2789
|
-
return (
|
|
2395
|
+
return (jsx("section", { className: heroClasses, ...rest, children: children }));
|
|
2790
2396
|
};
|
|
2791
2397
|
const HeroHead = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2792
2398
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2796,7 +2402,7 @@ const HeroHead = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2796
2402
|
});
|
|
2797
2403
|
const mainClass = usePrefixedClassNames('hero-head');
|
|
2798
2404
|
const heroHeadClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2799
|
-
return (
|
|
2405
|
+
return (jsx("div", { className: heroHeadClasses, ...rest, children: children }));
|
|
2800
2406
|
};
|
|
2801
2407
|
const HeroBody = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2802
2408
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2806,7 +2412,7 @@ const HeroBody = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2806
2412
|
});
|
|
2807
2413
|
const mainClass = usePrefixedClassNames('hero-body');
|
|
2808
2414
|
const heroBodyClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2809
|
-
return (
|
|
2415
|
+
return (jsx("div", { className: heroBodyClasses, ...rest, children: children }));
|
|
2810
2416
|
};
|
|
2811
2417
|
const HeroFoot = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2812
2418
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2816,7 +2422,7 @@ const HeroFoot = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2816
2422
|
});
|
|
2817
2423
|
const mainClass = usePrefixedClassNames('hero-foot');
|
|
2818
2424
|
const heroFootClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2819
|
-
return (
|
|
2425
|
+
return (jsx("div", { className: heroFootClasses, ...rest, children: children }));
|
|
2820
2426
|
};
|
|
2821
2427
|
Hero.Head = HeroHead;
|
|
2822
2428
|
Hero.Body = HeroBody;
|
|
@@ -2832,7 +2438,7 @@ const Level = ({ isMobile, className, children, color, bgColor, textColor, ...pr
|
|
|
2832
2438
|
'is-mobile': isMobile,
|
|
2833
2439
|
});
|
|
2834
2440
|
const levelClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2835
|
-
return (
|
|
2441
|
+
return (jsx("nav", { className: levelClasses, ...rest, children: children }));
|
|
2836
2442
|
};
|
|
2837
2443
|
const LevelLeft = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2838
2444
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2842,7 +2448,7 @@ const LevelLeft = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2842
2448
|
});
|
|
2843
2449
|
const mainClass = usePrefixedClassNames('level-left');
|
|
2844
2450
|
const levelLeftClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2845
|
-
return (
|
|
2451
|
+
return (jsx("div", { className: levelLeftClasses, ...rest, children: children }));
|
|
2846
2452
|
};
|
|
2847
2453
|
const LevelRight = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2848
2454
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2852,7 +2458,7 @@ const LevelRight = ({ className, children, color, bgColor, textColor, ...props }
|
|
|
2852
2458
|
});
|
|
2853
2459
|
const mainClass = usePrefixedClassNames('level-right');
|
|
2854
2460
|
const levelRightClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2855
|
-
return (
|
|
2461
|
+
return (jsx("div", { className: levelRightClasses, ...rest, children: children }));
|
|
2856
2462
|
};
|
|
2857
2463
|
const LevelItem = ({ as = 'div', hasTextCentered, className, children, href, target, rel, color, bgColor, textColor, ...props }) => {
|
|
2858
2464
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2866,9 +2472,9 @@ const LevelItem = ({ as = 'div', hasTextCentered, className, children, href, tar
|
|
|
2866
2472
|
});
|
|
2867
2473
|
const levelItemClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2868
2474
|
if (Tag === 'a') {
|
|
2869
|
-
return (
|
|
2475
|
+
return (jsx("a", { className: levelItemClasses, href: href, target: target, rel: rel, ...rest, children: children }));
|
|
2870
2476
|
}
|
|
2871
|
-
return (
|
|
2477
|
+
return (jsx(Tag, { className: levelItemClasses, ...rest, children: children }));
|
|
2872
2478
|
};
|
|
2873
2479
|
Level.Left = LevelLeft;
|
|
2874
2480
|
Level.Right = LevelRight;
|
|
@@ -2883,7 +2489,7 @@ const Media = ({ as = 'article', className, children, color, bgColor, textColor,
|
|
|
2883
2489
|
const Tag = as;
|
|
2884
2490
|
const mainClass = usePrefixedClassNames('media');
|
|
2885
2491
|
const mediaClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2886
|
-
return (
|
|
2492
|
+
return (jsx(Tag, { className: mediaClasses, ...rest, children: children }));
|
|
2887
2493
|
};
|
|
2888
2494
|
const MediaLeft = ({ as = 'figure', className, children, color, bgColor, textColor, ...props }) => {
|
|
2889
2495
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2894,7 +2500,7 @@ const MediaLeft = ({ as = 'figure', className, children, color, bgColor, textCol
|
|
|
2894
2500
|
const Tag = as;
|
|
2895
2501
|
const mainClass = usePrefixedClassNames('media-left');
|
|
2896
2502
|
const mediaLeftClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2897
|
-
return (
|
|
2503
|
+
return (jsx(Tag, { className: mediaLeftClasses, ...rest, children: children }));
|
|
2898
2504
|
};
|
|
2899
2505
|
const MediaContent = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2900
2506
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2904,7 +2510,7 @@ const MediaContent = ({ className, children, color, bgColor, textColor, ...props
|
|
|
2904
2510
|
});
|
|
2905
2511
|
const mainClass = usePrefixedClassNames('media-content');
|
|
2906
2512
|
const mediaContentClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2907
|
-
return (
|
|
2513
|
+
return (jsx("div", { className: mediaContentClasses, ...rest, children: children }));
|
|
2908
2514
|
};
|
|
2909
2515
|
const MediaRight = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2910
2516
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2914,7 +2520,7 @@ const MediaRight = ({ className, children, color, bgColor, textColor, ...props }
|
|
|
2914
2520
|
});
|
|
2915
2521
|
const mainClass = usePrefixedClassNames('media-right');
|
|
2916
2522
|
const mediaRightClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2917
|
-
return (
|
|
2523
|
+
return (jsx("div", { className: mediaRightClasses, ...rest, children: children }));
|
|
2918
2524
|
};
|
|
2919
2525
|
const MediaWithSubcomponents = Media;
|
|
2920
2526
|
MediaWithSubcomponents.Left = MediaLeft;
|
|
@@ -2932,8 +2538,8 @@ const Section = ({ size, className, children, color, bgColor, textColor, ...prop
|
|
|
2932
2538
|
[`is-${size}`]: size,
|
|
2933
2539
|
});
|
|
2934
2540
|
const sectionClasses = classNames(mainClass, sectionModifiers, className, bulmaHelperClasses);
|
|
2935
|
-
return (
|
|
2541
|
+
return (jsx("section", { className: sectionClasses, ...rest, children: children }));
|
|
2936
2542
|
};
|
|
2937
2543
|
|
|
2938
|
-
export { Block, Box, Breadcrumb, Button, Buttons, CardWithSubComponents as Card, Cell, Checkbox, Checkboxes, Column, Columns, ConfigProvider, Container, Content, Control, Delete, Dropdown, DropdownDivider, DropdownItem, Field, FieldBody, FieldLabel, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, Level, LevelItem, LevelLeft, LevelRight, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, MessageWithSubComponents as Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarMenu, NavbarStart, Notification, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Progress, Radio, Radios, Section, Select, Skeleton, SubTitle, TabItem, TabList, Table, Tabs, Tag, Tags, Tbody, Td, TextArea, Tfoot, Th, Thead, Theme, Title, Tr, __test_exports__, classNames, createPrefixedClassNames, isBrowser, prefixedClassNames, useBulmaClasses, useClassPrefix, useConfig, usePrefixedClass, usePrefixedClassNames, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFontFamilies, validJustifyContents, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
|
|
2544
|
+
export { Block, Box, Breadcrumb, Button, Buttons, CardWithSubComponents as Card, Cell, Checkbox, Checkboxes, Column, Columns, ConfigProvider, Container, Content, Control, Delete, Dropdown, DropdownDivider, DropdownItem, Field, FieldBody, FieldLabel, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, Level, LevelItem, LevelLeft, LevelRight, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, MessageWithSubComponents as Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarMenu, NavbarStart, Notification, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Progress, Radio, Radios, Section, Select, Skeleton, SubTitle, TabItem, TabList, Table, Tabs, Tag, Tags, Tbody, Td, TextArea, Tfoot, Th, Thead, Theme, Title, Tr, __test_exports__, classNames, createPrefixedClassNames, isBrowser, prefixedClassNames, useBulmaClasses, useClassPrefix, useConfig, useIconLibrary, usePrefixedClass, usePrefixedClassNames, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFontFamilies, validJustifyContents, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
|
|
2939
2545
|
//# sourceMappingURL=index.esm.js.map
|