@bolttech/atoms-section-header 0.21.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
5
|
var react = require('react');
|
|
8
6
|
var styled = require('styled-components');
|
|
9
7
|
var frontendFoundations = require('@bolttech/frontend-foundations');
|
|
10
8
|
var uiUtils = require('@bolttech/ui-utils');
|
|
11
9
|
|
|
12
|
-
function
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
11
|
|
|
14
|
-
var styled__default = /*#__PURE__*/
|
|
12
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
15
13
|
|
|
16
14
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
17
15
|
|
|
@@ -20,15 +18,16 @@ var check = function (it) {
|
|
|
20
18
|
};
|
|
21
19
|
|
|
22
20
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
23
|
-
var
|
|
21
|
+
var globalThis_1 =
|
|
24
22
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
25
23
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
26
24
|
check(typeof window == 'object' && window) ||
|
|
27
25
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
28
26
|
check(typeof self == 'object' && self) ||
|
|
29
27
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
28
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
30
29
|
// eslint-disable-next-line no-new-func -- fallback
|
|
31
|
-
(function () { return this; })() ||
|
|
30
|
+
(function () { return this; })() || Function('return this')();
|
|
32
31
|
|
|
33
32
|
var objectGetOwnPropertyDescriptor = {};
|
|
34
33
|
|
|
@@ -60,7 +59,7 @@ var functionBindNative = !fails$7(function () {
|
|
|
60
59
|
var NATIVE_BIND$1 = functionBindNative;
|
|
61
60
|
|
|
62
61
|
var call$5 = Function.prototype.call;
|
|
63
|
-
|
|
62
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
64
63
|
var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
|
|
65
64
|
return call$5.apply(call$5, arguments);
|
|
66
65
|
};
|
|
@@ -94,6 +93,7 @@ var NATIVE_BIND = functionBindNative;
|
|
|
94
93
|
|
|
95
94
|
var FunctionPrototype$1 = Function.prototype;
|
|
96
95
|
var call$4 = FunctionPrototype$1.call;
|
|
96
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
97
97
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
|
|
98
98
|
|
|
99
99
|
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
@@ -152,41 +152,25 @@ var toIndexedObject$3 = function (it) {
|
|
|
152
152
|
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
var documentAll$2 = typeof document == 'object' && document.all;
|
|
156
|
-
|
|
157
155
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
158
|
-
|
|
159
|
-
var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
|
|
160
|
-
|
|
161
|
-
var documentAll_1 = {
|
|
162
|
-
all: documentAll$2,
|
|
163
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
var $documentAll$1 = documentAll_1;
|
|
167
|
-
|
|
168
|
-
var documentAll$1 = $documentAll$1.all;
|
|
156
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
169
157
|
|
|
170
158
|
// `IsCallable` abstract operation
|
|
171
159
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
172
|
-
|
|
173
|
-
|
|
160
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
161
|
+
var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
162
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
174
163
|
} : function (argument) {
|
|
175
164
|
return typeof argument == 'function';
|
|
176
165
|
};
|
|
177
166
|
|
|
178
167
|
var isCallable$9 = isCallable$a;
|
|
179
|
-
var $documentAll = documentAll_1;
|
|
180
168
|
|
|
181
|
-
var
|
|
182
|
-
|
|
183
|
-
var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
184
|
-
return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
|
|
185
|
-
} : function (it) {
|
|
169
|
+
var isObject$4 = function (it) {
|
|
186
170
|
return typeof it == 'object' ? it !== null : isCallable$9(it);
|
|
187
171
|
};
|
|
188
172
|
|
|
189
|
-
var
|
|
173
|
+
var globalThis$b = globalThis_1;
|
|
190
174
|
var isCallable$8 = isCallable$a;
|
|
191
175
|
|
|
192
176
|
var aFunction = function (argument) {
|
|
@@ -194,20 +178,25 @@ var aFunction = function (argument) {
|
|
|
194
178
|
};
|
|
195
179
|
|
|
196
180
|
var getBuiltIn$2 = function (namespace, method) {
|
|
197
|
-
return arguments.length < 2 ? aFunction(
|
|
181
|
+
return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
|
|
198
182
|
};
|
|
199
183
|
|
|
200
184
|
var uncurryThis$7 = functionUncurryThis;
|
|
201
185
|
|
|
202
186
|
var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
|
|
203
187
|
|
|
204
|
-
var
|
|
188
|
+
var globalThis$a = globalThis_1;
|
|
189
|
+
|
|
190
|
+
var navigator = globalThis$a.navigator;
|
|
191
|
+
var userAgent$1 = navigator && navigator.userAgent;
|
|
205
192
|
|
|
206
|
-
var
|
|
207
|
-
var userAgent = engineUserAgent;
|
|
193
|
+
var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
|
|
208
194
|
|
|
209
|
-
var
|
|
210
|
-
var
|
|
195
|
+
var globalThis$9 = globalThis_1;
|
|
196
|
+
var userAgent = environmentUserAgent;
|
|
197
|
+
|
|
198
|
+
var process = globalThis$9.process;
|
|
199
|
+
var Deno = globalThis$9.Deno;
|
|
211
200
|
var versions = process && process.versions || Deno && Deno.version;
|
|
212
201
|
var v8 = versions && versions.v8;
|
|
213
202
|
var match, version;
|
|
@@ -229,14 +218,14 @@ if (!version && userAgent) {
|
|
|
229
218
|
}
|
|
230
219
|
}
|
|
231
220
|
|
|
232
|
-
var
|
|
221
|
+
var environmentV8Version = version;
|
|
233
222
|
|
|
234
223
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
235
|
-
var V8_VERSION =
|
|
224
|
+
var V8_VERSION = environmentV8Version;
|
|
236
225
|
var fails$5 = fails$9;
|
|
237
|
-
var
|
|
226
|
+
var globalThis$8 = globalThis_1;
|
|
238
227
|
|
|
239
|
-
var $String$3 =
|
|
228
|
+
var $String$3 = globalThis$8.String;
|
|
240
229
|
|
|
241
230
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
242
231
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
|
|
@@ -253,9 +242,9 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(func
|
|
|
253
242
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
254
243
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
255
244
|
|
|
256
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
257
|
-
|
|
258
|
-
|
|
245
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1 &&
|
|
246
|
+
!Symbol.sham &&
|
|
247
|
+
typeof Symbol.iterator == 'symbol';
|
|
259
248
|
|
|
260
249
|
var getBuiltIn$1 = getBuiltIn$2;
|
|
261
250
|
var isCallable$7 = isCallable$a;
|
|
@@ -304,7 +293,7 @@ var getMethod$1 = function (V, P) {
|
|
|
304
293
|
|
|
305
294
|
var call$3 = functionCall;
|
|
306
295
|
var isCallable$5 = isCallable$a;
|
|
307
|
-
var isObject$
|
|
296
|
+
var isObject$3 = isObject$4;
|
|
308
297
|
|
|
309
298
|
var $TypeError$3 = TypeError;
|
|
310
299
|
|
|
@@ -312,47 +301,49 @@ var $TypeError$3 = TypeError;
|
|
|
312
301
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
313
302
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
314
303
|
var fn, val;
|
|
315
|
-
if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$
|
|
316
|
-
if (isCallable$5(fn = input.valueOf) && !isObject$
|
|
317
|
-
if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$
|
|
304
|
+
if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
|
|
305
|
+
if (isCallable$5(fn = input.valueOf) && !isObject$3(val = call$3(fn, input))) return val;
|
|
306
|
+
if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
|
|
318
307
|
throw new $TypeError$3("Can't convert object to primitive value");
|
|
319
308
|
};
|
|
320
309
|
|
|
321
|
-
var
|
|
310
|
+
var sharedStore = {exports: {}};
|
|
322
311
|
|
|
323
|
-
var
|
|
312
|
+
var globalThis$7 = globalThis_1;
|
|
324
313
|
|
|
325
314
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
326
315
|
var defineProperty$2 = Object.defineProperty;
|
|
327
316
|
|
|
328
317
|
var defineGlobalProperty$3 = function (key, value) {
|
|
329
318
|
try {
|
|
330
|
-
defineProperty$2(
|
|
319
|
+
defineProperty$2(globalThis$7, key, { value: value, configurable: true, writable: true });
|
|
331
320
|
} catch (error) {
|
|
332
|
-
|
|
321
|
+
globalThis$7[key] = value;
|
|
333
322
|
} return value;
|
|
334
323
|
};
|
|
335
324
|
|
|
336
|
-
var
|
|
325
|
+
var globalThis$6 = globalThis_1;
|
|
337
326
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
338
327
|
|
|
339
328
|
var SHARED = '__core-js_shared__';
|
|
340
|
-
var store$3 =
|
|
341
|
-
|
|
342
|
-
var sharedStore = store$3;
|
|
329
|
+
var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
343
330
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
(shared$3.exports = function (key, value) {
|
|
347
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
348
|
-
})('versions', []).push({
|
|
349
|
-
version: '3.33.2',
|
|
331
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
332
|
+
version: '3.48.0',
|
|
350
333
|
mode: 'global',
|
|
351
|
-
copyright: '©
|
|
352
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
334
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
335
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
|
|
353
336
|
source: 'https://github.com/zloirock/core-js'
|
|
354
337
|
});
|
|
355
338
|
|
|
339
|
+
var sharedStoreExports = sharedStore.exports;
|
|
340
|
+
|
|
341
|
+
var store$2 = sharedStoreExports;
|
|
342
|
+
|
|
343
|
+
var shared$3 = function (key, value) {
|
|
344
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
345
|
+
};
|
|
346
|
+
|
|
356
347
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
357
348
|
|
|
358
349
|
var $Object = Object;
|
|
@@ -379,20 +370,20 @@ var uncurryThis$5 = functionUncurryThis;
|
|
|
379
370
|
|
|
380
371
|
var id = 0;
|
|
381
372
|
var postfix = Math.random();
|
|
382
|
-
var toString = uncurryThis$5(1.
|
|
373
|
+
var toString = uncurryThis$5(1.1.toString);
|
|
383
374
|
|
|
384
375
|
var uid$2 = function (key) {
|
|
385
376
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
386
377
|
};
|
|
387
378
|
|
|
388
|
-
var
|
|
389
|
-
var shared$2 = shared$3
|
|
379
|
+
var globalThis$5 = globalThis_1;
|
|
380
|
+
var shared$2 = shared$3;
|
|
390
381
|
var hasOwn$6 = hasOwnProperty_1;
|
|
391
382
|
var uid$1 = uid$2;
|
|
392
383
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
393
384
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
394
385
|
|
|
395
|
-
var Symbol$1 =
|
|
386
|
+
var Symbol$1 = globalThis$5.Symbol;
|
|
396
387
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
397
388
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
398
389
|
|
|
@@ -405,7 +396,7 @@ var wellKnownSymbol$1 = function (name) {
|
|
|
405
396
|
};
|
|
406
397
|
|
|
407
398
|
var call$2 = functionCall;
|
|
408
|
-
var isObject$
|
|
399
|
+
var isObject$2 = isObject$4;
|
|
409
400
|
var isSymbol$1 = isSymbol$2;
|
|
410
401
|
var getMethod = getMethod$1;
|
|
411
402
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
@@ -417,13 +408,13 @@ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
|
417
408
|
// `ToPrimitive` abstract operation
|
|
418
409
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
419
410
|
var toPrimitive$1 = function (input, pref) {
|
|
420
|
-
if (!isObject$
|
|
411
|
+
if (!isObject$2(input) || isSymbol$1(input)) return input;
|
|
421
412
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
422
413
|
var result;
|
|
423
414
|
if (exoticToPrim) {
|
|
424
415
|
if (pref === undefined) pref = 'default';
|
|
425
416
|
result = call$2(exoticToPrim, input, pref);
|
|
426
|
-
if (!isObject$
|
|
417
|
+
if (!isObject$2(result) || isSymbol$1(result)) return result;
|
|
427
418
|
throw new $TypeError$2("Can't convert object to primitive value");
|
|
428
419
|
}
|
|
429
420
|
if (pref === undefined) pref = 'number';
|
|
@@ -440,12 +431,12 @@ var toPropertyKey$2 = function (argument) {
|
|
|
440
431
|
return isSymbol(key) ? key : key + '';
|
|
441
432
|
};
|
|
442
433
|
|
|
443
|
-
var
|
|
444
|
-
var isObject$
|
|
434
|
+
var globalThis$4 = globalThis_1;
|
|
435
|
+
var isObject$1 = isObject$4;
|
|
445
436
|
|
|
446
|
-
var document$1 =
|
|
437
|
+
var document$1 = globalThis$4.document;
|
|
447
438
|
// typeof document.createElement is 'object' in old IE
|
|
448
|
-
var EXISTS$1 = isObject$
|
|
439
|
+
var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
|
|
449
440
|
|
|
450
441
|
var documentCreateElement = function (it) {
|
|
451
442
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
@@ -501,14 +492,14 @@ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
|
|
|
501
492
|
}).prototype !== 42;
|
|
502
493
|
});
|
|
503
494
|
|
|
504
|
-
var isObject
|
|
495
|
+
var isObject = isObject$4;
|
|
505
496
|
|
|
506
497
|
var $String$1 = String;
|
|
507
498
|
var $TypeError$1 = TypeError;
|
|
508
499
|
|
|
509
500
|
// `Assert: Type(argument) is Object`
|
|
510
501
|
var anObject$2 = function (argument) {
|
|
511
|
-
if (isObject
|
|
502
|
+
if (isObject(argument)) return argument;
|
|
512
503
|
throw new $TypeError$1($String$1(argument) + ' is not an object');
|
|
513
504
|
};
|
|
514
505
|
|
|
@@ -577,19 +568,15 @@ var FunctionPrototype = Function.prototype;
|
|
|
577
568
|
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
578
569
|
|
|
579
570
|
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
580
|
-
// additional protection from minified / mangled / dropped function names
|
|
581
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
582
571
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
583
572
|
|
|
584
573
|
var functionName = {
|
|
585
|
-
EXISTS: EXISTS,
|
|
586
|
-
PROPER: PROPER,
|
|
587
574
|
CONFIGURABLE: CONFIGURABLE
|
|
588
575
|
};
|
|
589
576
|
|
|
590
577
|
var uncurryThis$4 = functionUncurryThis;
|
|
591
578
|
var isCallable$4 = isCallable$a;
|
|
592
|
-
var store$1 =
|
|
579
|
+
var store$1 = sharedStoreExports;
|
|
593
580
|
|
|
594
581
|
var functionToString = uncurryThis$4(Function.toString);
|
|
595
582
|
|
|
@@ -602,14 +589,14 @@ if (!isCallable$4(store$1.inspectSource)) {
|
|
|
602
589
|
|
|
603
590
|
var inspectSource$1 = store$1.inspectSource;
|
|
604
591
|
|
|
605
|
-
var
|
|
592
|
+
var globalThis$3 = globalThis_1;
|
|
606
593
|
var isCallable$3 = isCallable$a;
|
|
607
594
|
|
|
608
|
-
var WeakMap$1 =
|
|
595
|
+
var WeakMap$1 = globalThis$3.WeakMap;
|
|
609
596
|
|
|
610
597
|
var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
611
598
|
|
|
612
|
-
var shared$1 = shared$3
|
|
599
|
+
var shared$1 = shared$3;
|
|
613
600
|
var uid = uid$2;
|
|
614
601
|
|
|
615
602
|
var keys = shared$1('keys');
|
|
@@ -621,32 +608,22 @@ var sharedKey$1 = function (key) {
|
|
|
621
608
|
var hiddenKeys$3 = {};
|
|
622
609
|
|
|
623
610
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
624
|
-
var
|
|
625
|
-
var isObject = isObject$5;
|
|
611
|
+
var globalThis$2 = globalThis_1;
|
|
626
612
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
627
613
|
var hasOwn$3 = hasOwnProperty_1;
|
|
628
|
-
var shared =
|
|
614
|
+
var shared = sharedStoreExports;
|
|
629
615
|
var sharedKey = sharedKey$1;
|
|
630
616
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
631
617
|
|
|
632
618
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
633
|
-
var TypeError$1 =
|
|
634
|
-
var WeakMap =
|
|
619
|
+
var TypeError$1 = globalThis$2.TypeError;
|
|
620
|
+
var WeakMap = globalThis$2.WeakMap;
|
|
635
621
|
var set, get, has;
|
|
636
622
|
|
|
637
623
|
var enforce = function (it) {
|
|
638
624
|
return has(it) ? get(it) : set(it, {});
|
|
639
625
|
};
|
|
640
626
|
|
|
641
|
-
var getterFor = function (TYPE) {
|
|
642
|
-
return function (it) {
|
|
643
|
-
var state;
|
|
644
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
645
|
-
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
646
|
-
} return state;
|
|
647
|
-
};
|
|
648
|
-
};
|
|
649
|
-
|
|
650
627
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
651
628
|
var store = shared.state || (shared.state = new WeakMap());
|
|
652
629
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
@@ -684,12 +661,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
684
661
|
}
|
|
685
662
|
|
|
686
663
|
var internalState = {
|
|
687
|
-
set: set,
|
|
688
664
|
get: get,
|
|
689
|
-
|
|
690
|
-
enforce: enforce,
|
|
691
|
-
getterFor: getterFor
|
|
692
|
-
};
|
|
665
|
+
enforce: enforce};
|
|
693
666
|
|
|
694
667
|
var uncurryThis$3 = functionUncurryThis;
|
|
695
668
|
var fails$2 = fails$9;
|
|
@@ -717,7 +690,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
717
690
|
|
|
718
691
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
719
692
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
720
|
-
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)
|
|
693
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
721
694
|
}
|
|
722
695
|
if (options && options.getter) name = 'get ' + name;
|
|
723
696
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -746,9 +719,11 @@ Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
|
746
719
|
return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
|
|
747
720
|
}, 'toString');
|
|
748
721
|
|
|
722
|
+
var makeBuiltInExports = makeBuiltIn$2.exports;
|
|
723
|
+
|
|
749
724
|
var isCallable$1 = isCallable$a;
|
|
750
725
|
var definePropertyModule$1 = objectDefineProperty;
|
|
751
|
-
var makeBuiltIn =
|
|
726
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
752
727
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
753
728
|
|
|
754
729
|
var defineBuiltIn$1 = function (O, key, value, options) {
|
|
@@ -817,7 +792,8 @@ var min = Math.min;
|
|
|
817
792
|
// `ToLength` abstract operation
|
|
818
793
|
// https://tc39.es/ecma262/#sec-tolength
|
|
819
794
|
var toLength$1 = function (argument) {
|
|
820
|
-
|
|
795
|
+
var len = toIntegerOrInfinity(argument);
|
|
796
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
821
797
|
};
|
|
822
798
|
|
|
823
799
|
var toLength = toLength$1;
|
|
@@ -837,6 +813,7 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
837
813
|
return function ($this, el, fromIndex) {
|
|
838
814
|
var O = toIndexedObject$1($this);
|
|
839
815
|
var length = lengthOfArrayLike(O);
|
|
816
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
840
817
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
841
818
|
var value;
|
|
842
819
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -853,9 +830,6 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
853
830
|
};
|
|
854
831
|
|
|
855
832
|
var arrayIncludes = {
|
|
856
|
-
// `Array.prototype.includes` method
|
|
857
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
858
|
-
includes: createMethod(true),
|
|
859
833
|
// `Array.prototype.indexOf` method
|
|
860
834
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
861
835
|
indexOf: createMethod(false)
|
|
@@ -965,7 +939,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
965
939
|
|
|
966
940
|
var isForced_1 = isForced$1;
|
|
967
941
|
|
|
968
|
-
var
|
|
942
|
+
var globalThis$1 = globalThis_1;
|
|
969
943
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
970
944
|
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
971
945
|
var defineBuiltIn = defineBuiltIn$1;
|
|
@@ -994,11 +968,11 @@ var _export = function (options, source) {
|
|
|
994
968
|
var STATIC = options.stat;
|
|
995
969
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
996
970
|
if (GLOBAL) {
|
|
997
|
-
target =
|
|
971
|
+
target = globalThis$1;
|
|
998
972
|
} else if (STATIC) {
|
|
999
|
-
target =
|
|
973
|
+
target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1000
974
|
} else {
|
|
1001
|
-
target =
|
|
975
|
+
target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
|
|
1002
976
|
}
|
|
1003
977
|
if (target) for (key in source) {
|
|
1004
978
|
sourceProperty = source[key];
|
|
@@ -1066,6 +1040,7 @@ var objectAssign = !$assign || fails(function () {
|
|
|
1066
1040
|
var symbol = Symbol('assign detection');
|
|
1067
1041
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1068
1042
|
A[symbol] = 7;
|
|
1043
|
+
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1069
1044
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1070
1045
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1071
1046
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
@@ -1111,6 +1086,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1111
1086
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1112
1087
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1113
1088
|
***************************************************************************** */
|
|
1089
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
1090
|
+
|
|
1114
1091
|
|
|
1115
1092
|
function __rest(s, e) {
|
|
1116
1093
|
var t = {};
|
|
@@ -1129,7 +1106,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1129
1106
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1130
1107
|
};
|
|
1131
1108
|
|
|
1132
|
-
const SectionHeaderContainer = /*#__PURE__*/styled__default
|
|
1109
|
+
const SectionHeaderContainer = /*#__PURE__*/styled__default.default(frontendFoundations.Row).withConfig({
|
|
1133
1110
|
displayName: "atoms-section-headerstyle__SectionHeaderContainer",
|
|
1134
1111
|
componentId: "sc-xtf6u-0"
|
|
1135
1112
|
})(["justify-content:space-between;flex-wrap:nowrap;box-sizing:border-box;column-gap:0;height:150px;background-color:", ";padding:", ";"], ({
|
|
@@ -1137,7 +1114,7 @@ const SectionHeaderContainer = /*#__PURE__*/styled__default["default"](frontendF
|
|
|
1137
1114
|
}) => theme.components.sectionHeader.container.color.default, ({
|
|
1138
1115
|
theme
|
|
1139
1116
|
}) => `0 ${theme.components.sectionHeader.safeZone}`);
|
|
1140
|
-
const SectionHeaderLabel = /*#__PURE__*/styled__default
|
|
1117
|
+
const SectionHeaderLabel = /*#__PURE__*/styled__default.default(frontendFoundations.Typography).withConfig({
|
|
1141
1118
|
displayName: "atoms-section-headerstyle__SectionHeaderLabel",
|
|
1142
1119
|
componentId: "sc-xtf6u-1"
|
|
1143
1120
|
})(["flex:1 1 66%;margin:auto 0;margin-right:", ";color:", ";@media only screen and (max-width:413px){flex:1 1 auto;margin-right:", ";}"], ({
|
|
@@ -1147,23 +1124,23 @@ const SectionHeaderLabel = /*#__PURE__*/styled__default["default"](frontendFound
|
|
|
1147
1124
|
}) => theme.components.sectionHeader.text.color.default, ({
|
|
1148
1125
|
theme
|
|
1149
1126
|
}) => `calc(${theme.components.sectionHeader.gap} + 15%)`);
|
|
1150
|
-
const Background = /*#__PURE__*/styled__default
|
|
1127
|
+
const Background = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
1151
1128
|
displayName: "atoms-section-headerstyle__Background",
|
|
1152
1129
|
componentId: "sc-xtf6u-2"
|
|
1153
1130
|
})(["display:flex;align-items:flex-end;z-index:0;"]);
|
|
1154
|
-
const BackgroundImage = /*#__PURE__*/styled__default
|
|
1131
|
+
const BackgroundImage = /*#__PURE__*/styled__default.default.img.withConfig({
|
|
1155
1132
|
displayName: "atoms-section-headerstyle__BackgroundImage",
|
|
1156
1133
|
componentId: "sc-xtf6u-3"
|
|
1157
1134
|
})(["display:flex;align-items:flex-end;z-index:0;max-height:150px;"]);
|
|
1158
|
-
const Icon = /*#__PURE__*/styled__default
|
|
1135
|
+
const Icon = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
1159
1136
|
displayName: "atoms-section-headerstyle__Icon",
|
|
1160
1137
|
componentId: "sc-xtf6u-4"
|
|
1161
1138
|
})(["position:absolute;display:flex;bottom:0;z-index:1;transform:translate(-50%);"]);
|
|
1162
|
-
const IconImage = /*#__PURE__*/styled__default
|
|
1139
|
+
const IconImage = /*#__PURE__*/styled__default.default.img.withConfig({
|
|
1163
1140
|
displayName: "atoms-section-headerstyle__IconImage",
|
|
1164
1141
|
componentId: "sc-xtf6u-5"
|
|
1165
1142
|
})(["position:absolute;display:flex;bottom:0;z-index:1;transform:translate(-50%);max-height:150px;width:auto;"]);
|
|
1166
|
-
const IlustrationContainer = /*#__PURE__*/styled__default
|
|
1143
|
+
const IlustrationContainer = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
1167
1144
|
displayName: "atoms-section-headerstyle__IlustrationContainer",
|
|
1168
1145
|
componentId: "sc-xtf6u-6"
|
|
1169
1146
|
})(["display:flex;position:relative;justify-content:flex-end;align-items:flex-end;@media only screen and (max-width:1431px){width:60%;height:100%;svg{max-width:100%;max-height:100%;height:100%;}}"]);
|
|
@@ -1178,10 +1155,12 @@ const SectionHeader = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
|
1178
1155
|
props = __rest(_a, ["dataTestId", "title", "icon", "background"]);
|
|
1179
1156
|
const renderIcon = () => {
|
|
1180
1157
|
if (icon && typeof icon === 'string') return jsxRuntime.jsx(IconImage, {
|
|
1158
|
+
"aria-hidden": "true",
|
|
1181
1159
|
"data-testid": `${dataTestId}-iconimg`,
|
|
1182
1160
|
src: icon
|
|
1183
1161
|
});
|
|
1184
1162
|
if (icon && typeof icon !== 'string') return jsxRuntime.jsx(Icon, {
|
|
1163
|
+
"aria-hidden": "true",
|
|
1185
1164
|
"data-testid": `${dataTestId}-icon`,
|
|
1186
1165
|
children: icon
|
|
1187
1166
|
});
|
|
@@ -1189,10 +1168,12 @@ const SectionHeader = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
|
1189
1168
|
};
|
|
1190
1169
|
const renderBackground = () => {
|
|
1191
1170
|
if (background && typeof background === 'string') return jsxRuntime.jsx(BackgroundImage, {
|
|
1171
|
+
role: "presentation",
|
|
1192
1172
|
"data-testid": `${dataTestId}-backgroundimg`,
|
|
1193
1173
|
src: background
|
|
1194
1174
|
});
|
|
1195
1175
|
if (background && typeof background !== 'string') return jsxRuntime.jsx(Background, {
|
|
1176
|
+
role: "presentation",
|
|
1196
1177
|
"data-testid": `${dataTestId}-background`,
|
|
1197
1178
|
children: background
|
|
1198
1179
|
});
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/atoms-section-header",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "./index.cjs",
|
|
5
|
-
"type": "commonjs",
|
|
6
|
-
"types": "./src/index.d.ts",
|
|
3
|
+
"version": "0.24.0",
|
|
7
4
|
"dependencies": {
|
|
8
|
-
"
|
|
9
|
-
"@bolttech/frontend-foundations": "0.
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"styled-components": "6.1.1"
|
|
5
|
+
"styled-components": "6.1.1",
|
|
6
|
+
"@bolttech/frontend-foundations": "0.12.1",
|
|
7
|
+
"react": "19.1.2",
|
|
8
|
+
"@bolttech/ui-utils": "0.6.4"
|
|
13
9
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
10
|
+
"main": "./index.cjs.js",
|
|
11
|
+
"type": "commonjs",
|
|
12
|
+
"types": "./index.d.ts"
|
|
13
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
dataTestId?: string | undefined;
|
|
1
|
+
export declare const SectionHeader: import("react").ForwardRefExoticComponent<import("@bolttech/ui-utils").DefaultProps & {
|
|
2
|
+
dataTestId?: string;
|
|
4
3
|
title: string;
|
|
5
|
-
icon?: string | React.ReactElement<SVGElement
|
|
6
|
-
background?: string | React.ReactElement<SVGElement
|
|
7
|
-
} &
|
|
4
|
+
icon?: string | React.ReactElement<SVGElement>;
|
|
5
|
+
background?: string | React.ReactElement<SVGElement>;
|
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
7
|
export default SectionHeader;
|