@omerdlw/base-framework 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/atoms/icon.d.ts.map +1 -1
  2. package/dist/atoms/index.js +1 -1
  3. package/dist/atoms/spinner.d.ts.map +1 -1
  4. package/dist/atoms/tooltip.d.ts.map +1 -1
  5. package/dist/{chunk-7HQMXTNP.js → chunk-6UFMD6TK.js} +5 -5
  6. package/dist/{chunk-7HQMXTNP.js.map → chunk-6UFMD6TK.js.map} +1 -1
  7. package/dist/{chunk-CGHZSSFR.js → chunk-AA2TWJQI.js} +35 -15
  8. package/dist/chunk-AA2TWJQI.js.map +1 -0
  9. package/dist/{chunk-CYU6SGAL.js → chunk-ACLLDU3J.js} +7 -7
  10. package/dist/chunk-ACLLDU3J.js.map +1 -0
  11. package/dist/{chunk-TG6NMHXI.js → chunk-E6ANX5YP.js} +89 -34
  12. package/dist/chunk-E6ANX5YP.js.map +1 -0
  13. package/dist/{chunk-R2YGFJDJ.js → chunk-GDCVEINL.js} +4 -4
  14. package/dist/chunk-GDCVEINL.js.map +1 -0
  15. package/dist/chunk-GN666KV5.js +28 -0
  16. package/dist/{chunk-M57SNWXK.js.map → chunk-GN666KV5.js.map} +1 -1
  17. package/dist/{chunk-TV3WEF5G.js → chunk-HCSDQEFB.js} +80 -19
  18. package/dist/chunk-HCSDQEFB.js.map +1 -0
  19. package/dist/{chunk-GF7TUX5I.js → chunk-HMEWYAWU.js} +3 -3
  20. package/dist/{chunk-GF7TUX5I.js.map → chunk-HMEWYAWU.js.map} +1 -1
  21. package/dist/{chunk-3BUP64Q6.js → chunk-I3IZUBBU.js} +3 -11
  22. package/dist/chunk-I3IZUBBU.js.map +1 -0
  23. package/dist/{chunk-RFZQWLC5.js → chunk-JCZUCKI3.js} +2 -2
  24. package/dist/chunk-JCZUCKI3.js.map +1 -0
  25. package/dist/{chunk-FIMPHODX.js → chunk-MAGYFVKH.js} +6 -6
  26. package/dist/chunk-MAGYFVKH.js.map +1 -0
  27. package/dist/{chunk-SYAVGTOX.js → chunk-NEBGCFE3.js} +5 -5
  28. package/dist/chunk-NEBGCFE3.js.map +1 -0
  29. package/dist/{chunk-66EYJBIP.js → chunk-NK2DQB3G.js} +14 -8
  30. package/dist/chunk-NK2DQB3G.js.map +1 -0
  31. package/dist/{chunk-4GMQKD6F.js → chunk-QM2P6TIU.js} +5 -5
  32. package/dist/{chunk-4GMQKD6F.js.map → chunk-QM2P6TIU.js.map} +1 -1
  33. package/dist/{chunk-HHWRTQKQ.js → chunk-RFP2DJAB.js} +76 -28
  34. package/dist/chunk-RFP2DJAB.js.map +1 -0
  35. package/dist/{chunk-HLL5EHXC.js → chunk-SQ7XZMCN.js} +3 -7
  36. package/dist/chunk-SQ7XZMCN.js.map +1 -0
  37. package/dist/{chunk-7TAVYJ3A.js → chunk-TMTMQNEQ.js} +5 -4
  38. package/dist/chunk-TMTMQNEQ.js.map +1 -0
  39. package/dist/{chunk-JIXBFFRD.js → chunk-VDNE3A7X.js} +127 -144
  40. package/dist/chunk-VDNE3A7X.js.map +1 -0
  41. package/dist/{chunk-RIOKLMYM.js → chunk-XATRMFGU.js} +7 -13
  42. package/dist/chunk-XATRMFGU.js.map +1 -0
  43. package/dist/{chunk-JELG4JLT.js → chunk-ZAP2YHZG.js} +5 -5
  44. package/dist/{chunk-JELG4JLT.js.map → chunk-ZAP2YHZG.js.map} +1 -1
  45. package/dist/{chunk-AQ4BNXA2.js → chunk-ZH5FUYPG.js} +7 -7
  46. package/dist/chunk-ZH5FUYPG.js.map +1 -0
  47. package/dist/{chunk-K676GL7Z.js → chunk-ZKM4RETZ.js} +5 -5
  48. package/dist/chunk-ZKM4RETZ.js.map +1 -0
  49. package/dist/error/index.js +5 -5
  50. package/dist/error/reporter.d.ts.map +1 -1
  51. package/dist/events.js +1 -1
  52. package/dist/hooks/index.d.ts +1 -0
  53. package/dist/hooks/index.d.ts.map +1 -1
  54. package/dist/hooks/index.js +1 -1
  55. package/dist/hooks/use-scroll-lock.d.ts +3 -0
  56. package/dist/hooks/use-scroll-lock.d.ts.map +1 -0
  57. package/dist/index.js +19 -19
  58. package/dist/kernel/handlers.d.ts.map +1 -1
  59. package/dist/kernel/index.d.ts.map +1 -1
  60. package/dist/kernel/index.js +2 -2
  61. package/dist/kernel/installed.d.ts.map +1 -1
  62. package/dist/kernel/provider.d.ts.map +1 -1
  63. package/dist/kernel/store.d.ts.map +1 -1
  64. package/dist/modules/ambient/analyze.d.ts +1 -33
  65. package/dist/modules/ambient/analyze.d.ts.map +1 -1
  66. package/dist/modules/ambient/dom.d.ts +0 -12
  67. package/dist/modules/ambient/dom.d.ts.map +1 -1
  68. package/dist/modules/ambient/extractor.d.ts +0 -8
  69. package/dist/modules/ambient/extractor.d.ts.map +1 -1
  70. package/dist/modules/ambient/hooks.d.ts.map +1 -1
  71. package/dist/modules/ambient/index.d.ts +2 -2
  72. package/dist/modules/ambient/index.d.ts.map +1 -1
  73. package/dist/modules/ambient/index.js +7 -7
  74. package/dist/modules/ambient/module.d.ts.map +1 -1
  75. package/dist/modules/ambient/oklab.d.ts +0 -19
  76. package/dist/modules/ambient/oklab.d.ts.map +1 -1
  77. package/dist/modules/ambient/pipeline.d.ts +0 -7
  78. package/dist/modules/ambient/pipeline.d.ts.map +1 -1
  79. package/dist/modules/ambient/quantize.d.ts +0 -11
  80. package/dist/modules/ambient/quantize.d.ts.map +1 -1
  81. package/dist/modules/ambient/server/address.d.ts +0 -3
  82. package/dist/modules/ambient/server/address.d.ts.map +1 -1
  83. package/dist/modules/ambient/server/index.d.ts +0 -27
  84. package/dist/modules/ambient/server/index.d.ts.map +1 -1
  85. package/dist/modules/ambient/server/index.js +21 -17
  86. package/dist/modules/ambient/server/index.js.map +1 -1
  87. package/dist/modules/ambient/settings.d.ts +0 -6
  88. package/dist/modules/ambient/settings.d.ts.map +1 -1
  89. package/dist/modules/ambient/types.d.ts +0 -37
  90. package/dist/modules/ambient/types.d.ts.map +1 -1
  91. package/dist/modules/ambient/worker/index.d.ts +0 -1
  92. package/dist/modules/ambient/worker/index.d.ts.map +1 -1
  93. package/dist/modules/ambient/worker/index.js +11 -3
  94. package/dist/modules/ambient/worker/index.js.map +1 -1
  95. package/dist/modules/background/context.d.ts.map +1 -1
  96. package/dist/modules/background/hooks.d.ts.map +1 -1
  97. package/dist/modules/background/index.d.ts +1 -1
  98. package/dist/modules/background/index.d.ts.map +1 -1
  99. package/dist/modules/background/index.js +6 -6
  100. package/dist/modules/background/module.d.ts.map +1 -1
  101. package/dist/modules/background/motion.d.ts.map +1 -1
  102. package/dist/modules/background/overlay.d.ts.map +1 -1
  103. package/dist/modules/background/state.d.ts.map +1 -1
  104. package/dist/modules/background/types.d.ts +0 -7
  105. package/dist/modules/background/types.d.ts.map +1 -1
  106. package/dist/modules/background/visual.d.ts.map +1 -1
  107. package/dist/modules/background/youtube/player.d.ts.map +1 -1
  108. package/dist/modules/context-menu/context.d.ts.map +1 -1
  109. package/dist/modules/context-menu/index.d.ts +1 -1
  110. package/dist/modules/context-menu/index.d.ts.map +1 -1
  111. package/dist/modules/context-menu/index.js +10 -10
  112. package/dist/modules/context-menu/module.d.ts.map +1 -1
  113. package/dist/modules/context-menu/types.d.ts +0 -6
  114. package/dist/modules/context-menu/types.d.ts.map +1 -1
  115. package/dist/modules/controls/hooks.d.ts.map +1 -1
  116. package/dist/modules/controls/index.js +4 -4
  117. package/dist/modules/controls/module.d.ts.map +1 -1
  118. package/dist/modules/dock/cards.d.ts +3 -3
  119. package/dist/modules/dock/cards.d.ts.map +1 -1
  120. package/dist/modules/dock/constants.d.ts +0 -15
  121. package/dist/modules/dock/constants.d.ts.map +1 -1
  122. package/dist/modules/dock/context.d.ts.map +1 -1
  123. package/dist/modules/dock/dom.d.ts.map +1 -1
  124. package/dist/modules/dock/helpers.d.ts.map +1 -1
  125. package/dist/modules/dock/index.js +9 -9
  126. package/dist/modules/dock/layout.d.ts.map +1 -1
  127. package/dist/modules/dock/module.d.ts.map +1 -1
  128. package/dist/modules/dock/motion.d.ts +5 -9
  129. package/dist/modules/dock/motion.d.ts.map +1 -1
  130. package/dist/modules/dock/overlay.d.ts.map +1 -1
  131. package/dist/modules/dock/routing/navigation.d.ts +0 -1
  132. package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
  133. package/dist/modules/dock/runtime/display.d.ts +0 -6
  134. package/dist/modules/dock/runtime/display.d.ts.map +1 -1
  135. package/dist/modules/dock/runtime/dock.d.ts +0 -1
  136. package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
  137. package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
  138. package/dist/modules/dock/status/events.d.ts.map +1 -1
  139. package/dist/modules/dock/styles.d.ts +3 -3
  140. package/dist/modules/dock/styles.d.ts.map +1 -1
  141. package/dist/modules/dock/surface/context.d.ts.map +1 -1
  142. package/dist/modules/dock/surface/definition.d.ts.map +1 -1
  143. package/dist/modules/dock/surface/hooks.d.ts.map +1 -1
  144. package/dist/modules/dock/surface/machine.d.ts.map +1 -1
  145. package/dist/modules/dock/surface/stack.d.ts.map +1 -1
  146. package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
  147. package/dist/modules/dock/types.d.ts +47 -68
  148. package/dist/modules/dock/types.d.ts.map +1 -1
  149. package/dist/modules/index.js +17 -17
  150. package/dist/modules/loading/constants.d.ts.map +1 -1
  151. package/dist/modules/loading/context.d.ts.map +1 -1
  152. package/dist/modules/loading/hooks.d.ts.map +1 -1
  153. package/dist/modules/loading/index.d.ts +1 -1
  154. package/dist/modules/loading/index.d.ts.map +1 -1
  155. package/dist/modules/loading/index.js +5 -5
  156. package/dist/modules/loading/module.d.ts.map +1 -1
  157. package/dist/modules/media/constants.d.ts.map +1 -1
  158. package/dist/modules/media/context.d.ts.map +1 -1
  159. package/dist/modules/media/index.d.ts +1 -1
  160. package/dist/modules/media/index.d.ts.map +1 -1
  161. package/dist/modules/media/index.js +3 -3
  162. package/dist/modules/modal/dom.d.ts.map +1 -1
  163. package/dist/modules/modal/index.d.ts +2 -2
  164. package/dist/modules/modal/index.d.ts.map +1 -1
  165. package/dist/modules/modal/index.js +7 -7
  166. package/dist/modules/modal/module.d.ts.map +1 -1
  167. package/dist/modules/modal/overlay.d.ts.map +1 -1
  168. package/dist/modules/modal/types.d.ts +0 -9
  169. package/dist/modules/modal/types.d.ts.map +1 -1
  170. package/dist/modules/navigation/constants.d.ts +0 -4
  171. package/dist/modules/navigation/constants.d.ts.map +1 -1
  172. package/dist/modules/navigation/context.d.ts +0 -1
  173. package/dist/modules/navigation/context.d.ts.map +1 -1
  174. package/dist/modules/navigation/hooks.d.ts +0 -18
  175. package/dist/modules/navigation/hooks.d.ts.map +1 -1
  176. package/dist/modules/navigation/index.d.ts +1 -1
  177. package/dist/modules/navigation/index.d.ts.map +1 -1
  178. package/dist/modules/navigation/index.js +14 -15
  179. package/dist/modules/navigation/index.js.map +1 -1
  180. package/dist/modules/navigation/listeners.d.ts +0 -11
  181. package/dist/modules/navigation/listeners.d.ts.map +1 -1
  182. package/dist/modules/navigation/navigator.d.ts +0 -5
  183. package/dist/modules/navigation/navigator.d.ts.map +1 -1
  184. package/dist/modules/navigation/settings.d.ts +0 -5
  185. package/dist/modules/navigation/settings.d.ts.map +1 -1
  186. package/dist/modules/navigation/state.d.ts +0 -1
  187. package/dist/modules/navigation/state.d.ts.map +1 -1
  188. package/dist/modules/navigation/types.d.ts +0 -50
  189. package/dist/modules/navigation/types.d.ts.map +1 -1
  190. package/dist/modules/navigation/utils.d.ts +0 -3
  191. package/dist/modules/navigation/utils.d.ts.map +1 -1
  192. package/dist/modules/notification/constants.d.ts.map +1 -1
  193. package/dist/modules/notification/context.d.ts.map +1 -1
  194. package/dist/modules/notification/hooks.d.ts.map +1 -1
  195. package/dist/modules/notification/index.js +4 -4
  196. package/dist/modules/notification/module.d.ts.map +1 -1
  197. package/dist/modules/notification/types.d.ts +0 -3
  198. package/dist/modules/notification/types.d.ts.map +1 -1
  199. package/dist/overlay-LTRZUZQD.js +9 -0
  200. package/dist/{overlay-TZ6L52A5.js.map → overlay-LTRZUZQD.js.map} +1 -1
  201. package/dist/provider.d.ts.map +1 -1
  202. package/dist/provider.js +6 -6
  203. package/dist/result.js +1 -1
  204. package/dist/theme.d.ts +0 -17
  205. package/dist/theme.d.ts.map +1 -1
  206. package/dist/theme.js +3 -3
  207. package/dist/tokens/index.js +2 -1
  208. package/dist/tokens/index.js.map +1 -1
  209. package/dist/tokens/motion-config.d.ts +0 -9
  210. package/dist/tokens/motion-config.d.ts.map +1 -1
  211. package/dist/tokens/motion.d.ts.map +1 -1
  212. package/dist/ui/carousel/carousel.d.ts +24 -0
  213. package/dist/ui/carousel/carousel.d.ts.map +1 -0
  214. package/dist/ui/carousel/track.d.ts +11 -0
  215. package/dist/ui/carousel/track.d.ts.map +1 -0
  216. package/dist/ui/carousel/use-drag-scroll.d.ts +3 -0
  217. package/dist/ui/carousel/use-drag-scroll.d.ts.map +1 -0
  218. package/dist/ui/cn.d.ts +19 -0
  219. package/dist/ui/cn.d.ts.map +1 -0
  220. package/dist/ui/components/avatar.d.ts +14 -0
  221. package/dist/ui/components/avatar.d.ts.map +1 -0
  222. package/dist/ui/components/button.d.ts +9 -0
  223. package/dist/ui/components/button.d.ts.map +1 -0
  224. package/dist/ui/components/checkbox.d.ts +18 -0
  225. package/dist/ui/components/checkbox.d.ts.map +1 -0
  226. package/dist/ui/components/icon.d.ts +4 -0
  227. package/dist/ui/components/icon.d.ts.map +1 -0
  228. package/dist/ui/components/image.d.ts +13 -0
  229. package/dist/ui/components/image.d.ts.map +1 -0
  230. package/dist/ui/components/indicator.d.ts +37 -0
  231. package/dist/ui/components/indicator.d.ts.map +1 -0
  232. package/dist/ui/components/input.d.ts +15 -0
  233. package/dist/ui/components/input.d.ts.map +1 -0
  234. package/dist/ui/components/loader.d.ts +17 -0
  235. package/dist/ui/components/loader.d.ts.map +1 -0
  236. package/dist/ui/components/segmented.d.ts +21 -0
  237. package/dist/ui/components/segmented.d.ts.map +1 -0
  238. package/dist/ui/components/select.d.ts +34 -0
  239. package/dist/ui/components/select.d.ts.map +1 -0
  240. package/dist/ui/components/skeleton.d.ts +16 -0
  241. package/dist/ui/components/skeleton.d.ts.map +1 -0
  242. package/dist/ui/components/switch.d.ts +11 -0
  243. package/dist/ui/components/switch.d.ts.map +1 -0
  244. package/dist/ui/components/tooltip.d.ts +25 -0
  245. package/dist/ui/components/tooltip.d.ts.map +1 -0
  246. package/dist/ui/defaults.d.ts +250 -0
  247. package/dist/ui/defaults.d.ts.map +1 -0
  248. package/dist/ui/define.d.ts +112 -0
  249. package/dist/ui/define.d.ts.map +1 -0
  250. package/dist/ui/index.d.ts +19 -0
  251. package/dist/ui/index.d.ts.map +1 -0
  252. package/dist/ui/index.js +1970 -0
  253. package/dist/ui/index.js.map +1 -0
  254. package/dist/ui/provider.d.ts +11 -0
  255. package/dist/ui/provider.d.ts.map +1 -0
  256. package/dist/ui/recipe.d.ts +70 -0
  257. package/dist/ui/recipe.d.ts.map +1 -0
  258. package/dist/ui/recipes.d.ts +9 -0
  259. package/dist/ui/recipes.d.ts.map +1 -0
  260. package/dist/ui/recipes.js +648 -0
  261. package/dist/ui/recipes.js.map +1 -0
  262. package/dist/ui/split.d.ts +4 -0
  263. package/dist/ui/split.d.ts.map +1 -0
  264. package/dist/ui/tones.d.ts +23 -0
  265. package/dist/ui/tones.d.ts.map +1 -0
  266. package/dist/utils/index.js +2 -2
  267. package/dist/utils/index.js.map +1 -1
  268. package/dist/utils/report.d.ts.map +1 -1
  269. package/docs/README.md +4 -0
  270. package/docs/modules/dock.md +19 -3
  271. package/docs/theming.md +1 -1
  272. package/docs/ui.md +183 -0
  273. package/package.json +18 -3
  274. package/styles/effects.css +219 -0
  275. package/styles/index.css +8 -0
  276. package/styles/interaction.css +273 -0
  277. package/styles/palette.css +81 -0
  278. package/styles/time.css +26 -0
  279. package/styles/tokens.css +114 -0
  280. package/styles/utilities.css +110 -0
  281. package/templates/motion/background.ts +0 -2
  282. package/templates/motion/context-menu.ts +5 -3
  283. package/templates/motion/dock.ts +129 -35
  284. package/templates/motion/modal.ts +8 -5
  285. package/templates/motion/notification.ts +0 -1
  286. package/templates/motion/tokens.ts +4 -15
  287. package/dist/chunk-3BUP64Q6.js.map +0 -1
  288. package/dist/chunk-66EYJBIP.js.map +0 -1
  289. package/dist/chunk-7TAVYJ3A.js.map +0 -1
  290. package/dist/chunk-AQ4BNXA2.js.map +0 -1
  291. package/dist/chunk-CGHZSSFR.js.map +0 -1
  292. package/dist/chunk-CYU6SGAL.js.map +0 -1
  293. package/dist/chunk-FIMPHODX.js.map +0 -1
  294. package/dist/chunk-HHWRTQKQ.js.map +0 -1
  295. package/dist/chunk-HLL5EHXC.js.map +0 -1
  296. package/dist/chunk-JIXBFFRD.js.map +0 -1
  297. package/dist/chunk-K676GL7Z.js.map +0 -1
  298. package/dist/chunk-M57SNWXK.js +0 -28
  299. package/dist/chunk-R2YGFJDJ.js.map +0 -1
  300. package/dist/chunk-RFZQWLC5.js.map +0 -1
  301. package/dist/chunk-RIOKLMYM.js.map +0 -1
  302. package/dist/chunk-SYAVGTOX.js.map +0 -1
  303. package/dist/chunk-TG6NMHXI.js.map +0 -1
  304. package/dist/chunk-TV3WEF5G.js.map +0 -1
  305. package/dist/overlay-TZ6L52A5.js +0 -9
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "@omerdlw/base-framework",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Microkernel engine and first-party declarative UI modules for app-like Next.js products.",
5
5
  "type": "module",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.css"
8
+ ],
7
9
  "main": "./dist/index.js",
8
10
  "types": "./dist/index.d.ts",
9
11
  "exports": {
@@ -62,6 +64,18 @@
62
64
  "import": "./dist/atoms/index.js",
63
65
  "default": "./dist/atoms/index.js"
64
66
  },
67
+ "./ui": {
68
+ "types": "./dist/ui/index.d.ts",
69
+ "import": "./dist/ui/index.js",
70
+ "default": "./dist/ui/index.js"
71
+ },
72
+ "./ui/recipes": {
73
+ "types": "./dist/ui/recipes.d.ts",
74
+ "import": "./dist/ui/recipes.js",
75
+ "default": "./dist/ui/recipes.js"
76
+ },
77
+ "./styles.css": "./styles/index.css",
78
+ "./styles/*": "./styles/*",
65
79
  "./dock": {
66
80
  "types": "./dist/modules/dock/index.d.ts",
67
81
  "import": "./dist/modules/dock/index.js",
@@ -135,6 +149,7 @@
135
149
  },
136
150
  "files": [
137
151
  "dist",
152
+ "styles",
138
153
  "docs",
139
154
  "templates",
140
155
  "README.md",
@@ -144,7 +159,7 @@
144
159
  "build": "rm -rf dist && ./node_modules/.bin/tsup && ./node_modules/.bin/tsc --emitDeclarationOnly --outDir dist && node scripts/rewrite-dts-aliases.mjs",
145
160
  "prepublishOnly": "npm run build && npm run test:dist",
146
161
  "dev": "./node_modules/.bin/tsup --watch",
147
- "type-check": "./node_modules/.bin/tsc --noEmit && ./node_modules/.bin/tsc -p templates",
162
+ "type-check": "./node_modules/.bin/tsc --noEmit && ./node_modules/.bin/tsc -p templates && ./node_modules/.bin/tsc -p tests/types",
148
163
  "check:architecture": "node scripts/check-architecture.mjs",
149
164
  "test": "node --import ./tests/support/register.mjs --test 'tests/**/*.test.ts'",
150
165
  "test:dist": "node --import ./tests/support/register.mjs --test 'tests/bundle/*.smoke.ts'",
@@ -0,0 +1,219 @@
1
+ @layer components {
2
+ .ui-sheen {
3
+ isolation: isolate;
4
+ overflow: clip;
5
+ position: relative;
6
+ }
7
+ .ui-sheen::after {
8
+ background: linear-gradient(
9
+ 105deg,
10
+ transparent 32%,
11
+ rgb(var(--sheen-ink, var(--ink-rgb)) / var(--sheen, 0.05)) 50%,
12
+ transparent 68%
13
+ );
14
+ content: "";
15
+ inset: 0;
16
+ opacity: 0;
17
+ pointer-events: none;
18
+ position: absolute;
19
+ translate: -100% 0;
20
+ }
21
+ @keyframes ui-sheen {
22
+ 0% {
23
+ opacity: 0;
24
+ translate: -100% 0;
25
+ }
26
+ 25% {
27
+ opacity: 1;
28
+ }
29
+ 100% {
30
+ opacity: 0;
31
+ translate: 100% 0;
32
+ }
33
+ }
34
+ @media (hover: hover) {
35
+ .ui-sheen:not(:disabled):hover::after {
36
+ animation: ui-sheen var(--step-2) var(--ease-in-out-cubic) both;
37
+ }
38
+ }
39
+
40
+ @keyframes ui-develop {
41
+ from {
42
+ opacity: 0;
43
+ scale: 0.86;
44
+ }
45
+ }
46
+ .ui-develop {
47
+ animation: ui-develop var(--step-0) var(--ease-out-cream) both;
48
+ }
49
+
50
+ @keyframes ui-develop-quiet {
51
+ from {
52
+ opacity: 0;
53
+ }
54
+ }
55
+ @media (prefers-reduced-motion: reduce) {
56
+ .ui-sheen::after {
57
+ animation: none !important;
58
+ }
59
+ .ui-develop {
60
+ animation: ui-develop-quiet var(--step-n3) var(--ease-fade) both;
61
+ }
62
+ }
63
+
64
+ .ui-turn {
65
+ transition:
66
+ color var(--step-1) var(--ease-out-cream),
67
+ transform var(--step-1) var(--ease-out-cream),
68
+ rotate var(--step-1) var(--ease-out-cream);
69
+ }
70
+
71
+ .ui-skeleton,
72
+ .ui-skeleton-soft {
73
+ overflow: hidden;
74
+ position: relative;
75
+ }
76
+ .ui-skeleton {
77
+ background-color: var(--fill-hover);
78
+ }
79
+ .ui-skeleton-soft {
80
+ background-color: var(--fill);
81
+ }
82
+ .ui-skeleton::after {
83
+ background: linear-gradient(90deg, transparent, var(--fill), transparent);
84
+ content: "";
85
+ inset: 0;
86
+ pointer-events: none;
87
+ position: absolute;
88
+ transform: translateX(-100%);
89
+ }
90
+ @media (prefers-reduced-motion: no-preference) {
91
+ .ui-skeleton::after {
92
+ animation: ui-shimmer var(--step-3) var(--ease-in-out-cubic) infinite;
93
+ }
94
+ .ui-skeleton[data-far]::after {
95
+ animation: none;
96
+ }
97
+ .ui-pulse {
98
+ animation: ui-pulse var(--step-3) var(--ease-in-out-cubic) infinite;
99
+ }
100
+ }
101
+ @keyframes ui-shimmer {
102
+ to {
103
+ transform: translateX(100%);
104
+ }
105
+ }
106
+ @keyframes ui-pulse {
107
+ 0%,
108
+ 100% {
109
+ opacity: 1;
110
+ }
111
+ 50% {
112
+ opacity: 0.4;
113
+ }
114
+ }
115
+
116
+ .ui-dots {
117
+ align-items: center;
118
+ display: inline-flex;
119
+ gap: calc(var(--loader-size) * 0.22);
120
+ height: var(--loader-size);
121
+ }
122
+ .ui-dot {
123
+ animation: ui-bounce 1s cubic-bezier(0.45, 0, 0.55, 1) infinite both;
124
+ aspect-ratio: 1;
125
+ background: currentColor;
126
+ border-radius: 9999px;
127
+ width: calc(var(--loader-size) * 0.26);
128
+ }
129
+ .ui-dot:nth-child(2) {
130
+ animation-delay: 0.14s;
131
+ }
132
+ .ui-dot:nth-child(3) {
133
+ animation-delay: 0.28s;
134
+ }
135
+ @keyframes ui-bounce {
136
+ 0%,
137
+ 60%,
138
+ 100% {
139
+ opacity: 0.45;
140
+ transform: translateY(0);
141
+ }
142
+ 30% {
143
+ opacity: 1;
144
+ transform: translateY(calc(var(--loader-size) * -0.3));
145
+ }
146
+ }
147
+ @keyframes ui-breathe {
148
+ 0%,
149
+ 100% {
150
+ opacity: 0.4;
151
+ }
152
+ 50% {
153
+ opacity: 1;
154
+ }
155
+ }
156
+
157
+ .ui-tooltip-label {
158
+ -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
159
+ mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
160
+ -webkit-mask-size: 220% 100%;
161
+ mask-size: 220% 100%;
162
+ }
163
+ .ui-tooltip:is([data-state="delayed-open"], [data-state="instant-open"]) {
164
+ animation: ui-tip-open var(--step-n1) var(--ease-out-cream) both;
165
+ }
166
+ .ui-tooltip:is([data-state="delayed-open"], [data-state="instant-open"])
167
+ .ui-tooltip-label {
168
+ animation: ui-tip-light var(--step-0) var(--ease-out-cream) both;
169
+ }
170
+ .ui-tooltip[data-state="closed"] {
171
+ animation: ui-tip-close var(--step-n3) var(--ease-in-cubic) both;
172
+ }
173
+ @keyframes ui-tip-open {
174
+ from {
175
+ opacity: 0;
176
+ scale: 0.96;
177
+ }
178
+ }
179
+ @keyframes ui-tip-light {
180
+ from {
181
+ -webkit-mask-position: 100% 0;
182
+ mask-position: 100% 0;
183
+ }
184
+ to {
185
+ -webkit-mask-position: 0 0;
186
+ mask-position: 0 0;
187
+ }
188
+ }
189
+ @keyframes ui-tip-fade {
190
+ from {
191
+ opacity: 0;
192
+ }
193
+ }
194
+ @keyframes ui-tip-close {
195
+ to {
196
+ opacity: 0;
197
+ }
198
+ }
199
+
200
+ @media (prefers-reduced-motion: reduce) {
201
+ .ui-dot {
202
+ animation: ui-breathe 1.2s ease-in-out infinite both;
203
+ }
204
+ .ui-tooltip:is([data-state="delayed-open"], [data-state="instant-open"]) {
205
+ animation: ui-tip-fade var(--step-n3) var(--ease-fade) both;
206
+ }
207
+ .ui-tooltip[data-state="closed"] {
208
+ animation: ui-tip-close var(--step-n3) var(--ease-fade) both;
209
+ }
210
+ .ui-tooltip-label {
211
+ animation: none !important;
212
+ -webkit-mask-image: none;
213
+ mask-image: none;
214
+ }
215
+ .ui-turn {
216
+ transition-duration: var(--step-n3);
217
+ }
218
+ }
219
+ }
@@ -0,0 +1,8 @@
1
+ @source "../dist";
2
+
3
+ @import "./tokens.css";
4
+ @import "./palette.css";
5
+ @import "./time.css";
6
+ @import "./utilities.css";
7
+ @import "./interaction.css";
8
+ @import "./effects.css";
@@ -0,0 +1,273 @@
1
+ @layer base {
2
+ :root[data-theme-switching] *,
3
+ :root[data-theme-switching] *::before,
4
+ :root[data-theme-switching] *::after {
5
+ transition: none !important;
6
+ }
7
+
8
+ :where(:root) {
9
+ --touch-in: var(--step-0);
10
+ --touch-out: var(--step-2);
11
+ --press-in: var(--step-n3);
12
+ --press-out: var(--step-1);
13
+ --touch-t: var(--touch-out);
14
+ --touch-e: var(--ease-phosphor);
15
+ --press-t: var(--press-out);
16
+ --press: 0.96;
17
+ --press-wide: 0.98;
18
+ --focus-width: 1.5px;
19
+ --focus-offset: 2px;
20
+ --focus-offset-rest: 5px;
21
+ }
22
+ }
23
+
24
+ :where(.ui-motion, .ui-scene)
25
+ :where(
26
+ button,
27
+ a[href],
28
+ summary,
29
+ [role="button"],
30
+ [role="tab"],
31
+ [role="option"],
32
+ [role="menuitem"],
33
+ [role="switch"],
34
+ [role="checkbox"],
35
+ [role="radio"],
36
+ [tabindex]:not([tabindex="-1"])
37
+ ):not(input, textarea, [contenteditable], [data-own-focus]) {
38
+ outline: var(--focus-width) solid transparent;
39
+ outline-offset: var(--focus-offset-rest);
40
+ }
41
+ :where(.ui-motion, .ui-scene)
42
+ :focus-visible:not(input, textarea, [contenteditable], [data-own-focus]) {
43
+ outline: var(--focus-width) solid var(--focus-ring);
44
+ outline-offset: var(--focus-offset);
45
+ }
46
+ @layer components {
47
+ :where(.ui-motion, .ui-scene)
48
+ :where(
49
+ button,
50
+ a[href],
51
+ summary,
52
+ label,
53
+ input,
54
+ textarea,
55
+ select,
56
+ [role="button"],
57
+ [role="tab"],
58
+ [role="option"],
59
+ [role="menuitem"],
60
+ [role="switch"],
61
+ [role="checkbox"],
62
+ [role="radio"],
63
+ [role="slider"],
64
+ [tabindex],
65
+ .group,
66
+ [class*="group/"],
67
+ [class^="hover:"],
68
+ [class*=" hover:"],
69
+ [class*=":hover:"],
70
+ [class^="focus"],
71
+ [class*=" focus"],
72
+ [class*=":focus"]
73
+ ) {
74
+ --touch-kids:
75
+ color var(--touch-t) var(--touch-e),
76
+ background-color var(--touch-t) var(--touch-e),
77
+ border-color var(--touch-t) var(--touch-e),
78
+ box-shadow var(--touch-t) var(--touch-e),
79
+ text-decoration-color var(--touch-t) var(--touch-e),
80
+ fill var(--touch-t) var(--touch-e), stroke var(--touch-t) var(--touch-e);
81
+ }
82
+ :where(.ui-motion, .ui-scene) :where(:not([data-placement])) {
83
+ transition: var(--touch-kids);
84
+ }
85
+
86
+ :where(.ui-motion, .ui-scene)
87
+ :where(
88
+ button,
89
+ a[href],
90
+ summary,
91
+ label,
92
+ input,
93
+ textarea,
94
+ select,
95
+ [role="button"],
96
+ [role="tab"],
97
+ [role="option"],
98
+ [role="menuitem"],
99
+ [role="switch"],
100
+ [role="checkbox"],
101
+ [role="radio"],
102
+ [role="slider"],
103
+ [tabindex],
104
+ .group,
105
+ [class*="group/"],
106
+ [class^="hover:"],
107
+ [class*=" hover:"],
108
+ [class*=":hover:"],
109
+ [class^="focus"],
110
+ [class*=" focus"],
111
+ [class*=":focus"]
112
+ ):where(:not([data-placement])) {
113
+ --touch-t: var(--touch-out);
114
+ --touch-e: var(--ease-phosphor);
115
+ --press-t: var(--press-out);
116
+ --press: 0.96;
117
+ transition:
118
+ color var(--touch-t) var(--touch-e),
119
+ background-color var(--touch-t) var(--touch-e),
120
+ border-color var(--touch-t) var(--touch-e),
121
+ box-shadow var(--touch-t) var(--touch-e),
122
+ text-decoration-color var(--touch-t) var(--touch-e),
123
+ fill var(--touch-t) var(--touch-e),
124
+ stroke var(--touch-t) var(--touch-e),
125
+ outline-color var(--touch-t) var(--touch-e),
126
+ outline-offset var(--touch-t) var(--ease-out-cream),
127
+ scale var(--press-t) var(--ease-out-cream),
128
+ filter var(--press-t) var(--ease-out-cream);
129
+ }
130
+ :where(.ui-motion, .ui-scene)
131
+ :where(
132
+ :hover,
133
+ :focus-visible,
134
+ :active,
135
+ input:focus,
136
+ textarea:focus,
137
+ select:focus,
138
+ [data-highlighted]
139
+ ) {
140
+ --touch-t: var(--touch-in);
141
+ --touch-e: var(--ease-out-cream);
142
+ }
143
+
144
+ :where(.ui-motion, .ui-scene)
145
+ :where(button, a[href], summary, [role="button"]):where(
146
+ :not(
147
+ :disabled,
148
+ [aria-disabled="true"],
149
+ [data-placement],
150
+ [data-still],
151
+ .ui-still
152
+ )
153
+ ):active {
154
+ --press-t: var(--press-in);
155
+ scale: var(--press);
156
+ }
157
+ :where(.ui-scene) :where(a[href]),
158
+ :where(.ui-motion, .ui-scene) :where(.w-full, .flex-1) {
159
+ --press: var(--press-wide);
160
+ }
161
+
162
+ .ui-fade {
163
+ transition:
164
+ opacity var(--touch-t) var(--touch-e),
165
+ color var(--touch-t) var(--touch-e),
166
+ background-color var(--touch-t) var(--touch-e),
167
+ box-shadow var(--touch-t) var(--touch-e),
168
+ text-decoration-color var(--touch-t) var(--touch-e),
169
+ outline-color var(--touch-t) var(--touch-e),
170
+ outline-offset var(--touch-t) var(--ease-out-cream),
171
+ scale var(--press-t) var(--ease-out-cream),
172
+ filter var(--press-t) var(--ease-out-cream);
173
+ }
174
+
175
+ :where(.ui-motion, .ui-scene)
176
+ :where(button, a[href], [role="button"], [role="menuitem"], [role="tab"])
177
+ > iconify-icon,
178
+ .ui-glyph {
179
+ transition:
180
+ color var(--touch-t) var(--touch-e),
181
+ background-color var(--touch-t) var(--touch-e),
182
+ scale var(--touch-t) var(--ease-out-cream),
183
+ translate var(--touch-t) var(--ease-out-cream);
184
+ }
185
+ :where(.ui-motion, .ui-scene)
186
+ :where(
187
+ button,
188
+ a[href],
189
+ [role="button"],
190
+ [role="menuitem"],
191
+ [role="tab"]
192
+ ):is(:focus-visible, [data-highlighted]):not(:disabled)
193
+ > iconify-icon,
194
+ :where(
195
+ button,
196
+ a[href],
197
+ label,
198
+ [role="button"],
199
+ [role="menuitem"],
200
+ [role="option"],
201
+ .group,
202
+ [class*="group/"]
203
+ ):is(:focus-visible, [data-highlighted])
204
+ .ui-glyph {
205
+ scale: 1.08;
206
+ }
207
+ @media (hover: hover) {
208
+ :where(.ui-motion, .ui-scene)
209
+ :where(
210
+ button,
211
+ a[href],
212
+ [role="button"],
213
+ [role="menuitem"],
214
+ [role="tab"]
215
+ ):hover:not(:disabled)
216
+ > iconify-icon,
217
+ :where(
218
+ button,
219
+ a[href],
220
+ label,
221
+ [role="button"],
222
+ [role="menuitem"],
223
+ [role="option"],
224
+ .group,
225
+ [class*="group/"]
226
+ ):hover
227
+ .ui-glyph {
228
+ scale: 1.08;
229
+ }
230
+ }
231
+
232
+ .ui-iris {
233
+ isolation: isolate;
234
+ }
235
+ .ui-iris::before {
236
+ background: var(--iris, var(--color-fill-hover));
237
+ border-radius: inherit;
238
+ content: "";
239
+ inset: 0;
240
+ opacity: 0;
241
+ pointer-events: none;
242
+ position: absolute;
243
+ transition:
244
+ opacity var(--touch-t) var(--touch-e),
245
+ background-color var(--touch-t) var(--touch-e);
246
+ z-index: -1;
247
+ }
248
+ @media (hover: hover) {
249
+ .ui-iris:hover::before {
250
+ opacity: 1;
251
+ }
252
+ }
253
+ .ui-iris:focus-visible::before {
254
+ opacity: 1;
255
+ }
256
+ .ui-iris:active::before {
257
+ opacity: 1;
258
+ --iris: var(--color-fill-active);
259
+ }
260
+
261
+ @media (prefers-reduced-motion: reduce) {
262
+ :root {
263
+ --press: 1;
264
+ }
265
+ :is(.ui-motion, .ui-scene) :where(*) {
266
+ --press: 1;
267
+ }
268
+ :is(.ui-motion, .ui-scene) iconify-icon,
269
+ .ui-glyph {
270
+ scale: none !important;
271
+ }
272
+ }
273
+ }
@@ -0,0 +1,81 @@
1
+ @layer base {
2
+ :where(:root),
3
+ :where(:root[data-theme="light"] .on-photo) {
4
+ color-scheme: dark;
5
+
6
+ --ink-rgb: 250 250 249;
7
+ --page: #000;
8
+
9
+ --ink: rgb(var(--ink-rgb));
10
+ --ink-lead: rgb(var(--ink-rgb) / 0.9);
11
+ --ink-body: rgb(var(--ink-rgb) / 0.7);
12
+ --ink-muted: rgb(var(--ink-rgb) / 0.5);
13
+ --ink-faint: rgb(var(--ink-rgb) / 0.3);
14
+
15
+ --fill: rgb(var(--ink-rgb) / 0.05);
16
+ --fill-hover: rgb(var(--ink-rgb) / 0.1);
17
+ --fill-active: rgb(var(--ink-rgb) / 0.15);
18
+ --edge: rgb(var(--ink-rgb) / 0.05);
19
+ --edge-hover: rgb(var(--ink-rgb) / 0.1);
20
+ --edge-focus: rgb(var(--ink-rgb) / 0.15);
21
+ --rule: rgb(var(--ink-rgb) / 0.05);
22
+ --line: rgb(var(--ink-rgb) / 0.1);
23
+ --plate: color-mix(in srgb, var(--ink) 5%, var(--page));
24
+
25
+ --glass: color-mix(in srgb, var(--ink) 4%, var(--page));
26
+ --veil: color-mix(in srgb, var(--page) 60%, transparent);
27
+ --dim: color-mix(in srgb, var(--page) 30%, transparent);
28
+
29
+ --primary: var(--ink);
30
+ --primary-hover: rgb(var(--ink-rgb) / 0.9);
31
+ --on-primary: var(--page);
32
+ --on-accent: var(--page);
33
+ --sheen-primary: 0 0 0;
34
+ --accent: var(--ink);
35
+ --danger: oklch(70.4% 0.191 22.216);
36
+
37
+ --focus-ring: rgb(var(--ink-rgb) / 0.45);
38
+ --selection: rgb(var(--ink-rgb) / 0.3);
39
+ }
40
+
41
+ :where(:root[data-theme="light"]) {
42
+ color-scheme: light;
43
+
44
+ --ink-rgb: 17 19 24;
45
+ --page: #f7f6f3;
46
+
47
+ --ink: rgb(var(--ink-rgb));
48
+ --ink-lead: rgb(var(--ink-rgb) / 0.9);
49
+ --ink-body: rgb(var(--ink-rgb) / 0.74);
50
+ --ink-muted: rgb(var(--ink-rgb) / 0.56);
51
+ --ink-faint: rgb(var(--ink-rgb) / 0.32);
52
+
53
+ --fill: rgb(var(--ink-rgb) / 0.04);
54
+ --fill-hover: rgb(var(--ink-rgb) / 0.07);
55
+ --fill-active: rgb(var(--ink-rgb) / 0.1);
56
+ --edge: rgb(var(--ink-rgb) / 0.08);
57
+ --edge-hover: rgb(var(--ink-rgb) / 0.12);
58
+ --edge-focus: rgb(var(--ink-rgb) / 0.2);
59
+ --rule: rgb(var(--ink-rgb) / 0.08);
60
+ --line: rgb(var(--ink-rgb) / 0.12);
61
+ --plate: color-mix(in oklab, #fff 70%, var(--page));
62
+
63
+ --glass: color-mix(in oklab, #fff 8%, var(--page));
64
+ --veil: color-mix(in oklab, var(--page) 60%, transparent);
65
+ --dim: rgb(var(--ink-rgb) / 0.2);
66
+
67
+ --primary: var(--ink);
68
+ --primary-hover: color-mix(in oklab, var(--ink) 86%, #fff);
69
+ --on-primary: #fff;
70
+ --on-accent: #fff;
71
+ --sheen-primary: 255 255 255;
72
+ --accent: var(--ink);
73
+ --danger: oklch(58% 0.21 26);
74
+
75
+ --focus-ring: rgb(var(--ink-rgb) / 0.55);
76
+ }
77
+
78
+ :where(:root[data-theme="light"] .on-photo) {
79
+ --page: #0b0c0e;
80
+ }
81
+ }
@@ -0,0 +1,26 @@
1
+ @layer base {
2
+ :where(:root) {
3
+ --step-n6: calc(28ms * var(--tempo, 1));
4
+ --step-n5: calc(45ms * var(--tempo, 1));
5
+ --step-n4: calc(73ms * var(--tempo, 1));
6
+ --step-n3: calc(118ms * var(--tempo, 1));
7
+ --step-n2: calc(191ms * var(--tempo, 1));
8
+ --step-n1: calc(309ms * var(--tempo, 1));
9
+ --step-0: calc(500ms * var(--tempo, 1));
10
+ --step-1: calc(809ms * var(--tempo, 1));
11
+ --step-2: calc(1309ms * var(--tempo, 1));
12
+ --step-3: calc(2118ms * var(--tempo, 1));
13
+ --step-4: calc(3427ms * var(--tempo, 1));
14
+ --step-5: calc(5545ms * var(--tempo, 1));
15
+ --step-6: calc(8972ms * var(--tempo, 1));
16
+
17
+ --curve-linear: cubic-bezier(0, 0, 1, 1);
18
+ --curve-fade: cubic-bezier(0.45, 0, 0.15, 1);
19
+ --curve-silk: cubic-bezier(0.5, 0.05, 0.1, 1);
20
+ --curve-pour: cubic-bezier(0.45, 0.08, 0.08, 1);
21
+ --curve-expo: cubic-bezier(0.36, 0.08, 0.08, 1);
22
+ --curve-glide: cubic-bezier(0.65, 0, 0.35, 1);
23
+ --curve-dolly: cubic-bezier(0.5, 0, 0.12, 1);
24
+ --curve-fall: cubic-bezier(0.45, 0, 0.55, 1);
25
+ }
26
+ }