@dxos/ui-theme 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6

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 (384) hide show
  1. package/dist/lib/browser/index.mjs +739 -2792
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +739 -2792
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/plugin/node-cjs/main.css +1529 -0
  8. package/dist/plugin/node-cjs/main.css.map +7 -0
  9. package/dist/plugin/node-cjs/meta.json +1 -1
  10. package/dist/plugin/node-cjs/plugins/ThemePlugin.cjs +137 -0
  11. package/dist/plugin/node-cjs/plugins/ThemePlugin.cjs.map +7 -0
  12. package/dist/plugin/node-esm/main.css +1529 -0
  13. package/dist/plugin/node-esm/main.css.map +7 -0
  14. package/dist/plugin/node-esm/meta.json +1 -1
  15. package/dist/plugin/node-esm/plugins/ThemePlugin.mjs +105 -0
  16. package/dist/plugin/node-esm/plugins/ThemePlugin.mjs.map +7 -0
  17. package/dist/types/src/Theme.stories.d.ts +27 -0
  18. package/dist/types/src/Theme.stories.d.ts.map +1 -0
  19. package/dist/types/src/defs.d.ts +21 -0
  20. package/dist/types/src/defs.d.ts.map +1 -0
  21. package/dist/types/src/fragments/density.d.ts +7 -0
  22. package/dist/types/src/fragments/density.d.ts.map +1 -0
  23. package/dist/types/src/fragments/disabled.d.ts.map +1 -0
  24. package/dist/types/src/fragments/hover.d.ts +10 -0
  25. package/dist/types/src/fragments/hover.d.ts.map +1 -0
  26. package/dist/types/src/fragments/index.d.ts +5 -0
  27. package/dist/types/src/fragments/index.d.ts.map +1 -0
  28. package/dist/types/src/fragments/text.d.ts +3 -0
  29. package/dist/types/src/fragments/text.d.ts.map +1 -0
  30. package/dist/types/src/index.d.ts +3 -10
  31. package/dist/types/src/index.d.ts.map +1 -1
  32. package/dist/types/src/plugins/ThemePlugin.d.ts +16 -0
  33. package/dist/types/src/plugins/ThemePlugin.d.ts.map +1 -0
  34. package/dist/types/src/plugins/dark-mode.d.ts +1 -0
  35. package/dist/types/src/plugins/dark-mode.d.ts.map +1 -0
  36. package/dist/types/src/theme/components/avatar.d.ts.map +1 -0
  37. package/dist/types/src/theme/components/breadcrumb.d.ts.map +1 -0
  38. package/dist/types/src/theme/components/button.d.ts +15 -0
  39. package/dist/types/src/theme/components/button.d.ts.map +1 -0
  40. package/dist/types/src/theme/components/card.d.ts +12 -0
  41. package/dist/types/src/theme/components/card.d.ts.map +1 -0
  42. package/dist/types/src/{styles → theme}/components/dialog.d.ts +2 -0
  43. package/dist/types/src/theme/components/dialog.d.ts.map +1 -0
  44. package/dist/types/src/theme/components/focus.d.ts +6 -0
  45. package/dist/types/src/theme/components/focus.d.ts.map +1 -0
  46. package/dist/types/src/theme/components/icon-button.d.ts.map +1 -0
  47. package/dist/types/src/{styles → theme}/components/icon.d.ts +3 -0
  48. package/dist/types/src/theme/components/icon.d.ts.map +1 -0
  49. package/dist/types/src/{styles → theme}/components/index.d.ts +4 -1
  50. package/dist/types/src/theme/components/index.d.ts.map +1 -0
  51. package/dist/types/src/{styles → theme}/components/input.d.ts +25 -21
  52. package/dist/types/src/theme/components/input.d.ts.map +1 -0
  53. package/dist/types/src/theme/components/link.d.ts.map +1 -0
  54. package/dist/types/src/theme/components/list.d.ts.map +1 -0
  55. package/dist/types/src/{styles → theme}/components/main.d.ts +2 -7
  56. package/dist/types/src/theme/components/main.d.ts.map +1 -0
  57. package/dist/types/src/{styles → theme}/components/menu.d.ts +1 -1
  58. package/dist/types/src/theme/components/menu.d.ts.map +1 -0
  59. package/dist/types/src/{styles → theme}/components/message.d.ts +1 -0
  60. package/dist/types/src/theme/components/message.d.ts.map +1 -0
  61. package/dist/types/src/{styles → theme}/components/popover.d.ts +1 -1
  62. package/dist/types/src/theme/components/popover.d.ts.map +1 -0
  63. package/dist/types/src/theme/components/scroll-area.d.ts +32 -0
  64. package/dist/types/src/theme/components/scroll-area.d.ts.map +1 -0
  65. package/dist/types/src/theme/components/select.d.ts.map +1 -0
  66. package/dist/types/src/theme/components/separator.d.ts.map +1 -0
  67. package/dist/types/src/theme/components/skeleton.d.ts +7 -0
  68. package/dist/types/src/theme/components/skeleton.d.ts.map +1 -0
  69. package/dist/types/src/theme/components/splitter.d.ts +4 -0
  70. package/dist/types/src/theme/components/splitter.d.ts.map +1 -0
  71. package/dist/types/src/{styles → theme}/components/status.d.ts +1 -1
  72. package/dist/types/src/theme/components/status.d.ts.map +1 -0
  73. package/dist/types/src/theme/components/tag.d.ts.map +1 -0
  74. package/dist/types/src/theme/components/toast.d.ts.map +1 -0
  75. package/dist/types/src/theme/components/toolbar.d.ts +11 -0
  76. package/dist/types/src/theme/components/toolbar.d.ts.map +1 -0
  77. package/dist/types/src/theme/components/tooltip.d.ts.map +1 -0
  78. package/dist/types/src/theme/components/treegrid.d.ts.map +1 -0
  79. package/dist/types/src/theme/index.d.ts +4 -0
  80. package/dist/types/src/theme/index.d.ts.map +1 -0
  81. package/dist/types/src/theme/primitives/column.d.ts +12 -0
  82. package/dist/types/src/theme/primitives/column.d.ts.map +1 -0
  83. package/dist/types/src/theme/primitives/index.d.ts +3 -0
  84. package/dist/types/src/theme/primitives/index.d.ts.map +1 -0
  85. package/dist/types/src/theme/primitives/panel.d.ts +13 -0
  86. package/dist/types/src/theme/primitives/panel.d.ts.map +1 -0
  87. package/dist/types/src/theme/theme.d.ts +5 -0
  88. package/dist/types/src/theme/theme.d.ts.map +1 -0
  89. package/dist/types/src/{styles/fragments → util}/elevation.d.ts +0 -6
  90. package/dist/types/src/util/elevation.d.ts.map +1 -0
  91. package/dist/types/src/util/hash-styles.d.ts +8 -5
  92. package/dist/types/src/util/hash-styles.d.ts.map +1 -1
  93. package/dist/types/src/util/index.d.ts +3 -0
  94. package/dist/types/src/util/index.d.ts.map +1 -1
  95. package/dist/types/src/util/mx.d.ts +35 -0
  96. package/dist/types/src/util/mx.d.ts.map +1 -1
  97. package/dist/types/src/util/size.d.ts +27 -0
  98. package/dist/types/src/util/size.d.ts.map +1 -0
  99. package/dist/types/src/util/valence.d.ts +4 -0
  100. package/dist/types/src/util/valence.d.ts.map +1 -0
  101. package/dist/types/tsconfig.tsbuildinfo +1 -1
  102. package/package.json +24 -27
  103. package/src/Theme.stories.tsx +224 -0
  104. package/src/css/base/base.css +43 -0
  105. package/src/{styles/layers → css/base}/typography.css +3 -5
  106. package/src/{styles/layers → css/components}/button.css +23 -14
  107. package/src/{styles/layers → css/components}/checkbox.css +12 -8
  108. package/src/{styles/layers → css/components}/dialog.css +16 -15
  109. package/src/{styles/layers/focus-ring.css → css/components/focus.css} +60 -41
  110. package/src/css/components/icon.css +9 -0
  111. package/src/css/components/link.css +9 -0
  112. package/src/css/components/panel.css +117 -0
  113. package/src/css/components/scrollbar.css +24 -0
  114. package/src/css/components/selected.css +30 -0
  115. package/src/css/components/surface.css +34 -0
  116. package/src/css/components/tag.css +130 -0
  117. package/src/css/components/text.css +124 -0
  118. package/src/css/integrations/codemirror.css +33 -0
  119. package/src/css/integrations/tldraw.css +14 -0
  120. package/src/css/layout/main.css +205 -0
  121. package/src/{styles/layers → css/layout}/native.css +6 -4
  122. package/src/css/layout/positioning.css +19 -0
  123. package/src/{styles/layers → css/layout}/size.css +117 -109
  124. package/src/css/theme/animation.css +229 -0
  125. package/src/css/theme/border.css +23 -0
  126. package/src/css/theme/palette.css +36 -0
  127. package/src/css/theme/semantic.css +116 -0
  128. package/src/css/theme/spacing.css +147 -0
  129. package/src/css/theme/styles.css +145 -0
  130. package/src/css/theme/text.css +37 -0
  131. package/src/css/utilities.css +76 -0
  132. package/src/defs.ts +48 -0
  133. package/src/fragments/AUDIT.md +58 -0
  134. package/src/fragments/density.ts +13 -0
  135. package/src/fragments/hover.ts +18 -0
  136. package/src/fragments/index.ts +10 -0
  137. package/src/fragments/text.ts +6 -0
  138. package/src/index.ts +3 -14
  139. package/src/main.css +87 -0
  140. package/src/plugins/ThemePlugin.ts +126 -0
  141. package/src/plugins/dark-mode.ts +22 -0
  142. package/src/plugins/main.css +45 -0
  143. package/src/{styles → theme}/components/avatar.ts +12 -13
  144. package/src/theme/components/button.ts +48 -0
  145. package/src/theme/components/card.ts +98 -0
  146. package/src/{styles → theme}/components/dialog.ts +17 -10
  147. package/src/theme/components/focus.ts +33 -0
  148. package/src/{styles → theme}/components/icon-button.ts +1 -2
  149. package/src/theme/components/icon.ts +28 -0
  150. package/src/{styles → theme}/components/index.ts +4 -1
  151. package/src/theme/components/input.ts +171 -0
  152. package/src/{styles → theme}/components/link.ts +3 -4
  153. package/src/{styles → theme}/components/list.ts +5 -5
  154. package/src/{styles → theme}/components/main.ts +2 -6
  155. package/src/{styles → theme}/components/menu.ts +11 -21
  156. package/src/{styles → theme}/components/message.ts +11 -7
  157. package/src/{styles → theme}/components/popover.ts +13 -12
  158. package/src/theme/components/scroll-area.ts +110 -0
  159. package/src/{styles → theme}/components/select.ts +8 -16
  160. package/src/{styles → theme}/components/separator.ts +3 -3
  161. package/src/theme/components/skeleton.ts +23 -0
  162. package/src/theme/components/splitter.ts +20 -0
  163. package/src/{styles → theme}/components/status.ts +7 -7
  164. package/src/{styles → theme}/components/tag.ts +1 -1
  165. package/src/{styles → theme}/components/toast.ts +6 -8
  166. package/src/theme/components/toolbar.ts +35 -0
  167. package/src/{styles → theme}/components/tooltip.ts +4 -6
  168. package/src/{styles → theme}/components/treegrid.ts +9 -9
  169. package/src/{styles → theme}/index.ts +2 -2
  170. package/src/theme/primitives/column.ts +47 -0
  171. package/src/theme/primitives/index.ts +6 -0
  172. package/src/theme/primitives/panel.ts +44 -0
  173. package/src/{styles → theme}/theme.ts +27 -9
  174. package/src/typings.d.ts +0 -1
  175. package/src/{styles/fragments → util}/elevation.ts +6 -8
  176. package/src/util/hash-styles.ts +118 -98
  177. package/src/util/index.ts +3 -0
  178. package/src/util/mx.ts +159 -43
  179. package/src/util/size.ts +103 -0
  180. package/src/util/valence.ts +33 -0
  181. package/dist/plugin/node-cjs/chunk-UUMDOU7E.cjs +0 -79
  182. package/dist/plugin/node-cjs/chunk-UUMDOU7E.cjs.map +0 -7
  183. package/dist/plugin/node-cjs/chunk-ZVALPM6U.cjs +0 -1619
  184. package/dist/plugin/node-cjs/chunk-ZVALPM6U.cjs.map +0 -7
  185. package/dist/plugin/node-cjs/config/tailwind.cjs +0 -29
  186. package/dist/plugin/node-cjs/config/tailwind.cjs.map +0 -7
  187. package/dist/plugin/node-cjs/plugins/esbuild-plugin.cjs +0 -90
  188. package/dist/plugin/node-cjs/plugins/esbuild-plugin.cjs.map +0 -7
  189. package/dist/plugin/node-cjs/plugins/plugin.cjs +0 -124
  190. package/dist/plugin/node-cjs/plugins/plugin.cjs.map +0 -7
  191. package/dist/plugin/node-cjs/theme.css +0 -1418
  192. package/dist/plugin/node-cjs/theme.css.map +0 -7
  193. package/dist/plugin/node-esm/chunk-AFRHJHP4.mjs +0 -49
  194. package/dist/plugin/node-esm/chunk-AFRHJHP4.mjs.map +0 -7
  195. package/dist/plugin/node-esm/chunk-HJE6EZWE.mjs +0 -1614
  196. package/dist/plugin/node-esm/chunk-HJE6EZWE.mjs.map +0 -7
  197. package/dist/plugin/node-esm/config/tailwind.mjs +0 -8
  198. package/dist/plugin/node-esm/config/tailwind.mjs.map +0 -7
  199. package/dist/plugin/node-esm/plugins/esbuild-plugin.mjs +0 -63
  200. package/dist/plugin/node-esm/plugins/esbuild-plugin.mjs.map +0 -7
  201. package/dist/plugin/node-esm/plugins/plugin.mjs +0 -98
  202. package/dist/plugin/node-esm/plugins/plugin.mjs.map +0 -7
  203. package/dist/plugin/node-esm/theme.css +0 -1418
  204. package/dist/plugin/node-esm/theme.css.map +0 -7
  205. package/dist/types/src/Tokens.stories.d.ts +0 -10
  206. package/dist/types/src/Tokens.stories.d.ts.map +0 -1
  207. package/dist/types/src/config/index.d.ts +0 -3
  208. package/dist/types/src/config/index.d.ts.map +0 -1
  209. package/dist/types/src/config/tailwind.d.ts +0 -9
  210. package/dist/types/src/config/tailwind.d.ts.map +0 -1
  211. package/dist/types/src/config/tokens/alias-colors.d.ts +0 -21
  212. package/dist/types/src/config/tokens/alias-colors.d.ts.map +0 -1
  213. package/dist/types/src/config/tokens/index.d.ts +0 -486
  214. package/dist/types/src/config/tokens/index.d.ts.map +0 -1
  215. package/dist/types/src/config/tokens/lengths.d.ts +0 -139
  216. package/dist/types/src/config/tokens/lengths.d.ts.map +0 -1
  217. package/dist/types/src/config/tokens/physical-colors.d.ts +0 -23
  218. package/dist/types/src/config/tokens/physical-colors.d.ts.map +0 -1
  219. package/dist/types/src/config/tokens/semantic-colors.d.ts +0 -187
  220. package/dist/types/src/config/tokens/semantic-colors.d.ts.map +0 -1
  221. package/dist/types/src/config/tokens/sememes-calls.d.ts +0 -3
  222. package/dist/types/src/config/tokens/sememes-calls.d.ts.map +0 -1
  223. package/dist/types/src/config/tokens/sememes-codemirror.d.ts +0 -43
  224. package/dist/types/src/config/tokens/sememes-codemirror.d.ts.map +0 -1
  225. package/dist/types/src/config/tokens/sememes-hue.d.ts +0 -4
  226. package/dist/types/src/config/tokens/sememes-hue.d.ts.map +0 -1
  227. package/dist/types/src/config/tokens/sememes-sheet.d.ts +0 -58
  228. package/dist/types/src/config/tokens/sememes-sheet.d.ts.map +0 -1
  229. package/dist/types/src/config/tokens/sememes-system.d.ts +0 -99
  230. package/dist/types/src/config/tokens/sememes-system.d.ts.map +0 -1
  231. package/dist/types/src/config/tokens/sizes.d.ts +0 -7
  232. package/dist/types/src/config/tokens/sizes.d.ts.map +0 -1
  233. package/dist/types/src/config/tokens/types.d.ts +0 -5
  234. package/dist/types/src/config/tokens/types.d.ts.map +0 -1
  235. package/dist/types/src/plugins/esbuild-plugin.d.ts +0 -9
  236. package/dist/types/src/plugins/esbuild-plugin.d.ts.map +0 -1
  237. package/dist/types/src/plugins/plugin.d.ts +0 -20
  238. package/dist/types/src/plugins/plugin.d.ts.map +0 -1
  239. package/dist/types/src/plugins/resolveContent.d.ts +0 -2
  240. package/dist/types/src/plugins/resolveContent.d.ts.map +0 -1
  241. package/dist/types/src/styles/components/anchored-overflow.d.ts +0 -6
  242. package/dist/types/src/styles/components/anchored-overflow.d.ts.map +0 -1
  243. package/dist/types/src/styles/components/avatar.d.ts.map +0 -1
  244. package/dist/types/src/styles/components/breadcrumb.d.ts.map +0 -1
  245. package/dist/types/src/styles/components/button.d.ts +0 -19
  246. package/dist/types/src/styles/components/button.d.ts.map +0 -1
  247. package/dist/types/src/styles/components/dialog.d.ts.map +0 -1
  248. package/dist/types/src/styles/components/icon-button.d.ts.map +0 -1
  249. package/dist/types/src/styles/components/icon.d.ts.map +0 -1
  250. package/dist/types/src/styles/components/index.d.ts.map +0 -1
  251. package/dist/types/src/styles/components/input.d.ts.map +0 -1
  252. package/dist/types/src/styles/components/link.d.ts.map +0 -1
  253. package/dist/types/src/styles/components/list.d.ts.map +0 -1
  254. package/dist/types/src/styles/components/main.d.ts.map +0 -1
  255. package/dist/types/src/styles/components/menu.d.ts.map +0 -1
  256. package/dist/types/src/styles/components/message.d.ts.map +0 -1
  257. package/dist/types/src/styles/components/popover.d.ts.map +0 -1
  258. package/dist/types/src/styles/components/scroll-area.d.ts +0 -9
  259. package/dist/types/src/styles/components/scroll-area.d.ts.map +0 -1
  260. package/dist/types/src/styles/components/select.d.ts.map +0 -1
  261. package/dist/types/src/styles/components/separator.d.ts.map +0 -1
  262. package/dist/types/src/styles/components/status.d.ts.map +0 -1
  263. package/dist/types/src/styles/components/tag.d.ts.map +0 -1
  264. package/dist/types/src/styles/components/toast.d.ts.map +0 -1
  265. package/dist/types/src/styles/components/toolbar.d.ts +0 -11
  266. package/dist/types/src/styles/components/toolbar.d.ts.map +0 -1
  267. package/dist/types/src/styles/components/tooltip.d.ts.map +0 -1
  268. package/dist/types/src/styles/components/treegrid.d.ts.map +0 -1
  269. package/dist/types/src/styles/fragments/density.d.ts +0 -13
  270. package/dist/types/src/styles/fragments/density.d.ts.map +0 -1
  271. package/dist/types/src/styles/fragments/dimension.d.ts +0 -5
  272. package/dist/types/src/styles/fragments/dimension.d.ts.map +0 -1
  273. package/dist/types/src/styles/fragments/disabled.d.ts.map +0 -1
  274. package/dist/types/src/styles/fragments/elevation.d.ts.map +0 -1
  275. package/dist/types/src/styles/fragments/focus.d.ts +0 -6
  276. package/dist/types/src/styles/fragments/focus.d.ts.map +0 -1
  277. package/dist/types/src/styles/fragments/group.d.ts +0 -5
  278. package/dist/types/src/styles/fragments/group.d.ts.map +0 -1
  279. package/dist/types/src/styles/fragments/hover.d.ts +0 -17
  280. package/dist/types/src/styles/fragments/hover.d.ts.map +0 -1
  281. package/dist/types/src/styles/fragments/index.d.ts +0 -17
  282. package/dist/types/src/styles/fragments/index.d.ts.map +0 -1
  283. package/dist/types/src/styles/fragments/layout.d.ts +0 -3
  284. package/dist/types/src/styles/fragments/layout.d.ts.map +0 -1
  285. package/dist/types/src/styles/fragments/motion.d.ts +0 -2
  286. package/dist/types/src/styles/fragments/motion.d.ts.map +0 -1
  287. package/dist/types/src/styles/fragments/ornament.d.ts +0 -5
  288. package/dist/types/src/styles/fragments/ornament.d.ts.map +0 -1
  289. package/dist/types/src/styles/fragments/selected.d.ts +0 -13
  290. package/dist/types/src/styles/fragments/selected.d.ts.map +0 -1
  291. package/dist/types/src/styles/fragments/shimmer.d.ts +0 -3
  292. package/dist/types/src/styles/fragments/shimmer.d.ts.map +0 -1
  293. package/dist/types/src/styles/fragments/size.d.ts +0 -9
  294. package/dist/types/src/styles/fragments/size.d.ts.map +0 -1
  295. package/dist/types/src/styles/fragments/surface.d.ts +0 -9
  296. package/dist/types/src/styles/fragments/surface.d.ts.map +0 -1
  297. package/dist/types/src/styles/fragments/text.d.ts +0 -7
  298. package/dist/types/src/styles/fragments/text.d.ts.map +0 -1
  299. package/dist/types/src/styles/fragments/valence.d.ts +0 -13
  300. package/dist/types/src/styles/fragments/valence.d.ts.map +0 -1
  301. package/dist/types/src/styles/index.d.ts +0 -4
  302. package/dist/types/src/styles/index.d.ts.map +0 -1
  303. package/dist/types/src/styles/theme.d.ts +0 -5
  304. package/dist/types/src/styles/theme.d.ts.map +0 -1
  305. package/dist/types/src/tailwind.d.ts +0 -3
  306. package/dist/types/src/tailwind.d.ts.map +0 -1
  307. package/dist/types/src/types.d.ts +0 -3
  308. package/dist/types/src/types.d.ts.map +0 -1
  309. package/dist/types/src/util/withLogical.d.ts +0 -164
  310. package/dist/types/src/util/withLogical.d.ts.map +0 -1
  311. package/src/Tokens.stories.tsx +0 -88
  312. package/src/config/index.ts +0 -6
  313. package/src/config/tailwind.ts +0 -264
  314. package/src/config/tokens/alias-colors.ts +0 -39
  315. package/src/config/tokens/index.ts +0 -92
  316. package/src/config/tokens/lengths.ts +0 -97
  317. package/src/config/tokens/physical-colors.ts +0 -125
  318. package/src/config/tokens/semantic-colors.ts +0 -27
  319. package/src/config/tokens/sememes-calls.ts +0 -17
  320. package/src/config/tokens/sememes-codemirror.ts +0 -50
  321. package/src/config/tokens/sememes-hue.ts +0 -54
  322. package/src/config/tokens/sememes-sheet.ts +0 -62
  323. package/src/config/tokens/sememes-system.ts +0 -302
  324. package/src/config/tokens/sizes.ts +0 -10
  325. package/src/config/tokens/types.ts +0 -9
  326. package/src/docs/theme.drawio.svg +0 -635
  327. package/src/plugins/esbuild-plugin.ts +0 -65
  328. package/src/plugins/plugin.ts +0 -130
  329. package/src/plugins/resolveContent.ts +0 -51
  330. package/src/styles/components/README.md +0 -6
  331. package/src/styles/components/anchored-overflow.ts +0 -20
  332. package/src/styles/components/button.ts +0 -48
  333. package/src/styles/components/icon.ts +0 -19
  334. package/src/styles/components/input.ts +0 -177
  335. package/src/styles/components/scroll-area.ts +0 -43
  336. package/src/styles/components/toolbar.ts +0 -29
  337. package/src/styles/fragments/density.ts +0 -17
  338. package/src/styles/fragments/dimension.ts +0 -8
  339. package/src/styles/fragments/focus.ts +0 -16
  340. package/src/styles/fragments/group.ts +0 -12
  341. package/src/styles/fragments/hover.ts +0 -25
  342. package/src/styles/fragments/index.ts +0 -20
  343. package/src/styles/fragments/layout.ts +0 -7
  344. package/src/styles/fragments/motion.ts +0 -6
  345. package/src/styles/fragments/ornament.ts +0 -10
  346. package/src/styles/fragments/selected.ts +0 -45
  347. package/src/styles/fragments/shimmer.ts +0 -9
  348. package/src/styles/fragments/size.ts +0 -117
  349. package/src/styles/fragments/surface.ts +0 -29
  350. package/src/styles/fragments/text.ts +0 -12
  351. package/src/styles/fragments/valence.ts +0 -46
  352. package/src/styles/layers/README.md +0 -15
  353. package/src/styles/layers/anchored-overflow.css +0 -9
  354. package/src/styles/layers/animation.css +0 -17
  355. package/src/styles/layers/attention.css +0 -8
  356. package/src/styles/layers/base.css +0 -25
  357. package/src/styles/layers/can-scroll.css +0 -26
  358. package/src/styles/layers/drag-preview.css +0 -18
  359. package/src/styles/layers/hues.css +0 -110
  360. package/src/styles/layers/index.css +0 -26
  361. package/src/styles/layers/main.css +0 -227
  362. package/src/styles/layers/positioning.css +0 -23
  363. package/src/styles/layers/surfaces.css +0 -31
  364. package/src/styles/layers/tag.css +0 -132
  365. package/src/styles/layers/tldraw.css +0 -91
  366. package/src/styles/layers/tokens.css +0 -46
  367. package/src/tailwind.ts +0 -7
  368. package/src/theme.css +0 -9
  369. package/src/types.ts +0 -7
  370. package/src/util/withLogical.ts +0 -114
  371. /package/dist/types/src/{styles/fragments → fragments}/disabled.d.ts +0 -0
  372. /package/dist/types/src/{styles → theme}/components/avatar.d.ts +0 -0
  373. /package/dist/types/src/{styles → theme}/components/breadcrumb.d.ts +0 -0
  374. /package/dist/types/src/{styles → theme}/components/icon-button.d.ts +0 -0
  375. /package/dist/types/src/{styles → theme}/components/link.d.ts +0 -0
  376. /package/dist/types/src/{styles → theme}/components/list.d.ts +0 -0
  377. /package/dist/types/src/{styles → theme}/components/select.d.ts +0 -0
  378. /package/dist/types/src/{styles → theme}/components/separator.d.ts +0 -0
  379. /package/dist/types/src/{styles → theme}/components/tag.d.ts +0 -0
  380. /package/dist/types/src/{styles → theme}/components/toast.d.ts +0 -0
  381. /package/dist/types/src/{styles → theme}/components/tooltip.d.ts +0 -0
  382. /package/dist/types/src/{styles → theme}/components/treegrid.d.ts +0 -0
  383. /package/src/{styles/fragments → fragments}/disabled.ts +0 -0
  384. /package/src/{styles → theme}/components/breadcrumb.ts +0 -0
@@ -1,20 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
-
5
- export * from './density';
6
- export * from './disabled';
7
- export * from './dimension';
8
- export * from './elevation';
9
- export * from './focus';
10
- export * from './group';
11
- export * from './hover';
12
- export * from './layout';
13
- export * from './motion';
14
- export * from './ornament';
15
- export * from './selected';
16
- export * from './shimmer';
17
- export * from './surface';
18
- export * from './size';
19
- export * from './text';
20
- export * from './valence';
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- export const bounceLayout = 'fixed inset-0 z-0 overflow-auto overscroll-auto';
6
-
7
- export const fixedInsetFlexLayout = 'flex flex-col fixed inset-0 overflow-hidden overscroll-none';
@@ -1,6 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- export const popperMotion =
6
- 'will-change-[opacity,transform] data-[side=top]:animate-slide-down-and-fade data-[side=right]:animate-slide-left-and-fade data-[side=bottom]:animate-slide-up-and-fade data-[side=left]:animate-slide-right-and-fade';
@@ -1,10 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
-
5
- // TODO(burdon): Remove?
6
- export const separatorBorderColor = 'border-separator';
7
- export const subduedSeparatorBorderColor = 'border-subduedSeparator';
8
-
9
- export const inlineSeparator = 'self-stretch border-ie mli-1';
10
- export const blockSeparator = 'self-stretch border-be mlb-1';
@@ -1,45 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import { type ComponentFragment } from '@dxos/ui-types';
6
-
7
- import { ghostHover } from './hover';
8
-
9
- // TODO(burdon): Use semantic tokens (e.g., accentSurfaceHover, bg-gridSelectionOverlay)?
10
-
11
- export const ghostSelectedCurrent = [
12
- ghostHover,
13
- 'aria-[current]:bg-inputSurface hover:aria-[current]:bg-hoverSurface',
14
- 'aria-selected:bg-primary-100 dark:aria-selected:bg-primary-850 hover:aria-selected:bg-primary-150 hover:dark:aria-selected:bg-primary-800',
15
- 'aria-[current]:aria-selected:bg-primary-200 dark:aria-[current]:aria-selected:bg-primary-750 hover:aria-[current]:aria-selected:bg-primary-200 hover:dark:aria-[current]:aria-selected:bg-primary-750',
16
- ];
17
-
18
- export const ghostHighlighted =
19
- 'data-[highlighted]:bg-primary-100 dark:data-[highlighted]:bg-primary-600 hover:data-[highlighted]:bg-primary-150 hover:dark:data-[highlighted]:bg-primary-500';
20
-
21
- export const ghostSelectedTrackingInterFromNormal = 'tracking-[0.0092em]';
22
-
23
- export const ghostSelected =
24
- 'aria-selected:bg-baseSurface aria-selected:text-accentText hover:aria-selected:text-accentTextHover aria-selected:font-semibold aria-selected:tracking-normal transition-[color,font-variation-settings,letter-spacing]';
25
-
26
- export const ghostSelectedContainerMd =
27
- '@md:aria-selected:bg-baseSurface @md:aria-selected:text-accentText @md:hover:aria-selected:text-accentTextHover @md:aria-selected:font-semibold @md:aria-selected:tracking-normal @md:transition-[color,font-variation-settings,letter-spacing]';
28
-
29
- export type SelectedStyleProps = {
30
- current?: boolean;
31
- selected?: boolean;
32
- };
33
-
34
- export const staticGhostSelectedCurrent: ComponentFragment<SelectedStyleProps> = ({ current, selected }) => [
35
- current && selected
36
- ? 'bg-primary-200 dark:bg-primary-750 hover:bg-primary-200 hover:dark:bg-primary-750'
37
- : current
38
- ? 'bg-inputSurface hover:bg-hoverSurface'
39
- : selected
40
- ? 'bg-primary-100 dark:bg-primary-850 hover:bg-primary-150 hover:dark:bg-primary-800'
41
- : ghostHover,
42
- ];
43
-
44
- export const staticGhostSelected: ComponentFragment<Pick<SelectedStyleProps, 'selected'>> = ({ selected }) =>
45
- selected ? ['bg-primary-200 dark:bg-primary-750'] : [];
@@ -1,9 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
-
5
- export const shimmer =
6
- 'relative before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-neutral-100/10 before:to-transparent isolate overflow-hidden';
7
-
8
- export const strongShimmer =
9
- 'relative before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-primary-100/80 before:to-transparent isolate overflow-hidden';
@@ -1,117 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
-
5
- import { type Size } from '@dxos/ui-types';
6
-
7
- import { mx } from '../../util';
8
-
9
- export const sizeWidthMap = new Map<Size, string>([
10
- [0, 'is-0'],
11
- ['px', 'is-px'],
12
- [0.5, 'is-0.5'],
13
- [1, 'is-1'],
14
- [1.5, 'is-1.5'],
15
- [2, 'is-2'],
16
- [2.5, 'is-2.5'],
17
- [3, 'is-3'],
18
- [3.5, 'is-3.5'],
19
- [4, 'is-4'],
20
- [5, 'is-5'],
21
- [6, 'is-6'],
22
- [7, 'is-7'],
23
- [8, 'is-8'],
24
- [9, 'is-9'],
25
- [10, 'is-10'],
26
- [11, 'is-11'],
27
- [12, 'is-12'],
28
- [14, 'is-14'],
29
- [16, 'is-16'],
30
- [20, 'is-20'],
31
- [24, 'is-24'],
32
- [28, 'is-28'],
33
- [32, 'is-32'],
34
- [36, 'is-36'],
35
- [40, 'is-40'],
36
- [44, 'is-44'],
37
- [48, 'is-48'],
38
- [52, 'is-52'],
39
- [56, 'is-56'],
40
- [60, 'is-60'],
41
- [64, 'is-64'],
42
- [72, 'is-72'],
43
- [80, 'is-80'],
44
- [96, 'is-96'],
45
- ]);
46
-
47
- export const sizeHeightMap = new Map<Size, string>([
48
- [0, 'bs-0'],
49
- ['px', 'bs-px'],
50
- [0.5, 'bs-0.5'],
51
- [1, 'bs-1'],
52
- [1.5, 'bs-1.5'],
53
- [2, 'bs-2'],
54
- [2.5, 'bs-2.5'],
55
- [3, 'bs-3'],
56
- [3.5, 'bs-3.5'],
57
- [4, 'bs-4'],
58
- [5, 'bs-5'],
59
- [6, 'bs-6'],
60
- [7, 'bs-7'],
61
- [8, 'bs-8'],
62
- [9, 'bs-9'],
63
- [10, 'bs-10'],
64
- [11, 'bs-11'],
65
- [12, 'bs-12'],
66
- [14, 'bs-14'],
67
- [16, 'bs-16'],
68
- [20, 'bs-20'],
69
- [24, 'bs-24'],
70
- [28, 'bs-28'],
71
- [32, 'bs-32'],
72
- [36, 'bs-36'],
73
- [40, 'bs-40'],
74
- [44, 'bs-44'],
75
- [48, 'bs-48'],
76
- [52, 'bs-52'],
77
- [56, 'bs-56'],
78
- [60, 'bs-60'],
79
- [64, 'bs-64'],
80
- [72, 'bs-72'],
81
- [80, 'bs-80'],
82
- [96, 'bs-96'],
83
- ]);
84
-
85
- const sizes = new Set(sizeWidthMap.keys());
86
-
87
- export const getSizeHeight = sizeHeightMap.get.bind(sizeHeightMap);
88
- export const getSizeWidth = sizeWidthMap.get.bind(sizeWidthMap);
89
- export const getSize = (size: Size) => mx(getSizeHeight(size), getSizeWidth(size));
90
-
91
- export const computeSize = (value: number, defaultSize: Size) => {
92
- if (sizes.has(value as Size)) {
93
- return value as Size;
94
- } else if (value <= 0) {
95
- return 0;
96
- } else if (value === 1) {
97
- return 'px';
98
- } else {
99
- const wholeSeries = Math.floor(value);
100
- const halfSeries = Math.floor(value * 2) / 2;
101
- const doubleSeries = Math.floor(value / 2) * 2;
102
- const quadrupleSeries = Math.floor(value / 4) * 4;
103
- if (sizes.has(halfSeries as Size)) {
104
- return halfSeries as Size;
105
- } else if (sizes.has(wholeSeries as Size)) {
106
- return wholeSeries as Size;
107
- } else if (sizes.has(doubleSeries as Size)) {
108
- return doubleSeries as Size;
109
- } else if (sizes.has(quadrupleSeries as Size)) {
110
- return quadrupleSeries as Size;
111
- } else {
112
- return defaultSize;
113
- }
114
- }
115
- };
116
-
117
- export const sizeValue = (size: Size): number => (size === 'px' ? 1 : size);
@@ -1,29 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- // NOTE: Please don’t make changes to these fragments without testing *all* the places where they’re used.
6
-
7
- // If your scope of concern is narrower than exactly *the entire design system*, please define and apply your own
8
- // fragment, either to the specific component or in an override to `ThemeProvider`’s `tx` value.
9
-
10
- // Main background.
11
- // NOTE: This should align with theme's root --surface-bg.
12
- export const baseSurface = 'base-surface';
13
-
14
- // Sidebars.
15
- export const sidebarSurface = 'sidebar-surface backdrop-blur-md dark:backdrop-blur-lg';
16
- export const sidebarBorder = 'border-separator';
17
-
18
- // Generic grouping style.
19
- export const activeSurface = 'base-surface';
20
- export const groupBorder = 'border-separator';
21
-
22
- // Tooltips, popovers, menus, dialogs, etc.
23
- export const modalSurface = 'modal-surface backdrop-blur-md';
24
-
25
- // Elements that actively have the user’s “attention”; prefer to select with CSS-native selectors like focus-within,
26
- // but may be applied by app state. ⚠️ Do not apply statically.
27
- export const attentionSurface = 'attention-surface';
28
-
29
- export const accentSurface = 'bg-accentSurface text-accentSurfaceText';
@@ -1,12 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
-
5
- export const placeholderText = 'placeholder-neutral-300 dark:placeholder-neutral-500';
6
- export const staticPlaceholderText = 'text-neutral-300 dark:text-neutral-500';
7
-
8
- export const descriptionText = 'text-sm font-normal text-description';
9
- export const descriptionTextPrimary = 'text-sm font-normal text-baseText';
10
- export const descriptionMessage = [descriptionText, 'border border-dashed border-separator rounded p-4'];
11
-
12
- export const chromeText = 'text-sm font-normal';
@@ -1,46 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
-
5
- import { type MessageValence } from '@dxos/ui-types';
6
-
7
- export const successText = 'text-xs font-medium text-successText';
8
- export const infoText = 'text-xs font-medium text-infoText';
9
- export const warningText = 'text-xs font-medium text-warningText';
10
- export const errorText = 'text-xs font-medium text-errorText';
11
-
12
- export const valenceColorText = (valence?: MessageValence) => {
13
- switch (valence) {
14
- case 'success':
15
- return successText;
16
- case 'info':
17
- return infoText;
18
- case 'warning':
19
- return warningText;
20
- case 'error':
21
- return errorText;
22
- default:
23
- return undefined;
24
- }
25
- };
26
-
27
- export const neutralMessageColors = 'border border-dashed border-separator text-subdued';
28
- export const successMessageColors = 'text-successSurfaceText bg-successSurface';
29
- export const infoMessageColors = 'text-infoSurfaceText bg-infoSurface';
30
- export const warningMessageColors = 'text-warningSurfaceText bg-warningSurface';
31
- export const errorMessageColors = 'text-errorSurfaceText bg-errorSurface';
32
-
33
- export const messageValence = (valence?: MessageValence) => {
34
- switch (valence) {
35
- case 'success':
36
- return successMessageColors;
37
- case 'info':
38
- return infoMessageColors;
39
- case 'warning':
40
- return warningMessageColors;
41
- case 'error':
42
- return errorMessageColors;
43
- default:
44
- return neutralMessageColors;
45
- }
46
- };
@@ -1,15 +0,0 @@
1
- # Layers
2
-
3
- NOTE: The order of the layers is important and defined in the root `index.html`.
4
-
5
- Example: `composer-app/index.html`
6
-
7
- ```html
8
- <style>
9
- @layer dx-tokens, user-tokens, tw-base, dx-base, tw-components, dx-components, utilities;
10
- </style>
11
- ```
12
-
13
- ## Resources
14
-
15
- - https://cube.fyi
@@ -1,9 +0,0 @@
1
- @layer utilities {
2
- .overflow-anchored * {
3
- overflow-anchor: none;
4
- }
5
-
6
- .overflow-anchor {
7
- overflow-anchor: auto;
8
- }
9
- }
@@ -1,17 +0,0 @@
1
- @layer utilities {
2
- @keyframes blink {
3
- 0%,
4
- 50%,
5
- 100% {
6
- opacity: 1;
7
- }
8
- 25%,
9
- 75% {
10
- opacity: 0;
11
- }
12
- }
13
-
14
- .animate-blink {
15
- animation: blink 1s step-start infinite;
16
- }
17
- }
@@ -1,8 +0,0 @@
1
- @layer utilities {
2
- /* If an element should apply attention-related color tokens, it should use this class. */
3
- .attention-surface {
4
- --surface-separator: transparent;
5
- background-color: var(--dx-baseSurface);
6
- border-color: var(--dx-separator);
7
- }
8
- }
@@ -1,25 +0,0 @@
1
- @layer dx-base {
2
- :root {
3
- touch-action: pan-x pan-y;
4
- font-synthesis: none;
5
- font-variation-settings: 'wght' 400,
6
- 'slnt' 0;
7
- scroll-padding-block-start: theme(spacing.14);
8
- scroll-padding-block-end: theme(spacing.2);
9
- @apply font-body;
10
- }
11
-
12
- button {
13
- -webkit-tap-highlight-color: transparent;
14
- }
15
- }
16
-
17
- @layer dx-tokens {
18
- html, html.dark, html .dark {
19
- background-color: var(--dx-baseSurface);
20
- --surface-bg: var(--dx-baseSurface);
21
- color: var(--dx-baseText);
22
- --surface-text: var(--dx-baseText);
23
- --description-text: var(--dx-description);
24
- }
25
- }
@@ -1,26 +0,0 @@
1
- @layer dx-components {
2
- :root {
3
- --can-scroll-inline: initial;
4
- }
5
-
6
- @keyframes detect-scroll-inline {
7
- from,
8
- to {
9
- --can-scroll-inline: ;
10
- }
11
- }
12
-
13
- .justify-center-if-no-scroll {
14
- justify-content: start;
15
- }
16
-
17
- @supports (animation-timeline: scroll(inline self)) {
18
- .justify-center-if-no-scroll {
19
- animation: detect-scroll-inline linear;
20
- animation-timeline: scroll(inline self);
21
- --justify-if-no-scroll: center;
22
- --justify-if-can-scroll: var(--can-scroll-inline) start;
23
- justify-content: var(--justify-if-can-scroll, var(--justify-if-no-scroll));
24
- }
25
- }
26
- }
@@ -1,18 +0,0 @@
1
- @layer dx-base {
2
- body[data-drag-preview] {
3
- i[data-tabster-dummy] {
4
- display: none;
5
- }
6
- }
7
- }
8
-
9
- @layer utilities {
10
- body[data-drag-preview] {
11
- .drag-preview-p-0 {
12
- padding-inline-start: 0;
13
- padding-inline-end: 0;
14
- padding-block-start: 0;
15
- padding-block-end: 0;
16
- }
17
- }
18
- }
@@ -1,110 +0,0 @@
1
- @layer dx-components {
2
- .dx-text-hue[data-hue='red'],
3
- .dx-text-hue--red {
4
- @apply text-redText;
5
- }
6
-
7
- .dx-text-hue[data-hue='orange'],
8
- .dx-text-hue--orange {
9
- @apply text-orangeText;
10
- }
11
-
12
- .dx-text-hue[data-hue='amber'],
13
- .dx-text-hue--amber {
14
- @apply text-amberText;
15
- }
16
-
17
- .dx-text-hue[data-hue='yellow'],
18
- .dx-text-hue--yellow {
19
- @apply text-yellowText;
20
- }
21
-
22
- .dx-text-hue[data-hue='lime'],
23
- .dx-text-hue--lime {
24
- @apply text-limeText;
25
- }
26
-
27
- .dx-text-hue[data-hue='green'],
28
- .dx-text-hue--green {
29
- @apply text-greenText;
30
- }
31
-
32
- .dx-text-hue[data-hue='emerald'],
33
- .dx-text-hue--emerald {
34
- @apply text-emeraldText;
35
- }
36
-
37
- .dx-text-hue[data-hue='teal'],
38
- .dx-text-hue--teal {
39
- @apply text-tealText;
40
- }
41
-
42
- .dx-text-hue[data-hue='cyan'],
43
- .dx-text-hue--cyan {
44
- @apply text-cyanText;
45
- }
46
-
47
- .dx-text-hue[data-hue='sky'],
48
- .dx-text-hue--sky {
49
- @apply text-skyText;
50
- }
51
-
52
- .dx-text-hue[data-hue='blue'],
53
- .dx-text-hue--blue {
54
- @apply text-blueText;
55
- }
56
-
57
- .dx-text-hue[data-hue='indigo'],
58
- .dx-text-hue--indigo {
59
- @apply text-indigoText;
60
- }
61
-
62
- .dx-text-hue[data-hue='violet'],
63
- .dx-text-hue--violet {
64
- @apply text-violetText;
65
- }
66
-
67
- .dx-text-hue[data-hue='purple'],
68
- .dx-text-hue--purple {
69
- @apply text-purpleText;
70
- }
71
-
72
- .dx-text-hue[data-hue='fuchsia'],
73
- .dx-text-hue--fuchsia {
74
- @apply text-fuchsiaText;
75
- }
76
-
77
- .dx-text-hue[data-hue='pink'],
78
- .dx-text-hue--pink {
79
- @apply text-pinkText;
80
- }
81
-
82
- .dx-text-hue[data-hue='rose'],
83
- .dx-text-hue--rose {
84
- @apply text-roseText;
85
- }
86
-
87
- /*
88
- * System colors.
89
- */
90
-
91
- .dx-text-hue[data-hue='info'],
92
- .dx-text-hue--info {
93
- @apply text-cyanText;
94
- }
95
-
96
- .dx-text-hue[data-hue='success'],
97
- .dx-text-hue--success {
98
- @apply text-emeraldText;
99
- }
100
-
101
- .dx-text-hue[data-hue='warning'],
102
- .dx-text-hue--warning {
103
- @apply text-amberText;
104
- }
105
-
106
- .dx-text-hue[data-hue='error'],
107
- .dx-text-hue--error {
108
- @apply text-roseText;
109
- }
110
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * NOTE: The order of the layers is important and defined in the root `index.html`.
3
- */
4
-
5
- @import './anchored-overflow.css';
6
- @import './animation.css';
7
- @import './attention.css';
8
- @import './base.css';
9
- @import './button.css';
10
- @import './can-scroll.css';
11
- @import './checkbox.css';
12
- @import './dialog.css';
13
- @import './drag-preview.css';
14
- @import './focus-ring.css';
15
- @import './hues.css';
16
- @import './positioning.css';
17
- @import './main.css';
18
- @import './native.css';
19
- @import './size.css';
20
- @import './surfaces.css';
21
- @import './tag.css';
22
- @import './tldraw.css';
23
- @import './tokens.css';
24
- @import './typography.css';
25
-
26
- @layer dx-tokens, user-tokens, tw-base, dx-base, tw-components, dx-components, utilities;