react-native-atomic-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +145 -0
  2. package/README.md +485 -0
  3. package/dist/advanced/date-picker/index.d.ts +22 -0
  4. package/dist/advanced/date-picker/index.d.ts.map +1 -0
  5. package/dist/advanced/date-picker/index.js +31 -0
  6. package/dist/advanced/date-picker/index.js.map +7 -0
  7. package/dist/advanced/date-picker/index.mjs +10 -0
  8. package/dist/advanced/date-picker/index.mjs.map +7 -0
  9. package/dist/advanced/file-picker/index.d.ts +21 -0
  10. package/dist/advanced/file-picker/index.d.ts.map +1 -0
  11. package/dist/advanced/file-picker/index.js +31 -0
  12. package/dist/advanced/file-picker/index.js.map +7 -0
  13. package/dist/advanced/file-picker/index.mjs +10 -0
  14. package/dist/advanced/file-picker/index.mjs.map +7 -0
  15. package/dist/advanced/picker/index.d.ts +27 -0
  16. package/dist/advanced/picker/index.d.ts.map +1 -0
  17. package/dist/advanced/picker/index.js +37 -0
  18. package/dist/advanced/picker/index.js.map +7 -0
  19. package/dist/advanced/picker/index.mjs +16 -0
  20. package/dist/advanced/picker/index.mjs.map +7 -0
  21. package/dist/advanced/rich-text/index.d.ts +29 -0
  22. package/dist/advanced/rich-text/index.d.ts.map +1 -0
  23. package/dist/advanced/rich-text/index.js +37 -0
  24. package/dist/advanced/rich-text/index.js.map +7 -0
  25. package/dist/advanced/rich-text/index.mjs +16 -0
  26. package/dist/advanced/rich-text/index.mjs.map +7 -0
  27. package/dist/chunk-IOIXIQ2F.mjs +177 -0
  28. package/dist/chunk-IOIXIQ2F.mjs.map +7 -0
  29. package/dist/chunk-NUUZYCND.mjs +318 -0
  30. package/dist/chunk-NUUZYCND.mjs.map +7 -0
  31. package/dist/components/index.d.ts +4 -0
  32. package/dist/components/index.d.ts.map +1 -0
  33. package/dist/components/index.js +485 -0
  34. package/dist/components/index.js.map +7 -0
  35. package/dist/components/index.mjs +48 -0
  36. package/dist/components/index.mjs.map +7 -0
  37. package/dist/components/inputs/Button.d.ts +7 -0
  38. package/dist/components/inputs/Button.d.ts.map +1 -0
  39. package/dist/components/inputs/Button.js +105 -0
  40. package/dist/components/inputs/Button.js.map +1 -0
  41. package/dist/components/layouts/Box.d.ts +18 -0
  42. package/dist/components/layouts/Box.d.ts.map +1 -0
  43. package/dist/components/layouts/Box.js +72 -0
  44. package/dist/components/layouts/Box.js.map +1 -0
  45. package/dist/components/typography/Text.d.ts +26 -0
  46. package/dist/components/typography/Text.d.ts.map +1 -0
  47. package/dist/components/typography/Text.js +70 -0
  48. package/dist/components/typography/Text.js.map +1 -0
  49. package/dist/index.d.ts +4 -0
  50. package/dist/index.d.ts.map +1 -0
  51. package/dist/index.js +515 -0
  52. package/dist/index.js.map +7 -0
  53. package/dist/index.mjs +57 -0
  54. package/dist/index.mjs.map +7 -0
  55. package/dist/theme/index.d.ts +19 -0
  56. package/dist/theme/index.d.ts.map +1 -0
  57. package/dist/theme/index.js +207 -0
  58. package/dist/theme/index.js.map +7 -0
  59. package/dist/theme/index.mjs +13 -0
  60. package/dist/theme/index.mjs.map +7 -0
  61. package/dist/theme/themes.d.ts +4 -0
  62. package/dist/theme/themes.d.ts.map +1 -0
  63. package/dist/theme/themes.js +127 -0
  64. package/dist/theme/themes.js.map +1 -0
  65. package/dist/types/index.d.ts +117 -0
  66. package/dist/types/index.d.ts.map +1 -0
  67. package/dist/types/index.js +2 -0
  68. package/dist/types/index.js.map +1 -0
  69. package/dist/utilities/math.d.ts +13 -0
  70. package/dist/utilities/math.d.ts.map +1 -0
  71. package/dist/utilities/math.js +27 -0
  72. package/dist/utilities/math.js.map +1 -0
  73. package/package.json +132 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/advanced/date-picker/index.ts"],
4
+ "sourcesContent": ["/**\n * DatePickerInput - Advanced component for date selection\n * Requires peer dependency: @react-native-community/datetimepicker\n *\n * Installation:\n * npm install @react-native-community/datetimepicker\n *\n * Usage:\n * import { DatePickerInput } from '@react-native-atomic-ui/core/date-picker';\n */\n\nexport interface DatePickerInputProps {\n value: Date;\n onChange: (date: Date) => void;\n label?: string;\n format?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function DatePickerInput() {\n throw new Error(\n 'DatePickerInput requires peer dependency: @react-native-community/datetimepicker\\n' +\n 'Install it with: npm install @react-native-community/datetimepicker'\n );\n}\n"],
5
+ "mappings": ";AAwBO,SAAS,kBAAkB;AAChC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * FilePicker - Advanced component for file selection
3
+ * Requires peer dependency: @react-native-documents/picker
4
+ *
5
+ * Installation:
6
+ * npm install @react-native-documents/picker
7
+ *
8
+ * Usage:
9
+ * import { FilePicker } from '@react-native-atomic-ui/core/file-picker';
10
+ */
11
+ export interface FilePickerProps {
12
+ onFileSelected: (file: any) => void;
13
+ multiple?: boolean;
14
+ type?: string;
15
+ label?: string;
16
+ disabled?: boolean;
17
+ style?: any;
18
+ testID?: string;
19
+ }
20
+ export declare function FilePicker(): void;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/file-picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,UAAU,SAKzB"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/advanced/file-picker/index.ts
21
+ var file_picker_exports = {};
22
+ __export(file_picker_exports, {
23
+ FilePicker: () => FilePicker
24
+ });
25
+ module.exports = __toCommonJS(file_picker_exports);
26
+ function FilePicker() {
27
+ throw new Error(
28
+ "FilePicker requires peer dependency: @react-native-documents/picker\nInstall it with: npm install @react-native-documents/picker"
29
+ );
30
+ }
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/advanced/file-picker/index.ts"],
4
+ "sourcesContent": ["/**\n * FilePicker - Advanced component for file selection\n * Requires peer dependency: @react-native-documents/picker\n *\n * Installation:\n * npm install @react-native-documents/picker\n *\n * Usage:\n * import { FilePicker } from '@react-native-atomic-ui/core/file-picker';\n */\n\nexport interface FilePickerProps {\n onFileSelected: (file: any) => void;\n multiple?: boolean;\n type?: string;\n label?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function FilePicker() {\n throw new Error(\n 'FilePicker requires peer dependency: @react-native-documents/picker\\n' +\n 'Install it with: npm install @react-native-documents/picker'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBO,SAAS,aAAa;AAC3B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ // src/advanced/file-picker/index.ts
2
+ function FilePicker() {
3
+ throw new Error(
4
+ "FilePicker requires peer dependency: @react-native-documents/picker\nInstall it with: npm install @react-native-documents/picker"
5
+ );
6
+ }
7
+ export {
8
+ FilePicker
9
+ };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/advanced/file-picker/index.ts"],
4
+ "sourcesContent": ["/**\n * FilePicker - Advanced component for file selection\n * Requires peer dependency: @react-native-documents/picker\n *\n * Installation:\n * npm install @react-native-documents/picker\n *\n * Usage:\n * import { FilePicker } from '@react-native-atomic-ui/core/file-picker';\n */\n\nexport interface FilePickerProps {\n onFileSelected: (file: any) => void;\n multiple?: boolean;\n type?: string;\n label?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function FilePicker() {\n throw new Error(\n 'FilePicker requires peer dependency: @react-native-documents/picker\\n' +\n 'Install it with: npm install @react-native-documents/picker'\n );\n}\n"],
5
+ "mappings": ";AAuBO,SAAS,aAAa;AAC3B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Picker Components - Advanced dropdowns and selection
3
+ * Requires peer dependency: react-native-picker-select
4
+ *
5
+ * Installation:
6
+ * npm install react-native-picker-select
7
+ *
8
+ * Usage:
9
+ * import { BorderedPickerInput } from '@react-native-atomic-ui/core/picker';
10
+ */
11
+ export interface PickerOption {
12
+ label: string;
13
+ value: string | number;
14
+ }
15
+ export interface PickerInputProps {
16
+ value: string | number | undefined;
17
+ onValueChange: (value: string | number) => void;
18
+ items: PickerOption[];
19
+ label?: string;
20
+ placeholder?: string;
21
+ disabled?: boolean;
22
+ style?: any;
23
+ testID?: string;
24
+ }
25
+ export declare function BorderedPickerInput(): void;
26
+ export declare function PickerModal(): void;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAChD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,mBAAmB,SAKlC;AAED,wBAAgB,WAAW,SAK1B"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/advanced/picker/index.ts
21
+ var picker_exports = {};
22
+ __export(picker_exports, {
23
+ BorderedPickerInput: () => BorderedPickerInput,
24
+ PickerModal: () => PickerModal
25
+ });
26
+ module.exports = __toCommonJS(picker_exports);
27
+ function BorderedPickerInput() {
28
+ throw new Error(
29
+ "BorderedPickerInput requires peer dependency: react-native-picker-select\nInstall it with: npm install react-native-picker-select"
30
+ );
31
+ }
32
+ function PickerModal() {
33
+ throw new Error(
34
+ "PickerModal requires peer dependency: react-native-picker-select\nInstall it with: npm install react-native-picker-select"
35
+ );
36
+ }
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/advanced/picker/index.ts"],
4
+ "sourcesContent": ["/**\n * Picker Components - Advanced dropdowns and selection\n * Requires peer dependency: react-native-picker-select\n *\n * Installation:\n * npm install react-native-picker-select\n *\n * Usage:\n * import { BorderedPickerInput } from '@react-native-atomic-ui/core/picker';\n */\n\nexport interface PickerOption {\n label: string;\n value: string | number;\n}\n\nexport interface PickerInputProps {\n value: string | number | undefined;\n onValueChange: (value: string | number) => void;\n items: PickerOption[];\n label?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function BorderedPickerInput() {\n throw new Error(\n 'BorderedPickerInput requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n\nexport function PickerModal() {\n throw new Error(\n 'PickerModal requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,SAAS,sBAAsB;AACpC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,cAAc;AAC5B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,16 @@
1
+ // src/advanced/picker/index.ts
2
+ function BorderedPickerInput() {
3
+ throw new Error(
4
+ "BorderedPickerInput requires peer dependency: react-native-picker-select\nInstall it with: npm install react-native-picker-select"
5
+ );
6
+ }
7
+ function PickerModal() {
8
+ throw new Error(
9
+ "PickerModal requires peer dependency: react-native-picker-select\nInstall it with: npm install react-native-picker-select"
10
+ );
11
+ }
12
+ export {
13
+ BorderedPickerInput,
14
+ PickerModal
15
+ };
16
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/advanced/picker/index.ts"],
4
+ "sourcesContent": ["/**\n * Picker Components - Advanced dropdowns and selection\n * Requires peer dependency: react-native-picker-select\n *\n * Installation:\n * npm install react-native-picker-select\n *\n * Usage:\n * import { BorderedPickerInput } from '@react-native-atomic-ui/core/picker';\n */\n\nexport interface PickerOption {\n label: string;\n value: string | number;\n}\n\nexport interface PickerInputProps {\n value: string | number | undefined;\n onValueChange: (value: string | number) => void;\n items: PickerOption[];\n label?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function BorderedPickerInput() {\n throw new Error(\n 'BorderedPickerInput requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n\nexport function PickerModal() {\n throw new Error(\n 'PickerModal requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n"],
5
+ "mappings": ";AA6BO,SAAS,sBAAsB;AACpC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,cAAc;AAC5B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Rich Text Components - Advanced text display and editing
3
+ * Requires peer dependencies:
4
+ * - react-native-webview (for RichText display)
5
+ * - @10play/tentap-editor (for RichTextInput, custom fork)
6
+ *
7
+ * Installation:
8
+ * npm install react-native-webview
9
+ * npm install github:starburst997/10tap-editor#jd
10
+ *
11
+ * Usage:
12
+ * import { RichText, RichTextInput } from '@react-native-atomic-ui/core/rich-text';
13
+ */
14
+ export interface RichTextProps {
15
+ html: string;
16
+ onLinkPress?: (url: string) => void;
17
+ style?: any;
18
+ testID?: string;
19
+ }
20
+ export interface RichTextInputProps {
21
+ value: string;
22
+ onChange: (html: string) => void;
23
+ placeholder?: string;
24
+ style?: any;
25
+ testID?: string;
26
+ }
27
+ export declare function RichText(): void;
28
+ export declare function RichTextInput(): void;
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/rich-text/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,QAAQ,SAKvB;AAED,wBAAgB,aAAa,SAK5B"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/advanced/rich-text/index.ts
21
+ var rich_text_exports = {};
22
+ __export(rich_text_exports, {
23
+ RichText: () => RichText,
24
+ RichTextInput: () => RichTextInput
25
+ });
26
+ module.exports = __toCommonJS(rich_text_exports);
27
+ function RichText() {
28
+ throw new Error(
29
+ "RichText requires peer dependency: react-native-webview\nInstall it with: npm install react-native-webview"
30
+ );
31
+ }
32
+ function RichTextInput() {
33
+ throw new Error(
34
+ "RichTextInput requires peer dependency: @10play/tentap-editor\nInstall it with: npm install github:starburst997/10tap-editor#jd"
35
+ );
36
+ }
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/advanced/rich-text/index.ts"],
4
+ "sourcesContent": ["/**\n * Rich Text Components - Advanced text display and editing\n * Requires peer dependencies:\n * - react-native-webview (for RichText display)\n * - @10play/tentap-editor (for RichTextInput, custom fork)\n *\n * Installation:\n * npm install react-native-webview\n * npm install github:starburst997/10tap-editor#jd\n *\n * Usage:\n * import { RichText, RichTextInput } from '@react-native-atomic-ui/core/rich-text';\n */\n\nexport interface RichTextProps {\n html: string;\n onLinkPress?: (url: string) => void;\n style?: any;\n testID?: string;\n}\n\nexport interface RichTextInputProps {\n value: string;\n onChange: (html: string) => void;\n placeholder?: string;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function RichText() {\n throw new Error(\n 'RichText requires peer dependency: react-native-webview\\n' +\n 'Install it with: npm install react-native-webview'\n );\n}\n\nexport function RichTextInput() {\n throw new Error(\n 'RichTextInput requires peer dependency: @10play/tentap-editor\\n' +\n 'Install it with: npm install github:starburst997/10tap-editor#jd'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BO,SAAS,WAAW;AACzB,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,gBAAgB;AAC9B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,16 @@
1
+ // src/advanced/rich-text/index.ts
2
+ function RichText() {
3
+ throw new Error(
4
+ "RichText requires peer dependency: react-native-webview\nInstall it with: npm install react-native-webview"
5
+ );
6
+ }
7
+ function RichTextInput() {
8
+ throw new Error(
9
+ "RichTextInput requires peer dependency: @10play/tentap-editor\nInstall it with: npm install github:starburst997/10tap-editor#jd"
10
+ );
11
+ }
12
+ export {
13
+ RichText,
14
+ RichTextInput
15
+ };
16
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/advanced/rich-text/index.ts"],
4
+ "sourcesContent": ["/**\n * Rich Text Components - Advanced text display and editing\n * Requires peer dependencies:\n * - react-native-webview (for RichText display)\n * - @10play/tentap-editor (for RichTextInput, custom fork)\n *\n * Installation:\n * npm install react-native-webview\n * npm install github:starburst997/10tap-editor#jd\n *\n * Usage:\n * import { RichText, RichTextInput } from '@react-native-atomic-ui/core/rich-text';\n */\n\nexport interface RichTextProps {\n html: string;\n onLinkPress?: (url: string) => void;\n style?: any;\n testID?: string;\n}\n\nexport interface RichTextInputProps {\n value: string;\n onChange: (html: string) => void;\n placeholder?: string;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function RichText() {\n throw new Error(\n 'RichText requires peer dependency: react-native-webview\\n' +\n 'Install it with: npm install react-native-webview'\n );\n}\n\nexport function RichTextInput() {\n throw new Error(\n 'RichTextInput requires peer dependency: @10play/tentap-editor\\n' +\n 'Install it with: npm install github:starburst997/10tap-editor#jd'\n );\n}\n"],
5
+ "mappings": ";AA+BO,SAAS,WAAW;AACzB,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,gBAAgB;AAC9B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,177 @@
1
+ // src/theme/index.tsx
2
+ import React, { createContext, useState, useContext, useEffect } from "react";
3
+ import { useColorScheme } from "react-native";
4
+
5
+ // src/theme/themes.ts
6
+ var baseTheme = {
7
+ spacing: {
8
+ xs: 4,
9
+ sm: 8,
10
+ md: 16,
11
+ lg: 24,
12
+ xl: 32,
13
+ xxl: 48
14
+ },
15
+ borderRadius: {
16
+ xs: 2,
17
+ sm: 4,
18
+ md: 8,
19
+ lg: 12,
20
+ full: 9999
21
+ }
22
+ };
23
+ var lightTheme = {
24
+ colors: {
25
+ primary: "#007AFF",
26
+ secondary: "#5AC8FA",
27
+ background: "#FFFFFF",
28
+ surface: "#F5F5F5",
29
+ text: "#000000",
30
+ textSecondary: "#666666",
31
+ textTertiary: "#999999",
32
+ border: "#CCCCCC",
33
+ borderLight: "#E8E8E8",
34
+ error: "#FF3B30",
35
+ success: "#34C759",
36
+ warning: "#FF9500",
37
+ info: "#5AC8FA",
38
+ transparent: "transparent",
39
+ white: "#FFFFFF",
40
+ black: "#000000",
41
+ disabled: "#D0D0D0"
42
+ },
43
+ typography: {
44
+ h1: { fontSize: 48, fontWeight: "700", lineHeight: 56 },
45
+ h2: { fontSize: 40, fontWeight: "700", lineHeight: 48 },
46
+ h3: { fontSize: 34, fontWeight: "700", lineHeight: 41 },
47
+ h4: { fontSize: 28, fontWeight: "700", lineHeight: 34 },
48
+ h5: { fontSize: 22, fontWeight: "600", lineHeight: 28 },
49
+ h6: { fontSize: 18, fontWeight: "600", lineHeight: 24 },
50
+ body1: { fontSize: 16, fontWeight: "400", lineHeight: 24 },
51
+ body2: { fontSize: 15, fontWeight: "400", lineHeight: 22 },
52
+ body3: { fontSize: 14, fontWeight: "400", lineHeight: 20 },
53
+ body4: { fontSize: 13, fontWeight: "400", lineHeight: 18 },
54
+ body5: { fontSize: 12, fontWeight: "400", lineHeight: 16 },
55
+ body6: { fontSize: 11, fontWeight: "400", lineHeight: 15 },
56
+ subtitle1: { fontSize: 14, fontWeight: "600", lineHeight: 20 },
57
+ subtitle2: { fontSize: 12, fontWeight: "600", lineHeight: 16 },
58
+ caption: { fontSize: 12, fontWeight: "400", lineHeight: 16 },
59
+ overline: { fontSize: 10, fontWeight: "600", lineHeight: 14 }
60
+ },
61
+ ...baseTheme,
62
+ shadows: {
63
+ light: {
64
+ shadowColor: "#000",
65
+ shadowOffset: { width: 0, height: 1 },
66
+ shadowOpacity: 0.1,
67
+ shadowRadius: 2,
68
+ elevation: 2
69
+ },
70
+ medium: {
71
+ shadowColor: "#000",
72
+ shadowOffset: { width: 0, height: 4 },
73
+ shadowOpacity: 0.15,
74
+ shadowRadius: 8,
75
+ elevation: 4
76
+ },
77
+ heavy: {
78
+ shadowColor: "#000",
79
+ shadowOffset: { width: 0, height: 8 },
80
+ shadowOpacity: 0.2,
81
+ shadowRadius: 16,
82
+ elevation: 8
83
+ }
84
+ }
85
+ };
86
+ var darkTheme = {
87
+ colors: {
88
+ primary: "#0A84FF",
89
+ secondary: "#30B0C5",
90
+ background: "#1C1C1E",
91
+ surface: "#2C2C2E",
92
+ text: "#FFFFFF",
93
+ textSecondary: "#A0A0A0",
94
+ textTertiary: "#808080",
95
+ border: "#454546",
96
+ borderLight: "#3A3A3C",
97
+ error: "#FF453A",
98
+ success: "#30C759",
99
+ warning: "#FF9500",
100
+ info: "#30B0C5",
101
+ transparent: "transparent",
102
+ white: "#FFFFFF",
103
+ black: "#000000",
104
+ disabled: "#636366"
105
+ },
106
+ typography: lightTheme.typography,
107
+ ...baseTheme,
108
+ shadows: {
109
+ light: {
110
+ shadowColor: "#000",
111
+ shadowOffset: { width: 0, height: 1 },
112
+ shadowOpacity: 0.3,
113
+ shadowRadius: 2,
114
+ elevation: 2
115
+ },
116
+ medium: {
117
+ shadowColor: "#000",
118
+ shadowOffset: { width: 0, height: 4 },
119
+ shadowOpacity: 0.4,
120
+ shadowRadius: 8,
121
+ elevation: 4
122
+ },
123
+ heavy: {
124
+ shadowColor: "#000",
125
+ shadowOffset: { width: 0, height: 8 },
126
+ shadowOpacity: 0.5,
127
+ shadowRadius: 16,
128
+ elevation: 8
129
+ }
130
+ }
131
+ };
132
+
133
+ // src/theme/index.tsx
134
+ var ThemeContext = createContext(null);
135
+ function ThemeProvider({
136
+ children,
137
+ defaultTheme = "system"
138
+ }) {
139
+ const systemColorScheme = useColorScheme();
140
+ const isSystemDark = systemColorScheme === "dark";
141
+ const [isDark, setIsDark] = useState(() => {
142
+ if (defaultTheme === "system") {
143
+ return isSystemDark;
144
+ }
145
+ return defaultTheme === "dark";
146
+ });
147
+ useEffect(() => {
148
+ if (defaultTheme === "system") {
149
+ setIsDark(isSystemDark);
150
+ }
151
+ }, [isSystemDark, defaultTheme]);
152
+ const theme = isDark ? darkTheme : lightTheme;
153
+ const toggleTheme = () => {
154
+ setIsDark((prev) => !prev);
155
+ };
156
+ const value = {
157
+ isDark,
158
+ theme,
159
+ toggleTheme
160
+ };
161
+ return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value }, children);
162
+ }
163
+ function useTheme() {
164
+ const context = useContext(ThemeContext);
165
+ if (!context) {
166
+ throw new Error("useTheme must be used within a ThemeProvider");
167
+ }
168
+ return context;
169
+ }
170
+
171
+ export {
172
+ lightTheme,
173
+ darkTheme,
174
+ ThemeProvider,
175
+ useTheme
176
+ };
177
+ //# sourceMappingURL=chunk-IOIXIQ2F.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/theme/index.tsx", "../src/theme/themes.ts"],
4
+ "sourcesContent": ["import React, { createContext, useState, useContext, useEffect } from 'react';\nimport { useColorScheme } from 'react-native';\nimport type { ThemeContextValue } from '../types/index';\nimport { lightTheme, darkTheme } from './themes';\n\nconst ThemeContext = createContext<ThemeContextValue | null>(null);\n\nexport interface ThemeProviderProps {\n children: React.ReactNode;\n defaultTheme?: 'light' | 'dark' | 'system';\n}\n\n/**\n * Context-based Theme Provider\n * Provides theme context without requiring Redux\n */\nexport function ThemeProvider({\n children,\n defaultTheme = 'system',\n}: ThemeProviderProps) {\n const systemColorScheme = useColorScheme();\n const isSystemDark = systemColorScheme === 'dark';\n\n const [isDark, setIsDark] = useState<boolean>(() => {\n if (defaultTheme === 'system') {\n return isSystemDark;\n }\n return defaultTheme === 'dark';\n });\n\n // Update when system preference changes\n useEffect(() => {\n if (defaultTheme === 'system') {\n setIsDark(isSystemDark);\n }\n }, [isSystemDark, defaultTheme]);\n\n const theme = isDark ? darkTheme : lightTheme;\n\n const toggleTheme = () => {\n setIsDark((prev) => !prev);\n };\n\n const value: ThemeContextValue = {\n isDark,\n theme,\n toggleTheme,\n };\n\n return (\n <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>\n );\n}\n\n/**\n * Hook to access theme context in components\n * Must be used within ThemeProvider\n */\nexport function useTheme(): ThemeContextValue {\n const context = useContext(ThemeContext);\n if (!context) {\n throw new Error('useTheme must be used within a ThemeProvider');\n }\n return context;\n}\n\nexport { lightTheme, darkTheme } from './themes';\nexport type { Theme, ThemeContextValue } from '../types/index';\n", "import type { Theme } from '../types/index';\n\nconst baseTheme = {\n spacing: {\n xs: 4,\n sm: 8,\n md: 16,\n lg: 24,\n xl: 32,\n xxl: 48,\n },\n borderRadius: {\n xs: 2,\n sm: 4,\n md: 8,\n lg: 12,\n full: 9999,\n },\n};\n\nexport const lightTheme: Theme = {\n colors: {\n primary: '#007AFF',\n secondary: '#5AC8FA',\n background: '#FFFFFF',\n surface: '#F5F5F5',\n text: '#000000',\n textSecondary: '#666666',\n textTertiary: '#999999',\n border: '#CCCCCC',\n borderLight: '#E8E8E8',\n error: '#FF3B30',\n success: '#34C759',\n warning: '#FF9500',\n info: '#5AC8FA',\n transparent: 'transparent',\n white: '#FFFFFF',\n black: '#000000',\n disabled: '#D0D0D0',\n },\n typography: {\n h1: { fontSize: 48, fontWeight: '700', lineHeight: 56 },\n h2: { fontSize: 40, fontWeight: '700', lineHeight: 48 },\n h3: { fontSize: 34, fontWeight: '700', lineHeight: 41 },\n h4: { fontSize: 28, fontWeight: '700', lineHeight: 34 },\n h5: { fontSize: 22, fontWeight: '600', lineHeight: 28 },\n h6: { fontSize: 18, fontWeight: '600', lineHeight: 24 },\n body1: { fontSize: 16, fontWeight: '400', lineHeight: 24 },\n body2: { fontSize: 15, fontWeight: '400', lineHeight: 22 },\n body3: { fontSize: 14, fontWeight: '400', lineHeight: 20 },\n body4: { fontSize: 13, fontWeight: '400', lineHeight: 18 },\n body5: { fontSize: 12, fontWeight: '400', lineHeight: 16 },\n body6: { fontSize: 11, fontWeight: '400', lineHeight: 15 },\n subtitle1: { fontSize: 14, fontWeight: '600', lineHeight: 20 },\n subtitle2: { fontSize: 12, fontWeight: '600', lineHeight: 16 },\n caption: { fontSize: 12, fontWeight: '400', lineHeight: 16 },\n overline: { fontSize: 10, fontWeight: '600', lineHeight: 14 },\n },\n ...baseTheme,\n shadows: {\n light: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 1 },\n shadowOpacity: 0.1,\n shadowRadius: 2,\n elevation: 2,\n },\n medium: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 0.15,\n shadowRadius: 8,\n elevation: 4,\n },\n heavy: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 8 },\n shadowOpacity: 0.2,\n shadowRadius: 16,\n elevation: 8,\n },\n },\n};\n\nexport const darkTheme: Theme = {\n colors: {\n primary: '#0A84FF',\n secondary: '#30B0C5',\n background: '#1C1C1E',\n surface: '#2C2C2E',\n text: '#FFFFFF',\n textSecondary: '#A0A0A0',\n textTertiary: '#808080',\n border: '#454546',\n borderLight: '#3A3A3C',\n error: '#FF453A',\n success: '#30C759',\n warning: '#FF9500',\n info: '#30B0C5',\n transparent: 'transparent',\n white: '#FFFFFF',\n black: '#000000',\n disabled: '#636366',\n },\n typography: lightTheme.typography,\n ...baseTheme,\n shadows: {\n light: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 1 },\n shadowOpacity: 0.3,\n shadowRadius: 2,\n elevation: 2,\n },\n medium: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 0.4,\n shadowRadius: 8,\n elevation: 4,\n },\n heavy: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 8 },\n shadowOpacity: 0.5,\n shadowRadius: 16,\n elevation: 8,\n },\n },\n};\n"],
5
+ "mappings": ";AAAA,OAAO,SAAS,eAAe,UAAU,YAAY,iBAAiB;AACtE,SAAS,sBAAsB;;;ACC/B,IAAM,YAAY;AAAA,EAChB,SAAS;AAAA,IACP,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,KAAK;AAAA,EACP;AAAA,EACA,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,MAAM;AAAA,EACR;AACF;AAEO,IAAM,aAAoB;AAAA,EAC/B,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,MAAM;AAAA,IACN,eAAe;AAAA,IACf,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,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