@react-hive/honey-style 1.4.2 → 1.5.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.
@@ -0,0 +1,2161 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ "./node_modules/react/cjs/react-jsx-runtime.development.js":
6
+ /*!*****************************************************************!*\
7
+ !*** ./node_modules/react/cjs/react-jsx-runtime.development.js ***!
8
+ \*****************************************************************/
9
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10
+
11
+ /**
12
+ * @license React
13
+ * react-jsx-runtime.development.js
14
+ *
15
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+
21
+
22
+ true &&
23
+ (function () {
24
+ function getComponentNameFromType(type) {
25
+ if (null == type) return null;
26
+ if ("function" === typeof type)
27
+ return type.$$typeof === REACT_CLIENT_REFERENCE
28
+ ? null
29
+ : type.displayName || type.name || null;
30
+ if ("string" === typeof type) return type;
31
+ switch (type) {
32
+ case REACT_FRAGMENT_TYPE:
33
+ return "Fragment";
34
+ case REACT_PROFILER_TYPE:
35
+ return "Profiler";
36
+ case REACT_STRICT_MODE_TYPE:
37
+ return "StrictMode";
38
+ case REACT_SUSPENSE_TYPE:
39
+ return "Suspense";
40
+ case REACT_SUSPENSE_LIST_TYPE:
41
+ return "SuspenseList";
42
+ case REACT_ACTIVITY_TYPE:
43
+ return "Activity";
44
+ }
45
+ if ("object" === typeof type)
46
+ switch (
47
+ ("number" === typeof type.tag &&
48
+ console.error(
49
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
50
+ ),
51
+ type.$$typeof)
52
+ ) {
53
+ case REACT_PORTAL_TYPE:
54
+ return "Portal";
55
+ case REACT_CONTEXT_TYPE:
56
+ return (type.displayName || "Context") + ".Provider";
57
+ case REACT_CONSUMER_TYPE:
58
+ return (type._context.displayName || "Context") + ".Consumer";
59
+ case REACT_FORWARD_REF_TYPE:
60
+ var innerType = type.render;
61
+ type = type.displayName;
62
+ type ||
63
+ ((type = innerType.displayName || innerType.name || ""),
64
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
65
+ return type;
66
+ case REACT_MEMO_TYPE:
67
+ return (
68
+ (innerType = type.displayName || null),
69
+ null !== innerType
70
+ ? innerType
71
+ : getComponentNameFromType(type.type) || "Memo"
72
+ );
73
+ case REACT_LAZY_TYPE:
74
+ innerType = type._payload;
75
+ type = type._init;
76
+ try {
77
+ return getComponentNameFromType(type(innerType));
78
+ } catch (x) {}
79
+ }
80
+ return null;
81
+ }
82
+ function testStringCoercion(value) {
83
+ return "" + value;
84
+ }
85
+ function checkKeyStringCoercion(value) {
86
+ try {
87
+ testStringCoercion(value);
88
+ var JSCompiler_inline_result = !1;
89
+ } catch (e) {
90
+ JSCompiler_inline_result = !0;
91
+ }
92
+ if (JSCompiler_inline_result) {
93
+ JSCompiler_inline_result = console;
94
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
95
+ var JSCompiler_inline_result$jscomp$0 =
96
+ ("function" === typeof Symbol &&
97
+ Symbol.toStringTag &&
98
+ value[Symbol.toStringTag]) ||
99
+ value.constructor.name ||
100
+ "Object";
101
+ JSCompiler_temp_const.call(
102
+ JSCompiler_inline_result,
103
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
104
+ JSCompiler_inline_result$jscomp$0
105
+ );
106
+ return testStringCoercion(value);
107
+ }
108
+ }
109
+ function getTaskName(type) {
110
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
111
+ if (
112
+ "object" === typeof type &&
113
+ null !== type &&
114
+ type.$$typeof === REACT_LAZY_TYPE
115
+ )
116
+ return "<...>";
117
+ try {
118
+ var name = getComponentNameFromType(type);
119
+ return name ? "<" + name + ">" : "<...>";
120
+ } catch (x) {
121
+ return "<...>";
122
+ }
123
+ }
124
+ function getOwner() {
125
+ var dispatcher = ReactSharedInternals.A;
126
+ return null === dispatcher ? null : dispatcher.getOwner();
127
+ }
128
+ function UnknownOwner() {
129
+ return Error("react-stack-top-frame");
130
+ }
131
+ function hasValidKey(config) {
132
+ if (hasOwnProperty.call(config, "key")) {
133
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
134
+ if (getter && getter.isReactWarning) return !1;
135
+ }
136
+ return void 0 !== config.key;
137
+ }
138
+ function defineKeyPropWarningGetter(props, displayName) {
139
+ function warnAboutAccessingKey() {
140
+ specialPropKeyWarningShown ||
141
+ ((specialPropKeyWarningShown = !0),
142
+ console.error(
143
+ "%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)",
144
+ displayName
145
+ ));
146
+ }
147
+ warnAboutAccessingKey.isReactWarning = !0;
148
+ Object.defineProperty(props, "key", {
149
+ get: warnAboutAccessingKey,
150
+ configurable: !0
151
+ });
152
+ }
153
+ function elementRefGetterWithDeprecationWarning() {
154
+ var componentName = getComponentNameFromType(this.type);
155
+ didWarnAboutElementRef[componentName] ||
156
+ ((didWarnAboutElementRef[componentName] = !0),
157
+ console.error(
158
+ "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."
159
+ ));
160
+ componentName = this.props.ref;
161
+ return void 0 !== componentName ? componentName : null;
162
+ }
163
+ function ReactElement(
164
+ type,
165
+ key,
166
+ self,
167
+ source,
168
+ owner,
169
+ props,
170
+ debugStack,
171
+ debugTask
172
+ ) {
173
+ self = props.ref;
174
+ type = {
175
+ $$typeof: REACT_ELEMENT_TYPE,
176
+ type: type,
177
+ key: key,
178
+ props: props,
179
+ _owner: owner
180
+ };
181
+ null !== (void 0 !== self ? self : null)
182
+ ? Object.defineProperty(type, "ref", {
183
+ enumerable: !1,
184
+ get: elementRefGetterWithDeprecationWarning
185
+ })
186
+ : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
187
+ type._store = {};
188
+ Object.defineProperty(type._store, "validated", {
189
+ configurable: !1,
190
+ enumerable: !1,
191
+ writable: !0,
192
+ value: 0
193
+ });
194
+ Object.defineProperty(type, "_debugInfo", {
195
+ configurable: !1,
196
+ enumerable: !1,
197
+ writable: !0,
198
+ value: null
199
+ });
200
+ Object.defineProperty(type, "_debugStack", {
201
+ configurable: !1,
202
+ enumerable: !1,
203
+ writable: !0,
204
+ value: debugStack
205
+ });
206
+ Object.defineProperty(type, "_debugTask", {
207
+ configurable: !1,
208
+ enumerable: !1,
209
+ writable: !0,
210
+ value: debugTask
211
+ });
212
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
213
+ return type;
214
+ }
215
+ function jsxDEVImpl(
216
+ type,
217
+ config,
218
+ maybeKey,
219
+ isStaticChildren,
220
+ source,
221
+ self,
222
+ debugStack,
223
+ debugTask
224
+ ) {
225
+ var children = config.children;
226
+ if (void 0 !== children)
227
+ if (isStaticChildren)
228
+ if (isArrayImpl(children)) {
229
+ for (
230
+ isStaticChildren = 0;
231
+ isStaticChildren < children.length;
232
+ isStaticChildren++
233
+ )
234
+ validateChildKeys(children[isStaticChildren]);
235
+ Object.freeze && Object.freeze(children);
236
+ } else
237
+ console.error(
238
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
239
+ );
240
+ else validateChildKeys(children);
241
+ if (hasOwnProperty.call(config, "key")) {
242
+ children = getComponentNameFromType(type);
243
+ var keys = Object.keys(config).filter(function (k) {
244
+ return "key" !== k;
245
+ });
246
+ isStaticChildren =
247
+ 0 < keys.length
248
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
249
+ : "{key: someKey}";
250
+ didWarnAboutKeySpread[children + isStaticChildren] ||
251
+ ((keys =
252
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
253
+ console.error(
254
+ '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} />',
255
+ isStaticChildren,
256
+ children,
257
+ keys,
258
+ children
259
+ ),
260
+ (didWarnAboutKeySpread[children + isStaticChildren] = !0));
261
+ }
262
+ children = null;
263
+ void 0 !== maybeKey &&
264
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
265
+ hasValidKey(config) &&
266
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
267
+ if ("key" in config) {
268
+ maybeKey = {};
269
+ for (var propName in config)
270
+ "key" !== propName && (maybeKey[propName] = config[propName]);
271
+ } else maybeKey = config;
272
+ children &&
273
+ defineKeyPropWarningGetter(
274
+ maybeKey,
275
+ "function" === typeof type
276
+ ? type.displayName || type.name || "Unknown"
277
+ : type
278
+ );
279
+ return ReactElement(
280
+ type,
281
+ children,
282
+ self,
283
+ source,
284
+ getOwner(),
285
+ maybeKey,
286
+ debugStack,
287
+ debugTask
288
+ );
289
+ }
290
+ function validateChildKeys(node) {
291
+ "object" === typeof node &&
292
+ null !== node &&
293
+ node.$$typeof === REACT_ELEMENT_TYPE &&
294
+ node._store &&
295
+ (node._store.validated = 1);
296
+ }
297
+ var React = __webpack_require__(/*! react */ "react"),
298
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
299
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
300
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
301
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
302
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
303
+ Symbol.for("react.provider");
304
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
305
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
306
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
307
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
308
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
309
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
310
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
311
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
312
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
313
+ ReactSharedInternals =
314
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
315
+ hasOwnProperty = Object.prototype.hasOwnProperty,
316
+ isArrayImpl = Array.isArray,
317
+ createTask = console.createTask
318
+ ? console.createTask
319
+ : function () {
320
+ return null;
321
+ };
322
+ React = {
323
+ "react-stack-bottom-frame": function (callStackForError) {
324
+ return callStackForError();
325
+ }
326
+ };
327
+ var specialPropKeyWarningShown;
328
+ var didWarnAboutElementRef = {};
329
+ var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
330
+ React,
331
+ UnknownOwner
332
+ )();
333
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
334
+ var didWarnAboutKeySpread = {};
335
+ exports.Fragment = REACT_FRAGMENT_TYPE;
336
+ exports.jsx = function (type, config, maybeKey, source, self) {
337
+ var trackActualOwner =
338
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
339
+ return jsxDEVImpl(
340
+ type,
341
+ config,
342
+ maybeKey,
343
+ !1,
344
+ source,
345
+ self,
346
+ trackActualOwner
347
+ ? Error("react-stack-top-frame")
348
+ : unknownOwnerDebugStack,
349
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
350
+ );
351
+ };
352
+ exports.jsxs = function (type, config, maybeKey, source, self) {
353
+ var trackActualOwner =
354
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
355
+ return jsxDEVImpl(
356
+ type,
357
+ config,
358
+ maybeKey,
359
+ !0,
360
+ source,
361
+ self,
362
+ trackActualOwner
363
+ ? Error("react-stack-top-frame")
364
+ : unknownOwnerDebugStack,
365
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
366
+ );
367
+ };
368
+ })();
369
+
370
+
371
+ /***/ }),
372
+
373
+ /***/ "./node_modules/react/jsx-runtime.js":
374
+ /*!*******************************************!*\
375
+ !*** ./node_modules/react/jsx-runtime.js ***!
376
+ \*******************************************/
377
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
378
+
379
+
380
+
381
+ if (false) // removed by dead control flow
382
+ {} else {
383
+ module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/react/cjs/react-jsx-runtime.development.js");
384
+ }
385
+
386
+
387
+ /***/ }),
388
+
389
+ /***/ "./node_modules/stylis/src/Enum.js":
390
+ /*!*****************************************!*\
391
+ !*** ./node_modules/stylis/src/Enum.js ***!
392
+ \*****************************************/
393
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
394
+
395
+ __webpack_require__.r(__webpack_exports__);
396
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
397
+ /* harmony export */ CHARSET: () => (/* binding */ CHARSET),
398
+ /* harmony export */ COMMENT: () => (/* binding */ COMMENT),
399
+ /* harmony export */ COUNTER_STYLE: () => (/* binding */ COUNTER_STYLE),
400
+ /* harmony export */ DECLARATION: () => (/* binding */ DECLARATION),
401
+ /* harmony export */ DOCUMENT: () => (/* binding */ DOCUMENT),
402
+ /* harmony export */ FONT_FACE: () => (/* binding */ FONT_FACE),
403
+ /* harmony export */ FONT_FEATURE_VALUES: () => (/* binding */ FONT_FEATURE_VALUES),
404
+ /* harmony export */ IMPORT: () => (/* binding */ IMPORT),
405
+ /* harmony export */ KEYFRAMES: () => (/* binding */ KEYFRAMES),
406
+ /* harmony export */ LAYER: () => (/* binding */ LAYER),
407
+ /* harmony export */ MEDIA: () => (/* binding */ MEDIA),
408
+ /* harmony export */ MOZ: () => (/* binding */ MOZ),
409
+ /* harmony export */ MS: () => (/* binding */ MS),
410
+ /* harmony export */ NAMESPACE: () => (/* binding */ NAMESPACE),
411
+ /* harmony export */ PAGE: () => (/* binding */ PAGE),
412
+ /* harmony export */ RULESET: () => (/* binding */ RULESET),
413
+ /* harmony export */ SCOPE: () => (/* binding */ SCOPE),
414
+ /* harmony export */ SUPPORTS: () => (/* binding */ SUPPORTS),
415
+ /* harmony export */ VIEWPORT: () => (/* binding */ VIEWPORT),
416
+ /* harmony export */ WEBKIT: () => (/* binding */ WEBKIT)
417
+ /* harmony export */ });
418
+ var MS = '-ms-'
419
+ var MOZ = '-moz-'
420
+ var WEBKIT = '-webkit-'
421
+
422
+ var COMMENT = 'comm'
423
+ var RULESET = 'rule'
424
+ var DECLARATION = 'decl'
425
+
426
+ var PAGE = '@page'
427
+ var MEDIA = '@media'
428
+ var IMPORT = '@import'
429
+ var CHARSET = '@charset'
430
+ var VIEWPORT = '@viewport'
431
+ var SUPPORTS = '@supports'
432
+ var DOCUMENT = '@document'
433
+ var NAMESPACE = '@namespace'
434
+ var KEYFRAMES = '@keyframes'
435
+ var FONT_FACE = '@font-face'
436
+ var COUNTER_STYLE = '@counter-style'
437
+ var FONT_FEATURE_VALUES = '@font-feature-values'
438
+ var LAYER = '@layer'
439
+ var SCOPE = '@scope'
440
+
441
+
442
+ /***/ }),
443
+
444
+ /***/ "./node_modules/stylis/src/Parser.js":
445
+ /*!*******************************************!*\
446
+ !*** ./node_modules/stylis/src/Parser.js ***!
447
+ \*******************************************/
448
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
449
+
450
+ __webpack_require__.r(__webpack_exports__);
451
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
452
+ /* harmony export */ comment: () => (/* binding */ comment),
453
+ /* harmony export */ compile: () => (/* binding */ compile),
454
+ /* harmony export */ declaration: () => (/* binding */ declaration),
455
+ /* harmony export */ parse: () => (/* binding */ parse),
456
+ /* harmony export */ ruleset: () => (/* binding */ ruleset)
457
+ /* harmony export */ });
458
+ /* harmony import */ var _Enum_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enum.js */ "./node_modules/stylis/src/Enum.js");
459
+ /* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js");
460
+ /* harmony import */ var _Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tokenizer.js */ "./node_modules/stylis/src/Tokenizer.js");
461
+
462
+
463
+
464
+
465
+ /**
466
+ * @param {string} value
467
+ * @return {object[]}
468
+ */
469
+ function compile (value) {
470
+ return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.dealloc)(parse('', null, null, null, [''], value = (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.alloc)(value), 0, [0], value))
471
+ }
472
+
473
+ /**
474
+ * @param {string} value
475
+ * @param {object} root
476
+ * @param {object?} parent
477
+ * @param {string[]} rule
478
+ * @param {string[]} rules
479
+ * @param {string[]} rulesets
480
+ * @param {number[]} pseudo
481
+ * @param {number[]} points
482
+ * @param {string[]} declarations
483
+ * @return {object}
484
+ */
485
+ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
486
+ var index = 0
487
+ var offset = 0
488
+ var length = pseudo
489
+ var atrule = 0
490
+ var property = 0
491
+ var previous = 0
492
+ var variable = 1
493
+ var scanning = 1
494
+ var ampersand = 1
495
+ var character = 0
496
+ var type = ''
497
+ var props = rules
498
+ var children = rulesets
499
+ var reference = rule
500
+ var characters = type
501
+
502
+ while (scanning)
503
+ switch (previous = character, character = (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.next)()) {
504
+ // (
505
+ case 40:
506
+ if (previous != 108 && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.charat)(characters, length - 1) == 58) {
507
+ if ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.indexof)(characters += (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.replace)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.delimit)(character), '&', '&\f'), '&\f', (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.abs)(index ? points[index - 1] : 0)) != -1)
508
+ ampersand = -1
509
+ break
510
+ }
511
+ // " ' [
512
+ case 34: case 39: case 91:
513
+ characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.delimit)(character)
514
+ break
515
+ // \t \n \r \s
516
+ case 9: case 10: case 13: case 32:
517
+ characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.whitespace)(previous)
518
+ break
519
+ // \
520
+ case 92:
521
+ characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.escaping)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.caret)() - 1, 7)
522
+ continue
523
+ // /
524
+ case 47:
525
+ switch ((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.peek)()) {
526
+ case 42: case 47:
527
+ ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(comment((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.commenter)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.next)(), (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.caret)()), root, parent, declarations), declarations)
528
+ if (((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.token)(previous || 1) == 5 || (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.token)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.peek)() || 1) == 5) && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(characters, -1, void 0) !== ' ') characters += ' '
529
+ break
530
+ default:
531
+ characters += '/'
532
+ }
533
+ break
534
+ // {
535
+ case 123 * variable:
536
+ points[index++] = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) * ampersand
537
+ // } ; \0
538
+ case 125 * variable: case 59: case 0:
539
+ switch (character) {
540
+ // \0 }
541
+ case 0: case 125: scanning = 0
542
+ // ;
543
+ case 59 + offset: if (ampersand == -1) characters = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.replace)(characters, /\f/g, '')
544
+ if (property > 0 && ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) - length || (variable === 0 && previous === 47)))
545
+ (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.replace)(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations)
546
+ break
547
+ // @ ;
548
+ case 59: characters += ';'
549
+ // { rule/at-rule
550
+ default:
551
+ ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets)
552
+
553
+ if (character === 123)
554
+ if (offset === 0)
555
+ parse(characters, root, reference, reference, props, rulesets, length, points, children)
556
+ else {
557
+ switch (atrule) {
558
+ // c(ontainer)
559
+ case 99:
560
+ if ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.charat)(characters, 3) === 110) break
561
+ // l(ayer)
562
+ case 108:
563
+ if ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.charat)(characters, 2) === 97) break
564
+ default:
565
+ offset = 0
566
+ // d(ocument) m(edia) s(upports)
567
+ case 100: case 109: case 115:
568
+ }
569
+ if (offset) parse(value, reference, reference, rule && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children)
570
+ else parse(characters, reference, reference, reference, [''], children, 0, points, children)
571
+ }
572
+ }
573
+
574
+ index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo
575
+ break
576
+ // :
577
+ case 58:
578
+ length = 1 + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters), property = previous
579
+ default:
580
+ if (variable < 1)
581
+ if (character == 123)
582
+ --variable
583
+ else if (character == 125 && variable++ == 0 && (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.prev)() == 125)
584
+ continue
585
+
586
+ switch (characters += (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.from)(character), character * variable) {
587
+ // &
588
+ case 38:
589
+ ampersand = offset > 0 ? 1 : (characters += '\f', -1)
590
+ break
591
+ // ,
592
+ case 44:
593
+ points[index++] = ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) - 1) * ampersand, ampersand = 1
594
+ break
595
+ // @
596
+ case 64:
597
+ // -
598
+ if ((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.peek)() === 45)
599
+ characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.delimit)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.next)())
600
+
601
+ atrule = (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.peek)(), offset = length = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(type = characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.identifier)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.caret)())), character++
602
+ break
603
+ // -
604
+ case 45:
605
+ if (previous === 45 && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) == 2)
606
+ variable = 0
607
+ }
608
+ }
609
+
610
+ return rulesets
611
+ }
612
+
613
+ /**
614
+ * @param {string} value
615
+ * @param {object} root
616
+ * @param {object?} parent
617
+ * @param {number} index
618
+ * @param {number} offset
619
+ * @param {string[]} rules
620
+ * @param {number[]} points
621
+ * @param {string} type
622
+ * @param {string[]} props
623
+ * @param {string[]} children
624
+ * @param {number} length
625
+ * @param {object[]} siblings
626
+ * @return {object}
627
+ */
628
+ function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
629
+ var post = offset - 1
630
+ var rule = offset === 0 ? rules : ['']
631
+ var size = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.sizeof)(rule)
632
+
633
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
634
+ for (var x = 0, y = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, post + 1, post = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.abs)(j = points[i])), z = value; x < size; ++x)
635
+ if (z = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.trim)(j > 0 ? rule[x] + ' ' + y : (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.replace)(y, /&\f/g, rule[x])))
636
+ props[k++] = z
637
+
638
+ return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.node)(value, root, parent, offset === 0 ? _Enum_js__WEBPACK_IMPORTED_MODULE_2__.RULESET : type, props, children, length, siblings)
639
+ }
640
+
641
+ /**
642
+ * @param {number} value
643
+ * @param {object} root
644
+ * @param {object?} parent
645
+ * @param {object[]} siblings
646
+ * @return {object}
647
+ */
648
+ function comment (value, root, parent, siblings) {
649
+ return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.node)(value, root, parent, _Enum_js__WEBPACK_IMPORTED_MODULE_2__.COMMENT, (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.from)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.char)()), (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, 2, -2), 0, siblings)
650
+ }
651
+
652
+ /**
653
+ * @param {string} value
654
+ * @param {object} root
655
+ * @param {object?} parent
656
+ * @param {number} length
657
+ * @param {object[]} siblings
658
+ * @return {object}
659
+ */
660
+ function declaration (value, root, parent, length, siblings) {
661
+ return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.node)(value, root, parent, _Enum_js__WEBPACK_IMPORTED_MODULE_2__.DECLARATION, (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, 0, length), (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, length + 1, -1), length, siblings)
662
+ }
663
+
664
+
665
+ /***/ }),
666
+
667
+ /***/ "./node_modules/stylis/src/Serializer.js":
668
+ /*!***********************************************!*\
669
+ !*** ./node_modules/stylis/src/Serializer.js ***!
670
+ \***********************************************/
671
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
672
+
673
+ __webpack_require__.r(__webpack_exports__);
674
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
675
+ /* harmony export */ serialize: () => (/* binding */ serialize),
676
+ /* harmony export */ stringify: () => (/* binding */ stringify)
677
+ /* harmony export */ });
678
+ /* harmony import */ var _Enum_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Enum.js */ "./node_modules/stylis/src/Enum.js");
679
+ /* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js");
680
+
681
+
682
+
683
+ /**
684
+ * @param {object[]} children
685
+ * @param {function} callback
686
+ * @return {string}
687
+ */
688
+ function serialize (children, callback) {
689
+ var output = ''
690
+
691
+ for (var i = 0; i < children.length; i++)
692
+ output += callback(children[i], i, children, callback) || ''
693
+
694
+ return output
695
+ }
696
+
697
+ /**
698
+ * @param {object} element
699
+ * @param {number} index
700
+ * @param {object[]} children
701
+ * @param {function} callback
702
+ * @return {string}
703
+ */
704
+ function stringify (element, index, children, callback) {
705
+ switch (element.type) {
706
+ case _Enum_js__WEBPACK_IMPORTED_MODULE_0__.LAYER: if (element.children.length) break
707
+ case _Enum_js__WEBPACK_IMPORTED_MODULE_0__.IMPORT: case _Enum_js__WEBPACK_IMPORTED_MODULE_0__.NAMESPACE: case _Enum_js__WEBPACK_IMPORTED_MODULE_0__.DECLARATION: return element.return = element.return || element.value
708
+ case _Enum_js__WEBPACK_IMPORTED_MODULE_0__.COMMENT: return ''
709
+ case _Enum_js__WEBPACK_IMPORTED_MODULE_0__.KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
710
+ case _Enum_js__WEBPACK_IMPORTED_MODULE_0__.RULESET: if (!(0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(element.value = element.props.join(','))) return ''
711
+ }
712
+
713
+ return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
714
+ }
715
+
716
+
717
+ /***/ }),
718
+
719
+ /***/ "./node_modules/stylis/src/Tokenizer.js":
720
+ /*!**********************************************!*\
721
+ !*** ./node_modules/stylis/src/Tokenizer.js ***!
722
+ \**********************************************/
723
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
724
+
725
+ __webpack_require__.r(__webpack_exports__);
726
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
727
+ /* harmony export */ alloc: () => (/* binding */ alloc),
728
+ /* harmony export */ caret: () => (/* binding */ caret),
729
+ /* harmony export */ char: () => (/* binding */ char),
730
+ /* harmony export */ character: () => (/* binding */ character),
731
+ /* harmony export */ characters: () => (/* binding */ characters),
732
+ /* harmony export */ column: () => (/* binding */ column),
733
+ /* harmony export */ commenter: () => (/* binding */ commenter),
734
+ /* harmony export */ copy: () => (/* binding */ copy),
735
+ /* harmony export */ dealloc: () => (/* binding */ dealloc),
736
+ /* harmony export */ delimit: () => (/* binding */ delimit),
737
+ /* harmony export */ delimiter: () => (/* binding */ delimiter),
738
+ /* harmony export */ escaping: () => (/* binding */ escaping),
739
+ /* harmony export */ identifier: () => (/* binding */ identifier),
740
+ /* harmony export */ length: () => (/* binding */ length),
741
+ /* harmony export */ lift: () => (/* binding */ lift),
742
+ /* harmony export */ line: () => (/* binding */ line),
743
+ /* harmony export */ next: () => (/* binding */ next),
744
+ /* harmony export */ node: () => (/* binding */ node),
745
+ /* harmony export */ peek: () => (/* binding */ peek),
746
+ /* harmony export */ position: () => (/* binding */ position),
747
+ /* harmony export */ prev: () => (/* binding */ prev),
748
+ /* harmony export */ slice: () => (/* binding */ slice),
749
+ /* harmony export */ token: () => (/* binding */ token),
750
+ /* harmony export */ tokenize: () => (/* binding */ tokenize),
751
+ /* harmony export */ tokenizer: () => (/* binding */ tokenizer),
752
+ /* harmony export */ whitespace: () => (/* binding */ whitespace)
753
+ /* harmony export */ });
754
+ /* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js");
755
+
756
+
757
+ var line = 1
758
+ var column = 1
759
+ var length = 0
760
+ var position = 0
761
+ var character = 0
762
+ var characters = ''
763
+
764
+ /**
765
+ * @param {string} value
766
+ * @param {object | null} root
767
+ * @param {object | null} parent
768
+ * @param {string} type
769
+ * @param {string[] | string} props
770
+ * @param {object[] | string} children
771
+ * @param {object[]} siblings
772
+ * @param {number} length
773
+ */
774
+ function node (value, root, parent, type, props, children, length, siblings) {
775
+ return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}
776
+ }
777
+
778
+ /**
779
+ * @param {object} root
780
+ * @param {object} props
781
+ * @return {object}
782
+ */
783
+ function copy (root, props) {
784
+ return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.assign)(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
785
+ }
786
+
787
+ /**
788
+ * @param {object} root
789
+ */
790
+ function lift (root) {
791
+ while (root.root)
792
+ root = copy(root.root, {children: [root]})
793
+
794
+ ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.append)(root, root.siblings)
795
+ }
796
+
797
+ /**
798
+ * @return {number}
799
+ */
800
+ function char () {
801
+ return character
802
+ }
803
+
804
+ /**
805
+ * @return {number}
806
+ */
807
+ function prev () {
808
+ character = position > 0 ? (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(characters, --position) : 0
809
+
810
+ if (column--, character === 10)
811
+ column = 1, line--
812
+
813
+ return character
814
+ }
815
+
816
+ /**
817
+ * @return {number}
818
+ */
819
+ function next () {
820
+ character = position < length ? (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(characters, position++) : 0
821
+
822
+ if (column++, character === 10)
823
+ column = 1, line++
824
+
825
+ return character
826
+ }
827
+
828
+ /**
829
+ * @return {number}
830
+ */
831
+ function peek () {
832
+ return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(characters, position)
833
+ }
834
+
835
+ /**
836
+ * @return {number}
837
+ */
838
+ function caret () {
839
+ return position
840
+ }
841
+
842
+ /**
843
+ * @param {number} begin
844
+ * @param {number} end
845
+ * @return {string}
846
+ */
847
+ function slice (begin, end) {
848
+ return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.substr)(characters, begin, end)
849
+ }
850
+
851
+ /**
852
+ * @param {number} type
853
+ * @return {number}
854
+ */
855
+ function token (type) {
856
+ switch (type) {
857
+ // \0 \t \n \r \s whitespace token
858
+ case 0: case 9: case 10: case 13: case 32:
859
+ return 5
860
+ // ! + , / > @ ~ isolate token
861
+ case 33: case 43: case 44: case 47: case 62: case 64: case 126:
862
+ // ; { } breakpoint token
863
+ case 59: case 123: case 125:
864
+ return 4
865
+ // : accompanied token
866
+ case 58:
867
+ return 3
868
+ // " ' ( [ opening delimit token
869
+ case 34: case 39: case 40: case 91:
870
+ return 2
871
+ // ) ] closing delimit token
872
+ case 41: case 93:
873
+ return 1
874
+ }
875
+
876
+ return 0
877
+ }
878
+
879
+ /**
880
+ * @param {string} value
881
+ * @return {any[]}
882
+ */
883
+ function alloc (value) {
884
+ return line = column = 1, length = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.strlen)(characters = value), position = 0, []
885
+ }
886
+
887
+ /**
888
+ * @param {any} value
889
+ * @return {any}
890
+ */
891
+ function dealloc (value) {
892
+ return characters = '', value
893
+ }
894
+
895
+ /**
896
+ * @param {number} type
897
+ * @return {string}
898
+ */
899
+ function delimit (type) {
900
+ return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.trim)(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
901
+ }
902
+
903
+ /**
904
+ * @param {string} value
905
+ * @return {string[]}
906
+ */
907
+ function tokenize (value) {
908
+ return dealloc(tokenizer(alloc(value)))
909
+ }
910
+
911
+ /**
912
+ * @param {number} type
913
+ * @return {string}
914
+ */
915
+ function whitespace (type) {
916
+ while (character = peek())
917
+ if (character < 33)
918
+ next()
919
+ else
920
+ break
921
+
922
+ return token(type) > 2 || token(character) > 3 ? '' : ' '
923
+ }
924
+
925
+ /**
926
+ * @param {string[]} children
927
+ * @return {string[]}
928
+ */
929
+ function tokenizer (children) {
930
+ while (next())
931
+ switch (token(character)) {
932
+ case 0: (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.append)(identifier(position - 1), children)
933
+ break
934
+ case 2: ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.append)(delimit(character), children)
935
+ break
936
+ default: ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.append)((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.from)(character), children)
937
+ }
938
+
939
+ return children
940
+ }
941
+
942
+ /**
943
+ * @param {number} index
944
+ * @param {number} count
945
+ * @return {string}
946
+ */
947
+ function escaping (index, count) {
948
+ while (--count && next())
949
+ // not 0-9 A-F a-f
950
+ if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
951
+ break
952
+
953
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
954
+ }
955
+
956
+ /**
957
+ * @param {number} type
958
+ * @return {number}
959
+ */
960
+ function delimiter (type) {
961
+ while (next())
962
+ switch (character) {
963
+ // ] ) " '
964
+ case type:
965
+ return position
966
+ // " '
967
+ case 34: case 39:
968
+ if (type !== 34 && type !== 39)
969
+ delimiter(character)
970
+ break
971
+ // (
972
+ case 40:
973
+ if (type === 41)
974
+ delimiter(type)
975
+ break
976
+ // \
977
+ case 92:
978
+ next()
979
+ break
980
+ }
981
+
982
+ return position
983
+ }
984
+
985
+ /**
986
+ * @param {number} type
987
+ * @param {number} index
988
+ * @return {number}
989
+ */
990
+ function commenter (type, index) {
991
+ while (next())
992
+ // //
993
+ if (type + character === 47 + 10)
994
+ break
995
+ // /*
996
+ else if (type + character === 42 + 42 && peek() === 47)
997
+ break
998
+
999
+ return '/*' + slice(index, position - 1) + '*' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.from)(type === 47 ? type : next())
1000
+ }
1001
+
1002
+ /**
1003
+ * @param {number} index
1004
+ * @return {string}
1005
+ */
1006
+ function identifier (index) {
1007
+ while (!token(peek()))
1008
+ next()
1009
+
1010
+ return slice(index, position)
1011
+ }
1012
+
1013
+
1014
+ /***/ }),
1015
+
1016
+ /***/ "./node_modules/stylis/src/Utility.js":
1017
+ /*!********************************************!*\
1018
+ !*** ./node_modules/stylis/src/Utility.js ***!
1019
+ \********************************************/
1020
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1021
+
1022
+ __webpack_require__.r(__webpack_exports__);
1023
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1024
+ /* harmony export */ abs: () => (/* binding */ abs),
1025
+ /* harmony export */ append: () => (/* binding */ append),
1026
+ /* harmony export */ assign: () => (/* binding */ assign),
1027
+ /* harmony export */ charat: () => (/* binding */ charat),
1028
+ /* harmony export */ combine: () => (/* binding */ combine),
1029
+ /* harmony export */ filter: () => (/* binding */ filter),
1030
+ /* harmony export */ from: () => (/* binding */ from),
1031
+ /* harmony export */ hash: () => (/* binding */ hash),
1032
+ /* harmony export */ indexof: () => (/* binding */ indexof),
1033
+ /* harmony export */ match: () => (/* binding */ match),
1034
+ /* harmony export */ replace: () => (/* binding */ replace),
1035
+ /* harmony export */ sizeof: () => (/* binding */ sizeof),
1036
+ /* harmony export */ strlen: () => (/* binding */ strlen),
1037
+ /* harmony export */ substr: () => (/* binding */ substr),
1038
+ /* harmony export */ trim: () => (/* binding */ trim)
1039
+ /* harmony export */ });
1040
+ /**
1041
+ * @param {number}
1042
+ * @return {number}
1043
+ */
1044
+ var abs = Math.abs
1045
+
1046
+ /**
1047
+ * @param {number}
1048
+ * @return {string}
1049
+ */
1050
+ var from = String.fromCharCode
1051
+
1052
+ /**
1053
+ * @param {object}
1054
+ * @return {object}
1055
+ */
1056
+ var assign = Object.assign
1057
+
1058
+ /**
1059
+ * @param {string} value
1060
+ * @param {number} length
1061
+ * @return {number}
1062
+ */
1063
+ function hash (value, length) {
1064
+ return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
1065
+ }
1066
+
1067
+ /**
1068
+ * @param {string} value
1069
+ * @return {string}
1070
+ */
1071
+ function trim (value) {
1072
+ return value.trim()
1073
+ }
1074
+
1075
+ /**
1076
+ * @param {string} value
1077
+ * @param {RegExp} pattern
1078
+ * @return {string?}
1079
+ */
1080
+ function match (value, pattern) {
1081
+ return (value = pattern.exec(value)) ? value[0] : value
1082
+ }
1083
+
1084
+ /**
1085
+ * @param {string} value
1086
+ * @param {(string|RegExp)} pattern
1087
+ * @param {string} replacement
1088
+ * @return {string}
1089
+ */
1090
+ function replace (value, pattern, replacement) {
1091
+ return value.replace(pattern, replacement)
1092
+ }
1093
+
1094
+ /**
1095
+ * @param {string} value
1096
+ * @param {string} search
1097
+ * @param {number} position
1098
+ * @return {number}
1099
+ */
1100
+ function indexof (value, search, position) {
1101
+ return value.indexOf(search, position)
1102
+ }
1103
+
1104
+ /**
1105
+ * @param {string} value
1106
+ * @param {number} index
1107
+ * @return {number}
1108
+ */
1109
+ function charat (value, index) {
1110
+ return value.charCodeAt(index) | 0
1111
+ }
1112
+
1113
+ /**
1114
+ * @param {string} value
1115
+ * @param {number} begin
1116
+ * @param {number} end
1117
+ * @return {string}
1118
+ */
1119
+ function substr (value, begin, end) {
1120
+ return value.slice(begin, end)
1121
+ }
1122
+
1123
+ /**
1124
+ * @param {string} value
1125
+ * @return {number}
1126
+ */
1127
+ function strlen (value) {
1128
+ return value.length
1129
+ }
1130
+
1131
+ /**
1132
+ * @param {any[]} value
1133
+ * @return {number}
1134
+ */
1135
+ function sizeof (value) {
1136
+ return value.length
1137
+ }
1138
+
1139
+ /**
1140
+ * @param {any} value
1141
+ * @param {any[]} array
1142
+ * @return {any}
1143
+ */
1144
+ function append (value, array) {
1145
+ return array.push(value), value
1146
+ }
1147
+
1148
+ /**
1149
+ * @param {string[]} array
1150
+ * @param {function} callback
1151
+ * @return {string}
1152
+ */
1153
+ function combine (array, callback) {
1154
+ return array.map(callback).join('')
1155
+ }
1156
+
1157
+ /**
1158
+ * @param {string[]} array
1159
+ * @param {RegExp} pattern
1160
+ * @return {string[]}
1161
+ */
1162
+ function filter (array, pattern) {
1163
+ return array.filter(function (value) { return !match(value, pattern) })
1164
+ }
1165
+
1166
+
1167
+ /***/ }),
1168
+
1169
+ /***/ "./src/constants.ts":
1170
+ /*!**************************!*\
1171
+ !*** ./src/constants.ts ***!
1172
+ \**************************/
1173
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1174
+
1175
+ __webpack_require__.r(__webpack_exports__);
1176
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1177
+ /* harmony export */ HONEY_BREAKPOINTS: () => (/* binding */ HONEY_BREAKPOINTS),
1178
+ /* harmony export */ HONEY_GLOBAL_STYLE_ATTR: () => (/* binding */ HONEY_GLOBAL_STYLE_ATTR),
1179
+ /* harmony export */ HONEY_STYLED_COMPONENT_ID_PROP: () => (/* binding */ HONEY_STYLED_COMPONENT_ID_PROP),
1180
+ /* harmony export */ HONEY_STYLE_ATTR: () => (/* binding */ HONEY_STYLE_ATTR),
1181
+ /* harmony export */ VALID_DOM_ELEMENT_ATTRS: () => (/* binding */ VALID_DOM_ELEMENT_ATTRS),
1182
+ /* harmony export */ __DEV__: () => (/* binding */ __DEV__)
1183
+ /* harmony export */ });
1184
+ const ENV = "development" || 0;
1185
+ const __DEV__ = ENV !== 'production';
1186
+ if (__DEV__ && typeof window !== 'undefined' && !process.env.JEST_WORKER_ID) {
1187
+ console.info('[@react-hive/honey-style]: You are running in development mode. ' +
1188
+ 'This build is not optimized for production and may include extra checks or logs.');
1189
+ }
1190
+ const HONEY_STYLED_COMPONENT_ID_PROP = '$$ComponentId';
1191
+ const HONEY_GLOBAL_STYLE_ATTR = 'data-honey-global-style';
1192
+ const HONEY_STYLE_ATTR = 'data-honey-style';
1193
+ const HONEY_BREAKPOINTS = ['xs', 'sm', 'md', 'lg', 'xl'];
1194
+ const VALID_HTML_ATTRS = new Set([
1195
+ // Standard Attributes
1196
+ 'accept',
1197
+ 'accessKey',
1198
+ 'autoCapitalize',
1199
+ 'autoComplete',
1200
+ 'autoFocus',
1201
+ 'capture',
1202
+ 'class',
1203
+ 'className',
1204
+ 'contentEditable',
1205
+ 'contextMenu',
1206
+ 'dir',
1207
+ 'draggable',
1208
+ 'hidden',
1209
+ 'id',
1210
+ 'inert',
1211
+ 'inputMode',
1212
+ 'is',
1213
+ 'lang',
1214
+ 'nonce',
1215
+ 'part',
1216
+ 'slot',
1217
+ 'spellCheck',
1218
+ 'style',
1219
+ 'tabIndex',
1220
+ 'title',
1221
+ 'translate',
1222
+ 'unselectable',
1223
+ // Form Attributes
1224
+ 'checked',
1225
+ 'disabled',
1226
+ 'form',
1227
+ 'formAction',
1228
+ 'formEncType',
1229
+ 'formMethod',
1230
+ 'formNoValidate',
1231
+ 'formTarget',
1232
+ 'list',
1233
+ 'max',
1234
+ 'maxLength',
1235
+ 'min',
1236
+ 'minLength',
1237
+ 'multiple',
1238
+ 'name',
1239
+ 'pattern',
1240
+ 'placeholder',
1241
+ 'readOnly',
1242
+ 'required',
1243
+ 'size',
1244
+ 'step',
1245
+ 'type',
1246
+ 'value',
1247
+ // Media Attributes
1248
+ 'alt',
1249
+ 'controls',
1250
+ 'crossOrigin',
1251
+ 'height',
1252
+ 'isMap',
1253
+ 'loop',
1254
+ 'media',
1255
+ 'muted',
1256
+ 'poster',
1257
+ 'preload',
1258
+ 'src',
1259
+ 'srcSet',
1260
+ 'useMap',
1261
+ 'width',
1262
+ // Anchor & Link Attributes
1263
+ 'download',
1264
+ 'href',
1265
+ 'hrefLang',
1266
+ 'referrerPolicy',
1267
+ 'rel',
1268
+ 'target',
1269
+ // React Specific
1270
+ 'dangerouslySetInnerHTML',
1271
+ 'key',
1272
+ 'ref',
1273
+ 'children',
1274
+ // Deprecated/Obscure Attributes (still valid in some contexts)
1275
+ 'char',
1276
+ 'charOff',
1277
+ // Web Components / Shadow DOM
1278
+ 'exportparts',
1279
+ 'popover',
1280
+ 'popoverTarget',
1281
+ 'popoverTargetAction',
1282
+ 'virtualkeyboardpolicy',
1283
+ 'writingsuggestions',
1284
+ ]);
1285
+ const VALID_TABLE_ATTRS = new Set([
1286
+ 'colSpan',
1287
+ 'rowSpan',
1288
+ 'headers',
1289
+ 'abbr',
1290
+ 'scope',
1291
+ /**
1292
+ * @deprecated https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/align
1293
+ */
1294
+ 'align',
1295
+ /**
1296
+ * @deprecated https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/vAlign
1297
+ */
1298
+ 'valign',
1299
+ ]);
1300
+ const VALID_SVG_ATTRS = new Set([
1301
+ 'viewBox',
1302
+ 'fill',
1303
+ 'stroke',
1304
+ 'strokeWidth',
1305
+ 'strokeLinecap',
1306
+ 'strokeLinejoin',
1307
+ 'strokeDasharray',
1308
+ 'strokeDashoffset',
1309
+ 'strokeOpacity',
1310
+ 'fillOpacity',
1311
+ 'opacity',
1312
+ 'pointerEvents',
1313
+ 'focusable',
1314
+ 'x',
1315
+ 'y',
1316
+ 'x1',
1317
+ 'x2',
1318
+ 'y1',
1319
+ 'y2',
1320
+ 'cx',
1321
+ 'cy',
1322
+ 'r',
1323
+ 'rx',
1324
+ 'ry',
1325
+ 'd',
1326
+ 'points',
1327
+ 'height',
1328
+ 'transform',
1329
+ 'xmlns',
1330
+ 'preserveAspectRatio',
1331
+ 'mask',
1332
+ 'clipPath',
1333
+ 'pathLength',
1334
+ 'markerStart',
1335
+ 'markerMid',
1336
+ 'markerEnd',
1337
+ 'refX',
1338
+ 'refY',
1339
+ 'dominantBaseline',
1340
+ 'textAnchor',
1341
+ ]);
1342
+ const VALID_EVENT_ATTRS = new Set([
1343
+ // Clipboard
1344
+ 'onCopy',
1345
+ 'onCut',
1346
+ 'onPaste',
1347
+ // Composition
1348
+ 'onCompositionEnd',
1349
+ 'onCompositionStart',
1350
+ 'onCompositionUpdate',
1351
+ // Focus
1352
+ 'onFocus',
1353
+ 'onBlur',
1354
+ // Form
1355
+ 'onChange',
1356
+ 'onInput',
1357
+ 'onInvalid',
1358
+ 'onReset',
1359
+ 'onSubmit',
1360
+ // Keyboard
1361
+ 'onKeyDown',
1362
+ 'onKeyPress',
1363
+ 'onKeyUp',
1364
+ // Mouse
1365
+ 'onClick',
1366
+ 'onContextMenu',
1367
+ 'onDoubleClick',
1368
+ 'onMouseDown',
1369
+ 'onMouseEnter',
1370
+ 'onMouseLeave',
1371
+ 'onMouseMove',
1372
+ 'onMouseOut',
1373
+ 'onMouseOver',
1374
+ 'onMouseUp',
1375
+ // Drag & Drop
1376
+ 'onDrag',
1377
+ 'onDragEnd',
1378
+ 'onDragEnter',
1379
+ 'onDragExit',
1380
+ 'onDragLeave',
1381
+ 'onDragOver',
1382
+ 'onDragStart',
1383
+ 'onDrop',
1384
+ // Pointer
1385
+ 'onPointerDown',
1386
+ 'onPointerMove',
1387
+ 'onPointerUp',
1388
+ 'onPointerCancel',
1389
+ 'onPointerEnter',
1390
+ 'onPointerLeave',
1391
+ 'onPointerOver',
1392
+ 'onPointerOut',
1393
+ 'onGotPointerCapture',
1394
+ 'onLostPointerCapture',
1395
+ // Selection
1396
+ 'onSelect',
1397
+ // Touch
1398
+ 'onTouchCancel',
1399
+ 'onTouchEnd',
1400
+ 'onTouchMove',
1401
+ 'onTouchStart',
1402
+ // UI
1403
+ 'onScroll',
1404
+ // Wheel
1405
+ 'onWheel',
1406
+ // Media
1407
+ 'onAbort',
1408
+ 'onCanPlay',
1409
+ 'onCanPlayThrough',
1410
+ 'onDurationChange',
1411
+ 'onEmptied',
1412
+ 'onEncrypted',
1413
+ 'onEnded',
1414
+ 'onLoadedData',
1415
+ 'onLoadedMetadata',
1416
+ 'onLoadStart',
1417
+ 'onPause',
1418
+ 'onPlay',
1419
+ 'onPlaying',
1420
+ 'onProgress',
1421
+ 'onRateChange',
1422
+ 'onSeeked',
1423
+ 'onSeeking',
1424
+ 'onStalled',
1425
+ 'onSuspend',
1426
+ 'onTimeUpdate',
1427
+ 'onVolumeChange',
1428
+ 'onWaiting',
1429
+ // Image
1430
+ 'onLoad',
1431
+ 'onError',
1432
+ ]);
1433
+ const VALID_DOM_ELEMENT_ATTRS = new Set([
1434
+ ...VALID_HTML_ATTRS,
1435
+ ...VALID_TABLE_ATTRS,
1436
+ ...VALID_SVG_ATTRS,
1437
+ ...VALID_EVENT_ATTRS,
1438
+ ]);
1439
+
1440
+
1441
+ /***/ }),
1442
+
1443
+ /***/ "./src/contexts/HoneyStyleContext.ts":
1444
+ /*!*******************************************!*\
1445
+ !*** ./src/contexts/HoneyStyleContext.ts ***!
1446
+ \*******************************************/
1447
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1448
+
1449
+ __webpack_require__.r(__webpack_exports__);
1450
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1451
+ /* harmony export */ HoneyStyleContext: () => (/* binding */ HoneyStyleContext)
1452
+ /* harmony export */ });
1453
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1454
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1455
+
1456
+ const HoneyStyleContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(undefined);
1457
+
1458
+
1459
+ /***/ }),
1460
+
1461
+ /***/ "./src/contexts/index.ts":
1462
+ /*!*******************************!*\
1463
+ !*** ./src/contexts/index.ts ***!
1464
+ \*******************************/
1465
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1466
+
1467
+ __webpack_require__.r(__webpack_exports__);
1468
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1469
+ /* harmony export */ HoneyStyleContext: () => (/* reexport safe */ _HoneyStyleContext__WEBPACK_IMPORTED_MODULE_0__.HoneyStyleContext)
1470
+ /* harmony export */ });
1471
+ /* harmony import */ var _HoneyStyleContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HoneyStyleContext */ "./src/contexts/HoneyStyleContext.ts");
1472
+
1473
+
1474
+
1475
+ /***/ }),
1476
+
1477
+ /***/ "./src/css.ts":
1478
+ /*!********************!*\
1479
+ !*** ./src/css.ts ***!
1480
+ \********************/
1481
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1482
+
1483
+ __webpack_require__.r(__webpack_exports__);
1484
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1485
+ /* harmony export */ css: () => (/* binding */ css)
1486
+ /* harmony export */ });
1487
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
1488
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
1489
+
1490
+
1491
+ const resolveCssInterpolation = (value, context) => {
1492
+ if (value === '' || value === false || (0,_utils__WEBPACK_IMPORTED_MODULE_1__.isNil)(value)) {
1493
+ return '';
1494
+ }
1495
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
1496
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_1__.isStyledComponent)(value)) {
1497
+ return `.${value[_constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_STYLED_COMPONENT_ID_PROP]}`;
1498
+ }
1499
+ return resolveCssInterpolation(value(context), context);
1500
+ }
1501
+ if (Array.isArray(value)) {
1502
+ return value.map(v => resolveCssInterpolation(v, context)).join('\n');
1503
+ }
1504
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_1__.isObject)(value)) {
1505
+ return Object.entries(value)
1506
+ .filter(([, v]) => v !== undefined && v !== false)
1507
+ .map(([k, v]) => `${(0,_utils__WEBPACK_IMPORTED_MODULE_1__.toKebabCase)(k)}: ${v};`)
1508
+ .join('\n');
1509
+ }
1510
+ return value.toString?.() ?? '';
1511
+ };
1512
+ const css = (strings, ...interpolations) => {
1513
+ return (context) => strings.reduce((cssResult, str, index) => cssResult + str + resolveCssInterpolation(interpolations[index], context), '');
1514
+ };
1515
+
1516
+
1517
+ /***/ }),
1518
+
1519
+ /***/ "./src/global-style.ts":
1520
+ /*!*****************************!*\
1521
+ !*** ./src/global-style.ts ***!
1522
+ \*****************************/
1523
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1524
+
1525
+ __webpack_require__.r(__webpack_exports__);
1526
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1527
+ /* harmony export */ createGlobalStyle: () => (/* binding */ createGlobalStyle)
1528
+ /* harmony export */ });
1529
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1530
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1531
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
1532
+ /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./css */ "./src/css.ts");
1533
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
1534
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks */ "./src/hooks/index.ts");
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+ const createGlobalStyle = (strings, ...interpolations) => {
1541
+ const styleId = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.generateId)('hsg');
1542
+ const computeCss = (0,_css__WEBPACK_IMPORTED_MODULE_2__.css)(strings, ...interpolations);
1543
+ const GlobalStyle = () => {
1544
+ const { theme } = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useHoneyStyle)();
1545
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(() => {
1546
+ const rawCss = computeCss({ theme });
1547
+ const processedCss = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.processCss)(rawCss);
1548
+ const styleElement = document.createElement('style');
1549
+ styleElement.id = styleId;
1550
+ styleElement.innerHTML = processedCss;
1551
+ styleElement.setAttribute(_constants__WEBPACK_IMPORTED_MODULE_1__.HONEY_GLOBAL_STYLE_ATTR, 'true');
1552
+ document.head.insertBefore(styleElement, document.head.firstChild);
1553
+ return () => {
1554
+ styleElement.remove();
1555
+ };
1556
+ }, [theme]);
1557
+ return null;
1558
+ };
1559
+ return GlobalStyle;
1560
+ };
1561
+
1562
+
1563
+ /***/ }),
1564
+
1565
+ /***/ "./src/hooks/index.ts":
1566
+ /*!****************************!*\
1567
+ !*** ./src/hooks/index.ts ***!
1568
+ \****************************/
1569
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1570
+
1571
+ __webpack_require__.r(__webpack_exports__);
1572
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1573
+ /* harmony export */ useHoneyStyle: () => (/* reexport safe */ _use_honey_style__WEBPACK_IMPORTED_MODULE_0__.useHoneyStyle)
1574
+ /* harmony export */ });
1575
+ /* harmony import */ var _use_honey_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./use-honey-style */ "./src/hooks/use-honey-style.ts");
1576
+
1577
+
1578
+
1579
+ /***/ }),
1580
+
1581
+ /***/ "./src/hooks/use-honey-style.ts":
1582
+ /*!**************************************!*\
1583
+ !*** ./src/hooks/use-honey-style.ts ***!
1584
+ \**************************************/
1585
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1586
+
1587
+ __webpack_require__.r(__webpack_exports__);
1588
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1589
+ /* harmony export */ useHoneyStyle: () => (/* binding */ useHoneyStyle)
1590
+ /* harmony export */ });
1591
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1592
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1593
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "./src/utils.ts");
1594
+ /* harmony import */ var _contexts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../contexts */ "./src/contexts/index.ts");
1595
+
1596
+
1597
+
1598
+ const useHoneyStyle = () => {
1599
+ const context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_contexts__WEBPACK_IMPORTED_MODULE_2__.HoneyStyleContext);
1600
+ (0,_utils__WEBPACK_IMPORTED_MODULE_1__.assert)(context, 'The `useHoneyStyle()` hook must be used inside <HoneyStyleProvider/> component!');
1601
+ return context;
1602
+ };
1603
+
1604
+
1605
+ /***/ }),
1606
+
1607
+ /***/ "./src/mount-style.ts":
1608
+ /*!****************************!*\
1609
+ !*** ./src/mount-style.ts ***!
1610
+ \****************************/
1611
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1612
+
1613
+ __webpack_require__.r(__webpack_exports__);
1614
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1615
+ /* harmony export */ mountStyle: () => (/* binding */ mountStyle)
1616
+ /* harmony export */ });
1617
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
1618
+
1619
+ /**
1620
+ * Global style registry, shared across reloads and modules.
1621
+ */
1622
+ const getStyleRegistry = () => {
1623
+ if (!window.__honeyStyleRegistry) {
1624
+ window.__honeyStyleRegistry = new Map();
1625
+ }
1626
+ return window.__honeyStyleRegistry;
1627
+ };
1628
+ const styleRegistry = getStyleRegistry();
1629
+ let globalStyleTag = null;
1630
+ /**
1631
+ * Ensures a single <style> tag exists and is attached to <head>.
1632
+ *
1633
+ * @returns The <style> element.
1634
+ */
1635
+ const ensureGlobalStyleTag = () => {
1636
+ if (!globalStyleTag) {
1637
+ globalStyleTag = document.querySelector(`style[${_constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_STYLE_ATTR}="true"]`);
1638
+ if (!globalStyleTag) {
1639
+ globalStyleTag = document.createElement('style');
1640
+ globalStyleTag.setAttribute(_constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_STYLE_ATTR, 'true');
1641
+ document.head.appendChild(globalStyleTag);
1642
+ }
1643
+ }
1644
+ return globalStyleTag;
1645
+ };
1646
+ /**
1647
+ * Updates the global <style> tag with all currently active styles, sorted by priority.
1648
+ */
1649
+ const updateGlobalStyleContent = () => {
1650
+ const styleTag = ensureGlobalStyleTag();
1651
+ const allCss = Array.from(styleRegistry.entries())
1652
+ .sort(([, a], [, b]) => a.priority - b.priority)
1653
+ .map(([, entry]) => entry.css)
1654
+ .join('\n');
1655
+ styleTag.textContent = allCss;
1656
+ };
1657
+ /**
1658
+ * Creates a cleanup function for a style, which decrements usage count and removes it if unused.
1659
+ *
1660
+ * @param className - The key of the style.
1661
+ */
1662
+ const createCleanupFunction = (className) => () => {
1663
+ const entry = styleRegistry.get(className);
1664
+ if (!entry) {
1665
+ return;
1666
+ }
1667
+ entry.usages--;
1668
+ if (entry.usages <= 0) {
1669
+ styleRegistry.delete(className);
1670
+ updateGlobalStyleContent();
1671
+ }
1672
+ };
1673
+ /**
1674
+ * Mounts a CSS string under a given class name. Injects into a global <style> tag and manages its lifecycle.
1675
+ *
1676
+ * @param className - Unique identifier for the style block.
1677
+ * @param css - Full CSS rule string (can include multiple rules, media queries, etc.)
1678
+ * @param priority - Optional number to determine style ordering (lower = earlier = lower specificity)
1679
+ *
1680
+ * @returns A cleanup function to unmount the style when it's no longer needed.
1681
+ */
1682
+ const mountStyle = (className, css, priority = 0) => {
1683
+ const existing = styleRegistry.get(className);
1684
+ if (existing) {
1685
+ existing.usages++;
1686
+ return createCleanupFunction(className);
1687
+ }
1688
+ styleRegistry.set(className, {
1689
+ css,
1690
+ priority,
1691
+ usages: 1,
1692
+ });
1693
+ updateGlobalStyleContent();
1694
+ return createCleanupFunction(className);
1695
+ };
1696
+
1697
+
1698
+ /***/ }),
1699
+
1700
+ /***/ "./src/providers/HoneyStyleProvider.tsx":
1701
+ /*!**********************************************!*\
1702
+ !*** ./src/providers/HoneyStyleProvider.tsx ***!
1703
+ \**********************************************/
1704
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1705
+
1706
+ __webpack_require__.r(__webpack_exports__);
1707
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1708
+ /* harmony export */ HoneyStyleProvider: () => (/* binding */ HoneyStyleProvider)
1709
+ /* harmony export */ });
1710
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
1711
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
1712
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1713
+ /* harmony import */ var _contexts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../contexts */ "./src/contexts/index.ts");
1714
+
1715
+
1716
+
1717
+ const HoneyStyleProvider = ({ children, theme, }) => {
1718
+ const contextValue = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
1719
+ theme,
1720
+ }), [theme]);
1721
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_contexts__WEBPACK_IMPORTED_MODULE_2__.HoneyStyleContext, { value: contextValue, children: children });
1722
+ };
1723
+
1724
+
1725
+ /***/ }),
1726
+
1727
+ /***/ "./src/providers/index.ts":
1728
+ /*!********************************!*\
1729
+ !*** ./src/providers/index.ts ***!
1730
+ \********************************/
1731
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1732
+
1733
+ __webpack_require__.r(__webpack_exports__);
1734
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1735
+ /* harmony export */ HoneyStyleProvider: () => (/* reexport safe */ _HoneyStyleProvider__WEBPACK_IMPORTED_MODULE_0__.HoneyStyleProvider)
1736
+ /* harmony export */ });
1737
+ /* harmony import */ var _HoneyStyleProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HoneyStyleProvider */ "./src/providers/HoneyStyleProvider.tsx");
1738
+
1739
+
1740
+
1741
+ /***/ }),
1742
+
1743
+ /***/ "./src/styled.ts":
1744
+ /*!***********************!*\
1745
+ !*** ./src/styled.ts ***!
1746
+ \***********************/
1747
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1748
+
1749
+ __webpack_require__.r(__webpack_exports__);
1750
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1751
+ /* harmony export */ styled: () => (/* binding */ styled)
1752
+ /* harmony export */ });
1753
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1754
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1755
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
1756
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
1757
+ /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./css */ "./src/css.ts");
1758
+ /* harmony import */ var _mount_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mount-style */ "./src/mount-style.ts");
1759
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks */ "./src/hooks/index.ts");
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+ const evaluateDynamicCss = (interpolation, context) => {
1767
+ if (!interpolation) {
1768
+ return '';
1769
+ }
1770
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isString)(interpolation)) {
1771
+ return interpolation;
1772
+ }
1773
+ // @ts-expect-error
1774
+ return (0,_css__WEBPACK_IMPORTED_MODULE_3__.css)([''], [interpolation])(context);
1775
+ };
1776
+ const styled = (target, defaultProps) => {
1777
+ return (strings, ...interpolations) => {
1778
+ const componentId = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.generateId)('hsc');
1779
+ const computeCss = (0,_css__WEBPACK_IMPORTED_MODULE_3__.css)(strings, ...interpolations);
1780
+ const StyledComponent = ({ as, className, __compositionDepth = 0, css: cssProp, ...props }) => {
1781
+ if (_constants__WEBPACK_IMPORTED_MODULE_1__.__DEV__ && cssProp) {
1782
+ console.warn(`[@react-hive/honey-style]: The "css" prop is deprecated. Please use inheritance or composition instead.`);
1783
+ }
1784
+ const { theme } = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useHoneyStyle)();
1785
+ const cleanedProps = Object.fromEntries(Object.entries(props).filter(([, value]) => value !== undefined));
1786
+ const resolvedDefaultProps = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isFunction)(defaultProps)
1787
+ ? defaultProps({ theme, as, className, ...cleanedProps })
1788
+ : (defaultProps ?? {});
1789
+ const context = {
1790
+ ...resolvedDefaultProps,
1791
+ ...cleanedProps,
1792
+ theme,
1793
+ };
1794
+ const rawCss = computeCss(context);
1795
+ const baseClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.resolveClassName)(rawCss);
1796
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(() => {
1797
+ const baseCss = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.processCss)(rawCss, `.${baseClassName}`);
1798
+ return (0,_mount_style__WEBPACK_IMPORTED_MODULE_4__.mountStyle)(baseClassName, baseCss, __compositionDepth);
1799
+ }, [baseClassName]);
1800
+ const cssPropRaw = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isFunction)(cssProp) ? cssProp(context) : cssProp;
1801
+ const cssPropString = evaluateDynamicCss(cssPropRaw, context);
1802
+ const cssPropClassName = cssPropString ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.resolveClassName)(cssPropString) : '';
1803
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(() => {
1804
+ if (cssPropClassName) {
1805
+ const overrideCss = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.processCss)(cssPropString, `.${cssPropClassName}`);
1806
+ return (0,_mount_style__WEBPACK_IMPORTED_MODULE_4__.mountStyle)(cssPropClassName, overrideCss, 1);
1807
+ }
1808
+ }, [cssPropClassName]);
1809
+ const mergedProps = {
1810
+ ...resolvedDefaultProps,
1811
+ ...cleanedProps,
1812
+ className: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.combineClassNames)([componentId, baseClassName, className, cssPropClassName]),
1813
+ };
1814
+ const finalComponent = as || target;
1815
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isString)(target)) {
1816
+ const filteredProps = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isString)(finalComponent)
1817
+ ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.filterNonHtmlAttrs)(mergedProps)
1818
+ : mergedProps;
1819
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(finalComponent, filteredProps);
1820
+ }
1821
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(target, {
1822
+ ...mergedProps,
1823
+ ...(as && { as }),
1824
+ ...((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isStyledComponent)(target) && {
1825
+ __compositionDepth: __compositionDepth - 1,
1826
+ }),
1827
+ });
1828
+ };
1829
+ StyledComponent[_constants__WEBPACK_IMPORTED_MODULE_1__.HONEY_STYLED_COMPONENT_ID_PROP] = componentId;
1830
+ if (_constants__WEBPACK_IMPORTED_MODULE_1__.__DEV__) {
1831
+ const componentName = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isString)(target)
1832
+ ? target
1833
+ : target.displayName || target.name || 'Component';
1834
+ StyledComponent.displayName = `HoneyStyledComponent(${componentName})`;
1835
+ }
1836
+ return StyledComponent;
1837
+ };
1838
+ };
1839
+
1840
+
1841
+ /***/ }),
1842
+
1843
+ /***/ "./src/types/css.types.ts":
1844
+ /*!********************************!*\
1845
+ !*** ./src/types/css.types.ts ***!
1846
+ \********************************/
1847
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1848
+
1849
+ __webpack_require__.r(__webpack_exports__);
1850
+
1851
+
1852
+
1853
+ /***/ }),
1854
+
1855
+ /***/ "./src/types/index.ts":
1856
+ /*!****************************!*\
1857
+ !*** ./src/types/index.ts ***!
1858
+ \****************************/
1859
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1860
+
1861
+ __webpack_require__.r(__webpack_exports__);
1862
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ "./src/types/types.ts");
1863
+ /* harmony import */ var _css_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css.types */ "./src/types/css.types.ts");
1864
+
1865
+
1866
+
1867
+
1868
+ /***/ }),
1869
+
1870
+ /***/ "./src/types/types.ts":
1871
+ /*!****************************!*\
1872
+ !*** ./src/types/types.ts ***!
1873
+ \****************************/
1874
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1875
+
1876
+ __webpack_require__.r(__webpack_exports__);
1877
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../constants */ "./src/constants.ts");
1878
+
1879
+
1880
+
1881
+ /***/ }),
1882
+
1883
+ /***/ "./src/utils.ts":
1884
+ /*!**********************!*\
1885
+ !*** ./src/utils.ts ***!
1886
+ \**********************/
1887
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1888
+
1889
+ __webpack_require__.r(__webpack_exports__);
1890
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1891
+ /* harmony export */ assert: () => (/* binding */ assert),
1892
+ /* harmony export */ combineClassNames: () => (/* binding */ combineClassNames),
1893
+ /* harmony export */ filterNonHtmlAttrs: () => (/* binding */ filterNonHtmlAttrs),
1894
+ /* harmony export */ generateId: () => (/* binding */ generateId),
1895
+ /* harmony export */ isFunction: () => (/* binding */ isFunction),
1896
+ /* harmony export */ isNil: () => (/* binding */ isNil),
1897
+ /* harmony export */ isObject: () => (/* binding */ isObject),
1898
+ /* harmony export */ isString: () => (/* binding */ isString),
1899
+ /* harmony export */ isStyledComponent: () => (/* binding */ isStyledComponent),
1900
+ /* harmony export */ mediaQuery: () => (/* binding */ mediaQuery),
1901
+ /* harmony export */ processCss: () => (/* binding */ processCss),
1902
+ /* harmony export */ resolveClassName: () => (/* binding */ resolveClassName),
1903
+ /* harmony export */ toKebabCase: () => (/* binding */ toKebabCase)
1904
+ /* harmony export */ });
1905
+ /* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Serializer.js");
1906
+ /* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Parser.js");
1907
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
1908
+
1909
+
1910
+ function assert(condition, message) {
1911
+ if (!condition) {
1912
+ throw new Error(message);
1913
+ }
1914
+ }
1915
+ const generateId = (prefix) => `${prefix}-${Math.random().toString(36).slice(2, 8)}`;
1916
+ const toKebabCase = (str) => str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
1917
+ const isString = (value) => typeof value === 'string';
1918
+ const isObject = (value) => typeof value === 'object';
1919
+ const isFunction = (value) => typeof value === 'function';
1920
+ /**
1921
+ * Checks if a value is null or undefined.
1922
+ *
1923
+ * @param value - The value to check.
1924
+ *
1925
+ * @returns `true` if the value is `null` or `undefined`, otherwise `false`.
1926
+ */
1927
+ const isNil = (value) => value === undefined || value === null;
1928
+ /**
1929
+ * Generates a short, consistent hash string from an input string using a DJB2-inspired algorithm.
1930
+ *
1931
+ * This function uses a variation of the DJB2 algorithm, which is a simple yet effective hashing algorithm
1932
+ * based on bitwise XOR (`^`) and multiplication by 33. It produces a non-negative 32-bit integer,
1933
+ * which is then converted to a base-36 string (digits + lowercase letters) to produce a compact output.
1934
+ *
1935
+ * Useful for:
1936
+ * - Generating stable class names in CSS-in-JS libraries.
1937
+ * - Producing consistent cache keys.
1938
+ * - Quick and lightweight hashing needs where cryptographic security is not required.
1939
+ *
1940
+ * ⚠️ This is not cryptographically secure and should not be used for hashing passwords or sensitive data.
1941
+ *
1942
+ * @param str - The input string to hash.
1943
+ *
1944
+ * @returns A short, base-36 encoded hash string.
1945
+ *
1946
+ * @example
1947
+ * ```ts
1948
+ * const className = hashString('background-color: red;');
1949
+ * // → 'e4k1z0x'
1950
+ * ```
1951
+ */
1952
+ const hashString = (str) => {
1953
+ let hash = 5381;
1954
+ for (let i = 0; i < str.length; i++) {
1955
+ hash = (hash * 33) ^ str.charCodeAt(i);
1956
+ }
1957
+ return (hash >>> 0).toString(36);
1958
+ };
1959
+ /**
1960
+ * Combines multiple class names into a single space-separated string
1961
+ *
1962
+ * @param classNames - Array of class names to combine
1963
+ */
1964
+ const combineClassNames = (classNames) => classNames.filter(Boolean).join(' ').trim();
1965
+ const resolveClassName = (css) => `hscn-${hashString(css)}`;
1966
+ const isStyledComponent = (component) => _constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_STYLED_COMPONENT_ID_PROP in component;
1967
+ const processCss = (rawCss, selector) => {
1968
+ const scopedCss = selector ? `${selector}{${rawCss}}` : rawCss;
1969
+ return (0,stylis__WEBPACK_IMPORTED_MODULE_1__.serialize)((0,stylis__WEBPACK_IMPORTED_MODULE_2__.compile)(scopedCss), stylis__WEBPACK_IMPORTED_MODULE_1__.stringify);
1970
+ };
1971
+ /**
1972
+ * Filters out non-standard HTML attributes from a props object intended for a native HTML element.
1973
+ *
1974
+ * Retains only valid DOM attributes, including standard HTML attributes and
1975
+ * custom `data-*` or `aria-*` attributes. This helps avoid React warnings due to
1976
+ * invalid props and ensures clean, valid HTML output.
1977
+ *
1978
+ * This function is typically used when rendering polymorphic or styled components
1979
+ * that may receive non-standard props, but only valid attributes should be passed
1980
+ * to underlying DOM elements.
1981
+ *
1982
+ * @template Attrs - The type of the attributes object.
1983
+ *
1984
+ * @param attrs - An object representing all props passed to a component.
1985
+ *
1986
+ * @returns A new object containing only props that are safe and valid for use on native DOM elements.
1987
+ */
1988
+ const filterNonHtmlAttrs = (attrs) => Object.entries(attrs).reduce((allowedAttrs, [name, value]) => {
1989
+ if (_constants__WEBPACK_IMPORTED_MODULE_0__.VALID_DOM_ELEMENT_ATTRS.has(name) || name.startsWith('data-') || name.startsWith('aria-')) {
1990
+ allowedAttrs[name] = value;
1991
+ }
1992
+ return allowedAttrs;
1993
+ }, {});
1994
+ /**
1995
+ * Constructs a complete `@media` query string from an array of media rule objects.
1996
+ * Each rule defines conditions such as screen size, orientation, or resolution,
1997
+ * which are converted into standard CSS media query syntax.
1998
+ *
1999
+ * @param rules - An array of media rule objects used to generate individual media queries.
2000
+ *
2001
+ * @returns A string containing a full `@media` query that can be used in CSS or injected into a stylesheet.
2002
+ *
2003
+ * @example
2004
+ * ```ts
2005
+ * atMedia([
2006
+ * { minWidth: '768px', orientation: 'landscape' },
2007
+ * { mediaType: 'print' }
2008
+ * ]);
2009
+ * // Returns: "@media screen and (min-width: 768px) and (orientation: landscape), print"
2010
+ * ```
2011
+ */
2012
+ const mediaQuery = (rules) => {
2013
+ const mediaRules = rules.map(rule => {
2014
+ const conditions = [
2015
+ rule.width && ['width', rule.width],
2016
+ rule.minWidth && ['min-width', rule.minWidth],
2017
+ rule.maxWidth && ['max-width', rule.maxWidth],
2018
+ rule.height && ['height', rule.height],
2019
+ rule.minHeight && ['min-height', rule.minHeight],
2020
+ rule.maxHeight && ['max-height', rule.maxHeight],
2021
+ rule.orientation && ['orientation', rule.orientation],
2022
+ rule.minResolution && ['min-resolution', rule.minResolution],
2023
+ rule.maxResolution && ['max-resolution', rule.maxResolution],
2024
+ rule.resolution && ['resolution', rule.resolution],
2025
+ rule.update && ['update', rule.update],
2026
+ ]
2027
+ .filter(Boolean)
2028
+ .map(r => r && `(${r[0]}: ${r[1]})`)
2029
+ .join(' and ');
2030
+ const operatorPart = rule.operator ? `${rule.operator} ` : '';
2031
+ const conditionsPart = conditions ? ` and ${conditions}` : '';
2032
+ return `${operatorPart}${rule.mediaType ?? 'screen'}${conditionsPart}`;
2033
+ });
2034
+ return `@media ${mediaRules.join(', ')}`;
2035
+ };
2036
+
2037
+
2038
+ /***/ }),
2039
+
2040
+ /***/ "react":
2041
+ /*!************************!*\
2042
+ !*** external "react" ***!
2043
+ \************************/
2044
+ /***/ ((module) => {
2045
+
2046
+ module.exports = require("react");
2047
+
2048
+ /***/ })
2049
+
2050
+ /******/ });
2051
+ /************************************************************************/
2052
+ /******/ // The module cache
2053
+ /******/ var __webpack_module_cache__ = {};
2054
+ /******/
2055
+ /******/ // The require function
2056
+ /******/ function __webpack_require__(moduleId) {
2057
+ /******/ // Check if module is in cache
2058
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
2059
+ /******/ if (cachedModule !== undefined) {
2060
+ /******/ return cachedModule.exports;
2061
+ /******/ }
2062
+ /******/ // Create a new module (and put it into the cache)
2063
+ /******/ var module = __webpack_module_cache__[moduleId] = {
2064
+ /******/ // no module.id needed
2065
+ /******/ // no module.loaded needed
2066
+ /******/ exports: {}
2067
+ /******/ };
2068
+ /******/
2069
+ /******/ // Execute the module function
2070
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2071
+ /******/
2072
+ /******/ // Return the exports of the module
2073
+ /******/ return module.exports;
2074
+ /******/ }
2075
+ /******/
2076
+ /************************************************************************/
2077
+ /******/ /* webpack/runtime/compat get default export */
2078
+ /******/ (() => {
2079
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
2080
+ /******/ __webpack_require__.n = (module) => {
2081
+ /******/ var getter = module && module.__esModule ?
2082
+ /******/ () => (module['default']) :
2083
+ /******/ () => (module);
2084
+ /******/ __webpack_require__.d(getter, { a: getter });
2085
+ /******/ return getter;
2086
+ /******/ };
2087
+ /******/ })();
2088
+ /******/
2089
+ /******/ /* webpack/runtime/define property getters */
2090
+ /******/ (() => {
2091
+ /******/ // define getter functions for harmony exports
2092
+ /******/ __webpack_require__.d = (exports, definition) => {
2093
+ /******/ for(var key in definition) {
2094
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2095
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2096
+ /******/ }
2097
+ /******/ }
2098
+ /******/ };
2099
+ /******/ })();
2100
+ /******/
2101
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
2102
+ /******/ (() => {
2103
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2104
+ /******/ })();
2105
+ /******/
2106
+ /******/ /* webpack/runtime/make namespace object */
2107
+ /******/ (() => {
2108
+ /******/ // define __esModule on exports
2109
+ /******/ __webpack_require__.r = (exports) => {
2110
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2111
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2112
+ /******/ }
2113
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
2114
+ /******/ };
2115
+ /******/ })();
2116
+ /******/
2117
+ /************************************************************************/
2118
+ var __webpack_exports__ = {};
2119
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
2120
+ (() => {
2121
+ /*!**********************!*\
2122
+ !*** ./src/index.ts ***!
2123
+ \**********************/
2124
+ __webpack_require__.r(__webpack_exports__);
2125
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2126
+ /* harmony export */ HONEY_BREAKPOINTS: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_BREAKPOINTS),
2127
+ /* harmony export */ HONEY_GLOBAL_STYLE_ATTR: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_GLOBAL_STYLE_ATTR),
2128
+ /* harmony export */ HONEY_STYLED_COMPONENT_ID_PROP: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_STYLED_COMPONENT_ID_PROP),
2129
+ /* harmony export */ HONEY_STYLE_ATTR: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.HONEY_STYLE_ATTR),
2130
+ /* harmony export */ HoneyStyleContext: () => (/* reexport safe */ _contexts__WEBPACK_IMPORTED_MODULE_1__.HoneyStyleContext),
2131
+ /* harmony export */ HoneyStyleProvider: () => (/* reexport safe */ _providers__WEBPACK_IMPORTED_MODULE_2__.HoneyStyleProvider),
2132
+ /* harmony export */ VALID_DOM_ELEMENT_ATTRS: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.VALID_DOM_ELEMENT_ATTRS),
2133
+ /* harmony export */ __DEV__: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.__DEV__),
2134
+ /* harmony export */ createGlobalStyle: () => (/* reexport safe */ _global_style__WEBPACK_IMPORTED_MODULE_6__.createGlobalStyle),
2135
+ /* harmony export */ css: () => (/* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_5__.css),
2136
+ /* harmony export */ styled: () => (/* reexport safe */ _styled__WEBPACK_IMPORTED_MODULE_7__.styled),
2137
+ /* harmony export */ useHoneyStyle: () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_3__.useHoneyStyle)
2138
+ /* harmony export */ });
2139
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
2140
+ /* harmony import */ var _contexts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./contexts */ "./src/contexts/index.ts");
2141
+ /* harmony import */ var _providers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./providers */ "./src/providers/index.ts");
2142
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hooks */ "./src/hooks/index.ts");
2143
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./types */ "./src/types/index.ts");
2144
+ /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./css */ "./src/css.ts");
2145
+ /* harmony import */ var _global_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./global-style */ "./src/global-style.ts");
2146
+ /* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./styled */ "./src/styled.ts");
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+ })();
2157
+
2158
+ module.exports = __webpack_exports__;
2159
+ /******/ })()
2160
+ ;
2161
+ //# sourceMappingURL=index.dev.cjs.map