@solostylist/ui-kit 1.0.169 → 1.0.171

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 (41) hide show
  1. package/dist/ContentCopy-7nFBtjhs.js +11 -0
  2. package/dist/main.d.ts +2 -0
  3. package/dist/main.js +60 -58
  4. package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +2 -4
  5. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +244 -277
  6. package/dist/s-blur-text/s-blur-text.js +19 -20
  7. package/dist/s-button-link/s-button-link.js +2 -2
  8. package/dist/s-category-card/s-category-card.js +2 -2
  9. package/dist/s-chat-input/s-chat-input.js +2 -2
  10. package/dist/s-chat-message/s-chat-message.js +77 -99
  11. package/dist/s-code-block/index.d.ts +2 -0
  12. package/dist/s-code-block/index.js +4 -0
  13. package/dist/s-code-block/package.json +5 -0
  14. package/dist/s-code-block/s-code-block.d.ts +36 -0
  15. package/dist/s-code-block/s-code-block.js +1061 -0
  16. package/dist/s-copyable-text/s-copyable-text.js +17 -21
  17. package/dist/s-countdown/s-count-box.js +2 -2
  18. package/dist/s-countdown/s-count-down.js +2 -2
  19. package/dist/s-error-layout/s-error-layout.js +2 -2
  20. package/dist/s-glow-button/s-glow-button.js +4 -5
  21. package/dist/s-gradient-icon/s-gradient-icon.js +2 -2
  22. package/dist/s-moving-border/s-moving-border.d.ts +1 -1
  23. package/dist/s-moving-border/s-moving-border.js +34 -34
  24. package/dist/s-scroll-reveal/s-scroll-reveal.js +2 -2
  25. package/dist/s-skeleton/s-skeleton.js +2 -2
  26. package/dist/s-stripe/s-stripe.js +5 -5
  27. package/dist/s-tabs/s-tab-panel.js +2 -2
  28. package/dist/s-text-shimmer/s-text-shimmer.d.ts +2 -2
  29. package/dist/s-text-shimmer/s-text-shimmer.js +13 -13
  30. package/dist/s-text-truncation/s-text-truncation.js +1 -1
  31. package/dist/s-theme-demo/s-theme-demo.js +51 -88
  32. package/dist/s-theme-provider/s-theme-provider.js +2 -2
  33. package/dist/s-theme-switch/s-theme-switch.js +1 -1
  34. package/dist/s-two-pane-layout/index.js +1 -1
  35. package/dist/s-two-pane-layout/s-two-pane-layout.js +2 -2
  36. package/dist/s-typewriter-text/s-typewriter-text.js +8 -8
  37. package/dist/s-zoom-image/index.js +1 -1
  38. package/dist/s-zoom-image/s-zoom-image.js +2 -2
  39. package/dist/theme/theme-primitives.d.ts +5 -0
  40. package/dist/theme/theme-primitives.js +23 -18
  41. package/package.json +4 -1
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Props interface for SCodeBlock component
3
+ */
4
+ export interface SCodeBlockProps {
5
+ /** The code content to display and copy */
6
+ code: string;
7
+ /**
8
+ * Programming language for syntax highlighting
9
+ * @default 'typescript'
10
+ */
11
+ language?: string;
12
+ /**
13
+ * Whether to show line numbers
14
+ * @default true
15
+ */
16
+ showLineNumbers?: boolean;
17
+ /**
18
+ * Whether to show copy button
19
+ * @default true
20
+ */
21
+ showCopyButton?: boolean;
22
+ /**
23
+ * Custom style for the code block
24
+ */
25
+ customStyle?: React.CSSProperties;
26
+ /** Callback function triggered after code is successfully copied */
27
+ onCopied?: () => void;
28
+ }
29
+ /**
30
+ * A code block component with syntax highlighting and built-in copy-to-clipboard functionality.
31
+ */
32
+ export declare const SCodeBlock: {
33
+ ({ code, language, showLineNumbers, showCopyButton, customStyle, onCopied, }: SCodeBlockProps): import("react/jsx-runtime").JSX.Element | null;
34
+ displayName: string;
35
+ };
36
+ export default SCodeBlock;