opus-toolkit-components 1.9.9 → 2.0.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.
Files changed (41) hide show
  1. package/lib/components/BarLayout/index.js +125 -0
  2. package/lib/components/BarLayout/index.js.map +1 -0
  3. package/lib/components/Callout/index.js +1092 -0
  4. package/lib/components/Callout/index.js.map +1 -0
  5. package/lib/components/Cookie/index.js +4601 -0
  6. package/lib/components/Cookie/index.js.map +1 -0
  7. package/lib/components/Footer/index.js +705 -0
  8. package/lib/components/Footer/index.js.map +1 -0
  9. package/lib/components/FooterLogo/index.js +608 -0
  10. package/lib/components/FooterLogo/index.js.map +1 -0
  11. package/lib/components/Forms/Checkbox/index.js +347 -0
  12. package/lib/components/Forms/Checkbox/index.js.map +1 -0
  13. package/lib/components/Forms/FilterPopover/index.js +658 -0
  14. package/lib/components/Forms/FilterPopover/index.js.map +1 -0
  15. package/lib/components/Forms/ToggleSwitch/index.js +336 -0
  16. package/lib/components/Forms/ToggleSwitch/index.js.map +1 -0
  17. package/lib/components/Header/index.js +312 -0
  18. package/lib/components/Header/index.js.map +1 -0
  19. package/lib/components/Icon/Icon.d.ts +25 -0
  20. package/lib/components/Icon/index.d.ts +17 -14
  21. package/lib/components/Icon/index.js +359 -0
  22. package/lib/components/Icon/index.js.map +1 -0
  23. package/lib/components/IconButton/index.js +461 -0
  24. package/lib/components/IconButton/index.js.map +1 -0
  25. package/lib/components/Link/index.js +4 -4
  26. package/lib/components/Loader/index.js +297 -0
  27. package/lib/components/Loader/index.js.map +1 -0
  28. package/lib/components/Navbar/index.js +615 -0
  29. package/lib/components/Navbar/index.js.map +1 -0
  30. package/lib/components/PageTemplate/index.js +2153 -0
  31. package/lib/components/PageTemplate/index.js.map +1 -0
  32. package/lib/components/Profile/ProfileCard/index.js +339 -0
  33. package/lib/components/Profile/ProfileCard/index.js.map +1 -0
  34. package/lib/components/Sidebar/index.js +1743 -0
  35. package/lib/components/Sidebar/index.js.map +1 -0
  36. package/lib/components/Text/index.js +214 -0
  37. package/lib/components/Text/index.js.map +1 -0
  38. package/lib/index.d.ts +1 -1
  39. package/lib/main.js +1558 -39242
  40. package/lib/main.js.map +1 -1
  41. package/package.json +6 -3
@@ -0,0 +1,705 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ 7779
6
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7
+
8
+ __webpack_require__.r(__webpack_exports__);
9
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
11
+ /* harmony export */ });
12
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4178);
13
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
14
+
15
+ /**
16
+ * @typedef {Object} BarLayoutProps
17
+ * @property {React.ReactNode} [left] Left content area
18
+ * @property {React.ReactNode} [center] Center content area
19
+ * @property {React.ReactNode} [right] Right content area
20
+ * @property {string} [className] Optional wrapper class
21
+ */
22
+
23
+ /**
24
+ * @param {BarLayoutProps} props
25
+ */
26
+
27
+ const BarLayout = _ref => {
28
+ let {
29
+ left,
30
+ center,
31
+ right,
32
+ className = ""
33
+ } = _ref;
34
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
35
+ className: `flex w-full items-center justify-between ${className}`,
36
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
37
+ className: "flex-1",
38
+ children: left
39
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
40
+ className: "flex-auto text-center",
41
+ children: center
42
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
43
+ className: "flex flex-1 justify-end",
44
+ children: right
45
+ })]
46
+ });
47
+ };
48
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BarLayout);
49
+
50
+ /***/ },
51
+
52
+ /***/ 9465
53
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
54
+
55
+ __webpack_require__.r(__webpack_exports__);
56
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
57
+ /* harmony export */ "default": () => (/* binding */ FooterLogo)
58
+ /* harmony export */ });
59
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9206);
60
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
61
+ /* harmony import */ var opus_toolkit_styles_assets_logos_opus_light_logo_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2757);
62
+ /* harmony import */ var opus_toolkit_styles_assets_logos_opus_light_logo_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(opus_toolkit_styles_assets_logos_opus_light_logo_svg__WEBPACK_IMPORTED_MODULE_1__);
63
+ /* harmony import */ var opus_toolkit_styles_assets_logos_opus_dark_logo_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(463);
64
+ /* harmony import */ var opus_toolkit_styles_assets_logos_opus_dark_logo_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(opus_toolkit_styles_assets_logos_opus_dark_logo_svg__WEBPACK_IMPORTED_MODULE_2__);
65
+ /* harmony import */ var _footer_logo_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1518);
66
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4178);
67
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
68
+
69
+
70
+
71
+
72
+
73
+ /**
74
+ * Props for the FooterLogo component.
75
+ *
76
+ * @typedef {Object} FooterLogoProps
77
+ *
78
+ * @property {string} [href]
79
+ * Optional link target for the logo.
80
+ *
81
+ * @property {string} [className]
82
+ * Optional wrapper class names.
83
+ */
84
+
85
+ /**
86
+ * Theme-aware company logo for footer usage.
87
+ *
88
+ * @param {FooterLogoProps & React.HTMLAttributes<HTMLDivElement>} props
89
+ */
90
+
91
+ function FooterLogo(_ref) {
92
+ let {
93
+ href = "/",
94
+ className = "",
95
+ ...rest
96
+ } = _ref;
97
+ const content = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
98
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", {
99
+ src: (opus_toolkit_styles_assets_logos_opus_light_logo_svg__WEBPACK_IMPORTED_MODULE_1___default()),
100
+ alt: "Opus logo",
101
+ className: "footer-logo-light h-10 w-auto"
102
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", {
103
+ src: (opus_toolkit_styles_assets_logos_opus_dark_logo_svg__WEBPACK_IMPORTED_MODULE_2___default()),
104
+ alt: "Opus logo",
105
+ className: "footer-logo-dark h-10 w-auto"
106
+ })]
107
+ });
108
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", {
109
+ className: `footer-logo inline-flex items-center ${className}`,
110
+ ...rest,
111
+ children: href ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", {
112
+ href: href,
113
+ className: "inline-flex items-center",
114
+ "aria-label": "Opus home",
115
+ children: content
116
+ }) : content
117
+ });
118
+ }
119
+
120
+ /***/ },
121
+
122
+ /***/ 4945
123
+ (module, __webpack_exports__, __webpack_require__) {
124
+
125
+ __webpack_require__.r(__webpack_exports__);
126
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
127
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
128
+ /* harmony export */ });
129
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1354);
130
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
131
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
132
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
133
+ // Imports
134
+
135
+
136
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
137
+ // Module
138
+ ___CSS_LOADER_EXPORT___.push([module.id, `.footer-logo-light{display:inline-block}.footer-logo-dark{display:none}:where(html,div)[data-theme=dark] .footer-logo-light{display:none}:where(html,div)[data-theme=dark] .footer-logo-dark{display:inline-block}`, "",{"version":3,"sources":["webpack://./src/components/FooterLogo/footer-logo.scss"],"names":[],"mappings":"AAAA,mBACE,oBAAA,CAGF,kBACE,YAAA,CAGF,qDACE,YAAA,CAGF,oDACE,oBAAA","sourcesContent":[".footer-logo-light {\r\n display: inline-block;\r\n}\r\n\r\n.footer-logo-dark {\r\n display: none;\r\n}\r\n\r\n:where(html, div)[data-theme=\"dark\"] .footer-logo-light {\r\n display: none;\r\n}\r\n\r\n:where(html, div)[data-theme=\"dark\"] .footer-logo-dark {\r\n display: inline-block;\r\n}\r\n"],"sourceRoot":""}]);
139
+ // Exports
140
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
141
+
142
+
143
+ /***/ },
144
+
145
+ /***/ 6314
146
+ (module) {
147
+
148
+
149
+
150
+ /*
151
+ MIT License http://www.opensource.org/licenses/mit-license.php
152
+ Author Tobias Koppers @sokra
153
+ */
154
+ module.exports = function (cssWithMappingToString) {
155
+ var list = [];
156
+
157
+ // return the list of modules as css string
158
+ list.toString = function toString() {
159
+ return this.map(function (item) {
160
+ var content = "";
161
+ var needLayer = typeof item[5] !== "undefined";
162
+ if (item[4]) {
163
+ content += "@supports (".concat(item[4], ") {");
164
+ }
165
+ if (item[2]) {
166
+ content += "@media ".concat(item[2], " {");
167
+ }
168
+ if (needLayer) {
169
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
170
+ }
171
+ content += cssWithMappingToString(item);
172
+ if (needLayer) {
173
+ content += "}";
174
+ }
175
+ if (item[2]) {
176
+ content += "}";
177
+ }
178
+ if (item[4]) {
179
+ content += "}";
180
+ }
181
+ return content;
182
+ }).join("");
183
+ };
184
+
185
+ // import a list of modules into the list
186
+ list.i = function i(modules, media, dedupe, supports, layer) {
187
+ if (typeof modules === "string") {
188
+ modules = [[null, modules, undefined]];
189
+ }
190
+ var alreadyImportedModules = {};
191
+ if (dedupe) {
192
+ for (var k = 0; k < this.length; k++) {
193
+ var id = this[k][0];
194
+ if (id != null) {
195
+ alreadyImportedModules[id] = true;
196
+ }
197
+ }
198
+ }
199
+ for (var _k = 0; _k < modules.length; _k++) {
200
+ var item = [].concat(modules[_k]);
201
+ if (dedupe && alreadyImportedModules[item[0]]) {
202
+ continue;
203
+ }
204
+ if (typeof layer !== "undefined") {
205
+ if (typeof item[5] === "undefined") {
206
+ item[5] = layer;
207
+ } else {
208
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
209
+ item[5] = layer;
210
+ }
211
+ }
212
+ if (media) {
213
+ if (!item[2]) {
214
+ item[2] = media;
215
+ } else {
216
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
217
+ item[2] = media;
218
+ }
219
+ }
220
+ if (supports) {
221
+ if (!item[4]) {
222
+ item[4] = "".concat(supports);
223
+ } else {
224
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
225
+ item[4] = supports;
226
+ }
227
+ }
228
+ list.push(item);
229
+ }
230
+ };
231
+ return list;
232
+ };
233
+
234
+ /***/ },
235
+
236
+ /***/ 1354
237
+ (module) {
238
+
239
+
240
+
241
+ module.exports = function (item) {
242
+ var content = item[1];
243
+ var cssMapping = item[3];
244
+ if (!cssMapping) {
245
+ return content;
246
+ }
247
+ if (typeof btoa === "function") {
248
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
249
+ var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
250
+ var sourceMapping = "/*# ".concat(data, " */");
251
+ return [content].concat([sourceMapping]).join("\n");
252
+ }
253
+ return [content].join("\n");
254
+ };
255
+
256
+ /***/ },
257
+
258
+ /***/ 1518
259
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
260
+
261
+ __webpack_require__.r(__webpack_exports__);
262
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
263
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
264
+ /* harmony export */ });
265
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
266
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
267
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7825);
268
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
269
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
270
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
271
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
272
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
273
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
274
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
275
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1113);
276
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
277
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_footer_logo_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4945);
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+ var options = {};
290
+
291
+ options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
292
+ options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
293
+ options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
294
+ options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
295
+ options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
296
+
297
+ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_footer_logo_scss__WEBPACK_IMPORTED_MODULE_6__["default"], options);
298
+
299
+
300
+
301
+
302
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_footer_logo_scss__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_footer_logo_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_footer_logo_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);
303
+
304
+
305
+ /***/ },
306
+
307
+ /***/ 5072
308
+ (module) {
309
+
310
+
311
+
312
+ var stylesInDOM = [];
313
+ function getIndexByIdentifier(identifier) {
314
+ var result = -1;
315
+ for (var i = 0; i < stylesInDOM.length; i++) {
316
+ if (stylesInDOM[i].identifier === identifier) {
317
+ result = i;
318
+ break;
319
+ }
320
+ }
321
+ return result;
322
+ }
323
+ function modulesToDom(list, options) {
324
+ var idCountMap = {};
325
+ var identifiers = [];
326
+ for (var i = 0; i < list.length; i++) {
327
+ var item = list[i];
328
+ var id = options.base ? item[0] + options.base : item[0];
329
+ var count = idCountMap[id] || 0;
330
+ var identifier = "".concat(id, " ").concat(count);
331
+ idCountMap[id] = count + 1;
332
+ var indexByIdentifier = getIndexByIdentifier(identifier);
333
+ var obj = {
334
+ css: item[1],
335
+ media: item[2],
336
+ sourceMap: item[3],
337
+ supports: item[4],
338
+ layer: item[5]
339
+ };
340
+ if (indexByIdentifier !== -1) {
341
+ stylesInDOM[indexByIdentifier].references++;
342
+ stylesInDOM[indexByIdentifier].updater(obj);
343
+ } else {
344
+ var updater = addElementStyle(obj, options);
345
+ options.byIndex = i;
346
+ stylesInDOM.splice(i, 0, {
347
+ identifier: identifier,
348
+ updater: updater,
349
+ references: 1
350
+ });
351
+ }
352
+ identifiers.push(identifier);
353
+ }
354
+ return identifiers;
355
+ }
356
+ function addElementStyle(obj, options) {
357
+ var api = options.domAPI(options);
358
+ api.update(obj);
359
+ var updater = function updater(newObj) {
360
+ if (newObj) {
361
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
362
+ return;
363
+ }
364
+ api.update(obj = newObj);
365
+ } else {
366
+ api.remove();
367
+ }
368
+ };
369
+ return updater;
370
+ }
371
+ module.exports = function (list, options) {
372
+ options = options || {};
373
+ list = list || [];
374
+ var lastIdentifiers = modulesToDom(list, options);
375
+ return function update(newList) {
376
+ newList = newList || [];
377
+ for (var i = 0; i < lastIdentifiers.length; i++) {
378
+ var identifier = lastIdentifiers[i];
379
+ var index = getIndexByIdentifier(identifier);
380
+ stylesInDOM[index].references--;
381
+ }
382
+ var newLastIdentifiers = modulesToDom(newList, options);
383
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
384
+ var _identifier = lastIdentifiers[_i];
385
+ var _index = getIndexByIdentifier(_identifier);
386
+ if (stylesInDOM[_index].references === 0) {
387
+ stylesInDOM[_index].updater();
388
+ stylesInDOM.splice(_index, 1);
389
+ }
390
+ }
391
+ lastIdentifiers = newLastIdentifiers;
392
+ };
393
+ };
394
+
395
+ /***/ },
396
+
397
+ /***/ 7659
398
+ (module) {
399
+
400
+
401
+
402
+ var memo = {};
403
+
404
+ /* istanbul ignore next */
405
+ function getTarget(target) {
406
+ if (typeof memo[target] === "undefined") {
407
+ var styleTarget = document.querySelector(target);
408
+
409
+ // Special case to return head of iframe instead of iframe itself
410
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
411
+ try {
412
+ // This will throw an exception if access to iframe is blocked
413
+ // due to cross-origin restrictions
414
+ styleTarget = styleTarget.contentDocument.head;
415
+ } catch (e) {
416
+ // istanbul ignore next
417
+ styleTarget = null;
418
+ }
419
+ }
420
+ memo[target] = styleTarget;
421
+ }
422
+ return memo[target];
423
+ }
424
+
425
+ /* istanbul ignore next */
426
+ function insertBySelector(insert, style) {
427
+ var target = getTarget(insert);
428
+ if (!target) {
429
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
430
+ }
431
+ target.appendChild(style);
432
+ }
433
+ module.exports = insertBySelector;
434
+
435
+ /***/ },
436
+
437
+ /***/ 540
438
+ (module) {
439
+
440
+
441
+
442
+ /* istanbul ignore next */
443
+ function insertStyleElement(options) {
444
+ var element = document.createElement("style");
445
+ options.setAttributes(element, options.attributes);
446
+ options.insert(element, options.options);
447
+ return element;
448
+ }
449
+ module.exports = insertStyleElement;
450
+
451
+ /***/ },
452
+
453
+ /***/ 5056
454
+ (module, __unused_webpack_exports, __webpack_require__) {
455
+
456
+
457
+
458
+ /* istanbul ignore next */
459
+ function setAttributesWithoutAttributes(styleElement) {
460
+ var nonce = true ? __webpack_require__.nc : 0;
461
+ if (nonce) {
462
+ styleElement.setAttribute("nonce", nonce);
463
+ }
464
+ }
465
+ module.exports = setAttributesWithoutAttributes;
466
+
467
+ /***/ },
468
+
469
+ /***/ 7825
470
+ (module) {
471
+
472
+
473
+
474
+ /* istanbul ignore next */
475
+ function apply(styleElement, options, obj) {
476
+ var css = "";
477
+ if (obj.supports) {
478
+ css += "@supports (".concat(obj.supports, ") {");
479
+ }
480
+ if (obj.media) {
481
+ css += "@media ".concat(obj.media, " {");
482
+ }
483
+ var needLayer = typeof obj.layer !== "undefined";
484
+ if (needLayer) {
485
+ css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
486
+ }
487
+ css += obj.css;
488
+ if (needLayer) {
489
+ css += "}";
490
+ }
491
+ if (obj.media) {
492
+ css += "}";
493
+ }
494
+ if (obj.supports) {
495
+ css += "}";
496
+ }
497
+ var sourceMap = obj.sourceMap;
498
+ if (sourceMap && typeof btoa !== "undefined") {
499
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
500
+ }
501
+
502
+ // For old IE
503
+ /* istanbul ignore if */
504
+ options.styleTagTransform(css, styleElement, options.options);
505
+ }
506
+ function removeStyleElement(styleElement) {
507
+ // istanbul ignore if
508
+ if (styleElement.parentNode === null) {
509
+ return false;
510
+ }
511
+ styleElement.parentNode.removeChild(styleElement);
512
+ }
513
+
514
+ /* istanbul ignore next */
515
+ function domAPI(options) {
516
+ if (typeof document === "undefined") {
517
+ return {
518
+ update: function update() {},
519
+ remove: function remove() {}
520
+ };
521
+ }
522
+ var styleElement = options.insertStyleElement(options);
523
+ return {
524
+ update: function update(obj) {
525
+ apply(styleElement, options, obj);
526
+ },
527
+ remove: function remove() {
528
+ removeStyleElement(styleElement);
529
+ }
530
+ };
531
+ }
532
+ module.exports = domAPI;
533
+
534
+ /***/ },
535
+
536
+ /***/ 1113
537
+ (module) {
538
+
539
+
540
+
541
+ /* istanbul ignore next */
542
+ function styleTagTransform(css, styleElement) {
543
+ if (styleElement.styleSheet) {
544
+ styleElement.styleSheet.cssText = css;
545
+ } else {
546
+ while (styleElement.firstChild) {
547
+ styleElement.removeChild(styleElement.firstChild);
548
+ }
549
+ styleElement.appendChild(document.createTextNode(css));
550
+ }
551
+ }
552
+ module.exports = styleTagTransform;
553
+
554
+ /***/ },
555
+
556
+ /***/ 463
557
+ (module) {
558
+
559
+ module.exports = require("opus-toolkit-styles/assets/logos/opus-dark-logo.svg");
560
+
561
+ /***/ },
562
+
563
+ /***/ 2757
564
+ (module) {
565
+
566
+ module.exports = require("opus-toolkit-styles/assets/logos/opus-light-logo.svg");
567
+
568
+ /***/ },
569
+
570
+ /***/ 4178
571
+ (module) {
572
+
573
+ module.exports = require("react/jsx-runtime");
574
+
575
+ /***/ },
576
+
577
+ /***/ 9206
578
+ (module) {
579
+
580
+ module.exports = require("react");
581
+
582
+ /***/ }
583
+
584
+ /******/ });
585
+ /************************************************************************/
586
+ /******/ // The module cache
587
+ /******/ var __webpack_module_cache__ = {};
588
+ /******/
589
+ /******/ // The require function
590
+ /******/ function __webpack_require__(moduleId) {
591
+ /******/ // Check if module is in cache
592
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
593
+ /******/ if (cachedModule !== undefined) {
594
+ /******/ return cachedModule.exports;
595
+ /******/ }
596
+ /******/ // Create a new module (and put it into the cache)
597
+ /******/ var module = __webpack_module_cache__[moduleId] = {
598
+ /******/ id: moduleId,
599
+ /******/ // no module.loaded needed
600
+ /******/ exports: {}
601
+ /******/ };
602
+ /******/
603
+ /******/ // Execute the module function
604
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
605
+ /******/
606
+ /******/ // Return the exports of the module
607
+ /******/ return module.exports;
608
+ /******/ }
609
+ /******/
610
+ /************************************************************************/
611
+ /******/ /* webpack/runtime/compat get default export */
612
+ /******/ (() => {
613
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
614
+ /******/ __webpack_require__.n = (module) => {
615
+ /******/ var getter = module && module.__esModule ?
616
+ /******/ () => (module['default']) :
617
+ /******/ () => (module);
618
+ /******/ __webpack_require__.d(getter, { a: getter });
619
+ /******/ return getter;
620
+ /******/ };
621
+ /******/ })();
622
+ /******/
623
+ /******/ /* webpack/runtime/define property getters */
624
+ /******/ (() => {
625
+ /******/ // define getter functions for harmony exports
626
+ /******/ __webpack_require__.d = (exports, definition) => {
627
+ /******/ for(var key in definition) {
628
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
629
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
630
+ /******/ }
631
+ /******/ }
632
+ /******/ };
633
+ /******/ })();
634
+ /******/
635
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
636
+ /******/ (() => {
637
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
638
+ /******/ })();
639
+ /******/
640
+ /******/ /* webpack/runtime/make namespace object */
641
+ /******/ (() => {
642
+ /******/ // define __esModule on exports
643
+ /******/ __webpack_require__.r = (exports) => {
644
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
645
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
646
+ /******/ }
647
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
648
+ /******/ };
649
+ /******/ })();
650
+ /******/
651
+ /******/ /* webpack/runtime/nonce */
652
+ /******/ (() => {
653
+ /******/ __webpack_require__.nc = undefined;
654
+ /******/ })();
655
+ /******/
656
+ /************************************************************************/
657
+ var __webpack_exports__ = {};
658
+ __webpack_require__.r(__webpack_exports__);
659
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
660
+ /* harmony export */ "default": () => (Footer_Footer)
661
+ /* harmony export */ });
662
+ /* harmony import */ var _BarLayout_BarLayout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7779);
663
+ /* harmony import */ var _FooterLogo_FooterLogo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9465);
664
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4178);
665
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
666
+
667
+
668
+
669
+ /**
670
+ * @typedef {Object} FooterProps
671
+ * @property {React.ReactNode} [left] Left footer content
672
+ * @property {React.ReactNode} [center] Center footer content
673
+ * @property {React.ReactNode} [right] Right footer content
674
+ * @property {string} [className] Optional wrapper class
675
+ */
676
+
677
+ /**
678
+ * @param {FooterProps} props
679
+ */
680
+
681
+ const Footer = _ref => {
682
+ let {
683
+ left,
684
+ center,
685
+ right,
686
+ className = "",
687
+ ...rest
688
+ } = _ref;
689
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
690
+ className: `w-full px-4 py-2 ${className}`,
691
+ ...rest,
692
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_BarLayout_BarLayout__WEBPACK_IMPORTED_MODULE_0__["default"], {
693
+ left: left,
694
+ center: center,
695
+ right: right ?? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_FooterLogo_FooterLogo__WEBPACK_IMPORTED_MODULE_1__["default"], {})
696
+ })
697
+ }) //test
698
+ ;
699
+ };
700
+ /* harmony default export */ const Footer_Footer = (Footer);
701
+ // i am joel
702
+ module.exports = __webpack_exports__;
703
+ /******/ })()
704
+ ;
705
+ //# sourceMappingURL=index.js.map