aport-tools 4.2.1 → 4.2.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.2.1 | ISC */
1
+ /*! aport-tools v4.2.3 | ISC */
2
2
  import React, { useContext, useState, createContext, useCallback, useMemo } from 'react';
3
3
  import { StyleSheet, Text as Text$1, View, TextInput, TouchableOpacity, Modal, Pressable, FlatList, Keyboard, ActivityIndicator, Platform } from 'react-native';
4
4
  import { ThemeContext } from 'aport-themes';
@@ -487,14 +487,15 @@ var InputList = function InputList(_a) {
487
487
  var alreadySelected = selectedOptions.some(function (opt) {
488
488
  return opt.id === option.id;
489
489
  });
490
+ // Add or remove item from selected options
490
491
  var updatedSelections = alreadySelected ? selectedOptions.filter(function (opt) {
491
492
  return opt.id !== option.id;
492
493
  }) : __spreadArray(__spreadArray([], selectedOptions, true), [option], false);
493
- // Close dropdown if max selection reached
494
+ // Close dropdown if max selection is reached after selecting
494
495
  if (!alreadySelected && maxSelection && updatedSelections.length >= maxSelection) {
495
496
  setIsDropdownVisible(false);
496
497
  }
497
- // Update form value with selected items
498
+ // Update form value
498
499
  setFormValue(name, updatedSelections);
499
500
  } else {
500
501
  setFormValue(name, option);
@@ -526,6 +527,12 @@ var InputList = function InputList(_a) {
526
527
  var handleCloseDropdown = useCallback(function () {
527
528
  if (isDropdownVisible) setIsDropdownVisible(false);
528
529
  }, [isDropdownVisible]);
530
+ // Conditionally render item as disabled if max selection reached and item is unselected
531
+ var isItemDisabled = function isItemDisabled(option) {
532
+ return multi && maxSelection && selectedOptions.length >= maxSelection && !selectedOptions.some(function (opt) {
533
+ return opt.id === option.id;
534
+ });
535
+ };
529
536
  return /*#__PURE__*/React.createElement(View, {
530
537
  style: [styles$2.container, style]
531
538
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
@@ -554,15 +561,24 @@ var InputList = function InputList(_a) {
554
561
  },
555
562
  renderItem: function renderItem(_a) {
556
563
  var item = _a.item;
564
+ var isSelected = selectedOptions.some(function (opt) {
565
+ return opt.id === item.id;
566
+ });
567
+ var isDisabled = isItemDisabled(item);
557
568
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
558
569
  onPress: function onPress() {
559
570
  return handleSelectOption(item);
560
571
  },
561
- style: styles$2.optionItem
572
+ style: [styles$2.optionItem, isSelected ? {
573
+ backgroundColor: colors.primary.hex
574
+ } : {}, isDisabled ? styles$2.disabledItem : {}],
575
+ disabled: !!isDisabled
562
576
  }, /*#__PURE__*/React.createElement(Text$1, {
563
- style: {
577
+ style: [isSelected ? {
578
+ color: colors.background.hex
579
+ } : {
564
580
  color: colors.text.hex
565
- }
581
+ }, isDisabled ? styles$2.disabledText : {}]
566
582
  }, item.label));
567
583
  },
568
584
  ItemSeparatorComponent: function ItemSeparatorComponent() {
@@ -585,15 +601,24 @@ var styles$2 = StyleSheet.create({
585
601
  },
586
602
  dropdownContainer: {
587
603
  position: 'absolute',
588
- top: 60,
604
+ top: '30%',
605
+ // Center the dropdown vertically
606
+ alignSelf: 'center',
589
607
  width: '90%',
608
+ backgroundColor: '#fff',
590
609
  borderRadius: 8,
591
610
  elevation: 5,
592
- alignSelf: 'center'
611
+ paddingVertical: 10
593
612
  },
594
613
  optionItem: {
595
614
  padding: 12
596
615
  },
616
+ disabledItem: {
617
+ backgroundColor: '#f0f0f0'
618
+ },
619
+ disabledText: {
620
+ color: '#999'
621
+ },
597
622
  separator: {
598
623
  height: 1,
599
624
  backgroundColor: '#ddd',
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../node_modules/tslib/tslib.es6.js","../src/forms/FormContext.tsx","../src/fonts/Text.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx","../src/forms/InputList.tsx","../src/components/Button.tsx","../src/cards/Card.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/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 \n // Set the validation errors in state\n setErrors(validationErrors);\n \n // Prevent submission if there are any errors\n if (Object.keys(validationErrors).length > 0) {\n return; // Prevent submission\n }\n \n };\n \n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, setErrors, handleSubmit }}>\n {children}\n </FormContext.Provider>\n );\n};\n","// src/fonts/Text.tsx\n\nimport { ThemeColors, ThemeContext, ThemeFonts } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\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 * Text font type. Defaults to 'body'. Should match the keys in ThemeFonts.\n * This restricts type to known fonts keys like 'primary', 'secundary', etc.\n */\n typeFont?: keyof ThemeFonts; // <-- New prop to select font type\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 type - Type of Text component. Defaults to 'text'.\n * @param typeFont - Type of Font component. Defaults to 'body'.\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 typeFont = 'body',\n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors, fonts } = theme;\n\n // Determine font family and size based on 'typeFont'\n const fontSettings = fonts[typeFont] || fonts.body;\n const fontFamily = fontSettings.fontFamily;\n let fontSize = fontSettings.fontSize || size;\n\n // Calculate header size based on 'h' prop\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n \n // Define font weight based on bold prop\n const fontWeight = b ? '700' : fontSettings.fontWeight || '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 fontFamily,\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/ErrorList.tsx\n\nimport React, { useContext } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from 'aport-themes';\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 {\n TextInput,\n StyleSheet,\n View,\n TextInputProps,\n} from \"react-native\";\nimport { useFormContext } from \"./FormContext\";\nimport { Text } from \"../fonts/Text\";\nimport ErrorList from \"./ErrorList\";\nimport { ThemeContext } from \"aport-themes\";\n\n/**\n * Defines the props for the Input component.\n */\ninterface InputProps extends TextInputProps {\n /**\n * The unique identifier for the input field, used to manage its state within the form.\n */\n name: string;\n\n /**\n * The text label displayed above the input field.\n */\n label: string;\n\n /**\n * Specifies the type of input and applies corresponding formatting.\n * - 'phone': Formats input as a phone number (xxx-xxx-xxxx).\n * - 'id': Converts all input characters to uppercase (useful for IDs, passports).\n * - 'uppercase': Forces all input characters to uppercase (useful for codes).\n * - 'numeric': Restricts input to numeric characters only.\n */\n inputType?: \"phone\" | \"id\" | \"uppercase\" | \"numeric\";\n}\n\n/**\n * Input component that supports labels, error messages, and integrates with the Theme system.\n *\n * @param {InputProps} props - Props passed to the component.\n * @returns {JSX.Element} The rendered Input component.\n *\n * @example\n * <Input\n * name=\"email\"\n * label=\"Email\"\n * keyboardType=\"email-address\"\n * inputType=\"id\"\n * />\n */\nexport const Input: React.FC<InputProps> = ({\n name,\n label,\n inputType,\n style,\n ...rest\n}) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles text changes in the input field, applying formatting based on the inputType.\n *\n * @param {string} text - The current text input by the user.\n */\n const handleChange = (text: string) => {\n let formattedText = text;\n\n // Apply different formatting based on inputType\n switch (inputType) {\n case \"phone\":\n // Remove all non-digit characters\n formattedText = text.replace(/\\D/g, \"\");\n // Insert hyphens to format as xxx-xxx-xxxx\n if (formattedText.length > 3 && formattedText.length <= 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(3)}`;\n } else if (formattedText.length > 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(\n 3,\n 6\n )}-${formattedText.slice(6, 10)}`;\n }\n break;\n case \"id\":\n case \"uppercase\":\n // Convert all input to uppercase\n formattedText = text.toUpperCase();\n break;\n case \"numeric\":\n // Allow only numeric input\n formattedText = text.replace(/\\D/g, \"\");\n break;\n default:\n break;\n }\n\n setFormValue(name, formattedText);\n };\n\n return (\n <View style={styles.container}>\n {/* Label */}\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n\n {/* Input Field */}\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.placeHolder.hex} // Can use a lighter version if needed\n {...rest}\n />\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 'aport-themes';\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","import React, { useState, useRef, useCallback, useContext } from 'react';\nimport { View, Text, TouchableOpacity, FlatList, TextInput, StyleSheet, Modal, Pressable, Keyboard } from 'react-native';\nimport { ThemeContext } from \"aport-themes\";\nimport { useFormContext } from '../forms/FormContext';\n\ninterface Option {\n id: number | string;\n label: string;\n value: any;\n}\n\ninterface InputListProps {\n name: string;\n /**\n * Placeholder text displayed in the input box when no selection is made.\n * @type {string}\n * @default \"Choose value/s\"\n */\n placeholder?: string;\n \n /**\n * Custom styles for the component.\n * @type {object}\n */\n style?: object;\n\n /**\n * Array of options to display in the dropdown. Each option should have an id, label, and value.\n * @type {Option[]}\n */\n options: Option[];\n\n /**\n * Enables multi-selection mode when true. If enabled, users can select multiple values.\n * @type {boolean}\n * @default false\n */\n multi?: boolean;\n\n /**\n * Disables the dropdown input when true.\n * @type {boolean}\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Key used to sort options in the dropdown (e.g., by 'id', 'label').\n * @type {keyof Option}\n */\n sortBy?: keyof Option;\n\n /**\n * If true, displays a separator line between each option.\n * @type {boolean}\n * @default false\n */\n separator?: boolean;\n\n /**\n * Closes the dropdown if the user scrolls the list.\n * @type {boolean}\n * @default false\n */\n closeOnScroll?: boolean;\n\n /**\n * Closes the dropdown after selecting an item if true (only relevant when multi is false).\n * @type {boolean}\n * @default true\n */\n closeOnSelect?: boolean;\n\n /**\n * Limits the maximum number of items that can be selected when multi is true.\n * Once the limit is reached, the dropdown closes, and no further selections can be made until\n * an item is deselected.\n * @type {number}\n */\n maxSelection?: number;\n}\n\n/**\n * InputList component - A custom dropdown list component for React Native with multi-selection support,\n * customizable styling, sorting, and configurable close behavior on selection or scrolling.\n *\n * @param {string} placeholder - Placeholder text for the input.\n * @param {object} style - Custom styles for the component.\n * @param {Option[]} options - Array of options to display in the dropdown.\n * @param {boolean} multi - Enables multi-selection mode.\n * @param {boolean} disabled - Disables the dropdown input.\n * @param {keyof Option} sortBy - Key to sort options by (e.g., 'id').\n * @param {boolean} separator - If true, adds a separator line between options.\n * @param {boolean} closeOnScroll - Closes the dropdown if the user scrolls the list.\n * @param {boolean} closeOnSelect - Closes the dropdown on selection in single-select mode.\n * @param {number} maxSelection - Maximum number of items selectable in multi-select mode.\n */\nexport const InputList: React.FC<InputListProps> = ({\n name,\n placeholder = \"Choose value/s\",\n style,\n options,\n multi = false,\n disabled = false,\n sortBy,\n separator = false,\n closeOnScroll = false,\n closeOnSelect = true,\n maxSelection,\n}) => {\n const { formValues, setFormValue } = useFormContext();\n const [isDropdownVisible, setIsDropdownVisible] = useState(false);\n \n const selectedOptions = formValues[name] || (multi ? [] : null);\n const sortedOptions = sortBy ? [...options].sort((a, b) => (a[sortBy] > b[sortBy] ? 1 : -1)) : options;\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles selection of an option. Adds or removes the option from selectedOptions based on\n * multi-selection and maxSelection criteria.\n * @param {Option} option - The selected option object.\n */\n const handleSelectOption = (option: Option) => {\n if (multi) {\n const alreadySelected = selectedOptions.some((opt: Option) => opt.id === option.id);\n\n const updatedSelections = alreadySelected\n ? selectedOptions.filter((opt: Option) => opt.id !== option.id)\n : [...selectedOptions, option];\n\n // Close dropdown if max selection reached\n if (!alreadySelected && maxSelection && updatedSelections.length >= maxSelection) {\n setIsDropdownVisible(false);\n }\n\n // Update form value with selected items\n setFormValue(name, updatedSelections);\n } else {\n setFormValue(name, option);\n if (closeOnSelect) setIsDropdownVisible(false);\n }\n };\n\n\n /**\n * Renders selected options as a comma-separated string or the placeholder if none selected.\n * @returns {string} - The display text for selected options or placeholder.\n */\n const renderSelectedText = () => {\n if (multi) return selectedOptions.map((opt: Option) => opt.label).join(', ') || placeholder;\n return selectedOptions?.label || placeholder;\n };\n\n /**\n * Toggles dropdown visibility. Disables toggle if the component is disabled.\n */\n const toggleDropdown = () => {\n if (!disabled) {\n setIsDropdownVisible(!isDropdownVisible);\n if (!isDropdownVisible) Keyboard.dismiss();\n }\n };\n\n /**\n * Closes the dropdown when pressing outside.\n */\n const handleCloseDropdown = useCallback(() => {\n if (isDropdownVisible) setIsDropdownVisible(false);\n }, [isDropdownVisible]);\n\n return (\n <View style={[styles.container, style]}>\n <TouchableOpacity style={styles.inputContainer} onPress={toggleDropdown} disabled={disabled}>\n <Text style={{color: colors.text.hex}}>{renderSelectedText()}</Text>\n </TouchableOpacity>\n \n <Modal visible={isDropdownVisible} transparent animationType=\"fade\">\n <Pressable style={styles.overlay} onPress={handleCloseDropdown} />\n <View style={[styles.dropdownContainer,{backgroundColor: colors.body.hex,\n}]}>\n <FlatList\n data={sortedOptions}\n keyExtractor={(item) => item.id.toString()}\n renderItem={({ item }) => (\n <TouchableOpacity onPress={() => handleSelectOption(item)} style={styles.optionItem}>\n <Text style={{color: colors.text.hex}}>{item.label}</Text>\n </TouchableOpacity>\n )}\n ItemSeparatorComponent={() => separator ? <View style={styles.separator} /> : null}\n scrollEnabled={!closeOnScroll}\n />\n </View>\n </Modal>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: { padding: 8 },\n inputContainer: { padding: 12, borderWidth: 1, borderColor: '#ccc', borderRadius: 5 },\n dropdownContainer: { position: 'absolute', top: 60, width: '90%', borderRadius: 8, elevation: 5, alignSelf: 'center' },\n optionItem: { padding: 12 },\n separator: { height: 1, backgroundColor: '#ddd', marginHorizontal: 8 },\n overlay: { flex: 1, backgroundColor: 'rgba(0,0,0,0.3)' },\n});\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { useFormContext } from '../forms';\nimport { ThemeColors, ThemeContext } from 'aport-themes';\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 const { handleSubmit } = useFormContext();\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 type === \"cancel\" ? { color: colors.text.hex } : { color: colors.textButton.hex };\n }, [type, colors]);\n\n const handlePress = () => {\n if (type === 'submit') {\n handleSubmit(); // Call the form's submit handler\n } else if (onPress) {\n onPress(); // Call a custom handler if needed\n }\n };\n\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={handlePress}\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 { ThemeContext } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\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.background.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"],"names":["FormContext","createContext","undefined","useFormContext","context","useContext","Error","Form","_a","children","onSubmit","_b","useState","formValues","setFormValues","_c","errors","setErrors","setFormValue","name","value","prev","handleSubmit","__awaiter","validationErrors","sent","Object","keys","length","React","createElement","Provider","Text","size","_d","b","_e","i","_f","u","_g","align","_h","type","_j","typeFont","_k","h","style","theme","ThemeContext","colors","fonts","fontSettings","body","fontFamily","fontSize","fontWeight","fontStyle","textDecorationLine","textAlign","textColor","hex","text","textStyles","color","RNText","StyleSheet","create","ErrorList","View","styles","container","map","error","index","key","errorItem","bullet","errorText","marginTop","flexDirection","alignItems","marginBottom","marginRight","flex","Input","label","inputType","rest","__rest","formErrors","handleChange","formattedText","replace","concat","slice","toUpperCase","TextInput","__assign","input","backgroundColor","borderColor","onChangeText","placeholder","placeholderTextColor","placeHolder","height","borderWidth","borderRadius","paddingHorizontal","TextArea","textArea","multiline","numberOfLines","textAlignVertical","paddingVertical","Label","InputList","options","multi","disabled","sortBy","separator","closeOnScroll","closeOnSelect","maxSelection","isDropdownVisible","setIsDropdownVisible","selectedOptions","sortedOptions","__spreadArray","sort","a","handleSelectOption","option","alreadySelected","some","opt","id","updatedSelections","filter","renderSelectedText","join","toggleDropdown","Keyboard","dismiss","handleCloseDropdown","useCallback","TouchableOpacity","inputContainer","onPress","Modal","visible","transparent","animationType","Pressable","overlay","dropdownContainer","FlatList","data","keyExtractor","item","toString","renderItem","optionItem","ItemSeparatorComponent","scrollEnabled","padding","position","top","width","elevation","alignSelf","marginHorizontal","typeStyles","themeColors","primary","rgb","r","g","secondary","opacity","background","Button","rounded","isFullWidth","loading","computedStyles","useMemo","flatten","button","textButton","handlePress","activeOpacity","ActivityIndicator","Array","isArray","justifyContent","Card","pressable","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","shadowOpacity","shadowRadius","android","cardStyles"],"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,QA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AAA,IAAMuC,UAAU,GAAG,CACjB5I,MAAM,CAACC,SAAS,EAChB;AAAEqC,IAAAA,YAAY,EAAAA,YAAA;AAAER,IAAAA,eAAe,EAAElD,MAAM,CAACoI,UAAU,CAACzH,GAAAA;AAAK,GAAA,EACxD4I,aAAa;AAAE;AACf1J,EAAAA,KAAK;GACN,CAAA;AAED,EAAA,OAAOwJ,SAAS,iBACd3K,oBAACwH,gBAAgB,EAAA;AACf6C,IAAAA,aAAa,EAAE,GAAG;AAClB3C,IAAAA,OAAO,EAAEA,OAAO;AAEhBvG,IAAAA,KAAK,EAAEmK,UAAAA;GAAU,EAGd1M,QAAQ,CACM,kBAEnBoB,KAAA,CAAAC,aAAA,CAACwC,IAAI,EAAA;AAACtB,IAAAA,KAAK,EAAEmK,UAAAA;KACV1M,QAAQ,CACJ,CACR,CAAA;AACH,EAAC;AAED,IAAM8D,MAAM,GAAGJ,UAAU,CAACC,MAAM,CAAC;AAC/BI,EAAAA,SAAS,EAAE;AACTgG,IAAAA,OAAO,EAAE,EAAE;AACX3D,IAAAA,YAAY,EAAE,EAAA;AACd;AACD,GAAA;AACF,CAAA,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.esm.js","sources":["../node_modules/tslib/tslib.es6.js","../src/forms/FormContext.tsx","../src/fonts/Text.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx","../src/forms/InputList.tsx","../src/components/Button.tsx","../src/cards/Card.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/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 \n // Set the validation errors in state\n setErrors(validationErrors);\n \n // Prevent submission if there are any errors\n if (Object.keys(validationErrors).length > 0) {\n return; // Prevent submission\n }\n \n };\n \n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, setErrors, handleSubmit }}>\n {children}\n </FormContext.Provider>\n );\n};\n","// src/fonts/Text.tsx\n\nimport { ThemeColors, ThemeContext, ThemeFonts } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\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 * Text font type. Defaults to 'body'. Should match the keys in ThemeFonts.\n * This restricts type to known fonts keys like 'primary', 'secundary', etc.\n */\n typeFont?: keyof ThemeFonts; // <-- New prop to select font type\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 type - Type of Text component. Defaults to 'text'.\n * @param typeFont - Type of Font component. Defaults to 'body'.\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 typeFont = 'body',\n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors, fonts } = theme;\n\n // Determine font family and size based on 'typeFont'\n const fontSettings = fonts[typeFont] || fonts.body;\n const fontFamily = fontSettings.fontFamily;\n let fontSize = fontSettings.fontSize || size;\n\n // Calculate header size based on 'h' prop\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n \n // Define font weight based on bold prop\n const fontWeight = b ? '700' : fontSettings.fontWeight || '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 fontFamily,\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/ErrorList.tsx\n\nimport React, { useContext } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from 'aport-themes';\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 {\n TextInput,\n StyleSheet,\n View,\n TextInputProps,\n} from \"react-native\";\nimport { useFormContext } from \"./FormContext\";\nimport { Text } from \"../fonts/Text\";\nimport ErrorList from \"./ErrorList\";\nimport { ThemeContext } from \"aport-themes\";\n\n/**\n * Defines the props for the Input component.\n */\ninterface InputProps extends TextInputProps {\n /**\n * The unique identifier for the input field, used to manage its state within the form.\n */\n name: string;\n\n /**\n * The text label displayed above the input field.\n */\n label: string;\n\n /**\n * Specifies the type of input and applies corresponding formatting.\n * - 'phone': Formats input as a phone number (xxx-xxx-xxxx).\n * - 'id': Converts all input characters to uppercase (useful for IDs, passports).\n * - 'uppercase': Forces all input characters to uppercase (useful for codes).\n * - 'numeric': Restricts input to numeric characters only.\n */\n inputType?: \"phone\" | \"id\" | \"uppercase\" | \"numeric\";\n}\n\n/**\n * Input component that supports labels, error messages, and integrates with the Theme system.\n *\n * @param {InputProps} props - Props passed to the component.\n * @returns {JSX.Element} The rendered Input component.\n *\n * @example\n * <Input\n * name=\"email\"\n * label=\"Email\"\n * keyboardType=\"email-address\"\n * inputType=\"id\"\n * />\n */\nexport const Input: React.FC<InputProps> = ({\n name,\n label,\n inputType,\n style,\n ...rest\n}) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles text changes in the input field, applying formatting based on the inputType.\n *\n * @param {string} text - The current text input by the user.\n */\n const handleChange = (text: string) => {\n let formattedText = text;\n\n // Apply different formatting based on inputType\n switch (inputType) {\n case \"phone\":\n // Remove all non-digit characters\n formattedText = text.replace(/\\D/g, \"\");\n // Insert hyphens to format as xxx-xxx-xxxx\n if (formattedText.length > 3 && formattedText.length <= 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(3)}`;\n } else if (formattedText.length > 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(\n 3,\n 6\n )}-${formattedText.slice(6, 10)}`;\n }\n break;\n case \"id\":\n case \"uppercase\":\n // Convert all input to uppercase\n formattedText = text.toUpperCase();\n break;\n case \"numeric\":\n // Allow only numeric input\n formattedText = text.replace(/\\D/g, \"\");\n break;\n default:\n break;\n }\n\n setFormValue(name, formattedText);\n };\n\n return (\n <View style={styles.container}>\n {/* Label */}\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n\n {/* Input Field */}\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.placeHolder.hex} // Can use a lighter version if needed\n {...rest}\n />\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 'aport-themes';\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","import React, { useState, useRef, useCallback, useContext } from 'react';\nimport { View, Text, TouchableOpacity, FlatList, TextInput, StyleSheet, Modal, Pressable, Keyboard } from 'react-native';\nimport { ThemeContext } from \"aport-themes\";\nimport { useFormContext } from '../forms/FormContext';\n\ninterface Option {\n id: number | string;\n label: string;\n value: any;\n}\n\ninterface InputListProps {\n name: string;\n /**\n * Placeholder text displayed in the input box when no selection is made.\n * @type {string}\n * @default \"Choose value/s\"\n */\n placeholder?: string;\n \n /**\n * Custom styles for the component.\n * @type {object}\n */\n style?: object;\n\n /**\n * Array of options to display in the dropdown. Each option should have an id, label, and value.\n * @type {Option[]}\n */\n options: Option[];\n\n /**\n * Enables multi-selection mode when true. If enabled, users can select multiple values.\n * @type {boolean}\n * @default false\n */\n multi?: boolean;\n\n /**\n * Disables the dropdown input when true.\n * @type {boolean}\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Key used to sort options in the dropdown (e.g., by 'id', 'label').\n * @type {keyof Option}\n */\n sortBy?: keyof Option;\n\n /**\n * If true, displays a separator line between each option.\n * @type {boolean}\n * @default false\n */\n separator?: boolean;\n\n /**\n * Closes the dropdown if the user scrolls the list.\n * @type {boolean}\n * @default false\n */\n closeOnScroll?: boolean;\n\n /**\n * Closes the dropdown after selecting an item if true (only relevant when multi is false).\n * @type {boolean}\n * @default true\n */\n closeOnSelect?: boolean;\n\n /**\n * Limits the maximum number of items that can be selected when multi is true.\n * Once the limit is reached, the dropdown closes, and no further selections can be made until\n * an item is deselected.\n * @type {number}\n */\n maxSelection?: number;\n}\n\n/**\n * InputList component - A custom dropdown list component for React Native with multi-selection support,\n * customizable styling, sorting, and configurable close behavior on selection or scrolling.\n *\n * @param {string} placeholder - Placeholder text for the input.\n * @param {object} style - Custom styles for the component.\n * @param {Option[]} options - Array of options to display in the dropdown.\n * @param {boolean} multi - Enables multi-selection mode.\n * @param {boolean} disabled - Disables the dropdown input.\n * @param {keyof Option} sortBy - Key to sort options by (e.g., 'id').\n * @param {boolean} separator - If true, adds a separator line between options.\n * @param {boolean} closeOnScroll - Closes the dropdown if the user scrolls the list.\n * @param {boolean} closeOnSelect - Closes the dropdown on selection in single-select mode.\n * @param {number} maxSelection - Maximum number of items selectable in multi-select mode.\n */\nexport const InputList: React.FC<InputListProps> = ({\n name,\n placeholder = \"Choose value/s\",\n style,\n options,\n multi = false,\n disabled = false,\n sortBy,\n separator = false,\n closeOnScroll = false,\n closeOnSelect = true,\n maxSelection,\n}) => {\n const { formValues, setFormValue } = useFormContext();\n const [isDropdownVisible, setIsDropdownVisible] = useState(false);\n \n const selectedOptions = formValues[name] || (multi ? [] : null);\n const sortedOptions = sortBy ? [...options].sort((a, b) => (a[sortBy] > b[sortBy] ? 1 : -1)) : options;\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles selection of an option. Adds or removes the option from selectedOptions based on\n * multi-selection and maxSelection criteria.\n * @param {Option} option - The selected option object.\n */\n const handleSelectOption = (option: Option) => {\n if (multi) {\n const alreadySelected = selectedOptions.some((opt: Option) => opt.id === option.id);\n\n // Add or remove item from selected options\n const updatedSelections = alreadySelected\n ? selectedOptions.filter((opt: Option) => opt.id !== option.id)\n : [...selectedOptions, option];\n\n // Close dropdown if max selection is reached after selecting\n if (!alreadySelected && maxSelection && updatedSelections.length >= maxSelection) {\n setIsDropdownVisible(false);\n }\n\n // Update form value\n setFormValue(name, updatedSelections);\n } else {\n setFormValue(name, option);\n if (closeOnSelect) setIsDropdownVisible(false);\n }\n };\n\n\n /**\n * Renders selected options as a comma-separated string or the placeholder if none selected.\n * @returns {string} - The display text for selected options or placeholder.\n */\n const renderSelectedText = () => {\n if (multi) return selectedOptions.map((opt: Option) => opt.label).join(', ') || placeholder;\n return selectedOptions?.label || placeholder;\n };\n\n /**\n * Toggles dropdown visibility. Disables toggle if the component is disabled.\n */\n const toggleDropdown = () => {\n if (!disabled) {\n setIsDropdownVisible(!isDropdownVisible);\n if (!isDropdownVisible) Keyboard.dismiss();\n }\n };\n\n /**\n * Closes the dropdown when pressing outside.\n */\n const handleCloseDropdown = useCallback(() => {\n if (isDropdownVisible) setIsDropdownVisible(false);\n }, [isDropdownVisible]);\n\n // Conditionally render item as disabled if max selection reached and item is unselected\n const isItemDisabled = (option: Option) => {\n return (\n multi &&\n maxSelection &&\n selectedOptions.length >= maxSelection &&\n !selectedOptions.some((opt: Option) => opt.id === option.id)\n );\n };\n\n\n return (\n <View style={[styles.container, style]}>\n <TouchableOpacity style={styles.inputContainer} onPress={toggleDropdown} disabled={disabled}>\n <Text style={{color: colors.text.hex}}>{renderSelectedText()}</Text>\n </TouchableOpacity>\n \n <Modal visible={isDropdownVisible} transparent animationType=\"fade\">\n <Pressable style={styles.overlay} onPress={handleCloseDropdown} />\n <View style={[styles.dropdownContainer,{backgroundColor: colors.body.hex,\n}]}>\n <FlatList\n data={sortedOptions}\n keyExtractor={(item) => item.id.toString()}\n renderItem={({ item }) => {\n const isSelected = selectedOptions.some((opt: Option) => opt.id === item.id);\n const isDisabled = isItemDisabled(item);\n\n return (\n <TouchableOpacity\n onPress={() => handleSelectOption(item)}\n style={[\n styles.optionItem,\n isSelected ? {backgroundColor: colors.primary.hex} : {},\n isDisabled ? styles.disabledItem : {},\n ]}\n disabled={!!isDisabled} // Ensure disabled prop is a boolean\n >\n <Text style={[isSelected ? {color: colors.background.hex}: {color: colors.text.hex}, isDisabled ? styles.disabledText : {}]}>\n {item.label}\n </Text>\n </TouchableOpacity>\n );\n }}\n ItemSeparatorComponent={() => (separator ? <View style={styles.separator} /> : null)}\n scrollEnabled={!closeOnScroll}\n />\n </View>\n </Modal>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: { padding: 8 },\n inputContainer: { padding: 12, borderWidth: 1, borderColor: '#ccc', borderRadius: 5 },\n dropdownContainer: {\n position: 'absolute',\n top: '30%', // Center the dropdown vertically\n alignSelf: 'center',\n width: '90%',\n backgroundColor: '#fff',\n borderRadius: 8,\n elevation: 5,\n paddingVertical: 10,\n },\n optionItem: { padding: 12 },\n disabledItem: { backgroundColor: '#f0f0f0' },\n disabledText: { color: '#999' },\n separator: { height: 1, backgroundColor: '#ddd', marginHorizontal: 8 },\n overlay: { flex: 1, backgroundColor: 'rgba(0,0,0,0.3)' },\n});\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { useFormContext } from '../forms';\nimport { ThemeColors, ThemeContext } from 'aport-themes';\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 const { handleSubmit } = useFormContext();\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 type === \"cancel\" ? { color: colors.text.hex } : { color: colors.textButton.hex };\n }, [type, colors]);\n\n const handlePress = () => {\n if (type === 'submit') {\n handleSubmit(); // Call the form's submit handler\n } else if (onPress) {\n onPress(); // Call a custom handler if needed\n }\n };\n\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={handlePress}\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 { ThemeContext } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\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.background.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"],"names":["FormContext","createContext","undefined","useFormContext","context","useContext","Error","Form","_a","children","onSubmit","_b","useState","formValues","setFormValues","_c","errors","setErrors","setFormValue","name","value","prev","handleSubmit","__awaiter","validationErrors","sent","Object","keys","length","React","createElement","Provider","Text","size","_d","b","_e","i","_f","u","_g","align","_h","type","_j","typeFont","_k","h","style","theme","ThemeContext","colors","fonts","fontSettings","body","fontFamily","fontSize","fontWeight","fontStyle","textDecorationLine","textAlign","textColor","hex","text","textStyles","color","RNText","StyleSheet","create","ErrorList","View","styles","container","map","error","index","key","errorItem","bullet","errorText","marginTop","flexDirection","alignItems","marginBottom","marginRight","flex","Input","label","inputType","rest","__rest","formErrors","handleChange","formattedText","replace","concat","slice","toUpperCase","TextInput","__assign","input","backgroundColor","borderColor","onChangeText","placeholder","placeholderTextColor","placeHolder","height","borderWidth","borderRadius","paddingHorizontal","TextArea","textArea","multiline","numberOfLines","textAlignVertical","paddingVertical","Label","InputList","options","multi","disabled","sortBy","separator","closeOnScroll","closeOnSelect","maxSelection","isDropdownVisible","setIsDropdownVisible","selectedOptions","sortedOptions","__spreadArray","sort","a","handleSelectOption","option","alreadySelected","some","opt","id","updatedSelections","filter","renderSelectedText","join","toggleDropdown","Keyboard","dismiss","handleCloseDropdown","useCallback","isItemDisabled","TouchableOpacity","inputContainer","onPress","Modal","visible","transparent","animationType","Pressable","overlay","dropdownContainer","FlatList","data","keyExtractor","item","toString","renderItem","isSelected","isDisabled","optionItem","primary","disabledItem","background","disabledText","ItemSeparatorComponent","scrollEnabled","padding","position","top","alignSelf","width","elevation","marginHorizontal","typeStyles","themeColors","rgb","r","g","secondary","opacity","Button","rounded","isFullWidth","loading","computedStyles","useMemo","flatten","button","textButton","handlePress","activeOpacity","ActivityIndicator","Array","isArray","justifyContent","Card","pressable","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","shadowOpacity","shadowRadius","android","cardStyles"],"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,C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AAA,IAAAA,WAAW,uBAAXA,WAAW,CAAEO,aAAa,KAAI,GAAG;AAChDC,MAAAA,YAAY,EAAE,CAAAR,WAAW,KAAX,IAAA,IAAAA,WAAW,uBAAXA,WAAW,CAAEQ,YAAY,KAAI,CAAA;KAC5C;AACDC,IAAAA,OAAO,EAAE;MACPnC,SAAS,EAAEA,SAAS;AACrB,KAAA;AACF,GAAA,CAAC,CAAA;AAEF,EAAA,IAAMoC,UAAU,GAAG,CACjBjJ,MAAM,CAACC,SAAS,EAChB;AAAEqC,IAAAA,YAAY,EAAAA,YAAA;AAAER,IAAAA,eAAe,EAAElD,MAAM,CAACwH,UAAU,CAAC7G,GAAAA;AAAK,GAAA,EACxDiJ,aAAa;AAAE;AACf/J,EAAAA,KAAK;GACN,CAAA;AAED,EAAA,OAAO6J,SAAS,iBACdhL,oBAACyH,gBAAgB,EAAA;AACfiD,IAAAA,aAAa,EAAE,GAAG;AAClB/C,IAAAA,OAAO,EAAEA,OAAO;AAEhBxG,IAAAA,KAAK,EAAEwK,UAAAA;GAAU,EAGd/M,QAAQ,CACM,kBAEnBoB,KAAA,CAAAC,aAAA,CAACwC,IAAI,EAAA;AAACtB,IAAAA,KAAK,EAAEwK,UAAAA;KACV/M,QAAQ,CACJ,CACR,CAAA;AACH,EAAC;AAED,IAAM8D,MAAM,GAAGJ,UAAU,CAACC,MAAM,CAAC;AAC/BI,EAAAA,SAAS,EAAE;AACTuG,IAAAA,OAAO,EAAE,EAAE;AACXlE,IAAAA,YAAY,EAAE,EAAA;AACd;AACD,GAAA;AACF,CAAA,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.2.1 | ISC */
1
+ /*! aport-tools v4.2.3 | ISC */
2
2
  'use strict';
3
3
 
4
4
  var React = require('react');
@@ -489,14 +489,15 @@ var InputList = function InputList(_a) {
489
489
  var alreadySelected = selectedOptions.some(function (opt) {
490
490
  return opt.id === option.id;
491
491
  });
492
+ // Add or remove item from selected options
492
493
  var updatedSelections = alreadySelected ? selectedOptions.filter(function (opt) {
493
494
  return opt.id !== option.id;
494
495
  }) : __spreadArray(__spreadArray([], selectedOptions, true), [option], false);
495
- // Close dropdown if max selection reached
496
+ // Close dropdown if max selection is reached after selecting
496
497
  if (!alreadySelected && maxSelection && updatedSelections.length >= maxSelection) {
497
498
  setIsDropdownVisible(false);
498
499
  }
499
- // Update form value with selected items
500
+ // Update form value
500
501
  setFormValue(name, updatedSelections);
501
502
  } else {
502
503
  setFormValue(name, option);
@@ -528,6 +529,12 @@ var InputList = function InputList(_a) {
528
529
  var handleCloseDropdown = React.useCallback(function () {
529
530
  if (isDropdownVisible) setIsDropdownVisible(false);
530
531
  }, [isDropdownVisible]);
532
+ // Conditionally render item as disabled if max selection reached and item is unselected
533
+ var isItemDisabled = function isItemDisabled(option) {
534
+ return multi && maxSelection && selectedOptions.length >= maxSelection && !selectedOptions.some(function (opt) {
535
+ return opt.id === option.id;
536
+ });
537
+ };
531
538
  return /*#__PURE__*/React.createElement(reactNative.View, {
532
539
  style: [styles$2.container, style]
533
540
  }, /*#__PURE__*/React.createElement(reactNative.TouchableOpacity, {
@@ -556,15 +563,24 @@ var InputList = function InputList(_a) {
556
563
  },
557
564
  renderItem: function renderItem(_a) {
558
565
  var item = _a.item;
566
+ var isSelected = selectedOptions.some(function (opt) {
567
+ return opt.id === item.id;
568
+ });
569
+ var isDisabled = isItemDisabled(item);
559
570
  return /*#__PURE__*/React.createElement(reactNative.TouchableOpacity, {
560
571
  onPress: function onPress() {
561
572
  return handleSelectOption(item);
562
573
  },
563
- style: styles$2.optionItem
574
+ style: [styles$2.optionItem, isSelected ? {
575
+ backgroundColor: colors.primary.hex
576
+ } : {}, isDisabled ? styles$2.disabledItem : {}],
577
+ disabled: !!isDisabled
564
578
  }, /*#__PURE__*/React.createElement(reactNative.Text, {
565
- style: {
579
+ style: [isSelected ? {
580
+ color: colors.background.hex
581
+ } : {
566
582
  color: colors.text.hex
567
- }
583
+ }, isDisabled ? styles$2.disabledText : {}]
568
584
  }, item.label));
569
585
  },
570
586
  ItemSeparatorComponent: function ItemSeparatorComponent() {
@@ -587,15 +603,24 @@ var styles$2 = reactNative.StyleSheet.create({
587
603
  },
588
604
  dropdownContainer: {
589
605
  position: 'absolute',
590
- top: 60,
606
+ top: '30%',
607
+ // Center the dropdown vertically
608
+ alignSelf: 'center',
591
609
  width: '90%',
610
+ backgroundColor: '#fff',
592
611
  borderRadius: 8,
593
612
  elevation: 5,
594
- alignSelf: 'center'
613
+ paddingVertical: 10
595
614
  },
596
615
  optionItem: {
597
616
  padding: 12
598
617
  },
618
+ disabledItem: {
619
+ backgroundColor: '#f0f0f0'
620
+ },
621
+ disabledText: {
622
+ color: '#999'
623
+ },
599
624
  separator: {
600
625
  height: 1,
601
626
  backgroundColor: '#ddd',
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../src/forms/FormContext.tsx","../src/fonts/Text.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx","../src/forms/InputList.tsx","../src/components/Button.tsx","../src/cards/Card.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/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 \n // Set the validation errors in state\n setErrors(validationErrors);\n \n // Prevent submission if there are any errors\n if (Object.keys(validationErrors).length > 0) {\n return; // Prevent submission\n }\n \n };\n \n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, setErrors, handleSubmit }}>\n {children}\n </FormContext.Provider>\n );\n};\n","// src/fonts/Text.tsx\n\nimport { ThemeColors, ThemeContext, ThemeFonts } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\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 * Text font type. Defaults to 'body'. Should match the keys in ThemeFonts.\n * This restricts type to known fonts keys like 'primary', 'secundary', etc.\n */\n typeFont?: keyof ThemeFonts; // <-- New prop to select font type\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 type - Type of Text component. Defaults to 'text'.\n * @param typeFont - Type of Font component. Defaults to 'body'.\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 typeFont = 'body',\n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors, fonts } = theme;\n\n // Determine font family and size based on 'typeFont'\n const fontSettings = fonts[typeFont] || fonts.body;\n const fontFamily = fontSettings.fontFamily;\n let fontSize = fontSettings.fontSize || size;\n\n // Calculate header size based on 'h' prop\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n \n // Define font weight based on bold prop\n const fontWeight = b ? '700' : fontSettings.fontWeight || '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 fontFamily,\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/ErrorList.tsx\n\nimport React, { useContext } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from 'aport-themes';\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 {\n TextInput,\n StyleSheet,\n View,\n TextInputProps,\n} from \"react-native\";\nimport { useFormContext } from \"./FormContext\";\nimport { Text } from \"../fonts/Text\";\nimport ErrorList from \"./ErrorList\";\nimport { ThemeContext } from \"aport-themes\";\n\n/**\n * Defines the props for the Input component.\n */\ninterface InputProps extends TextInputProps {\n /**\n * The unique identifier for the input field, used to manage its state within the form.\n */\n name: string;\n\n /**\n * The text label displayed above the input field.\n */\n label: string;\n\n /**\n * Specifies the type of input and applies corresponding formatting.\n * - 'phone': Formats input as a phone number (xxx-xxx-xxxx).\n * - 'id': Converts all input characters to uppercase (useful for IDs, passports).\n * - 'uppercase': Forces all input characters to uppercase (useful for codes).\n * - 'numeric': Restricts input to numeric characters only.\n */\n inputType?: \"phone\" | \"id\" | \"uppercase\" | \"numeric\";\n}\n\n/**\n * Input component that supports labels, error messages, and integrates with the Theme system.\n *\n * @param {InputProps} props - Props passed to the component.\n * @returns {JSX.Element} The rendered Input component.\n *\n * @example\n * <Input\n * name=\"email\"\n * label=\"Email\"\n * keyboardType=\"email-address\"\n * inputType=\"id\"\n * />\n */\nexport const Input: React.FC<InputProps> = ({\n name,\n label,\n inputType,\n style,\n ...rest\n}) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles text changes in the input field, applying formatting based on the inputType.\n *\n * @param {string} text - The current text input by the user.\n */\n const handleChange = (text: string) => {\n let formattedText = text;\n\n // Apply different formatting based on inputType\n switch (inputType) {\n case \"phone\":\n // Remove all non-digit characters\n formattedText = text.replace(/\\D/g, \"\");\n // Insert hyphens to format as xxx-xxx-xxxx\n if (formattedText.length > 3 && formattedText.length <= 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(3)}`;\n } else if (formattedText.length > 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(\n 3,\n 6\n )}-${formattedText.slice(6, 10)}`;\n }\n break;\n case \"id\":\n case \"uppercase\":\n // Convert all input to uppercase\n formattedText = text.toUpperCase();\n break;\n case \"numeric\":\n // Allow only numeric input\n formattedText = text.replace(/\\D/g, \"\");\n break;\n default:\n break;\n }\n\n setFormValue(name, formattedText);\n };\n\n return (\n <View style={styles.container}>\n {/* Label */}\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n\n {/* Input Field */}\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.placeHolder.hex} // Can use a lighter version if needed\n {...rest}\n />\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 'aport-themes';\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","import React, { useState, useRef, useCallback, useContext } from 'react';\nimport { View, Text, TouchableOpacity, FlatList, TextInput, StyleSheet, Modal, Pressable, Keyboard } from 'react-native';\nimport { ThemeContext } from \"aport-themes\";\nimport { useFormContext } from '../forms/FormContext';\n\ninterface Option {\n id: number | string;\n label: string;\n value: any;\n}\n\ninterface InputListProps {\n name: string;\n /**\n * Placeholder text displayed in the input box when no selection is made.\n * @type {string}\n * @default \"Choose value/s\"\n */\n placeholder?: string;\n \n /**\n * Custom styles for the component.\n * @type {object}\n */\n style?: object;\n\n /**\n * Array of options to display in the dropdown. Each option should have an id, label, and value.\n * @type {Option[]}\n */\n options: Option[];\n\n /**\n * Enables multi-selection mode when true. If enabled, users can select multiple values.\n * @type {boolean}\n * @default false\n */\n multi?: boolean;\n\n /**\n * Disables the dropdown input when true.\n * @type {boolean}\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Key used to sort options in the dropdown (e.g., by 'id', 'label').\n * @type {keyof Option}\n */\n sortBy?: keyof Option;\n\n /**\n * If true, displays a separator line between each option.\n * @type {boolean}\n * @default false\n */\n separator?: boolean;\n\n /**\n * Closes the dropdown if the user scrolls the list.\n * @type {boolean}\n * @default false\n */\n closeOnScroll?: boolean;\n\n /**\n * Closes the dropdown after selecting an item if true (only relevant when multi is false).\n * @type {boolean}\n * @default true\n */\n closeOnSelect?: boolean;\n\n /**\n * Limits the maximum number of items that can be selected when multi is true.\n * Once the limit is reached, the dropdown closes, and no further selections can be made until\n * an item is deselected.\n * @type {number}\n */\n maxSelection?: number;\n}\n\n/**\n * InputList component - A custom dropdown list component for React Native with multi-selection support,\n * customizable styling, sorting, and configurable close behavior on selection or scrolling.\n *\n * @param {string} placeholder - Placeholder text for the input.\n * @param {object} style - Custom styles for the component.\n * @param {Option[]} options - Array of options to display in the dropdown.\n * @param {boolean} multi - Enables multi-selection mode.\n * @param {boolean} disabled - Disables the dropdown input.\n * @param {keyof Option} sortBy - Key to sort options by (e.g., 'id').\n * @param {boolean} separator - If true, adds a separator line between options.\n * @param {boolean} closeOnScroll - Closes the dropdown if the user scrolls the list.\n * @param {boolean} closeOnSelect - Closes the dropdown on selection in single-select mode.\n * @param {number} maxSelection - Maximum number of items selectable in multi-select mode.\n */\nexport const InputList: React.FC<InputListProps> = ({\n name,\n placeholder = \"Choose value/s\",\n style,\n options,\n multi = false,\n disabled = false,\n sortBy,\n separator = false,\n closeOnScroll = false,\n closeOnSelect = true,\n maxSelection,\n}) => {\n const { formValues, setFormValue } = useFormContext();\n const [isDropdownVisible, setIsDropdownVisible] = useState(false);\n \n const selectedOptions = formValues[name] || (multi ? [] : null);\n const sortedOptions = sortBy ? [...options].sort((a, b) => (a[sortBy] > b[sortBy] ? 1 : -1)) : options;\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles selection of an option. Adds or removes the option from selectedOptions based on\n * multi-selection and maxSelection criteria.\n * @param {Option} option - The selected option object.\n */\n const handleSelectOption = (option: Option) => {\n if (multi) {\n const alreadySelected = selectedOptions.some((opt: Option) => opt.id === option.id);\n\n const updatedSelections = alreadySelected\n ? selectedOptions.filter((opt: Option) => opt.id !== option.id)\n : [...selectedOptions, option];\n\n // Close dropdown if max selection reached\n if (!alreadySelected && maxSelection && updatedSelections.length >= maxSelection) {\n setIsDropdownVisible(false);\n }\n\n // Update form value with selected items\n setFormValue(name, updatedSelections);\n } else {\n setFormValue(name, option);\n if (closeOnSelect) setIsDropdownVisible(false);\n }\n };\n\n\n /**\n * Renders selected options as a comma-separated string or the placeholder if none selected.\n * @returns {string} - The display text for selected options or placeholder.\n */\n const renderSelectedText = () => {\n if (multi) return selectedOptions.map((opt: Option) => opt.label).join(', ') || placeholder;\n return selectedOptions?.label || placeholder;\n };\n\n /**\n * Toggles dropdown visibility. Disables toggle if the component is disabled.\n */\n const toggleDropdown = () => {\n if (!disabled) {\n setIsDropdownVisible(!isDropdownVisible);\n if (!isDropdownVisible) Keyboard.dismiss();\n }\n };\n\n /**\n * Closes the dropdown when pressing outside.\n */\n const handleCloseDropdown = useCallback(() => {\n if (isDropdownVisible) setIsDropdownVisible(false);\n }, [isDropdownVisible]);\n\n return (\n <View style={[styles.container, style]}>\n <TouchableOpacity style={styles.inputContainer} onPress={toggleDropdown} disabled={disabled}>\n <Text style={{color: colors.text.hex}}>{renderSelectedText()}</Text>\n </TouchableOpacity>\n \n <Modal visible={isDropdownVisible} transparent animationType=\"fade\">\n <Pressable style={styles.overlay} onPress={handleCloseDropdown} />\n <View style={[styles.dropdownContainer,{backgroundColor: colors.body.hex,\n}]}>\n <FlatList\n data={sortedOptions}\n keyExtractor={(item) => item.id.toString()}\n renderItem={({ item }) => (\n <TouchableOpacity onPress={() => handleSelectOption(item)} style={styles.optionItem}>\n <Text style={{color: colors.text.hex}}>{item.label}</Text>\n </TouchableOpacity>\n )}\n ItemSeparatorComponent={() => separator ? <View style={styles.separator} /> : null}\n scrollEnabled={!closeOnScroll}\n />\n </View>\n </Modal>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: { padding: 8 },\n inputContainer: { padding: 12, borderWidth: 1, borderColor: '#ccc', borderRadius: 5 },\n dropdownContainer: { position: 'absolute', top: 60, width: '90%', borderRadius: 8, elevation: 5, alignSelf: 'center' },\n optionItem: { padding: 12 },\n separator: { height: 1, backgroundColor: '#ddd', marginHorizontal: 8 },\n overlay: { flex: 1, backgroundColor: 'rgba(0,0,0,0.3)' },\n});\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { useFormContext } from '../forms';\nimport { ThemeColors, ThemeContext } from 'aport-themes';\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 const { handleSubmit } = useFormContext();\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 type === \"cancel\" ? { color: colors.text.hex } : { color: colors.textButton.hex };\n }, [type, colors]);\n\n const handlePress = () => {\n if (type === 'submit') {\n handleSubmit(); // Call the form's submit handler\n } else if (onPress) {\n onPress(); // Call a custom handler if needed\n }\n };\n\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={handlePress}\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 { ThemeContext } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\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.background.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"],"names":["FormContext","createContext","undefined","useFormContext","context","useContext","Error","Form","_a","children","onSubmit","_b","useState","formValues","setFormValues","_c","errors","setErrors","setFormValue","name","value","prev","handleSubmit","__awaiter","validationErrors","sent","Object","keys","length","React","createElement","Provider","Text","size","_d","b","_e","i","_f","u","_g","align","_h","type","_j","typeFont","_k","h","style","theme","ThemeContext","colors","fonts","fontSettings","body","fontFamily","fontSize","fontWeight","fontStyle","textDecorationLine","textAlign","textColor","hex","text","textStyles","color","RNText","StyleSheet","create","ErrorList","View","styles","container","map","error","index","key","errorItem","bullet","errorText","marginTop","flexDirection","alignItems","marginBottom","marginRight","flex","Input","label","inputType","rest","__rest","formErrors","handleChange","formattedText","replace","concat","slice","toUpperCase","TextInput","__assign","input","backgroundColor","borderColor","onChangeText","placeholder","placeholderTextColor","placeHolder","height","borderWidth","borderRadius","paddingHorizontal","TextArea","textArea","multiline","numberOfLines","textAlignVertical","paddingVertical","Label","InputList","options","multi","disabled","sortBy","separator","closeOnScroll","closeOnSelect","maxSelection","isDropdownVisible","setIsDropdownVisible","selectedOptions","sortedOptions","__spreadArray","sort","a","handleSelectOption","option","alreadySelected","some","opt","id","updatedSelections","filter","renderSelectedText","join","toggleDropdown","Keyboard","dismiss","handleCloseDropdown","useCallback","TouchableOpacity","inputContainer","onPress","Modal","visible","transparent","animationType","Pressable","overlay","dropdownContainer","FlatList","data","keyExtractor","item","toString","renderItem","optionItem","ItemSeparatorComponent","scrollEnabled","padding","position","top","width","elevation","alignSelf","marginHorizontal","typeStyles","themeColors","primary","rgb","r","g","secondary","opacity","background","Button","rounded","isFullWidth","loading","computedStyles","useMemo","flatten","button","textButton","handlePress","activeOpacity","ActivityIndicator","Array","isArray","justifyContent","Card","pressable","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","shadowOpacity","shadowRadius","android","cardStyles"],"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,CAA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AAA,OAAO,EAAEA,OAAO;AAEhBvG,IAAAA,KAAK,EAAEmK,UAAAA;GAAU,EAGd1M,QAAQ,CACM,kBAEnBoB,KAAA,CAAAC,aAAA,CAACwC,gBAAI,EAAA;AAACtB,IAAAA,KAAK,EAAEmK,UAAAA;KACV1M,QAAQ,CACJ,CACR,CAAA;AACH,EAAC;AAED,IAAM8D,MAAM,GAAGJ,sBAAU,CAACC,MAAM,CAAC;AAC/BI,EAAAA,SAAS,EAAE;AACTgG,IAAAA,OAAO,EAAE,EAAE;AACX3D,IAAAA,YAAY,EAAE,EAAA;AACd;AACD,GAAA;AACF,CAAA,CAAC;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../src/forms/FormContext.tsx","../src/fonts/Text.tsx","../src/forms/ErrorList.tsx","../src/forms/Input.tsx","../src/forms/TextArea.tsx","../src/forms/Label.tsx","../src/forms/InputList.tsx","../src/components/Button.tsx","../src/cards/Card.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/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 \n // Set the validation errors in state\n setErrors(validationErrors);\n \n // Prevent submission if there are any errors\n if (Object.keys(validationErrors).length > 0) {\n return; // Prevent submission\n }\n \n };\n \n\n return (\n <FormContext.Provider value={{ formValues, setFormValue, errors, setErrors, handleSubmit }}>\n {children}\n </FormContext.Provider>\n );\n};\n","// src/fonts/Text.tsx\n\nimport { ThemeColors, ThemeContext, ThemeFonts } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport { Text as RNText, StyleSheet, TextProps, TextStyle } from 'react-native';\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 * Text font type. Defaults to 'body'. Should match the keys in ThemeFonts.\n * This restricts type to known fonts keys like 'primary', 'secundary', etc.\n */\n typeFont?: keyof ThemeFonts; // <-- New prop to select font type\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 type - Type of Text component. Defaults to 'text'.\n * @param typeFont - Type of Font component. Defaults to 'body'.\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 typeFont = 'body',\n h = 0,\n style,\n}) => {\n const { theme } = useContext(ThemeContext);\n const { colors, fonts } = theme;\n\n // Determine font family and size based on 'typeFont'\n const fontSettings = fonts[typeFont] || fonts.body;\n const fontFamily = fontSettings.fontFamily;\n let fontSize = fontSettings.fontSize || size;\n\n // Calculate header size based on 'h' prop\n if (h === 1) fontSize = 32;\n else if (h === 2) fontSize = 24;\n else if (h === 3) fontSize = 18;\n \n // Define font weight based on bold prop\n const fontWeight = b ? '700' : fontSettings.fontWeight || '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 fontFamily,\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/ErrorList.tsx\n\nimport React, { useContext } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Text } from '../fonts/Text';\nimport { ThemeContext } from 'aport-themes';\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 {\n TextInput,\n StyleSheet,\n View,\n TextInputProps,\n} from \"react-native\";\nimport { useFormContext } from \"./FormContext\";\nimport { Text } from \"../fonts/Text\";\nimport ErrorList from \"./ErrorList\";\nimport { ThemeContext } from \"aport-themes\";\n\n/**\n * Defines the props for the Input component.\n */\ninterface InputProps extends TextInputProps {\n /**\n * The unique identifier for the input field, used to manage its state within the form.\n */\n name: string;\n\n /**\n * The text label displayed above the input field.\n */\n label: string;\n\n /**\n * Specifies the type of input and applies corresponding formatting.\n * - 'phone': Formats input as a phone number (xxx-xxx-xxxx).\n * - 'id': Converts all input characters to uppercase (useful for IDs, passports).\n * - 'uppercase': Forces all input characters to uppercase (useful for codes).\n * - 'numeric': Restricts input to numeric characters only.\n */\n inputType?: \"phone\" | \"id\" | \"uppercase\" | \"numeric\";\n}\n\n/**\n * Input component that supports labels, error messages, and integrates with the Theme system.\n *\n * @param {InputProps} props - Props passed to the component.\n * @returns {JSX.Element} The rendered Input component.\n *\n * @example\n * <Input\n * name=\"email\"\n * label=\"Email\"\n * keyboardType=\"email-address\"\n * inputType=\"id\"\n * />\n */\nexport const Input: React.FC<InputProps> = ({\n name,\n label,\n inputType,\n style,\n ...rest\n}) => {\n const { formValues, setFormValue, errors: formErrors } = useFormContext();\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles text changes in the input field, applying formatting based on the inputType.\n *\n * @param {string} text - The current text input by the user.\n */\n const handleChange = (text: string) => {\n let formattedText = text;\n\n // Apply different formatting based on inputType\n switch (inputType) {\n case \"phone\":\n // Remove all non-digit characters\n formattedText = text.replace(/\\D/g, \"\");\n // Insert hyphens to format as xxx-xxx-xxxx\n if (formattedText.length > 3 && formattedText.length <= 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(3)}`;\n } else if (formattedText.length > 6) {\n formattedText = `${formattedText.slice(0, 3)}-${formattedText.slice(\n 3,\n 6\n )}-${formattedText.slice(6, 10)}`;\n }\n break;\n case \"id\":\n case \"uppercase\":\n // Convert all input to uppercase\n formattedText = text.toUpperCase();\n break;\n case \"numeric\":\n // Allow only numeric input\n formattedText = text.replace(/\\D/g, \"\");\n break;\n default:\n break;\n }\n\n setFormValue(name, formattedText);\n };\n\n return (\n <View style={styles.container}>\n {/* Label */}\n <Text style={[styles.label, { color: colors.text.hex }]}>{label}</Text>\n\n {/* Input Field */}\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.placeHolder.hex} // Can use a lighter version if needed\n {...rest}\n />\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 'aport-themes';\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","import React, { useState, useRef, useCallback, useContext } from 'react';\nimport { View, Text, TouchableOpacity, FlatList, TextInput, StyleSheet, Modal, Pressable, Keyboard } from 'react-native';\nimport { ThemeContext } from \"aport-themes\";\nimport { useFormContext } from '../forms/FormContext';\n\ninterface Option {\n id: number | string;\n label: string;\n value: any;\n}\n\ninterface InputListProps {\n name: string;\n /**\n * Placeholder text displayed in the input box when no selection is made.\n * @type {string}\n * @default \"Choose value/s\"\n */\n placeholder?: string;\n \n /**\n * Custom styles for the component.\n * @type {object}\n */\n style?: object;\n\n /**\n * Array of options to display in the dropdown. Each option should have an id, label, and value.\n * @type {Option[]}\n */\n options: Option[];\n\n /**\n * Enables multi-selection mode when true. If enabled, users can select multiple values.\n * @type {boolean}\n * @default false\n */\n multi?: boolean;\n\n /**\n * Disables the dropdown input when true.\n * @type {boolean}\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Key used to sort options in the dropdown (e.g., by 'id', 'label').\n * @type {keyof Option}\n */\n sortBy?: keyof Option;\n\n /**\n * If true, displays a separator line between each option.\n * @type {boolean}\n * @default false\n */\n separator?: boolean;\n\n /**\n * Closes the dropdown if the user scrolls the list.\n * @type {boolean}\n * @default false\n */\n closeOnScroll?: boolean;\n\n /**\n * Closes the dropdown after selecting an item if true (only relevant when multi is false).\n * @type {boolean}\n * @default true\n */\n closeOnSelect?: boolean;\n\n /**\n * Limits the maximum number of items that can be selected when multi is true.\n * Once the limit is reached, the dropdown closes, and no further selections can be made until\n * an item is deselected.\n * @type {number}\n */\n maxSelection?: number;\n}\n\n/**\n * InputList component - A custom dropdown list component for React Native with multi-selection support,\n * customizable styling, sorting, and configurable close behavior on selection or scrolling.\n *\n * @param {string} placeholder - Placeholder text for the input.\n * @param {object} style - Custom styles for the component.\n * @param {Option[]} options - Array of options to display in the dropdown.\n * @param {boolean} multi - Enables multi-selection mode.\n * @param {boolean} disabled - Disables the dropdown input.\n * @param {keyof Option} sortBy - Key to sort options by (e.g., 'id').\n * @param {boolean} separator - If true, adds a separator line between options.\n * @param {boolean} closeOnScroll - Closes the dropdown if the user scrolls the list.\n * @param {boolean} closeOnSelect - Closes the dropdown on selection in single-select mode.\n * @param {number} maxSelection - Maximum number of items selectable in multi-select mode.\n */\nexport const InputList: React.FC<InputListProps> = ({\n name,\n placeholder = \"Choose value/s\",\n style,\n options,\n multi = false,\n disabled = false,\n sortBy,\n separator = false,\n closeOnScroll = false,\n closeOnSelect = true,\n maxSelection,\n}) => {\n const { formValues, setFormValue } = useFormContext();\n const [isDropdownVisible, setIsDropdownVisible] = useState(false);\n \n const selectedOptions = formValues[name] || (multi ? [] : null);\n const sortedOptions = sortBy ? [...options].sort((a, b) => (a[sortBy] > b[sortBy] ? 1 : -1)) : options;\n const { theme } = useContext(ThemeContext);\n const { colors } = theme;\n\n /**\n * Handles selection of an option. Adds or removes the option from selectedOptions based on\n * multi-selection and maxSelection criteria.\n * @param {Option} option - The selected option object.\n */\n const handleSelectOption = (option: Option) => {\n if (multi) {\n const alreadySelected = selectedOptions.some((opt: Option) => opt.id === option.id);\n\n // Add or remove item from selected options\n const updatedSelections = alreadySelected\n ? selectedOptions.filter((opt: Option) => opt.id !== option.id)\n : [...selectedOptions, option];\n\n // Close dropdown if max selection is reached after selecting\n if (!alreadySelected && maxSelection && updatedSelections.length >= maxSelection) {\n setIsDropdownVisible(false);\n }\n\n // Update form value\n setFormValue(name, updatedSelections);\n } else {\n setFormValue(name, option);\n if (closeOnSelect) setIsDropdownVisible(false);\n }\n };\n\n\n /**\n * Renders selected options as a comma-separated string or the placeholder if none selected.\n * @returns {string} - The display text for selected options or placeholder.\n */\n const renderSelectedText = () => {\n if (multi) return selectedOptions.map((opt: Option) => opt.label).join(', ') || placeholder;\n return selectedOptions?.label || placeholder;\n };\n\n /**\n * Toggles dropdown visibility. Disables toggle if the component is disabled.\n */\n const toggleDropdown = () => {\n if (!disabled) {\n setIsDropdownVisible(!isDropdownVisible);\n if (!isDropdownVisible) Keyboard.dismiss();\n }\n };\n\n /**\n * Closes the dropdown when pressing outside.\n */\n const handleCloseDropdown = useCallback(() => {\n if (isDropdownVisible) setIsDropdownVisible(false);\n }, [isDropdownVisible]);\n\n // Conditionally render item as disabled if max selection reached and item is unselected\n const isItemDisabled = (option: Option) => {\n return (\n multi &&\n maxSelection &&\n selectedOptions.length >= maxSelection &&\n !selectedOptions.some((opt: Option) => opt.id === option.id)\n );\n };\n\n\n return (\n <View style={[styles.container, style]}>\n <TouchableOpacity style={styles.inputContainer} onPress={toggleDropdown} disabled={disabled}>\n <Text style={{color: colors.text.hex}}>{renderSelectedText()}</Text>\n </TouchableOpacity>\n \n <Modal visible={isDropdownVisible} transparent animationType=\"fade\">\n <Pressable style={styles.overlay} onPress={handleCloseDropdown} />\n <View style={[styles.dropdownContainer,{backgroundColor: colors.body.hex,\n}]}>\n <FlatList\n data={sortedOptions}\n keyExtractor={(item) => item.id.toString()}\n renderItem={({ item }) => {\n const isSelected = selectedOptions.some((opt: Option) => opt.id === item.id);\n const isDisabled = isItemDisabled(item);\n\n return (\n <TouchableOpacity\n onPress={() => handleSelectOption(item)}\n style={[\n styles.optionItem,\n isSelected ? {backgroundColor: colors.primary.hex} : {},\n isDisabled ? styles.disabledItem : {},\n ]}\n disabled={!!isDisabled} // Ensure disabled prop is a boolean\n >\n <Text style={[isSelected ? {color: colors.background.hex}: {color: colors.text.hex}, isDisabled ? styles.disabledText : {}]}>\n {item.label}\n </Text>\n </TouchableOpacity>\n );\n }}\n ItemSeparatorComponent={() => (separator ? <View style={styles.separator} /> : null)}\n scrollEnabled={!closeOnScroll}\n />\n </View>\n </Modal>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: { padding: 8 },\n inputContainer: { padding: 12, borderWidth: 1, borderColor: '#ccc', borderRadius: 5 },\n dropdownContainer: {\n position: 'absolute',\n top: '30%', // Center the dropdown vertically\n alignSelf: 'center',\n width: '90%',\n backgroundColor: '#fff',\n borderRadius: 8,\n elevation: 5,\n paddingVertical: 10,\n },\n optionItem: { padding: 12 },\n disabledItem: { backgroundColor: '#f0f0f0' },\n disabledText: { color: '#999' },\n separator: { height: 1, backgroundColor: '#ddd', marginHorizontal: 8 },\n overlay: { flex: 1, backgroundColor: 'rgba(0,0,0,0.3)' },\n});\n","// src/components/Button.tsx\n\nimport React, { useMemo, useContext } from 'react';\nimport { Text, ViewStyle, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';\nimport { useFormContext } from '../forms';\nimport { ThemeColors, ThemeContext } from 'aport-themes';\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 const { handleSubmit } = useFormContext();\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 type === \"cancel\" ? { color: colors.text.hex } : { color: colors.textButton.hex };\n }, [type, colors]);\n\n const handlePress = () => {\n if (type === 'submit') {\n handleSubmit(); // Call the form's submit handler\n } else if (onPress) {\n onPress(); // Call a custom handler if needed\n }\n };\n\n\n return (\n <TouchableOpacity\n style={computedStyles as ViewStyle}\n disabled={disabled || loading}\n onPress={handlePress}\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 { ThemeContext } from 'aport-themes';\nimport React, { useContext } from 'react';\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Platform,\n TouchableOpacity,\n GestureResponderEvent,\n} from 'react-native';\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.background.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"],"names":["FormContext","createContext","undefined","useFormContext","context","useContext","Error","Form","_a","children","onSubmit","_b","useState","formValues","setFormValues","_c","errors","setErrors","setFormValue","name","value","prev","handleSubmit","__awaiter","validationErrors","sent","Object","keys","length","React","createElement","Provider","Text","size","_d","b","_e","i","_f","u","_g","align","_h","type","_j","typeFont","_k","h","style","theme","ThemeContext","colors","fonts","fontSettings","body","fontFamily","fontSize","fontWeight","fontStyle","textDecorationLine","textAlign","textColor","hex","text","textStyles","color","RNText","StyleSheet","create","ErrorList","View","styles","container","map","error","index","key","errorItem","bullet","errorText","marginTop","flexDirection","alignItems","marginBottom","marginRight","flex","Input","label","inputType","rest","__rest","formErrors","handleChange","formattedText","replace","concat","slice","toUpperCase","TextInput","__assign","input","backgroundColor","borderColor","onChangeText","placeholder","placeholderTextColor","placeHolder","height","borderWidth","borderRadius","paddingHorizontal","TextArea","textArea","multiline","numberOfLines","textAlignVertical","paddingVertical","Label","InputList","options","multi","disabled","sortBy","separator","closeOnScroll","closeOnSelect","maxSelection","isDropdownVisible","setIsDropdownVisible","selectedOptions","sortedOptions","__spreadArray","sort","a","handleSelectOption","option","alreadySelected","some","opt","id","updatedSelections","filter","renderSelectedText","join","toggleDropdown","Keyboard","dismiss","handleCloseDropdown","useCallback","isItemDisabled","TouchableOpacity","inputContainer","onPress","Modal","visible","transparent","animationType","Pressable","overlay","dropdownContainer","FlatList","data","keyExtractor","item","toString","renderItem","isSelected","isDisabled","optionItem","primary","disabledItem","background","disabledText","ItemSeparatorComponent","scrollEnabled","padding","position","top","alignSelf","width","elevation","marginHorizontal","typeStyles","themeColors","rgb","r","g","secondary","opacity","Button","rounded","isFullWidth","loading","computedStyles","useMemo","flatten","button","textButton","handlePress","activeOpacity","ActivityIndicator","Array","isArray","justifyContent","Card","pressable","shadowProps","defaultShadow","Platform","select","ios","shadowColor","shadowOffset","shadowOpacity","shadowRadius","android","cardStyles"],"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,OAA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AA;AAEF,EAAA,IAAMoC,UAAU,GAAG,CACjBjJ,MAAM,CAACC,SAAS,EAChB;AAAEqC,IAAAA,YAAY,EAAAA,YAAA;AAAER,IAAAA,eAAe,EAAElD,MAAM,CAACwH,UAAU,CAAC7G,GAAAA;AAAK,GAAA,EACxDiJ,aAAa;AAAE;AACf/J,EAAAA,KAAK;GACN,CAAA;AAED,EAAA,OAAO6J,SAAS,iBACdhL,oBAACyH,4BAAgB,EAAA;AACfiD,IAAAA,aAAa,EAAE,GAAG;AAClB/C,IAAAA,OAAO,EAAEA,OAAO;AAEhBxG,IAAAA,KAAK,EAAEwK,UAAAA;GAAU,EAGd/M,QAAQ,CACM,kBAEnBoB,KAAA,CAAAC,aAAA,CAACwC,gBAAI,EAAA;AAACtB,IAAAA,KAAK,EAAEwK,UAAAA;KACV/M,QAAQ,CACJ,CACR,CAAA;AACH,EAAC;AAED,IAAM8D,MAAM,GAAGJ,sBAAU,CAACC,MAAM,CAAC;AAC/BI,EAAAA,SAAS,EAAE;AACTuG,IAAAA,OAAO,EAAE,EAAE;AACXlE,IAAAA,YAAY,EAAE,EAAA;AACd;AACD,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.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "Aport mobile Tools with modern and minimalistic design",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",