opus-toolkit-components 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `npm start`
10
+
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
13
+
14
+ The page will reload when you make changes.\
15
+ You may also see any lint errors in the console.
16
+
17
+ ### `npm test`
18
+
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+
22
+ ### `npm run build`
23
+
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
+
32
+ ### `npm run eject`
33
+
34
+ **Note: this is a one-way operation. Once you `eject`, you can't go back!**
35
+
36
+ If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
+
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
39
+
40
+ You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
41
+
42
+ ## Learn More
43
+
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
+
46
+ To learn React, check out the [React documentation](https://reactjs.org/).
47
+
48
+ ### Code Splitting
49
+
50
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51
+
52
+ ### Analyzing the Bundle Size
53
+
54
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55
+
56
+ ### Making a Progressive Web App
57
+
58
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59
+
60
+ ### Advanced Configuration
61
+
62
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63
+
64
+ ### Deployment
65
+
66
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67
+
68
+ ### `npm run build` fails to minify
69
+
70
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
@@ -0,0 +1,690 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("react"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("opus-components", ["react"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["opus-components"] = factory(require("react"));
8
+ else
9
+ root["opus-components"] = factory(root["react"]);
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__156__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 735:
16
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ Z: () => (__WEBPACK_DEFAULT_EXPORT__)
20
+ /* harmony export */ });
21
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(537);
22
+ /* 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__);
23
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
24
+ /* 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__);
25
+ // Imports
26
+
27
+
28
+ 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()));
29
+ // Module
30
+ ___CSS_LOADER_EXPORT___.push([module.id, `.primary-btn{background:#e23193;color:#fff}.primary-btn:hover{background:#005de5}.secondary-btn{background:#005de5;color:#fff}.secondary-btn:hover{background:#e23193}.outline-btn{background:none;border:2px solid #fff;color:#fff}.outline-btn:hover{background:#e23193;border-color:#e23193}`, "",{"version":3,"sources":["webpack://./src/components/Buttons/_button.scss"],"names":[],"mappings":"AAqBA,aACI,kBArBO,CAsBP,UAhBS,CAKX,mBACE,kBAbO,CA4BX,eACI,kBA7BO,CA8BP,UAvBS,CAKX,qBACE,kBAZO,CAkCX,aACI,eAAA,CACA,qBAAA,CACA,UA/BS,CAKX,mBACE,kBAZO,CAcL,oBAdK","sourcesContent":["$c247Blue: #005de5;\r\n$c247Pink: #e23193;\r\n// Define color variables\r\n$primary-color: $c247Pink;\r\n$primary-hover-color: $c247Blue;\r\n$secondary-color: $c247Blue;\r\n$hover-color: $c247Pink;\r\n$text-color: white;\r\n$outline-border-color: white;\r\n\r\n// Create a mixin for hover effects to avoid repetition\r\n@mixin hover-effect($hover-bg, $hover-border: null) {\r\n &:hover {\r\n background: $hover-bg;\r\n @if $hover-border {\r\n border-color: $hover-border;\r\n }\r\n }\r\n}\r\n\r\n// Primary button styles\r\n.primary-btn {\r\n background: $primary-color;\r\n color: $text-color;\r\n @include hover-effect($primary-hover-color);\r\n}\r\n\r\n// Secondary button styles\r\n.secondary-btn {\r\n background: $secondary-color;\r\n color: $text-color;\r\n @include hover-effect($hover-color);\r\n}\r\n\r\n// Outline button styles\r\n.outline-btn {\r\n background: none;\r\n border: 2px solid $outline-border-color;\r\n color: $text-color;\r\n @include hover-effect($hover-color, $hover-color);\r\n}"],"sourceRoot":""}]);
31
+ // Exports
32
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
33
+
34
+
35
+ /***/ }),
36
+
37
+ /***/ 676:
38
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
39
+
40
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
41
+ /* harmony export */ Z: () => (__WEBPACK_DEFAULT_EXPORT__)
42
+ /* harmony export */ });
43
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(537);
44
+ /* 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__);
45
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
46
+ /* 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__);
47
+ // Imports
48
+
49
+
50
+ 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()));
51
+ // Module
52
+ ___CSS_LOADER_EXPORT___.push([module.id, `.dark-card{background-color:#24135f;color:#fff}.light-card{background-color:#fff;color:#0c022f}`, "",{"version":3,"sources":["webpack://./src/components/Cards/card.scss"],"names":[],"mappings":"AAGA,WACI,wBAHO,CAIP,UAAA,CAEJ,YACI,qBAAA,CACA,aATW","sourcesContent":["$opusDeepBlue: #0c022f;\r\n$opusNavy: #24135f;\r\n\r\n.dark-card {\r\n background-color: $opusNavy;\r\n color: white;\r\n}\r\n.light-card {\r\n background-color: white;\r\n color: $opusDeepBlue;\r\n}"],"sourceRoot":""}]);
53
+ // Exports
54
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
55
+
56
+
57
+ /***/ }),
58
+
59
+ /***/ 645:
60
+ /***/ ((module) => {
61
+
62
+
63
+
64
+ /*
65
+ MIT License http://www.opensource.org/licenses/mit-license.php
66
+ Author Tobias Koppers @sokra
67
+ */
68
+ module.exports = function (cssWithMappingToString) {
69
+ var list = [];
70
+
71
+ // return the list of modules as css string
72
+ list.toString = function toString() {
73
+ return this.map(function (item) {
74
+ var content = "";
75
+ var needLayer = typeof item[5] !== "undefined";
76
+ if (item[4]) {
77
+ content += "@supports (".concat(item[4], ") {");
78
+ }
79
+ if (item[2]) {
80
+ content += "@media ".concat(item[2], " {");
81
+ }
82
+ if (needLayer) {
83
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
84
+ }
85
+ content += cssWithMappingToString(item);
86
+ if (needLayer) {
87
+ content += "}";
88
+ }
89
+ if (item[2]) {
90
+ content += "}";
91
+ }
92
+ if (item[4]) {
93
+ content += "}";
94
+ }
95
+ return content;
96
+ }).join("");
97
+ };
98
+
99
+ // import a list of modules into the list
100
+ list.i = function i(modules, media, dedupe, supports, layer) {
101
+ if (typeof modules === "string") {
102
+ modules = [[null, modules, undefined]];
103
+ }
104
+ var alreadyImportedModules = {};
105
+ if (dedupe) {
106
+ for (var k = 0; k < this.length; k++) {
107
+ var id = this[k][0];
108
+ if (id != null) {
109
+ alreadyImportedModules[id] = true;
110
+ }
111
+ }
112
+ }
113
+ for (var _k = 0; _k < modules.length; _k++) {
114
+ var item = [].concat(modules[_k]);
115
+ if (dedupe && alreadyImportedModules[item[0]]) {
116
+ continue;
117
+ }
118
+ if (typeof layer !== "undefined") {
119
+ if (typeof item[5] === "undefined") {
120
+ item[5] = layer;
121
+ } else {
122
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
123
+ item[5] = layer;
124
+ }
125
+ }
126
+ if (media) {
127
+ if (!item[2]) {
128
+ item[2] = media;
129
+ } else {
130
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
131
+ item[2] = media;
132
+ }
133
+ }
134
+ if (supports) {
135
+ if (!item[4]) {
136
+ item[4] = "".concat(supports);
137
+ } else {
138
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
139
+ item[4] = supports;
140
+ }
141
+ }
142
+ list.push(item);
143
+ }
144
+ };
145
+ return list;
146
+ };
147
+
148
+ /***/ }),
149
+
150
+ /***/ 537:
151
+ /***/ ((module) => {
152
+
153
+
154
+
155
+ module.exports = function (item) {
156
+ var content = item[1];
157
+ var cssMapping = item[3];
158
+ if (!cssMapping) {
159
+ return content;
160
+ }
161
+ if (typeof btoa === "function") {
162
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
163
+ var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
164
+ var sourceMapping = "/*# ".concat(data, " */");
165
+ return [content].concat([sourceMapping]).join("\n");
166
+ }
167
+ return [content].join("\n");
168
+ };
169
+
170
+ /***/ }),
171
+
172
+ /***/ 379:
173
+ /***/ ((module) => {
174
+
175
+
176
+
177
+ var stylesInDOM = [];
178
+ function getIndexByIdentifier(identifier) {
179
+ var result = -1;
180
+ for (var i = 0; i < stylesInDOM.length; i++) {
181
+ if (stylesInDOM[i].identifier === identifier) {
182
+ result = i;
183
+ break;
184
+ }
185
+ }
186
+ return result;
187
+ }
188
+ function modulesToDom(list, options) {
189
+ var idCountMap = {};
190
+ var identifiers = [];
191
+ for (var i = 0; i < list.length; i++) {
192
+ var item = list[i];
193
+ var id = options.base ? item[0] + options.base : item[0];
194
+ var count = idCountMap[id] || 0;
195
+ var identifier = "".concat(id, " ").concat(count);
196
+ idCountMap[id] = count + 1;
197
+ var indexByIdentifier = getIndexByIdentifier(identifier);
198
+ var obj = {
199
+ css: item[1],
200
+ media: item[2],
201
+ sourceMap: item[3],
202
+ supports: item[4],
203
+ layer: item[5]
204
+ };
205
+ if (indexByIdentifier !== -1) {
206
+ stylesInDOM[indexByIdentifier].references++;
207
+ stylesInDOM[indexByIdentifier].updater(obj);
208
+ } else {
209
+ var updater = addElementStyle(obj, options);
210
+ options.byIndex = i;
211
+ stylesInDOM.splice(i, 0, {
212
+ identifier: identifier,
213
+ updater: updater,
214
+ references: 1
215
+ });
216
+ }
217
+ identifiers.push(identifier);
218
+ }
219
+ return identifiers;
220
+ }
221
+ function addElementStyle(obj, options) {
222
+ var api = options.domAPI(options);
223
+ api.update(obj);
224
+ var updater = function updater(newObj) {
225
+ if (newObj) {
226
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
227
+ return;
228
+ }
229
+ api.update(obj = newObj);
230
+ } else {
231
+ api.remove();
232
+ }
233
+ };
234
+ return updater;
235
+ }
236
+ module.exports = function (list, options) {
237
+ options = options || {};
238
+ list = list || [];
239
+ var lastIdentifiers = modulesToDom(list, options);
240
+ return function update(newList) {
241
+ newList = newList || [];
242
+ for (var i = 0; i < lastIdentifiers.length; i++) {
243
+ var identifier = lastIdentifiers[i];
244
+ var index = getIndexByIdentifier(identifier);
245
+ stylesInDOM[index].references--;
246
+ }
247
+ var newLastIdentifiers = modulesToDom(newList, options);
248
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
249
+ var _identifier = lastIdentifiers[_i];
250
+ var _index = getIndexByIdentifier(_identifier);
251
+ if (stylesInDOM[_index].references === 0) {
252
+ stylesInDOM[_index].updater();
253
+ stylesInDOM.splice(_index, 1);
254
+ }
255
+ }
256
+ lastIdentifiers = newLastIdentifiers;
257
+ };
258
+ };
259
+
260
+ /***/ }),
261
+
262
+ /***/ 569:
263
+ /***/ ((module) => {
264
+
265
+
266
+
267
+ var memo = {};
268
+
269
+ /* istanbul ignore next */
270
+ function getTarget(target) {
271
+ if (typeof memo[target] === "undefined") {
272
+ var styleTarget = document.querySelector(target);
273
+
274
+ // Special case to return head of iframe instead of iframe itself
275
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
276
+ try {
277
+ // This will throw an exception if access to iframe is blocked
278
+ // due to cross-origin restrictions
279
+ styleTarget = styleTarget.contentDocument.head;
280
+ } catch (e) {
281
+ // istanbul ignore next
282
+ styleTarget = null;
283
+ }
284
+ }
285
+ memo[target] = styleTarget;
286
+ }
287
+ return memo[target];
288
+ }
289
+
290
+ /* istanbul ignore next */
291
+ function insertBySelector(insert, style) {
292
+ var target = getTarget(insert);
293
+ if (!target) {
294
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
295
+ }
296
+ target.appendChild(style);
297
+ }
298
+ module.exports = insertBySelector;
299
+
300
+ /***/ }),
301
+
302
+ /***/ 216:
303
+ /***/ ((module) => {
304
+
305
+
306
+
307
+ /* istanbul ignore next */
308
+ function insertStyleElement(options) {
309
+ var element = document.createElement("style");
310
+ options.setAttributes(element, options.attributes);
311
+ options.insert(element, options.options);
312
+ return element;
313
+ }
314
+ module.exports = insertStyleElement;
315
+
316
+ /***/ }),
317
+
318
+ /***/ 565:
319
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
320
+
321
+
322
+
323
+ /* istanbul ignore next */
324
+ function setAttributesWithoutAttributes(styleElement) {
325
+ var nonce = true ? __webpack_require__.nc : 0;
326
+ if (nonce) {
327
+ styleElement.setAttribute("nonce", nonce);
328
+ }
329
+ }
330
+ module.exports = setAttributesWithoutAttributes;
331
+
332
+ /***/ }),
333
+
334
+ /***/ 795:
335
+ /***/ ((module) => {
336
+
337
+
338
+
339
+ /* istanbul ignore next */
340
+ function apply(styleElement, options, obj) {
341
+ var css = "";
342
+ if (obj.supports) {
343
+ css += "@supports (".concat(obj.supports, ") {");
344
+ }
345
+ if (obj.media) {
346
+ css += "@media ".concat(obj.media, " {");
347
+ }
348
+ var needLayer = typeof obj.layer !== "undefined";
349
+ if (needLayer) {
350
+ css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
351
+ }
352
+ css += obj.css;
353
+ if (needLayer) {
354
+ css += "}";
355
+ }
356
+ if (obj.media) {
357
+ css += "}";
358
+ }
359
+ if (obj.supports) {
360
+ css += "}";
361
+ }
362
+ var sourceMap = obj.sourceMap;
363
+ if (sourceMap && typeof btoa !== "undefined") {
364
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
365
+ }
366
+
367
+ // For old IE
368
+ /* istanbul ignore if */
369
+ options.styleTagTransform(css, styleElement, options.options);
370
+ }
371
+ function removeStyleElement(styleElement) {
372
+ // istanbul ignore if
373
+ if (styleElement.parentNode === null) {
374
+ return false;
375
+ }
376
+ styleElement.parentNode.removeChild(styleElement);
377
+ }
378
+
379
+ /* istanbul ignore next */
380
+ function domAPI(options) {
381
+ if (typeof document === "undefined") {
382
+ return {
383
+ update: function update() {},
384
+ remove: function remove() {}
385
+ };
386
+ }
387
+ var styleElement = options.insertStyleElement(options);
388
+ return {
389
+ update: function update(obj) {
390
+ apply(styleElement, options, obj);
391
+ },
392
+ remove: function remove() {
393
+ removeStyleElement(styleElement);
394
+ }
395
+ };
396
+ }
397
+ module.exports = domAPI;
398
+
399
+ /***/ }),
400
+
401
+ /***/ 589:
402
+ /***/ ((module) => {
403
+
404
+
405
+
406
+ /* istanbul ignore next */
407
+ function styleTagTransform(css, styleElement) {
408
+ if (styleElement.styleSheet) {
409
+ styleElement.styleSheet.cssText = css;
410
+ } else {
411
+ while (styleElement.firstChild) {
412
+ styleElement.removeChild(styleElement.firstChild);
413
+ }
414
+ styleElement.appendChild(document.createTextNode(css));
415
+ }
416
+ }
417
+ module.exports = styleTagTransform;
418
+
419
+ /***/ }),
420
+
421
+ /***/ 156:
422
+ /***/ ((module) => {
423
+
424
+ module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
425
+
426
+ /***/ })
427
+
428
+ /******/ });
429
+ /************************************************************************/
430
+ /******/ // The module cache
431
+ /******/ var __webpack_module_cache__ = {};
432
+ /******/
433
+ /******/ // The require function
434
+ /******/ function __webpack_require__(moduleId) {
435
+ /******/ // Check if module is in cache
436
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
437
+ /******/ if (cachedModule !== undefined) {
438
+ /******/ return cachedModule.exports;
439
+ /******/ }
440
+ /******/ // Create a new module (and put it into the cache)
441
+ /******/ var module = __webpack_module_cache__[moduleId] = {
442
+ /******/ id: moduleId,
443
+ /******/ // no module.loaded needed
444
+ /******/ exports: {}
445
+ /******/ };
446
+ /******/
447
+ /******/ // Execute the module function
448
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
449
+ /******/
450
+ /******/ // Return the exports of the module
451
+ /******/ return module.exports;
452
+ /******/ }
453
+ /******/
454
+ /************************************************************************/
455
+ /******/ /* webpack/runtime/compat get default export */
456
+ /******/ (() => {
457
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
458
+ /******/ __webpack_require__.n = (module) => {
459
+ /******/ var getter = module && module.__esModule ?
460
+ /******/ () => (module['default']) :
461
+ /******/ () => (module);
462
+ /******/ __webpack_require__.d(getter, { a: getter });
463
+ /******/ return getter;
464
+ /******/ };
465
+ /******/ })();
466
+ /******/
467
+ /******/ /* webpack/runtime/define property getters */
468
+ /******/ (() => {
469
+ /******/ // define getter functions for harmony exports
470
+ /******/ __webpack_require__.d = (exports, definition) => {
471
+ /******/ for(var key in definition) {
472
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
473
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
474
+ /******/ }
475
+ /******/ }
476
+ /******/ };
477
+ /******/ })();
478
+ /******/
479
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
480
+ /******/ (() => {
481
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
482
+ /******/ })();
483
+ /******/
484
+ /******/ /* webpack/runtime/make namespace object */
485
+ /******/ (() => {
486
+ /******/ // define __esModule on exports
487
+ /******/ __webpack_require__.r = (exports) => {
488
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
489
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
490
+ /******/ }
491
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
492
+ /******/ };
493
+ /******/ })();
494
+ /******/
495
+ /******/ /* webpack/runtime/nonce */
496
+ /******/ (() => {
497
+ /******/ __webpack_require__.nc = undefined;
498
+ /******/ })();
499
+ /******/
500
+ /************************************************************************/
501
+ var __webpack_exports__ = {};
502
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
503
+ (() => {
504
+ // ESM COMPAT FLAG
505
+ __webpack_require__.r(__webpack_exports__);
506
+
507
+ // EXPORTS
508
+ __webpack_require__.d(__webpack_exports__, {
509
+ Accordion: () => (/* reexport */ Accordion),
510
+ Button: () => (/* reexport */ Button),
511
+ Card: () => (/* reexport */ Card),
512
+ Input: () => (/* reexport */ Input)
513
+ });
514
+
515
+ // EXTERNAL MODULE: external "react"
516
+ var external_react_ = __webpack_require__(156);
517
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
518
+ ;// CONCATENATED MODULE: ./src/components/Accordions/Accordion.js
519
+
520
+ function Accordion(_ref) {
521
+ let {
522
+ items = [],
523
+ children
524
+ } = _ref;
525
+ // Default value for items
526
+ const [activeIndex, setActiveIndex] = (0,external_react_.useState)(null);
527
+ const handleToggle = index => {
528
+ setActiveIndex(activeIndex === index ? null : index);
529
+ };
530
+ return /*#__PURE__*/external_react_default().createElement("div", {
531
+ className: "accordion"
532
+ }, items.length > 0 ? items.map((item, index) => /*#__PURE__*/external_react_default().createElement("div", {
533
+ className: "accordion-item border-2 rounded-lg border-gray-200 mb-2",
534
+ key: index
535
+ }, /*#__PURE__*/external_react_default().createElement("div", {
536
+ className: "accordion-header flex p-4 justify-between",
537
+ onClick: () => handleToggle(index),
538
+ style: {
539
+ cursor: 'pointer'
540
+ }
541
+ }, /*#__PURE__*/external_react_default().createElement("h3", null, item.title), /*#__PURE__*/external_react_default().createElement("div", null, activeIndex === index ? '-' : '+')), activeIndex === index && /*#__PURE__*/external_react_default().createElement("div", {
542
+ className: "accordion-body p-4 border-t"
543
+ }, item.content))) : /*#__PURE__*/external_react_default().createElement("div", {
544
+ className: "accordion-body p-4 border-t"
545
+ }, children));
546
+ }
547
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
548
+ var injectStylesIntoStyleTag = __webpack_require__(379);
549
+ var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
550
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
551
+ var styleDomAPI = __webpack_require__(795);
552
+ var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
553
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
554
+ var insertBySelector = __webpack_require__(569);
555
+ var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
556
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
557
+ var setAttributesWithoutAttributes = __webpack_require__(565);
558
+ var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
559
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
560
+ var insertStyleElement = __webpack_require__(216);
561
+ var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
562
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
563
+ var styleTagTransform = __webpack_require__(589);
564
+ var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
565
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Buttons/_button.scss
566
+ var _button = __webpack_require__(735);
567
+ ;// CONCATENATED MODULE: ./src/components/Buttons/_button.scss
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+ var options = {};
580
+
581
+ options.styleTagTransform = (styleTagTransform_default());
582
+ options.setAttributes = (setAttributesWithoutAttributes_default());
583
+ options.insert = insertBySelector_default().bind(null, "head");
584
+ options.domAPI = (styleDomAPI_default());
585
+ options.insertStyleElement = (insertStyleElement_default());
586
+
587
+ var update = injectStylesIntoStyleTag_default()(_button/* default */.Z, options);
588
+
589
+
590
+
591
+
592
+ /* harmony default export */ const Buttons_button = (_button/* default */.Z && _button/* default */.Z.locals ? _button/* default */.Z.locals : undefined);
593
+
594
+ ;// CONCATENATED MODULE: ./src/components/Buttons/Button.js
595
+
596
+
597
+ function Button(_ref) {
598
+ let {
599
+ type = 'button',
600
+ rank = 'primary',
601
+ text = 'Example Button',
602
+ size = 'md',
603
+ isFullWidth = false // The boolean to toggle 'w-full'
604
+ } = _ref;
605
+ // Conditional class based on isFullWidth
606
+ const classNames = `transition ease-in-out duration-700 rounded px-6 py-2 text-${size} ${rank}-btn ${isFullWidth ? 'w-full' : ''}`;
607
+ return /*#__PURE__*/external_react_default().createElement("button", {
608
+ type: type,
609
+ className: classNames
610
+ }, text);
611
+ }
612
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Cards/card.scss
613
+ var card = __webpack_require__(676);
614
+ ;// CONCATENATED MODULE: ./src/components/Cards/card.scss
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+ var card_options = {};
627
+
628
+ card_options.styleTagTransform = (styleTagTransform_default());
629
+ card_options.setAttributes = (setAttributesWithoutAttributes_default());
630
+ card_options.insert = insertBySelector_default().bind(null, "head");
631
+ card_options.domAPI = (styleDomAPI_default());
632
+ card_options.insertStyleElement = (insertStyleElement_default());
633
+
634
+ var card_update = injectStylesIntoStyleTag_default()(card/* default */.Z, card_options);
635
+
636
+
637
+
638
+
639
+ /* harmony default export */ const Cards_card = (card/* default */.Z && card/* default */.Z.locals ? card/* default */.Z.locals : undefined);
640
+
641
+ ;// CONCATENATED MODULE: ./src/components/Cards/Card.js
642
+
643
+
644
+ function Card(_ref) {
645
+ let {
646
+ mode = 'light',
647
+ children
648
+ } = _ref;
649
+ const cardClasses = `p-5 ${mode}-card rounded-lg shadow-lg`;
650
+ return /*#__PURE__*/external_react_default().createElement("div", {
651
+ className: cardClasses
652
+ }, children);
653
+ }
654
+ ;// CONCATENATED MODULE: ./src/components/Forms/Inputs/Input.js
655
+
656
+ function Input(_ref) {
657
+ let {
658
+ label,
659
+ placeholder,
660
+ type = 'text',
661
+ name,
662
+ isValid = true,
663
+ errorMessage = `${label} is required`,
664
+ onChange
665
+ } = _ref;
666
+ const inputClasses = `rounded-md bg-white px-4 py-3 text-md font-normal text-gray-900 ${isValid ? 'border-slate-400' : 'border-rose-500'}`;
667
+ return /*#__PURE__*/external_react_default().createElement("div", {
668
+ className: "flex flex-col mb-4"
669
+ }, /*#__PURE__*/external_react_default().createElement("label", null, label), /*#__PURE__*/external_react_default().createElement("input", {
670
+ className: inputClasses,
671
+ type: type,
672
+ name: name,
673
+ placeholder: placeholder,
674
+ onChange: onChange
675
+ }), !isValid && /*#__PURE__*/external_react_default().createElement("span", {
676
+ className: "text-rose-500 text-sm"
677
+ }, errorMessage));
678
+ }
679
+ ;// CONCATENATED MODULE: ./src/index.js
680
+
681
+
682
+
683
+
684
+ })();
685
+
686
+ /******/ return __webpack_exports__;
687
+ /******/ })()
688
+ ;
689
+ });
690
+ //# sourceMappingURL=opus-toolkit-components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opus-toolkit-components.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;ACVA;AACgH;AACjB;AAC/F,8BAA8B,mFAA2B,CAAC,4FAAqC;AAC/F;AACA,uDAAuD,mBAAmB,WAAW,mBAAmB,mBAAmB,eAAe,mBAAmB,WAAW,qBAAqB,mBAAmB,aAAa,gBAAgB,sBAAsB,WAAW,mBAAmB,mBAAmB,qBAAqB,OAAO,wSAAwS,uBAAuB,2DAA2D,oCAAoC,gCAAgC,4BAA4B,uBAAuB,iCAAiC,wHAAwH,eAAe,8BAA8B,2BAA2B,sCAAsC,SAAS,OAAO,KAAK,kDAAkD,mCAAmC,2BAA2B,oDAAoD,KAAK,sDAAsD,qCAAqC,2BAA2B,4CAA4C,KAAK,kDAAkD,yBAAyB,gDAAgD,2BAA2B,0DAA0D,KAAK,mBAAmB;AACrpD;AACA,iEAAe,uBAAuB,EAAC;;;;;;;;;;;;;;;ACPvC;AACgH;AACjB;AAC/F,8BAA8B,mFAA2B,CAAC,4FAAqC;AAC/F;AACA,qDAAqD,yBAAyB,WAAW,YAAY,sBAAsB,cAAc,OAAO,2LAA2L,uBAAuB,oBAAoB,oCAAoC,qBAAqB,KAAK,iBAAiB,gCAAgC,6BAA6B,KAAK,mBAAmB;AAC1hB;AACA,iEAAe,uBAAuB,EAAC;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpFa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,cAAc;AACrE;AACA;AACA;AACA;AACA;;;;;;;ACfa;;AAEb;AACA;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA,qBAAqB,6BAA6B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnFa;;AAEb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjCa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTa;;AAEb;AACA;AACA,cAAc,KAAwC,GAAG,sBAAiB,GAAG,CAAI;AACjF;AACA;AACA;AACA;AACA;;;;;;;ACTa;;AAEb;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA,iFAAiF;AACjF;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;AACA;AACA;AAC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","sources":["webpack://opus-components/webpack/universalModuleDefinition","webpack://opus-components/./src/components/Buttons/_button.scss","webpack://opus-components/./src/components/Cards/card.scss","webpack://opus-components/./node_modules/css-loader/dist/runtime/api.js","webpack://opus-components/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://opus-components/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://opus-components/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://opus-components/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://opus-components/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://opus-components/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://opus-components/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://opus-components/external umd \"react\"","webpack://opus-components/webpack/bootstrap","webpack://opus-components/webpack/runtime/compat get default export","webpack://opus-components/webpack/runtime/define property getters","webpack://opus-components/webpack/runtime/hasOwnProperty shorthand","webpack://opus-components/webpack/runtime/make namespace object","webpack://opus-components/webpack/runtime/nonce","webpack://opus-components/./src/components/Accordions/Accordion.js","webpack://opus-components/./src/components/Buttons/_button.scss?fd85","webpack://opus-components/./src/components/Buttons/Button.js","webpack://opus-components/./src/components/Cards/card.scss?8bf6","webpack://opus-components/./src/components/Cards/Card.js","webpack://opus-components/./src/components/Forms/Inputs/Input.js","webpack://opus-components/./src/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"opus-components\", [\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"opus-components\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"opus-components\"] = factory(root[\"react\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__156__) => {\nreturn ","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.primary-btn{background:#e23193;color:#fff}.primary-btn:hover{background:#005de5}.secondary-btn{background:#005de5;color:#fff}.secondary-btn:hover{background:#e23193}.outline-btn{background:none;border:2px solid #fff;color:#fff}.outline-btn:hover{background:#e23193;border-color:#e23193}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/Buttons/_button.scss\"],\"names\":[],\"mappings\":\"AAqBA,aACI,kBArBO,CAsBP,UAhBS,CAKX,mBACE,kBAbO,CA4BX,eACI,kBA7BO,CA8BP,UAvBS,CAKX,qBACE,kBAZO,CAkCX,aACI,eAAA,CACA,qBAAA,CACA,UA/BS,CAKX,mBACE,kBAZO,CAcL,oBAdK\",\"sourcesContent\":[\"$c247Blue: #005de5;\\r\\n$c247Pink: #e23193;\\r\\n// Define color variables\\r\\n$primary-color: $c247Pink;\\r\\n$primary-hover-color: $c247Blue;\\r\\n$secondary-color: $c247Blue;\\r\\n$hover-color: $c247Pink;\\r\\n$text-color: white;\\r\\n$outline-border-color: white;\\r\\n\\r\\n// Create a mixin for hover effects to avoid repetition\\r\\n@mixin hover-effect($hover-bg, $hover-border: null) {\\r\\n &:hover {\\r\\n background: $hover-bg;\\r\\n @if $hover-border {\\r\\n border-color: $hover-border;\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\n// Primary button styles\\r\\n.primary-btn {\\r\\n background: $primary-color;\\r\\n color: $text-color;\\r\\n @include hover-effect($primary-hover-color);\\r\\n}\\r\\n\\r\\n// Secondary button styles\\r\\n.secondary-btn {\\r\\n background: $secondary-color;\\r\\n color: $text-color;\\r\\n @include hover-effect($hover-color);\\r\\n}\\r\\n\\r\\n// Outline button styles\\r\\n.outline-btn {\\r\\n background: none;\\r\\n border: 2px solid $outline-border-color;\\r\\n color: $text-color;\\r\\n @include hover-effect($hover-color, $hover-color);\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.dark-card{background-color:#24135f;color:#fff}.light-card{background-color:#fff;color:#0c022f}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/Cards/card.scss\"],\"names\":[],\"mappings\":\"AAGA,WACI,wBAHO,CAIP,UAAA,CAEJ,YACI,qBAAA,CACA,aATW\",\"sourcesContent\":[\"$opusDeepBlue: #0c022f;\\r\\n$opusNavy: #24135f;\\r\\n\\r\\n.dark-card {\\r\\n background-color: $opusNavy;\\r\\n color: white;\\r\\n}\\r\\n.light-card {\\r\\n background-color: white;\\r\\n color: $opusDeepBlue;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = __WEBPACK_EXTERNAL_MODULE__156__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","import React, { useState } from 'react';\r\n\r\nexport default function Accordion({ items = [], children }) { // Default value for items\r\n const [activeIndex, setActiveIndex] = useState(null);\r\n\r\n const handleToggle = (index) => {\r\n setActiveIndex(activeIndex === index ? null : index);\r\n };\r\n\r\n return (\r\n <div className=\"accordion\">\r\n {items.length > 0 ? (\r\n items.map((item, index) => (\r\n <div className=\"accordion-item border-2 rounded-lg border-gray-200 mb-2\" key={index}>\r\n <div\r\n className=\"accordion-header flex p-4 justify-between\"\r\n onClick={() => handleToggle(index)}\r\n style={{ cursor: 'pointer' }}\r\n >\r\n <h3>{item.title}</h3>\r\n <div>{activeIndex === index ? '-' : '+'}</div>\r\n </div>\r\n {activeIndex === index && (\r\n <div className=\"accordion-body p-4 border-t\">\r\n {item.content}\r\n </div>\r\n )}\r\n </div>\r\n ))\r\n ) : (\r\n <div className=\"accordion-body p-4 border-t\">\r\n {children}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n}","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./_button.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./_button.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import React from 'react';\r\nimport './_button.scss';\r\n\r\nexport default function Button({ \r\n type = 'button', \r\n rank = 'primary',\r\n text = 'Example Button', \r\n size = 'md',\r\n isFullWidth = false // The boolean to toggle 'w-full'\r\n}) {\r\n\r\n // Conditional class based on isFullWidth\r\n const classNames = `transition ease-in-out duration-700 rounded px-6 py-2 text-${size} ${rank}-btn ${isFullWidth ? 'w-full' : ''}`;\r\n\r\n return (\r\n <button type={type} className={classNames}>\r\n {text}\r\n </button>\r\n );\r\n}","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./card.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./card.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import React from 'react';\r\nimport './card.scss';\r\n\r\nexport default function Card({mode = 'light', children}) {\r\n\r\n const cardClasses = `p-5 ${mode}-card rounded-lg shadow-lg`\r\n\r\n return (\r\n <div className={cardClasses}>\r\n {children}\r\n </div>\r\n )\r\n}","import React from 'react';\r\n\r\nexport default function Input({\r\n label,\r\n placeholder,\r\n type = 'text',\r\n name,\r\n isValid = true,\r\n errorMessage = `${label} is required`,\r\n onChange\r\n}) {\r\n\r\n const inputClasses = `rounded-md bg-white px-4 py-3 text-md font-normal text-gray-900 ${isValid ? 'border-slate-400' : 'border-rose-500'}`;\r\n\r\n return (\r\n <div className=\"flex flex-col mb-4\">\r\n <label>{label}</label>\r\n <input\r\n className={inputClasses}\r\n type={type}\r\n name={name}\r\n placeholder={placeholder}\r\n onChange={onChange}\r\n />\r\n {!isValid && (\r\n <span className=\"text-rose-500 text-sm\">{errorMessage}</span>\r\n )}\r\n </div>\r\n );\r\n}\r\n","export { default as Accordion } from './components/Accordions/Accordion';\r\nexport { default as Button } from './components/Buttons/Button';\r\nexport { default as Card } from './components/Cards/Card';\r\nexport { default as Input } from './components/Forms/Inputs/Input';"],"names":["React","useState","Accordion","_ref","items","children","activeIndex","setActiveIndex","handleToggle","index","createElement","className","length","map","item","key","onClick","style","cursor","title","content","Button","type","rank","text","size","isFullWidth","classNames","Card","mode","cardClasses","Input","label","placeholder","name","isValid","errorMessage","onChange","inputClasses","default"],"sourceRoot":""}
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "opus-toolkit-components",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "dependencies": {
6
+ "@headlessui/react": "^2.1.8",
7
+ "@heroicons/react": "^2.1.5",
8
+ "@testing-library/jest-dom": "^5.17.0",
9
+ "@testing-library/react": "^13.4.0",
10
+ "@testing-library/user-event": "^13.5.0",
11
+ "react": "^18.3.1",
12
+ "react-dom": "^18.3.1",
13
+ "react-router-dom": "^6.26.2",
14
+ "react-scripts": "5.0.1",
15
+ "semantic-ui-react": "^2.1.5",
16
+ "web-vitals": "^2.1.4"
17
+ },
18
+ "scripts": {
19
+ "start": "react-scripts start",
20
+ "build": "webpack --mode production",
21
+ "test": "react-scripts test",
22
+ "eject": "react-scripts eject",
23
+ "storybook": "storybook dev -p 6006",
24
+ "build-storybook": "storybook build"
25
+ },
26
+ "eslintConfig": {
27
+ "extends": [
28
+ "react-app",
29
+ "react-app/jest",
30
+ "plugin:storybook/recommended"
31
+ ]
32
+ },
33
+ "browserslist": {
34
+ "production": [
35
+ ">0.2%",
36
+ "not dead",
37
+ "not op_mini all"
38
+ ],
39
+ "development": [
40
+ "last 1 chrome version",
41
+ "last 1 firefox version",
42
+ "last 1 safari version"
43
+ ]
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.25.7",
47
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
48
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
49
+ "@babel/preset-env": "^7.25.7",
50
+ "@babel/preset-react": "^7.25.7",
51
+ "@chromatic-com/storybook": "^1.9.0",
52
+ "@storybook/addon-essentials": "^8.3.3",
53
+ "@storybook/addon-interactions": "^8.3.3",
54
+ "@storybook/addon-links": "^8.3.3",
55
+ "@storybook/addon-onboarding": "^8.3.3",
56
+ "@storybook/addon-postcss": "^2.0.0",
57
+ "@storybook/blocks": "^8.3.3",
58
+ "@storybook/manager-api": "^8.3.3",
59
+ "@storybook/preset-create-react-app": "^8.3.3",
60
+ "@storybook/react": "^8.3.3",
61
+ "@storybook/react-webpack5": "^8.3.3",
62
+ "@storybook/test": "^8.3.3",
63
+ "@storybook/theming": "^8.3.3",
64
+ "@tailwindcss/forms": "^0.5.9",
65
+ "autoprefixer": "^10.4.20",
66
+ "babel-loader": "^9.2.1",
67
+ "babel-plugin-named-exports-order": "0.0.2",
68
+ "compression-webpack-plugin": "^11.1.0",
69
+ "css-loader": "^7.1.2",
70
+ "cypress": "^13.4.0",
71
+ "eslint-plugin-storybook": "^0.9.0",
72
+ "html-webpack-plugin": "^5.6.0",
73
+ "postcss": "^8.4.47",
74
+ "postcss-loader": "^8.1.1",
75
+ "postcss-preset-env": "^10.0.5",
76
+ "prop-types": "^15.8.1",
77
+ "sass": "^1.79.4",
78
+ "storybook": "^8.3.3",
79
+ "style-loader": "^4.0.0",
80
+ "tailwindcss": "^3.4.13",
81
+ "terser-webpack-plugin": "^5.3.10",
82
+ "webpack": "^5.89.0",
83
+ "webpack-cli": "^5.1.4",
84
+ "webpack-dev-server": "^5.1.0"
85
+ },
86
+ "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
87
+ "main": "index.js\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[Dscr/index.js",
88
+ "author": "Sye",
89
+ "license": "ISC",
90
+ "files": [
91
+ "lib"
92
+ ],
93
+ "directories": {
94
+ "lib": "lib"
95
+ }
96
+ }