@mindlogic-ai/logician-ui 3.0.0 → 3.1.0-alpha.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 (353) hide show
  1. package/dist/components/Avatar/Avatar.js +1 -1
  2. package/dist/components/Avatar/Avatar.js.map +1 -1
  3. package/dist/components/Avatar/Avatar.mjs +1 -1
  4. package/dist/components/Avatar/Avatar.mjs.map +1 -1
  5. package/dist/components/Badge/Badge.styles.d.ts.map +1 -1
  6. package/dist/components/Badge/Badge.styles.js +5 -3
  7. package/dist/components/Badge/Badge.styles.js.map +1 -1
  8. package/dist/components/Badge/Badge.styles.mjs +5 -3
  9. package/dist/components/Badge/Badge.styles.mjs.map +1 -1
  10. package/dist/components/Button/Button.styles.d.ts.map +1 -1
  11. package/dist/components/Button/Button.styles.js +39 -33
  12. package/dist/components/Button/Button.styles.js.map +1 -1
  13. package/dist/components/Button/Button.styles.mjs +39 -33
  14. package/dist/components/Button/Button.styles.mjs.map +1 -1
  15. package/dist/components/Card/Card.js +1 -1
  16. package/dist/components/Card/Card.js.map +1 -1
  17. package/dist/components/Card/Card.mjs +1 -1
  18. package/dist/components/Card/Card.mjs.map +1 -1
  19. package/dist/components/Card/Card.styles.js +2 -2
  20. package/dist/components/Card/Card.styles.js.map +1 -1
  21. package/dist/components/Card/Card.styles.mjs +2 -2
  22. package/dist/components/Card/Card.styles.mjs.map +1 -1
  23. package/dist/components/Checkbox/CheckboxControl.d.ts.map +1 -1
  24. package/dist/components/Checkbox/CheckboxControl.js +9 -3
  25. package/dist/components/Checkbox/CheckboxControl.js.map +1 -1
  26. package/dist/components/Checkbox/CheckboxControl.mjs +9 -3
  27. package/dist/components/Checkbox/CheckboxControl.mjs.map +1 -1
  28. package/dist/components/Chip/Chip.styles.d.ts.map +1 -1
  29. package/dist/components/Chip/Chip.styles.js +14 -11
  30. package/dist/components/Chip/Chip.styles.js.map +1 -1
  31. package/dist/components/Chip/Chip.styles.mjs +14 -11
  32. package/dist/components/Chip/Chip.styles.mjs.map +1 -1
  33. package/dist/components/Code/Code.js +4 -4
  34. package/dist/components/Code/Code.js.map +1 -1
  35. package/dist/components/Code/Code.mjs +4 -4
  36. package/dist/components/Code/Code.mjs.map +1 -1
  37. package/dist/components/CodeTabs/CopyButton.js +1 -1
  38. package/dist/components/CodeTabs/CopyButton.mjs +1 -1
  39. package/dist/components/Collapsible/CollapsibleRoot.js +1 -1
  40. package/dist/components/Collapsible/CollapsibleRoot.js.map +1 -1
  41. package/dist/components/Collapsible/CollapsibleRoot.mjs +1 -1
  42. package/dist/components/Collapsible/CollapsibleRoot.mjs.map +1 -1
  43. package/dist/components/Collapsible/CollapsibleTrigger.js +1 -1
  44. package/dist/components/Collapsible/CollapsibleTrigger.js.map +1 -1
  45. package/dist/components/Collapsible/CollapsibleTrigger.mjs +1 -1
  46. package/dist/components/Collapsible/CollapsibleTrigger.mjs.map +1 -1
  47. package/dist/components/ColorMode/ColorModeProvider.d.ts +39 -0
  48. package/dist/components/ColorMode/ColorModeProvider.d.ts.map +1 -0
  49. package/dist/components/ColorMode/ColorModeProvider.js +39 -0
  50. package/dist/components/ColorMode/ColorModeProvider.js.map +1 -0
  51. package/dist/components/ColorMode/ColorModeProvider.mjs +37 -0
  52. package/dist/components/ColorMode/ColorModeProvider.mjs.map +1 -0
  53. package/dist/components/ColorMode/ColorModeToggle.d.ts +18 -0
  54. package/dist/components/ColorMode/ColorModeToggle.d.ts.map +1 -0
  55. package/dist/components/ColorMode/ColorModeToggle.js +34 -0
  56. package/dist/components/ColorMode/ColorModeToggle.js.map +1 -0
  57. package/dist/components/ColorMode/ColorModeToggle.mjs +32 -0
  58. package/dist/components/ColorMode/ColorModeToggle.mjs.map +1 -0
  59. package/dist/components/ColorMode/index.d.ts +7 -0
  60. package/dist/components/ColorMode/index.d.ts.map +1 -0
  61. package/dist/components/ColorMode/useColorMode.d.ts +41 -0
  62. package/dist/components/ColorMode/useColorMode.d.ts.map +1 -0
  63. package/dist/components/ColorMode/useColorMode.js +55 -0
  64. package/dist/components/ColorMode/useColorMode.js.map +1 -0
  65. package/dist/components/ColorMode/useColorMode.mjs +52 -0
  66. package/dist/components/ColorMode/useColorMode.mjs.map +1 -0
  67. package/dist/components/CopyableCode/CopyableCode.d.ts.map +1 -1
  68. package/dist/components/CopyableCode/CopyableCode.js +4 -1
  69. package/dist/components/CopyableCode/CopyableCode.js.map +1 -1
  70. package/dist/components/CopyableCode/CopyableCode.mjs +4 -1
  71. package/dist/components/CopyableCode/CopyableCode.mjs.map +1 -1
  72. package/dist/components/DatePicker/RangeDatePicker.d.ts.map +1 -1
  73. package/dist/components/DatePicker/RangeDatePicker.js +9 -6
  74. package/dist/components/DatePicker/RangeDatePicker.js.map +1 -1
  75. package/dist/components/DatePicker/RangeDatePicker.mjs +9 -6
  76. package/dist/components/DatePicker/RangeDatePicker.mjs.map +1 -1
  77. package/dist/components/DatePicker/SingleDatePicker.js +4 -4
  78. package/dist/components/DatePicker/SingleDatePicker.js.map +1 -1
  79. package/dist/components/DatePicker/SingleDatePicker.mjs +4 -4
  80. package/dist/components/DatePicker/SingleDatePicker.mjs.map +1 -1
  81. package/dist/components/ErrorFallback/ErrorFallback.js +1 -1
  82. package/dist/components/ErrorFallback/ErrorFallback.js.map +1 -1
  83. package/dist/components/ErrorFallback/ErrorFallback.mjs +1 -1
  84. package/dist/components/ErrorFallback/ErrorFallback.mjs.map +1 -1
  85. package/dist/components/FileInput/FileInput.js +1 -1
  86. package/dist/components/FileInput/FileInput.js.map +1 -1
  87. package/dist/components/FileInput/FileInput.mjs +1 -1
  88. package/dist/components/FileInput/FileInput.mjs.map +1 -1
  89. package/dist/components/FileItem/FileItem.js +2 -2
  90. package/dist/components/FileItem/FileItem.js.map +1 -1
  91. package/dist/components/FileItem/FileItem.mjs +2 -2
  92. package/dist/components/FileItem/FileItem.mjs.map +1 -1
  93. package/dist/components/FileList/FileList.js +3 -3
  94. package/dist/components/FileList/FileList.js.map +1 -1
  95. package/dist/components/FileList/FileList.mjs +3 -3
  96. package/dist/components/FileList/FileList.mjs.map +1 -1
  97. package/dist/components/FormLabel/FormLabel.js +1 -1
  98. package/dist/components/FormLabel/FormLabel.js.map +1 -1
  99. package/dist/components/FormLabel/FormLabel.mjs +1 -1
  100. package/dist/components/FormLabel/FormLabel.mjs.map +1 -1
  101. package/dist/components/IconButton/IconButton.styles.js +1 -1
  102. package/dist/components/IconButton/IconButton.styles.js.map +1 -1
  103. package/dist/components/IconButton/IconButton.styles.mjs +1 -1
  104. package/dist/components/IconButton/IconButton.styles.mjs.map +1 -1
  105. package/dist/components/InfoSprinkle/InfoSprinkle.js +1 -1
  106. package/dist/components/InfoSprinkle/InfoSprinkle.js.map +1 -1
  107. package/dist/components/InfoSprinkle/InfoSprinkle.mjs +1 -1
  108. package/dist/components/InfoSprinkle/InfoSprinkle.mjs.map +1 -1
  109. package/dist/components/InlineCode/InlineCode.js +1 -1
  110. package/dist/components/InlineCode/InlineCode.js.map +1 -1
  111. package/dist/components/InlineCode/InlineCode.mjs +1 -1
  112. package/dist/components/InlineCode/InlineCode.mjs.map +1 -1
  113. package/dist/components/Input/Input.d.ts.map +1 -1
  114. package/dist/components/Input/Input.js +6 -6
  115. package/dist/components/Input/Input.js.map +1 -1
  116. package/dist/components/Input/Input.mjs +6 -6
  117. package/dist/components/Input/Input.mjs.map +1 -1
  118. package/dist/components/LineGraph/LineGraph.d.ts.map +1 -1
  119. package/dist/components/LineGraph/LineGraph.js +9 -5
  120. package/dist/components/LineGraph/LineGraph.js.map +1 -1
  121. package/dist/components/LineGraph/LineGraph.mjs +9 -5
  122. package/dist/components/LineGraph/LineGraph.mjs.map +1 -1
  123. package/dist/components/Loaders/PageLoader.js +1 -1
  124. package/dist/components/Loaders/PageLoader.js.map +1 -1
  125. package/dist/components/Loaders/PageLoader.mjs +1 -1
  126. package/dist/components/Loaders/PageLoader.mjs.map +1 -1
  127. package/dist/components/Loaders/SectionLoader.js +1 -1
  128. package/dist/components/Loaders/SectionLoader.js.map +1 -1
  129. package/dist/components/Loaders/SectionLoader.mjs +1 -1
  130. package/dist/components/Loaders/SectionLoader.mjs.map +1 -1
  131. package/dist/components/LogicianProvider/LogicianProvider.d.ts +20 -0
  132. package/dist/components/LogicianProvider/LogicianProvider.d.ts.map +1 -1
  133. package/dist/components/LogicianProvider/LogicianProvider.js +9 -2
  134. package/dist/components/LogicianProvider/LogicianProvider.js.map +1 -1
  135. package/dist/components/LogicianProvider/LogicianProvider.mjs +9 -2
  136. package/dist/components/LogicianProvider/LogicianProvider.mjs.map +1 -1
  137. package/dist/components/MDXEditor/MDXEditor.d.ts.map +1 -1
  138. package/dist/components/MDXEditor/MDXEditor.js +14 -16
  139. package/dist/components/MDXEditor/MDXEditor.js.map +1 -1
  140. package/dist/components/MDXEditor/MDXEditor.mjs +14 -16
  141. package/dist/components/MDXEditor/MDXEditor.mjs.map +1 -1
  142. package/dist/components/Markdown/Markdown.module.css.js +1 -1
  143. package/dist/components/Markdown/Markdown.module.css.mjs +1 -1
  144. package/dist/components/MaxLengthIndicator/MaxLengthIndicator.js +1 -1
  145. package/dist/components/MaxLengthIndicator/MaxLengthIndicator.js.map +1 -1
  146. package/dist/components/MaxLengthIndicator/MaxLengthIndicator.mjs +1 -1
  147. package/dist/components/MaxLengthIndicator/MaxLengthIndicator.mjs.map +1 -1
  148. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  149. package/dist/components/Menu/MenuItem.js +7 -3
  150. package/dist/components/Menu/MenuItem.js.map +1 -1
  151. package/dist/components/Menu/MenuItem.mjs +7 -3
  152. package/dist/components/Menu/MenuItem.mjs.map +1 -1
  153. package/dist/components/Menu/MenuList.d.ts.map +1 -1
  154. package/dist/components/Menu/MenuList.js +7 -1
  155. package/dist/components/Menu/MenuList.js.map +1 -1
  156. package/dist/components/Menu/MenuList.mjs +7 -1
  157. package/dist/components/Menu/MenuList.mjs.map +1 -1
  158. package/dist/components/Modal/ModalFooter/ModalFooter.js +1 -1
  159. package/dist/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
  160. package/dist/components/Modal/ModalFooter/ModalFooter.mjs +1 -1
  161. package/dist/components/Modal/ModalFooter/ModalFooter.mjs.map +1 -1
  162. package/dist/components/MonthPicker/MonthPicker.js +1 -1
  163. package/dist/components/MonthPicker/MonthPicker.mjs +1 -1
  164. package/dist/components/Pagination/Pagination.js +1 -1
  165. package/dist/components/Pagination/Pagination.js.map +1 -1
  166. package/dist/components/Pagination/Pagination.mjs +1 -1
  167. package/dist/components/Pagination/Pagination.mjs.map +1 -1
  168. package/dist/components/PinInput/PinInput.js +1 -1
  169. package/dist/components/PinInput/PinInput.js.map +1 -1
  170. package/dist/components/PinInput/PinInput.mjs +1 -1
  171. package/dist/components/PinInput/PinInput.mjs.map +1 -1
  172. package/dist/components/Popover/PopoverArrowTip.js +1 -1
  173. package/dist/components/Popover/PopoverArrowTip.js.map +1 -1
  174. package/dist/components/Popover/PopoverArrowTip.mjs +1 -1
  175. package/dist/components/Popover/PopoverArrowTip.mjs.map +1 -1
  176. package/dist/components/Popover/PopoverContent.js +1 -1
  177. package/dist/components/Popover/PopoverContent.js.map +1 -1
  178. package/dist/components/Popover/PopoverContent.mjs +1 -1
  179. package/dist/components/Popover/PopoverContent.mjs.map +1 -1
  180. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  181. package/dist/components/ProgressBar/ProgressBar.mjs +1 -1
  182. package/dist/components/RadialProgress/RadialProgress.js +4 -4
  183. package/dist/components/RadialProgress/RadialProgress.js.map +1 -1
  184. package/dist/components/RadialProgress/RadialProgress.mjs +4 -4
  185. package/dist/components/RadialProgress/RadialProgress.mjs.map +1 -1
  186. package/dist/components/SeeMoreButton/SeeMoreButton.styles.js +2 -2
  187. package/dist/components/SeeMoreButton/SeeMoreButton.styles.js.map +1 -1
  188. package/dist/components/SeeMoreButton/SeeMoreButton.styles.mjs +2 -2
  189. package/dist/components/SeeMoreButton/SeeMoreButton.styles.mjs.map +1 -1
  190. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  191. package/dist/components/SegmentedControl/SegmentedControl.js +8 -4
  192. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
  193. package/dist/components/SegmentedControl/SegmentedControl.mjs +8 -4
  194. package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  195. package/dist/components/SegmentedProgressBar/ProgressSegment.js +1 -1
  196. package/dist/components/SegmentedProgressBar/ProgressSegment.mjs +1 -1
  197. package/dist/components/SegmentedProgressBar/SegmentedProgressBar.js +1 -1
  198. package/dist/components/SegmentedProgressBar/SegmentedProgressBar.mjs +1 -1
  199. package/dist/components/Select/Select.styles.d.ts +18 -4
  200. package/dist/components/Select/Select.styles.d.ts.map +1 -1
  201. package/dist/components/Select/Select.styles.js +11 -10
  202. package/dist/components/Select/Select.styles.js.map +1 -1
  203. package/dist/components/Select/Select.styles.mjs +11 -10
  204. package/dist/components/Select/Select.styles.mjs.map +1 -1
  205. package/dist/components/Slider/SliderFilledTrack/SliderFilledTrack.js +1 -1
  206. package/dist/components/Slider/SliderFilledTrack/SliderFilledTrack.mjs +1 -1
  207. package/dist/components/Slider/SliderThumb/SliderThumb.js +2 -2
  208. package/dist/components/Slider/SliderThumb/SliderThumb.js.map +1 -1
  209. package/dist/components/Slider/SliderThumb/SliderThumb.mjs +2 -2
  210. package/dist/components/Slider/SliderThumb/SliderThumb.mjs.map +1 -1
  211. package/dist/components/Slider/SliderTrack/SliderTrack.js +1 -1
  212. package/dist/components/Slider/SliderTrack/SliderTrack.mjs +1 -1
  213. package/dist/components/Spinner/Spinner.js +1 -1
  214. package/dist/components/Spinner/Spinner.mjs +1 -1
  215. package/dist/components/Switch/SwitchControl.js +1 -1
  216. package/dist/components/Switch/SwitchControl.mjs +1 -1
  217. package/dist/components/Table/Table.styles.js +1 -1
  218. package/dist/components/Table/Table.styles.js.map +1 -1
  219. package/dist/components/Table/Table.styles.mjs +1 -1
  220. package/dist/components/Table/Table.styles.mjs.map +1 -1
  221. package/dist/components/Table/TableContainer.js +1 -1
  222. package/dist/components/Table/TableContainer.js.map +1 -1
  223. package/dist/components/Table/TableContainer.mjs +1 -1
  224. package/dist/components/Table/TableContainer.mjs.map +1 -1
  225. package/dist/components/Table/Tbody.js +1 -1
  226. package/dist/components/Table/Tbody.js.map +1 -1
  227. package/dist/components/Table/Tbody.mjs +1 -1
  228. package/dist/components/Table/Tbody.mjs.map +1 -1
  229. package/dist/components/Table/Thead.js +1 -1
  230. package/dist/components/Table/Thead.mjs +1 -1
  231. package/dist/components/Tabs/Tab/Tab.js +1 -1
  232. package/dist/components/Tabs/Tab/Tab.mjs +1 -1
  233. package/dist/components/Tabs/TabList/TabList.js +1 -1
  234. package/dist/components/Tabs/TabList/TabList.js.map +1 -1
  235. package/dist/components/Tabs/TabList/TabList.mjs +1 -1
  236. package/dist/components/Tabs/TabList/TabList.mjs.map +1 -1
  237. package/dist/components/Tag/Tag.styles.d.ts.map +1 -1
  238. package/dist/components/Tag/Tag.styles.js +19 -16
  239. package/dist/components/Tag/Tag.styles.js.map +1 -1
  240. package/dist/components/Tag/Tag.styles.mjs +19 -16
  241. package/dist/components/Tag/Tag.styles.mjs.map +1 -1
  242. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  243. package/dist/components/Textarea/Textarea.js +7 -7
  244. package/dist/components/Textarea/Textarea.js.map +1 -1
  245. package/dist/components/Textarea/Textarea.mjs +7 -7
  246. package/dist/components/Textarea/Textarea.mjs.map +1 -1
  247. package/dist/components/Typography/H3.js +1 -1
  248. package/dist/components/Typography/H3.js.map +1 -1
  249. package/dist/components/Typography/H3.mjs +1 -1
  250. package/dist/components/Typography/H3.mjs.map +1 -1
  251. package/dist/components/Typography/Subtext.js +1 -1
  252. package/dist/components/Typography/Subtext.js.map +1 -1
  253. package/dist/components/Typography/Subtext.mjs +1 -1
  254. package/dist/components/Typography/Subtext.mjs.map +1 -1
  255. package/dist/components/Typography/Subtitle.js +1 -1
  256. package/dist/components/Typography/Subtitle.js.map +1 -1
  257. package/dist/components/Typography/Subtitle.mjs +1 -1
  258. package/dist/components/Typography/Subtitle.mjs.map +1 -1
  259. package/dist/components/Typography/Text.js +1 -1
  260. package/dist/components/Typography/Text.js.map +1 -1
  261. package/dist/components/Typography/Text.mjs +1 -1
  262. package/dist/components/Typography/Text.mjs.map +1 -1
  263. package/dist/index.d.ts +2 -0
  264. package/dist/index.d.ts.map +1 -1
  265. package/dist/index.js +7 -0
  266. package/dist/index.js.map +1 -1
  267. package/dist/index.mjs +3 -0
  268. package/dist/index.mjs.map +1 -1
  269. package/dist/theme/colors.d.ts +276 -40
  270. package/dist/theme/colors.d.ts.map +1 -1
  271. package/dist/theme/colors.js +201 -40
  272. package/dist/theme/colors.js.map +1 -1
  273. package/dist/theme/colors.mjs +201 -40
  274. package/dist/theme/colors.mjs.map +1 -1
  275. package/dist/theme/global.d.ts.map +1 -1
  276. package/dist/theme/global.js +11 -1
  277. package/dist/theme/global.js.map +1 -1
  278. package/dist/theme/global.mjs +11 -1
  279. package/dist/theme/global.mjs.map +1 -1
  280. package/package.json +2 -1
  281. package/src/components/Avatar/Avatar.tsx +1 -1
  282. package/src/components/Badge/Badge.styles.ts +5 -3
  283. package/src/components/Button/Button.styles.ts +39 -33
  284. package/src/components/Card/Card.styles.ts +2 -2
  285. package/src/components/Card/Card.tsx +3 -3
  286. package/src/components/Checkbox/CheckboxControl.tsx +8 -3
  287. package/src/components/Chip/Chip.styles.ts +14 -11
  288. package/src/components/Code/Code.tsx +5 -5
  289. package/src/components/CodeTabs/CopyButton.tsx +1 -1
  290. package/src/components/Collapsible/CollapsibleRoot.tsx +1 -1
  291. package/src/components/Collapsible/CollapsibleTrigger.tsx +2 -2
  292. package/src/components/ColorMode/ColorModeProvider.tsx +63 -0
  293. package/src/components/ColorMode/ColorModeToggle.tsx +45 -0
  294. package/src/components/ColorMode/index.ts +6 -0
  295. package/src/components/ColorMode/useColorMode.ts +74 -0
  296. package/src/components/CopyableCode/CopyableCode.tsx +3 -1
  297. package/src/components/DatePicker/RangeDatePicker.tsx +9 -6
  298. package/src/components/DatePicker/SingleDatePicker.tsx +4 -4
  299. package/src/components/ErrorFallback/ErrorFallback.tsx +3 -3
  300. package/src/components/FileInput/FileInput.tsx +4 -4
  301. package/src/components/FileItem/FileItem.tsx +5 -5
  302. package/src/components/FileList/FileList.tsx +4 -4
  303. package/src/components/FormLabel/FormLabel.tsx +1 -1
  304. package/src/components/IconButton/IconButton.styles.ts +1 -1
  305. package/src/components/InfoSprinkle/InfoSprinkle.tsx +1 -1
  306. package/src/components/InlineCode/InlineCode.tsx +1 -1
  307. package/src/components/Input/Input.tsx +10 -7
  308. package/src/components/LineGraph/LineGraph.tsx +8 -5
  309. package/src/components/Loaders/PageLoader.tsx +1 -1
  310. package/src/components/Loaders/SectionLoader.tsx +1 -1
  311. package/src/components/LogicianProvider/LogicianProvider.tsx +41 -1
  312. package/src/components/MDXEditor/MDXEditor.css +19 -0
  313. package/src/components/MDXEditor/MDXEditor.tsx +14 -18
  314. package/src/components/Markdown/Markdown.module.css +1 -1
  315. package/src/components/MaxLengthIndicator/MaxLengthIndicator.tsx +1 -1
  316. package/src/components/Menu/MenuItem.tsx +6 -3
  317. package/src/components/Menu/MenuList.tsx +7 -2
  318. package/src/components/Modal/ModalFooter/ModalFooter.tsx +1 -1
  319. package/src/components/MonthPicker/MonthPicker.tsx +1 -1
  320. package/src/components/Pagination/Pagination.tsx +2 -2
  321. package/src/components/PinInput/PinInput.tsx +1 -1
  322. package/src/components/Popover/PopoverArrowTip.tsx +1 -1
  323. package/src/components/Popover/PopoverContent.tsx +1 -1
  324. package/src/components/ProgressBar/ProgressBar.tsx +1 -1
  325. package/src/components/RadialProgress/RadialProgress.stories.tsx +1 -1
  326. package/src/components/RadialProgress/RadialProgress.tsx +7 -7
  327. package/src/components/SeeMoreButton/SeeMoreButton.styles.ts +2 -2
  328. package/src/components/SegmentedControl/SegmentedControl.tsx +7 -4
  329. package/src/components/SegmentedProgressBar/ProgressSegment.tsx +1 -1
  330. package/src/components/SegmentedProgressBar/SegmentedProgressBar.tsx +1 -1
  331. package/src/components/Select/Select.styles.ts +11 -10
  332. package/src/components/Slider/SliderFilledTrack/SliderFilledTrack.tsx +1 -1
  333. package/src/components/Slider/SliderThumb/SliderThumb.tsx +2 -2
  334. package/src/components/Slider/SliderTrack/SliderTrack.tsx +1 -1
  335. package/src/components/Spinner/Spinner.tsx +1 -1
  336. package/src/components/Switch/SwitchControl.tsx +1 -1
  337. package/src/components/Table/Table.styles.ts +1 -1
  338. package/src/components/Table/TableContainer.tsx +1 -1
  339. package/src/components/Table/Tbody.tsx +1 -1
  340. package/src/components/Table/Thead.tsx +1 -1
  341. package/src/components/Tabs/Tab/Tab.tsx +1 -1
  342. package/src/components/Tabs/TabList/TabList.tsx +1 -1
  343. package/src/components/Tag/Tag.styles.ts +19 -16
  344. package/src/components/Textarea/Textarea.tsx +10 -7
  345. package/src/components/Typography/H3.tsx +1 -1
  346. package/src/components/Typography/Subtext.tsx +1 -1
  347. package/src/components/Typography/Subtitle.tsx +1 -1
  348. package/src/components/Typography/Text.tsx +1 -1
  349. package/src/index.ts +2 -0
  350. package/src/theme/Palette.stories.tsx +114 -88
  351. package/src/theme/SemanticTokens.mdx +198 -0
  352. package/src/theme/colors.ts +229 -40
  353. package/src/theme/global.ts +12 -1
@@ -65,159 +65,395 @@ export declare const semanticTokens: {
65
65
  * Primary colors (Blue-based)
66
66
  * Use for: Primary buttons, links, focus rings, brand elements
67
67
  *
68
- * Contrast ratios (on white):
68
+ * Light contrast ratios (on white):
69
69
  * - main (#1751D0): 5.9:1 ✓ AA
70
70
  * - dark (#0D317D): 9.4:1 ✓ AAA
71
+ *
72
+ * `_dark` lightens brand steps ~2 stops so interactive/text tokens keep
73
+ * AA contrast on dark surfaces (bg.canvas → gray.1500). Background tints
74
+ * (lightest/extralight/lighter/light) map to the deep end of the scale so
75
+ * brand-tinted fills read as subtle on dark, not as glare.
71
76
  */
72
77
  readonly primary: {
73
78
  readonly lightest: {
74
- readonly value: "{colors.blue.25}";
79
+ readonly value: {
80
+ readonly base: "{colors.blue.25}";
81
+ readonly _dark: "{colors.blue.900}";
82
+ };
75
83
  };
76
84
  readonly extralight: {
77
- readonly value: "{colors.blue.50}";
85
+ readonly value: {
86
+ readonly base: "{colors.blue.50}";
87
+ readonly _dark: "{colors.blue.800}";
88
+ };
78
89
  };
79
90
  readonly lighter: {
80
- readonly value: "{colors.blue.100}";
91
+ readonly value: {
92
+ readonly base: "{colors.blue.100}";
93
+ readonly _dark: "{colors.blue.700}";
94
+ };
81
95
  };
82
96
  readonly light: {
83
- readonly value: "{colors.blue.200}";
97
+ readonly value: {
98
+ readonly base: "{colors.blue.200}";
99
+ readonly _dark: "{colors.blue.600}";
100
+ };
84
101
  };
85
102
  readonly main: {
86
- readonly value: "{colors.blue.500}";
103
+ readonly value: {
104
+ readonly base: "{colors.blue.500}";
105
+ readonly _dark: "{colors.blue.300}";
106
+ };
87
107
  };
88
108
  readonly dark: {
89
- readonly value: "{colors.blue.700}";
109
+ readonly value: {
110
+ readonly base: "{colors.blue.700}";
111
+ readonly _dark: "{colors.blue.200}";
112
+ };
90
113
  };
91
114
  readonly darker: {
92
- readonly value: "{colors.blue.900}";
115
+ readonly value: {
116
+ readonly base: "{colors.blue.900}";
117
+ readonly _dark: "{colors.blue.100}";
118
+ };
93
119
  };
94
120
  };
95
121
  /**
96
122
  * Secondary colors (Violet-based)
97
123
  * Use for: Accent elements, highlights, tags
98
124
  *
99
- * Contrast ratios (on white):
125
+ * Light contrast ratios (on white):
100
126
  * - main (#9117D0): 5.1:1 ✓ AA
101
127
  * - dark (#570D7D): 9.2:1 ✓ AAA
102
128
  */
103
129
  readonly secondary: {
104
130
  readonly lightest: {
105
- readonly value: "{colors.violet.25}";
131
+ readonly value: {
132
+ readonly base: "{colors.violet.25}";
133
+ readonly _dark: "{colors.violet.900}";
134
+ };
106
135
  };
107
136
  readonly extralight: {
108
- readonly value: "{colors.violet.50}";
137
+ readonly value: {
138
+ readonly base: "{colors.violet.50}";
139
+ readonly _dark: "{colors.violet.800}";
140
+ };
109
141
  };
110
142
  readonly lighter: {
111
- readonly value: "{colors.violet.100}";
143
+ readonly value: {
144
+ readonly base: "{colors.violet.100}";
145
+ readonly _dark: "{colors.violet.700}";
146
+ };
112
147
  };
113
148
  readonly light: {
114
- readonly value: "{colors.violet.200}";
149
+ readonly value: {
150
+ readonly base: "{colors.violet.200}";
151
+ readonly _dark: "{colors.violet.600}";
152
+ };
115
153
  };
116
154
  readonly main: {
117
- readonly value: "{colors.violet.500}";
155
+ readonly value: {
156
+ readonly base: "{colors.violet.500}";
157
+ readonly _dark: "{colors.violet.200}";
158
+ };
118
159
  };
119
160
  readonly dark: {
120
- readonly value: "{colors.violet.700}";
161
+ readonly value: {
162
+ readonly base: "{colors.violet.700}";
163
+ readonly _dark: "{colors.violet.200}";
164
+ };
121
165
  };
122
166
  readonly darker: {
123
- readonly value: "{colors.violet.900}";
167
+ readonly value: {
168
+ readonly base: "{colors.violet.900}";
169
+ readonly _dark: "{colors.violet.100}";
170
+ };
124
171
  };
125
172
  };
126
173
  /**
127
174
  * Danger colors (Rose-based)
128
175
  * Use for: Error states, destructive actions, validation errors
129
176
  *
130
- * Contrast ratios (on white):
177
+ * Light contrast ratios (on white):
131
178
  * - main (#D01721): 5.2:1 ✓ AA
132
179
  * - dark (#7D0D14): 9.6:1 ✓ AAA
133
180
  */
134
181
  readonly danger: {
135
182
  readonly lightest: {
136
- readonly value: "{colors.rose.25}";
183
+ readonly value: {
184
+ readonly base: "{colors.rose.25}";
185
+ readonly _dark: "{colors.rose.900}";
186
+ };
137
187
  };
138
188
  readonly extralight: {
139
- readonly value: "{colors.rose.50}";
189
+ readonly value: {
190
+ readonly base: "{colors.rose.50}";
191
+ readonly _dark: "{colors.rose.800}";
192
+ };
140
193
  };
141
194
  readonly lighter: {
142
- readonly value: "{colors.rose.100}";
195
+ readonly value: {
196
+ readonly base: "{colors.rose.100}";
197
+ readonly _dark: "{colors.rose.700}";
198
+ };
143
199
  };
144
200
  readonly light: {
145
- readonly value: "{colors.rose.200}";
201
+ readonly value: {
202
+ readonly base: "{colors.rose.200}";
203
+ readonly _dark: "{colors.rose.600}";
204
+ };
146
205
  };
147
206
  readonly main: {
148
- readonly value: "{colors.rose.500}";
207
+ readonly value: {
208
+ readonly base: "{colors.rose.500}";
209
+ readonly _dark: "{colors.rose.300}";
210
+ };
149
211
  };
150
212
  readonly dark: {
151
- readonly value: "{colors.rose.700}";
213
+ readonly value: {
214
+ readonly base: "{colors.rose.700}";
215
+ readonly _dark: "{colors.rose.200}";
216
+ };
152
217
  };
153
218
  readonly darker: {
154
- readonly value: "{colors.rose.900}";
219
+ readonly value: {
220
+ readonly base: "{colors.rose.900}";
221
+ readonly _dark: "{colors.rose.100}";
222
+ };
155
223
  };
156
224
  };
157
225
  /**
158
226
  * Success colors (Green-based)
159
227
  * Use for: Success messages, confirmations, positive feedback
160
228
  *
161
- * Contrast ratios (on white):
229
+ * Light contrast ratios (on white):
162
230
  * - main (#1AA612): 4.5:1 ✓ AA (large text)
163
231
  * - dark (#147D0D): 6.1:1 ✓ AA
164
232
  */
165
233
  readonly success: {
166
234
  readonly lightest: {
167
- readonly value: "{colors.green.25}";
235
+ readonly value: {
236
+ readonly base: "{colors.green.25}";
237
+ readonly _dark: "{colors.green.900}";
238
+ };
168
239
  };
169
240
  readonly extralight: {
170
- readonly value: "{colors.green.50}";
241
+ readonly value: {
242
+ readonly base: "{colors.green.50}";
243
+ readonly _dark: "{colors.green.800}";
244
+ };
171
245
  };
172
246
  readonly lighter: {
173
- readonly value: "{colors.green.100}";
247
+ readonly value: {
248
+ readonly base: "{colors.green.100}";
249
+ readonly _dark: "{colors.green.700}";
250
+ };
174
251
  };
175
252
  readonly light: {
176
- readonly value: "{colors.green.200}";
253
+ readonly value: {
254
+ readonly base: "{colors.green.200}";
255
+ readonly _dark: "{colors.green.600}";
256
+ };
177
257
  };
178
258
  readonly main: {
179
- readonly value: "{colors.green.600}";
259
+ readonly value: {
260
+ readonly base: "{colors.green.600}";
261
+ readonly _dark: "{colors.green.300}";
262
+ };
180
263
  };
181
264
  readonly dark: {
182
- readonly value: "{colors.green.700}";
265
+ readonly value: {
266
+ readonly base: "{colors.green.700}";
267
+ readonly _dark: "{colors.green.200}";
268
+ };
183
269
  };
184
270
  readonly darker: {
185
- readonly value: "{colors.green.900}";
271
+ readonly value: {
272
+ readonly base: "{colors.green.900}";
273
+ readonly _dark: "{colors.green.100}";
274
+ };
186
275
  };
187
276
  };
188
277
  /**
189
278
  * Warning colors (Gold-based)
190
279
  * Use for: Warning messages, caution states, attention needed
191
280
  *
192
- * Contrast ratios (on white):
281
+ * Light contrast ratios (on white):
193
282
  * - main (#D0A117): 3.0:1 (use dark on light backgrounds)
194
283
  * - dark (#7D610D): 5.8:1 ✓ AA
284
+ *
285
+ * NOTE: gold is the AA risk in both modes — verify per-pair contrast in the
286
+ * Storybook palette before relying on `warning.main` for text.
195
287
  */
196
288
  readonly warning: {
197
289
  readonly lightest: {
198
- readonly value: "{colors.gold.25}";
290
+ readonly value: {
291
+ readonly base: "{colors.gold.25}";
292
+ readonly _dark: "{colors.gold.900}";
293
+ };
199
294
  };
200
295
  readonly extralight: {
201
- readonly value: "{colors.gold.50}";
296
+ readonly value: {
297
+ readonly base: "{colors.gold.50}";
298
+ readonly _dark: "{colors.gold.800}";
299
+ };
202
300
  };
203
301
  readonly lighter: {
204
- readonly value: "{colors.gold.100}";
302
+ readonly value: {
303
+ readonly base: "{colors.gold.100}";
304
+ readonly _dark: "{colors.gold.700}";
305
+ };
205
306
  };
206
307
  readonly light: {
207
- readonly value: "{colors.gold.200}";
308
+ readonly value: {
309
+ readonly base: "{colors.gold.200}";
310
+ readonly _dark: "{colors.gold.600}";
311
+ };
208
312
  };
209
313
  readonly main: {
210
- readonly value: "{colors.gold.500}";
314
+ readonly value: {
315
+ readonly base: "{colors.gold.500}";
316
+ readonly _dark: "{colors.gold.300}";
317
+ };
211
318
  };
212
319
  readonly dark: {
213
- readonly value: "{colors.gold.700}";
320
+ readonly value: {
321
+ readonly base: "{colors.gold.700}";
322
+ readonly _dark: "{colors.gold.200}";
323
+ };
214
324
  };
215
325
  readonly darker: {
216
- readonly value: "{colors.gold.900}";
326
+ readonly value: {
327
+ readonly base: "{colors.gold.900}";
328
+ readonly _dark: "{colors.gold.100}";
329
+ };
330
+ };
331
+ };
332
+ /**
333
+ * Neutral background tokens — map onto the gray.0–1500 scale.
334
+ * Use for: page/canvas, raised surfaces (cards, menus), subtle/muted fills,
335
+ * and inverse surfaces (tooltips, contrast banners).
336
+ *
337
+ * - canvas: app background
338
+ * - surface: raised surface (card, popover, menu)
339
+ * - subtle: subtle fill / secondary surface
340
+ * - muted: muted fill / tertiary surface, hover
341
+ * - inverse: high-contrast surface (flips to light in dark mode)
342
+ */
343
+ readonly bg: {
344
+ readonly canvas: {
345
+ readonly value: {
346
+ readonly base: "{colors.gray.0}";
347
+ readonly _dark: "{colors.gray.1500}";
348
+ };
349
+ };
350
+ readonly surface: {
351
+ readonly value: {
352
+ readonly base: "{colors.white}";
353
+ readonly _dark: "{colors.gray.1400}";
354
+ };
355
+ };
356
+ readonly subtle: {
357
+ readonly value: {
358
+ readonly base: "{colors.gray.50}";
359
+ readonly _dark: "{colors.gray.1300}";
360
+ };
361
+ };
362
+ readonly muted: {
363
+ readonly value: {
364
+ readonly base: "{colors.gray.100}";
365
+ readonly _dark: "{colors.gray.1200}";
366
+ };
367
+ };
368
+ readonly inverse: {
369
+ readonly value: {
370
+ readonly base: "{colors.gray.1300}";
371
+ readonly _dark: "{colors.gray.50}";
372
+ };
373
+ };
374
+ readonly panel: {
375
+ readonly value: {
376
+ readonly base: "{colors.white}";
377
+ readonly _dark: "{colors.gray.1400}";
378
+ };
379
+ };
380
+ };
381
+ /**
382
+ * Neutral foreground (text/icon) tokens — map onto the gray.0–1500 scale.
383
+ *
384
+ * - default: primary text/icons
385
+ * - muted: secondary text
386
+ * - subtle: tertiary / placeholder text
387
+ * - inverse: text on inverse surfaces (flips with mode)
388
+ */
389
+ readonly fg: {
390
+ readonly default: {
391
+ readonly value: {
392
+ readonly base: "{colors.gray.1300}";
393
+ readonly _dark: "{colors.gray.200}";
394
+ };
395
+ };
396
+ readonly muted: {
397
+ readonly value: {
398
+ readonly base: "{colors.gray.900}";
399
+ readonly _dark: "{colors.gray.400}";
400
+ };
401
+ };
402
+ readonly subtle: {
403
+ readonly value: {
404
+ readonly base: "{colors.gray.700}";
405
+ readonly _dark: "{colors.gray.600}";
406
+ };
407
+ };
408
+ readonly inverse: {
409
+ readonly value: {
410
+ readonly base: "{colors.gray.0}";
411
+ readonly _dark: "{colors.gray.1400}";
412
+ };
413
+ };
414
+ };
415
+ /**
416
+ * Neutral border tokens — map onto the gray.0–1500 scale.
417
+ *
418
+ * - default: standard borders, dividers
419
+ * - subtle: low-emphasis dividers
420
+ * - strong: high-emphasis borders, focus outlines on neutral
421
+ */
422
+ readonly border: {
423
+ readonly default: {
424
+ readonly value: {
425
+ readonly base: "{colors.gray.300}";
426
+ readonly _dark: "{colors.gray.1100}";
427
+ };
428
+ };
429
+ readonly subtle: {
430
+ readonly value: {
431
+ readonly base: "{colors.gray.200}";
432
+ readonly _dark: "{colors.gray.1300}";
433
+ };
434
+ };
435
+ readonly strong: {
436
+ readonly value: {
437
+ readonly base: "{colors.gray.500}";
438
+ readonly _dark: "{colors.gray.900}";
439
+ };
217
440
  };
218
441
  };
219
442
  };
220
443
  };
444
+ /**
445
+ * Union of every semantic color token name exposed by the Logician theme,
446
+ * in Chakra dotted-path form (e.g. `fg.default`, `bg.surface`, `primary.main`).
447
+ *
448
+ * This is the contract consumed by the factchat primitive→semantic codemod and
449
+ * by reviewers. It is intentionally hand-maintained alongside `semanticTokens`
450
+ * so a rename here is a visible, reviewable diff.
451
+ *
452
+ * Note: `bg.panel` is deliberately omitted — it is an internal realignment of a
453
+ * Chakra default (for overlay surfaces), not part of the public migration
454
+ * contract. App code should use `bg.surface`/`bg.canvas`.
455
+ */
456
+ export type SemanticColorToken = `bg.${'canvas' | 'surface' | 'subtle' | 'muted' | 'inverse'}` | `fg.${'default' | 'muted' | 'subtle' | 'inverse'}` | `border.${'default' | 'subtle' | 'strong'}` | `${'primary' | 'secondary' | 'danger' | 'success' | 'warning'}.${'lightest' | 'extralight' | 'lighter' | 'light' | 'main' | 'dark' | 'darker'}`;
221
457
  /**
222
458
  * Primitive color palette following the Golden Ratio system.
223
459
  *
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc;;QAEvB;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;QAWH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;QAWH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;QAWH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;QAWH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;CAWG,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,MAAM;IACjB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;;;;;;;;OAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqBH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBJ,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc;;QAEvB;;;;;;;;;;;;WAYG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyBH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6BH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyBH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyBH;;;;;;;;;;WAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyBH;;;;;;;;;;WAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0BH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoBH;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;CAaG,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,GAC1B,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,EAAE,GAC7D,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,EAAE,GAClD,UAAU,SAAS,GAAG,QAAQ,GAAG,QAAQ,EAAE,GAC3C,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,IACzD,UAAU,GACV,YAAY,GACZ,SAAS,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,EAAE,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,MAAM;IACjB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;;;;;;;;;OAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqBH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBJ,CAAC"}