cross-country 1.2.25 → 1.2.26

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 (311) hide show
  1. package/README.md +22 -3
  2. package/dist/{bolt-BLbYxvOV.js → bolt-CUzvRxsQ.js} +3 -21
  3. package/dist/bundle.css +61 -32
  4. package/dist/components/atoms/column/column.js +11 -11
  5. package/dist/components/atoms/radio/radio.js +7 -8
  6. package/dist/components/atoms/row/row.js +8 -8
  7. package/dist/components/atoms/text/headline/headline.js +25 -0
  8. package/dist/components/atoms/text/headline/index.js +4 -0
  9. package/dist/components/atoms/text/input/__stories__/perplexity-service.js +7 -7
  10. package/dist/components/atoms/text/input/state-machine-text-input.js +1 -1
  11. package/dist/components/atoms/text/input/text-input.js +34 -30
  12. package/dist/components/atoms/text/paragraph/paragraph.js +18 -6
  13. package/dist/components/atoms/text/span/__stories__/span-story.js +3 -21
  14. package/dist/components/atoms/text/text-area/text-area.js +13 -13
  15. package/dist/components/index.js +101 -100
  16. package/dist/components/molecules/animated/animated-column/__tests__/animated-column.test.js +22 -0
  17. package/dist/components/molecules/animated/animated-column/animated-column.js +32 -0
  18. package/dist/components/molecules/animated/animated-column/index.js +4 -0
  19. package/dist/components/molecules/card/amazon/amazon-card.js +23 -41
  20. package/dist/components/molecules/card/builder/card-editor.js +17 -35
  21. package/dist/components/molecules/card/card.js +3 -21
  22. package/dist/components/molecules/carousel/carousel.js +19 -28
  23. package/dist/components/molecules/day-number/day-number.js +7 -25
  24. package/dist/components/molecules/field/field.js +26 -44
  25. package/dist/components/molecules/gold-leaf/gold-leaf-view/__tests__/gold-leaf-view.test.js +1 -1
  26. package/dist/components/molecules/gold-leaf/gold-leaf-view/controls/gold-leaf-view-controls.js +64 -81
  27. package/dist/components/molecules/gold-leaf/gold-leaf-view/email/gold-leaf-email-view.js +15 -33
  28. package/dist/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.js +3 -21
  29. package/dist/components/molecules/gold-leaf/gold-leaf-view/index.js +1 -1
  30. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.js +15 -34
  31. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.js +4 -22
  32. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-image-card.js +4 -22
  33. package/dist/components/molecules/gold-leaf/gold-leaf.js +1 -1
  34. package/dist/components/molecules/header/header.js +22 -40
  35. package/dist/components/molecules/hero/hero.js +4 -22
  36. package/dist/components/molecules/icons/index.js +1 -19
  37. package/dist/components/molecules/icons/x/x.js +3 -21
  38. package/dist/components/molecules/index.js +5 -23
  39. package/dist/components/molecules/key-value-pairs/key-value-pairs.js +16 -34
  40. package/dist/components/molecules/keywords/keywords.js +7 -25
  41. package/dist/components/molecules/log-error-boundary/log-error-boundary.js +3 -21
  42. package/dist/components/molecules/modal/modal.js +15 -33
  43. package/dist/components/molecules/policies/index.js +1 -19
  44. package/dist/components/molecules/policies/privacy-policy/index.js +4 -0
  45. package/dist/components/molecules/policies/{privacy-policy.js → privacy-policy/privacy-policy.js} +31 -49
  46. package/dist/components/molecules/policies/terms-of-use/index.js +4 -0
  47. package/dist/components/molecules/policies/{terms-of-use.js → terms-of-use/terms-of-use.js} +21 -39
  48. package/dist/components/molecules/quote/quote.js +3 -21
  49. package/dist/components/molecules/radio-group/__stories__/radio-group-form-story.js +65 -0
  50. package/dist/components/molecules/{radiogroup → radio-group}/__stories__/radio-group-react-hook-form-story.js +17 -35
  51. package/dist/components/molecules/radio-group/index.js +4 -0
  52. package/dist/components/molecules/related-articles/related-articles.js +3 -21
  53. package/dist/components/molecules/search/search.js +3 -21
  54. package/dist/components/molecules/stagger/stagger.js +46 -57
  55. package/dist/components/molecules/tile/index.js +1 -1
  56. package/dist/components/molecules/tile/tile-interactive.js +2 -20
  57. package/dist/components/molecules/tile/tile.js +1 -1
  58. package/dist/components/molecules/time-progress/progress-over-year.js +3 -21
  59. package/dist/components/molecules/time-progress/progress.js +3 -21
  60. package/dist/components/molecules/user/anon-user.js +21 -39
  61. package/dist/components/molecules/user/user.js +4 -22
  62. package/dist/components/molecules/venn-diagram/venn-diagram-circle.js +7 -25
  63. package/dist/components/molecules/venn-diagram/venn-diagram.js +12 -30
  64. package/dist/components/molecules/wrapper/__stories__/wrapper-children-story.js +9 -27
  65. package/dist/components/organisms/actors/actor/actor-builder.js +7 -24
  66. package/dist/components/organisms/actors/actor/actor.js +83 -23
  67. package/dist/components/organisms/actors/actor/index.js +2 -2
  68. package/dist/components/organisms/actors/actor-speech/actor-speech.js +40 -0
  69. package/dist/components/organisms/actors/actor-speech/index.js +4 -0
  70. package/dist/components/organisms/actors/animal/animal.js +1 -1
  71. package/dist/components/organisms/actors/monsters/troll/troll.js +4 -21
  72. package/dist/components/organisms/actors/party/cleric/cleric.js +9 -9
  73. package/dist/components/organisms/actors/party/hunter/hunter.js +4 -4
  74. package/dist/components/organisms/actors/party/warrior/warrior.js +8 -8
  75. package/dist/components/organisms/actors/party/wizard/wizard.js +1 -1
  76. package/dist/components/organisms/actors/wisp/wisp.js +5 -5
  77. package/dist/components/organisms/ads/ad-card.js +11 -29
  78. package/dist/components/organisms/animation/animate-actor/animate-actor.js +4 -21
  79. package/dist/components/organisms/animation/one-day/one-day.js +30 -48
  80. package/dist/components/organisms/animation/reverse-text-animation/reverse-text-animation.js +35 -44
  81. package/dist/components/organisms/bento/layouts/five-by-four/bento-five-by-four.js +46 -64
  82. package/dist/components/organisms/bento/layouts/four-by-four/bento-four-by-four.js +29 -47
  83. package/dist/components/organisms/bento/layouts/three-by-three/bento-three-by-three.js +44 -62
  84. package/dist/components/organisms/bento/layouts/two-by-two/bento-two-by-two.js +20 -38
  85. package/dist/components/organisms/blog/__stories__/blog-story.js +15 -33
  86. package/dist/components/organisms/blog/blog-post/__stories__/blog-post-story.js +7 -25
  87. package/dist/components/organisms/blog/blog-post/blog-post.js +53 -72
  88. package/dist/components/organisms/blog/blog-post/blog-post.types.js +2875 -10
  89. package/dist/components/organisms/blog/blog-post-list.js +3 -21
  90. package/dist/components/organisms/blog/blog.js +6 -24
  91. package/dist/components/organisms/branch/branch.js +3 -21
  92. package/dist/components/organisms/branches/branch-list.js +27 -45
  93. package/dist/components/organisms/branches/branches.js +3 -21
  94. package/dist/components/organisms/calendar/calendar.js +26 -44
  95. package/dist/components/organisms/charts/chart/chart-gold-leaf/chart-gold-leaf.js +1 -19
  96. package/dist/components/organisms/clusters/cluster.js +3 -21
  97. package/dist/components/organisms/json-map-tile-grid/index.js +1 -1
  98. package/dist/components/organisms/json-map-tile-grid/json-map-tile-grid.js +2 -20
  99. package/dist/components/organisms/listicle/__stories__/andor-right-click-story.js +9 -34
  100. package/dist/components/organisms/listicle/__stories__/listicle-fb-v-canada-story.js +7 -27
  101. package/dist/components/organisms/listicle/__stories__/listicle-story.js +3 -21
  102. package/dist/components/organisms/listicle/edit-listicle/edit-listicle.js +11 -29
  103. package/dist/components/organisms/listicle/edit-listicle-item-list/edit-listicle-item-list.js +12 -30
  104. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item-input.js +29 -47
  105. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item.js +6 -24
  106. package/dist/components/organisms/listicle/listicle-builder.js +3 -21
  107. package/dist/components/organisms/listicle/listicle-item-list.js +10 -28
  108. package/dist/components/organisms/listicle/listicle.js +14 -32
  109. package/dist/components/organisms/listicle/post-link.js +9 -27
  110. package/dist/components/organisms/login/login-fetching-transition.js +6 -24
  111. package/dist/components/organisms/login/login-fields-transition.js +24 -42
  112. package/dist/components/organisms/login/login-response-transition.js +21 -39
  113. package/dist/components/organisms/login/login-submit-transition.js +19 -37
  114. package/dist/components/organisms/login/login-view.js +25 -43
  115. package/dist/components/organisms/metrics/metrics.js +7 -25
  116. package/dist/components/organisms/palettes/palettes.js +18 -36
  117. package/dist/components/organisms/player/player.js +784 -677
  118. package/dist/components/organisms/registration/password-strength-helper/password-strength-helper.js +32 -50
  119. package/dist/components/organisms/registration/post-registration.js +20 -18
  120. package/dist/components/organisms/registration/registration-feedback.js +72 -0
  121. package/dist/components/organisms/registration/registration-form.js +81 -97
  122. package/dist/components/organisms/registration/registration-machine.js +17 -8
  123. package/dist/components/organisms/registration/registration.js +59 -75
  124. package/dist/components/organisms/registration/social-email.js +6 -24
  125. package/dist/components/organisms/stage/stage.js +54 -48
  126. package/dist/components/organisms/survey/__stories__/build-form-story.js +14 -32
  127. package/dist/components/organisms/survey/build-form.js +18 -36
  128. package/dist/components/organisms/survey/final-form.js +12 -30
  129. package/dist/components/organisms/survey/question/edit/__stories__/edit-question-story.js +15 -33
  130. package/dist/components/organisms/survey/question/edit/add-media.js +3 -21
  131. package/dist/components/organisms/survey/question/edit/add-question/__stories__/add-question-story.js +3 -21
  132. package/dist/components/organisms/survey/question/edit/add-question/add-question.js +36 -54
  133. package/dist/components/organisms/survey/question/edit/answer/answer-input.js +15 -33
  134. package/dist/components/organisms/survey/question/edit/answer-input.js +36 -54
  135. package/dist/components/organisms/survey/question/edit/edit-multiple-choice.js +8 -26
  136. package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list.js +20 -38
  137. package/dist/components/organisms/survey/question/edit/edit-option-list/option-input.js +19 -37
  138. package/dist/components/organisms/survey/question/edit/edit-option-list/option.js +7 -25
  139. package/dist/components/organisms/survey/question/edit/question-answer-input.js +35 -53
  140. package/dist/components/organisms/survey/question/take/__stories__/multiple-choice-story.js +11 -29
  141. package/dist/components/organisms/survey/question/take/__stories__/take-answer-date-time-input-story.js +12 -30
  142. package/dist/components/organisms/survey/question/take/__stories__/take-answer-input-story.js +12 -30
  143. package/dist/components/organisms/survey/question/take/inputs/input-manager.js +10 -28
  144. package/dist/components/organisms/survey/question/take/multiple-choice.js +4 -22
  145. package/dist/components/organisms/survey/question/take/take-answer-input.js +37 -55
  146. package/dist/components/organisms/tile-grid/__tests__/tile-grid.tests.js +1 -1
  147. package/dist/components/organisms/tile-grid/grid-row.js +3 -21
  148. package/dist/components/organisms/tile-grid/index.js +1 -1
  149. package/dist/components/organisms/tile-grid/island-tile-grid.js +14 -32
  150. package/dist/components/organisms/tile-grid/tile-grid.js +2 -20
  151. package/dist/components/organisms/worlds/area-of-effect/__stories__/area-of-affect-story.js +3 -21
  152. package/dist/components/organisms/worlds/area-of-effect/area-of-affect.js +32 -50
  153. package/dist/components/organisms/worlds/island/__stories__/island-story.js +17 -35
  154. package/dist/components/organisms/worlds/island/__stories__/island-util.js +32 -50
  155. package/dist/components/pages/blog/blog.js +39 -0
  156. package/dist/components/pages/home/headwinds/header/headwinds-header.js +15 -33
  157. package/dist/components/pages/home/headwinds/headwinds-footer.js +9 -27
  158. package/dist/components/pages/home/headwinds/headwinds-hero.js +10 -28
  159. package/dist/components/pages/home/headwinds/headwinds-sidequest.js +37 -55
  160. package/dist/components/pages/home/headwinds/home.js +9 -27
  161. package/dist/components/pages/index.js +3 -21
  162. package/dist/components/pages/profile/headwinds/headwinds-profile.js +44 -62
  163. package/dist/components/pages/profile/index.js +1 -19
  164. package/dist/components/templates/articles/article/article.js +28 -46
  165. package/dist/components/templates/home/headwinds/headwinds-home-hero.js +7 -25
  166. package/dist/components/templates/home/headwinds/headwinds-home.js +18 -36
  167. package/dist/components/templates/home/home.js +44 -62
  168. package/dist/gold-leaf-view-Ct4xOIci.js +160 -0
  169. package/dist/{index-BTF1caLu.js → index-BfWW2ojg.js} +609 -707
  170. package/dist/index-fh-QwMS3.js +3285 -0
  171. package/dist/index.js +172 -188
  172. package/dist/lib/components/atoms/radio/__stories__/radio.stories.d.ts +7 -0
  173. package/dist/lib/components/atoms/text/headline/headline.d.ts +10 -0
  174. package/dist/lib/components/atoms/text/headline/index.d.ts +2 -0
  175. package/dist/lib/components/atoms/text/input/__stories__/input.stories.d.ts +23 -0
  176. package/dist/lib/components/atoms/text/paragraph/paragraph.d.ts +3 -1
  177. package/dist/lib/components/atoms/text/text-area/__stories__/text-area.stories.d.ts +7 -0
  178. package/dist/lib/components/atoms/text/text-area/text-area.d.ts +2 -13
  179. package/dist/lib/components/index.d.ts +2 -2
  180. package/dist/lib/components/molecules/animated/animated-column/__stories__/animated-column.stories.d.ts +9 -0
  181. package/dist/lib/components/molecules/animated/animated-column/__tests__/animated-column.test.d.ts +1 -0
  182. package/dist/lib/components/molecules/animated/animated-column/animated-column.d.ts +12 -0
  183. package/dist/lib/components/molecules/animated/animated-column/index.d.ts +2 -0
  184. package/dist/lib/components/molecules/carousel/carousel.d.ts +14 -1
  185. package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.types.d.ts +2 -3
  186. package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.d.ts +2 -1
  187. package/dist/lib/components/molecules/gold-leaf/gold-leaf.types.d.ts +2 -0
  188. package/dist/lib/components/molecules/index.d.ts +1 -1
  189. package/dist/lib/components/molecules/policies/privacy-policy/__stories__/privacy-policy.stories.d.ts +7 -0
  190. package/dist/lib/components/molecules/policies/privacy-policy/index.d.ts +2 -0
  191. package/dist/lib/components/molecules/policies/privacy-policy/privacy-policy.d.ts +7 -0
  192. package/dist/lib/components/molecules/policies/terms-of-use/__stories__/terms-of-use.stories.d.ts +7 -0
  193. package/dist/lib/components/molecules/policies/terms-of-use/index.d.ts +2 -0
  194. package/dist/lib/components/molecules/radio-group/__stories__/radio-group.stories.d.ts +7 -0
  195. package/dist/lib/components/molecules/radio-group/index.d.ts +2 -0
  196. package/dist/lib/components/molecules/stagger/stagger.d.ts +13 -7
  197. package/dist/lib/components/organisms/actors/actor/actor.d.ts +2 -0
  198. package/dist/lib/components/organisms/actors/actor-speech/actor-speech.d.ts +16 -0
  199. package/dist/lib/components/organisms/actors/actor-speech/index.d.ts +2 -0
  200. package/dist/lib/components/organisms/blog/__stories__/blog.stories.d.ts +7 -0
  201. package/dist/lib/components/organisms/blog/blog.d.ts +1 -1
  202. package/dist/lib/components/organisms/branch/branch.d.ts +2 -2
  203. package/dist/lib/components/organisms/branches/branch-list.d.ts +1 -1
  204. package/dist/lib/components/organisms/registration/index.d.ts +1 -1
  205. package/dist/lib/components/organisms/registration/post-registration.d.ts +1 -0
  206. package/dist/lib/components/organisms/registration/registration-feedback.d.ts +8 -0
  207. package/dist/lib/components/organisms/registration/registration-form.d.ts +4 -3
  208. package/dist/lib/components/organisms/registration/registration-machine.d.ts +1 -0
  209. package/dist/lib/components/organisms/registration/registration.d.ts +7 -1
  210. package/dist/lib/components/organisms/stage/__stories__/actors-dataset.d.ts +1 -3
  211. package/dist/lib/components/organisms/stage/__stories__/stage.stories.d.ts +7 -0
  212. package/dist/lib/components/organisms/stage/stage.d.ts +6 -2
  213. package/dist/lib/components/organisms/tile-grid/tile-grid.d.ts +2 -2
  214. package/dist/lib/components/pages/blog/__stories__/blog.stories.d.ts +7 -0
  215. package/dist/lib/components/pages/blog/blog.d.ts +2 -0
  216. package/dist/lib/index.d.ts +1 -0
  217. package/dist/lib/models/ActorModel.d.ts +20 -89
  218. package/dist/lib/models/BookModel.d.ts +2 -5
  219. package/dist/lib/models/ChapterModel.d.ts +2 -5
  220. package/dist/lib/models/CharacterLevelModel.d.ts +9 -0
  221. package/dist/lib/models/DungeonLevelModel.d.ts +8 -0
  222. package/dist/lib/models/EmailModel.d.ts +2 -12
  223. package/dist/lib/models/EnemyModel.d.ts +16 -39
  224. package/dist/lib/models/ItemModel.d.ts +2 -5
  225. package/dist/lib/models/JsonMapTileModel.d.ts +2 -2
  226. package/dist/lib/models/LeafModel.d.ts +2 -106
  227. package/dist/lib/models/LevelModel.d.ts +5 -11
  228. package/dist/lib/models/NPCModel.d.ts +13 -14
  229. package/dist/lib/models/NeutralModel.d.ts +3 -6
  230. package/dist/lib/models/ObstacleModel.d.ts +3 -5
  231. package/dist/lib/models/PlayerModel.d.ts +3 -6
  232. package/dist/lib/models/PortholeBranchModel.d.ts +18 -33
  233. package/dist/lib/models/PostModel.d.ts +2 -13
  234. package/dist/lib/models/ProfessionModel.d.ts +11 -0
  235. package/dist/lib/models/SettingsModel.d.ts +3 -5
  236. package/dist/lib/models/ShieldModel.d.ts +4 -6
  237. package/dist/lib/models/SkillModel.d.ts +7 -0
  238. package/dist/lib/models/SpellModel.d.ts +5 -0
  239. package/dist/lib/models/TileModel.d.ts +2 -21
  240. package/dist/lib/models/ToolModel.d.ts +5 -0
  241. package/dist/lib/models/TreeModel.d.ts +1 -5
  242. package/dist/lib/models/UserModel.d.ts +2 -15
  243. package/dist/lib/models/ViceModel.d.ts +8 -0
  244. package/dist/lib/models/WeaponModel.d.ts +3 -5
  245. package/dist/lib/models/WorldModel.d.ts +17 -12
  246. package/dist/lib/models/index.d.ts +21 -18
  247. package/dist/lib/providers/cross-country-provider.d.ts +10 -0
  248. package/dist/lib/providers/index.d.ts +1 -0
  249. package/dist/lib/providers/languages/english.d.ts +3 -0
  250. package/dist/lib/providers/languages/french.d.ts +3 -0
  251. package/dist/lib/providers/languages/token.d.ts +3 -0
  252. package/dist/lib/utils/golds/feed-util.d.ts +2 -3
  253. package/dist/models/ActorModel.js +1 -20
  254. package/dist/models/BookModel.js +1 -12
  255. package/dist/models/ChapterModel.js +1 -21
  256. package/dist/models/CharacterLevelModel.js +10 -0
  257. package/dist/models/DungeonLevelModel.js +11 -0
  258. package/dist/models/EmailModel.js +1 -12
  259. package/dist/models/EnemyModel.js +1 -19
  260. package/dist/models/ItemModel.js +1 -12
  261. package/dist/models/LeafModel.js +1 -241
  262. package/dist/models/LevelModel.js +5 -9
  263. package/dist/models/NPCModel.js +10 -7
  264. package/dist/models/NeutralModel.js +1 -16
  265. package/dist/models/ObstacleModel.js +3 -4
  266. package/dist/models/PlayerModel.js +3 -7
  267. package/dist/models/PortholeBranchModel.js +1 -31
  268. package/dist/models/PostModel.js +9 -10
  269. package/dist/models/SettingsModel.js +3 -4
  270. package/dist/models/ShieldModel.js +8 -9
  271. package/dist/models/SkillModel.js +1 -0
  272. package/dist/models/SpellModel.js +1 -0
  273. package/dist/models/TileModel.js +3 -4
  274. package/dist/models/ToolModel.js +1 -0
  275. package/dist/models/TreeModel.js +1 -12
  276. package/dist/models/UserModel.js +3 -4
  277. package/dist/models/ViceModel.js +1 -0
  278. package/dist/models/WeaponModel.js +3 -4
  279. package/dist/models/WorldModel.js +1 -22
  280. package/dist/models/index.js +1 -21
  281. package/dist/providers/cross-country-provider.js +376 -0
  282. package/dist/providers/index.js +4 -0
  283. package/dist/providers/languages/english.js +6 -0
  284. package/dist/providers/languages/french.js +6 -0
  285. package/dist/providers/languages/token.js +6 -0
  286. package/dist/registration.module-Dzb1ooae.js +11 -0
  287. package/dist/text-input.module-B9K-DcNA.js +6 -0
  288. package/dist/utils/golds/feed-util.js +38 -44
  289. package/package.json +6 -4
  290. package/dist/components/molecules/radiogroup/__stories__/radio-group-form-story.js +0 -83
  291. package/dist/components/molecules/radiogroup/index.js +0 -4
  292. package/dist/components/organisms/registration/registration-response.js +0 -87
  293. package/dist/components/organisms/worlds/carbon/carbon.js +0 -15
  294. package/dist/gold-leaf-view-CgRraK2i.js +0 -183
  295. package/dist/headline-DzDFQZ3e.js +0 -11
  296. package/dist/index-Ct_QpAtH.js +0 -2869
  297. package/dist/lib/components/molecules/policies/privacy-policy.d.ts +0 -7
  298. package/dist/lib/components/molecules/radiogroup/index.d.ts +0 -2
  299. package/dist/lib/components/organisms/registration/registration-response.d.ts +0 -5
  300. package/dist/lib/components/organisms/worlds/carbon/__stories__/carbon.stories.d.ts +0 -7
  301. package/dist/lib/components/organisms/worlds/carbon/carbon.d.ts +0 -4
  302. package/dist/lib/components/organisms/worlds/carbon/index.d.ts +0 -0
  303. package/dist/registration.module-BOGBjHpE.js +0 -11
  304. package/dist/text-input.module-BJmXef0w.js +0 -6
  305. /package/dist/components/molecules/{radiogroup/radiogroup.js → radio-group/radio-group.js} +0 -0
  306. /package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/__stories__/{template.stories.d.ts → gold-leaf.stories.d.ts} +0 -0
  307. /package/dist/lib/components/molecules/policies/{terms-of-use.d.ts → terms-of-use/terms-of-use.d.ts} +0 -0
  308. /package/dist/lib/components/molecules/{radiogroup → radio-group}/__stories__/radio-group-form-story.d.ts +0 -0
  309. /package/dist/lib/components/molecules/{radiogroup → radio-group}/__stories__/radio-group-react-hook-form-story.d.ts +0 -0
  310. /package/dist/lib/components/molecules/{radiogroup/radiogroup.d.ts → radio-group/radio-group.d.ts} +0 -0
  311. /package/dist/{components/organisms/worlds/carbon/index.js → models/ProfessionModel.js} +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # cross-country
2
2
 
3
- > an atomic react components for personal metrics and creating courses
3
+ > an atomic react component library for personal metrics, simulations, and solo forest bathers
4
4
 
5
5
  [![NPM](https://img.shields.io/npm/v/cross-country.svg)](https://www.npmjs.com/package/cross-country) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
6
 
@@ -37,7 +37,21 @@ import { Column, Row, Paragraph, Table, Chart, Bento } from "cross-country"
37
37
 
38
38
  For this third-party library to work within NextJS, there is one change required to import it's single css bundle.
39
39
 
40
- Edit the \_app.js file to:
40
+ #### New App Strategy
41
+
42
+ Edit the app\layout.tsx file to:
43
+
44
+ ```
45
+ import type { Metadata } from "next";
46
+ import { Inter } from "next/font/google";
47
+ import "./globals.css";
48
+ import "cross-country/dist/bundle.css";
49
+ import { ScoutProviders } from "./providers/providers";
50
+ ```
51
+
52
+ #### Old Pages Strategy
53
+
54
+ Edit the pages\_app.js file to:
41
55
 
42
56
  ```
43
57
  import type { Metadata } from "next";
@@ -85,6 +99,11 @@ or
85
99
  npm run new -- --type molecules --path component-name-here/sub-component-name-her
86
100
  ```
87
101
 
102
+ You can also scaffold only a story:
103
+ ```
104
+ npm run new:story -- --type molecules --path policies/privacy-policy
105
+ ```
106
+
88
107
  This will automatically scaffold the component directory creating all the files you will need including the tests and stories folders. It saved you at least 5 minutes if not especially around configuring the story; no more frustrating CSF errors!
89
108
 
90
109
  ## Unsplash Config
@@ -99,7 +118,7 @@ export const privateConfig = {
99
118
 
100
119
  ## Storybook
101
120
 
102
- While creating compoents, you can use Storybook
121
+ While creating components, you can use Storybook
103
122
 
104
123
  ```
105
124
  npm run storybook
@@ -7,31 +7,13 @@ import "./react-spring_web.modern-ClBJWBW2.js";
7
7
  import "./components/atoms/group/group.js";
8
8
  import "./components/molecules/wrapper/wrapper.js";
9
9
  import "./components/molecules/wallpaper/wallpaper.js";
10
- import "./index-BTF1caLu.js";
11
- import "./models/PortholeBranchModel.js";
12
- import "./models/ActorModel.js";
13
- import "./models/BookModel.js";
14
- import "./models/ChapterModel.js";
15
- import "./models/PlayerModel.js";
16
- import "./models/EnemyModel.js";
17
- import "./models/ItemModel.js";
18
- import "./models/LeafModel.js";
19
- import "./models/LevelModel.js";
20
- import "./models/NeutralModel.js";
21
- import "./models/NPCModel.js";
22
- import "./models/SettingsModel.js";
23
- import "./models/ShieldModel.js";
24
- import "./models/TileModel.js";
25
- import "./models/UserModel.js";
26
- import "./models/WeaponModel.js";
27
- import "./models/WorldModel.js";
28
- import "./models/TreeModel.js";
10
+ import "./index-BfWW2ojg.js";
29
11
  import "./components/organisms/registration/registration-machine.js";
30
12
  import "./transform-DGclBZTD.js";
31
13
  import "./components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js";
32
14
  import "./index.esm-DI2C2CaF.js";
33
15
  import "./react-masonry-css.module-CJ43viV7.js";
34
- const i = "data:image/svg+xml,%3csvg%20width='220'%20height='404'%20viewBox='0%200%20220%20404'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M158%200H44L0%20168H82L24%20404L220%20104H112L158%200Z'%20fill='%23E3D597'/%3e%3c/svg%3e", F = () => /* @__PURE__ */ t(o, { a11y: "lightening bolt", url: i, width: 30, height: 30 });
16
+ const i = "data:image/svg+xml,%3csvg%20width='220'%20height='404'%20viewBox='0%200%20220%20404'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M158%200H44L0%20168H82L24%20404L220%20104H112L158%200Z'%20fill='%23E3D597'/%3e%3c/svg%3e", f = () => /* @__PURE__ */ t(o, { a11y: "lightening bolt", url: i, width: 30, height: 30 });
35
17
  export {
36
- F as B
18
+ f as B
37
19
  };
package/dist/bundle.css CHANGED
@@ -1,14 +1,12 @@
1
1
  ._logo_ibbzu_1 {
2
2
  display: flex;
3
3
  }
4
- ._column_1gy92_1 {
4
+ ._column_183cs_1 {
5
5
  display: flex;
6
6
  position: relative;
7
7
  flex-direction: column;
8
- margin: 0px;
9
- padding: 26px;
10
- width: 100%;
11
- height: 100%;
8
+ margin: 8px 0px;
9
+ padding: 16px;
12
10
  }
13
11
 
14
12
  ._checkbox_1npl1_1 {
@@ -182,10 +180,9 @@
182
180
  color: rgb(100, 100, 100);
183
181
  cursor: not-allowed;
184
182
  }
185
- ._row_197sm_1 {
183
+ ._row_1osly_1 {
186
184
  display: flex;
187
185
  flex-direction: row;
188
- flex-wrap: wrap;
189
186
  align-items: center;
190
187
  align-content: center;
191
188
  }
@@ -283,18 +280,31 @@
283
280
  display: flex;
284
281
  flex-direction: column;
285
282
  }
286
- ._textInput_1w52p_1 {
283
+ ._textInput_nvupt_1 {
287
284
  border: 1px solid #ccc;
288
285
  cursor: text;
289
- padding: 10px;
286
+ padding: 8px;
290
287
  border-radius: 5px;
291
288
  outline: none;
289
+ margin: 8px 0px;
292
290
  }
293
291
 
294
- ._textInput_lmpv2_1 {
295
- padding: 8px;
292
+ ._textInput_b6buf_1 {
293
+ padding: 12px;
296
294
  margin: 4px;
297
- resize: none;
295
+ resize: vertical;
296
+ min-height: 120px; /* Approximately 5 rows of text */
297
+ width: 100%;
298
+ border: 1px solid #ccc;
299
+ border-radius: 4px;
300
+ font-size: 14px;
301
+ line-height: 1.5;
302
+ transition: border-color 0.2s ease-in-out;
303
+ max-width: 700px;
304
+ }
305
+
306
+ ._textInput_b6buf_1:focus {
307
+ outline: none;
298
308
  }
299
309
 
300
310
  ._Span_1om91_1 {
@@ -1109,25 +1119,25 @@ li._listicle_wcjwf_9 {
1109
1119
  font-size: 12px;
1110
1120
  }
1111
1121
 
1112
- ._registration_zk983_1 {
1122
+ ._registration_rfpnl_1 {
1113
1123
  display: flex;
1114
1124
  flex-direction: column;
1115
1125
  position: relative;
1116
1126
  }
1117
1127
 
1118
- ._sendButton_zk983_7 {
1128
+ ._sendButton_rfpnl_7 {
1119
1129
  justify-content: flex-end;
1120
1130
  background-color: var(--primary) !important;
1121
1131
  margin-top: 16px;
1122
1132
  }
1123
1133
 
1124
- ._icon_zk983_13 {
1134
+ ._icon_rfpnl_13 {
1125
1135
  justify-content: flex-end;
1126
1136
  background-color: #999;
1127
1137
  width: 40px !important;
1128
1138
  }
1129
1139
 
1130
- ._fieldRow_zk983_19 {
1140
+ ._fieldRow_rfpnl_19 {
1131
1141
  display: flex;
1132
1142
  justify-content: flex-end;
1133
1143
  height: 40px;
@@ -1135,8 +1145,9 @@ li._listicle_wcjwf_9 {
1135
1145
  margin: 4px;
1136
1146
  }
1137
1147
 
1138
- ._passwordStrengthHelperContainer_zk983_27 {
1148
+ ._passwordStrengthHelperContainer_rfpnl_27 {
1139
1149
  position: absolute;
1150
+ width: 116px;
1140
1151
  border: 1px solid #666;
1141
1152
  border-radius: 8px;
1142
1153
  border-radius: 8px;
@@ -1145,12 +1156,12 @@ li._listicle_wcjwf_9 {
1145
1156
  padding: 16px;
1146
1157
  margin: 0;
1147
1158
  padding: 16px;
1148
- top: 22px;
1149
- left: 150px;
1159
+ top: 48px;
1160
+ left: 370px;
1150
1161
  height: 117px;
1151
1162
  }
1152
1163
 
1153
- ._passwordStrengthHelperContainer_zk983_27:after {
1164
+ ._passwordStrengthHelperContainer_rfpnl_27:after {
1154
1165
  content: "";
1155
1166
  position: absolute;
1156
1167
  top: 150px;
@@ -1164,7 +1175,7 @@ li._listicle_wcjwf_9 {
1164
1175
  border-right: 10px solid transparent;
1165
1176
  }
1166
1177
 
1167
- ._passwordHelperIcon_zk983_56 {
1178
+ ._passwordHelperIcon_rfpnl_57 {
1168
1179
  align-items: center;
1169
1180
  justify-content: center;
1170
1181
  margin-bottom: 8px !important;
@@ -1284,17 +1295,18 @@ li._listicle_wcjwf_9 {
1284
1295
  padding: 0px;
1285
1296
  margin: 0px;
1286
1297
  }
1287
- ._actor_2k764_1 {
1288
- justify-content: center;
1289
- align-items: center;
1290
- display: flex;
1291
- background-color: transparent;
1292
- width: 50px;
1293
- height: 80px;
1294
- margin: 0px;
1295
- padding: 0px;
1296
- position: absolute;
1297
- }
1298
+ ._actor_17tui_1 {
1299
+ justify-content: center;
1300
+ align-items: center;
1301
+ display: flex;
1302
+ background-color: transparent;
1303
+ width: 50px;
1304
+ height: 80px;
1305
+ margin: 0px;
1306
+ padding: 0px;
1307
+ position: absolute;
1308
+ }
1309
+
1298
1310
  ._stage_dmo67_1 {
1299
1311
  position: absolute;
1300
1312
  z-index: 1;
@@ -1304,6 +1316,23 @@ li._listicle_wcjwf_9 {
1304
1316
  height: 200px;
1305
1317
  }
1306
1318
 
1319
+ ._actorSpeech_1l7lp_2 {
1320
+ z-index: 2;
1321
+ width: 400px;
1322
+ height: auto;
1323
+ border-radius: 8px;
1324
+ background-color: white;
1325
+ margin: 0px;
1326
+ padding: 8px;
1327
+ }
1328
+
1329
+ ._actorParagraph_1l7lp_12 {
1330
+ margin: 0px;
1331
+ padding: 8px;
1332
+ font-size: 16px;
1333
+ color: black;
1334
+ }
1335
+
1307
1336
  ._tileGrid_tpkps_2 {
1308
1337
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
1309
1338
  }
@@ -1,23 +1,23 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { forwardRef as a } from "react";
3
3
  import { c as u } from "../../../clsx.m-BMVuQnLY.js";
4
- const f = "_column_1gy92_1", o = {
4
+ const f = "_column_183cs_1", o = {
5
5
  column: f
6
- }, x = c(
6
+ }, x = a(
7
7
  ({
8
8
  children: l,
9
9
  hasBackground: e = !1,
10
10
  hasChildrenCentered: d = !1,
11
11
  backgroundColor: _ = "#eee",
12
12
  dataTestId: n = "column",
13
- customStyle: t = null,
14
- customClass: r = "",
15
- ...s
16
- }, m) => /* @__PURE__ */ a(
13
+ customStyle: s = null,
14
+ customClass: t = "",
15
+ ...r
16
+ }, m) => /* @__PURE__ */ c(
17
17
  "div",
18
18
  {
19
19
  ref: m,
20
- ...s,
20
+ ...r,
21
21
  "data-testid": n,
22
22
  className: u(
23
23
  o.column,
@@ -25,9 +25,9 @@ const f = "_column_1gy92_1", o = {
25
25
  [o.column__opaque]: e,
26
26
  [o.column__transparent]: e
27
27
  },
28
- r
28
+ t
29
29
  ),
30
- style: { ...t },
30
+ style: { ...s },
31
31
  children: l
32
32
  }
33
33
  )
@@ -1,16 +1,15 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import l from "react";
3
3
  import { g as n } from "../../../mobile-detect-CWVWWCSg.js";
4
- import "../../../models/PortholeBranchModel.js";
5
- const u = "_radio_1o14v_1", _ = "_radioSelected_1o14v_14", v = "_radioGesture_1o14v_42", m = "_radioGestureSelected_1o14v_55", s = {
4
+ const u = "_radio_1o14v_1", _ = "_radioSelected_1o14v_14", v = "_radioGesture_1o14v_42", m = "_radioGestureSelected_1o14v_55", i = {
6
5
  radio: u,
7
6
  radioSelected: _,
8
7
  radioGesture: v,
9
8
  radioGestureSelected: m
10
- }, p = n(), f = p ? "mobile" : "desktop", k = l.createContext({ detectedDevice: f }), y = () => k._currentValue, $ = ({ isSelected: o, id: e, onChange: t, tabIndex: r, register: c = null }) => {
9
+ }, p = n(), f = p ? "mobile" : "desktop", k = l.createContext({ detectedDevice: f }), y = () => k._currentValue, x = ({ isSelected: o, id: e, onChange: t, tabIndex: r, register: c = null }) => {
11
10
  y();
12
- const a = "radio", d = o ? s[`${a}Selected`] : s[`${a}`];
13
- return c ? /* @__PURE__ */ i(
11
+ const a = "radio", d = o ? i[`${a}Selected`] : i[`${a}`];
12
+ return c ? /* @__PURE__ */ s(
14
13
  "div",
15
14
  {
16
15
  className: d,
@@ -24,7 +23,7 @@ const u = "_radio_1o14v_1", _ = "_radioSelected_1o14v_14", v = "_radioGesture_1o
24
23
  tabIndex: r,
25
24
  ...c(`${e}`)
26
25
  }
27
- ) : /* @__PURE__ */ i(
26
+ ) : /* @__PURE__ */ s(
28
27
  "div",
29
28
  {
30
29
  className: d,
@@ -40,5 +39,5 @@ const u = "_radio_1o14v_1", _ = "_radioSelected_1o14v_14", v = "_radioGesture_1o
40
39
  );
41
40
  };
42
41
  export {
43
- $ as default
42
+ x as default
44
43
  };
@@ -1,8 +1,8 @@
1
- import { forwardRef as c, createElement as l } from "react";
2
- import { c as m } from "../../../clsx.m-BMVuQnLY.js";
3
- const n = "_row_197sm_1", w = {
4
- row: n
5
- }, p = c(
1
+ import { forwardRef as l, createElement as c } from "react";
2
+ import { c as n } from "../../../clsx.m-BMVuQnLY.js";
3
+ const m = "_row_1osly_1", w = {
4
+ row: m
5
+ }, y = l(
6
6
  ({
7
7
  id: e,
8
8
  children: r,
@@ -10,12 +10,12 @@ const n = "_row_197sm_1", w = {
10
10
  customClass: o = "",
11
11
  customStyle: t = {},
12
12
  ...s
13
- }, a) => /* @__PURE__ */ l(
13
+ }, a) => /* @__PURE__ */ c(
14
14
  "div",
15
15
  {
16
16
  ...s,
17
17
  key: e,
18
- className: m(w.row, o),
18
+ className: n(w.row, o),
19
19
  style: t,
20
20
  ref: a
21
21
  },
@@ -23,5 +23,5 @@ const n = "_row_197sm_1", w = {
23
23
  )
24
24
  );
25
25
  export {
26
- p as default
26
+ y as default
27
27
  };
@@ -0,0 +1,25 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as i } from "../../../../clsx.m-BMVuQnLY.js";
3
+ const l = "_headline_1jy9u_1", c = "_warIsOver_1jy9u_13", _ = "_ifYouWant_1jy9u_22", d = {
4
+ headline: l,
5
+ warIsOver: c,
6
+ ifYouWant: _
7
+ }, h = ({
8
+ color: e = "",
9
+ text: s,
10
+ children: a,
11
+ customStyle: n = {},
12
+ customClass: t = "",
13
+ ...o
14
+ }) => /* @__PURE__ */ r(
15
+ "h1",
16
+ {
17
+ ...o,
18
+ className: i(d.headline, t),
19
+ style: { color: e, ...n },
20
+ children: s || a
21
+ }
22
+ );
23
+ export {
24
+ h as default
25
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./headline.js";
2
+ export {
3
+ o as default
4
+ };
@@ -1,14 +1,14 @@
1
1
  const s = {
2
2
  UNSPLASH_API_KEY: "",
3
- RAPID_API_KEY: "64376730e2msh02a5a75e9e45d6bp1fbfbfjsnb455679ebdd9",
4
- PERPLEXITY_API_KEY: "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"
5
- }, i = s == null ? void 0 : s.PERPLEXITY_API_KEY, P = async (n, o = 0.6, r = null) => {
3
+ PERPLEXITY_API_KEY: "",
4
+ RAPID_API_KEY: ""
5
+ }, p = s == null ? void 0 : s.PERPLEXITY_API_KEY, E = async (n, o = 0.6, r = null) => {
6
6
  const c = "https://api.perplexity.ai/chat/completions", a = {
7
7
  Accept: "application/json",
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${i}`
9
+ Authorization: `Bearer ${p}`
10
10
  // Fetch from your project's environment variables
11
- }, p = {
11
+ }, i = {
12
12
  model: "pplx-7b-online",
13
13
  stream: !1,
14
14
  max_tokens: 80,
@@ -27,7 +27,7 @@ const s = {
27
27
  }, e = await (await fetch(c, {
28
28
  method: "POST",
29
29
  headers: a,
30
- body: JSON.stringify(p)
30
+ body: JSON.stringify(i)
31
31
  })).json();
32
32
  if (e != null && e.choices && (e == null ? void 0 : e.choices.length) > 0) {
33
33
  const t = e == null ? void 0 : e.choices[0].message;
@@ -37,5 +37,5 @@ const s = {
37
37
  return "";
38
38
  };
39
39
  export {
40
- P as default
40
+ E as default
41
41
  };
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { useMemo as y } from "react";
3
3
  import { a as b } from "../../../../xstate-react.esm-DWdE0_Ay.js";
4
4
  import { inputTextMachine as v } from "./input-text-machine.js";
5
- import { s as u } from "../../../../text-input.module-BJmXef0w.js";
5
+ import { s as u } from "../../../../text-input.module-B9K-DcNA.js";
6
6
  import { c as o } from "../../../../clsx.m-BMVuQnLY.js";
7
7
  const j = ({
8
8
  actorOptions: x,
@@ -1,49 +1,53 @@
1
- import { jsx as e, Fragment as g } from "react/jsx-runtime";
2
- import { s as p } from "../../../../text-input.module-BJmXef0w.js";
3
- import { c as x } from "../../../../clsx.m-BMVuQnLY.js";
4
- const h = ({
5
- onTextChange: i,
1
+ import { jsx as n, Fragment as y } from "react/jsx-runtime";
2
+ import { s as f } from "../../../../text-input.module-B9K-DcNA.js";
3
+ import { c as o } from "../../../../clsx.m-BMVuQnLY.js";
4
+ const j = ({
5
+ onTextChange: a,
6
6
  value: c,
7
7
  customClass: r = "",
8
8
  customStyle: s = {},
9
9
  placeholder: l = "enter your text",
10
- type: u = "text",
11
- isDisabled: f = !1,
12
- data: n = null,
13
- register: o = null,
14
- defaultValue: t = null,
15
- onFocus: v,
16
- onBlur: y,
17
- ...a
18
- }) => o ? /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(
10
+ type: m = "text",
11
+ isDisabled: I = !1,
12
+ data: t = null,
13
+ register: p = null,
14
+ defaultValue: e = null,
15
+ onFocus: u,
16
+ onBlur: x,
17
+ ...g
18
+ }) => p ? /* @__PURE__ */ n(y, { children: /* @__PURE__ */ n(
19
19
  "input",
20
20
  {
21
- type: u,
22
- disabled: f,
23
- className: x(p.textInput, r),
21
+ type: m,
22
+ disabled: I,
23
+ className: o(f.textInput, r),
24
24
  style: s,
25
25
  placeholder: l,
26
- ...o(n == null ? void 0 : n.name)
26
+ onFocus: u,
27
+ onBlur: x,
28
+ ...p(t == null ? void 0 : t.name)
27
29
  }
28
- ) }) : /* @__PURE__ */ e(
30
+ ) }) : /* @__PURE__ */ n(
29
31
  "input",
30
32
  {
31
- ...a,
32
- type: u,
33
- className: x(p.textInput, r),
34
- onChange: (m) => {
35
- m.preventDefault();
33
+ ...g,
34
+ type: m,
35
+ className: o(f.textInput, r),
36
+ onChange: (i) => {
37
+ i.preventDefault();
36
38
  const {
37
- target: { value: I }
38
- } = m;
39
- return i(I);
39
+ target: { value: v }
40
+ } = i;
41
+ return a(v);
40
42
  },
41
- ...!t && { value: c },
43
+ onFocus: u,
44
+ onBlur: x,
45
+ ...!e && { value: c },
42
46
  style: s,
43
47
  placeholder: l,
44
- ...t && { defaultValue: t }
48
+ ...e && { defaultValue: e }
45
49
  }
46
50
  );
47
51
  export {
48
- h as default
52
+ j as default
49
53
  };
@@ -1,8 +1,20 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { c as t } from "../../../../clsx.m-BMVuQnLY.js";
3
- const o = "_paragraph_1mpth_1", c = {
4
- paragraph: o
5
- }, e = ({ children: a, customClass: r = "", customStyle: p = {} }) => /* @__PURE__ */ s("p", { className: t(c.paragraph, r), style: p, children: a });
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { c as o } from "../../../../clsx.m-BMVuQnLY.js";
3
+ const c = "_paragraph_1mpth_1", h = {
4
+ paragraph: c
5
+ }, g = ({
6
+ children: a,
7
+ customClass: r = "",
8
+ customStyle: p = {},
9
+ maxWidth: s = 600
10
+ }) => /* @__PURE__ */ t(
11
+ "p",
12
+ {
13
+ className: o(h.paragraph, r),
14
+ style: { maxWidth: s, ...p },
15
+ children: a
16
+ }
17
+ );
6
18
  export {
7
- e as default
19
+ g as default
8
20
  };