@clicktap/ui 0.33.0 → 0.34.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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Time } from './Time';
|
|
3
|
+
type Story = StoryObj<typeof Time>;
|
|
4
|
+
/**
|
|
5
|
+
* `<Time>` reads the configured ("server") timezone and the viewer's ("local")
|
|
6
|
+
* timezone from `TimezoneProvider`. In the app the provider is fed by the
|
|
7
|
+
* server-resolved `displayTimezone` (server) and the viewer's cookie (local).
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof Time>;
|
|
10
|
+
export default meta;
|
|
11
|
+
/** Interactive playground — toggle `local`/`showZone` and the Intl format options. */
|
|
12
|
+
export declare const Example: Story;
|
|
13
|
+
/** Default: renders in the configured ("server") timezone — the hydration- & index-safe baseline. */
|
|
14
|
+
export declare const ServerTime: Story;
|
|
15
|
+
/** Opt-in: renders in the viewer's ("client") timezone via the `local` prop. */
|
|
16
|
+
export declare const LocalTime: Story;
|
|
17
|
+
/** Same instant, both modes side by side — the configured zone vs. the viewer's zone. */
|
|
18
|
+
export declare const ServerVsLocal: Story;
|
|
19
|
+
/** Invalid/empty input renders the `fallback` (default `-`). */
|
|
20
|
+
export declare const Fallback: Story;
|