@nous-research/ui 0.2.7 → 0.4.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 (200) hide show
  1. package/README.md +42 -3
  2. package/dist/fonts.d.ts +1 -0
  3. package/dist/fonts.d.ts.map +1 -0
  4. package/dist/fonts.js.map +1 -1
  5. package/dist/hooks/use-capped-frame.d.ts +1 -0
  6. package/dist/hooks/use-capped-frame.d.ts.map +1 -0
  7. package/dist/hooks/use-capped-frame.js.map +1 -1
  8. package/dist/hooks/use-css-var-dims.d.ts +1 -0
  9. package/dist/hooks/use-css-var-dims.d.ts.map +1 -0
  10. package/dist/hooks/use-css-var-dims.js.map +1 -1
  11. package/dist/hooks/use-gpu-tier.d.ts +1 -0
  12. package/dist/hooks/use-gpu-tier.d.ts.map +1 -0
  13. package/dist/hooks/use-gpu-tier.js.map +1 -1
  14. package/dist/hooks/use-smooth-controls.d.ts +1 -0
  15. package/dist/hooks/use-smooth-controls.d.ts.map +1 -0
  16. package/dist/hooks/use-smooth-controls.js.map +1 -1
  17. package/dist/index.d.ts +7 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +5 -6
  20. package/dist/index.js.map +1 -1
  21. package/dist/ui/basic-page.d.ts +1 -0
  22. package/dist/ui/basic-page.d.ts.map +1 -0
  23. package/dist/ui/basic-page.js.map +1 -1
  24. package/dist/ui/components/animated-count.d.ts +1 -0
  25. package/dist/ui/components/animated-count.d.ts.map +1 -0
  26. package/dist/ui/components/animated-count.js.map +1 -1
  27. package/dist/ui/components/ascii.d.ts +1 -0
  28. package/dist/ui/components/ascii.d.ts.map +1 -0
  29. package/dist/ui/components/ascii.js.map +1 -1
  30. package/dist/ui/components/badge.d.ts +1 -0
  31. package/dist/ui/components/badge.d.ts.map +1 -0
  32. package/dist/ui/components/badge.js.map +1 -1
  33. package/dist/ui/components/badges/nous-girl.d.ts +1 -0
  34. package/dist/ui/components/badges/nous-girl.d.ts.map +1 -0
  35. package/dist/ui/components/badges/nous-girl.js.map +1 -1
  36. package/dist/ui/components/blend-mode.d.ts +1 -0
  37. package/dist/ui/components/blend-mode.d.ts.map +1 -0
  38. package/dist/ui/components/blend-mode.js.map +1 -1
  39. package/dist/ui/components/blink.d.ts +1 -0
  40. package/dist/ui/components/blink.d.ts.map +1 -0
  41. package/dist/ui/components/blink.js.map +1 -1
  42. package/dist/ui/components/button.d.ts +1 -0
  43. package/dist/ui/components/button.d.ts.map +1 -0
  44. package/dist/ui/components/button.js.map +1 -1
  45. package/dist/ui/components/command-block.d.ts +25 -0
  46. package/dist/ui/components/command-block.d.ts.map +1 -0
  47. package/dist/ui/components/command-block.js +27 -0
  48. package/dist/ui/components/command-block.js.map +1 -0
  49. package/dist/ui/components/cursor.d.ts +1 -0
  50. package/dist/ui/components/cursor.d.ts.map +1 -0
  51. package/dist/ui/components/cursor.js.map +1 -1
  52. package/dist/ui/components/dropdown-menu.d.ts +1 -0
  53. package/dist/ui/components/dropdown-menu.d.ts.map +1 -0
  54. package/dist/ui/components/dropdown-menu.js.map +1 -1
  55. package/dist/ui/components/fit-text/index.d.ts +1 -0
  56. package/dist/ui/components/fit-text/index.d.ts.map +1 -0
  57. package/dist/ui/components/fit-text/index.js.map +1 -1
  58. package/dist/ui/components/graphs/bar-chart.d.ts +1 -0
  59. package/dist/ui/components/graphs/bar-chart.d.ts.map +1 -0
  60. package/dist/ui/components/graphs/bar-chart.js.map +1 -1
  61. package/dist/ui/components/graphs/index.d.ts +1 -0
  62. package/dist/ui/components/graphs/index.d.ts.map +1 -0
  63. package/dist/ui/components/graphs/index.js.map +1 -1
  64. package/dist/ui/components/graphs/line-chart.d.ts +1 -0
  65. package/dist/ui/components/graphs/line-chart.d.ts.map +1 -0
  66. package/dist/ui/components/graphs/line-chart.js.map +1 -1
  67. package/dist/ui/components/graphs/utils.d.ts +1 -0
  68. package/dist/ui/components/graphs/utils.d.ts.map +1 -0
  69. package/dist/ui/components/graphs/utils.js.map +1 -1
  70. package/dist/ui/components/grid/index.d.ts +1 -0
  71. package/dist/ui/components/grid/index.d.ts.map +1 -0
  72. package/dist/ui/components/grid/index.js.map +1 -1
  73. package/dist/ui/components/hover-bg.d.ts +1 -0
  74. package/dist/ui/components/hover-bg.d.ts.map +1 -0
  75. package/dist/ui/components/hover-bg.js.map +1 -1
  76. package/dist/ui/components/icons/arrow.d.ts +1 -0
  77. package/dist/ui/components/icons/arrow.d.ts.map +1 -0
  78. package/dist/ui/components/icons/arrow.js.map +1 -1
  79. package/dist/ui/components/icons/chevron.d.ts +1 -0
  80. package/dist/ui/components/icons/chevron.d.ts.map +1 -0
  81. package/dist/ui/components/icons/chevron.js.map +1 -1
  82. package/dist/ui/components/icons/eye.d.ts +1 -0
  83. package/dist/ui/components/icons/eye.d.ts.map +1 -0
  84. package/dist/ui/components/icons/eye.js.map +1 -1
  85. package/dist/ui/components/icons/gear.d.ts +1 -0
  86. package/dist/ui/components/icons/gear.d.ts.map +1 -0
  87. package/dist/ui/components/icons/gear.js.map +1 -1
  88. package/dist/ui/components/icons/hamburger.d.ts +7 -0
  89. package/dist/ui/components/icons/hamburger.d.ts.map +1 -0
  90. package/dist/ui/components/icons/hamburger.js +6 -0
  91. package/dist/ui/components/icons/hamburger.js.map +1 -0
  92. package/dist/ui/components/icons/heart.d.ts +1 -0
  93. package/dist/ui/components/icons/heart.d.ts.map +1 -0
  94. package/dist/ui/components/icons/heart.js.map +1 -1
  95. package/dist/ui/components/icons/index.d.ts +2 -0
  96. package/dist/ui/components/icons/index.d.ts.map +1 -0
  97. package/dist/ui/components/icons/index.js +1 -0
  98. package/dist/ui/components/icons/index.js.map +1 -1
  99. package/dist/ui/components/icons/link.d.ts +1 -0
  100. package/dist/ui/components/icons/link.d.ts.map +1 -0
  101. package/dist/ui/components/icons/link.js.map +1 -1
  102. package/dist/ui/components/icons/minus.d.ts +1 -0
  103. package/dist/ui/components/icons/minus.d.ts.map +1 -0
  104. package/dist/ui/components/icons/minus.js.map +1 -1
  105. package/dist/ui/components/icons/search.d.ts +1 -0
  106. package/dist/ui/components/icons/search.d.ts.map +1 -0
  107. package/dist/ui/components/icons/search.js.map +1 -1
  108. package/dist/ui/components/image-distortion.d.ts +15 -0
  109. package/dist/ui/components/image-distortion.d.ts.map +1 -0
  110. package/dist/ui/components/image-distortion.js +278 -0
  111. package/dist/ui/components/image-distortion.js.map +1 -0
  112. package/dist/ui/components/leva-client.d.ts +1 -0
  113. package/dist/ui/components/leva-client.d.ts.map +1 -0
  114. package/dist/ui/components/leva-client.js.map +1 -1
  115. package/dist/ui/components/modal/index.d.ts +1 -0
  116. package/dist/ui/components/modal/index.d.ts.map +1 -0
  117. package/dist/ui/components/modal/index.js.map +1 -1
  118. package/dist/ui/components/overlays/glitch.d.ts +1 -0
  119. package/dist/ui/components/overlays/glitch.d.ts.map +1 -0
  120. package/dist/ui/components/overlays/glitch.js.map +1 -1
  121. package/dist/ui/components/overlays/greys.d.ts +1 -0
  122. package/dist/ui/components/overlays/greys.d.ts.map +1 -0
  123. package/dist/ui/components/overlays/greys.js.map +1 -1
  124. package/dist/ui/components/overlays/index.d.ts +1 -0
  125. package/dist/ui/components/overlays/index.d.ts.map +1 -0
  126. package/dist/ui/components/overlays/index.js.map +1 -1
  127. package/dist/ui/components/overlays/noise.d.ts +1 -0
  128. package/dist/ui/components/overlays/noise.d.ts.map +1 -0
  129. package/dist/ui/components/overlays/noise.js.map +1 -1
  130. package/dist/ui/components/overlays/vignette.d.ts +1 -0
  131. package/dist/ui/components/overlays/vignette.d.ts.map +1 -0
  132. package/dist/ui/components/overlays/vignette.js.map +1 -1
  133. package/dist/ui/components/progress.d.ts +1 -0
  134. package/dist/ui/components/progress.d.ts.map +1 -0
  135. package/dist/ui/components/progress.js.map +1 -1
  136. package/dist/ui/components/scene-canvas.d.ts +1 -0
  137. package/dist/ui/components/scene-canvas.d.ts.map +1 -0
  138. package/dist/ui/components/scene-canvas.js.map +1 -1
  139. package/dist/ui/components/scramble.d.ts +1 -0
  140. package/dist/ui/components/scramble.d.ts.map +1 -0
  141. package/dist/ui/components/scramble.js.map +1 -1
  142. package/dist/ui/components/selection-switcher.d.ts +1 -0
  143. package/dist/ui/components/selection-switcher.d.ts.map +1 -0
  144. package/dist/ui/components/selection-switcher.js.map +1 -1
  145. package/dist/ui/components/shader.d.ts +1 -0
  146. package/dist/ui/components/shader.d.ts.map +1 -0
  147. package/dist/ui/components/shader.js.map +1 -1
  148. package/dist/ui/components/stats.d.ts +1 -0
  149. package/dist/ui/components/stats.d.ts.map +1 -0
  150. package/dist/ui/components/stats.js.map +1 -1
  151. package/dist/ui/components/terminal-demo.d.ts +33 -0
  152. package/dist/ui/components/terminal-demo.d.ts.map +1 -0
  153. package/dist/ui/components/terminal-demo.js +79 -0
  154. package/dist/ui/components/terminal-demo.js.map +1 -0
  155. package/dist/ui/components/theme-toggle.d.ts +7 -0
  156. package/dist/ui/components/theme-toggle.d.ts.map +1 -0
  157. package/dist/ui/components/theme-toggle.js +10 -0
  158. package/dist/ui/components/theme-toggle.js.map +1 -0
  159. package/dist/ui/components/tv.d.ts +1 -0
  160. package/dist/ui/components/tv.d.ts.map +1 -0
  161. package/dist/ui/components/tv.js.map +1 -1
  162. package/dist/ui/components/typography/h1.d.ts +1 -0
  163. package/dist/ui/components/typography/h1.d.ts.map +1 -0
  164. package/dist/ui/components/typography/h1.js.map +1 -1
  165. package/dist/ui/components/typography/h2.d.ts +1 -0
  166. package/dist/ui/components/typography/h2.d.ts.map +1 -0
  167. package/dist/ui/components/typography/h2.js.map +1 -1
  168. package/dist/ui/components/typography/index.d.ts +1 -0
  169. package/dist/ui/components/typography/index.d.ts.map +1 -0
  170. package/dist/ui/components/typography/index.js.map +1 -1
  171. package/dist/ui/components/typography/legend.d.ts +1 -0
  172. package/dist/ui/components/typography/legend.d.ts.map +1 -0
  173. package/dist/ui/components/typography/legend.js.map +1 -1
  174. package/dist/ui/components/typography/small.d.ts +1 -0
  175. package/dist/ui/components/typography/small.d.ts.map +1 -0
  176. package/dist/ui/components/typography/small.js.map +1 -1
  177. package/dist/ui/components/watchlist.d.ts +1 -0
  178. package/dist/ui/components/watchlist.d.ts.map +1 -0
  179. package/dist/ui/components/watchlist.js.map +1 -1
  180. package/dist/ui/footer.d.ts +6 -1
  181. package/dist/ui/footer.d.ts.map +1 -0
  182. package/dist/ui/footer.js +2 -3
  183. package/dist/ui/footer.js.map +1 -1
  184. package/dist/ui/header.d.ts +6 -1
  185. package/dist/ui/header.d.ts.map +1 -0
  186. package/dist/ui/header.js +2 -3
  187. package/dist/ui/header.js.map +1 -1
  188. package/dist/ui/layout-wrapper.d.ts +1 -0
  189. package/dist/ui/layout-wrapper.d.ts.map +1 -0
  190. package/dist/ui/layout-wrapper.js.map +1 -1
  191. package/dist/utils/color.d.ts +1 -0
  192. package/dist/utils/color.d.ts.map +1 -0
  193. package/dist/utils/color.js.map +1 -1
  194. package/dist/utils/index.d.ts +1 -0
  195. package/dist/utils/index.d.ts.map +1 -0
  196. package/dist/utils/index.js.map +1 -1
  197. package/dist/utils/poly.d.ts +1 -0
  198. package/dist/utils/poly.d.ts.map +1 -0
  199. package/dist/utils/poly.js.map +1 -1
  200. package/package.json +17 -10
@@ -1 +1,6 @@
1
- export declare function Header(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function Header({ LinkComponent }: HeaderProps): import("react/jsx-runtime").JSX.Element;
2
+ interface HeaderProps {
3
+ LinkComponent?: React.ElementType;
4
+ }
5
+ export {};
6
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../src/ui/header.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,MAAM,CAAC,EAAE,aAAmB,EAAE,EAAE,WAAW,2CA8B1D;AAED,UAAU,WAAW;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAClC"}
package/dist/ui/header.js CHANGED
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Link } from 'next-view-transitions';
4
3
  import { useRef } from 'react';
5
4
  import { useCssVarDims } from '../hooks/use-css-var-dims';
6
5
  import { Blink } from './components/blink';
@@ -14,9 +13,9 @@ const NAV = [
14
13
  { href: '/provenance', label: 'Provenance' },
15
14
  { href: '/contribute', label: 'Contribute' }
16
15
  ];
17
- export function Header() {
16
+ export function Header({ LinkComponent = 'a' }) {
18
17
  const ref = useRef(null);
19
18
  useCssVarDims('header', ref);
20
- return (_jsxs(Grid, { as: "header", ref, children: [_jsx(Cell, { as: Link, href: "/", children: _jsxs("hgroup", { className: "flex flex-col gap-2", children: [_jsx(Small, { children: "Nous" }), _jsx(H2, { children: "Psyche" })] }) }), NAV.map(({ href, label }) => (_jsxs(Cell, { as: Link, className: "group relative", href: '/runs', children: [_jsxs(Small, { children: [label, _jsx(Blink, {})] }), _jsx(HoverBg, {})] }, href)))] }));
19
+ return (_jsxs(Grid, { as: "header", ref, children: [_jsx(Cell, { as: LinkComponent, href: "/", children: _jsxs("hgroup", { className: "flex flex-col gap-2", children: [_jsx(Small, { children: "Nous" }), _jsx(H2, { children: "Psyche" })] }) }), NAV.map(({ href, label }) => (_jsxs(Cell, { as: LinkComponent, className: "group relative", href: '/runs', children: [_jsxs(Small, { children: [label, _jsx(Blink, {})] }), _jsx(HoverBg, {})] }, href)))] }));
21
20
  }
22
21
  //# sourceMappingURL=header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../src/ui/header.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,IAA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AAK,EACN,KAAC,KAAK,KAAG,IACH,EAER,KAAC,OAAO,KAAG,KARN,IAAI,CASJ,CACR,CAAC,IACG,CACR,CAAA;AACH,CAAC","sourcesContent":["'use client'\n\nimport { useRef } from 'react'\n\nimport { useCssVarDims } from '../hooks/use-css-var-dims'\nimport { Blink } from './components/blink'\nimport { Cell, Grid } from './components/grid'\nimport { HoverBg } from './components/hover-bg'\nimport { H2 } from './components/typography/h2'\nimport { Small } from './components/typography/small'\n\nconst NAV = [\n { href: '/projects', label: 'Projects' },\n { href: '/participants', label: 'Participants' },\n { href: '/provenance', label: 'Provenance' },\n { href: '/contribute', label: 'Contribute' }\n]\n\nexport function Header({ LinkComponent = 'a' }: HeaderProps) {\n const ref = useRef<HTMLElement>(null)\n useCssVarDims('header', ref)\n\n return (\n <Grid as=\"header\" {...{ ref }}>\n <Cell as={LinkComponent} href=\"/\">\n <hgroup className=\"flex flex-col gap-2\">\n <Small>Nous</Small>\n <H2>Psyche</H2>\n </hgroup>\n </Cell>\n\n {NAV.map(({ href, label }) => (\n <Cell\n as={LinkComponent}\n className=\"group relative\"\n key={href}\n {...{ href: '/runs' }}\n >\n <Small>\n {label}\n <Blink />\n </Small>\n\n <HoverBg />\n </Cell>\n ))}\n </Grid>\n )\n}\n\ninterface HeaderProps {\n LinkComponent?: React.ElementType\n}\n"]}
@@ -1 +1,2 @@
1
1
  export declare function LayoutWrapper({ children }: Readonly<React.PropsWithChildren>): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=layout-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-wrapper.d.ts","sourceRoot":"","sources":["../../src/ui/layout-wrapper.tsx"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACT,EAAE,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,2CAQnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"layout-wrapper.js","sourceRoot":"","sources":["../../src/ui/layout-wrapper.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,aAAa,CAAC,EAC5B,QAAQ,EAC0B;IAClC,OAAO,CACL,eAAM,IAAI,EAAC,IAAI,YACb,eAAM,SAAS,EAAC,6DAA6D,YAC1E,QAAQ,GACJ,GACF,CACR,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"layout-wrapper.js","sourceRoot":"","sources":["../../src/ui/layout-wrapper.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,aAAa,CAAC,EAC5B,QAAQ,EAC0B;IAClC,OAAO,CACL,eAAM,IAAI,EAAC,IAAI,YACb,eAAM,SAAS,EAAC,6DAA6D,YAC1E,QAAQ,GACJ,GACF,CACR,CAAA;AACH,CAAC","sourcesContent":["export function LayoutWrapper({\n children\n}: Readonly<React.PropsWithChildren>) {\n return (\n <html lang=\"en\">\n <body className=\"text-midground font-mondwest bg-black uppercase antialiased\">\n {children}\n </body>\n </html>\n )\n}\n"]}
@@ -2,3 +2,4 @@ export declare const hexToRgb: (hex: string) => number[];
2
2
  export declare const rgbToHex: (r: number, g: number, b: number) => string;
3
3
  export declare const colorDodge: (base: string, blend: string) => string;
4
4
  export declare const colorMix: (color: string, alpha: number) => string;
5
+ //# sourceMappingURL=color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/utils/color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,aAInC,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,WACY,CAAA;AAEpE,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,WAQrD,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,WACoB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/utils/color.ts"],"names":[],"mappings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AQ,CAAC,KAAK,CAAC,CAAA;IAEpC,MAAM,CAAC,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CACjC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IAEpE,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;AAClD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CACvD,sBAAsB,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,iBAAiB,CAAA","sourcesContent":["export const hexToRgb = (hex: string) => [\n parseInt(hex.slice(1, 3), 16),\n parseInt(hex.slice(3, 5), 16),\n parseInt(hex.slice(5, 7), 16)\n]\n\nexport const rgbToHex = (r: number, g: number, b: number) =>\n `#${[r, g, b].map(v => v.toString(16).padStart(2, '0')).join('')}`\n\nexport const colorDodge = (base: string, blend: string) => {\n const [br, bg, bb] = hexToRgb(base)\n const [lr, lg, lb] = hexToRgb(blend)\n\n const d = (b: number, l: number) =>\n l === 255 ? 255 : Math.min(255, Math.floor((b * 255) / (255 - l)))\n\n return rgbToHex(d(br, lr), d(bg, lg), d(bb, lb))\n}\n\nexport const colorMix = (color: string, alpha: number) =>\n `color-mix(in srgb, ${color} ${Math.round(alpha * 100)}%, transparent)`\n"]}
@@ -13,3 +13,4 @@ export declare const truncate: (text: string, options: {
13
13
  length: number;
14
14
  }) => string;
15
15
  export declare const stripWpStyles: (html: string) => string;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAG5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAE/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA;AACtC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,CAAA;AAEjD,eAAO,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,WAA0B,CAAA;AAEpE,eAAO,MAAM,KAAK,GAAI,GAAG,MAAM,EAAE,YAAO,EAAE,YAAO,WACW,CAAA;AAE5D,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,GAAG,MAAM,WAIjE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,kBAIpC,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,SAAS;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,WACW,CAAA;AAE7E,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,WA6BtC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,IAAI,EAAE,MAAM,MAAM,CAAA;AAC5C,OAAO,QAAQ,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B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,QAAQ;QACR,YAAY;QACZ,QAAQ;QACR,OAAO;QACP,OAAO;QACP,QAAQ;QACR,SAAS;KACV;CACF,CAAC,CAAA","sourcesContent":["import { type ClassValue, clsx } from 'clsx'\nimport sanitize from 'sanitize-html'\nimport { twMerge } from 'tailwind-merge'\nimport * as THREE from 'three'\n\nimport { hexToRgb, rgbToHex } from './color'\nimport { polyRef } from './poly'\nimport type { PolyComponent, PolyProps, PolyRef } from './poly'\n\nexport { hexToRgb, polyRef, rgbToHex }\nexport type { PolyComponent, PolyProps, PolyRef }\n\nexport const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs))\n\nexport const clamp = (v: number, min = 0, max = 1) =>\n Math.min(max, Math.max(min, Number.isFinite(v) ? v : min))\n\nexport const smoothstep = (edge0: number, edge1: number, x: number) => {\n const t = clamp((x - edge0) / (edge1 - edge0))\n\n return t * t * (3 - 2 * t)\n}\n\nexport const hexToVec3 = (hex: string) => {\n const [r, g, b] = hexToRgb(hex)\n\n return new THREE.Vector3(r / 255, g / 255, b / 255)\n}\n\nexport const truncate = (text: string, options: { length: number }) =>\n text.length > options.length ? `${text.slice(0, options.length)}...` : text\n\nexport const stripWpStyles = (html: string) =>\n sanitize(html, {\n allowedAttributes: {\n a: ['href', 'target', 'rel', 'name'],\n audio: ['src', 'controls'],\n iframe: ['src', 'width', 'height', 'frameborder', 'allowfullscreen'],\n img: ['src', 'alt', 'width', 'height', 'loading'],\n source: ['src', 'type', 'srcset'],\n td: ['colspan', 'rowspan'],\n th: ['colspan', 'rowspan'],\n video: ['src', 'controls', 'width', 'height', 'poster']\n },\n allowedIframeHostnames: [\n 'www.youtube.com',\n 'youtube.com',\n 'player.vimeo.com'\n ],\n allowedSchemes: ['http', 'https', 'mailto'],\n allowedTags: [\n ...sanitize.defaults.allowedTags,\n 'img',\n 'figure',\n 'figcaption',\n 'iframe',\n 'video',\n 'audio',\n 'source',\n 'picture'\n ]\n })\n"]}
@@ -6,3 +6,4 @@ export type PolyComponent<D extends React.ElementType, Own extends object = obje
6
6
  ref?: PolyRef<T>;
7
7
  }) => null | React.ReactElement;
8
8
  export declare const polyRef: <D extends React.ElementType, Own extends object = object>(render: <T extends React.ElementType = D>(props: PolyProps<T, Own>, ref: PolyRef<T>) => null | React.ReactElement) => PolyComponent<D, Own>;
9
+ //# sourceMappingURL=poly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poly.d.ts","sourceRoot":"","sources":["../../src/utils/poly.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,CACnB,CAAC,SAAS,KAAK,CAAC,WAAW,EAC3B,GAAG,SAAS,MAAM,GAAG,MAAM,IACzB;IAAE,EAAE,CAAC,EAAE,CAAC,CAAA;CAAE,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,CAAC,CAAA;AAEhF,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAC7C,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AAEvC,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,KAAK,CAAC,WAAW,EAC3B,GAAG,SAAS,MAAM,GAAG,MAAM,IACzB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,CAAC,EAClC,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CAAE,KAC5C,IAAI,GAAG,KAAK,CAAC,YAAY,CAAA;AAE9B,eAAO,MAAM,OAAO,EAAiB,CACnC,CAAC,SAAS,KAAK,CAAC,WAAW,EAC3B,GAAG,SAAS,MAAM,GAAG,MAAM,EAE3B,MAAM,EAAE,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,CAAC,EACtC,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,EACxB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,KACZ,IAAI,GAAG,KAAK,CAAC,YAAY,KAC3B,aAAa,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"poly.js","sourceRoot":"","sources":["../../src/utils/poly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBlC,MAAM,CAAC,MAAM,OAAO,GAAG,UAQG,CAAA"}
1
+ {"version":3,"file":"poly.js","sourceRoot":"","sources":["../../src/utils/poly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBlC,MAAM,CAAC,MAAM,OAAO,GAAG,UAQG,CAAA","sourcesContent":["import { forwardRef } from 'react'\n\nexport type PolyProps<\n T extends React.ElementType,\n Own extends object = object\n> = { as?: T } & Own & Omit<React.ComponentPropsWithoutRef<T>, 'as' | keyof Own>\n\nexport type PolyRef<T extends React.ElementType> =\n React.ComponentPropsWithRef<T>['ref']\n\nexport type PolyComponent<\n D extends React.ElementType,\n Own extends object = object\n> = <T extends React.ElementType = D>(\n props: PolyProps<T, Own> & { ref?: PolyRef<T> }\n) => null | React.ReactElement\n\nexport const polyRef = forwardRef as <\n D extends React.ElementType,\n Own extends object = object\n>(\n render: <T extends React.ElementType = D>(\n props: PolyProps<T, Own>,\n ref: PolyRef<T>\n ) => null | React.ReactElement\n) => PolyComponent<D, Own>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nous-research/ui",
3
- "version": "0.2.7",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -46,23 +46,32 @@
46
46
  "tw-animate-css": "^1.4.0"
47
47
  },
48
48
  "devDependencies": {
49
+ "@observablehq/plot": "^0.6.17",
50
+ "@react-three/fiber": "^9.4.0",
51
+ "@storybook/addon-a11y": "^10.3.1",
52
+ "@storybook/addon-docs": "^10.3.1",
53
+ "@storybook/react-vite": "^10.3.1",
49
54
  "@tailwindcss/cli": "^4",
50
- "@tailwindcss/postcss": "^4",
55
+ "@tailwindcss/vite": "^4",
51
56
  "@types/node": "25.6.0",
52
57
  "@types/react": "^19.2.3",
53
58
  "@types/react-dom": "^19.2.3",
54
59
  "@types/sanitize-html": "^2.16.0",
55
60
  "@types/three": "^0.183.1",
56
- "next": "^16",
61
+ "@vitejs/plugin-react": "^5.0.0",
62
+ "gsap": "^3.13.0",
63
+ "leva": "^0.10.1",
64
+ "storybook": "^10.3.1",
57
65
  "tailwindcss": "^4",
58
- "typescript": "^5"
66
+ "three": "^0.180.0",
67
+ "typescript": "^5",
68
+ "vite": "^6.0.0"
59
69
  },
60
70
  "peerDependencies": {
61
71
  "@observablehq/plot": "^0.6.17",
62
72
  "@react-three/fiber": "^9.4.0",
63
73
  "gsap": "^3.13.0",
64
74
  "leva": "^0.10.1",
65
- "next-view-transitions": "^0.3.5",
66
75
  "react": "^19.0.0",
67
76
  "react-dom": "^19.0.0",
68
77
  "three": "^0.180.0"
@@ -82,15 +91,13 @@
82
91
  },
83
92
  "gsap": {
84
93
  "optional": true
85
- },
86
- "next-view-transitions": {
87
- "optional": true
88
94
  }
89
95
  },
90
96
  "scripts": {
91
- "dev": "cp -r src/fonts public/fonts && next dev",
97
+ "dev": "storybook dev -p 6006",
92
98
  "build": "rm -rf dist && tsc -p tsconfig.build.json && cp -r src/assets dist/assets && cp -r src/fonts dist/fonts && cd src && find . -name '*.css' -exec sh -c 'mkdir -p \"../dist/$(dirname \"$1\")\" && cp \"$1\" \"../dist/$1\"' _ {} \\;",
93
- "build:server": "next build",
99
+ "build:watch": "pnpm build && tsc -p tsconfig.build.json --watch --preserveWatchOutput",
100
+ "build-storybook": "storybook build -o storybook-static",
94
101
  "release": "./scripts/release.sh"
95
102
  }
96
103
  }