aport-tools 4.1.21 → 4.1.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,8 +3,7 @@ interface FormContextProps {
3
3
  formValues: Record<string, any>;
4
4
  setFormValue: (name: string, value: any) => void;
5
5
  errors: Record<string, string[]>;
6
- setErrors: (errors: Record<string, string[]>) => void;
7
- handleSubmit: () => void;
6
+ handleSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;
8
7
  }
9
8
  export declare const useFormContext: () => FormContextProps;
10
9
  interface FormProps {
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.1.21 | ISC */
1
+ /*! aport-tools v4.1.23 | ISC */
2
2
  import React, { createContext, useState, useEffect, useContext, useMemo } from 'react';
3
3
  import { Appearance, StyleSheet, View, Text as Text$1, Switch, TouchableOpacity, ActivityIndicator, Platform, TextInput } from 'react-native';
4
4
  import { useAsyncStorage } from '@react-native-async-storage/async-storage';
@@ -595,7 +595,6 @@ StyleSheet.create({
595
595
  // Define any default styles if needed
596
596
  });
597
597
 
598
- // src/forms/FormContext.tsx
599
598
  var FormContext = /*#__PURE__*/createContext(undefined);
600
599
  var useFormContext = function useFormContext() {
601
600
  var context = useContext(FormContext);
@@ -619,16 +618,20 @@ var Form = function Form(_a) {
619
618
  return __assign(__assign({}, prev), (_a = {}, _a[name] = value, _a));
620
619
  });
621
620
  };
622
- var handleSubmit = function handleSubmit() {
621
+ var handleSubmit = function handleSubmit(event) {
623
622
  return __awaiter(void 0, void 0, void 0, function () {
624
623
  var validationErrors;
625
624
  return __generator(this, function (_a) {
626
625
  switch (_a.label) {
627
626
  case 0:
627
+ event.preventDefault(); // Prevent native submission
628
628
  return [4 /*yield*/, onSubmit(formValues)];
629
629
  case 1:
630
630
  validationErrors = _a.sent();
631
631
  setErrors(validationErrors);
632
+ if (Object.keys(validationErrors).length > 0) {
633
+ return [2 /*return*/]; // Do not proceed if there are validation errors
634
+ }
632
635
  return [2 /*return*/];
633
636
  }
634
637
  });
@@ -639,15 +642,18 @@ var Form = function Form(_a) {
639
642
  formValues: formValues,
640
643
  setFormValue: setFormValue,
641
644
  errors: errors,
642
- setErrors: setErrors,
643
645
  handleSubmit: handleSubmit
644
646
  }
645
- }, children);
647
+ }, /*#__PURE__*/React.createElement("form", {
648
+ onSubmit: handleSubmit
649
+ }, children));
646
650
  };
647
651
 
648
652
  // src/forms/ErrorList.tsx
649
653
  var ErrorList = function ErrorList(_a) {
650
654
  var errors = _a.errors;
655
+ var theme = useContext(ThemeContext).theme;
656
+ var colors = theme.colors;
651
657
  return /*#__PURE__*/React.createElement(View, {
652
658
  style: styles$3.container
653
659
  }, errors.map(function (error, index) {
@@ -655,9 +661,13 @@ var ErrorList = function ErrorList(_a) {
655
661
  key: index,
656
662
  style: styles$3.errorItem
657
663
  }, /*#__PURE__*/React.createElement(Text, {
658
- style: styles$3.bullet
664
+ style: [styles$3.bullet, {
665
+ color: colors.error.hex
666
+ }]
659
667
  }, "\u2022"), /*#__PURE__*/React.createElement(Text, {
660
- style: styles$3.errorText
668
+ style: [styles$3.errorText, {
669
+ color: colors.error.hex
670
+ }]
661
671
  }, error));
662
672
  }));
663
673
  };
@@ -672,14 +682,10 @@ var styles$3 = StyleSheet.create({
672
682
  },
673
683
  bullet: {
674
684
  marginRight: 4,
675
- color: '#FF5252',
676
- // Should use 'error' color from theme
677
685
  fontSize: 12
678
686
  },
679
687
  errorText: {
680
688
  flex: 1,
681
- color: '#FF5252',
682
- // Should use 'error' color from theme
683
689
  fontSize: 12
684
690
  }
685
691
  });
@@ -793,15 +799,17 @@ var styles$1 = StyleSheet.create({
793
799
  var Label = function Label(_a) {
794
800
  var text = _a.text,
795
801
  style = _a.style;
802
+ var theme = useContext(ThemeContext).theme;
803
+ var colors = theme.colors;
796
804
  return /*#__PURE__*/React.createElement(Text, {
797
- style: [styles.label, style]
805
+ style: [styles.label, style, {
806
+ color: colors.text.hex
807
+ }]
798
808
  }, text);
799
809
  };
800
810
  var styles = StyleSheet.create({
801
811
  label: {
802
812
  marginBottom: 4,
803
- color: '#000',
804
- // Should be themed
805
813
  fontWeight: '500'
806
814
  }
807
815
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../node_modules/tslib/tslib.es6.js","../src/styles/colors.ts","../src/theme/ThemeContext.tsx","../src/theme/ThemeToggle.tsx","../src/components/Button.tsx","../src/cards/Card.tsx","../src/fonts/Text.tsx","../src/forms/FormContext.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","// src/styles/colors.ts\n\nexport interface RGB {\n r: number;\n g: number;\n b: number;\n}\n\nexport interface Color {\n hex: string;\n rgb: RGB;\n}\n\nexport interface ThemeColors {\n primary: Color;\n secondary: Color;\n background: Color;\n text: Color;\n textButton: Color;\n error: Color; // Add error color\n success: Color; // Add success color\n warning: Color; // Add warning color\n body: Color;\n // Add more categories as needed\n}\n\nexport const lightTheme: ThemeColors = {\n primary: {\n hex: \"#1A73E8\",\n rgb: { r: 26, g: 115, b: 232 },\n },\n secondary: {\n hex: \"#F0F6FF\",\n rgb: { r: 240, g: 246, b: 255 },\n },\n background: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n text: {\n hex: \"#000000\",\n rgb: { r: 0, g: 0, b: 0 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#FF5252\", rgb: { r: 255, g: 82, b: 82 } },\n success: { hex: \"#4CAF50\", rgb: { r: 76, g: 175, b: 80 } },\n warning: { hex: \"#FFC107\", rgb: { r: 255, g: 193, b: 7 } },\n body: {\n // Body color is the same as background in the light theme\n hex: '#FFFFFF',\n rgb: { r: 255, g: 255, b: 255 },\n },\n};\n\nexport const darkTheme: ThemeColors = {\n primary: {\n hex: \"#BB86FC\",\n rgb: { r: 187, g: 134, b: 252 },\n },\n secondary: {\n hex: \"#03DAC6\",\n rgb: { r: 3, g: 218, b: 198 },\n },\n background: {\n hex: \"#121212\",\n rgb: { r: 18, g: 18, b: 18 },\n },\n text: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#CF6679\", rgb: { r: 207, g: 102, b: 121 } },\n success: { hex: \"#03DAC6\", rgb: { r: 3, g: 218, b: 198 } },\n warning: { hex: \"#FFB74D\", rgb: { r: 255, g: 183, b: 77 } },\n body: {\n hex: '#1C1C1E',\n rgb: { r: 28, g: 28, b: 30 },\n },\n};\n","import React, { createContext, useState, useEffect, ReactNode } from 'react';\nimport { Appearance, ColorSchemeName } from 'react-native';\nimport { useAsyncStorage } from '@react-native-async-storage/async-storage'; // Import useAsyncStorage\nimport { lightTheme, darkTheme } from '../styles/colors';\nimport { Theme } from '../styles/theme';\n\n/**\n * Interface for the properties provided by ThemeContext.\n */\ninterface ThemeContextProps {\n /**\n * The current theme, containing color definitions.\n */\n theme: Theme;\n\n /**\n * Function to toggle between light and dark themes.\n */\n toggleTheme: () => void;\n}\n\n/**\n * React context for managing theme-related data and functions.\n */\nexport const ThemeContext = createContext<ThemeContextProps>({\n theme: { colors: lightTheme },\n toggleTheme: () => {},\n});\n\n/**\n * Props for the ThemeProvider component.\n */\ninterface ThemeProviderProps {\n /**\n * Child components that will have access to the theme context.\n */\n children: ReactNode;\n\n /**\n * Optional initial theme. Defaults to system preference if not provided.\n */\n initialTheme?: 'light' | 'dark';\n}\n\n/**\n * ThemeProvider component that manages and provides theme data to its children.\n *\n * @param children - The child components that will consume the theme context.\n * @param initialTheme - Optional prop to set the initial theme.\n */\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({ children, initialTheme }) => {\n const [colorScheme, setColorScheme] = useState<ColorSchemeName | null>(null);\n \n // Use useAsyncStorage hook for managing the theme storage\n const { getItem, setItem } = useAsyncStorage('theme');\n\n useEffect(() => {\n const loadTheme = async () => {\n try {\n // const storedTheme = await getItem();\n // if (storedTheme === 'dark' || storedTheme === 'light') {\n // setColorScheme(storedTheme);\n //} \n if (initialTheme) {\n setColorScheme(initialTheme);\n } else {\n const systemTheme = Appearance.getColorScheme();\n setColorScheme(systemTheme);\n }\n } catch (error) {\n console.error('Failed to load theme.', error);\n setColorScheme(Appearance.getColorScheme());\n }\n };\n\n loadTheme();\n\n const subscription = Appearance.addChangeListener(({ colorScheme }) => {\n if (!colorScheme) return; // Prevent setting null\n setColorScheme(colorScheme);\n });\n\n return () => subscription.remove();\n }, [initialTheme, getItem]);\n\n const toggleTheme = async () => {\n try {\n const newTheme = colorScheme === 'dark' ? 'light' : 'dark';\n setColorScheme(newTheme);\n await setItem(newTheme); // Use setItem from useAsyncStorage\n } catch (error) {\n console.error('Failed to toggle theme.', error);\n }\n };\n\n const theme: Theme = {\n colors: colorScheme === 'dark' ? darkTheme : lightTheme,\n };\n\n return (\n <ThemeContext.Provider value={{ theme, toggleTheme }}>\n {children}\n </ThemeContext.Provider>\n );\n};\n","import React, { useContext } from 'react';\nimport { Switch, View, Text, StyleSheet } from 'react-native';\nimport { ThemeContext } from './ThemeContext';\nimport { darkTheme, lightTheme } from '../styles/colors';\n\nconst ThemeToggle: React.FC = () => {\n const { theme, toggleTheme } = useContext(ThemeContext);\n const isDarkMode = theme.colors === darkTheme;\n\n return (\n <View style={styles.container}>\n <Text style={[styles.text, { color: theme.colors.text.hex }]}>Dark Mode</Text>\n <Switch\n value={isDarkMode}\n onValueChange={toggleTheme}\n trackColor={{ false: lightTheme.secondary.hex, true: darkTheme.primary.hex }}\n thumbColor={isDarkMode ? darkTheme.secondary.hex : lightTheme.primary.hex}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 20,\n flexDirection: 'row',\n alignItems: 'center',\n },\n text: {\n marginRight: 10,\n fontSize: 16,\n },\n});\n\nexport default ThemeToggle;\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\n/**\n * Interface for the props that the Button component accepts.\n */\ninterface ButtonProps {\n /**\n * If true, the button is disabled and not pressable.\n */\n disabled?: boolean;\n\n /**\n * If true, the button expands to full width of its container.\n */\n isFullWidth?: boolean;\n\n /**\n * Text content of the button.\n */\n children?: string;\n\n /**\n * Function to call when the button is pressed.\n */\n onPress?: () => void;\n\n /**\n * If true, the button has rounded corners.\n */\n rounded?: boolean;\n\n /**\n * Custom border radius value. Overrides the `rounded` prop if provided.\n */\n borderRadius?: number;\n\n /**\n * Specifies the button type for styling. Can be 'submit', 'button', or 'cancel'.\n */\n type?: 'submit' | 'button' | 'cancel';\n\n /**\n * If true, a loading spinner is shown and the button is disabled.\n */\n loading?: boolean;\n}\n\n/**\n * Determines the styles based on the button type and whether it is disabled.\n *\n * @param type - The type of the button ('submit', 'button', 'cancel').\n * @param disabled - Whether the button is disabled.\n * @param themeColors - The theme colors.\n * @returns The computed style for the button.\n */\nfunction typeStyles(\n type?: string,\n disabled?: boolean,\n themeColors?: ThemeColors\n): ViewStyle {\n switch (type) {\n case 'submit':\n return {\n backgroundColor: `rgba(${themeColors?.primary.rgb.r}, ${themeColors?.primary.rgb.g}, ${themeColors?.primary.rgb.b}, ${\n disabled ? 0.5 : 1\n })`,\n borderWidth: 2,\n borderColor: themeColors?.primary.hex,\n };\n case 'button':\n return {\n backgroundColor: themeColors?.primary.hex,\n borderColor: themeColors?.secondary.hex,\n opacity: disabled ? 0.5 : 1,\n borderWidth: 2,\n };\n case 'cancel':\n return {\n backgroundColor: themeColors?.background.hex,\n borderWidth: 0,\n };\n default:\n return {};\n }\n}\n\n/**\n * Button component that adapts its styles based on the current theme.\n * Supports dynamic styling, full-width option, rounded corners, and different types.\n *\n * @param disabled - If true, the button is disabled and not pressable.\n * @param isFullWidth - If true, the button expands to full width of its container.\n * @param children - Text content of the button.\n * @param onPress - Function to call when the button is pressed.\n * @param rounded - If true, the button has rounded corners.\n * @param borderRadius - Custom border radius value. Overrides the `rounded` prop if provided.\n * @param type - Specifies the button type for styling ('submit', 'button', 'cancel').\n */\nexport const Button: React.FC<ButtonProps> = ({\n children,\n disabled = false,\n type = 'button',\n rounded = true,\n borderRadius = 30,\n isFullWidth = false,\n loading = false,\n onPress,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const computedStyles = useMemo(() => {\n return StyleSheet.flatten([\n styles.button,\n typeStyles(type, disabled, colors),\n rounded && { borderRadius },\n isFullWidth && { width: '100%' },\n (disabled || loading) && styles.disabled,\n ]);\n }, [type, disabled, loading, rounded, borderRadius, isFullWidth, colors]);\n\n const textColor = useMemo(() => {\n return { color: colors.textButton.hex };\n }, [type, colors]);\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={onPress}\n activeOpacity={0.7}\n >\n {loading ? ( // Show loading spinner if loading\n <ActivityIndicator size=\"small\" color={colors.textButton.hex} />\n ) : (\n <Text style={textColor}>\n {Array.isArray(children) ? children.join('').toUpperCase() : children?.toUpperCase()}\n </Text>\n )}\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n button: {\n justifyContent: 'center',\n alignItems: 'center',\n paddingVertical: 10,\n paddingHorizontal: 20,\n },\n disabled: {\n opacity: 0.6,\n },\n});\n\n","// src/cards/Card.tsx\n\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\n\n/**\n * Interface for the props that the Card component accepts.\n */\ninterface CardProps {\n /**\n * Content to be rendered inside the Card.\n */\n children: React.ReactNode;\n\n /**\n * Style to be applied to the Card container.\n */\n style?: StyleProp<ViewStyle>;\n\n /**\n * Function to call when the Card is pressed.\n */\n onPress?: (event: GestureResponderEvent) => void;\n\n /**\n * Whether the Card is pressable. Defaults to false.\n */\n pressable?: boolean;\n\n /**\n * Border radius of the Card. Defaults to 12.\n */\n borderRadius?: number;\n\n /**\n * Elevation of the Card (Android only).\n */\n elevation?: number;\n\n /**\n * Shadow properties for iOS.\n */\n shadowProps?: {\n shadowColor?: string;\n shadowOffset?: { width: number; height: number };\n shadowOpacity?: number;\n shadowRadius?: number;\n };\n}\n\n/**\n * Card component that adapts its styles based on the current theme.\n * Supports dynamic styling, shadows, and press animations.\n *\n * @param children - The content to be displayed inside the Card.\n * @param style - Additional styles to apply to the Card.\n * @param onPress - Function to execute when the Card is pressed.\n * @param pressable - Determines if the Card is pressable. Defaults to false.\n * @param borderRadius - Border radius of the Card. Defaults to 12.\n * @param elevation - Elevation for Android shadow. Overrides default.\n * @param shadowProps - Custom shadow properties for iOS. Overrides defaults.\n */\nexport const Card: React.FC<CardProps> = ({\n children,\n style,\n onPress,\n pressable = false,\n borderRadius = 12,\n elevation = 4,\n shadowProps = {},\n }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n \n // Animation state for pressable effect\n // Default shadow styles (improved platform-specific handling)\n const defaultShadow = Platform.select({\n ios: {\n shadowColor: shadowProps?.shadowColor || colors.text.hex, // Defaulting to theme text color\n shadowOffset: shadowProps?.shadowOffset || { width: 0, height: 2 },\n shadowOpacity: shadowProps?.shadowOpacity || 0.1,\n shadowRadius: shadowProps?.shadowRadius || 4,\n },\n android: {\n elevation: elevation, // Only applies to Android\n },\n });\n \n const cardStyles = [\n styles.container,\n { borderRadius, backgroundColor: colors.body.hex },\n defaultShadow, // Dynamic shadows based on platform\n style, // External styles\n ];\n \n return pressable ? (\n <TouchableOpacity\n activeOpacity={0.8}\n onPress={onPress}\n \n style={cardStyles}\n >\n \n {children}\n </TouchableOpacity>\n ) : (\n <View style={cardStyles}>\n {children}\n </View>\n );\n };\n \n const styles = StyleSheet.create({\n container: {\n padding: 16,\n borderRadius: 12,\n // Shadows handled dynamically with platform logic\n },\n });\n\n","// src/fonts/Text.tsx\n\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\ninterface CustomTextProps extends TextProps {\n /**\n * Content to be displayed inside the Text component.\n */\n children: React.ReactNode;\n\n /**\n * Size of the text. Defaults to 14.\n */\n size?: number;\n\n /**\n * If true, applies bold styling to the text.\n */\n b?: boolean;\n\n /**\n * If true, applies italic styling to the text.\n */\n i?: boolean;\n\n /**\n * If true, applies underline styling to the text.\n */\n u?: boolean;\n\n /**\n * Paragraph alignment. Can be 'left', 'center', or 'right'. Defaults to 'left'.\n */\n align?: 'left' | 'center' | 'right' | 'justify'; // Paragraph alignment\n\n /**\n * Text type. Defaults to 'text'. Should match the keys in ThemeColors.\n * This restricts type to known color keys like 'primary', 'error', etc.\n */\n type?: keyof ThemeColors;\n\n /**\n * Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n */\n h?: 0 | 1 | 2 | 3;\n\n /**\n * Additional styles to apply to the Text component.\n */\n style?: TextStyle | TextStyle[];\n}\n\n/**\n * A dynamic Text component that supports HTML-like formatting.\n * Integrates with the Theme system for consistent styling.\n *\n * @param children - The content to be displayed inside the Text component.\n * @param size - Size of the text. Defaults to 'medium'.\n * @param b - If true, applies bold styling.\n * @param i - If true, applies italic styling.\n * @param u - If true, applies underline styling.\n * @param align - Paragraph alignment. Defaults to 'left'.\n * @param h - Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n * @param style - Additional styles to apply.\n */\nexport const Text: React.FC<CustomTextProps> = ({\n children,\n size = 14,\n b = false,\n i = false,\n u = false,\n align = 'left',\n type = 'text', \n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n \n // Calculate header size based on 'h' prop\n let fontSize = size;\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n\n\n // Define font weight based on bold prop\n const fontWeight = b ? '700' : '400';\n\n // Define font style based on italic prop\n const fontStyle = i ? 'italic' : 'normal';\n\n // Define text decoration based on underline prop\n const textDecorationLine = u ? 'underline' : 'none';\n\n // Define text alignment\n const textAlign: TextStyle['textAlign'] = align;\n // Map the 'type' prop to the correct color from the theme\n const textColor = colors[type]?.hex || colors.text.hex;\n\n // Combine all styles\n const textStyles: TextStyle = {\n fontSize,\n fontWeight,\n fontStyle,\n textDecorationLine,\n textAlign,\n color: textColor,\n };\n\n \n return (\n <RNText style={[textStyles, style]}>\n {children}\n </RNText>\n );\n};\n\nconst styles = StyleSheet.create({\n // Define any default styles if needed\n});\n\n","// src/forms/FormContext.tsx\n\nimport React, { createContext, useState, ReactNode, useContext } from 'react';\n\ninterface FormContextProps {\n formValues: Record<string, any>;\n setFormValue: (name: string, value: any) => void;\n errors: Record<string, string[]>;\n setErrors: (errors: Record<string, string[]>) => void;\n handleSubmit: () => void;\n}\n\nconst FormContext = createContext<FormContextProps | undefined>(undefined);\n\nexport const useFormContext = () => {\n const context = useContext(FormContext);\n if (!context) {\n throw new Error(\"useFormContext must be used within a Form\");\n }\n return context;\n};\n\ninterface FormProps {\n children: ReactNode;\n onSubmit: (values: Record<string, any>) => Promise<Record<string, string[]>>; // Returns errors\n}\n\nexport const Form: React.FC<FormProps> = ({ children, onSubmit }) => {\n const [formValues, setFormValues] = useState<Record<string, any>>({});\n const [errors, setErrors] = useState<Record<string, string[]>>({});\n\n const setFormValue = (name: string, value: any) => {\n setFormValues(prev => ({ ...prev, [name]: value }));\n };\n\n const handleSubmit = async () => {\n const validationErrors = await onSubmit(formValues);\n setErrors(validationErrors);\n };\n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, setErrors, handleSubmit }}>\n {children}\n </FormContext.Provider>\n );\n};\n","// src/forms/ErrorList.tsx\n\nimport React from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\n\ninterface ErrorListProps {\n errors: string[];\n}\n\nconst ErrorList: React.FC<ErrorListProps> = ({ errors }) => {\n return (\n <View style={styles.container}>\n {errors.map((error, index) => (\n <View key={index} style={styles.errorItem}>\n <Text style={styles.bullet}>•</Text>\n <Text style={styles.errorText}>{error}</Text>\n </View>\n ))}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 4,\n },\n errorItem: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n marginBottom: 2,\n },\n bullet: {\n marginRight: 4,\n color: '#FF5252', // Should use 'error' color from theme\n fontSize: 12,\n },\n errorText: {\n flex: 1,\n color: '#FF5252', // Should use 'error' color from theme\n fontSize: 12,\n },\n});\n\nexport default ErrorList;\n","// src/forms/Input.tsx\n\nimport React, { useContext } from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text';\nimport ErrorList from './ErrorList';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface InputProps extends TextInputProps {\n name: string;\n label: string;\n}\n\nexport const Input: React.FC<InputProps> = ({ name, label, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n <TextInput\n style={[\n styles.input,\n {\n backgroundColor: colors.body.hex,\n borderColor: formErrors[name] ? colors.error.hex : '#CCC',\n color: colors.text.hex,\n },\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor={colors.text.hex} // Can use a lighter version if needed\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n fontSize: 14,\n },\n input: {\n height: 40,\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n },\n});\n","// src/forms/TextArea.tsx\n\nimport React from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text'; // Assuming the Text component is exported from fonts\nimport ErrorList from './ErrorList';\n\ninterface TextAreaProps extends TextInputProps {\n name: string;\n label: string;\n errors?: string[]; // Optional prop to directly pass errors\n}\n\nconst TextArea: React.FC<TextAreaProps> = ({ name, label, errors, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={styles.label}>{label}</Text>\n <TextInput\n style={[\n styles.textArea,\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor=\"#888\" // Can be themed if needed\n multiline\n numberOfLines={4}\n textAlignVertical=\"top\"\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n color: '#000', // Should be themed\n },\n textArea: {\n height: 100,\n borderColor: '#CCC', // Should be themed\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n paddingVertical: 8,\n backgroundColor: '#FFFFFF', // Should use 'body' color from theme\n color: '#000', // Should use 'text' color from theme\n },\n});\n\nexport default TextArea;\n","// src/forms/Label.tsx\n\nimport React from 'react';\nimport { StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\n\ninterface LabelProps {\n text: string;\n style?: any;\n}\n\nconst Label: React.FC<LabelProps> = ({ text, style }) => {\n return <Text style={[styles.label, style]}>{text}</Text>;\n};\n\nconst styles = StyleSheet.create({\n label: {\n marginBottom: 4,\n color: '#000', // Should be themed\n fontWeight: '500',\n },\n});\n\nexport default Label;\n"],"names":["lightTheme","primary","hex","rgb","r","g","b","secondary","background","text","textButton","error","success","warning","body","darkTheme","ThemeContext","createContext","theme","colors","toggleTheme","ThemeProvider","_a","children","initialTheme","_b","useState","colorScheme","setColorScheme","_c","useAsyncStorage","getItem","setItem","useEffect","loadTheme","__awaiter","systemTheme","Appearance","getColorScheme","console","subscription","addChangeListener","remove","newTheme","sent","error_1","React","createElement","Provider","value","ThemeToggle","useContext","isDarkMode","View","style","styles","container","Text","color","Switch","onValueChange","trackColor","thumbColor","StyleSheet","create","marginTop","flexDirection","alignItems","marginRight","fontSize","typeStyles","type","disabled","themeColors","backgroundColor","concat","borderWidth","borderColor","opacity","Button","_d","rounded","_e","borderRadius","_f","isFullWidth","_g","loading","onPress","computedStyles","useMemo","flatten","button","width","textColor","TouchableOpacity","activeOpacity","ActivityIndicator","size","Array","isArray","join","toUpperCase","justifyContent","paddingVertical","paddingHorizontal","Card","pressable","elevation","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","android","cardStyles","padding","i","u","align","_h","_j","h","fontWeight","fontStyle","textDecorationLine","textAlign","textStyles","RNText","FormContext","undefined","useFormContext","context","Error","Form","onSubmit","formValues","setFormValues","errors","setErrors","setFormValue","name","prev","handleSubmit","validationErrors","ErrorList","map","index","key","errorItem","bullet","errorText","marginBottom","flex","Input","label","rest","__rest","formErrors","handleChange","TextInput","__assign","input","onChangeText","placeholder","placeholderTextColor","length","TextArea","textArea","multiline","numberOfLines","textAlignVertical","Label"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,SAAS;AACT,QAAQ,OAAO,CAAC,CAAC;AACjB,MAAK;AACL,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAC3C,EAAC;AACD;AACO,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE;AAC7B,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;AACf,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,C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AA,CAAC;;AChEF;AAWA,IAAMuH,KAAK,GAAyB,SAA9BA,KAAKA,CAA0B3J,EAAe,EAAA;MAAbb,IAAI,GAAAa,EAAA,CAAAb,IAAA;IAAE6C,KAAK,GAAAhC,EAAA,CAAAgC,KAAA,CAAA;AAChD,EAAA,oBAAOR,KAAC,CAAAC,aAAA,CAAAU,IAAI,EAAC;AAAAH,IAAAA,KAAK,EAAE,CAACC,MAAM,CAACyG,KAAK,EAAE1G,KAAK,CAAA;GAAI,EAAA7C,IAAI,CAAQ,CAAA;AAC1D,EAAC;AAED,IAAM8C,MAAM,GAAGQ,UAAU,CAACC,MAAM,CAAC;AAC/BgG,EAAAA,KAAK,EAAE;AACLH,IAAAA,YAAY,EAAE,CAAC;AACfnG,IAAAA,KAAK,EAAE,MAAM;AAAE;AACfsE,IAAAA,UAAU,EAAE,KAAA;AACb,GAAA;AACF,CAAA,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.esm.js","sources":["../node_modules/tslib/tslib.es6.js","../src/styles/colors.ts","../src/theme/ThemeContext.tsx","../src/theme/ThemeToggle.tsx","../src/components/Button.tsx","../src/cards/Card.tsx","../src/fonts/Text.tsx","../src/forms/FormContext.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","// src/styles/colors.ts\n\nexport interface RGB {\n r: number;\n g: number;\n b: number;\n}\n\nexport interface Color {\n hex: string;\n rgb: RGB;\n}\n\nexport interface ThemeColors {\n primary: Color;\n secondary: Color;\n background: Color;\n text: Color;\n textButton: Color;\n error: Color; // Add error color\n success: Color; // Add success color\n warning: Color; // Add warning color\n body: Color;\n // Add more categories as needed\n}\n\nexport const lightTheme: ThemeColors = {\n primary: {\n hex: \"#1A73E8\",\n rgb: { r: 26, g: 115, b: 232 },\n },\n secondary: {\n hex: \"#F0F6FF\",\n rgb: { r: 240, g: 246, b: 255 },\n },\n background: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n text: {\n hex: \"#000000\",\n rgb: { r: 0, g: 0, b: 0 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#FF5252\", rgb: { r: 255, g: 82, b: 82 } },\n success: { hex: \"#4CAF50\", rgb: { r: 76, g: 175, b: 80 } },\n warning: { hex: \"#FFC107\", rgb: { r: 255, g: 193, b: 7 } },\n body: {\n // Body color is the same as background in the light theme\n hex: '#FFFFFF',\n rgb: { r: 255, g: 255, b: 255 },\n },\n};\n\nexport const darkTheme: ThemeColors = {\n primary: {\n hex: \"#BB86FC\",\n rgb: { r: 187, g: 134, b: 252 },\n },\n secondary: {\n hex: \"#03DAC6\",\n rgb: { r: 3, g: 218, b: 198 },\n },\n background: {\n hex: \"#121212\",\n rgb: { r: 18, g: 18, b: 18 },\n },\n text: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#CF6679\", rgb: { r: 207, g: 102, b: 121 } },\n success: { hex: \"#03DAC6\", rgb: { r: 3, g: 218, b: 198 } },\n warning: { hex: \"#FFB74D\", rgb: { r: 255, g: 183, b: 77 } },\n body: {\n hex: '#1C1C1E',\n rgb: { r: 28, g: 28, b: 30 },\n },\n};\n","import React, { createContext, useState, useEffect, ReactNode } from 'react';\nimport { Appearance, ColorSchemeName } from 'react-native';\nimport { useAsyncStorage } from '@react-native-async-storage/async-storage'; // Import useAsyncStorage\nimport { lightTheme, darkTheme } from '../styles/colors';\nimport { Theme } from '../styles/theme';\n\n/**\n * Interface for the properties provided by ThemeContext.\n */\ninterface ThemeContextProps {\n /**\n * The current theme, containing color definitions.\n */\n theme: Theme;\n\n /**\n * Function to toggle between light and dark themes.\n */\n toggleTheme: () => void;\n}\n\n/**\n * React context for managing theme-related data and functions.\n */\nexport const ThemeContext = createContext<ThemeContextProps>({\n theme: { colors: lightTheme },\n toggleTheme: () => {},\n});\n\n/**\n * Props for the ThemeProvider component.\n */\ninterface ThemeProviderProps {\n /**\n * Child components that will have access to the theme context.\n */\n children: ReactNode;\n\n /**\n * Optional initial theme. Defaults to system preference if not provided.\n */\n initialTheme?: 'light' | 'dark';\n}\n\n/**\n * ThemeProvider component that manages and provides theme data to its children.\n *\n * @param children - The child components that will consume the theme context.\n * @param initialTheme - Optional prop to set the initial theme.\n */\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({ children, initialTheme }) => {\n const [colorScheme, setColorScheme] = useState<ColorSchemeName | null>(null);\n \n // Use useAsyncStorage hook for managing the theme storage\n const { getItem, setItem } = useAsyncStorage('theme');\n\n useEffect(() => {\n const loadTheme = async () => {\n try {\n // const storedTheme = await getItem();\n // if (storedTheme === 'dark' || storedTheme === 'light') {\n // setColorScheme(storedTheme);\n //} \n if (initialTheme) {\n setColorScheme(initialTheme);\n } else {\n const systemTheme = Appearance.getColorScheme();\n setColorScheme(systemTheme);\n }\n } catch (error) {\n console.error('Failed to load theme.', error);\n setColorScheme(Appearance.getColorScheme());\n }\n };\n\n loadTheme();\n\n const subscription = Appearance.addChangeListener(({ colorScheme }) => {\n if (!colorScheme) return; // Prevent setting null\n setColorScheme(colorScheme);\n });\n\n return () => subscription.remove();\n }, [initialTheme, getItem]);\n\n const toggleTheme = async () => {\n try {\n const newTheme = colorScheme === 'dark' ? 'light' : 'dark';\n setColorScheme(newTheme);\n await setItem(newTheme); // Use setItem from useAsyncStorage\n } catch (error) {\n console.error('Failed to toggle theme.', error);\n }\n };\n\n const theme: Theme = {\n colors: colorScheme === 'dark' ? darkTheme : lightTheme,\n };\n\n return (\n <ThemeContext.Provider value={{ theme, toggleTheme }}>\n {children}\n </ThemeContext.Provider>\n );\n};\n","import React, { useContext } from 'react';\nimport { Switch, View, Text, StyleSheet } from 'react-native';\nimport { ThemeContext } from './ThemeContext';\nimport { darkTheme, lightTheme } from '../styles/colors';\n\nconst ThemeToggle: React.FC = () => {\n const { theme, toggleTheme } = useContext(ThemeContext);\n const isDarkMode = theme.colors === darkTheme;\n\n return (\n <View style={styles.container}>\n <Text style={[styles.text, { color: theme.colors.text.hex }]}>Dark Mode</Text>\n <Switch\n value={isDarkMode}\n onValueChange={toggleTheme}\n trackColor={{ false: lightTheme.secondary.hex, true: darkTheme.primary.hex }}\n thumbColor={isDarkMode ? darkTheme.secondary.hex : lightTheme.primary.hex}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 20,\n flexDirection: 'row',\n alignItems: 'center',\n },\n text: {\n marginRight: 10,\n fontSize: 16,\n },\n});\n\nexport default ThemeToggle;\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\n/**\n * Interface for the props that the Button component accepts.\n */\ninterface ButtonProps {\n /**\n * If true, the button is disabled and not pressable.\n */\n disabled?: boolean;\n\n /**\n * If true, the button expands to full width of its container.\n */\n isFullWidth?: boolean;\n\n /**\n * Text content of the button.\n */\n children?: string;\n\n /**\n * Function to call when the button is pressed.\n */\n onPress?: () => void;\n\n /**\n * If true, the button has rounded corners.\n */\n rounded?: boolean;\n\n /**\n * Custom border radius value. Overrides the `rounded` prop if provided.\n */\n borderRadius?: number;\n\n /**\n * Specifies the button type for styling. Can be 'submit', 'button', or 'cancel'.\n */\n type?: 'submit' | 'button' | 'cancel';\n\n /**\n * If true, a loading spinner is shown and the button is disabled.\n */\n loading?: boolean;\n}\n\n/**\n * Determines the styles based on the button type and whether it is disabled.\n *\n * @param type - The type of the button ('submit', 'button', 'cancel').\n * @param disabled - Whether the button is disabled.\n * @param themeColors - The theme colors.\n * @returns The computed style for the button.\n */\nfunction typeStyles(\n type?: string,\n disabled?: boolean,\n themeColors?: ThemeColors\n): ViewStyle {\n switch (type) {\n case 'submit':\n return {\n backgroundColor: `rgba(${themeColors?.primary.rgb.r}, ${themeColors?.primary.rgb.g}, ${themeColors?.primary.rgb.b}, ${\n disabled ? 0.5 : 1\n })`,\n borderWidth: 2,\n borderColor: themeColors?.primary.hex,\n };\n case 'button':\n return {\n backgroundColor: themeColors?.primary.hex,\n borderColor: themeColors?.secondary.hex,\n opacity: disabled ? 0.5 : 1,\n borderWidth: 2,\n };\n case 'cancel':\n return {\n backgroundColor: themeColors?.background.hex,\n borderWidth: 0,\n };\n default:\n return {};\n }\n}\n\n/**\n * Button component that adapts its styles based on the current theme.\n * Supports dynamic styling, full-width option, rounded corners, and different types.\n *\n * @param disabled - If true, the button is disabled and not pressable.\n * @param isFullWidth - If true, the button expands to full width of its container.\n * @param children - Text content of the button.\n * @param onPress - Function to call when the button is pressed.\n * @param rounded - If true, the button has rounded corners.\n * @param borderRadius - Custom border radius value. Overrides the `rounded` prop if provided.\n * @param type - Specifies the button type for styling ('submit', 'button', 'cancel').\n */\nexport const Button: React.FC<ButtonProps> = ({\n children,\n disabled = false,\n type = 'button',\n rounded = true,\n borderRadius = 30,\n isFullWidth = false,\n loading = false,\n onPress,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const computedStyles = useMemo(() => {\n return StyleSheet.flatten([\n styles.button,\n typeStyles(type, disabled, colors),\n rounded && { borderRadius },\n isFullWidth && { width: '100%' },\n (disabled || loading) && styles.disabled,\n ]);\n }, [type, disabled, loading, rounded, borderRadius, isFullWidth, colors]);\n\n const textColor = useMemo(() => {\n return { color: colors.textButton.hex };\n }, [type, colors]);\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={onPress}\n activeOpacity={0.7}\n >\n {loading ? ( // Show loading spinner if loading\n <ActivityIndicator size=\"small\" color={colors.textButton.hex} />\n ) : (\n <Text style={textColor}>\n {Array.isArray(children) ? children.join('').toUpperCase() : children?.toUpperCase()}\n </Text>\n )}\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n button: {\n justifyContent: 'center',\n alignItems: 'center',\n paddingVertical: 10,\n paddingHorizontal: 20,\n },\n disabled: {\n opacity: 0.6,\n },\n});\n\n","// src/cards/Card.tsx\n\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\n\n/**\n * Interface for the props that the Card component accepts.\n */\ninterface CardProps {\n /**\n * Content to be rendered inside the Card.\n */\n children: React.ReactNode;\n\n /**\n * Style to be applied to the Card container.\n */\n style?: StyleProp<ViewStyle>;\n\n /**\n * Function to call when the Card is pressed.\n */\n onPress?: (event: GestureResponderEvent) => void;\n\n /**\n * Whether the Card is pressable. Defaults to false.\n */\n pressable?: boolean;\n\n /**\n * Border radius of the Card. Defaults to 12.\n */\n borderRadius?: number;\n\n /**\n * Elevation of the Card (Android only).\n */\n elevation?: number;\n\n /**\n * Shadow properties for iOS.\n */\n shadowProps?: {\n shadowColor?: string;\n shadowOffset?: { width: number; height: number };\n shadowOpacity?: number;\n shadowRadius?: number;\n };\n}\n\n/**\n * Card component that adapts its styles based on the current theme.\n * Supports dynamic styling, shadows, and press animations.\n *\n * @param children - The content to be displayed inside the Card.\n * @param style - Additional styles to apply to the Card.\n * @param onPress - Function to execute when the Card is pressed.\n * @param pressable - Determines if the Card is pressable. Defaults to false.\n * @param borderRadius - Border radius of the Card. Defaults to 12.\n * @param elevation - Elevation for Android shadow. Overrides default.\n * @param shadowProps - Custom shadow properties for iOS. Overrides defaults.\n */\nexport const Card: React.FC<CardProps> = ({\n children,\n style,\n onPress,\n pressable = false,\n borderRadius = 12,\n elevation = 4,\n shadowProps = {},\n }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n \n // Animation state for pressable effect\n // Default shadow styles (improved platform-specific handling)\n const defaultShadow = Platform.select({\n ios: {\n shadowColor: shadowProps?.shadowColor || colors.text.hex, // Defaulting to theme text color\n shadowOffset: shadowProps?.shadowOffset || { width: 0, height: 2 },\n shadowOpacity: shadowProps?.shadowOpacity || 0.1,\n shadowRadius: shadowProps?.shadowRadius || 4,\n },\n android: {\n elevation: elevation, // Only applies to Android\n },\n });\n \n const cardStyles = [\n styles.container,\n { borderRadius, backgroundColor: colors.body.hex },\n defaultShadow, // Dynamic shadows based on platform\n style, // External styles\n ];\n \n return pressable ? (\n <TouchableOpacity\n activeOpacity={0.8}\n onPress={onPress}\n \n style={cardStyles}\n >\n \n {children}\n </TouchableOpacity>\n ) : (\n <View style={cardStyles}>\n {children}\n </View>\n );\n };\n \n const styles = StyleSheet.create({\n container: {\n padding: 16,\n borderRadius: 12,\n // Shadows handled dynamically with platform logic\n },\n });\n\n","// src/fonts/Text.tsx\n\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\ninterface CustomTextProps extends TextProps {\n /**\n * Content to be displayed inside the Text component.\n */\n children: React.ReactNode;\n\n /**\n * Size of the text. Defaults to 14.\n */\n size?: number;\n\n /**\n * If true, applies bold styling to the text.\n */\n b?: boolean;\n\n /**\n * If true, applies italic styling to the text.\n */\n i?: boolean;\n\n /**\n * If true, applies underline styling to the text.\n */\n u?: boolean;\n\n /**\n * Paragraph alignment. Can be 'left', 'center', or 'right'. Defaults to 'left'.\n */\n align?: 'left' | 'center' | 'right' | 'justify'; // Paragraph alignment\n\n /**\n * Text type. Defaults to 'text'. Should match the keys in ThemeColors.\n * This restricts type to known color keys like 'primary', 'error', etc.\n */\n type?: keyof ThemeColors;\n\n /**\n * Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n */\n h?: 0 | 1 | 2 | 3;\n\n /**\n * Additional styles to apply to the Text component.\n */\n style?: TextStyle | TextStyle[];\n}\n\n/**\n * A dynamic Text component that supports HTML-like formatting.\n * Integrates with the Theme system for consistent styling.\n *\n * @param children - The content to be displayed inside the Text component.\n * @param size - Size of the text. Defaults to 'medium'.\n * @param b - If true, applies bold styling.\n * @param i - If true, applies italic styling.\n * @param u - If true, applies underline styling.\n * @param align - Paragraph alignment. Defaults to 'left'.\n * @param h - Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n * @param style - Additional styles to apply.\n */\nexport const Text: React.FC<CustomTextProps> = ({\n children,\n size = 14,\n b = false,\n i = false,\n u = false,\n align = 'left',\n type = 'text', \n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n \n // Calculate header size based on 'h' prop\n let fontSize = size;\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n\n\n // Define font weight based on bold prop\n const fontWeight = b ? '700' : '400';\n\n // Define font style based on italic prop\n const fontStyle = i ? 'italic' : 'normal';\n\n // Define text decoration based on underline prop\n const textDecorationLine = u ? 'underline' : 'none';\n\n // Define text alignment\n const textAlign: TextStyle['textAlign'] = align;\n // Map the 'type' prop to the correct color from the theme\n const textColor = colors[type]?.hex || colors.text.hex;\n\n // Combine all styles\n const textStyles: TextStyle = {\n fontSize,\n fontWeight,\n fontStyle,\n textDecorationLine,\n textAlign,\n color: textColor,\n };\n\n \n return (\n <RNText style={[textStyles, style]}>\n {children}\n </RNText>\n );\n};\n\nconst styles = StyleSheet.create({\n // Define any default styles if needed\n});\n\n","import React, { createContext, useState, ReactNode, useContext } from 'react';\n\ninterface FormContextProps {\n formValues: Record<string, any>;\n setFormValue: (name: string, value: any) => void;\n errors: Record<string, string[]>;\n handleSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;\n}\n\nconst FormContext = createContext<FormContextProps | undefined>(undefined);\n\nexport const useFormContext = () => {\n const context = useContext(FormContext);\n if (!context) {\n throw new Error(\"useFormContext must be used within a Form\");\n }\n return context;\n};\n\ninterface FormProps {\n children: ReactNode;\n onSubmit: (values: Record<string, any>) => Promise<Record<string, string[]>>; // Returns errors\n}\n\nexport const Form: React.FC<FormProps> = ({ children, onSubmit }) => {\n const [formValues, setFormValues] = useState<Record<string, any>>({});\n const [errors, setErrors] = useState<Record<string, string[]>>({});\n\n const setFormValue = (name: string, value: any) => {\n setFormValues(prev => ({ ...prev, [name]: value }));\n };\n\n const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault(); // Prevent native submission\n const validationErrors = await onSubmit(formValues);\n setErrors(validationErrors);\n\n if (Object.keys(validationErrors).length > 0) {\n return; // Do not proceed if there are validation errors\n }\n\n // Proceed with further submission logic (e.g., send data to backend)\n };\n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, handleSubmit }}>\n <form onSubmit={handleSubmit}>\n {children}\n </form>\n </FormContext.Provider>\n );\n};\n","// src/forms/ErrorList.tsx\n\nimport React, { useContext } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface ErrorListProps {\n errors: string[];\n}\n\nconst ErrorList: React.FC<ErrorListProps> = ({ errors }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n return (\n <View style={styles.container}>\n {errors.map((error, index) => (\n <View key={index} style={styles.errorItem}>\n <Text style={[styles.bullet, { color: colors.error.hex }]}>•</Text>\n <Text style={[styles.errorText, { color: colors.error.hex }]}>{error}</Text>\n </View>\n ))}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 4,\n },\n errorItem: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n marginBottom: 2,\n },\n bullet: {\n marginRight: 4,\n fontSize: 12,\n },\n errorText: {\n flex: 1,\n fontSize: 12,\n },\n});\n\nexport default ErrorList;\n","// src/forms/Input.tsx\n\nimport React, { useContext } from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text';\nimport ErrorList from './ErrorList';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface InputProps extends TextInputProps {\n name: string;\n label: string;\n}\n\nexport const Input: React.FC<InputProps> = ({ name, label, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n <TextInput\n style={[\n styles.input,\n {\n backgroundColor: colors.body.hex,\n borderColor: formErrors[name] ? colors.error.hex : '#CCC',\n color: colors.text.hex,\n },\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor={colors.text.hex} // Can use a lighter version if needed\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n fontSize: 14,\n },\n input: {\n height: 40,\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n },\n});\n","// src/forms/TextArea.tsx\n\nimport React from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text'; // Assuming the Text component is exported from fonts\nimport ErrorList from './ErrorList';\n\ninterface TextAreaProps extends TextInputProps {\n name: string;\n label: string;\n errors?: string[]; // Optional prop to directly pass errors\n}\n\nconst TextArea: React.FC<TextAreaProps> = ({ name, label, errors, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={styles.label}>{label}</Text>\n <TextInput\n style={[\n styles.textArea,\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor=\"#888\" // Can be themed if needed\n multiline\n numberOfLines={4}\n textAlignVertical=\"top\"\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n color: '#000', // Should be themed\n },\n textArea: {\n height: 100,\n borderColor: '#CCC', // Should be themed\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n paddingVertical: 8,\n backgroundColor: '#FFFFFF', // Should use 'body' color from theme\n color: '#000', // Should use 'text' color from theme\n },\n});\n\nexport default TextArea;\n","// src/forms/Label.tsx\n\nimport React, { useContext } from 'react';\nimport { StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface LabelProps {\n text: string;\n style?: any;\n}\n\nconst Label: React.FC<LabelProps> = ({ text, style }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n return <Text style={[styles.label, style, { color: colors.text.hex }]}>{text}</Text>;\n};\n\nconst styles = StyleSheet.create({\n label: {\n marginBottom: 4,\n fontWeight: '500',\n },\n});\n\nexport default Label;\n"],"names":["lightTheme","primary","hex","rgb","r","g","b","secondary","background","text","textButton","error","success","warning","body","darkTheme","ThemeContext","createContext","theme","colors","toggleTheme","ThemeProvider","_a","children","initialTheme","_b","useState","colorScheme","setColorScheme","_c","useAsyncStorage","getItem","setItem","useEffect","loadTheme","__awaiter","systemTheme","Appearance","getColorScheme","console","subscription","addChangeListener","remove","newTheme","sent","error_1","React","createElement","Provider","value","ThemeToggle","useContext","isDarkMode","View","style","styles","container","Text","color","Switch","onValueChange","trackColor","thumbColor","StyleSheet","create","marginTop","flexDirection","alignItems","marginRight","fontSize","typeStyles","type","disabled","themeColors","backgroundColor","concat","borderWidth","borderColor","opacity","Button","_d","rounded","_e","borderRadius","_f","isFullWidth","_g","loading","onPress","computedStyles","useMemo","flatten","button","width","textColor","TouchableOpacity","activeOpacity","ActivityIndicator","size","Array","isArray","join","toUpperCase","justifyContent","paddingVertical","paddingHorizontal","Card","pressable","elevation","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","android","cardStyles","padding","i","u","align","_h","_j","h","fontWeight","fontStyle","textDecorationLine","textAlign","textStyles","RNText","FormContext","undefined","useFormContext","context","Error","Form","onSubmit","formValues","setFormValues","errors","setErrors","setFormValue","name","prev","handleSubmit","event","preventDefault","validationErrors","Object","keys","length","ErrorList","map","index","key","errorItem","bullet","errorText","marginBottom","flex","Input","label","rest","__rest","formErrors","handleChange","TextInput","__assign","input","onChangeText","placeholder","placeholderTextColor","TextArea","textArea","multiline","numberOfLines","textAlignVertical","Label"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EA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,SAA9BA,KAAKA,CAA0B/J,EAAe,EAAA;MAAbb,IAAI,GAAAa,EAAA,CAAAb,IAAA;IAAE6C,KAAK,GAAAhC,EAAA,CAAAgC,KAAA,CAAA;AACtC,EAAA,IAAApC,KAAK,GAAKiC,UAAU,CAACnC,YAAY,CAAC,MAA7B,CAAA;AACL,EAAA,IAAAG,MAAM,GAAKD,KAAK,CAAAC,MAAV,CAAA;AAChB,EAAA,oBAAO2B,KAAA,CAAAC,aAAA,CAACU,IAAI,EAAA;AAACH,IAAAA,KAAK,EAAE,CAACC,MAAM,CAAC8G,KAAK,EAAE/G,KAAK,EAAE;AAAEI,MAAAA,KAAK,EAAEvC,MAAM,CAACV,IAAI,CAACP,GAAAA;KAAK,CAAA;GAAC,EAAGO,IAAI,CAAQ,CAAA;AACtF,EAAC;AAED,IAAM8C,MAAM,GAAGQ,UAAU,CAACC,MAAM,CAAC;AAC/BqG,EAAAA,KAAK,EAAE;AACLH,IAAAA,YAAY,EAAE,CAAC;AACflC,IAAAA,UAAU,EAAE,KAAA;AACb,GAAA;AACF,CAAA,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.1.21 | ISC */
1
+ /*! aport-tools v4.1.23 | ISC */
2
2
  'use strict';
3
3
 
4
4
  var React = require('react');
@@ -597,7 +597,6 @@ reactNative.StyleSheet.create({
597
597
  // Define any default styles if needed
598
598
  });
599
599
 
600
- // src/forms/FormContext.tsx
601
600
  var FormContext = /*#__PURE__*/React.createContext(undefined);
602
601
  var useFormContext = function useFormContext() {
603
602
  var context = React.useContext(FormContext);
@@ -621,16 +620,20 @@ var Form = function Form(_a) {
621
620
  return __assign(__assign({}, prev), (_a = {}, _a[name] = value, _a));
622
621
  });
623
622
  };
624
- var handleSubmit = function handleSubmit() {
623
+ var handleSubmit = function handleSubmit(event) {
625
624
  return __awaiter(void 0, void 0, void 0, function () {
626
625
  var validationErrors;
627
626
  return __generator(this, function (_a) {
628
627
  switch (_a.label) {
629
628
  case 0:
629
+ event.preventDefault(); // Prevent native submission
630
630
  return [4 /*yield*/, onSubmit(formValues)];
631
631
  case 1:
632
632
  validationErrors = _a.sent();
633
633
  setErrors(validationErrors);
634
+ if (Object.keys(validationErrors).length > 0) {
635
+ return [2 /*return*/]; // Do not proceed if there are validation errors
636
+ }
634
637
  return [2 /*return*/];
635
638
  }
636
639
  });
@@ -641,15 +644,18 @@ var Form = function Form(_a) {
641
644
  formValues: formValues,
642
645
  setFormValue: setFormValue,
643
646
  errors: errors,
644
- setErrors: setErrors,
645
647
  handleSubmit: handleSubmit
646
648
  }
647
- }, children);
649
+ }, /*#__PURE__*/React.createElement("form", {
650
+ onSubmit: handleSubmit
651
+ }, children));
648
652
  };
649
653
 
650
654
  // src/forms/ErrorList.tsx
651
655
  var ErrorList = function ErrorList(_a) {
652
656
  var errors = _a.errors;
657
+ var theme = React.useContext(ThemeContext).theme;
658
+ var colors = theme.colors;
653
659
  return /*#__PURE__*/React.createElement(reactNative.View, {
654
660
  style: styles$3.container
655
661
  }, errors.map(function (error, index) {
@@ -657,9 +663,13 @@ var ErrorList = function ErrorList(_a) {
657
663
  key: index,
658
664
  style: styles$3.errorItem
659
665
  }, /*#__PURE__*/React.createElement(Text, {
660
- style: styles$3.bullet
666
+ style: [styles$3.bullet, {
667
+ color: colors.error.hex
668
+ }]
661
669
  }, "\u2022"), /*#__PURE__*/React.createElement(Text, {
662
- style: styles$3.errorText
670
+ style: [styles$3.errorText, {
671
+ color: colors.error.hex
672
+ }]
663
673
  }, error));
664
674
  }));
665
675
  };
@@ -674,14 +684,10 @@ var styles$3 = reactNative.StyleSheet.create({
674
684
  },
675
685
  bullet: {
676
686
  marginRight: 4,
677
- color: '#FF5252',
678
- // Should use 'error' color from theme
679
687
  fontSize: 12
680
688
  },
681
689
  errorText: {
682
690
  flex: 1,
683
- color: '#FF5252',
684
- // Should use 'error' color from theme
685
691
  fontSize: 12
686
692
  }
687
693
  });
@@ -795,15 +801,17 @@ var styles$1 = reactNative.StyleSheet.create({
795
801
  var Label = function Label(_a) {
796
802
  var text = _a.text,
797
803
  style = _a.style;
804
+ var theme = React.useContext(ThemeContext).theme;
805
+ var colors = theme.colors;
798
806
  return /*#__PURE__*/React.createElement(Text, {
799
- style: [styles.label, style]
807
+ style: [styles.label, style, {
808
+ color: colors.text.hex
809
+ }]
800
810
  }, text);
801
811
  };
802
812
  var styles = reactNative.StyleSheet.create({
803
813
  label: {
804
814
  marginBottom: 4,
805
- color: '#000',
806
- // Should be themed
807
815
  fontWeight: '500'
808
816
  }
809
817
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../src/styles/colors.ts","../src/theme/ThemeContext.tsx","../src/theme/ThemeToggle.tsx","../src/components/Button.tsx","../src/cards/Card.tsx","../src/fonts/Text.tsx","../src/forms/FormContext.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","// src/styles/colors.ts\n\nexport interface RGB {\n r: number;\n g: number;\n b: number;\n}\n\nexport interface Color {\n hex: string;\n rgb: RGB;\n}\n\nexport interface ThemeColors {\n primary: Color;\n secondary: Color;\n background: Color;\n text: Color;\n textButton: Color;\n error: Color; // Add error color\n success: Color; // Add success color\n warning: Color; // Add warning color\n body: Color;\n // Add more categories as needed\n}\n\nexport const lightTheme: ThemeColors = {\n primary: {\n hex: \"#1A73E8\",\n rgb: { r: 26, g: 115, b: 232 },\n },\n secondary: {\n hex: \"#F0F6FF\",\n rgb: { r: 240, g: 246, b: 255 },\n },\n background: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n text: {\n hex: \"#000000\",\n rgb: { r: 0, g: 0, b: 0 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#FF5252\", rgb: { r: 255, g: 82, b: 82 } },\n success: { hex: \"#4CAF50\", rgb: { r: 76, g: 175, b: 80 } },\n warning: { hex: \"#FFC107\", rgb: { r: 255, g: 193, b: 7 } },\n body: {\n // Body color is the same as background in the light theme\n hex: '#FFFFFF',\n rgb: { r: 255, g: 255, b: 255 },\n },\n};\n\nexport const darkTheme: ThemeColors = {\n primary: {\n hex: \"#BB86FC\",\n rgb: { r: 187, g: 134, b: 252 },\n },\n secondary: {\n hex: \"#03DAC6\",\n rgb: { r: 3, g: 218, b: 198 },\n },\n background: {\n hex: \"#121212\",\n rgb: { r: 18, g: 18, b: 18 },\n },\n text: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#CF6679\", rgb: { r: 207, g: 102, b: 121 } },\n success: { hex: \"#03DAC6\", rgb: { r: 3, g: 218, b: 198 } },\n warning: { hex: \"#FFB74D\", rgb: { r: 255, g: 183, b: 77 } },\n body: {\n hex: '#1C1C1E',\n rgb: { r: 28, g: 28, b: 30 },\n },\n};\n","import React, { createContext, useState, useEffect, ReactNode } from 'react';\nimport { Appearance, ColorSchemeName } from 'react-native';\nimport { useAsyncStorage } from '@react-native-async-storage/async-storage'; // Import useAsyncStorage\nimport { lightTheme, darkTheme } from '../styles/colors';\nimport { Theme } from '../styles/theme';\n\n/**\n * Interface for the properties provided by ThemeContext.\n */\ninterface ThemeContextProps {\n /**\n * The current theme, containing color definitions.\n */\n theme: Theme;\n\n /**\n * Function to toggle between light and dark themes.\n */\n toggleTheme: () => void;\n}\n\n/**\n * React context for managing theme-related data and functions.\n */\nexport const ThemeContext = createContext<ThemeContextProps>({\n theme: { colors: lightTheme },\n toggleTheme: () => {},\n});\n\n/**\n * Props for the ThemeProvider component.\n */\ninterface ThemeProviderProps {\n /**\n * Child components that will have access to the theme context.\n */\n children: ReactNode;\n\n /**\n * Optional initial theme. Defaults to system preference if not provided.\n */\n initialTheme?: 'light' | 'dark';\n}\n\n/**\n * ThemeProvider component that manages and provides theme data to its children.\n *\n * @param children - The child components that will consume the theme context.\n * @param initialTheme - Optional prop to set the initial theme.\n */\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({ children, initialTheme }) => {\n const [colorScheme, setColorScheme] = useState<ColorSchemeName | null>(null);\n \n // Use useAsyncStorage hook for managing the theme storage\n const { getItem, setItem } = useAsyncStorage('theme');\n\n useEffect(() => {\n const loadTheme = async () => {\n try {\n // const storedTheme = await getItem();\n // if (storedTheme === 'dark' || storedTheme === 'light') {\n // setColorScheme(storedTheme);\n //} \n if (initialTheme) {\n setColorScheme(initialTheme);\n } else {\n const systemTheme = Appearance.getColorScheme();\n setColorScheme(systemTheme);\n }\n } catch (error) {\n console.error('Failed to load theme.', error);\n setColorScheme(Appearance.getColorScheme());\n }\n };\n\n loadTheme();\n\n const subscription = Appearance.addChangeListener(({ colorScheme }) => {\n if (!colorScheme) return; // Prevent setting null\n setColorScheme(colorScheme);\n });\n\n return () => subscription.remove();\n }, [initialTheme, getItem]);\n\n const toggleTheme = async () => {\n try {\n const newTheme = colorScheme === 'dark' ? 'light' : 'dark';\n setColorScheme(newTheme);\n await setItem(newTheme); // Use setItem from useAsyncStorage\n } catch (error) {\n console.error('Failed to toggle theme.', error);\n }\n };\n\n const theme: Theme = {\n colors: colorScheme === 'dark' ? darkTheme : lightTheme,\n };\n\n return (\n <ThemeContext.Provider value={{ theme, toggleTheme }}>\n {children}\n </ThemeContext.Provider>\n );\n};\n","import React, { useContext } from 'react';\nimport { Switch, View, Text, StyleSheet } from 'react-native';\nimport { ThemeContext } from './ThemeContext';\nimport { darkTheme, lightTheme } from '../styles/colors';\n\nconst ThemeToggle: React.FC = () => {\n const { theme, toggleTheme } = useContext(ThemeContext);\n const isDarkMode = theme.colors === darkTheme;\n\n return (\n <View style={styles.container}>\n <Text style={[styles.text, { color: theme.colors.text.hex }]}>Dark Mode</Text>\n <Switch\n value={isDarkMode}\n onValueChange={toggleTheme}\n trackColor={{ false: lightTheme.secondary.hex, true: darkTheme.primary.hex }}\n thumbColor={isDarkMode ? darkTheme.secondary.hex : lightTheme.primary.hex}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 20,\n flexDirection: 'row',\n alignItems: 'center',\n },\n text: {\n marginRight: 10,\n fontSize: 16,\n },\n});\n\nexport default ThemeToggle;\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\n/**\n * Interface for the props that the Button component accepts.\n */\ninterface ButtonProps {\n /**\n * If true, the button is disabled and not pressable.\n */\n disabled?: boolean;\n\n /**\n * If true, the button expands to full width of its container.\n */\n isFullWidth?: boolean;\n\n /**\n * Text content of the button.\n */\n children?: string;\n\n /**\n * Function to call when the button is pressed.\n */\n onPress?: () => void;\n\n /**\n * If true, the button has rounded corners.\n */\n rounded?: boolean;\n\n /**\n * Custom border radius value. Overrides the `rounded` prop if provided.\n */\n borderRadius?: number;\n\n /**\n * Specifies the button type for styling. Can be 'submit', 'button', or 'cancel'.\n */\n type?: 'submit' | 'button' | 'cancel';\n\n /**\n * If true, a loading spinner is shown and the button is disabled.\n */\n loading?: boolean;\n}\n\n/**\n * Determines the styles based on the button type and whether it is disabled.\n *\n * @param type - The type of the button ('submit', 'button', 'cancel').\n * @param disabled - Whether the button is disabled.\n * @param themeColors - The theme colors.\n * @returns The computed style for the button.\n */\nfunction typeStyles(\n type?: string,\n disabled?: boolean,\n themeColors?: ThemeColors\n): ViewStyle {\n switch (type) {\n case 'submit':\n return {\n backgroundColor: `rgba(${themeColors?.primary.rgb.r}, ${themeColors?.primary.rgb.g}, ${themeColors?.primary.rgb.b}, ${\n disabled ? 0.5 : 1\n })`,\n borderWidth: 2,\n borderColor: themeColors?.primary.hex,\n };\n case 'button':\n return {\n backgroundColor: themeColors?.primary.hex,\n borderColor: themeColors?.secondary.hex,\n opacity: disabled ? 0.5 : 1,\n borderWidth: 2,\n };\n case 'cancel':\n return {\n backgroundColor: themeColors?.background.hex,\n borderWidth: 0,\n };\n default:\n return {};\n }\n}\n\n/**\n * Button component that adapts its styles based on the current theme.\n * Supports dynamic styling, full-width option, rounded corners, and different types.\n *\n * @param disabled - If true, the button is disabled and not pressable.\n * @param isFullWidth - If true, the button expands to full width of its container.\n * @param children - Text content of the button.\n * @param onPress - Function to call when the button is pressed.\n * @param rounded - If true, the button has rounded corners.\n * @param borderRadius - Custom border radius value. Overrides the `rounded` prop if provided.\n * @param type - Specifies the button type for styling ('submit', 'button', 'cancel').\n */\nexport const Button: React.FC<ButtonProps> = ({\n children,\n disabled = false,\n type = 'button',\n rounded = true,\n borderRadius = 30,\n isFullWidth = false,\n loading = false,\n onPress,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const computedStyles = useMemo(() => {\n return StyleSheet.flatten([\n styles.button,\n typeStyles(type, disabled, colors),\n rounded && { borderRadius },\n isFullWidth && { width: '100%' },\n (disabled || loading) && styles.disabled,\n ]);\n }, [type, disabled, loading, rounded, borderRadius, isFullWidth, colors]);\n\n const textColor = useMemo(() => {\n return { color: colors.textButton.hex };\n }, [type, colors]);\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={onPress}\n activeOpacity={0.7}\n >\n {loading ? ( // Show loading spinner if loading\n <ActivityIndicator size=\"small\" color={colors.textButton.hex} />\n ) : (\n <Text style={textColor}>\n {Array.isArray(children) ? children.join('').toUpperCase() : children?.toUpperCase()}\n </Text>\n )}\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n button: {\n justifyContent: 'center',\n alignItems: 'center',\n paddingVertical: 10,\n paddingHorizontal: 20,\n },\n disabled: {\n opacity: 0.6,\n },\n});\n\n","// src/cards/Card.tsx\n\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\n\n/**\n * Interface for the props that the Card component accepts.\n */\ninterface CardProps {\n /**\n * Content to be rendered inside the Card.\n */\n children: React.ReactNode;\n\n /**\n * Style to be applied to the Card container.\n */\n style?: StyleProp<ViewStyle>;\n\n /**\n * Function to call when the Card is pressed.\n */\n onPress?: (event: GestureResponderEvent) => void;\n\n /**\n * Whether the Card is pressable. Defaults to false.\n */\n pressable?: boolean;\n\n /**\n * Border radius of the Card. Defaults to 12.\n */\n borderRadius?: number;\n\n /**\n * Elevation of the Card (Android only).\n */\n elevation?: number;\n\n /**\n * Shadow properties for iOS.\n */\n shadowProps?: {\n shadowColor?: string;\n shadowOffset?: { width: number; height: number };\n shadowOpacity?: number;\n shadowRadius?: number;\n };\n}\n\n/**\n * Card component that adapts its styles based on the current theme.\n * Supports dynamic styling, shadows, and press animations.\n *\n * @param children - The content to be displayed inside the Card.\n * @param style - Additional styles to apply to the Card.\n * @param onPress - Function to execute when the Card is pressed.\n * @param pressable - Determines if the Card is pressable. Defaults to false.\n * @param borderRadius - Border radius of the Card. Defaults to 12.\n * @param elevation - Elevation for Android shadow. Overrides default.\n * @param shadowProps - Custom shadow properties for iOS. Overrides defaults.\n */\nexport const Card: React.FC<CardProps> = ({\n children,\n style,\n onPress,\n pressable = false,\n borderRadius = 12,\n elevation = 4,\n shadowProps = {},\n }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n \n // Animation state for pressable effect\n // Default shadow styles (improved platform-specific handling)\n const defaultShadow = Platform.select({\n ios: {\n shadowColor: shadowProps?.shadowColor || colors.text.hex, // Defaulting to theme text color\n shadowOffset: shadowProps?.shadowOffset || { width: 0, height: 2 },\n shadowOpacity: shadowProps?.shadowOpacity || 0.1,\n shadowRadius: shadowProps?.shadowRadius || 4,\n },\n android: {\n elevation: elevation, // Only applies to Android\n },\n });\n \n const cardStyles = [\n styles.container,\n { borderRadius, backgroundColor: colors.body.hex },\n defaultShadow, // Dynamic shadows based on platform\n style, // External styles\n ];\n \n return pressable ? (\n <TouchableOpacity\n activeOpacity={0.8}\n onPress={onPress}\n \n style={cardStyles}\n >\n \n {children}\n </TouchableOpacity>\n ) : (\n <View style={cardStyles}>\n {children}\n </View>\n );\n };\n \n const styles = StyleSheet.create({\n container: {\n padding: 16,\n borderRadius: 12,\n // Shadows handled dynamically with platform logic\n },\n });\n\n","// src/fonts/Text.tsx\n\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\ninterface CustomTextProps extends TextProps {\n /**\n * Content to be displayed inside the Text component.\n */\n children: React.ReactNode;\n\n /**\n * Size of the text. Defaults to 14.\n */\n size?: number;\n\n /**\n * If true, applies bold styling to the text.\n */\n b?: boolean;\n\n /**\n * If true, applies italic styling to the text.\n */\n i?: boolean;\n\n /**\n * If true, applies underline styling to the text.\n */\n u?: boolean;\n\n /**\n * Paragraph alignment. Can be 'left', 'center', or 'right'. Defaults to 'left'.\n */\n align?: 'left' | 'center' | 'right' | 'justify'; // Paragraph alignment\n\n /**\n * Text type. Defaults to 'text'. Should match the keys in ThemeColors.\n * This restricts type to known color keys like 'primary', 'error', etc.\n */\n type?: keyof ThemeColors;\n\n /**\n * Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n */\n h?: 0 | 1 | 2 | 3;\n\n /**\n * Additional styles to apply to the Text component.\n */\n style?: TextStyle | TextStyle[];\n}\n\n/**\n * A dynamic Text component that supports HTML-like formatting.\n * Integrates with the Theme system for consistent styling.\n *\n * @param children - The content to be displayed inside the Text component.\n * @param size - Size of the text. Defaults to 'medium'.\n * @param b - If true, applies bold styling.\n * @param i - If true, applies italic styling.\n * @param u - If true, applies underline styling.\n * @param align - Paragraph alignment. Defaults to 'left'.\n * @param h - Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n * @param style - Additional styles to apply.\n */\nexport const Text: React.FC<CustomTextProps> = ({\n children,\n size = 14,\n b = false,\n i = false,\n u = false,\n align = 'left',\n type = 'text', \n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n \n // Calculate header size based on 'h' prop\n let fontSize = size;\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n\n\n // Define font weight based on bold prop\n const fontWeight = b ? '700' : '400';\n\n // Define font style based on italic prop\n const fontStyle = i ? 'italic' : 'normal';\n\n // Define text decoration based on underline prop\n const textDecorationLine = u ? 'underline' : 'none';\n\n // Define text alignment\n const textAlign: TextStyle['textAlign'] = align;\n // Map the 'type' prop to the correct color from the theme\n const textColor = colors[type]?.hex || colors.text.hex;\n\n // Combine all styles\n const textStyles: TextStyle = {\n fontSize,\n fontWeight,\n fontStyle,\n textDecorationLine,\n textAlign,\n color: textColor,\n };\n\n \n return (\n <RNText style={[textStyles, style]}>\n {children}\n </RNText>\n );\n};\n\nconst styles = StyleSheet.create({\n // Define any default styles if needed\n});\n\n","// src/forms/FormContext.tsx\n\nimport React, { createContext, useState, ReactNode, useContext } from 'react';\n\ninterface FormContextProps {\n formValues: Record<string, any>;\n setFormValue: (name: string, value: any) => void;\n errors: Record<string, string[]>;\n setErrors: (errors: Record<string, string[]>) => void;\n handleSubmit: () => void;\n}\n\nconst FormContext = createContext<FormContextProps | undefined>(undefined);\n\nexport const useFormContext = () => {\n const context = useContext(FormContext);\n if (!context) {\n throw new Error(\"useFormContext must be used within a Form\");\n }\n return context;\n};\n\ninterface FormProps {\n children: ReactNode;\n onSubmit: (values: Record<string, any>) => Promise<Record<string, string[]>>; // Returns errors\n}\n\nexport const Form: React.FC<FormProps> = ({ children, onSubmit }) => {\n const [formValues, setFormValues] = useState<Record<string, any>>({});\n const [errors, setErrors] = useState<Record<string, string[]>>({});\n\n const setFormValue = (name: string, value: any) => {\n setFormValues(prev => ({ ...prev, [name]: value }));\n };\n\n const handleSubmit = async () => {\n const validationErrors = await onSubmit(formValues);\n setErrors(validationErrors);\n };\n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, setErrors, handleSubmit }}>\n {children}\n </FormContext.Provider>\n );\n};\n","// src/forms/ErrorList.tsx\n\nimport React from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\n\ninterface ErrorListProps {\n errors: string[];\n}\n\nconst ErrorList: React.FC<ErrorListProps> = ({ errors }) => {\n return (\n <View style={styles.container}>\n {errors.map((error, index) => (\n <View key={index} style={styles.errorItem}>\n <Text style={styles.bullet}>•</Text>\n <Text style={styles.errorText}>{error}</Text>\n </View>\n ))}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 4,\n },\n errorItem: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n marginBottom: 2,\n },\n bullet: {\n marginRight: 4,\n color: '#FF5252', // Should use 'error' color from theme\n fontSize: 12,\n },\n errorText: {\n flex: 1,\n color: '#FF5252', // Should use 'error' color from theme\n fontSize: 12,\n },\n});\n\nexport default ErrorList;\n","// src/forms/Input.tsx\n\nimport React, { useContext } from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text';\nimport ErrorList from './ErrorList';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface InputProps extends TextInputProps {\n name: string;\n label: string;\n}\n\nexport const Input: React.FC<InputProps> = ({ name, label, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n <TextInput\n style={[\n styles.input,\n {\n backgroundColor: colors.body.hex,\n borderColor: formErrors[name] ? colors.error.hex : '#CCC',\n color: colors.text.hex,\n },\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor={colors.text.hex} // Can use a lighter version if needed\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n fontSize: 14,\n },\n input: {\n height: 40,\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n },\n});\n","// src/forms/TextArea.tsx\n\nimport React from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text'; // Assuming the Text component is exported from fonts\nimport ErrorList from './ErrorList';\n\ninterface TextAreaProps extends TextInputProps {\n name: string;\n label: string;\n errors?: string[]; // Optional prop to directly pass errors\n}\n\nconst TextArea: React.FC<TextAreaProps> = ({ name, label, errors, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={styles.label}>{label}</Text>\n <TextInput\n style={[\n styles.textArea,\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor=\"#888\" // Can be themed if needed\n multiline\n numberOfLines={4}\n textAlignVertical=\"top\"\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n color: '#000', // Should be themed\n },\n textArea: {\n height: 100,\n borderColor: '#CCC', // Should be themed\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n paddingVertical: 8,\n backgroundColor: '#FFFFFF', // Should use 'body' color from theme\n color: '#000', // Should use 'text' color from theme\n },\n});\n\nexport default TextArea;\n","// src/forms/Label.tsx\n\nimport React from 'react';\nimport { StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\n\ninterface LabelProps {\n text: string;\n style?: any;\n}\n\nconst Label: React.FC<LabelProps> = ({ text, style }) => {\n return <Text style={[styles.label, style]}>{text}</Text>;\n};\n\nconst styles = StyleSheet.create({\n label: {\n marginBottom: 4,\n color: '#000', // Should be themed\n fontWeight: '500',\n },\n});\n\nexport default Label;\n"],"names":["lightTheme","primary","hex","rgb","r","g","b","secondary","background","text","textButton","error","success","warning","body","darkTheme","ThemeContext","createContext","theme","colors","toggleTheme","ThemeProvider","_a","children","initialTheme","_b","useState","colorScheme","setColorScheme","_c","useAsyncStorage","getItem","setItem","useEffect","loadTheme","__awaiter","systemTheme","Appearance","getColorScheme","console","subscription","addChangeListener","remove","newTheme","sent","error_1","React","createElement","Provider","value","ThemeToggle","useContext","isDarkMode","View","style","styles","container","Text","color","Switch","onValueChange","trackColor","thumbColor","StyleSheet","create","marginTop","flexDirection","alignItems","marginRight","fontSize","typeStyles","type","disabled","themeColors","backgroundColor","concat","borderWidth","borderColor","opacity","Button","_d","rounded","_e","borderRadius","_f","isFullWidth","_g","loading","onPress","computedStyles","useMemo","flatten","button","width","textColor","TouchableOpacity","activeOpacity","ActivityIndicator","size","Array","isArray","join","toUpperCase","justifyContent","paddingVertical","paddingHorizontal","Card","pressable","elevation","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","android","cardStyles","padding","i","u","align","_h","_j","h","fontWeight","fontStyle","textDecorationLine","textAlign","textStyles","RNText","FormContext","undefined","useFormContext","context","Error","Form","onSubmit","formValues","setFormValues","errors","setErrors","setFormValue","name","prev","handleSubmit","validationErrors","ErrorList","map","index","key","errorItem","bullet","errorText","marginBottom","flex","Input","label","rest","__rest","formErrors","handleChange","TextInput","__assign","input","onChangeText","placeholder","placeholderTextColor","length","TextArea","textArea","multiline","numberOfLines","textAlignVertical","Label"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,SAAS;AACT,QAAQ,OAAO,CAAC,CAAC;AACjB,MAAK;AACL,I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,CAAC;IACfnG,KAAK,EAAE,MAAM;GACd;AACDmH,EAAAA,QAAQ,EAAE;AACRzD,IAAAA,MAAM,EAAE,GAAG;AACXvC,IAAAA,WAAW,EAAE,MAAM;AAAE;AACrBD,IAAAA,WAAW,EAAE,CAAC;AACdO,IAAAA,YAAY,EAAE,CAAC;AACfsB,IAAAA,iBAAiB,EAAE,CAAC;AACpBD,IAAAA,eAAe,EAAE,CAAC;AAClB9B,IAAAA,eAAe,EAAE,SAAS;AAAE;IAC5BhB,KAAK,EAAE,MAAM;AACd,GAAA;AACF,CAAA,CAAC;;AChEF;AAWA,IAAMuH,KAAK,GAAyB,SAA9BA,KAAKA,CAA0B3J,EAAe,EAAA;MAAbb,IAAI,GAAAa,EAAA,CAAAb,IAAA;IAAE6C,KAAK,GAAAhC,EAAA,CAAAgC,KAAA,CAAA;AAChD,EAAA,oBAAOR,KAAC,CAAAC,aAAA,CAAAU,IAAI,EAAC;AAAAH,IAAAA,KAAK,EAAE,CAACC,MAAM,CAACyG,KAAK,EAAE1G,KAAK,CAAA;GAAI,EAAA7C,IAAI,CAAQ,CAAA;AAC1D,EAAC;AAED,IAAM8C,MAAM,GAAGQ,sBAAU,CAACC,MAAM,CAAC;AAC/BgG,EAAAA,KAAK,EAAE;AACLH,IAAAA,YAAY,EAAE,CAAC;AACfnG,IAAAA,KAAK,EAAE,MAAM;AAAE;AACfsE,IAAAA,UAAU,EAAE,KAAA;AACb,GAAA;AACF,CAAA,CAAC;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../src/styles/colors.ts","../src/theme/ThemeContext.tsx","../src/theme/ThemeToggle.tsx","../src/components/Button.tsx","../src/cards/Card.tsx","../src/fonts/Text.tsx","../src/forms/FormContext.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","// src/styles/colors.ts\n\nexport interface RGB {\n r: number;\n g: number;\n b: number;\n}\n\nexport interface Color {\n hex: string;\n rgb: RGB;\n}\n\nexport interface ThemeColors {\n primary: Color;\n secondary: Color;\n background: Color;\n text: Color;\n textButton: Color;\n error: Color; // Add error color\n success: Color; // Add success color\n warning: Color; // Add warning color\n body: Color;\n // Add more categories as needed\n}\n\nexport const lightTheme: ThemeColors = {\n primary: {\n hex: \"#1A73E8\",\n rgb: { r: 26, g: 115, b: 232 },\n },\n secondary: {\n hex: \"#F0F6FF\",\n rgb: { r: 240, g: 246, b: 255 },\n },\n background: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n text: {\n hex: \"#000000\",\n rgb: { r: 0, g: 0, b: 0 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#FF5252\", rgb: { r: 255, g: 82, b: 82 } },\n success: { hex: \"#4CAF50\", rgb: { r: 76, g: 175, b: 80 } },\n warning: { hex: \"#FFC107\", rgb: { r: 255, g: 193, b: 7 } },\n body: {\n // Body color is the same as background in the light theme\n hex: '#FFFFFF',\n rgb: { r: 255, g: 255, b: 255 },\n },\n};\n\nexport const darkTheme: ThemeColors = {\n primary: {\n hex: \"#BB86FC\",\n rgb: { r: 187, g: 134, b: 252 },\n },\n secondary: {\n hex: \"#03DAC6\",\n rgb: { r: 3, g: 218, b: 198 },\n },\n background: {\n hex: \"#121212\",\n rgb: { r: 18, g: 18, b: 18 },\n },\n text: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n textButton: {\n hex: \"#FFFFFF\",\n rgb: { r: 255, g: 255, b: 255 },\n },\n error: { hex: \"#CF6679\", rgb: { r: 207, g: 102, b: 121 } },\n success: { hex: \"#03DAC6\", rgb: { r: 3, g: 218, b: 198 } },\n warning: { hex: \"#FFB74D\", rgb: { r: 255, g: 183, b: 77 } },\n body: {\n hex: '#1C1C1E',\n rgb: { r: 28, g: 28, b: 30 },\n },\n};\n","import React, { createContext, useState, useEffect, ReactNode } from 'react';\nimport { Appearance, ColorSchemeName } from 'react-native';\nimport { useAsyncStorage } from '@react-native-async-storage/async-storage'; // Import useAsyncStorage\nimport { lightTheme, darkTheme } from '../styles/colors';\nimport { Theme } from '../styles/theme';\n\n/**\n * Interface for the properties provided by ThemeContext.\n */\ninterface ThemeContextProps {\n /**\n * The current theme, containing color definitions.\n */\n theme: Theme;\n\n /**\n * Function to toggle between light and dark themes.\n */\n toggleTheme: () => void;\n}\n\n/**\n * React context for managing theme-related data and functions.\n */\nexport const ThemeContext = createContext<ThemeContextProps>({\n theme: { colors: lightTheme },\n toggleTheme: () => {},\n});\n\n/**\n * Props for the ThemeProvider component.\n */\ninterface ThemeProviderProps {\n /**\n * Child components that will have access to the theme context.\n */\n children: ReactNode;\n\n /**\n * Optional initial theme. Defaults to system preference if not provided.\n */\n initialTheme?: 'light' | 'dark';\n}\n\n/**\n * ThemeProvider component that manages and provides theme data to its children.\n *\n * @param children - The child components that will consume the theme context.\n * @param initialTheme - Optional prop to set the initial theme.\n */\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({ children, initialTheme }) => {\n const [colorScheme, setColorScheme] = useState<ColorSchemeName | null>(null);\n \n // Use useAsyncStorage hook for managing the theme storage\n const { getItem, setItem } = useAsyncStorage('theme');\n\n useEffect(() => {\n const loadTheme = async () => {\n try {\n // const storedTheme = await getItem();\n // if (storedTheme === 'dark' || storedTheme === 'light') {\n // setColorScheme(storedTheme);\n //} \n if (initialTheme) {\n setColorScheme(initialTheme);\n } else {\n const systemTheme = Appearance.getColorScheme();\n setColorScheme(systemTheme);\n }\n } catch (error) {\n console.error('Failed to load theme.', error);\n setColorScheme(Appearance.getColorScheme());\n }\n };\n\n loadTheme();\n\n const subscription = Appearance.addChangeListener(({ colorScheme }) => {\n if (!colorScheme) return; // Prevent setting null\n setColorScheme(colorScheme);\n });\n\n return () => subscription.remove();\n }, [initialTheme, getItem]);\n\n const toggleTheme = async () => {\n try {\n const newTheme = colorScheme === 'dark' ? 'light' : 'dark';\n setColorScheme(newTheme);\n await setItem(newTheme); // Use setItem from useAsyncStorage\n } catch (error) {\n console.error('Failed to toggle theme.', error);\n }\n };\n\n const theme: Theme = {\n colors: colorScheme === 'dark' ? darkTheme : lightTheme,\n };\n\n return (\n <ThemeContext.Provider value={{ theme, toggleTheme }}>\n {children}\n </ThemeContext.Provider>\n );\n};\n","import React, { useContext } from 'react';\nimport { Switch, View, Text, StyleSheet } from 'react-native';\nimport { ThemeContext } from './ThemeContext';\nimport { darkTheme, lightTheme } from '../styles/colors';\n\nconst ThemeToggle: React.FC = () => {\n const { theme, toggleTheme } = useContext(ThemeContext);\n const isDarkMode = theme.colors === darkTheme;\n\n return (\n <View style={styles.container}>\n <Text style={[styles.text, { color: theme.colors.text.hex }]}>Dark Mode</Text>\n <Switch\n value={isDarkMode}\n onValueChange={toggleTheme}\n trackColor={{ false: lightTheme.secondary.hex, true: darkTheme.primary.hex }}\n thumbColor={isDarkMode ? darkTheme.secondary.hex : lightTheme.primary.hex}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 20,\n flexDirection: 'row',\n alignItems: 'center',\n },\n text: {\n marginRight: 10,\n fontSize: 16,\n },\n});\n\nexport default ThemeToggle;\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\n/**\n * Interface for the props that the Button component accepts.\n */\ninterface ButtonProps {\n /**\n * If true, the button is disabled and not pressable.\n */\n disabled?: boolean;\n\n /**\n * If true, the button expands to full width of its container.\n */\n isFullWidth?: boolean;\n\n /**\n * Text content of the button.\n */\n children?: string;\n\n /**\n * Function to call when the button is pressed.\n */\n onPress?: () => void;\n\n /**\n * If true, the button has rounded corners.\n */\n rounded?: boolean;\n\n /**\n * Custom border radius value. Overrides the `rounded` prop if provided.\n */\n borderRadius?: number;\n\n /**\n * Specifies the button type for styling. Can be 'submit', 'button', or 'cancel'.\n */\n type?: 'submit' | 'button' | 'cancel';\n\n /**\n * If true, a loading spinner is shown and the button is disabled.\n */\n loading?: boolean;\n}\n\n/**\n * Determines the styles based on the button type and whether it is disabled.\n *\n * @param type - The type of the button ('submit', 'button', 'cancel').\n * @param disabled - Whether the button is disabled.\n * @param themeColors - The theme colors.\n * @returns The computed style for the button.\n */\nfunction typeStyles(\n type?: string,\n disabled?: boolean,\n themeColors?: ThemeColors\n): ViewStyle {\n switch (type) {\n case 'submit':\n return {\n backgroundColor: `rgba(${themeColors?.primary.rgb.r}, ${themeColors?.primary.rgb.g}, ${themeColors?.primary.rgb.b}, ${\n disabled ? 0.5 : 1\n })`,\n borderWidth: 2,\n borderColor: themeColors?.primary.hex,\n };\n case 'button':\n return {\n backgroundColor: themeColors?.primary.hex,\n borderColor: themeColors?.secondary.hex,\n opacity: disabled ? 0.5 : 1,\n borderWidth: 2,\n };\n case 'cancel':\n return {\n backgroundColor: themeColors?.background.hex,\n borderWidth: 0,\n };\n default:\n return {};\n }\n}\n\n/**\n * Button component that adapts its styles based on the current theme.\n * Supports dynamic styling, full-width option, rounded corners, and different types.\n *\n * @param disabled - If true, the button is disabled and not pressable.\n * @param isFullWidth - If true, the button expands to full width of its container.\n * @param children - Text content of the button.\n * @param onPress - Function to call when the button is pressed.\n * @param rounded - If true, the button has rounded corners.\n * @param borderRadius - Custom border radius value. Overrides the `rounded` prop if provided.\n * @param type - Specifies the button type for styling ('submit', 'button', 'cancel').\n */\nexport const Button: React.FC<ButtonProps> = ({\n children,\n disabled = false,\n type = 'button',\n rounded = true,\n borderRadius = 30,\n isFullWidth = false,\n loading = false,\n onPress,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const computedStyles = useMemo(() => {\n return StyleSheet.flatten([\n styles.button,\n typeStyles(type, disabled, colors),\n rounded && { borderRadius },\n isFullWidth && { width: '100%' },\n (disabled || loading) && styles.disabled,\n ]);\n }, [type, disabled, loading, rounded, borderRadius, isFullWidth, colors]);\n\n const textColor = useMemo(() => {\n return { color: colors.textButton.hex };\n }, [type, colors]);\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={onPress}\n activeOpacity={0.7}\n >\n {loading ? ( // Show loading spinner if loading\n <ActivityIndicator size=\"small\" color={colors.textButton.hex} />\n ) : (\n <Text style={textColor}>\n {Array.isArray(children) ? children.join('').toUpperCase() : children?.toUpperCase()}\n </Text>\n )}\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n button: {\n justifyContent: 'center',\n alignItems: 'center',\n paddingVertical: 10,\n paddingHorizontal: 20,\n },\n disabled: {\n opacity: 0.6,\n },\n});\n\n","// src/cards/Card.tsx\n\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\n\n/**\n * Interface for the props that the Card component accepts.\n */\ninterface CardProps {\n /**\n * Content to be rendered inside the Card.\n */\n children: React.ReactNode;\n\n /**\n * Style to be applied to the Card container.\n */\n style?: StyleProp<ViewStyle>;\n\n /**\n * Function to call when the Card is pressed.\n */\n onPress?: (event: GestureResponderEvent) => void;\n\n /**\n * Whether the Card is pressable. Defaults to false.\n */\n pressable?: boolean;\n\n /**\n * Border radius of the Card. Defaults to 12.\n */\n borderRadius?: number;\n\n /**\n * Elevation of the Card (Android only).\n */\n elevation?: number;\n\n /**\n * Shadow properties for iOS.\n */\n shadowProps?: {\n shadowColor?: string;\n shadowOffset?: { width: number; height: number };\n shadowOpacity?: number;\n shadowRadius?: number;\n };\n}\n\n/**\n * Card component that adapts its styles based on the current theme.\n * Supports dynamic styling, shadows, and press animations.\n *\n * @param children - The content to be displayed inside the Card.\n * @param style - Additional styles to apply to the Card.\n * @param onPress - Function to execute when the Card is pressed.\n * @param pressable - Determines if the Card is pressable. Defaults to false.\n * @param borderRadius - Border radius of the Card. Defaults to 12.\n * @param elevation - Elevation for Android shadow. Overrides default.\n * @param shadowProps - Custom shadow properties for iOS. Overrides defaults.\n */\nexport const Card: React.FC<CardProps> = ({\n children,\n style,\n onPress,\n pressable = false,\n borderRadius = 12,\n elevation = 4,\n shadowProps = {},\n }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n \n // Animation state for pressable effect\n // Default shadow styles (improved platform-specific handling)\n const defaultShadow = Platform.select({\n ios: {\n shadowColor: shadowProps?.shadowColor || colors.text.hex, // Defaulting to theme text color\n shadowOffset: shadowProps?.shadowOffset || { width: 0, height: 2 },\n shadowOpacity: shadowProps?.shadowOpacity || 0.1,\n shadowRadius: shadowProps?.shadowRadius || 4,\n },\n android: {\n elevation: elevation, // Only applies to Android\n },\n });\n \n const cardStyles = [\n styles.container,\n { borderRadius, backgroundColor: colors.body.hex },\n defaultShadow, // Dynamic shadows based on platform\n style, // External styles\n ];\n \n return pressable ? (\n <TouchableOpacity\n activeOpacity={0.8}\n onPress={onPress}\n \n style={cardStyles}\n >\n \n {children}\n </TouchableOpacity>\n ) : (\n <View style={cardStyles}>\n {children}\n </View>\n );\n };\n \n const styles = StyleSheet.create({\n container: {\n padding: 16,\n borderRadius: 12,\n // Shadows handled dynamically with platform logic\n },\n });\n\n","// src/fonts/Text.tsx\n\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\nimport { ThemeContext } from '../theme/ThemeContext';\nimport { ThemeColors } from '../styles/colors';\n\ninterface CustomTextProps extends TextProps {\n /**\n * Content to be displayed inside the Text component.\n */\n children: React.ReactNode;\n\n /**\n * Size of the text. Defaults to 14.\n */\n size?: number;\n\n /**\n * If true, applies bold styling to the text.\n */\n b?: boolean;\n\n /**\n * If true, applies italic styling to the text.\n */\n i?: boolean;\n\n /**\n * If true, applies underline styling to the text.\n */\n u?: boolean;\n\n /**\n * Paragraph alignment. Can be 'left', 'center', or 'right'. Defaults to 'left'.\n */\n align?: 'left' | 'center' | 'right' | 'justify'; // Paragraph alignment\n\n /**\n * Text type. Defaults to 'text'. Should match the keys in ThemeColors.\n * This restricts type to known color keys like 'primary', 'error', etc.\n */\n type?: keyof ThemeColors;\n\n /**\n * Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n */\n h?: 0 | 1 | 2 | 3;\n\n /**\n * Additional styles to apply to the Text component.\n */\n style?: TextStyle | TextStyle[];\n}\n\n/**\n * A dynamic Text component that supports HTML-like formatting.\n * Integrates with the Theme system for consistent styling.\n *\n * @param children - The content to be displayed inside the Text component.\n * @param size - Size of the text. Defaults to 'medium'.\n * @param b - If true, applies bold styling.\n * @param i - If true, applies italic styling.\n * @param u - If true, applies underline styling.\n * @param align - Paragraph alignment. Defaults to 'left'.\n * @param h - Header level. Accepts 0 (none), 1, 2, or 3. Defaults to 0.\n * @param style - Additional styles to apply.\n */\nexport const Text: React.FC<CustomTextProps> = ({\n children,\n size = 14,\n b = false,\n i = false,\n u = false,\n align = 'left',\n type = 'text', \n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n \n // Calculate header size based on 'h' prop\n let fontSize = size;\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n\n\n // Define font weight based on bold prop\n const fontWeight = b ? '700' : '400';\n\n // Define font style based on italic prop\n const fontStyle = i ? 'italic' : 'normal';\n\n // Define text decoration based on underline prop\n const textDecorationLine = u ? 'underline' : 'none';\n\n // Define text alignment\n const textAlign: TextStyle['textAlign'] = align;\n // Map the 'type' prop to the correct color from the theme\n const textColor = colors[type]?.hex || colors.text.hex;\n\n // Combine all styles\n const textStyles: TextStyle = {\n fontSize,\n fontWeight,\n fontStyle,\n textDecorationLine,\n textAlign,\n color: textColor,\n };\n\n \n return (\n <RNText style={[textStyles, style]}>\n {children}\n </RNText>\n );\n};\n\nconst styles = StyleSheet.create({\n // Define any default styles if needed\n});\n\n","import React, { createContext, useState, ReactNode, useContext } from 'react';\n\ninterface FormContextProps {\n formValues: Record<string, any>;\n setFormValue: (name: string, value: any) => void;\n errors: Record<string, string[]>;\n handleSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;\n}\n\nconst FormContext = createContext<FormContextProps | undefined>(undefined);\n\nexport const useFormContext = () => {\n const context = useContext(FormContext);\n if (!context) {\n throw new Error(\"useFormContext must be used within a Form\");\n }\n return context;\n};\n\ninterface FormProps {\n children: ReactNode;\n onSubmit: (values: Record<string, any>) => Promise<Record<string, string[]>>; // Returns errors\n}\n\nexport const Form: React.FC<FormProps> = ({ children, onSubmit }) => {\n const [formValues, setFormValues] = useState<Record<string, any>>({});\n const [errors, setErrors] = useState<Record<string, string[]>>({});\n\n const setFormValue = (name: string, value: any) => {\n setFormValues(prev => ({ ...prev, [name]: value }));\n };\n\n const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault(); // Prevent native submission\n const validationErrors = await onSubmit(formValues);\n setErrors(validationErrors);\n\n if (Object.keys(validationErrors).length > 0) {\n return; // Do not proceed if there are validation errors\n }\n\n // Proceed with further submission logic (e.g., send data to backend)\n };\n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, handleSubmit }}>\n <form onSubmit={handleSubmit}>\n {children}\n </form>\n </FormContext.Provider>\n );\n};\n","// src/forms/ErrorList.tsx\n\nimport React, { useContext } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface ErrorListProps {\n errors: string[];\n}\n\nconst ErrorList: React.FC<ErrorListProps> = ({ errors }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n return (\n <View style={styles.container}>\n {errors.map((error, index) => (\n <View key={index} style={styles.errorItem}>\n <Text style={[styles.bullet, { color: colors.error.hex }]}>•</Text>\n <Text style={[styles.errorText, { color: colors.error.hex }]}>{error}</Text>\n </View>\n ))}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginTop: 4,\n },\n errorItem: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n marginBottom: 2,\n },\n bullet: {\n marginRight: 4,\n fontSize: 12,\n },\n errorText: {\n flex: 1,\n fontSize: 12,\n },\n});\n\nexport default ErrorList;\n","// src/forms/Input.tsx\n\nimport React, { useContext } from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text';\nimport ErrorList from './ErrorList';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface InputProps extends TextInputProps {\n name: string;\n label: string;\n}\n\nexport const Input: React.FC<InputProps> = ({ name, label, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n <TextInput\n style={[\n styles.input,\n {\n backgroundColor: colors.body.hex,\n borderColor: formErrors[name] ? colors.error.hex : '#CCC',\n color: colors.text.hex,\n },\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor={colors.text.hex} // Can use a lighter version if needed\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n fontSize: 14,\n },\n input: {\n height: 40,\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n },\n});\n","// src/forms/TextArea.tsx\n\nimport React from 'react';\nimport { TextInput, StyleSheet, View, TextInputProps } from 'react-native';\nimport { useFormContext } from './FormContext';\nimport { Text } from '../fonts/Text'; // Assuming the Text component is exported from fonts\nimport ErrorList from './ErrorList';\n\ninterface TextAreaProps extends TextInputProps {\n name: string;\n label: string;\n errors?: string[]; // Optional prop to directly pass errors\n}\n\nconst TextArea: React.FC<TextAreaProps> = ({ name, label, errors, style, ...rest }) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n\n const handleChange = (text: string) => {\n setFormValue(name, text);\n };\n\n return (\n <View style={styles.container}>\n <Text style={styles.label}>{label}</Text>\n <TextInput\n style={[\n styles.textArea,\n style,\n ]}\n value={formValues[name] || ''}\n onChangeText={handleChange}\n placeholder={label}\n placeholderTextColor=\"#888\" // Can be themed if needed\n multiline\n numberOfLines={4}\n textAlignVertical=\"top\"\n {...rest}\n />\n {/* Display errors only if form has been submitted and there are errors */}\n {formErrors[name] && formErrors[name].length > 0 && (\n <ErrorList errors={formErrors[name]} />\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n label: {\n marginBottom: 4,\n color: '#000', // Should be themed\n },\n textArea: {\n height: 100,\n borderColor: '#CCC', // Should be themed\n borderWidth: 1,\n borderRadius: 4,\n paddingHorizontal: 8,\n paddingVertical: 8,\n backgroundColor: '#FFFFFF', // Should use 'body' color from theme\n color: '#000', // Should use 'text' color from theme\n },\n});\n\nexport default TextArea;\n","// src/forms/Label.tsx\n\nimport React, { useContext } from 'react';\nimport { StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from '../theme/ThemeContext';\n\ninterface LabelProps {\n text: string;\n style?: any;\n}\n\nconst Label: React.FC<LabelProps> = ({ text, style }) => {\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n return <Text style={[styles.label, style, { color: colors.text.hex }]}>{text}</Text>;\n};\n\nconst styles = StyleSheet.create({\n label: {\n marginBottom: 4,\n fontWeight: '500',\n },\n});\n\nexport default Label;\n"],"names":["lightTheme","primary","hex","rgb","r","g","b","secondary","background","text","textButton","error","success","warning","body","darkTheme","ThemeContext","createContext","theme","colors","toggleTheme","ThemeProvider","_a","children","initialTheme","_b","useState","colorScheme","setColorScheme","_c","useAsyncStorage","getItem","setItem","useEffect","loadTheme","__awaiter","systemTheme","Appearance","getColorScheme","console","subscription","addChangeListener","remove","newTheme","sent","error_1","React","createElement","Provider","value","ThemeToggle","useContext","isDarkMode","View","style","styles","container","Text","color","Switch","onValueChange","trackColor","thumbColor","StyleSheet","create","marginTop","flexDirection","alignItems","marginRight","fontSize","typeStyles","type","disabled","themeColors","backgroundColor","concat","borderWidth","borderColor","opacity","Button","_d","rounded","_e","borderRadius","_f","isFullWidth","_g","loading","onPress","computedStyles","useMemo","flatten","button","width","textColor","TouchableOpacity","activeOpacity","ActivityIndicator","size","Array","isArray","join","toUpperCase","justifyContent","paddingVertical","paddingHorizontal","Card","pressable","elevation","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","android","cardStyles","padding","i","u","align","_h","_j","h","fontWeight","fontStyle","textDecorationLine","textAlign","textStyles","RNText","FormContext","undefined","useFormContext","context","Error","Form","onSubmit","formValues","setFormValues","errors","setErrors","setFormValue","name","prev","handleSubmit","event","preventDefault","validationErrors","Object","keys","length","ErrorList","map","index","key","errorItem","bullet","errorText","marginBottom","flex","Input","label","rest","__rest","formErrors","handleChange","TextInput","__assign","input","onChangeText","placeholder","placeholderTextColor","TextArea","textArea","multiline","numberOfLines","textAlignVertical","Label"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,SAAS;AACT,QAAQ,OAAO,CAAC,CAAC;AACjB,MAAK;AACL,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAC3C,EAAC;AACD;AACO,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE;AAC7B,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;AACf,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;AACvF,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC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YAAY,EAAE,CAAC;IACfxG,KAAK,EAAE,MAAM;GACd;AACDuH,EAAAA,QAAQ,EAAE;AACR7D,IAAAA,MAAM,EAAE,GAAG;AACXvC,IAAAA,WAAW,EAAE,MAAM;AAAE;AACrBD,IAAAA,WAAW,EAAE,CAAC;AACdO,IAAAA,YAAY,EAAE,CAAC;AACfsB,IAAAA,iBAAiB,EAAE,CAAC;AACpBD,IAAAA,eAAe,EAAE,CAAC;AAClB9B,IAAAA,eAAe,EAAE,SAAS;AAAE;IAC5BhB,KAAK,EAAE,MAAM;AACd,GAAA;AACF,CAAA,CAAC;;AChEF;AAYA,IAAM2H,KAAK,GAAyB,SAA9BA,KAAKA,CAA0B/J,EAAe,EAAA;MAAbb,IAAI,GAAAa,EAAA,CAAAb,IAAA;IAAE6C,KAAK,GAAAhC,EAAA,CAAAgC,KAAA,CAAA;AACtC,EAAA,IAAApC,KAAK,GAAKiC,gBAAU,CAACnC,YAAY,CAAC,MAA7B,CAAA;AACL,EAAA,IAAAG,MAAM,GAAKD,KAAK,CAAAC,MAAV,CAAA;AAChB,EAAA,oBAAO2B,KAAA,CAAAC,aAAA,CAACU,IAAI,EAAA;AAACH,IAAAA,KAAK,EAAE,CAACC,MAAM,CAAC8G,KAAK,EAAE/G,KAAK,EAAE;AAAEI,MAAAA,KAAK,EAAEvC,MAAM,CAACV,IAAI,CAACP,GAAAA;KAAK,CAAA;GAAC,EAAGO,IAAI,CAAQ,CAAA;AACtF,EAAC;AAED,IAAM8C,MAAM,GAAGQ,sBAAU,CAACC,MAAM,CAAC;AAC/BqG,EAAAA,KAAK,EAAE;AACLH,IAAAA,YAAY,EAAE,CAAC;AACflC,IAAAA,UAAU,EAAE,KAAA;AACb,GAAA;AACF,CAAA,CAAC;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aport-tools",
3
- "version": "4.1.21",
3
+ "version": "4.1.23",
4
4
  "description": "Aport mobile Tools with modern and minimalistic design",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",