@refraction-ui/astro 0.15.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.
- package/dist/astro-accordion/Accordion.astro +7 -0
- package/dist/astro-accordion/Accordion.stories.ts +10 -4
- package/dist/astro-ai/AIScript.astro +1 -1
- package/dist/astro-analytics/Analytics.stories.ts +5 -3
- package/dist/astro-analytics/AnalyticsScript.astro +1 -1
- package/dist/astro-animated-text/AnimatedText.stories.ts +7 -3
- package/dist/astro-app-shell/AppShell.stories.ts +14 -3
- package/dist/astro-auth/Auth.stories.ts +8 -3
- package/dist/astro-avatar/Avatar.stories.ts +6 -3
- package/dist/astro-avatar-group/AvatarGroup.stories.ts +10 -3
- package/dist/astro-badge/Badge.stories.ts +7 -7
- package/dist/astro-bottom-nav/BottomNav.stories.ts +6 -3
- package/dist/astro-breadcrumbs/Breadcrumbs.stories.ts +9 -3
- package/dist/astro-button/Button.stories.ts +9 -3
- package/dist/astro-calendar/Calendar.stories.ts +9 -3
- package/dist/astro-callout/Callout.stories.ts +6 -3
- package/dist/astro-card/Card.stories.ts +6 -3
- package/dist/astro-card-grid/CardGrid.stories.ts +5 -3
- package/dist/astro-carousel/Carousel.astro +7 -0
- package/dist/astro-carousel/Carousel.stories.ts +10 -4
- package/dist/astro-charts/Charts.stories.ts +9 -4
- package/dist/astro-checkbox/Checkbox.stories.ts +9 -3
- package/dist/astro-code-block/CodeBlock.stories.ts +5 -3
- package/dist/astro-code-editor/CodeEditor.astro +1 -1
- package/dist/astro-code-editor/CodeEditor.stories.ts +10 -3
- package/dist/astro-collapsible/Collapsible.stories.ts +7 -3
- package/dist/astro-command/Command.stories.ts +6 -3
- package/dist/astro-command-input/CommandInput.stories.ts +5 -3
- package/dist/astro-content-protection/ContentProtection.stories.ts +9 -3
- package/dist/astro-conversation/Chat.astro +1 -1
- package/dist/astro-conversation/Conversation.stories.ts +7 -3
- package/dist/astro-data-table/DataTable.astro +1 -1
- package/dist/astro-data-table/DataTable.stories.ts +15 -3
- package/dist/astro-date-picker/DatePicker.stories.ts +11 -3
- package/dist/astro-device-frame/DeviceFrame.stories.ts +7 -3
- package/dist/astro-dialog/Dialog.stories.ts +7 -3
- package/dist/astro-diff-viewer/DiffViewer.stories.ts +19 -3
- package/dist/astro-dropdown-menu/DropdownMenu.stories.ts +6 -3
- package/dist/astro-emoji-picker/EmojiPicker.stories.ts +5 -3
- package/dist/astro-feedback-dialog/FeedbackDialog.stories.ts +6 -3
- package/dist/astro-file-tree/FileTree.stories.ts +5 -3
- package/dist/astro-file-upload/FileUpload.stories.ts +9 -3
- package/dist/astro-floating-reactions/FloatingReactions.astro +1 -1
- package/dist/astro-footer/Footer.stories.ts +7 -3
- package/dist/astro-icon-system/IconSystem.stories.ts +5 -3
- package/dist/astro-inline-editor/InlineEditor.stories.ts +5 -3
- package/dist/astro-input/Input.stories.ts +11 -3
- package/dist/astro-input-group/InputGroup.stories.ts +6 -3
- package/dist/astro-install-prompt/InstallPrompt.stories.ts +9 -3
- package/dist/astro-keyboard-shortcut/KeyboardShortcut.stories.ts +7 -3
- package/dist/astro-language-selector/LanguageSelector.stories.ts +11 -3
- package/dist/astro-link-card/LinkCard.stories.ts +5 -3
- package/dist/astro-logger/Logger.stories.ts +10 -3
- package/dist/astro-logger/TelemetryScript.astro +1 -1
- package/dist/astro-markdown-renderer/MarkdownRenderer.stories.ts +8 -3
- package/dist/astro-mascot/Mascot.astro +274 -0
- package/dist/astro-mascot/Mascot.stories.ts +46 -0
- package/dist/astro-mascot/index.ts +11 -0
- package/dist/astro-mobile-nav/MobileNav.stories.ts +6 -3
- package/dist/astro-navbar/Navbar.stories.ts +16 -3
- package/dist/astro-otp-input/OtpInput.stories.ts +20 -3
- package/dist/astro-pagination/Pagination.stories.ts +3 -3
- package/dist/astro-password-input/PasswordInput.stories.ts +29 -0
- package/dist/astro-payment/Payment.stories.ts +8 -3
- package/dist/astro-popover/Popover.stories.ts +10 -3
- package/dist/astro-popover/PopoverClose.stories.ts +17 -0
- package/dist/astro-popover/PopoverContent.stories.ts +19 -0
- package/dist/astro-popover/PopoverTrigger.stories.ts +17 -0
- package/dist/astro-presence-indicator/PresenceIndicator.stories.ts +14 -3
- package/dist/astro-progress-display/BadgeDisplay.astro +1 -1
- package/dist/astro-progress-display/BadgeDisplay.stories.ts +17 -0
- package/dist/astro-progress-display/ProgressBar.stories.ts +21 -0
- package/dist/astro-progress-display/StatsGrid.astro +1 -1
- package/dist/astro-progress-display/StatsGrid.stories.ts +19 -0
- package/dist/astro-radio/RadioGroup.stories.ts +25 -0
- package/dist/astro-radio/RadioItem.stories.ts +23 -0
- package/dist/astro-reaction-bar/ReactionBar.astro +1 -1
- package/dist/astro-reaction-bar/ReactionBar.stories.ts +10 -3
- package/dist/astro-resizable-layout/ResizableDivider.stories.ts +19 -0
- package/dist/astro-resizable-layout/ResizableLayout.stories.ts +18 -3
- package/dist/astro-resizable-layout/ResizablePane.stories.ts +21 -0
- package/dist/astro-rich-editor/RichEditor.stories.ts +20 -3
- package/dist/astro-search-bar/SearchBar.stories.ts +14 -3
- package/dist/astro-search-bar/SearchResultItem.stories.ts +17 -0
- package/dist/astro-search-bar/SearchResults.stories.ts +17 -0
- package/dist/astro-segmented-control/SegmentedControl.stories.ts +23 -0
- package/dist/astro-segmented-control/SegmentedControlItem.stories.ts +25 -0
- package/dist/astro-select/Select.stories.ts +16 -3
- package/dist/astro-select/SelectContent.stories.ts +17 -0
- package/dist/astro-select/SelectItem.stories.ts +23 -0
- package/dist/astro-select/SelectTrigger.stories.ts +21 -0
- package/dist/astro-separator/Separator.stories.ts +23 -0
- package/dist/astro-sidebar/Sidebar.astro +1 -1
- package/dist/astro-sidebar/Sidebar.stories.ts +14 -3
- package/dist/astro-skeleton/Skeleton.stories.ts +14 -3
- package/dist/astro-skeleton/SkeletonText.stories.ts +19 -0
- package/dist/astro-skip-to-content/SkipToContent.stories.ts +3 -3
- package/dist/astro-slide-viewer/SlideViewer.stories.ts +14 -3
- package/dist/astro-social-auth-button/SocialAuthButton.stories.ts +23 -0
- package/dist/astro-social-auth-button/SocialAuthRow.stories.ts +17 -0
- package/dist/astro-status-indicator/StatusIndicator.stories.ts +14 -3
- package/dist/astro-steps/Steps.stories.ts +3 -3
- package/dist/astro-switch/Switch.stories.ts +14 -3
- package/dist/astro-table-of-contents/TableOfContents.stories.ts +8 -3
- package/dist/astro-tabs/Tabs.stories.ts +12 -3
- package/dist/astro-tabs/TabsContent.stories.ts +21 -0
- package/dist/astro-tabs/TabsList.stories.ts +17 -0
- package/dist/astro-tabs/TabsTrigger.stories.ts +21 -0
- package/dist/astro-textarea/Textarea.stories.ts +22 -3
- package/dist/astro-theme/ThemeScript.stories.ts +23 -0
- package/dist/astro-theme/ThemeToggle.stories.ts +21 -0
- package/dist/astro-thread-view/ThreadView.astro +1 -1
- package/dist/astro-thread-view/ThreadView.stories.ts +10 -3
- package/dist/astro-toast/Toast.stories.ts +16 -3
- package/dist/astro-toast/Toaster.stories.ts +17 -0
- package/dist/astro-tooltip/Tooltip.stories.ts +10 -3
- package/dist/astro-tooltip/TooltipContent.stories.ts +19 -0
- package/dist/astro-tooltip/TooltipTrigger.stories.ts +17 -0
- package/dist/astro-version-selector/VersionSelector.astro +2 -2
- package/dist/astro-version-selector/VersionSelector.stories.ts +12 -3
- package/dist/astro-video-grid/VideoGrid.astro +1 -1
- package/dist/astro-video-player/VideoPlayer.stories.ts +16 -3
- package/dist/astro-voice-pill/VoicePill.stories.ts +24 -3
- package/dist/astro-waveform/Waveform.stories.ts +26 -3
- package/dist/index.ts +1 -0
- package/dist/mascot/index.ts +2 -0
- package/dist/mascot/mascot.styles.ts +33 -0
- package/dist/mascot/mascot.ts +121 -0
- package/package.json +2 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import Component from './
|
|
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 = {
|
|
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
|
|
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 = {
|
|
10
|
+
export const Default = {
|
|
11
|
+
args: {
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
/**
|
|
3
|
-
* AnalyticsScript — injects a
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
15
|
-
|
|
16
|
-
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
10
|
+
export const Default = {
|
|
11
|
+
args: {
|
|
12
|
+
default: '<span>Default Slot Content</span>'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import Component from './
|
|
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 = {
|
|
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 './
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
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 = {
|
|
10
|
+
export const Default = {
|
|
11
|
+
args: {
|
|
12
|
+
config: undefined,
|
|
13
|
+
showConversationList: false,
|
|
14
|
+
currentUserId: 'Example currentUserId'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -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 = {
|
|
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
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import Component from './DatePicker.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/DatePicker',
|
|
7
5
|
component: Component,
|
|
@@ -9,4 +7,14 @@ const meta = {
|
|
|
9
7
|
|
|
10
8
|
export default meta
|
|
11
9
|
|
|
12
|
-
export const Default = {
|
|
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
|
+
showTime: false,
|
|
16
|
+
format: 'YYYY-MM-DD',
|
|
17
|
+
placeholder: 'Select a date',
|
|
18
|
+
disabled: false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import Component from './DeviceFrame.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/DeviceFrame',
|
|
7
5
|
component: Component,
|
|
@@ -9,4 +7,10 @@ const meta = {
|
|
|
9
7
|
|
|
10
8
|
export default meta
|
|
11
9
|
|
|
12
|
-
export const Default = {
|
|
10
|
+
export const Default = {
|
|
11
|
+
args: {
|
|
12
|
+
default: '<span>Default Slot Content</span>',
|
|
13
|
+
device: 'iphone',
|
|
14
|
+
orientation: 'portrait'
|
|
15
|
+
}
|
|
16
|
+
}
|