dssoca 0.20.0 → 0.21.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 +3 -3
- package/dist/components/Accordion.svelte +23 -52
- package/dist/components/BottomNav.svelte +18 -28
- package/dist/components/BoxPlot.svelte +7 -6
- package/dist/components/BumpChart.svelte +9 -12
- package/dist/components/Chart.svelte +9 -12
- package/dist/components/Checkbox.svelte +210 -0
- package/dist/components/Checkbox.svelte.d.ts +38 -0
- package/dist/components/FileDrop.svelte +52 -83
- package/dist/components/FileDrop.svelte.d.ts +6 -2
- package/dist/components/Heatmap.svelte +8 -8
- package/dist/components/Image.svelte +44 -44
- package/dist/components/Input.svelte +8 -3
- package/dist/components/LogStream.svelte +15 -25
- package/dist/components/Menu.svelte +69 -94
- package/dist/components/Menu.svelte.d.ts +6 -0
- package/dist/components/Modal.svelte +61 -14
- package/dist/components/Modal.svelte.d.ts +7 -2
- package/dist/components/NumberField.svelte +18 -19
- package/dist/components/Pagination.svelte +47 -37
- package/dist/components/Pagination.svelte.d.ts +6 -2
- package/dist/components/Popover.svelte +247 -0
- package/dist/components/Popover.svelte.d.ts +36 -0
- package/dist/components/RadioGroup.svelte +227 -0
- package/dist/components/RadioGroup.svelte.d.ts +42 -0
- package/dist/components/ScatterPlot.svelte +11 -13
- package/dist/components/SearchPalette.svelte +124 -120
- package/dist/components/SearchPalette.svelte.d.ts +6 -4
- package/dist/components/SegmentedControl.svelte +41 -62
- package/dist/components/SegmentedControl.svelte.d.ts +7 -2
- package/dist/components/ShortcutsHelp.svelte +48 -47
- package/dist/components/Sidebar.svelte +48 -60
- package/dist/components/Switch.svelte +20 -10
- package/dist/components/Switch.svelte.d.ts +6 -2
- package/dist/components/Table.svelte +15 -37
- package/dist/components/Tabs.svelte +223 -0
- package/dist/components/Tabs.svelte.d.ts +51 -0
- package/dist/components/TierList.svelte +38 -38
- package/dist/components/TierList.svelte.d.ts +7 -3
- package/dist/components/Toaster.svelte +29 -29
- package/dist/components/Tooltip.svelte +37 -21
- package/dist/components/Topbar.svelte +13 -38
- package/dist/core/accordion.d.ts +32 -0
- package/dist/core/accordion.js +53 -0
- package/dist/core/behaviors/focusable.d.ts +5 -0
- package/dist/core/behaviors/focusable.js +14 -0
- package/dist/core/behaviors/roving.d.ts +13 -0
- package/dist/core/behaviors/roving.js +29 -0
- package/dist/core/bottom-nav.d.ts +36 -0
- package/dist/core/bottom-nav.js +33 -0
- package/dist/core/chart-nav.d.ts +53 -0
- package/dist/{chart-nav.js → core/chart-nav.js} +27 -0
- package/dist/core/checkbox.d.ts +36 -0
- package/dist/core/checkbox.js +29 -0
- package/dist/core/file-drop.d.ts +75 -0
- package/dist/core/file-drop.js +101 -0
- package/dist/core/image.d.ts +59 -0
- package/dist/core/image.js +64 -0
- package/dist/core/input.d.ts +21 -0
- package/dist/core/input.js +17 -0
- package/dist/core/log-stream.d.ts +51 -0
- package/dist/core/log-stream.js +50 -0
- package/dist/core/menu.d.ts +70 -0
- package/dist/core/menu.js +84 -0
- package/dist/core/modal.d.ts +59 -0
- package/dist/core/modal.js +44 -0
- package/dist/core/number-field.d.ts +47 -0
- package/dist/core/number-field.js +64 -0
- package/dist/core/pagination.d.ts +59 -0
- package/dist/core/pagination.js +65 -0
- package/dist/core/popover.d.ts +68 -0
- package/dist/core/popover.js +55 -0
- package/dist/core/radio.d.ts +36 -0
- package/dist/core/radio.js +48 -0
- package/dist/core/search-palette.d.ts +124 -0
- package/dist/core/search-palette.js +149 -0
- package/dist/core/segmented.d.ts +46 -0
- package/dist/core/segmented.js +66 -0
- package/dist/core/shortcuts-help.d.ts +56 -0
- package/dist/core/shortcuts-help.js +50 -0
- package/dist/core/sidebar.d.ts +63 -0
- package/dist/core/sidebar.js +84 -0
- package/dist/core/switch.d.ts +19 -0
- package/dist/core/switch.js +11 -0
- package/dist/core/table.d.ts +40 -0
- package/dist/core/table.js +57 -0
- package/dist/core/tabs.d.ts +84 -0
- package/dist/core/tabs.js +90 -0
- package/dist/{tierlist-core.d.ts → core/tierlist.d.ts} +62 -0
- package/dist/{tierlist-core.js → core/tierlist.js} +34 -0
- package/dist/core/toast.d.ts +112 -0
- package/dist/{toast-core.js → core/toast.js} +48 -2
- package/dist/core/tooltip.d.ts +47 -0
- package/dist/core/tooltip.js +51 -0
- package/dist/core/topbar.d.ts +41 -0
- package/dist/core/topbar.js +52 -0
- package/dist/dssoca.config.d.ts +1 -1
- package/dist/dssoca.config.js +4 -0
- package/dist/index.d.ts +14 -1
- package/dist/index.js +9 -1
- package/dist/theme.css +47 -0
- package/dist/toast.svelte.d.ts +2 -2
- package/dist/toast.svelte.js +1 -1
- package/dist/tokens.css +47 -0
- package/dist/vanilla/accordion.js +28 -29
- package/dist/vanilla/checkbox.d.ts +8 -0
- package/dist/vanilla/checkbox.js +43 -0
- package/dist/vanilla/delegate.d.ts +2 -0
- package/dist/vanilla/delegate.js +9 -0
- package/dist/vanilla/fields.js +37 -32
- package/dist/vanilla/index.d.ts +4 -0
- package/dist/vanilla/index.js +16 -3
- package/dist/vanilla/menu.js +92 -86
- package/dist/vanilla/modal.d.ts +3 -1
- package/dist/vanilla/modal.js +65 -15
- package/dist/vanilla/popover.d.ts +10 -0
- package/dist/vanilla/popover.js +129 -0
- package/dist/vanilla/radio.d.ts +3 -0
- package/dist/vanilla/radio.js +54 -0
- package/dist/vanilla/segmented.js +49 -51
- package/dist/vanilla/switch.d.ts +2 -1
- package/dist/vanilla/switch.js +13 -8
- package/dist/vanilla/tabs.d.ts +2 -0
- package/dist/vanilla/tabs.js +87 -0
- package/dist/vanilla/tierlist.d.ts +1 -1
- package/dist/vanilla/tierlist.js +29 -25
- package/dist/vanilla/toast.d.ts +2 -2
- package/dist/vanilla/toast.js +16 -14
- package/dist/vanilla/tooltip.js +35 -23
- package/dist/vanilla.css +349 -42
- package/package.json +1 -1
- package/dist/chart-nav.d.ts +0 -13
- package/dist/toast-core.d.ts +0 -61
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dssoca",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Svelte 5 design system — signal green on near-black, monospace-forward, zero border-radius; configured along two axes (color: dark/light, size: sm/md/lg). Also consumable from plain HTML via vanilla.css + vanilla.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rafael Passoca",
|
package/dist/chart-nav.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared keyboard contract for the chart components (Chart, BoxPlot, BumpChart, ScatterPlot,
|
|
3
|
-
* Heatmap): a chart is ONE tab stop, and the arrow keys move focus between its data marks
|
|
4
|
-
* (roving tabindex). See agile DS-0161.
|
|
5
|
-
*
|
|
6
|
-
* - 1-D (default): ArrowRight/ArrowDown → next mark, ArrowLeft/ArrowUp → previous.
|
|
7
|
-
* - 2-D (`cols` given, e.g. Heatmap): ArrowLeft/ArrowRight move within a row, ArrowUp/ArrowDown
|
|
8
|
-
* move by `cols`.
|
|
9
|
-
* - Home/End → first/last mark. Movement clamps at the edges (no wrap-around).
|
|
10
|
-
*
|
|
11
|
-
* Returns the new index, or `null` when the key is not a navigation key (let it through).
|
|
12
|
-
*/
|
|
13
|
-
export declare function chartNavStep(key: string, index: number, count: number, cols?: number): number | null;
|
package/dist/toast-core.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Framework-free core of the toast system (DS-0148): types, per-kind defaults and the
|
|
3
|
-
* pause/resume timer. Shared by the Svelte-runes store (`toast.svelte.ts`) and the vanilla
|
|
4
|
-
* DOM store (`vanilla/toast.ts`) so the two can never disagree on semantics.
|
|
5
|
-
*/
|
|
6
|
-
export type ToastKind = 'success' | 'error' | 'info' | 'loading';
|
|
7
|
-
/** An optional inline action rendered as a button inside the toast. */
|
|
8
|
-
export interface ToastAction {
|
|
9
|
-
label: string;
|
|
10
|
-
/**
|
|
11
|
-
* Invoked on click. Return `false` to keep the toast open (e.g. an async
|
|
12
|
-
* action that wants to swap itself for a result toast); any other return
|
|
13
|
-
* value dismisses the toast.
|
|
14
|
-
*/
|
|
15
|
-
onClick: () => void | false;
|
|
16
|
-
}
|
|
17
|
-
export interface Toast {
|
|
18
|
-
id: number;
|
|
19
|
-
kind: ToastKind;
|
|
20
|
-
message: string;
|
|
21
|
-
/** Effective auto-dismiss duration in ms; <= 0 / Infinity means sticky. */
|
|
22
|
-
timeout: number;
|
|
23
|
-
action?: ToastAction;
|
|
24
|
-
}
|
|
25
|
-
/** Fields a caller may set when pushing; the store fills in the rest. */
|
|
26
|
-
export interface ToastOptions {
|
|
27
|
-
timeout?: number;
|
|
28
|
-
action?: ToastAction;
|
|
29
|
-
}
|
|
30
|
-
/** A subset of a toast a caller may patch in-place via `update`. */
|
|
31
|
-
export type ToastPatch = Partial<Pick<Toast, 'kind' | 'message' | 'timeout' | 'action'>>;
|
|
32
|
-
/** Options for `toast.promise`. */
|
|
33
|
-
export interface PromiseMessages<T> {
|
|
34
|
-
loading: string;
|
|
35
|
-
success: string | ((value: T) => string);
|
|
36
|
-
error: string | ((err: unknown) => string);
|
|
37
|
-
}
|
|
38
|
-
/** Default auto-dismiss per kind. Errors linger; loading is sticky. */
|
|
39
|
-
export declare const DEFAULT_TIMEOUT: Record<ToastKind, number>;
|
|
40
|
-
/** Toasts carrying an action default to sticky so the action stays reachable. */
|
|
41
|
-
export declare const ACTION_TIMEOUT = 0;
|
|
42
|
-
/** Treat <= 0 or non-finite as sticky (never auto-dismiss). */
|
|
43
|
-
export declare function isSticky(timeout: number): boolean;
|
|
44
|
-
/** Effective timeout for a push: explicit > action-sticky > per-kind default. */
|
|
45
|
-
export declare function resolveTimeout(kind: ToastKind, opts?: ToastOptions): number;
|
|
46
|
-
/** Back-compat: the old push signature accepted a bare `timeout` number. */
|
|
47
|
-
export declare function normalizeOptions(opts?: ToastOptions | number): ToastOptions | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Per-toast auto-dismiss controller. Tracks remaining time so the timer can be
|
|
50
|
-
* paused (on hover/focus) and resumed without losing or resetting the budget.
|
|
51
|
-
*/
|
|
52
|
-
export declare class ToastTimer {
|
|
53
|
-
#private;
|
|
54
|
-
constructor(timeout: number, fire: () => void);
|
|
55
|
-
get sticky(): boolean;
|
|
56
|
-
resume(): void;
|
|
57
|
-
pause(): void;
|
|
58
|
-
/** Re-arm with a fresh budget (used by `update`). */
|
|
59
|
-
reset(timeout: number): void;
|
|
60
|
-
cancel(): void;
|
|
61
|
-
}
|