@flipova/foundation 1.13.0 → 2.0.4

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 (260) hide show
  1. package/CHANGELOG.md +181 -0
  2. package/README.md +53 -178
  3. package/components/ui/accordion/ANIMATION_CUSTOMIZATION.md +162 -0
  4. package/components/ui/accordion/AccordionAnimatedHeight.tsx +56 -0
  5. package/components/ui/accordion/AccordionAnimatedIcon.tsx +41 -0
  6. package/components/ui/accordion/AnimatedHeight.tsx +56 -0
  7. package/components/ui/accordion/AnimatedIcon.tsx +41 -0
  8. package/components/ui/accordion/MIGRATION_SUMMARY.md +250 -0
  9. package/components/ui/accordion/USAGE_EXAMPLE.tsx +179 -0
  10. package/components/ui/accordion/animation-config.ts +32 -0
  11. package/components/ui/accordion/index.tsx +253 -0
  12. package/components/ui/actionsheet/index.tsx +511 -0
  13. package/components/ui/alert/index.tsx +158 -0
  14. package/components/ui/alert-dialog/index.tsx +254 -0
  15. package/components/ui/avatar/index.tsx +139 -0
  16. package/components/ui/badge/index.tsx +163 -0
  17. package/components/ui/bottomsheet/index.tsx +477 -0
  18. package/components/ui/box/index.tsx +19 -0
  19. package/components/ui/box/index.web.tsx +19 -0
  20. package/components/ui/box/styles.tsx +10 -0
  21. package/components/ui/button/index.tsx +264 -0
  22. package/components/ui/calendar/creator.tsx +366 -0
  23. package/components/ui/calendar/index.tsx +462 -0
  24. package/components/ui/calendar/styles.tsx +140 -0
  25. package/components/ui/card/index.tsx +23 -0
  26. package/components/ui/card/index.web.tsx +26 -0
  27. package/components/ui/card/styles.tsx +16 -0
  28. package/components/ui/center/index.tsx +22 -0
  29. package/components/ui/center/index.web.tsx +20 -0
  30. package/components/ui/center/styles.tsx +8 -0
  31. package/components/ui/checkbox/index.tsx +184 -0
  32. package/components/ui/date-time-picker/creator.tsx +109 -0
  33. package/components/ui/date-time-picker/index.tsx +585 -0
  34. package/components/ui/date-time-picker/index.web.tsx +217 -0
  35. package/components/ui/date-time-picker/styles.tsx +56 -0
  36. package/components/ui/divider/index.tsx +40 -0
  37. package/components/ui/drawer/index.tsx +362 -0
  38. package/components/ui/fab/index.tsx +215 -0
  39. package/components/ui/flat-list/index.tsx +21 -0
  40. package/components/ui/form-control/index.tsx +352 -0
  41. package/components/ui/gluestack-ui-provider/config.ts +72 -0
  42. package/components/ui/gluestack-ui-provider/index.tsx +47 -0
  43. package/components/ui/gluestack-ui-provider/index.web.tsx +96 -0
  44. package/components/ui/gluestack-ui-provider/script.ts +19 -0
  45. package/components/ui/gluestack-ui-provider/tokens.d.ts +17 -0
  46. package/components/ui/gluestack-ui-provider/tokens.js +188 -0
  47. package/components/ui/gluestack-ui-provider/useGluestackColors.ts +82 -0
  48. package/components/ui/grid/index.tsx +283 -0
  49. package/components/ui/grid/index.web.tsx +66 -0
  50. package/components/ui/grid/styles.tsx +15 -0
  51. package/components/ui/heading/index.tsx +220 -0
  52. package/components/ui/heading/index.web.tsx +202 -0
  53. package/components/ui/heading/styles.tsx +43 -0
  54. package/components/ui/hstack/index.tsx +27 -0
  55. package/components/ui/hstack/index.web.tsx +26 -0
  56. package/components/ui/hstack/styles.tsx +25 -0
  57. package/components/ui/icon/index.tsx +1588 -0
  58. package/components/ui/icon/index.web.tsx +1573 -0
  59. package/components/ui/image/index.tsx +48 -0
  60. package/components/ui/image-background/index.tsx +25 -0
  61. package/components/ui/image-viewer/index.tsx +743 -0
  62. package/components/ui/image-viewer/index.web.tsx +302 -0
  63. package/components/ui/index.ts +58 -0
  64. package/components/ui/input/index.tsx +125 -0
  65. package/components/ui/input-accessory-view/index.tsx +2 -0
  66. package/components/ui/keyboard-avoiding-view/index.tsx +2 -0
  67. package/components/ui/link/index.tsx +102 -0
  68. package/components/ui/liquid-glass/index.tsx +74 -0
  69. package/components/ui/menu/index.tsx +186 -0
  70. package/components/ui/modal/index.tsx +237 -0
  71. package/components/ui/popover/index.tsx +272 -0
  72. package/components/ui/portal/index.tsx +17 -0
  73. package/components/ui/pressable/index.tsx +39 -0
  74. package/components/ui/progress/index.tsx +83 -0
  75. package/components/ui/radio/index.tsx +217 -0
  76. package/components/ui/refresh-control/index.tsx +2 -0
  77. package/components/ui/safe-area-view/index.tsx +2 -0
  78. package/components/ui/scroll-view/index.tsx +2 -0
  79. package/components/ui/section-list/index.tsx +2 -0
  80. package/components/ui/select/index.tsx +277 -0
  81. package/components/ui/select/select-actionsheet.tsx +562 -0
  82. package/components/ui/skeleton/index.tsx +105 -0
  83. package/components/ui/skeleton/index.web.tsx +103 -0
  84. package/components/ui/skeleton/styles.tsx +35 -0
  85. package/components/ui/slider/index.tsx +181 -0
  86. package/components/ui/spinner/index.tsx +40 -0
  87. package/components/ui/status-bar/index.tsx +2 -0
  88. package/components/ui/switch/index.tsx +41 -0
  89. package/components/ui/table/index.tsx +210 -0
  90. package/components/ui/table/index.web.tsx +157 -0
  91. package/components/ui/table/styles.tsx +44 -0
  92. package/components/ui/tabs/TabsAnimatedIndicator.tsx +160 -0
  93. package/components/ui/tabs/animation-config.ts +3 -0
  94. package/components/ui/tabs/creator.tsx +206 -0
  95. package/components/ui/tabs/index.tsx +484 -0
  96. package/components/ui/text/index.tsx +48 -0
  97. package/components/ui/text/index.web.tsx +45 -0
  98. package/components/ui/text/styles.tsx +47 -0
  99. package/components/ui/textarea/index.tsx +94 -0
  100. package/components/ui/toast/index.tsx +252 -0
  101. package/components/ui/tooltip/index.tsx +131 -0
  102. package/components/ui/view/index.tsx +2 -0
  103. package/components/ui/virtualized-list/index.tsx +2 -0
  104. package/components/ui/vstack/index.tsx +28 -0
  105. package/components/ui/vstack/index.web.tsx +27 -0
  106. package/components/ui/vstack/styles.tsx +25 -0
  107. package/design/canonical.index.txt +53 -0
  108. package/design/documentation.xml +519 -0
  109. package/design/manifest.xml +90 -0
  110. package/design/schema.xsd +639 -0
  111. package/design/themes.xml +204 -0
  112. package/design/tokens.xml +510 -0
  113. package/design/tools/design.js +165 -0
  114. package/design/tools/npm.js +65 -0
  115. package/design/tools/requirements.txt +35 -0
  116. package/design/tools/sources/.checker/__init__.py +81 -0
  117. package/design/tools/sources/.checker/checks.py +198 -0
  118. package/design/tools/sources/.checker/cli.py +154 -0
  119. package/design/tools/sources/.checker/io.py +242 -0
  120. package/design/tools/sources/.checker/model.py +144 -0
  121. package/design/tools/sources/.checker/registry.py +115 -0
  122. package/design/tools/sources/.checker/report.py +21 -0
  123. package/design/tools/sources/.docgen/__init__.py +45 -0
  124. package/design/tools/sources/.docgen/cli.py +101 -0
  125. package/design/tools/sources/.docgen/model.py +147 -0
  126. package/design/tools/sources/.docgen/reference.py +97 -0
  127. package/design/tools/sources/.docgen/site.py +145 -0
  128. package/design/tools/sources/.docgen/xsddoc.py +329 -0
  129. package/design/tools/sources/.generate/__init__.py +35 -0
  130. package/design/tools/sources/.generate/cli.py +76 -0
  131. package/design/tools/sources/.generate/common.py +33 -0
  132. package/design/tools/sources/.generate/config.py +119 -0
  133. package/design/tools/sources/.generate/model.py +51 -0
  134. package/design/tools/sources/.generate/tokens.py +141 -0
  135. package/design/tools/sources/.linter/__init__.py +9 -0
  136. package/design/tools/sources/.linter/cli.py +44 -0
  137. package/design/tools/sources/.linter/discovery.py +30 -0
  138. package/design/tools/sources/.linter/errors.py +45 -0
  139. package/design/tools/sources/.linter/linter.py +68 -0
  140. package/design/tools/sources/.xmleditor/__init__.py +74 -0
  141. package/design/tools/sources/.xmleditor/blocks.py +185 -0
  142. package/design/tools/sources/.xmleditor/cli.py +141 -0
  143. package/design/tools/sources/.xmleditor/editor.py +906 -0
  144. package/design/tools/sources/.xmleditor/model.py +708 -0
  145. package/design/tools/sources/.xmleditor/widgets.py +1832 -0
  146. package/design/tools/sources/.xmleditor/xsdmodel.py +753 -0
  147. package/design/tools/sources/checker.py +55 -0
  148. package/design/tools/sources/docgen.py +66 -0
  149. package/design/tools/sources/generate.py +48 -0
  150. package/design/tools/sources/linter.py +54 -0
  151. package/design/tools/sources/ruff.toml +12 -0
  152. package/design/tools/sources/xmleditor.py +62 -0
  153. package/design/tools/unix/_venv_python.sh +16 -0
  154. package/design/tools/unix/check.sh +13 -0
  155. package/design/tools/unix/doc.sh +14 -0
  156. package/design/tools/unix/gen.sh +14 -0
  157. package/design/tools/unix/lint.sh +10 -0
  158. package/design/tools/unix/run.sh +20 -0
  159. package/design/tools/unix/verify.sh +12 -0
  160. package/design/tools/unix/xmledit.sh +12 -0
  161. package/design/tools/windows/check.cmd +12 -0
  162. package/design/tools/windows/doc.cmd +12 -0
  163. package/design/tools/windows/gen.cmd +11 -0
  164. package/design/tools/windows/lint.cmd +9 -0
  165. package/design/tools/windows/run.cmd +26 -0
  166. package/design/tools/windows/verify.cmd +10 -0
  167. package/design/tools/windows/xmledit.cmd +10 -0
  168. package/dist/chunk-LV4UIEQN.js +9730 -0
  169. package/dist/chunk-LV4UIEQN.js.map +1 -0
  170. package/dist/chunk-WNVU3BM2.mjs +9401 -0
  171. package/dist/chunk-WNVU3BM2.mjs.map +1 -0
  172. package/dist/index.d.mts +40 -9
  173. package/dist/index.d.ts +40 -9
  174. package/dist/index.js +726 -414
  175. package/dist/index.mjs +1 -5
  176. package/dist/ui/index.d.mts +6931 -3070
  177. package/dist/ui/index.d.ts +6931 -3070
  178. package/dist/ui/index.js +779 -352
  179. package/dist/ui/index.mjs +1 -2
  180. package/package.json +66 -142
  181. package/dist/chunk-2XORADW6.js +0 -24552
  182. package/dist/chunk-2XORADW6.js.map +0 -1
  183. package/dist/chunk-52BHHF5M.js +0 -46
  184. package/dist/chunk-52BHHF5M.js.map +0 -1
  185. package/dist/chunk-5647JY7Z.mjs +0 -100
  186. package/dist/chunk-5647JY7Z.mjs.map +0 -1
  187. package/dist/chunk-5N5HC4ZA.mjs +0 -3
  188. package/dist/chunk-5N5HC4ZA.mjs.map +0 -1
  189. package/dist/chunk-7QFZMGL6.js +0 -8583
  190. package/dist/chunk-7QFZMGL6.js.map +0 -1
  191. package/dist/chunk-ASZEP37D.js +0 -423
  192. package/dist/chunk-ASZEP37D.js.map +0 -1
  193. package/dist/chunk-BH5SU2JQ.mjs +0 -8282
  194. package/dist/chunk-BH5SU2JQ.mjs.map +0 -1
  195. package/dist/chunk-BO65GO53.mjs +0 -422
  196. package/dist/chunk-BO65GO53.mjs.map +0 -1
  197. package/dist/chunk-BSVXX52E.mjs +0 -413
  198. package/dist/chunk-BSVXX52E.mjs.map +0 -1
  199. package/dist/chunk-DNV5UBNF.mjs +0 -3
  200. package/dist/chunk-DNV5UBNF.mjs.map +0 -1
  201. package/dist/chunk-EDTAMUO2.js +0 -8310
  202. package/dist/chunk-EDTAMUO2.js.map +0 -1
  203. package/dist/chunk-IJTI6EX4.js +0 -4
  204. package/dist/chunk-IJTI6EX4.js.map +0 -1
  205. package/dist/chunk-M3YLASM2.js +0 -428
  206. package/dist/chunk-M3YLASM2.js.map +0 -1
  207. package/dist/chunk-OXKOGLXE.js +0 -4
  208. package/dist/chunk-OXKOGLXE.js.map +0 -1
  209. package/dist/chunk-RQXQK3ZO.mjs +0 -8486
  210. package/dist/chunk-RQXQK3ZO.mjs.map +0 -1
  211. package/dist/chunk-SR25V4EA.mjs +0 -40
  212. package/dist/chunk-SR25V4EA.mjs.map +0 -1
  213. package/dist/chunk-UB34WFEQ.js +0 -106
  214. package/dist/chunk-UB34WFEQ.js.map +0 -1
  215. package/dist/chunk-ZBRWXKDF.mjs +0 -24431
  216. package/dist/chunk-ZBRWXKDF.mjs.map +0 -1
  217. package/dist/cli/ds.d.mts +0 -1
  218. package/dist/cli/ds.d.ts +0 -1
  219. package/dist/cli/ds.js +0 -602
  220. package/dist/cli/ds.js.map +0 -1
  221. package/dist/cli/ds.mjs +0 -579
  222. package/dist/cli/ds.mjs.map +0 -1
  223. package/dist/cli/flipova.d.mts +0 -1
  224. package/dist/cli/flipova.d.ts +0 -1
  225. package/dist/cli/flipova.js +0 -161
  226. package/dist/cli/flipova.js.map +0 -1
  227. package/dist/cli/flipova.mjs +0 -154
  228. package/dist/cli/flipova.mjs.map +0 -1
  229. package/dist/config/index.d.mts +0 -123
  230. package/dist/config/index.d.ts +0 -123
  231. package/dist/config/index.js +0 -28
  232. package/dist/config/index.js.map +0 -1
  233. package/dist/config/index.mjs +0 -3
  234. package/dist/config/index.mjs.map +0 -1
  235. package/dist/index-CuaJA3gM.d.mts +0 -78
  236. package/dist/index-CuaJA3gM.d.ts +0 -78
  237. package/dist/registry/index.d.mts +0 -10160
  238. package/dist/registry/index.d.ts +0 -10160
  239. package/dist/registry/index.js +0 -392
  240. package/dist/registry/index.js.map +0 -1
  241. package/dist/registry/index.mjs +0 -3
  242. package/dist/registry/index.mjs.map +0 -1
  243. package/dist/theme/index.d.mts +0 -109
  244. package/dist/theme/index.d.ts +0 -109
  245. package/dist/theme/index.js +0 -28
  246. package/dist/theme/index.js.map +0 -1
  247. package/dist/theme/index.mjs +0 -3
  248. package/dist/theme/index.mjs.map +0 -1
  249. package/dist/tokens/index.d.mts +0 -423
  250. package/dist/tokens/index.d.ts +0 -423
  251. package/dist/tokens/index.js +0 -44
  252. package/dist/tokens/index.js.map +0 -1
  253. package/dist/tokens/index.mjs +0 -3
  254. package/dist/tokens/index.mjs.map +0 -1
  255. package/dist/types/index.d.mts +0 -202
  256. package/dist/types/index.d.ts +0 -202
  257. package/dist/types/index.js +0 -4
  258. package/dist/types/index.js.map +0 -1
  259. package/dist/types/index.mjs +0 -3
  260. package/dist/types/index.mjs.map +0 -1
@@ -0,0 +1,639 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Flipova Foundation Registry Schema (XSD)
4
+ ========================================
5
+ Namespace: urn:flipova:foundation:registry
6
+ Version: flipova.foundation/registry/1
7
+
8
+ Scope: the design pipeline has exactly ONE job: turn design/tokens.xml +
9
+ design/themes.xml into the gluestack-ui/nativewind theme config
10
+ (components/ui/gluestack-ui-provider/config.ts). This schema therefore only
11
+ declares the manifest (foundationRegistry), the documentation tree
12
+ (documentation) and the two registries (tokens, themes).
13
+ -->
14
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:flipova:foundation:registry"
15
+ xmlns="urn:flipova:foundation:registry" elementFormDefault="qualified">
16
+
17
+ <xs:complexType name="DocArticleType">
18
+ <xs:annotation>
19
+ <xs:documentation>
20
+ One documentation page. `content` is the page body in Markdown: it is
21
+ the single source of truth for that topic -- docgen.py renders it as-is
22
+ (or combined with schema/registry-derived content for the
23
+ schema-reference/api-reference pages) and no copy of that text should
24
+ live anywhere else in the repository (no stray READMEs): everything is
25
+ centralized in documentation.xml.
26
+ </xs:documentation>
27
+ </xs:annotation>
28
+ <xs:sequence>
29
+ <xs:element name="content" type="xs:string" minOccurs="0">
30
+ <xs:annotation>
31
+ <xs:documentation>Markdown body of the article. Absent for pages generated dynamically (e.g. schema-reference) from another source of truth (schema.xsd, tokens.xml, themes.xml).</xs:documentation>
32
+ </xs:annotation>
33
+ </xs:element>
34
+ </xs:sequence>
35
+ <xs:attribute name="id" type="xs:string" use="required">
36
+ <xs:annotation>
37
+ <xs:documentation>Unique article id within documentation.xml.</xs:documentation>
38
+ </xs:annotation>
39
+ </xs:attribute>
40
+ <xs:attribute name="title" type="xs:string" use="required">
41
+ <xs:annotation>
42
+ <xs:documentation>Display title (page and navigation).</xs:documentation>
43
+ </xs:annotation>
44
+ </xs:attribute>
45
+ <xs:attribute name="slug" type="xs:string" use="required">
46
+ <xs:annotation>
47
+ <xs:documentation>Relative output path (no extension), e.g. "theming/tokens" -> docs/generated/theming/tokens.md.</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:attribute>
50
+ </xs:complexType>
51
+
52
+ <xs:complexType name="DocSectionType">
53
+ <xs:annotation>
54
+ <xs:documentation>
55
+ A chapter of the generated documentation, grouping articles and
56
+ ordered by `order` in the navigation.
57
+ </xs:documentation>
58
+ </xs:annotation>
59
+ <xs:sequence>
60
+ <xs:element name="article" type="DocArticleType" maxOccurs="unbounded"/>
61
+ </xs:sequence>
62
+ <xs:attribute name="id" type="xs:string" use="required"/>
63
+ <xs:attribute name="title" type="xs:string" use="required"/>
64
+ <xs:attribute name="order" type="xs:integer" use="required">
65
+ <xs:annotation>
66
+ <xs:documentation>Position of the chapter in the generated navigation (ascending order).</xs:documentation>
67
+ </xs:annotation>
68
+ </xs:attribute>
69
+ </xs:complexType>
70
+
71
+ <xs:complexType name="DocumentationType">
72
+ <xs:annotation>
73
+ <xs:documentation>
74
+ Table of contents AND full content of the Flipova Foundation
75
+ documentation site, carried by design/documentation.xml (separated from
76
+ the manifest). docgen.py consumes it (plus schema.xsd for the schema
77
+ reference and tokens.xml/themes.xml for the registry reference) and
78
+ regenerates the whole site under docs/. Any documentation found
79
+ elsewhere in the repository (extra READMEs, introductory comments in
80
+ the scripts, etc.) is a duplicate to remove.
81
+ </xs:documentation>
82
+ </xs:annotation>
83
+ <xs:sequence>
84
+ <xs:element name="section" type="DocSectionType" maxOccurs="unbounded"/>
85
+ </xs:sequence>
86
+ </xs:complexType>
87
+
88
+ <xs:element name="foundationRegistry">
89
+ <xs:annotation>
90
+ <xs:documentation>
91
+ Root of the manifest. Declares the project meta, the determinism rules
92
+ and the registries (tokens, themes) that the pipeline compiles.
93
+ </xs:documentation>
94
+ </xs:annotation>
95
+ <xs:complexType>
96
+ <xs:sequence>
97
+ <xs:element name="meta" type="MetaType"/>
98
+ <xs:element name="catalogs" type="CatalogsType"/>
99
+ <xs:element name="index" type="IndexType"/>
100
+ </xs:sequence>
101
+ <xs:attribute name="schema" type="xs:string" fixed="flipova.foundation/registry/1"/>
102
+ </xs:complexType>
103
+ <xs:unique name="DeterminismRuleIdUnique">
104
+ <xs:selector xpath="./meta/determinism/rule"/>
105
+ <xs:field xpath="@id"/>
106
+ </xs:unique>
107
+ </xs:element>
108
+
109
+ <xs:element name="documentation" type="DocumentationType">
110
+ <xs:annotation>
111
+ <xs:documentation>
112
+ Root of design/documentation.xml, separated from the manifest: this
113
+ file is the SINGLE source of documentary truth of the repository.
114
+ </xs:documentation>
115
+ </xs:annotation>
116
+ <xs:unique name="DocSectionIdUnique">
117
+ <xs:selector xpath="./section"/>
118
+ <xs:field xpath="@id"/>
119
+ </xs:unique>
120
+ <xs:unique name="DocArticleIdUnique">
121
+ <xs:selector xpath="./section/article"/>
122
+ <xs:field xpath="@id"/>
123
+ </xs:unique>
124
+ <xs:unique name="DocArticleSlugUnique">
125
+ <xs:selector xpath="./section/article"/>
126
+ <xs:field xpath="@slug"/>
127
+ </xs:unique>
128
+ </xs:element>
129
+ <xs:element name="tokens">
130
+ <xs:annotation>
131
+ <xs:documentation>
132
+ Root of the tokens registry. Tokens are the atomic values of the
133
+ design system: spacing, colors, typography, shadows, animations, etc.
134
+ </xs:documentation>
135
+ </xs:annotation>
136
+ <xs:complexType>
137
+ <xs:sequence>
138
+ <xs:element name="items" type="TokensItemsType"/>
139
+ </xs:sequence>
140
+ <xs:attribute name="schema" type="xs:string" fixed="flipova.foundation/registry/1"/>
141
+ <xs:attribute name="register" type="xs:string" fixed="tokens"/>
142
+ </xs:complexType>
143
+ <xs:unique name="TokenIdUnique">
144
+ <xs:selector xpath="./items/token"/>
145
+ <xs:field xpath="@id"/>
146
+ </xs:unique>
147
+ </xs:element>
148
+
149
+ <xs:element name="themes">
150
+ <xs:annotation>
151
+ <xs:documentation>
152
+ Root of the themes registry. A theme maps semantic roles (the
153
+ gluestack/nativewind CSS variable names, e.g. "background",
154
+ "primary-foreground") to color token references, for the light/dark
155
+ modes and beyond.
156
+ </xs:documentation>
157
+ </xs:annotation>
158
+ <xs:complexType>
159
+ <xs:sequence>
160
+ <xs:element name="items" type="ThemesItemsType"/>
161
+ </xs:sequence>
162
+ <xs:attribute name="schema" type="xs:string" fixed="flipova.foundation/registry/1"/>
163
+ <xs:attribute name="register" type="xs:string" fixed="themes"/>
164
+ <xs:attribute name="default" type="xs:string" use="required">
165
+ <xs:annotation>
166
+ <xs:documentation>Id of the default theme (e.g. "light").</xs:documentation>
167
+ </xs:annotation>
168
+ </xs:attribute>
169
+ </xs:complexType>
170
+ <xs:unique name="ThemeIdUnique">
171
+ <xs:selector xpath="./items/theme"/>
172
+ <xs:field xpath="@id"/>
173
+ </xs:unique>
174
+ </xs:element>
175
+
176
+ <!--
177
+ NOTE: <version> is deliberately absent.
178
+ The ONE version of this repository lives in the root package.json (the
179
+ version that is actually published). The registry never stores a copy:
180
+ a second copy could silently drift from the published version, which is
181
+ exactly what happens when `changeset version` bumps package.json only.
182
+ docgen.py reads package.json to stamp the documentation.
183
+ -->
184
+ <xs:complexType name="MetaType">
185
+ <xs:annotation>
186
+ <xs:documentation>
187
+ Registry metadata: project identity and the determinism rules of the
188
+ generation pipeline. The project version is NOT stored here - it is
189
+ owned by the root package.json.
190
+ </xs:documentation>
191
+ </xs:annotation>
192
+ <xs:sequence>
193
+ <xs:element name="project" type="xs:string">
194
+ <xs:annotation>
195
+ <xs:documentation>Project name (e.g. "flipova foundation").</xs:documentation>
196
+ </xs:annotation>
197
+ </xs:element>
198
+ <xs:element name="license" type="xs:string">
199
+ <xs:annotation>
200
+ <xs:documentation>License (e.g. "MIT").</xs:documentation>
201
+ </xs:annotation>
202
+ </xs:element>
203
+ <xs:element name="language" type="xs:string">
204
+ <xs:annotation>
205
+ <xs:documentation>Default language code (e.g. "en").</xs:documentation>
206
+ </xs:annotation>
207
+ </xs:element>
208
+ <xs:element name="registryRoot" type="xs:string">
209
+ <xs:annotation>
210
+ <xs:documentation>Root directory of the registry files (e.g. "design").</xs:documentation>
211
+ </xs:annotation>
212
+ </xs:element>
213
+ <xs:element name="pipeline" type="PipelineType"/>
214
+ <xs:element name="determinism" type="DeterminismType"/>
215
+ </xs:sequence>
216
+ </xs:complexType>
217
+
218
+ <xs:complexType name="PipelineType">
219
+ <xs:annotation>
220
+ <xs:documentation>
221
+ Generation pipeline configuration: the source registry files (tokens,
222
+ themes) and the path of the produced gluestack-ui config file.
223
+ </xs:documentation>
224
+ </xs:annotation>
225
+ <xs:sequence>
226
+ <xs:element name="source" type="xs:string">
227
+ <xs:annotation>
228
+ <xs:documentation>Source files pattern (e.g. "design/tokens.xml, design/themes.xml").</xs:documentation>
229
+ </xs:annotation>
230
+ </xs:element>
231
+ <xs:element name="outputs" type="OutputsType"/>
232
+ </xs:sequence>
233
+ </xs:complexType>
234
+
235
+ <xs:complexType name="OutputsType">
236
+ <xs:annotation>
237
+ <xs:documentation>
238
+ Files generated from the registries: the colour vars (themes.xml) and
239
+ the design-token theme fragment (tokens.xml).
240
+ </xs:documentation>
241
+ </xs:annotation>
242
+ <xs:sequence>
243
+ <xs:element name="gluestackConfig" type="xs:string" minOccurs="0">
244
+ <xs:annotation>
245
+ <xs:documentation>Path of the nativewind config.ts (light/dark vars) consumed by GluestackUIProvider.</xs:documentation>
246
+ </xs:annotation>
247
+ </xs:element>
248
+ <xs:element name="gluestackTokens" type="xs:string" minOccurs="0">
249
+ <xs:annotation>
250
+ <xs:documentation>Path of the Tailwind/nativewind theme fragment (CommonJS) consumed by tailwind.config.js.</xs:documentation>
251
+ </xs:annotation>
252
+ </xs:element>
253
+ </xs:sequence>
254
+ </xs:complexType>
255
+
256
+ <xs:simpleType name="SeverityType">
257
+ <xs:annotation>
258
+ <xs:documentation>
259
+ Severity of a determinism rule. "error" makes the checker fail;
260
+ "warning" reports without blocking.
261
+ </xs:documentation>
262
+ </xs:annotation>
263
+ <xs:restriction base="xs:string">
264
+ <xs:enumeration value="error"/>
265
+ <xs:enumeration value="warning"/>
266
+ </xs:restriction>
267
+ </xs:simpleType>
268
+
269
+ <xs:complexType name="RuleParamType">
270
+ <xs:annotation>
271
+ <xs:documentation>
272
+ Free parameter of a rule (name + value), interpreted by the `kind`
273
+ handler in checker.py. E.g. pattern, selectors, mode. Parameters let
274
+ new rules be declared without touching the schema.
275
+ </xs:documentation>
276
+ </xs:annotation>
277
+ <xs:simpleContent>
278
+ <xs:extension base="xs:string">
279
+ <xs:attribute name="name" type="xs:string" use="required"/>
280
+ </xs:extension>
281
+ </xs:simpleContent>
282
+ </xs:complexType>
283
+
284
+ <xs:complexType name="DeterminismRuleType">
285
+ <xs:annotation>
286
+ <xs:documentation>
287
+ A declarative determinism rule. The checker (checker.py) applies each
288
+ rule through the handler selected by `kind`. New rules can be declared
289
+ in the manifest without touching the schema; the matching handler is
290
+ resolved at runtime (a warning is emitted while no handler is
291
+ registered for that `kind`).
292
+ </xs:documentation>
293
+ </xs:annotation>
294
+ <xs:sequence>
295
+ <xs:element name="description" type="xs:string">
296
+ <xs:annotation>
297
+ <xs:documentation>Plain-language explanation of the rule.</xs:documentation>
298
+ </xs:annotation>
299
+ </xs:element>
300
+ <xs:element name="applyTo" type="xs:string" minOccurs="0">
301
+ <xs:annotation>
302
+ <xs:documentation>
303
+ Glob (fnmatch, e.g. "*.xml") of the files the rule applies to,
304
+ relative to the root passed to the checker. Default: "*.xml".
305
+ </xs:documentation>
306
+ </xs:annotation>
307
+ </xs:element>
308
+ <xs:element name="params" minOccurs="0">
309
+ <xs:annotation>
310
+ <xs:documentation>Key/value parameters of the handler.</xs:documentation>
311
+ </xs:annotation>
312
+ <xs:complexType>
313
+ <xs:sequence>
314
+ <xs:element name="param" type="RuleParamType" maxOccurs="unbounded"/>
315
+ </xs:sequence>
316
+ </xs:complexType>
317
+ </xs:element>
318
+ </xs:sequence>
319
+ <xs:attribute name="id" type="xs:string" use="required">
320
+ <xs:annotation>
321
+ <xs:documentation>Unique rule id (xs:unique constraint at the root level).</xs:documentation>
322
+ </xs:annotation>
323
+ </xs:attribute>
324
+ <xs:attribute name="kind" type="xs:string" use="required">
325
+ <xs:annotation>
326
+ <xs:documentation>Rule nature; selects the handler in checker.py.</xs:documentation>
327
+ </xs:annotation>
328
+ </xs:attribute>
329
+ <xs:attribute name="severity" type="SeverityType" default="error">
330
+ <xs:annotation>
331
+ <xs:documentation>Severity: "error" (default) or "warning".</xs:documentation>
332
+ </xs:annotation>
333
+ </xs:attribute>
334
+ </xs:complexType>
335
+
336
+ <xs:complexType name="DeterminismType">
337
+ <xs:annotation>
338
+ <xs:documentation>
339
+ Rules guaranteeing a reproducible, deterministic generation. A
340
+ declarative, extensible list: each rule is described by a unique id, a
341
+ nature (kind), a severity, the targeted files (applyTo) and free
342
+ parameters consumed by checker.py. The order of the rules does not
343
+ matter: the rule's `kind` alone selects the handler.
344
+ </xs:documentation>
345
+ </xs:annotation>
346
+ <xs:sequence>
347
+ <xs:element name="rule" type="DeterminismRuleType" maxOccurs="unbounded"/>
348
+ </xs:sequence>
349
+ </xs:complexType>
350
+
351
+ <xs:complexType name="CatalogsType">
352
+ <xs:annotation>
353
+ <xs:documentation>
354
+ Collection of catalogs; each points to the source file of a registry
355
+ (tokens, themes).
356
+ </xs:documentation>
357
+ </xs:annotation>
358
+ <xs:sequence>
359
+ <xs:element name="catalog" maxOccurs="unbounded">
360
+ <xs:complexType>
361
+ <xs:sequence>
362
+ <xs:element name="file" type="xs:string">
363
+ <xs:annotation>
364
+ <xs:documentation>Single file holding every entry of this catalog.</xs:documentation>
365
+ </xs:annotation>
366
+ </xs:element>
367
+ </xs:sequence>
368
+ <xs:attribute name="register" type="xs:string" use="required">
369
+ <xs:annotation>
370
+ <xs:documentation>Name of the targeted registry (must match an index/register name).</xs:documentation>
371
+ </xs:annotation>
372
+ </xs:attribute>
373
+ </xs:complexType>
374
+ </xs:element>
375
+ </xs:sequence>
376
+ </xs:complexType>
377
+
378
+ <xs:complexType name="IndexType">
379
+ <xs:annotation>
380
+ <xs:documentation>
381
+ Index of every registry entry, for a fast lookup without walking the
382
+ source files.
383
+ </xs:documentation>
384
+ </xs:annotation>
385
+ <xs:sequence>
386
+ <xs:element name="register" maxOccurs="unbounded">
387
+ <xs:complexType>
388
+ <xs:sequence>
389
+ <xs:element name="item" type="xs:string" maxOccurs="unbounded">
390
+ <xs:annotation>
391
+ <xs:documentation>Entry id within the registry (token id or theme id).</xs:documentation>
392
+ </xs:annotation>
393
+ </xs:element>
394
+ </xs:sequence>
395
+ <xs:attribute name="name" type="xs:string" use="required">
396
+ <xs:annotation>
397
+ <xs:documentation>Name of the indexed registry (tokens, themes).</xs:documentation>
398
+ </xs:annotation>
399
+ </xs:attribute>
400
+ </xs:complexType>
401
+ </xs:element>
402
+ </xs:sequence>
403
+ </xs:complexType>
404
+
405
+ <xs:complexType name="TokensItemsType">
406
+ <xs:annotation>
407
+ <xs:documentation>Collection of token definitions.</xs:documentation>
408
+ </xs:annotation>
409
+ <xs:sequence>
410
+ <xs:element name="token" type="TokenType" maxOccurs="unbounded"/>
411
+ </xs:sequence>
412
+ </xs:complexType>
413
+
414
+ <xs:complexType name="TokenType">
415
+ <xs:annotation>
416
+ <xs:documentation>
417
+ A design token: an atomic value of the visual language.
418
+ Kinds: scale (numeric scale), map (named values without a scale),
419
+ font (families with platform variants), color (palette with shades),
420
+ shadow (drop shadow), animation (duration and easing).
421
+ </xs:documentation>
422
+ </xs:annotation>
423
+ <xs:sequence>
424
+ <xs:element name="values" type="TokenValuesType"/>
425
+ </xs:sequence>
426
+ <xs:attribute name="id" type="xs:string" use="required">
427
+ <xs:annotation>
428
+ <xs:documentation>Unique token id (e.g. "spacing", "color"). Uniqueness enforced by constraint.</xs:documentation>
429
+ </xs:annotation>
430
+ </xs:attribute>
431
+ <xs:attribute name="kind" type="TokenKindType" use="required">
432
+ <xs:annotation>
433
+ <xs:documentation>Token classification.</xs:documentation>
434
+ </xs:annotation>
435
+ </xs:attribute>
436
+ <xs:attribute name="unit" type="xs:string" use="optional">
437
+ <xs:annotation>
438
+ <xs:documentation>Unit of measure (e.g. "px", "ms").</xs:documentation>
439
+ </xs:annotation>
440
+ </xs:attribute>
441
+ <xs:attribute name="base" type="xs:string" use="optional">
442
+ <xs:annotation>
443
+ <xs:documentation>Base value for computed scales.</xs:documentation>
444
+ </xs:annotation>
445
+ </xs:attribute>
446
+ <xs:attribute name="formula" type="xs:string" use="optional">
447
+ <xs:annotation>
448
+ <xs:documentation>Formula used to compute the scale values.</xs:documentation>
449
+ </xs:annotation>
450
+ </xs:attribute>
451
+ <xs:attribute name="mode" type="xs:string" use="optional">
452
+ <xs:annotation>
453
+ <xs:documentation>Mode for breakpoints (e.g. "min-width").</xs:documentation>
454
+ </xs:annotation>
455
+ </xs:attribute>
456
+ </xs:complexType>
457
+
458
+ <xs:simpleType name="TokenKindType">
459
+ <xs:annotation>
460
+ <xs:documentation>The six token natures recognized by the pipeline.</xs:documentation>
461
+ </xs:annotation>
462
+ <xs:restriction base="xs:string">
463
+ <xs:enumeration value="scale"/>
464
+ <xs:enumeration value="map"/>
465
+ <xs:enumeration value="font"/>
466
+ <xs:enumeration value="color"/>
467
+ <xs:enumeration value="shadow"/>
468
+ <xs:enumeration value="animation"/>
469
+ </xs:restriction>
470
+ </xs:simpleType>
471
+
472
+ <xs:complexType name="TokenValuesType">
473
+ <xs:sequence>
474
+ <xs:element name="value" type="TokenValueType" maxOccurs="unbounded"/>
475
+ </xs:sequence>
476
+ </xs:complexType>
477
+
478
+ <xs:complexType name="TokenValueType" mixed="true">
479
+ <xs:annotation>
480
+ <xs:documentation>
481
+ A token value. Shapes observed in the registries (the XSD accepts them
482
+ all through mixed content; mutual exclusivity is enforced by the
483
+ generator):
484
+ - scalar: plain text content (e.g. "0") or a lone `value` attribute
485
+ (e.g. spacing, opacity, color);
486
+ - cross-platform: `native`/`web` children (e.g. font);
487
+ - structured variant: `native` holding `v`, damping/stiffness/mass
488
+ (e.g. easing);
489
+ - shadow: `color`/`offset`/`opacity`/`radius`/`elevation` children.
490
+ </xs:documentation>
491
+ </xs:annotation>
492
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
493
+ <xs:element name="native" type="NativeVariantType">
494
+ <xs:annotation>
495
+ <xs:documentation>React Native variant.</xs:documentation>
496
+ </xs:annotation>
497
+ </xs:element>
498
+ <xs:element name="web" type="xs:string">
499
+ <xs:annotation>
500
+ <xs:documentation>Web variant.</xs:documentation>
501
+ </xs:annotation>
502
+ </xs:element>
503
+ <xs:element name="color" type="ColorRefType">
504
+ <xs:annotation>
505
+ <xs:documentation>Colour of a shadow, by reference.</xs:documentation>
506
+ </xs:annotation>
507
+ </xs:element>
508
+ <xs:element name="offset" type="OffsetType">
509
+ <xs:annotation>
510
+ <xs:documentation>Offset of a shadow.</xs:documentation>
511
+ </xs:annotation>
512
+ </xs:element>
513
+ <xs:element name="opacity" type="xs:string"/>
514
+ <xs:element name="radius" type="xs:string"/>
515
+ <xs:element name="elevation" type="xs:string"/>
516
+ </xs:choice>
517
+ <xs:attribute name="id" type="xs:string" use="required">
518
+ <xs:annotation>
519
+ <xs:documentation>Value id within the token.</xs:documentation>
520
+ </xs:annotation>
521
+ </xs:attribute>
522
+ <xs:attribute name="value" type="xs:string" use="optional">
523
+ <xs:annotation>
524
+ <xs:documentation>Direct scalar value (attribute form, alternative to text content).</xs:documentation>
525
+ </xs:annotation>
526
+ </xs:attribute>
527
+ </xs:complexType>
528
+
529
+ <xs:complexType name="NativeVariantType" mixed="true">
530
+ <xs:annotation>
531
+ <xs:documentation>
532
+ React Native platform variant. Either a plain string (e.g. "system",
533
+ "monospace") or a list of named values (e.g. '&lt;v&gt;' for a cubic
534
+ easing, or damping/stiffness/mass for a spring).
535
+ </xs:documentation>
536
+ </xs:annotation>
537
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
538
+ <xs:element name="v" type="xs:string">
539
+ <xs:annotation>
540
+ <xs:documentation>Numeric component of a variant (e.g. easing).</xs:documentation>
541
+ </xs:annotation>
542
+ </xs:element>
543
+ <xs:element name="damping" type="xs:string"/>
544
+ <xs:element name="stiffness" type="xs:string"/>
545
+ <xs:element name="mass" type="xs:string"/>
546
+ </xs:choice>
547
+ </xs:complexType>
548
+
549
+ <xs:complexType name="ColorRefType">
550
+ <xs:annotation>
551
+ <xs:documentation>Reference to a colour token value (format "$ref.&lt;register&gt;.&lt;id&gt;.&lt;path&gt;").</xs:documentation>
552
+ </xs:annotation>
553
+ <xs:sequence>
554
+ <xs:element name="ref" type="xs:string"/>
555
+ </xs:sequence>
556
+ </xs:complexType>
557
+
558
+ <xs:complexType name="OffsetType">
559
+ <xs:annotation>
560
+ <xs:documentation>Shadow offset (x, y).</xs:documentation>
561
+ </xs:annotation>
562
+ <xs:sequence>
563
+ <xs:element name="x" type="xs:string"/>
564
+ <xs:element name="y" type="xs:string"/>
565
+ </xs:sequence>
566
+ </xs:complexType>
567
+
568
+ <xs:complexType name="ThemesItemsType">
569
+ <xs:annotation>
570
+ <xs:documentation>Collection of theme definitions.</xs:documentation>
571
+ </xs:annotation>
572
+ <xs:sequence>
573
+ <xs:element name="theme" type="ThemeType" maxOccurs="unbounded"/>
574
+ </xs:sequence>
575
+ </xs:complexType>
576
+
577
+ <xs:complexType name="ThemeType">
578
+ <xs:annotation>
579
+ <xs:documentation>
580
+ A theme: maps semantic roles to colour token references, for a coherent
581
+ application across modes.
582
+ </xs:documentation>
583
+ </xs:annotation>
584
+ <xs:sequence>
585
+ <xs:element name="roleMap" type="RoleMapType"/>
586
+ </xs:sequence>
587
+ <xs:attribute name="id" type="xs:string" use="required">
588
+ <xs:annotation>
589
+ <xs:documentation>Theme id (e.g. "light", "dark"). Uniqueness enforced by constraint.</xs:documentation>
590
+ </xs:annotation>
591
+ </xs:attribute>
592
+ <xs:attribute name="mode" type="xs:string" use="required">
593
+ <xs:annotation>
594
+ <xs:documentation>Theme mode (e.g. "light", "dark").</xs:documentation>
595
+ </xs:annotation>
596
+ </xs:attribute>
597
+ </xs:complexType>
598
+
599
+ <xs:complexType name="RoleMapType">
600
+ <xs:annotation>
601
+ <xs:documentation>Maps semantic roles (the gluestack/nativewind CSS variable names) to a literal colour value or a token reference.</xs:documentation>
602
+ </xs:annotation>
603
+ <xs:sequence>
604
+ <xs:element name="role" maxOccurs="unbounded">
605
+ <xs:complexType>
606
+ <xs:choice>
607
+ <xs:element name="value" type="xs:string">
608
+ <xs:annotation>
609
+ <xs:documentation>
610
+ Literal value in the format expected by gluestack-ui/nativewind
611
+ (RGB triplet without the "rgb()" function, e.g. "23 23 23").
612
+ </xs:documentation>
613
+ </xs:annotation>
614
+ </xs:element>
615
+ <xs:element name="ref" type="xs:string">
616
+ <xs:annotation>
617
+ <xs:documentation>
618
+ Reference to a token value (format
619
+ "$ref.&lt;register&gt;.&lt;id&gt;.&lt;path&gt;").
620
+ </xs:documentation>
621
+ </xs:annotation>
622
+ </xs:element>
623
+ </xs:choice>
624
+ <xs:attribute name="id" type="xs:string" use="required">
625
+ <xs:annotation>
626
+ <xs:documentation>Semantic role id = gluestack CSS variable name without the leading "--" (e.g. "background", "primary-foreground").</xs:documentation>
627
+ </xs:annotation>
628
+ </xs:attribute>
629
+ </xs:complexType>
630
+ </xs:element>
631
+ </xs:sequence>
632
+ </xs:complexType>
633
+
634
+ </xs:schema>
635
+
636
+
637
+
638
+
639
+