@devalok/shilp-sutra 0.37.1 → 0.38.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/MIGRATION.md +67 -0
  2. package/dist/_chunks/tiptap.js +977 -968
  3. package/dist/_chunks/tiptap.js.map +1 -1
  4. package/dist/composed/index.d.ts +0 -2
  5. package/dist/composed/index.d.ts.map +1 -1
  6. package/dist/composed/index.js +5 -6
  7. package/dist/hooks/index.d.ts +2 -2
  8. package/dist/hooks/index.d.ts.map +1 -1
  9. package/dist/hooks/index.js +0 -1
  10. package/dist/ui/alert.d.ts +1 -2
  11. package/dist/ui/alert.d.ts.map +1 -1
  12. package/dist/ui/alert.js +1 -27
  13. package/dist/ui/alert.js.map +1 -1
  14. package/dist/ui/banner.d.ts +3 -5
  15. package/dist/ui/banner.d.ts.map +1 -1
  16. package/dist/ui/banner.js +13 -13
  17. package/dist/ui/banner.js.map +1 -1
  18. package/dist/ui/index.d.ts +1 -1
  19. package/dist/ui/index.d.ts.map +1 -1
  20. package/dist/ui/index.js +2 -2
  21. package/dist/ui/index.js.map +1 -1
  22. package/dist/ui/input.d.ts +1 -9
  23. package/dist/ui/input.d.ts.map +1 -1
  24. package/dist/ui/input.js +26 -27
  25. package/dist/ui/input.js.map +1 -1
  26. package/dist/ui/segmented-control.d.ts +1 -1
  27. package/dist/ui/segmented-control.d.ts.map +1 -1
  28. package/dist/ui/segmented-control.js +2 -4
  29. package/dist/ui/segmented-control.js.map +1 -1
  30. package/docs/components/_header.md +1 -1
  31. package/docs/components/ui/alert.md +4 -1
  32. package/docs/components/ui/banner.md +3 -1
  33. package/docs/components/ui/input.md +4 -2
  34. package/docs/components/ui/segmented-control.md +13 -6
  35. package/docs/recipes/customize-brand.md +216 -0
  36. package/docs/recipes/index.md +51 -0
  37. package/docs/recipes/install-astro.md +178 -0
  38. package/docs/recipes/install-next-app-router.md +230 -0
  39. package/docs/recipes/install-next-pages.md +123 -0
  40. package/docs/recipes/install-remix.md +171 -0
  41. package/docs/recipes/install-tanstack-start.md +143 -0
  42. package/docs/recipes/install-vite.md +170 -0
  43. package/docs/recipes/server-components.md +209 -0
  44. package/docs/recipes/troubleshoot.md +217 -0
  45. package/llms-full.txt +26 -53
  46. package/llms.txt +33 -16
  47. package/package.json +45 -35
  48. package/dist/composed/responsive-overlay.d.ts +0 -23
  49. package/dist/composed/responsive-overlay.d.ts.map +0 -1
  50. package/dist/composed/responsive-overlay.js +0 -40
  51. package/dist/composed/responsive-overlay.js.map +0 -1
  52. package/dist/hooks/use-toast.d.ts +0 -17
  53. package/dist/hooks/use-toast.d.ts.map +0 -1
  54. package/dist/hooks/use-toast.js +0 -3
  55. package/dist/tailwind/index.cjs +0 -41
  56. package/dist/tailwind/index.d.ts +0 -2
  57. package/dist/tailwind/index.d.ts.map +0 -1
  58. package/dist/tailwind/index.js +0 -2
  59. package/dist/tailwind/preset.d.ts +0 -25
  60. package/dist/tailwind/preset.d.ts.map +0 -1
  61. package/dist/tailwind/preset.js +0 -17
  62. package/dist/tailwind/preset.js.map +0 -1
  63. package/docs/components/composed/responsive-overlay.md +0 -41
package/MIGRATION.md CHANGED
@@ -4,6 +4,73 @@ This page indexes all breaking changes across `@devalok/shilp-sutra` versions. F
4
4
 
5
5
  > **Upgrading from < 0.36?** Start here, then read each intermediate version section. Breaking changes stack — skipping versions means stacking migrations.
6
6
 
7
+ ## v0.38.0 — Deprecation sweep
8
+
9
+ 0.38 removes 8 deprecated APIs that were soft-deprecated in earlier minor releases. All were available as aliases alongside their replacements; this release drops the aliases.
10
+
11
+ ### Removed APIs and replacements
12
+
13
+ | Package | Removed | Use instead |
14
+ |---------|---------|-------------|
15
+ | `@devalok/shilp-sutra/ui/alert` | `variant="filled"` | `variant="solid"` |
16
+ | `@devalok/shilp-sutra/ui/banner` | `action` prop | `actions` prop |
17
+ | `@devalok/shilp-sutra/ui/input` | `startIcon` / `endIcon` props | `startSection` / `endSection` |
18
+ | `@devalok/shilp-sutra/ui/input` | `inputVariants` export | `inputWrapperVariants` |
19
+ | `@devalok/shilp-sutra/ui/segmented-control` | `variant="accent"` | `variant="solid"` |
20
+ | `@devalok/shilp-sutra/composed` | `ResponsiveOverlay` component | `Dialog` or `Sheet` directly |
21
+ | `@devalok/shilp-sutra/tailwind` | entire `./tailwind` export | CSS import (see v0.37 guide) |
22
+ | `@devalok/shilp-sutra/hooks/use-toast` | entire `./hooks/use-toast` export | `toast` from `@devalok/shilp-sutra` |
23
+
24
+ ### Quick migration checklist
25
+
26
+ **Alert `variant="filled"` → `variant="solid"`:**
27
+ ```diff
28
+ - <Alert variant="filled" color="error">Error occurred</Alert>
29
+ + <Alert variant="solid" color="error">Error occurred</Alert>
30
+ ```
31
+
32
+ **Banner `action` → `actions`:**
33
+ ```diff
34
+ - <Banner action={<Button>Dismiss</Button>}>Update available</Banner>
35
+ + <Banner actions={<Button>Dismiss</Button>}>Update available</Banner>
36
+ ```
37
+
38
+ **Input `startIcon`/`endIcon` → `startSection`/`endSection`:**
39
+ ```diff
40
+ - <Input startIcon={<Icon icon={IconSearch} />} />
41
+ + <Input startSection={<Icon icon={IconSearch} />} />
42
+ ```
43
+
44
+ **Input `inputVariants` → `inputWrapperVariants`:**
45
+ ```diff
46
+ - import { inputVariants } from '@devalok/shilp-sutra'
47
+ + import { inputWrapperVariants } from '@devalok/shilp-sutra'
48
+ ```
49
+
50
+ **SegmentedControl `variant="accent"` → `variant="solid"`:**
51
+ ```diff
52
+ - <SegmentedControl variant="accent" ... />
53
+ + <SegmentedControl variant="solid" ... />
54
+ ```
55
+
56
+ **ResponsiveOverlay → Dialog or Sheet:**
57
+ ```diff
58
+ - import { ResponsiveOverlay } from '@devalok/shilp-sutra/composed'
59
+ - <ResponsiveOverlay open={open} onOpenChange={setOpen} title="Details">...</ResponsiveOverlay>
60
+ + import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@devalok/shilp-sutra'
61
+ + <Dialog open={open} onOpenChange={setOpen}>
62
+ + <DialogContent><DialogHeader><DialogTitle>Details</DialogTitle></DialogHeader>...</DialogContent>
63
+ + </Dialog>
64
+ ```
65
+
66
+ **`./tailwind` preset:** Already removed in 0.37 — follow the [v0.37 migration guide](#v0370--tailwind-4-css-first-migration) if you haven't already.
67
+
68
+ **`hooks/use-toast`:**
69
+ ```diff
70
+ - import { toast } from '@devalok/shilp-sutra/hooks/use-toast'
71
+ + import { toast } from '@devalok/shilp-sutra'
72
+ ```
73
+
7
74
  ## v0.37.0 — Tailwind 4 CSS-first migration
8
75
 
9
76
  0.37 completes the Tailwind 3 → 4 migration that started in 0.34. The JS preset is gone. Tokens now ship as `@theme` CSS variables that TW4 consumes directly. **This is a breaking setup change; component APIs are unchanged.**