@sdeck/plugin-basics 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ /** An analog face at `date`: twelve ticks, three hands. */
2
+ export declare function analogFace(date: Date, colors: {
3
+ face: string;
4
+ hands: string;
5
+ accent: string;
6
+ ticks: string;
7
+ }, seconds: boolean): string;
8
+ /** The parts of a digital time: `16:41` or `4:41` with `PM`, and the seconds. */
9
+ export declare function timeParts(date: Date, hour12: boolean): {
10
+ main: string;
11
+ seconds: string;
12
+ period: string;
13
+ };
14
+ export declare const clock: import("@sdeck/plugin").Action;
15
+ export declare const date: import("@sdeck/plugin").Action;
16
+ //# sourceMappingURL=clock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clock.d.ts","sourceRoot":"","sources":["../src/clock.tsx"],"names":[],"mappings":"AAIA,2DAA2D;AAC3D,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACtE,OAAO,EAAE,OAAO,GACf,MAAM,CAiBR;AAED,iFAAiF;AACjF,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO;;;;EAQpD;AAED,eAAO,MAAM,KAAK,gCA8FhB,CAAC;AAEH,eAAO,MAAM,IAAI,gCA6Df,CAAC"}
@@ -0,0 +1,11 @@
1
+ export { analogFace, timeParts } from "./clock.tsx";
2
+ export { formatDuration } from "./theme.ts";
3
+ export { elapsed, type Run, toggled } from "./timers.tsx";
4
+ /** The levels of a "10, 40, 70, 100" list, in order. */
5
+ export declare function parseLevels(list: string): number[];
6
+ /** The level after `current` in `levels` (the first one when `current` is not in it). */
7
+ export declare function nextLevel(levels: readonly number[], current: number): number | undefined;
8
+ /** Can be used directly by hosts and apps: `import basics from "@sdeck/plugin-basics"`. */
9
+ declare const _default: import("@sdeck/plugin").PluginDef;
10
+ export default _default;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,KAAK,GAAG,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAsO1D,wDAAwD;AACxD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAOlD;AAED,yFAAyF;AACzF,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIxF;AA0DD,2FAA2F"}