@devalok/shilp-sutra 0.55.1 → 0.57.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/BREAKING.json +13 -0
- package/MIGRATION.md +163 -0
- package/README.md +16 -1
- package/dist/_chunks/badge-group.js +92 -78
- package/dist/_chunks/badge-group.js.map +1 -1
- package/dist/_chunks/chat.js +91 -75
- package/dist/_chunks/chat.js.map +1 -1
- package/dist/_chunks/document-preview.js +1 -1
- package/dist/_chunks/document-preview.js.map +1 -1
- package/dist/_chunks/emoji-suggestion.js +32 -30
- package/dist/_chunks/emoji-suggestion.js.map +1 -1
- package/dist/_chunks/mention-suggestion.js +36 -35
- package/dist/_chunks/mention-suggestion.js.map +1 -1
- package/dist/_chunks/oauth-button.js +1 -1
- package/dist/_chunks/oauth-button.js.map +1 -1
- package/dist/_chunks/primitives-internal.js +437 -537
- package/dist/_chunks/primitives-internal.js.map +1 -1
- package/dist/_chunks/success.js +2 -2
- package/dist/_chunks/success.js.map +1 -1
- package/dist/_chunks/tree-view.js +1 -1
- package/dist/_chunks/tree-view.js.map +1 -1
- package/dist/_chunks/use-calendar.js +4 -4
- package/dist/_chunks/use-calendar.js.map +1 -1
- package/dist/ai/blocks/text.js +1 -1
- package/dist/ai/blocks/text.js.map +1 -1
- package/dist/ai/command-bar.js +9 -9
- package/dist/ai/command-bar.js.map +1 -1
- package/dist/ai/conversation.js +2 -2
- package/dist/ai/conversation.js.map +1 -1
- package/dist/composed/activity-feed.js +1 -1
- package/dist/composed/activity-feed.js.map +1 -1
- package/dist/composed/avatar-group.d.ts +7 -2
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +3 -3
- package/dist/composed/avatar-group.js.map +1 -1
- package/dist/composed/command-palette.js +7 -7
- package/dist/composed/command-palette.js.map +1 -1
- package/dist/composed/content-card.js +20 -20
- package/dist/composed/content-card.js.map +1 -1
- package/dist/composed/date-picker/index.js +4 -4
- package/dist/composed/date-picker/index.js.map +1 -1
- package/dist/composed/diff.d.ts +23 -2
- package/dist/composed/diff.d.ts.map +1 -1
- package/dist/composed/diff.js +341 -260
- package/dist/composed/diff.js.map +1 -1
- package/dist/composed/emoji-picker.js +3 -3
- package/dist/composed/emoji-picker.js.map +1 -1
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/error-boundary.js.map +1 -1
- package/dist/composed/extensions/emoji-node.js +8 -7
- package/dist/composed/extensions/emoji-node.js.map +1 -1
- package/dist/composed/file-preview.js +1 -1
- package/dist/composed/file-preview.js.map +1 -1
- package/dist/composed/filter-bar.js +1 -1
- package/dist/composed/filter-bar.js.map +1 -1
- package/dist/composed/inline-edit.js +1 -1
- package/dist/composed/inline-edit.js.map +1 -1
- package/dist/composed/loading-skeleton.js +3 -3
- package/dist/composed/loading-skeleton.js.map +1 -1
- package/dist/composed/master-detail.js +1 -1
- package/dist/composed/master-detail.js.map +1 -1
- package/dist/composed/member-picker.js +1 -1
- package/dist/composed/member-picker.js.map +1 -1
- package/dist/composed/multi-select-popover.js +1 -1
- package/dist/composed/multi-select-popover.js.map +1 -1
- package/dist/composed/page-skeletons.js +4 -4
- package/dist/composed/page-skeletons.js.map +1 -1
- package/dist/composed/responsive-modal.js +1 -1
- package/dist/composed/responsive-modal.js.map +1 -1
- package/dist/composed/rich-chat-input.js +549 -540
- package/dist/composed/rich-chat-input.js.map +1 -1
- package/dist/composed/rich-text-editor.js +206 -198
- package/dist/composed/rich-text-editor.js.map +1 -1
- package/dist/composed/schedule-view.js +5 -5
- package/dist/composed/schedule-view.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -3
- package/dist/hooks/use-container-size.d.ts +18 -0
- package/dist/hooks/use-container-size.d.ts.map +1 -0
- package/dist/hooks/use-container-size.js +28 -0
- package/dist/hooks/use-container-size.js.map +1 -0
- package/dist/shell/app-shell.d.ts +101 -0
- package/dist/shell/app-shell.d.ts.map +1 -0
- package/dist/shell/app-shell.js +76 -0
- package/dist/shell/app-shell.js.map +1 -0
- package/dist/shell/bottom-navbar.js +2 -2
- package/dist/shell/bottom-navbar.js.map +1 -1
- package/dist/shell/index.d.ts +1 -0
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +6 -5
- package/dist/shell/notification-center.js +4 -4
- package/dist/shell/notification-center.js.map +1 -1
- package/dist/shell/notification-preferences.js +1 -1
- package/dist/shell/notification-preferences.js.map +1 -1
- package/dist/shell/top-bar.js +7 -7
- package/dist/shell/top-bar.js.map +1 -1
- package/dist/tokens/generate-scale.d.ts +49 -0
- package/dist/tokens/generate-scale.d.ts.map +1 -1
- package/dist/tokens/primitives.css +29 -26
- package/dist/tokens/semantic.css +98 -39
- package/dist/tokens/variants.css +1 -1
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +36 -36
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/avatar.js +44 -44
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge-indicator.js +1 -1
- package/dist/ui/badge-indicator.js.map +1 -1
- package/dist/ui/badge.d.ts +47 -33
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/banner.js +26 -26
- package/dist/ui/banner.js.map +1 -1
- package/dist/ui/button.js +35 -35
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.js +42 -42
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/chat/date-separator.d.ts +8 -1
- package/dist/ui/chat/date-separator.d.ts.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/code.js +2 -2
- package/dist/ui/code.js.map +1 -1
- package/dist/ui/color-input.js +3 -3
- package/dist/ui/color-input.js.map +1 -1
- package/dist/ui/combobox.js +139 -139
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/context-menu.js +4 -4
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/data-table-body.d.ts +3 -1
- package/dist/ui/data-table-body.d.ts.map +1 -1
- package/dist/ui/data-table-body.js +93 -92
- package/dist/ui/data-table-body.js.map +1 -1
- package/dist/ui/data-table-bulk-actions.d.ts +7 -1
- package/dist/ui/data-table-bulk-actions.d.ts.map +1 -1
- package/dist/ui/data-table-bulk-actions.js +14 -8
- package/dist/ui/data-table-bulk-actions.js.map +1 -1
- package/dist/ui/data-table-card.d.ts.map +1 -1
- package/dist/ui/data-table-card.js +66 -47
- package/dist/ui/data-table-card.js.map +1 -1
- package/dist/ui/data-table-context.d.ts +4 -0
- package/dist/ui/data-table-context.d.ts.map +1 -1
- package/dist/ui/data-table-context.js.map +1 -1
- package/dist/ui/data-table-header.d.ts.map +1 -1
- package/dist/ui/data-table-header.js +18 -15
- package/dist/ui/data-table-header.js.map +1 -1
- package/dist/ui/data-table-pagination.js +3 -3
- package/dist/ui/data-table-pagination.js.map +1 -1
- package/dist/ui/data-table-toolbar.d.ts +11 -1
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +7 -7
- package/dist/ui/data-table-toolbar.js.map +1 -1
- package/dist/ui/data-table.d.ts +52 -5
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +181 -169
- package/dist/ui/data-table.js.map +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dot.js +13 -13
- package/dist/ui/dot.js.map +1 -1
- package/dist/ui/dropdown-menu.js +4 -4
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/file-upload.js +3 -3
- package/dist/ui/file-upload.js.map +1 -1
- package/dist/ui/input-otp.js +1 -1
- package/dist/ui/input-otp.js.map +1 -1
- package/dist/ui/input.js +30 -30
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/lib/utils.js +2 -1
- package/dist/ui/lib/utils.js.map +1 -1
- package/dist/ui/menubar.js +5 -5
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/navigation-menu.js +1 -1
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/number-input.js +36 -36
- package/dist/ui/number-input.js.map +1 -1
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/progress-ring.js +2 -2
- package/dist/ui/progress-ring.js.map +1 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +66 -62
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio.js +1 -1
- package/dist/ui/radio.js.map +1 -1
- package/dist/ui/select.js +61 -61
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/sheet.js +47 -47
- package/dist/ui/sheet.js.map +1 -1
- package/dist/ui/sidebar.js +132 -132
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.js +39 -39
- package/dist/ui/slider.js +18 -18
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/split-button.js +3 -3
- package/dist/ui/split-button.js.map +1 -1
- package/dist/ui/stat-card.js +1 -1
- package/dist/ui/stat-card.js.map +1 -1
- package/dist/ui/stepper.js +2 -2
- package/dist/ui/stepper.js.map +1 -1
- package/dist/ui/surface.d.ts.map +1 -1
- package/dist/ui/surface.js +11 -11
- package/dist/ui/surface.js.map +1 -1
- package/dist/ui/switch.js +1 -1
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.js +1 -1
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +48 -48
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/text.js +8 -8
- package/dist/ui/textarea.js +17 -17
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/toast.js +1 -1
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/toggle.js +15 -15
- package/dist/ui/toggle.js.map +1 -1
- package/docs/components/composed/avatar-group.md +4 -4
- package/docs/components/composed/diff.md +10 -2
- package/docs/components/composed/schedule-view.md +1 -1
- package/docs/components/shell/app-shell.md +132 -0
- package/docs/components/ui/avatar.md +1 -1
- package/docs/components/ui/button.md +1 -1
- package/docs/components/ui/chat.md +7 -1
- package/docs/components/ui/color-swatch.md +1 -1
- package/docs/components/ui/data-table-toolbar.md +6 -2
- package/docs/components/ui/data-table.md +41 -7
- package/docs/components/ui/dot.md +1 -1
- package/docs/components/ui/progress.md +1 -0
- package/docs/components/ui/surface.md +3 -3
- package/docs/components/ui/table.md +2 -2
- package/docs/recipes/install-astro.md +3 -2
- package/docs/recipes/install-next-app-router.md +3 -2
- package/docs/recipes/install-remix.md +3 -2
- package/docs/recipes/install-tanstack-start.md +3 -2
- package/docs/recipes/install-vite.md +3 -2
- package/docs/recipes/troubleshoot.md +26 -5
- package/llms.txt +2 -1
- package/make-kit/Guidelines.md +2 -2
- package/make-kit/components/button.md +1 -1
- package/make-kit/components/card.md +6 -6
- package/make-kit/components/surface.md +4 -4
- package/make-kit/foundations/color.md +4 -4
- package/make-kit/foundations/dark-mode.md +1 -1
- package/make-kit/foundations/radius.md +1 -1
- package/make-kit/foundations/surfaces.md +9 -9
- package/mcp-manifest.json +373 -34
- package/package.json +43 -13
- package/skill/SKILL.md +12 -6
- package/skill/references/components.md +2 -1
- package/skill/references/setup-astro.md +3 -2
- package/skill/references/setup-next-app-router.md +3 -2
- package/skill/references/setup-remix.md +3 -2
- package/skill/references/setup-tanstack-start.md +3 -2
- package/skill/references/setup-vite.md +3 -2
- package/skill/references/troubleshoot.md +26 -5
- package/dist/_chunks/tiptap.js +0 -18809
- package/dist/_chunks/tiptap.js.map +0 -1
- package/dist/_chunks/vendor-utils.js +0 -1766
- package/dist/_chunks/vendor-utils.js.map +0 -1
- package/dist/primitives/react-toast.d.ts +0 -120
- package/dist/ui/charts/_internal/scales.d.ts +0 -5
- package/dist/ui/charts/_internal/scales.d.ts.map +0 -1
- package/dist/ui/lib/slot.d.ts +0 -8
- package/dist/ui/lib/slot.d.ts.map +0 -1
- package/scripts/welcome.mjs +0 -312
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devalok/shilp-sutra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Devalok Design System — accessible React components, OKLCH design tokens, and Tailwind 4 CSS-first setup. Ships with AI-agent setup recipes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Devalok Design & Strategy Studios <shilp-sutra@devalok.in>",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"class-variance-authority": "^0.7.1",
|
|
56
56
|
"clsx": "^2.1.1",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
57
|
+
"tailwind-merge": "^3.6.0",
|
|
58
|
+
"tw-animate-css": "^1.4.0"
|
|
59
59
|
},
|
|
60
60
|
"exports": {
|
|
61
61
|
".": {
|
|
@@ -688,6 +688,11 @@
|
|
|
688
688
|
"import": "./dist/shell/app-command-palette.js",
|
|
689
689
|
"default": "./dist/shell/app-command-palette.js"
|
|
690
690
|
},
|
|
691
|
+
"./shell/app-shell": {
|
|
692
|
+
"types": "./dist/shell/app-shell.d.ts",
|
|
693
|
+
"import": "./dist/shell/app-shell.js",
|
|
694
|
+
"default": "./dist/shell/app-shell.js"
|
|
695
|
+
},
|
|
691
696
|
"./shell/bottom-navbar": {
|
|
692
697
|
"types": "./dist/shell/bottom-navbar.d.ts",
|
|
693
698
|
"import": "./dist/shell/bottom-navbar.js",
|
|
@@ -836,7 +841,6 @@
|
|
|
836
841
|
"fonts",
|
|
837
842
|
"make-kit",
|
|
838
843
|
"skill",
|
|
839
|
-
"scripts/welcome.mjs",
|
|
840
844
|
"AGENTS.md",
|
|
841
845
|
"BREAKING.json",
|
|
842
846
|
"BREAKING.schema.json",
|
|
@@ -859,8 +863,16 @@
|
|
|
859
863
|
"@tanstack/react-table": "^8.0.0",
|
|
860
864
|
"@tanstack/react-virtual": "^3.0.0",
|
|
861
865
|
"@tiptap/core": "^3.28.0",
|
|
866
|
+
"@tiptap/extension-highlight": "^3.28.0",
|
|
867
|
+
"@tiptap/extension-image": "^3.28.0",
|
|
868
|
+
"@tiptap/extension-list": "^3.28.0",
|
|
869
|
+
"@tiptap/extension-mention": "^3.28.0",
|
|
870
|
+
"@tiptap/extension-text-align": "^3.28.0",
|
|
871
|
+
"@tiptap/extensions": "^3.28.0",
|
|
872
|
+
"@tiptap/markdown": "^3.28.0",
|
|
862
873
|
"@tiptap/pm": "^3.28.0",
|
|
863
874
|
"@tiptap/react": "^3.28.0",
|
|
875
|
+
"@tiptap/starter-kit": "^3.28.0",
|
|
864
876
|
"@tiptap/suggestion": "^3.28.0",
|
|
865
877
|
"d3-array": "^3.0.0",
|
|
866
878
|
"d3-axis": "^3.0.0",
|
|
@@ -894,12 +906,36 @@
|
|
|
894
906
|
"@tiptap/core": {
|
|
895
907
|
"optional": true
|
|
896
908
|
},
|
|
909
|
+
"@tiptap/extension-highlight": {
|
|
910
|
+
"optional": true
|
|
911
|
+
},
|
|
912
|
+
"@tiptap/extension-image": {
|
|
913
|
+
"optional": true
|
|
914
|
+
},
|
|
915
|
+
"@tiptap/extension-list": {
|
|
916
|
+
"optional": true
|
|
917
|
+
},
|
|
918
|
+
"@tiptap/extension-mention": {
|
|
919
|
+
"optional": true
|
|
920
|
+
},
|
|
921
|
+
"@tiptap/extension-text-align": {
|
|
922
|
+
"optional": true
|
|
923
|
+
},
|
|
924
|
+
"@tiptap/extensions": {
|
|
925
|
+
"optional": true
|
|
926
|
+
},
|
|
927
|
+
"@tiptap/markdown": {
|
|
928
|
+
"optional": true
|
|
929
|
+
},
|
|
897
930
|
"@tiptap/pm": {
|
|
898
931
|
"optional": true
|
|
899
932
|
},
|
|
900
933
|
"@tiptap/react": {
|
|
901
934
|
"optional": true
|
|
902
935
|
},
|
|
936
|
+
"@tiptap/starter-kit": {
|
|
937
|
+
"optional": true
|
|
938
|
+
},
|
|
903
939
|
"@tiptap/suggestion": {
|
|
904
940
|
"optional": true
|
|
905
941
|
},
|
|
@@ -960,7 +996,6 @@
|
|
|
960
996
|
},
|
|
961
997
|
"devDependencies": {
|
|
962
998
|
"@emoji-mart/data": "^1.2.1",
|
|
963
|
-
"@emoji-mart/react": "^1.1.1",
|
|
964
999
|
"@floating-ui/dom": "^1.8.0",
|
|
965
1000
|
"@floating-ui/react-dom": "^2.1.9",
|
|
966
1001
|
"@tabler/icons-react": "^3.45.0",
|
|
@@ -974,13 +1009,12 @@
|
|
|
974
1009
|
"@tiptap/extension-text-align": "^3.28.0",
|
|
975
1010
|
"@tiptap/extensions": "^3.28.0",
|
|
976
1011
|
"@tiptap/markdown": "^3.28.0",
|
|
1012
|
+
"@tiptap/pm": "^3.28.0",
|
|
977
1013
|
"@tiptap/react": "^3.28.0",
|
|
978
1014
|
"@tiptap/starter-kit": "^3.28.0",
|
|
979
1015
|
"@tiptap/suggestion": "^3.28.0",
|
|
980
1016
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
981
1017
|
"aria-hidden": "^1.2.6",
|
|
982
|
-
"class-variance-authority": "^0.7.1",
|
|
983
|
-
"clsx": "^2.1.1",
|
|
984
1018
|
"d3-array": "^3.2.4",
|
|
985
1019
|
"d3-axis": "^3.0.0",
|
|
986
1020
|
"d3-format": "^3.1.2",
|
|
@@ -992,11 +1026,9 @@
|
|
|
992
1026
|
"d3-transition": "^3.0.1",
|
|
993
1027
|
"date-fns": "^4.4.0",
|
|
994
1028
|
"diff": "^9.0.0",
|
|
995
|
-
"esbuild": "^0.28.1",
|
|
996
1029
|
"framer-motion": "^12.42.2",
|
|
997
1030
|
"frimousse": "^0.3.0",
|
|
998
1031
|
"input-otp": "^1.4.2",
|
|
999
|
-
"prosemirror-state": "^1.4.4",
|
|
1000
1032
|
"react-colorful": "^5.8.0",
|
|
1001
1033
|
"react-markdown": "^10.1.0",
|
|
1002
1034
|
"react-pdf": "^10.4.1",
|
|
@@ -1004,8 +1036,7 @@
|
|
|
1004
1036
|
"react-syntax-highlighter": "^16.1.1",
|
|
1005
1037
|
"react-zoom-pan-pinch": "^4.0.3",
|
|
1006
1038
|
"remark-gfm": "^4.0.1",
|
|
1007
|
-
"sonner": "^2.0.7"
|
|
1008
|
-
"tailwind-merge": "^3.6.0"
|
|
1039
|
+
"sonner": "^2.0.7"
|
|
1009
1040
|
},
|
|
1010
1041
|
"scripts": {
|
|
1011
1042
|
"build": "vite build && node scripts/post-build.mjs",
|
|
@@ -1018,7 +1049,6 @@
|
|
|
1018
1049
|
"typecheck": "tsc --noEmit",
|
|
1019
1050
|
"lint": "eslint src/",
|
|
1020
1051
|
"test": "vitest run",
|
|
1021
|
-
"test:coverage": "vitest run --coverage"
|
|
1022
|
-
"postinstall": "node scripts/welcome.mjs || true"
|
|
1052
|
+
"test:coverage": "vitest run --coverage"
|
|
1023
1053
|
}
|
|
1024
1054
|
}
|
package/skill/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: shilp-sutra
|
|
|
3
3
|
description: Add, configure, and use components from Devalok's shilp-sutra design system (@devalok/shilp-sutra) — a Tailwind 4 + React 19 + CVA library with 110+ accessible components, OKLCH design tokens, framer-motion animations, and per-component RSC-safe entry points. Use this skill whenever the user mentions shilp-sutra, Devalok, the @devalok npm scope, or asks to install/add/style/theme UI in any React project that already depends on the package — even if they don't name it explicitly. Use it instead of generic shadcn/ui, MUI, or Chakra knowledge when shilp-sutra is in the project. Covers Next.js (App + Pages), Vite, Astro, Remix, TanStack Start setup playbooks; component API and variant reference; brand token customization; Server Component import patterns; and a troubleshoot tree for the thirteen most common breakages.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.
|
|
6
|
+
version: "0.57.0"
|
|
7
7
|
author: Devalok Design & Strategy Studios
|
|
8
8
|
homepage: https://github.com/devalok-design/shilp-sutra
|
|
9
9
|
npm: https://www.npmjs.com/package/@devalok/shilp-sutra
|
|
@@ -77,15 +77,21 @@ The semantic surface names are the public API. The old numeric names (`surface-1
|
|
|
77
77
|
| Token | Use for |
|
|
78
78
|
| ------------------------------ | ---------------------------------------------------------------------------------- |
|
|
79
79
|
| `bg-surface-base` | Page background |
|
|
80
|
-
| `bg-surface-
|
|
81
|
-
| `bg-surface-sunken` |
|
|
80
|
+
| `bg-surface-panel` | Cards, widgets, panels — anything that sits **on** the page |
|
|
81
|
+
| `bg-surface-sunken` | Wells and recessed regions |
|
|
82
82
|
| `bg-surface-overlay` | Dialog, Sheet, Popover, Toast, Combobox menus, any floating overlay |
|
|
83
|
-
| `bg-surface-
|
|
84
|
-
| `bg-surface-
|
|
83
|
+
| `bg-surface-panel-hover` | Hover state on panels |
|
|
84
|
+
| `bg-surface-panel-active` | Active/pressed state on panels |
|
|
85
85
|
| `bg-surface-disabled` | Disabled surfaces (paired with `text-surface-fg-disabled`) |
|
|
86
86
|
| `bg-surface-inverted` | Inverted surfaces (dark on light themes, light on dark themes) |
|
|
87
87
|
|
|
88
|
-
Putting `bg-surface-base` on a card is a bug — cards belong on `surface-
|
|
88
|
+
Putting `bg-surface-base` on a card is a bug — cards belong on `surface-panel`. The pre-publish audit in the DS repo enforces this and blocks the old numeric aliases in component source files.
|
|
89
|
+
|
|
90
|
+
**In LIGHT, `base`, `panel` and `overlay` are the same white.** That is deliberate: an edge makes a card a card, not a fill. So **never paint an interaction state with a container value** — `hover:bg-surface-panel` is invisible. Use `bg-surface-panel-hover` / `-panel-active`. This applies to JS conditionals too (`isSelected ? 'bg-surface-panel' : …`), which no lint rule can see.
|
|
91
|
+
|
|
92
|
+
Borders come in two families: `surface-border-subtle` / `-border` / `-border-strong` are decorative and translucent; `surface-border-interactive` / `-interactive-strong` are solid control edges that carry WCAG 1.4.11. Form controls use the interactive pair.
|
|
93
|
+
|
|
94
|
+
`surface-raised` was renamed `surface-panel` in 0.57.0 and `surface-chrome` was removed. Old names still resolve; run `pnpm eslint . --fix` to migrate.
|
|
89
95
|
|
|
90
96
|
## Adding a component
|
|
91
97
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# @devalok/shilp-sutra
|
|
4
4
|
|
|
5
|
-
> Radix UI + Tailwind 4 (CSS-first) + CVA design system for Devalok apps, v0.
|
|
5
|
+
> Radix UI + Tailwind 4 (CSS-first) + CVA design system for Devalok apps, v0.57.0.
|
|
6
6
|
> Built on the same primitives as shadcn/ui but with DIFFERENT prop APIs — never guess from shadcn knowledge; verify every prop.
|
|
7
7
|
> This file is a ROUTER: it tells you what exists and where to get details. Do not look for prop tables here — fetch them per component (MCP tool or per-component doc file below).
|
|
8
8
|
|
|
@@ -154,6 +154,7 @@ Format: `[name](doc path): summary`. Import paths follow `@devalok/shilp-sutra/<
|
|
|
154
154
|
|
|
155
155
|
### shell
|
|
156
156
|
- [app-command-palette](docs/components/shell/app-command-palette.md)
|
|
157
|
+
- [app-shell](docs/components/shell/app-shell.md)
|
|
157
158
|
- [bottom-navbar](docs/components/shell/bottom-navbar.md)
|
|
158
159
|
- [command-registry](docs/components/shell/command-registry.md): Exports: CommandRegistryProvider, useCommandRegistry
|
|
159
160
|
- [link-context](docs/components/shell/link-context.md): Exports: LinkProvider, useLink
|
|
@@ -40,8 +40,9 @@ Some components ship hard peers as optional. **Install BEFORE first import.**
|
|
|
40
40
|
| `@devalok/shilp-sutra/composed/date-picker` | `pnpm add date-fns` |
|
|
41
41
|
| `@devalok/shilp-sutra/composed/file-preview` | `pnpm add react-pdf react-zoom-pan-pinch` |
|
|
42
42
|
| `@devalok/shilp-sutra/composed/markdown-viewer` | `pnpm add react-markdown react-syntax-highlighter remark-gfm` |
|
|
43
|
-
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add -
|
|
44
|
-
| `@devalok/shilp-sutra/composed/
|
|
43
|
+
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion date-fns` |
|
|
44
|
+
| `@devalok/shilp-sutra/composed/diff` | `pnpm add react-syntax-highlighter` |
|
|
45
|
+
| `@devalok/shilp-sutra/composed/rich-text-editor` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion` |
|
|
45
46
|
| `@devalok/shilp-sutra/composed/schedule-view` | `pnpm add date-fns` |
|
|
46
47
|
| `@devalok/shilp-sutra/ui/charts` | `pnpm add d3-axis d3-scale d3-selection d3-shape` |
|
|
47
48
|
| `@devalok/shilp-sutra/ui/data-table` | `pnpm add @tanstack/react-table @tanstack/react-virtual` |
|
|
@@ -53,8 +53,9 @@ Some components depend on third-party libraries that ship as optional peers. **I
|
|
|
53
53
|
| `@devalok/shilp-sutra/composed/date-picker` | `pnpm add date-fns` |
|
|
54
54
|
| `@devalok/shilp-sutra/composed/file-preview` | `pnpm add react-pdf react-zoom-pan-pinch` |
|
|
55
55
|
| `@devalok/shilp-sutra/composed/markdown-viewer` | `pnpm add react-markdown react-syntax-highlighter remark-gfm` |
|
|
56
|
-
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add -
|
|
57
|
-
| `@devalok/shilp-sutra/composed/
|
|
56
|
+
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion date-fns` |
|
|
57
|
+
| `@devalok/shilp-sutra/composed/diff` | `pnpm add react-syntax-highlighter` |
|
|
58
|
+
| `@devalok/shilp-sutra/composed/rich-text-editor` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion` |
|
|
58
59
|
| `@devalok/shilp-sutra/composed/schedule-view` | `pnpm add date-fns` |
|
|
59
60
|
| `@devalok/shilp-sutra/ui/charts` | `pnpm add d3-axis d3-scale d3-selection d3-shape` |
|
|
60
61
|
| `@devalok/shilp-sutra/ui/data-table` | `pnpm add @tanstack/react-table @tanstack/react-virtual` |
|
|
@@ -36,8 +36,9 @@ Some components ship hard peers as optional. **Install BEFORE first import.**
|
|
|
36
36
|
| `@devalok/shilp-sutra/composed/date-picker` | `pnpm add date-fns` |
|
|
37
37
|
| `@devalok/shilp-sutra/composed/file-preview` | `pnpm add react-pdf react-zoom-pan-pinch` |
|
|
38
38
|
| `@devalok/shilp-sutra/composed/markdown-viewer` | `pnpm add react-markdown react-syntax-highlighter remark-gfm` |
|
|
39
|
-
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add -
|
|
40
|
-
| `@devalok/shilp-sutra/composed/
|
|
39
|
+
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion date-fns` |
|
|
40
|
+
| `@devalok/shilp-sutra/composed/diff` | `pnpm add react-syntax-highlighter` |
|
|
41
|
+
| `@devalok/shilp-sutra/composed/rich-text-editor` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion` |
|
|
41
42
|
| `@devalok/shilp-sutra/composed/schedule-view` | `pnpm add date-fns` |
|
|
42
43
|
| `@devalok/shilp-sutra/ui/charts` | `pnpm add d3-axis d3-scale d3-selection d3-shape` |
|
|
43
44
|
| `@devalok/shilp-sutra/ui/data-table` | `pnpm add @tanstack/react-table @tanstack/react-virtual` |
|
|
@@ -45,8 +45,9 @@ Some components ship hard peers as optional. **Install BEFORE first import.**
|
|
|
45
45
|
| `@devalok/shilp-sutra/composed/date-picker` | `pnpm add date-fns` |
|
|
46
46
|
| `@devalok/shilp-sutra/composed/file-preview` | `pnpm add react-pdf react-zoom-pan-pinch` |
|
|
47
47
|
| `@devalok/shilp-sutra/composed/markdown-viewer` | `pnpm add react-markdown react-syntax-highlighter remark-gfm` |
|
|
48
|
-
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add -
|
|
49
|
-
| `@devalok/shilp-sutra/composed/
|
|
48
|
+
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion date-fns` |
|
|
49
|
+
| `@devalok/shilp-sutra/composed/diff` | `pnpm add react-syntax-highlighter` |
|
|
50
|
+
| `@devalok/shilp-sutra/composed/rich-text-editor` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion` |
|
|
50
51
|
| `@devalok/shilp-sutra/composed/schedule-view` | `pnpm add date-fns` |
|
|
51
52
|
| `@devalok/shilp-sutra/ui/charts` | `pnpm add d3-axis d3-scale d3-selection d3-shape` |
|
|
52
53
|
| `@devalok/shilp-sutra/ui/data-table` | `pnpm add @tanstack/react-table @tanstack/react-virtual` |
|
|
@@ -51,8 +51,9 @@ Some components ship hard peers as optional. **Install BEFORE first import.**
|
|
|
51
51
|
| `@devalok/shilp-sutra/composed/date-picker` | `pnpm add date-fns` |
|
|
52
52
|
| `@devalok/shilp-sutra/composed/file-preview` | `pnpm add react-pdf react-zoom-pan-pinch` |
|
|
53
53
|
| `@devalok/shilp-sutra/composed/markdown-viewer` | `pnpm add react-markdown react-syntax-highlighter remark-gfm` |
|
|
54
|
-
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add -
|
|
55
|
-
| `@devalok/shilp-sutra/composed/
|
|
54
|
+
| `@devalok/shilp-sutra/composed/rich-chat-input` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion date-fns` |
|
|
55
|
+
| `@devalok/shilp-sutra/composed/diff` | `pnpm add react-syntax-highlighter` |
|
|
56
|
+
| `@devalok/shilp-sutra/composed/rich-text-editor` | `pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align @tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion` |
|
|
56
57
|
| `@devalok/shilp-sutra/composed/schedule-view` | `pnpm add date-fns` |
|
|
57
58
|
| `@devalok/shilp-sutra/ui/charts` | `pnpm add d3-axis d3-scale d3-selection d3-shape` |
|
|
58
59
|
| `@devalok/shilp-sutra/ui/data-table` | `pnpm add @tanstack/react-table @tanstack/react-virtual` |
|
|
@@ -196,17 +196,38 @@ In dev mode, calling `toast()` without a mounted `<Toaster />` logs a one-time c
|
|
|
196
196
|
|
|
197
197
|
## Symptom: Build error mentioning `use-sync-external-store`
|
|
198
198
|
|
|
199
|
-
**Diagnosis:**
|
|
199
|
+
**Diagnosis:** we no longer depend on it at all, as of v0.56.0. Nothing in our `dist` imports it.
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
It was never ours: React 18+ has `useSyncExternalStore` built in and our own code calls it directly. The dependency existed purely because we *bundled* TipTap, and that bundled chunk imported the shim. TipTap is now externalized, so the shim went with it.
|
|
202
202
|
|
|
203
|
-
If
|
|
203
|
+
If you still see the error, something else in your tree wants it — find out what and install it there:
|
|
204
204
|
|
|
205
205
|
```bash
|
|
206
|
-
pnpm
|
|
206
|
+
pnpm why use-sync-external-store
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
If the trail leads back to `@devalok/shilp-sutra`, that's a bug: open an issue at <https://github.com/devalok-design/shilp-sutra/issues> with that output.
|
|
210
|
+
|
|
211
|
+
## Symptom: `Cannot find module '@tiptap/core'` (or another `@tiptap/*`) after upgrading to 0.56.0
|
|
212
|
+
|
|
213
|
+
**Diagnosis:** expected, and it is the one breaking change in 0.56.0. We used to bundle TipTap *and* list it as an optional peer — so `RichTextEditor` / `RichChatInput` worked whether or not you installed the peers. It is now externalized, so you must install them.
|
|
214
|
+
|
|
215
|
+
**Why we changed it:** a consumer who *did* follow the peer instructions ended up running two ProseMirror copies. Plugin keys are module-scoped, so the two copies could not see each other's plugins and the editor misbehaved in ways that were near-impossible to debug. It also cut 641 KB from the package for everyone who never touches rich text.
|
|
216
|
+
|
|
217
|
+
**Fix** — install the peers for the component you import (§2a of your framework's install recipe has the exact line):
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
# RichTextEditor
|
|
221
|
+
pnpm add @tiptap/core @tiptap/extension-highlight @tiptap/extension-image \
|
|
222
|
+
@tiptap/extension-list @tiptap/extension-mention @tiptap/extension-text-align \
|
|
223
|
+
@tiptap/extensions @tiptap/markdown @tiptap/pm @tiptap/react \
|
|
224
|
+
@tiptap/starter-kit @tiptap/suggestion
|
|
225
|
+
|
|
226
|
+
# RichChatInput — the same list plus date-fns
|
|
227
|
+
pnpm add date-fns
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Or ask the docs MCP: `preflight` reports exactly which peers your imports need.
|
|
210
231
|
|
|
211
232
|
## Symptom: `Cannot find package 'sonner'` when you only imported a hook (or `'react-markdown'` from the AI barrel)
|
|
212
233
|
|