@medway-ui/native 1.1.1 → 1.2.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 (218) hide show
  1. package/README.md +238 -105
  2. package/lib/commonjs/components/Alert.js +5 -4
  3. package/lib/commonjs/components/Alert.js.map +1 -1
  4. package/lib/commonjs/components/Avatar.js +2 -1
  5. package/lib/commonjs/components/Avatar.js.map +1 -1
  6. package/lib/commonjs/components/Badge.js +2 -1
  7. package/lib/commonjs/components/Badge.js.map +1 -1
  8. package/lib/commonjs/components/Button.js +3 -2
  9. package/lib/commonjs/components/Button.js.map +1 -1
  10. package/lib/commonjs/components/CardNews.js +7 -6
  11. package/lib/commonjs/components/CardNews.js.map +1 -1
  12. package/lib/commonjs/components/Carousel.js +122 -0
  13. package/lib/commonjs/components/Carousel.js.map +1 -0
  14. package/lib/commonjs/components/Checkbox.js +11 -2
  15. package/lib/commonjs/components/Checkbox.js.map +1 -1
  16. package/lib/commonjs/components/DropdownMenu.js +225 -0
  17. package/lib/commonjs/components/DropdownMenu.js.map +1 -0
  18. package/lib/commonjs/components/EmptyState.js +19 -20
  19. package/lib/commonjs/components/EmptyState.js.map +1 -1
  20. package/lib/commonjs/components/Feed.js +82 -0
  21. package/lib/commonjs/components/Feed.js.map +1 -0
  22. package/lib/commonjs/components/FeedNotice.js +76 -0
  23. package/lib/commonjs/components/FeedNotice.js.map +1 -0
  24. package/lib/commonjs/components/Input.js +21 -9
  25. package/lib/commonjs/components/Input.js.map +1 -1
  26. package/lib/commonjs/components/InvitePopover.js +196 -0
  27. package/lib/commonjs/components/InvitePopover.js.map +1 -0
  28. package/lib/commonjs/components/Label.js +2 -1
  29. package/lib/commonjs/components/Label.js.map +1 -1
  30. package/lib/commonjs/components/LeaderboardCard.js +58 -0
  31. package/lib/commonjs/components/LeaderboardCard.js.map +1 -0
  32. package/lib/commonjs/components/MemberRow.js +131 -0
  33. package/lib/commonjs/components/MemberRow.js.map +1 -0
  34. package/lib/commonjs/components/PageHeader.js +3 -2
  35. package/lib/commonjs/components/PageHeader.js.map +1 -1
  36. package/lib/commonjs/components/PostForm.js +182 -0
  37. package/lib/commonjs/components/PostForm.js.map +1 -0
  38. package/lib/commonjs/components/PrizeCollection.js +135 -0
  39. package/lib/commonjs/components/PrizeCollection.js.map +1 -0
  40. package/lib/commonjs/components/RadioGroup.js +22 -0
  41. package/lib/commonjs/components/RadioGroup.js.map +1 -1
  42. package/lib/commonjs/components/SectionHeader.js +36 -0
  43. package/lib/commonjs/components/SectionHeader.js.map +1 -0
  44. package/lib/commonjs/components/Switch.js +33 -19
  45. package/lib/commonjs/components/Switch.js.map +1 -1
  46. package/lib/commonjs/components/Tabs.js +156 -0
  47. package/lib/commonjs/components/Tabs.js.map +1 -0
  48. package/lib/commonjs/components/Tag.js +2 -1
  49. package/lib/commonjs/components/Tag.js.map +1 -1
  50. package/lib/commonjs/components/Text.js +60 -0
  51. package/lib/commonjs/components/Text.js.map +1 -0
  52. package/lib/commonjs/components/Toast.js +3 -2
  53. package/lib/commonjs/components/Toast.js.map +1 -1
  54. package/lib/commonjs/components/Tooltip.js +2 -2
  55. package/lib/commonjs/components/Tooltip.js.map +1 -1
  56. package/lib/commonjs/hooks/useThemeColor.js +66 -29
  57. package/lib/commonjs/hooks/useThemeColor.js.map +1 -1
  58. package/lib/commonjs/index.js +319 -1
  59. package/lib/commonjs/index.js.map +1 -1
  60. package/lib/commonjs/lib/overlay-host.js +101 -0
  61. package/lib/commonjs/lib/overlay-host.js.map +1 -0
  62. package/lib/commonjs/lib/typography.js +26 -0
  63. package/lib/commonjs/lib/typography.js.map +1 -0
  64. package/lib/commonjs/nativewind-env.d.js +0 -1
  65. package/lib/commonjs/nativewind-env.d.js.map +1 -1
  66. package/lib/module/components/Alert.js +3 -2
  67. package/lib/module/components/Alert.js.map +1 -1
  68. package/lib/module/components/Avatar.js +2 -1
  69. package/lib/module/components/Avatar.js.map +1 -1
  70. package/lib/module/components/Badge.js +2 -1
  71. package/lib/module/components/Badge.js.map +1 -1
  72. package/lib/module/components/Button.js +2 -1
  73. package/lib/module/components/Button.js.map +1 -1
  74. package/lib/module/components/CardNews.js +2 -1
  75. package/lib/module/components/CardNews.js.map +1 -1
  76. package/lib/module/components/Carousel.js +117 -0
  77. package/lib/module/components/Carousel.js.map +1 -0
  78. package/lib/module/components/Checkbox.js +12 -2
  79. package/lib/module/components/Checkbox.js.map +1 -1
  80. package/lib/module/components/DropdownMenu.js +216 -0
  81. package/lib/module/components/DropdownMenu.js.map +1 -0
  82. package/lib/module/components/EmptyState.js +19 -20
  83. package/lib/module/components/EmptyState.js.map +1 -1
  84. package/lib/module/components/Feed.js +77 -0
  85. package/lib/module/components/Feed.js.map +1 -0
  86. package/lib/module/components/FeedNotice.js +73 -0
  87. package/lib/module/components/FeedNotice.js.map +1 -0
  88. package/lib/module/components/Input.js +21 -9
  89. package/lib/module/components/Input.js.map +1 -1
  90. package/lib/module/components/InvitePopover.js +183 -0
  91. package/lib/module/components/InvitePopover.js.map +1 -0
  92. package/lib/module/components/Label.js +2 -1
  93. package/lib/module/components/Label.js.map +1 -1
  94. package/lib/module/components/LeaderboardCard.js +53 -0
  95. package/lib/module/components/LeaderboardCard.js.map +1 -0
  96. package/lib/module/components/MemberRow.js +127 -0
  97. package/lib/module/components/MemberRow.js.map +1 -0
  98. package/lib/module/components/PageHeader.js +2 -1
  99. package/lib/module/components/PageHeader.js.map +1 -1
  100. package/lib/module/components/PostForm.js +174 -0
  101. package/lib/module/components/PostForm.js.map +1 -0
  102. package/lib/module/components/PrizeCollection.js +127 -0
  103. package/lib/module/components/PrizeCollection.js.map +1 -0
  104. package/lib/module/components/RadioGroup.js +21 -1
  105. package/lib/module/components/RadioGroup.js.map +1 -1
  106. package/lib/module/components/SectionHeader.js +33 -0
  107. package/lib/module/components/SectionHeader.js.map +1 -0
  108. package/lib/module/components/Switch.js +34 -20
  109. package/lib/module/components/Switch.js.map +1 -1
  110. package/lib/module/components/Tabs.js +148 -0
  111. package/lib/module/components/Tabs.js.map +1 -0
  112. package/lib/module/components/Tag.js +2 -1
  113. package/lib/module/components/Tag.js.map +1 -1
  114. package/lib/module/components/Text.js +58 -0
  115. package/lib/module/components/Text.js.map +1 -0
  116. package/lib/module/components/Toast.js +2 -1
  117. package/lib/module/components/Toast.js.map +1 -1
  118. package/lib/module/components/Tooltip.js +1 -1
  119. package/lib/module/components/Tooltip.js.map +1 -1
  120. package/lib/module/hooks/useThemeColor.js +66 -31
  121. package/lib/module/hooks/useThemeColor.js.map +1 -1
  122. package/lib/module/index.js +27 -3
  123. package/lib/module/index.js.map +1 -1
  124. package/lib/module/lib/overlay-host.js +96 -0
  125. package/lib/module/lib/overlay-host.js.map +1 -0
  126. package/lib/module/lib/typography.js +22 -0
  127. package/lib/module/lib/typography.js.map +1 -0
  128. package/lib/module/nativewind-env.d.js +0 -1
  129. package/lib/module/nativewind-env.d.js.map +1 -1
  130. package/lib/typescript/components/Alert.d.ts.map +1 -1
  131. package/lib/typescript/components/Avatar.d.ts.map +1 -1
  132. package/lib/typescript/components/Badge.d.ts.map +1 -1
  133. package/lib/typescript/components/Button.d.ts.map +1 -1
  134. package/lib/typescript/components/CardNews.d.ts.map +1 -1
  135. package/lib/typescript/components/Carousel.d.ts +29 -0
  136. package/lib/typescript/components/Carousel.d.ts.map +1 -0
  137. package/lib/typescript/components/Checkbox.d.ts.map +1 -1
  138. package/lib/typescript/components/DropdownMenu.d.ts +39 -0
  139. package/lib/typescript/components/DropdownMenu.d.ts.map +1 -0
  140. package/lib/typescript/components/EmptyState.d.ts +1 -1
  141. package/lib/typescript/components/EmptyState.d.ts.map +1 -1
  142. package/lib/typescript/components/Feed.d.ts +22 -0
  143. package/lib/typescript/components/Feed.d.ts.map +1 -0
  144. package/lib/typescript/components/FeedNotice.d.ts +17 -0
  145. package/lib/typescript/components/FeedNotice.d.ts.map +1 -0
  146. package/lib/typescript/components/Input.d.ts +3 -2
  147. package/lib/typescript/components/Input.d.ts.map +1 -1
  148. package/lib/typescript/components/InvitePopover.d.ts +46 -0
  149. package/lib/typescript/components/InvitePopover.d.ts.map +1 -0
  150. package/lib/typescript/components/Label.d.ts.map +1 -1
  151. package/lib/typescript/components/LeaderboardCard.d.ts +16 -0
  152. package/lib/typescript/components/LeaderboardCard.d.ts.map +1 -0
  153. package/lib/typescript/components/MemberRow.d.ts +40 -0
  154. package/lib/typescript/components/MemberRow.d.ts.map +1 -0
  155. package/lib/typescript/components/PageHeader.d.ts.map +1 -1
  156. package/lib/typescript/components/PostForm.d.ts +50 -0
  157. package/lib/typescript/components/PostForm.d.ts.map +1 -0
  158. package/lib/typescript/components/PrizeCollection.d.ts +35 -0
  159. package/lib/typescript/components/PrizeCollection.d.ts.map +1 -0
  160. package/lib/typescript/components/RadioGroup.d.ts +10 -2
  161. package/lib/typescript/components/RadioGroup.d.ts.map +1 -1
  162. package/lib/typescript/components/SectionHeader.d.ts +12 -0
  163. package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
  164. package/lib/typescript/components/Switch.d.ts.map +1 -1
  165. package/lib/typescript/components/Tabs.d.ts +32 -0
  166. package/lib/typescript/components/Tabs.d.ts.map +1 -0
  167. package/lib/typescript/components/Tag.d.ts.map +1 -1
  168. package/lib/typescript/components/Text.d.ts +23 -0
  169. package/lib/typescript/components/Text.d.ts.map +1 -0
  170. package/lib/typescript/components/Toast.d.ts +1 -1
  171. package/lib/typescript/components/Toast.d.ts.map +1 -1
  172. package/lib/typescript/components/Tooltip.d.ts.map +1 -1
  173. package/lib/typescript/hooks/useThemeColor.d.ts +4 -2
  174. package/lib/typescript/hooks/useThemeColor.d.ts.map +1 -1
  175. package/lib/typescript/index.d.ts +28 -4
  176. package/lib/typescript/index.d.ts.map +1 -1
  177. package/lib/typescript/lib/overlay-host.d.ts +23 -0
  178. package/lib/typescript/lib/overlay-host.d.ts.map +1 -0
  179. package/lib/typescript/lib/typography.d.ts +12 -0
  180. package/lib/typescript/lib/typography.d.ts.map +1 -0
  181. package/package.json +13 -3
  182. package/setup/MedwayUiProvider.tsx +15 -4
  183. package/setup/babel-brownfield.js +70 -0
  184. package/setup/metro.js +95 -24
  185. package/setup/tailwind.js +76 -8
  186. package/setup/tokens.native.css +8 -3
  187. package/src/components/Alert.tsx +4 -2
  188. package/src/components/Avatar.tsx +3 -1
  189. package/src/components/Badge.tsx +3 -1
  190. package/src/components/Button.tsx +3 -7
  191. package/src/components/CardNews.tsx +2 -1
  192. package/src/components/Carousel.tsx +152 -0
  193. package/src/components/Checkbox.tsx +14 -4
  194. package/src/components/DropdownMenu.tsx +312 -0
  195. package/src/components/EmptyState.tsx +21 -23
  196. package/src/components/Feed.tsx +96 -0
  197. package/src/components/FeedNotice.tsx +112 -0
  198. package/src/components/Input.tsx +11 -6
  199. package/src/components/InvitePopover.tsx +240 -0
  200. package/src/components/Label.tsx +3 -1
  201. package/src/components/LeaderboardCard.tsx +70 -0
  202. package/src/components/MemberRow.tsx +157 -0
  203. package/src/components/PageHeader.tsx +3 -1
  204. package/src/components/PostForm.tsx +250 -0
  205. package/src/components/PrizeCollection.tsx +190 -0
  206. package/src/components/RadioGroup.tsx +32 -3
  207. package/src/components/SectionHeader.tsx +45 -0
  208. package/src/components/Switch.tsx +65 -59
  209. package/src/components/Tabs.tsx +182 -0
  210. package/src/components/Tag.tsx +3 -1
  211. package/src/components/Text.tsx +66 -0
  212. package/src/components/Toast.tsx +3 -1
  213. package/src/components/Tooltip.tsx +2 -1
  214. package/src/hooks/useThemeColor.ts +77 -32
  215. package/src/index.ts +147 -6
  216. package/src/lib/overlay-host.tsx +102 -0
  217. package/src/lib/typography.ts +21 -0
  218. package/src/nativewind-env.d.ts +2 -0
@@ -3,6 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.DEFAULT_COLOR = void 0;
7
+ exports.getFallbackColor = getFallbackColor;
6
8
  exports.toCssVariable = toCssVariable;
7
9
  exports.useThemeColor = useThemeColor;
8
10
  var _nativewind = require("nativewind");
@@ -10,47 +12,82 @@ var _nativewind = require("nativewind");
10
12
 
11
13
  /** Fallback quando NativeWind não resolve cadeias `var()` — light mode. */
12
14
  const LIGHT_COLOR_ALIAS_MAP = {
13
- "content-title": "primary",
14
- "content-paragraph": "gray-600",
15
- "gray-foreground": "gray-600",
16
- "primary-foreground": "primary",
17
- "secondary-foreground": "secondary-darken-3",
18
- "surface-card": "white",
19
- "gray-foreground-muted": "gray-450",
20
- "gray-stroke-muted": "gray-100",
21
- "gray-background-fill-muted": "gray-400",
22
- "gray-background-soft-muted": "gray-30",
23
- "primary-foreground-onfill": "white",
24
- "primary-background-fill": "primary"
15
+ 'content-title': 'primary',
16
+ 'content-paragraph': 'gray-600',
17
+ 'gray-foreground': 'gray-600',
18
+ 'primary-foreground': 'primary',
19
+ 'secondary-foreground': 'secondary-darken-3',
20
+ 'secondary-stroke-emphasis': 'secondary-darken-1',
21
+ 'surface-card': 'white',
22
+ 'gray-foreground-muted': 'gray-450',
23
+ 'gray-stroke-muted': 'gray-100',
24
+ 'gray-background-fill-muted': 'gray-400',
25
+ 'gray-background-soft-muted': 'gray-30',
26
+ 'primary-foreground-onfill': 'white',
27
+ 'primary-background-fill': 'primary',
28
+ 'red-foreground': 'red-darken-2',
29
+ 'go-foreground': 'go-darken-1'
25
30
  };
26
31
 
27
32
  /** Fallback — dark mode (espelha tokens.css `.dark`). */
28
33
  const DARK_COLOR_ALIAS_MAP = {
29
- "content-title": "white",
30
- "content-paragraph": "gray-150",
31
- "gray-foreground": "gray-100",
32
- "primary-foreground": "gray-100",
33
- "secondary-foreground": "secondary-lighten-1",
34
- "surface-card": "gray-850",
35
- "gray-foreground-muted": "gray-150",
36
- "gray-stroke-muted": "gray-700",
37
- "gray-background-fill-muted": "gray-300",
38
- "gray-background-soft-muted": "gray-700",
39
- "primary-foreground-onfill": "primary",
40
- "primary-background-fill": "gray-70"
34
+ 'content-title': 'white',
35
+ 'content-paragraph': 'gray-150',
36
+ 'gray-foreground': 'gray-100',
37
+ 'primary-foreground': 'gray-100',
38
+ 'secondary-foreground': 'secondary-lighten-1',
39
+ 'secondary-stroke-emphasis': 'secondary',
40
+ 'surface-card': 'gray-850',
41
+ 'gray-foreground-muted': 'gray-150',
42
+ 'gray-stroke-muted': 'gray-700',
43
+ 'gray-background-fill-muted': 'gray-300',
44
+ 'gray-background-soft-muted': 'gray-700',
45
+ 'primary-foreground-onfill': 'primary',
46
+ 'primary-background-fill': 'gray-70',
47
+ 'red-foreground': 'red-lighten-3',
48
+ 'go-foreground': 'go-lighten-5'
41
49
  };
50
+
51
+ /** Fallback estático quando NativeWind não resolve `var(--color-*)` encadeado. */
52
+ const THEME_COLOR_FALLBACKS = {
53
+ white: '#FFFFFF',
54
+ primary: 'rgba(0, 32, 91, 1)',
55
+ 'gray-600': 'rgba(49, 57, 73, 1)',
56
+ 'gray-450': 'rgba(90, 105, 135, 1)',
57
+ 'gray-400': 'rgba(122, 133, 151, 1)',
58
+ 'gray-100': 'rgba(231, 233, 239, 1)',
59
+ 'gray-30': 'rgba(249, 250, 251, 1)',
60
+ 'gray-150': 'rgba(206, 211, 222, 1)',
61
+ 'gray-300': 'rgba(133, 146, 173, 1)',
62
+ 'gray-700': 'rgba(33, 38, 49, 1)',
63
+ 'gray-850': 'rgba(16, 19, 24, 1)',
64
+ 'gray-70': 'rgba(240, 241, 245, 1)',
65
+ 'red-darken-2': 'rgba(182, 27, 45, 1)',
66
+ 'red-lighten-3': 'rgba(231, 131, 142, 1)',
67
+ 'go-darken-1': 'rgba(141, 22, 77, 1)',
68
+ 'go-lighten-5': 'rgba(237, 187, 192, 1)',
69
+ 'secondary-darken-1': 'rgba(7, 171, 149, 1)',
70
+ 'secondary-darken-3': 'rgba(13, 104, 92, 1)',
71
+ 'secondary-lighten-1': 'rgba(22, 208, 118, 1)'
72
+ };
73
+ const DEFAULT_COLOR = exports.DEFAULT_COLOR = '#3B4958';
42
74
  function toCssVariable(token) {
43
- return token.startsWith("--") ? token : `--color-${token}`;
75
+ return token.startsWith('--') ? token : `--color-${token}`;
44
76
  }
45
77
  function toTokenName(token) {
46
- return token.startsWith("--color-") ? token.slice("--color-".length) : token;
78
+ return token.startsWith('--color-') ? token.slice('--color-'.length) : token;
47
79
  }
48
80
  function toResolvedCssVariable(token, aliasMap) {
49
81
  const tokenName = toTokenName(token);
50
82
  return toCssVariable(aliasMap[tokenName] ?? tokenName);
51
83
  }
52
84
  function isResolvedColor(value) {
53
- return typeof value === "string" && !value.startsWith("var(");
85
+ return typeof value === 'string' && !value.startsWith('var(');
86
+ }
87
+ function getFallbackColor(token, aliasMap) {
88
+ const tokenName = toTokenName(token);
89
+ const aliasToken = aliasMap[tokenName] ?? tokenName;
90
+ return THEME_COLOR_FALLBACKS[tokenName] ?? THEME_COLOR_FALLBACKS[aliasToken] ?? DEFAULT_COLOR;
54
91
  }
55
92
 
56
93
  /**
@@ -61,11 +98,11 @@ function useThemeColor(token) {
61
98
  const {
62
99
  colorScheme
63
100
  } = (0, _nativewind.useColorScheme)();
64
- const aliasMap = colorScheme === "dark" ? DARK_COLOR_ALIAS_MAP : LIGHT_COLOR_ALIAS_MAP;
101
+ const aliasMap = colorScheme === 'dark' ? DARK_COLOR_ALIAS_MAP : LIGHT_COLOR_ALIAS_MAP;
65
102
  const value = (0, _nativewind.useUnstableNativeVariable)(toCssVariable(token));
66
103
  const resolvedValue = (0, _nativewind.useUnstableNativeVariable)(toResolvedCssVariable(token, aliasMap));
67
104
  if (isResolvedColor(value)) return value;
68
105
  if (isResolvedColor(resolvedValue)) return resolvedValue;
69
- return undefined;
106
+ return getFallbackColor(token, aliasMap);
70
107
  }
71
108
  //# sourceMappingURL=useThemeColor.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_nativewind","require","LIGHT_COLOR_ALIAS_MAP","DARK_COLOR_ALIAS_MAP","toCssVariable","token","startsWith","toTokenName","slice","length","toResolvedCssVariable","aliasMap","tokenName","isResolvedColor","value","useThemeColor","colorScheme","useColorScheme","useUnstableN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AAK,CAAC;EACpC,OAAOD,aAAa,CAACO,QAAQ,CAACC,SAAS,CAAC,IAAIA,SAAS,CAAC;AACxD;AAEA,SAASC,eAAeA,CAACC,KAAc,EAAmB;EACxD,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACA,KAAK,CAACR,UAAU,CAAC,MAAM,CAAC;AAC/D;;AAEA;AACA;AACA;AACA;AACA,SAASS,aAAaA,CAACV,KAAsB,EAAsB;EACjE,MAAM;IAAEW;EAAY,CAAC,GAAG,IAAAC,0BAAc,EAAC,CAAC;EACxC,MAAMN,QAAQ,GACZK,WAAW,KAAK,MAAM,GAAGb,oBAAoB,GAAGD,qBAAqB;EAEvE,MAAMY,KAAK,GAAG,IAAAI,qCAAyB,EAACd,aAAa,CAACC,KAAK,CAAC,CAAC;EAC7D,MAAMc,aAAa,GAAG,IAAAD,qCAAyB,EAC7CR,qBAAqB,CAACL,KAAK,EAAEM,QAAQ,CACvC,CAAC;EAED,IAAIE,eAAe,CAACC,KAAK,CAAC,EAAE,OAAOA,KAAK;EACxC,IAAID,eAAe,CAACM,aAAa,CAAC,EAAE,OAAOA,aAAa;EAExD,OAAOC,SAAS;AAClB","ignoreList":[]}
1
+ {"version":3,"names":["_nativewind","require","LIGHT_COLOR_ALIAS_MAP","DARK_COLOR_ALIAS_MAP","THEME_COLOR_FALLBACKS","white","primary","DEFAULT_COLOR","exports","toCssVariable","token","startsWith","toTokenName","slice","length","toResolvedCssVariable","aliasMap","tokenName","isResolvedColor","value","getFallbackColor","aliasToken","useThemeColor","colorScheme","useColorScheme","useUnstableNativeVariable","resolvedValue"],"sourceRoot":"../../../src","sources":["hooks/useThemeColor.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEA;;AAGA;AACA,MAAMC,qBAA6C,GAAG;EACpD,eAAe,EAAE,SAAS;EAC1B,mBAAmB,EAAE,UAAU;EAC/B,iBAAiB,EAAE,UAAU;EAC7B,oBAAoB,EAAE,SAAS;E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yB,EAAChB,aAAa,CAACC,KAAK,CAAC,CAAC;EAC7D,MAAMgB,aAAa,GAAG,IAAAD,qCAAyB,EAC7CV,qBAAqB,CAACL,KAAK,EAAEM,QAAQ,CACvC,CAAC;EAED,IAAIE,eAAe,CAACC,KAAK,CAAC,EAAE,OAAOA,KAAK;EACxC,IAAID,eAAe,CAACQ,aAAa,CAAC,EAAE,OAAOA,aAAa;EAExD,OAAON,gBAAgB,CAACV,KAAK,EAAEM,QAAQ,CAAC;AAC1C","ignoreList":[]}
@@ -243,6 +243,24 @@ Object.defineProperty(exports, "CardNewsTitle", {
243
243
  return _CardNews.CardNewsTitle;
244
244
  }
245
245
  });
246
+ Object.defineProperty(exports, "Carousel", {
247
+ enumerable: true,
248
+ get: function () {
249
+ return _Carousel.Carousel;
250
+ }
251
+ });
252
+ Object.defineProperty(exports, "CarouselMediaSlide", {
253
+ enumerable: true,
254
+ get: function () {
255
+ return _Carousel.CarouselMediaSlide;
256
+ }
257
+ });
258
+ Object.defineProperty(exports, "CarouselMetricSlide", {
259
+ enumerable: true,
260
+ get: function () {
261
+ return _Carousel.CarouselMetricSlide;
262
+ }
263
+ });
246
264
  Object.defineProperty(exports, "Checkbox", {
247
265
  enumerable: true,
248
266
  get: function () {
@@ -315,6 +333,42 @@ Object.defineProperty(exports, "DialogTrigger", {
315
333
  return _Dialog.DialogTrigger;
316
334
  }
317
335
  });
336
+ Object.defineProperty(exports, "DropdownMenu", {
337
+ enumerable: true,
338
+ get: function () {
339
+ return _DropdownMenu.DropdownMenu;
340
+ }
341
+ });
342
+ Object.defineProperty(exports, "DropdownMenuContent", {
343
+ enumerable: true,
344
+ get: function () {
345
+ return _DropdownMenu.DropdownMenuContent;
346
+ }
347
+ });
348
+ Object.defineProperty(exports, "DropdownMenuGroup", {
349
+ enumerable: true,
350
+ get: function () {
351
+ return _DropdownMenu.DropdownMenuGroup;
352
+ }
353
+ });
354
+ Object.defineProperty(exports, "DropdownMenuItem", {
355
+ enumerable: true,
356
+ get: function () {
357
+ return _DropdownMenu.DropdownMenuItem;
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "DropdownMenuSeparator", {
361
+ enumerable: true,
362
+ get: function () {
363
+ return _DropdownMenu.DropdownMenuSeparator;
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "DropdownMenuTrigger", {
367
+ enumerable: true,
368
+ get: function () {
369
+ return _DropdownMenu.DropdownMenuTrigger;
370
+ }
371
+ });
318
372
  Object.defineProperty(exports, "EmptyState", {
319
373
  enumerable: true,
320
374
  get: function () {
@@ -327,6 +381,30 @@ Object.defineProperty(exports, "FallbackImage", {
327
381
  return _FallbackImage.FallbackImage;
328
382
  }
329
383
  });
384
+ Object.defineProperty(exports, "Feed", {
385
+ enumerable: true,
386
+ get: function () {
387
+ return _Feed.Feed;
388
+ }
389
+ });
390
+ Object.defineProperty(exports, "FeedComposer", {
391
+ enumerable: true,
392
+ get: function () {
393
+ return _Feed.FeedComposer;
394
+ }
395
+ });
396
+ Object.defineProperty(exports, "FeedNotice", {
397
+ enumerable: true,
398
+ get: function () {
399
+ return _FeedNotice.FeedNotice;
400
+ }
401
+ });
402
+ Object.defineProperty(exports, "FeedTitle", {
403
+ enumerable: true,
404
+ get: function () {
405
+ return _Feed.FeedTitle;
406
+ }
407
+ });
330
408
  Object.defineProperty(exports, "Input", {
331
409
  enumerable: true,
332
410
  get: function () {
@@ -387,18 +465,102 @@ Object.defineProperty(exports, "InputWrapper", {
387
465
  return _Input.InputWrapper;
388
466
  }
389
467
  });
468
+ Object.defineProperty(exports, "InvitePopover", {
469
+ enumerable: true,
470
+ get: function () {
471
+ return _InvitePopover.InvitePopover;
472
+ }
473
+ });
474
+ Object.defineProperty(exports, "InvitePopoverCard", {
475
+ enumerable: true,
476
+ get: function () {
477
+ return _InvitePopover.InvitePopoverCard;
478
+ }
479
+ });
480
+ Object.defineProperty(exports, "InvitePopoverClose", {
481
+ enumerable: true,
482
+ get: function () {
483
+ return _InvitePopover.InvitePopoverClose;
484
+ }
485
+ });
486
+ Object.defineProperty(exports, "InvitePopoverContent", {
487
+ enumerable: true,
488
+ get: function () {
489
+ return _InvitePopover.InvitePopoverContent;
490
+ }
491
+ });
492
+ Object.defineProperty(exports, "InvitePopoverDivider", {
493
+ enumerable: true,
494
+ get: function () {
495
+ return _InvitePopover.InvitePopoverDivider;
496
+ }
497
+ });
498
+ Object.defineProperty(exports, "InvitePopoverEmailRow", {
499
+ enumerable: true,
500
+ get: function () {
501
+ return _InvitePopover.InvitePopoverEmailRow;
502
+ }
503
+ });
504
+ Object.defineProperty(exports, "InvitePopoverSendButton", {
505
+ enumerable: true,
506
+ get: function () {
507
+ return _InvitePopover.InvitePopoverSendButton;
508
+ }
509
+ });
510
+ Object.defineProperty(exports, "InvitePopoverShareButton", {
511
+ enumerable: true,
512
+ get: function () {
513
+ return _InvitePopover.InvitePopoverShareButton;
514
+ }
515
+ });
516
+ Object.defineProperty(exports, "InvitePopoverTitle", {
517
+ enumerable: true,
518
+ get: function () {
519
+ return _InvitePopover.InvitePopoverTitle;
520
+ }
521
+ });
522
+ Object.defineProperty(exports, "InvitePopoverTrigger", {
523
+ enumerable: true,
524
+ get: function () {
525
+ return _InvitePopover.InvitePopoverTrigger;
526
+ }
527
+ });
390
528
  Object.defineProperty(exports, "Label", {
391
529
  enumerable: true,
392
530
  get: function () {
393
531
  return _Label.Label;
394
532
  }
395
533
  });
534
+ Object.defineProperty(exports, "LeaderboardCard", {
535
+ enumerable: true,
536
+ get: function () {
537
+ return _LeaderboardCard.LeaderboardCard;
538
+ }
539
+ });
540
+ Object.defineProperty(exports, "LeaderboardCardHeader", {
541
+ enumerable: true,
542
+ get: function () {
543
+ return _LeaderboardCard.LeaderboardCardHeader;
544
+ }
545
+ });
546
+ Object.defineProperty(exports, "LeaderboardCardList", {
547
+ enumerable: true,
548
+ get: function () {
549
+ return _LeaderboardCard.LeaderboardCardList;
550
+ }
551
+ });
396
552
  Object.defineProperty(exports, "Loading", {
397
553
  enumerable: true,
398
554
  get: function () {
399
555
  return _Loading.Loading;
400
556
  }
401
557
  });
558
+ Object.defineProperty(exports, "MemberRow", {
559
+ enumerable: true,
560
+ get: function () {
561
+ return _MemberRow.MemberRow;
562
+ }
563
+ });
402
564
  Object.defineProperty(exports, "PageHeader", {
403
565
  enumerable: true,
404
566
  get: function () {
@@ -429,6 +591,78 @@ Object.defineProperty(exports, "PopoverTrigger", {
429
591
  return _Popover.PopoverTrigger;
430
592
  }
431
593
  });
594
+ Object.defineProperty(exports, "PostForm", {
595
+ enumerable: true,
596
+ get: function () {
597
+ return _PostForm.PostForm;
598
+ }
599
+ });
600
+ Object.defineProperty(exports, "PostFormCheckboxOption", {
601
+ enumerable: true,
602
+ get: function () {
603
+ return _PostForm.PostFormCheckboxOption;
604
+ }
605
+ });
606
+ Object.defineProperty(exports, "PostFormDateTimeField", {
607
+ enumerable: true,
608
+ get: function () {
609
+ return _PostForm.PostFormDateTimeField;
610
+ }
611
+ });
612
+ Object.defineProperty(exports, "PostFormDescription", {
613
+ enumerable: true,
614
+ get: function () {
615
+ return _PostForm.PostFormDescription;
616
+ }
617
+ });
618
+ Object.defineProperty(exports, "PostFormHeader", {
619
+ enumerable: true,
620
+ get: function () {
621
+ return _PostForm.PostFormHeader;
622
+ }
623
+ });
624
+ Object.defineProperty(exports, "PostFormMediaPicker", {
625
+ enumerable: true,
626
+ get: function () {
627
+ return _PostForm.PostFormMediaPicker;
628
+ }
629
+ });
630
+ Object.defineProperty(exports, "PrizeCollection", {
631
+ enumerable: true,
632
+ get: function () {
633
+ return _PrizeCollection.PrizeCollection;
634
+ }
635
+ });
636
+ Object.defineProperty(exports, "PrizeCollectionStats", {
637
+ enumerable: true,
638
+ get: function () {
639
+ return _PrizeCollection.PrizeCollectionStats;
640
+ }
641
+ });
642
+ Object.defineProperty(exports, "PrizeCollectionStatsItem", {
643
+ enumerable: true,
644
+ get: function () {
645
+ return _PrizeCollection.PrizeCollectionStatsItem;
646
+ }
647
+ });
648
+ Object.defineProperty(exports, "PrizeItem", {
649
+ enumerable: true,
650
+ get: function () {
651
+ return _PrizeCollection.PrizeItem;
652
+ }
653
+ });
654
+ Object.defineProperty(exports, "PrizeRow", {
655
+ enumerable: true,
656
+ get: function () {
657
+ return _PrizeCollection.PrizeRow;
658
+ }
659
+ });
660
+ Object.defineProperty(exports, "PrizeShelf", {
661
+ enumerable: true,
662
+ get: function () {
663
+ return _PrizeCollection.PrizeShelf;
664
+ }
665
+ });
432
666
  Object.defineProperty(exports, "RadioGroup", {
433
667
  enumerable: true,
434
668
  get: function () {
@@ -441,6 +675,24 @@ Object.defineProperty(exports, "RadioGroupItem", {
441
675
  return _RadioGroup.RadioGroupItem;
442
676
  }
443
677
  });
678
+ Object.defineProperty(exports, "RadioGroupList", {
679
+ enumerable: true,
680
+ get: function () {
681
+ return _RadioGroup.RadioGroupList;
682
+ }
683
+ });
684
+ Object.defineProperty(exports, "RadioGroupListItem", {
685
+ enumerable: true,
686
+ get: function () {
687
+ return _RadioGroup.RadioGroupListItem;
688
+ }
689
+ });
690
+ Object.defineProperty(exports, "SectionHeader", {
691
+ enumerable: true,
692
+ get: function () {
693
+ return _SectionHeader.SectionHeader;
694
+ }
695
+ });
444
696
  Object.defineProperty(exports, "Select", {
445
697
  enumerable: true,
446
698
  get: function () {
@@ -591,12 +843,42 @@ Object.defineProperty(exports, "Switch", {
591
843
  return _Switch.Switch;
592
844
  }
593
845
  });
846
+ Object.defineProperty(exports, "Tabs", {
847
+ enumerable: true,
848
+ get: function () {
849
+ return _Tabs.Tabs;
850
+ }
851
+ });
852
+ Object.defineProperty(exports, "TabsContent", {
853
+ enumerable: true,
854
+ get: function () {
855
+ return _Tabs.TabsContent;
856
+ }
857
+ });
858
+ Object.defineProperty(exports, "TabsList", {
859
+ enumerable: true,
860
+ get: function () {
861
+ return _Tabs.TabsList;
862
+ }
863
+ });
864
+ Object.defineProperty(exports, "TabsTrigger", {
865
+ enumerable: true,
866
+ get: function () {
867
+ return _Tabs.TabsTrigger;
868
+ }
869
+ });
594
870
  Object.defineProperty(exports, "Tag", {
595
871
  enumerable: true,
596
872
  get: function () {
597
873
  return _Tag.Tag;
598
874
  }
599
875
  });
876
+ Object.defineProperty(exports, "Text", {
877
+ enumerable: true,
878
+ get: function () {
879
+ return _Text.Text;
880
+ }
881
+ });
600
882
  Object.defineProperty(exports, "ThemedIcon", {
601
883
  enumerable: true,
602
884
  get: function () {
@@ -735,12 +1017,30 @@ Object.defineProperty(exports, "labelVariants", {
735
1017
  return _Label.labelVariants;
736
1018
  }
737
1019
  });
1020
+ Object.defineProperty(exports, "memberRowVariants", {
1021
+ enumerable: true,
1022
+ get: function () {
1023
+ return _MemberRow.memberRowVariants;
1024
+ }
1025
+ });
738
1026
  Object.defineProperty(exports, "radioGroupVariants", {
739
1027
  enumerable: true,
740
1028
  get: function () {
741
1029
  return _RadioGroup.radioGroupVariants;
742
1030
  }
743
1031
  });
1032
+ Object.defineProperty(exports, "rankIndicatorVariants", {
1033
+ enumerable: true,
1034
+ get: function () {
1035
+ return _MemberRow.rankIndicatorVariants;
1036
+ }
1037
+ });
1038
+ Object.defineProperty(exports, "resolveMontserratFamily", {
1039
+ enumerable: true,
1040
+ get: function () {
1041
+ return _Text.resolveMontserratFamily;
1042
+ }
1043
+ });
744
1044
  Object.defineProperty(exports, "selectVariants", {
745
1045
  enumerable: true,
746
1046
  get: function () {
@@ -753,6 +1053,12 @@ Object.defineProperty(exports, "switchVariants", {
753
1053
  return _Switch.switchVariants;
754
1054
  }
755
1055
  });
1056
+ Object.defineProperty(exports, "tabsTriggerVariants", {
1057
+ enumerable: true,
1058
+ get: function () {
1059
+ return _Tabs.tabsTriggerVariants;
1060
+ }
1061
+ });
756
1062
  Object.defineProperty(exports, "tagTextVariants", {
757
1063
  enumerable: true,
758
1064
  get: function () {
@@ -796,21 +1102,33 @@ var _FallbackImage = require("@/components/FallbackImage");
796
1102
  var _CardNews = require("@/components/CardNews");
797
1103
  var _EmptyState = require("@/components/EmptyState");
798
1104
  var _PageHeader = require("@/components/PageHeader");
1105
+ var _Carousel = require("@/components/Carousel");
1106
+ var _DropdownMenu = require("@/components/DropdownMenu");
1107
+ var _Feed = require("@/components/Feed");
1108
+ var _FeedNotice = require("@/components/FeedNotice");
1109
+ var _InvitePopover = require("@/components/InvitePopover");
1110
+ var _LeaderboardCard = require("@/components/LeaderboardCard");
1111
+ var _MemberRow = require("@/components/MemberRow");
1112
+ var _PostForm = require("@/components/PostForm");
1113
+ var _PrizeCollection = require("@/components/PrizeCollection");
1114
+ var _Text = require("@/components/Text");
1115
+ var _SectionHeader = require("@/components/SectionHeader");
799
1116
  var _Button = require("@/components/Button");
800
1117
  var _Checkbox = require("@/components/Checkbox");
801
1118
  var _Input = require("@/components/Input");
802
1119
  var _Label = require("@/components/Label");
803
1120
  var _Loading = require("@/components/Loading");
1121
+ var _Skeleton = require("@/components/Skeleton");
804
1122
  var _RadioGroup = require("@/components/RadioGroup");
805
1123
  var _Select = require("@/components/Select");
806
1124
  var _Separator = require("@/components/Separator");
807
- var _Skeleton = require("@/components/Skeleton");
808
1125
  var _Switch = require("@/components/Switch");
809
1126
  var _AlertDialog = require("@/components/AlertDialog");
810
1127
  var _Dialog = require("@/components/Dialog");
811
1128
  var _Popover = require("@/components/Popover");
812
1129
  var _Sheet = require("@/components/Sheet");
813
1130
  var _Tag = require("@/components/Tag");
1131
+ var _Tabs = require("@/components/Tabs");
814
1132
  var _Toast = require("@/components/Toast");
815
1133
  var _Tooltip = require("@/components/Tooltip");
816
1134
  var _useToast = require("@/hooks/use-toast");
@@ -1 +1 @@
1
- {"version":3,"names":["_Alert","require","_Badge","_Avatar","_FallbackImage","_CardNews","_EmptyState","_PageHeader","_Button","_Checkbox","_Input","_Label","_Loading","_RadioGroup","_Select","_Separator","_Skeleton","_Switch","_AlertDialog","_Dialog","_Popover","_Sheet","_Tag","_Toast","_Tooltip","_useToast","_useThemeColor","_ThemedIcon"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;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A;AAIA,IAAAS,MAAA,GAAAT,OAAA;AAwBA,IAAAU,MAAA,GAAAV,OAAA;AAIA,IAAAW,QAAA,GAAAX,OAAA;AAIA,IAAAY,WAAA,GAAAZ,OAAA;AAIA,IAAAa,OAAA,GAAAb,OAAA;AAmBA,IAAAc,UAAA,GAAAd,OAAA;AAIA,IAAAe,SAAA,GAAAf,OAAA;AAIA,IAAAgB,OAAA,GAAAhB,OAAA;AAIA,IAAAiB,YAAA,GAAAjB,OAAA;AA0BA,IAAAkB,OAAA,GAAAlB,OAAA;AAqBA,IAAAmB,QAAA,GAAAnB,OAAA;AASA,IAAAoB,MAAA,GAAApB,OAAA;AAmBA,IAAAqB,IAAA,GAAArB,OAAA;AAIA,IAAAsB,MAAA,GAAAtB,OAAA;AAaA,IAAAuB,QAAA,GAAAvB,OAAA;AASA,IAAAwB,SAAA,GAAAxB,OAAA;AACA,IAAAyB,cAAA,GAAAzB,OAAA;AAIA,IAAA0B,WAAA,GAAA1B,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_Alert","require","_Badge","_Avatar","_FallbackImage","_CardNews","_EmptyState","_PageHeader","_Carousel","_DropdownMenu","_Feed","_FeedNotice","_InvitePopover","_LeaderboardCard","_MemberRow","_PostForm","_PrizeCollection","_Text","_SectionHeader","_Button","_Checkbox","_Input","_Label","_Loading","_Skeleton","_RadioGroup","_Select","_Separator","_Switch","_AlertDialog","_Dialog","_Popover","_Sheet","_Tag","_Tabs","_Toast","_Tooltip","_useToast","_useThemeColor","_ThemedIcon"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.OverlayHostProvider = OverlayHostProvider;
7
+ exports.useOverlayHost = useOverlayHost;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactNative = require("react-native");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
+ const OverlayHostContext = /*#__PURE__*/(0, _react.createContext)(null);
13
+
14
+ /**
15
+ * Host de overlay no topo da árvore Medway UI.
16
+ * Usado pelo DropdownMenu porque o Portal zustand do rn-primitives
17
+ * não renderiza de forma confiável dentro da stack (RNSScreen) deste app.
18
+ */
19
+ function OverlayHostProvider({
20
+ children
21
+ }) {
22
+ const hostRef = (0, _react.useRef)(null);
23
+ const [nodes, setNodes] = (0, _react.useState)({});
24
+ const mount = (0, _react.useCallback)((id, node) => {
25
+ setNodes(prev => {
26
+ if (prev[id] === node) {
27
+ return prev;
28
+ }
29
+ return {
30
+ ...prev,
31
+ [id]: node
32
+ };
33
+ });
34
+ }, []);
35
+ const unmount = (0, _react.useCallback)(id => {
36
+ setNodes(prev => {
37
+ if (!(id in prev)) {
38
+ return prev;
39
+ }
40
+ const next = {
41
+ ...prev
42
+ };
43
+ delete next[id];
44
+ return next;
45
+ });
46
+ }, []);
47
+ const measureHostOrigin = (0, _react.useCallback)(callback => {
48
+ const node = hostRef.current;
49
+ if (!node) {
50
+ callback({
51
+ x: 0,
52
+ y: 0
53
+ });
54
+ return;
55
+ }
56
+ node.measureInWindow((x, y) => {
57
+ callback({
58
+ x,
59
+ y
60
+ });
61
+ });
62
+ }, []);
63
+ const value = (0, _react.useMemo)(() => ({
64
+ mount,
65
+ unmount,
66
+ measureHostOrigin
67
+ }), [mount, unmount, measureHostOrigin]);
68
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(OverlayHostContext.Provider, {
69
+ value: value,
70
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
71
+ style: styles.root,
72
+ children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
73
+ ref: hostRef,
74
+ style: styles.host,
75
+ pointerEvents: "box-none",
76
+ collapsable: false,
77
+ children: Object.entries(nodes).map(([id, node]) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.default.Fragment, {
78
+ children: node
79
+ }, id))
80
+ })]
81
+ })
82
+ });
83
+ }
84
+ function useOverlayHost() {
85
+ const ctx = (0, _react.useContext)(OverlayHostContext);
86
+ if (!ctx) {
87
+ throw new Error('useOverlayHost must be used within OverlayHostProvider (MedwayUiProvider)');
88
+ }
89
+ return ctx;
90
+ }
91
+ const styles = _reactNative.StyleSheet.create({
92
+ root: {
93
+ flex: 1
94
+ },
95
+ host: {
96
+ ..._reactNative.StyleSheet.absoluteFill,
97
+ zIndex: 99999,
98
+ elevation: 99999
99
+ }
100
+ });
101
+ //# sourceMappingURL=overlay-host.js.map