@silas-test/ob-atoms-divider 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/index.cjs.css +64 -0
- package/index.cjs.js +1132 -0
- package/index.d.ts +1 -0
- package/package.json +10 -0
- package/src/index.d.ts +1 -0
- package/src/lib/divider.d.ts +3 -0
- package/src/lib/divider.interface.d.ts +20 -0
- package/src/lib/divider.stories.d.ts +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Bolttech Frontend UI Library
|
|
2
|
+
|
|
3
|
+
## Create a new Library (Local Only):
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx nx g @nx/react:lib ${lib_name}
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Create a new Publishable Library:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx nx g @nx/react:lib atoms/COMPONENT_NAME --publishable --importPath @silas-test/atoms-COMPONENT_NAME
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Create a new component inside library:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx nx g @nx/react:component ${component_name} --project ${lib_name}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Add storybook to lib:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx nx g @nx/react:storybook-configuration atoms-COMPONENT_NAME
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Run Storybook
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx nx run storybook:storybook
|
|
31
|
+
```
|
package/index.cjs.css
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.ob-divider {
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: var(--divider-mobile-padding-vertical) var(--divider-mobile-padding-horizontal);
|
|
9
|
+
&[data-havetext="true"] {
|
|
10
|
+
gap: var(--divider-mobile-gap);
|
|
11
|
+
}
|
|
12
|
+
& > hr {
|
|
13
|
+
background-color: var(--divider-border-default);
|
|
14
|
+
border: 0;
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
&:not(&[data-variant='vertical']) {
|
|
18
|
+
& > hr {
|
|
19
|
+
height: 1px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&[data-variant='vertical'] {
|
|
24
|
+
width: auto;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
height: inherit;
|
|
27
|
+
& > hr {
|
|
28
|
+
height: 100%;
|
|
29
|
+
width: 1px;
|
|
30
|
+
flex: 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
@media only screen and (min-width: 768px) {
|
|
34
|
+
padding: var(--divider-desktop-padding-vertical) var(--divider-desktop-padding-horizontal);
|
|
35
|
+
&[data-havetext="true"] {
|
|
36
|
+
gap: var(--divider-desktop-gap);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
&[data-withoutpadding="true"] {
|
|
40
|
+
padding: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.ob-divider > span {
|
|
44
|
+
text-wrap: nowrap;
|
|
45
|
+
color: var(--divider-text-default);
|
|
46
|
+
font-size: var(--divider-mobile-text-fontsize);
|
|
47
|
+
font-weight: var(--divider-mobile-text-fontweight);
|
|
48
|
+
letter-spacing: var(--divider-mobile-text-letterspacing);
|
|
49
|
+
line-height: var(--divider-mobile-text-lineheight);
|
|
50
|
+
-webkit-text-decoration: var(--divider-mobile-text-textdecoration);
|
|
51
|
+
text-decoration: var(--divider-mobile-text-textdecoration);
|
|
52
|
+
text-indent: var(--divider-mobile-text-paragraphspacing);
|
|
53
|
+
text-transform: var(--divider-mobile-text-textcase);
|
|
54
|
+
@media only screen and (min-width: 768px) {
|
|
55
|
+
font-size: var(--divider-desktop-text-fontsize);
|
|
56
|
+
font-weight: var(--divider-desktop-text-fontweight);
|
|
57
|
+
letter-spacing: var(--divider-desktop-text-letterspacing);
|
|
58
|
+
line-height: var(--divider-desktop-text-lineheight);
|
|
59
|
+
-webkit-text-decoration: var(--divider-desktop-text-textdecoration);
|
|
60
|
+
text-decoration: var(--divider-desktop-text-textdecoration);
|
|
61
|
+
text-indent: var(--divider-desktop-text-paragraphspacing);
|
|
62
|
+
text-transform: var(--divider-desktop-text-textcase);
|
|
63
|
+
}
|
|
64
|
+
}
|
package/index.cjs.js
ADDED
|
@@ -0,0 +1,1132 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var uiUtils = require('@silas-test/ui-utils');
|
|
6
|
+
|
|
7
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
|
+
|
|
9
|
+
var check = function (it) {
|
|
10
|
+
return it && it.Math === Math && it;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
14
|
+
var globalThis_1 =
|
|
15
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
16
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
17
|
+
check(typeof window == 'object' && window) ||
|
|
18
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
19
|
+
check(typeof self == 'object' && self) ||
|
|
20
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
21
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
23
|
+
(function () { return this; })() || Function('return this')();
|
|
24
|
+
|
|
25
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
26
|
+
|
|
27
|
+
var fails$9 = function (exec) {
|
|
28
|
+
try {
|
|
29
|
+
return !!exec();
|
|
30
|
+
} catch (error) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var fails$8 = fails$9;
|
|
36
|
+
|
|
37
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
38
|
+
var descriptors = !fails$8(function () {
|
|
39
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
40
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var fails$7 = fails$9;
|
|
44
|
+
|
|
45
|
+
var functionBindNative = !fails$7(function () {
|
|
46
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
47
|
+
var test = (function () { /* empty */ }).bind();
|
|
48
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
49
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
53
|
+
|
|
54
|
+
var call$5 = Function.prototype.call;
|
|
55
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
56
|
+
var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
|
|
57
|
+
return call$5.apply(call$5, arguments);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var objectPropertyIsEnumerable = {};
|
|
61
|
+
|
|
62
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
63
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
64
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
65
|
+
|
|
66
|
+
// Nashorn ~ JDK8 bug
|
|
67
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
68
|
+
|
|
69
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
70
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
71
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
72
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
73
|
+
return !!descriptor && descriptor.enumerable;
|
|
74
|
+
} : $propertyIsEnumerable;
|
|
75
|
+
|
|
76
|
+
var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
77
|
+
return {
|
|
78
|
+
enumerable: !(bitmap & 1),
|
|
79
|
+
configurable: !(bitmap & 2),
|
|
80
|
+
writable: !(bitmap & 4),
|
|
81
|
+
value: value
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
var NATIVE_BIND = functionBindNative;
|
|
86
|
+
|
|
87
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
88
|
+
var call$4 = FunctionPrototype$1.call;
|
|
89
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
90
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
|
|
91
|
+
|
|
92
|
+
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
93
|
+
return function () {
|
|
94
|
+
return call$4.apply(fn, arguments);
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
99
|
+
|
|
100
|
+
var toString$1 = uncurryThis$9({}.toString);
|
|
101
|
+
var stringSlice$1 = uncurryThis$9(''.slice);
|
|
102
|
+
|
|
103
|
+
var classofRaw = function (it) {
|
|
104
|
+
return stringSlice$1(toString$1(it), 8, -1);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
108
|
+
var fails$6 = fails$9;
|
|
109
|
+
var classof = classofRaw;
|
|
110
|
+
|
|
111
|
+
var $Object$2 = Object;
|
|
112
|
+
var split = uncurryThis$8(''.split);
|
|
113
|
+
|
|
114
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
115
|
+
var indexedObject = fails$6(function () {
|
|
116
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
117
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
118
|
+
return !$Object$2('z').propertyIsEnumerable(0);
|
|
119
|
+
}) ? function (it) {
|
|
120
|
+
return classof(it) === 'String' ? split(it, '') : $Object$2(it);
|
|
121
|
+
} : $Object$2;
|
|
122
|
+
|
|
123
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
124
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
125
|
+
var isNullOrUndefined$2 = function (it) {
|
|
126
|
+
return it === null || it === undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
130
|
+
|
|
131
|
+
var $TypeError$5 = TypeError;
|
|
132
|
+
|
|
133
|
+
// `RequireObjectCoercible` abstract operation
|
|
134
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
135
|
+
var requireObjectCoercible$2 = function (it) {
|
|
136
|
+
if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
|
|
137
|
+
return it;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
141
|
+
var IndexedObject$1 = indexedObject;
|
|
142
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
143
|
+
|
|
144
|
+
var toIndexedObject$3 = function (it) {
|
|
145
|
+
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
149
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
150
|
+
|
|
151
|
+
// `IsCallable` abstract operation
|
|
152
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
153
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
154
|
+
var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
155
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
156
|
+
} : function (argument) {
|
|
157
|
+
return typeof argument == 'function';
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
var isCallable$9 = isCallable$a;
|
|
161
|
+
|
|
162
|
+
var isObject$4 = function (it) {
|
|
163
|
+
return typeof it == 'object' ? it !== null : isCallable$9(it);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
var globalThis$b = globalThis_1;
|
|
167
|
+
var isCallable$8 = isCallable$a;
|
|
168
|
+
|
|
169
|
+
var aFunction = function (argument) {
|
|
170
|
+
return isCallable$8(argument) ? argument : undefined;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var getBuiltIn$2 = function (namespace, method) {
|
|
174
|
+
return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
178
|
+
|
|
179
|
+
var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
|
|
180
|
+
|
|
181
|
+
var globalThis$a = globalThis_1;
|
|
182
|
+
|
|
183
|
+
var navigator = globalThis$a.navigator;
|
|
184
|
+
var userAgent$1 = navigator && navigator.userAgent;
|
|
185
|
+
|
|
186
|
+
var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
|
|
187
|
+
|
|
188
|
+
var globalThis$9 = globalThis_1;
|
|
189
|
+
var userAgent = environmentUserAgent;
|
|
190
|
+
|
|
191
|
+
var process = globalThis$9.process;
|
|
192
|
+
var Deno = globalThis$9.Deno;
|
|
193
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
194
|
+
var v8 = versions && versions.v8;
|
|
195
|
+
var match, version;
|
|
196
|
+
|
|
197
|
+
if (v8) {
|
|
198
|
+
match = v8.split('.');
|
|
199
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
200
|
+
// but their correct versions are not interesting for us
|
|
201
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
205
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
206
|
+
if (!version && userAgent) {
|
|
207
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
208
|
+
if (!match || match[1] >= 74) {
|
|
209
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
210
|
+
if (match) version = +match[1];
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
var environmentV8Version = version;
|
|
215
|
+
|
|
216
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
217
|
+
var V8_VERSION = environmentV8Version;
|
|
218
|
+
var fails$5 = fails$9;
|
|
219
|
+
var globalThis$8 = globalThis_1;
|
|
220
|
+
|
|
221
|
+
var $String$3 = globalThis$8.String;
|
|
222
|
+
|
|
223
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
224
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
|
|
225
|
+
var symbol = Symbol('symbol detection');
|
|
226
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
227
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
228
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
229
|
+
// of course, fail.
|
|
230
|
+
return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
231
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
232
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
236
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
237
|
+
|
|
238
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1 &&
|
|
239
|
+
!Symbol.sham &&
|
|
240
|
+
typeof Symbol.iterator == 'symbol';
|
|
241
|
+
|
|
242
|
+
var getBuiltIn$1 = getBuiltIn$2;
|
|
243
|
+
var isCallable$7 = isCallable$a;
|
|
244
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
245
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
246
|
+
|
|
247
|
+
var $Object$1 = Object;
|
|
248
|
+
|
|
249
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
250
|
+
return typeof it == 'symbol';
|
|
251
|
+
} : function (it) {
|
|
252
|
+
var $Symbol = getBuiltIn$1('Symbol');
|
|
253
|
+
return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
var $String$2 = String;
|
|
257
|
+
|
|
258
|
+
var tryToString$1 = function (argument) {
|
|
259
|
+
try {
|
|
260
|
+
return $String$2(argument);
|
|
261
|
+
} catch (error) {
|
|
262
|
+
return 'Object';
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
var isCallable$6 = isCallable$a;
|
|
267
|
+
var tryToString = tryToString$1;
|
|
268
|
+
|
|
269
|
+
var $TypeError$4 = TypeError;
|
|
270
|
+
|
|
271
|
+
// `Assert: IsCallable(argument) is true`
|
|
272
|
+
var aCallable$1 = function (argument) {
|
|
273
|
+
if (isCallable$6(argument)) return argument;
|
|
274
|
+
throw new $TypeError$4(tryToString(argument) + ' is not a function');
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
var aCallable = aCallable$1;
|
|
278
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
279
|
+
|
|
280
|
+
// `GetMethod` abstract operation
|
|
281
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
282
|
+
var getMethod$1 = function (V, P) {
|
|
283
|
+
var func = V[P];
|
|
284
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
var call$3 = functionCall;
|
|
288
|
+
var isCallable$5 = isCallable$a;
|
|
289
|
+
var isObject$3 = isObject$4;
|
|
290
|
+
|
|
291
|
+
var $TypeError$3 = TypeError;
|
|
292
|
+
|
|
293
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
294
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
295
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
296
|
+
var fn, val;
|
|
297
|
+
if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
|
|
298
|
+
if (isCallable$5(fn = input.valueOf) && !isObject$3(val = call$3(fn, input))) return val;
|
|
299
|
+
if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
|
|
300
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
var sharedStore = {exports: {}};
|
|
304
|
+
|
|
305
|
+
var globalThis$7 = globalThis_1;
|
|
306
|
+
|
|
307
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
308
|
+
var defineProperty$2 = Object.defineProperty;
|
|
309
|
+
|
|
310
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
311
|
+
try {
|
|
312
|
+
defineProperty$2(globalThis$7, key, { value: value, configurable: true, writable: true });
|
|
313
|
+
} catch (error) {
|
|
314
|
+
globalThis$7[key] = value;
|
|
315
|
+
} return value;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
var globalThis$6 = globalThis_1;
|
|
319
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
320
|
+
|
|
321
|
+
var SHARED = '__core-js_shared__';
|
|
322
|
+
var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
323
|
+
|
|
324
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
325
|
+
version: '3.48.0',
|
|
326
|
+
mode: 'global',
|
|
327
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
328
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
|
|
329
|
+
source: 'https://github.com/zloirock/core-js'
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
var sharedStoreExports = sharedStore.exports;
|
|
333
|
+
|
|
334
|
+
var store$2 = sharedStoreExports;
|
|
335
|
+
|
|
336
|
+
var shared$3 = function (key, value) {
|
|
337
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
341
|
+
|
|
342
|
+
var $Object = Object;
|
|
343
|
+
|
|
344
|
+
// `ToObject` abstract operation
|
|
345
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
346
|
+
var toObject$2 = function (argument) {
|
|
347
|
+
return $Object(requireObjectCoercible(argument));
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
351
|
+
var toObject$1 = toObject$2;
|
|
352
|
+
|
|
353
|
+
var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
|
|
354
|
+
|
|
355
|
+
// `HasOwnProperty` abstract operation
|
|
356
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
357
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
358
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
359
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
363
|
+
|
|
364
|
+
var id = 0;
|
|
365
|
+
var postfix = Math.random();
|
|
366
|
+
var toString = uncurryThis$5(1.1.toString);
|
|
367
|
+
|
|
368
|
+
var uid$2 = function (key) {
|
|
369
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
var globalThis$5 = globalThis_1;
|
|
373
|
+
var shared$2 = shared$3;
|
|
374
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
375
|
+
var uid$1 = uid$2;
|
|
376
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
377
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
378
|
+
|
|
379
|
+
var Symbol$1 = globalThis$5.Symbol;
|
|
380
|
+
var WellKnownSymbolsStore = shared$2('wks');
|
|
381
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
382
|
+
|
|
383
|
+
var wellKnownSymbol$1 = function (name) {
|
|
384
|
+
if (!hasOwn$6(WellKnownSymbolsStore, name)) {
|
|
385
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
|
|
386
|
+
? Symbol$1[name]
|
|
387
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
388
|
+
} return WellKnownSymbolsStore[name];
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
var call$2 = functionCall;
|
|
392
|
+
var isObject$2 = isObject$4;
|
|
393
|
+
var isSymbol$1 = isSymbol$2;
|
|
394
|
+
var getMethod = getMethod$1;
|
|
395
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
396
|
+
var wellKnownSymbol = wellKnownSymbol$1;
|
|
397
|
+
|
|
398
|
+
var $TypeError$2 = TypeError;
|
|
399
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
400
|
+
|
|
401
|
+
// `ToPrimitive` abstract operation
|
|
402
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
403
|
+
var toPrimitive$1 = function (input, pref) {
|
|
404
|
+
if (!isObject$2(input) || isSymbol$1(input)) return input;
|
|
405
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
406
|
+
var result;
|
|
407
|
+
if (exoticToPrim) {
|
|
408
|
+
if (pref === undefined) pref = 'default';
|
|
409
|
+
result = call$2(exoticToPrim, input, pref);
|
|
410
|
+
if (!isObject$2(result) || isSymbol$1(result)) return result;
|
|
411
|
+
throw new $TypeError$2("Can't convert object to primitive value");
|
|
412
|
+
}
|
|
413
|
+
if (pref === undefined) pref = 'number';
|
|
414
|
+
return ordinaryToPrimitive(input, pref);
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
var toPrimitive = toPrimitive$1;
|
|
418
|
+
var isSymbol = isSymbol$2;
|
|
419
|
+
|
|
420
|
+
// `ToPropertyKey` abstract operation
|
|
421
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
422
|
+
var toPropertyKey$2 = function (argument) {
|
|
423
|
+
var key = toPrimitive(argument, 'string');
|
|
424
|
+
return isSymbol(key) ? key : key + '';
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
var globalThis$4 = globalThis_1;
|
|
428
|
+
var isObject$1 = isObject$4;
|
|
429
|
+
|
|
430
|
+
var document$1 = globalThis$4.document;
|
|
431
|
+
// typeof document.createElement is 'object' in old IE
|
|
432
|
+
var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
|
|
433
|
+
|
|
434
|
+
var documentCreateElement = function (it) {
|
|
435
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
var DESCRIPTORS$7 = descriptors;
|
|
439
|
+
var fails$4 = fails$9;
|
|
440
|
+
var createElement = documentCreateElement;
|
|
441
|
+
|
|
442
|
+
// Thanks to IE8 for its funny defineProperty
|
|
443
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
|
|
444
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
445
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
446
|
+
get: function () { return 7; }
|
|
447
|
+
}).a !== 7;
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
var DESCRIPTORS$6 = descriptors;
|
|
451
|
+
var call$1 = functionCall;
|
|
452
|
+
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
453
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
454
|
+
var toIndexedObject$2 = toIndexedObject$3;
|
|
455
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
456
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
457
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
458
|
+
|
|
459
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
460
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
461
|
+
|
|
462
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
463
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
464
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
465
|
+
O = toIndexedObject$2(O);
|
|
466
|
+
P = toPropertyKey$1(P);
|
|
467
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
468
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
469
|
+
} catch (error) { /* empty */ }
|
|
470
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
var objectDefineProperty = {};
|
|
474
|
+
|
|
475
|
+
var DESCRIPTORS$5 = descriptors;
|
|
476
|
+
var fails$3 = fails$9;
|
|
477
|
+
|
|
478
|
+
// V8 ~ Chrome 36-
|
|
479
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
480
|
+
var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
|
|
481
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
482
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
483
|
+
value: 42,
|
|
484
|
+
writable: false
|
|
485
|
+
}).prototype !== 42;
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
var isObject = isObject$4;
|
|
489
|
+
|
|
490
|
+
var $String$1 = String;
|
|
491
|
+
var $TypeError$1 = TypeError;
|
|
492
|
+
|
|
493
|
+
// `Assert: Type(argument) is Object`
|
|
494
|
+
var anObject$2 = function (argument) {
|
|
495
|
+
if (isObject(argument)) return argument;
|
|
496
|
+
throw new $TypeError$1($String$1(argument) + ' is not an object');
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
var DESCRIPTORS$4 = descriptors;
|
|
500
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
501
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
502
|
+
var anObject$1 = anObject$2;
|
|
503
|
+
var toPropertyKey = toPropertyKey$2;
|
|
504
|
+
|
|
505
|
+
var $TypeError = TypeError;
|
|
506
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
507
|
+
var $defineProperty = Object.defineProperty;
|
|
508
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
509
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
510
|
+
var ENUMERABLE = 'enumerable';
|
|
511
|
+
var CONFIGURABLE$1 = 'configurable';
|
|
512
|
+
var WRITABLE = 'writable';
|
|
513
|
+
|
|
514
|
+
// `Object.defineProperty` method
|
|
515
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
516
|
+
objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
517
|
+
anObject$1(O);
|
|
518
|
+
P = toPropertyKey(P);
|
|
519
|
+
anObject$1(Attributes);
|
|
520
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
521
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
522
|
+
if (current && current[WRITABLE]) {
|
|
523
|
+
O[P] = Attributes.value;
|
|
524
|
+
Attributes = {
|
|
525
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
526
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
527
|
+
writable: false
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
} return $defineProperty(O, P, Attributes);
|
|
531
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
532
|
+
anObject$1(O);
|
|
533
|
+
P = toPropertyKey(P);
|
|
534
|
+
anObject$1(Attributes);
|
|
535
|
+
if (IE8_DOM_DEFINE) try {
|
|
536
|
+
return $defineProperty(O, P, Attributes);
|
|
537
|
+
} catch (error) { /* empty */ }
|
|
538
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
|
|
539
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
540
|
+
return O;
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
var DESCRIPTORS$3 = descriptors;
|
|
544
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
545
|
+
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
546
|
+
|
|
547
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
|
|
548
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
|
|
549
|
+
} : function (object, key, value) {
|
|
550
|
+
object[key] = value;
|
|
551
|
+
return object;
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
555
|
+
|
|
556
|
+
var DESCRIPTORS$2 = descriptors;
|
|
557
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
558
|
+
|
|
559
|
+
var FunctionPrototype = Function.prototype;
|
|
560
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
561
|
+
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
562
|
+
|
|
563
|
+
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
564
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
565
|
+
|
|
566
|
+
var functionName = {
|
|
567
|
+
CONFIGURABLE: CONFIGURABLE
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
571
|
+
var isCallable$4 = isCallable$a;
|
|
572
|
+
var store$1 = sharedStoreExports;
|
|
573
|
+
|
|
574
|
+
var functionToString = uncurryThis$4(Function.toString);
|
|
575
|
+
|
|
576
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
577
|
+
if (!isCallable$4(store$1.inspectSource)) {
|
|
578
|
+
store$1.inspectSource = function (it) {
|
|
579
|
+
return functionToString(it);
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
584
|
+
|
|
585
|
+
var globalThis$3 = globalThis_1;
|
|
586
|
+
var isCallable$3 = isCallable$a;
|
|
587
|
+
|
|
588
|
+
var WeakMap$1 = globalThis$3.WeakMap;
|
|
589
|
+
|
|
590
|
+
var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
591
|
+
|
|
592
|
+
var shared$1 = shared$3;
|
|
593
|
+
var uid = uid$2;
|
|
594
|
+
|
|
595
|
+
var keys = shared$1('keys');
|
|
596
|
+
|
|
597
|
+
var sharedKey$1 = function (key) {
|
|
598
|
+
return keys[key] || (keys[key] = uid(key));
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
var hiddenKeys$3 = {};
|
|
602
|
+
|
|
603
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
604
|
+
var globalThis$2 = globalThis_1;
|
|
605
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
606
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
607
|
+
var shared = sharedStoreExports;
|
|
608
|
+
var sharedKey = sharedKey$1;
|
|
609
|
+
var hiddenKeys$2 = hiddenKeys$3;
|
|
610
|
+
|
|
611
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
612
|
+
var TypeError$1 = globalThis$2.TypeError;
|
|
613
|
+
var WeakMap = globalThis$2.WeakMap;
|
|
614
|
+
var set, get, has;
|
|
615
|
+
|
|
616
|
+
var enforce = function (it) {
|
|
617
|
+
return has(it) ? get(it) : set(it, {});
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
621
|
+
var store = shared.state || (shared.state = new WeakMap());
|
|
622
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
623
|
+
store.get = store.get;
|
|
624
|
+
store.has = store.has;
|
|
625
|
+
store.set = store.set;
|
|
626
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
627
|
+
set = function (it, metadata) {
|
|
628
|
+
if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
629
|
+
metadata.facade = it;
|
|
630
|
+
store.set(it, metadata);
|
|
631
|
+
return metadata;
|
|
632
|
+
};
|
|
633
|
+
get = function (it) {
|
|
634
|
+
return store.get(it) || {};
|
|
635
|
+
};
|
|
636
|
+
has = function (it) {
|
|
637
|
+
return store.has(it);
|
|
638
|
+
};
|
|
639
|
+
} else {
|
|
640
|
+
var STATE = sharedKey('state');
|
|
641
|
+
hiddenKeys$2[STATE] = true;
|
|
642
|
+
set = function (it, metadata) {
|
|
643
|
+
if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
644
|
+
metadata.facade = it;
|
|
645
|
+
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
646
|
+
return metadata;
|
|
647
|
+
};
|
|
648
|
+
get = function (it) {
|
|
649
|
+
return hasOwn$3(it, STATE) ? it[STATE] : {};
|
|
650
|
+
};
|
|
651
|
+
has = function (it) {
|
|
652
|
+
return hasOwn$3(it, STATE);
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
var internalState = {
|
|
657
|
+
get: get,
|
|
658
|
+
enforce: enforce};
|
|
659
|
+
|
|
660
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
661
|
+
var fails$2 = fails$9;
|
|
662
|
+
var isCallable$2 = isCallable$a;
|
|
663
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
664
|
+
var DESCRIPTORS$1 = descriptors;
|
|
665
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
666
|
+
var inspectSource = inspectSource$1;
|
|
667
|
+
var InternalStateModule = internalState;
|
|
668
|
+
|
|
669
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
670
|
+
var getInternalState = InternalStateModule.get;
|
|
671
|
+
var $String = String;
|
|
672
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
673
|
+
var defineProperty$1 = Object.defineProperty;
|
|
674
|
+
var stringSlice = uncurryThis$3(''.slice);
|
|
675
|
+
var replace = uncurryThis$3(''.replace);
|
|
676
|
+
var join = uncurryThis$3([].join);
|
|
677
|
+
|
|
678
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
|
|
679
|
+
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
var TEMPLATE = String(String).split('String');
|
|
683
|
+
|
|
684
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
685
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
686
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
687
|
+
}
|
|
688
|
+
if (options && options.getter) name = 'get ' + name;
|
|
689
|
+
if (options && options.setter) name = 'set ' + name;
|
|
690
|
+
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
691
|
+
if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
692
|
+
else value.name = name;
|
|
693
|
+
}
|
|
694
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
695
|
+
defineProperty$1(value, 'length', { value: options.arity });
|
|
696
|
+
}
|
|
697
|
+
try {
|
|
698
|
+
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
699
|
+
if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
|
|
700
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
701
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
702
|
+
} catch (error) { /* empty */ }
|
|
703
|
+
var state = enforceInternalState(value);
|
|
704
|
+
if (!hasOwn$2(state, 'source')) {
|
|
705
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
706
|
+
} return value;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
710
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
711
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
712
|
+
return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
|
|
713
|
+
}, 'toString');
|
|
714
|
+
|
|
715
|
+
var makeBuiltInExports = makeBuiltIn$2.exports;
|
|
716
|
+
|
|
717
|
+
var isCallable$1 = isCallable$a;
|
|
718
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
719
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
720
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
721
|
+
|
|
722
|
+
var defineBuiltIn$1 = function (O, key, value, options) {
|
|
723
|
+
if (!options) options = {};
|
|
724
|
+
var simple = options.enumerable;
|
|
725
|
+
var name = options.name !== undefined ? options.name : key;
|
|
726
|
+
if (isCallable$1(value)) makeBuiltIn(value, name, options);
|
|
727
|
+
if (options.global) {
|
|
728
|
+
if (simple) O[key] = value;
|
|
729
|
+
else defineGlobalProperty$1(key, value);
|
|
730
|
+
} else {
|
|
731
|
+
try {
|
|
732
|
+
if (!options.unsafe) delete O[key];
|
|
733
|
+
else if (O[key]) simple = true;
|
|
734
|
+
} catch (error) { /* empty */ }
|
|
735
|
+
if (simple) O[key] = value;
|
|
736
|
+
else definePropertyModule$1.f(O, key, {
|
|
737
|
+
value: value,
|
|
738
|
+
enumerable: false,
|
|
739
|
+
configurable: !options.nonConfigurable,
|
|
740
|
+
writable: !options.nonWritable
|
|
741
|
+
});
|
|
742
|
+
} return O;
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
var objectGetOwnPropertyNames = {};
|
|
746
|
+
|
|
747
|
+
var ceil = Math.ceil;
|
|
748
|
+
var floor = Math.floor;
|
|
749
|
+
|
|
750
|
+
// `Math.trunc` method
|
|
751
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
752
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
753
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
754
|
+
var n = +x;
|
|
755
|
+
return (n > 0 ? floor : ceil)(n);
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
var trunc = mathTrunc;
|
|
759
|
+
|
|
760
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
761
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
762
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
763
|
+
var number = +argument;
|
|
764
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
765
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
769
|
+
|
|
770
|
+
var max = Math.max;
|
|
771
|
+
var min$1 = Math.min;
|
|
772
|
+
|
|
773
|
+
// Helper for a popular repeating case of the spec:
|
|
774
|
+
// Let integer be ? ToInteger(index).
|
|
775
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
776
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
777
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
778
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
782
|
+
|
|
783
|
+
var min = Math.min;
|
|
784
|
+
|
|
785
|
+
// `ToLength` abstract operation
|
|
786
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
787
|
+
var toLength$1 = function (argument) {
|
|
788
|
+
var len = toIntegerOrInfinity(argument);
|
|
789
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
var toLength = toLength$1;
|
|
793
|
+
|
|
794
|
+
// `LengthOfArrayLike` abstract operation
|
|
795
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
796
|
+
var lengthOfArrayLike$1 = function (obj) {
|
|
797
|
+
return toLength(obj.length);
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
var toIndexedObject$1 = toIndexedObject$3;
|
|
801
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
802
|
+
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
803
|
+
|
|
804
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
805
|
+
var createMethod = function (IS_INCLUDES) {
|
|
806
|
+
return function ($this, el, fromIndex) {
|
|
807
|
+
var O = toIndexedObject$1($this);
|
|
808
|
+
var length = lengthOfArrayLike(O);
|
|
809
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
810
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
811
|
+
var value;
|
|
812
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
813
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
814
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
815
|
+
value = O[index++];
|
|
816
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
817
|
+
if (value !== value) return true;
|
|
818
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
819
|
+
} else for (;length > index; index++) {
|
|
820
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
821
|
+
} return !IS_INCLUDES && -1;
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
var arrayIncludes = {
|
|
826
|
+
// `Array.prototype.indexOf` method
|
|
827
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
828
|
+
indexOf: createMethod(false)
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
832
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
833
|
+
var toIndexedObject = toIndexedObject$3;
|
|
834
|
+
var indexOf = arrayIncludes.indexOf;
|
|
835
|
+
var hiddenKeys$1 = hiddenKeys$3;
|
|
836
|
+
|
|
837
|
+
var push = uncurryThis$2([].push);
|
|
838
|
+
|
|
839
|
+
var objectKeysInternal = function (object, names) {
|
|
840
|
+
var O = toIndexedObject(object);
|
|
841
|
+
var i = 0;
|
|
842
|
+
var result = [];
|
|
843
|
+
var key;
|
|
844
|
+
for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
|
|
845
|
+
// Don't enum bug & hidden keys
|
|
846
|
+
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
847
|
+
~indexOf(result, key) || push(result, key);
|
|
848
|
+
}
|
|
849
|
+
return result;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
// IE8- don't enum bug keys
|
|
853
|
+
var enumBugKeys$2 = [
|
|
854
|
+
'constructor',
|
|
855
|
+
'hasOwnProperty',
|
|
856
|
+
'isPrototypeOf',
|
|
857
|
+
'propertyIsEnumerable',
|
|
858
|
+
'toLocaleString',
|
|
859
|
+
'toString',
|
|
860
|
+
'valueOf'
|
|
861
|
+
];
|
|
862
|
+
|
|
863
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
864
|
+
var enumBugKeys$1 = enumBugKeys$2;
|
|
865
|
+
|
|
866
|
+
var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
|
|
867
|
+
|
|
868
|
+
// `Object.getOwnPropertyNames` method
|
|
869
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
870
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
871
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
872
|
+
return internalObjectKeys$1(O, hiddenKeys);
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
var objectGetOwnPropertySymbols = {};
|
|
876
|
+
|
|
877
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
878
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
879
|
+
|
|
880
|
+
var getBuiltIn = getBuiltIn$2;
|
|
881
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
882
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
883
|
+
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
884
|
+
var anObject = anObject$2;
|
|
885
|
+
|
|
886
|
+
var concat$1 = uncurryThis$1([].concat);
|
|
887
|
+
|
|
888
|
+
// all object keys, includes non-enumerable and symbols
|
|
889
|
+
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
890
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
891
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
892
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
var hasOwn = hasOwnProperty_1;
|
|
896
|
+
var ownKeys = ownKeys$1;
|
|
897
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
898
|
+
var definePropertyModule = objectDefineProperty;
|
|
899
|
+
|
|
900
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
901
|
+
var keys = ownKeys(source);
|
|
902
|
+
var defineProperty = definePropertyModule.f;
|
|
903
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
904
|
+
for (var i = 0; i < keys.length; i++) {
|
|
905
|
+
var key = keys[i];
|
|
906
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
907
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
var fails$1 = fails$9;
|
|
913
|
+
var isCallable = isCallable$a;
|
|
914
|
+
|
|
915
|
+
var replacement = /#|\.prototype\./;
|
|
916
|
+
|
|
917
|
+
var isForced$1 = function (feature, detection) {
|
|
918
|
+
var value = data[normalize(feature)];
|
|
919
|
+
return value === POLYFILL ? true
|
|
920
|
+
: value === NATIVE ? false
|
|
921
|
+
: isCallable(detection) ? fails$1(detection)
|
|
922
|
+
: !!detection;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
926
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
var data = isForced$1.data = {};
|
|
930
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
931
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
932
|
+
|
|
933
|
+
var isForced_1 = isForced$1;
|
|
934
|
+
|
|
935
|
+
var globalThis$1 = globalThis_1;
|
|
936
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
937
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
938
|
+
var defineBuiltIn = defineBuiltIn$1;
|
|
939
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
940
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
941
|
+
var isForced = isForced_1;
|
|
942
|
+
|
|
943
|
+
/*
|
|
944
|
+
options.target - name of the target object
|
|
945
|
+
options.global - target is the global object
|
|
946
|
+
options.stat - export as static methods of target
|
|
947
|
+
options.proto - export as prototype methods of target
|
|
948
|
+
options.real - real prototype method for the `pure` version
|
|
949
|
+
options.forced - export even if the native feature is available
|
|
950
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
951
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
952
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
953
|
+
options.sham - add a flag to not completely full polyfills
|
|
954
|
+
options.enumerable - export as enumerable property
|
|
955
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
956
|
+
options.name - the .name of the function if it does not match the key
|
|
957
|
+
*/
|
|
958
|
+
var _export = function (options, source) {
|
|
959
|
+
var TARGET = options.target;
|
|
960
|
+
var GLOBAL = options.global;
|
|
961
|
+
var STATIC = options.stat;
|
|
962
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
963
|
+
if (GLOBAL) {
|
|
964
|
+
target = globalThis$1;
|
|
965
|
+
} else if (STATIC) {
|
|
966
|
+
target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
|
|
967
|
+
} else {
|
|
968
|
+
target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
|
|
969
|
+
}
|
|
970
|
+
if (target) for (key in source) {
|
|
971
|
+
sourceProperty = source[key];
|
|
972
|
+
if (options.dontCallGetSet) {
|
|
973
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
974
|
+
targetProperty = descriptor && descriptor.value;
|
|
975
|
+
} else targetProperty = target[key];
|
|
976
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
977
|
+
// contained in target
|
|
978
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
979
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
980
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
981
|
+
}
|
|
982
|
+
// add a flag to not completely full polyfills
|
|
983
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
984
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
985
|
+
}
|
|
986
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
var internalObjectKeys = objectKeysInternal;
|
|
991
|
+
var enumBugKeys = enumBugKeys$2;
|
|
992
|
+
|
|
993
|
+
// `Object.keys` method
|
|
994
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
995
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
996
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
997
|
+
return internalObjectKeys(O, enumBugKeys);
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
var DESCRIPTORS = descriptors;
|
|
1001
|
+
var uncurryThis = functionUncurryThis;
|
|
1002
|
+
var call = functionCall;
|
|
1003
|
+
var fails = fails$9;
|
|
1004
|
+
var objectKeys = objectKeys$1;
|
|
1005
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1006
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1007
|
+
var toObject = toObject$2;
|
|
1008
|
+
var IndexedObject = indexedObject;
|
|
1009
|
+
|
|
1010
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1011
|
+
var $assign = Object.assign;
|
|
1012
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1013
|
+
var defineProperty = Object.defineProperty;
|
|
1014
|
+
var concat = uncurryThis([].concat);
|
|
1015
|
+
|
|
1016
|
+
// `Object.assign` method
|
|
1017
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
1018
|
+
var objectAssign = !$assign || fails(function () {
|
|
1019
|
+
// should have correct order of operations (Edge bug)
|
|
1020
|
+
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1021
|
+
enumerable: true,
|
|
1022
|
+
get: function () {
|
|
1023
|
+
defineProperty(this, 'b', {
|
|
1024
|
+
value: 3,
|
|
1025
|
+
enumerable: false
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
}), { b: 2 })).b !== 1) return true;
|
|
1029
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1030
|
+
var A = {};
|
|
1031
|
+
var B = {};
|
|
1032
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
|
1033
|
+
var symbol = Symbol('assign detection');
|
|
1034
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
1035
|
+
A[symbol] = 7;
|
|
1036
|
+
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1037
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1038
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1039
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1040
|
+
var T = toObject(target);
|
|
1041
|
+
var argumentsLength = arguments.length;
|
|
1042
|
+
var index = 1;
|
|
1043
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1044
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1045
|
+
while (argumentsLength > index) {
|
|
1046
|
+
var S = IndexedObject(arguments[index++]);
|
|
1047
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1048
|
+
var length = keys.length;
|
|
1049
|
+
var j = 0;
|
|
1050
|
+
var key;
|
|
1051
|
+
while (length > j) {
|
|
1052
|
+
key = keys[j++];
|
|
1053
|
+
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1054
|
+
}
|
|
1055
|
+
} return T;
|
|
1056
|
+
} : $assign;
|
|
1057
|
+
|
|
1058
|
+
var $ = _export;
|
|
1059
|
+
var assign = objectAssign;
|
|
1060
|
+
|
|
1061
|
+
// `Object.assign` method
|
|
1062
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
1063
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1064
|
+
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1065
|
+
assign: assign
|
|
1066
|
+
});
|
|
1067
|
+
|
|
1068
|
+
/******************************************************************************
|
|
1069
|
+
Copyright (c) Microsoft Corporation.
|
|
1070
|
+
|
|
1071
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1072
|
+
purpose with or without fee is hereby granted.
|
|
1073
|
+
|
|
1074
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1075
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1076
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1077
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1078
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1079
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1080
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1081
|
+
***************************************************************************** */
|
|
1082
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
function __rest(s, e) {
|
|
1086
|
+
var t = {};
|
|
1087
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1088
|
+
t[p] = s[p];
|
|
1089
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1090
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1091
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1092
|
+
t[p[i]] = s[p[i]];
|
|
1093
|
+
}
|
|
1094
|
+
return t;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1098
|
+
var e = new Error(message);
|
|
1099
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
const Divider = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
1103
|
+
var {
|
|
1104
|
+
text,
|
|
1105
|
+
variant = 'horizontal',
|
|
1106
|
+
dataTestId = 'divider',
|
|
1107
|
+
withoutPadding
|
|
1108
|
+
} = _a,
|
|
1109
|
+
props = __rest(_a, ["text", "variant", "dataTestId", "withoutPadding"]);
|
|
1110
|
+
return jsxRuntime.jsxs("div", Object.assign({
|
|
1111
|
+
ref: ref,
|
|
1112
|
+
"data-testid": `${dataTestId}-container`,
|
|
1113
|
+
className: "ob-divider",
|
|
1114
|
+
role: "separator",
|
|
1115
|
+
"aria-orientation": variant,
|
|
1116
|
+
"data-variant": variant,
|
|
1117
|
+
"data-havetext": !!text,
|
|
1118
|
+
"data-withoutpadding": withoutPadding
|
|
1119
|
+
}, uiUtils.applyDataAttributes(props), {
|
|
1120
|
+
children: [jsxRuntime.jsx("hr", {
|
|
1121
|
+
"aria-hidden": true
|
|
1122
|
+
}), text && jsxRuntime.jsx("span", Object.assign({
|
|
1123
|
+
"data-testid": `${dataTestId}-text`
|
|
1124
|
+
}, uiUtils.applyDataAttributes(props, 'text'), {
|
|
1125
|
+
children: text
|
|
1126
|
+
})), jsxRuntime.jsx("hr", {
|
|
1127
|
+
"aria-hidden": true
|
|
1128
|
+
})]
|
|
1129
|
+
}));
|
|
1130
|
+
});
|
|
1131
|
+
|
|
1132
|
+
exports.Divider = Divider;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/package.json
ADDED
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/divider';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DefaultProps } from '@silas-test/ui-utils';
|
|
2
|
+
export type DividerVariant = 'horizontal' | 'vertical';
|
|
3
|
+
/**
|
|
4
|
+
* Props of the Divider component
|
|
5
|
+
* @interface {DividerProps}
|
|
6
|
+
* @property {string | undefined} dataTestId - Test tag to be used by unit tests
|
|
7
|
+
* @property {string | undefined} text - Text that will be in the middle of component
|
|
8
|
+
* @property {string | undefined} withoutPadding - Boolean to control if Divider will have padding or not
|
|
9
|
+
* @property {string | undefined} variant - The variant of the component styling
|
|
10
|
+
*/
|
|
11
|
+
export interface IDividerProps extends DefaultProps {
|
|
12
|
+
/** Test tag to be used by unit tests */
|
|
13
|
+
dataTestId?: string;
|
|
14
|
+
/** Text that will be inside the component between the two HR tags. */
|
|
15
|
+
text?: string;
|
|
16
|
+
/** Boolean to control if Divider will have padding or not */
|
|
17
|
+
withoutPadding?: boolean;
|
|
18
|
+
/** The variant of the component styling */
|
|
19
|
+
variant?: 'horizontal' | 'vertical';
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
component: import("react").ForwardRefExoticComponent<import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
title: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
text: {
|
|
6
|
+
control: {
|
|
7
|
+
type: "text";
|
|
8
|
+
};
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
variant: {
|
|
12
|
+
control: "radio";
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
withoutPadding: {
|
|
17
|
+
type: "boolean";
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export declare const WithText: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export declare const DefaultVertical: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export declare const WithTextVertical: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export declare const DefaultVerticalWithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export declare const WithTextVerticalWithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export declare const DefaultVerticalWithDataWithoutPadding: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./divider.interface").IDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|