@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.
- package/MIGRATION.md +67 -0
- package/dist/_chunks/tiptap.js +977 -968
- package/dist/_chunks/tiptap.js.map +1 -1
- package/dist/composed/index.d.ts +0 -2
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +5 -6
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +0 -1
- package/dist/ui/alert.d.ts +1 -2
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +1 -27
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/banner.d.ts +3 -5
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +13 -13
- package/dist/ui/banner.js.map +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/input.d.ts +1 -9
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +26 -27
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/segmented-control.d.ts +1 -1
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +2 -4
- package/dist/ui/segmented-control.js.map +1 -1
- package/docs/components/_header.md +1 -1
- package/docs/components/ui/alert.md +4 -1
- package/docs/components/ui/banner.md +3 -1
- package/docs/components/ui/input.md +4 -2
- package/docs/components/ui/segmented-control.md +13 -6
- package/docs/recipes/customize-brand.md +216 -0
- package/docs/recipes/index.md +51 -0
- package/docs/recipes/install-astro.md +178 -0
- package/docs/recipes/install-next-app-router.md +230 -0
- package/docs/recipes/install-next-pages.md +123 -0
- package/docs/recipes/install-remix.md +171 -0
- package/docs/recipes/install-tanstack-start.md +143 -0
- package/docs/recipes/install-vite.md +170 -0
- package/docs/recipes/server-components.md +209 -0
- package/docs/recipes/troubleshoot.md +217 -0
- package/llms-full.txt +26 -53
- package/llms.txt +33 -16
- package/package.json +45 -35
- package/dist/composed/responsive-overlay.d.ts +0 -23
- package/dist/composed/responsive-overlay.d.ts.map +0 -1
- package/dist/composed/responsive-overlay.js +0 -40
- package/dist/composed/responsive-overlay.js.map +0 -1
- package/dist/hooks/use-toast.d.ts +0 -17
- package/dist/hooks/use-toast.d.ts.map +0 -1
- package/dist/hooks/use-toast.js +0 -3
- package/dist/tailwind/index.cjs +0 -41
- package/dist/tailwind/index.d.ts +0 -2
- package/dist/tailwind/index.d.ts.map +0 -1
- package/dist/tailwind/index.js +0 -2
- package/dist/tailwind/preset.d.ts +0 -25
- package/dist/tailwind/preset.d.ts.map +0 -1
- package/dist/tailwind/preset.js +0 -17
- package/dist/tailwind/preset.js.map +0 -1
- 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.**
|