@refraction-ui/astro 0.8.1 → 0.10.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.
- package/dist/analytics/index.ts +5 -0
- package/dist/astro-accordion/Accordion.stories.ts +12 -0
- package/dist/astro-ai/Ai.stories.ts +12 -0
- package/dist/astro-analytics/Analytics.stories.ts +12 -0
- package/dist/astro-animated-text/AnimatedText.stories.ts +12 -0
- package/dist/astro-app-shell/AppShell.stories.ts +12 -0
- package/dist/astro-auth/Auth.stories.ts +12 -0
- package/dist/astro-avatar/Avatar.stories.ts +12 -0
- package/dist/astro-avatar-group/AvatarGroup.stories.ts +12 -0
- package/dist/astro-badge/Badge.stories.ts +16 -0
- package/dist/astro-bottom-nav/BottomNav.stories.ts +12 -0
- package/dist/astro-breadcrumbs/Breadcrumbs.stories.ts +12 -0
- package/dist/astro-button/Button.stories.ts +12 -0
- package/dist/astro-calendar/Calendar.stories.ts +12 -0
- package/dist/astro-callout/Callout.stories.ts +12 -0
- package/dist/astro-card/Card.stories.ts +12 -0
- package/dist/astro-card-grid/CardGrid.stories.ts +12 -0
- package/dist/astro-carousel/Carousel.stories.ts +12 -0
- package/dist/astro-charts/Charts.stories.ts +12 -0
- package/dist/astro-checkbox/Checkbox.stories.ts +12 -0
- package/dist/astro-code-block/CodeBlock.stories.ts +12 -0
- package/dist/astro-code-editor/CodeEditor.stories.ts +12 -0
- package/dist/astro-collapsible/Collapsible.stories.ts +12 -0
- package/dist/astro-command/Command.stories.ts +12 -0
- package/dist/astro-command-input/CommandInput.stories.ts +12 -0
- package/dist/astro-content-protection/ContentProtection.stories.ts +12 -0
- package/dist/astro-conversation/Chat.astro +208 -0
- package/dist/astro-conversation/Conversation.stories.ts +12 -0
- package/dist/astro-conversation/index.ts +29 -0
- package/dist/astro-cookie-consent/CookieConsent.astro +141 -0
- package/dist/astro-cookie-consent/index.ts +12 -0
- package/dist/astro-data-table/DataTable.stories.ts +12 -0
- package/dist/astro-date-picker/DatePicker.stories.ts +12 -0
- package/dist/astro-device-frame/DeviceFrame.stories.ts +12 -0
- package/dist/astro-dialog/Dialog.stories.ts +12 -0
- package/dist/astro-diff-viewer/DiffViewer.stories.ts +12 -0
- package/dist/astro-dropdown-menu/DropdownMenu.stories.ts +12 -0
- package/dist/astro-emoji-picker/EmojiPicker.stories.ts +12 -0
- package/dist/astro-feedback-dialog/FeedbackDialog.stories.ts +12 -0
- package/dist/astro-file-tree/FileTree.stories.ts +12 -0
- package/dist/astro-file-upload/FileUpload.stories.ts +12 -0
- package/dist/astro-footer/Footer.stories.ts +12 -0
- package/dist/astro-icon-system/IconSystem.stories.ts +12 -0
- package/dist/astro-inline-editor/InlineEditor.stories.ts +12 -0
- package/dist/astro-input/Input.stories.ts +12 -0
- package/dist/astro-input-group/InputGroup.stories.ts +12 -0
- package/dist/astro-install-prompt/InstallPrompt.stories.ts +12 -0
- package/dist/astro-keyboard-shortcut/KeyboardShortcut.stories.ts +12 -0
- package/dist/astro-language-selector/LanguageSelector.stories.ts +12 -0
- package/dist/astro-link-card/LinkCard.stories.ts +12 -0
- package/dist/astro-logger/Logger.stories.ts +12 -0
- package/dist/astro-markdown-renderer/MarkdownRenderer.stories.ts +12 -0
- package/dist/astro-mobile-nav/MobileNav.stories.ts +12 -0
- package/dist/astro-navbar/Navbar.stories.ts +12 -0
- package/dist/astro-otp-input/OtpInput.stories.ts +12 -0
- package/dist/astro-pagination/Pagination.stories.ts +12 -0
- package/dist/astro-payment/Payment.stories.ts +12 -0
- package/dist/astro-popover/Popover.stories.ts +12 -0
- package/dist/astro-presence-indicator/PresenceIndicator.stories.ts +12 -0
- package/dist/astro-progress-display/ProgressDisplay.stories.ts +12 -0
- package/dist/astro-radio/Radio.stories.ts +12 -0
- package/dist/astro-reaction-bar/ReactionBar.stories.ts +12 -0
- package/dist/astro-resizable-layout/ResizableLayout.stories.ts +12 -0
- package/dist/astro-rich-editor/RichEditor.stories.ts +12 -0
- package/dist/astro-search-bar/SearchBar.stories.ts +12 -0
- package/dist/astro-select/Select.stories.ts +12 -0
- package/dist/astro-sidebar/Sidebar.stories.ts +12 -0
- package/dist/astro-skeleton/Skeleton.stories.ts +12 -0
- package/dist/astro-skip-to-content/SkipToContent.stories.ts +12 -0
- package/dist/astro-slide-viewer/SlideViewer.stories.ts +12 -0
- package/dist/astro-status-indicator/StatusIndicator.stories.ts +12 -0
- package/dist/astro-steps/Steps.stories.ts +12 -0
- package/dist/astro-switch/Switch.stories.ts +12 -0
- package/dist/astro-table-of-contents/TableOfContents.stories.ts +12 -0
- package/dist/astro-tabs/Tabs.stories.ts +12 -0
- package/dist/astro-textarea/Textarea.stories.ts +12 -0
- package/dist/astro-theme/Theme.stories.ts +12 -0
- package/dist/astro-thread-view/ThreadView.stories.ts +12 -0
- package/dist/astro-toast/Toast.stories.ts +12 -0
- package/dist/astro-tooltip/Tooltip.stories.ts +12 -0
- package/dist/astro-version-selector/VersionSelector.stories.ts +12 -0
- package/dist/astro-video-player/VideoPlayer.stories.ts +12 -0
- package/dist/astro-voice-pill/VoicePill.stories.ts +12 -0
- package/dist/astro-waveform/Waveform.stories.ts +12 -0
- package/dist/conversation/conversation.ts +399 -0
- package/dist/conversation/index.ts +30 -0
- package/dist/conversation/selectors.ts +58 -0
- package/dist/conversation/types.ts +232 -0
- package/dist/cookie-consent/cookie-consent.ts +132 -0
- package/dist/cookie-consent/index.ts +10 -0
- package/dist/cookie-consent/types.ts +72 -0
- package/dist/index.ts +2 -0
- package/package.json +3 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { DEFAULT_CATEGORIES, type CookieCategory } from '../cookie-consent/index.ts'
|
|
3
|
+
import { cn } from '../shared/index.ts'
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
categories?: CookieCategory[]
|
|
7
|
+
title?: string
|
|
8
|
+
description?: string
|
|
9
|
+
policyUrl?: string
|
|
10
|
+
policyLabel?: string
|
|
11
|
+
position?: 'bottom' | 'top'
|
|
12
|
+
version?: string
|
|
13
|
+
storageKey?: string
|
|
14
|
+
class?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
categories = DEFAULT_CATEGORIES,
|
|
19
|
+
title = 'We use cookies',
|
|
20
|
+
description = 'We use cookies to run the site, remember your preferences, and measure traffic. Choose which categories to allow.',
|
|
21
|
+
policyUrl,
|
|
22
|
+
policyLabel = 'Cookie policy',
|
|
23
|
+
position = 'bottom',
|
|
24
|
+
version = '',
|
|
25
|
+
storageKey = 'rfr-cookie-consent',
|
|
26
|
+
class: className,
|
|
27
|
+
} = Astro.props
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
<!-- Hidden by default; the script reveals it only when consent is needed (avoids a flash for returning visitors). -->
|
|
31
|
+
<div
|
|
32
|
+
data-rfr-cookie-consent
|
|
33
|
+
data-version={version}
|
|
34
|
+
data-storage-key={storageKey}
|
|
35
|
+
hidden
|
|
36
|
+
role="dialog"
|
|
37
|
+
aria-label="Cookie consent"
|
|
38
|
+
class={cn('fixed inset-x-0 z-50 p-4', position === 'bottom' ? 'bottom-0' : 'top-0', className)}
|
|
39
|
+
>
|
|
40
|
+
<div class="mx-auto max-w-3xl rounded-xl border border-border bg-background p-4 shadow-lg">
|
|
41
|
+
<h2 class="text-base font-semibold">{title}</h2>
|
|
42
|
+
<p class="mt-1 text-sm text-muted-foreground">{description}</p>
|
|
43
|
+
{policyUrl && (
|
|
44
|
+
<a href={policyUrl} target="_blank" rel="noreferrer" class="mt-1 inline-block text-sm text-muted-foreground underline hover:text-foreground">{policyLabel}</a>
|
|
45
|
+
)}
|
|
46
|
+
|
|
47
|
+
<div data-rfr-cc-prompt class="mt-3 flex flex-wrap items-center gap-2">
|
|
48
|
+
<button type="button" data-rfr-cc-accept class="rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground">Accept all</button>
|
|
49
|
+
<button type="button" data-rfr-cc-reject class="rounded-md border border-border px-3 py-1.5 text-sm hover:bg-accent">Reject all</button>
|
|
50
|
+
<button type="button" data-rfr-cc-manage class="ml-auto rounded-md border border-border px-3 py-1.5 text-sm hover:bg-accent">Manage preferences</button>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div data-rfr-cc-settings hidden class="mt-3 space-y-2">
|
|
54
|
+
{categories.map((cat) => (
|
|
55
|
+
<label class="flex items-start justify-between gap-3 rounded-md border border-border p-3">
|
|
56
|
+
<span class="min-w-0">
|
|
57
|
+
<span class="block text-sm font-medium">{cat.label}{cat.required ? ' (required)' : ''}</span>
|
|
58
|
+
{cat.description && <span class="block text-xs text-muted-foreground">{cat.description}</span>}
|
|
59
|
+
</span>
|
|
60
|
+
<input
|
|
61
|
+
type="checkbox"
|
|
62
|
+
data-rfr-cc-cat={cat.id}
|
|
63
|
+
checked={cat.required}
|
|
64
|
+
disabled={cat.required}
|
|
65
|
+
aria-label={cat.label}
|
|
66
|
+
class="mt-0.5 h-4 w-4"
|
|
67
|
+
/>
|
|
68
|
+
</label>
|
|
69
|
+
))}
|
|
70
|
+
<div class="flex flex-wrap items-center gap-2 pt-1">
|
|
71
|
+
<button type="button" data-rfr-cc-save class="rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground">Save preferences</button>
|
|
72
|
+
<button type="button" data-rfr-cc-accept class="rounded-md border border-border px-3 py-1.5 text-sm hover:bg-accent">Accept all</button>
|
|
73
|
+
<button type="button" data-rfr-cc-back class="ml-auto text-sm text-muted-foreground underline hover:text-foreground">Back</button>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<script>
|
|
80
|
+
document.querySelectorAll<HTMLElement>('[data-rfr-cookie-consent]').forEach((root) => {
|
|
81
|
+
const key = root.dataset.storageKey || 'rfr-cookie-consent'
|
|
82
|
+
const version = root.dataset.version || ''
|
|
83
|
+
const prompt = root.querySelector<HTMLElement>('[data-rfr-cc-prompt]')!
|
|
84
|
+
const settings = root.querySelector<HTMLElement>('[data-rfr-cc-settings]')!
|
|
85
|
+
|
|
86
|
+
const read = () => {
|
|
87
|
+
try {
|
|
88
|
+
const raw = localStorage.getItem(key)
|
|
89
|
+
if (!raw) return null
|
|
90
|
+
const parsed = JSON.parse(raw)
|
|
91
|
+
return parsed.version === version ? parsed : null
|
|
92
|
+
} catch {
|
|
93
|
+
return null
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const persist = (preferences: Record<string, boolean>) => {
|
|
98
|
+
try {
|
|
99
|
+
localStorage.setItem(key, JSON.stringify({ version, preferences }))
|
|
100
|
+
} catch {
|
|
101
|
+
/* ignore */
|
|
102
|
+
}
|
|
103
|
+
root.dispatchEvent(new CustomEvent('rfr:cookie-consent', { detail: preferences, bubbles: true }))
|
|
104
|
+
root.hidden = true
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const collect = (allTrue = false) => {
|
|
108
|
+
const prefs: Record<string, boolean> = {}
|
|
109
|
+
root.querySelectorAll<HTMLInputElement>('[data-rfr-cc-cat]').forEach((el) => {
|
|
110
|
+
const id = el.getAttribute('data-rfr-cc-cat') || ''
|
|
111
|
+
prefs[id] = el.disabled ? true : allTrue ? true : el.checked
|
|
112
|
+
})
|
|
113
|
+
return prefs
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Show the banner only if consent is missing/outdated.
|
|
117
|
+
if (!read()) root.hidden = false
|
|
118
|
+
|
|
119
|
+
root.addEventListener('click', (e) => {
|
|
120
|
+
const t = e.target as HTMLElement
|
|
121
|
+
if (t.closest('[data-rfr-cc-accept]')) return persist(collect(true))
|
|
122
|
+
if (t.closest('[data-rfr-cc-reject]')) {
|
|
123
|
+
const prefs: Record<string, boolean> = {}
|
|
124
|
+
root.querySelectorAll<HTMLInputElement>('[data-rfr-cc-cat]').forEach((el) => {
|
|
125
|
+
prefs[el.getAttribute('data-rfr-cc-cat') || ''] = !!el.disabled
|
|
126
|
+
})
|
|
127
|
+
return persist(prefs)
|
|
128
|
+
}
|
|
129
|
+
if (t.closest('[data-rfr-cc-save]')) return persist(collect())
|
|
130
|
+
if (t.closest('[data-rfr-cc-manage]')) {
|
|
131
|
+
prompt.hidden = true
|
|
132
|
+
settings.hidden = false
|
|
133
|
+
return
|
|
134
|
+
}
|
|
135
|
+
if (t.closest('[data-rfr-cc-back]')) {
|
|
136
|
+
settings.hidden = true
|
|
137
|
+
prompt.hidden = false
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
})
|
|
141
|
+
</script>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as CookieConsent } from './CookieConsent.astro'
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
createCookieConsent,
|
|
5
|
+
DEFAULT_CATEGORIES,
|
|
6
|
+
type CookieCategory,
|
|
7
|
+
type ConsentPreferences,
|
|
8
|
+
type CookieStorage,
|
|
9
|
+
type CookieConsentConfig,
|
|
10
|
+
type CookieConsentState,
|
|
11
|
+
type CookieConsentAPI,
|
|
12
|
+
} from '../cookie-consent/index.ts'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './DataTable.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/DataTable',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './DatePicker.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/DatePicker',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './DeviceFrame.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/DeviceFrame',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Dialog.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Dialog',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './DiffViewer.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/DiffViewer',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './DropdownMenu.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/DropdownMenu',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './EmojiPicker.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/EmojiPicker',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './FeedbackDialog.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/FeedbackDialog',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './astro-file-tree.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/FileTree',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './FileUpload.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/FileUpload',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Footer.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Footer',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './astro-icon-system.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/IconSystem',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './InlineEditor.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/InlineEditor',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Input.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Input',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './InputGroup.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/InputGroup',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './InstallPrompt.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/InstallPrompt',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './KeyboardShortcut.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/KeyboardShortcut',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './LanguageSelector.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/LanguageSelector',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './LinkCard.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/LinkCard',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './TelemetryScript.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Logger',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './MarkdownRenderer.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/MarkdownRenderer',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './MobileNav.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/MobileNav',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Navbar.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Navbar',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './OtpInput.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/OtpInput',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Pagination.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Pagination',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Payment.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Payment',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Popover.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Popover',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './PresenceIndicator.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/PresenceIndicator',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './BadgeDisplay.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/ProgressDisplay',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './RadioGroup.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Radio',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './ReactionBar.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/ReactionBar',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './ResizableLayout.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/ResizableLayout',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './RichEditor.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/RichEditor',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './SearchBar.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/SearchBar',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Select.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Select',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Sidebar.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Sidebar',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from './Skeleton.astro'
|
|
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
|
+
const meta = {
|
|
6
|
+
title: 'Astro/Skeleton',
|
|
7
|
+
component: Component,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
export const Default = { args: {} }
|