@justanarthur/modo-ui-notch 0.2.0 → 0.3.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/README.md +11 -11
- package/blocks/activities/agenda/examples.mdx +21 -5
- package/blocks/activities/agenda/index.tsx +291 -182
- package/blocks/activities/clock/examples.mdx +73 -0
- package/blocks/activities/clock/index.tsx +619 -0
- package/blocks/activities/now-playing/examples.mdx +32 -13
- package/blocks/activities/now-playing/index.tsx +319 -126
- package/blocks/activities/weather/examples.mdx +115 -0
- package/blocks/activities/weather/index.tsx +634 -0
- package/blocks/app/expanded-island/examples.mdx +8 -7
- package/blocks/app/expanded-island/index.tsx +19 -3
- package/blocks/app/settings-window/examples.mdx +6 -2
- package/blocks/app/settings-window/index.tsx +25 -7
- package/blocks/system/clipboard/examples.mdx +83 -0
- package/blocks/system/clipboard/index.tsx +563 -0
- package/blocks/system/recent-files/examples.mdx +66 -0
- package/blocks/system/recent-files/index.tsx +542 -0
- package/blocks/system/system-stats/examples.mdx +38 -9
- package/blocks/system/system-stats/index.tsx +241 -107
- package/components/indicators/media-scrubber/examples.mdx +8 -0
- package/components/indicators/media-scrubber/index.tsx +37 -13
- package/components/island/island/examples.mdx +4 -4
- package/components/island/island/index.tsx +2 -2
- package/components/island/island-flash/examples.mdx +15 -18
- package/components/island/island-flash/index.tsx +4 -4
- package/components/island/island-tabs/examples.mdx +5 -5
- package/components/island/widget/examples.mdx +76 -0
- package/components/island/widget/index.tsx +431 -0
- package/dist/blocks/activities/agenda/index.d.ts +1 -1
- package/dist/blocks/activities/agenda/index.js +3 -3
- package/dist/blocks/activities/clock/index.d.ts +2 -0
- package/dist/blocks/activities/clock/index.js +25 -0
- package/dist/blocks/activities/now-playing/index.d.ts +3 -2
- package/dist/blocks/activities/now-playing/index.js +5 -3
- package/dist/blocks/activities/weather/index.d.ts +2 -0
- package/dist/blocks/activities/weather/index.js +21 -0
- package/dist/blocks/app/expanded-island/index.d.ts +1 -1
- package/dist/blocks/app/expanded-island/index.js +4 -3
- package/dist/blocks/app/settings-window/index.d.ts +1 -1
- package/dist/blocks/app/settings-window/index.js +1 -1
- package/dist/blocks/system/clipboard/index.d.ts +2 -0
- package/dist/blocks/system/clipboard/index.js +17 -0
- package/dist/blocks/system/recent-files/index.d.ts +2 -0
- package/dist/blocks/system/recent-files/index.js +19 -0
- package/dist/blocks/system/system-stats/index.d.ts +2 -2
- package/dist/blocks/system/system-stats/index.js +4 -1
- package/dist/components/indicators/media-scrubber/index.d.ts +1 -1
- package/dist/components/indicators/media-scrubber/index.js +1 -1
- package/dist/components/island/island/index.d.ts +1 -1
- package/dist/components/island/island/index.js +2 -2
- package/dist/components/island/island-flash/index.d.ts +1 -1
- package/dist/components/island/island-flash/index.js +1 -1
- package/dist/components/island/island-tabs/index.js +2 -2
- package/dist/components/island/widget/index.d.ts +2 -0
- package/dist/components/island/widget/index.js +30 -0
- package/dist/index.d.ts +15 -15
- package/dist/index.js +102 -58
- package/dist/lib/artwork.d.ts +2 -0
- package/dist/lib/artwork.js +8 -0
- package/dist/lib/geometry.js +1 -1
- package/dist/shared/chunk-2818esrq.d.ts +140 -0
- package/dist/shared/{chunk-yngkkxz2.d.ts → chunk-2m5dz8nf.d.ts} +4 -4
- package/dist/shared/chunk-3thgcfcq.d.ts +151 -0
- package/dist/shared/chunk-416tsgbc.d.ts +175 -0
- package/dist/shared/{chunk-zvh0d3qb.js → chunk-61t2dfte.js} +1 -1
- package/dist/shared/chunk-7fvnrtz4.d.ts +105 -0
- package/dist/shared/{chunk-hpsabfsd.d.ts → chunk-81fpptwp.d.ts} +1 -1
- package/dist/shared/chunk-9c7ewvkk.js +381 -0
- package/dist/shared/{chunk-mp1nx0ez.js → chunk-9m0xbg5v.js} +14 -3
- package/dist/shared/{chunk-wwjxs75m.js → chunk-9xtcv3sy.js} +26 -12
- package/dist/shared/chunk-bvtyjcce.d.ts +123 -0
- package/dist/shared/{chunk-s33y1pcq.js → chunk-cc9nwbtf.js} +20 -10
- package/dist/shared/chunk-da177e8r.d.ts +114 -0
- package/dist/shared/{chunk-6c1jbefs.d.ts → chunk-fexwzycv.d.ts} +3 -3
- package/dist/shared/chunk-gejenfap.d.ts +25 -0
- package/dist/shared/{chunk-rr5e0g15.d.ts → chunk-j755a1a5.d.ts} +7 -1
- package/dist/shared/chunk-j77cx8dp.js +498 -0
- package/dist/shared/chunk-mt0k6v8x.js +474 -0
- package/dist/shared/{chunk-78w7qwp0.js → chunk-ndf79pv5.js} +1 -1
- package/dist/shared/{chunk-9nhpg9t8.d.ts → chunk-pfhy5e4q.d.ts} +7 -1
- package/dist/shared/chunk-qdzemt2v.js +477 -0
- package/dist/shared/{chunk-rpfwv3pz.js → chunk-r471sknr.js} +1 -1
- package/dist/shared/chunk-s2jeqqan.js +243 -0
- package/dist/shared/chunk-t0hcxh89.d.ts +124 -0
- package/dist/shared/chunk-w5h6ay93.js +72 -0
- package/dist/shared/chunk-wkg17nxs.d.ts +101 -0
- package/dist/shared/chunk-x7f3g82r.js +285 -0
- package/dist/shared/chunk-xq5hc5gv.js +333 -0
- package/dist/shared/{chunk-sbnrhy5m.js → chunk-y0188bbn.js} +2 -2
- package/dist/shared/chunk-ym0xbses.js +518 -0
- package/dist/styles.css +97 -55
- package/index.ts +7 -6
- package/lib/artwork.ts +112 -0
- package/lib/geometry.ts +1 -1
- package/mock/activities.tsx +9 -32
- package/mock/artwork.tsx +13 -1
- package/mock/clipboard.tsx +79 -0
- package/mock/clock.tsx +77 -0
- package/mock/data.ts +30 -44
- package/mock/files.tsx +70 -0
- package/mock/island-content.tsx +43 -118
- package/mock/screen.tsx +76 -0
- package/mock/settings.tsx +370 -91
- package/mock/system.ts +46 -0
- package/mock/weather.tsx +105 -0
- package/package.json +7 -2
- package/blocks/activities/shelf/examples.mdx +0 -33
- package/blocks/activities/shelf/index.tsx +0 -289
- package/blocks/activities/timer/examples.mdx +0 -52
- package/blocks/activities/timer/index.tsx +0 -292
- package/blocks/system/controls/examples.mdx +0 -34
- package/blocks/system/controls/index.tsx +0 -167
- package/blocks/system/devices/examples.mdx +0 -25
- package/blocks/system/devices/index.tsx +0 -172
- package/blocks/system/power-alert/examples.mdx +0 -32
- package/blocks/system/power-alert/index.tsx +0 -89
- package/components/indicators/battery-glyph/examples.mdx +0 -22
- package/components/indicators/battery-glyph/index.tsx +0 -91
- package/dist/blocks/activities/shelf/index.d.ts +0 -2
- package/dist/blocks/activities/shelf/index.js +0 -14
- package/dist/blocks/activities/timer/index.d.ts +0 -2
- package/dist/blocks/activities/timer/index.js +0 -19
- package/dist/blocks/system/controls/index.d.ts +0 -2
- package/dist/blocks/system/controls/index.js +0 -10
- package/dist/blocks/system/devices/index.d.ts +0 -2
- package/dist/blocks/system/devices/index.js +0 -12
- package/dist/blocks/system/power-alert/index.d.ts +0 -2
- package/dist/blocks/system/power-alert/index.js +0 -9
- package/dist/components/indicators/battery-glyph/index.d.ts +0 -2
- package/dist/components/indicators/battery-glyph/index.js +0 -9
- package/dist/shared/chunk-2qpcsv5h.d.ts +0 -45
- package/dist/shared/chunk-45gytfr1.d.ts +0 -84
- package/dist/shared/chunk-50ffk4r7.d.ts +0 -69
- package/dist/shared/chunk-5w0yck07.d.ts +0 -32
- package/dist/shared/chunk-7hr53mby.js +0 -116
- package/dist/shared/chunk-b8jb1w72.js +0 -145
- package/dist/shared/chunk-cpewy6yg.js +0 -178
- package/dist/shared/chunk-e3e4s4ds.d.ts +0 -77
- package/dist/shared/chunk-enm6td0p.js +0 -280
- package/dist/shared/chunk-fvedaas2.d.ts +0 -33
- package/dist/shared/chunk-gex38j8x.d.ts +0 -82
- package/dist/shared/chunk-hwtxpzg0.js +0 -69
- package/dist/shared/chunk-phb53x1f.js +0 -252
- package/dist/shared/chunk-r8esmjfs.d.ts +0 -42
- package/dist/shared/chunk-rcp1g9ca.js +0 -70
- package/dist/shared/chunk-rx9sphz2.js +0 -266
- package/dist/shared/chunk-xdeek16r.d.ts +0 -58
- package/dist/shared/chunk-xkzjk1tq.js +0 -206
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import IslandTabs from './index'
|
|
2
2
|
import Button from '@justanarthur/modo-ui/components/actions/button'
|
|
3
|
-
import { CalendarDays, Music, Settings
|
|
3
|
+
import { CalendarDays, CloudSun, Music, Settings } from 'lucide-react'
|
|
4
4
|
import { TABS } from '../../../mock/data'
|
|
5
5
|
import { Fit } from '../../../mock/island-content'
|
|
6
6
|
|
|
7
7
|
# Both wings
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Seven tabs balance across the wings, the left one taking the odd one; the pill melts across the gap.
|
|
10
10
|
|
|
11
11
|
<Fit width={720}>
|
|
12
12
|
<div className="dark w-full rounded-box bg-ink px-5 text-foreground">
|
|
@@ -22,11 +22,11 @@ Three tabs balance too, the left wing taking the odd one.
|
|
|
22
22
|
<div className="dark w-full rounded-box bg-ink px-5 text-foreground">
|
|
23
23
|
<IslandTabs
|
|
24
24
|
size="compact"
|
|
25
|
-
defaultValue="
|
|
25
|
+
defaultValue="calendar"
|
|
26
26
|
tabs={[
|
|
27
27
|
{ value: 'now-playing', label: 'Now Playing', icon: Music },
|
|
28
|
-
{ value: 'timer', label: 'Timer', icon: Timer },
|
|
29
28
|
{ value: 'calendar', label: 'Calendar', icon: CalendarDays },
|
|
29
|
+
{ value: 'weather', label: 'Weather', icon: CloudSun },
|
|
30
30
|
]}
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
@@ -48,6 +48,6 @@ The default step: 36px tabs for a roomier panel.
|
|
|
48
48
|
|
|
49
49
|
<Fit width={720}>
|
|
50
50
|
<div className="dark w-full rounded-box bg-ink px-5 text-foreground">
|
|
51
|
-
<IslandTabs tabs={TABS} defaultValue="
|
|
51
|
+
<IslandTabs tabs={TABS} defaultValue="system" />
|
|
52
52
|
</div>
|
|
53
53
|
</Fit>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import Widget from './index'
|
|
2
|
+
import Button from '@justanarthur/modo-ui/components/actions/button'
|
|
3
|
+
import { WidgetIsland } from '../../../mock/island-content'
|
|
4
|
+
import { BatteryCharging, Bell, CalendarDays, Clock, MapPin, Pause, Play, Plug, Sparkles, Zap } from 'lucide-react'
|
|
5
|
+
|
|
6
|
+
# Anatomy
|
|
7
|
+
|
|
8
|
+
A context line, the hero (a number on the display role, a name on the title role), its supporting facts, quiet actions, and a supporting column past the hairline.
|
|
9
|
+
|
|
10
|
+
<WidgetIsland tab="system">
|
|
11
|
+
<Widget
|
|
12
|
+
aside={
|
|
13
|
+
<Widget.Section label="Recent">
|
|
14
|
+
<Widget.Row leading="9:12" color="var(--badge-green)">Plugged in at 41%</Widget.Row>
|
|
15
|
+
<Widget.Row leading="8:03" color="var(--badge-amber)" trailing="Low power">Dropped to 20%</Widget.Row>
|
|
16
|
+
<Widget.Row leading="Yesterday">Fully charged</Widget.Row>
|
|
17
|
+
</Widget.Section>
|
|
18
|
+
}
|
|
19
|
+
>
|
|
20
|
+
<Widget.Header icon={BatteryCharging} trailing={<Widget.Action icon={Bell} label="Notify when full" pressed />}>
|
|
21
|
+
MacBook Pro
|
|
22
|
+
</Widget.Header>
|
|
23
|
+
<Widget.Figure value="82" unit="%" color="var(--badge-green)" />
|
|
24
|
+
<Widget.Title>Charging</Widget.Title>
|
|
25
|
+
<Widget.Meta>
|
|
26
|
+
<Widget.MetaItem icon={Clock}>38 min until full</Widget.MetaItem>
|
|
27
|
+
<Widget.MetaItem icon={Plug}>96 W adapter</Widget.MetaItem>
|
|
28
|
+
</Widget.Meta>
|
|
29
|
+
</Widget>
|
|
30
|
+
</WidgetIsland>
|
|
31
|
+
|
|
32
|
+
# Figure
|
|
33
|
+
|
|
34
|
+
`Widget.Figure` sets a number on the display role with its unit (or a word before it) on the title role, digits tabular; `color` takes a data color.
|
|
35
|
+
|
|
36
|
+
<div className="dark flex flex-wrap items-baseline gap-8 rounded-xl bg-ink p-5 text-foreground">
|
|
37
|
+
<Widget.Figure prefix="in" value="12" unit="min" />
|
|
38
|
+
<Widget.Figure value="Now" unit="35 min left" />
|
|
39
|
+
<Widget.Figure value="4:00" unit="PM" />
|
|
40
|
+
<Widget.Figure value="82" unit="%" color="var(--badge-green)" />
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
# Actions
|
|
44
|
+
|
|
45
|
+
`Widget.Action` is a ghost icon button with a tooltip; `pressed` lights a toggle (in a data `color` if given), `emphasis="primary"` is the widget's main action.
|
|
46
|
+
|
|
47
|
+
<div className="dark flex items-center gap-1 rounded-xl bg-ink p-4 text-foreground">
|
|
48
|
+
<Widget.Action icon={Play} label="Play" emphasis="primary" filled />
|
|
49
|
+
<Widget.Action icon={Pause} label="Pause" />
|
|
50
|
+
<Widget.Action icon={Sparkles} label="Enhance" pressed color="var(--badge-violet)" />
|
|
51
|
+
<Widget.Action icon={Zap} label="Low power" disabled />
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
# Rows and chips
|
|
55
|
+
|
|
56
|
+
`Widget.Row` is the island's list row: a muted figure, a color mark, the title and a muted end; `Widget.Chip` a small label one surface up.
|
|
57
|
+
|
|
58
|
+
<div className="dark flex w-full max-w-90 flex-col rounded-xl bg-ink p-4 text-foreground">
|
|
59
|
+
<Widget.Section label="Later today" trailing={<Widget.Chip color="var(--badge-green)">Team offsite</Widget.Chip>}>
|
|
60
|
+
<Widget.Row leading="12:45" color="var(--badge-orange)">Lunch with Ana</Widget.Row>
|
|
61
|
+
<Widget.Row leading="16:00" color="var(--badge-violet)" trailing={<MapPin size={12} strokeWidth={1.5} />}>Ship the island kit</Widget.Row>
|
|
62
|
+
</Widget.Section>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
# Message
|
|
66
|
+
|
|
67
|
+
The empty, permission and error state, across the wide, short island.
|
|
68
|
+
|
|
69
|
+
<WidgetIsland tab="calendar">
|
|
70
|
+
<Widget.Message
|
|
71
|
+
icon={CalendarDays}
|
|
72
|
+
title="See what's next"
|
|
73
|
+
description="Your next event with a countdown, and the rest of today and tomorrow."
|
|
74
|
+
actions={<Button size="compact">Connect calendar</Button>}
|
|
75
|
+
/>
|
|
76
|
+
</WidgetIsland>
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: the open island's widget vocabulary, one frame and the few
|
|
3
|
+
* parts every widget is built from, so Now Playing, Calendar and the rest
|
|
4
|
+
* read as one system.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use client'
|
|
8
|
+
|
|
9
|
+
import Button from '@justanarthur/modo-ui/components/actions/button'
|
|
10
|
+
import Tooltip from '@justanarthur/modo-ui/components/overlays/tooltip'
|
|
11
|
+
import type { IconComponent } from '@justanarthur/modo-ui/lib/icon-context'
|
|
12
|
+
import { type SizeVariant, useSize } from '@justanarthur/modo-ui/lib/size-context'
|
|
13
|
+
import { SURFACE_BG } from '@justanarthur/modo-ui/lib/surface-classes'
|
|
14
|
+
import { useLift } from '@justanarthur/modo-ui/lib/surface-context'
|
|
15
|
+
import { cn } from '@justanarthur/modo-ui/lib/utils'
|
|
16
|
+
import { SizeScope } from '@justanarthur/modo-ui/primitives/systems/sizes'
|
|
17
|
+
import type { LucideIcon } from 'lucide-react'
|
|
18
|
+
import type { CSSProperties, ReactNode } from 'react'
|
|
19
|
+
|
|
20
|
+
// Literal tables: UnoCSS only generates the classes it can read whole.
|
|
21
|
+
const TITLE: Record<SizeVariant, string> = { default: 'text-title', compact: 'text-title-compact' }
|
|
22
|
+
const SUBTITLE: Record<SizeVariant, string> = { default: 'text-body', compact: 'text-body-compact' }
|
|
23
|
+
const CAPTION: Record<SizeVariant, string> = { default: 'text-caption', compact: 'text-caption-compact' }
|
|
24
|
+
const FIGURE: Record<SizeVariant, string> = { default: 'text-display', compact: 'text-display-compact' }
|
|
25
|
+
const GAP: Record<SizeVariant, string> = { default: 'gap-5', compact: 'gap-4' }
|
|
26
|
+
const ASIDE: Record<SizeVariant, string> = { default: 'pl-5', compact: 'pl-4' }
|
|
27
|
+
const META_ICON: Record<SizeVariant, number> = { default: 14, compact: 12 }
|
|
28
|
+
const ACTION_GLYPH: Record<SizeVariant, number> = { default: 16, compact: 14 }
|
|
29
|
+
const PRIMARY_GLYPH: Record<SizeVariant, number> = { default: 22, compact: 18 }
|
|
30
|
+
|
|
31
|
+
interface WidgetHeaderProps {
|
|
32
|
+
/** The glyph before the label: the source app, the widget's kind. */
|
|
33
|
+
icon?: IconComponent
|
|
34
|
+
/** The context: where it comes from, which day it is. */
|
|
35
|
+
children: ReactNode
|
|
36
|
+
/** Quiet actions at the end of the line, such as `Widget.Action`s. */
|
|
37
|
+
trailing?: ReactNode
|
|
38
|
+
/** Classes for the row. */
|
|
39
|
+
className?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** The context line at the top of a widget: a glyph, where it comes from, and quiet actions at the end. */
|
|
43
|
+
function WidgetHeader({ icon: Icon, children, trailing, className }: WidgetHeaderProps) {
|
|
44
|
+
const size = useSize()
|
|
45
|
+
return (
|
|
46
|
+
<div
|
|
47
|
+
className={cn('flex h-6 min-w-0 items-center gap-1.5 text-muted-foreground', CAPTION[size.variant], className)}
|
|
48
|
+
>
|
|
49
|
+
{Icon && <Icon size={META_ICON[size.variant]} strokeWidth={1.5} className="shrink-0" />}
|
|
50
|
+
<span className="min-w-0 flex-1 truncate">{children}</span>
|
|
51
|
+
{trailing && <span className="-mr-1 flex shrink-0 items-center">{trailing}</span>}
|
|
52
|
+
</div>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface WidgetTitleProps {
|
|
57
|
+
/** The hero's name: a track, an event. */
|
|
58
|
+
children: ReactNode
|
|
59
|
+
/** A mark before it, such as a calendar's color dot. */
|
|
60
|
+
leading?: ReactNode
|
|
61
|
+
/** Classes for the row. */
|
|
62
|
+
className?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** The hero's name, on the title role: one line, truncating. */
|
|
66
|
+
function WidgetTitle({ children, leading, className }: WidgetTitleProps) {
|
|
67
|
+
const size = useSize()
|
|
68
|
+
return (
|
|
69
|
+
<div className={cn('flex min-w-0 items-center gap-2', className)}>
|
|
70
|
+
{leading}
|
|
71
|
+
<span className={cn('min-w-0 truncate weight-semibold text-foreground', TITLE[size.variant])}>{children}</span>
|
|
72
|
+
</div>
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** The line under the title: who, where, what else; muted, one line. */
|
|
77
|
+
function WidgetSubtitle({ children, className }: { children: ReactNode; className?: string }) {
|
|
78
|
+
const size = useSize()
|
|
79
|
+
return (
|
|
80
|
+
<span className={cn('block min-w-0 truncate text-muted-foreground', SUBTITLE[size.variant], className)}>
|
|
81
|
+
{children}
|
|
82
|
+
</span>
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface WidgetFigureProps {
|
|
87
|
+
/** The number, or the one word that stands for it (`Now`). */
|
|
88
|
+
value: ReactNode
|
|
89
|
+
/** The unit after it, set smaller and muted: `min`, `%`. */
|
|
90
|
+
unit?: ReactNode
|
|
91
|
+
/** A word before it, set like the unit: `in`. */
|
|
92
|
+
prefix?: ReactNode
|
|
93
|
+
/** A data color for the value (a calendar's, an artwork's); without one it is the text color. */
|
|
94
|
+
color?: string
|
|
95
|
+
/** Classes for the row. */
|
|
96
|
+
className?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** A widget's hero number on the display role, its unit beside it on the title role, digits tabular. */
|
|
100
|
+
function WidgetFigure({ value, unit, prefix, color, className }: WidgetFigureProps) {
|
|
101
|
+
const size = useSize()
|
|
102
|
+
const small = cn('weight-semibold text-muted-foreground', TITLE[size.variant])
|
|
103
|
+
return (
|
|
104
|
+
<span className={cn('flex min-w-0 items-baseline gap-1.5 whitespace-nowrap tabular-nums', className)}>
|
|
105
|
+
{prefix && <span className={small}>{prefix}</span>}
|
|
106
|
+
<span
|
|
107
|
+
className={cn('weight-bold', FIGURE[size.variant], color ? undefined : 'text-foreground')}
|
|
108
|
+
style={color ? { color } : undefined}
|
|
109
|
+
>
|
|
110
|
+
{value}
|
|
111
|
+
</span>
|
|
112
|
+
{unit && <span className={small}>{unit}</span>}
|
|
113
|
+
</span>
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface WidgetMetaItemProps {
|
|
118
|
+
/** The glyph before it: a clock, a pin, a speaker. */
|
|
119
|
+
icon?: IconComponent
|
|
120
|
+
/** The fact. */
|
|
121
|
+
children: ReactNode
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** One fact of a meta row: a glyph and a few words. */
|
|
125
|
+
function WidgetMetaItem({ icon: Icon, children }: WidgetMetaItemProps) {
|
|
126
|
+
const size = useSize()
|
|
127
|
+
return (
|
|
128
|
+
<span className="flex min-w-0 items-center gap-1 last:shrink-[100]">
|
|
129
|
+
{Icon && <Icon size={META_ICON[size.variant]} strokeWidth={1.5} className="shrink-0" />}
|
|
130
|
+
<span className="min-w-0 truncate">{children}</span>
|
|
131
|
+
</span>
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** Supporting facts in a row, each a glyph and a few words, muted; the last one gives way first. */
|
|
136
|
+
function WidgetMeta({ children, className }: { children: ReactNode; className?: string }) {
|
|
137
|
+
const size = useSize()
|
|
138
|
+
return (
|
|
139
|
+
<div
|
|
140
|
+
className={cn(
|
|
141
|
+
'flex min-w-0 items-center gap-3 whitespace-nowrap text-muted-foreground tabular-nums',
|
|
142
|
+
CAPTION[size.variant],
|
|
143
|
+
className,
|
|
144
|
+
)}
|
|
145
|
+
>
|
|
146
|
+
{children}
|
|
147
|
+
</div>
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface WidgetActionProps {
|
|
152
|
+
/** The glyph: a Lucide icon, or any component taking its props. */
|
|
153
|
+
icon: LucideIcon
|
|
154
|
+
/** What it does: the accessible name and the tooltip. */
|
|
155
|
+
label: string
|
|
156
|
+
/** Called on press. */
|
|
157
|
+
onClick?: () => void
|
|
158
|
+
/** A toggle that is on (shuffle, a like): the glyph in the text color, `aria-pressed`. Leave it out for a plain action. */
|
|
159
|
+
pressed?: boolean
|
|
160
|
+
/** `primary` is the widget's main action (play / pause): a larger glyph in the text color. Defaults to `'default'`. */
|
|
161
|
+
emphasis?: 'default' | 'primary'
|
|
162
|
+
/** Fills the glyph, for solid transport glyphs. Defaults to `false`. */
|
|
163
|
+
filled?: boolean
|
|
164
|
+
/** A data color for the glyph while pressed (the artwork's tint). */
|
|
165
|
+
color?: string
|
|
166
|
+
/** No press. Defaults to `false`. */
|
|
167
|
+
disabled?: boolean
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** A quiet icon button with a tooltip: muted at rest, the text color on hover and while pressed. */
|
|
171
|
+
function WidgetAction({
|
|
172
|
+
icon: Icon,
|
|
173
|
+
label,
|
|
174
|
+
onClick,
|
|
175
|
+
pressed,
|
|
176
|
+
emphasis = 'default',
|
|
177
|
+
filled = false,
|
|
178
|
+
color,
|
|
179
|
+
disabled = false,
|
|
180
|
+
}: WidgetActionProps) {
|
|
181
|
+
const size = useSize()
|
|
182
|
+
const primary = emphasis === 'primary'
|
|
183
|
+
const lit = primary || !!pressed
|
|
184
|
+
return (
|
|
185
|
+
<Tooltip content={label}>
|
|
186
|
+
<Button
|
|
187
|
+
variant="ghost"
|
|
188
|
+
size={size.variant === 'compact' ? 'icon-compact' : 'icon'}
|
|
189
|
+
aria-label={label}
|
|
190
|
+
aria-pressed={pressed}
|
|
191
|
+
disabled={disabled}
|
|
192
|
+
className={cn(lit && 'text-foreground')}
|
|
193
|
+
style={pressed && color ? ({ color } as CSSProperties) : undefined}
|
|
194
|
+
onClick={onClick}
|
|
195
|
+
>
|
|
196
|
+
<Icon
|
|
197
|
+
size={primary ? PRIMARY_GLYPH[size.variant] : ACTION_GLYPH[size.variant]}
|
|
198
|
+
strokeWidth={1.5}
|
|
199
|
+
fill={filled ? 'currentColor' : 'none'}
|
|
200
|
+
strokeLinejoin="round"
|
|
201
|
+
/>
|
|
202
|
+
</Button>
|
|
203
|
+
</Tooltip>
|
|
204
|
+
)
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface WidgetMessageProps {
|
|
208
|
+
/** The glyph in the tile. */
|
|
209
|
+
icon: IconComponent
|
|
210
|
+
/** What's going on, in a few words. */
|
|
211
|
+
title: ReactNode
|
|
212
|
+
/** What to do about it. */
|
|
213
|
+
description?: ReactNode
|
|
214
|
+
/** The way forward: a Button or two. */
|
|
215
|
+
actions?: ReactNode
|
|
216
|
+
/** Classes for the root, which fills the widget. */
|
|
217
|
+
className?: string
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** A widget's empty, permission or error state, laid out across the wide, short island: tile, text, then the action. */
|
|
221
|
+
function WidgetMessage({ icon: Icon, title, description, actions, className }: WidgetMessageProps) {
|
|
222
|
+
const size = useSize()
|
|
223
|
+
const level = useLift(1)
|
|
224
|
+
return (
|
|
225
|
+
<div className={cn('@container flex size-full items-center justify-center', className)}>
|
|
226
|
+
<div className="flex w-full max-w-120 items-center gap-4">
|
|
227
|
+
<span
|
|
228
|
+
className={cn(
|
|
229
|
+
'flex size-12 shrink-0 items-center justify-center rounded-xl text-muted-foreground',
|
|
230
|
+
SURFACE_BG[level],
|
|
231
|
+
)}
|
|
232
|
+
>
|
|
233
|
+
<Icon size={20} strokeWidth={1.5} />
|
|
234
|
+
</span>
|
|
235
|
+
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
|
|
236
|
+
<span className={cn('weight-semibold text-foreground', SUBTITLE[size.variant])}>{title}</span>
|
|
237
|
+
{description && (
|
|
238
|
+
<span className={cn('text-pretty text-muted-foreground', CAPTION[size.variant])}>{description}</span>
|
|
239
|
+
)}
|
|
240
|
+
</div>
|
|
241
|
+
{actions && <div className="flex shrink-0 items-center gap-2 @max-[22rem]:hidden">{actions}</div>}
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
)
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
interface WidgetSectionProps {
|
|
248
|
+
/** The group's name: `Later today`, `Tomorrow`. */
|
|
249
|
+
label: ReactNode
|
|
250
|
+
/** Content at the end of the label's line: chips, a count, a fold toggle. */
|
|
251
|
+
trailing?: ReactNode
|
|
252
|
+
/** The rows. */
|
|
253
|
+
children?: ReactNode
|
|
254
|
+
/** Classes for the section. */
|
|
255
|
+
className?: string
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** A group of rows under a muted caption, the way a list's section reads. */
|
|
259
|
+
function WidgetSection({ label, trailing, children, className }: WidgetSectionProps) {
|
|
260
|
+
const size = useSize()
|
|
261
|
+
return (
|
|
262
|
+
<section className={cn('flex min-w-0 flex-col', className)}>
|
|
263
|
+
<div className={cn('flex h-6 min-w-0 items-center gap-2 text-muted-foreground', CAPTION[size.variant])}>
|
|
264
|
+
<span className="shrink-0">{label}</span>
|
|
265
|
+
{trailing && <span className="flex min-w-0 flex-1 items-center justify-end gap-1.5">{trailing}</span>}
|
|
266
|
+
</div>
|
|
267
|
+
{children}
|
|
268
|
+
</section>
|
|
269
|
+
)
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface WidgetRowProps {
|
|
273
|
+
/** The figure at the start, muted and tabular: a time. */
|
|
274
|
+
leading?: ReactNode
|
|
275
|
+
/** A data color for the mark between the figure and the title: a calendar's. */
|
|
276
|
+
color?: string
|
|
277
|
+
/** The row's text. */
|
|
278
|
+
children: ReactNode
|
|
279
|
+
/** Muted content at the end: a glyph, a place. */
|
|
280
|
+
trailing?: ReactNode
|
|
281
|
+
/** Classes for the row. */
|
|
282
|
+
className?: string
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/** A list row for the island: a muted figure, a color mark, the title, and a muted end; the compact control height. */
|
|
286
|
+
function WidgetRow({ leading, color, children, trailing, className }: WidgetRowProps) {
|
|
287
|
+
const size = useSize()
|
|
288
|
+
return (
|
|
289
|
+
<div className={cn('flex h-7 min-w-0 items-center gap-2.5', SUBTITLE[size.variant], className)}>
|
|
290
|
+
{leading !== undefined && (
|
|
291
|
+
<span
|
|
292
|
+
className={cn('w-15 shrink-0 whitespace-nowrap tabular-nums text-muted-foreground', CAPTION[size.variant])}
|
|
293
|
+
>
|
|
294
|
+
{leading}
|
|
295
|
+
</span>
|
|
296
|
+
)}
|
|
297
|
+
{color && <span aria-hidden className="h-3.5 w-0.75 shrink-0 rounded-full" style={{ backgroundColor: color }} />}
|
|
298
|
+
<span className="min-w-0 flex-1 truncate text-foreground">{children}</span>
|
|
299
|
+
{trailing && (
|
|
300
|
+
<span className={cn('flex shrink-0 items-center gap-1 text-muted-foreground', CAPTION[size.variant])}>
|
|
301
|
+
{trailing}
|
|
302
|
+
</span>
|
|
303
|
+
)}
|
|
304
|
+
</div>
|
|
305
|
+
)
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
interface WidgetChipProps {
|
|
309
|
+
/** A data color for its dot. */
|
|
310
|
+
color?: string
|
|
311
|
+
/** The chip's text. */
|
|
312
|
+
children: ReactNode
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/** A small label on a wash one surface up: an all-day event, a state. */
|
|
316
|
+
function WidgetChip({ color, children }: WidgetChipProps) {
|
|
317
|
+
const level = useLift(1)
|
|
318
|
+
return (
|
|
319
|
+
<span
|
|
320
|
+
className={cn(
|
|
321
|
+
'inline-flex h-5 min-w-0 items-center gap-1.5 rounded-full px-2 text-micro text-foreground',
|
|
322
|
+
SURFACE_BG[level],
|
|
323
|
+
)}
|
|
324
|
+
>
|
|
325
|
+
{color && <span aria-hidden className="size-1.5 shrink-0 rounded-full" style={{ backgroundColor: color }} />}
|
|
326
|
+
<span className="min-w-0 truncate">{children}</span>
|
|
327
|
+
</span>
|
|
328
|
+
)
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
interface WidgetProps {
|
|
332
|
+
/** The hero's picture at the start, as tall as the widget: artwork, a ring. */
|
|
333
|
+
media?: ReactNode
|
|
334
|
+
/** The supporting column at the end, past a hairline: a list, a timeline. It folds away when the widget is narrow. */
|
|
335
|
+
aside?: ReactNode
|
|
336
|
+
/** The main column: header, hero, meta, actions. */
|
|
337
|
+
children: ReactNode
|
|
338
|
+
/** Step on the size ladder for every part inside. Omitted, the widget follows the surrounding SizeProvider. */
|
|
339
|
+
size?: SizeVariant
|
|
340
|
+
/** Classes for the root, which fills the island's content area. */
|
|
341
|
+
className?: string
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The frame every open-island widget is built in: the hero's picture, the
|
|
346
|
+
* main column, and a supporting column past a hairline.
|
|
347
|
+
*
|
|
348
|
+
* One hero per widget, set large: a name on the title role
|
|
349
|
+
* (`Widget.Title`) or a number on the display role (`Widget.Figure`), then
|
|
350
|
+
* one muted line (`Widget.Subtitle`), then the supporting facts as glyph and
|
|
351
|
+
* words (`Widget.Meta`). Context goes on the line above (`Widget.Header`),
|
|
352
|
+
* actions are quiet icon buttons with tooltips (`Widget.Action`), and lists
|
|
353
|
+
* are rows of a muted figure, a color mark and a title (`Widget.Row` under
|
|
354
|
+
* a `Widget.Section`). Color comes from the content (an artwork's tint, a
|
|
355
|
+
* calendar's color, a status hue), never from decoration; depth from one
|
|
356
|
+
* surface step (`Widget.Chip`, `Widget.Message`'s tile), never from boxes.
|
|
357
|
+
* Empty and permission states are a `Widget.Message`, laid out across the
|
|
358
|
+
* wide, short island.
|
|
359
|
+
*
|
|
360
|
+
* The frame fills the island's content area. The aside folds away under
|
|
361
|
+
* 30rem of width, so a narrower panel keeps the hero.
|
|
362
|
+
*
|
|
363
|
+
* @example {@include ./examples.mdx}
|
|
364
|
+
*/
|
|
365
|
+
const Widget = Object.assign(
|
|
366
|
+
function Widget({ media, aside, children, size, className }: WidgetProps) {
|
|
367
|
+
const step = useSize(size)
|
|
368
|
+
return (
|
|
369
|
+
<SizeScope size={size}>
|
|
370
|
+
<div className={cn('@container flex w-full min-h-0 flex-col justify-center', className)}>
|
|
371
|
+
<div className={cn('flex w-full min-h-0 items-stretch', GAP[step.variant])}>
|
|
372
|
+
{media && <div className="flex shrink-0 items-center">{media}</div>}
|
|
373
|
+
<div className="flex min-w-0 flex-1 flex-col justify-center gap-1">{children}</div>
|
|
374
|
+
{aside && (
|
|
375
|
+
<div
|
|
376
|
+
className={cn(
|
|
377
|
+
'flex w-[42%] min-w-0 shrink-0 flex-col justify-center border-l border-border @max-[30rem]:hidden',
|
|
378
|
+
ASIDE[step.variant],
|
|
379
|
+
)}
|
|
380
|
+
>
|
|
381
|
+
{aside}
|
|
382
|
+
</div>
|
|
383
|
+
)}
|
|
384
|
+
</div>
|
|
385
|
+
</div>
|
|
386
|
+
</SizeScope>
|
|
387
|
+
)
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
Header: WidgetHeader,
|
|
391
|
+
Title: WidgetTitle,
|
|
392
|
+
Subtitle: WidgetSubtitle,
|
|
393
|
+
Figure: WidgetFigure,
|
|
394
|
+
Meta: WidgetMeta,
|
|
395
|
+
MetaItem: WidgetMetaItem,
|
|
396
|
+
Action: WidgetAction,
|
|
397
|
+
Message: WidgetMessage,
|
|
398
|
+
Section: WidgetSection,
|
|
399
|
+
Row: WidgetRow,
|
|
400
|
+
Chip: WidgetChip,
|
|
401
|
+
},
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
export default Widget
|
|
405
|
+
|
|
406
|
+
export type {
|
|
407
|
+
WidgetActionProps,
|
|
408
|
+
WidgetChipProps,
|
|
409
|
+
WidgetFigureProps,
|
|
410
|
+
WidgetHeaderProps,
|
|
411
|
+
WidgetMessageProps,
|
|
412
|
+
WidgetMetaItemProps,
|
|
413
|
+
WidgetProps,
|
|
414
|
+
WidgetRowProps,
|
|
415
|
+
WidgetSectionProps,
|
|
416
|
+
WidgetTitleProps,
|
|
417
|
+
}
|
|
418
|
+
export {
|
|
419
|
+
Widget,
|
|
420
|
+
WidgetAction,
|
|
421
|
+
WidgetChip,
|
|
422
|
+
WidgetFigure,
|
|
423
|
+
WidgetHeader,
|
|
424
|
+
WidgetMessage,
|
|
425
|
+
WidgetMeta,
|
|
426
|
+
WidgetMetaItem,
|
|
427
|
+
WidgetRow,
|
|
428
|
+
WidgetSection,
|
|
429
|
+
WidgetSubtitle,
|
|
430
|
+
WidgetTitle,
|
|
431
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AgendaAccess2, AgendaEvent2, AgendaProps2, AgendaLeading2, AgendaTrailing2, AgendaMinimal2, AgendaUpNext2, AgendaStarting2, Agenda2 } from "../../../shared/chunk-
|
|
1
|
+
import { AgendaAccess2, AgendaEvent2, AgendaProps2, AgendaLeading2, AgendaTrailing2, AgendaMinimal2, AgendaUpNext2, AgendaStarting2, Agenda2 } from "../../../shared/chunk-wkg17nxs.js";
|
|
2
2
|
export { Agenda2 as Agenda, AgendaAccess2 as AgendaAccess, AgendaEvent2 as AgendaEvent, AgendaLeading2 as AgendaLeading, AgendaMinimal2 as AgendaMinimal, AgendaProps2 as AgendaProps, AgendaStarting2 as AgendaStarting, AgendaTrailing2 as AgendaTrailing, AgendaUpNext2 as AgendaUpNext, Agenda2 as default };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
AgendaStarting2,
|
|
7
7
|
Agenda2,
|
|
8
8
|
agenda_default
|
|
9
|
-
} from "../../../shared/chunk-
|
|
10
|
-
import"../../../shared/chunk-502rmtap.js";
|
|
9
|
+
} from "../../../shared/chunk-9c7ewvkk.js";
|
|
11
10
|
import"../../../shared/chunk-gb56m10p.js";
|
|
12
|
-
import"../../../shared/chunk-
|
|
11
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
12
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
13
13
|
export {
|
|
14
14
|
Agenda2 as Agenda,
|
|
15
15
|
AgendaLeading2 as AgendaLeading,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PomodoroPhase2, PomodoroSettings2, PomodoroRun2, ClockZone2, ClockProps2, startPomodoro2, advancePomodoro2, resumePomodoro2, ClockLeading2, ClockTrailing2, ClockMinimal2, ClockPhaseDoneProps2, ClockPhaseDone2, Clock2 } from "../../../shared/chunk-bvtyjcce.js";
|
|
2
|
+
export { Clock2 as Clock, ClockLeading2 as ClockLeading, ClockMinimal2 as ClockMinimal, ClockPhaseDone2 as ClockPhaseDone, ClockPhaseDoneProps2 as ClockPhaseDoneProps, ClockProps2 as ClockProps, ClockTrailing2 as ClockTrailing, ClockZone2 as ClockZone, PomodoroPhase2 as PomodoroPhase, PomodoroRun2 as PomodoroRun, PomodoroSettings2 as PomodoroSettings, advancePomodoro2 as advancePomodoro, Clock2 as default, resumePomodoro2 as resumePomodoro, startPomodoro2 as startPomodoro };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
startPomodoro2,
|
|
3
|
+
advancePomodoro2,
|
|
4
|
+
resumePomodoro2,
|
|
5
|
+
ClockLeading2,
|
|
6
|
+
ClockTrailing2,
|
|
7
|
+
ClockMinimal2,
|
|
8
|
+
ClockPhaseDone2,
|
|
9
|
+
Clock2,
|
|
10
|
+
clock_default
|
|
11
|
+
} from "../../../shared/chunk-qdzemt2v.js";
|
|
12
|
+
import"../../../shared/chunk-gb56m10p.js";
|
|
13
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
14
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
15
|
+
export {
|
|
16
|
+
Clock2 as Clock,
|
|
17
|
+
ClockLeading2 as ClockLeading,
|
|
18
|
+
ClockMinimal2 as ClockMinimal,
|
|
19
|
+
ClockPhaseDone2 as ClockPhaseDone,
|
|
20
|
+
ClockTrailing2 as ClockTrailing,
|
|
21
|
+
advancePomodoro2 as advancePomodoro,
|
|
22
|
+
clock_default as default,
|
|
23
|
+
resumePomodoro2 as resumePomodoro,
|
|
24
|
+
startPomodoro2 as startPomodoro
|
|
25
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { NowPlayingTrack2, NowPlayingProps2, NowPlayingArtwork2, NowPlayingLeading2, NowPlayingTrailing2, NowPlayingMinimal2, NowPlayingFlash2, NowPlaying2 } from "../../../shared/chunk-
|
|
2
|
-
|
|
1
|
+
import { NowPlayingOutput2, NowPlayingRepeat2, NowPlayingTrack2, NowPlayingProps2, NowPlayingArtwork2, NowPlayingLeading2, NowPlayingTrailing2, NowPlayingMinimal2, NowPlayingFlash2, NowPlaying2 } from "../../../shared/chunk-2818esrq.js";
|
|
2
|
+
import "../../../shared/chunk-gejenfap.js";
|
|
3
|
+
export { NowPlaying2 as NowPlaying, NowPlayingArtwork2 as NowPlayingArtwork, NowPlayingFlash2 as NowPlayingFlash, NowPlayingLeading2 as NowPlayingLeading, NowPlayingMinimal2 as NowPlayingMinimal, NowPlayingOutput2 as NowPlayingOutput, NowPlayingProps2 as NowPlayingProps, NowPlayingRepeat2 as NowPlayingRepeat, NowPlayingTrack2 as NowPlayingTrack, NowPlayingTrailing2 as NowPlayingTrailing, NowPlaying2 as default };
|
|
@@ -6,11 +6,13 @@ import {
|
|
|
6
6
|
NowPlayingFlash2,
|
|
7
7
|
NowPlaying2,
|
|
8
8
|
now_playing_default
|
|
9
|
-
} from "../../../shared/chunk-
|
|
9
|
+
} from "../../../shared/chunk-xq5hc5gv.js";
|
|
10
|
+
import"../../../shared/chunk-w5h6ay93.js";
|
|
10
11
|
import"../../../shared/chunk-2f7zxrbk.js";
|
|
11
|
-
import"../../../shared/chunk-
|
|
12
|
+
import"../../../shared/chunk-9xtcv3sy.js";
|
|
12
13
|
import"../../../shared/chunk-gb56m10p.js";
|
|
13
|
-
import"../../../shared/chunk-
|
|
14
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
15
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
14
16
|
export {
|
|
15
17
|
NowPlaying2 as NowPlaying,
|
|
16
18
|
NowPlayingArtwork2 as NowPlayingArtwork,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { WeatherCondition2, WeatherUnit2, WeatherAccess2, WeatherStatus2, WeatherNow2, WeatherHour2, WeatherDay2, WeatherProps2, conditionFromCode2, WeatherLeading2, WeatherTrailing2, WeatherMinimal2, WeatherAlertSeverity2, WeatherAlertProps2, WeatherAlert2, Weather2 } from "../../../shared/chunk-3thgcfcq.js";
|
|
2
|
+
export { Weather2 as Weather, WeatherAccess2 as WeatherAccess, WeatherAlert2 as WeatherAlert, WeatherAlertProps2 as WeatherAlertProps, WeatherAlertSeverity2 as WeatherAlertSeverity, WeatherCondition2 as WeatherCondition, WeatherDay2 as WeatherDay, WeatherHour2 as WeatherHour, WeatherLeading2 as WeatherLeading, WeatherMinimal2 as WeatherMinimal, WeatherNow2 as WeatherNow, WeatherProps2 as WeatherProps, WeatherStatus2 as WeatherStatus, WeatherTrailing2 as WeatherTrailing, WeatherUnit2 as WeatherUnit, conditionFromCode2 as conditionFromCode, Weather2 as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
conditionFromCode2,
|
|
3
|
+
WeatherLeading2,
|
|
4
|
+
WeatherTrailing2,
|
|
5
|
+
WeatherMinimal2,
|
|
6
|
+
WeatherAlert2,
|
|
7
|
+
Weather2,
|
|
8
|
+
weather_default
|
|
9
|
+
} from "../../../shared/chunk-ym0xbses.js";
|
|
10
|
+
import"../../../shared/chunk-gb56m10p.js";
|
|
11
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
12
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
13
|
+
export {
|
|
14
|
+
Weather2 as Weather,
|
|
15
|
+
WeatherAlert2 as WeatherAlert,
|
|
16
|
+
WeatherLeading2 as WeatherLeading,
|
|
17
|
+
WeatherMinimal2 as WeatherMinimal,
|
|
18
|
+
WeatherTrailing2 as WeatherTrailing,
|
|
19
|
+
conditionFromCode2 as conditionFromCode,
|
|
20
|
+
weather_default as default
|
|
21
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ExpandedIslandTab2, ExpandedIslandProps2, ExpandedIsland2 } from "../../../shared/chunk-
|
|
1
|
+
import { ExpandedIslandTab2, ExpandedIslandProps2, ExpandedIsland2 } from "../../../shared/chunk-pfhy5e4q.js";
|
|
2
2
|
import "../../../shared/chunk-w48eyvfr.js";
|
|
3
3
|
export { ExpandedIsland2 as ExpandedIsland, ExpandedIslandProps2 as ExpandedIslandProps, ExpandedIslandTab2 as ExpandedIslandTab, ExpandedIsland2 as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExpandedIsland2
|
|
3
|
-
} from "../../../shared/chunk-
|
|
4
|
-
import"../../../shared/chunk-
|
|
3
|
+
} from "../../../shared/chunk-9m0xbg5v.js";
|
|
4
|
+
import"../../../shared/chunk-r471sknr.js";
|
|
5
|
+
import"../../../shared/chunk-2s4q6mt0.js";
|
|
5
6
|
import"../../../shared/chunk-d5qm9cps.js";
|
|
6
|
-
import"../../../shared/chunk-
|
|
7
|
+
import"../../../shared/chunk-61t2dfte.js";
|
|
7
8
|
export {
|
|
8
9
|
ExpandedIsland2 as ExpandedIsland,
|
|
9
10
|
ExpandedIsland2 as default
|