pixelize-native-library 1.0.6

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 (713) hide show
  1. package/README.md +34 -0
  2. package/lib/module/core/MODULE.md +94 -0
  3. package/lib/module/core/a11y/MODULE.md +22 -0
  4. package/lib/module/core/a11y/index.js +26 -0
  5. package/lib/module/core/a11y/index.js.map +1 -0
  6. package/lib/module/core/icon/MODULE.md +35 -0
  7. package/lib/module/core/icon/index.js +92 -0
  8. package/lib/module/core/icon/index.js.map +1 -0
  9. package/lib/module/core/style/index.js +4 -0
  10. package/lib/module/core/style/index.js.map +1 -0
  11. package/lib/module/core/style/layoutStyle.js +4 -0
  12. package/lib/module/core/style/layoutStyle.js.map +1 -0
  13. package/lib/module/core/style/variants.js +115 -0
  14. package/lib/module/core/style/variants.js.map +1 -0
  15. package/lib/module/index.js +13 -0
  16. package/lib/module/index.js.map +1 -0
  17. package/lib/module/modules/accordion/Accordion.js +194 -0
  18. package/lib/module/modules/accordion/Accordion.js.map +1 -0
  19. package/lib/module/modules/accordion/Accordion.variants.js +143 -0
  20. package/lib/module/modules/accordion/Accordion.variants.js.map +1 -0
  21. package/lib/module/modules/accordion/MODULE.md +97 -0
  22. package/lib/module/modules/accordion/index.js +10 -0
  23. package/lib/module/modules/accordion/index.js.map +1 -0
  24. package/lib/module/modules/alert-dialog/AlertDialog.js +62 -0
  25. package/lib/module/modules/alert-dialog/AlertDialog.js.map +1 -0
  26. package/lib/module/modules/alert-dialog/AlertDialog.variants.js +44 -0
  27. package/lib/module/modules/alert-dialog/AlertDialog.variants.js.map +1 -0
  28. package/lib/module/modules/alert-dialog/MODULE.md +81 -0
  29. package/lib/module/modules/alert-dialog/index.js +10 -0
  30. package/lib/module/modules/alert-dialog/index.js.map +1 -0
  31. package/lib/module/modules/avatar/Avatar.js +57 -0
  32. package/lib/module/modules/avatar/Avatar.js.map +1 -0
  33. package/lib/module/modules/avatar/Avatar.variants.js +127 -0
  34. package/lib/module/modules/avatar/Avatar.variants.js.map +1 -0
  35. package/lib/module/modules/avatar/MODULE.md +76 -0
  36. package/lib/module/modules/avatar/index.js +12 -0
  37. package/lib/module/modules/avatar/index.js.map +1 -0
  38. package/lib/module/modules/badge/Badge.js +56 -0
  39. package/lib/module/modules/badge/Badge.js.map +1 -0
  40. package/lib/module/modules/badge/Badge.variants.js +124 -0
  41. package/lib/module/modules/badge/Badge.variants.js.map +1 -0
  42. package/lib/module/modules/badge/MODULE.md +82 -0
  43. package/lib/module/modules/badge/index.js +12 -0
  44. package/lib/module/modules/badge/index.js.map +1 -0
  45. package/lib/module/modules/bottom-nav/BottomNav.js +257 -0
  46. package/lib/module/modules/bottom-nav/BottomNav.js.map +1 -0
  47. package/lib/module/modules/bottom-nav/BottomNav.search.js +153 -0
  48. package/lib/module/modules/bottom-nav/BottomNav.search.js.map +1 -0
  49. package/lib/module/modules/bottom-nav/BottomNav.variants.js +164 -0
  50. package/lib/module/modules/bottom-nav/BottomNav.variants.js.map +1 -0
  51. package/lib/module/modules/bottom-nav/BottomNavOverflowSheet.js +297 -0
  52. package/lib/module/modules/bottom-nav/BottomNavOverflowSheet.js.map +1 -0
  53. package/lib/module/modules/bottom-nav/MODULE.md +198 -0
  54. package/lib/module/modules/bottom-nav/index.js +16 -0
  55. package/lib/module/modules/bottom-nav/index.js.map +1 -0
  56. package/lib/module/modules/button/Button.js +173 -0
  57. package/lib/module/modules/button/Button.js.map +1 -0
  58. package/lib/module/modules/button/Button.variants.js +173 -0
  59. package/lib/module/modules/button/Button.variants.js.map +1 -0
  60. package/lib/module/modules/button/MODULE.md +87 -0
  61. package/lib/module/modules/button/index.js +12 -0
  62. package/lib/module/modules/button/index.js.map +1 -0
  63. package/lib/module/modules/button-group/ButtonGroup.js +106 -0
  64. package/lib/module/modules/button-group/ButtonGroup.js.map +1 -0
  65. package/lib/module/modules/button-group/ButtonGroup.variants.js +220 -0
  66. package/lib/module/modules/button-group/ButtonGroup.variants.js.map +1 -0
  67. package/lib/module/modules/button-group/MODULE.md +129 -0
  68. package/lib/module/modules/button-group/index.js +11 -0
  69. package/lib/module/modules/button-group/index.js.map +1 -0
  70. package/lib/module/modules/card/Card.js +39 -0
  71. package/lib/module/modules/card/Card.js.map +1 -0
  72. package/lib/module/modules/card/Card.variants.js +75 -0
  73. package/lib/module/modules/card/Card.variants.js.map +1 -0
  74. package/lib/module/modules/card/MODULE.md +81 -0
  75. package/lib/module/modules/card/index.js +10 -0
  76. package/lib/module/modules/card/index.js.map +1 -0
  77. package/lib/module/modules/checkbox/Checkbox.js +115 -0
  78. package/lib/module/modules/checkbox/Checkbox.js.map +1 -0
  79. package/lib/module/modules/checkbox/Checkbox.variants.js +122 -0
  80. package/lib/module/modules/checkbox/Checkbox.variants.js.map +1 -0
  81. package/lib/module/modules/checkbox/MODULE.md +76 -0
  82. package/lib/module/modules/checkbox/index.js +11 -0
  83. package/lib/module/modules/checkbox/index.js.map +1 -0
  84. package/lib/module/modules/divider/Divider.js +35 -0
  85. package/lib/module/modules/divider/Divider.js.map +1 -0
  86. package/lib/module/modules/divider/Divider.variants.js +51 -0
  87. package/lib/module/modules/divider/Divider.variants.js.map +1 -0
  88. package/lib/module/modules/divider/MODULE.md +61 -0
  89. package/lib/module/modules/divider/index.js +10 -0
  90. package/lib/module/modules/divider/index.js.map +1 -0
  91. package/lib/module/modules/drawer/Drawer.js +171 -0
  92. package/lib/module/modules/drawer/Drawer.js.map +1 -0
  93. package/lib/module/modules/drawer/Drawer.variants.js +118 -0
  94. package/lib/module/modules/drawer/Drawer.variants.js.map +1 -0
  95. package/lib/module/modules/drawer/MODULE.md +161 -0
  96. package/lib/module/modules/drawer/index.js +10 -0
  97. package/lib/module/modules/drawer/index.js.map +1 -0
  98. package/lib/module/modules/empty-state/EmptyState.js +79 -0
  99. package/lib/module/modules/empty-state/EmptyState.js.map +1 -0
  100. package/lib/module/modules/empty-state/EmptyState.variants.js +54 -0
  101. package/lib/module/modules/empty-state/EmptyState.variants.js.map +1 -0
  102. package/lib/module/modules/empty-state/MODULE.md +78 -0
  103. package/lib/module/modules/empty-state/index.js +13 -0
  104. package/lib/module/modules/empty-state/index.js.map +1 -0
  105. package/lib/module/modules/file-upload/FileUpload.js +132 -0
  106. package/lib/module/modules/file-upload/FileUpload.js.map +1 -0
  107. package/lib/module/modules/file-upload/FileUpload.variants.js +179 -0
  108. package/lib/module/modules/file-upload/FileUpload.variants.js.map +1 -0
  109. package/lib/module/modules/file-upload/MODULE.md +130 -0
  110. package/lib/module/modules/file-upload/index.js +10 -0
  111. package/lib/module/modules/file-upload/index.js.map +1 -0
  112. package/lib/module/modules/filter-sheet/FilterChip.js +79 -0
  113. package/lib/module/modules/filter-sheet/FilterChip.js.map +1 -0
  114. package/lib/module/modules/filter-sheet/FilterSheet.js +98 -0
  115. package/lib/module/modules/filter-sheet/FilterSheet.js.map +1 -0
  116. package/lib/module/modules/filter-sheet/FilterSheet.variants.js +156 -0
  117. package/lib/module/modules/filter-sheet/FilterSheet.variants.js.map +1 -0
  118. package/lib/module/modules/filter-sheet/FilterSheetBody.js +175 -0
  119. package/lib/module/modules/filter-sheet/FilterSheetBody.js.map +1 -0
  120. package/lib/module/modules/filter-sheet/MODULE.md +115 -0
  121. package/lib/module/modules/filter-sheet/filterSheet.helpers.js +90 -0
  122. package/lib/module/modules/filter-sheet/filterSheet.helpers.js.map +1 -0
  123. package/lib/module/modules/filter-sheet/index.js +14 -0
  124. package/lib/module/modules/filter-sheet/index.js.map +1 -0
  125. package/lib/module/modules/input/Input.js +132 -0
  126. package/lib/module/modules/input/Input.js.map +1 -0
  127. package/lib/module/modules/input/Input.variants.js +122 -0
  128. package/lib/module/modules/input/Input.variants.js.map +1 -0
  129. package/lib/module/modules/input/MODULE.md +97 -0
  130. package/lib/module/modules/input/index.js +13 -0
  131. package/lib/module/modules/input/index.js.map +1 -0
  132. package/lib/module/modules/menu/MODULE.md +103 -0
  133. package/lib/module/modules/menu/Menu.js +128 -0
  134. package/lib/module/modules/menu/Menu.js.map +1 -0
  135. package/lib/module/modules/menu/Menu.variants.js +75 -0
  136. package/lib/module/modules/menu/Menu.variants.js.map +1 -0
  137. package/lib/module/modules/menu/index.js +12 -0
  138. package/lib/module/modules/menu/index.js.map +1 -0
  139. package/lib/module/modules/modal/MODULE.md +138 -0
  140. package/lib/module/modules/modal/Modal.js +101 -0
  141. package/lib/module/modules/modal/Modal.js.map +1 -0
  142. package/lib/module/modules/modal/Modal.variants.js +92 -0
  143. package/lib/module/modules/modal/Modal.variants.js.map +1 -0
  144. package/lib/module/modules/modal/ModalPortalContext.js +25 -0
  145. package/lib/module/modules/modal/ModalPortalContext.js.map +1 -0
  146. package/lib/module/modules/modal/ModalPortalProvider.js +22 -0
  147. package/lib/module/modules/modal/ModalPortalProvider.js.map +1 -0
  148. package/lib/module/modules/modal/index.js +16 -0
  149. package/lib/module/modules/modal/index.js.map +1 -0
  150. package/lib/module/modules/modal/renderWebPortal.js +18 -0
  151. package/lib/module/modules/modal/renderWebPortal.js.map +1 -0
  152. package/lib/module/modules/modal/renderWebPortal.web.js +24 -0
  153. package/lib/module/modules/modal/renderWebPortal.web.js.map +1 -0
  154. package/lib/module/modules/multi-select/MODULE.md +100 -0
  155. package/lib/module/modules/multi-select/MultiSelect.js +204 -0
  156. package/lib/module/modules/multi-select/MultiSelect.js.map +1 -0
  157. package/lib/module/modules/multi-select/MultiSelect.variants.js +195 -0
  158. package/lib/module/modules/multi-select/MultiSelect.variants.js.map +1 -0
  159. package/lib/module/modules/multi-select/index.js +11 -0
  160. package/lib/module/modules/multi-select/index.js.map +1 -0
  161. package/lib/module/modules/number-input/MODULE.md +108 -0
  162. package/lib/module/modules/number-input/NumberInput.js +253 -0
  163. package/lib/module/modules/number-input/NumberInput.js.map +1 -0
  164. package/lib/module/modules/number-input/NumberInput.variants.js +200 -0
  165. package/lib/module/modules/number-input/NumberInput.variants.js.map +1 -0
  166. package/lib/module/modules/number-input/index.js +12 -0
  167. package/lib/module/modules/number-input/index.js.map +1 -0
  168. package/lib/module/modules/pin-input/MODULE.md +134 -0
  169. package/lib/module/modules/pin-input/PinInput.js +158 -0
  170. package/lib/module/modules/pin-input/PinInput.js.map +1 -0
  171. package/lib/module/modules/pin-input/PinInput.variants.js +183 -0
  172. package/lib/module/modules/pin-input/PinInput.variants.js.map +1 -0
  173. package/lib/module/modules/pin-input/index.js +11 -0
  174. package/lib/module/modules/pin-input/index.js.map +1 -0
  175. package/lib/module/modules/progress-bar/MODULE.md +101 -0
  176. package/lib/module/modules/progress-bar/ProgressBar.js +102 -0
  177. package/lib/module/modules/progress-bar/ProgressBar.js.map +1 -0
  178. package/lib/module/modules/progress-bar/ProgressBar.variants.js +151 -0
  179. package/lib/module/modules/progress-bar/ProgressBar.variants.js.map +1 -0
  180. package/lib/module/modules/progress-bar/index.js +12 -0
  181. package/lib/module/modules/progress-bar/index.js.map +1 -0
  182. package/lib/module/modules/radio-group/MODULE.md +75 -0
  183. package/lib/module/modules/radio-group/RadioGroup.js +87 -0
  184. package/lib/module/modules/radio-group/RadioGroup.js.map +1 -0
  185. package/lib/module/modules/radio-group/RadioGroup.variants.js +163 -0
  186. package/lib/module/modules/radio-group/RadioGroup.variants.js.map +1 -0
  187. package/lib/module/modules/radio-group/index.js +11 -0
  188. package/lib/module/modules/radio-group/index.js.map +1 -0
  189. package/lib/module/modules/reorder/MODULE.md +131 -0
  190. package/lib/module/modules/reorder/Reorder.js +291 -0
  191. package/lib/module/modules/reorder/Reorder.js.map +1 -0
  192. package/lib/module/modules/reorder/Reorder.variants.js +172 -0
  193. package/lib/module/modules/reorder/Reorder.variants.js.map +1 -0
  194. package/lib/module/modules/reorder/index.js +11 -0
  195. package/lib/module/modules/reorder/index.js.map +1 -0
  196. package/lib/module/modules/select/MODULE.md +91 -0
  197. package/lib/module/modules/select/Select.js +178 -0
  198. package/lib/module/modules/select/Select.js.map +1 -0
  199. package/lib/module/modules/select/Select.variants.js +146 -0
  200. package/lib/module/modules/select/Select.variants.js.map +1 -0
  201. package/lib/module/modules/select/index.js +10 -0
  202. package/lib/module/modules/select/index.js.map +1 -0
  203. package/lib/module/modules/skeleton/MODULE.md +87 -0
  204. package/lib/module/modules/skeleton/Skeleton.js +78 -0
  205. package/lib/module/modules/skeleton/Skeleton.js.map +1 -0
  206. package/lib/module/modules/skeleton/Skeleton.variants.js +145 -0
  207. package/lib/module/modules/skeleton/Skeleton.variants.js.map +1 -0
  208. package/lib/module/modules/skeleton/index.js +10 -0
  209. package/lib/module/modules/skeleton/index.js.map +1 -0
  210. package/lib/module/modules/slider/MODULE.md +95 -0
  211. package/lib/module/modules/slider/Slider.js +183 -0
  212. package/lib/module/modules/slider/Slider.js.map +1 -0
  213. package/lib/module/modules/slider/Slider.variants.js +258 -0
  214. package/lib/module/modules/slider/Slider.variants.js.map +1 -0
  215. package/lib/module/modules/slider/index.js +10 -0
  216. package/lib/module/modules/slider/index.js.map +1 -0
  217. package/lib/module/modules/spinner/MODULE.md +97 -0
  218. package/lib/module/modules/spinner/Spinner.js +58 -0
  219. package/lib/module/modules/spinner/Spinner.js.map +1 -0
  220. package/lib/module/modules/spinner/Spinner.variants.js +131 -0
  221. package/lib/module/modules/spinner/Spinner.variants.js.map +1 -0
  222. package/lib/module/modules/spinner/index.js +11 -0
  223. package/lib/module/modules/spinner/index.js.map +1 -0
  224. package/lib/module/modules/stepper/MODULE.md +88 -0
  225. package/lib/module/modules/stepper/Stepper.js +100 -0
  226. package/lib/module/modules/stepper/Stepper.js.map +1 -0
  227. package/lib/module/modules/stepper/Stepper.variants.js +146 -0
  228. package/lib/module/modules/stepper/Stepper.variants.js.map +1 -0
  229. package/lib/module/modules/stepper/index.js +10 -0
  230. package/lib/module/modules/stepper/index.js.map +1 -0
  231. package/lib/module/modules/switch/MODULE.md +65 -0
  232. package/lib/module/modules/switch/Switch.js +53 -0
  233. package/lib/module/modules/switch/Switch.js.map +1 -0
  234. package/lib/module/modules/switch/Switch.variants.js +61 -0
  235. package/lib/module/modules/switch/Switch.variants.js.map +1 -0
  236. package/lib/module/modules/switch/index.js +10 -0
  237. package/lib/module/modules/switch/index.js.map +1 -0
  238. package/lib/module/modules/tabs/MODULE.md +80 -0
  239. package/lib/module/modules/tabs/Tabs.js +127 -0
  240. package/lib/module/modules/tabs/Tabs.js.map +1 -0
  241. package/lib/module/modules/tabs/Tabs.variants.js +135 -0
  242. package/lib/module/modules/tabs/Tabs.variants.js.map +1 -0
  243. package/lib/module/modules/tabs/index.js +12 -0
  244. package/lib/module/modules/tabs/index.js.map +1 -0
  245. package/lib/module/modules/textarea/MODULE.md +91 -0
  246. package/lib/module/modules/textarea/Textarea.js +136 -0
  247. package/lib/module/modules/textarea/Textarea.js.map +1 -0
  248. package/lib/module/modules/textarea/Textarea.variants.js +113 -0
  249. package/lib/module/modules/textarea/Textarea.variants.js.map +1 -0
  250. package/lib/module/modules/textarea/index.js +10 -0
  251. package/lib/module/modules/textarea/index.js.map +1 -0
  252. package/lib/module/modules/timeline/MODULE.md +95 -0
  253. package/lib/module/modules/timeline/Timeline.js +92 -0
  254. package/lib/module/modules/timeline/Timeline.js.map +1 -0
  255. package/lib/module/modules/timeline/Timeline.variants.js +146 -0
  256. package/lib/module/modules/timeline/Timeline.variants.js.map +1 -0
  257. package/lib/module/modules/timeline/index.js +12 -0
  258. package/lib/module/modules/timeline/index.js.map +1 -0
  259. package/lib/module/modules/toast/MODULE.md +104 -0
  260. package/lib/module/modules/toast/Toast.js +178 -0
  261. package/lib/module/modules/toast/Toast.js.map +1 -0
  262. package/lib/module/modules/toast/Toast.variants.js +120 -0
  263. package/lib/module/modules/toast/Toast.variants.js.map +1 -0
  264. package/lib/module/modules/toast/index.js +13 -0
  265. package/lib/module/modules/toast/index.js.map +1 -0
  266. package/lib/module/modules/tooltip/MODULE.md +86 -0
  267. package/lib/module/modules/tooltip/Tooltip.js +115 -0
  268. package/lib/module/modules/tooltip/Tooltip.js.map +1 -0
  269. package/lib/module/modules/tooltip/Tooltip.variants.js +75 -0
  270. package/lib/module/modules/tooltip/Tooltip.variants.js.map +1 -0
  271. package/lib/module/modules/tooltip/index.js +10 -0
  272. package/lib/module/modules/tooltip/index.js.map +1 -0
  273. package/lib/module/package.json +1 -0
  274. package/lib/module/theme/MODULE.md +87 -0
  275. package/lib/module/theme/index.js +15 -0
  276. package/lib/module/theme/index.js.map +1 -0
  277. package/lib/module/theme/platform/MODULE.md +102 -0
  278. package/lib/module/theme/platform/colorScheme.native.js +24 -0
  279. package/lib/module/theme/platform/colorScheme.native.js.map +1 -0
  280. package/lib/module/theme/platform/elevation.native.js +75 -0
  281. package/lib/module/theme/platform/elevation.native.js.map +1 -0
  282. package/lib/module/theme/platform/fonts.native.js +58 -0
  283. package/lib/module/theme/platform/fonts.native.js.map +1 -0
  284. package/lib/module/theme/platform/index.js +14 -0
  285. package/lib/module/theme/platform/index.js.map +1 -0
  286. package/lib/module/theme/platform/units.native.js +18 -0
  287. package/lib/module/theme/platform/units.native.js.map +1 -0
  288. package/lib/module/theme/provider/PixelizeProvider.js +149 -0
  289. package/lib/module/theme/provider/PixelizeProvider.js.map +1 -0
  290. package/lib/module/theme/provider/colorModeStorage.js +63 -0
  291. package/lib/module/theme/provider/colorModeStorage.js.map +1 -0
  292. package/lib/module/theme/provider/index.js +8 -0
  293. package/lib/module/theme/provider/index.js.map +1 -0
  294. package/lib/module/theme/provider/useTheme.js +13 -0
  295. package/lib/module/theme/provider/useTheme.js.map +1 -0
  296. package/lib/module/theme/provider/useThemeColors.js +13 -0
  297. package/lib/module/theme/provider/useThemeColors.js.map +1 -0
  298. package/lib/module/theme/provider/useThemeMode.js +13 -0
  299. package/lib/module/theme/provider/useThemeMode.js.map +1 -0
  300. package/lib/module/theme/tokens/MODULE.md +102 -0
  301. package/lib/module/theme/tokens/brands/emerald/palette.dark.js +9 -0
  302. package/lib/module/theme/tokens/brands/emerald/palette.dark.js.map +1 -0
  303. package/lib/module/theme/tokens/brands/emerald/palette.light.js +125 -0
  304. package/lib/module/theme/tokens/brands/emerald/palette.light.js.map +1 -0
  305. package/lib/module/theme/tokens/brands/index.js +91 -0
  306. package/lib/module/theme/tokens/brands/index.js.map +1 -0
  307. package/lib/module/theme/tokens/brands/lavender/palette.dark.js +9 -0
  308. package/lib/module/theme/tokens/brands/lavender/palette.dark.js.map +1 -0
  309. package/lib/module/theme/tokens/brands/lavender/palette.light.js +376 -0
  310. package/lib/module/theme/tokens/brands/lavender/palette.light.js.map +1 -0
  311. package/lib/module/theme/tokens/brands/meadow/palette.dark.js +9 -0
  312. package/lib/module/theme/tokens/brands/meadow/palette.dark.js.map +1 -0
  313. package/lib/module/theme/tokens/brands/meadow/palette.light.js +126 -0
  314. package/lib/module/theme/tokens/brands/meadow/palette.light.js.map +1 -0
  315. package/lib/module/theme/tokens/brands/radiant/palette.dark.js +9 -0
  316. package/lib/module/theme/tokens/brands/radiant/palette.dark.js.map +1 -0
  317. package/lib/module/theme/tokens/brands/radiant/palette.light.js +125 -0
  318. package/lib/module/theme/tokens/brands/radiant/palette.light.js.map +1 -0
  319. package/lib/module/theme/tokens/brands/rosewood/palette.dark.js +9 -0
  320. package/lib/module/theme/tokens/brands/rosewood/palette.dark.js.map +1 -0
  321. package/lib/module/theme/tokens/brands/rosewood/palette.light.js +125 -0
  322. package/lib/module/theme/tokens/brands/rosewood/palette.light.js.map +1 -0
  323. package/lib/module/theme/tokens/brands/skyline/palette.dark.js +9 -0
  324. package/lib/module/theme/tokens/brands/skyline/palette.dark.js.map +1 -0
  325. package/lib/module/theme/tokens/brands/skyline/palette.light.js +126 -0
  326. package/lib/module/theme/tokens/brands/skyline/palette.light.js.map +1 -0
  327. package/lib/module/theme/tokens/brands/slate/palette.dark.js +11 -0
  328. package/lib/module/theme/tokens/brands/slate/palette.dark.js.map +1 -0
  329. package/lib/module/theme/tokens/brands/slate/palette.light.js +129 -0
  330. package/lib/module/theme/tokens/brands/slate/palette.light.js.map +1 -0
  331. package/lib/module/theme/tokens/brands/storefront/palette.dark.js +7 -0
  332. package/lib/module/theme/tokens/brands/storefront/palette.dark.js.map +1 -0
  333. package/lib/module/theme/tokens/brands/storefront/palette.light.js +127 -0
  334. package/lib/module/theme/tokens/brands/storefront/palette.light.js.map +1 -0
  335. package/lib/module/theme/tokens/brands/zinc/palette.dark.js +222 -0
  336. package/lib/module/theme/tokens/brands/zinc/palette.dark.js.map +1 -0
  337. package/lib/module/theme/tokens/brands/zinc/palette.light.js +393 -0
  338. package/lib/module/theme/tokens/brands/zinc/palette.light.js.map +1 -0
  339. package/lib/module/theme/tokens/builders/accentText.js +66 -0
  340. package/lib/module/theme/tokens/builders/accentText.js.map +1 -0
  341. package/lib/module/theme/tokens/builders/buildBrandTokens.js +38 -0
  342. package/lib/module/theme/tokens/builders/buildBrandTokens.js.map +1 -0
  343. package/lib/module/theme/tokens/builders/buildDarkPalette.js +300 -0
  344. package/lib/module/theme/tokens/builders/buildDarkPalette.js.map +1 -0
  345. package/lib/module/theme/tokens/builders/color.js +187 -0
  346. package/lib/module/theme/tokens/builders/color.js.map +1 -0
  347. package/lib/module/theme/tokens/index.js +27 -0
  348. package/lib/module/theme/tokens/index.js.map +1 -0
  349. package/lib/module/theme/tokens/primitives/borderWidths.js +16 -0
  350. package/lib/module/theme/tokens/primitives/borderWidths.js.map +1 -0
  351. package/lib/module/theme/tokens/primitives/breakpoints.js +18 -0
  352. package/lib/module/theme/tokens/primitives/breakpoints.js.map +1 -0
  353. package/lib/module/theme/tokens/primitives/elevation.js +95 -0
  354. package/lib/module/theme/tokens/primitives/elevation.js.map +1 -0
  355. package/lib/module/theme/tokens/primitives/fontSizes.js +22 -0
  356. package/lib/module/theme/tokens/primitives/fontSizes.js.map +1 -0
  357. package/lib/module/theme/tokens/primitives/fontWeights.js +23 -0
  358. package/lib/module/theme/tokens/primitives/fontWeights.js.map +1 -0
  359. package/lib/module/theme/tokens/primitives/index.js +14 -0
  360. package/lib/module/theme/tokens/primitives/index.js.map +1 -0
  361. package/lib/module/theme/tokens/primitives/letterSpacings.js +18 -0
  362. package/lib/module/theme/tokens/primitives/letterSpacings.js.map +1 -0
  363. package/lib/module/theme/tokens/primitives/lineHeights.js +21 -0
  364. package/lib/module/theme/tokens/primitives/lineHeights.js.map +1 -0
  365. package/lib/module/theme/tokens/primitives/radii.js +21 -0
  366. package/lib/module/theme/tokens/primitives/radii.js.map +1 -0
  367. package/lib/module/theme/tokens/primitives/sizes.js +34 -0
  368. package/lib/module/theme/tokens/primitives/sizes.js.map +1 -0
  369. package/lib/module/theme/tokens/primitives/space.js +30 -0
  370. package/lib/module/theme/tokens/primitives/space.js.map +1 -0
  371. package/lib/module/theme/tokens/primitives/zIndices.js +23 -0
  372. package/lib/module/theme/tokens/primitives/zIndices.js.map +1 -0
  373. package/lib/module/theme/tokens/roles/index.js +126 -0
  374. package/lib/module/theme/tokens/roles/index.js.map +1 -0
  375. package/lib/module/theme/tokens/types.js +2 -0
  376. package/lib/module/theme/tokens/types.js.map +1 -0
  377. package/lib/typescript/core/a11y/index.d.ts +7 -0
  378. package/lib/typescript/core/a11y/index.d.ts.map +1 -0
  379. package/lib/typescript/core/icon/index.d.ts +60 -0
  380. package/lib/typescript/core/icon/index.d.ts.map +1 -0
  381. package/lib/typescript/core/style/index.d.ts +4 -0
  382. package/lib/typescript/core/style/index.d.ts.map +1 -0
  383. package/lib/typescript/core/style/layoutStyle.d.ts +19 -0
  384. package/lib/typescript/core/style/layoutStyle.d.ts.map +1 -0
  385. package/lib/typescript/core/style/variants.d.ts +55 -0
  386. package/lib/typescript/core/style/variants.d.ts.map +1 -0
  387. package/lib/typescript/index.d.ts +11 -0
  388. package/lib/typescript/index.d.ts.map +1 -0
  389. package/lib/typescript/modules/accordion/Accordion.d.ts +57 -0
  390. package/lib/typescript/modules/accordion/Accordion.d.ts.map +1 -0
  391. package/lib/typescript/modules/accordion/Accordion.variants.d.ts +131 -0
  392. package/lib/typescript/modules/accordion/Accordion.variants.d.ts.map +1 -0
  393. package/lib/typescript/modules/accordion/index.d.ts +9 -0
  394. package/lib/typescript/modules/accordion/index.d.ts.map +1 -0
  395. package/lib/typescript/modules/alert-dialog/AlertDialog.d.ts +24 -0
  396. package/lib/typescript/modules/alert-dialog/AlertDialog.d.ts.map +1 -0
  397. package/lib/typescript/modules/alert-dialog/AlertDialog.variants.d.ts +29 -0
  398. package/lib/typescript/modules/alert-dialog/AlertDialog.variants.d.ts.map +1 -0
  399. package/lib/typescript/modules/alert-dialog/index.d.ts +9 -0
  400. package/lib/typescript/modules/alert-dialog/index.d.ts.map +1 -0
  401. package/lib/typescript/modules/avatar/Avatar.d.ts +30 -0
  402. package/lib/typescript/modules/avatar/Avatar.d.ts.map +1 -0
  403. package/lib/typescript/modules/avatar/Avatar.variants.d.ts +123 -0
  404. package/lib/typescript/modules/avatar/Avatar.variants.d.ts.map +1 -0
  405. package/lib/typescript/modules/avatar/index.d.ts +11 -0
  406. package/lib/typescript/modules/avatar/index.d.ts.map +1 -0
  407. package/lib/typescript/modules/badge/Badge.d.ts +19 -0
  408. package/lib/typescript/modules/badge/Badge.d.ts.map +1 -0
  409. package/lib/typescript/modules/badge/Badge.variants.d.ts +102 -0
  410. package/lib/typescript/modules/badge/Badge.variants.d.ts.map +1 -0
  411. package/lib/typescript/modules/badge/index.d.ts +10 -0
  412. package/lib/typescript/modules/badge/index.d.ts.map +1 -0
  413. package/lib/typescript/modules/bottom-nav/BottomNav.d.ts +106 -0
  414. package/lib/typescript/modules/bottom-nav/BottomNav.d.ts.map +1 -0
  415. package/lib/typescript/modules/bottom-nav/BottomNav.search.d.ts +61 -0
  416. package/lib/typescript/modules/bottom-nav/BottomNav.search.d.ts.map +1 -0
  417. package/lib/typescript/modules/bottom-nav/BottomNav.variants.d.ts +122 -0
  418. package/lib/typescript/modules/bottom-nav/BottomNav.variants.d.ts.map +1 -0
  419. package/lib/typescript/modules/bottom-nav/BottomNavOverflowSheet.d.ts +39 -0
  420. package/lib/typescript/modules/bottom-nav/BottomNavOverflowSheet.d.ts.map +1 -0
  421. package/lib/typescript/modules/bottom-nav/index.d.ts +12 -0
  422. package/lib/typescript/modules/bottom-nav/index.d.ts.map +1 -0
  423. package/lib/typescript/modules/button/Button.d.ts +43 -0
  424. package/lib/typescript/modules/button/Button.d.ts.map +1 -0
  425. package/lib/typescript/modules/button/Button.variants.d.ts +156 -0
  426. package/lib/typescript/modules/button/Button.variants.d.ts.map +1 -0
  427. package/lib/typescript/modules/button/index.d.ts +10 -0
  428. package/lib/typescript/modules/button/index.d.ts.map +1 -0
  429. package/lib/typescript/modules/button-group/ButtonGroup.d.ts +37 -0
  430. package/lib/typescript/modules/button-group/ButtonGroup.d.ts.map +1 -0
  431. package/lib/typescript/modules/button-group/ButtonGroup.variants.d.ts +217 -0
  432. package/lib/typescript/modules/button-group/ButtonGroup.variants.d.ts.map +1 -0
  433. package/lib/typescript/modules/button-group/index.d.ts +10 -0
  434. package/lib/typescript/modules/button-group/index.d.ts.map +1 -0
  435. package/lib/typescript/modules/card/Card.d.ts +20 -0
  436. package/lib/typescript/modules/card/Card.d.ts.map +1 -0
  437. package/lib/typescript/modules/card/Card.variants.d.ts +51 -0
  438. package/lib/typescript/modules/card/Card.variants.d.ts.map +1 -0
  439. package/lib/typescript/modules/card/index.d.ts +9 -0
  440. package/lib/typescript/modules/card/index.d.ts.map +1 -0
  441. package/lib/typescript/modules/checkbox/Checkbox.d.ts +43 -0
  442. package/lib/typescript/modules/checkbox/Checkbox.d.ts.map +1 -0
  443. package/lib/typescript/modules/checkbox/Checkbox.variants.d.ts +120 -0
  444. package/lib/typescript/modules/checkbox/Checkbox.variants.d.ts.map +1 -0
  445. package/lib/typescript/modules/checkbox/index.d.ts +10 -0
  446. package/lib/typescript/modules/checkbox/index.d.ts.map +1 -0
  447. package/lib/typescript/modules/divider/Divider.d.ts +18 -0
  448. package/lib/typescript/modules/divider/Divider.d.ts.map +1 -0
  449. package/lib/typescript/modules/divider/Divider.variants.d.ts +42 -0
  450. package/lib/typescript/modules/divider/Divider.variants.d.ts.map +1 -0
  451. package/lib/typescript/modules/divider/index.d.ts +9 -0
  452. package/lib/typescript/modules/divider/index.d.ts.map +1 -0
  453. package/lib/typescript/modules/drawer/Drawer.d.ts +44 -0
  454. package/lib/typescript/modules/drawer/Drawer.d.ts.map +1 -0
  455. package/lib/typescript/modules/drawer/Drawer.variants.d.ts +80 -0
  456. package/lib/typescript/modules/drawer/Drawer.variants.d.ts.map +1 -0
  457. package/lib/typescript/modules/drawer/index.d.ts +8 -0
  458. package/lib/typescript/modules/drawer/index.d.ts.map +1 -0
  459. package/lib/typescript/modules/empty-state/EmptyState.d.ts +29 -0
  460. package/lib/typescript/modules/empty-state/EmptyState.d.ts.map +1 -0
  461. package/lib/typescript/modules/empty-state/EmptyState.variants.d.ts +43 -0
  462. package/lib/typescript/modules/empty-state/EmptyState.variants.d.ts.map +1 -0
  463. package/lib/typescript/modules/empty-state/index.d.ts +10 -0
  464. package/lib/typescript/modules/empty-state/index.d.ts.map +1 -0
  465. package/lib/typescript/modules/file-upload/FileUpload.d.ts +44 -0
  466. package/lib/typescript/modules/file-upload/FileUpload.d.ts.map +1 -0
  467. package/lib/typescript/modules/file-upload/FileUpload.variants.d.ts +114 -0
  468. package/lib/typescript/modules/file-upload/FileUpload.variants.d.ts.map +1 -0
  469. package/lib/typescript/modules/file-upload/index.d.ts +9 -0
  470. package/lib/typescript/modules/file-upload/index.d.ts.map +1 -0
  471. package/lib/typescript/modules/filter-sheet/FilterChip.d.ts +25 -0
  472. package/lib/typescript/modules/filter-sheet/FilterChip.d.ts.map +1 -0
  473. package/lib/typescript/modules/filter-sheet/FilterSheet.d.ts +54 -0
  474. package/lib/typescript/modules/filter-sheet/FilterSheet.d.ts.map +1 -0
  475. package/lib/typescript/modules/filter-sheet/FilterSheet.variants.d.ts +98 -0
  476. package/lib/typescript/modules/filter-sheet/FilterSheet.variants.d.ts.map +1 -0
  477. package/lib/typescript/modules/filter-sheet/FilterSheetBody.d.ts +28 -0
  478. package/lib/typescript/modules/filter-sheet/FilterSheetBody.d.ts.map +1 -0
  479. package/lib/typescript/modules/filter-sheet/filterSheet.helpers.d.ts +45 -0
  480. package/lib/typescript/modules/filter-sheet/filterSheet.helpers.d.ts.map +1 -0
  481. package/lib/typescript/modules/filter-sheet/index.d.ts +12 -0
  482. package/lib/typescript/modules/filter-sheet/index.d.ts.map +1 -0
  483. package/lib/typescript/modules/input/Input.d.ts +33 -0
  484. package/lib/typescript/modules/input/Input.d.ts.map +1 -0
  485. package/lib/typescript/modules/input/Input.variants.d.ts +116 -0
  486. package/lib/typescript/modules/input/Input.variants.d.ts.map +1 -0
  487. package/lib/typescript/modules/input/index.d.ts +10 -0
  488. package/lib/typescript/modules/input/index.d.ts.map +1 -0
  489. package/lib/typescript/modules/menu/Menu.d.ts +43 -0
  490. package/lib/typescript/modules/menu/Menu.d.ts.map +1 -0
  491. package/lib/typescript/modules/menu/Menu.variants.d.ts +41 -0
  492. package/lib/typescript/modules/menu/Menu.variants.d.ts.map +1 -0
  493. package/lib/typescript/modules/menu/index.d.ts +10 -0
  494. package/lib/typescript/modules/menu/index.d.ts.map +1 -0
  495. package/lib/typescript/modules/modal/Modal.d.ts +32 -0
  496. package/lib/typescript/modules/modal/Modal.d.ts.map +1 -0
  497. package/lib/typescript/modules/modal/Modal.variants.d.ts +72 -0
  498. package/lib/typescript/modules/modal/Modal.variants.d.ts.map +1 -0
  499. package/lib/typescript/modules/modal/ModalPortalContext.d.ts +2 -0
  500. package/lib/typescript/modules/modal/ModalPortalContext.d.ts.map +1 -0
  501. package/lib/typescript/modules/modal/ModalPortalProvider.d.ts +21 -0
  502. package/lib/typescript/modules/modal/ModalPortalProvider.d.ts.map +1 -0
  503. package/lib/typescript/modules/modal/index.d.ts +16 -0
  504. package/lib/typescript/modules/modal/index.d.ts.map +1 -0
  505. package/lib/typescript/modules/modal/renderWebPortal.d.ts +15 -0
  506. package/lib/typescript/modules/modal/renderWebPortal.d.ts.map +1 -0
  507. package/lib/typescript/modules/modal/renderWebPortal.web.d.ts +19 -0
  508. package/lib/typescript/modules/modal/renderWebPortal.web.d.ts.map +1 -0
  509. package/lib/typescript/modules/multi-select/MultiSelect.d.ts +33 -0
  510. package/lib/typescript/modules/multi-select/MultiSelect.d.ts.map +1 -0
  511. package/lib/typescript/modules/multi-select/MultiSelect.variants.d.ts +149 -0
  512. package/lib/typescript/modules/multi-select/MultiSelect.variants.d.ts.map +1 -0
  513. package/lib/typescript/modules/multi-select/index.d.ts +10 -0
  514. package/lib/typescript/modules/multi-select/index.d.ts.map +1 -0
  515. package/lib/typescript/modules/number-input/NumberInput.d.ts +34 -0
  516. package/lib/typescript/modules/number-input/NumberInput.d.ts.map +1 -0
  517. package/lib/typescript/modules/number-input/NumberInput.variants.d.ts +170 -0
  518. package/lib/typescript/modules/number-input/NumberInput.variants.d.ts.map +1 -0
  519. package/lib/typescript/modules/number-input/index.d.ts +11 -0
  520. package/lib/typescript/modules/number-input/index.d.ts.map +1 -0
  521. package/lib/typescript/modules/pin-input/PinInput.d.ts +40 -0
  522. package/lib/typescript/modules/pin-input/PinInput.d.ts.map +1 -0
  523. package/lib/typescript/modules/pin-input/PinInput.variants.d.ts +164 -0
  524. package/lib/typescript/modules/pin-input/PinInput.variants.d.ts.map +1 -0
  525. package/lib/typescript/modules/pin-input/index.d.ts +10 -0
  526. package/lib/typescript/modules/pin-input/index.d.ts.map +1 -0
  527. package/lib/typescript/modules/progress-bar/ProgressBar.d.ts +21 -0
  528. package/lib/typescript/modules/progress-bar/ProgressBar.d.ts.map +1 -0
  529. package/lib/typescript/modules/progress-bar/ProgressBar.variants.d.ts +112 -0
  530. package/lib/typescript/modules/progress-bar/ProgressBar.variants.d.ts.map +1 -0
  531. package/lib/typescript/modules/progress-bar/index.d.ts +11 -0
  532. package/lib/typescript/modules/progress-bar/index.d.ts.map +1 -0
  533. package/lib/typescript/modules/radio-group/RadioGroup.d.ts +27 -0
  534. package/lib/typescript/modules/radio-group/RadioGroup.d.ts.map +1 -0
  535. package/lib/typescript/modules/radio-group/RadioGroup.variants.d.ts +142 -0
  536. package/lib/typescript/modules/radio-group/RadioGroup.variants.d.ts.map +1 -0
  537. package/lib/typescript/modules/radio-group/index.d.ts +10 -0
  538. package/lib/typescript/modules/radio-group/index.d.ts.map +1 -0
  539. package/lib/typescript/modules/reorder/Reorder.d.ts +43 -0
  540. package/lib/typescript/modules/reorder/Reorder.d.ts.map +1 -0
  541. package/lib/typescript/modules/reorder/Reorder.variants.d.ts +116 -0
  542. package/lib/typescript/modules/reorder/Reorder.variants.d.ts.map +1 -0
  543. package/lib/typescript/modules/reorder/index.d.ts +9 -0
  544. package/lib/typescript/modules/reorder/index.d.ts.map +1 -0
  545. package/lib/typescript/modules/select/Select.d.ts +31 -0
  546. package/lib/typescript/modules/select/Select.d.ts.map +1 -0
  547. package/lib/typescript/modules/select/Select.variants.d.ts +127 -0
  548. package/lib/typescript/modules/select/Select.variants.d.ts.map +1 -0
  549. package/lib/typescript/modules/select/index.d.ts +9 -0
  550. package/lib/typescript/modules/select/index.d.ts.map +1 -0
  551. package/lib/typescript/modules/skeleton/Skeleton.d.ts +27 -0
  552. package/lib/typescript/modules/skeleton/Skeleton.d.ts.map +1 -0
  553. package/lib/typescript/modules/skeleton/Skeleton.variants.d.ts +119 -0
  554. package/lib/typescript/modules/skeleton/Skeleton.variants.d.ts.map +1 -0
  555. package/lib/typescript/modules/skeleton/index.d.ts +9 -0
  556. package/lib/typescript/modules/skeleton/index.d.ts.map +1 -0
  557. package/lib/typescript/modules/slider/Slider.d.ts +44 -0
  558. package/lib/typescript/modules/slider/Slider.d.ts.map +1 -0
  559. package/lib/typescript/modules/slider/Slider.variants.d.ts +211 -0
  560. package/lib/typescript/modules/slider/Slider.variants.d.ts.map +1 -0
  561. package/lib/typescript/modules/slider/index.d.ts +9 -0
  562. package/lib/typescript/modules/slider/index.d.ts.map +1 -0
  563. package/lib/typescript/modules/spinner/Spinner.d.ts +19 -0
  564. package/lib/typescript/modules/spinner/Spinner.d.ts.map +1 -0
  565. package/lib/typescript/modules/spinner/Spinner.variants.d.ts +113 -0
  566. package/lib/typescript/modules/spinner/Spinner.variants.d.ts.map +1 -0
  567. package/lib/typescript/modules/spinner/index.d.ts +10 -0
  568. package/lib/typescript/modules/spinner/index.d.ts.map +1 -0
  569. package/lib/typescript/modules/stepper/Stepper.d.ts +26 -0
  570. package/lib/typescript/modules/stepper/Stepper.d.ts.map +1 -0
  571. package/lib/typescript/modules/stepper/Stepper.variants.d.ts +107 -0
  572. package/lib/typescript/modules/stepper/Stepper.variants.d.ts.map +1 -0
  573. package/lib/typescript/modules/stepper/index.d.ts +8 -0
  574. package/lib/typescript/modules/stepper/index.d.ts.map +1 -0
  575. package/lib/typescript/modules/switch/Switch.d.ts +22 -0
  576. package/lib/typescript/modules/switch/Switch.d.ts.map +1 -0
  577. package/lib/typescript/modules/switch/Switch.variants.d.ts +60 -0
  578. package/lib/typescript/modules/switch/Switch.variants.d.ts.map +1 -0
  579. package/lib/typescript/modules/switch/index.d.ts +8 -0
  580. package/lib/typescript/modules/switch/index.d.ts.map +1 -0
  581. package/lib/typescript/modules/tabs/Tabs.d.ts +31 -0
  582. package/lib/typescript/modules/tabs/Tabs.d.ts.map +1 -0
  583. package/lib/typescript/modules/tabs/Tabs.variants.d.ts +114 -0
  584. package/lib/typescript/modules/tabs/Tabs.variants.d.ts.map +1 -0
  585. package/lib/typescript/modules/tabs/index.d.ts +10 -0
  586. package/lib/typescript/modules/tabs/index.d.ts.map +1 -0
  587. package/lib/typescript/modules/textarea/Textarea.d.ts +25 -0
  588. package/lib/typescript/modules/textarea/Textarea.d.ts.map +1 -0
  589. package/lib/typescript/modules/textarea/Textarea.variants.d.ts +99 -0
  590. package/lib/typescript/modules/textarea/Textarea.variants.d.ts.map +1 -0
  591. package/lib/typescript/modules/textarea/index.d.ts +9 -0
  592. package/lib/typescript/modules/textarea/index.d.ts.map +1 -0
  593. package/lib/typescript/modules/timeline/Timeline.d.ts +28 -0
  594. package/lib/typescript/modules/timeline/Timeline.d.ts.map +1 -0
  595. package/lib/typescript/modules/timeline/Timeline.variants.d.ts +103 -0
  596. package/lib/typescript/modules/timeline/Timeline.variants.d.ts.map +1 -0
  597. package/lib/typescript/modules/timeline/index.d.ts +9 -0
  598. package/lib/typescript/modules/timeline/index.d.ts.map +1 -0
  599. package/lib/typescript/modules/toast/Toast.d.ts +38 -0
  600. package/lib/typescript/modules/toast/Toast.d.ts.map +1 -0
  601. package/lib/typescript/modules/toast/Toast.variants.d.ts +80 -0
  602. package/lib/typescript/modules/toast/Toast.variants.d.ts.map +1 -0
  603. package/lib/typescript/modules/toast/index.d.ts +12 -0
  604. package/lib/typescript/modules/toast/index.d.ts.map +1 -0
  605. package/lib/typescript/modules/tooltip/Tooltip.d.ts +31 -0
  606. package/lib/typescript/modules/tooltip/Tooltip.d.ts.map +1 -0
  607. package/lib/typescript/modules/tooltip/Tooltip.variants.d.ts +52 -0
  608. package/lib/typescript/modules/tooltip/Tooltip.variants.d.ts.map +1 -0
  609. package/lib/typescript/modules/tooltip/index.d.ts +9 -0
  610. package/lib/typescript/modules/tooltip/index.d.ts.map +1 -0
  611. package/lib/typescript/package.json +1 -0
  612. package/lib/typescript/theme/index.d.ts +11 -0
  613. package/lib/typescript/theme/index.d.ts.map +1 -0
  614. package/lib/typescript/theme/platform/colorScheme.native.d.ts +12 -0
  615. package/lib/typescript/theme/platform/colorScheme.native.d.ts.map +1 -0
  616. package/lib/typescript/theme/platform/elevation.native.d.ts +35 -0
  617. package/lib/typescript/theme/platform/elevation.native.d.ts.map +1 -0
  618. package/lib/typescript/theme/platform/fonts.native.d.ts +41 -0
  619. package/lib/typescript/theme/platform/fonts.native.d.ts.map +1 -0
  620. package/lib/typescript/theme/platform/index.d.ts +15 -0
  621. package/lib/typescript/theme/platform/index.d.ts.map +1 -0
  622. package/lib/typescript/theme/platform/units.native.d.ts +13 -0
  623. package/lib/typescript/theme/platform/units.native.d.ts.map +1 -0
  624. package/lib/typescript/theme/provider/PixelizeProvider.d.ts +81 -0
  625. package/lib/typescript/theme/provider/PixelizeProvider.d.ts.map +1 -0
  626. package/lib/typescript/theme/provider/colorModeStorage.d.ts +43 -0
  627. package/lib/typescript/theme/provider/colorModeStorage.d.ts.map +1 -0
  628. package/lib/typescript/theme/provider/index.d.ts +8 -0
  629. package/lib/typescript/theme/provider/index.d.ts.map +1 -0
  630. package/lib/typescript/theme/provider/useTheme.d.ts +4 -0
  631. package/lib/typescript/theme/provider/useTheme.d.ts.map +1 -0
  632. package/lib/typescript/theme/provider/useThemeColors.d.ts +9 -0
  633. package/lib/typescript/theme/provider/useThemeColors.d.ts.map +1 -0
  634. package/lib/typescript/theme/provider/useThemeMode.d.ts +4 -0
  635. package/lib/typescript/theme/provider/useThemeMode.d.ts.map +1 -0
  636. package/lib/typescript/theme/tokens/brands/emerald/palette.dark.d.ts +3 -0
  637. package/lib/typescript/theme/tokens/brands/emerald/palette.dark.d.ts.map +1 -0
  638. package/lib/typescript/theme/tokens/brands/emerald/palette.light.d.ts +4 -0
  639. package/lib/typescript/theme/tokens/brands/emerald/palette.light.d.ts.map +1 -0
  640. package/lib/typescript/theme/tokens/brands/index.d.ts +30 -0
  641. package/lib/typescript/theme/tokens/brands/index.d.ts.map +1 -0
  642. package/lib/typescript/theme/tokens/brands/lavender/palette.dark.d.ts +3 -0
  643. package/lib/typescript/theme/tokens/brands/lavender/palette.dark.d.ts.map +1 -0
  644. package/lib/typescript/theme/tokens/brands/lavender/palette.light.d.ts +4 -0
  645. package/lib/typescript/theme/tokens/brands/lavender/palette.light.d.ts.map +1 -0
  646. package/lib/typescript/theme/tokens/brands/meadow/palette.dark.d.ts +3 -0
  647. package/lib/typescript/theme/tokens/brands/meadow/palette.dark.d.ts.map +1 -0
  648. package/lib/typescript/theme/tokens/brands/meadow/palette.light.d.ts +4 -0
  649. package/lib/typescript/theme/tokens/brands/meadow/palette.light.d.ts.map +1 -0
  650. package/lib/typescript/theme/tokens/brands/radiant/palette.dark.d.ts +3 -0
  651. package/lib/typescript/theme/tokens/brands/radiant/palette.dark.d.ts.map +1 -0
  652. package/lib/typescript/theme/tokens/brands/radiant/palette.light.d.ts +4 -0
  653. package/lib/typescript/theme/tokens/brands/radiant/palette.light.d.ts.map +1 -0
  654. package/lib/typescript/theme/tokens/brands/rosewood/palette.dark.d.ts +3 -0
  655. package/lib/typescript/theme/tokens/brands/rosewood/palette.dark.d.ts.map +1 -0
  656. package/lib/typescript/theme/tokens/brands/rosewood/palette.light.d.ts +4 -0
  657. package/lib/typescript/theme/tokens/brands/rosewood/palette.light.d.ts.map +1 -0
  658. package/lib/typescript/theme/tokens/brands/skyline/palette.dark.d.ts +3 -0
  659. package/lib/typescript/theme/tokens/brands/skyline/palette.dark.d.ts.map +1 -0
  660. package/lib/typescript/theme/tokens/brands/skyline/palette.light.d.ts +4 -0
  661. package/lib/typescript/theme/tokens/brands/skyline/palette.light.d.ts.map +1 -0
  662. package/lib/typescript/theme/tokens/brands/slate/palette.dark.d.ts +3 -0
  663. package/lib/typescript/theme/tokens/brands/slate/palette.dark.d.ts.map +1 -0
  664. package/lib/typescript/theme/tokens/brands/slate/palette.light.d.ts +4 -0
  665. package/lib/typescript/theme/tokens/brands/slate/palette.light.d.ts.map +1 -0
  666. package/lib/typescript/theme/tokens/brands/storefront/palette.dark.d.ts +3 -0
  667. package/lib/typescript/theme/tokens/brands/storefront/palette.dark.d.ts.map +1 -0
  668. package/lib/typescript/theme/tokens/brands/storefront/palette.light.d.ts +4 -0
  669. package/lib/typescript/theme/tokens/brands/storefront/palette.light.d.ts.map +1 -0
  670. package/lib/typescript/theme/tokens/brands/zinc/palette.dark.d.ts +4 -0
  671. package/lib/typescript/theme/tokens/brands/zinc/palette.dark.d.ts.map +1 -0
  672. package/lib/typescript/theme/tokens/brands/zinc/palette.light.d.ts +4 -0
  673. package/lib/typescript/theme/tokens/brands/zinc/palette.light.d.ts.map +1 -0
  674. package/lib/typescript/theme/tokens/builders/accentText.d.ts +42 -0
  675. package/lib/typescript/theme/tokens/builders/accentText.d.ts.map +1 -0
  676. package/lib/typescript/theme/tokens/builders/buildBrandTokens.d.ts +21 -0
  677. package/lib/typescript/theme/tokens/builders/buildBrandTokens.d.ts.map +1 -0
  678. package/lib/typescript/theme/tokens/builders/buildDarkPalette.d.ts +13 -0
  679. package/lib/typescript/theme/tokens/builders/buildDarkPalette.d.ts.map +1 -0
  680. package/lib/typescript/theme/tokens/builders/color.d.ts +59 -0
  681. package/lib/typescript/theme/tokens/builders/color.d.ts.map +1 -0
  682. package/lib/typescript/theme/tokens/index.d.ts +21 -0
  683. package/lib/typescript/theme/tokens/index.d.ts.map +1 -0
  684. package/lib/typescript/theme/tokens/primitives/borderWidths.d.ts +15 -0
  685. package/lib/typescript/theme/tokens/primitives/borderWidths.d.ts.map +1 -0
  686. package/lib/typescript/theme/tokens/primitives/breakpoints.d.ts +17 -0
  687. package/lib/typescript/theme/tokens/primitives/breakpoints.d.ts.map +1 -0
  688. package/lib/typescript/theme/tokens/primitives/elevation.d.ts +109 -0
  689. package/lib/typescript/theme/tokens/primitives/elevation.d.ts.map +1 -0
  690. package/lib/typescript/theme/tokens/primitives/fontSizes.d.ts +21 -0
  691. package/lib/typescript/theme/tokens/primitives/fontSizes.d.ts.map +1 -0
  692. package/lib/typescript/theme/tokens/primitives/fontWeights.d.ts +21 -0
  693. package/lib/typescript/theme/tokens/primitives/fontWeights.d.ts.map +1 -0
  694. package/lib/typescript/theme/tokens/primitives/index.d.ts +23 -0
  695. package/lib/typescript/theme/tokens/primitives/index.d.ts.map +1 -0
  696. package/lib/typescript/theme/tokens/primitives/letterSpacings.d.ts +17 -0
  697. package/lib/typescript/theme/tokens/primitives/letterSpacings.d.ts.map +1 -0
  698. package/lib/typescript/theme/tokens/primitives/lineHeights.d.ts +20 -0
  699. package/lib/typescript/theme/tokens/primitives/lineHeights.d.ts.map +1 -0
  700. package/lib/typescript/theme/tokens/primitives/radii.d.ts +20 -0
  701. package/lib/typescript/theme/tokens/primitives/radii.d.ts.map +1 -0
  702. package/lib/typescript/theme/tokens/primitives/sizes.d.ts +33 -0
  703. package/lib/typescript/theme/tokens/primitives/sizes.d.ts.map +1 -0
  704. package/lib/typescript/theme/tokens/primitives/space.d.ts +29 -0
  705. package/lib/typescript/theme/tokens/primitives/space.d.ts.map +1 -0
  706. package/lib/typescript/theme/tokens/primitives/zIndices.d.ts +22 -0
  707. package/lib/typescript/theme/tokens/primitives/zIndices.d.ts.map +1 -0
  708. package/lib/typescript/theme/tokens/roles/index.d.ts +68 -0
  709. package/lib/typescript/theme/tokens/roles/index.d.ts.map +1 -0
  710. package/lib/typescript/theme/tokens/types.d.ts +103 -0
  711. package/lib/typescript/theme/tokens/types.d.ts.map +1 -0
  712. package/package.json +259 -0
  713. package/registry.json +175 -0
@@ -0,0 +1,258 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Slider's pure math + style + accessibility resolution — the functions the component (and its
5
+ * tests) depend on, plus the themed structural variant resolvers. Same split as `Button.variants.ts`:
6
+ *
7
+ * - STRUCTURE (row height, track height, thumb diameter, radii, border WIDTH) lives in the
8
+ * `createThemedVariants` resolvers below — static per (brand, mode), registered once.
9
+ * - COLOUR is resolved from the theme's ROLE colours (`resolveSliderTrackColors`,
10
+ * `resolveSliderThumbColors`), never a raw ramp, never a hardcoded hex.
11
+ * - DRAG MATH (`resolveSliderPositionValue`, `sliderValueToFraction`, `stepSliderValue`, …) is kept
12
+ * free of React Native so it is unit-testable without a renderer or a real gesture.
13
+ * - ACCESSIBILITY prop derivation is `resolveSliderAccessibility`.
14
+ *
15
+ * Free of `lucide` and of any React tree, so the WCAG + math tests import this directly (mocking
16
+ * only `react-native`'s `StyleSheet`, as `core/style` and `Button.variants.ts` do).
17
+ */
18
+
19
+ import { createThemedVariants } from "../../core/style/index.js";
20
+ /** Same touch-target floor as every other interactive control in this library (44dp, WCAG 2.5.5 AAA). */
21
+ export const MIN_TOUCH_TARGET = 44;
22
+ const slopFor = dimension => Math.max(0, Math.ceil((MIN_TOUCH_TARGET - dimension) / 2));
23
+ export const SLIDER_SIZES = {
24
+ sm: {
25
+ trackHeight: 4,
26
+ thumbSize: 16,
27
+ hitSlop: slopFor(16)
28
+ },
29
+ md: {
30
+ trackHeight: 6,
31
+ thumbSize: 20,
32
+ hitSlop: slopFor(20)
33
+ }
34
+ };
35
+
36
+ /**
37
+ * The row's `hitSlop`, pre-built per size as a MODULE-LEVEL constant (not built inline in the
38
+ * component) so it's a stable object reference across renders, same discipline as every other
39
+ * inline style object in this library. Vertical-only (`left`/`right: 0`): the row already spans the
40
+ * component's full width, so only the short axis needs to grow to the 44dp floor.
41
+ */
42
+ export const SLIDER_HIT_SLOP = {
43
+ sm: {
44
+ top: SLIDER_SIZES.sm.hitSlop,
45
+ bottom: SLIDER_SIZES.sm.hitSlop,
46
+ left: 0,
47
+ right: 0
48
+ },
49
+ md: {
50
+ top: SLIDER_SIZES.md.hitSlop,
51
+ bottom: SLIDER_SIZES.md.hitSlop,
52
+ left: 0,
53
+ right: 0
54
+ }
55
+ };
56
+
57
+ /**
58
+ * Clamps a value onto `[min, max]`. `NaN` (a caller's bad math) clamps to `min` rather than
59
+ * propagating into a `NaN%` width or an invalid `accessibilityValue.now`.
60
+ */
61
+ export function clampSliderValue(value, min, max) {
62
+ if (Number.isNaN(value)) return min;
63
+ return Math.min(max, Math.max(min, value));
64
+ }
65
+
66
+ /**
67
+ * Snaps a value onto the nearest `step` multiple measured from `min`, then clamps onto `[min, max]`.
68
+ * A non-positive `step` (a caller error) falls back to `1` rather than dividing by zero.
69
+ */
70
+ export function snapSliderValue(value, min, max, step) {
71
+ const safeStep = step > 0 ? step : 1;
72
+ const steps = Math.round((value - min) / safeStep);
73
+ return clampSliderValue(min + steps * safeStep, min, max);
74
+ }
75
+
76
+ /**
77
+ * The fraction (0–1) of the track the current value represents — what both the fill width and the
78
+ * thumb's `left` position render from. Clamped even for an out-of-range `value` a caller might pass
79
+ * directly (never drives a rendered width/position outside the track), and `max ≤ min` (a caller
80
+ * error) resolves to `0` rather than a division by zero.
81
+ */
82
+ export function sliderValueToFraction(value, min, max) {
83
+ if (max <= min) return 0;
84
+ return Math.min(1, Math.max(0, (value - min) / (max - min)));
85
+ }
86
+ /**
87
+ * Converts a touch's x position within the measured track into a value: the position clamps onto
88
+ * the track bounds first (a touch past either end still resolves to `min`/`max`, not an out-of-range
89
+ * value), then the resulting value snaps onto `step`. Resolves to `min` when the track hasn't been
90
+ * measured yet (`trackWidth ≤ 0`) or `max ≤ min` (a caller error) — never `NaN`.
91
+ */
92
+ export function resolveSliderPositionValue(input) {
93
+ const {
94
+ locationX,
95
+ trackWidth,
96
+ min,
97
+ max,
98
+ step
99
+ } = input;
100
+ if (trackWidth <= 0 || max <= min) return min;
101
+ const fraction = Math.min(1, Math.max(0, locationX / trackWidth));
102
+ return snapSliderValue(min + fraction * (max - min), min, max, step);
103
+ }
104
+
105
+ /**
106
+ * Adjusts `value` by one `step` in `direction`, clamped onto `[min, max]` — the pure core of the
107
+ * `increment`/`decrement` accessibility actions (WCAG 2.5.7's required non-drag alternative).
108
+ */
109
+ export function stepSliderValue(value, direction, min, max, step) {
110
+ return clampSliderValue(value + direction * step, min, max);
111
+ }
112
+ /**
113
+ * Maps the track's two colours onto ROLE tokens — never a raw ramp or a hardcoded hex. `fill` is
114
+ * `accent.text`, NOT the seemingly-obvious `accent.solid`: measured, `accent.solid` against
115
+ * `bg.sunken` falls as low as ~1.6:1 on rosewood light — the exact class of gap `ProgressBar`
116
+ * documented and fixed (a `*.solid` role is only guaranteed to clear contrast against its own
117
+ * derived `onSolid` label, never against an arbitrary neutral surface). `accent.text` is the SAME
118
+ * role `Button`'s outline/ghost/link label uses specifically because it's engineered to read on a
119
+ * pale surface, and measured here at ≥ 4.4:1 against `bg.sunken` for all 8 brands × both modes
120
+ * (`Slider.test.ts`) — comfortably clearing the 3:1 floor this fill actually needs.
121
+ */
122
+ export function resolveSliderTrackColors(colors) {
123
+ return {
124
+ track: colors.bg.sunken,
125
+ fill: colors.accent.text
126
+ };
127
+ }
128
+ /**
129
+ * The thumb can sit over either the resting track (`bg.sunken`) or the filled portion
130
+ * (`accent.text`), and no single flat colour clears 3:1 against both on every brand — measured:
131
+ * `bg.canvas` alone is as low as ~1:1 against `bg.sunken` (they're near-identical on some brands,
132
+ * the same trap `Switch` avoided by measuring against `border.interactive`/`accent.solid`, never
133
+ * `bg.sunken`), and a neutral `border.interactive` ring is as low as ~1:1 against a saturated
134
+ * `accent.text` fill on several brands. So the two boundaries are carried by DIFFERENT parts of the
135
+ * thumb, each measured against the surface it actually needs to clear (`Slider.test.ts`):
136
+ * - `border` (`border.interactive`, the same proven neutral outline `Button`'s outline variant and
137
+ * `Checkbox`'s unchecked box use) is the boundary against the RESTING track — ≥ 3.05:1 worst case.
138
+ * - `fill` (`bg.canvas`, matching `Switch`'s thumb) is the boundary against the ACCENT fill — the
139
+ * much larger fill area clears ≥ 4.6:1 worst case there even though the thin ring alone would not.
140
+ */
141
+ export function resolveSliderThumbColors(colors) {
142
+ return {
143
+ fill: colors.bg.canvas,
144
+ border: colors.border.interactive
145
+ };
146
+ }
147
+ /**
148
+ * Derives the accessibility surface once, purely, so the contract is testable without a renderer.
149
+ * `now` is clamped onto `[min, max]` — a screen reader must never announce a value the track itself
150
+ * couldn't render. `accessibilityActions` declares BOTH `increment`/`decrement` explicitly: iOS's
151
+ * `adjustable` trait already offers these via the two-finger swipe-up/down gesture without them
152
+ * declared, but Android TalkBack has no native "adjustable" gesture and only surfaces custom actions
153
+ * that are declared here (WCAG 2.5.7 — a drag-only slider has no non-pointer alternative otherwise).
154
+ */
155
+ export function resolveSliderAccessibility(input) {
156
+ return {
157
+ accessibilityRole: "adjustable",
158
+ accessibilityValue: {
159
+ min: input.min,
160
+ max: input.max,
161
+ now: clampSliderValue(input.value, input.min, input.max)
162
+ },
163
+ accessibilityState: {
164
+ disabled: input.disabled === true
165
+ },
166
+ accessibilityActions: [{
167
+ name: "increment"
168
+ }, {
169
+ name: "decrement"
170
+ }]
171
+ };
172
+ }
173
+
174
+ /**
175
+ * Structural row styles — the draggable node's own dimensions. Height is fixed to the size's
176
+ * `thumbSize` (not `trackHeight`): the row must be tall enough to contain the thumb, which is
177
+ * absolutely positioned within it and vertically centred purely by the row matching its diameter.
178
+ * No colour here — this node's `backgroundColor` is never set; only its children paint.
179
+ */
180
+ export const sliderRowStructure = createThemedVariants(_theme => ({
181
+ base: {
182
+ justifyContent: "center"
183
+ },
184
+ variants: {
185
+ size: {
186
+ sm: {
187
+ height: SLIDER_SIZES.sm.thumbSize
188
+ },
189
+ md: {
190
+ height: SLIDER_SIZES.md.thumbSize
191
+ }
192
+ }
193
+ },
194
+ defaultVariants: {
195
+ size: "md"
196
+ }
197
+ }));
198
+
199
+ /** Structural track styles — full width, pill radius, clipped so the fill can't poke past it. */
200
+ export const sliderTrackStructure = createThemedVariants(theme => ({
201
+ base: {
202
+ width: "100%",
203
+ borderRadius: theme.radii.full,
204
+ overflow: "hidden"
205
+ },
206
+ variants: {
207
+ size: {
208
+ sm: {
209
+ height: SLIDER_SIZES.sm.trackHeight
210
+ },
211
+ md: {
212
+ height: SLIDER_SIZES.md.trackHeight
213
+ }
214
+ }
215
+ },
216
+ defaultVariants: {
217
+ size: "md"
218
+ }
219
+ }));
220
+
221
+ /** The filled segment's own corner radius — matches the track's, same reasoning as `ProgressBar`. */
222
+ export const sliderFillStructure = createThemedVariants(theme => ({
223
+ base: {
224
+ height: "100%",
225
+ borderRadius: theme.radii.full
226
+ }
227
+ }));
228
+
229
+ /**
230
+ * Structural thumb styles — size, pill radius, border WIDTH. No colour (fill/border colour is
231
+ * applied inline from `resolveSliderThumbColors`, same structure/colour split as `checkboxBoxStructure`).
232
+ * `top: 0` relies on the row's height exactly matching `thumbSize` (see `sliderRowStructure`) to
233
+ * centre vertically; `left`/`marginLeft` (the value-driven position) are applied inline per render.
234
+ */
235
+ export const sliderThumbStructure = createThemedVariants(theme => ({
236
+ base: {
237
+ position: "absolute",
238
+ top: 0,
239
+ borderRadius: theme.radii.full,
240
+ borderWidth: theme.borderWidths.thick
241
+ },
242
+ variants: {
243
+ size: {
244
+ sm: {
245
+ width: SLIDER_SIZES.sm.thumbSize,
246
+ height: SLIDER_SIZES.sm.thumbSize
247
+ },
248
+ md: {
249
+ width: SLIDER_SIZES.md.thumbSize,
250
+ height: SLIDER_SIZES.md.thumbSize
251
+ }
252
+ }
253
+ },
254
+ defaultVariants: {
255
+ size: "md"
256
+ }
257
+ }));
258
+ //# sourceMappingURL=Slider.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createThemedVariants","MIN_TOUCH_TARGET","slopFor","dimension","Math","max","ceil","SLIDER_SIZES","sm","trackHeight","thumbSize","hitSlop","md","SLIDER_HIT_SLOP","top","bottom","left","right","clampSliderValue","value","min","Number","isNaN","snapSliderValue","step","safeStep","steps","round","sliderValueToFraction","resolveSliderPositionValue","input","locationX","trackWidth","fraction","stepSliderValue","direction","resolveSliderTrackColors","colors","track","bg","sunken","fill","accent","text","resolveSliderThumbColors","canvas","border","interactive","resolveSliderAccessibility","accessibilityRole","accessibilityValue","now","accessibilityState","disabled","accessibilityActions","name","sliderRowStructure","_theme","base","justifyContent","variants","size","height","defaultVariants","sliderTrackStructure","theme","width","borderRadius","radii","full","overflow","sliderFillStructure","sliderThumbStructure","position","borderWidth","borderWidths","thick"],"sourceRoot":"../../../../src","sources":["modules/slider/Slider.variants.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,oBAAoB,QAAQ,2BAAkB;AAIvD;AACA,OAAO,MAAMC,gBAAgB,GAAG,EAAE;AAElC,MAAMC,OAAO,GAAIC,SAAiB,IAChCC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,IAAI,CAAC,CAACL,gBAAgB,GAAGE,SAAS,IAAI,CAAC,CAAC,CAAC;AAW5D,OAAO,MAAMI,YAAY,GAAG;EAC1BC,EAAE,EAAE;IAAEC,WAAW,EAAE,CA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EAAE3D,YAAY,CAACK,EAAE,CAACF,SAAS;QAAEoD,MAAM,EAAEvD,YAAY,CAACK,EAAE,CAACF;MAAU;IAC5E;EACF,CAAC;EACDqD,eAAe,EAAE;IAAEF,IAAI,EAAE;EAAK;AAChC,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Public surface of `pixelize-native-library/slider`. Value exports and type exports are split for
5
+ * `verbatimModuleSyntax`. The pure resolvers (`resolveSliderPositionValue`, `SLIDER_SIZES`, …) stay
6
+ * internal — a consumer configures a Slider through its props, never by importing its internals.
7
+ */
8
+
9
+ export { Slider } from "./Slider.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Slider"],"sourceRoot":"../../../../src","sources":["modules/slider/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,aAAU","ignoreList":[]}
@@ -0,0 +1,97 @@
1
+ # spinner/ — a thin themed wrapper around RN's own `<ActivityIndicator>`
2
+
3
+ `Spinner` renders an indeterminate loading indicator. It takes no children and no interaction —
4
+ mounting it always means work is in progress.
5
+
6
+ ## Files
7
+
8
+ | File | Role |
9
+ |------|------|
10
+ | `Spinner.tsx` | The component. Wraps the glyph in a sized, centered box that carries the accessibility contract; the `ActivityIndicator` itself is decorative chrome. |
11
+ | `Spinner.variants.ts` | Pure resolvers (`resolveSpinnerTone`, `resolveSpinnerAccessibility`, `SPINNER_SIZES`) + the untethered structural resolvers `spinnerBox` / `spinnerGlyphScale`. No React, no lucide. |
12
+ | `index.ts` | Public surface: `Spinner`, `SpinnerProps`, `SpinnerSize`, `SpinnerTone`. No `icon` prop, so no `IconName` re-export. |
13
+ | `__tests__/Spinner.test.ts` | Pure: WCAG 1.4.11 contrast (all brands × modes) + the size→box invariant + the accessibility contract. |
14
+ | `__tests__/Spinner.render.test.tsx` | Render: name/busy, each size's resolved box, tone's resolved colour, reduced-motion freeze, glyph hidden from AT, consumer `style` last. |
15
+
16
+ ## Props
17
+
18
+ | Prop | Type | Default | Notes |
19
+ |------|------|---------|-------|
20
+ | `size` | `sm \| md \| lg` | `md` | Closed union. 16 / 20 / 28 dp box — see "Sizing" below. |
21
+ | `tone` | `accent \| neutral` | `accent` | Closed union — resolves to `colors.accent.solid` / `colors.fg.muted`. |
22
+ | `accessibilityLabel` | `string` | `"Loading"` | A Spinner renders no visible text, so this is its only accessible name. |
23
+ | `style` | `LayoutStyle` | — | Layout-only, outermost, applied exactly once, last. |
24
+ | `testID` | `string` | — | Forwarded to the outermost box. The internal glyph gets `${testID}-glyph` (hidden from AT — see below). |
25
+
26
+ ## Sizing — why a box AND a scaled glyph
27
+
28
+ RN's `<ActivityIndicator>` ships exactly two native sizes, `"small"` (20dp) and `"large"` (36dp) —
29
+ no continuous control, and a numeric `size` is Android-only. Every `Spinner` size anchors on
30
+ `"small"` and reaches `md`/`lg` with a `transform: scale`, so the glyph stays the same shape on
31
+ both platforms rather than jumping to the fixed `"large"` asset partway through the scale.
32
+
33
+ A `transform` alone repaints without touching layout — scaling the indicator up for `lg` without
34
+ also correcting its reserved space would leave it visually overflowing a box a naive implementation
35
+ still measured at 20dp. So the component renders **two nodes**: an outer `View` sized to the exact
36
+ visually-scaled footprint (`spinnerBox` — 16 / 20 / 28 dp, `boxSize = 20 × scale`), centering an
37
+ inner `ActivityIndicator` that carries the `transform: scale` (`spinnerGlyphScale`). One node can't
38
+ both declare "I am 28dp" and "scale me 1.4×" without double-applying the enlargement — that's why
39
+ the scale lives on the child, never the box.
40
+
41
+ ## Accessibility contract (WCAG)
42
+
43
+ - **The OUTER box, not the glyph, carries the whole contract** — `accessibilityRole="progressbar"`,
44
+ the accessible name (`accessibilityLabel ?? "Loading"`), and `accessibilityState={{ busy: true }}`
45
+ (1.4.1 — the loading state is announced, not left to be inferred from a shape appearing on
46
+ screen). The inner `ActivityIndicator` is `accessibilityElementsHidden` +
47
+ `importantForAccessibility="no-hide-descendants"` — decorative chrome, exactly how `Button` treats
48
+ its own embedded loading spinner, so a screen reader announces ONE "Loading" node, never a nested
49
+ second element.
50
+ - **1.4.11 (Graphical Objects)** — a spinner is a graphical object required to understand that work
51
+ is ongoing, so both tones are measured ≥ 3:1 against `bg.canvas`, `bg.surface`, AND `bg.raised` on
52
+ all 8 brands × both modes (`Spinner.test.ts`) — never eyeballed.
53
+ - **2.3.3 (reduced motion)** — see "Reduced motion" below.
54
+ - **Touch target (2.5.x)** — N/A. A Spinner is never interactive; there is no `hitSlop`.
55
+
56
+ ## Reduced motion — frozen, not removed
57
+
58
+ `useReducedMotion()` gates `animating`: when the OS setting is on, the glyph stops spinning
59
+ (`animating={false}`) rather than being conveyed through motion alone. `hidesWhenStopped={false}`
60
+ (iOS otherwise defaults this to `true`) keeps a still-visible ring rather than the glyph vanishing —
61
+ freezing the motion shouldn't also remove the only visual cue a sighted, non-AT user has that
62
+ something is loading. The always-present `busy` state + accessible name on the outer box is the
63
+ operative signal either way, same philosophy `Button` documents for its own embedded spinner
64
+ ("never the sole loading signal").
65
+
66
+ RN's `<ActivityIndicator>` spin is native-platform-driven, not this library's own `Animated` API —
67
+ there is no supported hook to slow or shorten its rotation, only to start/stop it, which is exactly
68
+ what `animating` does here.
69
+
70
+ ## Why `tone` is a union, not a `color`
71
+
72
+ Same reasoning as every other module: `color?: string` would hand the token system back to the app.
73
+ `accent`/`neutral` map to ROLE colours (`resolveSpinnerTone`), so every colour a Spinner can show is
74
+ guaranteed legible and inverts light↔dark for free.
75
+
76
+ ## Patterns copied from `button/` (the reference module) and `skeleton/`
77
+
78
+ 1. **Structure vs colour split**, but with no theme dependency: `spinnerBox`/`spinnerGlyphScale` use
79
+ the untethered `createVariants` (not `createThemedVariants`) since the dp constants aren't on the
80
+ theme's spacing scale — same reasoning `BUTTON_SIZES` documents for being a plain constant.
81
+ Colour is resolved from role tokens and applied inline via `useThemeColors()` (the raw-value
82
+ escape hatch `Switch` also uses, since `ActivityIndicator`'s `color` prop takes no token object).
83
+ 2. **Pure, testable resolvers** in `Spinner.variants.ts` (no React) so the WCAG + accessibility
84
+ contract is unit-tested against real palettes.
85
+ 3. **Closed unions only** (`size`/`tone`), `style: LayoutStyle` last and once, no `{...rest}`.
86
+ 4. **`progressbar` role + a default "Loading" name**, the same contract `skeleton/` uses when it
87
+ exposes itself — the two differ only in when the contract applies: Skeleton is decorative by
88
+ default and opts IN when given a label; Spinner's whole existence IS the loading signal, so it is
89
+ always on.
90
+
91
+ ## Known gaps
92
+
93
+ None — no icon, no new theme token, no new core helper needed for this component.
94
+
95
+ ## Performance
96
+
97
+ Wrapped in `React.memo` (repo-wide re-render audit, 2026-07-17 — see root `CLAUDE.md`). Only child is `ActivityIndicator` (RN host primitive) receiving primitives/plain style values — nothing to memoize.
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Spinner — a thin themed wrapper around RN's own `<ActivityIndicator>`. The glyph itself is purely
5
+ * decorative chrome, hidden from assistive tech exactly how `Button` treats ITS embedded loading
6
+ * spinner: the OUTER box carries the `progressbar` role, the accessible name, and `busy` state, so a
7
+ * screen reader announces one "Loading" node — never the indicator as a second, redundant element.
8
+ */
9
+
10
+ import { memo } from "react";
11
+ import { ActivityIndicator, View } from "react-native";
12
+ import { useReducedMotion } from "../../core/a11y/index.js";
13
+ import { useThemeColors } from "../../theme/index.js";
14
+ import { resolveSpinnerAccessibility, resolveSpinnerTone, spinnerBox, spinnerGlyphScale } from "./Spinner.variants.js";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ export const Spinner = /*#__PURE__*/memo(function Spinner({
17
+ size = "md",
18
+ tone = "accent",
19
+ style,
20
+ testID,
21
+ accessibilityLabel
22
+ }) {
23
+ const colors = useThemeColors();
24
+ const reducedMotion = useReducedMotion();
25
+ const color = resolveSpinnerTone(colors, tone);
26
+ const a11y = resolveSpinnerAccessibility({
27
+ accessibilityLabel
28
+ });
29
+ return /*#__PURE__*/_jsx(View, {
30
+ testID: testID,
31
+ accessible: true,
32
+ accessibilityRole: a11y.accessibilityRole,
33
+ accessibilityLabel: a11y.accessibilityLabel,
34
+ accessibilityState: a11y.accessibilityState,
35
+ style: [spinnerBox({
36
+ size
37
+ }), style],
38
+ children: /*#__PURE__*/_jsx(ActivityIndicator, {
39
+ testID: testID === undefined ? undefined : `${testID}-glyph`,
40
+ size: "small",
41
+ color: color
42
+ // A frozen (non-spinning) glyph for a reduced-motion user (WCAG 2.3.3) — the box's own
43
+ // `busy` state + label above is the real signal, exactly how `Button` treats ITS embedded
44
+ // spinner as decoration on top of `accessibilityState.busy`. `hidesWhenStopped={false}`
45
+ // (iOS defaults this to `true`) keeps a still-visible ring rather than the glyph vanishing:
46
+ // freezing the motion shouldn't also remove the only visual cue a sighted, non-AT user has.
47
+ ,
48
+ animating: !reducedMotion,
49
+ hidesWhenStopped: false,
50
+ accessibilityElementsHidden: true,
51
+ importantForAccessibility: "no-hide-descendants",
52
+ style: spinnerGlyphScale({
53
+ size
54
+ })
55
+ })
56
+ });
57
+ });
58
+ //# sourceMappingURL=Spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["memo","ActivityIndicator","View","useReducedMotion","useThemeColors","resolveSpinnerAccessibility","resolveSpinnerTone","spinnerBox","spinnerGlyphScale","jsx","_jsx","Spinner","size","tone","style","testID","accessibilityLabel","colors","reducedMotion","color","a11y","accessible","accessibilityRole","accessibilityState","children","undefined","animating","hidesWhenStopped","accessibilityElementsHidden","importantForAccessibility"],"sourceRoot":"../../../../src","sources":["modules/spinner/Spinner.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,iBAAiB,EAAEC,IAAI,QAAQ,cAAc;AAEtD,SAASC,gBAAgB,QAAQ,0BAAiB;AAElD,SAASC,cAAc,QAAQ,sBAAa;AAE5C,SACEC,2BAA2B,EAC3BC,kBAAkB,EAClBC,UAAU,EACVC,iBAAiB,QACZ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAa5B,OAAO,MAAMC,OAAO,gBAAGX,IAAI,CAAC,SAASW,OAAOA,CAAC;EAC3CC,IAAI,GAAG,IAAI;EACXC,IAAI,GAAG,QAAQ;EACfC,KAAK;EACLC,MAAM;EACNC;AACY,CAAC,EAAE;EACf,MAAMC,MAAM,GAAGb,cAAc,CAAC,CAAC;EAC/B,MAAMc,aAAa,GAAGf,gBAAgB,CAAC,CAAC;EAExC,MAAMgB,KAAK,GAAGb,kBAAkB,CAACW,MAAM,EAAEJ,IAAI,CAAC;EAC9C,MAAMO,IAAI,GAAGf,2BAA2B,CAAC;IAAEW;EAAmB,CAAC,CAAC;EAEhE,oBACEN,IAAA,CAACR,IAAI;IACHa,MAAM,EAAEA,MAAO;IACfM,UAAU;IACVC,iBAAiB,EAAEF,IAAI,CAACE,iBAAkB;IAC1CN,kBAAkB,EAAEI,IAAI,CAACJ,kBAAmB;IAC5CO,kBAAkB,EAAEH,IAAI,CAACG,kBAAmB;IAC5CT,KAAK,EAAE,CAACP,UAAU,CAAC;MAAEK;IAAK,CAAC,CAAC,EAAEE,KAAK,CAAE;IAAAU,QAAA,eAErCd,IAAA,CAACT,iBAAiB;MAChBc,MAAM,EAAEA,MAAM,KAAKU,SAAS,GAAGA,SAAS,GAAG,GAAGV,MAAM,QAAS;MAC7DH,IAAI,EAAC,OAAO;MACZO,KAAK,EAAEA;MACP;MACA;MACA;MACA;MACA;MAAA;MACAO,SAAS,EAAE,CAACR,aAAc;MAC1BS,gBAAgB,EAAE,KAAM;MACxBC,2BAA2B;MAC3BC,yBAAyB,EAAC,qBAAqB;MAC/Cf,KAAK,EAAEN,iBAAiB,CAAC;QAAEI;MAAK,CAAC;IAAE,CACpC;EAAC,CACE,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Spinner's pure resolvers — colour, accessibility, and the size→box/scale mapping. No React, no
5
+ * lucide: same split as `Button.variants.ts`, so the WCAG + behaviour tests import these directly,
6
+ * measuring real palettes instead of eyeballing a hex.
7
+ */
8
+
9
+ import { createVariants } from "../../core/style/index.js";
10
+ /**
11
+ * RN's `<ActivityIndicator>` ships exactly two native sizes, `"small"` (20dp) and `"large"` (36dp)
12
+ * — no continuous control, and a numeric `size` is Android-only (iOS ignores it). Anchoring every
13
+ * size on `"small"` and reaching `md`/`lg` with a `transform: scale` keeps the rendered glyph the
14
+ * same shape on both platforms, rather than jumping to the fixed `"large"` asset partway through
15
+ * the scale. `boxSize` is `20 × scale`: it exists so the WRAPPING box (`spinnerBox` below) reserves
16
+ * exactly the visually-scaled footprint — a `transform` alone repaints the glyph without touching
17
+ * layout, which would leave `lg` overflowing a box a naive implementation still measured at 20dp.
18
+ */
19
+ export const SPINNER_SIZES = {
20
+ sm: {
21
+ boxSize: 16,
22
+ scale: 0.8
23
+ },
24
+ md: {
25
+ boxSize: 20,
26
+ scale: 1
27
+ },
28
+ lg: {
29
+ boxSize: 28,
30
+ scale: 1.4
31
+ }
32
+ };
33
+
34
+ /**
35
+ * Maps `tone` onto ROLE colours — the reason the prop is a closed union and not `color?: string`.
36
+ * `accent` reads the same solid-fill rung `Button`'s solid variant uses; `neutral` is the muted
37
+ * foreground for secondary/inline loading states. Both are measured ≥ 3:1 (WCAG 1.4.11's
38
+ * "Graphical Objects" clause — a spinner is a graphical object required to understand that work is
39
+ * ongoing) against `bg.canvas`, `bg.surface`, AND `bg.raised` on all 8 brands × both modes — see
40
+ * `Spinner.test.ts`.
41
+ */
42
+ export function resolveSpinnerTone(colors, tone) {
43
+ switch (tone) {
44
+ case "accent":
45
+ return colors.accent.solid;
46
+ case "neutral":
47
+ return colors.fg.muted;
48
+ }
49
+ }
50
+ /** A Spinner renders no visible text, so this is what AT announces absent an explicit override. */
51
+ export const DEFAULT_SPINNER_LABEL = "Loading";
52
+
53
+ /**
54
+ * Derives the accessibility surface once, purely, so the fallback label is testable without a
55
+ * renderer. There is no interaction to gate (a Spinner is never pressable) — unlike
56
+ * `resolveButtonAccessibility`, the only decision here is the label fallback; `busy` is always true
57
+ * because a mounted Spinner, by definition, means work is in progress.
58
+ */
59
+ export function resolveSpinnerAccessibility(input) {
60
+ return {
61
+ accessibilityRole: "progressbar",
62
+ accessibilityLabel: input.accessibilityLabel ?? DEFAULT_SPINNER_LABEL,
63
+ accessibilityState: {
64
+ busy: true
65
+ }
66
+ };
67
+ }
68
+
69
+ /**
70
+ * The outer box's structural size — no theme dependency (the dimensions are the component's own
71
+ * fixed design constants, not on the theme's spacing scale), so this uses the untethered
72
+ * `createVariants` rather than `createThemedVariants` (the same reasoning `BUTTON_SIZES` documents
73
+ * for being a plain constant). Centers its child so the scaled glyph (`spinnerGlyphScale` below)
74
+ * sits in the middle of the reserved footprint.
75
+ */
76
+ export const spinnerBox = createVariants({
77
+ base: {
78
+ alignItems: "center",
79
+ justifyContent: "center"
80
+ },
81
+ variants: {
82
+ size: {
83
+ sm: {
84
+ width: SPINNER_SIZES.sm.boxSize,
85
+ height: SPINNER_SIZES.sm.boxSize
86
+ },
87
+ md: {
88
+ width: SPINNER_SIZES.md.boxSize,
89
+ height: SPINNER_SIZES.md.boxSize
90
+ },
91
+ lg: {
92
+ width: SPINNER_SIZES.lg.boxSize,
93
+ height: SPINNER_SIZES.lg.boxSize
94
+ }
95
+ }
96
+ },
97
+ defaultVariants: {
98
+ size: "md"
99
+ }
100
+ });
101
+
102
+ /**
103
+ * The glyph's own visual scale, applied to the `ActivityIndicator` INSIDE `spinnerBox` — never to
104
+ * the box itself (one node can't both declare "I am 28dp" and "scale me 1.4×" without double-
105
+ * applying the enlargement). Registered once via `createVariants`, same reasoning as `spinnerBox`.
106
+ */
107
+ export const spinnerGlyphScale = createVariants({
108
+ variants: {
109
+ size: {
110
+ sm: {
111
+ transform: [{
112
+ scale: SPINNER_SIZES.sm.scale
113
+ }]
114
+ },
115
+ md: {
116
+ transform: [{
117
+ scale: SPINNER_SIZES.md.scale
118
+ }]
119
+ },
120
+ lg: {
121
+ transform: [{
122
+ scale: SPINNER_SIZES.lg.scale
123
+ }]
124
+ }
125
+ }
126
+ },
127
+ defaultVariants: {
128
+ size: "md"
129
+ }
130
+ });
131
+ //# sourceMappingURL=Spinner.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createVariants","SPINNER_SIZES","sm","boxSize","scale","md","lg","resolveSpinnerTone","colors","tone","accent","solid","fg","muted","DEFAULT_SPINNER_LABEL","resolveSpinnerAccessibility","input","accessibilityRole","accessibilityLabel","accessibilityState","busy","spinnerBox","base","alignItems","justifyContent","variants","size","width","height","defaultVariants","spinnerGlyphScale","transform"],"sourceRoot":"../../../../src","sources":["modules/spinner/Spinner.variants.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAGA,SAASA,cAAc,QAAQ,2BAAkB;AAYjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAG;EAC3BC,EAAE,EAAE;IAAEC,OAAO,EAAE,EAAE;IAAEC,KAAK,EAAE;EAAI,CAAC;EAC/BC,EAAE,EAAE;IAAEF,OAAO,EAAE,EAAE;IAAEC,KAAK,EAAE;EAAE,CAAC;EAC7BE,EAAE,EAAE;IAAEH,OAAO,EAAE,EAAE;IAAEC,KAAK,EAAE;EAAI;AAChC,CAAyD;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,kBAAkBA,CAACC,MAAkB,EAAEC,IAAiB,EAAU;EAChF,QAAQA,IAAI;IACV,KAAK,QAAQ;MACX,OAAOD,MAAM,CAACE,MAAM,CAACC,KAAK;IAC5B,KAAK,SAAS;MACZ,OAAOH,MAAM,CAACI,EAAE,CAACC,KAAK;EAC1B;AACF;AAYA;AACA,OAAO,MAAMC,qBAAqB,GAAG,SAAS;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,2BAA2BA,CACzCC,KAAgC,EACL;EAC3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,EAAEH,aAAa,CAACK,EAAE,CAACF;QAAM,CAAC;MAAE;IACvD;EACF,CAAC;EACDyB,eAAe,EAAE;IAAEH,IAAI,EAAE;EAAK;AAChC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Public surface of `pixelize-native-library/spinner`. Value exports and type exports are split for
5
+ * `verbatimModuleSyntax`, mirroring `button/index.ts`. The resolvers (`resolveSpinnerTone`,
6
+ * `SPINNER_SIZES`, …) stay internal — a consumer configures a Spinner through its props only. No
7
+ * `icon` prop, so unlike `button/index.ts` there is no `IconName` re-export.
8
+ */
9
+
10
+ export { Spinner } from "./Spinner.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Spinner"],"sourceRoot":"../../../../src","sources":["modules/spinner/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,cAAW","ignoreList":[]}