@allxsmith/bestax-bulma 2.1.3 → 2.3.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.cjs.js
CHANGED
|
@@ -1,438 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
|
|
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
6
|
const ConfigContext = React.createContext({});
|
|
433
7
|
const useConfig = () => React.useContext(ConfigContext);
|
|
434
|
-
const ConfigProvider = ({ classPrefix, children, }) => {
|
|
435
|
-
return (
|
|
8
|
+
const ConfigProvider = ({ classPrefix, iconLibrary, children, }) => {
|
|
9
|
+
return (jsxRuntime.jsx(ConfigContext.Provider, { value: { classPrefix, iconLibrary }, children: children }));
|
|
436
10
|
};
|
|
437
11
|
const useClassPrefix = () => {
|
|
438
12
|
const { classPrefix } = useConfig();
|
|
@@ -442,6 +16,10 @@ const usePrefixedClass = () => {
|
|
|
442
16
|
const { classPrefix } = useConfig();
|
|
443
17
|
return (className) => classPrefix ? `${classPrefix}${className}` : className;
|
|
444
18
|
};
|
|
19
|
+
const useIconLibrary = () => {
|
|
20
|
+
const { iconLibrary } = useConfig();
|
|
21
|
+
return iconLibrary;
|
|
22
|
+
};
|
|
445
23
|
|
|
446
24
|
function classNames(...args) {
|
|
447
25
|
const classSet = new Set();
|
|
@@ -945,7 +523,7 @@ const Column = ({ className, textColor, color: _fieldColor, bgColor, size, sizeM
|
|
|
945
523
|
'is-narrow-fullhd': !!isNarrowFullhd,
|
|
946
524
|
});
|
|
947
525
|
const columnClasses = classNames(mainClass, columnSpecificClasses, className, bulmaHelperClasses);
|
|
948
|
-
return (
|
|
526
|
+
return (jsxRuntime.jsx("div", { className: columnClasses, ...rest, children: children }));
|
|
949
527
|
};
|
|
950
528
|
|
|
951
529
|
const Columns = ({ className, textColor, color: _fieldColor, bgColor, isCentered, isGapless, isMultiline, isVCentered, isMobile, isDesktop, gapSize, gapSizeMobile, gapSizeTablet, gapSizeDesktop, gapSizeWidescreen, gapSizeFullhd, children, ...props }) => {
|
|
@@ -970,7 +548,7 @@ const Columns = ({ className, textColor, color: _fieldColor, bgColor, isCentered
|
|
|
970
548
|
'is-desktop': !!isDesktop,
|
|
971
549
|
});
|
|
972
550
|
const columnsClasses = classNames(mainClass, gapClasses, className, bulmaHelperClasses);
|
|
973
|
-
return (
|
|
551
|
+
return (jsxRuntime.jsx("div", { className: columnsClasses, ...rest, children: children }));
|
|
974
552
|
};
|
|
975
553
|
|
|
976
554
|
const validBreadcrumbAlignments = ['centered', 'right'];
|
|
@@ -989,14 +567,14 @@ const Breadcrumb = ({ className, alignment, separator, size, children, ...props
|
|
|
989
567
|
[`is-${size}`]: size && validBreadcrumbSizes.includes(size),
|
|
990
568
|
});
|
|
991
569
|
const breadcrumbClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
992
|
-
return (
|
|
570
|
+
return (jsxRuntime.jsx("nav", { className: breadcrumbClasses, "aria-label": "breadcrumbs", ...rest, children: jsxRuntime.jsx("ul", { children: children }) }));
|
|
993
571
|
};
|
|
994
572
|
|
|
995
573
|
const renderFooter = (footer) => {
|
|
996
574
|
if (!footer)
|
|
997
575
|
return null;
|
|
998
576
|
const items = Array.isArray(footer) ? footer : [footer];
|
|
999
|
-
return items.map((item, idx) => (
|
|
577
|
+
return items.map((item, idx) => (jsxRuntime.jsx("span", { className: "card-footer-item", children: item }, idx)));
|
|
1000
578
|
};
|
|
1001
579
|
const hasCompoundComponents = (children) => {
|
|
1002
580
|
return React.Children.toArray(children).some(child => {
|
|
@@ -1023,33 +601,33 @@ const CardComponent = ({ className, children, textColor, bgColor, hasShadow = tr
|
|
|
1023
601
|
const renderHeader = (header, headerIcon, headerCentered) => {
|
|
1024
602
|
if (!header && !headerIcon)
|
|
1025
603
|
return null;
|
|
1026
|
-
return (
|
|
604
|
+
return (jsxRuntime.jsxs("header", { className: "card-header", children: [header && (jsxRuntime.jsx("div", { className: classNames('card-header-title', {
|
|
1027
605
|
'is-centered': headerCentered,
|
|
1028
606
|
}), children: header })), headerIcon] }));
|
|
1029
607
|
};
|
|
1030
|
-
return (
|
|
608
|
+
return (jsxRuntime.jsxs("div", { className: cardClasses, ...rest, children: [renderHeader(header, headerIcon, headerCentered), image && (jsxRuntime.jsx("div", { className: "card-image", children: typeof image === 'string' ? (jsxRuntime.jsx("figure", { className: "image", children: jsxRuntime.jsx("img", { src: image, alt: imageAlt !== null && imageAlt !== void 0 ? imageAlt : 'Card image' }) })) : (image) })), typeof children !== 'undefined' &&
|
|
1031
609
|
children !== null &&
|
|
1032
610
|
children !== '' &&
|
|
1033
|
-
!hasCompoundComponents(children) && (
|
|
611
|
+
!hasCompoundComponents(children) && (jsxRuntime.jsx("div", { className: "card-content", children: children })), typeof children !== 'undefined' &&
|
|
1034
612
|
children !== null &&
|
|
1035
613
|
children !== '' &&
|
|
1036
614
|
hasCompoundComponents(children) &&
|
|
1037
|
-
children, footer && (
|
|
615
|
+
children, footer && (jsxRuntime.jsx("footer", { className: "card-footer", children: renderFooter(footer) }))] }));
|
|
1038
616
|
};
|
|
1039
617
|
const CardHeader = ({ className, children, centered, ...props }) => {
|
|
1040
618
|
const hasHeaderTitle = React.Children.toArray(children).some(child => React.isValidElement(child) &&
|
|
1041
619
|
typeof child.type === 'function' &&
|
|
1042
620
|
child.type === CardHeaderTitle);
|
|
1043
|
-
return (
|
|
621
|
+
return (jsxRuntime.jsx("header", { className: classNames('card-header', className), ...props, children: hasHeaderTitle ? (children) : (jsxRuntime.jsx("div", { className: classNames('card-header-title', {
|
|
1044
622
|
'is-centered': centered,
|
|
1045
623
|
}), children: children })) }));
|
|
1046
624
|
};
|
|
1047
|
-
const CardHeaderTitle = ({ className, children, centered, ...props }) => (
|
|
1048
|
-
const CardHeaderIcon = ({ className, children, ...props }) => (
|
|
1049
|
-
const CardImage = ({ className, children, ...props }) => (
|
|
1050
|
-
const CardContent = ({ className, children, ...props }) => (
|
|
1051
|
-
const CardFooter = ({ className, children, ...props }) => (
|
|
1052
|
-
const CardFooterItem = ({ className, children, ...props }) => (
|
|
625
|
+
const CardHeaderTitle = ({ className, children, centered, ...props }) => (jsxRuntime.jsx("div", { className: classNames('card-header-title', { 'is-centered': centered }, className), ...props, children: children }));
|
|
626
|
+
const CardHeaderIcon = ({ className, children, ...props }) => (jsxRuntime.jsx("button", { className: classNames('card-header-icon', className), "aria-label": props['aria-label'] || 'more options', ...props, children: children }));
|
|
627
|
+
const CardImage = ({ className, children, ...props }) => (jsxRuntime.jsx("div", { className: classNames('card-image', className), ...props, children: children }));
|
|
628
|
+
const CardContent = ({ className, children, ...props }) => (jsxRuntime.jsx("div", { className: classNames('card-content', className), ...props, children: children }));
|
|
629
|
+
const CardFooter = ({ className, children, ...props }) => (jsxRuntime.jsx("footer", { className: classNames('card-footer', className), ...props, children: children }));
|
|
630
|
+
const CardFooterItem = ({ className, children, ...props }) => (jsxRuntime.jsx("span", { className: classNames('card-footer-item', className), ...props, children: children }));
|
|
1053
631
|
const CardWithSubComponents = CardComponent;
|
|
1054
632
|
const CardHeaderWithTitle = CardHeader;
|
|
1055
633
|
CardHeaderWithTitle.Title = CardHeaderTitle;
|
|
@@ -1107,13 +685,13 @@ const DropdownComponent = ({ label, children, className, menuClassName, active:
|
|
|
1107
685
|
}
|
|
1108
686
|
};
|
|
1109
687
|
const dropdownClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1110
|
-
return (
|
|
688
|
+
return (jsxRuntime.jsxs("div", { className: dropdownClasses, ref: dropdownRef, id: id, "data-testid": "dropdown-root", ...rest, children: [jsxRuntime.jsx("div", { className: "dropdown-trigger", children: jsxRuntime.jsxs("button", { className: buttonClass, "aria-haspopup": "true", "aria-controls": id ? `${id}-menu` : undefined, "aria-expanded": active, onClick: handleToggle, disabled: disabled, type: "button", children: [jsxRuntime.jsx("span", { children: label }), jsxRuntime.jsx("span", { className: "icon is-small", "aria-hidden": "true", children: jsxRuntime.jsx("i", { className: "fas fa-angle-down" }) })] }) }), jsxRuntime.jsx("div", { className: classNames('dropdown-menu', menuClassName), id: id ? `${id}-menu` : undefined, role: "menu", "data-testid": "dropdown-menu", children: jsxRuntime.jsx("div", { className: "dropdown-content", onClick: handleMenuClick, tabIndex: -1, children: children }) })] }));
|
|
1111
689
|
};
|
|
1112
690
|
const DropdownItem = ({ children, active, className, as: Component = 'a', ...props }) => {
|
|
1113
691
|
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1114
|
-
return (
|
|
692
|
+
return (jsxRuntime.jsx(Component, { className: classNames('dropdown-item', bulmaHelperClasses, { 'is-active': active }, className), tabIndex: 0, role: "menuitem", "data-testid": "dropdown-item", ...rest, children: children }));
|
|
1115
693
|
};
|
|
1116
|
-
const DropdownDivider = () => (
|
|
694
|
+
const DropdownDivider = () => (jsxRuntime.jsx("hr", { className: "dropdown-divider" }));
|
|
1117
695
|
const Dropdown = Object.assign(DropdownComponent, {
|
|
1118
696
|
Item: DropdownItem,
|
|
1119
697
|
Divider: DropdownDivider,
|
|
@@ -1123,11 +701,11 @@ const MenuListLevelContext = React.createContext(0);
|
|
|
1123
701
|
const MenuComponent = ({ className, children, ...props }) => {
|
|
1124
702
|
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1125
703
|
const bulmaClasses = usePrefixedClassNames('menu');
|
|
1126
|
-
return (
|
|
704
|
+
return (jsxRuntime.jsx("aside", { className: classNames(bulmaClasses, bulmaHelperClasses, className), ...rest, children: children }));
|
|
1127
705
|
};
|
|
1128
706
|
const MenuLabel = ({ className, children, ...props }) => {
|
|
1129
707
|
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1130
|
-
return (
|
|
708
|
+
return (jsxRuntime.jsx("p", { className: classNames('menu-label', className, bulmaHelperClasses), ...rest, children: children }));
|
|
1131
709
|
};
|
|
1132
710
|
const MenuList = ({ className, children, ...props }) => {
|
|
1133
711
|
const level = React.useContext(MenuListLevelContext);
|
|
@@ -1135,7 +713,7 @@ const MenuList = ({ className, children, ...props }) => {
|
|
|
1135
713
|
const ulClass = classNames(className, bulmaHelperClasses, {
|
|
1136
714
|
'menu-list': level === 0,
|
|
1137
715
|
});
|
|
1138
|
-
return (
|
|
716
|
+
return (jsxRuntime.jsx(MenuListLevelContext.Provider, { value: level + 1, children: jsxRuntime.jsx("ul", { className: ulClass, ...rest, children: children }) }));
|
|
1139
717
|
};
|
|
1140
718
|
const MenuItem = ({ className, children, active, href, as: Component = 'a', 'data-testid': testId, ...rest }) => {
|
|
1141
719
|
const { bulmaHelperClasses, rest: bulmaRest } = useBulmaClasses(rest);
|
|
@@ -1157,7 +735,7 @@ const MenuItem = ({ className, children, active, href, as: Component = 'a', 'dat
|
|
|
1157
735
|
if (Object.prototype.hasOwnProperty.call(rest, 'to')) {
|
|
1158
736
|
linkProps.to = rest.to;
|
|
1159
737
|
}
|
|
1160
|
-
return (
|
|
738
|
+
return (jsxRuntime.jsxs("li", { className: className, "data-testid": testId, style: style, id: id, title: title, role: role, tabIndex: tabIndex, children: [jsxRuntime.jsx(Component, { className: itemClass, ...linkProps, children: labelChildren }), nestedMenuLists] }));
|
|
1161
739
|
};
|
|
1162
740
|
const Menu = Object.assign(MenuComponent, {
|
|
1163
741
|
Label: MenuLabel,
|
|
@@ -1176,10 +754,10 @@ const MessageComponent = ({ className, title, textColor, color, bgColor, onClose
|
|
|
1176
754
|
});
|
|
1177
755
|
const deleteClass = usePrefixedClassNames('delete');
|
|
1178
756
|
const messageClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1179
|
-
return (
|
|
757
|
+
return (jsxRuntime.jsxs("article", { className: messageClasses, ...rest, "data-testid": "message", children: [(title || onClose) && (jsxRuntime.jsxs("div", { className: "message-header", children: [title && jsxRuntime.jsx("span", { children: title }), onClose && (jsxRuntime.jsx("button", { className: deleteClass, "aria-label": "delete", onClick: onClose, type: "button", "data-testid": "message-close" }))] })), children && (jsxRuntime.jsx("div", { className: "message-body", "data-testid": "message-body", children: children }))] }));
|
|
1180
758
|
};
|
|
1181
|
-
const MessageHeader = ({ className, children, ...props }) => (
|
|
1182
|
-
const MessageBody = ({ className, children, ...props }) => (
|
|
759
|
+
const MessageHeader = ({ className, children, ...props }) => (jsxRuntime.jsx("div", { className: classNames('message-header', className), ...props, children: children }));
|
|
760
|
+
const MessageBody = ({ className, children, ...props }) => (jsxRuntime.jsx("div", { className: classNames('message-body', className), ...props, children: children }));
|
|
1183
761
|
const MessageWithSubComponents = MessageComponent;
|
|
1184
762
|
MessageWithSubComponents.Header = MessageHeader;
|
|
1185
763
|
MessageWithSubComponents.Body = MessageBody;
|
|
@@ -1202,7 +780,7 @@ const Modal = ({ active = false, onClose, className, textColor, bgColor, modalCa
|
|
|
1202
780
|
});
|
|
1203
781
|
const deleteClass = usePrefixedClassNames('delete');
|
|
1204
782
|
const modalClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1205
|
-
return (
|
|
783
|
+
return (jsxRuntime.jsxs("div", { className: modalClasses, ...rest, "data-testid": "modal", children: [jsxRuntime.jsx("div", { className: "modal-background", onClick: onClose, "data-testid": "modal-background" }), isModalCard ? (jsxRuntime.jsxs("div", { className: "modal-card", children: [modalCardTitle && (jsxRuntime.jsxs("header", { className: "modal-card-head", children: [jsxRuntime.jsx("p", { className: "modal-card-title", children: modalCardTitle }), onClose && (jsxRuntime.jsx("button", { className: deleteClass, "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close" }))] })), jsxRuntime.jsx("section", { className: "modal-card-body", "data-testid": "modal-body", children: children }), modalCardFoot && (jsxRuntime.jsx("footer", { className: "modal-card-foot", children: modalCardFoot }))] })) : (jsxRuntime.jsx("div", { className: "modal-content", "data-testid": "modal-content", children: children })), (!isModalCard || (!modalCardTitle && onClose)) && onClose && (jsxRuntime.jsx("button", { className: "modal-close is-large", "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close-float" }))] }));
|
|
1206
784
|
};
|
|
1207
785
|
|
|
1208
786
|
const Navbar = ({ className, textColor, bgColor, color, transparent, fixed, children, ...props }) => {
|
|
@@ -1217,14 +795,14 @@ const Navbar = ({ className, textColor, bgColor, color, transparent, fixed, chil
|
|
|
1217
795
|
[`is-fixed-${fixed}`]: fixed,
|
|
1218
796
|
});
|
|
1219
797
|
const navbarClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1220
|
-
return (
|
|
798
|
+
return (jsxRuntime.jsx("nav", { className: navbarClasses, role: "navigation", "aria-label": "main navigation", ...rest, children: children }));
|
|
1221
799
|
};
|
|
1222
800
|
const NavbarBrand = ({ className, children, textColor, ...props }) => {
|
|
1223
801
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1224
802
|
color: textColor,
|
|
1225
803
|
...props,
|
|
1226
804
|
});
|
|
1227
|
-
return (
|
|
805
|
+
return (jsxRuntime.jsx("div", { className: classNames('navbar-brand', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1228
806
|
};
|
|
1229
807
|
const NavbarItem = ({ className, as: Component = 'a', active, textColor, bgColor, children, ...props }) => {
|
|
1230
808
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1232,7 +810,7 @@ const NavbarItem = ({ className, as: Component = 'a', active, textColor, bgColor
|
|
|
1232
810
|
backgroundColor: bgColor,
|
|
1233
811
|
...props,
|
|
1234
812
|
});
|
|
1235
|
-
return (
|
|
813
|
+
return (jsxRuntime.jsx(Component, { className: classNames('navbar-item', bulmaHelperClasses, className, {
|
|
1236
814
|
'is-active': active,
|
|
1237
815
|
}), ...rest, children: children }));
|
|
1238
816
|
};
|
|
@@ -1241,15 +819,15 @@ const NavbarBurger = ({ className, active, children, ...props }) => {
|
|
|
1241
819
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1242
820
|
...props,
|
|
1243
821
|
});
|
|
1244
|
-
return (
|
|
822
|
+
return (jsxRuntime.jsxs("button", { type: "button", className: classNames('navbar-burger', bulmaHelperClasses, className, {
|
|
1245
823
|
'is-active': active,
|
|
1246
|
-
}), "aria-label": props['aria-label'] || 'menu', "aria-expanded": (_a = props['aria-expanded']) !== null && _a !== void 0 ? _a : !!active, ...rest, children: [
|
|
824
|
+
}), "aria-label": props['aria-label'] || 'menu', "aria-expanded": (_a = props['aria-expanded']) !== null && _a !== void 0 ? _a : !!active, ...rest, children: [jsxRuntime.jsx("span", { "aria-hidden": "true" }), jsxRuntime.jsx("span", { "aria-hidden": "true" }), jsxRuntime.jsx("span", { "aria-hidden": "true" }), children] }));
|
|
1247
825
|
};
|
|
1248
826
|
const NavbarMenu = ({ className, active, children, ...props }) => {
|
|
1249
827
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1250
828
|
...props,
|
|
1251
829
|
});
|
|
1252
|
-
return (
|
|
830
|
+
return (jsxRuntime.jsx("div", { className: classNames('navbar-menu', bulmaHelperClasses, className, {
|
|
1253
831
|
'is-active': active,
|
|
1254
832
|
}), ...rest, children: children }));
|
|
1255
833
|
};
|
|
@@ -1257,25 +835,25 @@ const NavbarStart = ({ className, children, ...props }) => {
|
|
|
1257
835
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1258
836
|
...props,
|
|
1259
837
|
});
|
|
1260
|
-
return (
|
|
838
|
+
return (jsxRuntime.jsx("div", { className: classNames('navbar-start', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1261
839
|
};
|
|
1262
840
|
const NavbarEnd = ({ className, children, ...props }) => {
|
|
1263
841
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1264
842
|
...props,
|
|
1265
843
|
});
|
|
1266
|
-
return (
|
|
844
|
+
return (jsxRuntime.jsx("div", { className: classNames('navbar-end', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1267
845
|
};
|
|
1268
|
-
const NavbarDropdown = ({ className, right, up, hoverable, active, children, ...props }) => (
|
|
846
|
+
const NavbarDropdown = ({ className, right, up, hoverable, active, children, ...props }) => (jsxRuntime.jsx("div", { className: classNames('navbar-item', 'has-dropdown', {
|
|
1269
847
|
'is-right': right,
|
|
1270
848
|
'is-up': up,
|
|
1271
849
|
'is-hoverable': hoverable,
|
|
1272
850
|
'is-active': active,
|
|
1273
851
|
}, className), ...props, children: children }));
|
|
1274
|
-
const NavbarDropdownMenu = ({ className, right, up, children, ...props }) => (
|
|
852
|
+
const NavbarDropdownMenu = ({ className, right, up, children, ...props }) => (jsxRuntime.jsx("div", { className: classNames('navbar-dropdown', {
|
|
1275
853
|
'is-right': right,
|
|
1276
854
|
'is-up': up,
|
|
1277
855
|
}, className), ...props, children: children }));
|
|
1278
|
-
const NavbarDivider = props =>
|
|
856
|
+
const NavbarDivider = props => jsxRuntime.jsx("hr", { className: "navbar-divider", ...props });
|
|
1279
857
|
Navbar.Brand = NavbarBrand;
|
|
1280
858
|
Navbar.Item = NavbarItem;
|
|
1281
859
|
Navbar.Burger = NavbarBurger;
|
|
@@ -1286,7 +864,7 @@ Navbar.Dropdown = NavbarDropdown;
|
|
|
1286
864
|
Navbar.DropdownMenu = NavbarDropdownMenu;
|
|
1287
865
|
Navbar.Divider = NavbarDivider;
|
|
1288
866
|
|
|
1289
|
-
const PaginationPrevious = ({ className, disabled, children, ...props }) => (
|
|
867
|
+
const PaginationPrevious = ({ className, disabled, children, ...props }) => (jsxRuntime.jsx("a", { className: classNames('pagination-previous', className, {
|
|
1290
868
|
'is-disabled': disabled,
|
|
1291
869
|
}), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
|
|
1292
870
|
? e => {
|
|
@@ -1294,7 +872,7 @@ const PaginationPrevious = ({ className, disabled, children, ...props }) => (jsx
|
|
|
1294
872
|
e.stopPropagation();
|
|
1295
873
|
}
|
|
1296
874
|
: props.onClick, children: children }));
|
|
1297
|
-
const PaginationNext = ({ className, disabled, children, ...props }) => (
|
|
875
|
+
const PaginationNext = ({ className, disabled, children, ...props }) => (jsxRuntime.jsx("a", { className: classNames('pagination-next', className, {
|
|
1298
876
|
'is-disabled': disabled,
|
|
1299
877
|
}), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
|
|
1300
878
|
? e => {
|
|
@@ -1315,7 +893,7 @@ const Pagination = ({ color, textColor, bgColor, size, align, rounded, className
|
|
|
1315
893
|
'is-rounded': rounded,
|
|
1316
894
|
});
|
|
1317
895
|
const paginationClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1318
|
-
return (
|
|
896
|
+
return (jsxRuntime.jsx("nav", { className: paginationClasses, role: "navigation", "aria-label": "pagination", ...rest, children: children }));
|
|
1319
897
|
};
|
|
1320
898
|
const PaginationList = ({ className, textColor, bgColor, children, ...props }) => {
|
|
1321
899
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1323,7 +901,7 @@ const PaginationList = ({ className, textColor, bgColor, children, ...props }) =
|
|
|
1323
901
|
backgroundColor: bgColor,
|
|
1324
902
|
...props,
|
|
1325
903
|
});
|
|
1326
|
-
return (
|
|
904
|
+
return (jsxRuntime.jsx("ul", { className: classNames('pagination-list', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1327
905
|
};
|
|
1328
906
|
const PaginationLink = ({ className, textColor, bgColor, active, disabled, onClick, children, ...props }) => {
|
|
1329
907
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1341,12 +919,12 @@ const PaginationLink = ({ className, textColor, bgColor, active, disabled, onCli
|
|
|
1341
919
|
onClick(e);
|
|
1342
920
|
}
|
|
1343
921
|
};
|
|
1344
|
-
return (
|
|
922
|
+
return (jsxRuntime.jsx("li", { children: jsxRuntime.jsx("a", { className: classNames('pagination-link', bulmaHelperClasses, className, {
|
|
1345
923
|
'is-current': active,
|
|
1346
924
|
'is-disabled': disabled,
|
|
1347
925
|
}), "aria-current": active ? 'page' : undefined, "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, onClick: handleClick, ...rest, children: children }) }));
|
|
1348
926
|
};
|
|
1349
|
-
const PaginationEllipsis = props => (
|
|
927
|
+
const PaginationEllipsis = props => (jsxRuntime.jsx("li", { children: jsxRuntime.jsx("span", { className: "pagination-ellipsis", ...props, children: "\u2026" }) }));
|
|
1350
928
|
Pagination.Link = PaginationLink;
|
|
1351
929
|
Pagination.List = PaginationList;
|
|
1352
930
|
Pagination.Ellipsis = PaginationEllipsis;
|
|
@@ -1362,18 +940,18 @@ const Panel = ({ color, className, children, ...props }) => {
|
|
|
1362
940
|
[`is-${color}`]: color,
|
|
1363
941
|
});
|
|
1364
942
|
const panelClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1365
|
-
return (
|
|
943
|
+
return (jsxRuntime.jsx("nav", { className: panelClasses, ...rest, children: children }));
|
|
1366
944
|
};
|
|
1367
|
-
const PanelHeading = ({ className, children, ...props }) => (
|
|
1368
|
-
const PanelTabs = ({ className, children, ...props }) => (
|
|
1369
|
-
const PanelBlock = ({ className, active, children, ...props }) => (
|
|
1370
|
-
const PanelIcon = ({ className, children, ...props }) => (
|
|
945
|
+
const PanelHeading = ({ className, children, ...props }) => (jsxRuntime.jsx("p", { className: classNames('panel-heading', className), ...props, children: children }));
|
|
946
|
+
const PanelTabs = ({ className, children, ...props }) => (jsxRuntime.jsx("p", { className: classNames('panel-tabs', className), ...props, children: children }));
|
|
947
|
+
const PanelBlock = ({ className, active, children, ...props }) => (jsxRuntime.jsx("a", { className: classNames('panel-block', className, { 'is-active': active }), ...props, children: children }));
|
|
948
|
+
const PanelIcon = ({ className, children, ...props }) => (jsxRuntime.jsx("span", { className: classNames('panel-icon', className), ...props, children: children }));
|
|
1371
949
|
const PanelInputBlock = ({ value, onChange, placeholder, iconClassName = 'fas fa-search', ...props }) => {
|
|
1372
950
|
const inputClass = usePrefixedClassNames('input');
|
|
1373
|
-
return (
|
|
951
|
+
return (jsxRuntime.jsx("div", { className: "panel-block", ...props, children: jsxRuntime.jsxs("p", { className: "control has-icons-left", children: [jsxRuntime.jsx("input", { className: inputClass, type: "text", placeholder: placeholder, value: value, onChange: onChange }), jsxRuntime.jsx("span", { className: "icon is-left", children: jsxRuntime.jsx("i", { className: iconClassName, "aria-hidden": "true" }) })] }) }));
|
|
1374
952
|
};
|
|
1375
|
-
const PanelCheckboxBlock = ({ checked, onChange, children, ...props }) => (
|
|
1376
|
-
const PanelButtonBlock = ({ children, className, ...props }) => (
|
|
953
|
+
const PanelCheckboxBlock = ({ checked, onChange, children, ...props }) => (jsxRuntime.jsxs("label", { className: "panel-block", ...props, children: [jsxRuntime.jsx("input", { type: "checkbox", checked: checked, onChange: onChange }), children] }));
|
|
954
|
+
const PanelButtonBlock = ({ children, className, ...props }) => (jsxRuntime.jsx("div", { className: "panel-block", children: jsxRuntime.jsx("button", { className: classNames('button is-link is-outlined is-fullwidth', className), ...props, children: children }) }));
|
|
1377
955
|
Panel.Heading = PanelHeading;
|
|
1378
956
|
Panel.Tabs = PanelTabs;
|
|
1379
957
|
Panel.Block = PanelBlock;
|
|
@@ -1396,10 +974,10 @@ const Tabs = ({ align, size, fullwidth, boxed, toggle, rounded, color, className
|
|
|
1396
974
|
'is-toggle-rounded': rounded,
|
|
1397
975
|
});
|
|
1398
976
|
const tabsClass = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1399
|
-
return (
|
|
977
|
+
return (jsxRuntime.jsx("div", { className: tabsClass, ...rest, children: children }));
|
|
1400
978
|
};
|
|
1401
|
-
const TabList = ({ className, children, ...props }) => (
|
|
1402
|
-
const TabItem = ({ active, className, children, onClick, ...props }) => (
|
|
979
|
+
const TabList = ({ className, children, ...props }) => (jsxRuntime.jsx("ul", { className: classNames(className), ...props, children: children }));
|
|
980
|
+
const TabItem = ({ active, className, children, onClick, ...props }) => (jsxRuntime.jsx("li", { className: classNames({ 'is-active': active }, className), onClick: onClick, ...props, children: children }));
|
|
1403
981
|
Tabs.List = TabList;
|
|
1404
982
|
Tabs.Item = TabItem;
|
|
1405
983
|
|
|
@@ -1411,7 +989,7 @@ const Block = ({ className, textColor, bgColor, children, ...props }) => {
|
|
|
1411
989
|
});
|
|
1412
990
|
const bulmaClasses = usePrefixedClassNames('block');
|
|
1413
991
|
const blockClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1414
|
-
return (
|
|
992
|
+
return (jsxRuntime.jsx("div", { className: blockClasses, ...rest, children: children }));
|
|
1415
993
|
};
|
|
1416
994
|
|
|
1417
995
|
const Box = ({ className, textColor, bgColor, hasShadow = true, children, ...props }) => {
|
|
@@ -1424,7 +1002,7 @@ const Box = ({ className, textColor, bgColor, hasShadow = true, children, ...pro
|
|
|
1424
1002
|
'is-shadowless': !hasShadow,
|
|
1425
1003
|
});
|
|
1426
1004
|
const boxClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1427
|
-
return (
|
|
1005
|
+
return (jsxRuntime.jsx("div", { className: boxClasses, ...rest, children: children }));
|
|
1428
1006
|
};
|
|
1429
1007
|
|
|
1430
1008
|
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 }) => {
|
|
@@ -1451,11 +1029,11 @@ const Button = ({ color, size, isLight, isRounded, isLoading, isStatic, isFullWi
|
|
|
1451
1029
|
const buttonClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1452
1030
|
if (as === 'a') {
|
|
1453
1031
|
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;
|
|
1454
|
-
return (
|
|
1032
|
+
return (jsxRuntime.jsx("a", { className: buttonClasses, href: href, target: target, rel: rel, "aria-disabled": isDisabled, tabIndex: isDisabled ? -1 : undefined, onClick: isDisabled
|
|
1455
1033
|
? (e) => e.preventDefault()
|
|
1456
1034
|
: onClick, ...anchorRest, children: children }));
|
|
1457
1035
|
}
|
|
1458
|
-
return (
|
|
1036
|
+
return (jsxRuntime.jsx("button", { className: buttonClasses, disabled: isDisabled, onClick: onClick, ...rest, children: children }));
|
|
1459
1037
|
};
|
|
1460
1038
|
|
|
1461
1039
|
const Buttons = ({ className, textColor, bgColor, isCentered, isRight, hasAddons, children, ...props }) => {
|
|
@@ -1470,7 +1048,7 @@ const Buttons = ({ className, textColor, bgColor, isCentered, isRight, hasAddons
|
|
|
1470
1048
|
...props,
|
|
1471
1049
|
});
|
|
1472
1050
|
const combinedClasses = classNames(buttonsClasses, className, bulmaHelperClasses);
|
|
1473
|
-
return (
|
|
1051
|
+
return (jsxRuntime.jsx("div", { className: combinedClasses, ...rest, children: children }));
|
|
1474
1052
|
};
|
|
1475
1053
|
|
|
1476
1054
|
const validSizes = ['small', 'medium', 'large'];
|
|
@@ -1484,7 +1062,7 @@ const Content = ({ className, textColor, bgColor, size, children, ...props }) =>
|
|
|
1484
1062
|
[`is-${size}`]: size && size !== 'normal' && validSizes.includes(size),
|
|
1485
1063
|
});
|
|
1486
1064
|
const contentClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1487
|
-
return (
|
|
1065
|
+
return (jsxRuntime.jsx("div", { className: contentClasses, ...rest, children: children }));
|
|
1488
1066
|
};
|
|
1489
1067
|
|
|
1490
1068
|
const Delete = ({ className, textColor, bgColor, onClick, size, ariaLabel = 'Close', disabled = false, ...props }) => {
|
|
@@ -1498,7 +1076,7 @@ const Delete = ({ className, textColor, bgColor, onClick, size, ariaLabel = 'Clo
|
|
|
1498
1076
|
'is-disabled': disabled,
|
|
1499
1077
|
});
|
|
1500
1078
|
const classes = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1501
|
-
return (
|
|
1079
|
+
return (jsxRuntime.jsx("button", { className: classes, onClick: onClick, "aria-label": ariaLabel, disabled: disabled, type: "button", ...rest }));
|
|
1502
1080
|
};
|
|
1503
1081
|
|
|
1504
1082
|
function getIconClasses(library, name, variant, features) {
|
|
@@ -1555,7 +1133,25 @@ function getIconClasses(library, name, variant, features) {
|
|
|
1555
1133
|
return [name, ...featureList].join(' ');
|
|
1556
1134
|
}
|
|
1557
1135
|
}
|
|
1558
|
-
const Icon = ({ className, textColor, bgColor, name, library
|
|
1136
|
+
const Icon = ({ className, textColor, bgColor, name, library, variant, features, libraryFeatures, size, ariaLabel = 'icon', style, icon, color: _color, ...restProps }) => {
|
|
1137
|
+
let finalName = name;
|
|
1138
|
+
if (!name && icon) {
|
|
1139
|
+
if (typeof icon === 'string') {
|
|
1140
|
+
const parts = icon.split(' ');
|
|
1141
|
+
const lastPart = parts[parts.length - 1];
|
|
1142
|
+
if (lastPart.startsWith('mdi-')) {
|
|
1143
|
+
finalName = lastPart.substring(4);
|
|
1144
|
+
}
|
|
1145
|
+
else if (lastPart.startsWith('fa-')) {
|
|
1146
|
+
finalName = lastPart.substring(3);
|
|
1147
|
+
}
|
|
1148
|
+
else {
|
|
1149
|
+
finalName = lastPart;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
const defaultLibrary = useIconLibrary();
|
|
1154
|
+
const finalLibrary = library || defaultLibrary || 'fa';
|
|
1559
1155
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1560
1156
|
color: textColor,
|
|
1561
1157
|
backgroundColor: bgColor,
|
|
@@ -1571,7 +1167,7 @@ const Icon = ({ className, textColor, bgColor, name, library = 'fa', variant, fe
|
|
|
1571
1167
|
const legacyFeatures = Array.isArray(libraryFeatures)
|
|
1572
1168
|
? libraryFeatures
|
|
1573
1169
|
: [libraryFeatures];
|
|
1574
|
-
if (
|
|
1170
|
+
if (finalLibrary === 'fa') {
|
|
1575
1171
|
const faStyle = legacyFeatures.find(f => [
|
|
1576
1172
|
'fas',
|
|
1577
1173
|
'far',
|
|
@@ -1594,8 +1190,9 @@ const Icon = ({ className, textColor, bgColor, name, library = 'fa', variant, fe
|
|
|
1594
1190
|
finalFeatures = legacyFeatures;
|
|
1595
1191
|
}
|
|
1596
1192
|
}
|
|
1597
|
-
else if (
|
|
1598
|
-
|
|
1193
|
+
else if (finalLibrary === 'material-icons' ||
|
|
1194
|
+
finalLibrary === 'material-symbols') {
|
|
1195
|
+
const styleVariants = finalLibrary === 'material-icons'
|
|
1599
1196
|
? ['filled', 'outlined', 'round', 'sharp']
|
|
1600
1197
|
: ['outlined', 'rounded', 'sharp'];
|
|
1601
1198
|
const styleVariant = legacyFeatures.find(f => styleVariants.includes(f));
|
|
@@ -1611,21 +1208,22 @@ const Icon = ({ className, textColor, bgColor, name, library = 'fa', variant, fe
|
|
|
1611
1208
|
finalFeatures = legacyFeatures;
|
|
1612
1209
|
}
|
|
1613
1210
|
}
|
|
1614
|
-
if (
|
|
1615
|
-
let ionName =
|
|
1211
|
+
if (finalLibrary === 'ion') {
|
|
1212
|
+
let ionName = finalName;
|
|
1616
1213
|
if (finalVariant === 'outline') {
|
|
1617
|
-
ionName = `${
|
|
1214
|
+
ionName = `${finalName}-outline`;
|
|
1618
1215
|
}
|
|
1619
1216
|
else if (finalVariant === 'sharp') {
|
|
1620
|
-
ionName = `${
|
|
1217
|
+
ionName = `${finalName}-sharp`;
|
|
1621
1218
|
}
|
|
1622
|
-
return (
|
|
1219
|
+
return (jsxRuntime.jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsxRuntime.jsx("ion-icon", { name: ionName }) }));
|
|
1623
1220
|
}
|
|
1624
|
-
const iClasses = getIconClasses(
|
|
1625
|
-
if (
|
|
1626
|
-
|
|
1221
|
+
const iClasses = getIconClasses(finalLibrary, finalName, finalVariant, finalFeatures);
|
|
1222
|
+
if (finalLibrary === 'material-icons' ||
|
|
1223
|
+
finalLibrary === 'material-symbols') {
|
|
1224
|
+
return (jsxRuntime.jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsxRuntime.jsx("i", { className: iClasses, children: finalName }) }));
|
|
1627
1225
|
}
|
|
1628
|
-
return (
|
|
1226
|
+
return (jsxRuntime.jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsxRuntime.jsx("i", { className: iClasses }) }));
|
|
1629
1227
|
};
|
|
1630
1228
|
|
|
1631
1229
|
const IconText = ({ className, textColor, bgColor, iconProps, children, items, ...props }) => {
|
|
@@ -1636,7 +1234,7 @@ const IconText = ({ className, textColor, bgColor, iconProps, children, items, .
|
|
|
1636
1234
|
});
|
|
1637
1235
|
const bulmaClasses = usePrefixedClassNames('icon-text');
|
|
1638
1236
|
const iconTextClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1639
|
-
return (
|
|
1237
|
+
return (jsxRuntime.jsx("span", { className: iconTextClasses, ...rest, children: items ? (items.map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(Icon, { ...item.iconProps }), item.text && jsxRuntime.jsx("span", { children: item.text })] }, index)))) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [iconProps && jsxRuntime.jsx(Icon, { ...iconProps }), children && jsxRuntime.jsx("span", { children: children })] })) }));
|
|
1640
1238
|
};
|
|
1641
1239
|
|
|
1642
1240
|
const Image = ({ as, className, textColor, bgColor, size, isRounded, isRetina, src, alt, children, ...props }) => {
|
|
@@ -1661,8 +1259,8 @@ const Image = ({ as, className, textColor, bgColor, size, isRounded, isRetina, s
|
|
|
1661
1259
|
Tag = 'div';
|
|
1662
1260
|
}
|
|
1663
1261
|
const roundedClass = usePrefixedClassNames('is-rounded');
|
|
1664
|
-
const content = children ? (children) : (
|
|
1665
|
-
return (
|
|
1262
|
+
const content = children ? (children) : (jsxRuntime.jsx("img", { className: classNames({ [roundedClass]: isRounded }), src: src, alt: alt, ...(isRetina && src ? { srcSet: `${src} 2x` } : {}) }));
|
|
1263
|
+
return (jsxRuntime.jsx(Tag, { className: imageClasses, ...rest, children: content }));
|
|
1666
1264
|
};
|
|
1667
1265
|
|
|
1668
1266
|
const Notification = ({ className, color, isLight, hasDelete, onDelete, children, ...props }) => {
|
|
@@ -1675,7 +1273,7 @@ const Notification = ({ className, color, isLight, hasDelete, onDelete, children
|
|
|
1675
1273
|
});
|
|
1676
1274
|
const deleteClasses = usePrefixedClassNames('delete');
|
|
1677
1275
|
const notificationClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1678
|
-
return (
|
|
1276
|
+
return (jsxRuntime.jsxs("div", { className: notificationClasses, ...rest, children: [hasDelete && (jsxRuntime.jsx("button", { className: deleteClasses, onClick: onDelete, "aria-label": "Close notification" })), children] }));
|
|
1679
1277
|
};
|
|
1680
1278
|
|
|
1681
1279
|
const Progress = ({ className, color, size, value, max, children, ...props }) => {
|
|
@@ -1687,16 +1285,16 @@ const Progress = ({ className, color, size, value, max, children, ...props }) =>
|
|
|
1687
1285
|
[`is-${size}`]: size,
|
|
1688
1286
|
});
|
|
1689
1287
|
const progressClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1690
|
-
return (
|
|
1288
|
+
return (jsxRuntime.jsx("progress", { className: progressClasses, value: value, max: max, ...rest, children: children }));
|
|
1691
1289
|
};
|
|
1692
1290
|
|
|
1693
1291
|
const Skeleton = ({ className, variant = 'block', lines = 3, children, ...props }) => {
|
|
1694
1292
|
const linesClass = usePrefixedClassNames('skeleton-lines');
|
|
1695
1293
|
const blockClass = usePrefixedClassNames('skeleton-block');
|
|
1696
1294
|
if (variant === 'lines') {
|
|
1697
|
-
return (
|
|
1295
|
+
return (jsxRuntime.jsx("div", { className: classNames(linesClass, className), ...props, children: Array.from({ length: lines }).map((_, i) => (jsxRuntime.jsx("div", {}, i))) }));
|
|
1698
1296
|
}
|
|
1699
|
-
return (
|
|
1297
|
+
return (jsxRuntime.jsx("div", { className: classNames(blockClass, className), ...props, children: children }));
|
|
1700
1298
|
};
|
|
1701
1299
|
|
|
1702
1300
|
const validSubTitleSizes = ['1', '2', '3', '4', '5', '6'];
|
|
@@ -1709,8 +1307,12 @@ const validSubTitleElements = [
|
|
|
1709
1307
|
'h6',
|
|
1710
1308
|
'p',
|
|
1711
1309
|
];
|
|
1712
|
-
const SubTitle = ({ className, size, as = 'h1', hasSkeleton, children, ...props }) => {
|
|
1713
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1310
|
+
const SubTitle = ({ className, size, as = 'h1', hasSkeleton, textColor, bgColor, children, ...props }) => {
|
|
1311
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1312
|
+
color: textColor,
|
|
1313
|
+
backgroundColor: bgColor,
|
|
1314
|
+
...props,
|
|
1315
|
+
});
|
|
1714
1316
|
const element = validSubTitleElements.includes(as) ? as : 'h1';
|
|
1715
1317
|
const validSize = size && validSubTitleSizes.includes(size) ? size : undefined;
|
|
1716
1318
|
const bulmaClasses = usePrefixedClassNames('subtitle', {
|
|
@@ -1719,7 +1321,7 @@ const SubTitle = ({ className, size, as = 'h1', hasSkeleton, children, ...props
|
|
|
1719
1321
|
});
|
|
1720
1322
|
const subTitleClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1721
1323
|
const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
|
|
1722
|
-
return (
|
|
1324
|
+
return (jsxRuntime.jsx(Tag, { className: subTitleClasses, ...rest, children: children }));
|
|
1723
1325
|
};
|
|
1724
1326
|
|
|
1725
1327
|
const Table = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFullwidth, isResponsive, children, ...props }) => {
|
|
@@ -1733,9 +1335,9 @@ const Table = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFull
|
|
|
1733
1335
|
});
|
|
1734
1336
|
const containerClass = usePrefixedClassNames('table-container');
|
|
1735
1337
|
const tableClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1736
|
-
const tableElement = (
|
|
1338
|
+
const tableElement = (jsxRuntime.jsx("table", { className: tableClasses, ...rest, children: children }));
|
|
1737
1339
|
if (isResponsive) {
|
|
1738
|
-
return
|
|
1340
|
+
return jsxRuntime.jsx("div", { className: containerClass, children: tableElement });
|
|
1739
1341
|
}
|
|
1740
1342
|
return tableElement;
|
|
1741
1343
|
};
|
|
@@ -1764,9 +1366,9 @@ const Tag = ({ className, color, size, isRounded, isDelete, isHoverable, onDelet
|
|
|
1764
1366
|
});
|
|
1765
1367
|
const tagClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1766
1368
|
if (isDelete) {
|
|
1767
|
-
return (
|
|
1369
|
+
return (jsxRuntime.jsx("button", { className: tagClasses, onClick: onDelete, "aria-label": "Delete tag", ...rest }));
|
|
1768
1370
|
}
|
|
1769
|
-
return (
|
|
1371
|
+
return (jsxRuntime.jsx("span", { className: tagClasses, ...rest, children: children }));
|
|
1770
1372
|
};
|
|
1771
1373
|
|
|
1772
1374
|
const Tags = ({ className, hasAddons, isMultiline, children, ...props }) => {
|
|
@@ -1776,13 +1378,13 @@ const Tags = ({ className, hasAddons, isMultiline, children, ...props }) => {
|
|
|
1776
1378
|
'are-multiline': isMultiline,
|
|
1777
1379
|
});
|
|
1778
1380
|
const tagsClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1779
|
-
return (
|
|
1381
|
+
return (jsxRuntime.jsx("div", { className: tagsClasses, ...rest, children: children }));
|
|
1780
1382
|
};
|
|
1781
1383
|
|
|
1782
1384
|
const Tbody = ({ className, children, ...props }) => {
|
|
1783
1385
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1784
1386
|
const tbodyClasses = classNames(className, bulmaHelperClasses);
|
|
1785
|
-
return (
|
|
1387
|
+
return (jsxRuntime.jsx("tbody", { className: tbodyClasses, ...rest, children: children }));
|
|
1786
1388
|
};
|
|
1787
1389
|
|
|
1788
1390
|
const validTableColors = [
|
|
@@ -1803,13 +1405,13 @@ const Td = ({ className, color, children, ...props }) => {
|
|
|
1803
1405
|
});
|
|
1804
1406
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1805
1407
|
const tdClasses = classNames(colorClass, className, bulmaHelperClasses);
|
|
1806
|
-
return (
|
|
1408
|
+
return (jsxRuntime.jsx("td", { className: tdClasses, ...rest, children: children }));
|
|
1807
1409
|
};
|
|
1808
1410
|
|
|
1809
1411
|
const Tfoot = ({ className, children, ...props }) => {
|
|
1810
1412
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1811
1413
|
const tfootClasses = classNames(className, bulmaHelperClasses);
|
|
1812
|
-
return (
|
|
1414
|
+
return (jsxRuntime.jsx("tfoot", { className: tfootClasses, ...rest, children: children }));
|
|
1813
1415
|
};
|
|
1814
1416
|
|
|
1815
1417
|
const validAlignments = ['left', 'right', 'centered'];
|
|
@@ -1820,7 +1422,7 @@ const Th = ({ className, isAligned, width, color, children, ...props }) => {
|
|
|
1820
1422
|
});
|
|
1821
1423
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1822
1424
|
const thClasses = classNames(bulmaClasses, className, bulmaHelperClasses);
|
|
1823
|
-
return (
|
|
1425
|
+
return (jsxRuntime.jsx("th", { className: thClasses, style: width
|
|
1824
1426
|
? { width: typeof width === 'number' ? `${width}px` : width }
|
|
1825
1427
|
: undefined, ...rest, children: children }));
|
|
1826
1428
|
};
|
|
@@ -1828,13 +1430,17 @@ const Th = ({ className, isAligned, width, color, children, ...props }) => {
|
|
|
1828
1430
|
const Thead = ({ className, children, ...props }) => {
|
|
1829
1431
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1830
1432
|
const theadClasses = classNames(className, bulmaHelperClasses);
|
|
1831
|
-
return (
|
|
1433
|
+
return (jsxRuntime.jsx("thead", { className: theadClasses, ...rest, children: children }));
|
|
1832
1434
|
};
|
|
1833
1435
|
|
|
1834
1436
|
const validTitleSizes = ['1', '2', '3', '4', '5', '6'];
|
|
1835
1437
|
const validTitleElements = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'];
|
|
1836
|
-
const Title = ({ className, size, isSpaced, as = 'h1', hasSkeleton, children, ...props }) => {
|
|
1837
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1438
|
+
const Title = ({ className, size, isSpaced, as = 'h1', hasSkeleton, textColor, bgColor, children, ...props }) => {
|
|
1439
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1440
|
+
color: textColor,
|
|
1441
|
+
backgroundColor: bgColor,
|
|
1442
|
+
...props,
|
|
1443
|
+
});
|
|
1838
1444
|
const element = validTitleElements.includes(as) ? as : 'h1';
|
|
1839
1445
|
const validSize = size && validTitleSizes.includes(size) ? size : undefined;
|
|
1840
1446
|
const bulmaClasses = usePrefixedClassNames('title', {
|
|
@@ -1844,7 +1450,7 @@ const Title = ({ className, size, isSpaced, as = 'h1', hasSkeleton, children, ..
|
|
|
1844
1450
|
});
|
|
1845
1451
|
const titleClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
1846
1452
|
const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
|
|
1847
|
-
return (
|
|
1453
|
+
return (jsxRuntime.jsx(Tag, { className: titleClasses, ...rest, children: children }));
|
|
1848
1454
|
};
|
|
1849
1455
|
|
|
1850
1456
|
const Tr = ({ className, isSelected, color, children, ...props }) => {
|
|
@@ -1854,7 +1460,7 @@ const Tr = ({ className, isSelected, color, children, ...props }) => {
|
|
|
1854
1460
|
});
|
|
1855
1461
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1856
1462
|
const trClasses = classNames(bulmaClasses, className, bulmaHelperClasses);
|
|
1857
|
-
return (
|
|
1463
|
+
return (jsxRuntime.jsx("tr", { className: trClasses, ...rest, children: children }));
|
|
1858
1464
|
};
|
|
1859
1465
|
|
|
1860
1466
|
const Checkbox = React.forwardRef(({ disabled, className, children, ...props }, ref) => {
|
|
@@ -1863,7 +1469,7 @@ const Checkbox = React.forwardRef(({ disabled, className, children, ...props },
|
|
|
1863
1469
|
});
|
|
1864
1470
|
const mainClass = usePrefixedClassNames('checkbox');
|
|
1865
1471
|
const checkboxClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1866
|
-
return (
|
|
1472
|
+
return (jsxRuntime.jsxs("label", { className: checkboxClass, children: [jsxRuntime.jsx("input", { ref: ref, type: "checkbox", disabled: disabled, ...rest }), children] }));
|
|
1867
1473
|
});
|
|
1868
1474
|
Checkbox.displayName = 'Checkbox';
|
|
1869
1475
|
|
|
@@ -1873,7 +1479,7 @@ const Checkboxes = ({ children, className, ...props }) => {
|
|
|
1873
1479
|
});
|
|
1874
1480
|
const mainClass = usePrefixedClassNames('checkboxes');
|
|
1875
1481
|
const wrapperClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1876
|
-
return (
|
|
1482
|
+
return (jsxRuntime.jsx("div", { className: wrapperClass, ...rest, children: children }));
|
|
1877
1483
|
};
|
|
1878
1484
|
|
|
1879
1485
|
const allowedColors = [...validColors, 'inherit', 'current'];
|
|
@@ -1913,7 +1519,7 @@ const Control = React.forwardRef(({ as = 'div', hasIconsLeft, hasIconsRight, isL
|
|
|
1913
1519
|
[`is-${size}`]: !!size,
|
|
1914
1520
|
});
|
|
1915
1521
|
const controlClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1916
|
-
return (
|
|
1522
|
+
return (jsxRuntime.jsxs(Component, { className: controlClass, ref: ref, ...restProps, ...rest, children: [children, leftIconProps && leftIconProps.name && (jsxRuntime.jsx(Icon, { ...leftIconProps, className: "is-left" })), rightIconProps && rightIconProps.name && (jsxRuntime.jsx(Icon, { ...rightIconProps, className: "is-right" }))] }));
|
|
1917
1523
|
});
|
|
1918
1524
|
Control.displayName = 'Control';
|
|
1919
1525
|
|
|
@@ -1927,7 +1533,7 @@ const FieldLabel = ({ size, textColor, bgColor, className, children, ...props })
|
|
|
1927
1533
|
[`is-${size}`]: !!size,
|
|
1928
1534
|
});
|
|
1929
1535
|
const fieldLabelClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1930
|
-
return (
|
|
1536
|
+
return (jsxRuntime.jsx("div", { className: fieldLabelClass, ...props, ...rest, children: children }));
|
|
1931
1537
|
};
|
|
1932
1538
|
const FieldBody = ({ textColor, bgColor, className, children, ...props }) => {
|
|
1933
1539
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1937,7 +1543,7 @@ const FieldBody = ({ textColor, bgColor, className, children, ...props }) => {
|
|
|
1937
1543
|
});
|
|
1938
1544
|
const mainClass = usePrefixedClassNames('field-body');
|
|
1939
1545
|
const fieldBodyClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
1940
|
-
return (
|
|
1546
|
+
return (jsxRuntime.jsx("div", { className: fieldBodyClass, ...props, ...rest, children: children }));
|
|
1941
1547
|
};
|
|
1942
1548
|
const Field = ({ horizontal, grouped, hasAddons, label, labelSize, labelProps, textColor, color: _fieldColor, bgColor, className, children, ...props }) => {
|
|
1943
1549
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -1962,10 +1568,10 @@ const Field = ({ horizontal, grouped, hasAddons, label, labelSize, labelProps, t
|
|
|
1962
1568
|
let renderedLabel = null;
|
|
1963
1569
|
if (label) {
|
|
1964
1570
|
if (horizontal) {
|
|
1965
|
-
renderedLabel = (
|
|
1571
|
+
renderedLabel = (jsxRuntime.jsx(FieldLabel, { size: mappedLabelSize, children: jsxRuntime.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 }) }));
|
|
1966
1572
|
}
|
|
1967
1573
|
else {
|
|
1968
|
-
renderedLabel = (
|
|
1574
|
+
renderedLabel = (jsxRuntime.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 }));
|
|
1969
1575
|
}
|
|
1970
1576
|
}
|
|
1971
1577
|
let content = children;
|
|
@@ -1975,10 +1581,10 @@ const Field = ({ horizontal, grouped, hasAddons, label, labelSize, labelProps, t
|
|
|
1975
1581
|
content = children;
|
|
1976
1582
|
}
|
|
1977
1583
|
else {
|
|
1978
|
-
content =
|
|
1584
|
+
content = jsxRuntime.jsx(FieldBody, { children: children });
|
|
1979
1585
|
}
|
|
1980
1586
|
}
|
|
1981
|
-
return (
|
|
1587
|
+
return (jsxRuntime.jsxs("div", { className: fieldClass, ...rest, children: [renderedLabel, content] }));
|
|
1982
1588
|
};
|
|
1983
1589
|
FieldLabel.displayName = 'FieldLabel';
|
|
1984
1590
|
FieldBody.displayName = 'FieldBody';
|
|
@@ -2008,7 +1614,7 @@ const File = React.forwardRef(({ color, size, isBoxed, isFullwidth, isRight, isC
|
|
|
2008
1614
|
'has-name': hasName,
|
|
2009
1615
|
});
|
|
2010
1616
|
const fileClass = classNames(mainClass, bulmaHelperClasses, alignmentClass, className);
|
|
2011
|
-
return (
|
|
1617
|
+
return (jsxRuntime.jsx("div", { className: fileClass, children: jsxRuntime.jsxs("label", { className: "file-label", children: [jsxRuntime.jsx("input", { ref: ref, className: classNames('file-input', inputClassName), type: "file", ...rest }), jsxRuntime.jsxs("span", { className: "file-cta", children: [iconLeft && jsxRuntime.jsx("span", { className: "file-icon", children: iconLeft }), jsxRuntime.jsx("span", { className: "file-label", children: label || 'Choose a file…' }), iconRight && jsxRuntime.jsx("span", { className: "file-icon", children: iconRight })] }), hasName && fileName && jsxRuntime.jsx("span", { className: "file-name", children: fileName })] }) }));
|
|
2012
1618
|
});
|
|
2013
1619
|
File.displayName = 'File';
|
|
2014
1620
|
|
|
@@ -2027,7 +1633,7 @@ const Input = React.forwardRef(({ color, size, isRounded, isStatic, isHovered, i
|
|
|
2027
1633
|
'is-loading': isLoading,
|
|
2028
1634
|
});
|
|
2029
1635
|
const inputClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2030
|
-
return (
|
|
1636
|
+
return (jsxRuntime.jsx("input", { ref: ref, className: inputClass, disabled: disabled, readOnly: readOnly, ...rest }));
|
|
2031
1637
|
});
|
|
2032
1638
|
Input.displayName = 'Input';
|
|
2033
1639
|
|
|
@@ -2037,7 +1643,7 @@ const Radio = React.forwardRef(({ disabled, className, children, ...props }, ref
|
|
|
2037
1643
|
});
|
|
2038
1644
|
const mainClass = usePrefixedClassNames('radio');
|
|
2039
1645
|
const radioClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2040
|
-
return (
|
|
1646
|
+
return (jsxRuntime.jsxs("label", { className: radioClass, children: [jsxRuntime.jsx("input", { ref: ref, type: "radio", disabled: disabled, ...rest }), children] }));
|
|
2041
1647
|
});
|
|
2042
1648
|
Radio.displayName = 'Radio';
|
|
2043
1649
|
|
|
@@ -2047,7 +1653,7 @@ const Radios = ({ children, className, ...props }) => {
|
|
|
2047
1653
|
});
|
|
2048
1654
|
const mainClass = usePrefixedClassNames('radios');
|
|
2049
1655
|
const wrapperClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2050
|
-
return (
|
|
1656
|
+
return (jsxRuntime.jsx("div", { className: wrapperClass, ...rest, children: children }));
|
|
2051
1657
|
};
|
|
2052
1658
|
|
|
2053
1659
|
const Select = React.forwardRef(({ color, size, isRounded, isLoading, isActive, className, disabled, children, multiple, multipleSize, ...props }, ref) => {
|
|
@@ -2071,7 +1677,7 @@ const Select = React.forwardRef(({ color, size, isRounded, isLoading, isActive,
|
|
|
2071
1677
|
if (multiple && typeof multipleSize === 'number') {
|
|
2072
1678
|
selectProps.size = multipleSize;
|
|
2073
1679
|
}
|
|
2074
|
-
return (
|
|
1680
|
+
return (jsxRuntime.jsx("div", { className: selectClass, children: jsxRuntime.jsx("select", { ref: ref, ...selectProps, children: children }) }));
|
|
2075
1681
|
});
|
|
2076
1682
|
Select.displayName = 'Select';
|
|
2077
1683
|
|
|
@@ -2092,7 +1698,7 @@ const TextArea = React.forwardRef(({ color, size, isRounded, isStatic, isHovered
|
|
|
2092
1698
|
'has-fixed-size': hasFixedSize,
|
|
2093
1699
|
});
|
|
2094
1700
|
const textareaClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
2095
|
-
return (
|
|
1701
|
+
return (jsxRuntime.jsx("textarea", { ref: ref, className: textareaClass, disabled: disabled, readOnly: readOnly, rows: rows, ...rest }));
|
|
2096
1702
|
});
|
|
2097
1703
|
TextArea.displayName = 'TextArea';
|
|
2098
1704
|
|
|
@@ -2112,7 +1718,7 @@ const Cell = ({ colStart, colFromEnd, colSpan, rowStart, rowFromEnd, rowSpan, cl
|
|
|
2112
1718
|
[`is-row-span-${rowSpan}`]: rowSpan !== undefined && rowSpan !== null,
|
|
2113
1719
|
});
|
|
2114
1720
|
const cellClasses = classNames(mainClass, cellGridClasses, className, bulmaHelperClasses);
|
|
2115
|
-
return (
|
|
1721
|
+
return (jsxRuntime.jsx("div", { className: cellClasses, ...rest, children: children }));
|
|
2116
1722
|
};
|
|
2117
1723
|
|
|
2118
1724
|
const Grid = ({ isFixed = false, gap, columnGap, rowGap, minCol, fixedCols, fixedColsMobile, fixedColsTablet, fixedColsDesktop, fixedColsWidescreen, fixedColsFullhd, className, textColor, color: _fieldColor, bgColor, children, ...props }) => {
|
|
@@ -2139,9 +1745,9 @@ const Grid = ({ isFixed = false, gap, columnGap, rowGap, minCol, fixedCols, fixe
|
|
|
2139
1745
|
});
|
|
2140
1746
|
const gridClasses = classNames(mainClass, gridInnerClasses, bulmaHelperClasses, className);
|
|
2141
1747
|
if (isFixed) {
|
|
2142
|
-
return (
|
|
1748
|
+
return (jsxRuntime.jsx("div", { className: fixedGridClasses, children: jsxRuntime.jsx("div", { className: gridClasses, ...rest, children: children }) }));
|
|
2143
1749
|
}
|
|
2144
|
-
return (
|
|
1750
|
+
return (jsxRuntime.jsx("div", { className: gridClasses, ...rest, children: children }));
|
|
2145
1751
|
};
|
|
2146
1752
|
|
|
2147
1753
|
const bulmaCssVars = [
|
|
@@ -2731,7 +2337,7 @@ const Theme = ({ bulmaVars = {}, children, className, isRoot = false, ...restPro
|
|
|
2731
2337
|
}
|
|
2732
2338
|
return classNames(className, bulmaHelperClasses);
|
|
2733
2339
|
}, [className, bulmaHelperClasses, isRoot]);
|
|
2734
|
-
return isRoot ? (
|
|
2340
|
+
return isRoot ? (jsxRuntime.jsx(jsxRuntime.Fragment, { children: children })) : (jsxRuntime.jsx("div", { className: combinedClassName || undefined, style: style, ...rest, children: children }));
|
|
2735
2341
|
};
|
|
2736
2342
|
|
|
2737
2343
|
const Container = ({ className, textColor, bgColor, fluid, widescreen, fullhd, breakpoint, isMax, children, ...props }) => {
|
|
@@ -2762,7 +2368,7 @@ const Container = ({ className, textColor, bgColor, fluid, widescreen, fullhd, b
|
|
|
2762
2368
|
});
|
|
2763
2369
|
const prefixedBreakpointClass = usePrefixedClassNames(breakpointClass || '');
|
|
2764
2370
|
const containerClasses = classNames(mainClass, containerModifiers, prefixedBreakpointClass, className, bulmaHelperClasses);
|
|
2765
|
-
return (
|
|
2371
|
+
return (jsxRuntime.jsx("div", { className: containerClasses, ...rest, children: children }));
|
|
2766
2372
|
};
|
|
2767
2373
|
|
|
2768
2374
|
const Footer = ({ as = 'footer', className, children, color, bgColor, textColor, ...props }) => {
|
|
@@ -2774,7 +2380,7 @@ const Footer = ({ as = 'footer', className, children, color, bgColor, textColor,
|
|
|
2774
2380
|
const Tag = as;
|
|
2775
2381
|
const mainClass = usePrefixedClassNames('footer');
|
|
2776
2382
|
const footerClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2777
|
-
return (
|
|
2383
|
+
return (jsxRuntime.jsx(Tag, { className: footerClasses, ...rest, children: children }));
|
|
2778
2384
|
};
|
|
2779
2385
|
|
|
2780
2386
|
const Hero = ({ className, color, size, bgColor, fullheightWithNavbar, children, ...props }) => {
|
|
@@ -2788,7 +2394,7 @@ const Hero = ({ className, color, size, bgColor, fullheightWithNavbar, children,
|
|
|
2788
2394
|
'is-fullheight-with-navbar': fullheightWithNavbar || size === 'fullheight-with-navbar',
|
|
2789
2395
|
});
|
|
2790
2396
|
const heroClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2791
|
-
return (
|
|
2397
|
+
return (jsxRuntime.jsx("section", { className: heroClasses, ...rest, children: children }));
|
|
2792
2398
|
};
|
|
2793
2399
|
const HeroHead = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2794
2400
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2798,7 +2404,7 @@ const HeroHead = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2798
2404
|
});
|
|
2799
2405
|
const mainClass = usePrefixedClassNames('hero-head');
|
|
2800
2406
|
const heroHeadClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2801
|
-
return (
|
|
2407
|
+
return (jsxRuntime.jsx("div", { className: heroHeadClasses, ...rest, children: children }));
|
|
2802
2408
|
};
|
|
2803
2409
|
const HeroBody = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2804
2410
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2808,7 +2414,7 @@ const HeroBody = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2808
2414
|
});
|
|
2809
2415
|
const mainClass = usePrefixedClassNames('hero-body');
|
|
2810
2416
|
const heroBodyClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2811
|
-
return (
|
|
2417
|
+
return (jsxRuntime.jsx("div", { className: heroBodyClasses, ...rest, children: children }));
|
|
2812
2418
|
};
|
|
2813
2419
|
const HeroFoot = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2814
2420
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2818,7 +2424,7 @@ const HeroFoot = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2818
2424
|
});
|
|
2819
2425
|
const mainClass = usePrefixedClassNames('hero-foot');
|
|
2820
2426
|
const heroFootClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2821
|
-
return (
|
|
2427
|
+
return (jsxRuntime.jsx("div", { className: heroFootClasses, ...rest, children: children }));
|
|
2822
2428
|
};
|
|
2823
2429
|
Hero.Head = HeroHead;
|
|
2824
2430
|
Hero.Body = HeroBody;
|
|
@@ -2834,7 +2440,7 @@ const Level = ({ isMobile, className, children, color, bgColor, textColor, ...pr
|
|
|
2834
2440
|
'is-mobile': isMobile,
|
|
2835
2441
|
});
|
|
2836
2442
|
const levelClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2837
|
-
return (
|
|
2443
|
+
return (jsxRuntime.jsx("nav", { className: levelClasses, ...rest, children: children }));
|
|
2838
2444
|
};
|
|
2839
2445
|
const LevelLeft = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2840
2446
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2844,7 +2450,7 @@ const LevelLeft = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
2844
2450
|
});
|
|
2845
2451
|
const mainClass = usePrefixedClassNames('level-left');
|
|
2846
2452
|
const levelLeftClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2847
|
-
return (
|
|
2453
|
+
return (jsxRuntime.jsx("div", { className: levelLeftClasses, ...rest, children: children }));
|
|
2848
2454
|
};
|
|
2849
2455
|
const LevelRight = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2850
2456
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2854,7 +2460,7 @@ const LevelRight = ({ className, children, color, bgColor, textColor, ...props }
|
|
|
2854
2460
|
});
|
|
2855
2461
|
const mainClass = usePrefixedClassNames('level-right');
|
|
2856
2462
|
const levelRightClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2857
|
-
return (
|
|
2463
|
+
return (jsxRuntime.jsx("div", { className: levelRightClasses, ...rest, children: children }));
|
|
2858
2464
|
};
|
|
2859
2465
|
const LevelItem = ({ as = 'div', hasTextCentered, className, children, href, target, rel, color, bgColor, textColor, ...props }) => {
|
|
2860
2466
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2868,9 +2474,9 @@ const LevelItem = ({ as = 'div', hasTextCentered, className, children, href, tar
|
|
|
2868
2474
|
});
|
|
2869
2475
|
const levelItemClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2870
2476
|
if (Tag === 'a') {
|
|
2871
|
-
return (
|
|
2477
|
+
return (jsxRuntime.jsx("a", { className: levelItemClasses, href: href, target: target, rel: rel, ...rest, children: children }));
|
|
2872
2478
|
}
|
|
2873
|
-
return (
|
|
2479
|
+
return (jsxRuntime.jsx(Tag, { className: levelItemClasses, ...rest, children: children }));
|
|
2874
2480
|
};
|
|
2875
2481
|
Level.Left = LevelLeft;
|
|
2876
2482
|
Level.Right = LevelRight;
|
|
@@ -2885,7 +2491,7 @@ const Media = ({ as = 'article', className, children, color, bgColor, textColor,
|
|
|
2885
2491
|
const Tag = as;
|
|
2886
2492
|
const mainClass = usePrefixedClassNames('media');
|
|
2887
2493
|
const mediaClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2888
|
-
return (
|
|
2494
|
+
return (jsxRuntime.jsx(Tag, { className: mediaClasses, ...rest, children: children }));
|
|
2889
2495
|
};
|
|
2890
2496
|
const MediaLeft = ({ as = 'figure', className, children, color, bgColor, textColor, ...props }) => {
|
|
2891
2497
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2896,7 +2502,7 @@ const MediaLeft = ({ as = 'figure', className, children, color, bgColor, textCol
|
|
|
2896
2502
|
const Tag = as;
|
|
2897
2503
|
const mainClass = usePrefixedClassNames('media-left');
|
|
2898
2504
|
const mediaLeftClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2899
|
-
return (
|
|
2505
|
+
return (jsxRuntime.jsx(Tag, { className: mediaLeftClasses, ...rest, children: children }));
|
|
2900
2506
|
};
|
|
2901
2507
|
const MediaContent = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2902
2508
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2906,7 +2512,7 @@ const MediaContent = ({ className, children, color, bgColor, textColor, ...props
|
|
|
2906
2512
|
});
|
|
2907
2513
|
const mainClass = usePrefixedClassNames('media-content');
|
|
2908
2514
|
const mediaContentClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2909
|
-
return (
|
|
2515
|
+
return (jsxRuntime.jsx("div", { className: mediaContentClasses, ...rest, children: children }));
|
|
2910
2516
|
};
|
|
2911
2517
|
const MediaRight = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
2912
2518
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
@@ -2916,7 +2522,7 @@ const MediaRight = ({ className, children, color, bgColor, textColor, ...props }
|
|
|
2916
2522
|
});
|
|
2917
2523
|
const mainClass = usePrefixedClassNames('media-right');
|
|
2918
2524
|
const mediaRightClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
2919
|
-
return (
|
|
2525
|
+
return (jsxRuntime.jsx("div", { className: mediaRightClasses, ...rest, children: children }));
|
|
2920
2526
|
};
|
|
2921
2527
|
const MediaWithSubcomponents = Media;
|
|
2922
2528
|
MediaWithSubcomponents.Left = MediaLeft;
|
|
@@ -2934,7 +2540,7 @@ const Section = ({ size, className, children, color, bgColor, textColor, ...prop
|
|
|
2934
2540
|
[`is-${size}`]: size,
|
|
2935
2541
|
});
|
|
2936
2542
|
const sectionClasses = classNames(mainClass, sectionModifiers, className, bulmaHelperClasses);
|
|
2937
|
-
return (
|
|
2543
|
+
return (jsxRuntime.jsx("section", { className: sectionClasses, ...rest, children: children }));
|
|
2938
2544
|
};
|
|
2939
2545
|
|
|
2940
2546
|
exports.Block = Block;
|
|
@@ -3039,6 +2645,7 @@ exports.prefixedClassNames = prefixedClassNames;
|
|
|
3039
2645
|
exports.useBulmaClasses = useBulmaClasses;
|
|
3040
2646
|
exports.useClassPrefix = useClassPrefix;
|
|
3041
2647
|
exports.useConfig = useConfig;
|
|
2648
|
+
exports.useIconLibrary = useIconLibrary;
|
|
3042
2649
|
exports.usePrefixedClass = usePrefixedClass;
|
|
3043
2650
|
exports.usePrefixedClassNames = usePrefixedClassNames;
|
|
3044
2651
|
exports.validAlignContents = validAlignContents;
|