@refraction-ui/astro 0.14.0 → 0.15.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 (144) 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.stories.ts +11 -3
  35. package/dist/astro-device-frame/DeviceFrame.stories.ts +7 -3
  36. package/dist/astro-dialog/Dialog.stories.ts +7 -3
  37. package/dist/astro-diff-viewer/DiffViewer.stories.ts +19 -3
  38. package/dist/astro-dropdown-menu/DropdownMenu.stories.ts +6 -3
  39. package/dist/astro-emoji-picker/EmojiPicker.stories.ts +5 -3
  40. package/dist/astro-feedback-dialog/FeedbackDialog.stories.ts +6 -3
  41. package/dist/astro-file-tree/FileTree.stories.ts +5 -3
  42. package/dist/astro-file-upload/FileUpload.stories.ts +9 -3
  43. package/dist/astro-floating-reactions/FloatingReactions.astro +1 -1
  44. package/dist/astro-footer/Footer.stories.ts +7 -3
  45. package/dist/astro-icon-system/IconSystem.stories.ts +5 -3
  46. package/dist/astro-inline-editor/InlineEditor.stories.ts +5 -3
  47. package/dist/astro-input/Input.stories.ts +11 -3
  48. package/dist/astro-input-group/InputGroup.stories.ts +6 -3
  49. package/dist/astro-install-prompt/InstallPrompt.stories.ts +9 -3
  50. package/dist/astro-kanban-board/KanbanBoard.astro +92 -0
  51. package/dist/astro-kanban-board/index.ts +1 -0
  52. package/dist/astro-keyboard-shortcut/KeyboardShortcut.stories.ts +7 -3
  53. package/dist/astro-language-selector/LanguageSelector.stories.ts +11 -3
  54. package/dist/astro-link-card/LinkCard.stories.ts +5 -3
  55. package/dist/astro-logger/Logger.stories.ts +10 -3
  56. package/dist/astro-logger/TelemetryScript.astro +1 -1
  57. package/dist/astro-markdown-renderer/MarkdownRenderer.stories.ts +8 -3
  58. package/dist/astro-mascot/Mascot.astro +274 -0
  59. package/dist/astro-mascot/Mascot.stories.ts +46 -0
  60. package/dist/astro-mascot/index.ts +11 -0
  61. package/dist/astro-mobile-nav/MobileNav.stories.ts +6 -3
  62. package/dist/astro-navbar/Navbar.stories.ts +16 -3
  63. package/dist/astro-otp-input/OtpInput.stories.ts +20 -3
  64. package/dist/astro-pagination/Pagination.stories.ts +3 -3
  65. package/dist/astro-password-input/PasswordInput.stories.ts +29 -0
  66. package/dist/astro-payment/Payment.stories.ts +8 -3
  67. package/dist/astro-popover/Popover.stories.ts +10 -3
  68. package/dist/astro-popover/PopoverClose.stories.ts +17 -0
  69. package/dist/astro-popover/PopoverContent.stories.ts +19 -0
  70. package/dist/astro-popover/PopoverTrigger.stories.ts +17 -0
  71. package/dist/astro-presence-indicator/PresenceIndicator.stories.ts +14 -3
  72. package/dist/astro-progress-display/BadgeDisplay.astro +1 -1
  73. package/dist/astro-progress-display/BadgeDisplay.stories.ts +17 -0
  74. package/dist/astro-progress-display/ProgressBar.stories.ts +21 -0
  75. package/dist/astro-progress-display/StatsGrid.astro +1 -1
  76. package/dist/astro-progress-display/StatsGrid.stories.ts +19 -0
  77. package/dist/astro-radio/RadioGroup.stories.ts +25 -0
  78. package/dist/astro-radio/RadioItem.stories.ts +23 -0
  79. package/dist/astro-reaction-bar/ReactionBar.astro +1 -1
  80. package/dist/astro-reaction-bar/ReactionBar.stories.ts +10 -3
  81. package/dist/astro-resizable-layout/ResizableDivider.stories.ts +19 -0
  82. package/dist/astro-resizable-layout/ResizableLayout.stories.ts +18 -3
  83. package/dist/astro-resizable-layout/ResizablePane.stories.ts +21 -0
  84. package/dist/astro-rich-editor/RichEditor.stories.ts +20 -3
  85. package/dist/astro-search-bar/SearchBar.stories.ts +14 -3
  86. package/dist/astro-search-bar/SearchResultItem.stories.ts +17 -0
  87. package/dist/astro-search-bar/SearchResults.stories.ts +17 -0
  88. package/dist/astro-segmented-control/SegmentedControl.stories.ts +23 -0
  89. package/dist/astro-segmented-control/SegmentedControlItem.stories.ts +25 -0
  90. package/dist/astro-select/Select.stories.ts +16 -3
  91. package/dist/astro-select/SelectContent.stories.ts +17 -0
  92. package/dist/astro-select/SelectItem.stories.ts +23 -0
  93. package/dist/astro-select/SelectTrigger.stories.ts +21 -0
  94. package/dist/astro-separator/Separator.stories.ts +23 -0
  95. package/dist/astro-sidebar/Sidebar.astro +1 -1
  96. package/dist/astro-sidebar/Sidebar.stories.ts +14 -3
  97. package/dist/astro-skeleton/Skeleton.stories.ts +14 -3
  98. package/dist/astro-skeleton/SkeletonText.stories.ts +19 -0
  99. package/dist/astro-skip-to-content/SkipToContent.stories.ts +3 -3
  100. package/dist/astro-slide-viewer/SlideViewer.stories.ts +14 -3
  101. package/dist/astro-slot-picker/SlotPicker.astro +105 -0
  102. package/dist/astro-slot-picker/index.ts +1 -0
  103. package/dist/astro-social-auth-button/SocialAuthButton.stories.ts +23 -0
  104. package/dist/astro-social-auth-button/SocialAuthRow.stories.ts +17 -0
  105. package/dist/astro-sortable-list/SortableList.astro +68 -0
  106. package/dist/astro-sortable-list/index.ts +1 -0
  107. package/dist/astro-status-indicator/StatusIndicator.stories.ts +14 -3
  108. package/dist/astro-steps/Steps.stories.ts +3 -3
  109. package/dist/astro-switch/Switch.stories.ts +14 -3
  110. package/dist/astro-table-of-contents/TableOfContents.stories.ts +8 -3
  111. package/dist/astro-tabs/Tabs.stories.ts +12 -3
  112. package/dist/astro-tabs/TabsContent.stories.ts +21 -0
  113. package/dist/astro-tabs/TabsList.stories.ts +17 -0
  114. package/dist/astro-tabs/TabsTrigger.stories.ts +21 -0
  115. package/dist/astro-textarea/Textarea.stories.ts +22 -3
  116. package/dist/astro-theme/ThemeScript.stories.ts +23 -0
  117. package/dist/astro-theme/ThemeToggle.stories.ts +21 -0
  118. package/dist/astro-thread-view/ThreadView.astro +1 -1
  119. package/dist/astro-thread-view/ThreadView.stories.ts +10 -3
  120. package/dist/astro-toast/Toast.stories.ts +16 -3
  121. package/dist/astro-toast/Toaster.stories.ts +17 -0
  122. package/dist/astro-tooltip/Tooltip.stories.ts +10 -3
  123. package/dist/astro-tooltip/TooltipContent.stories.ts +19 -0
  124. package/dist/astro-tooltip/TooltipTrigger.stories.ts +17 -0
  125. package/dist/astro-version-selector/VersionSelector.astro +2 -2
  126. package/dist/astro-version-selector/VersionSelector.stories.ts +12 -3
  127. package/dist/astro-video-grid/VideoGrid.astro +1 -1
  128. package/dist/astro-video-player/VideoPlayer.stories.ts +16 -3
  129. package/dist/astro-voice-pill/VoicePill.stories.ts +24 -3
  130. package/dist/astro-waveform/Waveform.stories.ts +26 -3
  131. package/dist/index.ts +4 -0
  132. package/dist/kanban-board/index.ts +20 -0
  133. package/dist/kanban-board/kanban-board.styles.ts +78 -0
  134. package/dist/kanban-board/kanban-board.ts +82 -0
  135. package/dist/mascot/index.ts +2 -0
  136. package/dist/mascot/mascot.styles.ts +33 -0
  137. package/dist/mascot/mascot.ts +121 -0
  138. package/dist/slot-picker/index.ts +18 -0
  139. package/dist/slot-picker/slot-picker.styles.ts +70 -0
  140. package/dist/slot-picker/slot-picker.ts +64 -0
  141. package/dist/sortable-list/index.ts +13 -0
  142. package/dist/sortable-list/sortable-list.styles.ts +42 -0
  143. package/dist/sortable-list/sortable-list.ts +90 -0
  144. package/package.json +5 -1
@@ -1,7 +1,5 @@
1
1
  import Component from './Dialog.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/Dialog',
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
+ defaultOpen: false,
14
+ modal: false
15
+ }
16
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './DiffViewer.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/DiffViewer',
7
5
  component: Component,
@@ -9,4 +7,22 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ files: [
13
+ { name: 'example.js', original: 'const a = 1;', modified: 'const a = 2;' }
14
+ ],
15
+ original: 'const a = 1;',
16
+ modified: 'const a = 2;',
17
+ language: 'javascript',
18
+ theme: 'dark',
19
+ viewMode: 'split',
20
+ showSidebar: false,
21
+ showTabs: false,
22
+ showStatusBar: false,
23
+ sidebarWidth: 100,
24
+ activeFileIndex: 0,
25
+ statusBarTitle: 'Status',
26
+ statusBarStatus: 'Ready'
27
+ }
28
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './DropdownMenu.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/DropdownMenu',
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
+ defaultOpen: false
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './EmojiPicker.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/EmojiPicker',
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
+ category: undefined
13
+ }
14
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './FeedbackDialog.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/FeedbackDialog',
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
+ open: false,
13
+ type: 'default'
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './astro-file-tree.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/FileTree',
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,7 +1,5 @@
1
1
  import Component from './FileUpload.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/FileUpload',
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
+ accept: 'Example accept',
14
+ maxSize: 42,
15
+ maxFiles: 42,
16
+ multiple: false
17
+ }
18
+ }
@@ -39,7 +39,7 @@ const { ariaProps, dataAttributes } = createFloatingReactions()
39
39
  {...rest}
40
40
  >
41
41
  {
42
- reactions.map((reaction) => {
42
+ (reactions || []).map((reaction) => {
43
43
  const left = laneOffsetPercent(reaction.lane ?? 0, lanes)
44
44
  return (
45
45
  <span
@@ -1,7 +1,5 @@
1
1
  import Component from './Footer.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/Footer',
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
+ copyright: 'Example copyright',
13
+ socialLinks: undefined,
14
+ columns: undefined
15
+ }
16
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './astro-icon-system.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/IconSystem',
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,7 +1,5 @@
1
1
  import Component from './InlineEditor.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/InlineEditor',
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
+ value: 'Example value'
13
+ }
14
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './Input.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/Input',
7
5
  component: Component,
@@ -9,4 +7,14 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ type: 'Example type',
13
+ size: 'default',
14
+ disabled: false,
15
+ readonly: false,
16
+ required: false,
17
+ 'aria-invalid': false,
18
+ validationState: undefined
19
+ }
20
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './InputGroup.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/InputGroup',
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
+ orientation: 'default'
14
+ }
15
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './InstallPrompt.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/InstallPrompt',
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
+ delay: 42,
13
+ storageKey: 'Example storageKey',
14
+ installLabel: 'Example installLabel',
15
+ dismissLabel: 'Example dismissLabel',
16
+ message: 'Example message'
17
+ }
18
+ }
@@ -0,0 +1,92 @@
1
+ ---
2
+ import {
3
+ createKanbanBoard,
4
+ cardsByColumn,
5
+ visibleAndOverflow,
6
+ kanbanBoardVariants,
7
+ kanbanColumnVariants,
8
+ kanbanColumnHeaderClass,
9
+ kanbanColumnTitleClass,
10
+ kanbanColumnCountClass,
11
+ kanbanAccentBarClass,
12
+ kanbanNoteBarClass,
13
+ kanbanColumnBodyClass,
14
+ kanbanCardVariants,
15
+ type KanbanColumnDef,
16
+ } from '../kanban-board/index.ts'
17
+ import { cn } from '../shared/index.ts'
18
+
19
+ interface KanbanCard {
20
+ /** Must match one of the column ids. */
21
+ columnId: string
22
+ /** Primary label rendered in the card header. */
23
+ title: string
24
+ /** Optional secondary label rendered below the title. */
25
+ subtitle?: string
26
+ }
27
+
28
+ interface Props extends astroHTML.JSX.HTMLAttributes {
29
+ /** Column definitions in left-to-right order. */
30
+ columns: KanbanColumnDef[]
31
+ /** All cards to distribute across columns. */
32
+ cards: KanbanCard[]
33
+ /** Max visible cards per column before overflow is hidden. Defaults to 5. */
34
+ cardCap?: number
35
+ }
36
+
37
+ const { columns, cards, cardCap = 5, class: className, ...rest } = Astro.props
38
+
39
+ const { ariaProps, dataAttributes } = createKanbanBoard()
40
+ const buckets = cardsByColumn(cards, (c) => c.columnId, columns)
41
+ ---
42
+
43
+ <div class={cn(kanbanBoardVariants(), className)} {...ariaProps} {...dataAttributes} {...rest}>
44
+ {
45
+ columns.map((def) => {
46
+ const colCards = buckets.get(def.id) ?? []
47
+ const { visible, overflow } = visibleAndOverflow(colCards, cardCap)
48
+ const count = colCards.length
49
+
50
+ return (
51
+ <div
52
+ class={kanbanColumnVariants()}
53
+ style={def.accent ? `--kanban-accent: ${def.accent}` : undefined}
54
+ >
55
+ {/* Column header */}
56
+ <div class={kanbanColumnHeaderClass}>
57
+ <span class={kanbanColumnTitleClass}>{def.title}</span>
58
+ <span class={kanbanColumnCountClass}>{count}</span>
59
+ </div>
60
+
61
+ {/* Accent bar */}
62
+ <div
63
+ class={kanbanAccentBarClass}
64
+ style={def.accent ? 'background-color: var(--kanban-accent)' : 'background-color: transparent'}
65
+ aria-hidden="true"
66
+ />
67
+
68
+ {/* Note bar */}
69
+ {def.note && <p class={kanbanNoteBarClass}>{def.note}</p>}
70
+
71
+ {/* Cards */}
72
+ <div class={kanbanColumnBodyClass}>
73
+ {visible.map((card) => (
74
+ <div class={kanbanCardVariants({ clickable: 'false' })}>
75
+ <p class="font-medium text-foreground leading-snug">{card.title}</p>
76
+ {card.subtitle && (
77
+ <p class="mt-0.5 text-xs text-muted-foreground">{card.subtitle}</p>
78
+ )}
79
+ </div>
80
+ ))}
81
+
82
+ {overflow > 0 && (
83
+ <p class="mt-1 text-center text-xs text-muted-foreground">
84
+ {`+${overflow} more`}
85
+ </p>
86
+ )}
87
+ </div>
88
+ </div>
89
+ )
90
+ })
91
+ }
92
+ </div>
@@ -0,0 +1 @@
1
+ export {}
@@ -1,7 +1,5 @@
1
1
  import Component from './KeyboardShortcut.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/KeyboardShortcut',
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
+ keys: ['Item 1', 'Item 2'],
13
+ enabled: false,
14
+ preventDefault: false
15
+ }
16
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './LanguageSelector.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/LanguageSelector',
7
5
  component: Component,
@@ -9,4 +7,14 @@ const meta = {
9
7
 
10
8
  export default meta
11
9
 
12
- export const Default = { args: {} }
10
+ export const Default = {
11
+ args: {
12
+ value: 'en',
13
+ options: [
14
+ { label: 'English', value: 'en' },
15
+ { label: 'Spanish', value: 'es' }
16
+ ],
17
+ multiple: false,
18
+ placeholder: 'Select a language'
19
+ }
20
+ }
@@ -1,7 +1,5 @@
1
1
  import Component from './LinkCard.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/LinkCard',
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 './TelemetryScript.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/Logger',
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
+ app: 'Example app',
13
+ env: undefined,
14
+ endpoint: 'Example endpoint',
15
+ enabled: false,
16
+ sampleRate: 42,
17
+ redactKeys: ['Item 1', 'Item 2']
18
+ }
19
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  /**
3
- * TelemetryScript — injects a <script> that initializes the telemetry client
3
+ * TelemetryScript — injects a \<script\> that initializes the telemetry client
4
4
  * on the page. Exposes `window.__rfr_telemetry` for other scripts to call
5
5
  * debug / info / warn / error / fatal / child / startSpan / flush.
6
6
  *
@@ -1,7 +1,5 @@
1
1
  import Component from './MarkdownRenderer.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/MarkdownRenderer',
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
+ content: 'Example content',
13
+ components: 'Example components',
14
+ linkResolver: 'Example linkResolver',
15
+ size: 'default'
16
+ }
17
+ }