@pega/cosmos-react-core 9.0.0-build.1.0 → 9.0.0-build.10.1

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 (690) hide show
  1. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  2. package/lib/components/AppShell/AppHeader.js +4 -1
  3. package/lib/components/AppShell/AppHeader.js.map +1 -1
  4. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  5. package/lib/components/AppShell/AppShell.styles.js +3 -1
  6. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  7. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -1
  8. package/lib/components/AppShell/NavigationListItemWrapper.js +3 -4
  9. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
  10. package/lib/components/AppShell/ThemeSwitcher.d.ts +9 -0
  11. package/lib/components/AppShell/ThemeSwitcher.d.ts.map +1 -0
  12. package/lib/components/AppShell/ThemeSwitcher.js +58 -0
  13. package/lib/components/AppShell/ThemeSwitcher.js.map +1 -0
  14. package/lib/components/AppShell/ThemeSwitcher.test-ids.d.ts +2 -0
  15. package/lib/components/AppShell/ThemeSwitcher.test-ids.d.ts.map +1 -0
  16. package/lib/components/AppShell/ThemeSwitcher.test-ids.js +3 -0
  17. package/lib/components/AppShell/ThemeSwitcher.test-ids.js.map +1 -0
  18. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  19. package/lib/components/Avatar/Avatar.js +10 -4
  20. package/lib/components/Avatar/Avatar.js.map +1 -1
  21. package/lib/components/Banner/Banner.js +1 -1
  22. package/lib/components/Banner/Banner.js.map +1 -1
  23. package/lib/components/Card/CardHeader.d.ts.map +1 -1
  24. package/lib/components/Card/CardHeader.js +2 -2
  25. package/lib/components/Card/CardHeader.js.map +1 -1
  26. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  27. package/lib/components/ComboBox/ComboBox.js +8 -3
  28. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  29. package/lib/components/ComboBox/ComboBox.types.d.ts +5 -0
  30. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  31. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  32. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -1
  33. package/lib/components/CompositeInput/CompositeInput.js +3 -9
  34. package/lib/components/CompositeInput/CompositeInput.js.map +1 -1
  35. package/lib/components/Configuration/Configuration.d.ts +7 -2
  36. package/lib/components/Configuration/Configuration.d.ts.map +1 -1
  37. package/lib/components/Configuration/Configuration.js +6 -4
  38. package/lib/components/Configuration/Configuration.js.map +1 -1
  39. package/lib/components/CreditCard/CreditCardInput.d.ts +1 -1
  40. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  41. package/lib/components/Currency/CurrencyInput.js +8 -4
  42. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  43. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  44. package/lib/components/DateTime/Input/DateInput.js +8 -6
  45. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  46. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  47. package/lib/components/DateTime/Input/DateTime.styles.js +0 -4
  48. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  49. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  50. package/lib/components/DateTime/Input/DateTimeInput.js +29 -10
  51. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  52. package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
  53. package/lib/components/DateTime/Input/MonthInput.js +1 -1
  54. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  55. package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
  56. package/lib/components/DateTime/Input/PartInput.js +6 -1
  57. package/lib/components/DateTime/Input/PartInput.js.map +1 -1
  58. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
  59. package/lib/components/DateTime/Input/QuarterInput.js +1 -1
  60. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
  61. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  62. package/lib/components/DateTime/Input/TimeInput.js +1 -1
  63. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  64. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  65. package/lib/components/DateTime/Input/WeekInput.js +7 -5
  66. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  67. package/lib/components/DateTime/Input/utils.d.ts +2 -2
  68. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  69. package/lib/components/DateTime/Input/utils.js +4 -3
  70. package/lib/components/DateTime/Input/utils.js.map +1 -1
  71. package/lib/components/DateTime/Picker/utils.d.ts.map +1 -1
  72. package/lib/components/DateTime/Picker/utils.js +2 -6
  73. package/lib/components/DateTime/Picker/utils.js.map +1 -1
  74. package/lib/components/Dialog/Dialog.types.d.ts +4 -0
  75. package/lib/components/Dialog/Dialog.types.d.ts.map +1 -1
  76. package/lib/components/Dialog/Dialog.types.js.map +1 -1
  77. package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
  78. package/lib/components/Dialog/FormDialog.js +7 -2
  79. package/lib/components/Dialog/FormDialog.js.map +1 -1
  80. package/lib/components/Dialog/InfoDialog.js +1 -1
  81. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  82. package/lib/components/Drawer/Drawer.d.ts +8 -1
  83. package/lib/components/Drawer/Drawer.d.ts.map +1 -1
  84. package/lib/components/Drawer/Drawer.js +67 -8
  85. package/lib/components/Drawer/Drawer.js.map +1 -1
  86. package/lib/components/Drawer/ResizeHandle.d.ts +9 -0
  87. package/lib/components/Drawer/ResizeHandle.d.ts.map +1 -0
  88. package/lib/components/Drawer/ResizeHandle.js +109 -0
  89. package/lib/components/Drawer/ResizeHandle.js.map +1 -0
  90. package/lib/components/Drawer/index.d.ts +2 -0
  91. package/lib/components/Drawer/index.d.ts.map +1 -1
  92. package/lib/components/Drawer/index.js +1 -0
  93. package/lib/components/Drawer/index.js.map +1 -1
  94. package/lib/components/FieldGroup/FieldGroup.d.ts +5 -0
  95. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  96. package/lib/components/FieldGroup/FieldGroup.js +10 -6
  97. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  98. package/lib/components/FieldGroup/FieldGroupList.d.ts +17 -2
  99. package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
  100. package/lib/components/FieldGroup/FieldGroupList.js +202 -50
  101. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  102. package/lib/components/FieldGroup/FieldGroupList.utils.d.ts +33 -0
  103. package/lib/components/FieldGroup/FieldGroupList.utils.d.ts.map +1 -0
  104. package/lib/components/FieldGroup/FieldGroupList.utils.js +74 -0
  105. package/lib/components/FieldGroup/FieldGroupList.utils.js.map +1 -0
  106. package/lib/components/FieldGroup/FieldGroupListContext.d.ts +8 -0
  107. package/lib/components/FieldGroup/FieldGroupListContext.d.ts.map +1 -0
  108. package/lib/components/FieldGroup/FieldGroupListContext.js +9 -0
  109. package/lib/components/FieldGroup/FieldGroupListContext.js.map +1 -0
  110. package/lib/components/FieldGroup/index.d.ts +2 -0
  111. package/lib/components/FieldGroup/index.d.ts.map +1 -1
  112. package/lib/components/FieldGroup/index.js +2 -0
  113. package/lib/components/FieldGroup/index.js.map +1 -1
  114. package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
  115. package/lib/components/FieldValueList/FieldValueList.js +11 -5
  116. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  117. package/lib/components/File/FileInput.d.ts.map +1 -1
  118. package/lib/components/File/FileInput.js +4 -3
  119. package/lib/components/File/FileInput.js.map +1 -1
  120. package/lib/components/File/FileItem.d.ts.map +1 -1
  121. package/lib/components/File/FileItem.js +2 -2
  122. package/lib/components/File/FileItem.js.map +1 -1
  123. package/lib/components/Form/Form.d.ts +2 -0
  124. package/lib/components/Form/Form.d.ts.map +1 -1
  125. package/lib/components/Form/Form.js +2 -2
  126. package/lib/components/Form/Form.js.map +1 -1
  127. package/lib/components/FormField/FormField.d.ts.map +1 -1
  128. package/lib/components/FormField/FormField.js +3 -2
  129. package/lib/components/FormField/FormField.js.map +1 -1
  130. package/lib/components/Fullscreen/Fullscreen.d.ts.map +1 -1
  131. package/lib/components/Fullscreen/Fullscreen.js +8 -5
  132. package/lib/components/Fullscreen/Fullscreen.js.map +1 -1
  133. package/lib/components/Icon/Icon.d.ts.map +1 -1
  134. package/lib/components/Icon/Icon.js +7 -2
  135. package/lib/components/Icon/Icon.js.map +1 -1
  136. package/lib/components/Icon/streamline-icons/archive-solid.icon.d.ts +5 -0
  137. package/lib/components/Icon/streamline-icons/archive-solid.icon.d.ts.map +1 -0
  138. package/lib/components/Icon/streamline-icons/archive-solid.icon.js +7 -0
  139. package/lib/components/Icon/streamline-icons/archive-solid.icon.js.map +1 -0
  140. package/lib/components/Icon/streamline-icons/archive.icon.d.ts +5 -0
  141. package/lib/components/Icon/streamline-icons/archive.icon.d.ts.map +1 -0
  142. package/lib/components/Icon/streamline-icons/archive.icon.js +7 -0
  143. package/lib/components/Icon/streamline-icons/archive.icon.js.map +1 -0
  144. package/lib/components/Icon/streamline-icons/article-solid.icon.d.ts +5 -0
  145. package/lib/components/Icon/streamline-icons/article-solid.icon.d.ts.map +1 -0
  146. package/lib/components/Icon/streamline-icons/article-solid.icon.js +7 -0
  147. package/lib/components/Icon/streamline-icons/article-solid.icon.js.map +1 -0
  148. package/lib/components/Icon/streamline-icons/article.icon.d.ts +5 -0
  149. package/lib/components/Icon/streamline-icons/article.icon.d.ts.map +1 -0
  150. package/lib/components/Icon/streamline-icons/article.icon.js +7 -0
  151. package/lib/components/Icon/streamline-icons/article.icon.js.map +1 -0
  152. package/lib/components/Icon/streamline-icons/bell-solid.icon.d.ts +5 -0
  153. package/lib/components/Icon/streamline-icons/bell-solid.icon.d.ts.map +1 -0
  154. package/lib/components/Icon/streamline-icons/bell-solid.icon.js +7 -0
  155. package/lib/components/Icon/streamline-icons/bell-solid.icon.js.map +1 -0
  156. package/lib/components/Icon/streamline-icons/browser-site.icon.d.ts +5 -0
  157. package/lib/components/Icon/streamline-icons/browser-site.icon.d.ts.map +1 -0
  158. package/lib/components/Icon/streamline-icons/browser-site.icon.js +7 -0
  159. package/lib/components/Icon/streamline-icons/browser-site.icon.js.map +1 -0
  160. package/lib/components/Icon/streamline-icons/circle-mixed-right.icon.d.ts +5 -0
  161. package/lib/components/Icon/streamline-icons/circle-mixed-right.icon.d.ts.map +1 -0
  162. package/lib/components/Icon/streamline-icons/circle-mixed-right.icon.js +7 -0
  163. package/lib/components/Icon/streamline-icons/circle-mixed-right.icon.js.map +1 -0
  164. package/lib/components/Icon/streamline-icons/circle-stacked-mixed.icon.d.ts +5 -0
  165. package/lib/components/Icon/streamline-icons/circle-stacked-mixed.icon.d.ts.map +1 -0
  166. package/lib/components/Icon/streamline-icons/circle-stacked-mixed.icon.js +7 -0
  167. package/lib/components/Icon/streamline-icons/circle-stacked-mixed.icon.js.map +1 -0
  168. package/lib/components/Icon/streamline-icons/circle-stacked.icon.d.ts +5 -0
  169. package/lib/components/Icon/streamline-icons/circle-stacked.icon.d.ts.map +1 -0
  170. package/lib/components/Icon/streamline-icons/circle-stacked.icon.js +7 -0
  171. package/lib/components/Icon/streamline-icons/circle-stacked.icon.js.map +1 -0
  172. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.d.ts +5 -0
  173. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.d.ts.map +1 -0
  174. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.js +7 -0
  175. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.js.map +1 -0
  176. package/lib/components/Icon/streamline-icons/condition-critical.icon.d.ts +5 -0
  177. package/lib/components/Icon/streamline-icons/condition-critical.icon.d.ts.map +1 -0
  178. package/lib/components/Icon/streamline-icons/condition-critical.icon.js +7 -0
  179. package/lib/components/Icon/streamline-icons/condition-critical.icon.js.map +1 -0
  180. package/lib/components/Icon/streamline-icons/condition-satisfactory.icon.d.ts +5 -0
  181. package/lib/components/Icon/streamline-icons/condition-satisfactory.icon.d.ts.map +1 -0
  182. package/lib/components/Icon/streamline-icons/condition-satisfactory.icon.js +7 -0
  183. package/lib/components/Icon/streamline-icons/condition-satisfactory.icon.js.map +1 -0
  184. package/lib/components/Icon/streamline-icons/disc-document.icon.d.ts +5 -0
  185. package/lib/components/Icon/streamline-icons/disc-document.icon.d.ts.map +1 -0
  186. package/lib/components/Icon/streamline-icons/disc-document.icon.js +7 -0
  187. package/lib/components/Icon/streamline-icons/disc-document.icon.js.map +1 -0
  188. package/lib/components/Icon/streamline-icons/disc-nodes.icon.d.ts +5 -0
  189. package/lib/components/Icon/streamline-icons/disc-nodes.icon.d.ts.map +1 -0
  190. package/lib/components/Icon/streamline-icons/disc-nodes.icon.js +7 -0
  191. package/lib/components/Icon/streamline-icons/disc-nodes.icon.js.map +1 -0
  192. package/lib/components/Icon/streamline-icons/document-doc.icon.d.ts +5 -0
  193. package/lib/components/Icon/streamline-icons/document-doc.icon.d.ts.map +1 -0
  194. package/lib/components/Icon/streamline-icons/document-doc.icon.js +7 -0
  195. package/lib/components/Icon/streamline-icons/document-doc.icon.js.map +1 -0
  196. package/lib/components/Icon/streamline-icons/document-json.icon.d.ts +5 -0
  197. package/lib/components/Icon/streamline-icons/document-json.icon.d.ts.map +1 -0
  198. package/lib/components/Icon/streamline-icons/document-json.icon.js +7 -0
  199. package/lib/components/Icon/streamline-icons/document-json.icon.js.map +1 -0
  200. package/lib/components/Icon/streamline-icons/document-xls.icon.d.ts +5 -0
  201. package/lib/components/Icon/streamline-icons/document-xls.icon.d.ts.map +1 -0
  202. package/lib/components/Icon/streamline-icons/document-xls.icon.js +7 -0
  203. package/lib/components/Icon/streamline-icons/document-xls.icon.js.map +1 -0
  204. package/lib/components/Icon/streamline-icons/documents.icon.d.ts +5 -0
  205. package/lib/components/Icon/streamline-icons/documents.icon.d.ts.map +1 -0
  206. package/lib/components/Icon/streamline-icons/documents.icon.js +7 -0
  207. package/lib/components/Icon/streamline-icons/documents.icon.js.map +1 -0
  208. package/lib/components/Icon/streamline-icons/field-cursor.icon.js +1 -1
  209. package/lib/components/Icon/streamline-icons/field-cursor.icon.js.map +1 -1
  210. package/lib/components/Icon/streamline-icons/filter-on.icon.d.ts +5 -0
  211. package/lib/components/Icon/streamline-icons/filter-on.icon.d.ts.map +1 -0
  212. package/lib/components/Icon/streamline-icons/filter-on.icon.js +7 -0
  213. package/lib/components/Icon/streamline-icons/filter-on.icon.js.map +1 -0
  214. package/lib/components/Icon/streamline-icons/freeze-column.icon.d.ts +5 -0
  215. package/lib/components/Icon/streamline-icons/freeze-column.icon.d.ts.map +1 -0
  216. package/lib/components/Icon/streamline-icons/freeze-column.icon.js +7 -0
  217. package/lib/components/Icon/streamline-icons/freeze-column.icon.js.map +1 -0
  218. package/lib/components/Icon/streamline-icons/galaxy.icon.d.ts +5 -0
  219. package/lib/components/Icon/streamline-icons/galaxy.icon.d.ts.map +1 -0
  220. package/lib/components/Icon/streamline-icons/galaxy.icon.js +7 -0
  221. package/lib/components/Icon/streamline-icons/galaxy.icon.js.map +1 -0
  222. package/lib/components/Icon/streamline-icons/grid-solid.icon.d.ts +5 -0
  223. package/lib/components/Icon/streamline-icons/grid-solid.icon.d.ts.map +1 -0
  224. package/lib/components/Icon/streamline-icons/grid-solid.icon.js +7 -0
  225. package/lib/components/Icon/streamline-icons/grid-solid.icon.js.map +1 -0
  226. package/lib/components/Icon/streamline-icons/grid.icon.d.ts +5 -0
  227. package/lib/components/Icon/streamline-icons/grid.icon.d.ts.map +1 -0
  228. package/lib/components/Icon/streamline-icons/grid.icon.js +7 -0
  229. package/lib/components/Icon/streamline-icons/grid.icon.js.map +1 -0
  230. package/lib/components/Icon/streamline-icons/language-pack.icon.d.ts +5 -0
  231. package/lib/components/Icon/streamline-icons/language-pack.icon.d.ts.map +1 -0
  232. package/lib/components/Icon/streamline-icons/language-pack.icon.js +7 -0
  233. package/lib/components/Icon/streamline-icons/language-pack.icon.js.map +1 -0
  234. package/lib/components/Icon/streamline-icons/layout.icon.d.ts +5 -0
  235. package/lib/components/Icon/streamline-icons/layout.icon.d.ts.map +1 -0
  236. package/lib/components/Icon/streamline-icons/layout.icon.js +7 -0
  237. package/lib/components/Icon/streamline-icons/layout.icon.js.map +1 -0
  238. package/lib/components/Icon/streamline-icons/lock-closed.icon.d.ts +5 -0
  239. package/lib/components/Icon/streamline-icons/lock-closed.icon.d.ts.map +1 -0
  240. package/lib/components/Icon/streamline-icons/lock-closed.icon.js +7 -0
  241. package/lib/components/Icon/streamline-icons/lock-closed.icon.js.map +1 -0
  242. package/lib/components/Icon/streamline-icons/mail-solid.icon.d.ts +5 -0
  243. package/lib/components/Icon/streamline-icons/mail-solid.icon.d.ts.map +1 -0
  244. package/lib/components/Icon/streamline-icons/mail-solid.icon.js +7 -0
  245. package/lib/components/Icon/streamline-icons/mail-solid.icon.js.map +1 -0
  246. package/lib/components/Icon/streamline-icons/mail.icon.d.ts.map +1 -1
  247. package/lib/components/Icon/streamline-icons/mail.icon.js +1 -1
  248. package/lib/components/Icon/streamline-icons/mail.icon.js.map +1 -1
  249. package/lib/components/Icon/streamline-icons/mobius.icon.d.ts +5 -0
  250. package/lib/components/Icon/streamline-icons/mobius.icon.d.ts.map +1 -0
  251. package/lib/components/Icon/streamline-icons/mobius.icon.js +7 -0
  252. package/lib/components/Icon/streamline-icons/mobius.icon.js.map +1 -0
  253. package/lib/components/Icon/streamline-icons/phone-in-solid.icon.d.ts +5 -0
  254. package/lib/components/Icon/streamline-icons/phone-in-solid.icon.d.ts.map +1 -0
  255. package/lib/components/Icon/streamline-icons/phone-in-solid.icon.js +7 -0
  256. package/lib/components/Icon/streamline-icons/phone-in-solid.icon.js.map +1 -0
  257. package/lib/components/Icon/streamline-icons/picture-solid.icon.d.ts +5 -0
  258. package/lib/components/Icon/streamline-icons/picture-solid.icon.d.ts.map +1 -0
  259. package/lib/components/Icon/streamline-icons/picture-solid.icon.js +7 -0
  260. package/lib/components/Icon/streamline-icons/picture-solid.icon.js.map +1 -0
  261. package/lib/components/Icon/streamline-icons/plug-connect.icon.d.ts +5 -0
  262. package/lib/components/Icon/streamline-icons/plug-connect.icon.d.ts.map +1 -0
  263. package/lib/components/Icon/streamline-icons/plug-connect.icon.js +7 -0
  264. package/lib/components/Icon/streamline-icons/plug-connect.icon.js.map +1 -0
  265. package/lib/components/Icon/streamline-icons/return.icon.d.ts +5 -0
  266. package/lib/components/Icon/streamline-icons/return.icon.d.ts.map +1 -0
  267. package/lib/components/Icon/streamline-icons/return.icon.js +7 -0
  268. package/lib/components/Icon/streamline-icons/return.icon.js.map +1 -0
  269. package/lib/components/Icon/streamline-icons/robot-solid.icon.d.ts +5 -0
  270. package/lib/components/Icon/streamline-icons/robot-solid.icon.d.ts.map +1 -0
  271. package/lib/components/Icon/streamline-icons/robot-solid.icon.js +7 -0
  272. package/lib/components/Icon/streamline-icons/robot-solid.icon.js.map +1 -0
  273. package/lib/components/Icon/streamline-icons/shapes.icon.d.ts +5 -0
  274. package/lib/components/Icon/streamline-icons/shapes.icon.d.ts.map +1 -0
  275. package/lib/components/Icon/streamline-icons/shapes.icon.js +7 -0
  276. package/lib/components/Icon/streamline-icons/shapes.icon.js.map +1 -0
  277. package/lib/components/Icon/streamline-icons/share-case.icon.d.ts +5 -0
  278. package/lib/components/Icon/streamline-icons/share-case.icon.d.ts.map +1 -0
  279. package/lib/components/Icon/streamline-icons/share-case.icon.js +7 -0
  280. package/lib/components/Icon/streamline-icons/share-case.icon.js.map +1 -0
  281. package/lib/components/Icon/streamline-icons/share-document.icon.d.ts +5 -0
  282. package/lib/components/Icon/streamline-icons/share-document.icon.d.ts.map +1 -0
  283. package/lib/components/Icon/streamline-icons/share-document.icon.js +7 -0
  284. package/lib/components/Icon/streamline-icons/share-document.icon.js.map +1 -0
  285. package/lib/components/Icon/streamline-icons/shield-lock.icon.d.ts +5 -0
  286. package/lib/components/Icon/streamline-icons/shield-lock.icon.d.ts.map +1 -0
  287. package/lib/components/Icon/streamline-icons/shield-lock.icon.js +7 -0
  288. package/lib/components/Icon/streamline-icons/shield-lock.icon.js.map +1 -0
  289. package/lib/components/Icon/streamline-icons/slideshow-solid.icon.d.ts +5 -0
  290. package/lib/components/Icon/streamline-icons/slideshow-solid.icon.d.ts.map +1 -0
  291. package/lib/components/Icon/streamline-icons/slideshow-solid.icon.js +7 -0
  292. package/lib/components/Icon/streamline-icons/slideshow-solid.icon.js.map +1 -0
  293. package/lib/components/Icon/streamline-icons/speaker-on-sold.icon.d.ts +5 -0
  294. package/lib/components/Icon/streamline-icons/speaker-on-sold.icon.d.ts.map +1 -0
  295. package/lib/components/Icon/streamline-icons/speaker-on-sold.icon.js +7 -0
  296. package/lib/components/Icon/streamline-icons/speaker-on-sold.icon.js.map +1 -0
  297. package/lib/components/Icon/streamline-icons/speaker-on.icon.d.ts +5 -0
  298. package/lib/components/Icon/streamline-icons/speaker-on.icon.d.ts.map +1 -0
  299. package/lib/components/Icon/streamline-icons/speaker-on.icon.js +7 -0
  300. package/lib/components/Icon/streamline-icons/speaker-on.icon.js.map +1 -0
  301. package/lib/components/Icon/streamline-icons/table-disc.icon.d.ts +5 -0
  302. package/lib/components/Icon/streamline-icons/table-disc.icon.d.ts.map +1 -0
  303. package/lib/components/Icon/streamline-icons/table-disc.icon.js +7 -0
  304. package/lib/components/Icon/streamline-icons/table-disc.icon.js.map +1 -0
  305. package/lib/components/Icon/streamline-icons/translate.icon.d.ts +5 -0
  306. package/lib/components/Icon/streamline-icons/translate.icon.d.ts.map +1 -0
  307. package/lib/components/Icon/streamline-icons/translate.icon.js +7 -0
  308. package/lib/components/Icon/streamline-icons/translate.icon.js.map +1 -0
  309. package/lib/components/Icon/streamline-icons/user-check-solid.icon.d.ts +5 -0
  310. package/lib/components/Icon/streamline-icons/user-check-solid.icon.d.ts.map +1 -0
  311. package/lib/components/Icon/streamline-icons/user-check-solid.icon.js +7 -0
  312. package/lib/components/Icon/streamline-icons/user-check-solid.icon.js.map +1 -0
  313. package/lib/components/Icon/streamline-icons/user-close-solid.icon.d.ts +5 -0
  314. package/lib/components/Icon/streamline-icons/user-close-solid.icon.d.ts.map +1 -0
  315. package/lib/components/Icon/streamline-icons/user-close-solid.icon.js +7 -0
  316. package/lib/components/Icon/streamline-icons/user-close-solid.icon.js.map +1 -0
  317. package/lib/components/Icon/streamline-icons/user-close.icon.d.ts +5 -0
  318. package/lib/components/Icon/streamline-icons/user-close.icon.d.ts.map +1 -0
  319. package/lib/components/Icon/streamline-icons/user-close.icon.js +7 -0
  320. package/lib/components/Icon/streamline-icons/user-close.icon.js.map +1 -0
  321. package/lib/components/Icon/streamline-icons/user-female-solid.icon.d.ts +5 -0
  322. package/lib/components/Icon/streamline-icons/user-female-solid.icon.d.ts.map +1 -0
  323. package/lib/components/Icon/streamline-icons/user-female-solid.icon.js +7 -0
  324. package/lib/components/Icon/streamline-icons/user-female-solid.icon.js.map +1 -0
  325. package/lib/components/Icon/streamline-icons/user-female.icon.d.ts +5 -0
  326. package/lib/components/Icon/streamline-icons/user-female.icon.d.ts.map +1 -0
  327. package/lib/components/Icon/streamline-icons/user-female.icon.js +7 -0
  328. package/lib/components/Icon/streamline-icons/user-female.icon.js.map +1 -0
  329. package/lib/components/Icon/streamline-icons/user-list-solid.icon.d.ts +5 -0
  330. package/lib/components/Icon/streamline-icons/user-list-solid.icon.d.ts.map +1 -0
  331. package/lib/components/Icon/streamline-icons/user-list-solid.icon.js +7 -0
  332. package/lib/components/Icon/streamline-icons/user-list-solid.icon.js.map +1 -0
  333. package/lib/components/Icon/streamline-icons/user-list.icon.d.ts +5 -0
  334. package/lib/components/Icon/streamline-icons/user-list.icon.d.ts.map +1 -0
  335. package/lib/components/Icon/streamline-icons/user-list.icon.js +7 -0
  336. package/lib/components/Icon/streamline-icons/user-list.icon.js.map +1 -0
  337. package/lib/components/Icon/streamline-icons/user-plus-solid.icon.d.ts +5 -0
  338. package/lib/components/Icon/streamline-icons/user-plus-solid.icon.d.ts.map +1 -0
  339. package/lib/components/Icon/streamline-icons/user-plus-solid.icon.js +7 -0
  340. package/lib/components/Icon/streamline-icons/user-plus-solid.icon.js.map +1 -0
  341. package/lib/components/Icon/streamline-icons/user-plus.icon.d.ts +5 -0
  342. package/lib/components/Icon/streamline-icons/user-plus.icon.d.ts.map +1 -0
  343. package/lib/components/Icon/streamline-icons/user-plus.icon.js +7 -0
  344. package/lib/components/Icon/streamline-icons/user-plus.icon.js.map +1 -0
  345. package/lib/components/Icon/streamline-icons/user-question-mark-solid.icon.d.ts +5 -0
  346. package/lib/components/Icon/streamline-icons/user-question-mark-solid.icon.d.ts.map +1 -0
  347. package/lib/components/Icon/streamline-icons/user-question-mark-solid.icon.js +7 -0
  348. package/lib/components/Icon/streamline-icons/user-question-mark-solid.icon.js.map +1 -0
  349. package/lib/components/Icon/streamline-icons/user-question-mark.icon.d.ts +5 -0
  350. package/lib/components/Icon/streamline-icons/user-question-mark.icon.d.ts.map +1 -0
  351. package/lib/components/Icon/streamline-icons/user-question-mark.icon.js +7 -0
  352. package/lib/components/Icon/streamline-icons/user-question-mark.icon.js.map +1 -0
  353. package/lib/components/Icon/streamline-icons/user-search-solid.icon.d.ts +5 -0
  354. package/lib/components/Icon/streamline-icons/user-search-solid.icon.d.ts.map +1 -0
  355. package/lib/components/Icon/streamline-icons/user-search-solid.icon.js +7 -0
  356. package/lib/components/Icon/streamline-icons/user-search-solid.icon.js.map +1 -0
  357. package/lib/components/Icon/streamline-icons/user-search.icon.d.ts +5 -0
  358. package/lib/components/Icon/streamline-icons/user-search.icon.d.ts.map +1 -0
  359. package/lib/components/Icon/streamline-icons/user-search.icon.js +7 -0
  360. package/lib/components/Icon/streamline-icons/user-search.icon.js.map +1 -0
  361. package/lib/components/Icon/streamline-icons/user-star-solid.icon.d.ts +5 -0
  362. package/lib/components/Icon/streamline-icons/user-star-solid.icon.d.ts.map +1 -0
  363. package/lib/components/Icon/streamline-icons/user-star-solid.icon.js +7 -0
  364. package/lib/components/Icon/streamline-icons/user-star-solid.icon.js.map +1 -0
  365. package/lib/components/Icon/streamline-icons/user-star.icon.js +2 -2
  366. package/lib/components/Icon/streamline-icons/user-star.icon.js.map +1 -1
  367. package/lib/components/Icon/streamline-icons/users-solid.icon.d.ts +5 -0
  368. package/lib/components/Icon/streamline-icons/users-solid.icon.d.ts.map +1 -0
  369. package/lib/components/Icon/streamline-icons/users-solid.icon.js +7 -0
  370. package/lib/components/Icon/streamline-icons/users-solid.icon.js.map +1 -0
  371. package/lib/components/Icon/streamline-icons/users.icon.d.ts +5 -0
  372. package/lib/components/Icon/streamline-icons/users.icon.d.ts.map +1 -0
  373. package/lib/components/Icon/streamline-icons/users.icon.js +7 -0
  374. package/lib/components/Icon/streamline-icons/users.icon.js.map +1 -0
  375. package/lib/components/Icon/streamline-icons/versions.icon.d.ts +5 -0
  376. package/lib/components/Icon/streamline-icons/versions.icon.d.ts.map +1 -0
  377. package/lib/components/Icon/streamline-icons/versions.icon.js +7 -0
  378. package/lib/components/Icon/streamline-icons/versions.icon.js.map +1 -0
  379. package/lib/components/Icon/streamline-icons/video-off.icon.d.ts +5 -0
  380. package/lib/components/Icon/streamline-icons/video-off.icon.d.ts.map +1 -0
  381. package/lib/components/Icon/streamline-icons/video-off.icon.js +7 -0
  382. package/lib/components/Icon/streamline-icons/video-off.icon.js.map +1 -0
  383. package/lib/components/Icon/streamline-icons/video-solid.icon.d.ts +5 -0
  384. package/lib/components/Icon/streamline-icons/video-solid.icon.d.ts.map +1 -0
  385. package/lib/components/Icon/streamline-icons/video-solid.icon.js +7 -0
  386. package/lib/components/Icon/streamline-icons/video-solid.icon.js.map +1 -0
  387. package/lib/components/Icon/streamline-icons/video.icon.d.ts +5 -0
  388. package/lib/components/Icon/streamline-icons/video.icon.d.ts.map +1 -0
  389. package/lib/components/Icon/streamline-icons/video.icon.js +7 -0
  390. package/lib/components/Icon/streamline-icons/video.icon.js.map +1 -0
  391. package/lib/components/Icon/streamline-icons/voicemail.icon.d.ts +5 -0
  392. package/lib/components/Icon/streamline-icons/voicemail.icon.d.ts.map +1 -0
  393. package/lib/components/Icon/streamline-icons/voicemail.icon.js +7 -0
  394. package/lib/components/Icon/streamline-icons/voicemail.icon.js.map +1 -0
  395. package/lib/components/Icon/streamline-icons/vr-solid.icon.d.ts +5 -0
  396. package/lib/components/Icon/streamline-icons/vr-solid.icon.d.ts.map +1 -0
  397. package/lib/components/Icon/streamline-icons/vr-solid.icon.js +7 -0
  398. package/lib/components/Icon/streamline-icons/vr-solid.icon.js.map +1 -0
  399. package/lib/components/Icon/streamline-icons/vr.icon.d.ts +5 -0
  400. package/lib/components/Icon/streamline-icons/vr.icon.d.ts.map +1 -0
  401. package/lib/components/Icon/streamline-icons/vr.icon.js +7 -0
  402. package/lib/components/Icon/streamline-icons/vr.icon.js.map +1 -0
  403. package/lib/components/Icon/streamline-icons/walkie-solid.icon.d.ts +5 -0
  404. package/lib/components/Icon/streamline-icons/walkie-solid.icon.d.ts.map +1 -0
  405. package/lib/components/Icon/streamline-icons/walkie-solid.icon.js +7 -0
  406. package/lib/components/Icon/streamline-icons/walkie-solid.icon.js.map +1 -0
  407. package/lib/components/Icon/streamline-icons/walkie.icon.d.ts +5 -0
  408. package/lib/components/Icon/streamline-icons/walkie.icon.d.ts.map +1 -0
  409. package/lib/components/Icon/streamline-icons/walkie.icon.js +7 -0
  410. package/lib/components/Icon/streamline-icons/walkie.icon.js.map +1 -0
  411. package/lib/components/Icon/streamline-icons/wallet-solid.icon.d.ts +5 -0
  412. package/lib/components/Icon/streamline-icons/wallet-solid.icon.d.ts.map +1 -0
  413. package/lib/components/Icon/streamline-icons/wallet-solid.icon.js +7 -0
  414. package/lib/components/Icon/streamline-icons/wallet-solid.icon.js.map +1 -0
  415. package/lib/components/Icon/streamline-icons/wallet.icon.d.ts +5 -0
  416. package/lib/components/Icon/streamline-icons/wallet.icon.d.ts.map +1 -0
  417. package/lib/components/Icon/streamline-icons/wallet.icon.js +7 -0
  418. package/lib/components/Icon/streamline-icons/wallet.icon.js.map +1 -0
  419. package/lib/components/Icon/streamline-icons/watch-solid.icon.d.ts +5 -0
  420. package/lib/components/Icon/streamline-icons/watch-solid.icon.d.ts.map +1 -0
  421. package/lib/components/Icon/streamline-icons/watch-solid.icon.js +7 -0
  422. package/lib/components/Icon/streamline-icons/watch-solid.icon.js.map +1 -0
  423. package/lib/components/Icon/streamline-icons/watch.icon.d.ts +5 -0
  424. package/lib/components/Icon/streamline-icons/watch.icon.d.ts.map +1 -0
  425. package/lib/components/Icon/streamline-icons/watch.icon.js +7 -0
  426. package/lib/components/Icon/streamline-icons/watch.icon.js.map +1 -0
  427. package/lib/components/Icon/streamline-icons/waypoint-solid.icon.d.ts +5 -0
  428. package/lib/components/Icon/streamline-icons/waypoint-solid.icon.d.ts.map +1 -0
  429. package/lib/components/Icon/streamline-icons/waypoint-solid.icon.js +7 -0
  430. package/lib/components/Icon/streamline-icons/waypoint-solid.icon.js.map +1 -0
  431. package/lib/components/Icon/streamline-icons/waypoint.icon.d.ts +5 -0
  432. package/lib/components/Icon/streamline-icons/waypoint.icon.d.ts.map +1 -0
  433. package/lib/components/Icon/streamline-icons/waypoint.icon.js +7 -0
  434. package/lib/components/Icon/streamline-icons/waypoint.icon.js.map +1 -0
  435. package/lib/components/Icon/streamline-icons/webcam-solid.icon.d.ts +5 -0
  436. package/lib/components/Icon/streamline-icons/webcam-solid.icon.d.ts.map +1 -0
  437. package/lib/components/Icon/streamline-icons/webcam-solid.icon.js +7 -0
  438. package/lib/components/Icon/streamline-icons/webcam-solid.icon.js.map +1 -0
  439. package/lib/components/Icon/streamline-icons/webcam.icon.d.ts +5 -0
  440. package/lib/components/Icon/streamline-icons/webcam.icon.d.ts.map +1 -0
  441. package/lib/components/Icon/streamline-icons/webcam.icon.js +7 -0
  442. package/lib/components/Icon/streamline-icons/webcam.icon.js.map +1 -0
  443. package/lib/components/Icon/streamline-icons/whatsapp.icon.d.ts +5 -0
  444. package/lib/components/Icon/streamline-icons/whatsapp.icon.d.ts.map +1 -0
  445. package/lib/components/Icon/streamline-icons/whatsapp.icon.js +7 -0
  446. package/lib/components/Icon/streamline-icons/whatsapp.icon.js.map +1 -0
  447. package/lib/components/Icon/streamline-icons/wifi-none.icon.d.ts +5 -0
  448. package/lib/components/Icon/streamline-icons/wifi-none.icon.d.ts.map +1 -0
  449. package/lib/components/Icon/streamline-icons/wifi-none.icon.js +7 -0
  450. package/lib/components/Icon/streamline-icons/wifi-none.icon.js.map +1 -0
  451. package/lib/components/Icon/streamline-icons/wifi-off.icon.d.ts +5 -0
  452. package/lib/components/Icon/streamline-icons/wifi-off.icon.d.ts.map +1 -0
  453. package/lib/components/Icon/streamline-icons/wifi-off.icon.js +7 -0
  454. package/lib/components/Icon/streamline-icons/wifi-off.icon.js.map +1 -0
  455. package/lib/components/Icon/streamline-icons/wizard-solid.icon.d.ts +5 -0
  456. package/lib/components/Icon/streamline-icons/wizard-solid.icon.d.ts.map +1 -0
  457. package/lib/components/Icon/streamline-icons/wizard-solid.icon.js +7 -0
  458. package/lib/components/Icon/streamline-icons/wizard-solid.icon.js.map +1 -0
  459. package/lib/components/Icon/streamline-icons/wizard.icon.d.ts +5 -0
  460. package/lib/components/Icon/streamline-icons/wizard.icon.d.ts.map +1 -0
  461. package/lib/components/Icon/streamline-icons/wizard.icon.js +7 -0
  462. package/lib/components/Icon/streamline-icons/wizard.icon.js.map +1 -0
  463. package/lib/components/Icon/streamline-icons/wrench-solid.icon.d.ts +5 -0
  464. package/lib/components/Icon/streamline-icons/wrench-solid.icon.d.ts.map +1 -0
  465. package/lib/components/Icon/streamline-icons/wrench-solid.icon.js +7 -0
  466. package/lib/components/Icon/streamline-icons/wrench-solid.icon.js.map +1 -0
  467. package/lib/components/Icon/streamline-icons/wrench.icon.d.ts +5 -0
  468. package/lib/components/Icon/streamline-icons/wrench.icon.d.ts.map +1 -0
  469. package/lib/components/Icon/streamline-icons/wrench.icon.js +7 -0
  470. package/lib/components/Icon/streamline-icons/wrench.icon.js.map +1 -0
  471. package/lib/components/Icon/streamlineIconNames.d.ts +1 -1
  472. package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
  473. package/lib/components/Icon/streamlineIconNames.js +82 -0
  474. package/lib/components/Icon/streamlineIconNames.js.map +1 -1
  475. package/lib/components/IconPicker/IconPicker.d.ts +4 -4
  476. package/lib/components/IconPicker/IconPicker.d.ts.map +1 -1
  477. package/lib/components/IconPicker/IconPicker.js +19 -25
  478. package/lib/components/IconPicker/IconPicker.js.map +1 -1
  479. package/lib/components/Input/Input.styles.d.ts.map +1 -1
  480. package/lib/components/Input/Input.styles.js +2 -17
  481. package/lib/components/Input/Input.styles.js.map +1 -1
  482. package/lib/components/Lightbox/Lightbox.d.ts +1 -1
  483. package/lib/components/Lightbox/Lightbox.d.ts.map +1 -1
  484. package/lib/components/Lightbox/Lightbox.js +9 -3
  485. package/lib/components/Lightbox/Lightbox.js.map +1 -1
  486. package/lib/components/Lightbox/Lightbox.test-ids.d.ts +1 -1
  487. package/lib/components/Lightbox/Lightbox.test-ids.d.ts.map +1 -1
  488. package/lib/components/Lightbox/Lightbox.test-ids.js +1 -0
  489. package/lib/components/Lightbox/Lightbox.test-ids.js.map +1 -1
  490. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  491. package/lib/components/ListToolbar/ListToolbar.js +100 -39
  492. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  493. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  494. package/lib/components/ListToolbar/ListToolbar.styles.js +9 -14
  495. package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
  496. package/lib/components/ListToolbar/ListToolbar.types.d.ts +7 -3
  497. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  498. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  499. package/lib/components/Location/CurrentLocationButton.d.ts.map +1 -1
  500. package/lib/components/Location/CurrentLocationButton.js +4 -2
  501. package/lib/components/Location/CurrentLocationButton.js.map +1 -1
  502. package/lib/components/Location/GoogleMapsAPI.d.ts +43 -0
  503. package/lib/components/Location/GoogleMapsAPI.d.ts.map +1 -0
  504. package/lib/components/Location/GoogleMapsAPI.js +244 -0
  505. package/lib/components/Location/GoogleMapsAPI.js.map +1 -0
  506. package/lib/components/Location/Location.types.d.ts +3 -2
  507. package/lib/components/Location/Location.types.d.ts.map +1 -1
  508. package/lib/components/Location/Location.types.js.map +1 -1
  509. package/lib/components/Location/LocationAPI.types.d.ts +23 -0
  510. package/lib/components/Location/LocationAPI.types.d.ts.map +1 -0
  511. package/lib/components/Location/LocationAPI.types.js +2 -0
  512. package/lib/components/Location/LocationAPI.types.js.map +1 -0
  513. package/lib/components/Location/LocationDisplay.d.ts.map +1 -1
  514. package/lib/components/Location/LocationDisplay.js +5 -3
  515. package/lib/components/Location/LocationDisplay.js.map +1 -1
  516. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  517. package/lib/components/Location/LocationInput.js +24 -21
  518. package/lib/components/Location/LocationInput.js.map +1 -1
  519. package/lib/components/Location/LocationView.d.ts.map +1 -1
  520. package/lib/components/Location/LocationView.js +8 -5
  521. package/lib/components/Location/LocationView.js.map +1 -1
  522. package/lib/components/Location/index.d.ts +2 -1
  523. package/lib/components/Location/index.d.ts.map +1 -1
  524. package/lib/components/Location/index.js +2 -1
  525. package/lib/components/Location/index.js.map +1 -1
  526. package/lib/components/Location/utils.d.ts +3 -19
  527. package/lib/components/Location/utils.d.ts.map +1 -1
  528. package/lib/components/Location/utils.js +7 -161
  529. package/lib/components/Location/utils.js.map +1 -1
  530. package/lib/components/MetaList/MetaList.d.ts.map +1 -1
  531. package/lib/components/MetaList/MetaList.js +3 -2
  532. package/lib/components/MetaList/MetaList.js.map +1 -1
  533. package/lib/components/Modal/Modal.styles.d.ts.map +1 -1
  534. package/lib/components/Modal/Modal.styles.js +5 -1
  535. package/lib/components/Modal/Modal.styles.js.map +1 -1
  536. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -1
  537. package/lib/components/MultiStepForm/MultiStepForm.js +29 -3
  538. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -1
  539. package/lib/components/Number/NumberInput.js +2 -2
  540. package/lib/components/Number/NumberInput.js.map +1 -1
  541. package/lib/components/Number/utils.d.ts +1 -1
  542. package/lib/components/Number/utils.d.ts.map +1 -1
  543. package/lib/components/Number/utils.js +1 -2
  544. package/lib/components/Number/utils.js.map +1 -1
  545. package/lib/components/PageTemplates/DashboardPage.js +2 -2
  546. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  547. package/lib/components/PageTemplates/GridLayout/EditorBackground.js +1 -1
  548. package/lib/components/PageTemplates/GridLayout/EditorBackground.js.map +1 -1
  549. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js +1 -1
  550. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js.map +1 -1
  551. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.d.ts +5 -0
  552. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.d.ts.map +1 -1
  553. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js +2 -2
  554. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js.map +1 -1
  555. package/lib/components/PageTemplates/GridLayout/config.d.ts +1 -1
  556. package/lib/components/PageTemplates/GridLayout/config.d.ts.map +1 -1
  557. package/lib/components/PageTemplates/GridLayout/config.js +3 -3
  558. package/lib/components/PageTemplates/GridLayout/config.js.map +1 -1
  559. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  560. package/lib/components/PageTemplates/PageTemplates.js +33 -5
  561. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  562. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  563. package/lib/components/Phone/PhoneInput.js +1 -1
  564. package/lib/components/Phone/PhoneInput.js.map +1 -1
  565. package/lib/components/Popover/Popover.d.ts.map +1 -1
  566. package/lib/components/Popover/Popover.js +4 -22
  567. package/lib/components/Popover/Popover.js.map +1 -1
  568. package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
  569. package/lib/components/Popover/Popover.styles.js +19 -4
  570. package/lib/components/Popover/Popover.styles.js.map +1 -1
  571. package/lib/components/Popover/modifiers.d.ts.map +1 -1
  572. package/lib/components/Popover/modifiers.js +10 -0
  573. package/lib/components/Popover/modifiers.js.map +1 -1
  574. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  575. package/lib/components/RadioCheck/RadioCheck.js +2 -2
  576. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  577. package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
  578. package/lib/components/Tabs/TabPanel.js +8 -0
  579. package/lib/components/Tabs/TabPanel.js.map +1 -1
  580. package/lib/components/Toaster/Toaster.d.ts.map +1 -1
  581. package/lib/components/Toaster/Toaster.js +9 -5
  582. package/lib/components/Toaster/Toaster.js.map +1 -1
  583. package/lib/components/Toaster/Toaster.types.d.ts +3 -3
  584. package/lib/components/Toaster/Toaster.types.d.ts.map +1 -1
  585. package/lib/components/Toaster/Toaster.types.js.map +1 -1
  586. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  587. package/lib/components/Tooltip/Tooltip.js +3 -1
  588. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  589. package/lib/components/Tree/Tree.js +1 -1
  590. package/lib/components/Tree/Tree.js.map +1 -1
  591. package/lib/hooks/index.d.ts +2 -0
  592. package/lib/hooks/index.d.ts.map +1 -1
  593. package/lib/hooks/index.js +2 -0
  594. package/lib/hooks/index.js.map +1 -1
  595. package/lib/hooks/useAnimatedText.d.ts +11 -0
  596. package/lib/hooks/useAnimatedText.d.ts.map +1 -0
  597. package/lib/hooks/useAnimatedText.js +96 -0
  598. package/lib/hooks/useAnimatedText.js.map +1 -0
  599. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  600. package/lib/hooks/useBreakpoint.js +5 -2
  601. package/lib/hooks/useBreakpoint.js.map +1 -1
  602. package/lib/hooks/useChToPxConversionFactor.d.ts +2 -2
  603. package/lib/hooks/useChToPxConversionFactor.d.ts.map +1 -1
  604. package/lib/hooks/useChToPxConversionFactor.js +4 -13
  605. package/lib/hooks/useChToPxConversionFactor.js.map +1 -1
  606. package/lib/hooks/useI18n.d.ts +182 -2
  607. package/lib/hooks/useI18n.d.ts.map +1 -1
  608. package/lib/hooks/useItemIntersection.d.ts +2 -1
  609. package/lib/hooks/useItemIntersection.d.ts.map +1 -1
  610. package/lib/hooks/useItemIntersection.js +10 -4
  611. package/lib/hooks/useItemIntersection.js.map +1 -1
  612. package/lib/hooks/usePopoverMap.d.ts +10 -0
  613. package/lib/hooks/usePopoverMap.d.ts.map +1 -0
  614. package/lib/hooks/usePopoverMap.js +34 -0
  615. package/lib/hooks/usePopoverMap.js.map +1 -0
  616. package/lib/hooks/useThemeMode.d.ts +10 -0
  617. package/lib/hooks/useThemeMode.d.ts.map +1 -0
  618. package/lib/hooks/useThemeMode.js +11 -0
  619. package/lib/hooks/useThemeMode.js.map +1 -0
  620. package/lib/i18n/default.d.ts +186 -2
  621. package/lib/i18n/default.d.ts.map +1 -1
  622. package/lib/i18n/default.js +200 -5
  623. package/lib/i18n/default.js.map +1 -1
  624. package/lib/i18n/i18n.d.ts +182 -2
  625. package/lib/i18n/i18n.d.ts.map +1 -1
  626. package/lib/styles/GlobalStyle.d.ts +2 -2
  627. package/lib/styles/GlobalStyle.d.ts.map +1 -1
  628. package/lib/styles/GlobalStyle.js +8 -3
  629. package/lib/styles/GlobalStyle.js.map +1 -1
  630. package/lib/styles/animations.d.ts +9 -0
  631. package/lib/styles/animations.d.ts.map +1 -0
  632. package/lib/styles/animations.js +78 -0
  633. package/lib/styles/animations.js.map +1 -0
  634. package/lib/styles/constants.d.ts +5 -0
  635. package/lib/styles/constants.d.ts.map +1 -0
  636. package/lib/styles/constants.js +5 -0
  637. package/lib/styles/constants.js.map +1 -0
  638. package/lib/styles/gradients.d.ts +2 -0
  639. package/lib/styles/gradients.d.ts.map +1 -1
  640. package/lib/styles/gradients.js +4 -1
  641. package/lib/styles/gradients.js.map +1 -1
  642. package/lib/styles/index.d.ts +1 -0
  643. package/lib/styles/index.d.ts.map +1 -1
  644. package/lib/styles/index.js +1 -0
  645. package/lib/styles/index.js.map +1 -1
  646. package/lib/styles/utils.d.ts +1 -1
  647. package/lib/styles/utils.d.ts.map +1 -1
  648. package/lib/styles/utils.js +1 -1
  649. package/lib/styles/utils.js.map +1 -1
  650. package/lib/theme/index.d.ts +2 -0
  651. package/lib/theme/index.d.ts.map +1 -1
  652. package/lib/theme/index.js +2 -0
  653. package/lib/theme/index.js.map +1 -1
  654. package/lib/theme/theme.d.ts +150 -0
  655. package/lib/theme/theme.d.ts.map +1 -1
  656. package/lib/theme/themeDefinition.json +82 -0
  657. package/lib/theme/themeOverrides.schema.json +102 -0
  658. package/lib/theme/themes/bootes2025Theme.json +3 -3
  659. package/lib/theme/themes/cygnus2025Theme.json +17 -17
  660. package/lib/theme/themes/studioDarkTheme.json +240 -0
  661. package/lib/theme/themes/studioTheme.json +240 -0
  662. package/lib/utils/focusNonInteractiveElement.d.ts +9 -0
  663. package/lib/utils/focusNonInteractiveElement.d.ts.map +1 -0
  664. package/lib/utils/focusNonInteractiveElement.js +27 -0
  665. package/lib/utils/focusNonInteractiveElement.js.map +1 -0
  666. package/lib/utils/getChToPxConversionFactor.d.ts +11 -0
  667. package/lib/utils/getChToPxConversionFactor.d.ts.map +1 -0
  668. package/lib/utils/getChToPxConversionFactor.js +18 -0
  669. package/lib/utils/getChToPxConversionFactor.js.map +1 -0
  670. package/lib/utils/getChildOfRootNode.d.ts +10 -0
  671. package/lib/utils/getChildOfRootNode.d.ts.map +1 -0
  672. package/lib/utils/getChildOfRootNode.js +19 -0
  673. package/lib/utils/getChildOfRootNode.js.map +1 -0
  674. package/lib/utils/getFocusables.d.ts +4 -2
  675. package/lib/utils/getFocusables.d.ts.map +1 -1
  676. package/lib/utils/getFocusables.js +9 -7
  677. package/lib/utils/getFocusables.js.map +1 -1
  678. package/lib/utils/index.d.ts +4 -0
  679. package/lib/utils/index.d.ts.map +1 -1
  680. package/lib/utils/index.js +4 -0
  681. package/lib/utils/index.js.map +1 -1
  682. package/lib/utils/isInstance.d.ts +4 -4
  683. package/lib/utils/isInstance.d.ts.map +1 -1
  684. package/lib/utils/isInstance.js +20 -8
  685. package/lib/utils/isInstance.js.map +1 -1
  686. package/lib/utils/markdownTokenizer.d.ts +3 -0
  687. package/lib/utils/markdownTokenizer.d.ts.map +1 -0
  688. package/lib/utils/markdownTokenizer.js +159 -0
  689. package/lib/utils/markdownTokenizer.js.map +1 -0
  690. package/package.json +5 -3
@@ -1 +1 @@
1
- {"version":3,"file":"gradients.js","sourceRoot":"","sources":["../../src/styles/gradients.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAW/B,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,SAAS,EAAE;QACT,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC5C,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC3C;IACD,cAAc,EAAE;QACd,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC5C,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE;QAChD,EAAE,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE;QACjD,EAAE,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC9C;IACD,eAAe,EAAE;QACf,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC5C,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,GAA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AAC,GAAG,EAAE,CAAC;IACvB,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,CAAC;IACxB,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,CAAC;IACxB,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC,oCAAoC,EAAE,CAAC,GAAG,EAAE,CAAC;CAEjD,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,QAAwB,EACxB,EAAE,SAAS,GAAG,QAAQ,KAA6B,EAAE,EAC7C,EAAE;IACV,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,aAAa,CAAC;IAChD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEpD,OAAO,mBAAmB,SAAS,KAAK,QAAQ;SAC7C,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,QAAQ,GAAG,GAAG,GAAG,CAAC;SAC3D,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// cspell:words deutan\nimport { mix } from 'polished';\n\ninterface ColorStop {\n /** CSS color string. */\n color: string;\n /** Position along the gradient expressed as a number from 0 to 1. */\n position: number;\n}\n\ntype LinearGradient = ColorStop[];\n\nexport const gradientMap = {\n grayscale: [\n { color: 'hsl(0, 100%, 100%)', position: 0 },\n { color: 'hsl(0, 100%, 0%)', position: 1 }\n ],\n 'persian-blue': [\n { color: 'hsl(210, 50%, 94%)', position: 0 },\n { color: 'hsl(210, 46%, 63%)', position: 1 / 3 },\n { color: 'hsl(206, 100%, 33%)', position: 2 / 3 },\n { color: 'hsl(210, 100%, 27%)', position: 1 }\n ],\n 'persian-green': [\n { color: 'hsl(175, 35%, 94%)', position: 0 },\n { color: 'hsl(175, 42%, 65%)', position: 1 / 3 },\n { color: 'hsl(175, 100%, 33%)', position: 2 / 3 },\n { color: 'hsl(175, 100%, 27%)', position: 1 }\n ],\n 'pastel-orange': [\n { color: 'hsl(36, 100%, 97%)', position: 0 },\n { color: 'hsl(36, 100%, 79%)', position: 1 / 3 },\n { color: 'hsl(36, 100%, 64%)', position: 2 / 3 },\n { color: 'hsl(36, 99%, 61%)', position: 1 }\n ],\n 'japanese-laurel': [\n { color: 'hsl(135, 21%, 94%)', position: 0 },\n { color: 'hsl(135, 24%, 61%)', position: 1 / 3 },\n { color: 'hsl(135, 54%, 33%)', position: 2 / 3 },\n { color: 'hsl(135, 60%, 26%)', position: 1 }\n ],\n 'mango-tango': [\n { color: 'hsl(23, 100%, 96%)', position: 0 },\n { color: 'hsl(23, 100%, 78%)', position: 1 / 3 },\n { color: 'hsl(23, 100%, 62%)', position: 2 / 3 },\n { color: 'hsl(23, 100%, 53%)', position: 1 }\n ],\n valencia: [\n { color: 'hsl(1, 87%, 96%)', position: 0 },\n { color: 'hsl(1, 72%, 75%)', position: 1 / 3 },\n { color: 'hsl(1, 67%, 56%)', position: 2 / 3 },\n { color: 'hsl(1, 82%, 41%)', position: 1 }\n ],\n 'fuchsia-blue': [\n { color: 'hsl(259, 45%, 96%)', position: 0 },\n { color: 'hsl(259, 45%, 78%)', position: 1 / 3 },\n { color: 'hsl(259, 43%, 56%)', position: 2 / 3 },\n { color: 'hsl(259, 40%, 49%)', position: 1 }\n ],\n 'faded-red': [\n { color: 'hsl(360, 100%, 95%)', position: 0 },\n { color: 'hsl(360, 100%, 85%)', position: 1 / 3 },\n { color: 'hsl(360, 100%, 75%)', position: 2 / 3 },\n { color: 'hsl(360, 100%, 70%)', position: 1 }\n ],\n rope: [\n { color: 'hsl(25, 31%, 93%)', position: 0 },\n { color: 'hsl(25, 32%, 62%)', position: 1 / 3 },\n { color: 'hsl(25, 59%, 35%)', position: 2 / 3 },\n { color: 'hsl(25, 64%, 30%)', position: 1 }\n ],\n silver: [\n { color: 'hsl(15, 18%, 97%)', position: 0 },\n { color: 'hsl(15, 9%, 79%)', position: 1 / 3 },\n { color: 'hsl(15, 11%, 65%)', position: 2 / 3 },\n { color: 'hsl(15, 9%, 58%)', position: 1 }\n ],\n 'blue-yellow': [\n { color: 'hsl(56, 100%, 93%)', position: 0 },\n { color: 'hsl(144, 46%, 79%)', position: 2 / 10 },\n { color: 'hsl(185, 53%, 58%)', position: 4 / 10 },\n { color: 'hsl(191, 56%, 52%)', position: 5 / 10 },\n { color: 'hsl(195, 62%, 48%)', position: 6 / 10 },\n { color: 'hsl(206, 67%, 37%)', position: 8 / 10 },\n { color: 'hsl(215, 62%, 30%)', position: 1 }\n ],\n 'green-yellow': [\n { color: 'hsl(56, 100%, 93%)', position: 0 },\n { color: 'hsl(88, 61%, 85%)', position: 2 / 10 },\n { color: 'hsl(125, 47%, 78%)', position: 4 / 10 },\n { color: 'hsl(148, 45%, 65%)', position: 5 / 10 },\n { color: 'hsl(159, 47%, 50%)', position: 6 / 10 },\n { color: 'hsl(173, 80%, 30%)', position: 8 / 10 },\n { color: 'hsl(178, 73%, 22%)', position: 1 }\n ],\n 'ruby-yellow': [\n { color: 'hsl(56, 100%, 93%)', position: 0 },\n { color: 'hsl(40, 100%, 83%)', position: 2 / 10 },\n { color: 'hsl(19, 100%, 75%)', position: 4 / 10 },\n { color: 'hsl(3, 100%, 73%)', position: 5 / 10 },\n { color: 'hsl(350, 81%, 62%)', position: 6 / 10 },\n { color: 'hsl(343, 54%, 55%)', position: 8 / 10 },\n { color: 'hsl(330, 40%, 36%)', position: 1 }\n ],\n 'purple-blue': [\n { color: 'hsl(190, 42%, 97%)', position: 0 },\n { color: 'hsl(205, 51%, 84%)', position: 2 / 10 },\n { color: 'hsl(212, 47%, 73%)', position: 4 / 10 },\n { color: 'hsl(219, 41%, 70%)', position: 5 / 10 },\n { color: 'hsl(253, 32%, 66%)', position: 6 / 10 },\n { color: 'hsl(272, 27%, 49%)', position: 8 / 10 },\n { color: 'hsl(272, 37%, 32%)', position: 1 }\n ],\n 'violet-rose': [\n { color: 'hsl(18, 100%, 98%)', position: 0 },\n { color: 'hsl(359, 100%, 91%)', position: 2 / 10 },\n { color: 'hsl(336, 96%, 77%)', position: 4 / 10 },\n { color: 'hsl(325, 73%, 65%)', position: 5 / 10 },\n { color: 'hsl(319, 58%, 58%)', position: 6 / 10 },\n { color: 'hsl(287, 38%, 45%)', position: 8 / 10 },\n { color: 'hsl(259, 43%, 35%)', position: 1 }\n ],\n 'negative-attention-positive': [\n { color: 'hsl(2, 67%, 56%)', position: 0 },\n { color: 'hsl(21, 87%, 60%)', position: 2 / 10 },\n { color: 'hsl(36, 100%, 64%)', position: 4 / 10 },\n { color: 'hsl(50, 95%, 75%)', position: 5 / 10 },\n { color: 'hsl(85, 72%, 67%)', position: 6 / 10 },\n { color: 'hsl(120, 49%, 60%)', position: 8 / 10 },\n { color: 'hsl(135, 53%, 33%)', position: 1 }\n ],\n 'negative-attention-positive-protan': [\n { color: 'hsl(344, 67%, 44%)', position: 0 },\n { color: 'hsl(351, 66%, 59%)', position: 2 / 10 },\n { color: 'hsl(360, 100%, 84%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(110, 46%, 80%)', position: 6 / 10 },\n { color: 'hsl(120, 49%, 60%)', position: 8 / 10 },\n { color: 'hsl(135, 53%, 33%)', position: 1 }\n ],\n 'negative-attention-positive-deutan': [\n { color: 'hsl(315, 64%, 45%)', position: 0 },\n { color: 'hsl(313, 83%, 62%)', position: 2 / 10 },\n { color: 'hsl(313, 100%, 80%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(110, 46%, 80%)', position: 6 / 10 },\n { color: 'hsl(120, 49%, 60%)', position: 8 / 10 },\n { color: 'hsl(135, 53%, 33%)', position: 1 }\n ],\n 'hot-cold': [\n { color: 'hsl(212, 100%, 27%)', position: 0 },\n { color: 'hsl(213, 40%, 49%)', position: 2 / 10 },\n { color: 'hsl(210, 45%, 69%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(360, 100%, 84%)', position: 6 / 10 },\n { color: 'hsl(351, 66%, 59%)', position: 8 / 10 },\n { color: 'hsl(344, 67%, 44%)', position: 1 }\n ],\n 'two-extremes': [\n { color: 'hsl(240, 30%, 39%)', position: 0 },\n { color: 'hsl(271, 27%, 63%)', position: 2 / 10 },\n { color: 'hsl(293, 25%, 87%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(171, 37%, 86%)', position: 6 / 10 },\n { color: 'hsl(167, 41%, 51%)', position: 8 / 10 },\n { color: 'hsl(163, 44%, 16%)', position: 1 }\n ]\n};\n\nexport const colorInGradient = ([...gradient]: LinearGradient, targetPosition: number): string => {\n // Return transparent for an empty gradient.\n if (gradient.length === 0) return 'transparent';\n\n // Return the color for single element gradient.\n if (gradient.length === 1) return gradient[0].color;\n\n // Clamp position to interval from 0 to 1.\n targetPosition = Math.min(Math.max(targetPosition, 0), 1);\n\n // Extend the the start of the gradient to 0 if necessary.\n if (gradient[0].position !== 0) gradient.unshift({ color: gradient[0].color, position: 0 });\n\n // Extend the the end of the gradient to 1 if necessary.\n if (gradient[gradient.length - 1].position !== 1)\n gradient.push({ color: gradient[gradient.length - 1].color, position: 1 });\n\n for (let i = 0; i < gradient.length; i += 1) {\n const current = gradient[i];\n\n // If target position is the same as the current position, return the color at the current position.\n if (targetPosition === current.position) return current.color;\n\n // If target position is less than the current position, it must be between the previous position and current position.\n if (targetPosition < current.position) {\n const previous = gradient[i - 1];\n\n // Calculate how far the targetPosition is between the previousPosition and the currentPosition.\n const percentage =\n (targetPosition - previous.position) / (current.position - previous.position);\n\n try {\n return mix(percentage, current.color, previous.color);\n } catch {\n // Polished mix throws on invalid color.\n return 'transparent';\n }\n }\n }\n\n // Failsafe return.\n return 'transparent';\n};\n\nexport const colorInGradientByName = (\n name: keyof typeof gradientMap,\n targetPosition: number\n): string => {\n return colorInGradient(gradientMap[name] ?? [], targetPosition);\n};\n\nexport const colorsForCategories = (\n count: number,\n {\n gradients = (\n [\n 'persian-blue',\n 'persian-green',\n 'pastel-orange',\n 'japanese-laurel',\n 'mango-tango',\n 'valencia',\n 'fuchsia-blue',\n 'faded-red',\n 'rope',\n 'silver'\n ] as const\n ).map(name => gradientMap[name]),\n steps = [2 / 3, 1 / 3, 1, 0, 1 / 2]\n }: { gradients?: LinearGradient[]; steps?: number[] } = {}\n): string[] => {\n // Colors per gradient\n const perGradient = Math.floor(count / gradients.length);\n\n // Number of gradients with 1 extra color\n const extra = count % gradients.length;\n\n const colors: string[] = [];\n\n for (let i = 0; i < gradients.length; i += 1) {\n for (let j = 0; j < (i < extra ? perGradient + 1 : perGradient); j += 1) {\n colors.push(colorInGradient(gradients[i], steps[j % steps.length]));\n }\n }\n\n return colors;\n};\n\nexport const nlpColors = (\n [\n ['persian-blue', 1],\n ['persian-green', 1],\n ['pastel-orange', 1],\n ['japanese-laurel', 1],\n ['mango-tango', 1],\n ['valencia', 1],\n ['fuchsia-blue', 1],\n ['faded-red', 1],\n ['rope', 1],\n ['silver', 1],\n ['blue-yellow', 1],\n ['blue-yellow', 5 / 10],\n ['green-yellow', 1],\n ['blue-yellow', 3 / 10],\n ['green-yellow', 7 / 10],\n ['ruby-yellow', 1],\n ['ruby-yellow', 6 / 10],\n ['purple-blue', 1],\n ['two-extremes', 9 / 10],\n ['persian-blue', 1 / 2],\n ['hot-cold', 1],\n ['persian-green', 1 / 2],\n ['pastel-orange', 1 / 2],\n ['japanese-laurel', 1 / 2],\n ['mango-tango', 1 / 2],\n ['valencia', 1 / 2],\n ['fuchsia-blue', 1 / 2],\n ['faded-red', 1 / 2],\n ['rope', 1 / 2],\n ['silver', 1 / 2],\n ['blue-yellow', 7 / 10],\n ['blue-yellow', 4 / 10],\n ['green-yellow', 5 / 10],\n ['ruby-yellow', 5 / 10],\n ['purple-blue', 7 / 10],\n ['purple-blue', 5 / 10],\n ['violet-rose', 5 / 10],\n ['two-extremes', 8 / 10],\n ['ruby-yellow', 4 / 10],\n ['violet-rose', 7 / 10],\n ['negative-attention-positive-deutan', 8 / 10]\n ] as const\n).map(([gradient, position]) => colorInGradient(gradientMap[gradient], position));\n\nexport const toLinearGradient = (\n gradient: LinearGradient,\n { direction = '180deg' }: { direction?: string } = {}\n): string => {\n if (gradient.length === 0) return 'transparent';\n if (gradient.length === 1) return gradient[0].color;\n\n return `linear-gradient(${direction}, ${gradient\n .map(({ color, position }) => `${color} ${position * 100}%`)\n .join(', ')})`;\n};\n"]}
1
+ {"version":3,"file":"gradients.js","sourceRoot":"","sources":["../../src/styles/gradients.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAWvC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,SAAS,EAAE;QACT,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC5C,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC3C;IACD,cAAc,EAAE;QACd,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC5C,EAAE,KAAK,E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AC,IAAI,YAAY,CAAC,SAAS,CACjE,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,QAAwB,EACxB,EAAE,SAAS,GAAG,QAAQ,KAA6B,EAAE,EAC7C,EAAE;IACV,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,aAAa,CAAC;IAChD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEpD,OAAO,mBAAmB,SAAS,KAAK,QAAQ;SAC7C,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,QAAQ,GAAG,GAAG,GAAG,CAAC;SAC3D,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// cspell:words deutan\nimport { getContrast, mix } from 'polished';\n\nimport { wcagContrast } from './utils';\n\ninterface ColorStop {\n /** CSS color string. */\n color: string;\n /** Position along the gradient expressed as a number from 0 to 1. */\n position: number;\n}\n\ntype LinearGradient = ColorStop[];\n\nexport const gradientMap = {\n grayscale: [\n { color: 'hsl(0, 100%, 100%)', position: 0 },\n { color: 'hsl(0, 100%, 0%)', position: 1 }\n ],\n 'persian-blue': [\n { color: 'hsl(210, 50%, 94%)', position: 0 },\n { color: 'hsl(210, 46%, 63%)', position: 1 / 3 },\n { color: 'hsl(206, 100%, 33%)', position: 2 / 3 },\n { color: 'hsl(210, 100%, 27%)', position: 1 }\n ],\n 'persian-green': [\n { color: 'hsl(175, 35%, 94%)', position: 0 },\n { color: 'hsl(175, 42%, 65%)', position: 1 / 3 },\n { color: 'hsl(175, 100%, 33%)', position: 2 / 3 },\n { color: 'hsl(175, 100%, 27%)', position: 1 }\n ],\n 'pastel-orange': [\n { color: 'hsl(36, 100%, 97%)', position: 0 },\n { color: 'hsl(36, 100%, 79%)', position: 1 / 3 },\n { color: 'hsl(36, 100%, 64%)', position: 2 / 3 },\n { color: 'hsl(36, 99%, 61%)', position: 1 }\n ],\n 'japanese-laurel': [\n { color: 'hsl(135, 21%, 94%)', position: 0 },\n { color: 'hsl(135, 24%, 61%)', position: 1 / 3 },\n { color: 'hsl(135, 54%, 33%)', position: 2 / 3 },\n { color: 'hsl(135, 60%, 26%)', position: 1 }\n ],\n 'mango-tango': [\n { color: 'hsl(23, 100%, 96%)', position: 0 },\n { color: 'hsl(23, 100%, 78%)', position: 1 / 3 },\n { color: 'hsl(23, 100%, 62%)', position: 2 / 3 },\n { color: 'hsl(23, 100%, 53%)', position: 1 }\n ],\n valencia: [\n { color: 'hsl(1, 87%, 96%)', position: 0 },\n { color: 'hsl(1, 72%, 75%)', position: 1 / 3 },\n { color: 'hsl(1, 67%, 56%)', position: 2 / 3 },\n { color: 'hsl(1, 82%, 41%)', position: 1 }\n ],\n 'fuchsia-blue': [\n { color: 'hsl(259, 45%, 96%)', position: 0 },\n { color: 'hsl(259, 45%, 78%)', position: 1 / 3 },\n { color: 'hsl(259, 43%, 56%)', position: 2 / 3 },\n { color: 'hsl(259, 40%, 49%)', position: 1 }\n ],\n 'faded-red': [\n { color: 'hsl(360, 100%, 95%)', position: 0 },\n { color: 'hsl(360, 100%, 85%)', position: 1 / 3 },\n { color: 'hsl(360, 100%, 75%)', position: 2 / 3 },\n { color: 'hsl(360, 100%, 70%)', position: 1 }\n ],\n rope: [\n { color: 'hsl(25, 31%, 93%)', position: 0 },\n { color: 'hsl(25, 32%, 62%)', position: 1 / 3 },\n { color: 'hsl(25, 59%, 35%)', position: 2 / 3 },\n { color: 'hsl(25, 64%, 30%)', position: 1 }\n ],\n silver: [\n { color: 'hsl(15, 18%, 97%)', position: 0 },\n { color: 'hsl(15, 9%, 79%)', position: 1 / 3 },\n { color: 'hsl(15, 11%, 65%)', position: 2 / 3 },\n { color: 'hsl(15, 9%, 58%)', position: 1 }\n ],\n 'blue-yellow': [\n { color: 'hsl(56, 100%, 93%)', position: 0 },\n { color: 'hsl(144, 46%, 79%)', position: 2 / 10 },\n { color: 'hsl(185, 53%, 58%)', position: 4 / 10 },\n { color: 'hsl(191, 56%, 52%)', position: 5 / 10 },\n { color: 'hsl(195, 62%, 48%)', position: 6 / 10 },\n { color: 'hsl(206, 67%, 37%)', position: 8 / 10 },\n { color: 'hsl(215, 62%, 30%)', position: 1 }\n ],\n 'green-yellow': [\n { color: 'hsl(56, 100%, 93%)', position: 0 },\n { color: 'hsl(88, 61%, 85%)', position: 2 / 10 },\n { color: 'hsl(125, 47%, 78%)', position: 4 / 10 },\n { color: 'hsl(148, 45%, 65%)', position: 5 / 10 },\n { color: 'hsl(159, 47%, 50%)', position: 6 / 10 },\n { color: 'hsl(173, 80%, 30%)', position: 8 / 10 },\n { color: 'hsl(178, 73%, 22%)', position: 1 }\n ],\n 'ruby-yellow': [\n { color: 'hsl(56, 100%, 93%)', position: 0 },\n { color: 'hsl(40, 100%, 83%)', position: 2 / 10 },\n { color: 'hsl(19, 100%, 75%)', position: 4 / 10 },\n { color: 'hsl(3, 100%, 73%)', position: 5 / 10 },\n { color: 'hsl(350, 81%, 62%)', position: 6 / 10 },\n { color: 'hsl(343, 54%, 55%)', position: 8 / 10 },\n { color: 'hsl(330, 40%, 36%)', position: 1 }\n ],\n 'purple-blue': [\n { color: 'hsl(190, 42%, 97%)', position: 0 },\n { color: 'hsl(205, 51%, 84%)', position: 2 / 10 },\n { color: 'hsl(212, 47%, 73%)', position: 4 / 10 },\n { color: 'hsl(219, 41%, 70%)', position: 5 / 10 },\n { color: 'hsl(253, 32%, 66%)', position: 6 / 10 },\n { color: 'hsl(272, 27%, 49%)', position: 8 / 10 },\n { color: 'hsl(272, 37%, 32%)', position: 1 }\n ],\n 'violet-rose': [\n { color: 'hsl(18, 100%, 98%)', position: 0 },\n { color: 'hsl(359, 100%, 91%)', position: 2 / 10 },\n { color: 'hsl(336, 96%, 77%)', position: 4 / 10 },\n { color: 'hsl(325, 73%, 65%)', position: 5 / 10 },\n { color: 'hsl(319, 58%, 58%)', position: 6 / 10 },\n { color: 'hsl(287, 38%, 45%)', position: 8 / 10 },\n { color: 'hsl(259, 43%, 35%)', position: 1 }\n ],\n 'negative-attention-positive': [\n { color: 'hsl(2, 67%, 56%)', position: 0 },\n { color: 'hsl(21, 87%, 60%)', position: 2 / 10 },\n { color: 'hsl(36, 100%, 64%)', position: 4 / 10 },\n { color: 'hsl(50, 95%, 75%)', position: 5 / 10 },\n { color: 'hsl(85, 72%, 67%)', position: 6 / 10 },\n { color: 'hsl(120, 49%, 60%)', position: 8 / 10 },\n { color: 'hsl(135, 53%, 33%)', position: 1 }\n ],\n 'negative-attention-positive-protan': [\n { color: 'hsl(344, 67%, 44%)', position: 0 },\n { color: 'hsl(351, 66%, 59%)', position: 2 / 10 },\n { color: 'hsl(360, 100%, 84%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(110, 46%, 80%)', position: 6 / 10 },\n { color: 'hsl(120, 49%, 60%)', position: 8 / 10 },\n { color: 'hsl(135, 53%, 33%)', position: 1 }\n ],\n 'negative-attention-positive-deutan': [\n { color: 'hsl(315, 64%, 45%)', position: 0 },\n { color: 'hsl(313, 83%, 62%)', position: 2 / 10 },\n { color: 'hsl(313, 100%, 80%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(110, 46%, 80%)', position: 6 / 10 },\n { color: 'hsl(120, 49%, 60%)', position: 8 / 10 },\n { color: 'hsl(135, 53%, 33%)', position: 1 }\n ],\n 'hot-cold': [\n { color: 'hsl(212, 100%, 27%)', position: 0 },\n { color: 'hsl(213, 40%, 49%)', position: 2 / 10 },\n { color: 'hsl(210, 45%, 69%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(360, 100%, 84%)', position: 6 / 10 },\n { color: 'hsl(351, 66%, 59%)', position: 8 / 10 },\n { color: 'hsl(344, 67%, 44%)', position: 1 }\n ],\n 'two-extremes': [\n { color: 'hsl(240, 30%, 39%)', position: 0 },\n { color: 'hsl(271, 27%, 63%)', position: 2 / 10 },\n { color: 'hsl(293, 25%, 87%)', position: 4 / 10 },\n { color: 'hsl(0, 0%, 89%)', position: 5 / 10 },\n { color: 'hsl(171, 37%, 86%)', position: 6 / 10 },\n { color: 'hsl(167, 41%, 51%)', position: 8 / 10 },\n { color: 'hsl(163, 44%, 16%)', position: 1 }\n ]\n};\n\nexport const colorInGradient = ([...gradient]: LinearGradient, targetPosition: number): string => {\n // Return transparent for an empty gradient.\n if (gradient.length === 0) return 'transparent';\n\n // Return the color for single element gradient.\n if (gradient.length === 1) return gradient[0].color;\n\n // Clamp position to interval from 0 to 1.\n targetPosition = Math.min(Math.max(targetPosition, 0), 1);\n\n // Extend the the start of the gradient to 0 if necessary.\n if (gradient[0].position !== 0) gradient.unshift({ color: gradient[0].color, position: 0 });\n\n // Extend the the end of the gradient to 1 if necessary.\n if (gradient[gradient.length - 1].position !== 1)\n gradient.push({ color: gradient[gradient.length - 1].color, position: 1 });\n\n for (let i = 0; i < gradient.length; i += 1) {\n const current = gradient[i];\n\n // If target position is the same as the current position, return the color at the current position.\n if (targetPosition === current.position) return current.color;\n\n // If target position is less than the current position, it must be between the previous position and current position.\n if (targetPosition < current.position) {\n const previous = gradient[i - 1];\n\n // Calculate how far the targetPosition is between the previousPosition and the currentPosition.\n const percentage =\n (targetPosition - previous.position) / (current.position - previous.position);\n\n try {\n return mix(percentage, current.color, previous.color);\n } catch {\n // Polished mix throws on invalid color.\n return 'transparent';\n }\n }\n }\n\n // Failsafe return.\n return 'transparent';\n};\n\nexport const colorInGradientByName = (\n name: keyof typeof gradientMap,\n targetPosition: number\n): string => {\n return colorInGradient(gradientMap[name] ?? [], targetPosition);\n};\n\nexport const colorsForCategories = (\n count: number,\n {\n gradients = (\n [\n 'persian-blue',\n 'persian-green',\n 'pastel-orange',\n 'japanese-laurel',\n 'mango-tango',\n 'valencia',\n 'fuchsia-blue',\n 'faded-red',\n 'rope',\n 'silver'\n ] as const\n ).map(name => gradientMap[name]),\n steps = [2 / 3, 1 / 3, 1, 0, 1 / 2]\n }: { gradients?: LinearGradient[]; steps?: number[] } = {}\n): string[] => {\n // Colors per gradient\n const perGradient = Math.floor(count / gradients.length);\n\n // Number of gradients with 1 extra color\n const extra = count % gradients.length;\n\n const colors: string[] = [];\n\n for (let i = 0; i < gradients.length; i += 1) {\n for (let j = 0; j < (i < extra ? perGradient + 1 : perGradient); j += 1) {\n colors.push(colorInGradient(gradients[i], steps[j % steps.length]));\n }\n }\n\n return colors;\n};\n\nexport const nlpColors = (\n [\n ['persian-blue', 1],\n ['persian-green', 1],\n ['pastel-orange', 1],\n ['japanese-laurel', 1],\n ['mango-tango', 1],\n ['valencia', 1],\n ['fuchsia-blue', 1],\n ['faded-red', 1],\n ['rope', 1],\n ['silver', 1],\n ['blue-yellow', 1],\n ['blue-yellow', 5 / 10],\n ['green-yellow', 1],\n ['blue-yellow', 3 / 10],\n ['green-yellow', 7 / 10],\n ['ruby-yellow', 1],\n ['ruby-yellow', 6 / 10],\n ['purple-blue', 1],\n ['two-extremes', 9 / 10],\n ['persian-blue', 1 / 2],\n ['hot-cold', 1],\n ['persian-green', 1 / 2],\n ['pastel-orange', 1 / 2],\n ['japanese-laurel', 1 / 2],\n ['mango-tango', 1 / 2],\n ['valencia', 1 / 2],\n ['fuchsia-blue', 1 / 2],\n ['faded-red', 1 / 2],\n ['rope', 1 / 2],\n ['silver', 1 / 2],\n ['blue-yellow', 7 / 10],\n ['blue-yellow', 4 / 10],\n ['green-yellow', 5 / 10],\n ['ruby-yellow', 5 / 10],\n ['purple-blue', 7 / 10],\n ['purple-blue', 5 / 10],\n ['violet-rose', 5 / 10],\n ['two-extremes', 8 / 10],\n ['ruby-yellow', 4 / 10],\n ['violet-rose', 7 / 10],\n ['negative-attention-positive-deutan', 8 / 10]\n ] as const\n).map(([gradient, position]) => colorInGradient(gradientMap[gradient], position));\n\nexport const whiteCompatibleNLPColors = nlpColors.filter(\n color => getContrast(color, '#ffffff') >= wcagContrast.AANonText\n);\n\nexport const blackCompatibleNLPColors = nlpColors.filter(\n color => getContrast(color, '#000000') >= wcagContrast.AANonText\n);\n\nexport const toLinearGradient = (\n gradient: LinearGradient,\n { direction = '180deg' }: { direction?: string } = {}\n): string => {\n if (gradient.length === 0) return 'transparent';\n if (gradient.length === 1) return gradient[0].color;\n\n return `linear-gradient(${direction}, ${gradient\n .map(({ color, position }) => `${color} ${position * 100}%`)\n .join(', ')})`;\n};\n"]}
@@ -1,4 +1,5 @@
1
1
  export * from './utils';
2
2
  export * from './gradients';
3
3
  export { default as GlobalStyle } from './GlobalStyle';
4
+ export * as animations from './animations';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './utils';
2
2
  export * from './gradients';
3
3
  export { default as GlobalStyle } from './GlobalStyle';
4
+ export * as animations from './animations';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export * from './utils';\nexport * from './gradients';\nexport { default as GlobalStyle } from './GlobalStyle';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC","sourcesContent":["export * from './utils';\nexport * from './gradients';\nexport { default as GlobalStyle } from './GlobalStyle';\nexport * as animations from './animations';\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { StyledConfig } from 'styled-components';
2
2
  import type { ContrastScores } from 'polished/lib/types/color';
3
- declare const wcagContrast: Record<keyof ContrastScores | 'AANonText', number>;
3
+ export declare const wcagContrast: Record<keyof ContrastScores | 'AANonText', number>;
4
4
  interface ContrastOptions {
5
5
  mode?: 'light' | 'dark' | 'both';
6
6
  level?: keyof typeof wcagContrast | number;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAetD,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAK1E,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,EAAE,MAAM,CASpE,CAAC;AAEF,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,OAAO,YAAY,GAAG,MAAM,CAAC;CAC5C;AAED,eAAO,MAAM,YAAY,GAAI,YAAY,MAAM,wBAO9C,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,kBAAkC,eAAoB,KACrD,MAYF,CAAC;AAiBF,eAAO,MAAM,cAAc,GAAI,OAAO,MAA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AE,aAAa,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAiBlD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAUnD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,MAU5E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { parseToHsl, lighten, readableColor as polishedReadableColor, darken, getContrast, hsl, modularScale, stripUnit, math, getValueAndUnit, transparentize, parseToRgb } from 'polished';
2
2
  import { tryCatch } from '../utils';
3
- const wcagContrast = {
3
+ export const wcagContrast = {
4
4
  // https://www.w3.org/TR/WCAG21/#contrast-minimum
5
5
  AA: 4.5,
6
6
  AALarge: 3,
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,OAAO,EACP,aAAa,IAAI,qBAAqB,EACtC,MAAM,EACN,WAAW,EACX,GAAG,EACH,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,eAAe,EACf,cAAc,EACd,UAAU,EACX,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,YAAY,GAAuD;IACvE,iDAAiD;IACjD,EAAE,EAAE,GAAG;IACP,OAAO,EAAE,CAAC;IACV,kDAAkD;IAClD,GAAG,EAAE,CAAC;IACN,QAAQ,EAAE,GAAG;IACb,kDAAkD;IAClD,SAAS,EAAE,CAAC;CACb,CAAC;AAOF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACnD,OAAO,CACL,GAAG;QACH,CAAE,GAAiB,CAAC,KAAK,KAAK,SAAS;YACrC,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C,MAAM,mBAAmB,GAAG,CAAC,KAAa,EAAU,EAAE;IAC3D,MAAM,aAAa,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9D,MAAM,SAAS,GAAG,QAAQ,CACxB,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,SAAS,EACzC,GAAG,EAAE,CAAC,CAAC,CACR,CAAC;IACF,IAAI,SAAS,GAAG,GAAG,EAAE,CAAC;QACpB,OAAO,cAAc,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAiC,EAAU,EAAE;IACpF,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,CAAC,CAAC;IACjC,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE1C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAE5C,IAAI,IAAI,KAAK,GAAG;QAAE,OAAO,KAAK,GAAG,IAAI,CAAC;IACtC,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAEhC,OAAO,CAAC,CAAC;AACX,CAAC,CAAC","sourcesContent":["import type { StyledConfig } from 'styled-components';\nimport {\n parseToHsl,\n lighten,\n readableColor as polishedReadableColor,\n darken,\n getContrast,\n hsl,\n modularScale,\n stripUnit,\n math,\n getValueAndUnit,\n transparentize,\n parseToRgb\n} from 'polished';\nimport type { ContrastScores, RgbaColor } from 'polished/lib/types/color';\nimport type { ModularScaleRatio } from 'polished/lib/types/modularScaleRatio';\n\nimport { tryCatch } from '../utils';\n\nconst wcagContrast: Record<keyof ContrastScores | 'AANonText', number> = {\n // https://www.w3.org/TR/WCAG21/#contrast-minimum\n AA: 4.5,\n AALarge: 3,\n // https://www.w3.org/TR/WCAG21/#contrast-enhanced\n AAA: 7,\n AAALarge: 4.5,\n // https://www.w3.org/TR/WCAG21/#non-text-contrast\n AANonText: 3\n};\n\ninterface ContrastOptions {\n mode?: 'light' | 'dark' | 'both';\n level?: keyof typeof wcagContrast | number;\n}\n\nexport const isSolidColor = (background: string) => {\n const rgb = tryCatch(() => parseToRgb(background));\n return (\n rgb &&\n ((rgb as RgbaColor).alpha === undefined ||\n ((rgb as RgbaColor).alpha !== undefined && (rgb as RgbaColor).alpha === 1))\n );\n};\n\nexport const readableColor = (\n color: string,\n { mode = 'light', level = 'AA' }: ContrastOptions = {}\n): string => {\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (mode === 'light' && getContrast('#fff', color) >= minContrast) {\n return '#fff';\n }\n\n if (mode === 'dark' && getContrast('#000', color) >= minContrast) {\n return '#000';\n }\n\n return polishedReadableColor(color);\n};\n\nconst getBackgroundForegroundColors = (color: string, delta: number) => {\n const backgroundLightness = tryCatch(\n () => parseToHsl(color).lightness,\n () => 1\n );\n let background = tryCatch(() => lighten(delta, color));\n let foreground = tryCatch(() => readableColor(lighten(delta, color)));\n if (backgroundLightness > 0.35) {\n background = tryCatch(() => darken(delta, color));\n foreground = tryCatch(() => readableColor(darken(delta, color)));\n }\n\n return { background, foreground };\n};\n\nexport const getHoverColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.1);\n};\n\nexport const getActiveColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.2);\n};\n\nexport const readableHue = (\n color1: string,\n color2: string,\n { mode = 'both', level = 'AA' }: ContrastOptions = {}\n): string => {\n // if both the color are not solid, return black as fallback\n if (!isSolidColor(color1) && !isSolidColor(color2)) {\n return '#000000';\n }\n\n // if one of the color is not solid, return the other color\n if (!isSolidColor(color2)) {\n return color1;\n }\n\n if (!isSolidColor(color1)) {\n return color2;\n }\n\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (getContrast(color1, color2) >= minContrast) return color1;\n\n const { lightness, ...hueSaturation } = parseToHsl(color1);\n\n let shouldLighten = true;\n let shouldDarken = true;\n\n let lightEnough = '';\n let darkEnough = '';\n\n for (let i = 0; i <= 1; i += 0.01) {\n if (shouldLighten) {\n const lightented = hsl({\n ...hueSaturation,\n lightness: Math.min(lightness + i, 1)\n });\n\n if (getContrast(lightented, color2) >= minContrast) {\n if (mode !== 'dark') return lightented;\n\n shouldLighten = false;\n lightEnough = lightented;\n }\n\n if (lightness + i >= 1) shouldLighten = false;\n }\n\n if (shouldDarken) {\n const darkened = hsl({\n ...hueSaturation,\n lightness: Math.max(lightness - i, 0)\n });\n\n if (getContrast(darkened, color2) >= minContrast) {\n if (mode !== 'light') return darkened;\n\n shouldDarken = false;\n darkEnough = darkened;\n }\n\n if (lightness - i <= 0) shouldDarken = false;\n }\n\n if (!shouldLighten && !shouldDarken) break;\n }\n\n if (lightEnough) return lightEnough;\n if (darkEnough) return darkEnough;\n\n return readableColor(color2, { mode, level });\n};\n\nexport const omitProps = <O extends object = Record<PropertyKey, unknown>>(\n ...props: [prop: keyof O, ...props: (keyof O)[]]\n): StyledConfig<O> => ({\n shouldForwardProp: (prop, defaultValidatorFn) => !props.includes(prop) && defaultValidatorFn(prop)\n});\n\nexport type FontSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\nconst stepsMap = {\n xxs: -2,\n xs: -1,\n s: 0,\n m: 1,\n l: 2,\n xl: 3,\n xxl: 4\n};\n\nexport const calculateFontSize = (baseFontSize: string, baseFontScale: string | number) => {\n return Object.fromEntries(\n Object.entries(stepsMap).map(([size, steps]) => {\n const calculation = tryCatch(\n () =>\n baseFontScale === 'linear'\n ? math(`${baseFontSize} + (${steps} * 0.0625rem)`)\n : modularScale(steps, baseFontSize, baseFontScale as ModularScaleRatio),\n () => baseFontSize\n );\n\n if (size === 'xs' && Number.parseFloat(`${stripUnit(calculation)}`) < 0.75) {\n return [size, `max(calc((${baseFontSize} + 12px) / 2), 12px)`];\n }\n\n return [size, `max(${calculation}, 12px)`];\n })\n ) as Record<FontSize, string>;\n};\n\nexport const calculateForegroundColor = (background: string, foregroundColor: string) => {\n if (foregroundColor !== 'auto') {\n return foregroundColor;\n }\n\n return isSolidColor(background) ? readableColor(background) : '#000000';\n};\n\nexport const calculateBackgroundAndContrastColor = (\n background: string,\n foregroundColor: string\n): { contrastColor: string; backgroundColor: string } => {\n const isGradientBackground = !isSolidColor(background);\n const computedFgColor = calculateForegroundColor(background, foregroundColor);\n const computedBgColor = isGradientBackground ? readableColor(computedFgColor) : background;\n\n let contrastColor = darken(0.05, computedBgColor);\n if (getContrast(computedBgColor, contrastColor) === 1) {\n contrastColor = lighten(0.15, computedBgColor);\n }\n if (isGradientBackground) {\n contrastColor = transparentize(0.9, computedFgColor);\n }\n\n return {\n contrastColor,\n backgroundColor: computedBgColor\n };\n};\n\nexport const getTranslucentColor = (color: string): string => {\n const fallbackColor = isSolidColor(color) ? color : '#000000';\n const luminance = tryCatch(\n () => parseToHsl(fallbackColor).lightness,\n () => 1\n );\n if (luminance > 0.5) {\n return transparentize(0.5, '#ffffff');\n }\n return transparentize(0.95, '#ffffff');\n};\n\n/**\n * Converts a CSS time value to a number in milliseconds.\n *\n * @param time - The CSS time value as a string (e.g: \"2s\", \"500ms\") or a number. If undefined, returns 0.\n * @returns The time value in milliseconds.\n * If the input is a number, it is returned as is.\n * If the input is a string, it is parsed and converted to milliseconds.\n */\nexport const getCSSTimeInMilliseconds = (time: string | number | undefined): number => {\n if (time === undefined) return 0;\n if (typeof time === 'number') return time;\n\n const [value, unit] = getValueAndUnit(time);\n\n if (unit === 's') return value * 1000;\n if (unit === 'ms') return value;\n\n return 0;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,OAAO,EACP,aAAa,IAAI,qBAAqB,EACtC,M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AQ;QAAE,OAAO,IAAI,CAAC;IAE1C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAE5C,IAAI,IAAI,KAAK,GAAG;QAAE,OAAO,KAAK,GAAG,IAAI,CAAC;IACtC,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAEhC,OAAO,CAAC,CAAC;AACX,CAAC,CAAC","sourcesContent":["import type { StyledConfig } from 'styled-components';\nimport {\n parseToHsl,\n lighten,\n readableColor as polishedReadableColor,\n darken,\n getContrast,\n hsl,\n modularScale,\n stripUnit,\n math,\n getValueAndUnit,\n transparentize,\n parseToRgb\n} from 'polished';\nimport type { ContrastScores, RgbaColor } from 'polished/lib/types/color';\nimport type { ModularScaleRatio } from 'polished/lib/types/modularScaleRatio';\n\nimport { tryCatch } from '../utils';\n\nexport const wcagContrast: Record<keyof ContrastScores | 'AANonText', number> = {\n // https://www.w3.org/TR/WCAG21/#contrast-minimum\n AA: 4.5,\n AALarge: 3,\n // https://www.w3.org/TR/WCAG21/#contrast-enhanced\n AAA: 7,\n AAALarge: 4.5,\n // https://www.w3.org/TR/WCAG21/#non-text-contrast\n AANonText: 3\n};\n\ninterface ContrastOptions {\n mode?: 'light' | 'dark' | 'both';\n level?: keyof typeof wcagContrast | number;\n}\n\nexport const isSolidColor = (background: string) => {\n const rgb = tryCatch(() => parseToRgb(background));\n return (\n rgb &&\n ((rgb as RgbaColor).alpha === undefined ||\n ((rgb as RgbaColor).alpha !== undefined && (rgb as RgbaColor).alpha === 1))\n );\n};\n\nexport const readableColor = (\n color: string,\n { mode = 'light', level = 'AA' }: ContrastOptions = {}\n): string => {\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (mode === 'light' && getContrast('#fff', color) >= minContrast) {\n return '#fff';\n }\n\n if (mode === 'dark' && getContrast('#000', color) >= minContrast) {\n return '#000';\n }\n\n return polishedReadableColor(color);\n};\n\nconst getBackgroundForegroundColors = (color: string, delta: number) => {\n const backgroundLightness = tryCatch(\n () => parseToHsl(color).lightness,\n () => 1\n );\n let background = tryCatch(() => lighten(delta, color));\n let foreground = tryCatch(() => readableColor(lighten(delta, color)));\n if (backgroundLightness > 0.35) {\n background = tryCatch(() => darken(delta, color));\n foreground = tryCatch(() => readableColor(darken(delta, color)));\n }\n\n return { background, foreground };\n};\n\nexport const getHoverColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.1);\n};\n\nexport const getActiveColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.2);\n};\n\nexport const readableHue = (\n color1: string,\n color2: string,\n { mode = 'both', level = 'AA' }: ContrastOptions = {}\n): string => {\n // if both the color are not solid, return black as fallback\n if (!isSolidColor(color1) && !isSolidColor(color2)) {\n return '#000000';\n }\n\n // if one of the color is not solid, return the other color\n if (!isSolidColor(color2)) {\n return color1;\n }\n\n if (!isSolidColor(color1)) {\n return color2;\n }\n\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (getContrast(color1, color2) >= minContrast) return color1;\n\n const { lightness, ...hueSaturation } = parseToHsl(color1);\n\n let shouldLighten = true;\n let shouldDarken = true;\n\n let lightEnough = '';\n let darkEnough = '';\n\n for (let i = 0; i <= 1; i += 0.01) {\n if (shouldLighten) {\n const lightented = hsl({\n ...hueSaturation,\n lightness: Math.min(lightness + i, 1)\n });\n\n if (getContrast(lightented, color2) >= minContrast) {\n if (mode !== 'dark') return lightented;\n\n shouldLighten = false;\n lightEnough = lightented;\n }\n\n if (lightness + i >= 1) shouldLighten = false;\n }\n\n if (shouldDarken) {\n const darkened = hsl({\n ...hueSaturation,\n lightness: Math.max(lightness - i, 0)\n });\n\n if (getContrast(darkened, color2) >= minContrast) {\n if (mode !== 'light') return darkened;\n\n shouldDarken = false;\n darkEnough = darkened;\n }\n\n if (lightness - i <= 0) shouldDarken = false;\n }\n\n if (!shouldLighten && !shouldDarken) break;\n }\n\n if (lightEnough) return lightEnough;\n if (darkEnough) return darkEnough;\n\n return readableColor(color2, { mode, level });\n};\n\nexport const omitProps = <O extends object = Record<PropertyKey, unknown>>(\n ...props: [prop: keyof O, ...props: (keyof O)[]]\n): StyledConfig<O> => ({\n shouldForwardProp: (prop, defaultValidatorFn) => !props.includes(prop) && defaultValidatorFn(prop)\n});\n\nexport type FontSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\nconst stepsMap = {\n xxs: -2,\n xs: -1,\n s: 0,\n m: 1,\n l: 2,\n xl: 3,\n xxl: 4\n};\n\nexport const calculateFontSize = (baseFontSize: string, baseFontScale: string | number) => {\n return Object.fromEntries(\n Object.entries(stepsMap).map(([size, steps]) => {\n const calculation = tryCatch(\n () =>\n baseFontScale === 'linear'\n ? math(`${baseFontSize} + (${steps} * 0.0625rem)`)\n : modularScale(steps, baseFontSize, baseFontScale as ModularScaleRatio),\n () => baseFontSize\n );\n\n if (size === 'xs' && Number.parseFloat(`${stripUnit(calculation)}`) < 0.75) {\n return [size, `max(calc((${baseFontSize} + 12px) / 2), 12px)`];\n }\n\n return [size, `max(${calculation}, 12px)`];\n })\n ) as Record<FontSize, string>;\n};\n\nexport const calculateForegroundColor = (background: string, foregroundColor: string) => {\n if (foregroundColor !== 'auto') {\n return foregroundColor;\n }\n\n return isSolidColor(background) ? readableColor(background) : '#000000';\n};\n\nexport const calculateBackgroundAndContrastColor = (\n background: string,\n foregroundColor: string\n): { contrastColor: string; backgroundColor: string } => {\n const isGradientBackground = !isSolidColor(background);\n const computedFgColor = calculateForegroundColor(background, foregroundColor);\n const computedBgColor = isGradientBackground ? readableColor(computedFgColor) : background;\n\n let contrastColor = darken(0.05, computedBgColor);\n if (getContrast(computedBgColor, contrastColor) === 1) {\n contrastColor = lighten(0.15, computedBgColor);\n }\n if (isGradientBackground) {\n contrastColor = transparentize(0.9, computedFgColor);\n }\n\n return {\n contrastColor,\n backgroundColor: computedBgColor\n };\n};\n\nexport const getTranslucentColor = (color: string): string => {\n const fallbackColor = isSolidColor(color) ? color : '#000000';\n const luminance = tryCatch(\n () => parseToHsl(fallbackColor).lightness,\n () => 1\n );\n if (luminance > 0.5) {\n return transparentize(0.5, '#ffffff');\n }\n return transparentize(0.95, '#ffffff');\n};\n\n/**\n * Converts a CSS time value to a number in milliseconds.\n *\n * @param time - The CSS time value as a string (e.g: \"2s\", \"500ms\") or a number. If undefined, returns 0.\n * @returns The time value in milliseconds.\n * If the input is a number, it is returned as is.\n * If the input is a string, it is parsed and converted to milliseconds.\n */\nexport const getCSSTimeInMilliseconds = (time: string | number | undefined): number => {\n if (time === undefined) return 0;\n if (typeof time === 'number') return time;\n\n const [value, unit] = getValueAndUnit(time);\n\n if (unit === 's') return value * 1000;\n if (unit === 'ms') return value;\n\n return 0;\n};\n"]}
@@ -16,6 +16,8 @@ export { default as LegacyBuildTheme } from './themes/legacyBuildTheme.json';
16
16
  export { default as DarkTheme } from './themes/darkTheme.json';
17
17
  export { default as HubbleTheme } from './themes/hubbleTheme.json';
18
18
  export { default as SquareTheme } from './themes/squareTheme.json';
19
+ export { default as StudioTheme } from './themes/studioTheme.json';
20
+ export { default as StudioDarkTheme } from './themes/studioDarkTheme.json';
19
21
  export { default as WSSTheme } from './themes/wssTheme.json';
20
22
  export { default as pastelTheme } from './themes/pastelTheme.json';
21
23
  export { default as vibrantTheme } from './themes/vibrantTheme.json';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,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A2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -16,6 +16,8 @@ export { default as LegacyBuildTheme } from './themes/legacyBuildTheme.json';
16
16
  export { default as DarkTheme } from './themes/darkTheme.json';
17
17
  export { default as HubbleTheme } from './themes/hubbleTheme.json';
18
18
  export { default as SquareTheme } from './themes/squareTheme.json';
19
+ export { default as StudioTheme } from './themes/studioTheme.json';
20
+ export { default as StudioDarkTheme } from './themes/studioDarkTheme.json';
19
21
  export { default as WSSTheme } from './themes/wssTheme.json';
20
22
  export { default as pastelTheme } from './themes/pastelTheme.json';
21
23
  export { default as vibrantTheme } from './themes/vibrantTheme.json';
@@ -1 +1 @@
1
- {"version":3,"file":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AM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC","sourcesContent":["export * from './theme';\nexport { default as ThemeMachine } from './ThemeMachine';\nexport * from './ThemeMachine';\nexport { default as Aries2023Theme } from './themes/aries2023Theme.json';\nexport { default as Aries2023DarkTheme } from './themes/aries2023DarkTheme.json';\nexport { default as Andromeda2025Theme } from './themes/andromeda2025Theme.json';\nexport { default as Bootes2025Theme } from './themes/bootes2025Theme.json';\nexport { default as Bootes2025DarkTheme } from './themes/bootes2025DarkTheme.json';\nexport { default as Cygnus2025Theme } from './themes/cygnus2025Theme.json';\nexport { default as Dorado2025Theme } from './themes/dorado2025Theme.json';\nexport { default as Equuleus2025Theme } from './themes/equuleus2025Theme.json';\nexport { default as LargeTextTheme } from './themes/largeTextTheme.json';\nexport { default as SmallTextTheme } from './themes/smallTextTheme.json';\nexport { default as BuildTheme } from './themes/buildTheme.json';\nexport { default as LegacyBuildTheme } from './themes/legacyBuildTheme.json';\nexport { default as DarkTheme } from './themes/darkTheme.json';\nexport { default as HubbleTheme } from './themes/hubbleTheme.json';\nexport { default as SquareTheme } from './themes/squareTheme.json';\nexport { default as WSSTheme } from './themes/wssTheme.json';\nexport { default as pastelTheme } from './themes/pastelTheme.json';\nexport { default as vibrantTheme } from './themes/vibrantTheme.json';\nexport { default as elegantTheme } from './themes/elegantTheme.json';\nexport { default as artisticTheme } from './themes/artisticTheme.json';\nexport { default as vibrantDarkTheme } from './themes/vibrantDarkTheme.json';\nexport { default as elegantDarkTheme } from './themes/elegantDarkTheme.json';\nexport { default as artisticExpressionismTheme } from './themes/artisticExpressionismTheme.json';\nexport { default as conciergeTheme } from './themes/conciergeTheme.json';\nexport { default as conciergeDarkTheme } from './themes/conciergeDarkTheme.json';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC","sourcesContent":["export * from './theme';\nexport { default as ThemeMachine } from './ThemeMachine';\nexport * from './ThemeMachine';\nexport { default as Aries2023Theme } from './themes/aries2023Theme.json';\nexport { default as Aries2023DarkTheme } from './themes/aries2023DarkTheme.json';\nexport { default as Andromeda2025Theme } from './themes/andromeda2025Theme.json';\nexport { default as Bootes2025Theme } from './themes/bootes2025Theme.json';\nexport { default as Bootes2025DarkTheme } from './themes/bootes2025DarkTheme.json';\nexport { default as Cygnus2025Theme } from './themes/cygnus2025Theme.json';\nexport { default as Dorado2025Theme } from './themes/dorado2025Theme.json';\nexport { default as Equuleus2025Theme } from './themes/equuleus2025Theme.json';\nexport { default as LargeTextTheme } from './themes/largeTextTheme.json';\nexport { default as SmallTextTheme } from './themes/smallTextTheme.json';\nexport { default as BuildTheme } from './themes/buildTheme.json';\nexport { default as LegacyBuildTheme } from './themes/legacyBuildTheme.json';\nexport { default as DarkTheme } from './themes/darkTheme.json';\nexport { default as HubbleTheme } from './themes/hubbleTheme.json';\nexport { default as SquareTheme } from './themes/squareTheme.json';\nexport { default as StudioTheme } from './themes/studioTheme.json';\nexport { default as StudioDarkTheme } from './themes/studioDarkTheme.json';\nexport { default as WSSTheme } from './themes/wssTheme.json';\nexport { default as pastelTheme } from './themes/pastelTheme.json';\nexport { default as vibrantTheme } from './themes/vibrantTheme.json';\nexport { default as elegantTheme } from './themes/elegantTheme.json';\nexport { default as artisticTheme } from './themes/artisticTheme.json';\nexport { default as vibrantDarkTheme } from './themes/vibrantDarkTheme.json';\nexport { default as elegantDarkTheme } from './themes/elegantDarkTheme.json';\nexport { default as artisticExpressionismTheme } from './themes/artisticExpressionismTheme.json';\nexport { default as conciergeTheme } from './themes/conciergeTheme.json';\nexport { default as conciergeDarkTheme } from './themes/conciergeDarkTheme.json';\n"]}
@@ -1126,6 +1126,88 @@ export declare const BaseThemeMachine: ThemeMachine<{
1126
1126
  $value: string;
1127
1127
  };
1128
1128
  };
1129
+ modal: {
1130
+ background: {
1131
+ $type: string;
1132
+ $value: string;
1133
+ };
1134
+ };
1135
+ popover: {
1136
+ background: {
1137
+ $type: string;
1138
+ $value: string;
1139
+ };
1140
+ };
1141
+ lifecycle: {
1142
+ background: {
1143
+ $type: string;
1144
+ $value: string;
1145
+ };
1146
+ task: {
1147
+ background: {
1148
+ $type: string;
1149
+ $value: string;
1150
+ };
1151
+ "foreground-color": {
1152
+ $type: string;
1153
+ $value: string;
1154
+ };
1155
+ };
1156
+ stage: {
1157
+ background: {
1158
+ $type: string;
1159
+ $value: string;
1160
+ };
1161
+ "foreground-color": {
1162
+ $type: string;
1163
+ $value: string;
1164
+ };
1165
+ start: {
1166
+ background: {
1167
+ $type: string;
1168
+ $value: string;
1169
+ };
1170
+ "hover-color": {
1171
+ $type: string;
1172
+ $value: string;
1173
+ };
1174
+ };
1175
+ default: {
1176
+ background: {
1177
+ $type: string;
1178
+ $value: string;
1179
+ };
1180
+ "hover-color": {
1181
+ $type: string;
1182
+ $value: string;
1183
+ };
1184
+ };
1185
+ resolution: {
1186
+ background: {
1187
+ $type: string;
1188
+ $value: string;
1189
+ };
1190
+ "hover-color": {
1191
+ $type: string;
1192
+ $value: string;
1193
+ };
1194
+ };
1195
+ alternate: {
1196
+ background: {
1197
+ $type: string;
1198
+ $value: string;
1199
+ };
1200
+ "hover-color": {
1201
+ $type: string;
1202
+ $value: string;
1203
+ };
1204
+ "resolution-highlight": {
1205
+ $type: string;
1206
+ $value: string;
1207
+ };
1208
+ };
1209
+ };
1210
+ };
1129
1211
  mark: {
1130
1212
  "background-color": {
1131
1213
  $type: string;
@@ -2048,6 +2130,40 @@ export declare const WorkTheme: {
2048
2130
  readonly link: {
2049
2131
  readonly color: string;
2050
2132
  };
2133
+ readonly modal: {
2134
+ readonly background: string;
2135
+ };
2136
+ readonly popover: {
2137
+ readonly background: string;
2138
+ };
2139
+ readonly lifecycle: {
2140
+ readonly background: string;
2141
+ readonly task: {
2142
+ readonly background: string;
2143
+ readonly "foreground-color": string;
2144
+ };
2145
+ readonly stage: {
2146
+ readonly background: string;
2147
+ readonly "foreground-color": string;
2148
+ readonly start: {
2149
+ readonly background: string;
2150
+ readonly "hover-color": string;
2151
+ };
2152
+ readonly default: {
2153
+ readonly background: string;
2154
+ readonly "hover-color": string;
2155
+ };
2156
+ readonly resolution: {
2157
+ readonly background: string;
2158
+ readonly "hover-color": string;
2159
+ };
2160
+ readonly alternate: {
2161
+ readonly background: string;
2162
+ readonly "hover-color": string;
2163
+ readonly "resolution-highlight": string;
2164
+ };
2165
+ };
2166
+ };
2051
2167
  readonly mark: {
2052
2168
  readonly "background-color": string;
2053
2169
  readonly "font-weight": string;
@@ -2660,6 +2776,40 @@ export declare const defaultThemeProp: Readonly<{
2660
2776
  readonly link: {
2661
2777
  readonly color: string;
2662
2778
  };
2779
+ readonly modal: {
2780
+ readonly background: string;
2781
+ };
2782
+ readonly popover: {
2783
+ readonly background: string;
2784
+ };
2785
+ readonly lifecycle: {
2786
+ readonly background: string;
2787
+ readonly task: {
2788
+ readonly background: string;
2789
+ readonly "foreground-color": string;
2790
+ };
2791
+ readonly stage: {
2792
+ readonly background: string;
2793
+ readonly "foreground-color": string;
2794
+ readonly start: {
2795
+ readonly background: string;
2796
+ readonly "hover-color": string;
2797
+ };
2798
+ readonly default: {
2799
+ readonly background: string;
2800
+ readonly "hover-color": string;
2801
+ };
2802
+ readonly resolution: {
2803
+ readonly background: string;
2804
+ readonly "hover-color": string;
2805
+ };
2806
+ readonly alternate: {
2807
+ readonly background: string;
2808
+ readonly "hover-color": string;
2809
+ readonly "resolution-highlight": string;
2810
+ };
2811
+ };
2812
+ };
2663
2813
  readonly mark: {
2664
2814
  readonly "background-color": string;
2665
2815
  readonly "font-weight": string;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,YAAgC,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,sBAAsB,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,IAAI,eAAe,EAAE,CAAC;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGhF,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAiB,YAAa,SAAQ,YAAY,CAAC,OAAO,sBAAsB,CAAC;KAAG;CACrF"}
@@ -1121,6 +1121,88 @@
1121
1121
  "$value": "base.palette.interactive"
1122
1122
  }
1123
1123
  },
1124
+ "modal": {
1125
+ "background": {
1126
+ "$type": "inherited",
1127
+ "$value": "base.palette.primary-background"
1128
+ }
1129
+ },
1130
+ "popover": {
1131
+ "background": {
1132
+ "$type": "inherited",
1133
+ "$value": "base.palette.primary-background"
1134
+ }
1135
+ },
1136
+ "lifecycle": {
1137
+ "background": {
1138
+ "$type": "inherited",
1139
+ "$value": "base.palette.app-background"
1140
+ },
1141
+ "task": {
1142
+ "background": {
1143
+ "$type": "inherited",
1144
+ "$value": "base.palette.primary-background"
1145
+ },
1146
+ "foreground-color": {
1147
+ "$type": "inherited",
1148
+ "$value": "base.palette.foreground-color"
1149
+ }
1150
+ },
1151
+ "stage": {
1152
+ "background": {
1153
+ "$type": "inherited",
1154
+ "$value": "base.palette.app-background"
1155
+ },
1156
+ "foreground-color": {
1157
+ "$type": "inherited",
1158
+ "$value": "base.palette.light"
1159
+ },
1160
+ "start": {
1161
+ "background": {
1162
+ "$type": "inherited",
1163
+ "$value": "base.colors.blue.dark"
1164
+ },
1165
+ "hover-color": {
1166
+ "$type": "inherited",
1167
+ "$value": "base.colors.blue.medium"
1168
+ }
1169
+ },
1170
+ "default": {
1171
+ "background": {
1172
+ "$type": "inherited",
1173
+ "$value": "base.colors.blue.medium"
1174
+ },
1175
+ "hover-color": {
1176
+ "$type": "inherited",
1177
+ "$value": "base.colors.blue.light"
1178
+ }
1179
+ },
1180
+ "resolution": {
1181
+ "background": {
1182
+ "$type": "inherited",
1183
+ "$value": "base.colors.green.medium"
1184
+ },
1185
+ "hover-color": {
1186
+ "$type": "inherited",
1187
+ "$value": "base.colors.green.light"
1188
+ }
1189
+ },
1190
+ "alternate": {
1191
+ "background": {
1192
+ "$type": "inherited",
1193
+ "$value": "base.colors.slate.dark"
1194
+ },
1195
+ "hover-color": {
1196
+ "$type": "inherited",
1197
+ "$value": "base.colors.slate.medium"
1198
+ },
1199
+ "resolution-highlight": {
1200
+ "$type": "inherited",
1201
+ "$value": "base.colors.green.medium"
1202
+ }
1203
+ }
1204
+ }
1205
+ },
1124
1206
  "mark": {
1125
1207
  "background-color": {
1126
1208
  "$type": "inherited",