@burojs/ui-shadcn 0.3.0 → 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 (63) hide show
  1. package/README.md +4 -2
  2. package/dist/index.cjs +15044 -16998
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +3488 -3105
  5. package/dist/index.d.ts +3488 -3105
  6. package/dist/index.js +14965 -16860
  7. package/dist/index.js.map +1 -1
  8. package/dist/layout/theme-storage-key.cjs +5 -10
  9. package/dist/layout/theme-storage-key.cjs.map +1 -1
  10. package/dist/layout/theme-storage-key.d.cts +2 -23
  11. package/dist/layout/theme-storage-key.d.ts +2 -23
  12. package/dist/layout/theme-storage-key.js +5 -2
  13. package/dist/layout/theme-storage-key.js.map +1 -1
  14. package/dist/markdown/index.cjs +424 -511
  15. package/dist/markdown/index.cjs.map +1 -1
  16. package/dist/markdown/index.d.cts +1072 -34
  17. package/dist/markdown/index.d.ts +1072 -34
  18. package/dist/markdown/index.js +411 -459
  19. package/dist/markdown/index.js.map +1 -1
  20. package/dist/rich-text-IDFvyvRE.js +454 -0
  21. package/dist/rich-text-IDFvyvRE.js.map +1 -0
  22. package/dist/rich-text-lndbYqzR.cjs +457 -0
  23. package/dist/rich-text-lndbYqzR.cjs.map +1 -0
  24. package/dist/styles.css +14 -8
  25. package/dist/theme/theme-css.cjs +95 -96
  26. package/dist/theme/theme-css.cjs.map +1 -1
  27. package/dist/theme/theme-css.d.cts +10 -8
  28. package/dist/theme/theme-css.d.ts +10 -8
  29. package/dist/theme/theme-css.js +94 -94
  30. package/dist/theme/theme-css.js.map +1 -1
  31. package/dist/theme/theme-storage.cjs +34 -39
  32. package/dist/theme/theme-storage.cjs.map +1 -1
  33. package/dist/theme/theme-storage.d.cts +3 -1
  34. package/dist/theme/theme-storage.d.ts +3 -1
  35. package/dist/theme/theme-storage.js +33 -37
  36. package/dist/theme/theme-storage.js.map +1 -1
  37. package/dist/theme-storage-key-pYlp4aDS.d.cts +31 -0
  38. package/dist/theme-storage-key-pYlp4aDS.d.ts +31 -0
  39. package/dist/use-theme-BwPWinB2.cjs +246 -0
  40. package/dist/use-theme-BwPWinB2.cjs.map +1 -0
  41. package/dist/use-theme-IHmtrhEt.js +170 -0
  42. package/dist/use-theme-IHmtrhEt.js.map +1 -0
  43. package/package.json +10 -11
  44. package/dist/chunk-ABUQPOOE.js +0 -11
  45. package/dist/chunk-ABUQPOOE.js.map +0 -1
  46. package/dist/chunk-DBGGWBFG.cjs +0 -199
  47. package/dist/chunk-DBGGWBFG.cjs.map +0 -1
  48. package/dist/chunk-FMX4GLCQ.js +0 -6
  49. package/dist/chunk-FMX4GLCQ.js.map +0 -1
  50. package/dist/chunk-UC57Z243.js +0 -143
  51. package/dist/chunk-UC57Z243.js.map +0 -1
  52. package/dist/chunk-UPGPO75B.js +0 -164
  53. package/dist/chunk-UPGPO75B.js.map +0 -1
  54. package/dist/chunk-VXJAXJ3U.cjs +0 -8
  55. package/dist/chunk-VXJAXJ3U.cjs.map +0 -1
  56. package/dist/chunk-W7AEYE7A.cjs +0 -13
  57. package/dist/chunk-W7AEYE7A.cjs.map +0 -1
  58. package/dist/chunk-YF5IW525.cjs +0 -155
  59. package/dist/chunk-YF5IW525.cjs.map +0 -1
  60. package/dist/rich-text-6V7WZ3WV.cjs +0 -518
  61. package/dist/rich-text-6V7WZ3WV.cjs.map +0 -1
  62. package/dist/rich-text-N2FZEJJV.js +0 -491
  63. package/dist/rich-text-N2FZEJJV.js.map +0 -1
@@ -1,12 +1,7 @@
1
- 'use strict';
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/layout/theme-storage-key.ts
3
+ const THEME_STORAGE_KEY = "buro-theme";
4
+ //#endregion
5
+ exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY;
2
6
 
3
- var chunkVXJAXJ3U_cjs = require('../chunk-VXJAXJ3U.cjs');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "THEME_STORAGE_KEY", {
8
- enumerable: true,
9
- get: function () { return chunkVXJAXJ3U_cjs.THEME_STORAGE_KEY; }
10
- });
11
- //# sourceMappingURL=theme-storage-key.cjs.map
12
7
  //# sourceMappingURL=theme-storage-key.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"theme-storage-key.cjs"}
1
+ {"version":3,"file":"theme-storage-key.cjs","names":[],"sources":["../../src/layout/theme-storage-key.ts"],"sourcesContent":["/**\n * The ONE localStorage key every theme-aware place in the app must agree on.\n * Exported so nothing re-types the string — two files agreeing on a literal\n * is how they drift.\n *\n * Deliberately its own module: no `'use client'`, no React import, nothing\n * that would pull in `use-theme.ts`'s hook (or the rest of the kit's client\n * component tree). That matters because the consumer that needs this\n * constant outside a hook is a pre-paint bootstrap `<script>` in a Next root\n * `app/layout.tsx` — a Server Component, which cannot itself carry\n * `'use client'`. `examples/next/app/layout.tsx` is that consumer, and after\n * SP9 deleted `apps/playground` it is the only one; a plain-HTML host has the\n * same need but no module graph to satisfy it from, which is why\n * `examples/marketplace-ops/index.html` spells the key as a literal and pins\n * it against this constant in a test instead.\n * Importing from the package's main entry (`@burojs/ui-shadcn`)\n * there fails Next's server/client boundary check, because that entry\n * bundles the whole kit — including many components that call hooks —\n * into one file without a top-level `'use client'` directive (the bundler\n * drops it when merging multiple client modules together — true of tsdown,\n * as it was of tsup). Importing this file\n * directly via the `@burojs/ui-shadcn/theme-storage-key` subpath sidesteps\n * that: it has no hooks, so a Server Component can import the real string\n * value at build/SSR time. `use-theme.ts` re-exports the same constant for\n * everyone else, so there is exactly one literal in the whole codebase.\n */\nexport const THEME_STORAGE_KEY = 'buro-theme';\n"],"mappings":";;AA0BA,MAAa,oBAAoB"}
@@ -1,23 +1,2 @@
1
- /**
2
- * The ONE localStorage key every theme-aware place in the app must agree on.
3
- * Exported so nothing re-types the string — two files agreeing on a literal
4
- * is how they drift.
5
- *
6
- * Deliberately its own module: no `'use client'`, no React import, nothing
7
- * that would pull in `use-theme.ts`'s hook (or the rest of the kit's client
8
- * component tree). That matters because the ONE consumer that needs this
9
- * constant outside a hook is the bootstrap `<script>` in the playground's
10
- * root `app/layout.tsx` — a Server Component, which cannot itself carry
11
- * `'use client'`. Importing from the package's main entry (`@burojs/ui-shadcn`)
12
- * there fails Next's server/client boundary check, because that entry
13
- * bundles the whole kit — including many components that call hooks —
14
- * into one file without a top-level `'use client'` directive (tsup drops it
15
- * when bundling multiple client modules together). Importing this file
16
- * directly via the `@burojs/ui-shadcn/theme-storage-key` subpath sidesteps
17
- * that: it has no hooks, so a Server Component can import the real string
18
- * value at build/SSR time. `use-theme.ts` re-exports the same constant for
19
- * everyone else, so there is exactly one literal in the whole codebase.
20
- */
21
- declare const THEME_STORAGE_KEY = "buro-theme";
22
-
23
- export { THEME_STORAGE_KEY };
1
+ import { t as THEME_STORAGE_KEY } from "../theme-storage-key-pYlp4aDS.cjs";
2
+ export { THEME_STORAGE_KEY };
@@ -1,23 +1,2 @@
1
- /**
2
- * The ONE localStorage key every theme-aware place in the app must agree on.
3
- * Exported so nothing re-types the string — two files agreeing on a literal
4
- * is how they drift.
5
- *
6
- * Deliberately its own module: no `'use client'`, no React import, nothing
7
- * that would pull in `use-theme.ts`'s hook (or the rest of the kit's client
8
- * component tree). That matters because the ONE consumer that needs this
9
- * constant outside a hook is the bootstrap `<script>` in the playground's
10
- * root `app/layout.tsx` — a Server Component, which cannot itself carry
11
- * `'use client'`. Importing from the package's main entry (`@burojs/ui-shadcn`)
12
- * there fails Next's server/client boundary check, because that entry
13
- * bundles the whole kit — including many components that call hooks —
14
- * into one file without a top-level `'use client'` directive (tsup drops it
15
- * when bundling multiple client modules together). Importing this file
16
- * directly via the `@burojs/ui-shadcn/theme-storage-key` subpath sidesteps
17
- * that: it has no hooks, so a Server Component can import the real string
18
- * value at build/SSR time. `use-theme.ts` re-exports the same constant for
19
- * everyone else, so there is exactly one literal in the whole codebase.
20
- */
21
- declare const THEME_STORAGE_KEY = "buro-theme";
22
-
23
- export { THEME_STORAGE_KEY };
1
+ import { t as THEME_STORAGE_KEY } from "../theme-storage-key-pYlp4aDS.js";
2
+ export { THEME_STORAGE_KEY };
@@ -1,3 +1,6 @@
1
- export { THEME_STORAGE_KEY } from '../chunk-FMX4GLCQ.js';
2
- //# sourceMappingURL=theme-storage-key.js.map
1
+ //#region src/layout/theme-storage-key.ts
2
+ const THEME_STORAGE_KEY = "buro-theme";
3
+ //#endregion
4
+ export { THEME_STORAGE_KEY };
5
+
3
6
  //# sourceMappingURL=theme-storage-key.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"theme-storage-key.js"}
1
+ {"version":3,"file":"theme-storage-key.js","names":[],"sources":["../../src/layout/theme-storage-key.ts"],"sourcesContent":["/**\n * The ONE localStorage key every theme-aware place in the app must agree on.\n * Exported so nothing re-types the string — two files agreeing on a literal\n * is how they drift.\n *\n * Deliberately its own module: no `'use client'`, no React import, nothing\n * that would pull in `use-theme.ts`'s hook (or the rest of the kit's client\n * component tree). That matters because the consumer that needs this\n * constant outside a hook is a pre-paint bootstrap `<script>` in a Next root\n * `app/layout.tsx` — a Server Component, which cannot itself carry\n * `'use client'`. `examples/next/app/layout.tsx` is that consumer, and after\n * SP9 deleted `apps/playground` it is the only one; a plain-HTML host has the\n * same need but no module graph to satisfy it from, which is why\n * `examples/marketplace-ops/index.html` spells the key as a literal and pins\n * it against this constant in a test instead.\n * Importing from the package's main entry (`@burojs/ui-shadcn`)\n * there fails Next's server/client boundary check, because that entry\n * bundles the whole kit — including many components that call hooks —\n * into one file without a top-level `'use client'` directive (the bundler\n * drops it when merging multiple client modules together — true of tsdown,\n * as it was of tsup). Importing this file\n * directly via the `@burojs/ui-shadcn/theme-storage-key` subpath sidesteps\n * that: it has no hooks, so a Server Component can import the real string\n * value at build/SSR time. `use-theme.ts` re-exports the same constant for\n * everyone else, so there is exactly one literal in the whole codebase.\n */\nexport const THEME_STORAGE_KEY = 'buro-theme';\n"],"mappings":";AA0BA,MAAa,oBAAoB"}