@takazudo/zdtp 0.4.13 → 0.4.15
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/CHANGELOG.md +143 -0
- package/PORTABLE-CONTRACT.md +366 -94
- package/README.md +218 -96
- package/dist/apply/build-apply-overrides.d.ts +2 -2
- package/dist/apply/compute-hunks.d.ts +23 -0
- package/dist/apply/last-applied.d.ts +5 -0
- package/dist/apply/reconcile-applied.d.ts +19 -0
- package/dist/apply-modal.d.ts +2 -48
- package/dist/astro/host-adapter.js +3 -3
- package/dist/astro/index.js +2 -2
- package/dist/{autoload-state-CfL2VUe1.js → autoload-state-7BQYXI7Y.js} +1 -1
- package/dist/bin/server.js +52 -50
- package/dist/bulk/bulk-actions.d.ts +45 -0
- package/dist/bulk/index.d.ts +2 -0
- package/dist/chain/index.d.ts +2 -0
- package/dist/chain/token-chain-context.d.ts +19 -0
- package/dist/chain/token-chain-popover.d.ts +22 -0
- package/dist/changed/contribution.d.ts +32 -0
- package/dist/changed/footer-content.d.ts +16 -0
- package/dist/changed/index.d.ts +4 -0
- package/dist/changed/tab-badge.d.ts +8 -0
- package/dist/changed/tab-filter.d.ts +8 -0
- package/dist/config/panel-config.d.ts +22 -25
- package/dist/controls/actions-menu-popover.d.ts +2 -0
- package/dist/controls/role-button.d.ts +5 -2
- package/dist/controls/tooltip.d.ts +8 -4
- package/dist/element-inspect/element-inspect-context.d.ts +22 -0
- package/dist/element-inspect/element-inspect-orchestrator.d.ts +17 -0
- package/dist/element-inspect/element-inspect-overlay.d.ts +16 -0
- package/dist/element-inspect/element-inspect-toggle-button.d.ts +3 -0
- package/dist/element-inspect/element-inspect-view.d.ts +6 -0
- package/dist/element-inspect/find-tokens-for-element.d.ts +23 -0
- package/dist/element-inspect/index.d.ts +8 -0
- package/dist/highlight/find-elements.d.ts +14 -3
- package/dist/highlight/highlight-orchestrator.d.ts +7 -3
- package/dist/highlight/highlight-state.d.ts +3 -2
- package/dist/highlight/highlight-toggle-button.d.ts +3 -0
- package/dist/highlight/walk-css-rules.d.ts +2 -0
- package/dist/history/buttons.d.ts +28 -0
- package/dist/history/index.d.ts +3 -0
- package/dist/history/rail.d.ts +13 -0
- package/dist/history/snapshots.d.ts +57 -0
- package/dist/host/host-mutations.d.ts +23 -0
- package/dist/index-BOOmFtJh.js +12165 -0
- package/dist/{index-BAY1JOUl.js → index-C2DIYD0d.js} +2 -2
- package/dist/index.js +14 -14
- package/dist/load-routing-BtCE1hGI.js +547 -0
- package/dist/{manifest-DCReQE0k.js → manifest-DvuKi7I4.js} +11 -7
- package/dist/{panel-config-COHesW2B.js → panel-config-CRf-ONSV.js} +404 -308
- package/dist/picker/alt-click-picker.d.ts +10 -2
- package/dist/picker/arming-coordinator.d.ts +2 -0
- package/dist/picker/index.d.ts +2 -2
- package/dist/search/command-palette.d.ts +21 -0
- package/dist/search/contribution.d.ts +7 -0
- package/dist/search/fuzzy.d.ts +10 -0
- package/dist/search/index.d.ts +4 -0
- package/dist/search/match-bar.d.ts +14 -0
- package/dist/search/search-header.d.ts +7 -0
- package/dist/search/token-search.d.ts +36 -0
- package/dist/server/create-apply-handler.d.ts +33 -0
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +1 -1
- package/dist/shell/dock-mode-switch.d.ts +6 -0
- package/dist/shell/footer.d.ts +1 -0
- package/dist/shell/ghost-idle.d.ts +24 -0
- package/dist/shell/header.d.ts +5 -0
- package/dist/shell/layer-activity.d.ts +6 -0
- package/dist/shell/mini-pill.d.ts +21 -0
- package/dist/shell/regions.d.ts +26 -0
- package/dist/shell/shortcut-dispatcher.d.ts +17 -0
- package/dist/shell/tab-bar.d.ts +17 -0
- package/dist/shell/tab-overflow-popover.d.ts +13 -0
- package/dist/specimen/on-page-specimen.d.ts +19 -0
- package/dist/specimen/preview-glyphs.d.ts +2 -0
- package/dist/specimen/specimen-state.d.ts +12 -0
- package/dist/specimen/specimen-tab-body.d.ts +18 -0
- package/dist/specimen/specimen-toolbar.d.ts +10 -0
- package/dist/specimen/specimen-values.d.ts +9 -0
- package/dist/state/history.d.ts +64 -0
- package/dist/state/persist.d.ts +10 -14
- package/dist/state/transaction.d.ts +24 -0
- package/dist/state/tweak-state.d.ts +16 -0
- package/dist/styles/z-index-tokens.d.ts +2 -0
- package/dist/tabs/color-tab.d.ts +10 -1
- package/dist/tabs/flat/flat-tab.d.ts +27 -0
- package/dist/tabs/flat/index.d.ts +8 -0
- package/dist/tabs/flat/scroll-to-token-row.d.ts +3 -0
- package/dist/tabs/flat/tier-section.d.ts +17 -0
- package/dist/tabs/flat/token-controller.d.ts +23 -0
- package/dist/tabs/flat/token-row.d.ts +12 -0
- package/dist/tabs/flat/types.d.ts +25 -0
- package/dist/tabs/font-tab.d.ts +13 -12
- package/dist/tabs/generic-tab.d.ts +8 -38
- package/dist/tabs/palette/palette-check-view.d.ts +5 -1
- package/dist/tabs/palette/palette-edit-view.d.ts +9 -1
- package/dist/tabs/palette/palette-tab.d.ts +12 -1
- package/dist/tabs/size-tab.d.ts +7 -10
- package/dist/tabs/spacing-tab.d.ts +7 -13
- package/dist/testing.js +3 -3
- package/dist/tokens/tier-model.d.ts +6 -0
- package/dist/{tweak-state-BKNxtHzb.js → tweak-state-BGp_7Tfh.js} +473 -423
- package/dist/utils/numeric-transform.d.ts +32 -0
- package/dist/utils/token-diff.d.ts +25 -0
- package/dist/utils/token-graph.d.ts +23 -0
- package/dist/utils/token-index.d.ts +30 -0
- package/dist/zdtp.css +1 -1
- package/package.json +3 -1
- package/dist/controls/pill-slider-row.d.ts +0 -36
- package/dist/controls/select-row.d.ts +0 -25
- package/dist/controls/slider-row.d.ts +0 -29
- package/dist/controls/text-row.d.ts +0 -27
- package/dist/index-U7Ol7tgA.js +0 -7591
- package/dist/load-routing-D4H2VOl5.js +0 -426
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type TokenDef } from '../tokens/manifest';
|
|
2
|
-
/**
|
|
3
|
-
* One manifest-driven token row:
|
|
4
|
-
*
|
|
5
|
-
* [label] ... [ 1.25 rem] ← label + number input (unit suffix inside)
|
|
6
|
-
*
|
|
7
|
-
* The parent owns the persisted value (stored as a string like `"1.25rem"`);
|
|
8
|
-
* this row keeps a local "draft" string only for the number input, so users
|
|
9
|
-
* can type partial values (`"1."`) without the component thrashing.
|
|
10
|
-
*
|
|
11
|
-
* Read-only tokens render a disabled compact form that still shows the
|
|
12
|
-
* resolved value from the stylesheet.
|
|
13
|
-
*
|
|
14
|
-
* `onChange` is `(id, next)` — the row passes its own `token.id` back so the
|
|
15
|
-
* parent can use a single stable handler across every row, keeping React.memo
|
|
16
|
-
* effective.
|
|
17
|
-
*/
|
|
18
|
-
export interface SliderRowProps {
|
|
19
|
-
token: TokenDef;
|
|
20
|
-
/** Current persisted value (or the token's default if no override). */
|
|
21
|
-
value: string;
|
|
22
|
-
/** Called with the row's `token.id` and the new CSS string (e.g.
|
|
23
|
-
* `"0.75rem"`) whenever the user commits a change via a parseable
|
|
24
|
-
* number input. */
|
|
25
|
-
onChange: (id: string, next: string) => void;
|
|
26
|
-
}
|
|
27
|
-
declare function SliderRow({ token, value, onChange }: SliderRowProps): import("preact").JSX.Element;
|
|
28
|
-
declare const _default: typeof SliderRow;
|
|
29
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { TokenDef } from '../tokens/manifest';
|
|
2
|
-
/**
|
|
3
|
-
* One manifest-driven token row backed by a free-form text input.
|
|
4
|
-
*
|
|
5
|
-
* [label] [ "Inter", system-ui, sans-serif ]
|
|
6
|
-
*
|
|
7
|
-
* Used for tokens whose value is a CSS string the user types directly — e.g.
|
|
8
|
-
* `--font-sans` / `--font-mono`. The stored value is sanitised (see
|
|
9
|
-
* `sanitize-css-value.ts`) before it leaves this component so newlines,
|
|
10
|
-
* backslashes, and semicolons never reach stored state or the exported CSS
|
|
11
|
-
* snippet. `style.setProperty` is already injection-safe on its own.
|
|
12
|
-
*
|
|
13
|
-
* `onChange` is `(id, next)` — the row passes its own `token.id` back so the
|
|
14
|
-
* parent can use a single stable handler across every row, keeping React.memo
|
|
15
|
-
* effective.
|
|
16
|
-
*/
|
|
17
|
-
export interface TextRowProps {
|
|
18
|
-
token: TokenDef;
|
|
19
|
-
/** Current persisted value (or the token's default if no override). */
|
|
20
|
-
value: string;
|
|
21
|
-
/** Called with the row's `token.id` and the sanitised new value on every
|
|
22
|
-
* edit. */
|
|
23
|
-
onChange: (id: string, next: string) => void;
|
|
24
|
-
}
|
|
25
|
-
declare function TextRow({ token, value, onChange }: TextRowProps): import("preact").JSX.Element;
|
|
26
|
-
declare const _default: typeof TextRow;
|
|
27
|
-
export default _default;
|