@aws-amplify/ui 5.8.0 → 6.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 (344) hide show
  1. package/dist/esm/helpers/accountSettings/utils.mjs +33 -1
  2. package/dist/esm/helpers/accountSettings/validator.mjs +120 -1
  3. package/dist/esm/helpers/authenticator/actor.mjs +20 -1
  4. package/dist/esm/helpers/authenticator/constants.mjs +144 -1
  5. package/dist/esm/helpers/authenticator/defaultAuthHubHandler.mjs +52 -0
  6. package/dist/esm/helpers/authenticator/facade.mjs +137 -1
  7. package/dist/esm/helpers/authenticator/form.mjs +43 -1
  8. package/dist/esm/helpers/authenticator/formFields/defaults.mjs +132 -1
  9. package/dist/esm/helpers/authenticator/formFields/formFields.mjs +62 -1
  10. package/dist/esm/helpers/authenticator/formFields/utils.mjs +35 -0
  11. package/dist/esm/helpers/authenticator/getRoute.mjs +47 -0
  12. package/dist/esm/helpers/authenticator/textUtil.mjs +112 -1
  13. package/dist/esm/helpers/authenticator/utils.mjs +38 -1
  14. package/dist/esm/helpers/utils.mjs +5 -1
  15. package/dist/esm/i18n/country-dial-codes.mjs +210 -1
  16. package/dist/esm/i18n/dictionaries/authenticator/de.mjs +87 -1
  17. package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.mjs +83 -1
  18. package/dist/esm/i18n/dictionaries/authenticator/en.mjs +74 -1
  19. package/dist/esm/i18n/dictionaries/authenticator/es.mjs +83 -1
  20. package/dist/esm/i18n/dictionaries/authenticator/fr.mjs +92 -1
  21. package/dist/esm/i18n/dictionaries/authenticator/he.mjs +54 -1
  22. package/dist/esm/i18n/dictionaries/authenticator/id.mjs +96 -1
  23. package/dist/esm/i18n/dictionaries/authenticator/it.mjs +82 -1
  24. package/dist/esm/i18n/dictionaries/authenticator/ja.mjs +86 -1
  25. package/dist/esm/i18n/dictionaries/authenticator/kr.mjs +71 -1
  26. package/dist/esm/i18n/dictionaries/authenticator/nb.mjs +95 -1
  27. package/dist/esm/i18n/dictionaries/authenticator/nl.mjs +67 -1
  28. package/dist/esm/i18n/dictionaries/authenticator/pl.mjs +71 -1
  29. package/dist/esm/i18n/dictionaries/authenticator/pt.mjs +61 -1
  30. package/dist/esm/i18n/dictionaries/authenticator/ru.mjs +61 -1
  31. package/dist/esm/i18n/dictionaries/authenticator/sv.mjs +82 -1
  32. package/dist/esm/i18n/dictionaries/authenticator/tr.mjs +76 -1
  33. package/dist/esm/i18n/dictionaries/authenticator/ua.mjs +84 -1
  34. package/dist/esm/i18n/dictionaries/authenticator/zh.mjs +74 -1
  35. package/dist/esm/i18n/dictionaries/index.mjs +47 -1
  36. package/dist/esm/i18n/translations.mjs +67 -1
  37. package/dist/esm/index.mjs +28 -1
  38. package/dist/esm/machines/authenticator/actions.mjs +188 -1
  39. package/dist/esm/machines/authenticator/actors/forgotPassword.mjs +184 -0
  40. package/dist/esm/machines/authenticator/actors/signIn.mjs +328 -1
  41. package/dist/esm/machines/authenticator/actors/signOut.mjs +28 -1
  42. package/dist/esm/machines/authenticator/actors/signUp.mjs +295 -0
  43. package/dist/esm/machines/authenticator/actors/verifyUserAttributes.mjs +106 -0
  44. package/dist/esm/machines/authenticator/defaultServices.mjs +102 -1
  45. package/dist/esm/machines/authenticator/guards.mjs +70 -0
  46. package/dist/esm/machines/authenticator/index.mjs +368 -1
  47. package/dist/esm/machines/authenticator/utils.mjs +71 -0
  48. package/dist/esm/theme/breakpoints.mjs +14 -1
  49. package/dist/esm/theme/createTheme.mjs +156 -1
  50. package/dist/esm/theme/defaultDarkModeOverride.mjs +128 -1
  51. package/dist/esm/theme/defaultTheme.mjs +10 -1
  52. package/dist/esm/theme/tokens/borderWidths.mjs +7 -1
  53. package/dist/esm/theme/tokens/colors.mjs +166 -1
  54. package/dist/esm/theme/tokens/components/accordion.mjs +47 -0
  55. package/dist/esm/theme/tokens/components/alert.mjs +35 -1
  56. package/dist/esm/theme/tokens/components/authenticator.mjs +39 -1
  57. package/dist/esm/theme/tokens/components/autocomplete.mjs +42 -1
  58. package/dist/esm/theme/tokens/components/badge.mjs +44 -1
  59. package/dist/esm/theme/tokens/components/breadcrumbs.mjs +34 -1
  60. package/dist/esm/theme/tokens/components/button.mjs +685 -1
  61. package/dist/esm/theme/tokens/components/card.mjs +27 -1
  62. package/dist/esm/theme/tokens/components/checkbox.mjs +87 -1
  63. package/dist/esm/theme/tokens/components/checkboxField.mjs +8 -1
  64. package/dist/esm/theme/tokens/components/collection.mjs +72 -1
  65. package/dist/esm/theme/tokens/components/copy.mjs +18 -1
  66. package/dist/esm/theme/tokens/components/dialCodeSelect.mjs +7 -1
  67. package/dist/esm/theme/tokens/components/divider.mjs +22 -1
  68. package/dist/esm/theme/tokens/components/dropZone.mjs +46 -1
  69. package/dist/esm/theme/tokens/components/field.mjs +20 -1
  70. package/dist/esm/theme/tokens/components/fieldControl.mjs +131 -1
  71. package/dist/esm/theme/tokens/components/fieldGroup.mjs +11 -1
  72. package/dist/esm/theme/tokens/components/fieldMessages.mjs +13 -1
  73. package/dist/esm/theme/tokens/components/fieldset.mjs +40 -1
  74. package/dist/esm/theme/tokens/components/flex.mjs +9 -1
  75. package/dist/esm/theme/tokens/components/heading.mjs +30 -1
  76. package/dist/esm/theme/tokens/components/highlightMatch.mjs +7 -1
  77. package/dist/esm/theme/tokens/components/icon.mjs +6 -1
  78. package/dist/esm/theme/tokens/components/image.mjs +8 -1
  79. package/dist/esm/theme/tokens/components/inAppMessaging.mjs +23 -1
  80. package/dist/esm/theme/tokens/components/index.mjs +111 -1
  81. package/dist/esm/theme/tokens/components/input.mjs +12 -1
  82. package/dist/esm/theme/tokens/components/link.mjs +9 -1
  83. package/dist/esm/theme/tokens/components/liveness.mjs +7 -1
  84. package/dist/esm/theme/tokens/components/loader.mjs +42 -1
  85. package/dist/esm/theme/tokens/components/menu.mjs +27 -1
  86. package/dist/esm/theme/tokens/components/message.mjs +102 -1
  87. package/dist/esm/theme/tokens/components/pagination.mjs +40 -1
  88. package/dist/esm/theme/tokens/components/passwordField.mjs +38 -1
  89. package/dist/esm/theme/tokens/components/phoneNumberField.mjs +10 -1
  90. package/dist/esm/theme/tokens/components/placeholder.mjs +18 -1
  91. package/dist/esm/theme/tokens/components/radio.mjs +67 -1
  92. package/dist/esm/theme/tokens/components/radioGroup.mjs +19 -1
  93. package/dist/esm/theme/tokens/components/rating.mjs +9 -1
  94. package/dist/esm/theme/tokens/components/searchField.mjs +39 -1
  95. package/dist/esm/theme/tokens/components/select.mjs +63 -1
  96. package/dist/esm/theme/tokens/components/selectField.mjs +16 -1
  97. package/dist/esm/theme/tokens/components/sliderField.mjs +70 -1
  98. package/dist/esm/theme/tokens/components/stepperField.mjs +33 -1
  99. package/dist/esm/theme/tokens/components/storagemanager.mjs +97 -1
  100. package/dist/esm/theme/tokens/components/switchField.mjs +61 -1
  101. package/dist/esm/theme/tokens/components/table.mjs +105 -1
  102. package/dist/esm/theme/tokens/components/tabs.mjs +59 -1
  103. package/dist/esm/theme/tokens/components/text.mjs +28 -1
  104. package/dist/esm/theme/tokens/components/textAreaField.mjs +11 -1
  105. package/dist/esm/theme/tokens/components/textField.mjs +12 -1
  106. package/dist/esm/theme/tokens/components/toggleButton.mjs +96 -1
  107. package/dist/esm/theme/tokens/components/toggleButtonGroup.mjs +7 -1
  108. package/dist/esm/theme/tokens/fontSizes.mjs +14 -1
  109. package/dist/esm/theme/tokens/fontWeights.mjs +13 -1
  110. package/dist/esm/theme/tokens/fonts.mjs +19 -1
  111. package/dist/esm/theme/tokens/index.mjs +65 -1
  112. package/dist/esm/theme/tokens/lineHeights.mjs +7 -1
  113. package/dist/esm/theme/tokens/opacities.mjs +15 -1
  114. package/dist/esm/theme/tokens/outlineOffsets.mjs +7 -1
  115. package/dist/esm/theme/tokens/outlineWidths.mjs +7 -1
  116. package/dist/esm/theme/tokens/radii.mjs +11 -1
  117. package/dist/esm/theme/tokens/shadows.mjs +28 -1
  118. package/dist/esm/theme/tokens/space.mjs +29 -1
  119. package/dist/esm/theme/tokens/time.mjs +7 -1
  120. package/dist/esm/theme/tokens/transforms.mjs +10 -1
  121. package/dist/esm/theme/utils.mjs +81 -1
  122. package/dist/esm/types/authenticator/attributes.mjs +41 -1
  123. package/dist/esm/types/authenticator/user.mjs +18 -1
  124. package/dist/esm/types/authenticator/utils.mjs +5 -1
  125. package/dist/esm/types/primitives/componentClassName.mjs +164 -1
  126. package/dist/esm/utils/classNames.mjs +39 -0
  127. package/dist/esm/utils/setUserAgent/constants.mjs +43 -0
  128. package/dist/esm/utils/setUserAgent/setUserAgent.mjs +65 -0
  129. package/dist/esm/utils/utils.mjs +227 -0
  130. package/dist/esm/validators/index.mjs +19 -1
  131. package/dist/index.js +8396 -1
  132. package/dist/styles/StorageManager.css +138 -0
  133. package/dist/styles/StorageManager.layer.css +140 -0
  134. package/dist/styles/_fieldControl.css +0 -0
  135. package/dist/styles/_fieldControl.layer.css +3 -0
  136. package/dist/styles/accordion.css +64 -0
  137. package/dist/styles/accordion.layer.css +66 -0
  138. package/dist/styles/alert.css +44 -0
  139. package/dist/styles/alert.layer.css +46 -0
  140. package/dist/styles/authenticator.css +72 -0
  141. package/dist/styles/authenticator.layer.css +74 -0
  142. package/dist/styles/autocomplete.css +48 -0
  143. package/dist/styles/autocomplete.layer.css +50 -0
  144. package/dist/styles/badge.css +35 -0
  145. package/dist/styles/badge.layer.css +37 -0
  146. package/dist/styles/base.css +1491 -0
  147. package/dist/styles/base.layer.css +1493 -0
  148. package/dist/styles/breadcrumbs.css +40 -0
  149. package/dist/styles/breadcrumbs.layer.css +42 -0
  150. package/dist/styles/button.css +1122 -0
  151. package/dist/styles/button.layer.css +1124 -0
  152. package/dist/styles/card.css +26 -0
  153. package/dist/styles/card.layer.css +28 -0
  154. package/dist/styles/checkbox.css +95 -0
  155. package/dist/styles/checkbox.layer.css +97 -0
  156. package/dist/styles/checkboxField.css +6 -0
  157. package/dist/styles/checkboxField.layer.css +8 -0
  158. package/dist/styles/collection.css +70 -0
  159. package/dist/styles/collection.layer.css +72 -0
  160. package/dist/styles/copy.css +27 -0
  161. package/dist/styles/copy.layer.css +29 -0
  162. package/dist/styles/dialCodeSelect.css +3 -0
  163. package/dist/styles/dialCodeSelect.layer.css +5 -0
  164. package/dist/styles/divider.css +47 -0
  165. package/dist/styles/divider.layer.css +49 -0
  166. package/dist/styles/dropZone.css +45 -0
  167. package/dist/styles/dropZone.layer.css +47 -0
  168. package/dist/styles/field.css +17 -0
  169. package/dist/styles/field.layer.css +19 -0
  170. package/dist/styles/fieldGroup.css +130 -0
  171. package/dist/styles/fieldGroup.layer.css +132 -0
  172. package/dist/styles/fieldMessages.css +10 -0
  173. package/dist/styles/fieldMessages.layer.css +12 -0
  174. package/dist/styles/fieldModifiers.css +15 -0
  175. package/dist/styles/fieldModifiers.layer.css +17 -0
  176. package/dist/styles/fieldset.css +37 -0
  177. package/dist/styles/fieldset.layer.css +39 -0
  178. package/dist/styles/flex.css +8 -0
  179. package/dist/styles/flex.layer.css +10 -0
  180. package/dist/styles/grid.css +3 -0
  181. package/dist/styles/grid.layer.css +5 -0
  182. package/dist/styles/heading.css +40 -0
  183. package/dist/styles/heading.layer.css +42 -0
  184. package/dist/styles/highlightMatch.css +3 -0
  185. package/dist/styles/highlightMatch.layer.css +5 -0
  186. package/dist/styles/icon.css +14 -0
  187. package/dist/styles/icon.layer.css +16 -0
  188. package/dist/styles/image.css +9 -0
  189. package/dist/styles/image.layer.css +11 -0
  190. package/dist/styles/inAppMessaging.css +179 -0
  191. package/dist/styles/inAppMessaging.layer.css +181 -0
  192. package/dist/styles/input.css +83 -0
  193. package/dist/styles/input.layer.css +85 -0
  194. package/dist/styles/link.css +26 -0
  195. package/dist/styles/link.layer.css +28 -0
  196. package/dist/styles/liveness.css +374 -0
  197. package/dist/styles/liveness.layer.css +376 -0
  198. package/dist/styles/loader.css +108 -0
  199. package/dist/styles/loader.layer.css +110 -0
  200. package/dist/styles/menu.css +54 -0
  201. package/dist/styles/menu.layer.css +56 -0
  202. package/dist/styles/message.css +111 -0
  203. package/dist/styles/message.layer.css +113 -0
  204. package/dist/styles/pagination.css +41 -0
  205. package/dist/styles/pagination.layer.css +43 -0
  206. package/dist/styles/passwordField.css +49 -0
  207. package/dist/styles/passwordField.layer.css +51 -0
  208. package/dist/styles/phoneNumberField.css +30 -0
  209. package/dist/styles/phoneNumberField.layer.css +32 -0
  210. package/dist/styles/placeholder.css +31 -0
  211. package/dist/styles/placeholder.layer.css +33 -0
  212. package/dist/styles/radio.css +82 -0
  213. package/dist/styles/radio.layer.css +84 -0
  214. package/dist/styles/radioGroupField.css +25 -0
  215. package/dist/styles/radioGroupField.layer.css +27 -0
  216. package/dist/styles/radiogroup.css +5 -0
  217. package/dist/styles/radiogroup.layer.css +7 -0
  218. package/dist/styles/rating.css +33 -0
  219. package/dist/styles/rating.layer.css +35 -0
  220. package/dist/styles/reset.css +76 -0
  221. package/dist/styles/reset.layer.css +78 -0
  222. package/dist/styles/scrollView.css +4 -0
  223. package/dist/styles/scrollView.layer.css +6 -0
  224. package/dist/styles/searchField.css +29 -0
  225. package/dist/styles/searchField.layer.css +31 -0
  226. package/dist/styles/select.css +128 -0
  227. package/dist/styles/select.layer.css +130 -0
  228. package/dist/styles/selectField.css +18 -0
  229. package/dist/styles/selectField.layer.css +20 -0
  230. package/dist/styles/sliderField.css +143 -0
  231. package/dist/styles/sliderField.layer.css +145 -0
  232. package/dist/styles/stepperField.css +77 -0
  233. package/dist/styles/stepperField.layer.css +79 -0
  234. package/dist/styles/switchField.css +76 -0
  235. package/dist/styles/switchField.layer.css +78 -0
  236. package/dist/styles/table.css +146 -0
  237. package/dist/styles/table.layer.css +148 -0
  238. package/dist/styles/tabs.css +87 -0
  239. package/dist/styles/tabs.layer.css +89 -0
  240. package/dist/styles/text.css +40 -0
  241. package/dist/styles/text.layer.css +42 -0
  242. package/dist/styles/textArea.css +71 -0
  243. package/dist/styles/textArea.layer.css +73 -0
  244. package/dist/styles/textAreaField.css +12 -0
  245. package/dist/styles/textAreaField.layer.css +14 -0
  246. package/dist/styles/textField.css +14 -0
  247. package/dist/styles/textField.layer.css +16 -0
  248. package/dist/styles/toggleButton.css +280 -0
  249. package/dist/styles/toggleButton.layer.css +282 -0
  250. package/dist/styles/toggleButtonGroup.css +31 -0
  251. package/dist/styles/toggleButtonGroup.layer.css +33 -0
  252. package/dist/styles/visuallyHidden.css +12 -0
  253. package/dist/styles/visuallyHidden.layer.css +14 -0
  254. package/dist/styles.css +423 -869
  255. package/dist/styles.layer.css +6115 -0
  256. package/dist/theme.css +103 -157
  257. package/dist/types/helpers/accountSettings/utils.d.ts +1 -3
  258. package/dist/types/helpers/authenticator/actor.d.ts +1 -1
  259. package/dist/types/helpers/authenticator/constants.d.ts +5 -0
  260. package/dist/types/helpers/authenticator/defaultAuthHubHandler.d.ts +15 -0
  261. package/dist/types/helpers/authenticator/facade.d.ts +35 -6
  262. package/dist/types/helpers/authenticator/formFields/defaults.d.ts +3 -1
  263. package/dist/types/helpers/authenticator/formFields/formFields.d.ts +2 -1
  264. package/dist/types/helpers/authenticator/formFields/index.d.ts +1 -1
  265. package/dist/types/helpers/authenticator/formFields/{util.d.ts → utils.d.ts} +2 -0
  266. package/dist/types/helpers/authenticator/getRoute.d.ts +2 -0
  267. package/dist/types/helpers/authenticator/index.d.ts +2 -1
  268. package/dist/types/helpers/authenticator/textUtil.d.ts +8 -7
  269. package/dist/types/{types/authenticator/stateMachine/authMachine.d.ts → helpers/authenticator/types.d.ts} +5 -5
  270. package/dist/types/helpers/authenticator/utils.d.ts +0 -25
  271. package/dist/types/helpers/index.d.ts +0 -1
  272. package/dist/types/helpers/utils.d.ts +2 -2
  273. package/dist/types/i18n/translations.d.ts +2 -3
  274. package/dist/types/machines/authenticator/actions.d.ts +4 -62
  275. package/dist/types/machines/authenticator/actors/{resetPassword.d.ts → forgotPassword.d.ts} +3 -3
  276. package/dist/types/machines/authenticator/actors/index.d.ts +3 -1
  277. package/dist/types/machines/authenticator/actors/signIn.d.ts +3 -3
  278. package/dist/types/machines/authenticator/actors/signOut.d.ts +2 -2
  279. package/dist/types/machines/authenticator/{signUp.d.ts → actors/signUp.d.ts} +3 -3
  280. package/dist/types/machines/authenticator/actors/verifyUserAttributes.d.ts +5 -0
  281. package/dist/types/machines/authenticator/defaultServices.d.ts +208 -28
  282. package/dist/types/machines/authenticator/getAuthenticatorConfig.d.ts +14 -0
  283. package/dist/types/machines/authenticator/guards.d.ts +4 -0
  284. package/dist/types/machines/authenticator/index.d.ts +4 -2
  285. package/dist/types/machines/authenticator/types.d.ts +125 -0
  286. package/dist/types/machines/authenticator/utils.d.ts +7 -0
  287. package/dist/types/machines/index.d.ts +1 -0
  288. package/dist/types/theme/tokens/borderWidths.d.ts +2 -2
  289. package/dist/types/theme/tokens/colors.d.ts +7 -9
  290. package/dist/types/theme/tokens/components/accordion.d.ts +12 -0
  291. package/dist/types/theme/tokens/components/index.d.ts +2 -4
  292. package/dist/types/theme/tokens/components/radioGroup.d.ts +1 -1
  293. package/dist/types/theme/tokens/components/select.d.ts +6 -2
  294. package/dist/types/theme/tokens/components/storagemanager.d.ts +18 -3
  295. package/dist/types/theme/tokens/components/tabs.d.ts +4 -3
  296. package/dist/types/theme/tokens/fontSizes.d.ts +2 -2
  297. package/dist/types/theme/tokens/fontWeights.d.ts +2 -2
  298. package/dist/types/theme/tokens/fonts.d.ts +2 -2
  299. package/dist/types/theme/tokens/lineHeights.d.ts +2 -2
  300. package/dist/types/theme/tokens/opacities.d.ts +2 -2
  301. package/dist/types/theme/tokens/outlineOffsets.d.ts +2 -2
  302. package/dist/types/theme/tokens/outlineWidths.d.ts +2 -2
  303. package/dist/types/theme/tokens/radii.d.ts +2 -2
  304. package/dist/types/theme/tokens/shadows.d.ts +2 -2
  305. package/dist/types/theme/tokens/space.d.ts +2 -2
  306. package/dist/types/theme/tokens/time.d.ts +2 -2
  307. package/dist/types/theme/tokens/types/designToken.d.ts +12 -6
  308. package/dist/types/theme/types.d.ts +5 -1
  309. package/dist/types/types/authenticator/attributes.d.ts +10 -4
  310. package/dist/types/types/authenticator/form.d.ts +7 -6
  311. package/dist/types/types/authenticator/index.d.ts +0 -1
  312. package/dist/types/types/authenticator/user.d.ts +3 -29
  313. package/dist/types/types/authenticator/validator.d.ts +2 -2
  314. package/dist/types/types/displayText.d.ts +84 -0
  315. package/dist/types/types/index.d.ts +1 -0
  316. package/dist/types/types/primitives/componentClassName.d.ts +162 -180
  317. package/dist/types/types/util.d.ts +0 -5
  318. package/dist/types/utils/classNames.d.ts +4 -0
  319. package/dist/types/utils/index.d.ts +3 -135
  320. package/dist/types/utils/setUserAgent/constants.d.ts +7 -0
  321. package/dist/types/utils/setUserAgent/index.d.ts +1 -0
  322. package/dist/types/utils/setUserAgent/setUserAgent.d.ts +19 -0
  323. package/dist/types/utils/utils.d.ts +147 -0
  324. package/dist/types/validators/index.d.ts +2 -2
  325. package/package.json +5 -19
  326. package/dist/esm/helpers/authenticator/context.mjs +0 -1
  327. package/dist/esm/helpers/authenticator/formFields/util.mjs +0 -1
  328. package/dist/esm/helpers/storage/fileUploader/utils/uploader.mjs +0 -1
  329. package/dist/esm/machines/authenticator/actors/resetPassword.mjs +0 -1
  330. package/dist/esm/machines/authenticator/signUp.mjs +0 -1
  331. package/dist/esm/theme/tokens/components/expander.mjs +0 -1
  332. package/dist/esm/theme/tokens/components/fileUploader.mjs +0 -1
  333. package/dist/esm/utils/index.mjs +0 -1
  334. package/dist/types/helpers/authenticator/context.d.ts +0 -13
  335. package/dist/types/helpers/storage/fileUploader/index.d.ts +0 -1
  336. package/dist/types/helpers/storage/fileUploader/utils/index.d.ts +0 -1
  337. package/dist/types/helpers/storage/fileUploader/utils/uploader.d.ts +0 -28
  338. package/dist/types/helpers/storage/index.d.ts +0 -1
  339. package/dist/types/theme/tokens/components/expander.d.ts +0 -22
  340. package/dist/types/theme/tokens/components/fileUploader.d.ts +0 -23
  341. package/dist/types/types/authenticator/stateMachine/context.d.ts +0 -109
  342. package/dist/types/types/authenticator/stateMachine/event.d.ts +0 -17
  343. package/dist/types/types/authenticator/stateMachine/index.d.ts +0 -4
  344. package/dist/types/types/authenticator/stateMachine/state.d.ts +0 -10
@@ -1 +1,685 @@
1
- const o={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.blue.100.value}"}}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.orange.100.value}"}}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.green.100.value}"}}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.60.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.red.100.value}"}}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.overlay.90.value}"}}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.blue.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.orange.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.red.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.green.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.overlay.90.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.blue.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.orange.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.green.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.red.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.overlay.90.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}};export{o as button};
1
+ const button = {
2
+ // shared styles
3
+ fontWeight: { value: '{fontWeights.bold.value}' },
4
+ transitionDuration: {
5
+ value: '{components.fieldcontrol.transitionDuration.value}',
6
+ },
7
+ fontSize: { value: '{components.fieldcontrol.fontSize.value}' },
8
+ lineHeight: { value: '{components.fieldcontrol.lineHeight.value}' },
9
+ paddingBlockStart: {
10
+ value: '{components.fieldcontrol.paddingBlockStart.value}',
11
+ },
12
+ paddingBlockEnd: {
13
+ value: '{components.fieldcontrol.paddingBlockEnd.value}',
14
+ },
15
+ paddingInlineStart: {
16
+ value: '{components.fieldcontrol.paddingInlineStart.value}',
17
+ },
18
+ paddingInlineEnd: {
19
+ value: '{components.fieldcontrol.paddingInlineEnd.value}',
20
+ },
21
+ backgroundColor: { value: 'transparent' },
22
+ borderColor: { value: '{components.fieldcontrol.borderColor.value}' },
23
+ borderWidth: { value: '{components.fieldcontrol.borderWidth.value}' },
24
+ borderStyle: { value: '{components.fieldcontrol.borderStyle.value}' },
25
+ borderRadius: { value: '{components.fieldcontrol.borderRadius.value}' },
26
+ color: { value: '{colors.font.primary.value}' },
27
+ _hover: {
28
+ color: { value: '{colors.font.focus.value}' },
29
+ backgroundColor: { value: '{colors.primary.10.value}' },
30
+ borderColor: { value: '{colors.primary.60.value}' },
31
+ },
32
+ _focus: {
33
+ color: { value: '{colors.font.focus.value}' },
34
+ backgroundColor: { value: '{colors.primary.10.value}' },
35
+ borderColor: { value: '{colors.border.focus.value}' },
36
+ boxShadow: { value: '{components.fieldcontrol._focus.boxShadow.value}' },
37
+ },
38
+ _active: {
39
+ color: { value: '{colors.font.active.value}' },
40
+ backgroundColor: { value: '{colors.primary.20.value}' },
41
+ borderColor: { value: '{colors.primary.100.value}' },
42
+ },
43
+ _loading: {
44
+ color: { value: '{colors.font.disabled.value}' },
45
+ backgroundColor: { value: 'transparent' },
46
+ borderColor: { value: '{colors.border.tertiary.value}' },
47
+ },
48
+ _disabled: {
49
+ color: { value: '{colors.font.disabled.value}' },
50
+ backgroundColor: { value: 'transparent' },
51
+ borderColor: { value: '{colors.border.tertiary.value}' },
52
+ },
53
+ // variations
54
+ outlined: {
55
+ info: {
56
+ borderColor: { value: '{colors.blue.60.value}' },
57
+ backgroundColor: { value: 'transparent' },
58
+ color: { value: '{colors.blue.100}' },
59
+ _hover: {
60
+ borderColor: { value: '{colors.blue.60.value}' },
61
+ backgroundColor: { value: '{colors.blue.10.value}' },
62
+ color: { value: '{colors.blue.100.value}' },
63
+ },
64
+ _focus: {
65
+ borderColor: { value: '{colors.blue.100.value}' },
66
+ backgroundColor: { value: '{colors.blue.10.value}' },
67
+ color: { value: '{colors.blue.100.value}' },
68
+ boxShadow: {
69
+ value: {
70
+ offsetX: '0px',
71
+ offsetY: '0px',
72
+ blurRadius: '0px',
73
+ spreadRadius: '1px',
74
+ color: '{colors.blue.100.value}',
75
+ },
76
+ },
77
+ },
78
+ _active: {
79
+ borderColor: { value: '{colors.blue.100.value}' },
80
+ backgroundColor: { value: '{colors.blue.20.value}' },
81
+ color: { value: '{colors.blue.100.value}' },
82
+ },
83
+ },
84
+ warning: {
85
+ borderColor: { value: '{colors.orange.60.value}' },
86
+ backgroundColor: { value: 'transparent' },
87
+ color: { value: '{colors.orange.100}' },
88
+ _hover: {
89
+ borderColor: { value: '{colors.orange.60.value}' },
90
+ backgroundColor: { value: '{colors.orange.10.value}' },
91
+ color: { value: '{colors.orange.100.value}' },
92
+ },
93
+ _focus: {
94
+ borderColor: { value: '{colors.orange.100.value}' },
95
+ backgroundColor: { value: '{colors.orange.10.value}' },
96
+ color: { value: '{colors.orange.100.value}' },
97
+ boxShadow: {
98
+ value: {
99
+ offsetX: '0px',
100
+ offsetY: '0px',
101
+ blurRadius: '0px',
102
+ spreadRadius: '1px',
103
+ color: '{colors.orange.100.value}',
104
+ },
105
+ },
106
+ },
107
+ _active: {
108
+ borderColor: { value: '{colors.orange.100.value}' },
109
+ backgroundColor: { value: '{colors.orange.20.value}' },
110
+ color: { value: '{colors.orange.100.value}' },
111
+ },
112
+ },
113
+ success: {
114
+ borderColor: { value: '{colors.green.60.value}' },
115
+ backgroundColor: { value: 'transparent' },
116
+ color: { value: '{colors.green.100}' },
117
+ _hover: {
118
+ borderColor: { value: '{colors.green.60.value}' },
119
+ backgroundColor: { value: '{colors.green.10.value}' },
120
+ color: { value: '{colors.green.100.value}' },
121
+ },
122
+ _focus: {
123
+ borderColor: { value: '{colors.green.100.value}' },
124
+ backgroundColor: { value: '{colors.green.10.value}' },
125
+ color: { value: '{colors.green.100.value}' },
126
+ boxShadow: {
127
+ value: {
128
+ offsetX: '0px',
129
+ offsetY: '0px',
130
+ blurRadius: '0px',
131
+ spreadRadius: '1px',
132
+ color: '{colors.green.100.value}',
133
+ },
134
+ },
135
+ },
136
+ _active: {
137
+ borderColor: { value: '{colors.green.100.value}' },
138
+ backgroundColor: { value: '{colors.green.20.value}' },
139
+ color: { value: '{colors.green.100.value}' },
140
+ },
141
+ },
142
+ error: {
143
+ borderColor: { value: '{colors.red.60.value}' },
144
+ backgroundColor: { value: 'transparent' },
145
+ color: { value: '{colors.red.100}' },
146
+ _hover: {
147
+ borderColor: { value: '{colors.red.60.value}' },
148
+ backgroundColor: { value: '{colors.red.10.value}' },
149
+ color: { value: '{colors.red.100.value}' },
150
+ },
151
+ _focus: {
152
+ borderColor: { value: '{colors.red.100.value}' },
153
+ backgroundColor: { value: '{colors.red.10.value}' },
154
+ color: { value: '{colors.red.100.value}' },
155
+ boxShadow: {
156
+ value: {
157
+ offsetX: '0px',
158
+ offsetY: '0px',
159
+ blurRadius: '0px',
160
+ spreadRadius: '1px',
161
+ color: '{colors.red.100.value}',
162
+ },
163
+ },
164
+ },
165
+ _active: {
166
+ borderColor: { value: '{colors.red.100.value}' },
167
+ backgroundColor: { value: '{colors.red.20.value}' },
168
+ color: { value: '{colors.red.100.value}' },
169
+ },
170
+ },
171
+ overlay: {
172
+ borderColor: { value: '{colors.overlay.60.value}' },
173
+ backgroundColor: { value: 'transparent' },
174
+ color: { value: '{colors.font.primary.value}' },
175
+ _hover: {
176
+ borderColor: { value: '{colors.overlay.60.value}' },
177
+ backgroundColor: { value: '{colors.overlay.5.value}' },
178
+ color: { value: '{colors.neutral.90.value}' },
179
+ },
180
+ _focus: {
181
+ borderColor: { value: '{colors.overlay.90.value}' },
182
+ backgroundColor: { value: '{colors.overlay.5.value}' },
183
+ color: { value: '{colors.neutral.90.value}' },
184
+ boxShadow: {
185
+ value: {
186
+ offsetX: '0px',
187
+ offsetY: '0px',
188
+ blurRadius: '0px',
189
+ spreadRadius: '1px',
190
+ color: '{colors.overlay.90.value}',
191
+ },
192
+ },
193
+ },
194
+ _active: {
195
+ borderColor: { value: '{colors.overlay.90.value}' },
196
+ backgroundColor: { value: '{colors.overlay.10.value}' },
197
+ color: { value: '{colors.neutral.100.value}' },
198
+ },
199
+ },
200
+ },
201
+ primary: {
202
+ borderColor: { value: 'transparent' },
203
+ borderWidth: { value: '{borderWidths.small.value}' },
204
+ borderStyle: { value: 'solid' },
205
+ backgroundColor: { value: '{colors.primary.80.value}' },
206
+ color: { value: '{colors.font.inverse.value}' },
207
+ _disabled: {
208
+ borderColor: { value: 'transparent' },
209
+ backgroundColor: { value: '{colors.background.disabled.value}' },
210
+ color: { value: '{colors.font.disabled.value}' },
211
+ },
212
+ _loading: {
213
+ borderColor: { value: 'transparent' },
214
+ backgroundColor: { value: '{colors.background.disabled.value}' },
215
+ color: { value: '{colors.font.disabled.value}' },
216
+ },
217
+ _hover: {
218
+ borderColor: { value: 'transparent' },
219
+ backgroundColor: { value: '{colors.primary.90.value}' },
220
+ color: { value: '{colors.font.inverse.value}' },
221
+ },
222
+ _focus: {
223
+ borderColor: { value: 'transparent' },
224
+ backgroundColor: { value: '{colors.primary.90.value}' },
225
+ color: { value: '{colors.font.inverse.value}' },
226
+ boxShadow: { value: '{components.fieldcontrol._focus.boxShadow.value}' },
227
+ },
228
+ _active: {
229
+ borderColor: { value: 'transparent' },
230
+ backgroundColor: { value: '{colors.primary.100.value}' },
231
+ color: { value: '{colors.font.inverse.value}' },
232
+ },
233
+ info: {
234
+ borderColor: { value: 'transparent' },
235
+ backgroundColor: { value: '{colors.blue.80}' },
236
+ color: { value: '{colors.font.inverse.value}' },
237
+ _hover: {
238
+ borderColor: { value: 'transparent' },
239
+ backgroundColor: { value: '{colors.blue.90.value}' },
240
+ color: { value: '{colors.font.inverse.value}' },
241
+ },
242
+ _focus: {
243
+ borderColor: { value: 'transparent' },
244
+ backgroundColor: { value: '{colors.blue.90.value}' },
245
+ color: { value: '{colors.font.inverse.value}' },
246
+ boxShadow: {
247
+ value: {
248
+ offsetX: '0px',
249
+ offsetY: '0px',
250
+ blurRadius: '0px',
251
+ spreadRadius: '1px',
252
+ color: '{colors.blue.100.value}',
253
+ },
254
+ },
255
+ },
256
+ _active: {
257
+ borderColor: { value: 'transparent' },
258
+ backgroundColor: { value: '{colors.blue.100.value}' },
259
+ color: { value: '{colors.font.inverse.value}' },
260
+ },
261
+ },
262
+ warning: {
263
+ borderColor: { value: 'transparent' },
264
+ backgroundColor: { value: '{colors.orange.80}' },
265
+ color: { value: '{colors.font.inverse.value}' },
266
+ _hover: {
267
+ borderColor: { value: 'transparent' },
268
+ backgroundColor: { value: '{colors.orange.90.value}' },
269
+ color: { value: '{colors.font.inverse.value}' },
270
+ },
271
+ _focus: {
272
+ borderColor: { value: 'transparent' },
273
+ backgroundColor: { value: '{colors.orange.90.value}' },
274
+ color: { value: '{colors.font.inverse.value}' },
275
+ boxShadow: {
276
+ value: {
277
+ offsetX: '0px',
278
+ offsetY: '0px',
279
+ blurRadius: '0px',
280
+ spreadRadius: '1px',
281
+ color: '{colors.orange.100.value}',
282
+ },
283
+ },
284
+ },
285
+ _active: {
286
+ borderColor: { value: 'transparent' },
287
+ backgroundColor: { value: '{colors.orange.100.value}' },
288
+ color: { value: '{colors.font.inverse.value}' },
289
+ },
290
+ },
291
+ error: {
292
+ borderColor: { value: 'transparent' },
293
+ backgroundColor: { value: '{colors.red.80}' },
294
+ color: { value: '{colors.font.inverse.value}' },
295
+ _hover: {
296
+ borderColor: { value: 'transparent' },
297
+ backgroundColor: { value: '{colors.red.90.value}' },
298
+ color: { value: '{colors.font.inverse.value}' },
299
+ },
300
+ _focus: {
301
+ borderColor: { value: 'transparent' },
302
+ backgroundColor: { value: '{colors.red.90.value}' },
303
+ color: { value: '{colors.font.inverse.value}' },
304
+ boxShadow: {
305
+ value: {
306
+ offsetX: '0px',
307
+ offsetY: '0px',
308
+ blurRadius: '0px',
309
+ spreadRadius: '1px',
310
+ color: '{colors.red.100.value}',
311
+ },
312
+ },
313
+ },
314
+ _active: {
315
+ borderColor: { value: 'transparent' },
316
+ backgroundColor: { value: '{colors.red.100.value}' },
317
+ color: { value: '{colors.font.inverse.value}' },
318
+ },
319
+ },
320
+ success: {
321
+ borderColor: { value: 'transparent' },
322
+ backgroundColor: { value: '{colors.green.80}' },
323
+ color: { value: '{colors.font.inverse.value}' },
324
+ _hover: {
325
+ borderColor: { value: 'transparent' },
326
+ backgroundColor: { value: '{colors.green.90.value}' },
327
+ color: { value: '{colors.font.inverse.value}' },
328
+ },
329
+ _focus: {
330
+ borderColor: { value: 'transparent' },
331
+ backgroundColor: { value: '{colors.green.90.value}' },
332
+ color: { value: '{colors.font.inverse.value}' },
333
+ boxShadow: {
334
+ value: {
335
+ offsetX: '0px',
336
+ offsetY: '0px',
337
+ blurRadius: '0px',
338
+ spreadRadius: '1px',
339
+ color: '{colors.green.100.value}',
340
+ },
341
+ },
342
+ },
343
+ _active: {
344
+ borderColor: { value: 'transparent' },
345
+ backgroundColor: { value: '{colors.green.100.value}' },
346
+ color: { value: '{colors.font.inverse.value}' },
347
+ },
348
+ },
349
+ overlay: {
350
+ borderColor: { value: 'transparent' },
351
+ backgroundColor: { value: '{colors.overlay.70}' },
352
+ color: { value: '{colors.font.inverse.value}' },
353
+ _hover: {
354
+ borderColor: { value: 'transparent' },
355
+ backgroundColor: { value: '{colors.overlay.90.value}' },
356
+ color: { value: '{colors.font.inverse.value}' },
357
+ },
358
+ _focus: {
359
+ borderColor: { value: 'transparent' },
360
+ backgroundColor: { value: '{colors.overlay.90.value}' },
361
+ color: { value: '{colors.font.inverse.value}' },
362
+ boxShadow: {
363
+ value: {
364
+ offsetX: '0px',
365
+ offsetY: '0px',
366
+ blurRadius: '0px',
367
+ spreadRadius: '1px',
368
+ color: '{colors.overlay.90.value}',
369
+ },
370
+ },
371
+ },
372
+ _active: {
373
+ borderColor: { value: 'transparent' },
374
+ backgroundColor: { value: '{colors.overlay.90.value}' },
375
+ color: { value: '{colors.font.inverse.value}' },
376
+ },
377
+ },
378
+ },
379
+ menu: {
380
+ borderWidth: { value: '{space.zero.value}' },
381
+ backgroundColor: { value: 'transparent' },
382
+ justifyContent: { value: 'start' },
383
+ // Focus and hover styles are identical for menu variation
384
+ // because for Menu primitive, menu items are forced to be focused even
385
+ // for mouse interactions, making it impossible to distinguish the two interactions
386
+ _hover: {
387
+ color: { value: '{colors.font.inverse.value}' },
388
+ backgroundColor: { value: '{colors.primary.80.value}' },
389
+ },
390
+ _focus: {
391
+ color: { value: '{colors.font.inverse.value}' },
392
+ backgroundColor: { value: '{colors.primary.80.value}' },
393
+ },
394
+ _active: {
395
+ color: { value: '{colors.font.inverse.value}' },
396
+ backgroundColor: { value: '{colors.primary.90.value}' },
397
+ },
398
+ _disabled: {
399
+ color: { value: '{colors.font.disabled.value}' },
400
+ },
401
+ },
402
+ link: {
403
+ backgroundColor: { value: 'transparent' },
404
+ borderColor: { value: 'transparent' },
405
+ borderWidth: { value: '{borderWidths.small.value}' },
406
+ color: { value: '{colors.font.interactive.value}' },
407
+ _hover: {
408
+ borderColor: { value: 'transparent' },
409
+ backgroundColor: { value: '{colors.primary.10.value}' },
410
+ color: { value: '{colors.font.hover.value}' },
411
+ },
412
+ _focus: {
413
+ borderColor: { value: 'transparent' },
414
+ backgroundColor: { value: '{colors.primary.10.value}' },
415
+ color: { value: '{colors.font.focus.value}' },
416
+ boxShadow: { value: '{components.fieldcontrol._focus.boxShadow.value}' },
417
+ },
418
+ _active: {
419
+ borderColor: { value: 'transparent' },
420
+ backgroundColor: { value: '{colors.primary.20.value}' },
421
+ color: { value: '{colors.font.active.value}' },
422
+ },
423
+ _disabled: {
424
+ borderColor: { value: 'transparent' },
425
+ backgroundColor: { value: 'transparent' },
426
+ color: { value: '{colors.font.disabled.value}' },
427
+ },
428
+ _loading: {
429
+ borderColor: { value: 'transparent' },
430
+ backgroundColor: { value: 'transparent' },
431
+ color: { value: '{colors.font.disabled.value}' },
432
+ },
433
+ info: {
434
+ borderColor: { value: 'transparent' },
435
+ backgroundColor: { value: 'transparent' },
436
+ color: { value: '{colors.blue.100}' },
437
+ _hover: {
438
+ borderColor: { value: 'transparent' },
439
+ backgroundColor: { value: '{colors.blue.10.value}' },
440
+ color: { value: '{colors.blue.90.value}' },
441
+ },
442
+ _focus: {
443
+ borderColor: { value: 'transparent' },
444
+ backgroundColor: { value: '{colors.blue.10.value}' },
445
+ color: { value: '{colors.blue.100.value}' },
446
+ boxShadow: {
447
+ value: {
448
+ offsetX: '0px',
449
+ offsetY: '0px',
450
+ blurRadius: '0px',
451
+ spreadRadius: '1px',
452
+ color: '{colors.blue.100.value}',
453
+ },
454
+ },
455
+ },
456
+ _active: {
457
+ borderColor: { value: 'transparent' },
458
+ backgroundColor: { value: '{colors.blue.20.value}' },
459
+ color: { value: '{colors.blue.100.value}' },
460
+ },
461
+ },
462
+ warning: {
463
+ borderColor: { value: 'transparent' },
464
+ backgroundColor: { value: 'transparent' },
465
+ color: { value: '{colors.orange.100}' },
466
+ _hover: {
467
+ borderColor: { value: 'transparent' },
468
+ backgroundColor: { value: '{colors.orange.10.value}' },
469
+ color: { value: '{colors.orange.90.value}' },
470
+ },
471
+ _focus: {
472
+ borderColor: { value: 'transparent' },
473
+ backgroundColor: { value: '{colors.orange.10.value}' },
474
+ color: { value: '{colors.orange.100.value}' },
475
+ boxShadow: {
476
+ value: {
477
+ offsetX: '0px',
478
+ offsetY: '0px',
479
+ blurRadius: '0px',
480
+ spreadRadius: '1px',
481
+ color: '{colors.orange.100.value}',
482
+ },
483
+ },
484
+ },
485
+ _active: {
486
+ borderColor: { value: 'transparent' },
487
+ backgroundColor: { value: '{colors.orange.20.value}' },
488
+ color: { value: '{colors.orange.100.value}' },
489
+ },
490
+ },
491
+ success: {
492
+ borderColor: { value: 'transparent' },
493
+ backgroundColor: { value: 'transparent' },
494
+ color: { value: '{colors.green.100}' },
495
+ _hover: {
496
+ borderColor: { value: 'transparent' },
497
+ backgroundColor: { value: '{colors.green.10.value}' },
498
+ color: { value: '{colors.green.90.value}' },
499
+ },
500
+ _focus: {
501
+ borderColor: { value: 'transparent' },
502
+ backgroundColor: { value: '{colors.green.10.value}' },
503
+ color: { value: '{colors.green.100.value}' },
504
+ boxShadow: {
505
+ value: {
506
+ offsetX: '0px',
507
+ offsetY: '0px',
508
+ blurRadius: '0px',
509
+ spreadRadius: '1px',
510
+ color: '{colors.green.100.value}',
511
+ },
512
+ },
513
+ },
514
+ _active: {
515
+ borderColor: { value: 'transparent' },
516
+ backgroundColor: { value: '{colors.green.20.value}' },
517
+ color: { value: '{colors.green.100.value}' },
518
+ },
519
+ },
520
+ error: {
521
+ borderColor: { value: 'transparent' },
522
+ backgroundColor: { value: 'transparent' },
523
+ color: { value: '{colors.red.100}' },
524
+ _hover: {
525
+ borderColor: { value: 'transparent' },
526
+ backgroundColor: { value: '{colors.red.10.value}' },
527
+ color: { value: '{colors.red.90.value}' },
528
+ },
529
+ _focus: {
530
+ borderColor: { value: 'transparent' },
531
+ backgroundColor: { value: '{colors.red.10.value}' },
532
+ color: { value: '{colors.red.100.value}' },
533
+ boxShadow: {
534
+ value: {
535
+ offsetX: '0px',
536
+ offsetY: '0px',
537
+ blurRadius: '0px',
538
+ spreadRadius: '1px',
539
+ color: '{colors.red.100.value}',
540
+ },
541
+ },
542
+ },
543
+ _active: {
544
+ borderColor: { value: 'transparent' },
545
+ backgroundColor: { value: '{colors.red.20.value}' },
546
+ color: { value: '{colors.red.100.value}' },
547
+ },
548
+ },
549
+ overlay: {
550
+ borderColor: { value: 'transparent' },
551
+ backgroundColor: { value: 'transparent' },
552
+ color: { value: '{colors.neutral.100}' },
553
+ _hover: {
554
+ borderColor: { value: 'transparent' },
555
+ backgroundColor: { value: '{colors.overlay.5.value}' },
556
+ color: { value: '{colors.overlay.80.value}' },
557
+ },
558
+ _focus: {
559
+ borderColor: { value: 'transparent' },
560
+ backgroundColor: { value: '{colors.overlay.5.value}' },
561
+ color: { value: '{colors.overlay.90.value}' },
562
+ boxShadow: {
563
+ value: {
564
+ offsetX: '0px',
565
+ offsetY: '0px',
566
+ blurRadius: '0px',
567
+ spreadRadius: '1px',
568
+ color: '{colors.overlay.90.value}',
569
+ },
570
+ },
571
+ },
572
+ _active: {
573
+ borderColor: { value: 'transparent' },
574
+ backgroundColor: { value: '{colors.overlay.10.value}' },
575
+ color: { value: '{colors.overlay.90.value}' },
576
+ },
577
+ },
578
+ },
579
+ warning: {
580
+ backgroundColor: { value: 'transparent' },
581
+ borderColor: { value: '{colors.red.60}' },
582
+ borderWidth: { value: '{borderWidths.small}' },
583
+ color: { value: '{colors.red.60}' },
584
+ _hover: {
585
+ borderColor: { value: '{colors.red.80}' },
586
+ backgroundColor: { value: '{colors.red.10}' },
587
+ color: { value: '{colors.font.error}' },
588
+ },
589
+ _focus: {
590
+ borderColor: { value: '{colors.red.80}' },
591
+ backgroundColor: { value: '{colors.red.10}' },
592
+ color: { value: '{colors.red.80}' },
593
+ boxShadow: { value: '{components.fieldcontrol._error._focus.boxShadow}' },
594
+ },
595
+ _active: {
596
+ borderColor: { value: '{colors.red.100}' },
597
+ backgroundColor: { value: '{colors.red.20}' },
598
+ color: { value: '{colors.red.100}' },
599
+ },
600
+ _disabled: {
601
+ borderColor: { value: '{colors.border.tertiary}' },
602
+ backgroundColor: { value: 'transparent' },
603
+ color: { value: '{colors.font.disabled}' },
604
+ },
605
+ _loading: {
606
+ borderColor: { value: '{colors.border.tertiary}' },
607
+ backgroundColor: { value: 'transparent' },
608
+ color: { value: '{colors.font.disabled}' },
609
+ },
610
+ },
611
+ destructive: {
612
+ borderColor: { value: 'transparent' },
613
+ borderWidth: { value: '{borderWidths.small}' },
614
+ borderStyle: { value: 'solid' },
615
+ backgroundColor: { value: '{colors.red.60}' },
616
+ color: { value: '{colors.font.inverse}' },
617
+ _disabled: {
618
+ borderColor: { value: 'transparent' },
619
+ backgroundColor: { value: '{colors.background.disabled}' },
620
+ color: { value: '{colors.font.disabled}' },
621
+ },
622
+ _loading: {
623
+ borderColor: { value: 'transparent' },
624
+ backgroundColor: { value: '{colors.background.disabled}' },
625
+ color: { value: '{colors.font.disabled}' },
626
+ },
627
+ _hover: {
628
+ borderColor: { value: 'transparent' },
629
+ backgroundColor: { value: '{colors.red.80}' },
630
+ color: { value: '{colors.font.inverse}' },
631
+ },
632
+ _focus: {
633
+ borderColor: { value: 'transparent' },
634
+ backgroundColor: { value: '{colors.red.80}' },
635
+ color: { value: '{colors.font.inverse}' },
636
+ boxShadow: { value: '{components.fieldcontrol._error._focus.boxShadow}' },
637
+ },
638
+ _active: {
639
+ borderColor: { value: 'transparent' },
640
+ backgroundColor: { value: '{colors.red.100}' },
641
+ color: { value: '{colors.font.inverse}' },
642
+ },
643
+ },
644
+ // sizes
645
+ small: {
646
+ fontSize: { value: '{components.fieldcontrol.small.fontSize.value}' },
647
+ paddingBlockStart: {
648
+ value: '{components.fieldcontrol.small.paddingBlockStart.value}',
649
+ },
650
+ paddingBlockEnd: {
651
+ value: '{components.fieldcontrol.small.paddingBlockEnd.value}',
652
+ },
653
+ paddingInlineStart: {
654
+ value: '{components.fieldcontrol.small.paddingInlineStart.value}',
655
+ },
656
+ paddingInlineEnd: {
657
+ value: '{components.fieldcontrol.small.paddingInlineEnd.value}',
658
+ },
659
+ },
660
+ large: {
661
+ fontSize: { value: '{components.fieldcontrol.large.fontSize.value}' },
662
+ paddingBlockStart: {
663
+ value: '{components.fieldcontrol.large.paddingBlockStart.value}',
664
+ },
665
+ paddingBlockEnd: {
666
+ value: '{components.fieldcontrol.large.paddingBlockEnd.value}',
667
+ },
668
+ paddingInlineStart: {
669
+ value: '{components.fieldcontrol.large.paddingInlineStart.value}',
670
+ },
671
+ paddingInlineEnd: {
672
+ value: '{components.fieldcontrol.large.paddingInlineEnd.value}',
673
+ },
674
+ },
675
+ loaderWrapper: {
676
+ alignItems: {
677
+ value: 'center',
678
+ },
679
+ gap: {
680
+ value: '{space.xs.value}',
681
+ },
682
+ },
683
+ };
684
+
685
+ export { button };