@juspay/svelte-ui-components 4.52.1 → 4.53.1

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 (39) hide show
  1. package/README.md +14 -0
  2. package/dist/AttachmentChipRow/AttachmentChipRow.svelte +3 -2
  3. package/dist/AttachmentChipRow/properties.d.ts +2 -0
  4. package/dist/Book/Book.svelte +2 -0
  5. package/dist/Book/properties.d.ts +2 -0
  6. package/dist/Chat/Chat.svelte +2 -0
  7. package/dist/Chat/properties.d.ts +2 -0
  8. package/dist/Chat/types.d.ts +2 -0
  9. package/dist/ChatMessage/ChatMessage.svelte +18 -3
  10. package/dist/ChatMessage/properties.d.ts +6 -0
  11. package/dist/ChatMessageList/ChatMessageList.svelte +31 -7
  12. package/dist/ChatMessageList/properties.d.ts +2 -0
  13. package/dist/Choicebox/Choicebox.svelte +33 -23
  14. package/dist/DateRangePicker/DateRangePicker.svelte +82 -33
  15. package/dist/DateRangePicker/properties.d.ts +18 -2
  16. package/dist/Draggable/Draggable.svelte +4 -2
  17. package/dist/MediaPlayer/MediaPlayer.svelte +28 -13
  18. package/dist/MediaPlayer/properties.d.ts +2 -0
  19. package/dist/Modal/Modal.svelte +30 -43
  20. package/dist/Modal/properties.d.ts +5 -4
  21. package/dist/Pagination/Pagination.svelte +2 -0
  22. package/dist/Pagination/properties.d.ts +2 -0
  23. package/dist/Pill/Pill.svelte +61 -4
  24. package/dist/Pill/properties.d.ts +8 -16
  25. package/dist/Radio/Radio.svelte +6 -2
  26. package/dist/RatingGroup/RatingGroup.svelte +38 -26
  27. package/dist/Select/Select.svelte +8 -0
  28. package/dist/StatCard/StatCard.svelte +68 -17
  29. package/dist/StatCard/properties.d.ts +1 -1
  30. package/dist/Stepper/Step.svelte +2 -2
  31. package/dist/Table/Table.svelte +32 -2
  32. package/dist/Table/properties.d.ts +11 -5
  33. package/dist/Tabs/Tabs.svelte +187 -12
  34. package/dist/ToolCallLog/ToolCallLog.svelte +4 -4
  35. package/dist/utils.js +20 -2
  36. package/dist-codemod/codemod/cli.js +4 -4
  37. package/dist-wc/index.js +3134 -2717
  38. package/package.json +3 -2
  39. package/scripts/postinstall.mjs +13 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "4.52.1",
3
+ "version": "4.53.1",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",
@@ -79,7 +79,8 @@
79
79
  ],
80
80
  "sideEffects": [
81
81
  "./src/wc/**",
82
- "./dist-wc/**"
82
+ "./dist-wc/**",
83
+ "**/*.css"
83
84
  ],
84
85
  "peerDependencies": {
85
86
  "lottie-web": ">=5.0.0",
@@ -27,25 +27,23 @@ const isNonInteractive = () =>
27
27
  const notice = () =>
28
28
  [
29
29
  '',
30
- `${BOLD}@juspay/svelte-ui-components — two breaking changes are coming in 4.0.0${RESET}`,
30
+ `${BOLD}@juspay/svelte-ui-components — migration guidance${RESET}`,
31
31
  '',
32
- ' Nothing has changed yet. Both work today; both go away in 4.0.0:',
32
+ ' 1. Library event props use lowercase (`onrowclick`, `onclick`).',
33
+ ' Removed spellings on library tags must be renamed. Callback keys',
34
+ ' on configuration objects keep their documented spelling.',
35
+ ' Guide: docs/EVENT_CASING_MIGRATION.md in the repository.',
33
36
  '',
34
- ' 1. Every event prop is now lowercase (`onRowClick` -> `onrowclick`,',
35
- ' `onClick` -> `onclick`), matching one rule for native and invented',
36
- ' events alike. The 191 earlier spellings still work and warn once per',
37
- ' prop in dev builds; 4.0.0 removes them.',
38
- ' Plan: docs/EVENT_CASING_MIGRATION.md in the repository.',
37
+ ' 2. sui-chat-bubble, sui-draggable and sui-resizable accept content',
38
+ ' through light-DOM children. Their native `children` collection',
39
+ ' is not a writable snippet property:',
40
+ ` ${DIM}<sui-draggable><div>…</div></sui-draggable>${RESET}`,
39
41
  '',
40
- ' 2. `children` stops being a settable property on sui-chat-bubble,',
41
- ' sui-draggable and sui-resizable; assigning it will silently lose',
42
- ' the content. Move to light-DOM children ahead of time:',
43
- ` ${DIM}el.children = snippet;${RESET} // before`,
44
- ` ${DIM}<sui-draggable><div>…</div></sui-draggable>${RESET} // after`,
45
- '',
46
- ' One command reports every affected call site (writes nothing), and',
47
- ' rewrites the event props for you without --dry-run:',
42
+ ' Preview event-prop renames and reported children assignments:',
48
43
  ` ${BOLD}npx sui-codemod --dry-run ./src${RESET}`,
44
+ ' Apply the event-prop renames:',
45
+ ` ${BOLD}npx sui-codemod ./src${RESET}`,
46
+ ' Review reported content assignments and move them to light DOM.',
49
47
  ''
50
48
  ].join('\n');
51
49