@jongh/ui 1.6.5 → 2.20260902.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 (316) hide show
  1. package/dist/base.css +1103 -0
  2. package/dist/blue.css +155 -0
  3. package/dist/chunks/component-accordion-CNhK3gho.js +27 -0
  4. package/dist/chunks/component-avatar-C5ox3FhU.js +15 -0
  5. package/dist/chunks/component-badge-GyL8C7n9.js +23 -0
  6. package/dist/chunks/component-box-BnXf833v.js +26 -0
  7. package/dist/chunks/component-button-cnnLKCl_.js +21 -0
  8. package/dist/chunks/component-calendar-D53mkOdW.js +240 -0
  9. package/dist/chunks/component-center-BIp6NkIt.js +32 -0
  10. package/dist/chunks/component-checkbox-cJlGSnlk.js +54 -0
  11. package/dist/chunks/component-dialog-yBIkthjw.js +35 -0
  12. package/dist/chunks/component-grid-BKLFatKL.js +38 -0
  13. package/dist/chunks/component-h-stack-ODw00BMb.js +36 -0
  14. package/dist/chunks/component-select-CHwGLpGT.js +52 -0
  15. package/dist/chunks/component-slider-Ba5H5eY3.js +16 -0
  16. package/dist/chunks/component-tabs-BIWU8zcA.js +58 -0
  17. package/dist/chunks/component-textfield-CCdnfRzb.js +53 -0
  18. package/dist/chunks/component-v-stack-_k842HHc.js +36 -0
  19. package/dist/chunks/recipe-accordion-recipe-DPDnNF9J.js +27 -0
  20. package/dist/chunks/recipe-avatar-recipe-HkwMS2OJ.js +24 -0
  21. package/dist/chunks/recipe-badge-recipe-DWojym5V.js +136 -0
  22. package/dist/chunks/recipe-button-recipe-BA1JNmBF.js +36 -0
  23. package/dist/chunks/recipe-calendar-recipe-CUjveeyt.js +31 -0
  24. package/dist/chunks/recipe-center-recipe-CBm4FTPj.js +24 -0
  25. package/dist/chunks/recipe-checkbox-recipe-CCDU79zw.js +31 -0
  26. package/dist/chunks/recipe-dialog-recipe-Dp_2WfN_.js +31 -0
  27. package/dist/chunks/recipe-layout-recipe-CXAjEcDn.js +20 -0
  28. package/dist/chunks/recipe-select-recipe-Chdpfb_N.js +33 -0
  29. package/dist/chunks/recipe-slider-recipe-Bn_q7Je8.js +25 -0
  30. package/dist/chunks/recipe-tabs-recipe-Bo5qcI1u.js +26 -0
  31. package/dist/chunks/recipe-textfield-recipe-szIwdV6q.js +27 -0
  32. package/dist/chunks/rolldown-runtime-CKyOoeiN.js +12 -0
  33. package/dist/index.d.ts +21694 -0
  34. package/dist/index.js +583 -0
  35. package/dist/purple.css +155 -0
  36. package/dist/recipes/accordion-recipe.css +118 -0
  37. package/dist/recipes/avatar-recipe.css +44 -0
  38. package/dist/recipes/badge-recipe.css +47 -0
  39. package/dist/recipes/button-recipe.css +153 -0
  40. package/dist/recipes/calendar-recipe.css +145 -0
  41. package/dist/recipes/center-recipe.css +13 -0
  42. package/dist/recipes/checkbox-recipe.css +156 -0
  43. package/dist/recipes/dialog-recipe.css +101 -0
  44. package/dist/recipes/layout-recipe.css +427 -0
  45. package/dist/recipes/select-recipe.css +175 -0
  46. package/dist/recipes/slider-recipe.css +60 -0
  47. package/dist/recipes/tabs-recipe.css +76 -0
  48. package/dist/recipes/textfield-recipe.css +95 -0
  49. package/dist/style.css +1 -0
  50. package/package.json +62 -37
  51. package/.storybook/index.css +0 -1
  52. package/.storybook/main.ts +0 -40
  53. package/.storybook/preview.ts +0 -16
  54. package/.storybook/vitest.setup.ts +0 -9
  55. package/.turbo/turbo-build.log +0 -79
  56. package/CHANGELOG.md +0 -54
  57. package/chromatic.config.json +0 -6
  58. package/eslint.config.mjs +0 -14
  59. package/index.html +0 -13
  60. package/panda.config.ts +0 -13
  61. package/postcss.config.cjs +0 -3
  62. package/preset.ts +0 -134
  63. package/src/component/accordion/ui/index.tsx +0 -80
  64. package/src/component/accordion/ui/recipe.ts +0 -65
  65. package/src/component/avatar/ui/index.tsx +0 -47
  66. package/src/component/avatar/ui/recipe.ts +0 -30
  67. package/src/component/button/ui/index.tsx +0 -29
  68. package/src/component/button/ui/recipe.ts +0 -102
  69. package/src/component/chip/ui/index.tsx +0 -30
  70. package/src/component/chip/ui/recipe.ts +0 -112
  71. package/src/component/dialog/ui/index.tsx +0 -73
  72. package/src/component/dialog/ui/recipe.ts +0 -92
  73. package/src/component/select/ui/index.tsx +0 -128
  74. package/src/component/select/ui/recipe.ts +0 -142
  75. package/src/component/slider/ui/index.tsx +0 -61
  76. package/src/component/slider/ui/recipe.ts +0 -52
  77. package/src/component/tabs/ui/index.tsx +0 -61
  78. package/src/component/tabs/ui/recipe.ts +0 -59
  79. package/src/hooks/createContext.tsx +0 -34
  80. package/src/hooks/useComposedRefs.ts +0 -20
  81. package/src/hooks/useControllableState.ts +0 -87
  82. package/src/hooks/useKeyboardEvent.ts +0 -58
  83. package/src/stories/accordion.stories.tsx +0 -63
  84. package/src/stories/avatar.stories.tsx +0 -33
  85. package/src/stories/button.stories.tsx +0 -53
  86. package/src/stories/chip.stories.tsx +0 -69
  87. package/src/stories/dialog.stories.tsx +0 -134
  88. package/src/stories/select.stories.tsx +0 -35
  89. package/src/stories/slider.stories.tsx +0 -31
  90. package/src/stories/tabs.stories.tsx +0 -63
  91. package/src/test/accordion.test.tsx +0 -66
  92. package/src/test/tabs.test.tsx +0 -30
  93. package/src/types/index.ts +0 -1
  94. package/src/utils/createStyleContext.tsx +0 -108
  95. package/src/utils/defineSafe.ts +0 -46
  96. package/src/utils/getObjectKeys.ts +0 -20
  97. package/src/vite-env.d.ts +0 -1
  98. package/storybook-static/assets/Color-F6OSRLHC-CrKta8Qx.js +0 -1
  99. package/storybook-static/assets/DocsRenderer-CFRXHY34-Crd9Mepd.js +0 -586
  100. package/storybook-static/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
  101. package/storybook-static/assets/accordion.stories-0Om0AnMm.js +0 -50
  102. package/storybook-static/assets/avatar.stories-DMDsrSks.js +0 -16
  103. package/storybook-static/assets/axe-Dzet_oDA.js +0 -30
  104. package/storybook-static/assets/button.stories-CuVC-3x-.js +0 -40
  105. package/storybook-static/assets/chip.stories-FBIp8XNi.js +0 -48
  106. package/storybook-static/assets/chunk-XP5HYGXS-D5tuasO7.js +0 -1
  107. package/storybook-static/assets/createLucideIcon-DmXe7Z8R.js +0 -21
  108. package/storybook-static/assets/dialog.stories-3WsEvXt4.js +0 -106
  109. package/storybook-static/assets/entry-preview-Bkgdgq1b.js +0 -10
  110. package/storybook-static/assets/entry-preview-docs-zLz1Es7d.js +0 -46
  111. package/storybook-static/assets/iframe-LPPPXabV.js +0 -199
  112. package/storybook-static/assets/index-Bklpsb39.js +0 -1
  113. package/storybook-static/assets/index-BrlJLjep.js +0 -24
  114. package/storybook-static/assets/index-C2tRLqin.js +0 -41
  115. package/storybook-static/assets/index-CBft-ReK.js +0 -8
  116. package/storybook-static/assets/index-CSbWd7UJ.js +0 -1
  117. package/storybook-static/assets/index-ClcD9ViR.js +0 -9
  118. package/storybook-static/assets/index-Cu4lwwaE.js +0 -1
  119. package/storybook-static/assets/index-Cvkemp2J.js +0 -1
  120. package/storybook-static/assets/index-D59aU5s_.js +0 -240
  121. package/storybook-static/assets/index-DNo8LKN3.js +0 -1
  122. package/storybook-static/assets/index-DUy19JZU.js +0 -1
  123. package/storybook-static/assets/index-D_35mznO.js +0 -1
  124. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  125. package/storybook-static/assets/index-DvbTp2M2.js +0 -1
  126. package/storybook-static/assets/index-rtmQni2k.js +0 -1
  127. package/storybook-static/assets/jsx-runtime-BYYWji4R.js +0 -9
  128. package/storybook-static/assets/matchers-57EZJSQE-oeXCqs4p.js +0 -14
  129. package/storybook-static/assets/preview-1l6V4UsQ.js +0 -1
  130. package/storybook-static/assets/preview-B3PTUHS7.js +0 -1
  131. package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
  132. package/storybook-static/assets/preview-BCV5r-Ja.js +0 -1
  133. package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  134. package/storybook-static/assets/preview-Bb56VplF.js +0 -2
  135. package/storybook-static/assets/preview-Bl8rsKRy.js +0 -1
  136. package/storybook-static/assets/preview-Bm-a94Ct.js +0 -2
  137. package/storybook-static/assets/preview-Br-h4d84.js +0 -1
  138. package/storybook-static/assets/preview-D77C14du.js +0 -34
  139. package/storybook-static/assets/preview-DC8N7cZb.css +0 -1
  140. package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
  141. package/storybook-static/assets/react-18-BPs3tMGP.js +0 -1
  142. package/storybook-static/assets/select.stories-AN8Hb81Z.js +0 -20
  143. package/storybook-static/assets/slider.stories-CxOczq0y.js +0 -12
  144. package/storybook-static/assets/tabs.stories-BbTU4QU3.js +0 -28
  145. package/storybook-static/favicon.svg +0 -1
  146. package/storybook-static/iframe.html +0 -666
  147. package/storybook-static/index.html +0 -193
  148. package/storybook-static/index.json +0 -1
  149. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  150. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  151. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  152. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  153. package/storybook-static/project.json +0 -1
  154. package/storybook-static/sb-addons/a11y-12/manager-bundle.js +0 -3
  155. package/storybook-static/sb-addons/a11y-12/manager-bundle.js.LEGAL.txt +0 -0
  156. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +0 -331
  157. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +0 -51
  158. package/storybook-static/sb-addons/controls-11/manager-bundle.js +0 -391
  159. package/storybook-static/sb-addons/controls-11/manager-bundle.js.LEGAL.txt +0 -0
  160. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
  161. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
  162. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +0 -12
  163. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
  164. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -391
  165. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -0
  166. package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +0 -230
  167. package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js.LEGAL.txt +0 -0
  168. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +0 -3
  169. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
  170. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +0 -3
  171. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
  172. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +0 -3
  173. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
  174. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +0 -3
  175. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
  176. package/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
  177. package/storybook-static/sb-addons/links-1/manager-bundle.js.LEGAL.txt +0 -0
  178. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  179. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  180. package/storybook-static/sb-addons/storybook-experimental-addon-test-13/manager-bundle.js +0 -211
  181. package/storybook-static/sb-addons/storybook-experimental-addon-test-13/manager-bundle.js.LEGAL.txt +0 -0
  182. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  183. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  184. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  185. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  186. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  187. package/storybook-static/sb-manager/globals-module-info.js +0 -1037
  188. package/storybook-static/sb-manager/globals-runtime.js +0 -40857
  189. package/storybook-static/sb-manager/globals.js +0 -48
  190. package/storybook-static/sb-manager/runtime.js +0 -11963
  191. package/styled-system/css/conditions.mjs +0 -36
  192. package/styled-system/css/css.d.ts +0 -22
  193. package/styled-system/css/css.mjs +0 -45
  194. package/styled-system/css/cva.d.ts +0 -6
  195. package/styled-system/css/cva.mjs +0 -87
  196. package/styled-system/css/cx.d.ts +0 -5
  197. package/styled-system/css/cx.mjs +0 -15
  198. package/styled-system/css/index.d.ts +0 -5
  199. package/styled-system/css/index.mjs +0 -4
  200. package/styled-system/css/sva.d.ts +0 -4
  201. package/styled-system/css/sva.mjs +0 -41
  202. package/styled-system/helpers.mjs +0 -336
  203. package/styled-system/jsx/aspect-ratio.d.ts +0 -10
  204. package/styled-system/jsx/aspect-ratio.mjs +0 -14
  205. package/styled-system/jsx/bleed.d.ts +0 -10
  206. package/styled-system/jsx/bleed.mjs +0 -14
  207. package/styled-system/jsx/box.d.ts +0 -10
  208. package/styled-system/jsx/box.mjs +0 -14
  209. package/styled-system/jsx/center.d.ts +0 -10
  210. package/styled-system/jsx/center.mjs +0 -14
  211. package/styled-system/jsx/circle.d.ts +0 -10
  212. package/styled-system/jsx/circle.mjs +0 -14
  213. package/styled-system/jsx/container.d.ts +0 -10
  214. package/styled-system/jsx/container.mjs +0 -14
  215. package/styled-system/jsx/cq.d.ts +0 -10
  216. package/styled-system/jsx/cq.mjs +0 -14
  217. package/styled-system/jsx/divider.d.ts +0 -10
  218. package/styled-system/jsx/divider.mjs +0 -14
  219. package/styled-system/jsx/factory-helper.mjs +0 -22
  220. package/styled-system/jsx/factory.d.ts +0 -3
  221. package/styled-system/jsx/factory.mjs +0 -80
  222. package/styled-system/jsx/flex.d.ts +0 -10
  223. package/styled-system/jsx/flex.mjs +0 -14
  224. package/styled-system/jsx/float.d.ts +0 -10
  225. package/styled-system/jsx/float.mjs +0 -14
  226. package/styled-system/jsx/grid-item.d.ts +0 -10
  227. package/styled-system/jsx/grid-item.mjs +0 -14
  228. package/styled-system/jsx/grid.d.ts +0 -10
  229. package/styled-system/jsx/grid.mjs +0 -14
  230. package/styled-system/jsx/hstack.d.ts +0 -10
  231. package/styled-system/jsx/hstack.mjs +0 -14
  232. package/styled-system/jsx/index.d.ts +0 -24
  233. package/styled-system/jsx/index.mjs +0 -22
  234. package/styled-system/jsx/is-valid-prop.d.ts +0 -11
  235. package/styled-system/jsx/is-valid-prop.mjs +0 -17
  236. package/styled-system/jsx/link-overlay.d.ts +0 -10
  237. package/styled-system/jsx/link-overlay.mjs +0 -14
  238. package/styled-system/jsx/spacer.d.ts +0 -10
  239. package/styled-system/jsx/spacer.mjs +0 -14
  240. package/styled-system/jsx/square.d.ts +0 -10
  241. package/styled-system/jsx/square.mjs +0 -14
  242. package/styled-system/jsx/stack.d.ts +0 -10
  243. package/styled-system/jsx/stack.mjs +0 -14
  244. package/styled-system/jsx/visually-hidden.d.ts +0 -10
  245. package/styled-system/jsx/visually-hidden.mjs +0 -14
  246. package/styled-system/jsx/vstack.d.ts +0 -10
  247. package/styled-system/jsx/vstack.mjs +0 -14
  248. package/styled-system/jsx/wrap.d.ts +0 -10
  249. package/styled-system/jsx/wrap.mjs +0 -14
  250. package/styled-system/patterns/aspect-ratio.d.ts +0 -21
  251. package/styled-system/patterns/aspect-ratio.mjs +0 -38
  252. package/styled-system/patterns/bleed.d.ts +0 -22
  253. package/styled-system/patterns/bleed.mjs +0 -24
  254. package/styled-system/patterns/box.d.ts +0 -21
  255. package/styled-system/patterns/box.mjs +0 -15
  256. package/styled-system/patterns/center.d.ts +0 -21
  257. package/styled-system/patterns/center.mjs +0 -21
  258. package/styled-system/patterns/circle.d.ts +0 -21
  259. package/styled-system/patterns/circle.mjs +0 -25
  260. package/styled-system/patterns/container.d.ts +0 -21
  261. package/styled-system/patterns/container.mjs +0 -21
  262. package/styled-system/patterns/cq.d.ts +0 -22
  263. package/styled-system/patterns/cq.mjs +0 -21
  264. package/styled-system/patterns/divider.d.ts +0 -23
  265. package/styled-system/patterns/divider.mjs +0 -25
  266. package/styled-system/patterns/flex.d.ts +0 -27
  267. package/styled-system/patterns/flex.mjs +0 -26
  268. package/styled-system/patterns/float.d.ts +0 -24
  269. package/styled-system/patterns/float.mjs +0 -52
  270. package/styled-system/patterns/grid-item.d.ts +0 -26
  271. package/styled-system/patterns/grid-item.mjs +0 -25
  272. package/styled-system/patterns/grid.d.ts +0 -25
  273. package/styled-system/patterns/grid.mjs +0 -27
  274. package/styled-system/patterns/hstack.d.ts +0 -22
  275. package/styled-system/patterns/hstack.mjs +0 -24
  276. package/styled-system/patterns/index.d.ts +0 -21
  277. package/styled-system/patterns/index.mjs +0 -20
  278. package/styled-system/patterns/link-overlay.d.ts +0 -21
  279. package/styled-system/patterns/link-overlay.mjs +0 -24
  280. package/styled-system/patterns/spacer.d.ts +0 -21
  281. package/styled-system/patterns/spacer.mjs +0 -21
  282. package/styled-system/patterns/square.d.ts +0 -21
  283. package/styled-system/patterns/square.mjs +0 -24
  284. package/styled-system/patterns/stack.d.ts +0 -24
  285. package/styled-system/patterns/stack.mjs +0 -24
  286. package/styled-system/patterns/visually-hidden.d.ts +0 -21
  287. package/styled-system/patterns/visually-hidden.mjs +0 -18
  288. package/styled-system/patterns/vstack.d.ts +0 -22
  289. package/styled-system/patterns/vstack.mjs +0 -24
  290. package/styled-system/patterns/wrap.d.ts +0 -25
  291. package/styled-system/patterns/wrap.mjs +0 -25
  292. package/styled-system/tokens/index.d.ts +0 -9
  293. package/styled-system/tokens/index.mjs +0 -1992
  294. package/styled-system/tokens/tokens.d.ts +0 -60
  295. package/styled-system/types/composition.d.ts +0 -164
  296. package/styled-system/types/conditions.d.ts +0 -274
  297. package/styled-system/types/csstype.d.ts +0 -21298
  298. package/styled-system/types/global.d.ts +0 -20
  299. package/styled-system/types/index.d.ts +0 -8
  300. package/styled-system/types/jsx.d.ts +0 -52
  301. package/styled-system/types/parts.d.ts +0 -8
  302. package/styled-system/types/pattern.d.ts +0 -78
  303. package/styled-system/types/prop-type.d.ts +0 -235
  304. package/styled-system/types/recipe.d.ts +0 -181
  305. package/styled-system/types/selectors.d.ts +0 -59
  306. package/styled-system/types/static-css.d.ts +0 -56
  307. package/styled-system/types/style-props.d.ts +0 -7468
  308. package/styled-system/types/system-types.d.ts +0 -109
  309. package/tsconfig.json +0 -13
  310. package/turbo/generators/config.cjs +0 -7
  311. package/turbo/generators/stories.cjs +0 -23
  312. package/turbo/generators/templates/stories.tsx.hbs +0 -16
  313. package/turbo/generators/templates/ui.tsx.hbs +0 -8
  314. package/turbo/generators/ui.cjs +0 -19
  315. package/vite.config.ts +0 -7
  316. package/vitest.config.ts +0 -45
package/dist/blue.css ADDED
@@ -0,0 +1,155 @@
1
+ @layer tokens {
2
+ [data-color-theme=blue] {
3
+ --colors-fg-brand: var(--colors-palette-light-blue-600);
4
+ --colors-fg-brand-contrast: var(--colors-palette-light-blue-700);
5
+ --colors-fg-critical: var(--colors-palette-light-red-700);
6
+ --colors-fg-critical-contrast: var(--colors-palette-light-red-900);
7
+ --colors-fg-disabled: var(--colors-palette-light-gray-500);
8
+ --colors-fg-informative: var(--colors-palette-light-blue-700);
9
+ --colors-fg-informative-contrast: var(--colors-palette-light-blue-900);
10
+ --colors-fg-neutral: var(--colors-palette-light-gray-1000);
11
+ --colors-fg-neutral-inverted: var(--colors-palette-light-gray-00);
12
+ --colors-fg-neutral-muted: var(--colors-palette-light-gray-800);
13
+ --colors-fg-neutral-subtle: var(--colors-palette-light-gray-700);
14
+ --colors-fg-placeholder: var(--colors-palette-light-gray-600);
15
+ --colors-fg-positive: var(--colors-palette-light-green-700);
16
+ --colors-fg-positive-contrast: var(--colors-palette-light-green-900);
17
+ --colors-fg-warning: var(--colors-palette-light-yellow-700);
18
+ --colors-fg-warning-contrast: var(--colors-palette-light-yellow-900);
19
+ --colors-bg-brand-solid: var(--colors-palette-light-blue-600);
20
+ --colors-bg-brand-solid-pressed: var(--colors-palette-light-blue-700);
21
+ --colors-bg-brand-weak: var(--colors-palette-light-blue-100);
22
+ --colors-bg-brand-weak-pressed: var(--colors-palette-light-blue-200);
23
+ --colors-bg-critical-solid: var(--colors-palette-light-red-700);
24
+ --colors-bg-critical-solid-pressed: var(--colors-palette-light-red-800);
25
+ --colors-bg-critical-weak: var(--colors-palette-light-red-100);
26
+ --colors-bg-critical-weak-pressed: var(--colors-palette-light-red-200);
27
+ --colors-bg-disabled: var(--colors-palette-light-gray-200);
28
+ --colors-bg-informative-solid: var(--colors-palette-light-blue-700);
29
+ --colors-bg-informative-solid-pressed: var(--colors-palette-light-blue-800);
30
+ --colors-bg-informative-weak: var(--colors-palette-light-blue-100);
31
+ --colors-bg-informative-weak-pressed: var(--colors-palette-light-blue-200);
32
+ --colors-bg-layer: var(--colors-palette-light-gray-00);
33
+ --colors-bg-layer-basement: var(--colors-palette-light-gray-200);
34
+ --colors-bg-layer-pressed: var(--colors-palette-light-gray-100);
35
+ --colors-bg-layer-floating: var(--colors-palette-light-gray-00);
36
+ --colors-bg-layer-floating-pressed: var(--colors-palette-light-gray-100);
37
+ --colors-bg-magic-weak: #f9f2ee;
38
+ --colors-bg-neutral-inverted: var(--colors-palette-light-gray-900);
39
+ --colors-bg-neutral-inverted-pressed: var(--colors-palette-light-gray-800);
40
+ --colors-bg-neutral-solid: var(--colors-palette-light-gray-1000);
41
+ --colors-bg-neutral-solid-muted: var(--colors-palette-light-gray-800);
42
+ --colors-bg-neutral-solid-muted-pressed: var(--colors-palette-light-gray-900);
43
+ --colors-bg-neutral-weak: var(--colors-palette-light-gray-200);
44
+ --colors-bg-neutral-weak-alpha: var(--colors-palette-static-black-alpha-200);
45
+ --colors-bg-neutral-weak-alpha-pressed: var(--colors-palette-static-black-alpha-300);
46
+ --colors-bg-neutral-weak-pressed: var(--colors-palette-light-gray-300);
47
+ --colors-bg-overlay: var(--colors-palette-static-black-alpha-700);
48
+ --colors-bg-overlay-muted: var(--colors-palette-static-black-alpha-500);
49
+ --colors-bg-positive-solid: var(--colors-palette-light-green-700);
50
+ --colors-bg-positive-solid-pressed: var(--colors-palette-light-green-800);
51
+ --colors-bg-positive-weak: var(--colors-palette-light-green-100);
52
+ --colors-bg-positive-weak-pressed: var(--colors-palette-light-green-200);
53
+ --colors-bg-transparent: #00000000;
54
+ --colors-bg-transparent-pressed: var(--colors-palette-static-black-alpha-100);
55
+ --colors-bg-transparent-selected: var(--colors-palette-static-black-alpha-200);
56
+ --colors-bg-transparent-selected-pressed: var(--colors-palette-static-black-alpha-300);
57
+ --colors-bg-warning-solid: var(--colors-palette-light-yellow-300);
58
+ --colors-bg-warning-solid-pressed: var(--colors-palette-light-yellow-400);
59
+ --colors-bg-warning-weak: var(--colors-palette-light-yellow-100);
60
+ --colors-bg-warning-weak-pressed: var(--colors-palette-light-yellow-200);
61
+ --colors-stroke-brand-solid: var(--colors-palette-light-blue-700);
62
+ --colors-stroke-brand-weak: var(--colors-palette-light-blue-300);
63
+ --colors-stroke-critical-solid: var(--colors-palette-light-red-700);
64
+ --colors-stroke-critical-weak: var(--colors-palette-light-red-300);
65
+ --colors-stroke-focus-ring: var(--colors-palette-light-blue-600);
66
+ --colors-stroke-informative-solid: var(--colors-palette-light-blue-700);
67
+ --colors-stroke-informative-weak: var(--colors-palette-light-blue-300);
68
+ --colors-stroke-neutral-contrast: var(--colors-palette-light-gray-1000);
69
+ --colors-stroke-neutral-muted: var(--colors-palette-static-black-alpha-300);
70
+ --colors-stroke-neutral-solid: var(--colors-palette-light-gray-800);
71
+ --colors-stroke-neutral-subtle: var(--colors-palette-static-black-alpha-200);
72
+ --colors-stroke-neutral-weak: var(--colors-palette-light-gray-400);
73
+ --colors-stroke-positive-solid: var(--colors-palette-light-green-700);
74
+ --colors-stroke-positive-weak: var(--colors-palette-light-green-300);
75
+ --colors-stroke-warning-solid: var(--colors-palette-light-yellow-700);
76
+ --colors-stroke-warning-weak: var(--colors-palette-light-yellow-300)
77
+ }
78
+
79
+ [data-color-theme=blue].dark {
80
+ --colors-fg-brand: var(--colors-palette-dark-blue-700);
81
+ --colors-fg-brand-contrast: var(--colors-palette-dark-blue-700);
82
+ --colors-fg-critical: var(--colors-palette-dark-red-700);
83
+ --colors-fg-critical-contrast: var(--colors-palette-dark-red-900);
84
+ --colors-fg-disabled: var(--colors-palette-dark-gray-500);
85
+ --colors-fg-informative: var(--colors-palette-dark-blue-700);
86
+ --colors-fg-informative-contrast: var(--colors-palette-dark-blue-900);
87
+ --colors-fg-neutral: var(--colors-palette-dark-gray-1000);
88
+ --colors-fg-neutral-inverted: var(--colors-palette-dark-gray-100);
89
+ --colors-fg-neutral-muted: var(--colors-palette-dark-gray-800);
90
+ --colors-fg-neutral-subtle: var(--colors-palette-dark-gray-700);
91
+ --colors-fg-placeholder: var(--colors-palette-dark-gray-600);
92
+ --colors-fg-positive: var(--colors-palette-dark-green-700);
93
+ --colors-fg-positive-contrast: var(--colors-palette-dark-green-900);
94
+ --colors-fg-warning: var(--colors-palette-dark-yellow-700);
95
+ --colors-fg-warning-contrast: var(--colors-palette-dark-yellow-900);
96
+ --colors-bg-brand-solid: var(--colors-palette-dark-blue-700);
97
+ --colors-bg-brand-solid-pressed: var(--colors-palette-dark-blue-800);
98
+ --colors-bg-brand-weak: var(--colors-palette-dark-blue-100);
99
+ --colors-bg-brand-weak-pressed: var(--colors-palette-dark-blue-200);
100
+ --colors-bg-critical-solid: var(--colors-palette-dark-red-600);
101
+ --colors-bg-critical-solid-pressed: var(--colors-palette-dark-red-700);
102
+ --colors-bg-critical-weak: var(--colors-palette-dark-red-100);
103
+ --colors-bg-critical-weak-pressed: var(--colors-palette-dark-red-200);
104
+ --colors-bg-disabled: var(--colors-palette-dark-gray-300);
105
+ --colors-bg-informative-solid: var(--colors-palette-dark-blue-600);
106
+ --colors-bg-informative-solid-pressed: var(--colors-palette-dark-blue-700);
107
+ --colors-bg-informative-weak: var(--colors-palette-dark-blue-100);
108
+ --colors-bg-informative-weak-pressed: var(--colors-palette-dark-blue-200);
109
+ --colors-bg-layer: var(--colors-palette-dark-gray-100);
110
+ --colors-bg-layer-basement: var(--colors-palette-dark-gray-00);
111
+ --colors-bg-layer-pressed: var(--colors-palette-dark-gray-300);
112
+ --colors-bg-layer-floating: var(--colors-palette-dark-gray-200);
113
+ --colors-bg-layer-floating-pressed: var(--colors-palette-dark-gray-300);
114
+ --colors-bg-magic-weak: #201f1f;
115
+ --colors-bg-neutral-inverted: var(--colors-palette-dark-gray-1000);
116
+ --colors-bg-neutral-inverted-pressed: var(--colors-palette-dark-gray-800);
117
+ --colors-bg-neutral-solid: var(--colors-palette-dark-gray-300);
118
+ --colors-bg-neutral-solid-muted: var(--colors-palette-dark-gray-400);
119
+ --colors-bg-neutral-solid-muted-pressed: var(--colors-palette-dark-gray-500);
120
+ --colors-bg-neutral-weak: var(--colors-palette-dark-gray-300);
121
+ --colors-bg-neutral-weak-alpha: var(--colors-palette-static-white-alpha-200);
122
+ --colors-bg-neutral-weak-alpha-pressed: var(--colors-palette-static-white-alpha-300);
123
+ --colors-bg-neutral-weak-pressed: var(--colors-palette-dark-gray-400);
124
+ --colors-bg-overlay: var(--colors-palette-static-black-alpha-700);
125
+ --colors-bg-overlay-muted: var(--colors-palette-static-black-alpha-500);
126
+ --colors-bg-positive-solid: var(--colors-palette-dark-green-500);
127
+ --colors-bg-positive-solid-pressed: var(--colors-palette-dark-green-600);
128
+ --colors-bg-positive-weak: var(--colors-palette-dark-green-100);
129
+ --colors-bg-positive-weak-pressed: var(--colors-palette-dark-green-200);
130
+ --colors-bg-transparent: #ffffff00;
131
+ --colors-bg-transparent-pressed: var(--colors-palette-static-white-alpha-50);
132
+ --colors-bg-transparent-selected: var(--colors-palette-static-white-alpha-100);
133
+ --colors-bg-transparent-selected-pressed: var(--colors-palette-static-white-alpha-200);
134
+ --colors-bg-warning-solid: var(--colors-palette-dark-yellow-800);
135
+ --colors-bg-warning-solid-pressed: var(--colors-palette-dark-yellow-900);
136
+ --colors-bg-warning-weak: var(--colors-palette-dark-yellow-100);
137
+ --colors-bg-warning-weak-pressed: var(--colors-palette-dark-yellow-200);
138
+ --colors-stroke-brand-solid: var(--colors-palette-dark-blue-700);
139
+ --colors-stroke-brand-weak: var(--colors-palette-dark-blue-300);
140
+ --colors-stroke-critical-solid: var(--colors-palette-dark-red-700);
141
+ --colors-stroke-critical-weak: var(--colors-palette-dark-red-300);
142
+ --colors-stroke-focus-ring: var(--colors-palette-dark-blue-600);
143
+ --colors-stroke-informative-solid: var(--colors-palette-dark-blue-700);
144
+ --colors-stroke-informative-weak: var(--colors-palette-dark-blue-300);
145
+ --colors-stroke-neutral-contrast: var(--colors-palette-dark-gray-1000);
146
+ --colors-stroke-neutral-muted: var(--colors-palette-static-white-alpha-100);
147
+ --colors-stroke-neutral-solid: var(--colors-palette-dark-gray-800);
148
+ --colors-stroke-neutral-subtle: var(--colors-palette-static-white-alpha-50);
149
+ --colors-stroke-neutral-weak: var(--colors-palette-dark-gray-400);
150
+ --colors-stroke-positive-solid: var(--colors-palette-dark-green-700);
151
+ --colors-stroke-positive-weak: var(--colors-palette-dark-green-300);
152
+ --colors-stroke-warning-solid: var(--colors-palette-dark-yellow-700);
153
+ --colors-stroke-warning-weak: var(--colors-palette-dark-yellow-300)
154
+ }
155
+ }
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/accordion-recipe.css";
4
+ import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
5
+ import { t } from "./recipe-accordion-recipe-DPDnNF9J.js";
6
+ import { a as n, c as r } from "../index.js";
7
+ import { forwardRef as i } from "react";
8
+ import { Accordion as a } from "radix-ui";
9
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
10
+ //#region src/component/accordion/index.tsx
11
+ var c = /* @__PURE__ */ e({
12
+ Content: () => h,
13
+ Header: () => p,
14
+ Item: () => f,
15
+ Root: () => d,
16
+ Trigger: () => g
17
+ }), { withContext: l, withProvider: u } = r(t), d = u(a.Root, "root"), f = l(a.Item, "item"), p = l(a.Header, "header"), m = l("div", "contentWrapper"), h = l(i(({ children: e, ...t }, n) => /* @__PURE__ */ o(a.Content, {
18
+ ref: n,
19
+ ...t,
20
+ children: /* @__PURE__ */ o(m, { children: e })
21
+ })), "content"), g = l(i(({ children: e, ...t }, r) => /* @__PURE__ */ o(p, { children: /* @__PURE__ */ s(a.Trigger, {
22
+ ref: r,
23
+ ...t,
24
+ children: [e, /* @__PURE__ */ o(n, { "aria-hidden": "true" })]
25
+ }) })), "trigger");
26
+ //#endregion
27
+ export { c as t };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/avatar-recipe.css";
4
+ import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
5
+ import { t } from "./recipe-avatar-recipe-HkwMS2OJ.js";
6
+ import { c as n } from "../index.js";
7
+ import { Avatar as r } from "radix-ui";
8
+ //#region src/component/avatar/index.tsx
9
+ var i = /* @__PURE__ */ e({
10
+ Fallback: () => l,
11
+ Image: () => c,
12
+ Root: () => s
13
+ }), { withContext: a, withProvider: o } = n(t), s = o(r.Root, "root"), c = a(r.Image, "image"), l = a(r.Fallback, "fallback");
14
+ //#endregion
15
+ export { i as t };
@@ -0,0 +1,23 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/badge-recipe.css";
4
+ import { t as e } from "./recipe-badge-recipe-DWojym5V.js";
5
+ import { u as t } from "../index.js";
6
+ import { forwardRef as n } from "react";
7
+ import { jsx as r } from "react/jsx-runtime";
8
+ //#region src/component/badge/index.tsx
9
+ var i = n(({ className: n, children: i, ...a }, o) => {
10
+ let [s, c] = e.splitVariantProps(a), l = e(s);
11
+ return /* @__PURE__ */ r("span", {
12
+ ref: o,
13
+ className: t(l.root, n),
14
+ ...c,
15
+ children: /* @__PURE__ */ r("span", {
16
+ className: l.label,
17
+ children: i
18
+ })
19
+ });
20
+ });
21
+ i.displayName = "Badge";
22
+ //#endregion
23
+ export { i as t };
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/layout-recipe.css";
4
+ import { t as e } from "./recipe-layout-recipe-CXAjEcDn.js";
5
+ import { l as t, t as n, u as r } from "../index.js";
6
+ import { forwardRef as i } from "react";
7
+ import { jsx as a } from "react/jsx-runtime";
8
+ import { Primitive as o } from "radix-ui/internal";
9
+ //#region src/component/box/index.tsx
10
+ var s = i(({ asChild: i, ...s }, c) => {
11
+ let [l, u] = t(s), { className: d, style: f, ...p } = u;
12
+ return /* @__PURE__ */ a(o.div, {
13
+ asChild: i,
14
+ ref: c,
15
+ "data-slot": "box",
16
+ className: r(e(), d),
17
+ style: {
18
+ ...n(l),
19
+ ...f
20
+ },
21
+ ...p
22
+ });
23
+ });
24
+ s.displayName = "Box";
25
+ //#endregion
26
+ export { s as t };
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/button-recipe.css";
4
+ import { t as e } from "./recipe-button-recipe-BA1JNmBF.js";
5
+ import { u as t } from "../index.js";
6
+ import { forwardRef as n } from "react";
7
+ import { jsx as r } from "react/jsx-runtime";
8
+ import { Primitive as i } from "radix-ui/internal";
9
+ //#region src/component/button/index.tsx
10
+ var a = n(({ asChild: n, className: a, ...o }, s) => {
11
+ let [c, l] = e.splitVariantProps(o);
12
+ return /* @__PURE__ */ r(i.button, {
13
+ asChild: n,
14
+ ref: s,
15
+ className: t(e(c), a),
16
+ ...l
17
+ });
18
+ });
19
+ a.displayName = "Button";
20
+ //#endregion
21
+ export { a as t };
@@ -0,0 +1,240 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/calendar-recipe.css";
4
+ import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
5
+ import { t } from "./recipe-calendar-recipe-CUjveeyt.js";
6
+ import { i as n, r, u as i } from "../index.js";
7
+ import { forwardRef as a, useCallback as o, useMemo as s } from "react";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { Context as u, useControllableState as d } from "radix-ui/internal";
10
+ //#region src/component/calendar/index.tsx
11
+ var f = /* @__PURE__ */ e({
12
+ Days: () => S,
13
+ Header: () => y,
14
+ RangeCalendar: () => _,
15
+ Root: () => g,
16
+ SingleCalendar: () => v,
17
+ Weekday: () => b
18
+ }), p = "calendar", [m, h] = u.createContext(p), g = (e) => {
19
+ let { type: t = "single", ...n } = e;
20
+ return t === "single" ? /* @__PURE__ */ c(v, {
21
+ ...n,
22
+ type: "single"
23
+ }) : /* @__PURE__ */ c(_, {
24
+ ...n,
25
+ type: "range"
26
+ });
27
+ }, _ = a(({ className: e, children: n, range: r, defaultRange: a, onRangeChange: l, viewDate: u, defaultViewDate: f, onViewDateChange: p, weekStart: h = 0, locale: g = "en-US", ..._ }, v) => {
28
+ let [y, b] = d({
29
+ prop: r,
30
+ defaultProp: a ?? [null, null],
31
+ onChange: l
32
+ }), [x, S] = d({
33
+ prop: u,
34
+ defaultProp: f ?? /* @__PURE__ */ new Date(),
35
+ onChange: p
36
+ }), C = o((e) => {
37
+ let t = new Date(x);
38
+ t.setMonth(t.getMonth() + e), S(t);
39
+ }, [x, S]), w = o((e) => {
40
+ let t = new Date(x);
41
+ t.setFullYear(t.getFullYear() + e), S(t);
42
+ }, [x, S]), T = s(() => {
43
+ let e = new Date(x), t = new Date(e.getFullYear(), e.getMonth(), 1), n = new Date(e.getFullYear(), e.getMonth() + 1, 0), r = new Date(e.getFullYear(), e.getMonth(), 0), i = new Date(e.getFullYear(), e.getMonth() + 1, 1);
44
+ return {
45
+ year: e.getFullYear(),
46
+ month: e.getMonth() + 1,
47
+ day: e.getDate(),
48
+ daysInMonth: n.getDate(),
49
+ startWeek: (t.getDay() - h + 7) % 7,
50
+ daysInPrevMonth: r.getDate(),
51
+ nextMonthStartWeek: (i.getDay() - h + 7) % 7
52
+ };
53
+ }, [x, h]), E = o((e) => {
54
+ let t = new Date(e);
55
+ t.setHours(0, 0, 0, 0), b((n) => {
56
+ let [r, i] = n, a = r ? new Date(r) : null;
57
+ return a && a.setHours(0, 0, 0, 0), a ? a && !i ? t < a ? [e, null] : [r, e] : a && i ? [e, null] : n : [e, null];
58
+ });
59
+ }, [b]), D = t();
60
+ return /* @__PURE__ */ c("div", {
61
+ ref: v,
62
+ className: i(D.root, e),
63
+ ..._,
64
+ children: /* @__PURE__ */ c(m, {
65
+ value: T,
66
+ weekStart: h,
67
+ locale: g,
68
+ onMonthChange: C,
69
+ onYearChange: w,
70
+ selectedValue: y,
71
+ handleDayClick: E,
72
+ children: n
73
+ })
74
+ });
75
+ }), v = a(({ className: e, children: n, date: r, defaultDate: a, onDateChange: l, viewDate: u, defaultViewDate: f, onViewDateChange: p, weekStart: h = 0, locale: g = "en-US", ..._ }, v) => {
76
+ let [y, b] = d({
77
+ prop: u,
78
+ defaultProp: f ?? /* @__PURE__ */ new Date(),
79
+ onChange: p
80
+ }), [x, S] = d({
81
+ prop: r,
82
+ defaultProp: a ?? null,
83
+ onChange: l
84
+ }), C = o((e) => {
85
+ let t = new Date(y);
86
+ t.setMonth(t.getMonth() + e), b(t);
87
+ }, [y, b]), w = o((e) => {
88
+ let t = new Date(y);
89
+ t.setFullYear(t.getFullYear() + e), b(t);
90
+ }, [y, b]), T = s(() => {
91
+ let e = new Date(y), t = new Date(e.getFullYear(), e.getMonth(), 1), n = new Date(e.getFullYear(), e.getMonth() + 1, 0), r = new Date(e.getFullYear(), e.getMonth(), 0), i = new Date(e.getFullYear(), e.getMonth() + 1, 1);
92
+ return {
93
+ year: e.getFullYear(),
94
+ month: e.getMonth() + 1,
95
+ day: e.getDate(),
96
+ daysInMonth: n.getDate(),
97
+ startWeek: (t.getDay() - h + 7) % 7,
98
+ daysInPrevMonth: r.getDate(),
99
+ nextMonthStartWeek: (i.getDay() - h + 7) % 7
100
+ };
101
+ }, [y, h]), E = t();
102
+ return /* @__PURE__ */ c(m, {
103
+ value: T,
104
+ onMonthChange: C,
105
+ onYearChange: w,
106
+ weekStart: h,
107
+ locale: g,
108
+ selectedValue: x ? [x] : [],
109
+ handleDayClick: (e) => S(e),
110
+ children: /* @__PURE__ */ c("div", {
111
+ ref: v,
112
+ className: i(E.root, e),
113
+ ..._,
114
+ children: n
115
+ })
116
+ });
117
+ }), y = ({ className: e, month: a = "long", year: o = "numeric", render: s }) => {
118
+ let { value: u, onMonthChange: d, locale: f } = h(p), m = t(), g = new Intl.DateTimeFormat(f, {
119
+ month: a,
120
+ year: o
121
+ }).format(new Date(u.year, u.month - 1));
122
+ return /* @__PURE__ */ l("div", {
123
+ className: i(m.header, e),
124
+ children: [
125
+ /* @__PURE__ */ c("button", {
126
+ type: "button",
127
+ className: m.navButton,
128
+ onClick: () => d(-1),
129
+ "aria-label": "Go To Previous month",
130
+ children: /* @__PURE__ */ c(n, {})
131
+ }),
132
+ /* @__PURE__ */ c("div", {
133
+ className: m.title,
134
+ children: s ? s(new Date(u.year, u.month - 1), f) : `${g}`
135
+ }),
136
+ /* @__PURE__ */ c("button", {
137
+ type: "button",
138
+ className: m.navButton,
139
+ onClick: () => d(1),
140
+ "aria-label": "Go To Next month",
141
+ children: /* @__PURE__ */ c(r, {})
142
+ })
143
+ ]
144
+ });
145
+ }, b = ({ className: e, format: n = "short" }) => {
146
+ let { weekStart: r, locale: a } = h(p), o = t();
147
+ return /* @__PURE__ */ c("div", {
148
+ className: i(o.weekdayRow, e),
149
+ children: C(r, a, n).map((e, t) => /* @__PURE__ */ c("div", {
150
+ className: o.weekday,
151
+ children: e
152
+ }, t))
153
+ });
154
+ }, x = ({ className: e, day: n, month: r, year: a, isHidden: o, isOutsideMonth: s, ...l }) => {
155
+ let { locale: u, selectedValue: d } = h(p), f = t(), m = new Date(a, r - 1, n), g = /* @__PURE__ */ new Date(), _ = d[0], v = d[1], y = d.some((e) => e && w(e, m)), b = w(g, m), x = !!(_ && v && m > _ && m < v);
156
+ return /* @__PURE__ */ c("button", {
157
+ type: "button",
158
+ className: i(f.dayCell, e),
159
+ "data-day": m.getDate(),
160
+ "data-month": m.getMonth() + 1,
161
+ "data-year": m.getFullYear(),
162
+ "data-hidden": o,
163
+ "data-outside-month": s,
164
+ "data-today": b,
165
+ "data-selected": y,
166
+ "data-in-range": x,
167
+ "aria-hidden": o,
168
+ "aria-current": b ? "date" : void 0,
169
+ "aria-label": new Intl.DateTimeFormat(u, { dateStyle: "full" }).format(m),
170
+ "aria-pressed": y,
171
+ disabled: o,
172
+ tabIndex: o ? -1 : void 0,
173
+ ...l,
174
+ children: !o && n
175
+ });
176
+ }, S = ({ className: e, showOutsideDays: n = !0 }) => {
177
+ let { value: r, handleDayClick: a } = h(p), o = t(), l = s(() => {
178
+ let e = [];
179
+ for (let t = r.startWeek; t > 0; t--) e.push({
180
+ day: r.daysInPrevMonth - t + 1,
181
+ isCurrentMonth: !1
182
+ });
183
+ for (let t = 1; t <= r.daysInMonth; t++) e.push({
184
+ day: t,
185
+ isCurrentMonth: !0
186
+ });
187
+ for (let t = 1; t <= 6 - r.nextMonthStartWeek + 1; t++) e.push({
188
+ day: t,
189
+ isCurrentMonth: !1
190
+ });
191
+ let t = [];
192
+ for (let n = 0; n < e.length; n += 7) t.push(e.slice(n, n + 7));
193
+ return t;
194
+ }, [
195
+ r.startWeek,
196
+ r.daysInMonth,
197
+ r.daysInPrevMonth,
198
+ r.nextMonthStartWeek
199
+ ]);
200
+ return /* @__PURE__ */ c("table", {
201
+ className: i(o.daysGrid, e),
202
+ children: /* @__PURE__ */ c("tbody", { children: l.map((e, t) => /* @__PURE__ */ c("tr", {
203
+ className: o.weekRow,
204
+ children: e.map((e, i) => {
205
+ let s = !n && !e.isCurrentMonth, l = e.isCurrentMonth ? r.month : t === 0 ? r.month - 1 : r.month + 1;
206
+ return /* @__PURE__ */ c("td", {
207
+ className: o.dayWrapper,
208
+ children: /* @__PURE__ */ c(x, {
209
+ day: e.day,
210
+ month: l,
211
+ year: r.year,
212
+ isHidden: s,
213
+ isOutsideMonth: !e.isCurrentMonth,
214
+ onClick: () => a(new Date(r.year, l - 1, e.day))
215
+ })
216
+ }, `${t}-${i}`);
217
+ })
218
+ }, t)) })
219
+ });
220
+ };
221
+ function C(e, t, n = "short") {
222
+ let r = [
223
+ 0,
224
+ 1,
225
+ 2,
226
+ 3,
227
+ 4,
228
+ 5,
229
+ 6
230
+ ];
231
+ return [...r.slice(e), ...r.slice(0, e)].map((e) => {
232
+ let r = /* @__PURE__ */ new Date();
233
+ return r.setDate(r.getDate() - r.getDay() + e), new Intl.DateTimeFormat(t, { weekday: n }).format(r);
234
+ });
235
+ }
236
+ function w(e, t) {
237
+ return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
238
+ }
239
+ //#endregion
240
+ export { f as t };
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/center-recipe.css";
4
+ import "../recipes/layout-recipe.css";
5
+ import { t as e } from "./recipe-center-recipe-CBm4FTPj.js";
6
+ import { t } from "./recipe-layout-recipe-CXAjEcDn.js";
7
+ import { l as n, t as r, u as i } from "../index.js";
8
+ import { forwardRef as a } from "react";
9
+ import { jsx as o } from "react/jsx-runtime";
10
+ import { Primitive as s } from "radix-ui/internal";
11
+ //#region src/component/center/index.tsx
12
+ var c = a(({ asChild: a, axis: c = "both", isInline: l = !1, children: u, ...d }, f) => {
13
+ let [p, m] = n(d), { className: h, style: g, ..._ } = m;
14
+ return /* @__PURE__ */ o(s.div, {
15
+ asChild: a,
16
+ ref: f,
17
+ "data-slot": "center",
18
+ className: i(t(), e({ axis: c }), h),
19
+ style: {
20
+ ...r({
21
+ ...p,
22
+ display: p.display ?? (l ? "inline-flex" : "flex")
23
+ }),
24
+ ...g
25
+ },
26
+ ..._,
27
+ children: u
28
+ });
29
+ });
30
+ c.displayName = "Center";
31
+ //#endregion
32
+ export { c as t };
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/checkbox-recipe.css";
4
+ import { t as e } from "./recipe-checkbox-recipe-CCDU79zw.js";
5
+ import { u as t } from "../index.js";
6
+ import { forwardRef as n, useEffect as r, useId as i, useRef as a } from "react";
7
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
+ import { useComposedRefs as c, useControllableState as l } from "radix-ui/internal";
9
+ //#region src/component/checkbox/index.tsx
10
+ var u = n((n, u) => {
11
+ let [d, f] = e.splitVariantProps(n), { label: p, indeterminate: m, onCheckedChange: h, onChange: g, ..._ } = f, { root: v, label: y, input: b, text: x } = e(d), [S, C] = l({
12
+ prop: _.checked,
13
+ defaultProp: _.defaultChecked ?? !1,
14
+ onChange: h
15
+ }), w = a(null), T = a(S), E = i();
16
+ r(() => {
17
+ w.current && (w.current.indeterminate = m ?? !1);
18
+ }, [m]), r(() => {
19
+ let e = w.current?.form;
20
+ if (e) {
21
+ let t = () => C(T.current);
22
+ return e.addEventListener("reset", t), () => {
23
+ e.removeEventListener("reset", t);
24
+ };
25
+ }
26
+ }, [C]);
27
+ let D = c(u, w);
28
+ return /* @__PURE__ */ o("div", {
29
+ className: v,
30
+ children: /* @__PURE__ */ s("label", {
31
+ htmlFor: `checkbox-${E}`,
32
+ className: y,
33
+ children: [/* @__PURE__ */ o("input", {
34
+ type: "checkbox",
35
+ id: `checkbox-${E}`,
36
+ className: t(b, "peer"),
37
+ ref: D,
38
+ onChange: (e) => {
39
+ C(e.currentTarget.checked), g?.(e);
40
+ },
41
+ checked: S,
42
+ "data-state": m ? "indeterminate" : S ? "checked" : "unchecked",
43
+ "data-indeterminate": m ? "" : void 0,
44
+ ..._
45
+ }), /* @__PURE__ */ o("span", {
46
+ className: x,
47
+ children: p
48
+ })]
49
+ })
50
+ });
51
+ });
52
+ u.displayName = "Checkbox";
53
+ //#endregion
54
+ export { u as t };
@@ -0,0 +1,35 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/dialog-recipe.css";
4
+ import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
5
+ import { t } from "./recipe-dialog-recipe-Dp_2WfN_.js";
6
+ import { c as n, d as r, n as i } from "../index.js";
7
+ import { forwardRef as a } from "react";
8
+ import { Dialog as o } from "radix-ui";
9
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
+ //#region src/component/dialog/index.tsx
11
+ var l = /* @__PURE__ */ e({
12
+ Close: () => _,
13
+ Content: () => y,
14
+ ContentPrimitive: () => v,
15
+ Description: () => C,
16
+ Footer: () => x,
17
+ Header: () => h,
18
+ Overlay: () => m,
19
+ Portal: () => p,
20
+ Root: () => f,
21
+ Title: () => S,
22
+ Trigger: () => b
23
+ }), { withContext: u, withRootProvider: d } = n(t), f = d(o.Root), p = u(o.Portal, "portal"), m = u(o.Overlay, "overlay"), h = u("div", "header"), g = u(o.Close, "close"), _ = o.Close, v = a(({ children: e, closeIcon: t = !0, ...n }, a) => /* @__PURE__ */ c(p, { children: [/* @__PURE__ */ s(m, {}), /* @__PURE__ */ c(o.Content, {
24
+ ref: a,
25
+ ...n,
26
+ children: [e, t && /* @__PURE__ */ c(g, {
27
+ "aria-label": "Close Dialog",
28
+ children: [/* @__PURE__ */ s(i, {}), /* @__PURE__ */ s("span", {
29
+ className: r({ srOnly: !0 }),
30
+ children: "Close"
31
+ })]
32
+ })]
33
+ })] })), y = u(v, "content"), b = u(o.Trigger, "trigger"), x = u("div", "footer"), S = u(o.Title, "title"), C = u(o.Description, "description");
34
+ //#endregion
35
+ export { l as t };
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import "../base.css";
3
+ import "../recipes/layout-recipe.css";
4
+ import { t as e } from "./recipe-layout-recipe-CXAjEcDn.js";
5
+ import { l as t, t as n, u as r } from "../index.js";
6
+ import { forwardRef as i } from "react";
7
+ import { jsx as a } from "react/jsx-runtime";
8
+ import { Primitive as o } from "radix-ui/internal";
9
+ //#region src/component/grid/index.tsx
10
+ var s = (e) => typeof e != "object" || !e ? typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e : Object.fromEntries(Object.entries(e).map(([e, t]) => [e, typeof t == "number" ? `repeat(${t}, minmax(0, 1fr))` : t])), c = i(({ asChild: i, align: c, justify: l, justifyItems: u, columns: d, rows: f, autoFlow: p, autoColumns: m, autoRows: h, children: g, ..._ }, v) => {
11
+ let [y, b] = t(_), { className: x, style: S, ...C } = b;
12
+ return /* @__PURE__ */ a(o.div, {
13
+ asChild: i,
14
+ ref: v,
15
+ "data-slot": "grid",
16
+ className: r(e(), x),
17
+ style: {
18
+ ...n({
19
+ ...y,
20
+ display: y.display ?? "grid",
21
+ alignItems: c,
22
+ justifyContent: l,
23
+ justifyItems: u,
24
+ gridTemplateColumns: s(d),
25
+ gridTemplateRows: s(f),
26
+ gridAutoFlow: p,
27
+ gridAutoColumns: m,
28
+ gridAutoRows: h
29
+ }),
30
+ ...S
31
+ },
32
+ ...C,
33
+ children: g
34
+ });
35
+ });
36
+ c.displayName = "Grid";
37
+ //#endregion
38
+ export { c as t };