@allxsmith/bestax-bulma 1.0.9 → 1.0.11
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/README.md +1 -1
- package/dist/index.cjs.js +2112 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +1997 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/types/columns/Column.d.ts +30 -0
- package/dist/types/columns/Columns.d.ts +23 -0
- package/dist/types/components/Breadcrumb.d.ts +17 -0
- package/dist/types/components/Card.d.ts +20 -0
- package/dist/types/components/Dropdown.d.ts +30 -0
- package/dist/types/components/Menu.d.ts +31 -0
- package/dist/types/components/Message.d.ts +13 -0
- package/dist/types/components/Modal.d.ts +15 -0
- package/dist/types/components/Navbar.d.ts +83 -0
- package/dist/types/components/Pagination.d.ts +49 -0
- package/dist/types/components/Panel.d.ts +55 -0
- package/dist/types/components/Tabs.d.ts +30 -0
- package/dist/types/elements/Block.d.ts +10 -0
- package/dist/types/elements/Box.d.ts +11 -0
- package/dist/types/elements/Button.d.ts +28 -0
- package/dist/types/elements/Buttons.d.ts +14 -0
- package/dist/types/elements/Content.d.ts +12 -0
- package/dist/types/elements/Delete.d.ts +14 -0
- package/dist/types/elements/Icon.d.ts +17 -0
- package/dist/types/elements/IconText.d.ts +18 -0
- package/dist/types/elements/Image.d.ts +17 -0
- package/dist/types/elements/Notification.d.ts +11 -0
- package/dist/types/elements/Progress.d.ts +11 -0
- package/dist/types/elements/SubTitle.d.ts +14 -0
- package/dist/types/elements/Table.d.ts +13 -0
- package/dist/types/elements/Tag.d.ts +18 -0
- package/dist/types/elements/Tags.d.ts +9 -0
- package/dist/types/elements/Tbody.d.ts +7 -0
- package/dist/types/elements/Td.d.ts +10 -0
- package/dist/types/elements/Tfoot.d.ts +7 -0
- package/dist/types/elements/Th.d.ts +14 -0
- package/dist/types/elements/Thead.d.ts +7 -0
- package/dist/types/elements/Title.d.ts +15 -0
- package/dist/types/elements/Tr.d.ts +10 -0
- package/dist/types/form/Checkbox.d.ts +9 -0
- package/dist/types/form/Checkboxes.d.ts +8 -0
- package/dist/types/form/Control.d.ts +31 -0
- package/dist/types/form/Field.d.ts +39 -0
- package/dist/types/form/File.d.ts +19 -0
- package/dist/types/form/Input.d.ts +16 -0
- package/dist/types/form/Radio.d.ts +9 -0
- package/dist/types/form/Radios.d.ts +8 -0
- package/dist/types/form/Select.d.ts +16 -0
- package/dist/types/form/TextArea.d.ts +19 -0
- package/dist/types/grid/Cell.d.ts +17 -0
- package/dist/types/grid/Grid.d.ts +25 -0
- package/dist/types/helpers/classNames.d.ts +2 -0
- package/dist/types/helpers/useBulmaClasses.d.ts +64 -0
- package/dist/types/index.d.ts +54 -0
- package/dist/types/layout/Container.d.ts +17 -0
- package/dist/types/layout/Footer.d.ts +12 -0
- package/dist/types/layout/Hero.d.ts +41 -0
- package/dist/types/layout/Level.d.ts +45 -0
- package/dist/types/layout/Media.d.ts +41 -0
- package/dist/types/layout/Section.d.ts +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1997 @@
|
|
|
1
|
+
import React, { useMemo, useState, useRef, useEffect, createContext, useContext, forwardRef } from 'react';
|
|
2
|
+
|
|
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
|
+
function classNames(...args) {
|
|
431
|
+
const classSet = new Set();
|
|
432
|
+
function process(item) {
|
|
433
|
+
if (item === undefined || item === null || item === false || item === '') {
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
if (typeof item === 'string' || typeof item === 'number') {
|
|
437
|
+
for (const cls of String(item).split(/\s+/)) {
|
|
438
|
+
if (cls)
|
|
439
|
+
classSet.add(cls);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
else if (Array.isArray(item)) {
|
|
443
|
+
for (const sub of item)
|
|
444
|
+
process(sub);
|
|
445
|
+
}
|
|
446
|
+
else if (typeof item === 'object') {
|
|
447
|
+
for (const key in item) {
|
|
448
|
+
if (Object.prototype.hasOwnProperty.call(item, key) && item[key]) {
|
|
449
|
+
for (const cls of key.split(/\s+/)) {
|
|
450
|
+
if (cls)
|
|
451
|
+
classSet.add(cls);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
for (const arg of args) {
|
|
458
|
+
process(arg);
|
|
459
|
+
}
|
|
460
|
+
return Array.from(classSet).join(' ');
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
const validColors = [
|
|
464
|
+
'primary',
|
|
465
|
+
'link',
|
|
466
|
+
'info',
|
|
467
|
+
'success',
|
|
468
|
+
'warning',
|
|
469
|
+
'danger',
|
|
470
|
+
'black',
|
|
471
|
+
'black-bis',
|
|
472
|
+
'black-ter',
|
|
473
|
+
'grey-darker',
|
|
474
|
+
'grey-dark',
|
|
475
|
+
'grey',
|
|
476
|
+
'grey-light',
|
|
477
|
+
'grey-lighter',
|
|
478
|
+
'white',
|
|
479
|
+
'light',
|
|
480
|
+
'dark',
|
|
481
|
+
];
|
|
482
|
+
const validColorShades = [
|
|
483
|
+
'00',
|
|
484
|
+
'05',
|
|
485
|
+
'10',
|
|
486
|
+
'15',
|
|
487
|
+
'20',
|
|
488
|
+
'25',
|
|
489
|
+
'30',
|
|
490
|
+
'35',
|
|
491
|
+
'40',
|
|
492
|
+
'45',
|
|
493
|
+
'50',
|
|
494
|
+
'55',
|
|
495
|
+
'60',
|
|
496
|
+
'65',
|
|
497
|
+
'70',
|
|
498
|
+
'75',
|
|
499
|
+
'80',
|
|
500
|
+
'85',
|
|
501
|
+
'90',
|
|
502
|
+
'95',
|
|
503
|
+
'invert',
|
|
504
|
+
];
|
|
505
|
+
const validSizes$1 = ['0', '1', '2', '3', '4', '5', '6', 'auto'];
|
|
506
|
+
const validTextSizes = ['1', '2', '3', '4', '5', '6', '7'];
|
|
507
|
+
const validAlignments$1 = [
|
|
508
|
+
'centered',
|
|
509
|
+
'justified',
|
|
510
|
+
'left',
|
|
511
|
+
'right',
|
|
512
|
+
];
|
|
513
|
+
const validTextTransforms = [
|
|
514
|
+
'capitalized',
|
|
515
|
+
'lowercase',
|
|
516
|
+
'uppercase',
|
|
517
|
+
'italic',
|
|
518
|
+
];
|
|
519
|
+
const validTextWeights = [
|
|
520
|
+
'light',
|
|
521
|
+
'normal',
|
|
522
|
+
'medium',
|
|
523
|
+
'semibold',
|
|
524
|
+
'bold',
|
|
525
|
+
];
|
|
526
|
+
const validFontFamilies = [
|
|
527
|
+
'sans-serif',
|
|
528
|
+
'monospace',
|
|
529
|
+
'primary',
|
|
530
|
+
'secondary',
|
|
531
|
+
'code',
|
|
532
|
+
];
|
|
533
|
+
const validDisplays = [
|
|
534
|
+
'block',
|
|
535
|
+
'flex',
|
|
536
|
+
'inline',
|
|
537
|
+
'inline-block',
|
|
538
|
+
'inline-flex',
|
|
539
|
+
];
|
|
540
|
+
const validVisibilities = ['hidden', 'sr-only'];
|
|
541
|
+
const validFlexDirections = [
|
|
542
|
+
'row',
|
|
543
|
+
'row-reverse',
|
|
544
|
+
'column',
|
|
545
|
+
'column-reverse',
|
|
546
|
+
];
|
|
547
|
+
const validFlexWraps = ['nowrap', 'wrap', 'wrap-reverse'];
|
|
548
|
+
const validJustifyContents = [
|
|
549
|
+
'flex-start',
|
|
550
|
+
'flex-end',
|
|
551
|
+
'center',
|
|
552
|
+
'space-between',
|
|
553
|
+
'space-around',
|
|
554
|
+
'space-evenly',
|
|
555
|
+
'start',
|
|
556
|
+
'end',
|
|
557
|
+
'left',
|
|
558
|
+
'right',
|
|
559
|
+
];
|
|
560
|
+
const validAlignContents = [
|
|
561
|
+
'flex-start',
|
|
562
|
+
'flex-end',
|
|
563
|
+
'center',
|
|
564
|
+
'space-between',
|
|
565
|
+
'space-around',
|
|
566
|
+
'space-evenly',
|
|
567
|
+
'stretch',
|
|
568
|
+
];
|
|
569
|
+
const validAlignItems = [
|
|
570
|
+
'stretch',
|
|
571
|
+
'flex-start',
|
|
572
|
+
'flex-end',
|
|
573
|
+
'center',
|
|
574
|
+
'baseline',
|
|
575
|
+
'start',
|
|
576
|
+
'end',
|
|
577
|
+
];
|
|
578
|
+
const validAlignSelfs = [
|
|
579
|
+
'auto',
|
|
580
|
+
'flex-start',
|
|
581
|
+
'flex-end',
|
|
582
|
+
'center',
|
|
583
|
+
'baseline',
|
|
584
|
+
'stretch',
|
|
585
|
+
];
|
|
586
|
+
const validFlexGrowShrink = ['0', '1'];
|
|
587
|
+
const validViewports = [
|
|
588
|
+
'mobile',
|
|
589
|
+
'tablet',
|
|
590
|
+
'desktop',
|
|
591
|
+
'widescreen',
|
|
592
|
+
'fullhd',
|
|
593
|
+
];
|
|
594
|
+
const useBulmaClasses = (props) => {
|
|
595
|
+
const { color, backgroundColor, colorShade, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, textSize, textAlign, textTransform, textWeight, fontFamily, display, visibility, flexDirection, flexWrap, justifyContent, alignContent, alignItems, alignSelf, flexGrow, flexShrink, float, overflow, overlay, interaction, radius, shadow, responsive, viewport, ...rest } = props;
|
|
596
|
+
const bulmaHelperClasses = useMemo(() => {
|
|
597
|
+
const classes = [];
|
|
598
|
+
const addClass = (prefix, value, validValues) => {
|
|
599
|
+
if (value && (!validValues.length || validValues.includes(value))) {
|
|
600
|
+
const className = viewport && validViewports.includes(viewport)
|
|
601
|
+
? `${prefix}-${value}-${viewport}`
|
|
602
|
+
: `${prefix}-${value}`;
|
|
603
|
+
classes.push(className);
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
const addColorClass = (prefix, value, shade) => {
|
|
607
|
+
if (!value || ![...validColors, 'inherit', 'current'].includes(value))
|
|
608
|
+
return;
|
|
609
|
+
if (shade && validColorShades.includes(shade)) {
|
|
610
|
+
const className = prefix === 'has-text' && viewport && validViewports.includes(viewport)
|
|
611
|
+
? `${prefix}-${value}-${shade}-${viewport}`
|
|
612
|
+
: `${prefix}-${value}-${shade}`;
|
|
613
|
+
classes.push(className);
|
|
614
|
+
}
|
|
615
|
+
else {
|
|
616
|
+
addClass(prefix, value, [...validColors, 'inherit', 'current']);
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
addColorClass('has-text', color, colorShade);
|
|
620
|
+
addColorClass('has-background', backgroundColor, colorShade);
|
|
621
|
+
addClass('m', m, validSizes$1);
|
|
622
|
+
addClass('mt', mt, validSizes$1);
|
|
623
|
+
addClass('mr', mr, validSizes$1);
|
|
624
|
+
addClass('mb', mb, validSizes$1);
|
|
625
|
+
addClass('ml', ml, validSizes$1);
|
|
626
|
+
addClass('mx', mx, validSizes$1);
|
|
627
|
+
addClass('my', my, validSizes$1);
|
|
628
|
+
addClass('p', p, validSizes$1);
|
|
629
|
+
addClass('pt', pt, validSizes$1);
|
|
630
|
+
addClass('pr', pr, validSizes$1);
|
|
631
|
+
addClass('pb', pb, validSizes$1);
|
|
632
|
+
addClass('pl', pl, validSizes$1);
|
|
633
|
+
addClass('px', px, validSizes$1);
|
|
634
|
+
addClass('py', py, validSizes$1);
|
|
635
|
+
addClass('is-size', textSize, validTextSizes);
|
|
636
|
+
addClass('has-text', textAlign, validAlignments$1);
|
|
637
|
+
addClass('is', textTransform, validTextTransforms);
|
|
638
|
+
addClass('has-text-weight', textWeight, validTextWeights);
|
|
639
|
+
addClass('is-family', fontFamily, validFontFamilies);
|
|
640
|
+
addClass('is', display, validDisplays);
|
|
641
|
+
if (visibility) {
|
|
642
|
+
if (visibility === 'hidden' &&
|
|
643
|
+
viewport &&
|
|
644
|
+
validViewports.includes(viewport)) {
|
|
645
|
+
classes.push(`is-hidden-${viewport}`);
|
|
646
|
+
}
|
|
647
|
+
else if (validVisibilities.includes(visibility)) {
|
|
648
|
+
classes.push(`is-${visibility}`);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
if (display === 'flex' || display === 'inline-flex') {
|
|
652
|
+
addClass('is-flex-direction', flexDirection, validFlexDirections);
|
|
653
|
+
addClass('is-flex-wrap', flexWrap, validFlexWraps);
|
|
654
|
+
addClass('is-justify-content', justifyContent, validJustifyContents);
|
|
655
|
+
addClass('is-align-content', alignContent, validAlignContents);
|
|
656
|
+
addClass('is-align-items', alignItems, validAlignItems);
|
|
657
|
+
addClass('is-align-self', alignSelf, validAlignSelfs);
|
|
658
|
+
addClass('is-flex-grow', flexGrow, validFlexGrowShrink);
|
|
659
|
+
addClass('is-flex-shrink', flexShrink, validFlexGrowShrink);
|
|
660
|
+
}
|
|
661
|
+
if (float) {
|
|
662
|
+
addClass('is-pulled', float, ['left', 'right']);
|
|
663
|
+
}
|
|
664
|
+
if (overflow) {
|
|
665
|
+
addClass('is', overflow, ['clipped']);
|
|
666
|
+
}
|
|
667
|
+
if (overlay) {
|
|
668
|
+
classes.push('is-overlay');
|
|
669
|
+
}
|
|
670
|
+
if (interaction) {
|
|
671
|
+
addClass('is', interaction, ['unselectable', 'clickable']);
|
|
672
|
+
}
|
|
673
|
+
if (radius) {
|
|
674
|
+
addClass('is', radius, ['radiusless']);
|
|
675
|
+
}
|
|
676
|
+
if (shadow) {
|
|
677
|
+
addClass('is', shadow, ['shadowless']);
|
|
678
|
+
}
|
|
679
|
+
if (responsive) {
|
|
680
|
+
addClass('is', responsive, ['mobile', 'narrow']);
|
|
681
|
+
}
|
|
682
|
+
return classNames(classes);
|
|
683
|
+
}, [
|
|
684
|
+
color,
|
|
685
|
+
backgroundColor,
|
|
686
|
+
colorShade,
|
|
687
|
+
m,
|
|
688
|
+
mt,
|
|
689
|
+
mr,
|
|
690
|
+
mb,
|
|
691
|
+
ml,
|
|
692
|
+
mx,
|
|
693
|
+
my,
|
|
694
|
+
p,
|
|
695
|
+
pt,
|
|
696
|
+
pr,
|
|
697
|
+
pb,
|
|
698
|
+
pl,
|
|
699
|
+
px,
|
|
700
|
+
py,
|
|
701
|
+
textSize,
|
|
702
|
+
textAlign,
|
|
703
|
+
textTransform,
|
|
704
|
+
textWeight,
|
|
705
|
+
fontFamily,
|
|
706
|
+
display,
|
|
707
|
+
visibility,
|
|
708
|
+
flexDirection,
|
|
709
|
+
flexWrap,
|
|
710
|
+
justifyContent,
|
|
711
|
+
alignContent,
|
|
712
|
+
alignItems,
|
|
713
|
+
alignSelf,
|
|
714
|
+
flexGrow,
|
|
715
|
+
flexShrink,
|
|
716
|
+
float,
|
|
717
|
+
overflow,
|
|
718
|
+
overlay,
|
|
719
|
+
interaction,
|
|
720
|
+
radius,
|
|
721
|
+
shadow,
|
|
722
|
+
responsive,
|
|
723
|
+
viewport,
|
|
724
|
+
]);
|
|
725
|
+
return { bulmaHelperClasses, rest };
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
function getColumnClassNames(props) {
|
|
729
|
+
const classList = [];
|
|
730
|
+
const sizeProps = [
|
|
731
|
+
{ prop: 'size', prefix: 'is', suffix: '' },
|
|
732
|
+
{ prop: 'sizeMobile', prefix: 'is', suffix: 'mobile' },
|
|
733
|
+
{ prop: 'sizeTablet', prefix: 'is', suffix: 'tablet' },
|
|
734
|
+
{ prop: 'sizeDesktop', prefix: 'is', suffix: 'desktop' },
|
|
735
|
+
{ prop: 'sizeWidescreen', prefix: 'is', suffix: 'widescreen' },
|
|
736
|
+
{ prop: 'sizeFullhd', prefix: 'is', suffix: 'fullhd' },
|
|
737
|
+
];
|
|
738
|
+
for (const { prop, prefix, suffix } of sizeProps) {
|
|
739
|
+
const val = props[prop];
|
|
740
|
+
if (val !== undefined && val !== null) {
|
|
741
|
+
let className = `${prefix}-${val}`;
|
|
742
|
+
if (suffix)
|
|
743
|
+
className += `-${suffix}`;
|
|
744
|
+
classList.push(className);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
const offsetProps = [
|
|
748
|
+
{ prop: 'offset', prefix: 'is-offset', suffix: '' },
|
|
749
|
+
{ prop: 'offsetMobile', prefix: 'is-offset', suffix: 'mobile' },
|
|
750
|
+
{ prop: 'offsetTablet', prefix: 'is-offset', suffix: 'tablet' },
|
|
751
|
+
{ prop: 'offsetDesktop', prefix: 'is-offset', suffix: 'desktop' },
|
|
752
|
+
{ prop: 'offsetWidescreen', prefix: 'is-offset', suffix: 'widescreen' },
|
|
753
|
+
{ prop: 'offsetFullhd', prefix: 'is-offset', suffix: 'fullhd' },
|
|
754
|
+
];
|
|
755
|
+
for (const { prop, prefix, suffix } of offsetProps) {
|
|
756
|
+
const val = props[prop];
|
|
757
|
+
if (val !== undefined && val !== null) {
|
|
758
|
+
let className = `${prefix}-${val}`;
|
|
759
|
+
if (suffix)
|
|
760
|
+
className += `-${suffix}`;
|
|
761
|
+
classList.push(className);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
if (props.isNarrow)
|
|
765
|
+
classList.push('is-narrow');
|
|
766
|
+
if (props.isNarrowMobile)
|
|
767
|
+
classList.push('is-narrow-mobile');
|
|
768
|
+
if (props.isNarrowTablet)
|
|
769
|
+
classList.push('is-narrow-tablet');
|
|
770
|
+
if (props.isNarrowTouch)
|
|
771
|
+
classList.push('is-narrow-touch');
|
|
772
|
+
if (props.isNarrowDesktop)
|
|
773
|
+
classList.push('is-narrow-desktop');
|
|
774
|
+
if (props.isNarrowWidescreen)
|
|
775
|
+
classList.push('is-narrow-widescreen');
|
|
776
|
+
if (props.isNarrowFullhd)
|
|
777
|
+
classList.push('is-narrow-fullhd');
|
|
778
|
+
return classList;
|
|
779
|
+
}
|
|
780
|
+
const Column = ({ className, textColor, bgColor, size, sizeMobile, sizeTablet, sizeDesktop, sizeWidescreen, sizeFullhd, offset, offsetMobile, offsetTablet, offsetDesktop, offsetWidescreen, offsetFullhd, isNarrow, isNarrowMobile, isNarrowTablet, isNarrowTouch, isNarrowDesktop, isNarrowWidescreen, isNarrowFullhd, children, ...props }) => {
|
|
781
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
782
|
+
color: textColor,
|
|
783
|
+
backgroundColor: bgColor,
|
|
784
|
+
...props,
|
|
785
|
+
});
|
|
786
|
+
const columnClasses = classNames('column', ...getColumnClassNames({
|
|
787
|
+
size,
|
|
788
|
+
sizeMobile,
|
|
789
|
+
sizeTablet,
|
|
790
|
+
sizeDesktop,
|
|
791
|
+
sizeWidescreen,
|
|
792
|
+
sizeFullhd,
|
|
793
|
+
offset,
|
|
794
|
+
offsetMobile,
|
|
795
|
+
offsetTablet,
|
|
796
|
+
offsetDesktop,
|
|
797
|
+
offsetWidescreen,
|
|
798
|
+
offsetFullhd,
|
|
799
|
+
isNarrow,
|
|
800
|
+
isNarrowMobile,
|
|
801
|
+
isNarrowTablet,
|
|
802
|
+
isNarrowTouch,
|
|
803
|
+
isNarrowDesktop,
|
|
804
|
+
isNarrowWidescreen,
|
|
805
|
+
isNarrowFullhd,
|
|
806
|
+
}), className, bulmaHelperClasses);
|
|
807
|
+
return (jsxRuntimeExports.jsx("div", { className: columnClasses, ...rest, children: children }));
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
function getGapClasses(props) {
|
|
811
|
+
const gapClassMap = [
|
|
812
|
+
{ prop: 'gapSize', prefix: 'is' },
|
|
813
|
+
{ prop: 'gapSizeMobile', prefix: 'is', suffix: 'mobile' },
|
|
814
|
+
{ prop: 'gapSizeTablet', prefix: 'is', suffix: 'tablet' },
|
|
815
|
+
{ prop: 'gapSizeDesktop', prefix: 'is', suffix: 'desktop' },
|
|
816
|
+
{ prop: 'gapSizeWidescreen', prefix: 'is', suffix: 'widescreen' },
|
|
817
|
+
{ prop: 'gapSizeFullhd', prefix: 'is', suffix: 'fullhd' },
|
|
818
|
+
];
|
|
819
|
+
return gapClassMap.flatMap(({ prop, prefix, suffix }) => {
|
|
820
|
+
const val = props[prop];
|
|
821
|
+
if (val !== undefined && val !== null) {
|
|
822
|
+
let className = `${prefix}-${val}`;
|
|
823
|
+
if (suffix)
|
|
824
|
+
className += `-${suffix}`;
|
|
825
|
+
return [className];
|
|
826
|
+
}
|
|
827
|
+
return [];
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
const Columns = ({ className, textColor, bgColor, isCentered, isGapless, isMultiline, isVCentered, isMobile, isDesktop, gapSize, gapSizeMobile, gapSizeTablet, gapSizeDesktop, gapSizeWidescreen, gapSizeFullhd, children, ...props }) => {
|
|
831
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
832
|
+
color: textColor,
|
|
833
|
+
backgroundColor: bgColor,
|
|
834
|
+
...props,
|
|
835
|
+
});
|
|
836
|
+
const columnsClasses = classNames('columns', {
|
|
837
|
+
'is-centered': isCentered,
|
|
838
|
+
'is-gapless': isGapless,
|
|
839
|
+
'is-multiline': isMultiline,
|
|
840
|
+
'is-vcentered': isVCentered,
|
|
841
|
+
'is-mobile': isMobile,
|
|
842
|
+
'is-desktop': isDesktop,
|
|
843
|
+
}, ...getGapClasses({
|
|
844
|
+
gapSize,
|
|
845
|
+
gapSizeMobile,
|
|
846
|
+
gapSizeTablet,
|
|
847
|
+
gapSizeDesktop,
|
|
848
|
+
gapSizeWidescreen,
|
|
849
|
+
gapSizeFullhd,
|
|
850
|
+
}), className, bulmaHelperClasses);
|
|
851
|
+
return (jsxRuntimeExports.jsx("div", { className: columnsClasses, ...rest, children: children }));
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
const validBreadcrumbAlignments = ['centered', 'right'];
|
|
855
|
+
const validBreadcrumbSeparators = [
|
|
856
|
+
'arrow',
|
|
857
|
+
'bullet',
|
|
858
|
+
'dot',
|
|
859
|
+
'succeeds',
|
|
860
|
+
];
|
|
861
|
+
const validBreadcrumbSizes = ['small', 'medium', 'large'];
|
|
862
|
+
const Breadcrumb = ({ className, alignment, separator, size, children, ...props }) => {
|
|
863
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
864
|
+
const breadcrumbClasses = classNames('breadcrumb', className, bulmaHelperClasses, {
|
|
865
|
+
[`is-${alignment}`]: alignment && validBreadcrumbAlignments.includes(alignment),
|
|
866
|
+
[`has-${separator}-separator`]: separator && validBreadcrumbSeparators.includes(separator),
|
|
867
|
+
[`is-${size}`]: size && validBreadcrumbSizes.includes(size),
|
|
868
|
+
});
|
|
869
|
+
return (jsxRuntimeExports.jsx("nav", { className: breadcrumbClasses, "aria-label": "breadcrumbs", ...rest, children: jsxRuntimeExports.jsx("ul", { children: children }) }));
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
const renderFooter = (footer) => {
|
|
873
|
+
if (!footer)
|
|
874
|
+
return null;
|
|
875
|
+
const items = Array.isArray(footer) ? footer : [footer];
|
|
876
|
+
return items.map((item, idx) => (jsxRuntimeExports.jsx("span", { className: "card-footer-item", children: item }, idx)));
|
|
877
|
+
};
|
|
878
|
+
const Card = ({ className, children, textColor, bgColor, hasShadow = true, header, headerCentered, headerIcon, footer, image, imageAlt, ...props }) => {
|
|
879
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
880
|
+
color: textColor,
|
|
881
|
+
backgroundColor: bgColor,
|
|
882
|
+
...props,
|
|
883
|
+
});
|
|
884
|
+
const cardClasses = classNames('card', className, bulmaHelperClasses, {
|
|
885
|
+
'is-shadowless': !hasShadow,
|
|
886
|
+
});
|
|
887
|
+
const renderHeader = (header, headerIcon, headerCentered) => {
|
|
888
|
+
if (!header && !headerIcon)
|
|
889
|
+
return null;
|
|
890
|
+
return (jsxRuntimeExports.jsxs("header", { className: "card-header", children: [header && (jsxRuntimeExports.jsx("div", { className: classNames('card-header-title', {
|
|
891
|
+
'is-centered': headerCentered,
|
|
892
|
+
}), children: header })), headerIcon] }));
|
|
893
|
+
};
|
|
894
|
+
return (jsxRuntimeExports.jsxs("div", { className: cardClasses, ...rest, children: [renderHeader(header, headerIcon, headerCentered), image && (jsxRuntimeExports.jsx("div", { className: "card-image", children: typeof image === 'string' ? (jsxRuntimeExports.jsx("figure", { className: "image", children: jsxRuntimeExports.jsx("img", { src: image, alt: imageAlt !== null && imageAlt !== void 0 ? imageAlt : 'Card image' }) })) : (image) })), typeof children !== 'undefined' &&
|
|
895
|
+
children !== null &&
|
|
896
|
+
children !== '' && jsxRuntimeExports.jsx("div", { className: "card-content", children: children }), footer && (jsxRuntimeExports.jsx("footer", { className: "card-footer", children: renderFooter(footer) }))] }));
|
|
897
|
+
};
|
|
898
|
+
const __test_exports__ = { renderFooter };
|
|
899
|
+
|
|
900
|
+
const isBrowser = (win, doc) => typeof win !== 'undefined' && typeof doc !== 'undefined';
|
|
901
|
+
const DropdownComponent = ({ label, children, className, menuClassName, active: activeProp, up, right, hoverable, disabled, onActiveChange, closeOnClick = true, id, ...props }) => {
|
|
902
|
+
const [active, setActive] = useState(!!activeProp);
|
|
903
|
+
const dropdownRef = useRef(null);
|
|
904
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
905
|
+
useEffect(() => {
|
|
906
|
+
if (typeof activeProp === 'boolean')
|
|
907
|
+
setActive(activeProp);
|
|
908
|
+
}, [activeProp]);
|
|
909
|
+
useEffect(() => {
|
|
910
|
+
if (!active)
|
|
911
|
+
return;
|
|
912
|
+
if (!isBrowser(window, document))
|
|
913
|
+
return;
|
|
914
|
+
const handleClick = (e) => {
|
|
915
|
+
var _a;
|
|
916
|
+
if (!((_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
|
|
917
|
+
setActive(false);
|
|
918
|
+
onActiveChange === null || onActiveChange === void 0 ? void 0 : onActiveChange(false);
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
document.addEventListener('mousedown', handleClick);
|
|
922
|
+
return () => document.removeEventListener('mousedown', handleClick);
|
|
923
|
+
}, [active, onActiveChange]);
|
|
924
|
+
const handleToggle = () => {
|
|
925
|
+
if (disabled)
|
|
926
|
+
return;
|
|
927
|
+
const newActive = !active;
|
|
928
|
+
setActive(newActive);
|
|
929
|
+
onActiveChange === null || onActiveChange === void 0 ? void 0 : onActiveChange(newActive);
|
|
930
|
+
};
|
|
931
|
+
const handleMenuClick = () => {
|
|
932
|
+
if (closeOnClick) {
|
|
933
|
+
setActive(false);
|
|
934
|
+
onActiveChange === null || onActiveChange === void 0 ? void 0 : onActiveChange(false);
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
const dropdownClasses = classNames('dropdown', bulmaHelperClasses, {
|
|
938
|
+
'is-active': active,
|
|
939
|
+
'is-up': up,
|
|
940
|
+
'is-right': right,
|
|
941
|
+
'is-hoverable': hoverable,
|
|
942
|
+
'is-disabled': disabled,
|
|
943
|
+
}, className);
|
|
944
|
+
return (jsxRuntimeExports.jsxs("div", { className: dropdownClasses, ref: dropdownRef, id: id, "data-testid": "dropdown-root", ...rest, children: [jsxRuntimeExports.jsx("div", { className: "dropdown-trigger", children: jsxRuntimeExports.jsxs("button", { className: "button", "aria-haspopup": "true", "aria-controls": id ? `${id}-menu` : undefined, "aria-expanded": active, onClick: handleToggle, disabled: disabled, type: "button", children: [jsxRuntimeExports.jsx("span", { children: label }), jsxRuntimeExports.jsx("span", { className: "icon is-small", "aria-hidden": "true", children: jsxRuntimeExports.jsx("i", { className: "fas fa-angle-down" }) })] }) }), jsxRuntimeExports.jsx("div", { className: classNames('dropdown-menu', menuClassName), id: id ? `${id}-menu` : undefined, role: "menu", "data-testid": "dropdown-menu", children: jsxRuntimeExports.jsx("div", { className: "dropdown-content", onClick: handleMenuClick, tabIndex: -1, children: children }) })] }));
|
|
945
|
+
};
|
|
946
|
+
const DropdownItem = ({ children, active, className, as: Component = 'a', ...props }) => {
|
|
947
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
948
|
+
return (jsxRuntimeExports.jsx(Component, { className: classNames('dropdown-item', bulmaHelperClasses, { 'is-active': active }, className), tabIndex: 0, role: "menuitem", "data-testid": "dropdown-item", ...rest, children: children }));
|
|
949
|
+
};
|
|
950
|
+
const DropdownDivider = () => (jsxRuntimeExports.jsx("hr", { className: "dropdown-divider" }));
|
|
951
|
+
const Dropdown = Object.assign(DropdownComponent, {
|
|
952
|
+
Item: DropdownItem,
|
|
953
|
+
Divider: DropdownDivider,
|
|
954
|
+
});
|
|
955
|
+
|
|
956
|
+
const MenuListLevelContext = createContext(0);
|
|
957
|
+
const MenuComponent = ({ className, children, ...props }) => {
|
|
958
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
959
|
+
return (jsxRuntimeExports.jsx("aside", { className: classNames('menu', className, bulmaHelperClasses), ...rest, children: children }));
|
|
960
|
+
};
|
|
961
|
+
const MenuLabel = ({ className, children, ...props }) => {
|
|
962
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
963
|
+
return (jsxRuntimeExports.jsx("p", { className: classNames('menu-label', className, bulmaHelperClasses), ...rest, children: children }));
|
|
964
|
+
};
|
|
965
|
+
const MenuList = ({ className, children, ...props }) => {
|
|
966
|
+
const level = useContext(MenuListLevelContext);
|
|
967
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
968
|
+
const ulClass = classNames(className, bulmaHelperClasses, {
|
|
969
|
+
'menu-list': level === 0,
|
|
970
|
+
});
|
|
971
|
+
return (jsxRuntimeExports.jsx(MenuListLevelContext.Provider, { value: level + 1, children: jsxRuntimeExports.jsx("ul", { className: ulClass, ...rest, children: children }) }));
|
|
972
|
+
};
|
|
973
|
+
const MenuItem = ({ className, children, active, href, as: Component = 'a', 'data-testid': testId, ...rest }) => {
|
|
974
|
+
const { bulmaHelperClasses, rest: bulmaRest } = useBulmaClasses(rest);
|
|
975
|
+
const itemClass = classNames({ 'is-active': active }, bulmaHelperClasses);
|
|
976
|
+
const { style, id, title, role, tabIndex, ...linkProps } = bulmaRest;
|
|
977
|
+
const labelChildren = [];
|
|
978
|
+
const nestedMenuLists = [];
|
|
979
|
+
React.Children.forEach(children, child => {
|
|
980
|
+
if (React.isValidElement(child) && child.type === MenuList) {
|
|
981
|
+
nestedMenuLists.push(child);
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
labelChildren.push(child);
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
if (Component === 'a' && href) {
|
|
988
|
+
linkProps.href = href;
|
|
989
|
+
}
|
|
990
|
+
if (Object.prototype.hasOwnProperty.call(rest, 'to')) {
|
|
991
|
+
linkProps.to = rest.to;
|
|
992
|
+
}
|
|
993
|
+
return (jsxRuntimeExports.jsxs("li", { className: className, "data-testid": testId, style: style, id: id, title: title, role: role, tabIndex: tabIndex, children: [jsxRuntimeExports.jsx(Component, { className: itemClass, ...linkProps, children: labelChildren }), nestedMenuLists] }));
|
|
994
|
+
};
|
|
995
|
+
const Menu = Object.assign(MenuComponent, {
|
|
996
|
+
Label: MenuLabel,
|
|
997
|
+
List: MenuList,
|
|
998
|
+
Item: MenuItem,
|
|
999
|
+
});
|
|
1000
|
+
|
|
1001
|
+
const Message = ({ className, title, textColor, color, bgColor, onClose, children, ...props }) => {
|
|
1002
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1003
|
+
color: textColor,
|
|
1004
|
+
backgroundColor: bgColor,
|
|
1005
|
+
...props,
|
|
1006
|
+
});
|
|
1007
|
+
const messageClasses = classNames('message', color && `is-${color}`, className, bulmaHelperClasses);
|
|
1008
|
+
return (jsxRuntimeExports.jsxs("article", { className: messageClasses, ...rest, "data-testid": "message", children: [(title || onClose) && (jsxRuntimeExports.jsxs("div", { className: "message-header", children: [title && jsxRuntimeExports.jsx("span", { children: title }), onClose && (jsxRuntimeExports.jsx("button", { className: "delete", "aria-label": "delete", onClick: onClose, type: "button", "data-testid": "message-close" }))] })), children && (jsxRuntimeExports.jsx("div", { className: "message-body", "data-testid": "message-body", children: children }))] }));
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
const Modal = ({ active = false, onClose, className, textColor, bgColor, modalCardTitle, modalCardFoot, type, children, ...props }) => {
|
|
1012
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1013
|
+
color: textColor,
|
|
1014
|
+
backgroundColor: bgColor,
|
|
1015
|
+
...props,
|
|
1016
|
+
});
|
|
1017
|
+
let isModalCard;
|
|
1018
|
+
if (type === 'card')
|
|
1019
|
+
isModalCard = true;
|
|
1020
|
+
else if (type === 'content')
|
|
1021
|
+
isModalCard = false;
|
|
1022
|
+
else
|
|
1023
|
+
isModalCard = !!modalCardTitle || !!modalCardFoot;
|
|
1024
|
+
const modalClasses = classNames('modal', { 'is-active': active }, className, bulmaHelperClasses);
|
|
1025
|
+
return (jsxRuntimeExports.jsxs("div", { className: modalClasses, ...rest, "data-testid": "modal", children: [jsxRuntimeExports.jsx("div", { className: "modal-background", onClick: onClose, "data-testid": "modal-background" }), isModalCard ? (jsxRuntimeExports.jsxs("div", { className: "modal-card", children: [modalCardTitle && (jsxRuntimeExports.jsxs("header", { className: "modal-card-head", children: [jsxRuntimeExports.jsx("p", { className: "modal-card-title", children: modalCardTitle }), onClose && (jsxRuntimeExports.jsx("button", { className: "delete", "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close" }))] })), jsxRuntimeExports.jsx("section", { className: "modal-card-body", "data-testid": "modal-body", children: children }), modalCardFoot && (jsxRuntimeExports.jsx("footer", { className: "modal-card-foot", children: modalCardFoot }))] })) : (jsxRuntimeExports.jsx("div", { className: "modal-content", "data-testid": "modal-content", children: children })), (!isModalCard || (!modalCardTitle && onClose)) && onClose && (jsxRuntimeExports.jsx("button", { className: "modal-close is-large", "aria-label": "close", onClick: onClose, type: "button", "data-testid": "modal-close-float" }))] }));
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
const Navbar = ({ className, textColor, bgColor, color, transparent, fixed, children, ...props }) => {
|
|
1029
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1030
|
+
color: textColor,
|
|
1031
|
+
backgroundColor: bgColor,
|
|
1032
|
+
...props,
|
|
1033
|
+
});
|
|
1034
|
+
const navbarClasses = classNames('navbar', bulmaHelperClasses, className, {
|
|
1035
|
+
[`is-${color}`]: color,
|
|
1036
|
+
'is-transparent': transparent,
|
|
1037
|
+
[`is-fixed-${fixed}`]: fixed,
|
|
1038
|
+
});
|
|
1039
|
+
return (jsxRuntimeExports.jsx("nav", { className: navbarClasses, role: "navigation", "aria-label": "main navigation", ...rest, children: children }));
|
|
1040
|
+
};
|
|
1041
|
+
const NavbarBrand = ({ className, children, textColor, ...props }) => {
|
|
1042
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1043
|
+
color: textColor,
|
|
1044
|
+
...props,
|
|
1045
|
+
});
|
|
1046
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-brand', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1047
|
+
};
|
|
1048
|
+
const NavbarItem = ({ className, as: Component = 'a', active, textColor, bgColor, children, ...props }) => {
|
|
1049
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1050
|
+
color: textColor,
|
|
1051
|
+
backgroundColor: bgColor,
|
|
1052
|
+
...props,
|
|
1053
|
+
});
|
|
1054
|
+
return (jsxRuntimeExports.jsx(Component, { className: classNames('navbar-item', bulmaHelperClasses, className, {
|
|
1055
|
+
'is-active': active,
|
|
1056
|
+
}), ...rest, children: children }));
|
|
1057
|
+
};
|
|
1058
|
+
const NavbarBurger = ({ className, active, children, ...props }) => {
|
|
1059
|
+
var _a;
|
|
1060
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1061
|
+
...props,
|
|
1062
|
+
});
|
|
1063
|
+
return (jsxRuntimeExports.jsxs("button", { type: "button", className: classNames('navbar-burger', bulmaHelperClasses, className, {
|
|
1064
|
+
'is-active': active,
|
|
1065
|
+
}), "aria-label": props['aria-label'] || 'menu', "aria-expanded": (_a = props['aria-expanded']) !== null && _a !== void 0 ? _a : !!active, ...rest, children: [jsxRuntimeExports.jsx("span", { "aria-hidden": "true" }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true" }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true" }), children] }));
|
|
1066
|
+
};
|
|
1067
|
+
const NavbarMenu = ({ className, active, children, ...props }) => {
|
|
1068
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1069
|
+
...props,
|
|
1070
|
+
});
|
|
1071
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-menu', bulmaHelperClasses, className, {
|
|
1072
|
+
'is-active': active,
|
|
1073
|
+
}), ...rest, children: children }));
|
|
1074
|
+
};
|
|
1075
|
+
const NavbarStart = ({ className, children, ...props }) => {
|
|
1076
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1077
|
+
...props,
|
|
1078
|
+
});
|
|
1079
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-start', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1080
|
+
};
|
|
1081
|
+
const NavbarEnd = ({ className, children, ...props }) => {
|
|
1082
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1083
|
+
...props,
|
|
1084
|
+
});
|
|
1085
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('navbar-end', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1086
|
+
};
|
|
1087
|
+
const NavbarDropdown = ({ className, right, up, hoverable, active, children, ...props }) => (jsxRuntimeExports.jsx("div", { className: classNames('navbar-item', 'has-dropdown', {
|
|
1088
|
+
'is-right': right,
|
|
1089
|
+
'is-up': up,
|
|
1090
|
+
'is-hoverable': hoverable,
|
|
1091
|
+
'is-active': active,
|
|
1092
|
+
}, className), ...props, children: children }));
|
|
1093
|
+
const NavbarDropdownMenu = ({ className, right, up, children, ...props }) => (jsxRuntimeExports.jsx("div", { className: classNames('navbar-dropdown', {
|
|
1094
|
+
'is-right': right,
|
|
1095
|
+
'is-up': up,
|
|
1096
|
+
}, className), ...props, children: children }));
|
|
1097
|
+
const NavbarDivider = props => jsxRuntimeExports.jsx("hr", { className: "navbar-divider", ...props });
|
|
1098
|
+
Navbar.Brand = NavbarBrand;
|
|
1099
|
+
Navbar.Item = NavbarItem;
|
|
1100
|
+
Navbar.Burger = NavbarBurger;
|
|
1101
|
+
Navbar.Menu = NavbarMenu;
|
|
1102
|
+
Navbar.Start = NavbarStart;
|
|
1103
|
+
Navbar.End = NavbarEnd;
|
|
1104
|
+
Navbar.Dropdown = NavbarDropdown;
|
|
1105
|
+
Navbar.DropdownMenu = NavbarDropdownMenu;
|
|
1106
|
+
Navbar.Divider = NavbarDivider;
|
|
1107
|
+
|
|
1108
|
+
const PaginationPrevious = ({ className, disabled, children, ...props }) => (jsxRuntimeExports.jsx("a", { className: classNames('pagination-previous', className, {
|
|
1109
|
+
'is-disabled': disabled,
|
|
1110
|
+
}), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
|
|
1111
|
+
? e => {
|
|
1112
|
+
e.preventDefault();
|
|
1113
|
+
e.stopPropagation();
|
|
1114
|
+
}
|
|
1115
|
+
: props.onClick, children: children }));
|
|
1116
|
+
const PaginationNext = ({ className, disabled, children, ...props }) => (jsxRuntimeExports.jsx("a", { className: classNames('pagination-next', className, {
|
|
1117
|
+
'is-disabled': disabled,
|
|
1118
|
+
}), "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, ...props, onClick: disabled
|
|
1119
|
+
? e => {
|
|
1120
|
+
e.preventDefault();
|
|
1121
|
+
e.stopPropagation();
|
|
1122
|
+
}
|
|
1123
|
+
: props.onClick, children: children }));
|
|
1124
|
+
const Pagination = ({ color, textColor, bgColor, size, align, rounded, className, children, ...props }) => {
|
|
1125
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1126
|
+
color: textColor,
|
|
1127
|
+
backgroundColor: bgColor,
|
|
1128
|
+
...props,
|
|
1129
|
+
});
|
|
1130
|
+
const paginationClasses = classNames('pagination', bulmaHelperClasses, className, {
|
|
1131
|
+
[`is-${color}`]: color,
|
|
1132
|
+
[`is-${size}`]: size,
|
|
1133
|
+
[`is-${align}`]: align,
|
|
1134
|
+
'is-rounded': rounded,
|
|
1135
|
+
});
|
|
1136
|
+
return (jsxRuntimeExports.jsx("nav", { className: paginationClasses, role: "navigation", "aria-label": "pagination", ...rest, children: children }));
|
|
1137
|
+
};
|
|
1138
|
+
const PaginationList = ({ className, textColor, bgColor, children, ...props }) => {
|
|
1139
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1140
|
+
color: textColor,
|
|
1141
|
+
backgroundColor: bgColor,
|
|
1142
|
+
...props,
|
|
1143
|
+
});
|
|
1144
|
+
return (jsxRuntimeExports.jsx("ul", { className: classNames('pagination-list', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1145
|
+
};
|
|
1146
|
+
const PaginationLink = ({ className, textColor, bgColor, active, disabled, onClick, children, ...props }) => {
|
|
1147
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1148
|
+
color: textColor,
|
|
1149
|
+
backgroundColor: bgColor,
|
|
1150
|
+
...props,
|
|
1151
|
+
});
|
|
1152
|
+
const handleClick = (e) => {
|
|
1153
|
+
if (disabled) {
|
|
1154
|
+
e.preventDefault();
|
|
1155
|
+
e.stopPropagation();
|
|
1156
|
+
return;
|
|
1157
|
+
}
|
|
1158
|
+
if (onClick) {
|
|
1159
|
+
onClick(e);
|
|
1160
|
+
}
|
|
1161
|
+
};
|
|
1162
|
+
return (jsxRuntimeExports.jsx("li", { children: jsxRuntimeExports.jsx("a", { className: classNames('pagination-link', bulmaHelperClasses, className, {
|
|
1163
|
+
'is-current': active,
|
|
1164
|
+
'is-disabled': disabled,
|
|
1165
|
+
}), "aria-current": active ? 'page' : undefined, "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, onClick: handleClick, ...rest, children: children }) }));
|
|
1166
|
+
};
|
|
1167
|
+
const PaginationEllipsis = props => (jsxRuntimeExports.jsx("li", { children: jsxRuntimeExports.jsx("span", { className: "pagination-ellipsis", ...props, children: "\u2026" }) }));
|
|
1168
|
+
Pagination.Link = PaginationLink;
|
|
1169
|
+
Pagination.List = PaginationList;
|
|
1170
|
+
Pagination.Ellipsis = PaginationEllipsis;
|
|
1171
|
+
Pagination.Previous = PaginationPrevious;
|
|
1172
|
+
Pagination.Next = PaginationNext;
|
|
1173
|
+
|
|
1174
|
+
const Panel = ({ color, className, children, ...props }) => {
|
|
1175
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1176
|
+
color,
|
|
1177
|
+
...props,
|
|
1178
|
+
});
|
|
1179
|
+
const panelClasses = classNames('panel', bulmaHelperClasses, className, {
|
|
1180
|
+
[`is-${color}`]: color,
|
|
1181
|
+
});
|
|
1182
|
+
return (jsxRuntimeExports.jsx("nav", { className: panelClasses, ...rest, children: children }));
|
|
1183
|
+
};
|
|
1184
|
+
const PanelHeading = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("p", { className: classNames('panel-heading', className), ...props, children: children }));
|
|
1185
|
+
const PanelTabs = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("p", { className: classNames('panel-tabs', className), ...props, children: children }));
|
|
1186
|
+
const PanelBlock = ({ className, active, children, ...props }) => (jsxRuntimeExports.jsx("a", { className: classNames('panel-block', className, { 'is-active': active }), ...props, children: children }));
|
|
1187
|
+
const PanelIcon = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("span", { className: classNames('panel-icon', className), ...props, children: children }));
|
|
1188
|
+
const PanelInputBlock = ({ value, onChange, placeholder, iconClassName = 'fas fa-search', ...props }) => (jsxRuntimeExports.jsx("div", { className: "panel-block", ...props, children: jsxRuntimeExports.jsxs("p", { className: "control has-icons-left", children: [jsxRuntimeExports.jsx("input", { className: "input", type: "text", placeholder: placeholder, value: value, onChange: onChange }), jsxRuntimeExports.jsx("span", { className: "icon is-left", children: jsxRuntimeExports.jsx("i", { className: iconClassName, "aria-hidden": "true" }) })] }) }));
|
|
1189
|
+
const PanelCheckboxBlock = ({ checked, onChange, children, ...props }) => (jsxRuntimeExports.jsxs("label", { className: "panel-block", ...props, children: [jsxRuntimeExports.jsx("input", { type: "checkbox", checked: checked, onChange: onChange }), children] }));
|
|
1190
|
+
const PanelButtonBlock = ({ children, className, ...props }) => (jsxRuntimeExports.jsx("div", { className: "panel-block", children: jsxRuntimeExports.jsx("button", { className: classNames('button is-link is-outlined is-fullwidth', className), ...props, children: children }) }));
|
|
1191
|
+
Panel.Heading = PanelHeading;
|
|
1192
|
+
Panel.Tabs = PanelTabs;
|
|
1193
|
+
Panel.Block = PanelBlock;
|
|
1194
|
+
Panel.Icon = PanelIcon;
|
|
1195
|
+
Panel.InputBlock = PanelInputBlock;
|
|
1196
|
+
Panel.CheckboxBlock = PanelCheckboxBlock;
|
|
1197
|
+
Panel.ButtonBlock = PanelButtonBlock;
|
|
1198
|
+
|
|
1199
|
+
const Tabs = ({ align, size, fullwidth, boxed, toggle, rounded, color, className, children, ...props }) => {
|
|
1200
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1201
|
+
color,
|
|
1202
|
+
...props,
|
|
1203
|
+
});
|
|
1204
|
+
const tabsClass = classNames('tabs', bulmaHelperClasses, {
|
|
1205
|
+
[`is-${align}`]: align,
|
|
1206
|
+
[`is-${size}`]: size,
|
|
1207
|
+
'is-fullwidth': fullwidth,
|
|
1208
|
+
'is-boxed': boxed,
|
|
1209
|
+
'is-toggle': toggle,
|
|
1210
|
+
'is-toggle-rounded': toggle && rounded,
|
|
1211
|
+
[`is-${color}`]: color,
|
|
1212
|
+
}, className);
|
|
1213
|
+
return (jsxRuntimeExports.jsx("div", { className: tabsClass, ...rest, children: children }));
|
|
1214
|
+
};
|
|
1215
|
+
const TabList = ({ className, children, ...props }) => (jsxRuntimeExports.jsx("ul", { className: classNames(className), ...props, children: children }));
|
|
1216
|
+
const TabItem = ({ active, className, children, onClick, ...props }) => (jsxRuntimeExports.jsx("li", { className: classNames({ 'is-active': active }, className), onClick: onClick, ...props, children: children }));
|
|
1217
|
+
Tabs.List = TabList;
|
|
1218
|
+
Tabs.Item = TabItem;
|
|
1219
|
+
|
|
1220
|
+
const Block = ({ className, textColor, bgColor, children, ...props }) => {
|
|
1221
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1222
|
+
color: textColor,
|
|
1223
|
+
backgroundColor: bgColor,
|
|
1224
|
+
...props,
|
|
1225
|
+
});
|
|
1226
|
+
const blockClasses = classNames('block', className, bulmaHelperClasses);
|
|
1227
|
+
return (jsxRuntimeExports.jsx("div", { className: blockClasses, ...rest, children: children }));
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
const Box = ({ className, textColor, bgColor, hasShadow = true, children, ...props }) => {
|
|
1231
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1232
|
+
color: textColor,
|
|
1233
|
+
backgroundColor: bgColor,
|
|
1234
|
+
...props,
|
|
1235
|
+
});
|
|
1236
|
+
const boxClasses = classNames('box', className, bulmaHelperClasses, {
|
|
1237
|
+
'is-shadowless': !hasShadow,
|
|
1238
|
+
});
|
|
1239
|
+
return (jsxRuntimeExports.jsx("div", { className: boxClasses, ...rest, children: children }));
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
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 }) => {
|
|
1243
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1244
|
+
color: textColor,
|
|
1245
|
+
backgroundColor: bgColor,
|
|
1246
|
+
...props,
|
|
1247
|
+
});
|
|
1248
|
+
const buttonClasses = classNames('button', className, bulmaHelperClasses, {
|
|
1249
|
+
[`is-${color}`]: color,
|
|
1250
|
+
[`is-${size}`]: size && size !== 'normal',
|
|
1251
|
+
'is-light': isLight,
|
|
1252
|
+
'is-rounded': isRounded,
|
|
1253
|
+
'is-loading': isLoading,
|
|
1254
|
+
'is-static': isStatic,
|
|
1255
|
+
'is-fullwidth': isFullWidth,
|
|
1256
|
+
'is-outlined': isOutlined,
|
|
1257
|
+
'is-inverted': isInverted,
|
|
1258
|
+
'is-focused': isFocused,
|
|
1259
|
+
'is-active': isActive,
|
|
1260
|
+
'is-hovered': isHovered,
|
|
1261
|
+
'is-disabled': isDisabled,
|
|
1262
|
+
});
|
|
1263
|
+
if (as === 'a') {
|
|
1264
|
+
const { ...anchorRest } = rest;
|
|
1265
|
+
return (jsxRuntimeExports.jsx("a", { className: buttonClasses, href: href, target: target, rel: rel, "aria-disabled": isDisabled, tabIndex: isDisabled ? -1 : undefined, onClick: isDisabled
|
|
1266
|
+
? e => e.preventDefault()
|
|
1267
|
+
: onClick, ...anchorRest, children: children }));
|
|
1268
|
+
}
|
|
1269
|
+
return (jsxRuntimeExports.jsx("button", { className: buttonClasses, disabled: isDisabled, onClick: onClick, ...rest, children: children }));
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
const Buttons = ({ className, textColor, bgColor, isCentered, isRight, hasAddons, children, ...props }) => {
|
|
1273
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1274
|
+
color: textColor,
|
|
1275
|
+
backgroundColor: bgColor,
|
|
1276
|
+
...props,
|
|
1277
|
+
});
|
|
1278
|
+
const buttonsClasses = classNames('buttons', className, bulmaHelperClasses, {
|
|
1279
|
+
'is-centered': isCentered,
|
|
1280
|
+
'is-right': isRight,
|
|
1281
|
+
'has-addons': hasAddons,
|
|
1282
|
+
});
|
|
1283
|
+
return (jsxRuntimeExports.jsx("div", { className: buttonsClasses, ...rest, children: children }));
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
const validSizes = ['small', 'medium', 'large'];
|
|
1287
|
+
const Content = ({ className, textColor, bgColor, size, children, ...props }) => {
|
|
1288
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1289
|
+
color: textColor,
|
|
1290
|
+
backgroundColor: bgColor,
|
|
1291
|
+
...props,
|
|
1292
|
+
});
|
|
1293
|
+
const contentClasses = classNames('content', className, bulmaHelperClasses, {
|
|
1294
|
+
[`is-${size}`]: size && size !== 'normal' && validSizes.includes(size),
|
|
1295
|
+
});
|
|
1296
|
+
return (jsxRuntimeExports.jsx("div", { className: contentClasses, ...rest, children: children }));
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
const Delete = ({ className, textColor, bgColor, onClick, size, ariaLabel = 'Close', disabled = false, ...props }) => {
|
|
1300
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1301
|
+
color: textColor,
|
|
1302
|
+
backgroundColor: bgColor,
|
|
1303
|
+
...props,
|
|
1304
|
+
});
|
|
1305
|
+
const classes = classNames('delete', {
|
|
1306
|
+
[`is-${size}`]: size,
|
|
1307
|
+
'is-disabled': disabled,
|
|
1308
|
+
}, bulmaHelperClasses, className);
|
|
1309
|
+
return (jsxRuntimeExports.jsx("button", { className: classes, onClick: onClick, "aria-label": ariaLabel, disabled: disabled, type: "button", ...rest }));
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
function getIconClasses(library, name, libraryFeatures) {
|
|
1313
|
+
let baseClass = '';
|
|
1314
|
+
let iconClass = '';
|
|
1315
|
+
let features = Array.isArray(libraryFeatures)
|
|
1316
|
+
? libraryFeatures
|
|
1317
|
+
: libraryFeatures
|
|
1318
|
+
? [libraryFeatures]
|
|
1319
|
+
: [];
|
|
1320
|
+
switch (library) {
|
|
1321
|
+
case 'fa': {
|
|
1322
|
+
const faStyle = features.find(f => ['fas', 'far', 'fab', 'fal', 'fad', 'fat'].includes(f)) || 'fas';
|
|
1323
|
+
baseClass = faStyle;
|
|
1324
|
+
iconClass = `fa-${name}`;
|
|
1325
|
+
features = features.filter(f => f !== faStyle);
|
|
1326
|
+
return [baseClass, iconClass, ...features].join(' ');
|
|
1327
|
+
}
|
|
1328
|
+
case 'mdi':
|
|
1329
|
+
baseClass = 'mdi';
|
|
1330
|
+
iconClass = `mdi-${name}`;
|
|
1331
|
+
return [baseClass, iconClass, ...features].join(' ');
|
|
1332
|
+
case 'ion':
|
|
1333
|
+
baseClass = 'ion';
|
|
1334
|
+
iconClass = `ion-${name}`;
|
|
1335
|
+
return [baseClass, iconClass, ...features].join(' ');
|
|
1336
|
+
default:
|
|
1337
|
+
return [name, ...features].join(' ');
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
const Icon = ({ className, textColor, bgColor, name, library = 'fa', libraryFeatures, size, ariaLabel = 'icon', style, ...props }) => {
|
|
1341
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1342
|
+
color: textColor,
|
|
1343
|
+
backgroundColor: bgColor,
|
|
1344
|
+
...props,
|
|
1345
|
+
});
|
|
1346
|
+
const iconContainerClasses = classNames('icon', {
|
|
1347
|
+
[`is-${size}`]: size,
|
|
1348
|
+
}, bulmaHelperClasses, className);
|
|
1349
|
+
const iClasses = getIconClasses(library, name, libraryFeatures);
|
|
1350
|
+
return (jsxRuntimeExports.jsx("span", { className: iconContainerClasses, "aria-label": ariaLabel, style: style, ...rest, children: jsxRuntimeExports.jsx("i", { className: iClasses }) }));
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
const IconText = ({ className, textColor, bgColor, iconProps, children, items, ...props }) => {
|
|
1354
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1355
|
+
color: textColor,
|
|
1356
|
+
backgroundColor: bgColor,
|
|
1357
|
+
...props,
|
|
1358
|
+
});
|
|
1359
|
+
const iconTextClasses = classNames('icon-text', bulmaHelperClasses, className);
|
|
1360
|
+
return (jsxRuntimeExports.jsx("span", { className: iconTextClasses, ...rest, children: items ? (items.map((item, index) => (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Icon, { ...item.iconProps }), item.text && jsxRuntimeExports.jsx("span", { children: item.text })] }, index)))) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [iconProps && jsxRuntimeExports.jsx(Icon, { ...iconProps }), children && jsxRuntimeExports.jsx("span", { children: children })] })) }));
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1363
|
+
const Image = ({ as, className, textColor, bgColor, size, isRounded, isRetina, src, alt, children, ...props }) => {
|
|
1364
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1365
|
+
color: textColor,
|
|
1366
|
+
backgroundColor: bgColor,
|
|
1367
|
+
...props,
|
|
1368
|
+
});
|
|
1369
|
+
const imageClasses = classNames('image', className, bulmaHelperClasses, {
|
|
1370
|
+
[`is-${size}`]: size,
|
|
1371
|
+
'has-ratio': size && typeof size === 'string' && size.includes('by'),
|
|
1372
|
+
});
|
|
1373
|
+
let Tag;
|
|
1374
|
+
if (as) {
|
|
1375
|
+
Tag = as;
|
|
1376
|
+
}
|
|
1377
|
+
else if (size && typeof size === 'string' && size.includes('by')) {
|
|
1378
|
+
Tag = 'figure';
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
Tag = 'div';
|
|
1382
|
+
}
|
|
1383
|
+
const content = children ? (children) : (jsxRuntimeExports.jsx("img", { className: classNames({ 'is-rounded': isRounded }), src: src, alt: alt, ...(isRetina && src ? { srcSet: `${src} 2x` } : {}) }));
|
|
1384
|
+
return (jsxRuntimeExports.jsx(Tag, { className: imageClasses, ...rest, children: content }));
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
const Notification = ({ className, color, isLight, hasDelete, onDelete, children, ...props }) => {
|
|
1388
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1389
|
+
...props,
|
|
1390
|
+
});
|
|
1391
|
+
const notificationClasses = classNames('notification', className, bulmaHelperClasses, {
|
|
1392
|
+
[`is-${color}`]: color && validColors.includes(color),
|
|
1393
|
+
'is-light': isLight,
|
|
1394
|
+
});
|
|
1395
|
+
return (jsxRuntimeExports.jsxs("div", { className: notificationClasses, ...rest, children: [hasDelete && (jsxRuntimeExports.jsx("button", { className: "delete", onClick: onDelete, "aria-label": "Close notification" })), children] }));
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
const Progress = ({ className, color, size, value, max, children, ...props }) => {
|
|
1399
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1400
|
+
...props,
|
|
1401
|
+
});
|
|
1402
|
+
const progressClasses = classNames('progress', className, bulmaHelperClasses, {
|
|
1403
|
+
[`is-${color}`]: color && validColors.includes(color),
|
|
1404
|
+
[`is-${size}`]: size,
|
|
1405
|
+
});
|
|
1406
|
+
return (jsxRuntimeExports.jsx("progress", { className: progressClasses, value: value, max: max, ...rest, children: children }));
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
const validSubTitleSizes = ['1', '2', '3', '4', '5', '6'];
|
|
1410
|
+
const validSubTitleElements = [
|
|
1411
|
+
'h1',
|
|
1412
|
+
'h2',
|
|
1413
|
+
'h3',
|
|
1414
|
+
'h4',
|
|
1415
|
+
'h5',
|
|
1416
|
+
'h6',
|
|
1417
|
+
'p',
|
|
1418
|
+
];
|
|
1419
|
+
const SubTitle = ({ className, size, as = 'h1', children, ...props }) => {
|
|
1420
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1421
|
+
const element = validSubTitleElements.includes(as) ? as : 'h1';
|
|
1422
|
+
const validSize = size && validSubTitleSizes.includes(size) ? size : undefined;
|
|
1423
|
+
const subTitleClasses = classNames('subtitle', className, bulmaHelperClasses, {
|
|
1424
|
+
[`is-${validSize}`]: validSize,
|
|
1425
|
+
});
|
|
1426
|
+
const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
|
|
1427
|
+
return (jsxRuntimeExports.jsx(Tag, { className: subTitleClasses, ...rest, children: children }));
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
const Table = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFullwidth, isResponsive, children, ...props }) => {
|
|
1431
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1432
|
+
const tableClasses = classNames('table', className, bulmaHelperClasses, {
|
|
1433
|
+
'is-bordered': isBordered,
|
|
1434
|
+
'is-striped': isStriped,
|
|
1435
|
+
'is-narrow': isNarrow,
|
|
1436
|
+
'is-hoverable': isHoverable,
|
|
1437
|
+
'is-fullwidth': isFullwidth,
|
|
1438
|
+
});
|
|
1439
|
+
const tableElement = (jsxRuntimeExports.jsx("table", { className: tableClasses, ...rest, children: children }));
|
|
1440
|
+
return isResponsive ? (jsxRuntimeExports.jsx("div", { className: "table-container", children: tableElement })) : (tableElement);
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
const validTagColors = [
|
|
1444
|
+
'primary',
|
|
1445
|
+
'link',
|
|
1446
|
+
'info',
|
|
1447
|
+
'success',
|
|
1448
|
+
'warning',
|
|
1449
|
+
'danger',
|
|
1450
|
+
'black',
|
|
1451
|
+
'dark',
|
|
1452
|
+
'light',
|
|
1453
|
+
'white',
|
|
1454
|
+
];
|
|
1455
|
+
const validTagSizes = ['normal', 'medium', 'large'];
|
|
1456
|
+
const Tag = ({ className, color, size, isRounded, isDelete, isHoverable, onDelete, children, ...props }) => {
|
|
1457
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1458
|
+
const tagClasses = classNames('tag', className, bulmaHelperClasses, {
|
|
1459
|
+
[`is-${color}`]: color && validTagColors.includes(color),
|
|
1460
|
+
[`is-${size}`]: size && size !== 'normal' && validTagSizes.includes(size),
|
|
1461
|
+
'is-rounded': isRounded,
|
|
1462
|
+
'is-delete': isDelete,
|
|
1463
|
+
'is-hoverable': isHoverable,
|
|
1464
|
+
});
|
|
1465
|
+
if (isDelete) {
|
|
1466
|
+
return (jsxRuntimeExports.jsx("button", { className: tagClasses, onClick: onDelete, "aria-label": "Delete tag", ...rest }));
|
|
1467
|
+
}
|
|
1468
|
+
return (jsxRuntimeExports.jsx("span", { className: tagClasses, ...rest, children: children }));
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
const Tags = ({ className, hasAddons, isMultiline, children, ...props }) => {
|
|
1472
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1473
|
+
const tagsClasses = classNames('tags', className, bulmaHelperClasses, {
|
|
1474
|
+
'has-addons': hasAddons,
|
|
1475
|
+
'are-multiline': isMultiline,
|
|
1476
|
+
});
|
|
1477
|
+
return (jsxRuntimeExports.jsx("div", { className: tagsClasses, ...rest, children: children }));
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
const Tbody = ({ className, children, ...props }) => {
|
|
1481
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1482
|
+
const tbodyClasses = classNames(className, bulmaHelperClasses);
|
|
1483
|
+
return (jsxRuntimeExports.jsx("tbody", { className: tbodyClasses, ...rest, children: children }));
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
const validTableColors = [
|
|
1487
|
+
'primary',
|
|
1488
|
+
'link',
|
|
1489
|
+
'info',
|
|
1490
|
+
'success',
|
|
1491
|
+
'warning',
|
|
1492
|
+
'danger',
|
|
1493
|
+
'black',
|
|
1494
|
+
'dark',
|
|
1495
|
+
'light',
|
|
1496
|
+
'white',
|
|
1497
|
+
];
|
|
1498
|
+
const Td = ({ className, color, children, ...props }) => {
|
|
1499
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1500
|
+
const tdClasses = classNames(className, bulmaHelperClasses, {
|
|
1501
|
+
[`is-${color}`]: color && validTableColors.includes(color),
|
|
1502
|
+
});
|
|
1503
|
+
return (jsxRuntimeExports.jsx("td", { className: tdClasses, ...rest, children: children }));
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
const Tfoot = ({ className, children, ...props }) => {
|
|
1507
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1508
|
+
const tfootClasses = classNames(className, bulmaHelperClasses);
|
|
1509
|
+
return (jsxRuntimeExports.jsx("tfoot", { className: tfootClasses, ...rest, children: children }));
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1512
|
+
const validAlignments = ['left', 'right', 'centered'];
|
|
1513
|
+
const Th = ({ className, isAligned, width, color, children, ...props }) => {
|
|
1514
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1515
|
+
const thClasses = classNames(className, bulmaHelperClasses, {
|
|
1516
|
+
[`has-text-${isAligned}`]: isAligned && validAlignments.includes(isAligned),
|
|
1517
|
+
[`is-${color}`]: color && validTableColors.includes(color),
|
|
1518
|
+
});
|
|
1519
|
+
return (jsxRuntimeExports.jsx("th", { className: thClasses, style: width
|
|
1520
|
+
? { width: typeof width === 'number' ? `${width}px` : width }
|
|
1521
|
+
: undefined, ...rest, children: children }));
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1524
|
+
const Thead = ({ className, children, ...props }) => {
|
|
1525
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1526
|
+
const theadClasses = classNames(className, bulmaHelperClasses);
|
|
1527
|
+
return (jsxRuntimeExports.jsx("thead", { className: theadClasses, ...rest, children: children }));
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
const validTitleSizes = ['1', '2', '3', '4', '5', '6'];
|
|
1531
|
+
const validTitleElements = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'];
|
|
1532
|
+
const Title = ({ className, size, isSpaced, as = 'h1', children, ...props }) => {
|
|
1533
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1534
|
+
const element = validTitleElements.includes(as) ? as : 'h1';
|
|
1535
|
+
const validSize = size && validTitleSizes.includes(size) ? size : undefined;
|
|
1536
|
+
const titleClasses = classNames('title', className, bulmaHelperClasses, {
|
|
1537
|
+
[`is-${validSize}`]: validSize,
|
|
1538
|
+
'is-spaced': isSpaced,
|
|
1539
|
+
});
|
|
1540
|
+
const Tag = element === 'p' ? 'p' : validSize ? `h${validSize}` : element;
|
|
1541
|
+
return (jsxRuntimeExports.jsx(Tag, { className: titleClasses, ...rest, children: children }));
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
const Tr = ({ className, isSelected, color, children, ...props }) => {
|
|
1545
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1546
|
+
const trClasses = classNames(className, bulmaHelperClasses, {
|
|
1547
|
+
'is-selected': isSelected,
|
|
1548
|
+
[`is-${color}`]: color && validTableColors.includes(color),
|
|
1549
|
+
});
|
|
1550
|
+
return (jsxRuntimeExports.jsx("tr", { className: trClasses, ...rest, children: children }));
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1553
|
+
const Checkbox = forwardRef(({ disabled, className, children, ...props }, ref) => {
|
|
1554
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1555
|
+
...props,
|
|
1556
|
+
});
|
|
1557
|
+
const checkboxClass = classNames('checkbox', bulmaHelperClasses, className);
|
|
1558
|
+
return (jsxRuntimeExports.jsxs("label", { className: checkboxClass, children: [jsxRuntimeExports.jsx("input", { ref: ref, type: "checkbox", disabled: disabled, ...rest }), children] }));
|
|
1559
|
+
});
|
|
1560
|
+
Checkbox.displayName = 'Checkbox';
|
|
1561
|
+
|
|
1562
|
+
const Checkboxes = ({ children, className, ...props }) => {
|
|
1563
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1564
|
+
...props,
|
|
1565
|
+
});
|
|
1566
|
+
const wrapperClass = classNames('checkboxes', bulmaHelperClasses, className);
|
|
1567
|
+
return (jsxRuntimeExports.jsx("div", { className: wrapperClass, ...rest, children: children }));
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
const allowedColors = [...validColors, 'inherit', 'current'];
|
|
1571
|
+
const Control = React.forwardRef(({ as = 'div', hasIconsLeft, hasIconsRight, isLoading, isExpanded, size, textColor, bgColor, iconLeft, iconRight, iconLeftName, iconLeftSize, iconRightName, iconRightSize, className, children, ...props }, ref) => {
|
|
1572
|
+
const Component = (as === 'p' ? 'p' : 'div');
|
|
1573
|
+
const { textColor: _ignoredTextColor, bgColor: _ignoredBgColor, ...restProps } = props;
|
|
1574
|
+
const safeTextColor = allowedColors.includes(textColor)
|
|
1575
|
+
? textColor
|
|
1576
|
+
: undefined;
|
|
1577
|
+
const safeBgColor = allowedColors.includes(bgColor)
|
|
1578
|
+
? bgColor
|
|
1579
|
+
: undefined;
|
|
1580
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1581
|
+
color: safeTextColor,
|
|
1582
|
+
backgroundColor: safeBgColor,
|
|
1583
|
+
...restProps,
|
|
1584
|
+
});
|
|
1585
|
+
const leftIconProps = iconLeft ||
|
|
1586
|
+
(iconLeftName
|
|
1587
|
+
? {
|
|
1588
|
+
name: iconLeftName,
|
|
1589
|
+
size: iconLeftSize,
|
|
1590
|
+
}
|
|
1591
|
+
: undefined);
|
|
1592
|
+
const rightIconProps = iconRight ||
|
|
1593
|
+
(iconRightName
|
|
1594
|
+
? {
|
|
1595
|
+
name: iconRightName,
|
|
1596
|
+
size: iconRightSize,
|
|
1597
|
+
}
|
|
1598
|
+
: undefined);
|
|
1599
|
+
const controlClass = classNames('control', bulmaHelperClasses, {
|
|
1600
|
+
'has-icons-left': hasIconsLeft || !!leftIconProps,
|
|
1601
|
+
'has-icons-right': hasIconsRight || !!rightIconProps,
|
|
1602
|
+
'is-loading': isLoading,
|
|
1603
|
+
'is-expanded': isExpanded,
|
|
1604
|
+
[`is-${size}`]: !!size,
|
|
1605
|
+
}, className);
|
|
1606
|
+
return (jsxRuntimeExports.jsxs(Component, { className: controlClass, ref: ref, ...restProps, ...rest, children: [children, leftIconProps && leftIconProps.name && (jsxRuntimeExports.jsx(Icon, { ...leftIconProps, className: "is-left" })), rightIconProps && rightIconProps.name && (jsxRuntimeExports.jsx(Icon, { ...rightIconProps, className: "is-right" }))] }));
|
|
1607
|
+
});
|
|
1608
|
+
Control.displayName = 'Control';
|
|
1609
|
+
|
|
1610
|
+
const FieldLabel = ({ size, textColor, bgColor, className, children, ...props }) => {
|
|
1611
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1612
|
+
color: textColor,
|
|
1613
|
+
backgroundColor: bgColor,
|
|
1614
|
+
...props,
|
|
1615
|
+
});
|
|
1616
|
+
const fieldLabelClass = classNames('field-label', bulmaHelperClasses, { [`is-${size}`]: size }, className);
|
|
1617
|
+
return (jsxRuntimeExports.jsx("div", { className: fieldLabelClass, ...props, ...rest, children: children }));
|
|
1618
|
+
};
|
|
1619
|
+
const FieldBody = ({ textColor, bgColor, className, children, ...props }) => {
|
|
1620
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1621
|
+
color: textColor,
|
|
1622
|
+
backgroundColor: bgColor,
|
|
1623
|
+
...props,
|
|
1624
|
+
});
|
|
1625
|
+
const fieldBodyClass = classNames('field-body', bulmaHelperClasses, className);
|
|
1626
|
+
return (jsxRuntimeExports.jsx("div", { className: fieldBodyClass, ...props, ...rest, children: children }));
|
|
1627
|
+
};
|
|
1628
|
+
const Field = ({ horizontal, grouped, hasAddons, label, labelSize, labelProps, textColor, bgColor, className, children, ...props }) => {
|
|
1629
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1630
|
+
color: textColor,
|
|
1631
|
+
backgroundColor: bgColor,
|
|
1632
|
+
...props,
|
|
1633
|
+
});
|
|
1634
|
+
const fieldClass = classNames('field', bulmaHelperClasses, {
|
|
1635
|
+
'is-horizontal': horizontal,
|
|
1636
|
+
'has-addons': !!hasAddons,
|
|
1637
|
+
'is-grouped': grouped === true ||
|
|
1638
|
+
grouped === 'centered' ||
|
|
1639
|
+
grouped === 'right' ||
|
|
1640
|
+
grouped === 'multiline',
|
|
1641
|
+
'is-grouped-centered': grouped === 'centered',
|
|
1642
|
+
'is-grouped-right': grouped === 'right',
|
|
1643
|
+
'is-grouped-multiline': grouped === 'multiline',
|
|
1644
|
+
}, className);
|
|
1645
|
+
const mappedLabelSize = labelSize === 'normal' ? undefined : labelSize;
|
|
1646
|
+
let renderedLabel = null;
|
|
1647
|
+
if (label) {
|
|
1648
|
+
if (horizontal) {
|
|
1649
|
+
renderedLabel = (jsxRuntimeExports.jsx(FieldLabel, { size: mappedLabelSize, children: jsxRuntimeExports.jsx("label", { ...labelProps, className: classNames('label', labelProps === null || labelProps === void 0 ? void 0 : labelProps.className), style: labelProps === null || labelProps === void 0 ? void 0 : labelProps.style, children: label }) }));
|
|
1650
|
+
}
|
|
1651
|
+
else {
|
|
1652
|
+
renderedLabel = (jsxRuntimeExports.jsx("label", { ...labelProps, className: classNames('label', labelProps === null || labelProps === void 0 ? void 0 : labelProps.className), style: { display: 'block', ...((labelProps === null || labelProps === void 0 ? void 0 : labelProps.style) || {}) }, children: label }));
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
let content = children;
|
|
1656
|
+
if (horizontal) {
|
|
1657
|
+
if (React.isValidElement(children) &&
|
|
1658
|
+
(children.type === FieldBody || children.type.displayName === 'FieldBody')) {
|
|
1659
|
+
content = children;
|
|
1660
|
+
}
|
|
1661
|
+
else {
|
|
1662
|
+
content = jsxRuntimeExports.jsx(FieldBody, { children: children });
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
return (jsxRuntimeExports.jsxs("div", { className: fieldClass, ...rest, children: [renderedLabel, content] }));
|
|
1666
|
+
};
|
|
1667
|
+
FieldLabel.displayName = 'FieldLabel';
|
|
1668
|
+
FieldBody.displayName = 'FieldBody';
|
|
1669
|
+
Field.Label = FieldLabel;
|
|
1670
|
+
Field.Body = FieldBody;
|
|
1671
|
+
|
|
1672
|
+
const File = forwardRef(({ color, size, isBoxed, isFullwidth, isRight, isCentered, hasName, label, iconLeft, iconRight, className, inputClassName, fileName, ...props }, ref) => {
|
|
1673
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1674
|
+
color,
|
|
1675
|
+
...props,
|
|
1676
|
+
});
|
|
1677
|
+
let alignmentClass;
|
|
1678
|
+
if (isRight && isCentered) {
|
|
1679
|
+
alignmentClass = 'is-right';
|
|
1680
|
+
}
|
|
1681
|
+
else if (isRight) {
|
|
1682
|
+
alignmentClass = 'is-right';
|
|
1683
|
+
}
|
|
1684
|
+
else if (isCentered) {
|
|
1685
|
+
alignmentClass = 'is-centered';
|
|
1686
|
+
}
|
|
1687
|
+
const fileClass = classNames('file', bulmaHelperClasses, {
|
|
1688
|
+
[`is-${color}`]: color,
|
|
1689
|
+
[`is-${size}`]: size,
|
|
1690
|
+
'is-boxed': isBoxed,
|
|
1691
|
+
'is-fullwidth': isFullwidth,
|
|
1692
|
+
'has-name': hasName,
|
|
1693
|
+
}, alignmentClass, className);
|
|
1694
|
+
return (jsxRuntimeExports.jsx("div", { className: fileClass, children: jsxRuntimeExports.jsxs("label", { className: "file-label", children: [jsxRuntimeExports.jsx("input", { ref: ref, className: classNames('file-input', inputClassName), type: "file", ...rest }), jsxRuntimeExports.jsxs("span", { className: "file-cta", children: [iconLeft && jsxRuntimeExports.jsx("span", { className: "file-icon", children: iconLeft }), jsxRuntimeExports.jsx("span", { className: "file-label", children: label || 'Choose a file…' }), iconRight && jsxRuntimeExports.jsx("span", { className: "file-icon", children: iconRight })] }), hasName && fileName && jsxRuntimeExports.jsx("span", { className: "file-name", children: fileName })] }) }));
|
|
1695
|
+
});
|
|
1696
|
+
File.displayName = 'File';
|
|
1697
|
+
|
|
1698
|
+
const Input = forwardRef(({ color, size, isRounded, isStatic, isHovered, isFocused, isLoading, className, disabled, readOnly, ...props }, ref) => {
|
|
1699
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1700
|
+
color,
|
|
1701
|
+
...props,
|
|
1702
|
+
});
|
|
1703
|
+
const inputClass = classNames('input', bulmaHelperClasses, {
|
|
1704
|
+
[`is-${color}`]: color,
|
|
1705
|
+
[`is-${size}`]: size,
|
|
1706
|
+
'is-rounded': isRounded,
|
|
1707
|
+
'is-static': isStatic,
|
|
1708
|
+
'is-hovered': isHovered,
|
|
1709
|
+
'is-focused': isFocused,
|
|
1710
|
+
'is-loading': isLoading,
|
|
1711
|
+
}, className);
|
|
1712
|
+
return (jsxRuntimeExports.jsx("input", { ref: ref, className: inputClass, disabled: disabled, readOnly: readOnly, ...rest }));
|
|
1713
|
+
});
|
|
1714
|
+
Input.displayName = 'Input';
|
|
1715
|
+
|
|
1716
|
+
const Radio = forwardRef(({ disabled, className, children, ...props }, ref) => {
|
|
1717
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1718
|
+
...props,
|
|
1719
|
+
});
|
|
1720
|
+
const radioClass = classNames('radio', bulmaHelperClasses, className);
|
|
1721
|
+
return (jsxRuntimeExports.jsxs("label", { className: radioClass, children: [jsxRuntimeExports.jsx("input", { ref: ref, type: "radio", disabled: disabled, ...rest }), children] }));
|
|
1722
|
+
});
|
|
1723
|
+
Radio.displayName = 'Radio';
|
|
1724
|
+
|
|
1725
|
+
const Radios = ({ children, className, ...props }) => {
|
|
1726
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1727
|
+
...props,
|
|
1728
|
+
});
|
|
1729
|
+
const wrapperClass = classNames('radios', bulmaHelperClasses, className);
|
|
1730
|
+
return (jsxRuntimeExports.jsx("div", { className: wrapperClass, ...rest, children: children }));
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
const Select = forwardRef(({ color, size, isRounded, isLoading, isActive, className, disabled, children, multiple, multipleSize, ...props }, ref) => {
|
|
1734
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1735
|
+
color,
|
|
1736
|
+
...props,
|
|
1737
|
+
});
|
|
1738
|
+
const selectClass = classNames('select', bulmaHelperClasses, {
|
|
1739
|
+
[`is-${color}`]: color,
|
|
1740
|
+
[`is-${size}`]: size,
|
|
1741
|
+
'is-rounded': isRounded,
|
|
1742
|
+
'is-loading': isLoading,
|
|
1743
|
+
'is-active': isActive,
|
|
1744
|
+
}, className);
|
|
1745
|
+
const selectProps = {
|
|
1746
|
+
disabled,
|
|
1747
|
+
multiple,
|
|
1748
|
+
...rest,
|
|
1749
|
+
};
|
|
1750
|
+
if (multiple && typeof multipleSize === 'number') {
|
|
1751
|
+
selectProps.size = multipleSize;
|
|
1752
|
+
}
|
|
1753
|
+
return (jsxRuntimeExports.jsx("div", { className: selectClass, children: jsxRuntimeExports.jsx("select", { ref: ref, ...selectProps, children: children }) }));
|
|
1754
|
+
});
|
|
1755
|
+
Select.displayName = 'Select';
|
|
1756
|
+
|
|
1757
|
+
const TextArea = forwardRef(({ color, size, isRounded, isStatic, isHovered, isFocused, isLoading, isActive, hasFixedSize, className, disabled, readOnly, rows, ...props }, ref) => {
|
|
1758
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1759
|
+
color,
|
|
1760
|
+
...props,
|
|
1761
|
+
});
|
|
1762
|
+
const textareaClass = classNames('textarea', bulmaHelperClasses, {
|
|
1763
|
+
[`is-${color}`]: color,
|
|
1764
|
+
[`is-${size}`]: size,
|
|
1765
|
+
'is-rounded': isRounded,
|
|
1766
|
+
'is-static': isStatic,
|
|
1767
|
+
'is-hovered': isHovered,
|
|
1768
|
+
'is-focused': isFocused,
|
|
1769
|
+
'is-loading': isLoading,
|
|
1770
|
+
'is-active': isActive,
|
|
1771
|
+
'has-fixed-size': hasFixedSize,
|
|
1772
|
+
}, className);
|
|
1773
|
+
return (jsxRuntimeExports.jsx("textarea", { ref: ref, className: textareaClass, disabled: disabled, readOnly: readOnly, rows: rows, ...rest }));
|
|
1774
|
+
});
|
|
1775
|
+
TextArea.displayName = 'TextArea';
|
|
1776
|
+
|
|
1777
|
+
function getCellGridClasses(props) {
|
|
1778
|
+
const classes = [];
|
|
1779
|
+
if (props.colStart !== undefined)
|
|
1780
|
+
classes.push(`is-col-start-${props.colStart}`);
|
|
1781
|
+
if (props.colFromEnd !== undefined)
|
|
1782
|
+
classes.push(`is-col-from-end-${props.colFromEnd}`);
|
|
1783
|
+
if (props.colSpan !== undefined)
|
|
1784
|
+
classes.push(`is-col-span-${props.colSpan}`);
|
|
1785
|
+
if (props.rowStart !== undefined)
|
|
1786
|
+
classes.push(`is-row-start-${props.rowStart}`);
|
|
1787
|
+
if (props.rowFromEnd !== undefined)
|
|
1788
|
+
classes.push(`is-row-from-end-${props.rowFromEnd}`);
|
|
1789
|
+
if (props.rowSpan !== undefined)
|
|
1790
|
+
classes.push(`is-row-span-${props.rowSpan}`);
|
|
1791
|
+
return classes;
|
|
1792
|
+
}
|
|
1793
|
+
const Cell = ({ colStart, colFromEnd, colSpan, rowStart, rowFromEnd, rowSpan, className, textColor, bgColor, children, ...props }) => {
|
|
1794
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1795
|
+
color: textColor,
|
|
1796
|
+
backgroundColor: bgColor,
|
|
1797
|
+
...props,
|
|
1798
|
+
});
|
|
1799
|
+
const cellClasses = classNames('cell', ...getCellGridClasses({
|
|
1800
|
+
colStart,
|
|
1801
|
+
colFromEnd,
|
|
1802
|
+
colSpan,
|
|
1803
|
+
rowStart,
|
|
1804
|
+
rowFromEnd,
|
|
1805
|
+
rowSpan,
|
|
1806
|
+
}), className, bulmaHelperClasses);
|
|
1807
|
+
return (jsxRuntimeExports.jsx("div", { className: cellClasses, ...rest, children: children }));
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1810
|
+
function getGridInnerClasses({ gap, columnGap, rowGap, minCol, }) {
|
|
1811
|
+
const classes = [];
|
|
1812
|
+
if (gap !== undefined)
|
|
1813
|
+
classes.push(`is-gap-${gap}`);
|
|
1814
|
+
if (columnGap !== undefined)
|
|
1815
|
+
classes.push(`is-column-gap-${columnGap}`);
|
|
1816
|
+
if (rowGap !== undefined)
|
|
1817
|
+
classes.push(`is-row-gap-${rowGap}`);
|
|
1818
|
+
if (minCol !== undefined)
|
|
1819
|
+
classes.push(`is-col-min-${minCol}`);
|
|
1820
|
+
return classes;
|
|
1821
|
+
}
|
|
1822
|
+
function getFixedGridClasses({ fixedCols, fixedColsMobile, fixedColsTablet, fixedColsDesktop, fixedColsWidescreen, fixedColsFullhd, }) {
|
|
1823
|
+
const classes = [];
|
|
1824
|
+
if (fixedCols === 'auto') {
|
|
1825
|
+
classes.push('has-auto-count');
|
|
1826
|
+
return classes;
|
|
1827
|
+
}
|
|
1828
|
+
if (fixedCols !== undefined)
|
|
1829
|
+
classes.push(`has-${fixedCols}-cols`);
|
|
1830
|
+
if (fixedColsMobile !== undefined)
|
|
1831
|
+
classes.push(`has-${fixedColsMobile}-cols-mobile`);
|
|
1832
|
+
if (fixedColsTablet !== undefined)
|
|
1833
|
+
classes.push(`has-${fixedColsTablet}-cols-tablet`);
|
|
1834
|
+
if (fixedColsDesktop !== undefined)
|
|
1835
|
+
classes.push(`has-${fixedColsDesktop}-cols-desktop`);
|
|
1836
|
+
if (fixedColsWidescreen !== undefined)
|
|
1837
|
+
classes.push(`has-${fixedColsWidescreen}-cols-widescreen`);
|
|
1838
|
+
if (fixedColsFullhd !== undefined)
|
|
1839
|
+
classes.push(`has-${fixedColsFullhd}-cols-fullhd`);
|
|
1840
|
+
return classes;
|
|
1841
|
+
}
|
|
1842
|
+
const Grid = ({ isFixed = false, gap, columnGap, rowGap, minCol, fixedCols, fixedColsMobile, fixedColsTablet, fixedColsDesktop, fixedColsWidescreen, fixedColsFullhd, className, textColor, bgColor, children, ...props }) => {
|
|
1843
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1844
|
+
color: textColor,
|
|
1845
|
+
backgroundColor: bgColor,
|
|
1846
|
+
...props,
|
|
1847
|
+
});
|
|
1848
|
+
const gridClasses = classNames('grid', ...getGridInnerClasses({ gap, columnGap, rowGap, minCol }), bulmaHelperClasses, className);
|
|
1849
|
+
if (isFixed) {
|
|
1850
|
+
const fixedGridClasses = classNames('fixed-grid', ...getFixedGridClasses({
|
|
1851
|
+
fixedCols,
|
|
1852
|
+
fixedColsMobile,
|
|
1853
|
+
fixedColsTablet,
|
|
1854
|
+
fixedColsDesktop,
|
|
1855
|
+
fixedColsWidescreen,
|
|
1856
|
+
fixedColsFullhd,
|
|
1857
|
+
}));
|
|
1858
|
+
return (jsxRuntimeExports.jsx("div", { className: fixedGridClasses, children: jsxRuntimeExports.jsx("div", { className: gridClasses, ...rest, children: children }) }));
|
|
1859
|
+
}
|
|
1860
|
+
return (jsxRuntimeExports.jsx("div", { className: gridClasses, ...rest, children: children }));
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
const Container = ({ className, textColor, bgColor, fluid, widescreen, fullhd, breakpoint, isMax, children, ...props }) => {
|
|
1864
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1865
|
+
color: textColor,
|
|
1866
|
+
backgroundColor: bgColor,
|
|
1867
|
+
...props,
|
|
1868
|
+
});
|
|
1869
|
+
const validMaxBreakpoints = [
|
|
1870
|
+
'tablet',
|
|
1871
|
+
'desktop',
|
|
1872
|
+
'widescreen',
|
|
1873
|
+
];
|
|
1874
|
+
let breakpointClass;
|
|
1875
|
+
if (breakpoint) {
|
|
1876
|
+
if (isMax && validMaxBreakpoints.includes(breakpoint)) {
|
|
1877
|
+
breakpointClass = `is-max-${breakpoint}`;
|
|
1878
|
+
}
|
|
1879
|
+
else if (!isMax) {
|
|
1880
|
+
breakpointClass = `is-${breakpoint}`;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
const containerClasses = classNames('container', {
|
|
1884
|
+
'is-fluid': fluid,
|
|
1885
|
+
'is-widescreen': widescreen,
|
|
1886
|
+
'is-fullhd': fullhd,
|
|
1887
|
+
}, breakpointClass, className, bulmaHelperClasses);
|
|
1888
|
+
return (jsxRuntimeExports.jsx("div", { className: containerClasses, ...rest, children: children }));
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
const Footer = ({ as = 'footer', className, children, ...props }) => {
|
|
1892
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1893
|
+
const Tag = as;
|
|
1894
|
+
return (jsxRuntimeExports.jsx(Tag, { className: classNames('footer', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1897
|
+
const Hero = ({ className, color, size, bgColor, fullheightWithNavbar, children, ...props }) => {
|
|
1898
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1899
|
+
color,
|
|
1900
|
+
backgroundColor: bgColor,
|
|
1901
|
+
...props,
|
|
1902
|
+
});
|
|
1903
|
+
const heroClasses = classNames('hero', bulmaHelperClasses, className, color && `is-${color}`, size && size !== 'fullheight-with-navbar' && `is-${size}`, {
|
|
1904
|
+
'is-fullheight-with-navbar': fullheightWithNavbar || size === 'fullheight-with-navbar',
|
|
1905
|
+
});
|
|
1906
|
+
return (jsxRuntimeExports.jsx("section", { className: heroClasses, ...rest, children: children }));
|
|
1907
|
+
};
|
|
1908
|
+
const HeroHead = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1909
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1910
|
+
color: textColor !== null && textColor !== void 0 ? textColor : color,
|
|
1911
|
+
backgroundColor: bgColor,
|
|
1912
|
+
...props,
|
|
1913
|
+
});
|
|
1914
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('hero-head', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1915
|
+
};
|
|
1916
|
+
const HeroBody = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1917
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1918
|
+
color: textColor !== null && textColor !== void 0 ? textColor : color,
|
|
1919
|
+
backgroundColor: bgColor,
|
|
1920
|
+
...props,
|
|
1921
|
+
});
|
|
1922
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('hero-body', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1923
|
+
};
|
|
1924
|
+
const HeroFoot = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1925
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1926
|
+
color: textColor !== null && textColor !== void 0 ? textColor : color,
|
|
1927
|
+
backgroundColor: bgColor,
|
|
1928
|
+
...props,
|
|
1929
|
+
});
|
|
1930
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('hero-foot', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1931
|
+
};
|
|
1932
|
+
Hero.Head = HeroHead;
|
|
1933
|
+
Hero.Body = HeroBody;
|
|
1934
|
+
Hero.Foot = HeroFoot;
|
|
1935
|
+
|
|
1936
|
+
const Level = ({ isMobile, className, children, ...props }) => {
|
|
1937
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1938
|
+
return (jsxRuntimeExports.jsx("nav", { className: classNames('level', bulmaHelperClasses, className, {
|
|
1939
|
+
'is-mobile': isMobile,
|
|
1940
|
+
}), ...rest, children: children }));
|
|
1941
|
+
};
|
|
1942
|
+
const LevelLeft = ({ className, children, ...props }) => {
|
|
1943
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1944
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('level-left', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1945
|
+
};
|
|
1946
|
+
const LevelRight = ({ className, children, ...props }) => {
|
|
1947
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1948
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('level-right', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1949
|
+
};
|
|
1950
|
+
const LevelItem = ({ as = 'div', hasTextCentered, className, children, href, target, rel, ...props }) => {
|
|
1951
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1952
|
+
const Tag = as;
|
|
1953
|
+
if (Tag === 'a') {
|
|
1954
|
+
return (jsxRuntimeExports.jsx("a", { className: classNames('level-item', bulmaHelperClasses, className, {
|
|
1955
|
+
'has-text-centered': hasTextCentered,
|
|
1956
|
+
}), href: href, target: target, rel: rel, ...rest, children: children }));
|
|
1957
|
+
}
|
|
1958
|
+
return (jsxRuntimeExports.jsx(Tag, { className: classNames('level-item', bulmaHelperClasses, className, {
|
|
1959
|
+
'has-text-centered': hasTextCentered,
|
|
1960
|
+
}), ...rest, children: children }));
|
|
1961
|
+
};
|
|
1962
|
+
Level.Left = LevelLeft;
|
|
1963
|
+
Level.Right = LevelRight;
|
|
1964
|
+
Level.Item = LevelItem;
|
|
1965
|
+
|
|
1966
|
+
const Media = ({ as = 'article', className, children, ...props }) => {
|
|
1967
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1968
|
+
const Tag = as;
|
|
1969
|
+
return (jsxRuntimeExports.jsx(Tag, { className: classNames('media', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1970
|
+
};
|
|
1971
|
+
const MediaLeft = ({ as = 'figure', className, children, ...props }) => {
|
|
1972
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1973
|
+
const Tag = as;
|
|
1974
|
+
return (jsxRuntimeExports.jsx(Tag, { className: classNames('media-left', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1975
|
+
};
|
|
1976
|
+
const MediaContent = ({ className, children, ...props }) => {
|
|
1977
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1978
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('media-content', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1979
|
+
};
|
|
1980
|
+
const MediaRight = ({ className, children, ...props }) => {
|
|
1981
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
1982
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('media-right', bulmaHelperClasses, className), ...rest, children: children }));
|
|
1983
|
+
};
|
|
1984
|
+
Media.Left = MediaLeft;
|
|
1985
|
+
Media.Content = MediaContent;
|
|
1986
|
+
Media.Right = MediaRight;
|
|
1987
|
+
|
|
1988
|
+
const Section = ({ size, className, children, ...props }) => {
|
|
1989
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
1990
|
+
const sectionClasses = classNames('section', className, bulmaHelperClasses, {
|
|
1991
|
+
[`is-${size}`]: size,
|
|
1992
|
+
});
|
|
1993
|
+
return (jsxRuntimeExports.jsx("section", { className: sectionClasses, ...rest, children: children }));
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
export { Block, Box, Breadcrumb, Button, Buttons, Card, Cell, Checkbox, Checkboxes, Column, Columns, 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, 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, SubTitle, TabItem, TabList, Table, Tabs, Tag, Tags, Tbody, Td, TextArea, Tfoot, Th, Thead, Title, Tr, __test_exports__, classNames, isBrowser, useBulmaClasses, 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 };
|
|
1997
|
+
//# sourceMappingURL=index.esm.js.map
|