@justanarthur/modo-ui-notch 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +75 -2
- package/blocks/activities/agenda/examples.mdx +74 -0
- package/blocks/activities/agenda/index.tsx +441 -0
- package/blocks/activities/clock/examples.mdx +73 -0
- package/blocks/activities/clock/index.tsx +619 -0
- package/blocks/activities/now-playing/examples.mdx +68 -0
- package/blocks/activities/now-playing/index.tsx +411 -0
- package/blocks/activities/weather/examples.mdx +115 -0
- package/blocks/activities/weather/index.tsx +634 -0
- package/blocks/app/expanded-island/examples.mdx +46 -0
- package/blocks/app/expanded-island/index.tsx +143 -0
- package/blocks/app/settings-window/examples.mdx +34 -0
- package/blocks/app/settings-window/index.tsx +375 -0
- 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 +52 -0
- package/blocks/system/system-stats/index.tsx +312 -0
- package/components/indicators/countdown/examples.mdx +25 -0
- package/components/indicators/countdown/index.tsx +83 -0
- package/components/indicators/equalizer/examples.mdx +20 -0
- package/components/indicators/equalizer/index.tsx +116 -0
- package/components/indicators/media-scrubber/examples.mdx +29 -0
- package/components/indicators/media-scrubber/index.tsx +122 -0
- package/components/island/island/examples.mdx +57 -0
- package/components/island/island/index.tsx +415 -0
- package/components/island/island-flash/examples.mdx +52 -0
- package/components/island/island-flash/index.tsx +79 -0
- package/components/island/island-tabs/examples.mdx +53 -0
- package/components/island/island-tabs/index.tsx +285 -0
- package/components/island/widget/examples.mdx +76 -0
- package/components/island/widget/index.tsx +431 -0
- package/dist/blocks/activities/agenda/index.d.ts +2 -0
- package/dist/blocks/activities/agenda/index.js +21 -0
- 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 -0
- package/dist/blocks/activities/now-playing/index.js +24 -0
- 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 +3 -0
- package/dist/blocks/app/expanded-island/index.js +11 -0
- package/dist/blocks/app/settings-window/index.d.ts +2 -0
- package/dist/blocks/app/settings-window/index.js +7 -0
- 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 -0
- package/dist/blocks/system/system-stats/index.js +15 -0
- package/dist/components/indicators/countdown/index.d.ts +2 -0
- package/dist/components/indicators/countdown/index.js +8 -0
- package/dist/components/indicators/equalizer/index.d.ts +2 -0
- package/dist/components/indicators/equalizer/index.js +7 -0
- package/dist/components/indicators/media-scrubber/index.d.ts +2 -0
- package/dist/components/indicators/media-scrubber/index.js +8 -0
- package/dist/components/island/island/index.d.ts +3 -0
- package/dist/components/island/island/index.js +10 -0
- package/dist/components/island/island-flash/index.d.ts +2 -0
- package/dist/components/island/island-flash/index.js +7 -0
- package/dist/components/island/island-tabs/index.d.ts +2 -0
- package/dist/components/island/island-tabs/index.js +9 -0
- package/dist/components/island/widget/index.d.ts +2 -0
- package/dist/components/island/widget/index.js +30 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +195 -0
- package/dist/lib/artwork.d.ts +2 -0
- package/dist/lib/artwork.js +8 -0
- package/dist/lib/clock.d.ts +2 -0
- package/dist/lib/clock.js +14 -0
- package/dist/lib/geometry.d.ts +2 -0
- package/dist/lib/geometry.js +24 -0
- package/dist/lib/island-context.d.ts +3 -0
- package/dist/lib/island-context.js +8 -0
- package/dist/lib/motion.d.ts +21 -0
- package/dist/lib/motion.js +16 -0
- package/dist/shared/chunk-152gpyq3.d.ts +13 -0
- package/dist/shared/chunk-2818esrq.d.ts +140 -0
- package/dist/shared/chunk-2f7zxrbk.js +65 -0
- package/dist/shared/chunk-2m5dz8nf.d.ts +88 -0
- package/dist/shared/chunk-2s4q6mt0.js +27 -0
- package/dist/shared/chunk-3thgcfcq.d.ts +151 -0
- package/dist/shared/chunk-416tsgbc.d.ts +175 -0
- package/dist/shared/chunk-502rmtap.js +54 -0
- package/dist/shared/chunk-52gb3g6r.d.ts +12 -0
- package/dist/shared/chunk-5en5aaj1.d.ts +33 -0
- package/dist/shared/chunk-61t2dfte.js +63 -0
- package/dist/shared/chunk-7fvnrtz4.d.ts +105 -0
- package/dist/shared/chunk-81fpptwp.d.ts +75 -0
- package/dist/shared/chunk-9c7ewvkk.js +381 -0
- package/dist/shared/chunk-9m0xbg5v.js +112 -0
- package/dist/shared/chunk-9xtcv3sy.js +88 -0
- package/dist/shared/chunk-bvtyjcce.d.ts +123 -0
- package/dist/shared/chunk-cc9nwbtf.js +315 -0
- package/dist/shared/chunk-cfzmfnyh.d.ts +63 -0
- package/dist/shared/chunk-d5qm9cps.js +10 -0
- package/dist/shared/chunk-da177e8r.d.ts +114 -0
- package/dist/shared/chunk-fexwzycv.d.ts +36 -0
- package/dist/shared/chunk-gb56m10p.js +39 -0
- package/dist/shared/chunk-gejenfap.d.ts +25 -0
- package/dist/shared/chunk-hrpxbqmx.d.ts +28 -0
- package/dist/shared/chunk-j755a1a5.d.ts +41 -0
- package/dist/shared/chunk-j77cx8dp.js +498 -0
- package/dist/shared/chunk-mt0k6v8x.js +474 -0
- package/dist/shared/chunk-ndf79pv5.js +58 -0
- package/dist/shared/chunk-pfhy5e4q.d.ts +53 -0
- package/dist/shared/chunk-qdzemt2v.js +477 -0
- package/dist/shared/chunk-r471sknr.js +209 -0
- package/dist/shared/chunk-s2jeqqan.js +243 -0
- package/dist/shared/chunk-t0hcxh89.d.ts +124 -0
- package/dist/shared/chunk-w48eyvfr.d.ts +56 -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-y0188bbn.js +331 -0
- package/dist/shared/chunk-ym0xbses.js +518 -0
- package/dist/styles.css +264 -0
- package/index.ts +22 -0
- package/lib/artwork.ts +112 -0
- package/lib/clock.ts +53 -0
- package/lib/geometry.ts +130 -0
- package/lib/island-context.tsx +24 -0
- package/lib/motion.ts +42 -0
- package/mock/activities.tsx +77 -0
- package/mock/artwork.tsx +37 -0
- package/mock/clipboard.tsx +79 -0
- package/mock/clock.tsx +77 -0
- package/mock/data.ts +139 -0
- package/mock/desktop.tsx +83 -0
- package/mock/files.tsx +70 -0
- package/mock/fit.ts +26 -0
- package/mock/island-content.tsx +142 -0
- package/mock/scene.tsx +52 -0
- package/mock/screen.tsx +76 -0
- package/mock/settings.tsx +489 -0
- package/mock/system.ts +46 -0
- package/mock/weather.tsx +105 -0
- package/package.json +122 -4
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AgendaAccess2, AgendaEvent2, AgendaProps2, AgendaLeading2, AgendaTrailing2, AgendaMinimal2, AgendaUpNext2, AgendaStarting2, Agenda2 } from "../../../shared/chunk-wkg17nxs.js";
|
|
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 };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgendaLeading2,
|
|
3
|
+
AgendaTrailing2,
|
|
4
|
+
AgendaMinimal2,
|
|
5
|
+
AgendaUpNext2,
|
|
6
|
+
AgendaStarting2,
|
|
7
|
+
Agenda2,
|
|
8
|
+
agenda_default
|
|
9
|
+
} from "../../../shared/chunk-9c7ewvkk.js";
|
|
10
|
+
import"../../../shared/chunk-gb56m10p.js";
|
|
11
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
12
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
13
|
+
export {
|
|
14
|
+
Agenda2 as Agenda,
|
|
15
|
+
AgendaLeading2 as AgendaLeading,
|
|
16
|
+
AgendaMinimal2 as AgendaMinimal,
|
|
17
|
+
AgendaStarting2 as AgendaStarting,
|
|
18
|
+
AgendaTrailing2 as AgendaTrailing,
|
|
19
|
+
AgendaUpNext2 as AgendaUpNext,
|
|
20
|
+
agenda_default as default
|
|
21
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
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 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NowPlayingArtwork2,
|
|
3
|
+
NowPlayingLeading2,
|
|
4
|
+
NowPlayingTrailing2,
|
|
5
|
+
NowPlayingMinimal2,
|
|
6
|
+
NowPlayingFlash2,
|
|
7
|
+
NowPlaying2,
|
|
8
|
+
now_playing_default
|
|
9
|
+
} from "../../../shared/chunk-xq5hc5gv.js";
|
|
10
|
+
import"../../../shared/chunk-w5h6ay93.js";
|
|
11
|
+
import"../../../shared/chunk-2f7zxrbk.js";
|
|
12
|
+
import"../../../shared/chunk-9xtcv3sy.js";
|
|
13
|
+
import"../../../shared/chunk-gb56m10p.js";
|
|
14
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
15
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
16
|
+
export {
|
|
17
|
+
NowPlaying2 as NowPlaying,
|
|
18
|
+
NowPlayingArtwork2 as NowPlayingArtwork,
|
|
19
|
+
NowPlayingFlash2 as NowPlayingFlash,
|
|
20
|
+
NowPlayingLeading2 as NowPlayingLeading,
|
|
21
|
+
NowPlayingMinimal2 as NowPlayingMinimal,
|
|
22
|
+
NowPlayingTrailing2 as NowPlayingTrailing,
|
|
23
|
+
now_playing_default as default
|
|
24
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ExpandedIslandTab2, ExpandedIslandProps2, ExpandedIsland2 } from "../../../shared/chunk-pfhy5e4q.js";
|
|
2
|
+
import "../../../shared/chunk-w48eyvfr.js";
|
|
3
|
+
export { ExpandedIsland2 as ExpandedIsland, ExpandedIslandProps2 as ExpandedIslandProps, ExpandedIslandTab2 as ExpandedIslandTab, ExpandedIsland2 as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ExpandedIsland2
|
|
3
|
+
} from "../../../shared/chunk-9m0xbg5v.js";
|
|
4
|
+
import"../../../shared/chunk-r471sknr.js";
|
|
5
|
+
import"../../../shared/chunk-2s4q6mt0.js";
|
|
6
|
+
import"../../../shared/chunk-d5qm9cps.js";
|
|
7
|
+
import"../../../shared/chunk-61t2dfte.js";
|
|
8
|
+
export {
|
|
9
|
+
ExpandedIsland2 as ExpandedIsland,
|
|
10
|
+
ExpandedIsland2 as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ScreensPreference2, AppPreferences2, SettingsPlugin2, SettingsPermission2, AboutRow2, SettingsWindowProps2, SettingsWindow2 } from "../../../shared/chunk-2m5dz8nf.js";
|
|
2
|
+
export { AboutRow2 as AboutRow, AppPreferences2 as AppPreferences, ScreensPreference2 as ScreensPreference, SettingsPermission2 as SettingsPermission, SettingsPlugin2 as SettingsPlugin, SettingsWindow2 as SettingsWindow, SettingsWindowProps2 as SettingsWindowProps, SettingsWindow2 as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ClipboardClipKind2, ClipboardClip2, ClipboardHistoryProps2, ClipboardHistoryLeading2, ClipboardHistoryTrailing2, ClipboardHistoryCopied2, ClipboardHistory2 } from "../../../shared/chunk-da177e8r.js";
|
|
2
|
+
export { ClipboardClip2 as ClipboardClip, ClipboardClipKind2 as ClipboardClipKind, ClipboardHistory2 as ClipboardHistory, ClipboardHistoryCopied2 as ClipboardHistoryCopied, ClipboardHistoryLeading2 as ClipboardHistoryLeading, ClipboardHistoryProps2 as ClipboardHistoryProps, ClipboardHistoryTrailing2 as ClipboardHistoryTrailing, ClipboardHistory2 as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ClipboardHistoryLeading2,
|
|
3
|
+
ClipboardHistoryTrailing2,
|
|
4
|
+
ClipboardHistoryCopied2,
|
|
5
|
+
ClipboardHistory2,
|
|
6
|
+
clipboard_default
|
|
7
|
+
} from "../../../shared/chunk-j77cx8dp.js";
|
|
8
|
+
import"../../../shared/chunk-gb56m10p.js";
|
|
9
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
10
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
11
|
+
export {
|
|
12
|
+
ClipboardHistory2 as ClipboardHistory,
|
|
13
|
+
ClipboardHistoryCopied2 as ClipboardHistoryCopied,
|
|
14
|
+
ClipboardHistoryLeading2 as ClipboardHistoryLeading,
|
|
15
|
+
ClipboardHistoryTrailing2 as ClipboardHistoryTrailing,
|
|
16
|
+
clipboard_default as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { RecentFilesSource2, RecentFile2, RecentDownload2, RecentFilesProps2, RecentFilesLeading2, RecentFilesTrailing2, RecentFilesMinimal2, RecentFilesSaved2, RecentFiles2 } from "../../../shared/chunk-t0hcxh89.js";
|
|
2
|
+
export { RecentDownload2 as RecentDownload, RecentFile2 as RecentFile, RecentFiles2 as RecentFiles, RecentFilesLeading2 as RecentFilesLeading, RecentFilesMinimal2 as RecentFilesMinimal, RecentFilesProps2 as RecentFilesProps, RecentFilesSaved2 as RecentFilesSaved, RecentFilesSource2 as RecentFilesSource, RecentFilesTrailing2 as RecentFilesTrailing, RecentFiles2 as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RecentFilesLeading2,
|
|
3
|
+
RecentFilesTrailing2,
|
|
4
|
+
RecentFilesMinimal2,
|
|
5
|
+
RecentFilesSaved2,
|
|
6
|
+
RecentFiles2,
|
|
7
|
+
recent_files_default
|
|
8
|
+
} from "../../../shared/chunk-mt0k6v8x.js";
|
|
9
|
+
import"../../../shared/chunk-gb56m10p.js";
|
|
10
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
11
|
+
import"../../../shared/chunk-ndf79pv5.js";
|
|
12
|
+
export {
|
|
13
|
+
RecentFiles2 as RecentFiles,
|
|
14
|
+
RecentFilesLeading2 as RecentFilesLeading,
|
|
15
|
+
RecentFilesMinimal2 as RecentFilesMinimal,
|
|
16
|
+
RecentFilesSaved2 as RecentFilesSaved,
|
|
17
|
+
RecentFilesTrailing2 as RecentFilesTrailing,
|
|
18
|
+
recent_files_default as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { StatsSample2, StatsBattery2, StatsDisk2, StatsProcess2, StatsHero2, SystemStatsProps2, SystemStatsLeading2, SystemStatsTrailing2, SystemStatsMinimal2, SystemStats2 } from "../../../shared/chunk-7fvnrtz4.js";
|
|
2
|
+
export { StatsBattery2 as StatsBattery, StatsDisk2 as StatsDisk, StatsHero2 as StatsHero, StatsProcess2 as StatsProcess, StatsSample2 as StatsSample, SystemStats2 as SystemStats, SystemStatsLeading2 as SystemStatsLeading, SystemStatsMinimal2 as SystemStatsMinimal, SystemStatsProps2 as SystemStatsProps, SystemStatsTrailing2 as SystemStatsTrailing, SystemStats2 as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SystemStatsLeading2,
|
|
3
|
+
SystemStatsTrailing2,
|
|
4
|
+
SystemStatsMinimal2,
|
|
5
|
+
SystemStats2,
|
|
6
|
+
system_stats_default
|
|
7
|
+
} from "../../../shared/chunk-s2jeqqan.js";
|
|
8
|
+
import"../../../shared/chunk-x7f3g82r.js";
|
|
9
|
+
export {
|
|
10
|
+
SystemStats2 as SystemStats,
|
|
11
|
+
SystemStatsLeading2 as SystemStatsLeading,
|
|
12
|
+
SystemStatsMinimal2 as SystemStatsMinimal,
|
|
13
|
+
SystemStatsTrailing2 as SystemStatsTrailing,
|
|
14
|
+
system_stats_default as default
|
|
15
|
+
};
|