alouette 8.0.7 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +133 -0
  2. package/dist/createAlouetteTamagui-browser.es.js +46 -59
  3. package/dist/createAlouetteTamagui-browser.es.js.map +1 -1
  4. package/dist/createAlouetteTamagui-node20.cjs +47 -60
  5. package/dist/createAlouetteTamagui-node20.cjs.map +1 -1
  6. package/dist/createAlouetteTamagui-node20.mjs +47 -60
  7. package/dist/createAlouetteTamagui-node20.mjs.map +1 -1
  8. package/dist/createAlouetteTamagui-react-native.cjs.js +47 -60
  9. package/dist/createAlouetteTamagui-react-native.cjs.js.map +1 -1
  10. package/dist/createAlouetteTamagui-react-native.es.js +47 -60
  11. package/dist/createAlouetteTamagui-react-native.es.js.map +1 -1
  12. package/dist/definitions/components/actions/Button.stories.d.ts.map +1 -1
  13. package/dist/definitions/components/forms/InputText.d.ts +8 -4
  14. package/dist/definitions/components/forms/InputText.d.ts.map +1 -1
  15. package/dist/definitions/components/forms/InputText.stories.d.ts +4 -2
  16. package/dist/definitions/components/forms/InputText.stories.d.ts.map +1 -1
  17. package/dist/definitions/components/primitives/stacks.d.ts +1 -5
  18. package/dist/definitions/components/primitives/stacks.d.ts.map +1 -1
  19. package/dist/definitions/components/typography/Typography.d.ts.map +1 -1
  20. package/dist/definitions/config/colorScales.d.ts +1 -1
  21. package/dist/definitions/config/createAlouetteFonts.d.ts.map +1 -1
  22. package/dist/definitions/config/createAlouetteTokens.d.ts +16 -16
  23. package/dist/definitions/config/themes.d.ts +215 -21
  24. package/dist/definitions/config/themes.d.ts.map +1 -1
  25. package/dist/definitions/core/AlouetteDecorator.d.ts.map +1 -1
  26. package/dist/definitions/core/AlouetteProvider.d.ts +4 -2
  27. package/dist/definitions/core/AlouetteProvider.d.ts.map +1 -1
  28. package/dist/definitions/index.d.ts +1 -1
  29. package/dist/definitions/index.d.ts.map +1 -1
  30. package/dist/index-browser.es.js +75 -36
  31. package/dist/index-browser.es.js.map +1 -1
  32. package/dist/index-node20.cjs +73 -33
  33. package/dist/index-node20.cjs.map +1 -1
  34. package/dist/index-node20.mjs +75 -36
  35. package/dist/index-node20.mjs.map +1 -1
  36. package/dist/index-react-native.cjs.js +73 -33
  37. package/dist/index-react-native.cjs.js.map +1 -1
  38. package/dist/index-react-native.es.js +75 -36
  39. package/dist/index-react-native.es.js.map +1 -1
  40. package/package.json +20 -13
  41. package/src/components/actions/Button.stories.tsx +45 -45
  42. package/src/components/actions/IconButton.stories.tsx +2 -2
  43. package/src/components/forms/InputText.stories.tsx +1 -8
  44. package/src/components/forms/InputText.tsx +24 -18
  45. package/src/components/primitives/stacks.ts +2 -2
  46. package/src/components/story-components/StoryContainer.tsx +1 -1
  47. package/src/components/typography/Typography.tsx +3 -0
  48. package/src/config/colorScales.ts +1 -1
  49. package/src/config/createAlouetteFonts.ts +1 -7
  50. package/src/config/themes.ts +70 -57
  51. package/src/core/AlouetteDecorator.tsx +25 -6
  52. package/src/core/AlouetteProvider.tsx +16 -2
  53. package/src/index.ts +4 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,139 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 10.0.0 (2025-02-01)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * drop node 18
11
+
12
+ ### Features
13
+
14
+ * add disableInjectCSS ([0580216](https://github.com/christophehurpeau/alouette/commit/0580216d01bee3d5917c17f1f42df7fcf0545a5f))
15
+ * add textColor ([f1a3263](https://github.com/christophehurpeau/alouette/commit/f1a32638eb2ba351e7f49a09b82501c1addfc55f))
16
+ * alouette-icons ([924eb6d](https://github.com/christophehurpeau/alouette/commit/924eb6da66cb9689cfc1bb390a810167eb9b5d87))
17
+ * **Button:** add size sm and fix default variant ([9d6e1ab](https://github.com/christophehurpeau/alouette/commit/9d6e1ab1ccc5437a1807e634e270eb9ff258d75d))
18
+ * color scheme ([0704f9a](https://github.com/christophehurpeau/alouette/commit/0704f9ad4a868efef989d7a8412e84d278dfc2a2))
19
+ * **deps:** update dependency @phosphor-icons/core to v2.1.1 ([#14](https://github.com/christophehurpeau/alouette/issues/14)) ([decf7d9](https://github.com/christophehurpeau/alouette/commit/decf7d9cef74838916082e81e9d9a84da1a1c53a))
20
+ * **deps:** update dependency react-native to v0.74.2 ([#15](https://github.com/christophehurpeau/alouette/issues/15)) ([1cee78f](https://github.com/christophehurpeau/alouette/commit/1cee78fa487b3045f33860b2a2fb9a873dfdf0a5))
21
+ * **deps:** update dependency react-native to v0.75.2 ([#61](https://github.com/christophehurpeau/alouette/issues/61)) ([09b2a47](https://github.com/christophehurpeau/alouette/commit/09b2a472ba642defe11ef3eee5ef546ff1bf633f))
22
+ * **deps:** update dependency react-native to v0.77.0 ([#68](https://github.com/christophehurpeau/alouette/issues/68)) ([577dc45](https://github.com/christophehurpeau/alouette/commit/577dc45287c344164317212198c6453d1bde1a74))
23
+ * **deps:** update dependency react-native-svg to v15.11.1 ([#137](https://github.com/christophehurpeau/alouette/issues/137)) ([0630652](https://github.com/christophehurpeau/alouette/commit/063065233926237a36ed9713362d397852fafdff))
24
+ * **deps:** update dependency react-native-svg to v15.7.1 ([#81](https://github.com/christophehurpeau/alouette/issues/81)) ([9e2dac7](https://github.com/christophehurpeau/alouette/commit/9e2dac7dcd04fd6d3d7785371813d0a8453b2912))
25
+ * **deps:** update dependency react-native-svg to v15.9.0 ([#97](https://github.com/christophehurpeau/alouette/issues/97)) ([9708d65](https://github.com/christophehurpeau/alouette/commit/9708d65227f41c6a63c1eaebdccc08954b1859e4))
26
+ * **deps:** update dependency type-fest to v4.26.0 ([#47](https://github.com/christophehurpeau/alouette/issues/47)) ([7493b0e](https://github.com/christophehurpeau/alouette/commit/7493b0edc4a8a4ffd3761576d0ca1a121e774ce7))
27
+ * **deps:** update dependency type-fest to v4.27.1 ([#106](https://github.com/christophehurpeau/alouette/issues/106)) ([017ecef](https://github.com/christophehurpeau/alouette/commit/017ecef48d136a11cf741150c8a5d9c9440df6b7))
28
+ * **deps:** update dependency type-fest to v4.28.0 ([#109](https://github.com/christophehurpeau/alouette/issues/109)) ([2723fc5](https://github.com/christophehurpeau/alouette/commit/2723fc56620a6aded5402162eff1e5a85a3eeb50))
29
+ * **deps:** update tamagui to v1.101.0 ([#28](https://github.com/christophehurpeau/alouette/issues/28)) ([df1cc36](https://github.com/christophehurpeau/alouette/commit/df1cc36366d4fb102a22b5f8c4bb498970836e07))
30
+ * **deps:** update tamagui to v1.110.2 ([#53](https://github.com/christophehurpeau/alouette/issues/53)) ([5638c4c](https://github.com/christophehurpeau/alouette/commit/5638c4c687432e9d2c2a7fdc1931502843fe3370))
31
+ * **deps:** update tamagui to v1.112.0 ([#73](https://github.com/christophehurpeau/alouette/issues/73)) ([11debab](https://github.com/christophehurpeau/alouette/commit/11debabc2a07e70607c6b2675c371a05afcb487f))
32
+ * **deps:** update tamagui to v1.117.0 ([#88](https://github.com/christophehurpeau/alouette/issues/88)) ([7d94ca0](https://github.com/christophehurpeau/alouette/commit/7d94ca0e722579c33a1dbe93e72c2eb9924ce542))
33
+ * **IconButton:** add size story section ([ddd03e4](https://github.com/christophehurpeau/alouette/commit/ddd03e4076d42bc1169b13ba43f679f2d6d85adc))
34
+ * improvements and new components ([335f060](https://github.com/christophehurpeau/alouette/commit/335f06086a3eae528e8f351ad6bf5b94cdc4c612))
35
+ * initial design system with storybook ([6d790b3](https://github.com/christophehurpeau/alouette/commit/6d790b35641bb740c3a569f5bac1ee32839244c7))
36
+ * update dependencies and build cjs ([121ed87](https://github.com/christophehurpeau/alouette/commit/121ed8748bed730826d206160399af2f1eae63fa))
37
+ * work on themes and ts ([dd8604c](https://github.com/christophehurpeau/alouette/commit/dd8604cc4cc6b0aba616ce29f03447b4d5306fb5))
38
+
39
+ ### Bug Fixes
40
+
41
+ * add createAlouetteTamagui.js in files ([9d88c7e](https://github.com/christophehurpeau/alouette/commit/9d88c7e966e43aa4af3a257e74394b8619786dcd))
42
+ * add missing flexwrap in storybook ([42e6d4a](https://github.com/christophehurpeau/alouette/commit/42e6d4a7621ab4c155038b54e9b67625004edd72))
43
+ * add missing peerdep react-dom ([4c93bf1](https://github.com/christophehurpeau/alouette/commit/4c93bf1d8514b36da791c99647789524a67d55fd))
44
+ * build node for react-native ([c050f74](https://github.com/christophehurpeau/alouette/commit/c050f74899de0bc97758bdecc00b880dbad2f865))
45
+ * **deps:** update dependency react-native to v0.74.3 ([#42](https://github.com/christophehurpeau/alouette/issues/42)) ([844da1f](https://github.com/christophehurpeau/alouette/commit/844da1f99b03c91060d71534594201dec987f661))
46
+ * **deps:** update dependency react-native-svg to v15.10.1 ([#120](https://github.com/christophehurpeau/alouette/issues/120)) ([66ccff7](https://github.com/christophehurpeau/alouette/commit/66ccff7556dc0bbdee4c7571bb62dcd848a0c623))
47
+ * **deps:** update dependency type-fest to v4.26.1 ([#64](https://github.com/christophehurpeau/alouette/issues/64)) ([04f79ff](https://github.com/christophehurpeau/alouette/commit/04f79ff9821193ecf06d0563a90161bd54ae208b))
48
+ * **deps:** update dependency type-fest to v4.30.1 ([#130](https://github.com/christophehurpeau/alouette/issues/130)) ([45e3cb7](https://github.com/christophehurpeau/alouette/commit/45e3cb7dcc76bce482b1a74e17680f97b4c02074))
49
+ * **deps:** update tamagui to v1.100.6 ([#26](https://github.com/christophehurpeau/alouette/issues/26)) ([52fb809](https://github.com/christophehurpeau/alouette/commit/52fb809d954bd6116ddf5a35c3f43877d6f06867))
50
+ * **deps:** update tamagui to v1.101.1 ([#31](https://github.com/christophehurpeau/alouette/issues/31)) ([fb8999a](https://github.com/christophehurpeau/alouette/commit/fb8999aa3e8138e4419c05f8abc14429272a128b))
51
+ * **deps:** update tamagui to v1.101.3 ([#32](https://github.com/christophehurpeau/alouette/issues/32)) ([15ad21b](https://github.com/christophehurpeau/alouette/commit/15ad21bad60b07c349432fe1b458b538e8f117c6))
52
+ * **deps:** update tamagui to v1.101.5 ([#40](https://github.com/christophehurpeau/alouette/issues/40)) ([a538c10](https://github.com/christophehurpeau/alouette/commit/a538c10caba04e94f2729521295bb84c32b3fda3))
53
+ * **deps:** update tamagui to v1.101.6 ([#43](https://github.com/christophehurpeau/alouette/issues/43)) ([38996b8](https://github.com/christophehurpeau/alouette/commit/38996b874f2ca72dee0e768d88d87257ccd91c0a))
54
+ * **deps:** update tamagui to v1.101.7 ([#44](https://github.com/christophehurpeau/alouette/issues/44)) ([2ee5352](https://github.com/christophehurpeau/alouette/commit/2ee53525a49b0a693f7032f2b0e07471a8e58c0e))
55
+ * **deps:** update tamagui to v1.121.9 ([#107](https://github.com/christophehurpeau/alouette/issues/107)) ([080f004](https://github.com/christophehurpeau/alouette/commit/080f004d01fb2289fb947595b307f3bc378f5ca9))
56
+ * fix borderWidth ([4771470](https://github.com/christophehurpeau/alouette/commit/4771470de9bf60ed866d77eac181dc9cde06e6c7))
57
+ * fix build and other issues ([c61594c](https://github.com/christophehurpeau/alouette/commit/c61594caf742766d5e26cffb5c4d1a9bfffcc98f))
58
+ * fix deprecated property ([b350114](https://github.com/christophehurpeau/alouette/commit/b350114bdbb82249c5b791ad77e92a7baf5d43bf))
59
+ * fix dist for web ([43ddeaf](https://github.com/christophehurpeau/alouette/commit/43ddeaf1efc4989d56b248aa91aa667cdb418fa3))
60
+ * fix for react-native update ([2d642c0](https://github.com/christophehurpeau/alouette/commit/2d642c0d42feb54275fd1b7db7309e8fb28cc96d))
61
+ * fix require path for createAlouetteTamagui ([861c551](https://github.com/christophehurpeau/alouette/commit/861c551bff575a3445f6402afb200a108ef45a36))
62
+ * move react-native before browser ([27265f9](https://github.com/christophehurpeau/alouette/commit/27265f9f89e5692d4a1b39b25c6b1817b0b73792))
63
+ * only react-native-web for browser ([33c8f6e](https://github.com/christophehurpeau/alouette/commit/33c8f6e7446772ed58a54cc9f18f6bcb2b40612f))
64
+ * use View for HStack and VStack ([999dff6](https://github.com/christophehurpeau/alouette/commit/999dff604ddf1b5e503af46d8f41e2f3f8899107))
65
+
66
+ ### Miscellaneous Chores
67
+
68
+ * update dev dependencies and update to node 20 ([28885df](https://github.com/christophehurpeau/alouette/commit/28885dfe4fae18e4159ec3c9fab23a7fc738b6c0))
69
+
70
+ Version bump for dependency: alouette-icons
71
+
72
+
73
+ ## 9.0.0 (2025-02-01)
74
+
75
+ ### ⚠ BREAKING CHANGES
76
+
77
+ * drop node 18
78
+
79
+ ### Features
80
+
81
+ * add textColor ([f1a3263](https://github.com/christophehurpeau/alouette/commit/f1a32638eb2ba351e7f49a09b82501c1addfc55f))
82
+ * alouette-icons ([924eb6d](https://github.com/christophehurpeau/alouette/commit/924eb6da66cb9689cfc1bb390a810167eb9b5d87))
83
+ * **Button:** add size sm and fix default variant ([9d6e1ab](https://github.com/christophehurpeau/alouette/commit/9d6e1ab1ccc5437a1807e634e270eb9ff258d75d))
84
+ * color scheme ([0704f9a](https://github.com/christophehurpeau/alouette/commit/0704f9ad4a868efef989d7a8412e84d278dfc2a2))
85
+ * **deps:** update dependency @phosphor-icons/core to v2.1.1 ([#14](https://github.com/christophehurpeau/alouette/issues/14)) ([decf7d9](https://github.com/christophehurpeau/alouette/commit/decf7d9cef74838916082e81e9d9a84da1a1c53a))
86
+ * **deps:** update dependency react-native to v0.74.2 ([#15](https://github.com/christophehurpeau/alouette/issues/15)) ([1cee78f](https://github.com/christophehurpeau/alouette/commit/1cee78fa487b3045f33860b2a2fb9a873dfdf0a5))
87
+ * **deps:** update dependency react-native to v0.75.2 ([#61](https://github.com/christophehurpeau/alouette/issues/61)) ([09b2a47](https://github.com/christophehurpeau/alouette/commit/09b2a472ba642defe11ef3eee5ef546ff1bf633f))
88
+ * **deps:** update dependency react-native to v0.77.0 ([#68](https://github.com/christophehurpeau/alouette/issues/68)) ([577dc45](https://github.com/christophehurpeau/alouette/commit/577dc45287c344164317212198c6453d1bde1a74))
89
+ * **deps:** update dependency react-native-svg to v15.11.1 ([#137](https://github.com/christophehurpeau/alouette/issues/137)) ([0630652](https://github.com/christophehurpeau/alouette/commit/063065233926237a36ed9713362d397852fafdff))
90
+ * **deps:** update dependency react-native-svg to v15.7.1 ([#81](https://github.com/christophehurpeau/alouette/issues/81)) ([9e2dac7](https://github.com/christophehurpeau/alouette/commit/9e2dac7dcd04fd6d3d7785371813d0a8453b2912))
91
+ * **deps:** update dependency react-native-svg to v15.9.0 ([#97](https://github.com/christophehurpeau/alouette/issues/97)) ([9708d65](https://github.com/christophehurpeau/alouette/commit/9708d65227f41c6a63c1eaebdccc08954b1859e4))
92
+ * **deps:** update dependency type-fest to v4.26.0 ([#47](https://github.com/christophehurpeau/alouette/issues/47)) ([7493b0e](https://github.com/christophehurpeau/alouette/commit/7493b0edc4a8a4ffd3761576d0ca1a121e774ce7))
93
+ * **deps:** update dependency type-fest to v4.27.1 ([#106](https://github.com/christophehurpeau/alouette/issues/106)) ([017ecef](https://github.com/christophehurpeau/alouette/commit/017ecef48d136a11cf741150c8a5d9c9440df6b7))
94
+ * **deps:** update dependency type-fest to v4.28.0 ([#109](https://github.com/christophehurpeau/alouette/issues/109)) ([2723fc5](https://github.com/christophehurpeau/alouette/commit/2723fc56620a6aded5402162eff1e5a85a3eeb50))
95
+ * **deps:** update tamagui to v1.101.0 ([#28](https://github.com/christophehurpeau/alouette/issues/28)) ([df1cc36](https://github.com/christophehurpeau/alouette/commit/df1cc36366d4fb102a22b5f8c4bb498970836e07))
96
+ * **deps:** update tamagui to v1.110.2 ([#53](https://github.com/christophehurpeau/alouette/issues/53)) ([5638c4c](https://github.com/christophehurpeau/alouette/commit/5638c4c687432e9d2c2a7fdc1931502843fe3370))
97
+ * **deps:** update tamagui to v1.112.0 ([#73](https://github.com/christophehurpeau/alouette/issues/73)) ([11debab](https://github.com/christophehurpeau/alouette/commit/11debabc2a07e70607c6b2675c371a05afcb487f))
98
+ * **deps:** update tamagui to v1.117.0 ([#88](https://github.com/christophehurpeau/alouette/issues/88)) ([7d94ca0](https://github.com/christophehurpeau/alouette/commit/7d94ca0e722579c33a1dbe93e72c2eb9924ce542))
99
+ * **IconButton:** add size story section ([ddd03e4](https://github.com/christophehurpeau/alouette/commit/ddd03e4076d42bc1169b13ba43f679f2d6d85adc))
100
+ * improvements and new components ([335f060](https://github.com/christophehurpeau/alouette/commit/335f06086a3eae528e8f351ad6bf5b94cdc4c612))
101
+ * initial design system with storybook ([6d790b3](https://github.com/christophehurpeau/alouette/commit/6d790b35641bb740c3a569f5bac1ee32839244c7))
102
+ * update dependencies and build cjs ([121ed87](https://github.com/christophehurpeau/alouette/commit/121ed8748bed730826d206160399af2f1eae63fa))
103
+ * work on themes and ts ([dd8604c](https://github.com/christophehurpeau/alouette/commit/dd8604cc4cc6b0aba616ce29f03447b4d5306fb5))
104
+
105
+ ### Bug Fixes
106
+
107
+ * add createAlouetteTamagui.js in files ([9d88c7e](https://github.com/christophehurpeau/alouette/commit/9d88c7e966e43aa4af3a257e74394b8619786dcd))
108
+ * add missing flexwrap in storybook ([42e6d4a](https://github.com/christophehurpeau/alouette/commit/42e6d4a7621ab4c155038b54e9b67625004edd72))
109
+ * add missing peerdep react-dom ([4c93bf1](https://github.com/christophehurpeau/alouette/commit/4c93bf1d8514b36da791c99647789524a67d55fd))
110
+ * build node for react-native ([c050f74](https://github.com/christophehurpeau/alouette/commit/c050f74899de0bc97758bdecc00b880dbad2f865))
111
+ * **deps:** update dependency react-native to v0.74.3 ([#42](https://github.com/christophehurpeau/alouette/issues/42)) ([844da1f](https://github.com/christophehurpeau/alouette/commit/844da1f99b03c91060d71534594201dec987f661))
112
+ * **deps:** update dependency react-native-svg to v15.10.1 ([#120](https://github.com/christophehurpeau/alouette/issues/120)) ([66ccff7](https://github.com/christophehurpeau/alouette/commit/66ccff7556dc0bbdee4c7571bb62dcd848a0c623))
113
+ * **deps:** update dependency type-fest to v4.26.1 ([#64](https://github.com/christophehurpeau/alouette/issues/64)) ([04f79ff](https://github.com/christophehurpeau/alouette/commit/04f79ff9821193ecf06d0563a90161bd54ae208b))
114
+ * **deps:** update dependency type-fest to v4.30.1 ([#130](https://github.com/christophehurpeau/alouette/issues/130)) ([45e3cb7](https://github.com/christophehurpeau/alouette/commit/45e3cb7dcc76bce482b1a74e17680f97b4c02074))
115
+ * **deps:** update tamagui to v1.100.6 ([#26](https://github.com/christophehurpeau/alouette/issues/26)) ([52fb809](https://github.com/christophehurpeau/alouette/commit/52fb809d954bd6116ddf5a35c3f43877d6f06867))
116
+ * **deps:** update tamagui to v1.101.1 ([#31](https://github.com/christophehurpeau/alouette/issues/31)) ([fb8999a](https://github.com/christophehurpeau/alouette/commit/fb8999aa3e8138e4419c05f8abc14429272a128b))
117
+ * **deps:** update tamagui to v1.101.3 ([#32](https://github.com/christophehurpeau/alouette/issues/32)) ([15ad21b](https://github.com/christophehurpeau/alouette/commit/15ad21bad60b07c349432fe1b458b538e8f117c6))
118
+ * **deps:** update tamagui to v1.101.5 ([#40](https://github.com/christophehurpeau/alouette/issues/40)) ([a538c10](https://github.com/christophehurpeau/alouette/commit/a538c10caba04e94f2729521295bb84c32b3fda3))
119
+ * **deps:** update tamagui to v1.101.6 ([#43](https://github.com/christophehurpeau/alouette/issues/43)) ([38996b8](https://github.com/christophehurpeau/alouette/commit/38996b874f2ca72dee0e768d88d87257ccd91c0a))
120
+ * **deps:** update tamagui to v1.101.7 ([#44](https://github.com/christophehurpeau/alouette/issues/44)) ([2ee5352](https://github.com/christophehurpeau/alouette/commit/2ee53525a49b0a693f7032f2b0e07471a8e58c0e))
121
+ * **deps:** update tamagui to v1.121.9 ([#107](https://github.com/christophehurpeau/alouette/issues/107)) ([080f004](https://github.com/christophehurpeau/alouette/commit/080f004d01fb2289fb947595b307f3bc378f5ca9))
122
+ * fix borderWidth ([4771470](https://github.com/christophehurpeau/alouette/commit/4771470de9bf60ed866d77eac181dc9cde06e6c7))
123
+ * fix build and other issues ([c61594c](https://github.com/christophehurpeau/alouette/commit/c61594caf742766d5e26cffb5c4d1a9bfffcc98f))
124
+ * fix deprecated property ([b350114](https://github.com/christophehurpeau/alouette/commit/b350114bdbb82249c5b791ad77e92a7baf5d43bf))
125
+ * fix dist for web ([43ddeaf](https://github.com/christophehurpeau/alouette/commit/43ddeaf1efc4989d56b248aa91aa667cdb418fa3))
126
+ * fix for react-native update ([2d642c0](https://github.com/christophehurpeau/alouette/commit/2d642c0d42feb54275fd1b7db7309e8fb28cc96d))
127
+ * fix require path for createAlouetteTamagui ([861c551](https://github.com/christophehurpeau/alouette/commit/861c551bff575a3445f6402afb200a108ef45a36))
128
+ * move react-native before browser ([27265f9](https://github.com/christophehurpeau/alouette/commit/27265f9f89e5692d4a1b39b25c6b1817b0b73792))
129
+ * only react-native-web for browser ([33c8f6e](https://github.com/christophehurpeau/alouette/commit/33c8f6e7446772ed58a54cc9f18f6bcb2b40612f))
130
+ * use View for HStack and VStack ([999dff6](https://github.com/christophehurpeau/alouette/commit/999dff604ddf1b5e503af46d8f41e2f3f8899107))
131
+
132
+ ### Miscellaneous Chores
133
+
134
+ * update dev dependencies and update to node 20 ([28885df](https://github.com/christophehurpeau/alouette/commit/28885dfe4fae18e4159ec3c9fab23a7fc738b6c0))
135
+
136
+ Version bump for dependency: alouette-icons
137
+
138
+
6
139
  ## [8.0.7](https://github.com/christophehurpeau/alouette/compare/alouette@8.0.6...alouette@8.0.7) (2024-12-05)
7
140
 
8
141
  ### Bug Fixes
@@ -8,13 +8,7 @@ const animations = createAnimations({
8
8
  });
9
9
  console.log("animations: web");
10
10
 
11
- const defaultHeadingFontSizes = {
12
- xl: 48,
13
- lg: 40,
14
- md: 32,
15
- sm: 24,
16
- xs: 18
17
- };
11
+ const defaultHeadingFontSizes = { xl: 48, lg: 40, md: 32, sm: 24, xs: 18 };
18
12
  const defaultBodyFontSizes = { xl: 24, lg: 18, md: 16, sm: 14, xs: 12 };
19
13
  const roundWith1Precision = (value) => Math.round(value * 10) / 10;
20
14
  const createAlouetteFonts = ({
@@ -146,12 +140,37 @@ const createAlouetteTokens = (colorScales, { spacing = 4 } = {}) => {
146
140
  });
147
141
  };
148
142
 
149
- const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, contrastTextColor) => {
143
+ const darkModeScaleNumbers = {
144
+ 1: 10,
145
+ 2: 9,
146
+ 3: 8,
147
+ 4: 7,
148
+ 5: 6,
149
+ 6: 5,
150
+ 7: 4,
151
+ 8: 3,
152
+ 9: 2,
153
+ 10: 1
154
+ };
155
+ const createColorTheme = (tokens, colorScaleName, mode = "light", backgroundColor, textColor, contrastTextColor) => {
150
156
  const alouetteTokens = tokens;
151
- if (!backgroundColor) backgroundColor = alouetteTokens.color.white;
152
- if (!textColor) textColor = alouetteTokens.color.black;
153
- if (!contrastTextColor) contrastTextColor = alouetteTokens.color.white;
154
- const getColor = (scaleNumber) => tokens.color[`${colorScaleName}.${scaleNumber}`];
157
+ if (!backgroundColor) {
158
+ backgroundColor = mode === "dark" ? alouetteTokens.color.black : alouetteTokens.color.white;
159
+ }
160
+ if (!textColor) {
161
+ textColor = mode === "dark" ? alouetteTokens.color.white : alouetteTokens.color.black;
162
+ }
163
+ if (!contrastTextColor) {
164
+ if (colorScaleName === "grayscale") {
165
+ contrastTextColor = mode === "dark" ? alouetteTokens.color.white : alouetteTokens.color.black;
166
+ } else {
167
+ contrastTextColor = mode === "dark" ? alouetteTokens.color.black : alouetteTokens.color.white;
168
+ }
169
+ }
170
+ const getColor = (lightScaleNumber) => {
171
+ const scaleNumber = mode === "dark" ? darkModeScaleNumbers[lightScaleNumber] : lightScaleNumber;
172
+ return tokens.color[`${colorScaleName}.${scaleNumber}`];
173
+ };
155
174
  return {
156
175
  backgroundColor,
157
176
  textColor,
@@ -160,10 +179,10 @@ const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, co
160
179
  contrastTextColor,
161
180
  borderColor: getColor(8),
162
181
  "interactive.contained.backgroundColor": getColor(5),
163
- "interactive.borderColor": getColor(8),
182
+ "interactive.borderColor": getColor(mode === "dark" ? 5 : 8),
164
183
  "interactive.contained.backgroundColor:hover": getColor(4),
165
184
  "interactive.outlined.backgroundColor:hover": getColor(1),
166
- "interactive.borderColor:hover": getColor(7),
185
+ "interactive.borderColor:hover": getColor(mode === "dark" ? 5 : 7),
167
186
  "interactive.contained.backgroundColor:focus": getColor(4),
168
187
  "interactive.outlined.backgroundColor:focus": getColor(1),
169
188
  "interactive.borderColor:focus": getColor(7),
@@ -174,6 +193,7 @@ const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, co
174
193
  "interactive.borderColor:disabled": alouetteTokens.color.disabled,
175
194
  "interactive.textColor:disabled": alouetteTokens.color.contrastDisabled,
176
195
  "interactive.forms.textColor": textColor,
196
+ "interactive.forms.placeholderTextColor": alouetteTokens.color.disabled,
177
197
  // "interactive.forms.backgroundColor": undefined,
178
198
  // "interactive.forms.backgroundColor:hover": undefined,
179
199
  "interactive.forms.backgroundColor:focus": getColor(1),
@@ -188,51 +208,18 @@ const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, co
188
208
  const createAlouetteThemes = (tokens) => {
189
209
  const alouetteTokens = tokens;
190
210
  return {
191
- light: createColorTheme(
192
- alouetteTokens,
193
- "grayscale",
194
- alouetteTokens.color.white,
195
- alouetteTokens.color.black
196
- ),
197
- light_info: createColorTheme(alouetteTokens, "info"),
198
- light_success: createColorTheme(alouetteTokens, "success"),
199
- light_warning: createColorTheme(alouetteTokens, "warning"),
200
- light_danger: createColorTheme(alouetteTokens, "danger"),
201
- light_primary: createColorTheme(alouetteTokens, "primary")
202
- // dark: createRootTheme({
203
- // backgroundColor: alouetteTokens.color.black,
204
- // textColor: alouetteTokens.color.white,
205
- // }),
206
- // dark_info: createColorTheme(
207
- // alouetteTokens,
208
- // "info",
209
- // alouetteTokens.color.black,
210
- // alouetteTokens.color.white,
211
- // ),
212
- // dark_success: createColorTheme(
213
- // alouetteTokens,
214
- // "success",
215
- // alouetteTokens.color.black,
216
- // alouetteTokens.color.white,
217
- // ),
218
- // dark_warning: createColorTheme(
219
- // alouetteTokens,
220
- // "warning",
221
- // alouetteTokens.color.black,
222
- // alouetteTokens.color.white,
223
- // ),
224
- // dark_danger: createColorTheme(
225
- // alouetteTokens,
226
- // "danger",
227
- // alouetteTokens.color.black,
228
- // alouetteTokens.color.white,
229
- // ),
230
- // dark_primary: createColorTheme(
231
- // alouetteTokens,
232
- // "primary",
233
- // alouetteTokens.color.black,
234
- // alouetteTokens.color.white,
235
- // ),
211
+ light: createColorTheme(alouetteTokens, "grayscale", "light"),
212
+ light_info: createColorTheme(alouetteTokens, "info", "light"),
213
+ light_success: createColorTheme(alouetteTokens, "success", "light"),
214
+ light_warning: createColorTheme(alouetteTokens, "warning", "light"),
215
+ light_danger: createColorTheme(alouetteTokens, "danger", "light"),
216
+ light_primary: createColorTheme(alouetteTokens, "primary", "light"),
217
+ dark: createColorTheme(alouetteTokens, "grayscale", "dark"),
218
+ dark_info: createColorTheme(alouetteTokens, "info", "dark"),
219
+ dark_success: createColorTheme(alouetteTokens, "success", "dark"),
220
+ dark_warning: createColorTheme(alouetteTokens, "warning", "dark"),
221
+ dark_danger: createColorTheme(alouetteTokens, "danger", "dark"),
222
+ dark_primary: createColorTheme(alouetteTokens, "primary", "dark")
236
223
  };
237
224
  };
238
225
 
@@ -1 +1 @@
1
- {"version":3,"file":"createAlouetteTamagui-browser.es.js","sources":["../src/config/animations.web.ts","../src/config/createAlouetteFonts.ts","../src/config/Breakpoints.ts","../src/config/media.ts","../src/config/createAlouetteTokens.ts","../src/config/themes.ts","../src/config/colorScales.ts","../src/createAlouetteTamagui.ts"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-css\";\n\nexport const animations = createAnimations({\n fast: \"ease-in 150ms\",\n formElement: \"ease-in 600ms\",\n});\nconsole.log(\"animations: web\");\n","import { createFont } from \"@tamagui/core\";\n\nconst defaultHeadingFontSizes = {\n xl: 48,\n lg: 40,\n md: 32,\n sm: 24,\n xs: 18,\n};\nconst defaultBodyFontSizes = { xl: 24, lg: 18, md: 16, sm: 14, xs: 12 };\n\nconst roundWith1Precision = (value: number): number =>\n Math.round(value * 10) / 10;\n\nexport interface AlouetteFontsOptions {\n headingFontFamily?: string;\n headingFontSizes?: typeof defaultHeadingFontSizes;\n bodyFontFamily?: string;\n bodyFontSizes?: typeof defaultBodyFontSizes;\n}\n\nexport const createAlouetteFonts = ({\n headingFontFamily = \"Inter\",\n headingFontSizes = defaultHeadingFontSizes,\n bodyFontFamily = \"Inter\",\n bodyFontSizes = defaultBodyFontSizes,\n}: AlouetteFontsOptions = {}) => ({\n heading: createFont({\n family: headingFontFamily,\n weight: {\n regular: \"400\",\n bold: \"700\",\n black: \"900\",\n },\n face: {\n 400: { normal: `${headingFontFamily}Regular` },\n 700: { normal: `${headingFontFamily}Bold` },\n 900: { normal: `${headingFontFamily}Black` },\n },\n size: headingFontSizes,\n lineHeight: {\n xl: roundWith1Precision(1.1 * headingFontSizes.xl),\n lg: roundWith1Precision(1.1 * headingFontSizes.lg),\n md: roundWith1Precision(1.2 * headingFontSizes.md),\n sm: roundWith1Precision(1.3 * headingFontSizes.sm),\n xs: roundWith1Precision(1.3 * headingFontSizes.xs),\n },\n }),\n body: createFont({\n family: bodyFontFamily,\n weight: {\n regular: \"400\",\n bold: \"700\",\n black: \"900\",\n },\n face: {\n 400: { normal: `${bodyFontFamily}Regular` },\n 700: { normal: `${bodyFontFamily}Bold` },\n 900: { normal: `${bodyFontFamily}Black` },\n },\n size: bodyFontSizes,\n lineHeight: {\n xl: roundWith1Precision(1.4 * bodyFontSizes.xl),\n lg: roundWith1Precision(1.4 * bodyFontSizes.lg),\n md: roundWith1Precision(1.4 * bodyFontSizes.md),\n sm: roundWith1Precision(1.4 * bodyFontSizes.sm),\n xs: roundWith1Precision(1.4 * bodyFontSizes.xs),\n },\n }),\n});\n","export const Breakpoints = {\n /**\n * min-width: 0\n */\n BASE: 0,\n /**\n * min-width: 480px\n */\n SMALL: 480,\n /**\n * min-width: 768px\n */\n MEDIUM: 768,\n /**\n * min-width: 1024px\n */\n LARGE: 1024,\n /**\n * min-width: 1280px\n */\n WIDE: 1280,\n} as const;\n\nexport type Breakpoint = (typeof Breakpoints)[keyof typeof Breakpoints];\nexport type BreakpointNames = \"base\" | \"large\" | \"medium\" | \"small\" | \"wide\";\n\nexport enum BreakpointNameEnum {\n BASE = \"base\",\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n WIDE = \"wide\",\n}\n","import { createMedia } from \"@tamagui/react-native-media-driver\";\nimport { Breakpoints } from \"./Breakpoints\";\n\nexport const media = createMedia({\n small: { minWidth: Breakpoints.SMALL },\n medium: { minWidth: Breakpoints.MEDIUM },\n large: { minWidth: Breakpoints.LARGE },\n wide: { minWidth: Breakpoints.WIDE },\n} as const);\n","import { createTokens } from \"@tamagui/core\";\nimport type { IntRange } from \"type-fest\";\nimport type {\n AlouetteColorScaleNumber,\n AlouetteColorScales,\n} from \"./colorScales\";\n\ntype AlouetteSize = IntRange<0, 64>;\ntype NegativeAlouetteSize = `-${AlouetteSize}`;\ntype AlouetteSizeRecord = Record<AlouetteSize, number>;\ntype NegativeAlouetteSizeRecord = Record<NegativeAlouetteSize, number>;\n\nconst createAlouetteSizes = <const N extends boolean>(\n spacing: number,\n negative: N,\n): N extends true ? NegativeAlouetteSizeRecord : AlouetteSizeRecord => {\n const MAX_SIZE = 64;\n const sizes: Partial<\n N extends true ? NegativeAlouetteSizeRecord : AlouetteSizeRecord\n > = {};\n for (let size = 0; size <= MAX_SIZE; size++) {\n (sizes as any)[negative ? `-${size}` : `${size}`] = size * spacing;\n }\n return sizes as N extends true\n ? NegativeAlouetteSizeRecord\n : AlouetteSizeRecord;\n};\n\ntype ColorScaleTokens<ColorScales extends AlouetteColorScales> = {\n [K in string &\n keyof ColorScales as `${K}.${AlouetteColorScaleNumber}`]: string; //(typeof colorScales)[K][AlouetteColorScaleNumber];\n};\n\nconst transformColorScalesToTokens = <ColorScales extends AlouetteColorScales>(\n colorScales: ColorScales,\n): ColorScaleTokens<ColorScales> => {\n return Object.fromEntries(\n Object.entries(colorScales).flatMap(([colorName, colorScale]) => {\n return Object.entries(colorScale).map(([scaleNumber, colorValue]) => {\n return [`${colorName}.${scaleNumber}`, colorValue];\n });\n }),\n ) as ColorScaleTokens<ColorScales>;\n};\n\nexport interface AlouetteTokensOptions {\n spacing?: number;\n}\n\nexport const createAlouetteTokens = <\n const ColorScales extends AlouetteColorScales,\n>(\n colorScales: ColorScales,\n { spacing = 4 }: AlouetteTokensOptions = {},\n) => {\n const sizes: AlouetteSizeRecord = createAlouetteSizes(spacing, false);\n const negativeSizes: NegativeAlouetteSizeRecord = createAlouetteSizes(\n -spacing,\n true,\n );\n\n return createTokens({\n color: {\n black: \"#000000\",\n white: \"#ffffff\",\n disabled: colorScales.grayscale[3],\n contrastDisabled: colorScales.grayscale[7],\n ...transformColorScalesToTokens(colorScales),\n },\n radius: {\n ...sizes,\n xs: spacing * 2,\n sm: spacing * 4,\n md: spacing * 8,\n },\n space: {\n ...sizes,\n ...negativeSizes,\n xs: spacing * 2,\n sm: spacing * 4,\n md: spacing * 8,\n },\n size: { ...sizes },\n zIndex: {},\n } as const);\n};\n","/* eslint-disable camelcase */\nimport type { Variable } from \"@tamagui/core\";\nimport type { AlouetteColorScales } from \"./colorScales\";\nimport type { createAlouetteTokens } from \"./createAlouetteTokens\";\n\n// export interface MinimalRootTheme {\n// backgroundColor: Variable<string>;\n// textColor: Variable<string>;\n// }\n\n// export interface RootTheme {\n// backgroundColor: Variable<string>;\n// textColor: Variable<string>;\n// }\n\nexport interface ColorTheme {\n backgroundColor: Variable<string>;\n textColor: Variable<string>;\n mainColor: Variable<string>;\n mainTextColor: Variable<string>;\n contrastTextColor: Variable<string>;\n borderColor: Variable<string>;\n\n \"interactive.contained.backgroundColor\": Variable<string>;\n \"interactive.borderColor\": Variable<string>;\n\n \"interactive.contained.backgroundColor:hover\": Variable<string>;\n \"interactive.outlined.backgroundColor:hover\": Variable<string>;\n \"interactive.borderColor:hover\": Variable<string>;\n\n \"interactive.contained.backgroundColor:focus\": Variable<string>;\n \"interactive.outlined.backgroundColor:focus\": Variable<string>;\n \"interactive.borderColor:focus\": Variable<string>;\n\n \"interactive.contained.backgroundColor:press\": Variable<string>;\n \"interactive.outlined.backgroundColor:press\": Variable<string>;\n \"interactive.borderColor:press\": Variable<string>;\n\n \"interactive.contained.backgroundColor:disabled\": Variable<string>;\n \"interactive.borderColor:disabled\": Variable<string>;\n \"interactive.textColor:disabled\": Variable<string>;\n\n \"interactive.forms.textColor\": Variable<string>;\n // \"interactive.forms.backgroundColor\": Variable<string>,\n // \"interactive.forms.backgroundColor:hover\": Variable<string>,\n \"interactive.forms.backgroundColor:focus\": Variable<string>;\n \"interactive.forms.backgroundColor:press\": Variable<string>;\n \"interactive.forms.borderColor\": Variable<string>;\n \"interactive.forms.borderColor:hover\": Variable<string>;\n \"interactive.forms.borderColor:focus\": Variable<string>;\n \"interactive.forms.borderColor:press\": Variable<string>;\n \"interactive.forms.borderColor:disabled\": Variable<string>;\n}\n\n// export interface FullTheme extends ColorTheme, RootTheme {}\nexport type FullTheme = ColorTheme;\n\n// export const createRootTheme = <T extends MinimalRootTheme>(\n// theme: T,\n// ): FullTheme => {\n// return theme satisfies RootTheme as unknown as FullTheme;\n// };\n\nexport const createColorTheme = <const ColorScales extends AlouetteColorScales>(\n tokens: ReturnType<typeof createAlouetteTokens<ColorScales>>,\n colorScaleName: string & keyof ColorScales,\n backgroundColor?: Variable<string>,\n textColor?: Variable<string>,\n contrastTextColor?: Variable<string>,\n // eslint-disable-next-line @typescript-eslint/max-params\n) => {\n const alouetteTokens: ReturnType<\n typeof createAlouetteTokens<AlouetteColorScales>\n > = tokens;\n if (!backgroundColor) backgroundColor = alouetteTokens.color.white;\n if (!textColor) textColor = alouetteTokens.color.black;\n if (!contrastTextColor) contrastTextColor = alouetteTokens.color.white;\n\n const getColor = (scaleNumber: number) =>\n tokens.color[\n `${colorScaleName}.${scaleNumber}` as keyof typeof tokens.color\n ];\n\n return {\n backgroundColor,\n textColor,\n mainColor: getColor(6),\n mainTextColor: getColor(9),\n contrastTextColor,\n borderColor: getColor(8),\n\n \"interactive.contained.backgroundColor\": getColor(5),\n \"interactive.borderColor\": getColor(8),\n\n \"interactive.contained.backgroundColor:hover\": getColor(4),\n \"interactive.outlined.backgroundColor:hover\": getColor(1),\n \"interactive.borderColor:hover\": getColor(7),\n\n \"interactive.contained.backgroundColor:focus\": getColor(4),\n \"interactive.outlined.backgroundColor:focus\": getColor(1),\n \"interactive.borderColor:focus\": getColor(7),\n\n \"interactive.contained.backgroundColor:press\": getColor(2),\n \"interactive.outlined.backgroundColor:press\": getColor(3),\n \"interactive.borderColor:press\": getColor(7),\n\n \"interactive.contained.backgroundColor:disabled\":\n alouetteTokens.color.disabled,\n \"interactive.borderColor:disabled\": alouetteTokens.color.disabled,\n \"interactive.textColor:disabled\": alouetteTokens.color.contrastDisabled,\n\n \"interactive.forms.textColor\": textColor,\n // \"interactive.forms.backgroundColor\": undefined,\n // \"interactive.forms.backgroundColor:hover\": undefined,\n \"interactive.forms.backgroundColor:focus\": getColor(1),\n \"interactive.forms.backgroundColor:press\": getColor(3),\n \"interactive.forms.borderColor\": getColor(10),\n \"interactive.forms.borderColor:hover\": getColor(7),\n \"interactive.forms.borderColor:focus\": getColor(7),\n \"interactive.forms.borderColor:press\": getColor(7),\n \"interactive.forms.borderColor:disabled\": alouetteTokens.color.disabled,\n } satisfies FullTheme;\n};\n\nexport const createAlouetteThemes = <\n const ColorScales extends AlouetteColorScales,\n>(\n tokens: ReturnType<typeof createAlouetteTokens<ColorScales>>,\n) => {\n const alouetteTokens: ReturnType<\n typeof createAlouetteTokens<AlouetteColorScales>\n > = tokens;\n return {\n light: createColorTheme(\n alouetteTokens,\n \"grayscale\",\n alouetteTokens.color.white,\n alouetteTokens.color.black,\n ),\n light_info: createColorTheme(alouetteTokens, \"info\"),\n light_success: createColorTheme(alouetteTokens, \"success\"),\n light_warning: createColorTheme(alouetteTokens, \"warning\"),\n light_danger: createColorTheme(alouetteTokens, \"danger\"),\n light_primary: createColorTheme(alouetteTokens, \"primary\"),\n\n // dark: createRootTheme({\n // backgroundColor: alouetteTokens.color.black,\n // textColor: alouetteTokens.color.white,\n // }),\n\n // dark_info: createColorTheme(\n // alouetteTokens,\n // \"info\",\n // alouetteTokens.color.black,\n // alouetteTokens.color.white,\n // ),\n // dark_success: createColorTheme(\n // alouetteTokens,\n // \"success\",\n // alouetteTokens.color.black,\n // alouetteTokens.color.white,\n // ),\n // dark_warning: createColorTheme(\n // alouetteTokens,\n // \"warning\",\n // alouetteTokens.color.black,\n // alouetteTokens.color.white,\n // ),\n // dark_danger: createColorTheme(\n // alouetteTokens,\n // \"danger\",\n // alouetteTokens.color.black,\n // alouetteTokens.color.white,\n // ),\n // dark_primary: createColorTheme(\n // alouetteTokens,\n // \"primary\",\n // alouetteTokens.color.black,\n // alouetteTokens.color.white,\n // ),\n } as const;\n};\n","import type { IntRange } from \"type-fest\";\n\n// scale inspired by https://www.radix-ui.com/colors/docs/palette-composition/understanding-the-scale\n// 1: interactive outlined background hover/focus color\n// 2: interactive contained background press color\n// 3: interactive outlined background press color\n// 4: interactive contained background hover/focus color\n// 5: interactive contained background color\n// 6: main color\n// 7: border hover/focus color\n// 8: border color\n// 9: text color\n// 10: form border color (default)\n\nexport type AlouetteColorScaleNumber = IntRange<1, 10>;\n\nexport type AlouetteColorScale = Record<AlouetteColorScaleNumber, string>;\n\nexport const createColorScale = <const T extends AlouetteColorScale>(\n colorScale: T,\n): T => colorScale;\n\nexport type AlouetteColorScaleNames =\n | \"danger\"\n | \"grayscale\"\n | \"info\"\n | \"primary\"\n | \"success\"\n | \"warning\";\n\nexport type ColorScaleTokens = {\n [K in AlouetteColorScaleNames as `${K}.${AlouetteColorScaleNumber}`]: string; //(typeof colorScales)[K][AlouetteColorScaleNumber];\n};\n\nexport type AlouetteColorScales = Record<\n AlouetteColorScaleNames,\n AlouetteColorScale\n>;\n\n// Tool: https://m2.material.io/inline-tools/color/\n\nexport const defaultColorScales: AlouetteColorScales = {\n grayscale: createColorScale({\n 1: \"#faf9f8\",\n 2: \"#f4f3ef\",\n 3: \"#ebe9e5\",\n 4: \"#dedad2\",\n 5: \"#d1cdc5\",\n 6: \"#bab8ae\",\n 7: \"#aeaba3\",\n 8: \"#9c9a92\",\n 9: \"#8e8c83\",\n 10: \"#74726a\",\n }),\n success: createColorScale({\n 1: \"#f0f9f3\",\n 2: \"#d4f0d4\",\n 3: \"#a8e6a8\",\n 4: \"#7edc7e\",\n 5: \"#54d254\",\n 6: \"#2ac82a\",\n 7: \"#00be00\",\n 8: \"#00b400\",\n 9: \"#00aa00\",\n 10: \"#009200\",\n }),\n info: createColorScale({\n 1: \"#f0f9ff\",\n 2: \"#d4f0ff\",\n 3: \"#a8e6ff\",\n 4: \"#7edcff\",\n 5: \"#54d2ff\",\n 6: \"#2ac8ff\",\n 7: \"#00beff\",\n 8: \"#00b4ff\",\n 9: \"#00aaff\",\n 10: \"#0092ff\",\n }),\n warning: createColorScale({\n 1: \"#fff9f0\",\n 2: \"#fff0d4\",\n 3: \"#ffe6a8\",\n 4: \"#ffdc7e\",\n 5: \"#ffd254\",\n 6: \"#ffc82a\",\n 7: \"#ffbe00\",\n 8: \"#ffb400\",\n 9: \"#ffaa00\",\n 10: \"#ff9200\",\n }),\n danger: createColorScale({\n 1: \"#fff0f0\",\n 2: \"#ffd4d4\",\n 3: \"#ffaaaa\",\n 4: \"#ff7e7e\",\n 5: \"#ff5454\",\n 6: \"#ff2a2a\",\n 7: \"#ff0000\",\n 8: \"#f40000\",\n 9: \"#ea0000\",\n 10: \"#d20000\",\n }),\n primary: createColorScale({\n 1: \"#e1f4f6\",\n 2: \"#b4e2e9\",\n 3: \"#86cfdc\",\n 4: \"#60bcd0\",\n 5: \"#46aeca\",\n 6: \"#31a1c4\",\n 7: \"#2994b7\",\n 8: \"#1e82a6\",\n 9: \"#1c7193\",\n 10: \"#125272\",\n }),\n} as const;\n","import { createTamagui } from \"@tamagui/core\";\nimport { animations } from \"./config/animations\";\nimport type { AlouetteColorScales } from \"./config/colorScales\";\nimport type { AlouetteFontsOptions } from \"./config/createAlouetteFonts\";\nimport { createAlouetteFonts } from \"./config/createAlouetteFonts\";\nimport type { createAlouetteTokens } from \"./config/createAlouetteTokens\";\nimport { media } from \"./config/media\";\nimport type { createAlouetteThemes } from \"./config/themes\";\n\nexport { createAlouetteTokens } from \"./config/createAlouetteTokens\";\n\nexport interface AlouetteTamaguiOptions {\n fonts?: AlouetteFontsOptions;\n}\n\nexport {\n createColorTheme,\n createAlouetteThemes,\n type FullTheme,\n} from \"./config/themes\";\n\nexport {\n defaultColorScales,\n createColorScale,\n type AlouetteColorScales,\n type AlouetteColorScale,\n} from \"./config/colorScales\";\n\nexport const createAlouetteTamagui = <\n const ColorScales extends AlouetteColorScales,\n const Tokens extends ReturnType<typeof createAlouetteTokens<ColorScales>>,\n const Themes extends ReturnType<typeof createAlouetteThemes<ColorScales>>,\n>(\n tokens: Tokens,\n themes: Themes,\n options: AlouetteTamaguiOptions = {},\n) => {\n return createTamagui({\n fonts: createAlouetteFonts(options.fonts),\n tokens,\n themes,\n media,\n animations,\n settings: {\n allowedStyleValues: \"somewhat-strict-web\",\n autocompleteSpecificTokens: \"except-special\",\n },\n components: [\"alouette\"],\n } as const);\n};\n"],"names":[],"mappings":";;;;AAEO,MAAM,aAAa,gBAAiB,CAAA;AAAA,EACzC,IAAM,EAAA,eAAA;AAAA,EACN,WAAa,EAAA;AACf,CAAC,CAAA;AACD,OAAA,CAAQ,IAAI,iBAAiB,CAAA;;ACJ7B,MAAM,uBAA0B,GAAA;AAAA,EAC9B,EAAI,EAAA,EAAA;AAAA,EACJ,EAAI,EAAA,EAAA;AAAA,EACJ,EAAI,EAAA,EAAA;AAAA,EACJ,EAAI,EAAA,EAAA;AAAA,EACJ,EAAI,EAAA;AACN,CAAA;AACA,MAAM,oBAAA,GAAuB,EAAE,EAAA,EAAI,EAAI,EAAA,EAAA,EAAI,EA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;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,EAAI,EAAA;AAAA,GACL,CAAA;AAAA,EACD,SAAS,gBAAiB,CAAA;AAAA,IACxB,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,CAAG,EAAA,SAAA;AAAA,IACH,EAAI,EAAA;AAAA,GACL;AACH;;ACtFO,MAAM,wBAAwB,CAKnC,MAAA,EACA,MACA,EAAA,OAAA,GAAkC,EAC/B,KAAA;AACH,EAAA,OAAO,aAAc,CAAA;AAAA,IACnB,KAAA,EAAO,mBAAoB,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,IACxC,MAAA;AAAA,IACA,MAAA;AAAA,IACA,KAAA;AAAA,IACA,UAAA;AAAA,IACA,QAAU,EAAA;AAAA,MACR,kBAAoB,EAAA,qBAAA;AAAA,MACpB,0BAA4B,EAAA;AAAA,KAC9B;AAAA,IACA,UAAA,EAAY,CAAC,UAAU;AAAA,GACf,CAAA;AACZ;;;;"}
1
+ {"version":3,"file":"createAlouetteTamagui-browser.es.js","sources":["../src/config/animations.web.ts","../src/config/createAlouetteFonts.ts","../src/config/Breakpoints.ts","../src/config/media.ts","../src/config/createAlouetteTokens.ts","../src/config/themes.ts","../src/config/colorScales.ts","../src/createAlouetteTamagui.ts"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-css\";\n\nexport const animations = createAnimations({\n fast: \"ease-in 150ms\",\n formElement: \"ease-in 600ms\",\n});\nconsole.log(\"animations: web\");\n","import { createFont } from \"@tamagui/core\";\n\nconst defaultHeadingFontSizes = { xl: 48, lg: 40, md: 32, sm: 24, xs: 18 };\nconst defaultBodyFontSizes = { xl: 24, lg: 18, md: 16, sm: 14, xs: 12 };\n\nconst roundWith1Precision = (value: number): number =>\n Math.round(value * 10) / 10;\n\nexport interface AlouetteFontsOptions {\n headingFontFamily?: string;\n headingFontSizes?: typeof defaultHeadingFontSizes;\n bodyFontFamily?: string;\n bodyFontSizes?: typeof defaultBodyFontSizes;\n}\n\nexport const createAlouetteFonts = ({\n headingFontFamily = \"Inter\",\n headingFontSizes = defaultHeadingFontSizes,\n bodyFontFamily = \"Inter\",\n bodyFontSizes = defaultBodyFontSizes,\n}: AlouetteFontsOptions = {}) => ({\n heading: createFont({\n family: headingFontFamily,\n weight: {\n regular: \"400\",\n bold: \"700\",\n black: \"900\",\n },\n face: {\n 400: { normal: `${headingFontFamily}Regular` },\n 700: { normal: `${headingFontFamily}Bold` },\n 900: { normal: `${headingFontFamily}Black` },\n },\n size: headingFontSizes,\n lineHeight: {\n xl: roundWith1Precision(1.1 * headingFontSizes.xl),\n lg: roundWith1Precision(1.1 * headingFontSizes.lg),\n md: roundWith1Precision(1.2 * headingFontSizes.md),\n sm: roundWith1Precision(1.3 * headingFontSizes.sm),\n xs: roundWith1Precision(1.3 * headingFontSizes.xs),\n },\n }),\n body: createFont({\n family: bodyFontFamily,\n weight: {\n regular: \"400\",\n bold: \"700\",\n black: \"900\",\n },\n face: {\n 400: { normal: `${bodyFontFamily}Regular` },\n 700: { normal: `${bodyFontFamily}Bold` },\n 900: { normal: `${bodyFontFamily}Black` },\n },\n size: bodyFontSizes,\n lineHeight: {\n xl: roundWith1Precision(1.4 * bodyFontSizes.xl),\n lg: roundWith1Precision(1.4 * bodyFontSizes.lg),\n md: roundWith1Precision(1.4 * bodyFontSizes.md),\n sm: roundWith1Precision(1.4 * bodyFontSizes.sm),\n xs: roundWith1Precision(1.4 * bodyFontSizes.xs),\n },\n }),\n});\n","export const Breakpoints = {\n /**\n * min-width: 0\n */\n BASE: 0,\n /**\n * min-width: 480px\n */\n SMALL: 480,\n /**\n * min-width: 768px\n */\n MEDIUM: 768,\n /**\n * min-width: 1024px\n */\n LARGE: 1024,\n /**\n * min-width: 1280px\n */\n WIDE: 1280,\n} as const;\n\nexport type Breakpoint = (typeof Breakpoints)[keyof typeof Breakpoints];\nexport type BreakpointNames = \"base\" | \"large\" | \"medium\" | \"small\" | \"wide\";\n\nexport enum BreakpointNameEnum {\n BASE = \"base\",\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n WIDE = \"wide\",\n}\n","import { createMedia } from \"@tamagui/react-native-media-driver\";\nimport { Breakpoints } from \"./Breakpoints\";\n\nexport const media = createMedia({\n small: { minWidth: Breakpoints.SMALL },\n medium: { minWidth: Breakpoints.MEDIUM },\n large: { minWidth: Breakpoints.LARGE },\n wide: { minWidth: Breakpoints.WIDE },\n} as const);\n","import { createTokens } from \"@tamagui/core\";\nimport type { IntRange } from \"type-fest\";\nimport type {\n AlouetteColorScaleNumber,\n AlouetteColorScales,\n} from \"./colorScales\";\n\ntype AlouetteSize = IntRange<0, 64>;\ntype NegativeAlouetteSize = `-${AlouetteSize}`;\ntype AlouetteSizeRecord = Record<AlouetteSize, number>;\ntype NegativeAlouetteSizeRecord = Record<NegativeAlouetteSize, number>;\n\nconst createAlouetteSizes = <const N extends boolean>(\n spacing: number,\n negative: N,\n): N extends true ? NegativeAlouetteSizeRecord : AlouetteSizeRecord => {\n const MAX_SIZE = 64;\n const sizes: Partial<\n N extends true ? NegativeAlouetteSizeRecord : AlouetteSizeRecord\n > = {};\n for (let size = 0; size <= MAX_SIZE; size++) {\n (sizes as any)[negative ? `-${size}` : `${size}`] = size * spacing;\n }\n return sizes as N extends true\n ? NegativeAlouetteSizeRecord\n : AlouetteSizeRecord;\n};\n\ntype ColorScaleTokens<ColorScales extends AlouetteColorScales> = {\n [K in string &\n keyof ColorScales as `${K}.${AlouetteColorScaleNumber}`]: string; //(typeof colorScales)[K][AlouetteColorScaleNumber];\n};\n\nconst transformColorScalesToTokens = <ColorScales extends AlouetteColorScales>(\n colorScales: ColorScales,\n): ColorScaleTokens<ColorScales> => {\n return Object.fromEntries(\n Object.entries(colorScales).flatMap(([colorName, colorScale]) => {\n return Object.entries(colorScale).map(([scaleNumber, colorValue]) => {\n return [`${colorName}.${scaleNumber}`, colorValue];\n });\n }),\n ) as ColorScaleTokens<ColorScales>;\n};\n\nexport interface AlouetteTokensOptions {\n spacing?: number;\n}\n\nexport const createAlouetteTokens = <\n const ColorScales extends AlouetteColorScales,\n>(\n colorScales: ColorScales,\n { spacing = 4 }: AlouetteTokensOptions = {},\n) => {\n const sizes: AlouetteSizeRecord = createAlouetteSizes(spacing, false);\n const negativeSizes: NegativeAlouetteSizeRecord = createAlouetteSizes(\n -spacing,\n true,\n );\n\n return createTokens({\n color: {\n black: \"#000000\",\n white: \"#ffffff\",\n disabled: colorScales.grayscale[3],\n contrastDisabled: colorScales.grayscale[7],\n ...transformColorScalesToTokens(colorScales),\n },\n radius: {\n ...sizes,\n xs: spacing * 2,\n sm: spacing * 4,\n md: spacing * 8,\n },\n space: {\n ...sizes,\n ...negativeSizes,\n xs: spacing * 2,\n sm: spacing * 4,\n md: spacing * 8,\n },\n size: { ...sizes },\n zIndex: {},\n } as const);\n};\n","/* eslint-disable camelcase */\nimport type { Variable } from \"@tamagui/core\";\nimport type {\n AlouetteColorScaleNumber,\n AlouetteColorScales,\n} from \"./colorScales\";\nimport type { createAlouetteTokens } from \"./createAlouetteTokens\";\n\n// export interface MinimalRootTheme {\n// backgroundColor: Variable<string>;\n// textColor: Variable<string>;\n// }\n\n// export interface RootTheme {\n// backgroundColor: Variable<string>;\n// textColor: Variable<string>;\n// }\n\nexport interface ColorTheme {\n backgroundColor: Variable<string>;\n textColor: Variable<string>;\n mainColor: Variable<string>;\n mainTextColor: Variable<string>;\n contrastTextColor: Variable<string>;\n borderColor: Variable<string>;\n\n \"interactive.contained.backgroundColor\": Variable<string>;\n \"interactive.borderColor\": Variable<string>;\n\n \"interactive.contained.backgroundColor:hover\": Variable<string>;\n \"interactive.outlined.backgroundColor:hover\": Variable<string>;\n \"interactive.borderColor:hover\": Variable<string>;\n\n \"interactive.contained.backgroundColor:focus\": Variable<string>;\n \"interactive.outlined.backgroundColor:focus\": Variable<string>;\n \"interactive.borderColor:focus\": Variable<string>;\n\n \"interactive.contained.backgroundColor:press\": Variable<string>;\n \"interactive.outlined.backgroundColor:press\": Variable<string>;\n \"interactive.borderColor:press\": Variable<string>;\n\n \"interactive.contained.backgroundColor:disabled\": Variable<string>;\n \"interactive.borderColor:disabled\": Variable<string>;\n \"interactive.textColor:disabled\": Variable<string>;\n\n \"interactive.forms.textColor\": Variable<string>;\n \"interactive.forms.placeholderTextColor\": Variable<string>;\n // \"interactive.forms.backgroundColor\": Variable<string>,\n // \"interactive.forms.backgroundColor:hover\": Variable<string>,\n \"interactive.forms.backgroundColor:focus\": Variable<string>;\n \"interactive.forms.backgroundColor:press\": Variable<string>;\n \"interactive.forms.borderColor\": Variable<string>;\n \"interactive.forms.borderColor:hover\": Variable<string>;\n \"interactive.forms.borderColor:focus\": Variable<string>;\n \"interactive.forms.borderColor:press\": Variable<string>;\n \"interactive.forms.borderColor:disabled\": Variable<string>;\n}\n\n// export interface FullTheme extends ColorTheme, RootTheme {}\nexport type FullTheme = ColorTheme;\n\n// export const createRootTheme = <T extends MinimalRootTheme>(\n// theme: T,\n// ): FullTheme => {\n// return theme satisfies RootTheme as unknown as FullTheme;\n// };\n\nconst darkModeScaleNumbers: Record<\n AlouetteColorScaleNumber,\n AlouetteColorScaleNumber\n> = {\n 1: 10,\n 2: 9,\n 3: 8,\n 4: 7,\n 5: 6,\n 6: 5,\n 7: 4,\n 8: 3,\n 9: 2,\n 10: 1,\n};\n\nexport const createColorTheme = <const ColorScales extends AlouetteColorScales>(\n tokens: ReturnType<typeof createAlouetteTokens<ColorScales>>,\n colorScaleName: string & keyof ColorScales,\n mode: \"dark\" | \"light\" = \"light\",\n backgroundColor?: Variable<string>,\n textColor?: Variable<string>,\n contrastTextColor?: Variable<string>,\n) => {\n const alouetteTokens: ReturnType<\n typeof createAlouetteTokens<AlouetteColorScales>\n > = tokens;\n if (!backgroundColor) {\n backgroundColor =\n mode === \"dark\" ? alouetteTokens.color.black : alouetteTokens.color.white;\n }\n if (!textColor) {\n textColor =\n mode === \"dark\" ? alouetteTokens.color.white : alouetteTokens.color.black;\n }\n if (!contrastTextColor) {\n if (colorScaleName === \"grayscale\") {\n contrastTextColor =\n mode === \"dark\"\n ? alouetteTokens.color.white\n : alouetteTokens.color.black;\n } else {\n contrastTextColor =\n mode === \"dark\"\n ? alouetteTokens.color.black\n : alouetteTokens.color.white;\n }\n }\n\n const getColor = (lightScaleNumber: AlouetteColorScaleNumber) => {\n // Invert scale for dark mode\n const scaleNumber =\n mode === \"dark\"\n ? darkModeScaleNumbers[lightScaleNumber]\n : lightScaleNumber;\n\n return tokens.color[\n `${colorScaleName}.${scaleNumber}` as keyof typeof tokens.color\n ];\n };\n\n return {\n backgroundColor,\n textColor,\n mainColor: getColor(6),\n mainTextColor: getColor(9),\n contrastTextColor,\n borderColor: getColor(8),\n\n \"interactive.contained.backgroundColor\": getColor(5),\n \"interactive.borderColor\": getColor(mode === \"dark\" ? 5 : 8),\n\n \"interactive.contained.backgroundColor:hover\": getColor(4),\n \"interactive.outlined.backgroundColor:hover\": getColor(1),\n \"interactive.borderColor:hover\": getColor(mode === \"dark\" ? 5 : 7),\n\n \"interactive.contained.backgroundColor:focus\": getColor(4),\n \"interactive.outlined.backgroundColor:focus\": getColor(1),\n \"interactive.borderColor:focus\": getColor(7),\n\n \"interactive.contained.backgroundColor:press\": getColor(2),\n \"interactive.outlined.backgroundColor:press\": getColor(3),\n \"interactive.borderColor:press\": getColor(7),\n\n \"interactive.contained.backgroundColor:disabled\":\n alouetteTokens.color.disabled,\n \"interactive.borderColor:disabled\": alouetteTokens.color.disabled,\n \"interactive.textColor:disabled\": alouetteTokens.color.contrastDisabled,\n\n \"interactive.forms.textColor\": textColor,\n \"interactive.forms.placeholderTextColor\": alouetteTokens.color.disabled,\n\n // \"interactive.forms.backgroundColor\": undefined,\n // \"interactive.forms.backgroundColor:hover\": undefined,\n \"interactive.forms.backgroundColor:focus\": getColor(1),\n \"interactive.forms.backgroundColor:press\": getColor(3),\n \"interactive.forms.borderColor\": getColor(10),\n \"interactive.forms.borderColor:hover\": getColor(7),\n \"interactive.forms.borderColor:focus\": getColor(7),\n \"interactive.forms.borderColor:press\": getColor(7),\n \"interactive.forms.borderColor:disabled\": alouetteTokens.color.disabled,\n } satisfies FullTheme;\n};\n\nexport const createAlouetteThemes = <\n const ColorScales extends AlouetteColorScales,\n>(\n tokens: ReturnType<typeof createAlouetteTokens<ColorScales>>,\n) => {\n const alouetteTokens: ReturnType<\n typeof createAlouetteTokens<AlouetteColorScales>\n > = tokens;\n return {\n light: createColorTheme(alouetteTokens, \"grayscale\", \"light\"),\n light_info: createColorTheme(alouetteTokens, \"info\", \"light\"),\n light_success: createColorTheme(alouetteTokens, \"success\", \"light\"),\n light_warning: createColorTheme(alouetteTokens, \"warning\", \"light\"),\n light_danger: createColorTheme(alouetteTokens, \"danger\", \"light\"),\n light_primary: createColorTheme(alouetteTokens, \"primary\", \"light\"),\n\n dark: createColorTheme(alouetteTokens, \"grayscale\", \"dark\"),\n dark_info: createColorTheme(alouetteTokens, \"info\", \"dark\"),\n dark_success: createColorTheme(alouetteTokens, \"success\", \"dark\"),\n dark_warning: createColorTheme(alouetteTokens, \"warning\", \"dark\"),\n dark_danger: createColorTheme(alouetteTokens, \"danger\", \"dark\"),\n dark_primary: createColorTheme(alouetteTokens, \"primary\", \"dark\"),\n } as const;\n};\n","import type { IntRange } from \"type-fest\";\n\n// scale inspired by https://www.radix-ui.com/colors/docs/palette-composition/understanding-the-scale\n// 1: interactive outlined background hover/focus color\n// 2: interactive contained background press color\n// 3: interactive outlined background press color\n// 4: interactive contained background hover/focus color\n// 5: interactive contained background color\n// 6: main color\n// 7: border hover/focus color\n// 8: border color\n// 9: text color\n// 10: form border color (default)\n\nexport type AlouetteColorScaleNumber = IntRange<1, 11>;\n\nexport type AlouetteColorScale = Record<AlouetteColorScaleNumber, string>;\n\nexport const createColorScale = <const T extends AlouetteColorScale>(\n colorScale: T,\n): T => colorScale;\n\nexport type AlouetteColorScaleNames =\n | \"danger\"\n | \"grayscale\"\n | \"info\"\n | \"primary\"\n | \"success\"\n | \"warning\";\n\nexport type ColorScaleTokens = {\n [K in AlouetteColorScaleNames as `${K}.${AlouetteColorScaleNumber}`]: string; //(typeof colorScales)[K][AlouetteColorScaleNumber];\n};\n\nexport type AlouetteColorScales = Record<\n AlouetteColorScaleNames,\n AlouetteColorScale\n>;\n\n// Tool: https://m2.material.io/inline-tools/color/\n\nexport const defaultColorScales: AlouetteColorScales = {\n grayscale: createColorScale({\n 1: \"#faf9f8\",\n 2: \"#f4f3ef\",\n 3: \"#ebe9e5\",\n 4: \"#dedad2\",\n 5: \"#d1cdc5\",\n 6: \"#bab8ae\",\n 7: \"#aeaba3\",\n 8: \"#9c9a92\",\n 9: \"#8e8c83\",\n 10: \"#74726a\",\n }),\n success: createColorScale({\n 1: \"#f0f9f3\",\n 2: \"#d4f0d4\",\n 3: \"#a8e6a8\",\n 4: \"#7edc7e\",\n 5: \"#54d254\",\n 6: \"#2ac82a\",\n 7: \"#00be00\",\n 8: \"#00b400\",\n 9: \"#00aa00\",\n 10: \"#009200\",\n }),\n info: createColorScale({\n 1: \"#f0f9ff\",\n 2: \"#d4f0ff\",\n 3: \"#a8e6ff\",\n 4: \"#7edcff\",\n 5: \"#54d2ff\",\n 6: \"#2ac8ff\",\n 7: \"#00beff\",\n 8: \"#00b4ff\",\n 9: \"#00aaff\",\n 10: \"#0092ff\",\n }),\n warning: createColorScale({\n 1: \"#fff9f0\",\n 2: \"#fff0d4\",\n 3: \"#ffe6a8\",\n 4: \"#ffdc7e\",\n 5: \"#ffd254\",\n 6: \"#ffc82a\",\n 7: \"#ffbe00\",\n 8: \"#ffb400\",\n 9: \"#ffaa00\",\n 10: \"#ff9200\",\n }),\n danger: createColorScale({\n 1: \"#fff0f0\",\n 2: \"#ffd4d4\",\n 3: \"#ffaaaa\",\n 4: \"#ff7e7e\",\n 5: \"#ff5454\",\n 6: \"#ff2a2a\",\n 7: \"#ff0000\",\n 8: \"#f40000\",\n 9: \"#ea0000\",\n 10: \"#d20000\",\n }),\n primary: createColorScale({\n 1: \"#e1f4f6\",\n 2: \"#b4e2e9\",\n 3: \"#86cfdc\",\n 4: \"#60bcd0\",\n 5: \"#46aeca\",\n 6: \"#31a1c4\",\n 7: \"#2994b7\",\n 8: \"#1e82a6\",\n 9: \"#1c7193\",\n 10: \"#125272\",\n }),\n} as const;\n","import { createTamagui } from \"@tamagui/core\";\nimport { animations } from \"./config/animations\";\nimport type { AlouetteColorScales } from \"./config/colorScales\";\nimport type { AlouetteFontsOptions } from \"./config/createAlouetteFonts\";\nimport { createAlouetteFonts } from \"./config/createAlouetteFonts\";\nimport type { createAlouetteTokens } from \"./config/createAlouetteTokens\";\nimport { media } from \"./config/media\";\nimport type { createAlouetteThemes } from \"./config/themes\";\n\nexport { createAlouetteTokens } from \"./config/createAlouetteTokens\";\n\nexport interface AlouetteTamaguiOptions {\n fonts?: AlouetteFontsOptions;\n}\n\nexport {\n createColorTheme,\n createAlouetteThemes,\n type FullTheme,\n} from \"./config/themes\";\n\nexport {\n defaultColorScales,\n createColorScale,\n type AlouetteColorScales,\n type AlouetteColorScale,\n} from \"./config/colorScales\";\n\nexport const createAlouetteTamagui = <\n const ColorScales extends AlouetteColorScales,\n const Tokens extends ReturnType<typeof createAlouetteTokens<ColorScales>>,\n const Themes extends ReturnType<typeof createAlouetteThemes<ColorScales>>,\n>(\n tokens: Tokens,\n themes: Themes,\n options: AlouetteTamaguiOptions = {},\n) => {\n return createTamagui({\n fonts: createAlouetteFonts(options.fonts),\n tokens,\n themes,\n media,\n animations,\n settings: {\n allowedStyleValues: \"somewhat-strict-web\",\n autocompleteSpecificTokens: \"except-special\",\n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Z;;;;"}
@@ -20,7 +20,7 @@ const animations = animationsReactNative.createAnimations({
20
20
  });
21
21
  if ("navigator" in global) {
22
22
  const navigator = global.navigator;
23
- if (!navigator.userAgent?.startsWith("Node.js")) {
23
+ if (!navigator.userAgent?.startsWith("Node.js") && navigator.product !== "ReactNative") {
24
24
  throw new Error(
25
25
  `animations native is loaded in web: ${// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
26
26
  navigator.appName || navigator.product || navigator.userAgent}`
@@ -28,13 +28,7 @@ if ("navigator" in global) {
28
28
  }
29
29
  }
30
30
 
31
- const defaultHeadingFontSizes = {
32
- xl: 48,
33
- lg: 40,
34
- md: 32,
35
- sm: 24,
36
- xs: 18
37
- };
31
+ const defaultHeadingFontSizes = { xl: 48, lg: 40, md: 32, sm: 24, xs: 18 };
38
32
  const defaultBodyFontSizes = { xl: 24, lg: 18, md: 16, sm: 14, xs: 12 };
39
33
  const roundWith1Precision = (value) => Math.round(value * 10) / 10;
40
34
  const createAlouetteFonts = ({
@@ -166,12 +160,37 @@ const createAlouetteTokens = (colorScales, { spacing = 4 } = {}) => {
166
160
  });
167
161
  };
168
162
 
169
- const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, contrastTextColor) => {
163
+ const darkModeScaleNumbers = {
164
+ 1: 10,
165
+ 2: 9,
166
+ 3: 8,
167
+ 4: 7,
168
+ 5: 6,
169
+ 6: 5,
170
+ 7: 4,
171
+ 8: 3,
172
+ 9: 2,
173
+ 10: 1
174
+ };
175
+ const createColorTheme = (tokens, colorScaleName, mode = "light", backgroundColor, textColor, contrastTextColor) => {
170
176
  const alouetteTokens = tokens;
171
- if (!backgroundColor) backgroundColor = alouetteTokens.color.white;
172
- if (!textColor) textColor = alouetteTokens.color.black;
173
- if (!contrastTextColor) contrastTextColor = alouetteTokens.color.white;
174
- const getColor = (scaleNumber) => tokens.color[`${colorScaleName}.${scaleNumber}`];
177
+ if (!backgroundColor) {
178
+ backgroundColor = mode === "dark" ? alouetteTokens.color.black : alouetteTokens.color.white;
179
+ }
180
+ if (!textColor) {
181
+ textColor = mode === "dark" ? alouetteTokens.color.white : alouetteTokens.color.black;
182
+ }
183
+ if (!contrastTextColor) {
184
+ if (colorScaleName === "grayscale") {
185
+ contrastTextColor = mode === "dark" ? alouetteTokens.color.white : alouetteTokens.color.black;
186
+ } else {
187
+ contrastTextColor = mode === "dark" ? alouetteTokens.color.black : alouetteTokens.color.white;
188
+ }
189
+ }
190
+ const getColor = (lightScaleNumber) => {
191
+ const scaleNumber = mode === "dark" ? darkModeScaleNumbers[lightScaleNumber] : lightScaleNumber;
192
+ return tokens.color[`${colorScaleName}.${scaleNumber}`];
193
+ };
175
194
  return {
176
195
  backgroundColor,
177
196
  textColor,
@@ -180,10 +199,10 @@ const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, co
180
199
  contrastTextColor,
181
200
  borderColor: getColor(8),
182
201
  "interactive.contained.backgroundColor": getColor(5),
183
- "interactive.borderColor": getColor(8),
202
+ "interactive.borderColor": getColor(mode === "dark" ? 5 : 8),
184
203
  "interactive.contained.backgroundColor:hover": getColor(4),
185
204
  "interactive.outlined.backgroundColor:hover": getColor(1),
186
- "interactive.borderColor:hover": getColor(7),
205
+ "interactive.borderColor:hover": getColor(mode === "dark" ? 5 : 7),
187
206
  "interactive.contained.backgroundColor:focus": getColor(4),
188
207
  "interactive.outlined.backgroundColor:focus": getColor(1),
189
208
  "interactive.borderColor:focus": getColor(7),
@@ -194,6 +213,7 @@ const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, co
194
213
  "interactive.borderColor:disabled": alouetteTokens.color.disabled,
195
214
  "interactive.textColor:disabled": alouetteTokens.color.contrastDisabled,
196
215
  "interactive.forms.textColor": textColor,
216
+ "interactive.forms.placeholderTextColor": alouetteTokens.color.disabled,
197
217
  // "interactive.forms.backgroundColor": undefined,
198
218
  // "interactive.forms.backgroundColor:hover": undefined,
199
219
  "interactive.forms.backgroundColor:focus": getColor(1),
@@ -208,51 +228,18 @@ const createColorTheme = (tokens, colorScaleName, backgroundColor, textColor, co
208
228
  const createAlouetteThemes = (tokens) => {
209
229
  const alouetteTokens = tokens;
210
230
  return {
211
- light: createColorTheme(
212
- alouetteTokens,
213
- "grayscale",
214
- alouetteTokens.color.white,
215
- alouetteTokens.color.black
216
- ),
217
- light_info: createColorTheme(alouetteTokens, "info"),
218
- light_success: createColorTheme(alouetteTokens, "success"),
219
- light_warning: createColorTheme(alouetteTokens, "warning"),
220
- light_danger: createColorTheme(alouetteTokens, "danger"),
221
- light_primary: createColorTheme(alouetteTokens, "primary")
222
- // dark: createRootTheme({
223
- // backgroundColor: alouetteTokens.color.black,
224
- // textColor: alouetteTokens.color.white,
225
- // }),
226
- // dark_info: createColorTheme(
227
- // alouetteTokens,
228
- // "info",
229
- // alouetteTokens.color.black,
230
- // alouetteTokens.color.white,
231
- // ),
232
- // dark_success: createColorTheme(
233
- // alouetteTokens,
234
- // "success",
235
- // alouetteTokens.color.black,
236
- // alouetteTokens.color.white,
237
- // ),
238
- // dark_warning: createColorTheme(
239
- // alouetteTokens,
240
- // "warning",
241
- // alouetteTokens.color.black,
242
- // alouetteTokens.color.white,
243
- // ),
244
- // dark_danger: createColorTheme(
245
- // alouetteTokens,
246
- // "danger",
247
- // alouetteTokens.color.black,
248
- // alouetteTokens.color.white,
249
- // ),
250
- // dark_primary: createColorTheme(
251
- // alouetteTokens,
252
- // "primary",
253
- // alouetteTokens.color.black,
254
- // alouetteTokens.color.white,
255
- // ),
231
+ light: createColorTheme(alouetteTokens, "grayscale", "light"),
232
+ light_info: createColorTheme(alouetteTokens, "info", "light"),
233
+ light_success: createColorTheme(alouetteTokens, "success", "light"),
234
+ light_warning: createColorTheme(alouetteTokens, "warning", "light"),
235
+ light_danger: createColorTheme(alouetteTokens, "danger", "light"),
236
+ light_primary: createColorTheme(alouetteTokens, "primary", "light"),
237
+ dark: createColorTheme(alouetteTokens, "grayscale", "dark"),
238
+ dark_info: createColorTheme(alouetteTokens, "info", "dark"),
239
+ dark_success: createColorTheme(alouetteTokens, "success", "dark"),
240
+ dark_warning: createColorTheme(alouetteTokens, "warning", "dark"),
241
+ dark_danger: createColorTheme(alouetteTokens, "danger", "dark"),
242
+ dark_primary: createColorTheme(alouetteTokens, "primary", "dark")
256
243
  };
257
244
  };
258
245