mobile-design 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE-Apache-2.0.txt +55 -0
  3. package/NOTICE +11 -0
  4. package/README.md +96 -2
  5. package/assets/fonts/MaterialSymbolsRounded.ttf +0 -0
  6. package/assets/fonts/MaterialSymbolsRounded.woff2 +0 -0
  7. package/assets/fonts/roboto/OFL.txt +93 -0
  8. package/assets/fonts/roboto/Roboto_400Regular.ttf +0 -0
  9. package/assets/fonts/roboto/Roboto_400Regular.woff2 +0 -0
  10. package/assets/fonts/roboto/Roboto_400Regular_Italic.ttf +0 -0
  11. package/assets/fonts/roboto/Roboto_400Regular_Italic.woff2 +0 -0
  12. package/assets/fonts/roboto/Roboto_500Medium.ttf +0 -0
  13. package/assets/fonts/roboto/Roboto_500Medium.woff2 +0 -0
  14. package/assets/fonts/roboto/Roboto_500Medium_Italic.ttf +0 -0
  15. package/assets/fonts/roboto/Roboto_500Medium_Italic.woff2 +0 -0
  16. package/assets/fonts/roboto/Roboto_600SemiBold.ttf +0 -0
  17. package/assets/fonts/roboto/Roboto_600SemiBold.woff2 +0 -0
  18. package/assets/fonts/roboto/Roboto_600SemiBold_Italic.ttf +0 -0
  19. package/assets/fonts/roboto/Roboto_600SemiBold_Italic.woff2 +0 -0
  20. package/assets/fonts/roboto/Roboto_700Bold.ttf +0 -0
  21. package/assets/fonts/roboto/Roboto_700Bold.woff2 +0 -0
  22. package/assets/fonts/roboto/Roboto_700Bold_Italic.ttf +0 -0
  23. package/assets/fonts/roboto/Roboto_700Bold_Italic.woff2 +0 -0
  24. package/assets/fonts/roboto/Roboto_800ExtraBold.ttf +0 -0
  25. package/assets/fonts/roboto/Roboto_800ExtraBold.woff2 +0 -0
  26. package/assets/fonts/roboto/Roboto_800ExtraBold_Italic.ttf +0 -0
  27. package/assets/fonts/roboto/Roboto_800ExtraBold_Italic.woff2 +0 -0
  28. package/assets/logo.svg +13 -0
  29. package/package.json +62 -3
  30. package/src/catalog.ts +683 -0
  31. package/src/color-scheme.ts +68 -0
  32. package/src/color.ts +35 -0
  33. package/src/components/action-surface.tsx +83 -0
  34. package/src/components/appbar-layout.ts +85 -0
  35. package/src/components/appbar-scroll-behavior.tsx +386 -0
  36. package/src/components/appbar.tsx +474 -0
  37. package/src/components/avatar.tsx +135 -0
  38. package/src/components/bottom-sheet-text-field.tsx +13 -0
  39. package/src/components/bottom-sheet-text-input.tsx +2 -0
  40. package/src/components/bottom-sheet-text-input.web.tsx +2 -0
  41. package/src/components/button-group.tsx +996 -0
  42. package/src/components/button.tsx +504 -0
  43. package/src/components/card.tsx +284 -0
  44. package/src/components/carousel-full-screen.tsx +374 -0
  45. package/src/components/carousel-layout.ts +418 -0
  46. package/src/components/carousel-scroll-controller.tsx +303 -0
  47. package/src/components/carousel-vertical-layout.ts +92 -0
  48. package/src/components/carousel-vertical.tsx +505 -0
  49. package/src/components/carousel.tsx +678 -0
  50. package/src/components/choice-motion.tsx +108 -0
  51. package/src/components/choice-types.ts +52 -0
  52. package/src/components/choice.tsx +400 -0
  53. package/src/components/choice.web.ts +1 -0
  54. package/src/components/circular-progress-status.tsx +218 -0
  55. package/src/components/container-transform.tsx +304 -0
  56. package/src/components/content.tsx +1450 -0
  57. package/src/components/date-picker-calendar.tsx +933 -0
  58. package/src/components/date-picker-months.tsx +102 -0
  59. package/src/components/date-picker-utils.ts +96 -0
  60. package/src/components/date-picker.tsx +641 -0
  61. package/src/components/dialog.tsx +340 -0
  62. package/src/components/docked-date-picker.tsx +525 -0
  63. package/src/components/drawer.tsx +248 -0
  64. package/src/components/fab.tsx +1221 -0
  65. package/src/components/focus-order.ts +40 -0
  66. package/src/components/full-screen-dialog.tsx +234 -0
  67. package/src/components/icon-button.tsx +72 -0
  68. package/src/components/list-focus.tsx +182 -0
  69. package/src/components/list-reorder.tsx +349 -0
  70. package/src/components/loading-indicator.tsx +378 -0
  71. package/src/components/menu.tsx +1091 -0
  72. package/src/components/navigation-bar.tsx +390 -0
  73. package/src/components/navigation-focus.ts +45 -0
  74. package/src/components/navigation-rail-layout.ts +53 -0
  75. package/src/components/navigation.tsx +682 -0
  76. package/src/components/popup.tsx +624 -0
  77. package/src/components/press-scope.ts +17 -0
  78. package/src/components/progress-indicator-paths.ts +254 -0
  79. package/src/components/progress-indicator.tsx +570 -0
  80. package/src/components/progress.tsx +39 -0
  81. package/src/components/pull-to-refresh.tsx +379 -0
  82. package/src/components/rich-tooltip.tsx +183 -0
  83. package/src/components/search-icon-button.tsx +8 -0
  84. package/src/components/search-trigger.tsx +28 -0
  85. package/src/components/search-view.tsx +790 -0
  86. package/src/components/searchbar.tsx +190 -0
  87. package/src/components/segmented-buttons.tsx +456 -0
  88. package/src/components/selection-controls.tsx +760 -0
  89. package/src/components/sheets.tsx +1027 -0
  90. package/src/components/slider.tsx +1290 -0
  91. package/src/components/snackbar.tsx +430 -0
  92. package/src/components/split-button.tsx +525 -0
  93. package/src/components/swipe-list-item.tsx +793 -0
  94. package/src/components/switch.tsx +319 -0
  95. package/src/components/tabs-pager.tsx +241 -0
  96. package/src/components/tabs-pager.web.tsx +110 -0
  97. package/src/components/tabs.tsx +759 -0
  98. package/src/components/text-field.tsx +673 -0
  99. package/src/components/time-picker.tsx +1248 -0
  100. package/src/components/toolbar.tsx +590 -0
  101. package/src/components/tooltip.tsx +273 -0
  102. package/src/components/web-choice.tsx +572 -0
  103. package/src/core.tsx +169 -0
  104. package/src/font-assets.ts +28 -0
  105. package/src/font-assets.web.ts +25 -0
  106. package/src/index.ts +139 -0
  107. package/src/material-symbol-codepoints.ts +67 -0
  108. package/src/material-symbol-paths.ts +340 -0
  109. package/src/material-symbols.tsx +155 -0
  110. package/src/native-modal.tsx +50 -0
  111. package/src/outside-interaction.tsx +39 -0
  112. package/src/paper-icon-aliases.ts +147 -0
  113. package/src/paper-internals.d.ts +15 -0
  114. package/src/paper-motion-bridge.tsx +11 -0
  115. package/src/paper-motion.tsx +24 -0
  116. package/src/primitives.tsx +13 -0
  117. package/src/ripple.tsx +7 -0
  118. package/src/ripple.web.tsx +108 -0
  119. package/src/scroll-indicators.ts +12 -0
  120. package/src/typography.ts +9 -0
  121. package/src/web-accessibility.ts +19 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mobile Design contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,55 @@
1
+ Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
+
17
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
+
23
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
+
25
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
+
27
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
+
29
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
+
31
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
+
35
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
+
37
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+
39
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
40
+
41
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
+
43
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
package/NOTICE ADDED
@@ -0,0 +1,11 @@
1
+ Mobile Design composes React Native Paper 6.0.0-alpha.0 (MIT, Copyright 2017 Callstack); it does not claim authorship of Paper.
2
+
3
+ Material Symbols Rounded subset, Unicode data and SVG paths: Copyright Google LLC, Apache License 2.0. The subset is derived from the variable font in google/material-design-icons revision 10ecc14790612ca8fd164e3f4ffe9c16fc50d5b7. The font subset retains the original FILL, GRAD, opsz and wght axes. The bootstrap SVG paths come from symbols/web in the same revision. See LICENSE-Apache-2.0.txt.
4
+
5
+ Roboto static fonts: Copyright The Roboto Project Authors (https://github.com/googlefonts/roboto-classic), SIL Open Font License 1.1. Original v3.015 faces distributed by expo/google-fonts and Google Fonts. See assets/fonts/roboto/OFL.txt.
6
+
7
+ Carousel geometry and progress paths adapt Material Components Android and AndroidX code under Apache 2.0. The adapted source files preserve the original notices and revisions. See LICENSE-Apache-2.0.txt.
8
+
9
+ Loading Indicator shape coordinates adapt MaterialShapes (Copyright 2024 The Android Open Source Project). Button tokens and other identified current Material3 adaptations reference AndroidX revision d153d87ed76372ece0c99dac837ff07ab845d495, under Apache 2.0. This package is not affiliated with or endorsed by Google or Callstack.
10
+
11
+ TopAppBar measurement, title/color easing and snap behavior adapt AppBar.kt and Material3 tokens from AndroidX revision d153d87ed76372ece0c99dac837ff07ab845d495 (Copyright The Android Open Source Project), Apache 2.0. The React Native scroll adapter uses native ScrollView momentum. See LICENSE-Apache-2.0.txt.
package/README.md CHANGED
@@ -1,3 +1,97 @@
1
- # Temporary Holding Version
1
+ # Mobile Design
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ![Logo de Mobile Design](https://raw.githubusercontent.com/nicolas-rm/mobile-design/main/dist/assets/favicon.svg)
4
+
5
+ Componentes Material Design 3 para React Native y React Native Web. El paquete integra el tema, las fuentes y los componentes sobre React Native Paper.
6
+
7
+ ## Instalación desde npm
8
+
9
+ En una app Expo, usa Metro y las versiones de React y React Native de tu SDK. El paquete distribuye TypeScript y Metro resuelve los archivos específicos de cada plataforma. La configuración verificada usa Expo `58.0.17`, React Native `0.88.0`, React `19.3.0` y la versión preliminar `6.0.0-alpha.0` de React Native Paper.
10
+
11
+ Ejecuta estos comandos desde la raíz de la app para instalar `mobile-design` con las versiones probadas de sus dependencias.
12
+
13
+ ```sh
14
+ npx expo install expo-font@58.0.10 expo-image@58.0.16 \
15
+ react-native-gesture-handler@3.3.0 react-native-reanimated@4.7.1 \
16
+ react-native-worklets@0.13.0 react-native-safe-area-context@5.10.1 \
17
+ react-native-svg@15.16.0
18
+ npm install mobile-design@0.1.0 react-native-paper@6.0.0-alpha.0 @gorhom/bottom-sheet@5.2.14
19
+ ```
20
+
21
+ Para React Native Web, usa Metro e instala las dependencias del navegador antes de iniciar Expo.
22
+
23
+ ```sh
24
+ npx expo install react-dom@19.3.0 react-native-web@0.21.4 @expo/metro-runtime@58.0.17
25
+ npx expo start --web
26
+ ```
27
+
28
+ `mobile-design` instala `@mobile-design/tokens` como dependencia e incluye Roboto y los símbolos MD3 que necesitan los componentes. Con estas versiones se verificaron TypeScript, la exportación de Metro en Android, iOS y web, y el renderizado de fuentes y símbolos en Chromium con dependencias públicas.
29
+
30
+ ## Uso
31
+
32
+ Usa `mobile-design/react-native` en Android e iOS y `mobile-design/react-native-web` en el navegador. Monta la app dentro de `GestureHandlerRootView`, `SafeAreaProvider` y `MobileDesignProvider`.
33
+
34
+ ```tsx
35
+ import { useState } from 'react';
36
+ import { GestureHandlerRootView } from 'react-native-gesture-handler';
37
+ import { SafeAreaProvider } from 'react-native-safe-area-context';
38
+ import { Button, MobileDesignProvider, TextField } from 'mobile-design/react-native';
39
+
40
+ export default function App() {
41
+ const [name, setName] = useState('');
42
+
43
+ return (
44
+ <GestureHandlerRootView style={{ flex: 1 }}>
45
+ <SafeAreaProvider>
46
+ <MobileDesignProvider>
47
+ <TextField label="Nombre" value={name} onChangeText={setName} />
48
+ <Button variant="filled" onPress={() => setName('')}>
49
+ Limpiar
50
+ </Button>
51
+ </MobileDesignProvider>
52
+ </SafeAreaProvider>
53
+ </GestureHandlerRootView>
54
+ );
55
+ }
56
+ ```
57
+
58
+ `MobileDesignProvider` sigue el esquema claro u oscuro del sistema. Puedes fijarlo con `colorScheme`.
59
+
60
+ ## Tipografía e iconos
61
+
62
+ Roboto es la tipografía predeterminada. El proveedor usa un subconjunto de Material Symbols Rounded que cubre los controles y ejemplos de integración. El proveedor carga las fuentes predeterminadas que utiliza el tema o el renderizador activo. Para elegir otra tipografía, registra su familia y los pesos que utilices en tu app y pasa, por ejemplo, `fontFamily="Inter"`.
63
+
64
+ Para cambiar los iconos por nombre en toda la app, pasa `settings={{ icon: renderIcon }}` al proveedor. Tu renderizador recibe `name`, `size`, `color`, `direction` y `testID`. Traduce los nombres que usan los componentes a los de tu conjunto. Por ejemplo, Paper envía `magnify` y `check`, que en Ionicons se llaman `search` y `checkmark`. La app instala el conjunto que elija.
65
+
66
+ Si quieres usar la colección completa, instala `@mobile-design/icons` en la misma versión que `mobile-design`.
67
+
68
+ ```sh
69
+ npm install @mobile-design/icons@0.1.0
70
+ ```
71
+
72
+ Importa `MaterialSymbol` o `renderMaterialIcon` desde `@mobile-design/icons/react-native` en Android e iOS, o desde `@mobile-design/icons/react-native-web` en el navegador. Pasa el renderizador de esa entrada a `settings.icon` para aplicar la colección completa a los iconos por nombre. La fuente se carga al renderizar un símbolo. También puedes precargarla con `useFonts([mobileDesignSymbolsFont])` de `expo-font`.
73
+
74
+ Para cambiar el icono de un solo control, pasa una función al prop `icon`. Este ejemplo usa Ionicons. Instala `@expo/vector-icons` en la app para usarlo. [Catálogo de Expo](https://icons.expo.fyi/Index)
75
+
76
+ ```tsx
77
+ import Ionicons from '@expo/vector-icons/Ionicons';
78
+ import { IconButton } from 'mobile-design/react-native';
79
+
80
+ export function CloseButton({ onClose }: { onClose: () => void }) {
81
+ return (
82
+ <IconButton
83
+ accessibilityLabel="Cerrar"
84
+ icon={({ size, color }) => <Ionicons name="close" size={size} style={{ color }} accessible={false} />}
85
+ onPress={onClose}
86
+ />
87
+ );
88
+ }
89
+ ```
90
+
91
+ ## Desarrollo en el workspace
92
+
93
+ Declara `"mobile-design": "workspace:*"` en la app del workspace. Si usas el catálogo completo, declara también `"@mobile-design/icons": "workspace:*"`. Ejecuta `pnpm install` y `pnpm verify:mobile-design` desde la raíz.
94
+
95
+ ## Licencias
96
+
97
+ Consulta [LICENSE](LICENSE), [LICENSE-Apache-2.0.txt](LICENSE-Apache-2.0.txt), [NOTICE](NOTICE) y la [licencia de Roboto](assets/fonts/roboto/OFL.txt).
@@ -0,0 +1,93 @@
1
+ Copyright 2011 The Roboto Project Authors (https://github.com/googlefonts/roboto-classic)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg"
3
+ width="64" height="64" viewBox="130 138 994 994"
4
+ role="img" aria-labelledby="mobile-design-title mobile-design-description">
5
+ <title id="mobile-design-title">Mobile Design</title>
6
+ <desc id="mobile-design-description">Logo M modular violeta con fondo transparente, reconstruido con cuatro trazados vectoriales editables.</desc>
7
+ <g id="mobile-design-symbol">
8
+ <path id="left-pillar" fill="#6D54A7" d="M 175.5 472 C 257.3 562.05 346 653.57 428.5 745 C 427.6 793.78 429.88 843.4 428.5 891 C 426.46 955.71 368.86 1018.82 302 1018.5 C 233.71 1018.79 177.02 956.68 173.5 891 C 174.83 751.61 170.83 610.01 175.5 472 Z"/>
9
+ <path id="right-pillar" fill="#6D54A7" transform="matrix(-1 0 0 1 1254 0)" d="M 175.5 472 C 257.3 562.05 346 653.57 428.5 745 C 427.6 793.78 429.88 843.4 428.5 891 C 426.46 955.71 368.86 1018.82 302 1018.5 C 233.71 1018.79 177.02 956.68 173.5 891 C 174.83 751.61 170.83 610.01 175.5 472 Z"/>
10
+ <path id="back-diagonal" fill="#54398C" d="M 532 826.5 C 428.02 707.4 318.1 590.77 208.5 474 C 186.44 447.64 172.92 417.74 173.5 382 C 172.08 313.81 233.16 251.68 301 251.5 C 340.37 252.45 373.72 271.56 399.5 303 C 477.43 399.3 552.32 496.86 627 594.5 L 683 664 L 712 764 L 637 854 Z"/>
11
+ <path id="front-diagonal" fill="#6D54A7" d="M 627 594.5 C 701.75 497.12 776.29 399.65 854 303.5 C 880 272.33 912.82 251.74 953 252.5 C 1021.42 251.16 1081.55 314.44 1080.5 382 C 1080.59 417.3 1067.88 447.3 1046 473.5 C 935.7 590.92 824.84 708.11 720.5 828 C 694.64 856.64 664.7 875.43 627 875.5 C 588.59 875.64 557.34 855.69 532 826.5 C 518.5 815 515 799.5 515 780 C 515 751 525.5 729.5 548 700 L 627 594.5 Z"/>
12
+ </g>
13
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,65 @@
1
1
  {
2
2
  "name": "mobile-design",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Material Design 3 components for React Native and React Native Web, built on React Native Paper",
5
+ "keywords": [
6
+ "material-design",
7
+ "material-design-3",
8
+ "react-native",
9
+ "react-native-web",
10
+ "expo",
11
+ "design-system"
12
+ ],
13
+ "license": "MIT AND Apache-2.0 AND OFL-1.1",
14
+ "publishConfig": {
15
+ "access": "public",
16
+ "registry": "https://registry.npmjs.org/"
17
+ },
18
+ "exports": {
19
+ "./react-native": {
20
+ "types": "./src/index.ts",
21
+ "default": "./src/index.ts"
22
+ },
23
+ "./react-native-web": {
24
+ "types": "./src/index.ts",
25
+ "default": "./src/index.ts"
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
29
+ "files": [
30
+ "src",
31
+ "assets/fonts",
32
+ "assets/logo.svg",
33
+ "README.md",
34
+ "LICENSE",
35
+ "NOTICE",
36
+ "LICENSE-Apache-2.0.txt"
37
+ ],
38
+ "sideEffects": false,
39
+ "dependencies": {
40
+ "@mobile-design/tokens": "0.1.0"
41
+ },
42
+ "peerDependencies": {
43
+ "react": ">=19.2.0",
44
+ "react-native": ">=0.88.0",
45
+ "react-dom": ">=19.2.0",
46
+ "react-native-web": ">=0.21.4",
47
+ "expo-font": ">=58.0.0",
48
+ "react-native-paper": "6.0.0-alpha.0",
49
+ "react-native-reanimated": ">=4.3.0",
50
+ "react-native-worklets": ">=0.8.1",
51
+ "react-native-gesture-handler": "~3.3.0",
52
+ "react-native-safe-area-context": ">=5.0.0",
53
+ "react-native-svg": ">=15.0.0",
54
+ "expo-image": ">=57.0.0",
55
+ "@gorhom/bottom-sheet": ">=5.2.0"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "react-dom": {
59
+ "optional": true
60
+ },
61
+ "react-native-web": {
62
+ "optional": true
63
+ }
64
+ }
6
65
  }