@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,2 @@
|
|
|
1
|
+
import { WidgetHeaderProps2, WidgetHeader2, WidgetTitleProps2, WidgetTitle2, WidgetSubtitle2, WidgetFigureProps2, WidgetFigure2, WidgetMetaItemProps2, WidgetMetaItem2, WidgetMeta2, WidgetActionProps2, WidgetAction2, WidgetMessageProps2, WidgetMessage2, WidgetSectionProps2, WidgetSection2, WidgetRowProps2, WidgetRow2, WidgetChipProps2, WidgetChip2, WidgetProps2, Widget2 } from "../../../shared/chunk-416tsgbc.js";
|
|
2
|
+
export { Widget2 as Widget, WidgetAction2 as WidgetAction, WidgetActionProps2 as WidgetActionProps, WidgetChip2 as WidgetChip, WidgetChipProps2 as WidgetChipProps, WidgetFigure2 as WidgetFigure, WidgetFigureProps2 as WidgetFigureProps, WidgetHeader2 as WidgetHeader, WidgetHeaderProps2 as WidgetHeaderProps, WidgetMessage2 as WidgetMessage, WidgetMessageProps2 as WidgetMessageProps, WidgetMeta2 as WidgetMeta, WidgetMetaItem2 as WidgetMetaItem, WidgetMetaItemProps2 as WidgetMetaItemProps, WidgetProps2 as WidgetProps, WidgetRow2 as WidgetRow, WidgetRowProps2 as WidgetRowProps, WidgetSection2 as WidgetSection, WidgetSectionProps2 as WidgetSectionProps, WidgetSubtitle2 as WidgetSubtitle, WidgetTitle2 as WidgetTitle, WidgetTitleProps2 as WidgetTitleProps, Widget2 as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WidgetHeader2,
|
|
3
|
+
WidgetTitle2,
|
|
4
|
+
WidgetSubtitle2,
|
|
5
|
+
WidgetFigure2,
|
|
6
|
+
WidgetMetaItem2,
|
|
7
|
+
WidgetMeta2,
|
|
8
|
+
WidgetAction2,
|
|
9
|
+
WidgetMessage2,
|
|
10
|
+
WidgetSection2,
|
|
11
|
+
WidgetRow2,
|
|
12
|
+
WidgetChip2,
|
|
13
|
+
Widget2,
|
|
14
|
+
widget_default
|
|
15
|
+
} from "../../../shared/chunk-x7f3g82r.js";
|
|
16
|
+
export {
|
|
17
|
+
Widget2 as Widget,
|
|
18
|
+
WidgetAction2 as WidgetAction,
|
|
19
|
+
WidgetChip2 as WidgetChip,
|
|
20
|
+
WidgetFigure2 as WidgetFigure,
|
|
21
|
+
WidgetHeader2 as WidgetHeader,
|
|
22
|
+
WidgetMessage2 as WidgetMessage,
|
|
23
|
+
WidgetMeta2 as WidgetMeta,
|
|
24
|
+
WidgetMetaItem2 as WidgetMetaItem,
|
|
25
|
+
WidgetRow2 as WidgetRow,
|
|
26
|
+
WidgetSection2 as WidgetSection,
|
|
27
|
+
WidgetSubtitle2 as WidgetSubtitle,
|
|
28
|
+
WidgetTitle2 as WidgetTitle,
|
|
29
|
+
widget_default as default
|
|
30
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AgendaAccess2, AgendaEvent2, AgendaProps2, AgendaLeading2, AgendaTrailing2, AgendaMinimal2, AgendaUpNext2, AgendaStarting2, Agenda2 } from "./shared/chunk-wkg17nxs.js";
|
|
2
|
+
import { PomodoroPhase2, PomodoroSettings2, PomodoroRun2, ClockZone2, ClockProps2, startPomodoro2, advancePomodoro2, resumePomodoro2, ClockLeading2, ClockTrailing2, ClockMinimal2, ClockPhaseDoneProps2, ClockPhaseDone2, Clock2 } from "./shared/chunk-bvtyjcce.js";
|
|
3
|
+
import { Artwork2, ShownArtwork2, useStableArtwork2, useArtworkTint2 } from "./shared/chunk-gejenfap.js";
|
|
4
|
+
import { NowPlayingOutput2, NowPlayingRepeat2, NowPlayingTrack2, NowPlayingProps2, NowPlayingArtwork2, NowPlayingLeading2, NowPlayingTrailing2, NowPlayingMinimal2, NowPlayingFlash2, NowPlaying2 } from "./shared/chunk-2818esrq.js";
|
|
5
|
+
import { WeatherCondition2, WeatherUnit2, WeatherAccess2, WeatherStatus2, WeatherNow2, WeatherHour2, WeatherDay2, WeatherProps2, conditionFromCode2, WeatherLeading2, WeatherTrailing2, WeatherMinimal2, WeatherAlertSeverity2, WeatherAlertProps2, WeatherAlert2, Weather2 } from "./shared/chunk-3thgcfcq.js";
|
|
6
|
+
import { IslandTab2, IslandTabsProps2, IslandTabs2 } from "./shared/chunk-w48eyvfr.js";
|
|
7
|
+
import { ExpandedIslandTab2, ExpandedIslandProps2, ExpandedIsland2 } from "./shared/chunk-pfhy5e4q.js";
|
|
8
|
+
import { ScreensPreference2, AppPreferences2, SettingsPlugin2, SettingsPermission2, AboutRow2, SettingsWindowProps2, SettingsWindow2 } from "./shared/chunk-2m5dz8nf.js";
|
|
9
|
+
import { ClipboardClipKind2, ClipboardClip2, ClipboardHistoryProps2, ClipboardHistoryLeading2, ClipboardHistoryTrailing2, ClipboardHistoryCopied2, ClipboardHistory2 } from "./shared/chunk-da177e8r.js";
|
|
10
|
+
import { RecentFilesSource2, RecentFile2, RecentDownload2, RecentFilesProps2, RecentFilesLeading2, RecentFilesTrailing2, RecentFilesMinimal2, RecentFilesSaved2, RecentFiles2 } from "./shared/chunk-t0hcxh89.js";
|
|
11
|
+
import { StatsSample2, StatsBattery2, StatsDisk2, StatsProcess2, StatsHero2, SystemStatsProps2, SystemStatsLeading2, SystemStatsTrailing2, SystemStatsMinimal2, SystemStats2 } from "./shared/chunk-7fvnrtz4.js";
|
|
12
|
+
import { CountdownFormat2, CountdownProps2, Countdown2 } from "./shared/chunk-5en5aaj1.js";
|
|
13
|
+
import { EqualizerProps2, Equalizer2 } from "./shared/chunk-hrpxbqmx.js";
|
|
14
|
+
import { MediaScrubberProps2, MediaScrubber2 } from "./shared/chunk-j755a1a5.js";
|
|
15
|
+
import { IslandState2, ISLAND_STATES2, Size2, IslandGeometry2, Shape2, DEFAULT_NOTCH2, DEFAULT_PANEL2, INSET2, NOTCH_GAP2, slotWidth2, shapeFor2, bubbleFor2, islandPath2, StripLayout2, stripLayout2 } from "./shared/chunk-cfzmfnyh.js";
|
|
16
|
+
import { CollapsedState2, IslandProps2, Island2 } from "./shared/chunk-81fpptwp.js";
|
|
17
|
+
import { IslandFlashTone2, IslandFlashProps2, IslandFlash2 } from "./shared/chunk-fexwzycv.js";
|
|
18
|
+
import { WidgetHeaderProps2, WidgetHeader2, WidgetTitleProps2, WidgetTitle2, WidgetSubtitle2, WidgetFigureProps2, WidgetFigure2, WidgetMetaItemProps2, WidgetMetaItem2, WidgetMeta2, WidgetActionProps2, WidgetAction2, WidgetMessageProps2, WidgetMessage2, WidgetSectionProps2, WidgetSection2, WidgetRowProps2, WidgetRow2, WidgetChipProps2, WidgetChip2, WidgetProps2, Widget2 } from "./shared/chunk-416tsgbc.js";
|
|
19
|
+
import { formatClock2, formatShort2, useEdgeClock2 } from "./shared/chunk-152gpyq3.js";
|
|
20
|
+
import { IslandContextValue2, IslandContext2, useIsland2 } from "./shared/chunk-52gb3g6r.js";
|
|
21
|
+
export { AboutRow2 as AboutRow, 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, AppPreferences2 as AppPreferences, Artwork2 as Artwork, ClipboardClip2 as ClipboardClip, ClipboardClipKind2 as ClipboardClipKind, ClipboardHistory2 as ClipboardHistory, ClipboardHistoryCopied2 as ClipboardHistoryCopied, ClipboardHistoryLeading2 as ClipboardHistoryLeading, ClipboardHistoryProps2 as ClipboardHistoryProps, ClipboardHistoryTrailing2 as ClipboardHistoryTrailing, Clock2 as Clock, ClockLeading2 as ClockLeading, ClockMinimal2 as ClockMinimal, ClockPhaseDone2 as ClockPhaseDone, ClockPhaseDoneProps2 as ClockPhaseDoneProps, ClockProps2 as ClockProps, ClockTrailing2 as ClockTrailing, ClockZone2 as ClockZone, CollapsedState2 as CollapsedState, Countdown2 as Countdown, CountdownFormat2 as CountdownFormat, CountdownProps2 as CountdownProps, DEFAULT_NOTCH2 as DEFAULT_NOTCH, DEFAULT_PANEL2 as DEFAULT_PANEL, Equalizer2 as Equalizer, EqualizerProps2 as EqualizerProps, ExpandedIsland2 as ExpandedIsland, ExpandedIslandProps2 as ExpandedIslandProps, ExpandedIslandTab2 as ExpandedIslandTab, INSET2 as INSET, ISLAND_STATES2 as ISLAND_STATES, Island2 as Island, IslandContext2 as IslandContext, IslandContextValue2 as IslandContextValue, IslandFlash2 as IslandFlash, IslandFlashProps2 as IslandFlashProps, IslandFlashTone2 as IslandFlashTone, IslandGeometry2 as IslandGeometry, IslandProps2 as IslandProps, IslandState2 as IslandState, IslandTab2 as IslandTab, IslandTabs2 as IslandTabs, IslandTabsProps2 as IslandTabsProps, MediaScrubber2 as MediaScrubber, MediaScrubberProps2 as MediaScrubberProps, NOTCH_GAP2 as NOTCH_GAP, 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, PomodoroPhase2 as PomodoroPhase, PomodoroRun2 as PomodoroRun, PomodoroSettings2 as PomodoroSettings, 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, ScreensPreference2 as ScreensPreference, SettingsPermission2 as SettingsPermission, SettingsPlugin2 as SettingsPlugin, SettingsWindow2 as SettingsWindow, SettingsWindowProps2 as SettingsWindowProps, Shape2 as Shape, ShownArtwork2 as ShownArtwork, Size2 as Size, StatsBattery2 as StatsBattery, StatsDisk2 as StatsDisk, StatsHero2 as StatsHero, StatsProcess2 as StatsProcess, StatsSample2 as StatsSample, StripLayout2 as StripLayout, SystemStats2 as SystemStats, SystemStatsLeading2 as SystemStatsLeading, SystemStatsMinimal2 as SystemStatsMinimal, SystemStatsProps2 as SystemStatsProps, SystemStatsTrailing2 as SystemStatsTrailing, 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, Widget2 as Widget, WidgetAction2 as WidgetAction, WidgetActionProps2 as WidgetActionProps, WidgetChip2 as WidgetChip, WidgetChipProps2 as WidgetChipProps, WidgetFigure2 as WidgetFigure, WidgetFigureProps2 as WidgetFigureProps, WidgetHeader2 as WidgetHeader, WidgetHeaderProps2 as WidgetHeaderProps, WidgetMessage2 as WidgetMessage, WidgetMessageProps2 as WidgetMessageProps, WidgetMeta2 as WidgetMeta, WidgetMetaItem2 as WidgetMetaItem, WidgetMetaItemProps2 as WidgetMetaItemProps, WidgetProps2 as WidgetProps, WidgetRow2 as WidgetRow, WidgetRowProps2 as WidgetRowProps, WidgetSection2 as WidgetSection, WidgetSectionProps2 as WidgetSectionProps, WidgetSubtitle2 as WidgetSubtitle, WidgetTitle2 as WidgetTitle, WidgetTitleProps2 as WidgetTitleProps, advancePomodoro2 as advancePomodoro, bubbleFor2 as bubbleFor, conditionFromCode2 as conditionFromCode, formatClock2 as formatClock, formatShort2 as formatShort, islandPath2 as islandPath, resumePomodoro2 as resumePomodoro, shapeFor2 as shapeFor, slotWidth2 as slotWidth, startPomodoro2 as startPomodoro, stripLayout2 as stripLayout, useArtworkTint2 as useArtworkTint, useEdgeClock2 as useEdgeClock, useIsland2 as useIsland, useStableArtwork2 as useStableArtwork };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IslandFlash2
|
|
3
|
+
} from "./shared/chunk-ndf79pv5.js";
|
|
4
|
+
import {
|
|
5
|
+
WidgetHeader2,
|
|
6
|
+
WidgetTitle2,
|
|
7
|
+
WidgetSubtitle2,
|
|
8
|
+
WidgetFigure2,
|
|
9
|
+
WidgetMetaItem2,
|
|
10
|
+
WidgetMeta2,
|
|
11
|
+
WidgetAction2,
|
|
12
|
+
WidgetMessage2,
|
|
13
|
+
WidgetSection2,
|
|
14
|
+
WidgetRow2,
|
|
15
|
+
WidgetChip2,
|
|
16
|
+
Widget2
|
|
17
|
+
} from "./shared/chunk-x7f3g82r.js";
|
|
18
|
+
import {
|
|
19
|
+
formatClock2,
|
|
20
|
+
formatShort2,
|
|
21
|
+
useEdgeClock2
|
|
22
|
+
} from "./shared/chunk-gb56m10p.js";
|
|
23
|
+
import {
|
|
24
|
+
AgendaLeading2,
|
|
25
|
+
AgendaTrailing2,
|
|
26
|
+
AgendaMinimal2,
|
|
27
|
+
AgendaUpNext2,
|
|
28
|
+
AgendaStarting2,
|
|
29
|
+
Agenda2
|
|
30
|
+
} from "./shared/chunk-9c7ewvkk.js";
|
|
31
|
+
import {
|
|
32
|
+
startPomodoro2,
|
|
33
|
+
advancePomodoro2,
|
|
34
|
+
resumePomodoro2,
|
|
35
|
+
ClockLeading2,
|
|
36
|
+
ClockTrailing2,
|
|
37
|
+
ClockMinimal2,
|
|
38
|
+
ClockPhaseDone2,
|
|
39
|
+
Clock2
|
|
40
|
+
} from "./shared/chunk-qdzemt2v.js";
|
|
41
|
+
import {
|
|
42
|
+
Equalizer2
|
|
43
|
+
} from "./shared/chunk-2f7zxrbk.js";
|
|
44
|
+
import {
|
|
45
|
+
MediaScrubber2
|
|
46
|
+
} from "./shared/chunk-9xtcv3sy.js";
|
|
47
|
+
import {
|
|
48
|
+
useStableArtwork2,
|
|
49
|
+
useArtworkTint2
|
|
50
|
+
} from "./shared/chunk-w5h6ay93.js";
|
|
51
|
+
import {
|
|
52
|
+
NowPlayingArtwork2,
|
|
53
|
+
NowPlayingLeading2,
|
|
54
|
+
NowPlayingTrailing2,
|
|
55
|
+
NowPlayingMinimal2,
|
|
56
|
+
NowPlayingFlash2,
|
|
57
|
+
NowPlaying2
|
|
58
|
+
} from "./shared/chunk-xq5hc5gv.js";
|
|
59
|
+
import {
|
|
60
|
+
conditionFromCode2,
|
|
61
|
+
WeatherLeading2,
|
|
62
|
+
WeatherTrailing2,
|
|
63
|
+
WeatherMinimal2,
|
|
64
|
+
WeatherAlert2,
|
|
65
|
+
Weather2
|
|
66
|
+
} from "./shared/chunk-ym0xbses.js";
|
|
67
|
+
import {
|
|
68
|
+
ISLAND_STATES2,
|
|
69
|
+
DEFAULT_NOTCH2,
|
|
70
|
+
DEFAULT_PANEL2,
|
|
71
|
+
INSET2,
|
|
72
|
+
NOTCH_GAP2,
|
|
73
|
+
slotWidth2,
|
|
74
|
+
shapeFor2,
|
|
75
|
+
bubbleFor2,
|
|
76
|
+
islandPath2,
|
|
77
|
+
stripLayout2
|
|
78
|
+
} from "./shared/chunk-61t2dfte.js";
|
|
79
|
+
import {
|
|
80
|
+
IslandContext2,
|
|
81
|
+
useIsland2
|
|
82
|
+
} from "./shared/chunk-d5qm9cps.js";
|
|
83
|
+
import {
|
|
84
|
+
IslandTabs2
|
|
85
|
+
} from "./shared/chunk-r471sknr.js";
|
|
86
|
+
import"./shared/chunk-2s4q6mt0.js";
|
|
87
|
+
import {
|
|
88
|
+
ExpandedIsland2
|
|
89
|
+
} from "./shared/chunk-9m0xbg5v.js";
|
|
90
|
+
import {
|
|
91
|
+
SettingsWindow2
|
|
92
|
+
} from "./shared/chunk-cc9nwbtf.js";
|
|
93
|
+
import {
|
|
94
|
+
ClipboardHistoryLeading2,
|
|
95
|
+
ClipboardHistoryTrailing2,
|
|
96
|
+
ClipboardHistoryCopied2,
|
|
97
|
+
ClipboardHistory2
|
|
98
|
+
} from "./shared/chunk-j77cx8dp.js";
|
|
99
|
+
import {
|
|
100
|
+
RecentFilesLeading2,
|
|
101
|
+
RecentFilesTrailing2,
|
|
102
|
+
RecentFilesMinimal2,
|
|
103
|
+
RecentFilesSaved2,
|
|
104
|
+
RecentFiles2
|
|
105
|
+
} from "./shared/chunk-mt0k6v8x.js";
|
|
106
|
+
import {
|
|
107
|
+
SystemStatsLeading2,
|
|
108
|
+
SystemStatsTrailing2,
|
|
109
|
+
SystemStatsMinimal2,
|
|
110
|
+
SystemStats2
|
|
111
|
+
} from "./shared/chunk-s2jeqqan.js";
|
|
112
|
+
import {
|
|
113
|
+
Countdown2
|
|
114
|
+
} from "./shared/chunk-502rmtap.js";
|
|
115
|
+
import {
|
|
116
|
+
Island2
|
|
117
|
+
} from "./shared/chunk-y0188bbn.js";
|
|
118
|
+
export {
|
|
119
|
+
Agenda2 as Agenda,
|
|
120
|
+
AgendaLeading2 as AgendaLeading,
|
|
121
|
+
AgendaMinimal2 as AgendaMinimal,
|
|
122
|
+
AgendaStarting2 as AgendaStarting,
|
|
123
|
+
AgendaTrailing2 as AgendaTrailing,
|
|
124
|
+
AgendaUpNext2 as AgendaUpNext,
|
|
125
|
+
ClipboardHistory2 as ClipboardHistory,
|
|
126
|
+
ClipboardHistoryCopied2 as ClipboardHistoryCopied,
|
|
127
|
+
ClipboardHistoryLeading2 as ClipboardHistoryLeading,
|
|
128
|
+
ClipboardHistoryTrailing2 as ClipboardHistoryTrailing,
|
|
129
|
+
Clock2 as Clock,
|
|
130
|
+
ClockLeading2 as ClockLeading,
|
|
131
|
+
ClockMinimal2 as ClockMinimal,
|
|
132
|
+
ClockPhaseDone2 as ClockPhaseDone,
|
|
133
|
+
ClockTrailing2 as ClockTrailing,
|
|
134
|
+
Countdown2 as Countdown,
|
|
135
|
+
DEFAULT_NOTCH2 as DEFAULT_NOTCH,
|
|
136
|
+
DEFAULT_PANEL2 as DEFAULT_PANEL,
|
|
137
|
+
Equalizer2 as Equalizer,
|
|
138
|
+
ExpandedIsland2 as ExpandedIsland,
|
|
139
|
+
INSET2 as INSET,
|
|
140
|
+
ISLAND_STATES2 as ISLAND_STATES,
|
|
141
|
+
Island2 as Island,
|
|
142
|
+
IslandContext2 as IslandContext,
|
|
143
|
+
IslandFlash2 as IslandFlash,
|
|
144
|
+
IslandTabs2 as IslandTabs,
|
|
145
|
+
MediaScrubber2 as MediaScrubber,
|
|
146
|
+
NOTCH_GAP2 as NOTCH_GAP,
|
|
147
|
+
NowPlaying2 as NowPlaying,
|
|
148
|
+
NowPlayingArtwork2 as NowPlayingArtwork,
|
|
149
|
+
NowPlayingFlash2 as NowPlayingFlash,
|
|
150
|
+
NowPlayingLeading2 as NowPlayingLeading,
|
|
151
|
+
NowPlayingMinimal2 as NowPlayingMinimal,
|
|
152
|
+
NowPlayingTrailing2 as NowPlayingTrailing,
|
|
153
|
+
RecentFiles2 as RecentFiles,
|
|
154
|
+
RecentFilesLeading2 as RecentFilesLeading,
|
|
155
|
+
RecentFilesMinimal2 as RecentFilesMinimal,
|
|
156
|
+
RecentFilesSaved2 as RecentFilesSaved,
|
|
157
|
+
RecentFilesTrailing2 as RecentFilesTrailing,
|
|
158
|
+
SettingsWindow2 as SettingsWindow,
|
|
159
|
+
SystemStats2 as SystemStats,
|
|
160
|
+
SystemStatsLeading2 as SystemStatsLeading,
|
|
161
|
+
SystemStatsMinimal2 as SystemStatsMinimal,
|
|
162
|
+
SystemStatsTrailing2 as SystemStatsTrailing,
|
|
163
|
+
Weather2 as Weather,
|
|
164
|
+
WeatherAlert2 as WeatherAlert,
|
|
165
|
+
WeatherLeading2 as WeatherLeading,
|
|
166
|
+
WeatherMinimal2 as WeatherMinimal,
|
|
167
|
+
WeatherTrailing2 as WeatherTrailing,
|
|
168
|
+
Widget2 as Widget,
|
|
169
|
+
WidgetAction2 as WidgetAction,
|
|
170
|
+
WidgetChip2 as WidgetChip,
|
|
171
|
+
WidgetFigure2 as WidgetFigure,
|
|
172
|
+
WidgetHeader2 as WidgetHeader,
|
|
173
|
+
WidgetMessage2 as WidgetMessage,
|
|
174
|
+
WidgetMeta2 as WidgetMeta,
|
|
175
|
+
WidgetMetaItem2 as WidgetMetaItem,
|
|
176
|
+
WidgetRow2 as WidgetRow,
|
|
177
|
+
WidgetSection2 as WidgetSection,
|
|
178
|
+
WidgetSubtitle2 as WidgetSubtitle,
|
|
179
|
+
WidgetTitle2 as WidgetTitle,
|
|
180
|
+
advancePomodoro2 as advancePomodoro,
|
|
181
|
+
bubbleFor2 as bubbleFor,
|
|
182
|
+
conditionFromCode2 as conditionFromCode,
|
|
183
|
+
formatClock2 as formatClock,
|
|
184
|
+
formatShort2 as formatShort,
|
|
185
|
+
islandPath2 as islandPath,
|
|
186
|
+
resumePomodoro2 as resumePomodoro,
|
|
187
|
+
shapeFor2 as shapeFor,
|
|
188
|
+
slotWidth2 as slotWidth,
|
|
189
|
+
startPomodoro2 as startPomodoro,
|
|
190
|
+
stripLayout2 as stripLayout,
|
|
191
|
+
useArtworkTint2 as useArtworkTint,
|
|
192
|
+
useEdgeClock2 as useEdgeClock,
|
|
193
|
+
useIsland2 as useIsland,
|
|
194
|
+
useStableArtwork2 as useStableArtwork
|
|
195
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SECOND2,
|
|
3
|
+
MINUTE2,
|
|
4
|
+
formatClock2,
|
|
5
|
+
formatShort2,
|
|
6
|
+
useEdgeClock2
|
|
7
|
+
} from "../shared/chunk-gb56m10p.js";
|
|
8
|
+
export {
|
|
9
|
+
MINUTE2 as MINUTE,
|
|
10
|
+
SECOND2 as SECOND,
|
|
11
|
+
formatClock2 as formatClock,
|
|
12
|
+
formatShort2 as formatShort,
|
|
13
|
+
useEdgeClock2 as useEdgeClock
|
|
14
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { IslandState2, ISLAND_STATES2, Size2, IslandGeometry2, Shape2, DEFAULT_NOTCH2, DEFAULT_PANEL2, INSET2, NOTCH_GAP2, slotWidth2, shapeFor2, bubbleFor2, islandPath2, StripLayout2, stripLayout2 } from "../shared/chunk-cfzmfnyh.js";
|
|
2
|
+
export { DEFAULT_NOTCH2 as DEFAULT_NOTCH, DEFAULT_PANEL2 as DEFAULT_PANEL, INSET2 as INSET, ISLAND_STATES2 as ISLAND_STATES, IslandGeometry2 as IslandGeometry, IslandState2 as IslandState, NOTCH_GAP2 as NOTCH_GAP, Shape2 as Shape, Size2 as Size, StripLayout2 as StripLayout, bubbleFor2 as bubbleFor, islandPath2 as islandPath, shapeFor2 as shapeFor, slotWidth2 as slotWidth, stripLayout2 as stripLayout };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ISLAND_STATES2,
|
|
3
|
+
DEFAULT_NOTCH2,
|
|
4
|
+
DEFAULT_PANEL2,
|
|
5
|
+
INSET2,
|
|
6
|
+
NOTCH_GAP2,
|
|
7
|
+
slotWidth2,
|
|
8
|
+
shapeFor2,
|
|
9
|
+
bubbleFor2,
|
|
10
|
+
islandPath2,
|
|
11
|
+
stripLayout2
|
|
12
|
+
} from "../shared/chunk-61t2dfte.js";
|
|
13
|
+
export {
|
|
14
|
+
DEFAULT_NOTCH2 as DEFAULT_NOTCH,
|
|
15
|
+
DEFAULT_PANEL2 as DEFAULT_PANEL,
|
|
16
|
+
INSET2 as INSET,
|
|
17
|
+
ISLAND_STATES2 as ISLAND_STATES,
|
|
18
|
+
NOTCH_GAP2 as NOTCH_GAP,
|
|
19
|
+
bubbleFor2 as bubbleFor,
|
|
20
|
+
islandPath2 as islandPath,
|
|
21
|
+
shapeFor2 as shapeFor,
|
|
22
|
+
slotWidth2 as slotWidth,
|
|
23
|
+
stripLayout2 as stripLayout
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IslandState2 } from "../shared/chunk-cfzmfnyh.js";
|
|
2
|
+
import { Transition } from "motion/react";
|
|
3
|
+
/** The bigger the move, the slower the tier: grow on the target's spring, shrink on the source's exit tween. */
|
|
4
|
+
declare function shapeTransition(from: IslandState2, to: IslandState2): Transition;
|
|
5
|
+
declare const bubbleTransition: (detaching: boolean) => Transition;
|
|
6
|
+
declare const contentShown: {
|
|
7
|
+
opacity: number;
|
|
8
|
+
scale: number;
|
|
9
|
+
filter: string;
|
|
10
|
+
transitionEnd: {
|
|
11
|
+
filter: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
declare const contentHidden: {
|
|
15
|
+
opacity: number;
|
|
16
|
+
scale: number;
|
|
17
|
+
filter: string;
|
|
18
|
+
};
|
|
19
|
+
declare const contentEnter: Transition;
|
|
20
|
+
declare const contentLeave: Transition;
|
|
21
|
+
export { bubbleTransition, contentEnter, contentHidden, contentLeave, contentShown, shapeTransition };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
shapeTransition2,
|
|
3
|
+
bubbleTransition2,
|
|
4
|
+
contentShown2,
|
|
5
|
+
contentHidden2,
|
|
6
|
+
contentEnter2,
|
|
7
|
+
contentLeave2
|
|
8
|
+
} from "../shared/chunk-2s4q6mt0.js";
|
|
9
|
+
export {
|
|
10
|
+
bubbleTransition2 as bubbleTransition,
|
|
11
|
+
contentEnter2 as contentEnter,
|
|
12
|
+
contentHidden2 as contentHidden,
|
|
13
|
+
contentLeave2 as contentLeave,
|
|
14
|
+
contentShown2 as contentShown,
|
|
15
|
+
shapeTransition2 as shapeTransition
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const SECOND2 = 1e3;
|
|
2
|
+
declare const MINUTE2: number;
|
|
3
|
+
/** Seconds as `m:ss`, or `h:mm:ss` from an hour. */
|
|
4
|
+
declare function formatClock2(seconds: number): string;
|
|
5
|
+
/** Seconds as the one largest unit, rounded up: `"45s"`, `"4m"`, `"2h"`. */
|
|
6
|
+
declare function formatShort2(seconds: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* The time now, re-read once per `unit` ms on the unit's edge counted from
|
|
9
|
+
* `anchor` (a countdown's end, a track's start), never in between. Stops
|
|
10
|
+
* while `running` is false.
|
|
11
|
+
*/
|
|
12
|
+
declare function useEdgeClock2(anchor: number, running: boolean, unit?: number): number;
|
|
13
|
+
export { SECOND2, MINUTE2, formatClock2, formatShort2, useEdgeClock2 };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { Artwork2 } from "./chunk-gejenfap.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { JSX as JSX_1kxb } from "react";
|
|
4
|
+
type NowPlayingOutput2 = "built-in" | "headphones" | "speaker" | "airplay";
|
|
5
|
+
type NowPlayingRepeat2 = "off" | "all" | "one";
|
|
6
|
+
interface NowPlayingTrack2 {
|
|
7
|
+
/** What tells two tracks apart; defaults to the title, artist and album. */
|
|
8
|
+
id?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
artist?: string;
|
|
11
|
+
album?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The artwork: an image URL, or any element. `null` when the track has
|
|
14
|
+
* none (the placeholder shows); left out while it isn't known yet, which
|
|
15
|
+
* keeps the last picture up.
|
|
16
|
+
*/
|
|
17
|
+
artwork?: Artwork2 | null;
|
|
18
|
+
/** The color the artwork leans to, any CSS color: it tints the glow, the bars and the toggles. Read from an image URL when left out. */
|
|
19
|
+
tint?: string;
|
|
20
|
+
/** The app it plays in. */
|
|
21
|
+
source?: string;
|
|
22
|
+
/** Where it plays: a device's name. */
|
|
23
|
+
output?: string;
|
|
24
|
+
/** What kind of device `output` is, for its glyph. Defaults to `'built-in'`. */
|
|
25
|
+
outputKind?: NowPlayingOutput2;
|
|
26
|
+
/** The track's length, in seconds; `0` for a stream, which hides the scrubber. */
|
|
27
|
+
duration: number;
|
|
28
|
+
/** Where playback is, in seconds. */
|
|
29
|
+
position: number;
|
|
30
|
+
}
|
|
31
|
+
interface NowPlayingProps2 {
|
|
32
|
+
/** What plays; without one the player says nothing is playing. */
|
|
33
|
+
track?: NowPlayingTrack2 | null;
|
|
34
|
+
/** It plays (controlled). */
|
|
35
|
+
playing?: boolean;
|
|
36
|
+
/** It plays at first (uncontrolled). Defaults to `true`. */
|
|
37
|
+
defaultPlaying?: boolean;
|
|
38
|
+
/** Called with the new state when play / pause is pressed. */
|
|
39
|
+
onPlayingChange?: (playing: boolean) => void;
|
|
40
|
+
/** Called when the previous button is pressed. */
|
|
41
|
+
onPrevious?: () => void;
|
|
42
|
+
/** Called when the next button is pressed. */
|
|
43
|
+
onNext?: () => void;
|
|
44
|
+
/** Called with the position to seek to, once, when a drag on the scrubber ends. */
|
|
45
|
+
onSeek?: (seconds: number) => void;
|
|
46
|
+
/** Shuffle is on (controlled). The toggle shows when this, `defaultShuffle` or `onShuffleChange` is given. */
|
|
47
|
+
shuffle?: boolean;
|
|
48
|
+
/** Shuffle is on at first (uncontrolled). */
|
|
49
|
+
defaultShuffle?: boolean;
|
|
50
|
+
/** Called with the new state when shuffle is pressed. */
|
|
51
|
+
onShuffleChange?: (shuffle: boolean) => void;
|
|
52
|
+
/** The repeat mode (controlled): a press steps off → all → one. Shows like `shuffle`. */
|
|
53
|
+
repeat?: NowPlayingRepeat2;
|
|
54
|
+
/** The repeat mode at first (uncontrolled). */
|
|
55
|
+
defaultRepeat?: NowPlayingRepeat2;
|
|
56
|
+
/** Called with the next mode when repeat is pressed. */
|
|
57
|
+
onRepeatChange?: (repeat: NowPlayingRepeat2) => void;
|
|
58
|
+
/** The track is in the library (controlled). Shows like `shuffle`. */
|
|
59
|
+
liked?: boolean;
|
|
60
|
+
/** The track is in the library at first (uncontrolled). */
|
|
61
|
+
defaultLiked?: boolean;
|
|
62
|
+
/** Called with the new state when the heart is pressed. */
|
|
63
|
+
onLikedChange?: (liked: boolean) => void;
|
|
64
|
+
/** The empty state's line. Defaults to `'Play something in Music, Spotify or a browser and it shows up here.'`. */
|
|
65
|
+
emptyDescription?: ReactNode;
|
|
66
|
+
/** The empty state's way forward, such as a Button that opens a player. */
|
|
67
|
+
emptyActions?: ReactNode;
|
|
68
|
+
/** Classes for the root, which fills its container. */
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
type TrackIdentity = Pick<NowPlayingTrack2, "id" | "title" | "artist" | "album" | "artwork" | "tint">;
|
|
72
|
+
interface ArtworkProps {
|
|
73
|
+
/** The track whose artwork it shows; without one, the placeholder. */
|
|
74
|
+
track?: TrackIdentity | null;
|
|
75
|
+
/** The placeholder note's size in px. Defaults to `14`. */
|
|
76
|
+
glyph?: number;
|
|
77
|
+
/** Classes for the tile: its size and radius. */
|
|
78
|
+
className?: string;
|
|
79
|
+
}
|
|
80
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
81
|
+
/**
|
|
82
|
+
* A track's artwork in a tile that never blinks: the last good picture stays
|
|
83
|
+
* while the next one loads or an update comes without one, the next
|
|
84
|
+
* crossfades in over it, and only a track without artwork shows the note.
|
|
85
|
+
*/
|
|
86
|
+
declare function NowPlayingArtwork2({ track, glyph, className }: ArtworkProps): Element_12xgc;
|
|
87
|
+
interface PartProps {
|
|
88
|
+
/** What plays. */
|
|
89
|
+
track?: TrackIdentity | null;
|
|
90
|
+
/** It plays: the bars dance. Defaults to `true`. */
|
|
91
|
+
playing?: boolean;
|
|
92
|
+
}
|
|
93
|
+
/** The compact island's left wing: the artwork, small. */
|
|
94
|
+
declare function NowPlayingLeading2({ track }: Pick<PartProps, "track">): Element_12xgc;
|
|
95
|
+
/** The compact island's right wing: the level bars in the artwork's tint, low while paused. */
|
|
96
|
+
declare function NowPlayingTrailing2(props: PartProps): Element_12xgc;
|
|
97
|
+
/** The split island's bubble: the artwork as a disc. */
|
|
98
|
+
declare function NowPlayingMinimal2({ track }: Pick<PartProps, "track">): Element_12xgc;
|
|
99
|
+
/** The island's flash when the track changes: its artwork, title and artist, and the tinted bars. */
|
|
100
|
+
declare function NowPlayingFlash2({ track, playing }: {
|
|
101
|
+
track: NowPlayingTrack2;
|
|
102
|
+
playing?: boolean;
|
|
103
|
+
}): Element_12xgc;
|
|
104
|
+
/**
|
|
105
|
+
* What's playing, as a notch app's open island shows it: the artwork, the
|
|
106
|
+
* title and artist, where the track is, the transport, and where it plays.
|
|
107
|
+
*
|
|
108
|
+
* The artwork is the hero's picture, as tall as the widget, with a soft glow
|
|
109
|
+
* of its tint behind it (`track.tint`, else read from an image URL); the
|
|
110
|
+
* equalizer and any toggle that is on take the same tint, so the color
|
|
111
|
+
* comes from the music. The artwork never blinks: the last good picture
|
|
112
|
+
* stays up while a new one loads or an update arrives without one, the next
|
|
113
|
+
* crossfades in over it, and only a track whose `artwork` is `null` shows
|
|
114
|
+
* the placeholder note.
|
|
115
|
+
*
|
|
116
|
+
* Under the title and artist (with the album) runs the kit's MediaScrubber,
|
|
117
|
+
* which ticks on by itself while playing and seeks once when a drag ends
|
|
118
|
+
* (`onSeek`). The transport sits in the middle of the last row, the source
|
|
119
|
+
* app and the output device on its left, and shuffle, repeat and the heart
|
|
120
|
+
* on its right, each shown when its value or handler is given. Play / pause
|
|
121
|
+
* runs through `playing` / `onPlayingChange`, or is kept here from
|
|
122
|
+
* `defaultPlaying`; the toggles are the same. Without a track it says
|
|
123
|
+
* nothing is playing and how to change that.
|
|
124
|
+
*
|
|
125
|
+
* The other forms are parts: `NowPlaying.Leading` and `NowPlaying.Trailing`
|
|
126
|
+
* for the compact island's wings (the artwork, and the tinted Equalizer that
|
|
127
|
+
* settles when paused), `NowPlaying.Minimal` for the split island's bubble
|
|
128
|
+
* (the artwork as a disc), `NowPlaying.Flash` for the flash on a track
|
|
129
|
+
* change and `NowPlaying.Artwork` for the tile on its own.
|
|
130
|
+
*
|
|
131
|
+
* @example {@include ./examples.mdx}
|
|
132
|
+
*/
|
|
133
|
+
declare const NowPlaying2: (({ track, playing: playingProp, defaultPlaying, onPlayingChange, onPrevious, onNext, onSeek, shuffle: shuffleProp, defaultShuffle, onShuffleChange, repeat: repeatProp, defaultRepeat, onRepeatChange, liked: likedProp, defaultLiked, onLikedChange, emptyDescription, emptyActions, className }: NowPlayingProps2) => Element_12xgc) & {
|
|
134
|
+
Artwork2: typeof NowPlayingArtwork2;
|
|
135
|
+
Leading: typeof NowPlayingLeading2;
|
|
136
|
+
Trailing: typeof NowPlayingTrailing2;
|
|
137
|
+
Minimal: typeof NowPlayingMinimal2;
|
|
138
|
+
Flash: typeof NowPlayingFlash2;
|
|
139
|
+
};
|
|
140
|
+
export { NowPlayingOutput2, NowPlayingRepeat2, NowPlayingTrack2, NowPlayingProps2, NowPlayingArtwork2, NowPlayingLeading2, NowPlayingTrailing2, NowPlayingMinimal2, NowPlayingFlash2, NowPlaying2 };
|