@runtypelabs/persona 3.5.2 → 3.6.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 (45) hide show
  1. package/dist/index.cjs +30 -30
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +14 -0
  4. package/dist/index.d.ts +14 -0
  5. package/dist/index.global.js +41 -41
  6. package/dist/index.global.js.map +1 -1
  7. package/dist/index.js +29 -29
  8. package/dist/index.js.map +1 -1
  9. package/dist/theme-editor.cjs +17728 -0
  10. package/dist/theme-editor.d.cts +3857 -0
  11. package/dist/theme-editor.d.ts +3857 -0
  12. package/dist/theme-editor.js +17623 -0
  13. package/dist/theme-reference.cjs +1 -1
  14. package/dist/theme-reference.d.cts +14 -0
  15. package/dist/theme-reference.d.ts +14 -0
  16. package/dist/theme-reference.js +1 -1
  17. package/dist/widget.css +29 -25
  18. package/package.json +9 -7
  19. package/src/components/artifact-card.ts +1 -1
  20. package/src/components/composer-builder.ts +16 -29
  21. package/src/components/demo-carousel.ts +4 -4
  22. package/src/components/event-stream-view.ts +1 -1
  23. package/src/components/header-builder.ts +2 -2
  24. package/src/components/launcher.ts +9 -0
  25. package/src/components/message-bubble.ts +9 -3
  26. package/src/components/suggestions.ts +1 -1
  27. package/src/defaults.ts +9 -9
  28. package/src/styles/widget.css +29 -25
  29. package/src/theme-editor/color-utils.ts +252 -0
  30. package/src/theme-editor/index.ts +130 -0
  31. package/src/theme-editor/presets.ts +144 -0
  32. package/src/theme-editor/preview-utils.ts +265 -0
  33. package/src/theme-editor/preview.ts +445 -0
  34. package/src/theme-editor/role-mappings.ts +331 -0
  35. package/src/theme-editor/sections.ts +952 -0
  36. package/src/theme-editor/state.ts +298 -0
  37. package/src/theme-editor/types.ts +177 -0
  38. package/src/theme-editor.ts +2 -0
  39. package/src/types/theme.ts +1 -0
  40. package/src/ui.ts +53 -58
  41. package/src/utils/plugins.ts +1 -1
  42. package/src/utils/theme.test.ts +10 -8
  43. package/src/utils/theme.ts +11 -11
  44. package/src/utils/tokens.ts +88 -41
  45. package/widget.css +0 -1
package/dist/index.d.cts CHANGED
@@ -189,6 +189,7 @@ interface ColorPalette {
189
189
  success: ColorShade;
190
190
  warning: ColorShade;
191
191
  error: ColorShade;
192
+ info: ColorShade;
192
193
  [key: string]: ColorShade;
193
194
  }
194
195
  interface SpacingScale {
@@ -5035,6 +5036,19 @@ declare const DEFAULT_PALETTE: {
5035
5036
  800: string;
5036
5037
  900: string;
5037
5038
  };
5039
+ info: {
5040
+ 50: string;
5041
+ 100: string;
5042
+ 200: string;
5043
+ 300: string;
5044
+ 400: string;
5045
+ 500: string;
5046
+ 600: string;
5047
+ 700: string;
5048
+ 800: string;
5049
+ 900: string;
5050
+ 950: string;
5051
+ };
5038
5052
  };
5039
5053
  spacing: {
5040
5054
  0: string;
package/dist/index.d.ts CHANGED
@@ -189,6 +189,7 @@ interface ColorPalette {
189
189
  success: ColorShade;
190
190
  warning: ColorShade;
191
191
  error: ColorShade;
192
+ info: ColorShade;
192
193
  [key: string]: ColorShade;
193
194
  }
194
195
  interface SpacingScale {
@@ -5035,6 +5036,19 @@ declare const DEFAULT_PALETTE: {
5035
5036
  800: string;
5036
5037
  900: string;
5037
5038
  };
5039
+ info: {
5040
+ 50: string;
5041
+ 100: string;
5042
+ 200: string;
5043
+ 300: string;
5044
+ 400: string;
5045
+ 500: string;
5046
+ 600: string;
5047
+ 700: string;
5048
+ 800: string;
5049
+ 900: string;
5050
+ 950: string;
5051
+ };
5038
5052
  };
5039
5053
  spacing: {
5040
5054
  0: string;