@refraction-ui/astro 0.15.0 → 0.15.2

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 (132) hide show
  1. package/dist/astro-accordion/Accordion.astro +7 -0
  2. package/dist/astro-accordion/Accordion.stories.ts +10 -4
  3. package/dist/astro-ai/AIScript.astro +1 -1
  4. package/dist/astro-analytics/Analytics.stories.ts +5 -3
  5. package/dist/astro-analytics/AnalyticsScript.astro +1 -1
  6. package/dist/astro-animated-text/AnimatedText.stories.ts +7 -3
  7. package/dist/astro-app-shell/AppShell.stories.ts +14 -3
  8. package/dist/astro-auth/Auth.stories.ts +8 -3
  9. package/dist/astro-avatar/Avatar.stories.ts +6 -3
  10. package/dist/astro-avatar-group/AvatarGroup.stories.ts +10 -3
  11. package/dist/astro-badge/Badge.stories.ts +7 -7
  12. package/dist/astro-bottom-nav/BottomNav.stories.ts +6 -3
  13. package/dist/astro-breadcrumbs/Breadcrumbs.stories.ts +9 -3
  14. package/dist/astro-button/Button.stories.ts +9 -3
  15. package/dist/astro-calendar/Calendar.stories.ts +9 -3
  16. package/dist/astro-callout/Callout.stories.ts +6 -3
  17. package/dist/astro-card/Card.stories.ts +6 -3
  18. package/dist/astro-card-grid/CardGrid.stories.ts +5 -3
  19. package/dist/astro-carousel/Carousel.astro +7 -0
  20. package/dist/astro-carousel/Carousel.stories.ts +10 -4
  21. package/dist/astro-charts/Charts.stories.ts +9 -4
  22. package/dist/astro-checkbox/Checkbox.stories.ts +9 -3
  23. package/dist/astro-code-block/CodeBlock.stories.ts +5 -3
  24. package/dist/astro-code-editor/CodeEditor.astro +1 -1
  25. package/dist/astro-code-editor/CodeEditor.stories.ts +10 -3
  26. package/dist/astro-collapsible/Collapsible.stories.ts +7 -3
  27. package/dist/astro-command/Command.stories.ts +6 -3
  28. package/dist/astro-command-input/CommandInput.stories.ts +5 -3
  29. package/dist/astro-content-protection/ContentProtection.stories.ts +9 -3
  30. package/dist/astro-conversation/Chat.astro +1 -1
  31. package/dist/astro-conversation/Conversation.stories.ts +7 -3
  32. package/dist/astro-data-table/DataTable.astro +1 -1
  33. package/dist/astro-data-table/DataTable.stories.ts +15 -3
  34. package/dist/astro-date-picker/DatePicker.astro +39 -355
  35. package/dist/astro-date-picker/DatePicker.stories.ts +11 -3
  36. package/dist/astro-device-frame/DeviceFrame.stories.ts +7 -3
  37. package/dist/astro-dialog/Dialog.stories.ts +7 -3
  38. package/dist/astro-diff-viewer/DiffViewer.stories.ts +19 -3
  39. package/dist/astro-dropdown-menu/DropdownMenu.stories.ts +6 -3
  40. package/dist/astro-emoji-picker/EmojiPicker.stories.ts +5 -3
  41. package/dist/astro-feedback-dialog/FeedbackDialog.stories.ts +6 -3
  42. package/dist/astro-file-tree/FileTree.stories.ts +5 -3
  43. package/dist/astro-file-upload/FileUpload.stories.ts +9 -3
  44. package/dist/astro-floating-reactions/FloatingReactions.astro +1 -1
  45. package/dist/astro-footer/Footer.stories.ts +7 -3
  46. package/dist/astro-icon-system/IconSystem.stories.ts +5 -3
  47. package/dist/astro-inline-editor/InlineEditor.stories.ts +5 -3
  48. package/dist/astro-input/Input.stories.ts +11 -3
  49. package/dist/astro-input-group/InputGroup.stories.ts +6 -3
  50. package/dist/astro-install-prompt/InstallPrompt.stories.ts +9 -3
  51. package/dist/astro-keyboard-shortcut/KeyboardShortcut.stories.ts +7 -3
  52. package/dist/astro-language-selector/LanguageSelector.stories.ts +11 -3
  53. package/dist/astro-link-card/LinkCard.stories.ts +5 -3
  54. package/dist/astro-logger/Logger.stories.ts +10 -3
  55. package/dist/astro-logger/TelemetryScript.astro +1 -1
  56. package/dist/astro-markdown-renderer/MarkdownRenderer.stories.ts +8 -3
  57. package/dist/astro-mascot/Mascot.astro +274 -0
  58. package/dist/astro-mascot/Mascot.stories.ts +46 -0
  59. package/dist/astro-mascot/index.ts +11 -0
  60. package/dist/astro-mobile-nav/MobileNav.stories.ts +6 -3
  61. package/dist/astro-navbar/Navbar.stories.ts +16 -3
  62. package/dist/astro-otp-input/OtpInput.stories.ts +20 -3
  63. package/dist/astro-pagination/Pagination.stories.ts +3 -3
  64. package/dist/astro-password-input/PasswordInput.stories.ts +29 -0
  65. package/dist/astro-payment/Payment.stories.ts +8 -3
  66. package/dist/astro-popover/Popover.stories.ts +10 -3
  67. package/dist/astro-popover/PopoverClose.stories.ts +17 -0
  68. package/dist/astro-popover/PopoverContent.stories.ts +19 -0
  69. package/dist/astro-popover/PopoverTrigger.stories.ts +17 -0
  70. package/dist/astro-presence-indicator/PresenceIndicator.stories.ts +14 -3
  71. package/dist/astro-progress-display/BadgeDisplay.astro +1 -1
  72. package/dist/astro-progress-display/BadgeDisplay.stories.ts +17 -0
  73. package/dist/astro-progress-display/ProgressBar.stories.ts +21 -0
  74. package/dist/astro-progress-display/StatsGrid.astro +1 -1
  75. package/dist/astro-progress-display/StatsGrid.stories.ts +19 -0
  76. package/dist/astro-radio/RadioGroup.stories.ts +25 -0
  77. package/dist/astro-radio/RadioItem.stories.ts +23 -0
  78. package/dist/astro-reaction-bar/ReactionBar.astro +1 -1
  79. package/dist/astro-reaction-bar/ReactionBar.stories.ts +10 -3
  80. package/dist/astro-resizable-layout/ResizableDivider.stories.ts +19 -0
  81. package/dist/astro-resizable-layout/ResizableLayout.stories.ts +18 -3
  82. package/dist/astro-resizable-layout/ResizablePane.stories.ts +21 -0
  83. package/dist/astro-rich-editor/RichEditor.stories.ts +20 -3
  84. package/dist/astro-search-bar/SearchBar.stories.ts +14 -3
  85. package/dist/astro-search-bar/SearchResultItem.stories.ts +17 -0
  86. package/dist/astro-search-bar/SearchResults.stories.ts +17 -0
  87. package/dist/astro-segmented-control/SegmentedControl.stories.ts +23 -0
  88. package/dist/astro-segmented-control/SegmentedControlItem.stories.ts +25 -0
  89. package/dist/astro-select/Select.stories.ts +16 -3
  90. package/dist/astro-select/SelectContent.stories.ts +17 -0
  91. package/dist/astro-select/SelectItem.stories.ts +23 -0
  92. package/dist/astro-select/SelectTrigger.stories.ts +21 -0
  93. package/dist/astro-separator/Separator.stories.ts +23 -0
  94. package/dist/astro-sidebar/Sidebar.astro +1 -1
  95. package/dist/astro-sidebar/Sidebar.stories.ts +14 -3
  96. package/dist/astro-skeleton/Skeleton.stories.ts +14 -3
  97. package/dist/astro-skeleton/SkeletonText.stories.ts +19 -0
  98. package/dist/astro-skip-to-content/SkipToContent.stories.ts +3 -3
  99. package/dist/astro-slide-viewer/SlideViewer.stories.ts +14 -3
  100. package/dist/astro-social-auth-button/SocialAuthButton.stories.ts +23 -0
  101. package/dist/astro-social-auth-button/SocialAuthRow.stories.ts +17 -0
  102. package/dist/astro-status-indicator/StatusIndicator.stories.ts +14 -3
  103. package/dist/astro-steps/Steps.stories.ts +3 -3
  104. package/dist/astro-switch/Switch.stories.ts +14 -3
  105. package/dist/astro-table-of-contents/TableOfContents.stories.ts +8 -3
  106. package/dist/astro-tabs/Tabs.stories.ts +12 -3
  107. package/dist/astro-tabs/TabsContent.stories.ts +21 -0
  108. package/dist/astro-tabs/TabsList.stories.ts +17 -0
  109. package/dist/astro-tabs/TabsTrigger.stories.ts +21 -0
  110. package/dist/astro-textarea/Textarea.stories.ts +22 -3
  111. package/dist/astro-theme/ThemeScript.stories.ts +23 -0
  112. package/dist/astro-theme/ThemeToggle.stories.ts +21 -0
  113. package/dist/astro-thread-view/ThreadView.astro +1 -1
  114. package/dist/astro-thread-view/ThreadView.stories.ts +10 -3
  115. package/dist/astro-toast/Toast.stories.ts +16 -3
  116. package/dist/astro-toast/Toaster.stories.ts +17 -0
  117. package/dist/astro-tooltip/Tooltip.stories.ts +10 -3
  118. package/dist/astro-tooltip/TooltipContent.stories.ts +19 -0
  119. package/dist/astro-tooltip/TooltipTrigger.stories.ts +17 -0
  120. package/dist/astro-version-selector/VersionSelector.astro +2 -2
  121. package/dist/astro-version-selector/VersionSelector.stories.ts +12 -3
  122. package/dist/astro-video-grid/VideoGrid.astro +1 -1
  123. package/dist/astro-video-player/VideoPlayer.stories.ts +16 -3
  124. package/dist/astro-voice-pill/VoicePill.stories.ts +24 -3
  125. package/dist/astro-waveform/Waveform.stories.ts +26 -3
  126. package/dist/date-picker/date-picker.styles.ts +1 -1
  127. package/dist/date-picker/date-picker.ts +3 -1
  128. package/dist/index.ts +1 -0
  129. package/dist/mascot/index.ts +2 -0
  130. package/dist/mascot/mascot.styles.ts +33 -0
  131. package/dist/mascot/mascot.ts +121 -0
  132. package/package.json +2 -1
@@ -0,0 +1,7 @@
1
+ ---
2
+ // Placeholder for Accordion component
3
+ ---
4
+
5
+ <div class="refraction-accordion">
6
+ <slot />
7
+ </div>
@@ -1,7 +1,5 @@
1
- import Component from './Button.astro'
1
+ import Component from './Accordion.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Accordion',
7
5
  component: Component,
@@ -9,4 +7,12 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ variant: 'default',
14
+ size: 'default',
15
+ loading: false,
16
+ disabled: false
17
+ }
18
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  /**
3
- * AIScript — injects a <script> that initializes the AI client on the page.
3
+ * AIScript — injects a \<script\> that initializes the AI client on the page.
4
4
  * Exposes `window.__rfr_ai` for other scripts to call generateText / generateJSON.
5
5
  *
6
6
  * Props mirror AIConfig from @refraction-ui/ai.
@@ -1,7 +1,5 @@
1
1
  import Component from './AnalyticsScript.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Analytics',
7
5
  component: Component,
@@ -9,4 +7,8 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+
13
+ }
14
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  /**
3
- * AnalyticsScript — injects a <script> that initializes the analytics
3
+ * AnalyticsScript — injects a \<script\> that initializes the analytics
4
4
  * router on the page. Exposes `window.__rfr_analytics` so other scripts
5
5
  * can call track / identify / page / screen / group / alias.
6
6
  *
@@ -1,7 +1,5 @@
1
1
  import Component from './AnimatedText.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/AnimatedText',
7
5
  component: Component,
@@ -9,4 +7,10 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ words: ['Item 1', 'Item 2'],
13
+ interval: 42,
14
+ transitionDuration: 42
15
+ }
16
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './AppShell.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/AppShell',
7
5
  component: Component,
@@ -9,4 +7,17 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ sidebarWidth: 'Example sidebarWidth',
14
+ sidebarCollapsedWidth: 'Example sidebarCollapsedWidth',
15
+ headerHeight: 'Example headerHeight',
16
+ mobileBreakpoint: 42,
17
+ tabletBreakpoint: 42,
18
+ sidebarPosition: undefined,
19
+ sidebarCollapsible: false,
20
+ sidebarDefaultCollapsed: false,
21
+ mobileNavPosition: undefined
22
+ }
23
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './AuthGuard.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Auth',
7
5
  component: Component,
@@ -9,4 +7,11 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ roles: ['Item 1', 'Item 2'],
14
+ redirectTo: 'Example redirectTo',
15
+ provider: undefined
16
+ }
17
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Avatar.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Avatar',
7
5
  component: Component,
@@ -9,4 +7,9 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ size: 'default'
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './AvatarGroup.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/AvatarGroup',
7
5
  component: Component,
@@ -9,4 +7,13 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ users: [
13
+ { name: 'Alice', src: 'https://example.com/alice.jpg' },
14
+ { name: 'Bob', src: 'https://example.com/bob.jpg' }
15
+ ],
16
+ max: 3,
17
+ size: 'md'
18
+ }
19
+ }
@@ -3,14 +3,14 @@ import Badge from './Badge.astro'
3
3
  const meta = {
4
4
  title: 'Astro/Badge',
5
5
  component: Badge,
6
- argTypes: {
7
- variant: { control: 'select', options: ['default', 'secondary', 'destructive', 'outline'] },
8
- size: { control: 'select', options: ['sm', 'default', 'lg'] },
9
- },
10
6
  }
11
7
 
12
8
  export default meta
13
9
 
14
- export const Default = { args: { variant: 'default' } }
15
- export const Secondary = { args: { variant: 'secondary' } }
16
- export const Outline = { args: { variant: 'outline' } }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ variant: 'default',
14
+ size: 'default'
15
+ }
16
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './BottomNav.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/BottomNav',
7
5
  component: Component,
@@ -9,4 +7,9 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ tabs: undefined,
13
+ currentPath: 'Example currentPath'
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Breadcrumbs.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Breadcrumbs',
7
5
  component: Component,
@@ -9,4 +7,12 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ pathname: 'Example pathname',
13
+ items: undefined,
14
+ labels: 'Example labels',
15
+ separator: 'Example separator',
16
+ maxItems: 42
17
+ }
18
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Button.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Button',
7
5
  component: Component,
@@ -9,4 +7,12 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ variant: 'default',
14
+ size: 'default',
15
+ loading: false,
16
+ disabled: false
17
+ }
18
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Calendar.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Calendar',
7
5
  component: Component,
@@ -9,4 +7,12 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ value: '2026-06-15T00:00:00.000Z',
13
+ minDate: '2026-01-01T00:00:00.000Z',
14
+ maxDate: '2026-12-31T00:00:00.000Z',
15
+ disabled: false,
16
+ showOutsideDays: false
17
+ }
18
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Callout.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Callout',
7
5
  component: Component,
@@ -9,4 +7,9 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ variant: undefined
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Card.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Card',
7
5
  component: Component,
@@ -9,4 +7,9 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ padding: undefined
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './CardGrid.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/CardGrid',
7
5
  component: Component,
@@ -9,4 +7,8 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>'
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ ---
2
+ // Placeholder for Carousel component
3
+ ---
4
+
5
+ <div class="refraction-carousel">
6
+ <slot />
7
+ </div>
@@ -1,7 +1,5 @@
1
- import Component from './Button.astro'
1
+ import Component from './Carousel.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Carousel',
7
5
  component: Component,
@@ -9,4 +7,12 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ variant: 'default',
14
+ size: 'default',
15
+ loading: false,
16
+ disabled: false
17
+ }
18
+ }
@@ -1,7 +1,5 @@
1
- import Component from './Bars.astro'
1
+ import Component from './Chart.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Charts',
7
5
  component: Component,
@@ -9,4 +7,11 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ width: 100,
14
+ height: 100,
15
+ margin: undefined
16
+ }
17
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Checkbox.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Checkbox',
7
5
  component: Component,
@@ -9,4 +7,12 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ checked: undefined,
13
+ disabled: false,
14
+ size: 'default',
15
+ name: 'Example name',
16
+ value: 'Example value'
17
+ }
18
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './CodeBlock.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/CodeBlock',
7
5
  component: Component,
@@ -9,4 +7,8 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>'
13
+ }
14
+ }
@@ -41,7 +41,7 @@ const containerClasses = cn(codeEditorVariants({ theme }), className)
41
41
  <span data-rfr-code-editor-lang>{api.getLanguageLabel()}</span>
42
42
  {actions && actions.length > 0 && (
43
43
  <div class="flex gap-1" data-rfr-code-editor-actions>
44
- {actions.map((action) => (
44
+ {(actions || []).map((action) => (
45
45
  <button
46
46
  type="button"
47
47
  data-rfr-code-editor-action={action.label}
@@ -1,7 +1,5 @@
1
1
  import Component from './CodeEditor.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/CodeEditor',
7
5
  component: Component,
@@ -9,4 +7,13 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ value: 'Example value',
13
+ language: 'Example language',
14
+ readOnly: false,
15
+ theme: undefined,
16
+ placeholder: 'Example placeholder',
17
+ actions: 'Example actions'
18
+ }
19
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Collapsible.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Collapsible',
7
5
  component: Component,
@@ -9,4 +7,10 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ open: false,
14
+ disabled: false
15
+ }
16
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Command.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Command',
7
5
  component: Component,
@@ -9,4 +7,9 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ open: false
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './CommandInput.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/CommandInput',
7
5
  component: Component,
@@ -9,4 +7,8 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>'
13
+ }
14
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './ContentProtection.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/ContentProtection',
7
5
  component: Component,
@@ -9,4 +7,12 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ default: '<span>Default Slot Content</span>',
13
+ enabled: false,
14
+ disableCopy: false,
15
+ disableContextMenu: false,
16
+ watermarkText: 'Example watermarkText'
17
+ }
18
+ }
@@ -29,7 +29,7 @@ const {
29
29
  const store = createConversation(config)
30
30
  const state = store.getState()
31
31
  const timeline = selectMainTimeline(state.messages, state.threadingMode)
32
- const activeConv = state.conversations.find((c) => c.id === state.activeConversationId)
32
+ const activeConv = (state.conversations || []).find((c) => c.id === state.activeConversationId)
33
33
 
34
34
  /** Render markdown to sanitized HTML (mirrors react-markdown-renderer). */
35
35
  function renderMarkdown(content: string): string {
@@ -1,7 +1,5 @@
1
1
  import Component from './Chat.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/Conversation',
7
5
  component: Component,
@@ -9,4 +7,10 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ config: undefined,
13
+ showConversationList: false,
14
+ currentUserId: 'Example currentUserId'
15
+ }
16
+ }
@@ -85,7 +85,7 @@ const hasFilterable = columns.some((c: ColumnDef) => c.filterable)
85
85
  </td>
86
86
  </tr>
87
87
  ) : (
88
- sortedData.map((row: Record<string, unknown>, rowIndex: number) => (
88
+ sortedData.map((row, rowIndex) => (
89
89
  <tr
90
90
  role="row"
91
91
  class={rowVariants()}
@@ -1,7 +1,5 @@
1
1
  import Component from './DataTable.astro'
2
2
 
3
- // Auto-generated baseline story. Renders the component with empty args;
4
- // components that require props show a render error (enrich by hand as needed).
5
3
  const meta = {
6
4
  title: 'Astro/DataTable',
7
5
  component: Component,
@@ -9,4 +7,18 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ columns: [
13
+ { key: 'id', title: 'ID' },
14
+ { key: 'name', title: 'Name' }
15
+ ],
16
+ data: [
17
+ { id: 1, name: 'Alice' },
18
+ { id: 2, name: 'Bob' }
19
+ ],
20
+ sortBy: 'id',
21
+ sortDir: 'asc',
22
+ emptyMessage: 'No data found'
23
+ }
24
+ }